pixivflow 2.0.38 → 2.0.39
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/dist/commands/DownloadCommand.d.ts.map +1 -1
- package/dist/commands/DownloadCommand.js +50 -2
- package/dist/commands/DownloadCommand.js.map +1 -1
- package/dist/config/validation.d.ts.map +1 -1
- package/dist/config/validation.js +11 -3
- package/dist/config/validation.js.map +1 -1
- package/dist/index.js +37 -14
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/pixiv/AuthClient.d.ts.map +1 -1
- package/dist/pixiv/AuthClient.js +56 -7
- package/dist/pixiv/AuthClient.js.map +1 -1
- package/dist/storage/Database.d.ts +22 -0
- package/dist/storage/Database.d.ts.map +1 -1
- package/dist/storage/Database.js +19 -0
- package/dist/storage/Database.js.map +1 -1
- package/dist/storage/DatabaseMigration.d.ts.map +1 -1
- package/dist/storage/DatabaseMigration.js +29 -0
- package/dist/storage/DatabaseMigration.js.map +1 -1
- package/dist/storage/repositories/TaskHistoryRepository.d.ts +61 -0
- package/dist/storage/repositories/TaskHistoryRepository.d.ts.map +1 -0
- package/dist/storage/repositories/TaskHistoryRepository.js +171 -0
- package/dist/storage/repositories/TaskHistoryRepository.js.map +1 -0
- package/dist/utils/errors.js +11 -11
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/pixiv-url-parser.d.ts +7 -1
- package/dist/utils/pixiv-url-parser.d.ts.map +1 -1
- package/dist/utils/pixiv-url-parser.js +75 -8
- package/dist/utils/pixiv-url-parser.js.map +1 -1
- package/dist/utils/token-manager.d.ts.map +1 -1
- package/dist/utils/token-manager.js +73 -5
- package/dist/utils/token-manager.js.map +1 -1
- package/dist/webui/package.json +1 -1
- package/dist/webui/routes/download.d.ts.map +1 -1
- package/dist/webui/routes/download.js +2 -0
- package/dist/webui/routes/download.js.map +1 -1
- package/dist/webui/routes/handlers/download-basic-handlers.d.ts +11 -0
- package/dist/webui/routes/handlers/download-basic-handlers.d.ts.map +1 -1
- package/dist/webui/routes/handlers/download-basic-handlers.js +199 -8
- package/dist/webui/routes/handlers/download-basic-handlers.js.map +1 -1
- package/dist/webui/services/DownloadTaskManager.d.ts.map +1 -1
- package/dist/webui/services/DownloadTaskManager.js +75 -3
- package/dist/webui/services/DownloadTaskManager.js.map +1 -1
- package/package.json +1 -1
- package/dist/webui/assets/ActionButton-DWq-fh3_.js +0 -2
- package/dist/webui/assets/ActionButton-DWq-fh3_.js.map +0 -1
- package/dist/webui/assets/CheckCircleOutlined-Can0-7ew.js +0 -2
- package/dist/webui/assets/CheckCircleOutlined-Can0-7ew.js.map +0 -1
- package/dist/webui/assets/CloseCircleOutlined-DfRmL2eG.js +0 -2
- package/dist/webui/assets/CloseCircleOutlined-DfRmL2eG.js.map +0 -1
- package/dist/webui/assets/Config-D9TWUGQR.js +0 -16
- package/dist/webui/assets/Config-D9TWUGQR.js.map +0 -1
- package/dist/webui/assets/Dashboard-CaGAH0y2.js +0 -2
- package/dist/webui/assets/Dashboard-CaGAH0y2.js.map +0 -1
- package/dist/webui/assets/DeleteOutlined-u-P2SpoK.js +0 -2
- package/dist/webui/assets/DeleteOutlined-u-P2SpoK.js.map +0 -1
- package/dist/webui/assets/Download-D9E4xrnM.js +0 -2
- package/dist/webui/assets/Download-D9E4xrnM.js.map +0 -1
- package/dist/webui/assets/Files-CKyc_PdW.js +0 -5
- package/dist/webui/assets/Files-CKyc_PdW.js.map +0 -1
- package/dist/webui/assets/PictureOutlined-C8Lbucj1.js +0 -2
- package/dist/webui/assets/PictureOutlined-C8Lbucj1.js.map +0 -1
- package/dist/webui/assets/SortDescendingOutlined-CR-hdhyW.js +0 -2
- package/dist/webui/assets/SortDescendingOutlined-CR-hdhyW.js.map +0 -1
- package/dist/webui/assets/ThunderboltOutlined-CiiB2de5.js +0 -2
- package/dist/webui/assets/ThunderboltOutlined-CiiB2de5.js.map +0 -1
- package/dist/webui/assets/UrlDownload-ClkUOXN_.js +0 -3
- package/dist/webui/assets/UrlDownload-ClkUOXN_.js.map +0 -1
- package/dist/webui/assets/dateUtils-CBk8bEa_.js +0 -2
- package/dist/webui/assets/dateUtils-CBk8bEa_.js.map +0 -1
- package/dist/webui/assets/errorCodeTranslator-DWsWq6B3.js +0 -3
- package/dist/webui/assets/errorCodeTranslator-DWsWq6B3.js.map +0 -1
- package/dist/webui/assets/index-BFgUdwJv.js +0 -214
- package/dist/webui/assets/index-BFgUdwJv.js.map +0 -1
- package/dist/webui/assets/index-CN3FylAF.js +0 -2
- package/dist/webui/assets/index-CN3FylAF.js.map +0 -1
- package/dist/webui/assets/index-CSoUPZat.js +0 -2
- package/dist/webui/assets/index-CSoUPZat.js.map +0 -1
- package/dist/webui/assets/index-CiHwNwrk.js +0 -19
- package/dist/webui/assets/index-CiHwNwrk.js.map +0 -1
- package/dist/webui/assets/index-DHwJxrFi.css +0 -1
- package/dist/webui/assets/index-DTU-FGA4.js +0 -2
- package/dist/webui/assets/index-DTU-FGA4.js.map +0 -1
- package/dist/webui/assets/index-DjpD0HQ5.js +0 -2
- package/dist/webui/assets/index-DjpD0HQ5.js.map +0 -1
- package/dist/webui/assets/index-Dycn6xoz.js +0 -2
- package/dist/webui/assets/index-Dycn6xoz.js.map +0 -1
- package/dist/webui/assets/index-G0EJCamt.js +0 -22
- package/dist/webui/assets/index-G0EJCamt.js.map +0 -1
- package/dist/webui/assets/index-WaraZQH0.js +0 -2
- package/dist/webui/assets/index-WaraZQH0.js.map +0 -1
- package/dist/webui/assets/index-k2rGFxEM.js +0 -8
- package/dist/webui/assets/index-k2rGFxEM.js.map +0 -1
- package/dist/webui/assets/index-lwTtspUb.js +0 -14
- package/dist/webui/assets/index-lwTtspUb.js.map +0 -1
- package/dist/webui/assets/index-pT0W4KjK.js +0 -47
- package/dist/webui/assets/index-pT0W4KjK.js.map +0 -1
- package/dist/webui/assets/index-wvielV9A.js +0 -2
- package/dist/webui/assets/index-wvielV9A.js.map +0 -1
- package/dist/webui/assets/row-FRqVdQDX.js +0 -20
- package/dist/webui/assets/row-FRqVdQDX.js.map +0 -1
- package/dist/webui/assets/useAuth-BMt6dHSB.js +0 -9
- package/dist/webui/assets/useAuth-BMt6dHSB.js.map +0 -1
- package/dist/webui/assets/useConfig-29Ugtjk4.js +0 -9
- package/dist/webui/assets/useConfig-29Ugtjk4.js.map +0 -1
- package/dist/webui/assets/useDownload-Dt6lsP8S.js +0 -2
- package/dist/webui/assets/useDownload-Dt6lsP8S.js.map +0 -1
- package/dist/webui/assets/useErrorHandler-DWHs3RlU.js +0 -84
- package/dist/webui/assets/useErrorHandler-DWHs3RlU.js.map +0 -1
- package/dist/webui/index.html +0 -15
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-CaGAH0y2.js","./row-FRqVdQDX.js","./index-DjpD0HQ5.js","./PictureOutlined-C8Lbucj1.js","./Config-D9TWUGQR.js","./useConfig-29Ugtjk4.js","./errorCodeTranslator-DWsWq6B3.js","./useErrorHandler-DWHs3RlU.js","./index-pT0W4KjK.js","./index-lwTtspUb.js","./useAuth-BMt6dHSB.js","./CheckCircleOutlined-Can0-7ew.js","./index-CN3FylAF.js","./index-wvielV9A.js","./index-Dycn6xoz.js","./index-k2rGFxEM.js","./ActionButton-DWq-fh3_.js","./ThunderboltOutlined-CiiB2de5.js","./index-WaraZQH0.js","./DeleteOutlined-u-P2SpoK.js","./Download-D9E4xrnM.js","./useDownload-Dt6lsP8S.js","./CloseCircleOutlined-DfRmL2eG.js","./dateUtils-CBk8bEa_.js","./index-DTU-FGA4.js","./UrlDownload-ClkUOXN_.js","./index-G0EJCamt.js","./SortDescendingOutlined-CR-hdhyW.js","./index-CiHwNwrk.js","./Files-CKyc_PdW.js","./index-CSoUPZat.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function Z2(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eh={exports:{}},Js={},xh={exports:{}},Dt={};var n1;function z4(){if(n1)return Dt;n1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function S(D,M,te){this.props=D,this.context=M,this.refs=C,this.updater=te||w}S.prototype.isReactComponent={},S.prototype.setState=function(D,M){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,M,"setState")},S.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=S.prototype;function x(D,M,te){this.props=D,this.context=M,this.refs=C,this.updater=te||w}var R=x.prototype=new O;R.constructor=x,b(R,S.prototype),R.isPureReactComponent=!0;var I=Array.isArray,P=Object.prototype.hasOwnProperty,$={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function L(D,M,te){var ee,Y={},re=null,le=null;if(M!=null)for(ee in M.ref!==void 0&&(le=M.ref),M.key!==void 0&&(re=""+M.key),M)P.call(M,ee)&&!_.hasOwnProperty(ee)&&(Y[ee]=M[ee]);var pe=arguments.length-2;if(pe===1)Y.children=te;else if(1<pe){for(var ce=Array(pe),Te=0;Te<pe;Te++)ce[Te]=arguments[Te+2];Y.children=ce}if(D&&D.defaultProps)for(ee in pe=D.defaultProps,pe)Y[ee]===void 0&&(Y[ee]=pe[ee]);return{$$typeof:e,type:D,key:re,ref:le,props:Y,_owner:$.current}}function F(D,M){return{$$typeof:e,type:D.type,key:M,ref:D.ref,props:D.props,_owner:D._owner}}function N(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function z(D){var M={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(te){return M[te]})}var A=/\/+/g;function B(D,M){return typeof D=="object"&&D!==null&&D.key!=null?z(""+D.key):M.toString(36)}function H(D,M,te,ee,Y){var re=typeof D;(re==="undefined"||re==="boolean")&&(D=null);var le=!1;if(D===null)le=!0;else switch(re){case"string":case"number":le=!0;break;case"object":switch(D.$$typeof){case e:case t:le=!0}}if(le)return le=D,Y=Y(le),D=ee===""?"."+B(le,0):ee,I(Y)?(te="",D!=null&&(te=D.replace(A,"$&/")+"/"),H(Y,M,te,"",function(Te){return Te})):Y!=null&&(N(Y)&&(Y=F(Y,te+(!Y.key||le&&le.key===Y.key?"":(""+Y.key).replace(A,"$&/")+"/")+D)),M.push(Y)),1;if(le=0,ee=ee===""?".":ee+":",I(D))for(var pe=0;pe<D.length;pe++){re=D[pe];var ce=ee+B(re,pe);le+=H(re,M,te,ce,Y)}else if(ce=y(D),typeof ce=="function")for(D=ce.call(D),pe=0;!(re=D.next()).done;)re=re.value,ce=ee+B(re,pe++),le+=H(re,M,te,ce,Y);else if(re==="object")throw M=String(D),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.");return le}function X(D,M,te){if(D==null)return D;var ee=[],Y=0;return H(D,ee,"","",function(re){return M.call(te,re,Y++)}),ee}function V(D){if(D._status===-1){var M=D._result;M=M(),M.then(function(te){(D._status===0||D._status===-1)&&(D._status=1,D._result=te)},function(te){(D._status===0||D._status===-1)&&(D._status=2,D._result=te)}),D._status===-1&&(D._status=0,D._result=M)}if(D._status===1)return D._result.default;throw D._result}var G={current:null},j={transition:null},J={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:j,ReactCurrentOwner:$};function K(){throw Error("act(...) is not supported in production builds of React.")}return Dt.Children={map:X,forEach:function(D,M,te){X(D,function(){M.apply(this,arguments)},te)},count:function(D){var M=0;return X(D,function(){M++}),M},toArray:function(D){return X(D,function(M){return M})||[]},only:function(D){if(!N(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Dt.Component=S,Dt.Fragment=n,Dt.Profiler=o,Dt.PureComponent=x,Dt.StrictMode=r,Dt.Suspense=f,Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Dt.act=K,Dt.cloneElement=function(D,M,te){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ee=b({},D.props),Y=D.key,re=D.ref,le=D._owner;if(M!=null){if(M.ref!==void 0&&(re=M.ref,le=$.current),M.key!==void 0&&(Y=""+M.key),D.type&&D.type.defaultProps)var pe=D.type.defaultProps;for(ce in M)P.call(M,ce)&&!_.hasOwnProperty(ce)&&(ee[ce]=M[ce]===void 0&&pe!==void 0?pe[ce]:M[ce])}var ce=arguments.length-2;if(ce===1)ee.children=te;else if(1<ce){pe=Array(ce);for(var Te=0;Te<ce;Te++)pe[Te]=arguments[Te+2];ee.children=pe}return{$$typeof:e,type:D.type,key:Y,ref:re,props:ee,_owner:le}},Dt.createContext=function(D){return D={$$typeof:l,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:s,_context:D},D.Consumer=D},Dt.createElement=L,Dt.createFactory=function(D){var M=L.bind(null,D);return M.type=D,M},Dt.createRef=function(){return{current:null}},Dt.forwardRef=function(D){return{$$typeof:u,render:D}},Dt.isValidElement=N,Dt.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:V}},Dt.memo=function(D,M){return{$$typeof:h,type:D,compare:M===void 0?null:M}},Dt.startTransition=function(D){var M=j.transition;j.transition={};try{D()}finally{j.transition=M}},Dt.unstable_act=K,Dt.useCallback=function(D,M){return G.current.useCallback(D,M)},Dt.useContext=function(D){return G.current.useContext(D)},Dt.useDebugValue=function(){},Dt.useDeferredValue=function(D){return G.current.useDeferredValue(D)},Dt.useEffect=function(D,M){return G.current.useEffect(D,M)},Dt.useId=function(){return G.current.useId()},Dt.useImperativeHandle=function(D,M,te){return G.current.useImperativeHandle(D,M,te)},Dt.useInsertionEffect=function(D,M){return G.current.useInsertionEffect(D,M)},Dt.useLayoutEffect=function(D,M){return G.current.useLayoutEffect(D,M)},Dt.useMemo=function(D,M){return G.current.useMemo(D,M)},Dt.useReducer=function(D,M,te){return G.current.useReducer(D,M,te)},Dt.useRef=function(D){return G.current.useRef(D)},Dt.useState=function(D){return G.current.useState(D)},Dt.useSyncExternalStore=function(D,M,te){return G.current.useSyncExternalStore(D,M,te)},Dt.useTransition=function(){return G.current.useTransition()},Dt.version="18.3.1",Dt}var r1;function pd(){return r1||(r1=1,xh.exports=z4()),xh.exports}var o1;function B4(){if(o1)return Js;o1=1;var e=pd(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,f,h){var m,g={},y=null,w=null;h!==void 0&&(y=""+h),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)r.call(f,m)&&!s.hasOwnProperty(m)&&(g[m]=f[m]);if(u&&u.defaultProps)for(m in f=u.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:u,key:y,ref:w,props:g,_owner:o.current}}return Js.Fragment=n,Js.jsx=l,Js.jsxs=l,Js}var i1;function H4(){return i1||(i1=1,Eh.exports=B4()),Eh.exports}var Ce=H4(),d=pd();const He=hs(d),Xl=Z2({__proto__:null,default:He},[d]);var hc={},Oh={exports:{}},_r={},Rh={exports:{}},Ih={};var a1;function U4(){return a1||(a1=1,(function(e){function t(j,J){var K=j.length;j.push(J);e:for(;0<K;){var D=K-1>>>1,M=j[D];if(0<o(M,J))j[D]=J,j[K]=M,K=D;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var J=j[0],K=j.pop();if(K!==J){j[0]=K;e:for(var D=0,M=j.length,te=M>>>1;D<te;){var ee=2*(D+1)-1,Y=j[ee],re=ee+1,le=j[re];if(0>o(Y,K))re<M&&0>o(le,Y)?(j[D]=le,j[re]=K,D=re):(j[D]=Y,j[ee]=K,D=ee);else if(re<M&&0>o(le,K))j[D]=le,j[re]=K,D=re;else break e}}return J}function o(j,J){var K=j.sortIndex-J.sortIndex;return K!==0?K:j.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],h=[],m=1,g=null,y=3,w=!1,b=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(j){for(var J=n(h);J!==null;){if(J.callback===null)r(h);else if(J.startTime<=j)r(h),J.sortIndex=J.expirationTime,t(f,J);else break;J=n(h)}}function I(j){if(C=!1,R(j),!b)if(n(f)!==null)b=!0,V(P);else{var J=n(h);J!==null&&G(I,J.startTime-j)}}function P(j,J){b=!1,C&&(C=!1,O(L),L=-1),w=!0;var K=y;try{for(R(J),g=n(f);g!==null&&(!(g.expirationTime>J)||j&&!z());){var D=g.callback;if(typeof D=="function"){g.callback=null,y=g.priorityLevel;var M=D(g.expirationTime<=J);J=e.unstable_now(),typeof M=="function"?g.callback=M:g===n(f)&&r(f),R(J)}else r(f);g=n(f)}if(g!==null)var te=!0;else{var ee=n(h);ee!==null&&G(I,ee.startTime-J),te=!1}return te}finally{g=null,y=K,w=!1}}var $=!1,_=null,L=-1,F=5,N=-1;function z(){return!(e.unstable_now()-N<F)}function A(){if(_!==null){var j=e.unstable_now();N=j;var J=!0;try{J=_(!0,j)}finally{J?B():($=!1,_=null)}}else $=!1}var B;if(typeof x=="function")B=function(){x(A)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,X=H.port2;H.port1.onmessage=A,B=function(){X.postMessage(null)}}else B=function(){S(A,0)};function V(j){_=j,$||($=!0,B())}function G(j,J){L=S(function(){j(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){b||w||(b=!0,V(P))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(j){switch(y){case 1:case 2:case 3:var J=3;break;default:J=y}var K=y;y=J;try{return j()}finally{y=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,J){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var K=y;y=j;try{return J()}finally{y=K}},e.unstable_scheduleCallback=function(j,J,K){var D=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?D+K:D):K=D,j){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=K+M,j={id:m++,callback:J,priorityLevel:j,startTime:K,expirationTime:M,sortIndex:-1},K>D?(j.sortIndex=K,t(h,j),n(f)===null&&j===n(h)&&(C?(O(L),L=-1):C=!0,G(I,K-D))):(j.sortIndex=M,t(f,j),b||w||(b=!0,V(P))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var J=y;return function(){var K=y;y=J;try{return j.apply(this,arguments)}finally{y=K}}}})(Ih)),Ih}var s1;function V4(){return s1||(s1=1,Rh.exports=U4()),Rh.exports}var l1;function W4(){if(l1)return _r;l1=1;var e=pd(),t=V4();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function s(i,a){l(i,a),l(i+"Capture",a)}function l(i,a){for(o[i]=a,i=0;i<a.length;i++)r.add(a[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function y(i){return f.call(g,i)?!0:f.call(m,i)?!1:h.test(i)?g[i]=!0:(m[i]=!0,!1)}function w(i,a,c,p){if(c!==null&&c.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:c!==null?!c.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function b(i,a,c,p){if(a===null||typeof a>"u"||w(i,a,c,p))return!0;if(p)return!1;if(c!==null)switch(c.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(i,a,c,p,v,E,T){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=v,this.mustUseProperty=c,this.propertyName=i,this.type=a,this.sanitizeURL=E,this.removeEmptyString=T}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){S[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];S[a]=new C(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){S[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){S[i]=new C(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){S[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){S[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){S[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){S[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){S[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function x(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace(O,x);S[a]=new C(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(O,x);S[a]=new C(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(O,x);S[a]=new C(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){S[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){S[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,a,c,p){var v=S.hasOwnProperty(a)?S[a]:null;(v!==null?v.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(b(a,c,v,p)&&(c=null),p||v===null?y(a)&&(c===null?i.removeAttribute(a):i.setAttribute(a,""+c)):v.mustUseProperty?i[v.propertyName]=c===null?v.type===3?!1:"":c:(a=v.attributeName,p=v.attributeNamespace,c===null?i.removeAttribute(a):(v=v.type,c=v===3||v===4&&c===!0?"":""+c,p?i.setAttributeNS(p,a,c):i.setAttribute(a,c))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for("react.element"),$=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),z=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),j=Symbol.iterator;function J(i){return i===null||typeof i!="object"?null:(i=j&&i[j]||i["@@iterator"],typeof i=="function"?i:null)}var K=Object.assign,D;function M(i){if(D===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);D=a&&a[1]||""}return`
|
|
3
|
-
`+D+i}var te=!1;function ee(i,a){if(!i||te)return"";te=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(oe){var p=oe}Reflect.construct(i,[],a)}else{try{a.call()}catch(oe){p=oe}i.call(a.prototype)}else{try{throw Error()}catch(oe){p=oe}i()}}catch(oe){if(oe&&p&&typeof oe.stack=="string"){for(var v=oe.stack.split(`
|
|
4
|
-
`),E=p.stack.split(`
|
|
5
|
-
`),T=v.length-1,k=E.length-1;1<=T&&0<=k&&v[T]!==E[k];)k--;for(;1<=T&&0<=k;T--,k--)if(v[T]!==E[k]){if(T!==1||k!==1)do if(T--,k--,0>k||v[T]!==E[k]){var W=`
|
|
6
|
-
`+v[T].replace(" at new "," at ");return i.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",i.displayName)),W}while(1<=T&&0<=k);break}}}finally{te=!1,Error.prepareStackTrace=c}return(i=i?i.displayName||i.name:"")?M(i):""}function Y(i){switch(i.tag){case 5:return M(i.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return i=ee(i.type,!1),i;case 11:return i=ee(i.type.render,!1),i;case 1:return i=ee(i.type,!0),i;default:return""}}function re(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case _:return"Fragment";case $:return"Portal";case F:return"Profiler";case L:return"StrictMode";case B:return"Suspense";case H:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case z:return(i.displayName||"Context")+".Consumer";case N:return(i._context.displayName||"Context")+".Provider";case A:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case X:return a=i.displayName||null,a!==null?a:re(i.type)||"Memo";case V:a=i._payload,i=i._init;try{return re(i(a))}catch{}}return null}function le(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(a);case 8:return a===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function pe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ce(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Te(i){var a=ce(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),p=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,E=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return v.call(this)},set:function(T){p=""+T,E.call(this,T)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return p},setValue:function(T){p=""+T},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function fe(i){i._valueTracker||(i._valueTracker=Te(i))}function ue(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),p="";return i&&(p=ce(i)?i.checked?"true":"false":i.value),i=p,i!==c?(a.setValue(i),!0):!1}function he(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function be(i,a){var c=a.checked;return K({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??i._wrapperState.initialChecked})}function ve(i,a){var c=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;c=pe(a.value!=null?a.value:c),i._wrapperState={initialChecked:p,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function xe(i,a){a=a.checked,a!=null&&R(i,"checked",a,!1)}function Ne(i,a){xe(i,a);var c=pe(a.value),p=a.type;if(c!=null)p==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+c):i.value!==""+c&&(i.value=""+c);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?_e(i,a.type,c):a.hasOwnProperty("defaultValue")&&_e(i,a.type,pe(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Pe(i,a,c){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,c||a===i.value||(i.value=a),i.defaultValue=a}c=i.name,c!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,c!==""&&(i.name=c)}function _e(i,a,c){(a!=="number"||he(i.ownerDocument)!==i)&&(c==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+c&&(i.defaultValue=""+c))}var We=Array.isArray;function De(i,a,c,p){if(i=i.options,a){a={};for(var v=0;v<c.length;v++)a["$"+c[v]]=!0;for(c=0;c<i.length;c++)v=a.hasOwnProperty("$"+i[c].value),i[c].selected!==v&&(i[c].selected=v),v&&p&&(i[c].defaultSelected=!0)}else{for(c=""+pe(c),a=null,v=0;v<i.length;v++){if(i[v].value===c){i[v].selected=!0,p&&(i[v].defaultSelected=!0);return}a!==null||i[v].disabled||(a=i[v])}a!==null&&(a.selected=!0)}}function qe(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return K({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Ye(i,a){var c=a.value;if(c==null){if(c=a.children,a=a.defaultValue,c!=null){if(a!=null)throw Error(n(92));if(We(c)){if(1<c.length)throw Error(n(93));c=c[0]}a=c}a==null&&(a=""),c=a}i._wrapperState={initialValue:pe(c)}}function Ie(i,a){var c=pe(a.value),p=pe(a.defaultValue);c!=null&&(c=""+c,c!==i.value&&(i.value=c),a.defaultValue==null&&i.defaultValue!==c&&(i.defaultValue=c)),p!=null&&(i.defaultValue=""+p)}function dt(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function ft(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ht(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?ft(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var st,et=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,p,v){MSApp.execUnsafeLocalFunction(function(){return i(a,c,p,v)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=st.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function lt(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mt=["Webkit","ms","Moz","O"];Object.keys(ke).forEach(function(i){mt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),ke[a]=ke[i]})});function St(i,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||ke.hasOwnProperty(i)&&ke[i]?(""+a).trim():a+"px"}function nt(i,a){i=i.style;for(var c in a)if(a.hasOwnProperty(c)){var p=c.indexOf("--")===0,v=St(c,a[c],p);c==="float"&&(c="cssFloat"),p?i.setProperty(c,v):i[c]=v}}var tt=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Et(i,a){if(a){if(tt[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function rt(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=null;function Nt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Cn=null,Gt=null,en=null;function cn(i){if(i=ks(i)){if(typeof Cn!="function")throw Error(n(280));var a=i.stateNode;a&&(a=Tu(a),Cn(i.stateNode,i.type,a))}}function Ut(i){Gt?en?en.push(i):en=[i]:Gt=i}function It(){if(Gt){var i=Gt,a=en;if(en=Gt=null,cn(i),a)for(i=0;i<a.length;i++)cn(a[i])}}function Ct(i,a){return i(a)}function Vt(){}var Mt=!1;function Ve(i,a,c){if(Mt)return i(a,c);Mt=!0;try{return Ct(i,a,c)}finally{Mt=!1,(Gt!==null||en!==null)&&(Vt(),It())}}function it(i,a){var c=i.stateNode;if(c===null)return null;var p=Tu(c);if(p===null)return null;c=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(n(231,a,typeof c));return c}var Tt=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Tt=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{Tt=!1}function de(i,a,c,p,v,E,T,k,W){var oe=Array.prototype.slice.call(arguments,3);try{a.apply(c,oe)}catch(ge){this.onError(ge)}}var se=!1,we=null,Ke=!1,Ae=null,_t={onError:function(i){se=!0,we=i}};function kt(i,a,c,p,v,E,T,k,W){se=!1,we=null,de.apply(_t,arguments)}function Pt(i,a,c,p,v,E,T,k,W){if(kt.apply(this,arguments),se){if(se){var oe=we;se=!1,we=null}else throw Error(n(198));Ke||(Ke=!0,Ae=oe)}}function Ot(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function dn(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function an(i){if(Ot(i)!==i)throw Error(n(188))}function gn(i){var a=i.alternate;if(!a){if(a=Ot(i),a===null)throw Error(n(188));return a!==i?null:i}for(var c=i,p=a;;){var v=c.return;if(v===null)break;var E=v.alternate;if(E===null){if(p=v.return,p!==null){c=p;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===c)return an(v),i;if(E===p)return an(v),a;E=E.sibling}throw Error(n(188))}if(c.return!==p.return)c=v,p=E;else{for(var T=!1,k=v.child;k;){if(k===c){T=!0,c=v,p=E;break}if(k===p){T=!0,p=v,c=E;break}k=k.sibling}if(!T){for(k=E.child;k;){if(k===c){T=!0,c=E,p=v;break}if(k===p){T=!0,p=E,c=v;break}k=k.sibling}if(!T)throw Error(n(189))}}if(c.alternate!==p)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?i:a}function Dn(i){return i=gn(i),i!==null?Jt(i):null}function Jt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Jt(i);if(a!==null)return a;i=i.sibling}return null}var fn=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,Me=t.unstable_shouldYield,gt=t.unstable_requestPaint,Je=t.unstable_now,jt=t.unstable_getCurrentPriorityLevel,Mn=t.unstable_ImmediatePriority,Hn=t.unstable_UserBlockingPriority,Xn=t.unstable_NormalPriority,Ur=t.unstable_LowPriority,kn=t.unstable_IdlePriority,vn=null,En=null;function Cr(i){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(vn,i,void 0,(i.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:Er,wr=Math.log,Jn=Math.LN2;function Er(i){return i>>>=0,i===0?32:31-(wr(i)/Jn|0)|0}var Zn=64,er=4194304;function sr(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function zt(i,a){var c=i.pendingLanes;if(c===0)return 0;var p=0,v=i.suspendedLanes,E=i.pingedLanes,T=c&268435455;if(T!==0){var k=T&~v;k!==0?p=sr(k):(E&=T,E!==0&&(p=sr(E)))}else T=c&~v,T!==0?p=sr(T):E!==0&&(p=sr(E));if(p===0)return 0;if(a!==0&&a!==p&&(a&v)===0&&(v=p&-p,E=a&-a,v>=E||v===16&&(E&4194240)!==0))return a;if((p&4)!==0&&(p|=c&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=p;0<a;)c=31-xn(a),v=1<<c,p|=i[c],a&=~v;return p}function je(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Le(i,a){for(var c=i.suspendedLanes,p=i.pingedLanes,v=i.expirationTimes,E=i.pendingLanes;0<E;){var T=31-xn(E),k=1<<T,W=v[T];W===-1?((k&c)===0||(k&p)!==0)&&(v[T]=je(k,a)):W<=a&&(i.expiredLanes|=k),E&=~k}}function Ft(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Bt(){var i=Zn;return Zn<<=1,(Zn&4194240)===0&&(Zn=64),i}function Wt(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function Qt(i,a,c){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-xn(a),i[a]=c}function tr(i,a){var c=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0<c;){var v=31-xn(c),E=1<<v;a[v]=0,p[v]=-1,i[v]=-1,c&=~E}}function On(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var p=31-xn(c),v=1<<p;v&a|i[p]&a&&(i[p]|=a),c&=~v}}var wt=0;function An(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Un,xr,Vn,Zo,ha,lr=!1,so=[],Or=null,Wn=null,nr=null,lo=new Map,Ro=new Map,Vr=[],Os="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pa(i,a){switch(i){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":lo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ro.delete(a.pointerId)}}function ze(i,a,c,p,v,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:c,eventSystemFlags:p,nativeEvent:E,targetContainers:[v]},a!==null&&(a=ks(a),a!==null&&xr(a)),i):(i.eventSystemFlags|=p,a=i.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),i)}function pt(i,a,c,p,v){switch(a){case"focusin":return Or=ze(Or,i,a,c,p,v),!0;case"dragenter":return Wn=ze(Wn,i,a,c,p,v),!0;case"mouseover":return nr=ze(nr,i,a,c,p,v),!0;case"pointerover":var E=v.pointerId;return lo.set(E,ze(lo.get(E)||null,i,a,c,p,v)),!0;case"gotpointercapture":return E=v.pointerId,Ro.set(E,ze(Ro.get(E)||null,i,a,c,p,v)),!0}return!1}function tn(i){var a=Fi(i.target);if(a!==null){var c=Ot(a);if(c!==null){if(a=c.tag,a===13){if(a=dn(c),a!==null){i.blockedOn=a,ha(i.priority,function(){Vn(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function hn(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=Qd(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(c===null){c=i.nativeEvent;var p=new c.constructor(c.type,c);xt=p,c.target.dispatchEvent(p),xt=null}else return a=ks(c),a!==null&&xr(a),i.blockedOn=c,!1;a.shift()}return!0}function sn(i,a,c){hn(i)&&c.delete(a)}function ma(){lr=!1,Or!==null&&hn(Or)&&(Or=null),Wn!==null&&hn(Wn)&&(Wn=null),nr!==null&&hn(nr)&&(nr=null),lo.forEach(sn),Ro.forEach(sn)}function zo(i,a){i.blockedOn===a&&(i.blockedOn=null,lr||(lr=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ma)))}function ei(i){function a(v){return zo(v,i)}if(0<so.length){zo(so[0],i);for(var c=1;c<so.length;c++){var p=so[c];p.blockedOn===i&&(p.blockedOn=null)}}for(Or!==null&&zo(Or,i),Wn!==null&&zo(Wn,i),nr!==null&&zo(nr,i),lo.forEach(a),Ro.forEach(a),c=0;c<Vr.length;c++)p=Vr[c],p.blockedOn===i&&(p.blockedOn=null);for(;0<Vr.length&&(c=Vr[0],c.blockedOn===null);)tn(c),c.blockedOn===null&&Vr.shift()}var uo=I.ReactCurrentBatchConfig,mu=!0;function dx(i,a,c,p){var v=wt,E=uo.transition;uo.transition=null;try{wt=1,Gd(i,a,c,p)}finally{wt=v,uo.transition=E}}function fx(i,a,c,p){var v=wt,E=uo.transition;uo.transition=null;try{wt=4,Gd(i,a,c,p)}finally{wt=v,uo.transition=E}}function Gd(i,a,c,p){if(mu){var v=Qd(i,a,c,p);if(v===null)hf(i,a,p,gu,c),pa(i,p);else if(pt(v,i,a,c,p))p.stopPropagation();else if(pa(i,p),a&4&&-1<Os.indexOf(i)){for(;v!==null;){var E=ks(v);if(E!==null&&Un(E),E=Qd(i,a,c,p),E===null&&hf(i,a,p,gu,c),E===v)break;v=E}v!==null&&p.stopPropagation()}else hf(i,a,p,null,c)}}var gu=null;function Qd(i,a,c,p){if(gu=null,i=Nt(p),i=Fi(i),i!==null)if(a=Ot(i),a===null)i=null;else if(c=a.tag,c===13){if(i=dn(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return gu=i,null}function Hg(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(jt()){case Mn:return 1;case Hn:return 4;case Xn:case Ur:return 16;case kn:return 536870912;default:return 16}default:return 16}}var ti=null,Yd=null,vu=null;function Ug(){if(vu)return vu;var i,a=Yd,c=a.length,p,v="value"in ti?ti.value:ti.textContent,E=v.length;for(i=0;i<c&&a[i]===v[i];i++);var T=c-i;for(p=1;p<=T&&a[c-p]===v[E-p];p++);return vu=v.slice(i,1<p?1-p:void 0)}function yu(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Su(){return!0}function Vg(){return!1}function Mr(i){function a(c,p,v,E,T){this._reactName=c,this._targetInst=v,this.type=p,this.nativeEvent=E,this.target=T,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(E):E[k]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Su:Vg,this.isPropagationStopped=Vg,this}return K(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),a}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xd=Mr(ga),Rs=K({},ga,{view:0,detail:0}),hx=Mr(Rs),Jd,Zd,Is,bu=K({},Rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tf,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Is&&(Is&&i.type==="mousemove"?(Jd=i.screenX-Is.screenX,Zd=i.screenY-Is.screenY):Zd=Jd=0,Is=i),Jd)},movementY:function(i){return"movementY"in i?i.movementY:Zd}}),Wg=Mr(bu),px=K({},bu,{dataTransfer:0}),mx=Mr(px),gx=K({},Rs,{relatedTarget:0}),ef=Mr(gx),vx=K({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),yx=Mr(vx),Sx=K({},ga,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),bx=Mr(Sx),Cx=K({},ga,{data:0}),qg=Mr(Cx),wx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ex={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ox(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=xx[i])?!!a[i]:!1}function tf(){return Ox}var Rx=K({},Rs,{key:function(i){if(i.key){var a=wx[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=yu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Ex[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tf,charCode:function(i){return i.type==="keypress"?yu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?yu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Ix=Mr(Rx),Tx=K({},bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kg=Mr(Tx),Px=K({},Rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tf}),$x=Mr(Px),_x=K({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dx=Mr(_x),Lx=K({},bu,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Fx=Mr(Lx),Nx=[9,13,27,32],nf=u&&"CompositionEvent"in window,Ts=null;u&&"documentMode"in document&&(Ts=document.documentMode);var Mx=u&&"TextEvent"in window&&!Ts,Gg=u&&(!nf||Ts&&8<Ts&&11>=Ts),Qg=" ",Yg=!1;function Xg(i,a){switch(i){case"keyup":return Nx.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jg(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var va=!1;function kx(i,a){switch(i){case"compositionend":return Jg(a);case"keypress":return a.which!==32?null:(Yg=!0,Qg);case"textInput":return i=a.data,i===Qg&&Yg?null:i;default:return null}}function Ax(i,a){if(va)return i==="compositionend"||!nf&&Xg(i,a)?(i=Ug(),vu=Yd=ti=null,va=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Gg&&a.locale!=="ko"?null:a.data;default:return null}}var jx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zg(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!jx[i.type]:a==="textarea"}function ev(i,a,c,p){Ut(p),a=Ou(a,"onChange"),0<a.length&&(c=new Xd("onChange","change",null,c,p),i.push({event:c,listeners:a}))}var Ps=null,$s=null;function zx(i){yv(i,0)}function Cu(i){var a=wa(i);if(ue(a))return i}function Bx(i,a){if(i==="change")return a}var tv=!1;if(u){var rf;if(u){var of="oninput"in document;if(!of){var nv=document.createElement("div");nv.setAttribute("oninput","return;"),of=typeof nv.oninput=="function"}rf=of}else rf=!1;tv=rf&&(!document.documentMode||9<document.documentMode)}function rv(){Ps&&(Ps.detachEvent("onpropertychange",ov),$s=Ps=null)}function ov(i){if(i.propertyName==="value"&&Cu($s)){var a=[];ev(a,$s,i,Nt(i)),Ve(zx,a)}}function Hx(i,a,c){i==="focusin"?(rv(),Ps=a,$s=c,Ps.attachEvent("onpropertychange",ov)):i==="focusout"&&rv()}function Ux(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Cu($s)}function Vx(i,a){if(i==="click")return Cu(a)}function Wx(i,a){if(i==="input"||i==="change")return Cu(a)}function qx(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var co=typeof Object.is=="function"?Object.is:qx;function _s(i,a){if(co(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),p=Object.keys(a);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var v=c[p];if(!f.call(a,v)||!co(i[v],a[v]))return!1}return!0}function iv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function av(i,a){var c=iv(i);i=0;for(var p;c;){if(c.nodeType===3){if(p=i+c.textContent.length,i<=a&&p>=a)return{node:c,offset:a-i};i=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=iv(c)}}function sv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?sv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function lv(){for(var i=window,a=he();a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=he(i.document)}return a}function af(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function Kx(i){var a=lv(),c=i.focusedElem,p=i.selectionRange;if(a!==c&&c&&c.ownerDocument&&sv(c.ownerDocument.documentElement,c)){if(p!==null&&af(c)){if(a=p.start,i=p.end,i===void 0&&(i=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(i,c.value.length);else if(i=(a=c.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var v=c.textContent.length,E=Math.min(p.start,v);p=p.end===void 0?E:Math.min(p.end,v),!i.extend&&E>p&&(v=p,p=E,E=v),v=av(c,E);var T=av(c,p);v&&T&&(i.rangeCount!==1||i.anchorNode!==v.node||i.anchorOffset!==v.offset||i.focusNode!==T.node||i.focusOffset!==T.offset)&&(a=a.createRange(),a.setStart(v.node,v.offset),i.removeAllRanges(),E>p?(i.addRange(a),i.extend(T.node,T.offset)):(a.setEnd(T.node,T.offset),i.addRange(a)))}}for(a=[],i=c;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)i=a[c],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Gx=u&&"documentMode"in document&&11>=document.documentMode,ya=null,sf=null,Ds=null,lf=!1;function uv(i,a,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;lf||ya==null||ya!==he(p)||(p=ya,"selectionStart"in p&&af(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Ds&&_s(Ds,p)||(Ds=p,p=Ou(sf,"onSelect"),0<p.length&&(a=new Xd("onSelect","select",null,a,c),i.push({event:a,listeners:p}),a.target=ya)))}function wu(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var Sa={animationend:wu("Animation","AnimationEnd"),animationiteration:wu("Animation","AnimationIteration"),animationstart:wu("Animation","AnimationStart"),transitionend:wu("Transition","TransitionEnd")},uf={},cv={};u&&(cv=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Eu(i){if(uf[i])return uf[i];if(!Sa[i])return i;var a=Sa[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in cv)return uf[i]=a[c];return i}var dv=Eu("animationend"),fv=Eu("animationiteration"),hv=Eu("animationstart"),pv=Eu("transitionend"),mv=new Map,gv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ni(i,a){mv.set(i,a),s(a,[i])}for(var cf=0;cf<gv.length;cf++){var df=gv[cf],Qx=df.toLowerCase(),Yx=df[0].toUpperCase()+df.slice(1);ni(Qx,"on"+Yx)}ni(dv,"onAnimationEnd"),ni(fv,"onAnimationIteration"),ni(hv,"onAnimationStart"),ni("dblclick","onDoubleClick"),ni("focusin","onFocus"),ni("focusout","onBlur"),ni(pv,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ls));function vv(i,a,c){var p=i.type||"unknown-event";i.currentTarget=c,Pt(p,a,void 0,i),i.currentTarget=null}function yv(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var p=i[c],v=p.event;p=p.listeners;e:{var E=void 0;if(a)for(var T=p.length-1;0<=T;T--){var k=p[T],W=k.instance,oe=k.currentTarget;if(k=k.listener,W!==E&&v.isPropagationStopped())break e;vv(v,k,oe),E=W}else for(T=0;T<p.length;T++){if(k=p[T],W=k.instance,oe=k.currentTarget,k=k.listener,W!==E&&v.isPropagationStopped())break e;vv(v,k,oe),E=W}}}if(Ke)throw i=Ae,Ke=!1,Ae=null,i}function ln(i,a){var c=a[Sf];c===void 0&&(c=a[Sf]=new Set);var p=i+"__bubble";c.has(p)||(Sv(a,i,2,!1),c.add(p))}function ff(i,a,c){var p=0;a&&(p|=4),Sv(c,i,p,a)}var xu="_reactListening"+Math.random().toString(36).slice(2);function Fs(i){if(!i[xu]){i[xu]=!0,r.forEach(function(c){c!=="selectionchange"&&(Xx.has(c)||ff(c,!1,i),ff(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[xu]||(a[xu]=!0,ff("selectionchange",!1,a))}}function Sv(i,a,c,p){switch(Hg(a)){case 1:var v=dx;break;case 4:v=fx;break;default:v=Gd}c=v.bind(null,a,c,i),v=void 0,!Tt||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),p?v!==void 0?i.addEventListener(a,c,{capture:!0,passive:v}):i.addEventListener(a,c,!0):v!==void 0?i.addEventListener(a,c,{passive:v}):i.addEventListener(a,c,!1)}function hf(i,a,c,p,v){var E=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var T=p.tag;if(T===3||T===4){var k=p.stateNode.containerInfo;if(k===v||k.nodeType===8&&k.parentNode===v)break;if(T===4)for(T=p.return;T!==null;){var W=T.tag;if((W===3||W===4)&&(W=T.stateNode.containerInfo,W===v||W.nodeType===8&&W.parentNode===v))return;T=T.return}for(;k!==null;){if(T=Fi(k),T===null)return;if(W=T.tag,W===5||W===6){p=E=T;continue e}k=k.parentNode}}p=p.return}Ve(function(){var oe=E,ge=Nt(c),ye=[];e:{var me=mv.get(i);if(me!==void 0){var Be=Xd,Qe=i;switch(i){case"keypress":if(yu(c)===0)break e;case"keydown":case"keyup":Be=Ix;break;case"focusin":Qe="focus",Be=ef;break;case"focusout":Qe="blur",Be=ef;break;case"beforeblur":case"afterblur":Be=ef;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Be=Wg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Be=mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Be=$x;break;case dv:case fv:case hv:Be=yx;break;case pv:Be=Dx;break;case"scroll":Be=hx;break;case"wheel":Be=Fx;break;case"copy":case"cut":case"paste":Be=bx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Be=Kg}var Xe=(a&4)!==0,Rn=!Xe&&i==="scroll",Z=Xe?me!==null?me+"Capture":null:me;Xe=[];for(var Q=oe,ne;Q!==null;){ne=Q;var Ee=ne.stateNode;if(ne.tag===5&&Ee!==null&&(ne=Ee,Z!==null&&(Ee=it(Q,Z),Ee!=null&&Xe.push(Ns(Q,Ee,ne)))),Rn)break;Q=Q.return}0<Xe.length&&(me=new Be(me,Qe,null,c,ge),ye.push({event:me,listeners:Xe}))}}if((a&7)===0){e:{if(me=i==="mouseover"||i==="pointerover",Be=i==="mouseout"||i==="pointerout",me&&c!==xt&&(Qe=c.relatedTarget||c.fromElement)&&(Fi(Qe)||Qe[Bo]))break e;if((Be||me)&&(me=ge.window===ge?ge:(me=ge.ownerDocument)?me.defaultView||me.parentWindow:window,Be?(Qe=c.relatedTarget||c.toElement,Be=oe,Qe=Qe?Fi(Qe):null,Qe!==null&&(Rn=Ot(Qe),Qe!==Rn||Qe.tag!==5&&Qe.tag!==6)&&(Qe=null)):(Be=null,Qe=oe),Be!==Qe)){if(Xe=Wg,Ee="onMouseLeave",Z="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(Xe=Kg,Ee="onPointerLeave",Z="onPointerEnter",Q="pointer"),Rn=Be==null?me:wa(Be),ne=Qe==null?me:wa(Qe),me=new Xe(Ee,Q+"leave",Be,c,ge),me.target=Rn,me.relatedTarget=ne,Ee=null,Fi(ge)===oe&&(Xe=new Xe(Z,Q+"enter",Qe,c,ge),Xe.target=ne,Xe.relatedTarget=Rn,Ee=Xe),Rn=Ee,Be&&Qe)t:{for(Xe=Be,Z=Qe,Q=0,ne=Xe;ne;ne=ba(ne))Q++;for(ne=0,Ee=Z;Ee;Ee=ba(Ee))ne++;for(;0<Q-ne;)Xe=ba(Xe),Q--;for(;0<ne-Q;)Z=ba(Z),ne--;for(;Q--;){if(Xe===Z||Z!==null&&Xe===Z.alternate)break t;Xe=ba(Xe),Z=ba(Z)}Xe=null}else Xe=null;Be!==null&&bv(ye,me,Be,Xe,!1),Qe!==null&&Rn!==null&&bv(ye,Rn,Qe,Xe,!0)}}e:{if(me=oe?wa(oe):window,Be=me.nodeName&&me.nodeName.toLowerCase(),Be==="select"||Be==="input"&&me.type==="file")var Ze=Bx;else if(Zg(me))if(tv)Ze=Wx;else{Ze=Ux;var ut=Hx}else(Be=me.nodeName)&&Be.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(Ze=Vx);if(Ze&&(Ze=Ze(i,oe))){ev(ye,Ze,c,ge);break e}ut&&ut(i,me,oe),i==="focusout"&&(ut=me._wrapperState)&&ut.controlled&&me.type==="number"&&_e(me,"number",me.value)}switch(ut=oe?wa(oe):window,i){case"focusin":(Zg(ut)||ut.contentEditable==="true")&&(ya=ut,sf=oe,Ds=null);break;case"focusout":Ds=sf=ya=null;break;case"mousedown":lf=!0;break;case"contextmenu":case"mouseup":case"dragend":lf=!1,uv(ye,c,ge);break;case"selectionchange":if(Gx)break;case"keydown":case"keyup":uv(ye,c,ge)}var ct;if(nf)e:{switch(i){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else va?Xg(i,c)&&(vt="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(vt="onCompositionStart");vt&&(Gg&&c.locale!=="ko"&&(va||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&va&&(ct=Ug()):(ti=ge,Yd="value"in ti?ti.value:ti.textContent,va=!0)),ut=Ou(oe,vt),0<ut.length&&(vt=new qg(vt,i,null,c,ge),ye.push({event:vt,listeners:ut}),ct?vt.data=ct:(ct=Jg(c),ct!==null&&(vt.data=ct)))),(ct=Mx?kx(i,c):Ax(i,c))&&(oe=Ou(oe,"onBeforeInput"),0<oe.length&&(ge=new qg("onBeforeInput","beforeinput",null,c,ge),ye.push({event:ge,listeners:oe}),ge.data=ct))}yv(ye,a)})}function Ns(i,a,c){return{instance:i,listener:a,currentTarget:c}}function Ou(i,a){for(var c=a+"Capture",p=[];i!==null;){var v=i,E=v.stateNode;v.tag===5&&E!==null&&(v=E,E=it(i,c),E!=null&&p.unshift(Ns(i,E,v)),E=it(i,a),E!=null&&p.push(Ns(i,E,v))),i=i.return}return p}function ba(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function bv(i,a,c,p,v){for(var E=a._reactName,T=[];c!==null&&c!==p;){var k=c,W=k.alternate,oe=k.stateNode;if(W!==null&&W===p)break;k.tag===5&&oe!==null&&(k=oe,v?(W=it(c,E),W!=null&&T.unshift(Ns(c,W,k))):v||(W=it(c,E),W!=null&&T.push(Ns(c,W,k)))),c=c.return}T.length!==0&&i.push({event:a,listeners:T})}var Jx=/\r\n?/g,Zx=/\u0000|\uFFFD/g;function Cv(i){return(typeof i=="string"?i:""+i).replace(Jx,`
|
|
7
|
-
`).replace(Zx,"")}function Ru(i,a,c){if(a=Cv(a),Cv(i)!==a&&c)throw Error(n(425))}function Iu(){}var pf=null,mf=null;function gf(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var vf=typeof setTimeout=="function"?setTimeout:void 0,e4=typeof clearTimeout=="function"?clearTimeout:void 0,wv=typeof Promise=="function"?Promise:void 0,t4=typeof queueMicrotask=="function"?queueMicrotask:typeof wv<"u"?function(i){return wv.resolve(null).then(i).catch(n4)}:vf;function n4(i){setTimeout(function(){throw i})}function yf(i,a){var c=a,p=0;do{var v=c.nextSibling;if(i.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"){if(p===0){i.removeChild(v),ei(a);return}p--}else c!=="$"&&c!=="$?"&&c!=="$!"||p++;c=v}while(c);ei(a)}function ri(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function Ev(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return i;a--}else c==="/$"&&a++}i=i.previousSibling}return null}var Ca=Math.random().toString(36).slice(2),Io="__reactFiber$"+Ca,Ms="__reactProps$"+Ca,Bo="__reactContainer$"+Ca,Sf="__reactEvents$"+Ca,r4="__reactListeners$"+Ca,o4="__reactHandles$"+Ca;function Fi(i){var a=i[Io];if(a)return a;for(var c=i.parentNode;c;){if(a=c[Bo]||c[Io]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=Ev(i);i!==null;){if(c=i[Io])return c;i=Ev(i)}return a}i=c,c=i.parentNode}return null}function ks(i){return i=i[Io]||i[Bo],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function wa(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Tu(i){return i[Ms]||null}var bf=[],Ea=-1;function oi(i){return{current:i}}function un(i){0>Ea||(i.current=bf[Ea],bf[Ea]=null,Ea--)}function rn(i,a){Ea++,bf[Ea]=i.current,i.current=a}var ii={},ur=oi(ii),Rr=oi(!1),Ni=ii;function xa(i,a){var c=i.type.contextTypes;if(!c)return ii;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var v={},E;for(E in c)v[E]=a[E];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=v),v}function Ir(i){return i=i.childContextTypes,i!=null}function Pu(){un(Rr),un(ur)}function xv(i,a,c){if(ur.current!==ii)throw Error(n(168));rn(ur,a),rn(Rr,c)}function Ov(i,a,c){var p=i.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return c;p=p.getChildContext();for(var v in p)if(!(v in a))throw Error(n(108,le(i)||"Unknown",v));return K({},c,p)}function $u(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ii,Ni=ur.current,rn(ur,i),rn(Rr,Rr.current),!0}function Rv(i,a,c){var p=i.stateNode;if(!p)throw Error(n(169));c?(i=Ov(i,a,Ni),p.__reactInternalMemoizedMergedChildContext=i,un(Rr),un(ur),rn(ur,i)):un(Rr),rn(Rr,c)}var Ho=null,_u=!1,Cf=!1;function Iv(i){Ho===null?Ho=[i]:Ho.push(i)}function i4(i){_u=!0,Iv(i)}function ai(){if(!Cf&&Ho!==null){Cf=!0;var i=0,a=wt;try{var c=Ho;for(wt=1;i<c.length;i++){var p=c[i];do p=p(!0);while(p!==null)}Ho=null,_u=!1}catch(v){throw Ho!==null&&(Ho=Ho.slice(i+1)),fn(Mn,ai),v}finally{wt=a,Cf=!1}}return null}var Oa=[],Ra=0,Du=null,Lu=0,Wr=[],qr=0,Mi=null,Uo=1,Vo="";function ki(i,a){Oa[Ra++]=Lu,Oa[Ra++]=Du,Du=i,Lu=a}function Tv(i,a,c){Wr[qr++]=Uo,Wr[qr++]=Vo,Wr[qr++]=Mi,Mi=i;var p=Uo;i=Vo;var v=32-xn(p)-1;p&=~(1<<v),c+=1;var E=32-xn(a)+v;if(30<E){var T=v-v%5;E=(p&(1<<T)-1).toString(32),p>>=T,v-=T,Uo=1<<32-xn(a)+v|c<<v|p,Vo=E+i}else Uo=1<<E|c<<v|p,Vo=i}function wf(i){i.return!==null&&(ki(i,1),Tv(i,1,0))}function Ef(i){for(;i===Du;)Du=Oa[--Ra],Oa[Ra]=null,Lu=Oa[--Ra],Oa[Ra]=null;for(;i===Mi;)Mi=Wr[--qr],Wr[qr]=null,Vo=Wr[--qr],Wr[qr]=null,Uo=Wr[--qr],Wr[qr]=null}var kr=null,Ar=null,pn=!1,fo=null;function Pv(i,a){var c=Yr(5,null,null,0);c.elementType="DELETED",c.stateNode=a,c.return=i,a=i.deletions,a===null?(i.deletions=[c],i.flags|=16):a.push(c)}function $v(i,a){switch(i.tag){case 5:var c=i.type;return a=a.nodeType!==1||c.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,kr=i,Ar=ri(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,kr=i,Ar=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(c=Mi!==null?{id:Uo,overflow:Vo}:null,i.memoizedState={dehydrated:a,treeContext:c,retryLane:1073741824},c=Yr(18,null,null,0),c.stateNode=a,c.return=i,i.child=c,kr=i,Ar=null,!0):!1;default:return!1}}function xf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Of(i){if(pn){var a=Ar;if(a){var c=a;if(!$v(i,a)){if(xf(i))throw Error(n(418));a=ri(c.nextSibling);var p=kr;a&&$v(i,a)?Pv(p,c):(i.flags=i.flags&-4097|2,pn=!1,kr=i)}}else{if(xf(i))throw Error(n(418));i.flags=i.flags&-4097|2,pn=!1,kr=i}}}function _v(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;kr=i}function Fu(i){if(i!==kr)return!1;if(!pn)return _v(i),pn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!gf(i.type,i.memoizedProps)),a&&(a=Ar)){if(xf(i))throw Dv(),Error(n(418));for(;a;)Pv(i,a),a=ri(a.nextSibling)}if(_v(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="/$"){if(a===0){Ar=ri(i.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++}i=i.nextSibling}Ar=null}}else Ar=kr?ri(i.stateNode.nextSibling):null;return!0}function Dv(){for(var i=Ar;i;)i=ri(i.nextSibling)}function Ia(){Ar=kr=null,pn=!1}function Rf(i){fo===null?fo=[i]:fo.push(i)}var a4=I.ReactCurrentBatchConfig;function As(i,a,c){if(i=c.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var p=c.stateNode}if(!p)throw Error(n(147,i));var v=p,E=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===E?a.ref:(a=function(T){var k=v.refs;T===null?delete k[E]:k[E]=T},a._stringRef=E,a)}if(typeof i!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,i))}return i}function Nu(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Lv(i){var a=i._init;return a(i._payload)}function Fv(i){function a(Z,Q){if(i){var ne=Z.deletions;ne===null?(Z.deletions=[Q],Z.flags|=16):ne.push(Q)}}function c(Z,Q){if(!i)return null;for(;Q!==null;)a(Z,Q),Q=Q.sibling;return null}function p(Z,Q){for(Z=new Map;Q!==null;)Q.key!==null?Z.set(Q.key,Q):Z.set(Q.index,Q),Q=Q.sibling;return Z}function v(Z,Q){return Z=pi(Z,Q),Z.index=0,Z.sibling=null,Z}function E(Z,Q,ne){return Z.index=ne,i?(ne=Z.alternate,ne!==null?(ne=ne.index,ne<Q?(Z.flags|=2,Q):ne):(Z.flags|=2,Q)):(Z.flags|=1048576,Q)}function T(Z){return i&&Z.alternate===null&&(Z.flags|=2),Z}function k(Z,Q,ne,Ee){return Q===null||Q.tag!==6?(Q=vh(ne,Z.mode,Ee),Q.return=Z,Q):(Q=v(Q,ne),Q.return=Z,Q)}function W(Z,Q,ne,Ee){var Ze=ne.type;return Ze===_?ge(Z,Q,ne.props.children,Ee,ne.key):Q!==null&&(Q.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===V&&Lv(Ze)===Q.type)?(Ee=v(Q,ne.props),Ee.ref=As(Z,Q,ne),Ee.return=Z,Ee):(Ee=ic(ne.type,ne.key,ne.props,null,Z.mode,Ee),Ee.ref=As(Z,Q,ne),Ee.return=Z,Ee)}function oe(Z,Q,ne,Ee){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ne.containerInfo||Q.stateNode.implementation!==ne.implementation?(Q=yh(ne,Z.mode,Ee),Q.return=Z,Q):(Q=v(Q,ne.children||[]),Q.return=Z,Q)}function ge(Z,Q,ne,Ee,Ze){return Q===null||Q.tag!==7?(Q=Wi(ne,Z.mode,Ee,Ze),Q.return=Z,Q):(Q=v(Q,ne),Q.return=Z,Q)}function ye(Z,Q,ne){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=vh(""+Q,Z.mode,ne),Q.return=Z,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case P:return ne=ic(Q.type,Q.key,Q.props,null,Z.mode,ne),ne.ref=As(Z,null,Q),ne.return=Z,ne;case $:return Q=yh(Q,Z.mode,ne),Q.return=Z,Q;case V:var Ee=Q._init;return ye(Z,Ee(Q._payload),ne)}if(We(Q)||J(Q))return Q=Wi(Q,Z.mode,ne,null),Q.return=Z,Q;Nu(Z,Q)}return null}function me(Z,Q,ne,Ee){var Ze=Q!==null?Q.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number")return Ze!==null?null:k(Z,Q,""+ne,Ee);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case P:return ne.key===Ze?W(Z,Q,ne,Ee):null;case $:return ne.key===Ze?oe(Z,Q,ne,Ee):null;case V:return Ze=ne._init,me(Z,Q,Ze(ne._payload),Ee)}if(We(ne)||J(ne))return Ze!==null?null:ge(Z,Q,ne,Ee,null);Nu(Z,ne)}return null}function Be(Z,Q,ne,Ee,Ze){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return Z=Z.get(ne)||null,k(Q,Z,""+Ee,Ze);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case P:return Z=Z.get(Ee.key===null?ne:Ee.key)||null,W(Q,Z,Ee,Ze);case $:return Z=Z.get(Ee.key===null?ne:Ee.key)||null,oe(Q,Z,Ee,Ze);case V:var ut=Ee._init;return Be(Z,Q,ne,ut(Ee._payload),Ze)}if(We(Ee)||J(Ee))return Z=Z.get(ne)||null,ge(Q,Z,Ee,Ze,null);Nu(Q,Ee)}return null}function Qe(Z,Q,ne,Ee){for(var Ze=null,ut=null,ct=Q,vt=Q=0,Gn=null;ct!==null&&vt<ne.length;vt++){ct.index>vt?(Gn=ct,ct=null):Gn=ct.sibling;var qt=me(Z,ct,ne[vt],Ee);if(qt===null){ct===null&&(ct=Gn);break}i&&ct&&qt.alternate===null&&a(Z,ct),Q=E(qt,Q,vt),ut===null?Ze=qt:ut.sibling=qt,ut=qt,ct=Gn}if(vt===ne.length)return c(Z,ct),pn&&ki(Z,vt),Ze;if(ct===null){for(;vt<ne.length;vt++)ct=ye(Z,ne[vt],Ee),ct!==null&&(Q=E(ct,Q,vt),ut===null?Ze=ct:ut.sibling=ct,ut=ct);return pn&&ki(Z,vt),Ze}for(ct=p(Z,ct);vt<ne.length;vt++)Gn=Be(ct,Z,vt,ne[vt],Ee),Gn!==null&&(i&&Gn.alternate!==null&&ct.delete(Gn.key===null?vt:Gn.key),Q=E(Gn,Q,vt),ut===null?Ze=Gn:ut.sibling=Gn,ut=Gn);return i&&ct.forEach(function(mi){return a(Z,mi)}),pn&&ki(Z,vt),Ze}function Xe(Z,Q,ne,Ee){var Ze=J(ne);if(typeof Ze!="function")throw Error(n(150));if(ne=Ze.call(ne),ne==null)throw Error(n(151));for(var ut=Ze=null,ct=Q,vt=Q=0,Gn=null,qt=ne.next();ct!==null&&!qt.done;vt++,qt=ne.next()){ct.index>vt?(Gn=ct,ct=null):Gn=ct.sibling;var mi=me(Z,ct,qt.value,Ee);if(mi===null){ct===null&&(ct=Gn);break}i&&ct&&mi.alternate===null&&a(Z,ct),Q=E(mi,Q,vt),ut===null?Ze=mi:ut.sibling=mi,ut=mi,ct=Gn}if(qt.done)return c(Z,ct),pn&&ki(Z,vt),Ze;if(ct===null){for(;!qt.done;vt++,qt=ne.next())qt=ye(Z,qt.value,Ee),qt!==null&&(Q=E(qt,Q,vt),ut===null?Ze=qt:ut.sibling=qt,ut=qt);return pn&&ki(Z,vt),Ze}for(ct=p(Z,ct);!qt.done;vt++,qt=ne.next())qt=Be(ct,Z,vt,qt.value,Ee),qt!==null&&(i&&qt.alternate!==null&&ct.delete(qt.key===null?vt:qt.key),Q=E(qt,Q,vt),ut===null?Ze=qt:ut.sibling=qt,ut=qt);return i&&ct.forEach(function(j4){return a(Z,j4)}),pn&&ki(Z,vt),Ze}function Rn(Z,Q,ne,Ee){if(typeof ne=="object"&&ne!==null&&ne.type===_&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case P:e:{for(var Ze=ne.key,ut=Q;ut!==null;){if(ut.key===Ze){if(Ze=ne.type,Ze===_){if(ut.tag===7){c(Z,ut.sibling),Q=v(ut,ne.props.children),Q.return=Z,Z=Q;break e}}else if(ut.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===V&&Lv(Ze)===ut.type){c(Z,ut.sibling),Q=v(ut,ne.props),Q.ref=As(Z,ut,ne),Q.return=Z,Z=Q;break e}c(Z,ut);break}else a(Z,ut);ut=ut.sibling}ne.type===_?(Q=Wi(ne.props.children,Z.mode,Ee,ne.key),Q.return=Z,Z=Q):(Ee=ic(ne.type,ne.key,ne.props,null,Z.mode,Ee),Ee.ref=As(Z,Q,ne),Ee.return=Z,Z=Ee)}return T(Z);case $:e:{for(ut=ne.key;Q!==null;){if(Q.key===ut)if(Q.tag===4&&Q.stateNode.containerInfo===ne.containerInfo&&Q.stateNode.implementation===ne.implementation){c(Z,Q.sibling),Q=v(Q,ne.children||[]),Q.return=Z,Z=Q;break e}else{c(Z,Q);break}else a(Z,Q);Q=Q.sibling}Q=yh(ne,Z.mode,Ee),Q.return=Z,Z=Q}return T(Z);case V:return ut=ne._init,Rn(Z,Q,ut(ne._payload),Ee)}if(We(ne))return Qe(Z,Q,ne,Ee);if(J(ne))return Xe(Z,Q,ne,Ee);Nu(Z,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"?(ne=""+ne,Q!==null&&Q.tag===6?(c(Z,Q.sibling),Q=v(Q,ne),Q.return=Z,Z=Q):(c(Z,Q),Q=vh(ne,Z.mode,Ee),Q.return=Z,Z=Q),T(Z)):c(Z,Q)}return Rn}var Ta=Fv(!0),Nv=Fv(!1),Mu=oi(null),ku=null,Pa=null,If=null;function Tf(){If=Pa=ku=null}function Pf(i){var a=Mu.current;un(Mu),i._currentValue=a}function $f(i,a,c){for(;i!==null;){var p=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),i===c)break;i=i.return}}function $a(i,a){ku=i,If=Pa=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Tr=!0),i.firstContext=null)}function Kr(i){var a=i._currentValue;if(If!==i)if(i={context:i,memoizedValue:a,next:null},Pa===null){if(ku===null)throw Error(n(308));Pa=i,ku.dependencies={lanes:0,firstContext:i}}else Pa=Pa.next=i;return a}var Ai=null;function _f(i){Ai===null?Ai=[i]:Ai.push(i)}function Mv(i,a,c,p){var v=a.interleaved;return v===null?(c.next=c,_f(a)):(c.next=v.next,v.next=c),a.interleaved=c,Wo(i,p)}function Wo(i,a){i.lanes|=a;var c=i.alternate;for(c!==null&&(c.lanes|=a),c=i,i=i.return;i!==null;)i.childLanes|=a,c=i.alternate,c!==null&&(c.childLanes|=a),c=i,i=i.return;return c.tag===3?c.stateNode:null}var si=!1;function Df(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kv(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function qo(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function li(i,a,c){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Ht&2)!==0){var v=p.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),p.pending=a,Wo(i,c)}return v=p.interleaved,v===null?(a.next=a,_f(p)):(a.next=v.next,v.next=a),p.interleaved=a,Wo(i,c)}function Au(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194240)!==0)){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,On(i,c)}}function Av(i,a){var c=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var v=null,E=null;if(c=c.firstBaseUpdate,c!==null){do{var T={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};E===null?v=E=T:E=E.next=T,c=c.next}while(c!==null);E===null?v=E=a:E=E.next=a}else v=E=a;c={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:p.shared,effects:p.effects},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}function ju(i,a,c,p){var v=i.updateQueue;si=!1;var E=v.firstBaseUpdate,T=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var W=k,oe=W.next;W.next=null,T===null?E=oe:T.next=oe,T=W;var ge=i.alternate;ge!==null&&(ge=ge.updateQueue,k=ge.lastBaseUpdate,k!==T&&(k===null?ge.firstBaseUpdate=oe:k.next=oe,ge.lastBaseUpdate=W))}if(E!==null){var ye=v.baseState;T=0,ge=oe=W=null,k=E;do{var me=k.lane,Be=k.eventTime;if((p&me)===me){ge!==null&&(ge=ge.next={eventTime:Be,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var Qe=i,Xe=k;switch(me=a,Be=c,Xe.tag){case 1:if(Qe=Xe.payload,typeof Qe=="function"){ye=Qe.call(Be,ye,me);break e}ye=Qe;break e;case 3:Qe.flags=Qe.flags&-65537|128;case 0:if(Qe=Xe.payload,me=typeof Qe=="function"?Qe.call(Be,ye,me):Qe,me==null)break e;ye=K({},ye,me);break e;case 2:si=!0}}k.callback!==null&&k.lane!==0&&(i.flags|=64,me=v.effects,me===null?v.effects=[k]:me.push(k))}else Be={eventTime:Be,lane:me,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ge===null?(oe=ge=Be,W=ye):ge=ge.next=Be,T|=me;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;me=k,k=me.next,me.next=null,v.lastBaseUpdate=me,v.shared.pending=null}}while(!0);if(ge===null&&(W=ye),v.baseState=W,v.firstBaseUpdate=oe,v.lastBaseUpdate=ge,a=v.shared.interleaved,a!==null){v=a;do T|=v.lane,v=v.next;while(v!==a)}else E===null&&(v.shared.lanes=0);Bi|=T,i.lanes=T,i.memoizedState=ye}}function jv(i,a,c){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var p=i[a],v=p.callback;if(v!==null){if(p.callback=null,p=c,typeof v!="function")throw Error(n(191,v));v.call(p)}}}var js={},To=oi(js),zs=oi(js),Bs=oi(js);function ji(i){if(i===js)throw Error(n(174));return i}function Lf(i,a){switch(rn(Bs,a),rn(zs,i),rn(To,js),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:ht(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=ht(a,i)}un(To),rn(To,a)}function _a(){un(To),un(zs),un(Bs)}function zv(i){ji(Bs.current);var a=ji(To.current),c=ht(a,i.type);a!==c&&(rn(zs,i),rn(To,c))}function Ff(i){zs.current===i&&(un(To),un(zs))}var yn=oi(0);function zu(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Nf=[];function Mf(){for(var i=0;i<Nf.length;i++)Nf[i]._workInProgressVersionPrimary=null;Nf.length=0}var Bu=I.ReactCurrentDispatcher,kf=I.ReactCurrentBatchConfig,zi=0,Sn=null,jn=null,qn=null,Hu=!1,Hs=!1,Us=0,s4=0;function cr(){throw Error(n(321))}function Af(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!co(i[c],a[c]))return!1;return!0}function jf(i,a,c,p,v,E){if(zi=E,Sn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Bu.current=i===null||i.memoizedState===null?d4:f4,i=c(p,v),Hs){E=0;do{if(Hs=!1,Us=0,25<=E)throw Error(n(301));E+=1,qn=jn=null,a.updateQueue=null,Bu.current=h4,i=c(p,v)}while(Hs)}if(Bu.current=Wu,a=jn!==null&&jn.next!==null,zi=0,qn=jn=Sn=null,Hu=!1,a)throw Error(n(300));return i}function zf(){var i=Us!==0;return Us=0,i}function Po(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?Sn.memoizedState=qn=i:qn=qn.next=i,qn}function Gr(){if(jn===null){var i=Sn.alternate;i=i!==null?i.memoizedState:null}else i=jn.next;var a=qn===null?Sn.memoizedState:qn.next;if(a!==null)qn=a,jn=i;else{if(i===null)throw Error(n(310));jn=i,i={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},qn===null?Sn.memoizedState=qn=i:qn=qn.next=i}return qn}function Vs(i,a){return typeof a=="function"?a(i):a}function Bf(i){var a=Gr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=jn,v=p.baseQueue,E=c.pending;if(E!==null){if(v!==null){var T=v.next;v.next=E.next,E.next=T}p.baseQueue=v=E,c.pending=null}if(v!==null){E=v.next,p=p.baseState;var k=T=null,W=null,oe=E;do{var ge=oe.lane;if((zi&ge)===ge)W!==null&&(W=W.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),p=oe.hasEagerState?oe.eagerState:i(p,oe.action);else{var ye={lane:ge,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};W===null?(k=W=ye,T=p):W=W.next=ye,Sn.lanes|=ge,Bi|=ge}oe=oe.next}while(oe!==null&&oe!==E);W===null?T=p:W.next=k,co(p,a.memoizedState)||(Tr=!0),a.memoizedState=p,a.baseState=T,a.baseQueue=W,c.lastRenderedState=p}if(i=c.interleaved,i!==null){v=i;do E=v.lane,Sn.lanes|=E,Bi|=E,v=v.next;while(v!==i)}else v===null&&(c.lanes=0);return[a.memoizedState,c.dispatch]}function Hf(i){var a=Gr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=c.dispatch,v=c.pending,E=a.memoizedState;if(v!==null){c.pending=null;var T=v=v.next;do E=i(E,T.action),T=T.next;while(T!==v);co(E,a.memoizedState)||(Tr=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),c.lastRenderedState=E}return[E,p]}function Bv(){}function Hv(i,a){var c=Sn,p=Gr(),v=a(),E=!co(p.memoizedState,v);if(E&&(p.memoizedState=v,Tr=!0),p=p.queue,Uf(Wv.bind(null,c,p,i),[i]),p.getSnapshot!==a||E||qn!==null&&qn.memoizedState.tag&1){if(c.flags|=2048,Ws(9,Vv.bind(null,c,p,v,a),void 0,null),Kn===null)throw Error(n(349));(zi&30)!==0||Uv(c,a,v)}return v}function Uv(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=Sn.updateQueue,a===null?(a={lastEffect:null,stores:null},Sn.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function Vv(i,a,c,p){a.value=c,a.getSnapshot=p,qv(a)&&Kv(i)}function Wv(i,a,c){return c(function(){qv(a)&&Kv(i)})}function qv(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!co(i,c)}catch{return!0}}function Kv(i){var a=Wo(i,1);a!==null&&go(a,i,1,-1)}function Gv(i){var a=Po();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:i},a.queue=i,i=i.dispatch=c4.bind(null,Sn,i),[a.memoizedState,i]}function Ws(i,a,c,p){return i={tag:i,create:a,destroy:c,deps:p,next:null},a=Sn.updateQueue,a===null?(a={lastEffect:null,stores:null},Sn.updateQueue=a,a.lastEffect=i.next=i):(c=a.lastEffect,c===null?a.lastEffect=i.next=i:(p=c.next,c.next=i,i.next=p,a.lastEffect=i)),i}function Qv(){return Gr().memoizedState}function Uu(i,a,c,p){var v=Po();Sn.flags|=i,v.memoizedState=Ws(1|a,c,void 0,p===void 0?null:p)}function Vu(i,a,c,p){var v=Gr();p=p===void 0?null:p;var E=void 0;if(jn!==null){var T=jn.memoizedState;if(E=T.destroy,p!==null&&Af(p,T.deps)){v.memoizedState=Ws(a,c,E,p);return}}Sn.flags|=i,v.memoizedState=Ws(1|a,c,E,p)}function Yv(i,a){return Uu(8390656,8,i,a)}function Uf(i,a){return Vu(2048,8,i,a)}function Xv(i,a){return Vu(4,2,i,a)}function Jv(i,a){return Vu(4,4,i,a)}function Zv(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function e0(i,a,c){return c=c!=null?c.concat([i]):null,Vu(4,4,Zv.bind(null,a,i),c)}function Vf(){}function t0(i,a){var c=Gr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Af(a,p[1])?p[0]:(c.memoizedState=[i,a],i)}function n0(i,a){var c=Gr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Af(a,p[1])?p[0]:(i=i(),c.memoizedState=[i,a],i)}function r0(i,a,c){return(zi&21)===0?(i.baseState&&(i.baseState=!1,Tr=!0),i.memoizedState=c):(co(c,a)||(c=Bt(),Sn.lanes|=c,Bi|=c,i.baseState=!0),a)}function l4(i,a){var c=wt;wt=c!==0&&4>c?c:4,i(!0);var p=kf.transition;kf.transition={};try{i(!1),a()}finally{wt=c,kf.transition=p}}function o0(){return Gr().memoizedState}function u4(i,a,c){var p=fi(i);if(c={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null},i0(i))a0(a,c);else if(c=Mv(i,a,c,p),c!==null){var v=Sr();go(c,i,p,v),s0(c,a,p)}}function c4(i,a,c){var p=fi(i),v={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null};if(i0(i))a0(a,v);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var T=a.lastRenderedState,k=E(T,c);if(v.hasEagerState=!0,v.eagerState=k,co(k,T)){var W=a.interleaved;W===null?(v.next=v,_f(a)):(v.next=W.next,W.next=v),a.interleaved=v;return}}catch{}finally{}c=Mv(i,a,v,p),c!==null&&(v=Sr(),go(c,i,p,v),s0(c,a,p))}}function i0(i){var a=i.alternate;return i===Sn||a!==null&&a===Sn}function a0(i,a){Hs=Hu=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function s0(i,a,c){if((c&4194240)!==0){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,On(i,c)}}var Wu={readContext:Kr,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},d4={readContext:Kr,useCallback:function(i,a){return Po().memoizedState=[i,a===void 0?null:a],i},useContext:Kr,useEffect:Yv,useImperativeHandle:function(i,a,c){return c=c!=null?c.concat([i]):null,Uu(4194308,4,Zv.bind(null,a,i),c)},useLayoutEffect:function(i,a){return Uu(4194308,4,i,a)},useInsertionEffect:function(i,a){return Uu(4,2,i,a)},useMemo:function(i,a){var c=Po();return a=a===void 0?null:a,i=i(),c.memoizedState=[i,a],i},useReducer:function(i,a,c){var p=Po();return a=c!==void 0?c(a):a,p.memoizedState=p.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},p.queue=i,i=i.dispatch=u4.bind(null,Sn,i),[p.memoizedState,i]},useRef:function(i){var a=Po();return i={current:i},a.memoizedState=i},useState:Gv,useDebugValue:Vf,useDeferredValue:function(i){return Po().memoizedState=i},useTransition:function(){var i=Gv(!1),a=i[0];return i=l4.bind(null,i[1]),Po().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,c){var p=Sn,v=Po();if(pn){if(c===void 0)throw Error(n(407));c=c()}else{if(c=a(),Kn===null)throw Error(n(349));(zi&30)!==0||Uv(p,a,c)}v.memoizedState=c;var E={value:c,getSnapshot:a};return v.queue=E,Yv(Wv.bind(null,p,E,i),[i]),p.flags|=2048,Ws(9,Vv.bind(null,p,E,c,a),void 0,null),c},useId:function(){var i=Po(),a=Kn.identifierPrefix;if(pn){var c=Vo,p=Uo;c=(p&~(1<<32-xn(p)-1)).toString(32)+c,a=":"+a+"R"+c,c=Us++,0<c&&(a+="H"+c.toString(32)),a+=":"}else c=s4++,a=":"+a+"r"+c.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},f4={readContext:Kr,useCallback:t0,useContext:Kr,useEffect:Uf,useImperativeHandle:e0,useInsertionEffect:Xv,useLayoutEffect:Jv,useMemo:n0,useReducer:Bf,useRef:Qv,useState:function(){return Bf(Vs)},useDebugValue:Vf,useDeferredValue:function(i){var a=Gr();return r0(a,jn.memoizedState,i)},useTransition:function(){var i=Bf(Vs)[0],a=Gr().memoizedState;return[i,a]},useMutableSource:Bv,useSyncExternalStore:Hv,useId:o0,unstable_isNewReconciler:!1},h4={readContext:Kr,useCallback:t0,useContext:Kr,useEffect:Uf,useImperativeHandle:e0,useInsertionEffect:Xv,useLayoutEffect:Jv,useMemo:n0,useReducer:Hf,useRef:Qv,useState:function(){return Hf(Vs)},useDebugValue:Vf,useDeferredValue:function(i){var a=Gr();return jn===null?a.memoizedState=i:r0(a,jn.memoizedState,i)},useTransition:function(){var i=Hf(Vs)[0],a=Gr().memoizedState;return[i,a]},useMutableSource:Bv,useSyncExternalStore:Hv,useId:o0,unstable_isNewReconciler:!1};function ho(i,a){if(i&&i.defaultProps){a=K({},a),i=i.defaultProps;for(var c in i)a[c]===void 0&&(a[c]=i[c]);return a}return a}function Wf(i,a,c,p){a=i.memoizedState,c=c(p,a),c=c==null?a:K({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var qu={isMounted:function(i){return(i=i._reactInternals)?Ot(i)===i:!1},enqueueSetState:function(i,a,c){i=i._reactInternals;var p=Sr(),v=fi(i),E=qo(p,v);E.payload=a,c!=null&&(E.callback=c),a=li(i,E,v),a!==null&&(go(a,i,v,p),Au(a,i,v))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var p=Sr(),v=fi(i),E=qo(p,v);E.tag=1,E.payload=a,c!=null&&(E.callback=c),a=li(i,E,v),a!==null&&(go(a,i,v,p),Au(a,i,v))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=Sr(),p=fi(i),v=qo(c,p);v.tag=2,a!=null&&(v.callback=a),a=li(i,v,p),a!==null&&(go(a,i,p,c),Au(a,i,p))}};function l0(i,a,c,p,v,E,T){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,E,T):a.prototype&&a.prototype.isPureReactComponent?!_s(c,p)||!_s(v,E):!0}function u0(i,a,c){var p=!1,v=ii,E=a.contextType;return typeof E=="object"&&E!==null?E=Kr(E):(v=Ir(a)?Ni:ur.current,p=a.contextTypes,E=(p=p!=null)?xa(i,v):ii),a=new a(c,E),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=qu,i.stateNode=a,a._reactInternals=i,p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=v,i.__reactInternalMemoizedMaskedChildContext=E),a}function c0(i,a,c,p){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,p),a.state!==i&&qu.enqueueReplaceState(a,a.state,null)}function qf(i,a,c,p){var v=i.stateNode;v.props=c,v.state=i.memoizedState,v.refs={},Df(i);var E=a.contextType;typeof E=="object"&&E!==null?v.context=Kr(E):(E=Ir(a)?Ni:ur.current,v.context=xa(i,E)),v.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(Wf(i,a,E,c),v.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(a=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),a!==v.state&&qu.enqueueReplaceState(v,v.state,null),ju(i,c,v,p),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308)}function Da(i,a){try{var c="",p=a;do c+=Y(p),p=p.return;while(p);var v=c}catch(E){v=`
|
|
8
|
-
Error generating stack: `+E.message+`
|
|
9
|
-
`+E.stack}return{value:i,source:a,stack:v,digest:null}}function Kf(i,a,c){return{value:i,source:null,stack:c??null,digest:a??null}}function Gf(i,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var p4=typeof WeakMap=="function"?WeakMap:Map;function d0(i,a,c){c=qo(-1,c),c.tag=3,c.payload={element:null};var p=a.value;return c.callback=function(){Zu||(Zu=!0,uh=p),Gf(i,a)},c}function f0(i,a,c){c=qo(-1,c),c.tag=3;var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var v=a.value;c.payload=function(){return p(v)},c.callback=function(){Gf(i,a)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){Gf(i,a),typeof p!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var T=a.stack;this.componentDidCatch(a.value,{componentStack:T!==null?T:""})}),c}function h0(i,a,c){var p=i.pingCache;if(p===null){p=i.pingCache=new p4;var v=new Set;p.set(a,v)}else v=p.get(a),v===void 0&&(v=new Set,p.set(a,v));v.has(c)||(v.add(c),i=T4.bind(null,i,a,c),a.then(i,i))}function p0(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function m0(i,a,c,p,v){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=qo(-1,1),a.tag=2,li(c,a,1))),c.lanes|=1),i):(i.flags|=65536,i.lanes=v,i)}var m4=I.ReactCurrentOwner,Tr=!1;function yr(i,a,c,p){a.child=i===null?Nv(a,null,c,p):Ta(a,i.child,c,p)}function g0(i,a,c,p,v){c=c.render;var E=a.ref;return $a(a,v),p=jf(i,a,c,p,E,v),c=zf(),i!==null&&!Tr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ko(i,a,v)):(pn&&c&&wf(a),a.flags|=1,yr(i,a,p,v),a.child)}function v0(i,a,c,p,v){if(i===null){var E=c.type;return typeof E=="function"&&!gh(E)&&E.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=E,y0(i,a,E,p,v)):(i=ic(c.type,null,p,a,a.mode,v),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,(i.lanes&v)===0){var T=E.memoizedProps;if(c=c.compare,c=c!==null?c:_s,c(T,p)&&i.ref===a.ref)return Ko(i,a,v)}return a.flags|=1,i=pi(E,p),i.ref=a.ref,i.return=a,a.child=i}function y0(i,a,c,p,v){if(i!==null){var E=i.memoizedProps;if(_s(E,p)&&i.ref===a.ref)if(Tr=!1,a.pendingProps=p=E,(i.lanes&v)!==0)(i.flags&131072)!==0&&(Tr=!0);else return a.lanes=i.lanes,Ko(i,a,v)}return Qf(i,a,c,p,v)}function S0(i,a,c){var p=a.pendingProps,v=p.children,E=i!==null?i.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},rn(Fa,jr),jr|=c;else{if((c&1073741824)===0)return i=E!==null?E.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,rn(Fa,jr),jr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=E!==null?E.baseLanes:c,rn(Fa,jr),jr|=p}else E!==null?(p=E.baseLanes|c,a.memoizedState=null):p=c,rn(Fa,jr),jr|=p;return yr(i,a,v,c),a.child}function b0(i,a){var c=a.ref;(i===null&&c!==null||i!==null&&i.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Qf(i,a,c,p,v){var E=Ir(c)?Ni:ur.current;return E=xa(a,E),$a(a,v),c=jf(i,a,c,p,E,v),p=zf(),i!==null&&!Tr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ko(i,a,v)):(pn&&p&&wf(a),a.flags|=1,yr(i,a,c,v),a.child)}function C0(i,a,c,p,v){if(Ir(c)){var E=!0;$u(a)}else E=!1;if($a(a,v),a.stateNode===null)Gu(i,a),u0(a,c,p),qf(a,c,p,v),p=!0;else if(i===null){var T=a.stateNode,k=a.memoizedProps;T.props=k;var W=T.context,oe=c.contextType;typeof oe=="object"&&oe!==null?oe=Kr(oe):(oe=Ir(c)?Ni:ur.current,oe=xa(a,oe));var ge=c.getDerivedStateFromProps,ye=typeof ge=="function"||typeof T.getSnapshotBeforeUpdate=="function";ye||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(k!==p||W!==oe)&&c0(a,T,p,oe),si=!1;var me=a.memoizedState;T.state=me,ju(a,p,T,v),W=a.memoizedState,k!==p||me!==W||Rr.current||si?(typeof ge=="function"&&(Wf(a,c,ge,p),W=a.memoizedState),(k=si||l0(a,c,k,p,me,W,oe))?(ye||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(a.flags|=4194308)):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=W),T.props=p,T.state=W,T.context=oe,p=k):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{T=a.stateNode,kv(i,a),k=a.memoizedProps,oe=a.type===a.elementType?k:ho(a.type,k),T.props=oe,ye=a.pendingProps,me=T.context,W=c.contextType,typeof W=="object"&&W!==null?W=Kr(W):(W=Ir(c)?Ni:ur.current,W=xa(a,W));var Be=c.getDerivedStateFromProps;(ge=typeof Be=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(k!==ye||me!==W)&&c0(a,T,p,W),si=!1,me=a.memoizedState,T.state=me,ju(a,p,T,v);var Qe=a.memoizedState;k!==ye||me!==Qe||Rr.current||si?(typeof Be=="function"&&(Wf(a,c,Be,p),Qe=a.memoizedState),(oe=si||l0(a,c,oe,p,me,Qe,W)||!1)?(ge||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,Qe,W),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,Qe,W)),typeof T.componentDidUpdate=="function"&&(a.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof T.componentDidUpdate!="function"||k===i.memoizedProps&&me===i.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&me===i.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=Qe),T.props=p,T.state=Qe,T.context=W,p=oe):(typeof T.componentDidUpdate!="function"||k===i.memoizedProps&&me===i.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&me===i.memoizedState||(a.flags|=1024),p=!1)}return Yf(i,a,c,p,E,v)}function Yf(i,a,c,p,v,E){b0(i,a);var T=(a.flags&128)!==0;if(!p&&!T)return v&&Rv(a,c,!1),Ko(i,a,E);p=a.stateNode,m4.current=a;var k=T&&typeof c.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,i!==null&&T?(a.child=Ta(a,i.child,null,E),a.child=Ta(a,null,k,E)):yr(i,a,k,E),a.memoizedState=p.state,v&&Rv(a,c,!0),a.child}function w0(i){var a=i.stateNode;a.pendingContext?xv(i,a.pendingContext,a.pendingContext!==a.context):a.context&&xv(i,a.context,!1),Lf(i,a.containerInfo)}function E0(i,a,c,p,v){return Ia(),Rf(v),a.flags|=256,yr(i,a,c,p),a.child}var Xf={dehydrated:null,treeContext:null,retryLane:0};function Jf(i){return{baseLanes:i,cachePool:null,transitions:null}}function x0(i,a,c){var p=a.pendingProps,v=yn.current,E=!1,T=(a.flags&128)!==0,k;if((k=T)||(k=i!==null&&i.memoizedState===null?!1:(v&2)!==0),k?(E=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(v|=1),rn(yn,v&1),i===null)return Of(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(T=p.children,i=p.fallback,E?(p=a.mode,E=a.child,T={mode:"hidden",children:T},(p&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=T):E=ac(T,p,0,null),i=Wi(i,p,c,null),E.return=a,i.return=a,E.sibling=i,a.child=E,a.child.memoizedState=Jf(c),a.memoizedState=Xf,i):Zf(a,T));if(v=i.memoizedState,v!==null&&(k=v.dehydrated,k!==null))return g4(i,a,T,p,k,v,c);if(E){E=p.fallback,T=a.mode,v=i.child,k=v.sibling;var W={mode:"hidden",children:p.children};return(T&1)===0&&a.child!==v?(p=a.child,p.childLanes=0,p.pendingProps=W,a.deletions=null):(p=pi(v,W),p.subtreeFlags=v.subtreeFlags&14680064),k!==null?E=pi(k,E):(E=Wi(E,T,c,null),E.flags|=2),E.return=a,p.return=a,p.sibling=E,a.child=p,p=E,E=a.child,T=i.child.memoizedState,T=T===null?Jf(c):{baseLanes:T.baseLanes|c,cachePool:null,transitions:T.transitions},E.memoizedState=T,E.childLanes=i.childLanes&~c,a.memoizedState=Xf,p}return E=i.child,i=E.sibling,p=pi(E,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=c),p.return=a,p.sibling=null,i!==null&&(c=a.deletions,c===null?(a.deletions=[i],a.flags|=16):c.push(i)),a.child=p,a.memoizedState=null,p}function Zf(i,a){return a=ac({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Ku(i,a,c,p){return p!==null&&Rf(p),Ta(a,i.child,null,c),i=Zf(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function g4(i,a,c,p,v,E,T){if(c)return a.flags&256?(a.flags&=-257,p=Kf(Error(n(422))),Ku(i,a,T,p)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(E=p.fallback,v=a.mode,p=ac({mode:"visible",children:p.children},v,0,null),E=Wi(E,v,T,null),E.flags|=2,p.return=a,E.return=a,p.sibling=E,a.child=p,(a.mode&1)!==0&&Ta(a,i.child,null,T),a.child.memoizedState=Jf(T),a.memoizedState=Xf,E);if((a.mode&1)===0)return Ku(i,a,T,null);if(v.data==="$!"){if(p=v.nextSibling&&v.nextSibling.dataset,p)var k=p.dgst;return p=k,E=Error(n(419)),p=Kf(E,p,void 0),Ku(i,a,T,p)}if(k=(T&i.childLanes)!==0,Tr||k){if(p=Kn,p!==null){switch(T&-T){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(p.suspendedLanes|T))!==0?0:v,v!==0&&v!==E.retryLane&&(E.retryLane=v,Wo(i,v),go(p,i,v,-1))}return mh(),p=Kf(Error(n(421))),Ku(i,a,T,p)}return v.data==="$?"?(a.flags|=128,a.child=i.child,a=P4.bind(null,i),v._reactRetry=a,null):(i=E.treeContext,Ar=ri(v.nextSibling),kr=a,pn=!0,fo=null,i!==null&&(Wr[qr++]=Uo,Wr[qr++]=Vo,Wr[qr++]=Mi,Uo=i.id,Vo=i.overflow,Mi=a),a=Zf(a,p.children),a.flags|=4096,a)}function O0(i,a,c){i.lanes|=a;var p=i.alternate;p!==null&&(p.lanes|=a),$f(i.return,a,c)}function eh(i,a,c,p,v){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:v}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=p,E.tail=c,E.tailMode=v)}function R0(i,a,c){var p=a.pendingProps,v=p.revealOrder,E=p.tail;if(yr(i,a,p.children,c),p=yn.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&O0(i,c,a);else if(i.tag===19)O0(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}if(rn(yn,p),(a.mode&1)===0)a.memoizedState=null;else switch(v){case"forwards":for(c=a.child,v=null;c!==null;)i=c.alternate,i!==null&&zu(i)===null&&(v=c),c=c.sibling;c=v,c===null?(v=a.child,a.child=null):(v=c.sibling,c.sibling=null),eh(a,!1,v,c,E);break;case"backwards":for(c=null,v=a.child,a.child=null;v!==null;){if(i=v.alternate,i!==null&&zu(i)===null){a.child=v;break}i=v.sibling,v.sibling=c,c=v,v=i}eh(a,!0,c,null,E);break;case"together":eh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Gu(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Ko(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),Bi|=a.lanes,(c&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,c=pi(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=pi(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function v4(i,a,c){switch(a.tag){case 3:w0(a),Ia();break;case 5:zv(a);break;case 1:Ir(a.type)&&$u(a);break;case 4:Lf(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,v=a.memoizedProps.value;rn(Mu,p._currentValue),p._currentValue=v;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(rn(yn,yn.current&1),a.flags|=128,null):(c&a.child.childLanes)!==0?x0(i,a,c):(rn(yn,yn.current&1),i=Ko(i,a,c),i!==null?i.sibling:null);rn(yn,yn.current&1);break;case 19:if(p=(c&a.childLanes)!==0,(i.flags&128)!==0){if(p)return R0(i,a,c);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),rn(yn,yn.current),p)break;return null;case 22:case 23:return a.lanes=0,S0(i,a,c)}return Ko(i,a,c)}var I0,th,T0,P0;I0=function(i,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},th=function(){},T0=function(i,a,c,p){var v=i.memoizedProps;if(v!==p){i=a.stateNode,ji(To.current);var E=null;switch(c){case"input":v=be(i,v),p=be(i,p),E=[];break;case"select":v=K({},v,{value:void 0}),p=K({},p,{value:void 0}),E=[];break;case"textarea":v=qe(i,v),p=qe(i,p),E=[];break;default:typeof v.onClick!="function"&&typeof p.onClick=="function"&&(i.onclick=Iu)}Et(c,p);var T;c=null;for(oe in v)if(!p.hasOwnProperty(oe)&&v.hasOwnProperty(oe)&&v[oe]!=null)if(oe==="style"){var k=v[oe];for(T in k)k.hasOwnProperty(T)&&(c||(c={}),c[T]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(o.hasOwnProperty(oe)?E||(E=[]):(E=E||[]).push(oe,null));for(oe in p){var W=p[oe];if(k=v?.[oe],p.hasOwnProperty(oe)&&W!==k&&(W!=null||k!=null))if(oe==="style")if(k){for(T in k)!k.hasOwnProperty(T)||W&&W.hasOwnProperty(T)||(c||(c={}),c[T]="");for(T in W)W.hasOwnProperty(T)&&k[T]!==W[T]&&(c||(c={}),c[T]=W[T])}else c||(E||(E=[]),E.push(oe,c)),c=W;else oe==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,k=k?k.__html:void 0,W!=null&&k!==W&&(E=E||[]).push(oe,W)):oe==="children"?typeof W!="string"&&typeof W!="number"||(E=E||[]).push(oe,""+W):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(o.hasOwnProperty(oe)?(W!=null&&oe==="onScroll"&&ln("scroll",i),E||k===W||(E=[])):(E=E||[]).push(oe,W))}c&&(E=E||[]).push("style",c);var oe=E;(a.updateQueue=oe)&&(a.flags|=4)}},P0=function(i,a,c,p){c!==p&&(a.flags|=4)};function qs(i,a){if(!pn)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function dr(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,p=0;if(a)for(var v=i.child;v!==null;)c|=v.lanes|v.childLanes,p|=v.subtreeFlags&14680064,p|=v.flags&14680064,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)c|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=p,i.childLanes=c,a}function y4(i,a,c){var p=a.pendingProps;switch(Ef(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dr(a),null;case 1:return Ir(a.type)&&Pu(),dr(a),null;case 3:return p=a.stateNode,_a(),un(Rr),un(ur),Mf(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Fu(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,fo!==null&&(fh(fo),fo=null))),th(i,a),dr(a),null;case 5:Ff(a);var v=ji(Bs.current);if(c=a.type,i!==null&&a.stateNode!=null)T0(i,a,c,p,v),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(n(166));return dr(a),null}if(i=ji(To.current),Fu(a)){p=a.stateNode,c=a.type;var E=a.memoizedProps;switch(p[Io]=a,p[Ms]=E,i=(a.mode&1)!==0,c){case"dialog":ln("cancel",p),ln("close",p);break;case"iframe":case"object":case"embed":ln("load",p);break;case"video":case"audio":for(v=0;v<Ls.length;v++)ln(Ls[v],p);break;case"source":ln("error",p);break;case"img":case"image":case"link":ln("error",p),ln("load",p);break;case"details":ln("toggle",p);break;case"input":ve(p,E),ln("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!E.multiple},ln("invalid",p);break;case"textarea":Ye(p,E),ln("invalid",p)}Et(c,E),v=null;for(var T in E)if(E.hasOwnProperty(T)){var k=E[T];T==="children"?typeof k=="string"?p.textContent!==k&&(E.suppressHydrationWarning!==!0&&Ru(p.textContent,k,i),v=["children",k]):typeof k=="number"&&p.textContent!==""+k&&(E.suppressHydrationWarning!==!0&&Ru(p.textContent,k,i),v=["children",""+k]):o.hasOwnProperty(T)&&k!=null&&T==="onScroll"&&ln("scroll",p)}switch(c){case"input":fe(p),Pe(p,E,!0);break;case"textarea":fe(p),dt(p);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(p.onclick=Iu)}p=v,a.updateQueue=p,p!==null&&(a.flags|=4)}else{T=v.nodeType===9?v:v.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ft(c)),i==="http://www.w3.org/1999/xhtml"?c==="script"?(i=T.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=T.createElement(c,{is:p.is}):(i=T.createElement(c),c==="select"&&(T=i,p.multiple?T.multiple=!0:p.size&&(T.size=p.size))):i=T.createElementNS(i,c),i[Io]=a,i[Ms]=p,I0(i,a,!1,!1),a.stateNode=i;e:{switch(T=rt(c,p),c){case"dialog":ln("cancel",i),ln("close",i),v=p;break;case"iframe":case"object":case"embed":ln("load",i),v=p;break;case"video":case"audio":for(v=0;v<Ls.length;v++)ln(Ls[v],i);v=p;break;case"source":ln("error",i),v=p;break;case"img":case"image":case"link":ln("error",i),ln("load",i),v=p;break;case"details":ln("toggle",i),v=p;break;case"input":ve(i,p),v=be(i,p),ln("invalid",i);break;case"option":v=p;break;case"select":i._wrapperState={wasMultiple:!!p.multiple},v=K({},p,{value:void 0}),ln("invalid",i);break;case"textarea":Ye(i,p),v=qe(i,p),ln("invalid",i);break;default:v=p}Et(c,v),k=v;for(E in k)if(k.hasOwnProperty(E)){var W=k[E];E==="style"?nt(i,W):E==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,W!=null&&et(i,W)):E==="children"?typeof W=="string"?(c!=="textarea"||W!=="")&<(i,W):typeof W=="number"&<(i,""+W):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?W!=null&&E==="onScroll"&&ln("scroll",i):W!=null&&R(i,E,W,T))}switch(c){case"input":fe(i),Pe(i,p,!1);break;case"textarea":fe(i),dt(i);break;case"option":p.value!=null&&i.setAttribute("value",""+pe(p.value));break;case"select":i.multiple=!!p.multiple,E=p.value,E!=null?De(i,!!p.multiple,E,!1):p.defaultValue!=null&&De(i,!!p.multiple,p.defaultValue,!0);break;default:typeof v.onClick=="function"&&(i.onclick=Iu)}switch(c){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return dr(a),null;case 6:if(i&&a.stateNode!=null)P0(i,a,i.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(c=ji(Bs.current),ji(To.current),Fu(a)){if(p=a.stateNode,c=a.memoizedProps,p[Io]=a,(E=p.nodeValue!==c)&&(i=kr,i!==null))switch(i.tag){case 3:Ru(p.nodeValue,c,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Ru(p.nodeValue,c,(i.mode&1)!==0)}E&&(a.flags|=4)}else p=(c.nodeType===9?c:c.ownerDocument).createTextNode(p),p[Io]=a,a.stateNode=p}return dr(a),null;case 13:if(un(yn),p=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(pn&&Ar!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Dv(),Ia(),a.flags|=98560,E=!1;else if(E=Fu(a),p!==null&&p.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[Io]=a}else Ia(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;dr(a),E=!1}else fo!==null&&(fh(fo),fo=null),E=!0;if(!E)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=c,a):(p=p!==null,p!==(i!==null&&i.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(yn.current&1)!==0?zn===0&&(zn=3):mh())),a.updateQueue!==null&&(a.flags|=4),dr(a),null);case 4:return _a(),th(i,a),i===null&&Fs(a.stateNode.containerInfo),dr(a),null;case 10:return Pf(a.type._context),dr(a),null;case 17:return Ir(a.type)&&Pu(),dr(a),null;case 19:if(un(yn),E=a.memoizedState,E===null)return dr(a),null;if(p=(a.flags&128)!==0,T=E.rendering,T===null)if(p)qs(E,!1);else{if(zn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(T=zu(i),T!==null){for(a.flags|=128,qs(E,!1),p=T.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=c,c=a.child;c!==null;)E=c,i=p,E.flags&=14680066,T=E.alternate,T===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=T.childLanes,E.lanes=T.lanes,E.child=T.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=T.memoizedProps,E.memoizedState=T.memoizedState,E.updateQueue=T.updateQueue,E.type=T.type,i=T.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),c=c.sibling;return rn(yn,yn.current&1|2),a.child}i=i.sibling}E.tail!==null&&Je()>Na&&(a.flags|=128,p=!0,qs(E,!1),a.lanes=4194304)}else{if(!p)if(i=zu(T),i!==null){if(a.flags|=128,p=!0,c=i.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),qs(E,!0),E.tail===null&&E.tailMode==="hidden"&&!T.alternate&&!pn)return dr(a),null}else 2*Je()-E.renderingStartTime>Na&&c!==1073741824&&(a.flags|=128,p=!0,qs(E,!1),a.lanes=4194304);E.isBackwards?(T.sibling=a.child,a.child=T):(c=E.last,c!==null?c.sibling=T:a.child=T,E.last=T)}return E.tail!==null?(a=E.tail,E.rendering=a,E.tail=a.sibling,E.renderingStartTime=Je(),a.sibling=null,c=yn.current,rn(yn,p?c&1|2:c&1),a):(dr(a),null);case 22:case 23:return ph(),p=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(jr&1073741824)!==0&&(dr(a),a.subtreeFlags&6&&(a.flags|=8192)):dr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function S4(i,a){switch(Ef(a),a.tag){case 1:return Ir(a.type)&&Pu(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return _a(),un(Rr),un(ur),Mf(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Ff(a),null;case 13:if(un(yn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Ia()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return un(yn),null;case 4:return _a(),null;case 10:return Pf(a.type._context),null;case 22:case 23:return ph(),null;case 24:return null;default:return null}}var Qu=!1,fr=!1,b4=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function La(i,a){var c=i.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(p){wn(i,a,p)}else c.current=null}function nh(i,a,c){try{c()}catch(p){wn(i,a,p)}}var $0=!1;function C4(i,a){if(pf=mu,i=lv(),af(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var v=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{c.nodeType,E.nodeType}catch{c=null;break e}var T=0,k=-1,W=-1,oe=0,ge=0,ye=i,me=null;t:for(;;){for(var Be;ye!==c||v!==0&&ye.nodeType!==3||(k=T+v),ye!==E||p!==0&&ye.nodeType!==3||(W=T+p),ye.nodeType===3&&(T+=ye.nodeValue.length),(Be=ye.firstChild)!==null;)me=ye,ye=Be;for(;;){if(ye===i)break t;if(me===c&&++oe===v&&(k=T),me===E&&++ge===p&&(W=T),(Be=ye.nextSibling)!==null)break;ye=me,me=ye.parentNode}ye=Be}c=k===-1||W===-1?null:{start:k,end:W}}else c=null}c=c||{start:0,end:0}}else c=null;for(mf={focusedElem:i,selectionRange:c},mu=!1,Ge=a;Ge!==null;)if(a=Ge,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Ge=i;else for(;Ge!==null;){a=Ge;try{var Qe=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Qe!==null){var Xe=Qe.memoizedProps,Rn=Qe.memoizedState,Z=a.stateNode,Q=Z.getSnapshotBeforeUpdate(a.elementType===a.type?Xe:ho(a.type,Xe),Rn);Z.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var ne=a.stateNode.containerInfo;ne.nodeType===1?ne.textContent="":ne.nodeType===9&&ne.documentElement&&ne.removeChild(ne.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ee){wn(a,a.return,Ee)}if(i=a.sibling,i!==null){i.return=a.return,Ge=i;break}Ge=a.return}return Qe=$0,$0=!1,Qe}function Ks(i,a,c){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var v=p=p.next;do{if((v.tag&i)===i){var E=v.destroy;v.destroy=void 0,E!==void 0&&nh(a,c,E)}v=v.next}while(v!==p)}}function Yu(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&i)===i){var p=c.create;c.destroy=p()}c=c.next}while(c!==a)}}function rh(i){var a=i.ref;if(a!==null){var c=i.stateNode;switch(i.tag){case 5:i=c;break;default:i=c}typeof a=="function"?a(i):a.current=i}}function _0(i){var a=i.alternate;a!==null&&(i.alternate=null,_0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Io],delete a[Ms],delete a[Sf],delete a[r4],delete a[o4])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function D0(i){return i.tag===5||i.tag===3||i.tag===4}function L0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||D0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function oh(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(i,a):c.insertBefore(i,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(i,c)):(a=c,a.appendChild(i)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Iu));else if(p!==4&&(i=i.child,i!==null))for(oh(i,a,c),i=i.sibling;i!==null;)oh(i,a,c),i=i.sibling}function ih(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(ih(i,a,c),i=i.sibling;i!==null;)ih(i,a,c),i=i.sibling}var rr=null,po=!1;function ui(i,a,c){for(c=c.child;c!==null;)F0(i,a,c),c=c.sibling}function F0(i,a,c){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(vn,c)}catch{}switch(c.tag){case 5:fr||La(c,a);case 6:var p=rr,v=po;rr=null,ui(i,a,c),rr=p,po=v,rr!==null&&(po?(i=rr,c=c.stateNode,i.nodeType===8?i.parentNode.removeChild(c):i.removeChild(c)):rr.removeChild(c.stateNode));break;case 18:rr!==null&&(po?(i=rr,c=c.stateNode,i.nodeType===8?yf(i.parentNode,c):i.nodeType===1&&yf(i,c),ei(i)):yf(rr,c.stateNode));break;case 4:p=rr,v=po,rr=c.stateNode.containerInfo,po=!0,ui(i,a,c),rr=p,po=v;break;case 0:case 11:case 14:case 15:if(!fr&&(p=c.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){v=p=p.next;do{var E=v,T=E.destroy;E=E.tag,T!==void 0&&((E&2)!==0||(E&4)!==0)&&nh(c,a,T),v=v.next}while(v!==p)}ui(i,a,c);break;case 1:if(!fr&&(La(c,a),p=c.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=c.memoizedProps,p.state=c.memoizedState,p.componentWillUnmount()}catch(k){wn(c,a,k)}ui(i,a,c);break;case 21:ui(i,a,c);break;case 22:c.mode&1?(fr=(p=fr)||c.memoizedState!==null,ui(i,a,c),fr=p):ui(i,a,c);break;default:ui(i,a,c)}}function N0(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var c=i.stateNode;c===null&&(c=i.stateNode=new b4),a.forEach(function(p){var v=$4.bind(null,i,p);c.has(p)||(c.add(p),p.then(v,v))})}}function mo(i,a){var c=a.deletions;if(c!==null)for(var p=0;p<c.length;p++){var v=c[p];try{var E=i,T=a,k=T;e:for(;k!==null;){switch(k.tag){case 5:rr=k.stateNode,po=!1;break e;case 3:rr=k.stateNode.containerInfo,po=!0;break e;case 4:rr=k.stateNode.containerInfo,po=!0;break e}k=k.return}if(rr===null)throw Error(n(160));F0(E,T,v),rr=null,po=!1;var W=v.alternate;W!==null&&(W.return=null),v.return=null}catch(oe){wn(v,a,oe)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)M0(a,i),a=a.sibling}function M0(i,a){var c=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(mo(a,i),$o(i),p&4){try{Ks(3,i,i.return),Yu(3,i)}catch(Xe){wn(i,i.return,Xe)}try{Ks(5,i,i.return)}catch(Xe){wn(i,i.return,Xe)}}break;case 1:mo(a,i),$o(i),p&512&&c!==null&&La(c,c.return);break;case 5:if(mo(a,i),$o(i),p&512&&c!==null&&La(c,c.return),i.flags&32){var v=i.stateNode;try{lt(v,"")}catch(Xe){wn(i,i.return,Xe)}}if(p&4&&(v=i.stateNode,v!=null)){var E=i.memoizedProps,T=c!==null?c.memoizedProps:E,k=i.type,W=i.updateQueue;if(i.updateQueue=null,W!==null)try{k==="input"&&E.type==="radio"&&E.name!=null&&xe(v,E),rt(k,T);var oe=rt(k,E);for(T=0;T<W.length;T+=2){var ge=W[T],ye=W[T+1];ge==="style"?nt(v,ye):ge==="dangerouslySetInnerHTML"?et(v,ye):ge==="children"?lt(v,ye):R(v,ge,ye,oe)}switch(k){case"input":Ne(v,E);break;case"textarea":Ie(v,E);break;case"select":var me=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!E.multiple;var Be=E.value;Be!=null?De(v,!!E.multiple,Be,!1):me!==!!E.multiple&&(E.defaultValue!=null?De(v,!!E.multiple,E.defaultValue,!0):De(v,!!E.multiple,E.multiple?[]:"",!1))}v[Ms]=E}catch(Xe){wn(i,i.return,Xe)}}break;case 6:if(mo(a,i),$o(i),p&4){if(i.stateNode===null)throw Error(n(162));v=i.stateNode,E=i.memoizedProps;try{v.nodeValue=E}catch(Xe){wn(i,i.return,Xe)}}break;case 3:if(mo(a,i),$o(i),p&4&&c!==null&&c.memoizedState.isDehydrated)try{ei(a.containerInfo)}catch(Xe){wn(i,i.return,Xe)}break;case 4:mo(a,i),$o(i);break;case 13:mo(a,i),$o(i),v=i.child,v.flags&8192&&(E=v.memoizedState!==null,v.stateNode.isHidden=E,!E||v.alternate!==null&&v.alternate.memoizedState!==null||(lh=Je())),p&4&&N0(i);break;case 22:if(ge=c!==null&&c.memoizedState!==null,i.mode&1?(fr=(oe=fr)||ge,mo(a,i),fr=oe):mo(a,i),$o(i),p&8192){if(oe=i.memoizedState!==null,(i.stateNode.isHidden=oe)&&!ge&&(i.mode&1)!==0)for(Ge=i,ge=i.child;ge!==null;){for(ye=Ge=ge;Ge!==null;){switch(me=Ge,Be=me.child,me.tag){case 0:case 11:case 14:case 15:Ks(4,me,me.return);break;case 1:La(me,me.return);var Qe=me.stateNode;if(typeof Qe.componentWillUnmount=="function"){p=me,c=me.return;try{a=p,Qe.props=a.memoizedProps,Qe.state=a.memoizedState,Qe.componentWillUnmount()}catch(Xe){wn(p,c,Xe)}}break;case 5:La(me,me.return);break;case 22:if(me.memoizedState!==null){j0(ye);continue}}Be!==null?(Be.return=me,Ge=Be):j0(ye)}ge=ge.sibling}e:for(ge=null,ye=i;;){if(ye.tag===5){if(ge===null){ge=ye;try{v=ye.stateNode,oe?(E=v.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(k=ye.stateNode,W=ye.memoizedProps.style,T=W!=null&&W.hasOwnProperty("display")?W.display:null,k.style.display=St("display",T))}catch(Xe){wn(i,i.return,Xe)}}}else if(ye.tag===6){if(ge===null)try{ye.stateNode.nodeValue=oe?"":ye.memoizedProps}catch(Xe){wn(i,i.return,Xe)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===i)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===i)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===i)break e;ge===ye&&(ge=null),ye=ye.return}ge===ye&&(ge=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:mo(a,i),$o(i),p&4&&N0(i);break;case 21:break;default:mo(a,i),$o(i)}}function $o(i){var a=i.flags;if(a&2){try{e:{for(var c=i.return;c!==null;){if(D0(c)){var p=c;break e}c=c.return}throw Error(n(160))}switch(p.tag){case 5:var v=p.stateNode;p.flags&32&&(lt(v,""),p.flags&=-33);var E=L0(i);ih(i,E,v);break;case 3:case 4:var T=p.stateNode.containerInfo,k=L0(i);oh(i,k,T);break;default:throw Error(n(161))}}catch(W){wn(i,i.return,W)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function w4(i,a,c){Ge=i,k0(i)}function k0(i,a,c){for(var p=(i.mode&1)!==0;Ge!==null;){var v=Ge,E=v.child;if(v.tag===22&&p){var T=v.memoizedState!==null||Qu;if(!T){var k=v.alternate,W=k!==null&&k.memoizedState!==null||fr;k=Qu;var oe=fr;if(Qu=T,(fr=W)&&!oe)for(Ge=v;Ge!==null;)T=Ge,W=T.child,T.tag===22&&T.memoizedState!==null?z0(v):W!==null?(W.return=T,Ge=W):z0(v);for(;E!==null;)Ge=E,k0(E),E=E.sibling;Ge=v,Qu=k,fr=oe}A0(i)}else(v.subtreeFlags&8772)!==0&&E!==null?(E.return=v,Ge=E):A0(i)}}function A0(i){for(;Ge!==null;){var a=Ge;if((a.flags&8772)!==0){var c=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:fr||Yu(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!fr)if(c===null)p.componentDidMount();else{var v=a.elementType===a.type?c.memoizedProps:ho(a.type,c.memoizedProps);p.componentDidUpdate(v,c.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var E=a.updateQueue;E!==null&&jv(a,E,p);break;case 3:var T=a.updateQueue;if(T!==null){if(c=null,a.child!==null)switch(a.child.tag){case 5:c=a.child.stateNode;break;case 1:c=a.child.stateNode}jv(a,T,c)}break;case 5:var k=a.stateNode;if(c===null&&a.flags&4){c=k;var W=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":W.autoFocus&&c.focus();break;case"img":W.src&&(c.src=W.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var oe=a.alternate;if(oe!==null){var ge=oe.memoizedState;if(ge!==null){var ye=ge.dehydrated;ye!==null&&ei(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}fr||a.flags&512&&rh(a)}catch(me){wn(a,a.return,me)}}if(a===i){Ge=null;break}if(c=a.sibling,c!==null){c.return=a.return,Ge=c;break}Ge=a.return}}function j0(i){for(;Ge!==null;){var a=Ge;if(a===i){Ge=null;break}var c=a.sibling;if(c!==null){c.return=a.return,Ge=c;break}Ge=a.return}}function z0(i){for(;Ge!==null;){var a=Ge;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{Yu(4,a)}catch(W){wn(a,c,W)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var v=a.return;try{p.componentDidMount()}catch(W){wn(a,v,W)}}var E=a.return;try{rh(a)}catch(W){wn(a,E,W)}break;case 5:var T=a.return;try{rh(a)}catch(W){wn(a,T,W)}}}catch(W){wn(a,a.return,W)}if(a===i){Ge=null;break}var k=a.sibling;if(k!==null){k.return=a.return,Ge=k;break}Ge=a.return}}var E4=Math.ceil,Xu=I.ReactCurrentDispatcher,ah=I.ReactCurrentOwner,Qr=I.ReactCurrentBatchConfig,Ht=0,Kn=null,Ln=null,or=0,jr=0,Fa=oi(0),zn=0,Gs=null,Bi=0,Ju=0,sh=0,Qs=null,Pr=null,lh=0,Na=1/0,Go=null,Zu=!1,uh=null,ci=null,ec=!1,di=null,tc=0,Ys=0,ch=null,nc=-1,rc=0;function Sr(){return(Ht&6)!==0?Je():nc!==-1?nc:nc=Je()}function fi(i){return(i.mode&1)===0?1:(Ht&2)!==0&&or!==0?or&-or:a4.transition!==null?(rc===0&&(rc=Bt()),rc):(i=wt,i!==0||(i=window.event,i=i===void 0?16:Hg(i.type)),i)}function go(i,a,c,p){if(50<Ys)throw Ys=0,ch=null,Error(n(185));Qt(i,c,p),((Ht&2)===0||i!==Kn)&&(i===Kn&&((Ht&2)===0&&(Ju|=c),zn===4&&hi(i,or)),$r(i,p),c===1&&Ht===0&&(a.mode&1)===0&&(Na=Je()+500,_u&&ai()))}function $r(i,a){var c=i.callbackNode;Le(i,a);var p=zt(i,i===Kn?or:0);if(p===0)c!==null&&Oe(c),i.callbackNode=null,i.callbackPriority=0;else if(a=p&-p,i.callbackPriority!==a){if(c!=null&&Oe(c),a===1)i.tag===0?i4(H0.bind(null,i)):Iv(H0.bind(null,i)),t4(function(){(Ht&6)===0&&ai()}),c=null;else{switch(An(p)){case 1:c=Mn;break;case 4:c=Hn;break;case 16:c=Xn;break;case 536870912:c=kn;break;default:c=Xn}c=Y0(c,B0.bind(null,i))}i.callbackPriority=a,i.callbackNode=c}}function B0(i,a){if(nc=-1,rc=0,(Ht&6)!==0)throw Error(n(327));var c=i.callbackNode;if(Ma()&&i.callbackNode!==c)return null;var p=zt(i,i===Kn?or:0);if(p===0)return null;if((p&30)!==0||(p&i.expiredLanes)!==0||a)a=oc(i,p);else{a=p;var v=Ht;Ht|=2;var E=V0();(Kn!==i||or!==a)&&(Go=null,Na=Je()+500,Ui(i,a));do try{R4();break}catch(k){U0(i,k)}while(!0);Tf(),Xu.current=E,Ht=v,Ln!==null?a=0:(Kn=null,or=0,a=zn)}if(a!==0){if(a===2&&(v=Ft(i),v!==0&&(p=v,a=dh(i,v))),a===1)throw c=Gs,Ui(i,0),hi(i,p),$r(i,Je()),c;if(a===6)hi(i,p);else{if(v=i.current.alternate,(p&30)===0&&!x4(v)&&(a=oc(i,p),a===2&&(E=Ft(i),E!==0&&(p=E,a=dh(i,E))),a===1))throw c=Gs,Ui(i,0),hi(i,p),$r(i,Je()),c;switch(i.finishedWork=v,i.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:Vi(i,Pr,Go);break;case 3:if(hi(i,p),(p&130023424)===p&&(a=lh+500-Je(),10<a)){if(zt(i,0)!==0)break;if(v=i.suspendedLanes,(v&p)!==p){Sr(),i.pingedLanes|=i.suspendedLanes&v;break}i.timeoutHandle=vf(Vi.bind(null,i,Pr,Go),a);break}Vi(i,Pr,Go);break;case 4:if(hi(i,p),(p&4194240)===p)break;for(a=i.eventTimes,v=-1;0<p;){var T=31-xn(p);E=1<<T,T=a[T],T>v&&(v=T),p&=~E}if(p=v,p=Je()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*E4(p/1960))-p,10<p){i.timeoutHandle=vf(Vi.bind(null,i,Pr,Go),p);break}Vi(i,Pr,Go);break;case 5:Vi(i,Pr,Go);break;default:throw Error(n(329))}}}return $r(i,Je()),i.callbackNode===c?B0.bind(null,i):null}function dh(i,a){var c=Qs;return i.current.memoizedState.isDehydrated&&(Ui(i,a).flags|=256),i=oc(i,a),i!==2&&(a=Pr,Pr=c,a!==null&&fh(a)),i}function fh(i){Pr===null?Pr=i:Pr.push.apply(Pr,i)}function x4(i){for(var a=i;;){if(a.flags&16384){var c=a.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var p=0;p<c.length;p++){var v=c[p],E=v.getSnapshot;v=v.value;try{if(!co(E(),v))return!1}catch{return!1}}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function hi(i,a){for(a&=~sh,a&=~Ju,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var c=31-xn(a),p=1<<c;i[c]=-1,a&=~p}}function H0(i){if((Ht&6)!==0)throw Error(n(327));Ma();var a=zt(i,0);if((a&1)===0)return $r(i,Je()),null;var c=oc(i,a);if(i.tag!==0&&c===2){var p=Ft(i);p!==0&&(a=p,c=dh(i,p))}if(c===1)throw c=Gs,Ui(i,0),hi(i,a),$r(i,Je()),c;if(c===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Vi(i,Pr,Go),$r(i,Je()),null}function hh(i,a){var c=Ht;Ht|=1;try{return i(a)}finally{Ht=c,Ht===0&&(Na=Je()+500,_u&&ai())}}function Hi(i){di!==null&&di.tag===0&&(Ht&6)===0&&Ma();var a=Ht;Ht|=1;var c=Qr.transition,p=wt;try{if(Qr.transition=null,wt=1,i)return i()}finally{wt=p,Qr.transition=c,Ht=a,(Ht&6)===0&&ai()}}function ph(){jr=Fa.current,un(Fa)}function Ui(i,a){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;if(c!==-1&&(i.timeoutHandle=-1,e4(c)),Ln!==null)for(c=Ln.return;c!==null;){var p=c;switch(Ef(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&Pu();break;case 3:_a(),un(Rr),un(ur),Mf();break;case 5:Ff(p);break;case 4:_a();break;case 13:un(yn);break;case 19:un(yn);break;case 10:Pf(p.type._context);break;case 22:case 23:ph()}c=c.return}if(Kn=i,Ln=i=pi(i.current,null),or=jr=a,zn=0,Gs=null,sh=Ju=Bi=0,Pr=Qs=null,Ai!==null){for(a=0;a<Ai.length;a++)if(c=Ai[a],p=c.interleaved,p!==null){c.interleaved=null;var v=p.next,E=c.pending;if(E!==null){var T=E.next;E.next=v,p.next=T}c.pending=p}Ai=null}return i}function U0(i,a){do{var c=Ln;try{if(Tf(),Bu.current=Wu,Hu){for(var p=Sn.memoizedState;p!==null;){var v=p.queue;v!==null&&(v.pending=null),p=p.next}Hu=!1}if(zi=0,qn=jn=Sn=null,Hs=!1,Us=0,ah.current=null,c===null||c.return===null){zn=1,Gs=a,Ln=null;break}e:{var E=i,T=c.return,k=c,W=a;if(a=or,k.flags|=32768,W!==null&&typeof W=="object"&&typeof W.then=="function"){var oe=W,ge=k,ye=ge.tag;if((ge.mode&1)===0&&(ye===0||ye===11||ye===15)){var me=ge.alternate;me?(ge.updateQueue=me.updateQueue,ge.memoizedState=me.memoizedState,ge.lanes=me.lanes):(ge.updateQueue=null,ge.memoizedState=null)}var Be=p0(T);if(Be!==null){Be.flags&=-257,m0(Be,T,k,E,a),Be.mode&1&&h0(E,oe,a),a=Be,W=oe;var Qe=a.updateQueue;if(Qe===null){var Xe=new Set;Xe.add(W),a.updateQueue=Xe}else Qe.add(W);break e}else{if((a&1)===0){h0(E,oe,a),mh();break e}W=Error(n(426))}}else if(pn&&k.mode&1){var Rn=p0(T);if(Rn!==null){(Rn.flags&65536)===0&&(Rn.flags|=256),m0(Rn,T,k,E,a),Rf(Da(W,k));break e}}E=W=Da(W,k),zn!==4&&(zn=2),Qs===null?Qs=[E]:Qs.push(E),E=T;do{switch(E.tag){case 3:E.flags|=65536,a&=-a,E.lanes|=a;var Z=d0(E,W,a);Av(E,Z);break e;case 1:k=W;var Q=E.type,ne=E.stateNode;if((E.flags&128)===0&&(typeof Q.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(ci===null||!ci.has(ne)))){E.flags|=65536,a&=-a,E.lanes|=a;var Ee=f0(E,k,a);Av(E,Ee);break e}}E=E.return}while(E!==null)}q0(c)}catch(Ze){a=Ze,Ln===c&&c!==null&&(Ln=c=c.return);continue}break}while(!0)}function V0(){var i=Xu.current;return Xu.current=Wu,i===null?Wu:i}function mh(){(zn===0||zn===3||zn===2)&&(zn=4),Kn===null||(Bi&268435455)===0&&(Ju&268435455)===0||hi(Kn,or)}function oc(i,a){var c=Ht;Ht|=2;var p=V0();(Kn!==i||or!==a)&&(Go=null,Ui(i,a));do try{O4();break}catch(v){U0(i,v)}while(!0);if(Tf(),Ht=c,Xu.current=p,Ln!==null)throw Error(n(261));return Kn=null,or=0,zn}function O4(){for(;Ln!==null;)W0(Ln)}function R4(){for(;Ln!==null&&!Me();)W0(Ln)}function W0(i){var a=Q0(i.alternate,i,jr);i.memoizedProps=i.pendingProps,a===null?q0(i):Ln=a,ah.current=null}function q0(i){var a=i;do{var c=a.alternate;if(i=a.return,(a.flags&32768)===0){if(c=y4(c,a,jr),c!==null){Ln=c;return}}else{if(c=S4(c,a),c!==null){c.flags&=32767,Ln=c;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{zn=6,Ln=null;return}}if(a=a.sibling,a!==null){Ln=a;return}Ln=a=i}while(a!==null);zn===0&&(zn=5)}function Vi(i,a,c){var p=wt,v=Qr.transition;try{Qr.transition=null,wt=1,I4(i,a,c,p)}finally{Qr.transition=v,wt=p}return null}function I4(i,a,c,p){do Ma();while(di!==null);if((Ht&6)!==0)throw Error(n(327));c=i.finishedWork;var v=i.finishedLanes;if(c===null)return null;if(i.finishedWork=null,i.finishedLanes=0,c===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=c.lanes|c.childLanes;if(tr(i,E),i===Kn&&(Ln=Kn=null,or=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||ec||(ec=!0,Y0(Xn,function(){return Ma(),null})),E=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||E){E=Qr.transition,Qr.transition=null;var T=wt;wt=1;var k=Ht;Ht|=4,ah.current=null,C4(i,c),M0(c,i),Kx(mf),mu=!!pf,mf=pf=null,i.current=c,w4(c),gt(),Ht=k,wt=T,Qr.transition=E}else i.current=c;if(ec&&(ec=!1,di=i,tc=v),E=i.pendingLanes,E===0&&(ci=null),Cr(c.stateNode),$r(i,Je()),a!==null)for(p=i.onRecoverableError,c=0;c<a.length;c++)v=a[c],p(v.value,{componentStack:v.stack,digest:v.digest});if(Zu)throw Zu=!1,i=uh,uh=null,i;return(tc&1)!==0&&i.tag!==0&&Ma(),E=i.pendingLanes,(E&1)!==0?i===ch?Ys++:(Ys=0,ch=i):Ys=0,ai(),null}function Ma(){if(di!==null){var i=An(tc),a=Qr.transition,c=wt;try{if(Qr.transition=null,wt=16>i?16:i,di===null)var p=!1;else{if(i=di,di=null,tc=0,(Ht&6)!==0)throw Error(n(331));var v=Ht;for(Ht|=4,Ge=i.current;Ge!==null;){var E=Ge,T=E.child;if((Ge.flags&16)!==0){var k=E.deletions;if(k!==null){for(var W=0;W<k.length;W++){var oe=k[W];for(Ge=oe;Ge!==null;){var ge=Ge;switch(ge.tag){case 0:case 11:case 15:Ks(8,ge,E)}var ye=ge.child;if(ye!==null)ye.return=ge,Ge=ye;else for(;Ge!==null;){ge=Ge;var me=ge.sibling,Be=ge.return;if(_0(ge),ge===oe){Ge=null;break}if(me!==null){me.return=Be,Ge=me;break}Ge=Be}}}var Qe=E.alternate;if(Qe!==null){var Xe=Qe.child;if(Xe!==null){Qe.child=null;do{var Rn=Xe.sibling;Xe.sibling=null,Xe=Rn}while(Xe!==null)}}Ge=E}}if((E.subtreeFlags&2064)!==0&&T!==null)T.return=E,Ge=T;else e:for(;Ge!==null;){if(E=Ge,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:Ks(9,E,E.return)}var Z=E.sibling;if(Z!==null){Z.return=E.return,Ge=Z;break e}Ge=E.return}}var Q=i.current;for(Ge=Q;Ge!==null;){T=Ge;var ne=T.child;if((T.subtreeFlags&2064)!==0&&ne!==null)ne.return=T,Ge=ne;else e:for(T=Q;Ge!==null;){if(k=Ge,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:Yu(9,k)}}catch(Ze){wn(k,k.return,Ze)}if(k===T){Ge=null;break e}var Ee=k.sibling;if(Ee!==null){Ee.return=k.return,Ge=Ee;break e}Ge=k.return}}if(Ht=v,ai(),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(vn,i)}catch{}p=!0}return p}finally{wt=c,Qr.transition=a}}return!1}function K0(i,a,c){a=Da(c,a),a=d0(i,a,1),i=li(i,a,1),a=Sr(),i!==null&&(Qt(i,1,a),$r(i,a))}function wn(i,a,c){if(i.tag===3)K0(i,i,c);else for(;a!==null;){if(a.tag===3){K0(a,i,c);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(ci===null||!ci.has(p))){i=Da(c,i),i=f0(a,i,1),a=li(a,i,1),i=Sr(),a!==null&&(Qt(a,1,i),$r(a,i));break}}a=a.return}}function T4(i,a,c){var p=i.pingCache;p!==null&&p.delete(a),a=Sr(),i.pingedLanes|=i.suspendedLanes&c,Kn===i&&(or&c)===c&&(zn===4||zn===3&&(or&130023424)===or&&500>Je()-lh?Ui(i,0):sh|=c),$r(i,a)}function G0(i,a){a===0&&((i.mode&1)===0?a=1:(a=er,er<<=1,(er&130023424)===0&&(er=4194304)));var c=Sr();i=Wo(i,a),i!==null&&(Qt(i,a,c),$r(i,c))}function P4(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),G0(i,c)}function $4(i,a){var c=0;switch(i.tag){case 13:var p=i.stateNode,v=i.memoizedState;v!==null&&(c=v.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),G0(i,c)}var Q0;Q0=function(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps||Rr.current)Tr=!0;else{if((i.lanes&c)===0&&(a.flags&128)===0)return Tr=!1,v4(i,a,c);Tr=(i.flags&131072)!==0}else Tr=!1,pn&&(a.flags&1048576)!==0&&Tv(a,Lu,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;Gu(i,a),i=a.pendingProps;var v=xa(a,ur.current);$a(a,c),v=jf(null,a,p,i,v,c);var E=zf();return a.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Ir(p)?(E=!0,$u(a)):E=!1,a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Df(a),v.updater=qu,a.stateNode=v,v._reactInternals=a,qf(a,p,i,c),a=Yf(null,a,p,!0,E,c)):(a.tag=0,pn&&E&&wf(a),yr(null,a,v,c),a=a.child),a;case 16:p=a.elementType;e:{switch(Gu(i,a),i=a.pendingProps,v=p._init,p=v(p._payload),a.type=p,v=a.tag=D4(p),i=ho(p,i),v){case 0:a=Qf(null,a,p,i,c);break e;case 1:a=C0(null,a,p,i,c);break e;case 11:a=g0(null,a,p,i,c);break e;case 14:a=v0(null,a,p,ho(p.type,i),c);break e}throw Error(n(306,p,""))}return a;case 0:return p=a.type,v=a.pendingProps,v=a.elementType===p?v:ho(p,v),Qf(i,a,p,v,c);case 1:return p=a.type,v=a.pendingProps,v=a.elementType===p?v:ho(p,v),C0(i,a,p,v,c);case 3:e:{if(w0(a),i===null)throw Error(n(387));p=a.pendingProps,E=a.memoizedState,v=E.element,kv(i,a),ju(a,p,null,c);var T=a.memoizedState;if(p=T.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){v=Da(Error(n(423)),a),a=E0(i,a,p,c,v);break e}else if(p!==v){v=Da(Error(n(424)),a),a=E0(i,a,p,c,v);break e}else for(Ar=ri(a.stateNode.containerInfo.firstChild),kr=a,pn=!0,fo=null,c=Nv(a,null,p,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Ia(),p===v){a=Ko(i,a,c);break e}yr(i,a,p,c)}a=a.child}return a;case 5:return zv(a),i===null&&Of(a),p=a.type,v=a.pendingProps,E=i!==null?i.memoizedProps:null,T=v.children,gf(p,v)?T=null:E!==null&&gf(p,E)&&(a.flags|=32),b0(i,a),yr(i,a,T,c),a.child;case 6:return i===null&&Of(a),null;case 13:return x0(i,a,c);case 4:return Lf(a,a.stateNode.containerInfo),p=a.pendingProps,i===null?a.child=Ta(a,null,p,c):yr(i,a,p,c),a.child;case 11:return p=a.type,v=a.pendingProps,v=a.elementType===p?v:ho(p,v),g0(i,a,p,v,c);case 7:return yr(i,a,a.pendingProps,c),a.child;case 8:return yr(i,a,a.pendingProps.children,c),a.child;case 12:return yr(i,a,a.pendingProps.children,c),a.child;case 10:e:{if(p=a.type._context,v=a.pendingProps,E=a.memoizedProps,T=v.value,rn(Mu,p._currentValue),p._currentValue=T,E!==null)if(co(E.value,T)){if(E.children===v.children&&!Rr.current){a=Ko(i,a,c);break e}}else for(E=a.child,E!==null&&(E.return=a);E!==null;){var k=E.dependencies;if(k!==null){T=E.child;for(var W=k.firstContext;W!==null;){if(W.context===p){if(E.tag===1){W=qo(-1,c&-c),W.tag=2;var oe=E.updateQueue;if(oe!==null){oe=oe.shared;var ge=oe.pending;ge===null?W.next=W:(W.next=ge.next,ge.next=W),oe.pending=W}}E.lanes|=c,W=E.alternate,W!==null&&(W.lanes|=c),$f(E.return,c,a),k.lanes|=c;break}W=W.next}}else if(E.tag===10)T=E.type===a.type?null:E.child;else if(E.tag===18){if(T=E.return,T===null)throw Error(n(341));T.lanes|=c,k=T.alternate,k!==null&&(k.lanes|=c),$f(T,c,a),T=E.sibling}else T=E.child;if(T!==null)T.return=E;else for(T=E;T!==null;){if(T===a){T=null;break}if(E=T.sibling,E!==null){E.return=T.return,T=E;break}T=T.return}E=T}yr(i,a,v.children,c),a=a.child}return a;case 9:return v=a.type,p=a.pendingProps.children,$a(a,c),v=Kr(v),p=p(v),a.flags|=1,yr(i,a,p,c),a.child;case 14:return p=a.type,v=ho(p,a.pendingProps),v=ho(p.type,v),v0(i,a,p,v,c);case 15:return y0(i,a,a.type,a.pendingProps,c);case 17:return p=a.type,v=a.pendingProps,v=a.elementType===p?v:ho(p,v),Gu(i,a),a.tag=1,Ir(p)?(i=!0,$u(a)):i=!1,$a(a,c),u0(a,p,v),qf(a,p,v,c),Yf(null,a,p,!0,i,c);case 19:return R0(i,a,c);case 22:return S0(i,a,c)}throw Error(n(156,a.tag))};function Y0(i,a){return fn(i,a)}function _4(i,a,c,p){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(i,a,c,p){return new _4(i,a,c,p)}function gh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function D4(i){if(typeof i=="function")return gh(i)?1:0;if(i!=null){if(i=i.$$typeof,i===A)return 11;if(i===X)return 14}return 2}function pi(i,a){var c=i.alternate;return c===null?(c=Yr(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&14680064,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c}function ic(i,a,c,p,v,E){var T=2;if(p=i,typeof i=="function")gh(i)&&(T=1);else if(typeof i=="string")T=5;else e:switch(i){case _:return Wi(c.children,v,E,a);case L:T=8,v|=8;break;case F:return i=Yr(12,c,a,v|2),i.elementType=F,i.lanes=E,i;case B:return i=Yr(13,c,a,v),i.elementType=B,i.lanes=E,i;case H:return i=Yr(19,c,a,v),i.elementType=H,i.lanes=E,i;case G:return ac(c,v,E,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case N:T=10;break e;case z:T=9;break e;case A:T=11;break e;case X:T=14;break e;case V:T=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=Yr(T,c,a,v),a.elementType=i,a.type=p,a.lanes=E,a}function Wi(i,a,c,p){return i=Yr(7,i,p,a),i.lanes=c,i}function ac(i,a,c,p){return i=Yr(22,i,p,a),i.elementType=G,i.lanes=c,i.stateNode={isHidden:!1},i}function vh(i,a,c){return i=Yr(6,i,null,a),i.lanes=c,i}function yh(i,a,c){return a=Yr(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function L4(i,a,c,p,v){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.identifierPrefix=p,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Sh(i,a,c,p,v,E,T,k,W){return i=new L4(i,a,c,k,W),a===1?(a=1,E===!0&&(a|=8)):a=0,E=Yr(3,null,null,a),i.current=E,E.stateNode=i,E.memoizedState={element:p,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(E),i}function F4(i,a,c){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:p==null?null:""+p,children:i,containerInfo:a,implementation:c}}function X0(i){if(!i)return ii;i=i._reactInternals;e:{if(Ot(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Ir(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var c=i.type;if(Ir(c))return Ov(i,c,a)}return a}function J0(i,a,c,p,v,E,T,k,W){return i=Sh(c,p,!0,i,v,E,T,k,W),i.context=X0(null),c=i.current,p=Sr(),v=fi(c),E=qo(p,v),E.callback=a??null,li(c,E,v),i.current.lanes=v,Qt(i,v,p),$r(i,p),i}function sc(i,a,c,p){var v=a.current,E=Sr(),T=fi(v);return c=X0(c),a.context===null?a.context=c:a.pendingContext=c,a=qo(E,T),a.payload={element:i},p=p===void 0?null:p,p!==null&&(a.callback=p),i=li(v,a,T),i!==null&&(go(i,v,T,E),Au(i,v,T)),T}function lc(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Z0(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function bh(i,a){Z0(i,a),(i=i.alternate)&&Z0(i,a)}function N4(){return null}var e1=typeof reportError=="function"?reportError:function(i){console.error(i)};function Ch(i){this._internalRoot=i}uc.prototype.render=Ch.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));sc(i,a,null,null)},uc.prototype.unmount=Ch.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Hi(function(){sc(null,i,null,null)}),a[Bo]=null}};function uc(i){this._internalRoot=i}uc.prototype.unstable_scheduleHydration=function(i){if(i){var a=Zo();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Vr.length&&a!==0&&a<Vr[c].priority;c++);Vr.splice(c,0,i),c===0&&tn(i)}};function wh(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function cc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function t1(){}function M4(i,a,c,p,v){if(v){if(typeof p=="function"){var E=p;p=function(){var oe=lc(T);E.call(oe)}}var T=J0(a,p,i,0,null,!1,!1,"",t1);return i._reactRootContainer=T,i[Bo]=T.current,Fs(i.nodeType===8?i.parentNode:i),Hi(),T}for(;v=i.lastChild;)i.removeChild(v);if(typeof p=="function"){var k=p;p=function(){var oe=lc(W);k.call(oe)}}var W=Sh(i,0,!1,null,null,!1,!1,"",t1);return i._reactRootContainer=W,i[Bo]=W.current,Fs(i.nodeType===8?i.parentNode:i),Hi(function(){sc(a,W,c,p)}),W}function dc(i,a,c,p,v){var E=c._reactRootContainer;if(E){var T=E;if(typeof v=="function"){var k=v;v=function(){var W=lc(T);k.call(W)}}sc(a,T,i,v)}else T=M4(c,a,i,v,p);return lc(T)}Un=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var c=sr(a.pendingLanes);c!==0&&(On(a,c|1),$r(a,Je()),(Ht&6)===0&&(Na=Je()+500,ai()))}break;case 13:Hi(function(){var p=Wo(i,1);if(p!==null){var v=Sr();go(p,i,1,v)}}),bh(i,1)}},xr=function(i){if(i.tag===13){var a=Wo(i,134217728);if(a!==null){var c=Sr();go(a,i,134217728,c)}bh(i,134217728)}},Vn=function(i){if(i.tag===13){var a=fi(i),c=Wo(i,a);if(c!==null){var p=Sr();go(c,i,a,p)}bh(i,a)}},Zo=function(){return wt},ha=function(i,a){var c=wt;try{return wt=i,a()}finally{wt=c}},Cn=function(i,a,c){switch(a){case"input":if(Ne(i,c),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<c.length;a++){var p=c[a];if(p!==i&&p.form===i.form){var v=Tu(p);if(!v)throw Error(n(90));ue(p),Ne(p,v)}}}break;case"textarea":Ie(i,c);break;case"select":a=c.value,a!=null&&De(i,!!c.multiple,a,!1)}},Ct=hh,Vt=Hi;var k4={usingClientEntryPoint:!1,Events:[ks,wa,Tu,Ut,It,hh]},Xs={findFiberByHostInstance:Fi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},A4={bundleType:Xs.bundleType,version:Xs.version,rendererPackageName:Xs.rendererPackageName,rendererConfig:Xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Dn(i),i===null?null:i.stateNode},findFiberByHostInstance:Xs.findFiberByHostInstance||N4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{vn=fc.inject(A4),En=fc}catch{}}return _r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k4,_r.createPortal=function(i,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wh(a))throw Error(n(200));return F4(i,a,null,c)},_r.createRoot=function(i,a){if(!wh(i))throw Error(n(299));var c=!1,p="",v=e1;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=Sh(i,1,!1,null,null,c,!1,p,v),i[Bo]=a.current,Fs(i.nodeType===8?i.parentNode:i),new Ch(a)},_r.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Dn(a),i=i===null?null:i.stateNode,i},_r.flushSync=function(i){return Hi(i)},_r.hydrate=function(i,a,c){if(!cc(a))throw Error(n(200));return dc(null,i,a,!0,c)},_r.hydrateRoot=function(i,a,c){if(!wh(i))throw Error(n(405));var p=c!=null&&c.hydratedSources||null,v=!1,E="",T=e1;if(c!=null&&(c.unstable_strictMode===!0&&(v=!0),c.identifierPrefix!==void 0&&(E=c.identifierPrefix),c.onRecoverableError!==void 0&&(T=c.onRecoverableError)),a=J0(a,null,i,1,c??null,v,!1,E,T),i[Bo]=a.current,Fs(i),p)for(i=0;i<p.length;i++)c=p[i],v=c._getVersion,v=v(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,v]:a.mutableSourceEagerHydrationData.push(c,v);return new uc(a)},_r.render=function(i,a,c){if(!cc(a))throw Error(n(200));return dc(null,i,a,!1,c)},_r.unmountComponentAtNode=function(i){if(!cc(i))throw Error(n(40));return i._reactRootContainer?(Hi(function(){dc(null,null,i,!1,function(){i._reactRootContainer=null,i[Bo]=null})}),!0):!1},_r.unstable_batchedUpdates=hh,_r.unstable_renderSubtreeIntoContainer=function(i,a,c,p){if(!cc(c))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return dc(i,a,c,!1,p)},_r.version="18.3.1-next-f1338f8080-20240426",_r}var u1;function eb(){if(u1)return Oh.exports;u1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Oh.exports=W4(),Oh.exports}var c1;function q4(){if(c1)return hc;c1=1;var e=eb();return hc.createRoot=e.createRoot,hc.hydrateRoot=e.hydrateRoot,hc}var K4=q4();const G4=hs(K4);var Jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Q4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Y4=class{#e=Q4;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Yi=new Y4;function X4(e){setTimeout(e,0)}var na=typeof window>"u"||"Deno"in globalThis;function Dr(){}function J4(e,t){return typeof e=="function"?e(t):e}function Cp(e){return typeof e=="number"&&e>=0&&e!==1/0}function tb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oi(e,t){return typeof e=="function"?e(t):e}function no(e,t){return typeof e=="function"?e(t):e}function d1(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Bm(l,t.options))return!1}else if(!$l(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function f1(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Pl(t.options.mutationKey)!==Pl(s))return!1}else if(!$l(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Bm(e,t){return(t?.queryKeyHashFn||Pl)(e)}function Pl(e){return JSON.stringify(e,(t,n)=>Ep(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function $l(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>$l(e[n],t[n])):!1}var Z4=Object.prototype.hasOwnProperty;function nb(e,t){if(e===t)return e;const n=h1(e)&&h1(t);if(!n&&!(Ep(e)&&Ep(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,u=n?new Array(l):{};let f=0;for(let h=0;h<l;h++){const m=n?h:s[h],g=e[m],y=t[m];if(g===y){u[m]=g,(n?h<o:Z4.call(e,m))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){u[m]=y;continue}const w=nb(g,y);u[m]=w,w===g&&f++}return o===l&&f===o?e:u}function wp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function h1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ep(e){if(!p1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!p1(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function p1(e){return Object.prototype.toString.call(e)==="[object Object]"}function e3(e){return new Promise(t=>{Yi.setTimeout(t,e)})}function xp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nb(e,t):t}function t3(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function n3(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hm=Symbol();function rb(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Hm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function r3(e,t){return typeof e=="function"?e(...t):!!e}var o3=class extends Jl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!na&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Um=new o3;function Op(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var i3=X4;function a3(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=i3;const s=u=>{t?e.push(u):o(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&o(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{o=u}}}var ar=a3(),s3=class extends Jl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!na&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Vc=new s3;function l3(e){return Math.min(1e3*2**e,3e4)}function ob(e){return(e??"online")==="online"?Vc.isOnline():!0}var Rp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ib(e){let t=!1,n=0,r;const o=Op(),s=()=>o.status!=="pending",l=C=>{if(!s()){const S=new Rp(C);y(S),e.onCancel?.(S)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>Um.isFocused()&&(e.networkMode==="always"||Vc.isOnline())&&e.canRun(),m=()=>ob(e.networkMode)&&e.canRun(),g=C=>{s()||(r?.(),o.resolve(C))},y=C=>{s()||(r?.(),o.reject(C))},w=()=>new Promise(C=>{r=S=>{(s()||h())&&C(S)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),b=()=>{if(s())return;let C;const S=n===0?e.initialPromise:void 0;try{C=S??e.fn()}catch(O){C=Promise.reject(O)}Promise.resolve(C).then(g).catch(O=>{if(s())return;const x=e.retry??(na?0:3),R=e.retryDelay??l3,I=typeof R=="function"?R(n,O):R,P=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,O);if(t||!P){y(O);return}n++,e.onFail?.(n,O),e3(I).then(()=>h()?void 0:w()).then(()=>{t?y(O):b()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:u,continueRetry:f,canStart:m,start:()=>(m()?b():w().then(b),o)}}var ab=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cp(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(na?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},u3=class extends ab{#e;#t;#n;#o;#r;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=g1(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=g1(this.options);t.data!==void 0&&(this.setState(m1(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=xp(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Dr).catch(Dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>no(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Oi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tb(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const u=rb(this.options,t),h=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#a=!1,this.options.persister?this.options.persister(u,h,this):u(h)},l=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=ib({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof Rp&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,f)=>{this.#i({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof Rp){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#i({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...sb(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...m1(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ar.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function sb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ob(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function m1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function g1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var c3=class extends Jl{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=Op(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#s;#a;#i;#m;#f;#h;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),v1(this.#t,this.options)?this.#d():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ip(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ip(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#C(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof no(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!wp(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&y1(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||no(this.options.enabled,this.#t)!==no(t.enabled,this.#t)||Oi(this.options.staleTime,this.#t)!==Oi(t.staleTime,this.#t))&&this.#g();const o=this.#v();r&&(this.#t!==n||no(this.options.enabled,this.#t)!==no(t.enabled,this.#t)||o!==this.#l)&&this.#y(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return f3(this,n)&&(this.#o=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Dr)),t}#g(){this.#b();const e=Oi(this.options.staleTime,this.#t);if(na||this.#o.isStale||!Cp(e))return;const n=tb(this.#o.dataUpdatedAt,e)+1;this.#u=Yi.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#C(),this.#l=e,!(na||no(this.options.enabled,this.#t)===!1||!Cp(this.#l)||this.#l===0)&&(this.#c=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||Um.isFocused())&&this.#d()},this.#l))}#S(){this.#g(),this.#y(this.#v())}#b(){this.#u&&(Yi.clearTimeout(this.#u),this.#u=void 0)}#C(){this.#c&&(Yi.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,s=this.#r,l=this.#s,f=e!==n?e.state:this.#n,{state:h}=e;let m={...h},g=!1,y;if(t._optimisticResults){const L=this.hasListeners(),F=!L&&v1(e,t),N=L&&y1(e,n,t,r);(F||N)&&(m={...m,...sb(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:C}=m;y=m.data;let S=!1;if(t.placeholderData!==void 0&&y===void 0&&C==="pending"){let L;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(L=o.data,S=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(C="success",y=xp(o?.data,L,t),g=!0)}if(t.select&&y!==void 0&&!S)if(o&&y===s?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=xp(o?.data,y,t),this.#f=y,this.#i=null}catch(L){this.#i=L}this.#i&&(w=this.#i,y=this.#f,b=Date.now(),C="error");const O=m.fetchStatus==="fetching",x=C==="pending",R=C==="error",I=x&&O,P=y!==void 0,_={status:C,fetchStatus:m.fetchStatus,isPending:x,isSuccess:C==="success",isError:R,isInitialLoading:I,isLoading:I,data:y,dataUpdatedAt:m.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!x,isLoadingError:R&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:R&&P,isStale:Vm(e,t),refetch:this.refetch,promise:this.#a,isEnabled:no(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=z=>{_.status==="error"?z.reject(_.error):_.data!==void 0&&z.resolve(_.data)},F=()=>{const z=this.#a=_.promise=Op();L(z)},N=this.#a;switch(N.status){case"pending":e.queryHash===n.queryHash&&L(N);break;case"fulfilled":(_.status==="error"||_.data!==N.value)&&F();break;case"rejected":(_.status!=="error"||_.error!==N.reason)&&F();break}}return _}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#h=this.#t),wp(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#o).some(l=>{const u=l;return this.#o[u]!==e[u]&&s.has(u)})};this.#E({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(e){ar.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function d3(e,t){return no(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function v1(e,t){return d3(e,t)||e.state.data!==void 0&&Ip(e,t,t.refetchOnMount)}function Ip(e,t,n){if(no(t.enabled,e)!==!1&&Oi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Vm(e,t)}return!1}function y1(e,t,n,r){return(e!==t||no(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Vm(e,n)}function Vm(e,t){return no(t.enabled,e)!==!1&&e.isStaleByTime(Oi(t.staleTime,e))}function f3(e,t){return!wp(e.getCurrentResult(),t)}function S1(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let m=!1;const g=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=rb(t.options,t.fetchOptions),w=async(b,C,S)=>{if(m)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const x=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};return g($),$})(),R=await y(x),{maxPages:I}=t.options,P=S?n3:t3;return{pages:P(b.pages,R,I),pageParams:P(b.pageParams,C,I)}};if(o&&s.length){const b=o==="backward",C=b?h3:b1,S={pages:s,pageParams:l},O=C(r,S);u=await w(S,O,b)}else{const b=e??s.length;do{const C=f===0?l[0]??r.initialPageParam:b1(r,u);if(f>0&&C==null)break;u=await w(u,C),f++}while(f<b)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function b1(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function h3(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var p3=class extends ab{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||m3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=ib({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#r({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#o.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ar.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function m3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g3=class extends Jl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new p3({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=pc(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=pc(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pc(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=pc(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ar.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>f1(t,n))}findAll(e={}){return this.getAll().filter(t=>f1(e,t))}notify(e){ar.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ar.batch(()=>Promise.all(e.map(t=>t.continue().catch(Dr))))}};function pc(e){return e.options.scope?.id}var v3=class extends Jl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Bm(r,t);let s=this.get(o);return s||(s=new u3({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ar.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>d1(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>d1(e,n)):t}notify(e){ar.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ar.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ar.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y3=class{#e;#t;#n;#o;#r;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new v3,this.#t=e.mutationCache||new g3,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Um.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Vc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Oi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=J4(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return ar.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ar.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ar.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ar.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Dr).catch(Dr)}invalidateQueries(e,t={}){return ar.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ar.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Dr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Oi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dr).catch(Dr)}fetchInfiniteQuery(e){return e.behavior=S1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dr).catch(Dr)}ensureInfiniteQueryData(e){return e.behavior=S1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Pl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{$l(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Pl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{$l(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},lb=d.createContext(void 0),ub=e=>{const t=d.useContext(lb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},S3=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ce.jsx(lb.Provider,{value:e,children:t})),cb=d.createContext(!1),b3=()=>d.useContext(cb);cb.Provider;function C3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var w3=d.createContext(C3()),E3=()=>d.useContext(w3),x3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},O3=e=>{d.useEffect(()=>{e.clearReset()},[e])},R3=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||r3(n,[e.error,r])),I3=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},T3=(e,t)=>e.isLoading&&e.isFetching&&!t,P3=(e,t)=>e?.suspense&&t.isPending,C1=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $3(e,t,n){const r=b3(),o=E3(),s=ub(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",I3(l),x3(l,o),O3(o);const u=!s.getQueryCache().get(l.queryHash),[f]=d.useState(()=>new t(s,l)),h=f.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(g=>{const y=m?f.subscribe(ar.batchCalls(g)):Dr;return f.updateResult(),y},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),d.useEffect(()=>{f.setOptions(l)},[l,f]),P3(l,h))throw C1(l,f,o);if(R3({result:h,errorResetBoundary:o,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw h.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!na&&T3(h,r)&&(u?C1(l,f,o):s.getQueryCache().get(l.queryHash)?.promise)?.catch(Dr).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?h:f.trackResult(h)}function db(e,t){return $3(e,c3)}var Ii=eb();const Tp=hs(Ii),_3=Z2({__proto__:null,default:Tp},[Ii]);function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}var Ci;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ci||(Ci={}));const w1="popstate";function D3(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:l,hash:u}=r.location;return Pp("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Wc(o)}return F3(t,n,null,e)}function Tn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L3(){return Math.random().toString(36).substr(2,8)}function E1(e,t){return{usr:e.state,key:e.key,idx:t}}function Pp(e,t,n,r){return n===void 0&&(n=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ps(t):t,{state:n,key:t&&t.key||r||L3()})}function Wc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function F3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,u=Ci.Pop,f=null,h=m();h==null&&(h=0,l.replaceState(_l({},l.state,{idx:h}),""));function m(){return(l.state||{idx:null}).idx}function g(){u=Ci.Pop;let S=m(),O=S==null?null:S-h;h=S,f&&f({action:u,location:C.location,delta:O})}function y(S,O){u=Ci.Push;let x=Pp(C.location,S,O);h=m()+1;let R=E1(x,h),I=C.createHref(x);try{l.pushState(R,"",I)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(I)}s&&f&&f({action:u,location:C.location,delta:1})}function w(S,O){u=Ci.Replace;let x=Pp(C.location,S,O);h=m();let R=E1(x,h),I=C.createHref(x);l.replaceState(R,"",I),s&&f&&f({action:u,location:C.location,delta:0})}function b(S){let O=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof S=="string"?S:Wc(S);return x=x.replace(/ $/,"%20"),Tn(O,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,O)}let C={get action(){return u},get location(){return e(o,l)},listen(S){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(w1,g),f=S,()=>{o.removeEventListener(w1,g),f=null}},createHref(S){return t(o,S)},createURL:b,encodeLocation(S){let O=b(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:w,go(S){return l.go(S)}};return C}var x1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(x1||(x1={}));function N3(e,t,n){return n===void 0&&(n="/"),M3(e,t,n)}function M3(e,t,n,r){let o=typeof t=="string"?ps(t):t,s=Wm(o.pathname||"/",n);if(s==null)return null;let l=hb(e);k3(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let h=Q3(s);u=q3(l[f],h)}return u}function hb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,u)=>{let f={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};f.relativePath.startsWith("/")&&(Tn(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let h=Ri([r,f.relativePath]),m=n.concat(f);s.children&&s.children.length>0&&(Tn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),hb(s.children,t,m,h)),!(s.path==null&&!s.index)&&t.push({path:h,score:V3(h,s.index),routesMeta:m})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))o(s,l);else for(let f of pb(s.path))o(s,l,f)}),t}function pb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=pb(r.join("/")),u=[];return u.push(...l.map(f=>f===""?s:[s,f].join("/"))),o&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function k3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:W3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A3=/^:[\w-]+$/,j3=3,z3=2,B3=1,H3=10,U3=-2,O1=e=>e==="*";function V3(e,t){let n=e.split("/"),r=n.length;return n.some(O1)&&(r+=U3),t&&(r+=z3),n.filter(o=>!O1(o)).reduce((o,s)=>o+(A3.test(s)?j3:s===""?B3:H3),r)}function W3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function q3(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let u=0;u<r.length;++u){let f=r[u],h=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",g=K3({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),y=f.route;if(!g)return null;Object.assign(o,g.params),l.push({params:o,pathname:Ri([s,g.pathname]),pathnameBase:Z3(Ri([s,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(s=Ri([s,g.pathnameBase]))}return l}function K3(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G3(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((h,m,g)=>{let{paramName:y,isOptional:w}=m;if(y==="*"){let C=u[g]||"";l=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const b=u[g];return w&&!b?h[y]=void 0:h[y]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:l,pattern:e}}function G3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Q3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Y3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ps(e):e;return{pathname:n?n.startsWith("/")?n:X3(n,t):t,search:eO(r),hash:tO(o)}}function X3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Th(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function J3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qm(e,t){let n=J3(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Km(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ps(e):(o=_l({},e),Tn(!o.pathname||!o.pathname.includes("?"),Th("?","pathname","search",o)),Tn(!o.pathname||!o.pathname.includes("#"),Th("#","pathname","hash",o)),Tn(!o.search||!o.search.includes("#"),Th("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;o.pathname=y.join("/")}u=g>=0?t[g]:"/"}let f=Y3(o,u),h=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}const Ri=e=>e.join("/").replace(/\/\/+/g,"/"),Z3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mb=["post","put","patch","delete"];new Set(mb);const rO=["get",...mb];new Set(rO);function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(this,arguments)}const Gm=d.createContext(null),oO=d.createContext(null),Ti=d.createContext(null),md=d.createContext(null),Xo=d.createContext({outlet:null,matches:[],isDataRoute:!1}),gb=d.createContext(null);function iO(e,t){let{relative:n}=t===void 0?{}:t;ms()||Tn(!1);let{basename:r,navigator:o}=d.useContext(Ti),{hash:s,pathname:l,search:u}=yb(e,{relative:n}),f=l;return r!=="/"&&(f=l==="/"?r:Ri([r,l])),o.createHref({pathname:f,search:u,hash:s})}function ms(){return d.useContext(md)!=null}function gs(){return ms()||Tn(!1),d.useContext(md).location}function vb(e){d.useContext(Ti).static||d.useLayoutEffect(e)}function gd(){let{isDataRoute:e}=d.useContext(Xo);return e?bO():aO()}function aO(){ms()||Tn(!1);let e=d.useContext(Gm),{basename:t,future:n,navigator:r}=d.useContext(Ti),{matches:o}=d.useContext(Xo),{pathname:s}=gs(),l=JSON.stringify(qm(o,n.v7_relativeSplatPath)),u=d.useRef(!1);return vb(()=>{u.current=!0}),d.useCallback(function(h,m){if(m===void 0&&(m={}),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=Km(h,JSON.parse(l),s,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Ri([t,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[t,r,l,s,e])}const sO=d.createContext(null);function lO(e){let t=d.useContext(Xo).outlet;return t&&d.createElement(sO.Provider,{value:e},t)}function yb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Ti),{matches:o}=d.useContext(Xo),{pathname:s}=gs(),l=JSON.stringify(qm(o,r.v7_relativeSplatPath));return d.useMemo(()=>Km(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function uO(e,t){return cO(e,t)}function cO(e,t,n,r){ms()||Tn(!1);let{navigator:o}=d.useContext(Ti),{matches:s}=d.useContext(Xo),l=s[s.length-1],u=l?l.params:{};l&&l.pathname;let f=l?l.pathnameBase:"/";l&&l.route;let h=gs(),m;if(t){var g;let S=typeof t=="string"?ps(t):t;f==="/"||(g=S.pathname)!=null&&g.startsWith(f)||Tn(!1),m=S}else m=h;let y=m.pathname||"/",w=y;if(f!=="/"){let S=f.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(S.length).join("/")}let b=N3(e,{pathname:w}),C=mO(b&&b.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Ri([f,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:Ri([f,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&C?d.createElement(md.Provider,{value:{location:Dl({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Ci.Pop}},C):C}function dO(){let e=SO(),t=nO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:o},n):null,null)}const fO=d.createElement(dO,null);class hO extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Xo.Provider,{value:this.props.routeContext},d.createElement(gb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pO(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext(Gm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Xo.Provider,{value:t},r)}function mO(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let m=l.findIndex(g=>g.route.id&&u?.[g.route.id]!==void 0);m>=0||Tn(!1),l=l.slice(0,Math.min(l.length,m+1))}let f=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<l.length;m++){let g=l[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:y,errors:w}=n,b=g.route.loader&&y[g.route.id]===void 0&&(!w||w[g.route.id]===void 0);if(g.route.lazy||b){f=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((m,g,y)=>{let w,b=!1,C=null,S=null;n&&(w=u&&g.route.id?u[g.route.id]:void 0,C=g.route.errorElement||fO,f&&(h<0&&y===0?(CO("route-fallback"),b=!0,S=null):h===y&&(b=!0,S=g.route.hydrateFallbackElement||null)));let O=t.concat(l.slice(0,y+1)),x=()=>{let R;return w?R=C:b?R=S:g.route.Component?R=d.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=m,d.createElement(pO,{match:g,routeContext:{outlet:m,matches:O,isDataRoute:n!=null},children:R})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?d.createElement(hO,{location:n.location,revalidation:n.revalidation,component:C,error:w,children:x(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):x()},null)}var Sb=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Sb||{}),bb=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(bb||{});function gO(e){let t=d.useContext(Gm);return t||Tn(!1),t}function vO(e){let t=d.useContext(oO);return t||Tn(!1),t}function yO(e){let t=d.useContext(Xo);return t||Tn(!1),t}function Cb(e){let t=yO(),n=t.matches[t.matches.length-1];return n.route.id||Tn(!1),n.route.id}function SO(){var e;let t=d.useContext(gb),n=vO(),r=Cb();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bO(){let{router:e}=gO(Sb.UseNavigateStable),t=Cb(bb.UseNavigateStable),n=d.useRef(!1);return vb(()=>{n.current=!0}),d.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Dl({fromRouteId:t},s)))},[e,t])}const R1={};function CO(e,t,n){R1[e]||(R1[e]=!0)}function wO(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function EO(e){let{to:t,replace:n,state:r,relative:o}=e;ms()||Tn(!1);let{future:s,static:l}=d.useContext(Ti),{matches:u}=d.useContext(Xo),{pathname:f}=gs(),h=gd(),m=Km(t,qm(u,s.v7_relativeSplatPath),f,o==="path"),g=JSON.stringify(m);return d.useEffect(()=>h(JSON.parse(g),{replace:n,state:r,relative:o}),[h,g,o,n,r]),null}function xO(e){return lO(e.context)}function yo(e){Tn(!1)}function OO(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ci.Pop,navigator:s,static:l=!1,future:u}=e;ms()&&Tn(!1);let f=t.replace(/^\/*/,"/"),h=d.useMemo(()=>({basename:f,navigator:s,static:l,future:Dl({v7_relativeSplatPath:!1},u)}),[f,u,s,l]);typeof r=="string"&&(r=ps(r));let{pathname:m="/",search:g="",hash:y="",state:w=null,key:b="default"}=r,C=d.useMemo(()=>{let S=Wm(m,f);return S==null?null:{location:{pathname:S,search:g,hash:y,state:w,key:b},navigationType:o}},[f,m,g,y,w,b,o]);return C==null?null:d.createElement(Ti.Provider,{value:h},d.createElement(md.Provider,{children:n,value:C}))}function RO(e){let{children:t,location:n}=e;return uO($p(t),n)}new Promise(()=>{});function $p(e,t){t===void 0&&(t=[]);let n=[];return d.Children.forEach(e,(r,o)=>{if(!d.isValidElement(r))return;let s=[...t,o];if(r.type===d.Fragment){n.push.apply(n,$p(r.props.children,s));return}r.type!==yo&&Tn(!1),!r.props.index||!r.props.children||Tn(!1);let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=$p(r.props.children,s)),n.push(l)}),n}function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}function IO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function TO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PO(e,t){return e.button===0&&(!t||t==="_self")&&!TO(e)}const $O=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_O="6";try{window.__reactRouterVersion=_O}catch{}const DO="startTransition",I1=Xl[DO];function LO(e){let{basename:t,children:n,future:r,window:o}=e,s=d.useRef();s.current==null&&(s.current=D3({window:o,v5Compat:!0}));let l=s.current,[u,f]=d.useState({action:l.action,location:l.location}),{v7_startTransition:h}=r||{},m=d.useCallback(g=>{h&&I1?I1(()=>f(g)):f(g)},[f,h]);return d.useLayoutEffect(()=>l.listen(m),[l,m]),d.useEffect(()=>wO(r),[r]),d.createElement(OO,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const FO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MO=d.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:u,target:f,to:h,preventScrollReset:m,viewTransition:g}=t,y=IO(t,$O),{basename:w}=d.useContext(Ti),b,C=!1;if(typeof h=="string"&&NO.test(h)&&(b=h,FO))try{let R=new URL(window.location.href),I=h.startsWith("//")?new URL(R.protocol+h):new URL(h),P=Wm(I.pathname,w);I.origin===R.origin&&P!=null?h=P+I.search+I.hash:C=!0}catch{}let S=iO(h,{relative:o}),O=kO(h,{replace:l,state:u,target:f,preventScrollReset:m,relative:o,viewTransition:g});function x(R){r&&r(R),R.defaultPrevented||O(R)}return d.createElement("a",_p({},y,{href:b||S,onClick:C||s?r:x,ref:n,target:f}))});var T1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(T1||(T1={}));var P1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(P1||(P1={}));function kO(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,viewTransition:u}=t===void 0?{}:t,f=gd(),h=gs(),m=yb(e,{relative:l});return d.useCallback(g=>{if(PO(g,n)){g.preventDefault();let y=r!==void 0?r:Wc(h)===Wc(m);f(e,{replace:y,state:o,preventScrollReset:s,relative:l,viewTransition:u})}},[h,f,m,r,o,n,e,s,l,u])}const AO="modulepreload",jO=function(e,t){return new URL(e,t).href},$1={},Pi=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let h=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const l=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");o=h(n.map(m=>{if(m=jO(m,r),m in $1)return;$1[m]=!0;const g=m.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(r)for(let b=l.length-1;b>=0;b--){const C=l[b];if(C.href===m&&(!g||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${y}`))return;const w=document.createElement("link");if(w.rel=g?"stylesheet":AO,g||(w.as="script"),w.crossOrigin="",w.href=m,f&&w.setAttribute("nonce",f),document.head.appendChild(w),g)return new Promise((b,C)=>{w.addEventListener("load",b),w.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return o.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Ph={exports:{}};var _1;function zO(){return _1||(_1=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(s=o(s,r(u)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var u in s)t.call(s,u)&&s[u]&&(l=o(l,u));return l}function o(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ph)),Ph.exports}var BO=zO();const Se=hs(BO);function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(null,arguments)}function ot(e){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(e)}var HO=Symbol.for("react.element"),UO=Symbol.for("react.transitional.element"),VO=Symbol.for("react.fragment");function wb(e){return e&&ot(e)==="object"&&(e.$$typeof===HO||e.$$typeof===UO)&&e.type===VO}function Mo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return He.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Mo(r)):wb(r)&&r.props?n=n.concat(Mo(r.props.children,t)):n.push(r))}),n}var Dp={},WO=function(t){};function qO(e,t){}function KO(e,t){}function GO(){Dp={}}function Eb(e,t,n){!t&&!Dp[n]&&(e(!1,n),Dp[n]=!0)}function gr(e,t){Eb(qO,e,t)}function QO(e,t){Eb(KO,e,t)}gr.preMessage=WO;gr.resetWarned=GO;gr.noteOnce=QO;function YO(e,t){if(ot(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ot(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xb(e){var t=YO(e,"string");return ot(t)=="symbol"?t:t+""}function U(e,t,n){return(t=xb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ll(e){return e instanceof HTMLElement||e instanceof SVGElement}function XO(e){return e&&ot(e)==="object"&&Ll(e.nativeElement)?e.nativeElement:Ll(e)?e:null}function Ic(e){var t=XO(e);if(t)return t;if(e instanceof He.Component){var n;return(n=Tp.findDOMNode)===null||n===void 0?void 0:n.call(Tp,e)}return null}var $h={exports:{}},Xt={};var L1;function JO(){if(L1)return Xt;L1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function C(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case n:case o:case r:case h:case m:return S;default:switch(S=S&&S.$$typeof,S){case u:case l:case f:case y:case g:case s:return S;default:return O}}case t:return O}}}return Xt.ContextConsumer=l,Xt.ContextProvider=s,Xt.Element=e,Xt.ForwardRef=f,Xt.Fragment=n,Xt.Lazy=y,Xt.Memo=g,Xt.Portal=t,Xt.Profiler=o,Xt.StrictMode=r,Xt.Suspense=h,Xt.SuspenseList=m,Xt.isAsyncMode=function(){return!1},Xt.isConcurrentMode=function(){return!1},Xt.isContextConsumer=function(S){return C(S)===l},Xt.isContextProvider=function(S){return C(S)===s},Xt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Xt.isForwardRef=function(S){return C(S)===f},Xt.isFragment=function(S){return C(S)===n},Xt.isLazy=function(S){return C(S)===y},Xt.isMemo=function(S){return C(S)===g},Xt.isPortal=function(S){return C(S)===t},Xt.isProfiler=function(S){return C(S)===o},Xt.isStrictMode=function(S){return C(S)===r},Xt.isSuspense=function(S){return C(S)===h},Xt.isSuspenseList=function(S){return C(S)===m},Xt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===h||S===m||S===w||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===g||S.$$typeof===s||S.$$typeof===l||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Xt.typeOf=C,Xt}var F1;function ZO(){return F1||(F1=1,$h.exports=JO()),$h.exports}var _h=ZO();function Zl(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var eR=Number(d.version.split(".")[0]),Qm=function(t,n){typeof t=="function"?t(n):ot(t)==="object"&&t&&"current"in t&&(t.current=n)},vs=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(s){n.forEach(function(l){Qm(l,s)})}},la=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Zl(function(){return vs.apply(void 0,n)},n,function(o,s){return o.length!==s.length||o.every(function(l,u){return l!==s[u]})})},ys=function(t){var n,r;if(!t)return!1;if(Ym(t)&&eR>=19)return!0;var o=_h.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==_h.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==_h.ForwardRef)};function Ym(e){return d.isValidElement(e)&&!wb(e)}var tR=function(t){return Ym(t)&&ys(t)},eu=function(t){if(t&&Ym(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Lp=d.createContext(null);function nR(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),s=d.useContext(Lp),l=d.useCallback(function(u,f,h){r.current+=1;var m=r.current;o.current.push({size:u,element:f,data:h}),Promise.resolve().then(function(){m===r.current&&(n?.(o.current),o.current=[])}),s?.(u,f,h)},[n,s]);return d.createElement(Lp.Provider,{value:l},t)}var Ob=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,s){return o[0]===n?(r=s,!0):!1}),r}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(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,s=this.__entries__;o<s.length;o++){var l=s[o];n.call(r,l[1],l[0])}},t})()})(),Fp=typeof window<"u"&&typeof document<"u"&&window.document===document,qc=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),rR=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),oR=2;function iR(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&u()}function l(){rR(s)}function u(){var f=Date.now();if(n){if(f-o<oR)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=f}return u}var aR=20,sR=["top","right","bottom","left","width","height","size","weight"],lR=typeof MutationObserver<"u",uR=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=iR(this.refresh.bind(this),aR)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),lR?(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(){!Fp||!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(t){var n=t.propertyName,r=n===void 0?"":n,o=sR.some(function(s){return!!~r.indexOf(s)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Rb=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),ns=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||qc}),Ib=vd(0,0,0,0);function Kc(e){return parseFloat(e)||0}function N1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var s=e["border-"+o+"-width"];return r+Kc(s)},0)}function cR(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var s=o[r],l=e["padding-"+s];n[s]=Kc(l)}return n}function dR(e){var t=e.getBBox();return vd(0,0,t.width,t.height)}function fR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ib;var r=ns(e).getComputedStyle(e),o=cR(r),s=o.left+o.right,l=o.top+o.bottom,u=Kc(r.width),f=Kc(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+s)!==t&&(u-=N1(r,"left","right")+s),Math.round(f+l)!==n&&(f-=N1(r,"top","bottom")+l)),!pR(e)){var h=Math.round(u+s)-t,m=Math.round(f+l)-n;Math.abs(h)!==1&&(u-=h),Math.abs(m)!==1&&(f-=m)}return vd(o.left,o.top,u,f)}var hR=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ns(e).SVGGraphicsElement}:function(e){return e instanceof ns(e).SVGElement&&typeof e.getBBox=="function"}})();function pR(e){return e===ns(e).document.documentElement}function mR(e){return Fp?hR(e)?dR(e):fR(e):Ib}function gR(e){var t=e.x,n=e.y,r=e.width,o=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(s.prototype);return Rb(l,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),l}function vd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var vR=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=mR(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),yR=(function(){function e(t,n){var r=gR(n);Rb(this,{target:t,contentRect:r})}return e})(),SR=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Ob,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ns(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new vR(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ns(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new yR(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Tb=typeof WeakMap<"u"?new WeakMap:new Ob,Pb=(function(){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=uR.getInstance(),r=new SR(t,n,this);Tb.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Pb.prototype[e]=function(){var t;return(t=Tb.get(this))[e].apply(t,arguments)}});var bR=(function(){return typeof qc.ResizeObserver<"u"?qc.ResizeObserver:Pb})(),wi=new Map;function CR(e){e.forEach(function(t){var n,r=t.target;(n=wi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var $b=new bR(CR);function wR(e,t){wi.has(e)||(wi.set(e,new Set),$b.observe(e)),wi.get(e).add(t)}function ER(e,t){wi.has(e)&&(wi.get(e).delete(t),wi.get(e).size||($b.unobserve(e),wi.delete(e)))}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xb(r.key),r)}}function _n(e,t,n){return t&&M1(e.prototype,t),n&&M1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fl(e,t)}function jo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fl(e,t)}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ra(e)}function yd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yd=function(){return!!e})()}function $t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _b(e,t){if(t&&(ot(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $t(e)}function Jo(e){var t=yd();return function(){var n,r=ra(e);if(t){var o=ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _b(this,n)}}var xR=(function(e){jo(n,e);var t=Jo(n);function n(){return $n(this,n),t.apply(this,arguments)}return _n(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function OR(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),s=d.useRef(null),l=d.useContext(Lp),u=typeof n=="function",f=u?n(o):n,h=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!u&&d.isValidElement(f)&&ys(f),g=m?eu(f):null,y=la(g,o),w=function(){var O;return Ic(o.current)||(o.current&&ot(o.current)==="object"?Ic((O=o.current)===null||O===void 0?void 0:O.nativeElement):null)||Ic(s.current)};d.useImperativeHandle(t,function(){return w()});var b=d.useRef(e);b.current=e;var C=d.useCallback(function(S){var O=b.current,x=O.onResize,R=O.data,I=S.getBoundingClientRect(),P=I.width,$=I.height,_=S.offsetWidth,L=S.offsetHeight,F=Math.floor(P),N=Math.floor($);if(h.current.width!==F||h.current.height!==N||h.current.offsetWidth!==_||h.current.offsetHeight!==L){var z={width:F,height:N,offsetWidth:_,offsetHeight:L};h.current=z;var A=_===Math.round(P)?P:_,B=L===Math.round($)?$:L,H=q(q({},z),{},{offsetWidth:A,offsetHeight:B});l?.(H,S,R),x&&Promise.resolve().then(function(){x(H,S)})}},[]);return d.useEffect(function(){var S=w();return S&&!r&&wR(S,C),function(){return ER(S,C)}},[o.current,r]),d.createElement(xR,{ref:s},m?d.cloneElement(f,{ref:y}):f)}var RR=d.forwardRef(OR),IR="rc-observer-key";function TR(e,t){var n=e.children,r=typeof n=="function"?[n]:Mo(n);return r.map(function(o,s){var l=o?.key||"".concat(IR,"-").concat(s);return d.createElement(RR,Fe({},e,{key:l,ref:s===0?t:void 0}),o)})}var ua=d.forwardRef(TR);ua.Collection=nR;function Np(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PR(e){if(Array.isArray(e))return Np(e)}function Db(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xm(e,t){if(e){if(typeof e=="string")return Np(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Np(e,t):void 0}}function $R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $e(e){return PR(e)||Db(e)||Xm(e)||$R()}var Lb=function(t){return+setTimeout(t,16)},Fb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Lb=function(t){return window.requestAnimationFrame(t)},Fb=function(t){return window.cancelAnimationFrame(t)});var k1=0,Jm=new Map;function Nb(e){Jm.delete(e)}var bn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;k1+=1;var r=k1;function o(s){if(s===0)Nb(r),t();else{var l=Lb(function(){o(s-1)});Jm.set(r,l)}}return o(n),r};bn.cancel=function(e){var t=Jm.get(e);return Nb(e),Fb(t)};function Mb(e){if(Array.isArray(e))return e}function _R(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,l,u=[],f=!0,h=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(m){h=!0,o=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw o}}return u}}function kb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return Mb(e)||_R(e,t)||Xm(e,t)||kb()}function Nl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Nr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function DR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var A1="data-rc-order",j1="data-rc-priority",LR="rc-util-key",Mp=new Map;function Ab(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):LR}function Sd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function FR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Zm(e){return Array.from((Mp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nr())return null;var n=t.csp,r=t.prepend,o=t.priority,s=o===void 0?0:o,l=FR(r),u=l==="prependQueue",f=document.createElement("style");f.setAttribute(A1,l),u&&s&&f.setAttribute(j1,"".concat(s)),n!=null&&n.nonce&&(f.nonce=n?.nonce),f.innerHTML=e;var h=Sd(t),m=h.firstChild;if(r){if(u){var g=(t.styles||Zm(h)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(A1)))return!1;var w=Number(y.getAttribute(j1)||0);return s>=w});if(g.length)return h.insertBefore(f,g[g.length-1].nextSibling),f}h.insertBefore(f,m)}else h.appendChild(f);return f}function zb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Sd(t);return(t.styles||Zm(n)).find(function(r){return r.getAttribute(Ab(t))===e})}function Ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zb(e,t);if(n){var r=Sd(t);r.removeChild(n)}}function NR(e,t){var n=Mp.get(e);if(!n||!DR(document,n)){var r=jb("",t),o=r.parentNode;Mp.set(e,o),e.removeChild(r)}}function Qo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Sd(n),o=Zm(r),s=q(q({},n),{},{styles:o});NR(r,s);var l=zb(t,s);if(l){var u,f;if((u=s.csp)!==null&&u!==void 0&&u.nonce&&l.nonce!==((f=s.csp)===null||f===void 0?void 0:f.nonce)){var h;l.nonce=(h=s.csp)===null||h===void 0?void 0:h.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=jb(e,s);return m.setAttribute(Ab(s),t),m}function MR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lt(e,t){if(e==null)return{};var n,r,o=MR(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(s,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(s);if(gr(!f,"Warning: There may be circular references"),f)return!1;if(s===l)return!0;if(n&&u>1)return!1;r.add(s);var h=u+1;if(Array.isArray(s)){if(!Array.isArray(l)||s.length!==l.length)return!1;for(var m=0;m<s.length;m++)if(!o(s[m],l[m],h))return!1;return!0}if(s&&l&&ot(s)==="object"&&ot(l)==="object"){var g=Object.keys(s);return g.length!==Object.keys(l).length?!1:g.every(function(y){return o(s[y],l[y],h)})}return!1}return o(e,t)}var kR="%";function kp(e){return e.join(kR)}var AR=(function(){function e(t){$n(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),U(this,"extracted",new Set),this.instanceId=t}return _n(e,[{key:"get",value:function(n){return this.opGet(kp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(kp(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),s=r(o);s===null?this.cache.delete(n):this.cache.set(n,s)}}]),e})(),rs="data-token-hash",wo="data-css-hash",Ei="__cssinjs_instance__";function jR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(wo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ei]=o[Ei]||e,o[Ei]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(wo,"]"))).forEach(function(o){var s=o.getAttribute(wo);if(r[s]){if(o[Ei]===e){var l;(l=o.parentNode)===null||l===void 0||l.removeChild(o)}}else r[s]=!0})}return new AR(e)}var tu=d.createContext({hashPriority:"low",cache:jR(),defaultCache:!0});function zR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var eg=(function(){function e(){$n(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _n(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(u){if(!l)l=void 0;else{var f;l=(f=l)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=l)!==null&&r!==void 0&&r.value&&s&&(l.value[1]=this.cacheCallTimes++),(o=l)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var s=this.keys.reduce(function(h,m){var g=ae(h,2),y=g[1];return o.internalGet(m)[1]<y?[m,o.internalGet(m)[1]]:h},[this.keys[0],this.cacheCallTimes]),l=ae(s,1),u=l[0];this.delete(u)}this.keys.push(n)}var f=this.cache;n.forEach(function(h,m){if(m===n.length-1)f.set(h,{value:[r,o.cacheCallTimes++]});else{var g=f.get(h);g?g.map||(g.map=new Map):f.set(h,{map:new Map}),f=f.get(h).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var s;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(s=o.value)===null||s===void 0?void 0:s[0]}var l=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!zR(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();U(eg,"MAX_CACHE_SIZE",20);U(eg,"MAX_CACHE_OFFSET",5);var z1=0,Bb=(function(){function e(t){$n(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=z1,t.length===0&&(t.length>0,void 0),z1+=1}return _n(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Dh=new eg;function Gc(e){var t=Array.isArray(e)?e:[e];return Dh.has(t)||Dh.set(t,new Bb(t)),Dh.get(t)}var BR=new WeakMap,Lh={};function HR(e,t){for(var n=BR,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Lh)||n.set(Lh,e()),n.get(Lh)}var B1=new WeakMap;function xl(e){var t=B1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Bb?t+=r.id:r&&ot(r)==="object"?t+=xl(r):t+=r}),t=Nl(t),B1.set(e,t)),t}function H1(e,t){return Nl("".concat(t,"_").concat(xl(e)))}var Ap=Nr();function Ue(e){return typeof e=="number"?"".concat(e,"px"):e}function Qc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var s=q(q({},r),{},U(U({},rs,t),wo,n)),l=Object.keys(s).map(function(u){var f=s[u];return f?"".concat(u,'="').concat(f,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var Tc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},UR=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var s=ae(o,2),l=s[0],u=s[1];return"".concat(l,":").concat(u,";")}).join(""),"}"):""},Hb=function(t,n,r){var o={},s={};return Object.entries(t).forEach(function(l){var u,f,h=ae(l,2),m=h[0],g=h[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[m])s[m]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[m])){var y,w=Tc(m,r?.prefix);o[w]=typeof g=="number"&&!(r!=null&&(y=r.unitless)!==null&&y!==void 0&&y[m])?"".concat(g,"px"):String(g),s[m]="var(".concat(w,")")}}),[s,UR(o,n,{scope:r?.scope})]},U1=Nr()?d.useLayoutEffect:d.useEffect,mn=function(t,n){var r=d.useRef(!0);U1(function(){return t(r.current)},n),U1(function(){return r.current=!1,function(){r.current=!0}},[])},V1=function(t,n){mn(function(r){if(!r)return t()},n)},VR=q({},Xl),W1=VR.useInsertionEffect,WR=function(t,n,r){d.useMemo(t,r),mn(function(){return n(!0)},r)},qR=W1?function(e,t,n){return W1(function(){return e(),t()},n)}:WR,KR=q({},Xl),GR=KR.useInsertionEffect,QR=function(t){var n=[],r=!1;function o(s){r||n.push(s)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(s){return s()})}},t),o},YR=function(){return function(t){t()}},XR=typeof GR<"u"?QR:YR;function tg(e,t,n,r,o){var s=d.useContext(tu),l=s.cache,u=[e].concat($e(t)),f=kp(u),h=XR([f]),m=function(b){l.opUpdate(f,function(C){var S=C||[void 0,void 0],O=ae(S,2),x=O[0],R=x===void 0?0:x,I=O[1],P=I,$=P||n(),_=[R,$];return b?b(_):_})};d.useMemo(function(){m()},[f]);var g=l.opGet(f),y=g[1];return qR(function(){o?.(y)},function(w){return m(function(b){var C=ae(b,2),S=C[0],O=C[1];return w&&S===0&&o?.(y),[S+1,O]}),function(){l.opUpdate(f,function(b){var C=b||[],S=ae(C,2),O=S[0],x=O===void 0?0:O,R=S[1],I=x-1;return I===0?(h(function(){(w||!l.opGet(f))&&r?.(R,!1)}),null):[x-1,R]})}},[f]),y}var JR={},ZR="css",Ki=new Map;function eI(e){Ki.set(e,(Ki.get(e)||0)+1)}function tI(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(rs,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ei]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var nI=0;function rI(e,t){Ki.set(e,(Ki.get(e)||0)-1);var n=new Set;Ki.forEach(function(r,o){r<=0&&n.add(o)}),Ki.size-n.size>nI&&n.forEach(function(r){tI(r,t),Ki.delete(r)})}var Ub=function(t,n,r,o){var s=r.getDerivativeToken(t),l=q(q({},s),n);return o&&(l=o(l)),l},Vb="token";function oI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(tu),o=r.cache.instanceId,s=r.container,l=n.salt,u=l===void 0?"":l,f=n.override,h=f===void 0?JR:f,m=n.formatToken,g=n.getComputedToken,y=n.cssVar,w=HR(function(){return Object.assign.apply(Object,[{}].concat($e(t)))},t),b=xl(w),C=xl(h),S=y?xl(y):"",O=tg(Vb,[u,e.id,b,C,S],function(){var x,R=g?g(w,h,e):Ub(w,h,e,m),I=q({},R),P="";if(y){var $=Hb(R,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),_=ae($,2);R=_[0],P=_[1]}var L=H1(R,u);R._tokenKey=L,I._tokenKey=H1(I,u);var F=(x=y?.key)!==null&&x!==void 0?x:L;R._themeKey=F,eI(F);var N="".concat(ZR,"-").concat(Nl(L));return R._hashId=N,[R,N,I,P,y?.key||""]},function(x){rI(x[0]._themeKey,o)},function(x){var R=ae(x,4),I=R[0],P=R[3];if(y&&P){var $=Qo(P,Nl("css-variables-".concat(I._themeKey)),{mark:wo,prepend:"queue",attachTo:s,priority:-999});$[Ei]=o,$.setAttribute(rs,I._themeKey)}});return O}var iI=function(t,n,r){var o=ae(t,5),s=o[2],l=o[3],u=o[4],f=r||{},h=f.plain;if(!l)return null;var m=s._tokenKey,g=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},w=Qc(l,u,m,y,h);return[g,m,w]},aI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wb="comm",qb="rule",Kb="decl",sI="@import",lI="@namespace",uI="@keyframes",cI="@layer",Gb=Math.abs,ng=String.fromCharCode;function Qb(e){return e.trim()}function Pc(e,t,n){return e.replace(t,n)}function dI(e,t,n){return e.indexOf(t,n)}function Za(e,t){return e.charCodeAt(t)|0}function os(e,t,n){return e.slice(t,n)}function Do(e){return e.length}function fI(e){return e.length}function mc(e,t){return t.push(e),e}var bd=1,is=1,Yb=0,ro=0,Fn=0,Ss="";function rg(e,t,n,r,o,s,l,u){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:bd,column:is,length:l,return:"",siblings:u}}function hI(){return Fn}function pI(){return Fn=ro>0?Za(Ss,--ro):0,is--,Fn===10&&(is=1,bd--),Fn}function Eo(){return Fn=ro<Yb?Za(Ss,ro++):0,is++,Fn===10&&(is=1,bd++),Fn}function xi(){return Za(Ss,ro)}function $c(){return ro}function Cd(e,t){return os(Ss,e,t)}function Al(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mI(e){return bd=is=1,Yb=Do(Ss=e),ro=0,[]}function gI(e){return Ss="",e}function Fh(e){return Qb(Cd(ro-1,jp(e===91?e+2:e===40?e+1:e)))}function vI(e){for(;(Fn=xi())&&Fn<33;)Eo();return Al(e)>2||Al(Fn)>3?"":" "}function yI(e,t){for(;--t&&Eo()&&!(Fn<48||Fn>102||Fn>57&&Fn<65||Fn>70&&Fn<97););return Cd(e,$c()+(t<6&&xi()==32&&Eo()==32))}function jp(e){for(;Eo();)switch(Fn){case e:return ro;case 34:case 39:e!==34&&e!==39&&jp(Fn);break;case 40:e===41&&jp(e);break;case 92:Eo();break}return ro}function SI(e,t){for(;Eo()&&e+Fn!==57;)if(e+Fn===84&&xi()===47)break;return"/*"+Cd(t,ro-1)+"*"+ng(e===47?e:Eo())}function bI(e){for(;!Al(xi());)Eo();return Cd(e,ro)}function CI(e){return gI(_c("",null,null,null,[""],e=mI(e),0,[0],e))}function _c(e,t,n,r,o,s,l,u,f){for(var h=0,m=0,g=l,y=0,w=0,b=0,C=1,S=1,O=1,x=0,R="",I=o,P=s,$=r,_=R;S;)switch(b=x,x=Eo()){case 40:if(b!=108&&Za(_,g-1)==58){dI(_+=Pc(Fh(x),"&","&\f"),"&\f",Gb(h?u[h-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:_+=Fh(x);break;case 9:case 10:case 13:case 32:_+=vI(b);break;case 92:_+=yI($c()-1,7);continue;case 47:switch(xi()){case 42:case 47:mc(wI(SI(Eo(),$c()),t,n,f),f),(Al(b||1)==5||Al(xi()||1)==5)&&Do(_)&&os(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*C:u[h++]=Do(_)*O;case 125*C:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+m:O==-1&&(_=Pc(_,/\f/g,"")),w>0&&(Do(_)-g||C===0&&b===47)&&mc(w>32?K1(_+";",r,n,g-1,f):K1(Pc(_," ","")+";",r,n,g-2,f),f);break;case 59:_+=";";default:if(mc($=q1(_,t,n,h,m,o,u,R,I=[],P=[],g,s),s),x===123)if(m===0)_c(_,t,$,$,I,s,g,u,P);else{switch(y){case 99:if(Za(_,3)===110)break;case 108:if(Za(_,2)===97)break;default:m=0;case 100:case 109:case 115:}m?_c(e,$,$,r&&mc(q1(e,$,$,0,0,o,u,R,o,I=[],g,P),P),o,P,g,u,r?I:P):_c(_,$,$,$,[""],P,0,u,P)}}h=m=w=0,C=O=1,R=_="",g=l;break;case 58:g=1+Do(_),w=b;default:if(C<1){if(x==123)--C;else if(x==125&&C++==0&&pI()==125)continue}switch(_+=ng(x),x*C){case 38:O=m>0?1:(_+="\f",-1);break;case 44:u[h++]=(Do(_)-1)*O,O=1;break;case 64:xi()===45&&(_+=Fh(Eo())),y=xi(),m=g=Do(R=_+=bI($c())),x++;break;case 45:b===45&&Do(_)==2&&(C=0)}}return s}function q1(e,t,n,r,o,s,l,u,f,h,m,g){for(var y=o-1,w=o===0?s:[""],b=fI(w),C=0,S=0,O=0;C<r;++C)for(var x=0,R=os(e,y+1,y=Gb(S=l[C])),I=e;x<b;++x)(I=Qb(S>0?w[x]+" "+R:Pc(R,/&\f/g,w[x])))&&(f[O++]=I);return rg(e,t,n,o===0?qb:u,f,h,m,g)}function wI(e,t,n,r){return rg(e,t,n,Wb,ng(hI()),os(e,2,-2),0,r)}function K1(e,t,n,r,o){return rg(e,t,n,Kb,os(e,0,r),os(e,r+1,-1),r,o)}function zp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function EI(e,t,n,r){switch(e.type){case cI:if(e.children.length)break;case sI:case lI:case Kb:return e.return=e.return||e.value;case Wb:return"";case uI:return e.return=e.value+"{"+zp(e.children,r)+"}";case qb:if(!Do(e.value=e.props.join(",")))return""}return Do(n=zp(e.children,r))?e.return=e.value+"{"+n+"}":""}var G1="data-ant-cssinjs-cache-path",Xb="_FILE_STYLE__",ea,Jb=!0;function xI(){if(!ea&&(ea={},Nr())){var e=document.createElement("div");e.className=G1,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var s=o.split(":"),l=ae(s,2),u=l[0],f=l[1];ea[u]=f});var n=document.querySelector("style[".concat(G1,"]"));if(n){var r;Jb=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function OI(e){return xI(),!!ea[e]}function RI(e){var t=ea[e],n=null;if(t&&Nr())if(Jb)n=Xb;else{var r=document.querySelector("style[".concat(wo,'="').concat(ea[e],'"]'));r?n=r.innerHTML:delete ea[e]}return[n,t]}var II="_skip_check_",Zb="_multi_value_";function Dc(e){var t=zp(CI(e),EI);return t.replace(/\{%%%\:[^;];}/g,";")}function TI(e){return ot(e)==="object"&&e&&(II in e||Zb in e)}function Q1(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,s=e.split(",").map(function(l){var u,f=l.trim().split(/\s+/),h=f[0]||"",m=((u=h.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return h="".concat(m).concat(o).concat(h.slice(m.length)),[h].concat($e(f.slice(1))).join(" ")});return s.join(",")}var PI=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,s=r.injectHash,l=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var h=n.hashPriority,m=n.transformers,g=m===void 0?[]:m;n.linters;var y="",w={};function b(O){var x=O.getName(u);if(!w[x]){var R=e(O.style,n,{root:!1,parentSelectors:l}),I=ae(R,1),P=I[0];w[x]="@keyframes ".concat(O.getName(u)).concat(P)}}function C(O){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(R){Array.isArray(R)?C(R,x):R&&x.push(R)}),x}var S=C(Array.isArray(t)?t:[t]);return S.forEach(function(O){var x=typeof O=="string"&&!o?{}:O;if(typeof x=="string")y+="".concat(x,`
|
|
12
|
-
`);else if(x._keyframe)b(x);else{var R=g.reduce(function(I,P){var $;return(P==null||($=P.visit)===null||$===void 0?void 0:$.call(P,I))||I},x);Object.keys(R).forEach(function(I){var P=R[I];if(ot(P)==="object"&&P&&(I!=="animationName"||!P._keyframe)&&!TI(P)){var $=!1,_=I.trim(),L=!1;(o||s)&&u?_.startsWith("@")?$=!0:_==="&"?_=Q1("",u,h):_=Q1(I,u,h):o&&!u&&(_==="&"||_==="")&&(_="",L=!0);var F=e(P,n,{root:L,injectHash:$,parentSelectors:[].concat($e(l),[_])}),N=ae(F,2),z=N[0],A=N[1];w=q(q({},w),A),y+="".concat(_).concat(z)}else{let X=function(V,G){var j=V.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),J=G;!aI[V]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),V==="animationName"&&G!==null&&G!==void 0&&G._keyframe&&(b(G),J=G.getName(u)),y+="".concat(j,":").concat(J,";")};var B,H=(B=P?.value)!==null&&B!==void 0?B:P;ot(P)==="object"&&P!==null&&P!==void 0&&P[Zb]&&Array.isArray(H)?H.forEach(function(V){X(I,V)}):X(I,H)}})}}),o?f&&(y&&(y="@layer ".concat(f.name," {").concat(y,"}")),f.dependencies&&(w["@layer ".concat(f.name)]=f.dependencies.map(function(O){return"@layer ".concat(O,", ").concat(f.name,";")}).join(`
|
|
13
|
-
`))):y="{".concat(y,"}"),[y,w]};function eC(e,t){return Nl("".concat(e.join("%")).concat(t))}function $I(){return null}var tC="style";function Bp(e,t){var n=e.token,r=e.path,o=e.hashId,s=e.layer,l=e.nonce,u=e.clientOnly,f=e.order,h=f===void 0?0:f,m=d.useContext(tu),g=m.autoClear;m.mock;var y=m.defaultCache,w=m.hashPriority,b=m.container,C=m.ssrInline,S=m.transformers,O=m.linters,x=m.cache,R=m.layer,I=n._tokenKey,P=[I];R&&P.push("layer"),P.push.apply(P,$e(r));var $=Ap,_=tg(tC,P,function(){var A=P.join("|");if(OI(A)){var B=RI(A),H=ae(B,2),X=H[0],V=H[1];if(X)return[X,I,V,{},u,h]}var G=t(),j=PI(G,{hashId:o,hashPriority:w,layer:R?s:void 0,path:r.join("-"),transformers:S,linters:O}),J=ae(j,2),K=J[0],D=J[1],M=Dc(K),te=eC(P,M);return[M,I,te,D,u,h]},function(A,B){var H=ae(A,3),X=H[2];(B||g)&&Ap&&Ml(X,{mark:wo,attachTo:b})},function(A){var B=ae(A,4),H=B[0];B[1];var X=B[2],V=B[3];if($&&H!==Xb){var G={mark:wo,prepend:R?!1:"queue",attachTo:b,priority:h},j=typeof l=="function"?l():l;j&&(G.csp={nonce:j});var J=[],K=[];Object.keys(V).forEach(function(M){M.startsWith("@layer")?J.push(M):K.push(M)}),J.forEach(function(M){Qo(Dc(V[M]),"_layer-".concat(M),q(q({},G),{},{prepend:!0}))});var D=Qo(H,X,G);D[Ei]=x.instanceId,D.setAttribute(rs,I),K.forEach(function(M){Qo(Dc(V[M]),"_effect-".concat(M),G)})}}),L=ae(_,3),F=L[0],N=L[1],z=L[2];return function(A){var B;return!C||$||!y?B=d.createElement($I,null):B=d.createElement("style",Fe({},U(U({},rs,N),wo,z),{dangerouslySetInnerHTML:{__html:F}})),d.createElement(d.Fragment,null,B,A)}}var _I=function(t,n,r){var o=ae(t,6),s=o[0],l=o[1],u=o[2],f=o[3],h=o[4],m=o[5],g=r||{},y=g.plain;if(h)return null;var w=s,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return w=Qc(s,l,u,b,y),f&&Object.keys(f).forEach(function(C){if(!n[C]){n[C]=!0;var S=Dc(f[C]),O=Qc(S,l,"_effect-".concat(C),b,y);C.startsWith("@layer")?w=O+w:w+=O}}),[m,u,w]},nC="cssVar",DI=function(t,n){var r=t.key,o=t.prefix,s=t.unitless,l=t.ignore,u=t.token,f=t.scope,h=f===void 0?"":f,m=d.useContext(tu),g=m.cache.instanceId,y=m.container,w=u._tokenKey,b=[].concat($e(t.path),[r,h,w]),C=tg(nC,b,function(){var S=n(),O=Hb(S,r,{prefix:o,unitless:s,ignore:l,scope:h}),x=ae(O,2),R=x[0],I=x[1],P=eC(b,I);return[R,I,P,r]},function(S){var O=ae(S,3),x=O[2];Ap&&Ml(x,{mark:wo,attachTo:y})},function(S){var O=ae(S,3),x=O[1],R=O[2];if(x){var I=Qo(x,R,{mark:wo,prepend:"queue",attachTo:y,priority:-999});I[Ei]=g,I.setAttribute(rs,r)}});return C},LI=function(t,n,r){var o=ae(t,4),s=o[1],l=o[2],u=o[3],f=r||{},h=f.plain;if(!s)return null;var m=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},y=Qc(s,u,l,g,h);return[m,l,y]};U(U(U({},tC,_I),Vb,iI),nC,LI);var Kt=(function(){function e(t,n){$n(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return _n(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function ka(e){return e.notSplit=!0,e}ka(["borderTop","borderBottom"]),ka(["borderTop"]),ka(["borderBottom"]),ka(["borderLeft","borderRight"]),ka(["borderLeft"]),ka(["borderRight"]);var og=d.createContext({});function rC(e){return Mb(e)||Db(e)||Xm(e)||kb()}function Lo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function oC(e,t,n,r){if(!t.length)return n;var o=rC(t),s=o[0],l=o.slice(1),u;return!e&&typeof s=="number"?u=[]:Array.isArray(e)?u=$e(e):u=q({},e),r&&n===void 0&&l.length===1?delete u[s][l[0]]:u[s]=oC(u[s],l,n,r),u}function So(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Lo(e,t.slice(0,-1))?e:oC(e,t,n,r)}function FI(e){return ot(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Y1(e){return Array.isArray(e)?[]:{}}var NI=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Qa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Y1(t[0]);return t.forEach(function(o){function s(l,u){var f=new Set(u),h=Lo(o,l),m=Array.isArray(h);if(m||FI(h)){if(!f.has(h)){f.add(h);var g=Lo(r,l);m?r=So(r,l,[]):(!g||ot(g)!=="object")&&(r=So(r,l,Y1(h))),NI(h).forEach(function(y){s([].concat($e(l),[y]),f)})}}else r=So(r,l,h)}s([])}),r}function MI(){}const kI=d.createContext({}),ig=()=>{const e=()=>{};return e.deprecated=MI,e},AI=d.createContext(void 0);var jI={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},zI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},BI=q(q({},zI),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const iC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},X1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},BI),timePickerLocale:Object.assign({},iC)},zr="${label} is not a valid ${type}",as={locale:"en",Pagination:jI,DatePicker:X1,TimePicker:iC,Calendar:X1,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:zr,method:zr,array:zr,object:zr,number:zr,date:zr,boolean:zr,integer:zr,float:zr,regexp:zr,email:zr,url:zr,hex:zr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Lc=Object.assign({},as.Modal),Fc=[];const J1=()=>Fc.reduce((e,t)=>Object.assign(Object.assign({},e),t),as.Modal);function HI(e){if(e){const t=Object.assign({},e);return Fc.push(t),Lc=J1(),()=>{Fc=Fc.filter(n=>n!==t),Lc=J1()}}Lc=Object.assign({},as.Modal)}function q7(){return Lc}const ag=d.createContext(void 0),sg=(e,t)=>{const n=d.useContext(ag),r=d.useMemo(()=>{var s;const l=t||as[e],u=(s=n?.[e])!==null&&s!==void 0?s:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),u||{})},[e,t,n]),o=d.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?as.locale:s},[n]);return[r,o]},UI="internalMark",VI=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>HI(t?.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(ag.Provider,{value:o},n)},lg={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ss=Object.assign(Object.assign({},lg),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
14
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
15
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Qn=Math.round;function Nh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Z1=(e,t,n)=>n===0?e:e/100;function Zs(e,t){const n=t||255;return e>n?n:e<0?0:e}class Yt{constructor(t){U(this,"isValid",!0),U(this,"r",0),U(this,"g",0),U(this,"b",0),U(this,"a",1),U(this,"_h",void 0),U(this,"_s",void 0),U(this,"_l",void 0),U(this,"_v",void 0),U(this,"_max",void 0),U(this,"_min",void 0),U(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(s){return r.startsWith(s)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Yt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Zs(t.r),this.g=Zs(t.g),this.b=Zs(t.b),this.a=typeof t.a=="number"?Zs(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(s){const l=s/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Qn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,s=u=>(r[u]-this[u])*o+this[u],l={r:Qn(s("r")),g:Qn(s("g")),b:Qn(s("b")),a:Qn(s("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=s=>Qn((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=Qn(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Qn(this.getSaturation()*100),r=Qn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Zs(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,s){return parseInt(n[o]+n[s||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const y=Qn(r*255);this.r=y,this.g=y,this.b=y}let s=0,l=0,u=0;const f=t/60,h=(1-Math.abs(2*r-1))*n,m=h*(1-Math.abs(f%2-1));f>=0&&f<1?(s=h,l=m):f>=1&&f<2?(s=m,l=h):f>=2&&f<3?(l=h,u=m):f>=3&&f<4?(l=m,u=h):f>=4&&f<5?(s=m,u=h):f>=5&&f<6&&(s=h,u=m);const g=r-h/2;this.r=Qn((s+g)*255),this.g=Qn((l+g)*255),this.b=Qn((u+g)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const s=Qn(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const l=t/60,u=Math.floor(l),f=l-u,h=Qn(r*(1-n)*255),m=Qn(r*(1-n*f)*255),g=Qn(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=h;break;case 1:this.r=m,this.b=h;break;case 2:this.r=h,this.b=g;break;case 3:this.r=h,this.g=m;break;case 4:this.r=g,this.g=h;break;case 5:default:this.g=h,this.b=m;break}}fromHsvString(t){const n=Nh(t,Z1);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Nh(t,Z1);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Nh(t,(r,o)=>o.includes("%")?Qn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var gc=2,ey=.16,WI=.05,qI=.05,KI=.15,aC=5,sC=4,GI=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ty(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-gc*t:Math.round(e.h)+gc*t:r=n?Math.round(e.h)+gc*t:Math.round(e.h)-gc*t,r<0?r+=360:r>=360&&(r-=360),r}function ny(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ey*t:t===sC?r=e.s+ey:r=e.s+WI*t,r>1&&(r=1),n&&t===aC&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ry(e,t,n){var r;return n?r=e.v+qI*t:r=e.v-KI*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function oa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Yt(e),o=r.toHsv(),s=aC;s>0;s-=1){var l=new Yt({h:ty(o,s,!0),s:ny(o,s,!0),v:ry(o,s,!0)});n.push(l)}n.push(r);for(var u=1;u<=sC;u+=1){var f=new Yt({h:ty(o,u),s:ny(o,u),v:ry(o,u)});n.push(f)}return t.theme==="dark"?GI.map(function(h){var m=h.index,g=h.amount;return new Yt(t.backgroundColor||"#141414").mix(n[m],g).toHexString()}):n.map(function(h){return h.toHexString()})}var Mh={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Hp=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Hp.primary=Hp[5];var Up=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Up.primary=Up[5];var Vp=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Vp.primary=Vp[5];var Wp=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wp.primary=Wp[5];var qp=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];qp.primary=qp[5];var Kp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Kp.primary=Kp[5];var Gp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gp.primary=Gp[5];var Qp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Qp.primary=Qp[5];var Yc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Yc.primary=Yc[5];var Yp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Yp.primary=Yp[5];var Xp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xp.primary=Xp[5];var Jp=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Jp.primary=Jp[5];var Zp=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zp.primary=Zp[5];var kh={red:Hp,volcano:Up,orange:Vp,gold:Wp,yellow:qp,lime:Kp,green:Gp,cyan:Qp,blue:Yc,geekblue:Yp,purple:Xp,magenta:Jp,grey:Zp};function lC(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:l,colorPrimary:u,colorBgBase:f,colorTextBase:h}=e,m=t(u),g=t(r),y=t(o),w=t(s),b=t(l),C=n(f,h),S=e.colorLink||e.colorInfo,O=t(S),x=new Yt(w[1]).mix(new Yt(w[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:w[1],colorErrorBgHover:w[2],colorErrorBgFilledHover:x,colorErrorBgActive:w[3],colorErrorBorder:w[3],colorErrorBorderHover:w[4],colorErrorHover:w[5],colorError:w[6],colorErrorActive:w[7],colorErrorTextHover:w[8],colorErrorText:w[9],colorErrorTextActive:w[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new Yt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const QI=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function YI(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},QI(r))}const uC=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Nc(e){return(e+8)/e}function XI(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.pow(Math.E,o/5),l=r>1?Math.floor(s):Math.ceil(s);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Nc(n)}))}const cC=e=>{const t=XI(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),o=n[1],s=n[0],l=n[2],u=r[1],f=r[0],h=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:h,lineHeightSM:f,fontHeight:Math.round(u*o),fontHeightLG:Math.round(h*l),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function JI(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Xr=(e,t)=>new Yt(e).setA(t).toRgbString(),el=(e,t)=>new Yt(e).darken(t).toHexString(),ZI=e=>{const t=oa(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},eT=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Xr(r,.88),colorTextSecondary:Xr(r,.65),colorTextTertiary:Xr(r,.45),colorTextQuaternary:Xr(r,.25),colorFill:Xr(r,.15),colorFillSecondary:Xr(r,.06),colorFillTertiary:Xr(r,.04),colorFillQuaternary:Xr(r,.02),colorBgSolid:Xr(r,1),colorBgSolidHover:Xr(r,.75),colorBgSolidActive:Xr(r,.95),colorBgLayout:el(n,4),colorBgContainer:el(n,0),colorBgElevated:el(n,0),colorBgSpotlight:Xr(r,.85),colorBgBlur:"transparent",colorBorder:el(n,15),colorBorderSecondary:el(n,6)}};function wd(e){Mh.pink=Mh.magenta,kh.pink=kh.magenta;const t=Object.keys(lg).map(n=>{const r=e[n]===Mh[n]?kh[n]:oa(e[n]);return Array.from({length:10},()=>1).reduce((o,s,l)=>(o[`${n}-${l+1}`]=r[l],o[`${n}${l+1}`]=r[l],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lC(e,{generateColorPalettes:ZI,generateNeutralColorPalettes:eT})),cC(e.fontSize)),JI(e)),uC(e)),YI(e))}const ug=Gc(wd),jl={token:ss,override:{override:ss},hashed:!0},cg=He.createContext(jl),zl="ant",Ed="anticon",tT=["outlined","borderless","filled","underlined"],nT=(e,t)=>t||(e?`${zl}-${e}`:zl),on=d.createContext({getPrefixCls:nT,iconPrefixCls:Ed}),{Consumer:K7}=on,oy={};function $i(e){const t=d.useContext(on),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,s=t[e];return Object.assign(Object.assign({classNames:oy,styles:oy},s),{getPrefixCls:n,direction:r,getPopupContainer:o})}const rT=`-ant-${Date.now()}-${Math.random()}`;function oT(e,t){const n={},r=(l,u)=>{let f=l.clone();return f=u?.(f)||f,f.toRgbString()},o=(l,u)=>{const f=new Yt(l),h=oa(f.toRgbString());n[`${u}-color`]=r(f),n[`${u}-color-disabled`]=h[1],n[`${u}-color-hover`]=h[4],n[`${u}-color-active`]=h[6],n[`${u}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=h[0],n[`${u}-color-deprecated-border`]=h[2]};if(t.primaryColor){o(t.primaryColor,"primary");const l=new Yt(t.primaryColor),u=oa(l.toRgbString());u.forEach((h,m)=>{n[`primary-${m+1}`]=h}),n["primary-color-deprecated-l-35"]=r(l,h=>h.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,h=>h.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,h=>h.tint(20)),n["primary-color-deprecated-t-50"]=r(l,h=>h.tint(50)),n["primary-color-deprecated-f-12"]=r(l,h=>h.setA(h.a*.12));const f=new Yt(u[0]);n["primary-color-active-deprecated-f-30"]=r(f,h=>h.setA(h.a*.3)),n["primary-color-active-deprecated-d-02"]=r(f,h=>h.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
16
|
-
:root {
|
|
17
|
-
${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
|
|
18
|
-
`)}
|
|
19
|
-
}
|
|
20
|
-
`.trim()}function iT(e,t){const n=oT(e,t);Nr()&&Qo(n,`${rT}-dynamic-theme`)}const Bl=d.createContext(!1),aT=({children:e,disabled:t})=>{const n=d.useContext(Bl);return d.createElement(Bl.Provider,{value:t??n},e)},ls=d.createContext(void 0),sT=({children:e,size:t})=>{const n=d.useContext(ls);return d.createElement(ls.Provider,{value:t||n},e)};function lT(){const e=d.useContext(Bl),t=d.useContext(ls);return{componentDisabled:e,componentSize:t}}var dC=_n(function e(){$n(this,e)}),fC="CALC_UNIT",uT=new RegExp(fC,"g");function Ah(e){return typeof e=="number"?"".concat(e).concat(fC):e}var cT=(function(e){jo(n,e);var t=Jo(n);function n(r,o){var s;$n(this,n),s=t.call(this),U($t(s),"result",""),U($t(s),"unitlessCssVar",void 0),U($t(s),"lowPriority",void 0);var l=ot(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):l==="number"?s.result=Ah(r):l==="string"&&(s.result=r),s}return _n(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Ah(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Ah(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var s=this,l=o||{},u=l.unit,f=!0;return typeof u=="boolean"?f=u:Array.from(this.unitlessCssVar).some(function(h){return s.result.includes(h)})&&(f=!1),this.result=this.result.replace(uT,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(dC),dT=(function(e){jo(n,e);var t=Jo(n);function n(r){var o;return $n(this,n),o=t.call(this),U($t(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return _n(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(dC),fT=function(t,n){var r=t==="css"?cT:dT;return function(o){return new r(o,n)}},iy=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Yn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(s))},[]);return n}function Hl(e){var t=d.useRef(!1),n=d.useState(e),r=ae(n,2),o=r[0],s=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(u,f){f&&t.current||s(u)}return[o,l]}function jh(e){return e!==void 0}function Yo(e,t){var n=t||{},r=n.defaultValue,o=n.value,s=n.onChange,l=n.postState,u=Hl(function(){return jh(o)?o:jh(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ae(u,2),h=f[0],m=f[1],g=o!==void 0?o:h,y=l?l(g):g,w=Yn(s),b=Hl([g]),C=ae(b,2),S=C[0],O=C[1];V1(function(){var R=S[0];h!==R&&w(h,R)},[S]),V1(function(){jh(o)||m(o)},[o]);var x=Yn(function(R,I){m(R,I),O([g],I)});return[y,x]}function ay(e,t,n,r){var o=q({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(u){var f=ae(u,2),h=f[0],m=f[1];if(o!=null&&o[h]||o!=null&&o[m]){var g;(g=o[m])!==null&&g!==void 0||(o[m]=o?.[h])}})}var l=q(q({},n),o);return Object.keys(l).forEach(function(u){l[u]===t[u]&&delete l[u]}),l}var hC=typeof CSSINJS_STATISTIC<"u",em=!0;function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!hC)return Object.assign.apply(Object,[{}].concat(t));em=!1;var r={};return t.forEach(function(o){if(ot(o)==="object"){var s=Object.keys(o);s.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return o[l]}})})}}),em=!0,r}var sy={};function hT(){}var pT=function(t){var n,r=t,o=hT;return hC&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(l,u){if(em){var f;(f=n)===null||f===void 0||f.add(u)}return l[u]}}),o=function(l,u){var f;sy[l]={global:Array.from(n),component:q(q({},(f=sy[l])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:o}};function ly(e,t,n){if(typeof n=="function"){var r;return n(Nn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function mT(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(s){return Ue(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(s){return Ue(s)}).join(","),")")}}}var gT=1e3*60*10,vT=(function(){function e(){$n(this,e),U(this,"map",new Map),U(this,"objectIDMap",new WeakMap),U(this,"nextID",0),U(this,"lastAccessBeat",new Map),U(this,"accessBeat",0)}return _n(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(s){return s&&ot(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(ot(s),"_").concat(s)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,s){r-o>gT&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),uy=new vT;function yT(e,t){return He.useMemo(function(){var n=uy.get(t);if(n)return n;var r=e();return uy.set(t,r),r},t)}var ST=function(){return{}};function bT(e){var t=e.useCSP,n=t===void 0?ST:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,u=e.getCompUnitless;function f(y,w,b,C){var S=Array.isArray(y)?y[0]:y;function O(L){return"".concat(String(S)).concat(L.slice(0,1).toUpperCase()).concat(L.slice(1))}var x=C?.unitless||{},R=typeof u=="function"?u(y):{},I=q(q({},R),{},U({},O("zIndexPopup"),!0));Object.keys(x).forEach(function(L){I[O(L)]=x[L]});var P=q(q({},C),{},{unitless:I,prefixToken:O}),$=m(y,w,b,P),_=h(S,b,P);return function(L){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L,N=$(L,F),z=ae(N,2),A=z[1],B=_(F),H=ae(B,2),X=H[0],V=H[1];return[X,A,V]}}function h(y,w,b){var C=b.unitless,S=b.injectStyle,O=S===void 0?!0:S,x=b.prefixToken,R=b.ignore,I=function(_){var L=_.rootCls,F=_.cssVar,N=F===void 0?{}:F,z=r(),A=z.realToken;return DI({path:[y],prefix:N.prefix,key:N.key,unitless:C,ignore:R,token:A,scope:L},function(){var B=ly(y,A,w),H=ay(y,A,B,{deprecatedTokens:b?.deprecatedTokens});return Object.keys(B).forEach(function(X){H[x(X)]=H[X],delete H[X]}),H}),null},P=function(_){var L=r(),F=L.cssVar;return[function(N){return O&&F?He.createElement(He.Fragment,null,He.createElement(I,{rootCls:_,cssVar:F,component:y}),N):N},F?.key]};return P}function m(y,w,b){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],O=ae(S,1),x=O[0],R=S.join("-"),I=e.layer||{name:"antd"};return function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,_=r(),L=_.theme,F=_.realToken,N=_.hashId,z=_.token,A=_.cssVar,B=o(),H=B.rootPrefixCls,X=B.iconPrefixCls,V=n(),G=A?"css":"js",j=yT(function(){var ee=new Set;return A&&Object.keys(C.unitless||{}).forEach(function(Y){ee.add(Tc(Y,A.prefix)),ee.add(Tc(Y,iy(x,A.prefix)))}),fT(G,ee)},[G,x,A?.prefix]),J=mT(G),K=J.max,D=J.min,M={theme:L,token:z,hashId:N,nonce:function(){return V.nonce},clientOnly:C.clientOnly,layer:I,order:C.order||-999};typeof s=="function"&&Bp(q(q({},M),{},{clientOnly:!1,path:["Shared",H]}),function(){return s(z,{prefix:{rootPrefixCls:H,iconPrefixCls:X},csp:V})});var te=Bp(q(q({},M),{},{path:[R,P,X]}),function(){if(C.injectStyle===!1)return[];var ee=pT(z),Y=ee.token,re=ee.flush,le=ly(x,F,b),pe=".".concat(P),ce=ay(x,F,le,{deprecatedTokens:C.deprecatedTokens});A&&le&&ot(le)==="object"&&Object.keys(le).forEach(function(he){le[he]="var(".concat(Tc(he,iy(x,A.prefix)),")")});var Te=Nn(Y,{componentCls:pe,prefixCls:P,iconCls:".".concat(X),antCls:".".concat(H),calc:j,max:K,min:D},A?le:ce),fe=w(Te,{hashId:N,prefixCls:P,rootPrefixCls:H,iconPrefixCls:X});re(x,ce);var ue=typeof l=="function"?l(Te,P,$,C.resetFont):null;return[C.resetStyle===!1?null:ue,fe]});return[te,N]}}function g(y,w,b){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=m(y,w,b,q({resetStyle:!1,order:-998},C)),O=function(R){var I=R.prefixCls,P=R.rootCls,$=P===void 0?I:P;return S(I,$),null};return O}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:m}}const ia=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],CT="5.28.0";function zh(e){return e>=0&&e<=255}function Cl(e,t){const{r:n,g:r,b:o,a:s}=new Yt(e).toRgb();if(s<1)return e;const{r:l,g:u,b:f}=new Yt(t).toRgb();for(let h=.01;h<=1;h+=.01){const m=Math.round((n-l*(1-h))/h),g=Math.round((r-u*(1-h))/h),y=Math.round((o-f*(1-h))/h);if(zh(m)&&zh(g)&&zh(y))return new Yt({r:m,g,b:y,a:Math.round(h*100)/100}).toRgbString()}return new Yt({r:n,g:r,b:o,a:1}).toRgbString()}var wT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function dg(e){const{override:t}=e,n=wT(e,["override"]),r=Object.assign({},t);Object.keys(ss).forEach(y=>{delete r[y]});const o=Object.assign(Object.assign({},n),r),s=480,l=576,u=768,f=992,h=1200,m=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Cl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Cl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Cl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Cl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
21
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
22
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
23
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
24
|
-
`,boxShadowSecondary:`
|
|
25
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
-
`,boxShadowTertiary:`
|
|
29
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
30
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
31
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
32
|
-
`,screenXS:s,screenXSMin:s,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:h-1,screenXL:h,screenXLMin:h,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
33
|
-
0 1px 2px -2px ${new Yt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
34
|
-
0 3px 6px 0 ${new Yt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
35
|
-
0 5px 12px 4px ${new Yt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
36
|
-
`,boxShadowDrawerRight:`
|
|
37
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
-
`,boxShadowDrawerLeft:`
|
|
41
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
42
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
43
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
44
|
-
`,boxShadowDrawerUp:`
|
|
45
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
46
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
47
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
48
|
-
`,boxShadowDrawerDown:`
|
|
49
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var cy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pC={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ET={motionBase:!0,motionUnit:!0},xT={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},mC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,s=cy(t,["override"]);let l=Object.assign(Object.assign({},r),{override:o});return l=dg(l),s&&Object.entries(s).forEach(([u,f])=>{const{theme:h}=f,m=cy(f,["theme"]);let g=m;h&&(g=mC(Object.assign(Object.assign({},l),m),{override:m},h)),l[u]=g}),l};function oo(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=He.useContext(cg),s=`${CT}-${t||""}`,l=n||ug,[u,f,h]=oI(l,[ss,e],{salt:s,override:r,getComputedToken:mC,formatToken:dg,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:pC,ignore:ET,preserve:xT}});return[l,h,t?f:"",u,o]}const Xc={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_i=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),nu=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),dy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),OT=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),RT=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:Object.assign(Object.assign(Object.assign({},u),l),{[o]:l})}},gC=(e,t)=>({outline:`${Ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),vC=(e,t)=>({"&:focus-visible":gC(e,t)}),yC=e=>({[`.${e}`]:Object.assign(Object.assign({},nu()),{[`.${e} .${e}-icon`]:{display:"block"}})}),G7=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},vC(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:io,genComponentStyleHook:IT,genSubStyleComponent:TT}=bT({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(on);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=oo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=d.useContext(on);return e??{}},getResetStyles:(e,t)=>{var n;const r=OT(e);return[r,{"&":r},yC((n=t?.prefix.iconPrefixCls)!==null&&n!==void 0?n:Ed)]},getCommonStyle:RT,getCompUnitless:()=>pC});function PT(e,t){return ia.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],l=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:s,darkColor:l,textColor:u}))},{})}const $T=(e,t)=>{const[n,r]=oo();return Bp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>yC(e))},_T=Object.assign({},Xl),{useId:fy}=_T,DT=()=>"",LT=typeof fy>"u"?DT:fy;function FT(e,t,n){var r;ig();const o=e||{},s=o.inherit===!1||!t?Object.assign(Object.assign({},jl),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:jl.hashed,cssVar:t?.cssVar}):t,l=LT();return Zl(()=>{var u,f;if(!e)return t;const h=Object.assign({},s.components);Object.keys(e.components||{}).forEach(y=>{h[y]=Object.assign(Object.assign({},h[y]),e.components[y])});const m=`css-var-${l.replace(/:/g,"")}`,g=((u=o.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((f=o.cssVar)===null||f===void 0?void 0:f.key)||m});return Object.assign(Object.assign(Object.assign({},s),o),{token:Object.assign(Object.assign({},s.token),o.token),components:h,cssVar:g})},[o,s],(u,f)=>u.some((h,m)=>{const g=f[m];return!kl(h,g,!0)}))}var NT=["children"],SC=d.createContext({});function MT(e){var t=e.children,n=Lt(e,NT);return d.createElement(SC.Provider,{value:n},t)}var kT=(function(e){jo(n,e);var t=Jo(n);function n(){return $n(this,n),t.apply(this,arguments)}return _n(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function AT(e){var t=d.useReducer(function(u){return u+1},0),n=ae(t,2),r=n[1],o=d.useRef(e),s=Yn(function(){return o.current}),l=Yn(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[s,l]}var yi="none",vc="appear",yc="enter",Sc="leave",hy="none",bo="prepare",Ya="start",Xa="active",fg="end",bC="prepared";function py(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function jT(e,t){var n={animationend:py("Animation","AnimationEnd"),transitionend:py("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zT=jT(Nr(),typeof window<"u"?window:{}),CC={};if(Nr()){var BT=document.createElement("div");CC=BT.style}var bc={};function wC(e){if(bc[e])return bc[e];var t=zT[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in CC)return bc[e]=t[s],bc[e]}return""}var EC=wC("animationend"),xC=wC("transitionend"),OC=!!(EC&&xC),my=EC||"animationend",gy=xC||"transitionend";function vy(e,t){if(!e)return null;if(ot(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const HT=(function(e){var t=d.useRef();function n(o){o&&(o.removeEventListener(gy,e),o.removeEventListener(my,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(gy,e),o.addEventListener(my,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var RC=Nr()?d.useLayoutEffect:d.useEffect;const UT=(function(){var e=d.useRef(null);function t(){bn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var s=bn(function(){o<=1?r({isCanceled:function(){return s!==e.current}}):n(r,o-1)});e.current=s}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var VT=[bo,Ya,Xa,fg],WT=[bo,bC],IC=!1,qT=!0;function TC(e){return e===Xa||e===fg}const KT=(function(e,t,n){var r=Hl(hy),o=ae(r,2),s=o[0],l=o[1],u=UT(),f=ae(u,2),h=f[0],m=f[1];function g(){l(bo,!0)}var y=t?WT:VT;return RC(function(){if(s!==hy&&s!==fg){var w=y.indexOf(s),b=y[w+1],C=n(s);C===IC?l(b,!0):b&&h(function(S){function O(){S.isCanceled()||l(b,!0)}C===!0?O():Promise.resolve(C).then(O)})}},[e,s]),d.useEffect(function(){return function(){m()}},[]),[g,s]});function GT(e,t,n,r){var o=r.motionEnter,s=o===void 0?!0:o,l=r.motionAppear,u=l===void 0?!0:l,f=r.motionLeave,h=f===void 0?!0:f,m=r.motionDeadline,g=r.motionLeaveImmediately,y=r.onAppearPrepare,w=r.onEnterPrepare,b=r.onLeavePrepare,C=r.onAppearStart,S=r.onEnterStart,O=r.onLeaveStart,x=r.onAppearActive,R=r.onEnterActive,I=r.onLeaveActive,P=r.onAppearEnd,$=r.onEnterEnd,_=r.onLeaveEnd,L=r.onVisibleChanged,F=Hl(),N=ae(F,2),z=N[0],A=N[1],B=AT(yi),H=ae(B,2),X=H[0],V=H[1],G=Hl(null),j=ae(G,2),J=j[0],K=j[1],D=X(),M=d.useRef(!1),te=d.useRef(null);function ee(){return n()}var Y=d.useRef(!1);function re(){V(yi),K(null,!0)}var le=Yn(function(De){var qe=X();if(qe!==yi){var Ye=ee();if(!(De&&!De.deadline&&De.target!==Ye)){var Ie=Y.current,dt;qe===vc&&Ie?dt=P?.(Ye,De):qe===yc&&Ie?dt=$?.(Ye,De):qe===Sc&&Ie&&(dt=_?.(Ye,De)),Ie&&dt!==!1&&re()}}}),pe=HT(le),ce=ae(pe,1),Te=ce[0],fe=function(qe){switch(qe){case vc:return U(U(U({},bo,y),Ya,C),Xa,x);case yc:return U(U(U({},bo,w),Ya,S),Xa,R);case Sc:return U(U(U({},bo,b),Ya,O),Xa,I);default:return{}}},ue=d.useMemo(function(){return fe(D)},[D]),he=KT(D,!e,function(De){if(De===bo){var qe=ue[bo];return qe?qe(ee()):IC}if(xe in ue){var Ye;K(((Ye=ue[xe])===null||Ye===void 0?void 0:Ye.call(ue,ee(),null))||null)}return xe===Xa&&D!==yi&&(Te(ee()),m>0&&(clearTimeout(te.current),te.current=setTimeout(function(){le({deadline:!0})},m))),xe===bC&&re(),qT}),be=ae(he,2),ve=be[0],xe=be[1],Ne=TC(xe);Y.current=Ne;var Pe=d.useRef(null);RC(function(){if(!(M.current&&Pe.current===t)){A(t);var De=M.current;M.current=!0;var qe;!De&&t&&u&&(qe=vc),De&&t&&s&&(qe=yc),(De&&!t&&h||!De&&g&&!t&&h)&&(qe=Sc);var Ye=fe(qe);qe&&(e||Ye[bo])?(V(qe),ve()):V(yi),Pe.current=t}},[t]),d.useEffect(function(){(D===vc&&!u||D===yc&&!s||D===Sc&&!h)&&V(yi)},[u,s,h]),d.useEffect(function(){return function(){M.current=!1,clearTimeout(te.current)}},[]);var _e=d.useRef(!1);d.useEffect(function(){z&&(_e.current=!0),z!==void 0&&D===yi&&((_e.current||z)&&L?.(z),_e.current=!0)},[z,D]);var We=J;return ue[bo]&&xe===Ya&&(We=q({transition:"none"},We)),[D,xe,We,z??t]}function QT(e){var t=e;ot(e)==="object"&&(t=e.transitionSupport);function n(o,s){return!!(o.motionName&&t&&s!==!1)}var r=d.forwardRef(function(o,s){var l=o.visible,u=l===void 0?!0:l,f=o.removeOnLeave,h=f===void 0?!0:f,m=o.forceRender,g=o.children,y=o.motionName,w=o.leavedClassName,b=o.eventProps,C=d.useContext(SC),S=C.motion,O=n(o,S),x=d.useRef(),R=d.useRef();function I(){try{return x.current instanceof HTMLElement?x.current:Ic(R.current)}catch{return null}}var P=GT(O,u,I,o),$=ae(P,4),_=$[0],L=$[1],F=$[2],N=$[3],z=d.useRef(N);N&&(z.current=!0);var A=d.useCallback(function(j){x.current=j,Qm(s,j)},[s]),B,H=q(q({},b),{},{visible:u});if(!g)B=null;else if(_===yi)N?B=g(q({},H),A):!h&&z.current&&w?B=g(q(q({},H),{},{className:w}),A):m||!h&&!w?B=g(q(q({},H),{},{style:{display:"none"}}),A):B=null;else{var X;L===bo?X="prepare":TC(L)?X="active":L===Ya&&(X="start");var V=vy(y,"".concat(_,"-").concat(X));B=g(q(q({},H),{},{className:Se(vy(y,_),U(U({},V,V&&X),y,typeof y=="string")),style:F}),A)}if(d.isValidElement(B)&&ys(B)){var G=eu(B);G||(B=d.cloneElement(B,{ref:A}))}return d.createElement(kT,{ref:R},B)});return r.displayName="CSSMotion",r}const ca=QT(OC);var tm="add",nm="keep",rm="remove",Bh="removed";function YT(e){var t;return e&&ot(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function om(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(YT)}function XT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,s=om(e),l=om(t);s.forEach(function(h){for(var m=!1,g=r;g<o;g+=1){var y=l[g];if(y.key===h.key){r<g&&(n=n.concat(l.slice(r,g).map(function(w){return q(q({},w),{},{status:tm})})),r=g),n.push(q(q({},y),{},{status:nm})),r+=1,m=!0;break}}m||n.push(q(q({},h),{},{status:rm}))}),r<o&&(n=n.concat(l.slice(r).map(function(h){return q(q({},h),{},{status:tm})})));var u={};n.forEach(function(h){var m=h.key;u[m]=(u[m]||0)+1});var f=Object.keys(u).filter(function(h){return u[h]>1});return f.forEach(function(h){n=n.filter(function(m){var g=m.key,y=m.status;return g!==h||y!==rm}),n.forEach(function(m){m.key===h&&(m.status=nm)})}),n}var JT=["component","children","onVisibleChanged","onAllRemoved"],ZT=["status"],e6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function t6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca,n=(function(r){jo(s,r);var o=Jo(s);function s(){var l;$n(this,s);for(var u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];return l=o.call.apply(o,[this].concat(f)),U($t(l),"state",{keyEntities:[]}),U($t(l),"removeKey",function(m){l.setState(function(g){var y=g.keyEntities.map(function(w){return w.key!==m?w:q(q({},w),{},{status:Bh})});return{keyEntities:y}},function(){var g=l.state.keyEntities,y=g.filter(function(w){var b=w.status;return b!==Bh}).length;y===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return _n(s,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,h=this.props,m=h.component,g=h.children,y=h.onVisibleChanged;h.onAllRemoved;var w=Lt(h,JT),b=m||d.Fragment,C={};return e6.forEach(function(S){C[S]=w[S],delete w[S]}),delete w.keys,d.createElement(b,w,f.map(function(S,O){var x=S.status,R=Lt(S,ZT),I=x===tm||x===nm;return d.createElement(t,Fe({},C,{key:R.key,visible:I,eventProps:R,onVisibleChanged:function($){y?.($,{key:R.key}),$||u.removeKey(R.key)}}),function(P,$){return g(q(q({},P),{},{index:O}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var h=u.keys,m=f.keyEntities,g=om(h),y=XT(m,g);return{keyEntities:y.filter(function(w){var b=m.find(function(C){var S=C.key;return w.key===S});return!(b&&b.status===Bh&&w.status===rm)})}}}]),s})(d.Component);return U(n,"defaultProps",{component:"div"}),n}const n6=t6(OC),yy=d.createContext(!0);function r6(e){const t=d.useContext(yy),{children:n}=e,[,r]=oo(),{motion:o}=r,s=d.useRef(!1);return s.current||(s.current=t!==o),s.current?d.createElement(yy.Provider,{value:o},d.createElement(MT,{motion:o},n)):n}const o6=()=>null;var i6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a6=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Jc,PC,$C,_C;function Mc(){return Jc||zl}function s6(){return PC||Ed}function l6(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const u6=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Jc=t),n!==void 0&&(PC=n),"holderRender"in e&&(_C=o),r&&(l6(r)?iT(Mc(),r):$C=r)},c6=()=>({getPrefixCls:(e,t)=>t||(e?`${Mc()}-${e}`:Mc()),getIconPrefixCls:s6,getRootPrefixCls:()=>Jc||Mc(),getTheme:()=>$C,holderRender:_C}),d6=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:s,form:l,locale:u,componentSize:f,direction:h,space:m,splitter:g,virtual:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:b,popupOverflow:C,legacyLocale:S,parentContext:O,iconPrefixCls:x,theme:R,componentDisabled:I,segmented:P,statistic:$,spin:_,calendar:L,carousel:F,cascader:N,collapse:z,typography:A,checkbox:B,descriptions:H,divider:X,drawer:V,skeleton:G,steps:j,image:J,layout:K,list:D,mentions:M,modal:te,progress:ee,result:Y,slider:re,breadcrumb:le,menu:pe,pagination:ce,input:Te,textArea:fe,empty:ue,badge:he,radio:be,rate:ve,switch:xe,transfer:Ne,avatar:Pe,message:_e,tag:We,table:De,card:qe,tabs:Ye,timeline:Ie,timePicker:dt,upload:ft,notification:ht,tree:st,colorPicker:et,datePicker:lt,rangePicker:ke,flex:mt,wave:St,dropdown:nt,warning:tt,tour:Et,tooltip:rt,popover:xt,popconfirm:Nt,floatButton:Cn,floatButtonGroup:Gt,variant:en,inputNumber:cn,treeSelect:Ut}=e,It=d.useCallback((Ae,_t)=>{const{prefixCls:kt}=e;if(_t)return _t;const Pt=kt||O.getPrefixCls("");return Ae?`${Pt}-${Ae}`:Pt},[O.getPrefixCls,e.prefixCls]),Ct=x||O.iconPrefixCls||Ed,Vt=n||O.csp;$T(Ct,Vt);const Mt=FT(R,O.theme,{prefixCls:It("")}),Ve={csp:Vt,autoInsertSpaceInButton:r,alert:o,anchor:s,locale:u||S,direction:h,space:m,splitter:g,virtual:y,popupMatchSelectWidth:b??w,popupOverflow:C,getPrefixCls:It,iconPrefixCls:Ct,theme:Mt,segmented:P,statistic:$,spin:_,calendar:L,carousel:F,cascader:N,collapse:z,typography:A,checkbox:B,descriptions:H,divider:X,drawer:V,skeleton:G,steps:j,image:J,input:Te,textArea:fe,layout:K,list:D,mentions:M,modal:te,progress:ee,result:Y,slider:re,breadcrumb:le,menu:pe,pagination:ce,empty:ue,badge:he,radio:be,rate:ve,switch:xe,transfer:Ne,avatar:Pe,message:_e,tag:We,table:De,card:qe,tabs:Ye,timeline:Ie,timePicker:dt,upload:ft,notification:ht,tree:st,colorPicker:et,datePicker:lt,rangePicker:ke,flex:mt,wave:St,dropdown:nt,warning:tt,tour:Et,tooltip:rt,popover:xt,popconfirm:Nt,floatButton:Cn,floatButtonGroup:Gt,variant:en,inputNumber:cn,treeSelect:Ut},it=Object.assign({},O);Object.keys(Ve).forEach(Ae=>{Ve[Ae]!==void 0&&(it[Ae]=Ve[Ae])}),a6.forEach(Ae=>{const _t=e[Ae];_t&&(it[Ae]=_t)}),typeof r<"u"&&(it.button=Object.assign({autoInsertSpace:r},it.button));const Tt=Zl(()=>it,it,(Ae,_t)=>{const kt=Object.keys(Ae),Pt=Object.keys(_t);return kt.length!==Pt.length||kt.some(Ot=>Ae[Ot]!==_t[Ot])}),{layer:Re}=d.useContext(tu),de=d.useMemo(()=>({prefixCls:Ct,csp:Vt,layer:Re?"antd":void 0}),[Ct,Vt,Re]);let se=d.createElement(d.Fragment,null,d.createElement(o6,{dropdownMatchSelectWidth:w}),t);const we=d.useMemo(()=>{var Ae,_t,kt,Pt;return Qa(((Ae=as.Form)===null||Ae===void 0?void 0:Ae.defaultValidateMessages)||{},((kt=(_t=Tt.locale)===null||_t===void 0?void 0:_t.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((Pt=Tt.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},l?.validateMessages||{})},[Tt,l?.validateMessages]);Object.keys(we).length>0&&(se=d.createElement(AI.Provider,{value:we},se)),u&&(se=d.createElement(VI,{locale:u,_ANT_MARK__:UI},se)),se=d.createElement(og.Provider,{value:de},se),f&&(se=d.createElement(sT,{size:f},se)),se=d.createElement(r6,null,se);const Ke=d.useMemo(()=>{const Ae=Mt||{},{algorithm:_t,token:kt,components:Pt,cssVar:Ot}=Ae,dn=i6(Ae,["algorithm","token","components","cssVar"]),an=_t&&(!Array.isArray(_t)||_t.length>0)?Gc(_t):ug,gn={};Object.entries(Pt||{}).forEach(([Jt,fn])=>{const Oe=Object.assign({},fn);"algorithm"in Oe&&(Oe.algorithm===!0?Oe.theme=an:(Array.isArray(Oe.algorithm)||typeof Oe.algorithm=="function")&&(Oe.theme=Gc(Oe.algorithm)),delete Oe.algorithm),gn[Jt]=Oe});const Dn=Object.assign(Object.assign({},ss),kt);return Object.assign(Object.assign({},dn),{theme:an,token:Dn,components:gn,override:Object.assign({override:Dn},gn),cssVar:Ot})},[Mt]);return R&&(se=d.createElement(cg.Provider,{value:Ke},se)),Tt.warning&&(se=d.createElement(kI.Provider,{value:Tt.warning},se)),I!==void 0&&(se=d.createElement(aT,{disabled:I},se)),d.createElement(on.Provider,{value:Tt},se)},Di=e=>{const t=d.useContext(on),n=d.useContext(ag);return d.createElement(d6,Object.assign({parentContext:t,legacyLocale:n},e))};Di.ConfigContext=on;Di.SizeContext=ls;Di.config=u6;Di.useConfig=lT;Object.defineProperty(Di,"SizeContext",{get:()=>ls});var f6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function DC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function h6(e){return DC(e)instanceof ShadowRoot}function Zc(e){return h6(e)?DC(e):null}function p6(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function m6(e,t){gr(e,"[@ant-design/icons] ".concat(t))}function Sy(e){return ot(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ot(e.icon)==="object"||typeof e.icon=="function")}function by(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[p6(n)]=r}return t},{})}function im(e,t,n){return n?He.createElement(e.tag,q(q({key:t},by(e.attrs)),n),(e.children||[]).map(function(r,o){return im(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):He.createElement(e.tag,q({key:t},by(e.attrs)),(e.children||[]).map(function(r,o){return im(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function LC(e){return oa(e)[0]}function FC(e){return e?Array.isArray(e)?e:[e]:[]}var g6=`
|
|
53
|
-
.anticon {
|
|
54
|
-
display: inline-flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
color: inherit;
|
|
57
|
-
font-style: normal;
|
|
58
|
-
line-height: 0;
|
|
59
|
-
text-align: center;
|
|
60
|
-
text-transform: none;
|
|
61
|
-
vertical-align: -0.125em;
|
|
62
|
-
text-rendering: optimizeLegibility;
|
|
63
|
-
-webkit-font-smoothing: antialiased;
|
|
64
|
-
-moz-osx-font-smoothing: grayscale;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.anticon > * {
|
|
68
|
-
line-height: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.anticon svg {
|
|
72
|
-
display: inline-block;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.anticon::before {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon .anticon-icon {
|
|
80
|
-
display: block;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon[tabindex] {
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon-spin::before,
|
|
88
|
-
.anticon-spin {
|
|
89
|
-
display: inline-block;
|
|
90
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
91
|
-
animation: loadingCircle 1s infinite linear;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@-webkit-keyframes loadingCircle {
|
|
95
|
-
100% {
|
|
96
|
-
-webkit-transform: rotate(360deg);
|
|
97
|
-
transform: rotate(360deg);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@keyframes loadingCircle {
|
|
102
|
-
100% {
|
|
103
|
-
-webkit-transform: rotate(360deg);
|
|
104
|
-
transform: rotate(360deg);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
`,v6=function(t){var n=d.useContext(og),r=n.csp,o=n.prefixCls,s=n.layer,l=g6;o&&(l=l.replace(/anticon/g,o)),s&&(l="@layer ".concat(s,` {
|
|
108
|
-
`).concat(l,`
|
|
109
|
-
}`)),d.useEffect(function(){var u=t.current,f=Zc(u);Qo(l,"@ant-design-icons",{prepend:!s,csp:r,attachTo:f})},[])},y6=["icon","className","onClick","style","primaryColor","secondaryColor"],Ol={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function S6(e){var t=e.primaryColor,n=e.secondaryColor;Ol.primaryColor=t,Ol.secondaryColor=n||LC(t),Ol.calculated=!!n}function b6(){return q({},Ol)}var bs=function(t){var n=t.icon,r=t.className,o=t.onClick,s=t.style,l=t.primaryColor,u=t.secondaryColor,f=Lt(t,y6),h=d.useRef(),m=Ol;if(l&&(m={primaryColor:l,secondaryColor:u||LC(l)}),v6(h),m6(Sy(n),"icon should be icon definiton, but got ".concat(n)),!Sy(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=q(q({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),im(g.icon,"svg-".concat(g.name),q(q({className:r,onClick:o,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:h}))};bs.displayName="IconReact";bs.getTwoToneColors=b6;bs.setTwoToneColors=S6;function NC(e){var t=FC(e),n=ae(t,2),r=n[0],o=n[1];return bs.setTwoToneColors({primaryColor:r,secondaryColor:o})}function C6(){var e=bs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var w6=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];NC(Yc.primary);var nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,s=e.rotate,l=e.tabIndex,u=e.onClick,f=e.twoToneColor,h=Lt(e,w6),m=d.useContext(og),g=m.prefixCls,y=g===void 0?"anticon":g,w=m.rootClassName,b=Se(w,y,U(U({},"".concat(y,"-").concat(r.name),!!r.name),"".concat(y,"-spin"),!!o||r.name==="loading"),n),C=l;C===void 0&&u&&(C=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,O=FC(f),x=ae(O,2),R=x[0],I=x[1];return d.createElement("span",Fe({role:"img","aria-label":r.name},h,{ref:t,tabIndex:C,onClick:u,className:b}),d.createElement(bs,{icon:r,primaryColor:R,secondaryColor:I,style:S}))});nn.displayName="AntdIcon";nn.getTwoToneColor=C6;nn.setTwoToneColor=NC;var E6=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:f6}))},hg=d.forwardRef(E6),x6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},O6=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:x6}))},xd=d.forwardRef(O6),R6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},I6=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:R6}))},pg=d.forwardRef(I6),T6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},P6=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:T6}))},mg=d.forwardRef(P6),$6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},_6=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:$6}))},MC=d.forwardRef(_6),D6=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
110
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
111
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
112
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
113
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
114
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
115
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
116
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
117
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
118
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
119
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
120
|
-
summary tabIndex target title type useMap value width wmode wrap`,L6=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
121
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
122
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
123
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
124
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
125
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
126
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,F6="".concat(D6," ").concat(L6).split(/[\s\n]+/),N6="aria-",M6="data-";function Cy(e,t){return e.indexOf(t)===0}function us(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Cy(o,N6))||n.data&&Cy(o,M6)||n.attr&&F6.includes(o))&&(r[o]=e[o])}),r}function kC(e){return e&&He.isValidElement(e)&&e.type===He.Fragment}const AC=(e,t,n)=>He.isValidElement(e)?He.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function da(e,t){return AC(e,e,t)}const Cc=(e,t,n,r,o)=>({background:e,border:`${Ue(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),k6=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:s,fontSizeLG:l,lineHeight:u,borderRadiusLG:f,motionEaseInOutCirc:h,withDescriptionIconSize:m,colorText:g,colorTextHeading:y,withDescriptionPadding:w,defaultPadding:b}=e;return{[t]:Object.assign(Object.assign({},_i(e)),{position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:u},"&-message":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${h}, opacity ${n} ${h},
|
|
127
|
-
padding-top ${n} ${h}, padding-bottom ${n} ${h},
|
|
128
|
-
margin-bottom ${n} ${h}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:w,[`${t}-icon`]:{marginInlineEnd:o,fontSize:m,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:y,fontSize:l},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},A6=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:s,colorWarningBorder:l,colorWarningBg:u,colorError:f,colorErrorBorder:h,colorErrorBg:m,colorInfo:g,colorInfoBorder:y,colorInfoBg:w}=e;return{[t]:{"&-success":Cc(o,r,n,e,t),"&-info":Cc(w,y,g,e,t),"&-warning":Cc(u,l,s,e,t),"&-error":Object.assign(Object.assign({},Cc(m,h,f,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},j6=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:s,colorIcon:l,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:s,lineHeight:Ue(s),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:l,transition:`color ${r}`,"&:hover":{color:u}}}}},z6=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),B6=io("Alert",e=>[k6(e),A6(e),j6(e)],z6);var wy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const H6={success:hg,info:MC,error:xd,warning:mg},U6=e=>{const{icon:t,prefixCls:n,type:r}=e,o=H6[r]||null;return t?AC(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:Se(`${n}-icon`,t.props.className)})):d.createElement(o,{className:`${n}-icon`})},V6=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:s}=e,l=r===!0||r===void 0?d.createElement(pg,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},s),l):null},jC=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:s,className:l,rootClassName:u,style:f,onMouseEnter:h,onMouseLeave:m,onClick:g,afterClose:y,showIcon:w,closable:b,closeText:C,closeIcon:S,action:O,id:x}=e,R=wy(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[I,P]=d.useState(!1),$=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:_,direction:L,closable:F,closeIcon:N,className:z,style:A}=$i("alert"),B=_("alert",r),[H,X,V]=B6(B),G=Y=>{var re;P(!0),(re=e.onClose)===null||re===void 0||re.call(e,Y)},j=d.useMemo(()=>e.type!==void 0?e.type:s?"warning":"info",[e.type,s]),J=d.useMemo(()=>typeof b=="object"&&b.closeIcon||C?!0:typeof b=="boolean"?b:S!==!1&&S!==null&&S!==void 0?!0:!!F,[C,S,b,F]),K=s&&w===void 0?!0:w,D=Se(B,`${B}-${j}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!K,[`${B}-banner`]:!!s,[`${B}-rtl`]:L==="rtl"},z,l,u,V,X),M=us(R,{aria:!0,data:!0}),te=d.useMemo(()=>typeof b=="object"&&b.closeIcon?b.closeIcon:C||(S!==void 0?S:typeof F=="object"&&F.closeIcon?F.closeIcon:N),[S,b,F,C,N]),ee=d.useMemo(()=>{const Y=b??F;if(typeof Y=="object"){const{closeIcon:re}=Y;return wy(Y,["closeIcon"])}return{}},[b,F]);return H(d.createElement(ca,{visible:!I,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Y=>({maxHeight:Y.offsetHeight}),onLeaveEnd:y},({className:Y,style:re},le)=>d.createElement("div",Object.assign({id:x,ref:vs($,le),"data-show":!I,className:Se(D,Y),style:Object.assign(Object.assign(Object.assign({},A),f),re),onMouseEnter:h,onMouseLeave:m,onClick:g,role:"alert"},M),K?d.createElement(U6,{description:n,icon:e.icon,prefixCls:B,type:j}):null,d.createElement("div",{className:`${B}-content`},o?d.createElement("div",{className:`${B}-message`},o):null,n?d.createElement("div",{className:`${B}-description`},n):null),O?d.createElement("div",{className:`${B}-action`},O):null,d.createElement(V6,{isClosable:J,prefixCls:B,closeIcon:te,handleClose:G,ariaProps:ee}))))});function W6(e,t,n){return t=ra(t),_b(e,yd()?Reflect.construct(t,n||[],ra(e).constructor):t.apply(e,n))}let q6=(function(e){function t(){var n;return $n(this,t),n=W6(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return jo(t,e),_n(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:s,children:l}=this.props,{error:u,info:f}=this.state,h=f?.componentStack||null,m=typeof r>"u"?(u||"").toString():r,g=typeof o>"u"?h:o;return u?d.createElement(jC,{id:s,type:"error",message:m,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):l}}])})(d.Component);const zC=jC;zC.ErrorBoundary=q6;const Od=e=>{const[,,,,t]=oo();return t?`${e}-css-var`:""};var at={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},BC=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,s=e.duration,l=s===void 0?4.5:s,u=e.showProgress,f=e.pauseOnHover,h=f===void 0?!0:f,m=e.eventKey,g=e.content,y=e.closable,w=e.closeIcon,b=w===void 0?"x":w,C=e.props,S=e.onClick,O=e.onNoticeClose,x=e.times,R=e.hovering,I=d.useState(!1),P=ae(I,2),$=P[0],_=P[1],L=d.useState(0),F=ae(L,2),N=F[0],z=F[1],A=d.useState(0),B=ae(A,2),H=B[0],X=B[1],V=R||$,G=l>0&&u,j=function(){O(m)},J=function(Y){(Y.key==="Enter"||Y.code==="Enter"||Y.keyCode===at.ENTER)&&j()};d.useEffect(function(){if(!V&&l>0){var ee=Date.now()-H,Y=setTimeout(function(){j()},l*1e3-H);return function(){h&&clearTimeout(Y),X(Date.now()-ee)}}},[l,V,x]),d.useEffect(function(){if(!V&&G&&(h||H===0)){var ee=performance.now(),Y,re=function le(){cancelAnimationFrame(Y),Y=requestAnimationFrame(function(pe){var ce=pe+H-ee,Te=Math.min(ce/(l*1e3),1);z(Te*100),Te<1&&le()})};return re(),function(){h&&cancelAnimationFrame(Y)}}},[l,H,V,G,x]);var K=d.useMemo(function(){return ot(y)==="object"&&y!==null?y:y?{closeIcon:b}:{}},[y,b]),D=us(K,!0),M=100-(!N||N<0?0:N>100?100:N),te="".concat(n,"-notice");return d.createElement("div",Fe({},C,{ref:t,className:Se(te,o,U({},"".concat(te,"-closable"),y)),style:r,onMouseEnter:function(Y){var re;_(!0),C==null||(re=C.onMouseEnter)===null||re===void 0||re.call(C,Y)},onMouseLeave:function(Y){var re;_(!1),C==null||(re=C.onMouseLeave)===null||re===void 0||re.call(C,Y)},onClick:S}),d.createElement("div",{className:"".concat(te,"-content")},g),y&&d.createElement("a",Fe({tabIndex:0,className:"".concat(te,"-close"),onKeyDown:J,"aria-label":"Close"},D,{onClick:function(Y){Y.preventDefault(),Y.stopPropagation(),j()}}),K.closeIcon),G&&d.createElement("progress",{className:"".concat(te,"-progress"),max:"100",value:M},M+"%"))}),HC=He.createContext({}),K6=function(t){var n=t.children,r=t.classNames;return He.createElement(HC.Provider,{value:{classNames:r}},n)},Ey=8,xy=3,Oy=16,G6=function(t){var n={offset:Ey,threshold:xy,gap:Oy};if(t&&ot(t)==="object"){var r,o,s;n.offset=(r=t.offset)!==null&&r!==void 0?r:Ey,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:xy,n.gap=(s=t.gap)!==null&&s!==void 0?s:Oy}return[!!t,n]},Q6=["className","style","classNames","styles"],Y6=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,s=t.className,l=t.style,u=t.motion,f=t.onAllNoticeRemoved,h=t.onNoticeClose,m=t.stack,g=d.useContext(HC),y=g.classNames,w=d.useRef({}),b=d.useState(null),C=ae(b,2),S=C[0],O=C[1],x=d.useState([]),R=ae(x,2),I=R[0],P=R[1],$=n.map(function(V){return{config:V,key:String(V.key)}}),_=G6(m),L=ae(_,2),F=L[0],N=L[1],z=N.offset,A=N.threshold,B=N.gap,H=F&&(I.length>0||$.length<=A),X=typeof u=="function"?u(r):u;return d.useEffect(function(){F&&I.length>1&&P(function(V){return V.filter(function(G){return $.some(function(j){var J=j.key;return G===J})})})},[I,$,F]),d.useEffect(function(){var V;if(F&&w.current[(V=$[$.length-1])===null||V===void 0?void 0:V.key]){var G;O(w.current[(G=$[$.length-1])===null||G===void 0?void 0:G.key])}},[$,F]),He.createElement(n6,Fe({key:r,className:Se(o,"".concat(o,"-").concat(r),y?.list,s,U(U({},"".concat(o,"-stack"),!!F),"".concat(o,"-stack-expanded"),H)),style:l,keys:$,motionAppear:!0},X,{onAllRemoved:function(){f(r)}}),function(V,G){var j=V.config,J=V.className,K=V.style,D=V.index,M=j,te=M.key,ee=M.times,Y=String(te),re=j,le=re.className,pe=re.style,ce=re.classNames,Te=re.styles,fe=Lt(re,Q6),ue=$.findIndex(function(Ie){return Ie.key===Y}),he={};if(F){var be=$.length-1-(ue>-1?ue:D-1),ve=r==="top"||r==="bottom"?"-50%":"0";if(be>0){var xe,Ne,Pe;he.height=H?(xe=w.current[Y])===null||xe===void 0?void 0:xe.offsetHeight:S?.offsetHeight;for(var _e=0,We=0;We<be;We++){var De;_e+=((De=w.current[$[$.length-1-We].key])===null||De===void 0?void 0:De.offsetHeight)+B}var qe=(H?_e:be*z)*(r.startsWith("top")?1:-1),Ye=!H&&S!==null&&S!==void 0&&S.offsetWidth&&(Ne=w.current[Y])!==null&&Ne!==void 0&&Ne.offsetWidth?(S?.offsetWidth-z*2*(be<3?be:3))/((Pe=w.current[Y])===null||Pe===void 0?void 0:Pe.offsetWidth):1;he.transform="translate3d(".concat(ve,", ").concat(qe,"px, 0) scaleX(").concat(Ye,")")}else he.transform="translate3d(".concat(ve,", 0, 0)")}return He.createElement("div",{ref:G,className:Se("".concat(o,"-notice-wrapper"),J,ce?.wrapper),style:q(q(q({},K),he),Te?.wrapper),onMouseEnter:function(){return P(function(dt){return dt.includes(Y)?dt:[].concat($e(dt),[Y])})},onMouseLeave:function(){return P(function(dt){return dt.filter(function(ft){return ft!==Y})})}},He.createElement(BC,Fe({},fe,{ref:function(dt){ue>-1?w.current[Y]=dt:delete w.current[Y]},prefixCls:o,classNames:ce,styles:Te,className:Se(le,y?.notice),style:pe,times:ee,key:te,eventKey:te,onNoticeClose:h,hovering:F&&I.length>0})))})},X6=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,s=e.motion,l=e.maxCount,u=e.className,f=e.style,h=e.onAllRemoved,m=e.stack,g=e.renderNotifications,y=d.useState([]),w=ae(y,2),b=w[0],C=w[1],S=function(F){var N,z=b.find(function(A){return A.key===F});z==null||(N=z.onClose)===null||N===void 0||N.call(z),C(function(A){return A.filter(function(B){return B.key!==F})})};d.useImperativeHandle(t,function(){return{open:function(F){C(function(N){var z=$e(N),A=z.findIndex(function(X){return X.key===F.key}),B=q({},F);if(A>=0){var H;B.times=(((H=N[A])===null||H===void 0?void 0:H.times)||0)+1,z[A]=B}else B.times=0,z.push(B);return l>0&&z.length>l&&(z=z.slice(-l)),z})},close:function(F){S(F)},destroy:function(){C([])}}});var O=d.useState({}),x=ae(O,2),R=x[0],I=x[1];d.useEffect(function(){var L={};b.forEach(function(F){var N=F.placement,z=N===void 0?"topRight":N;z&&(L[z]=L[z]||[],L[z].push(F))}),Object.keys(R).forEach(function(F){L[F]=L[F]||[]}),I(L)},[b]);var P=function(F){I(function(N){var z=q({},N),A=z[F]||[];return A.length||delete z[F],z})},$=d.useRef(!1);if(d.useEffect(function(){Object.keys(R).length>0?$.current=!0:$.current&&(h?.(),$.current=!1)},[R]),!o)return null;var _=Object.keys(R);return Ii.createPortal(d.createElement(d.Fragment,null,_.map(function(L){var F=R[L],N=d.createElement(Y6,{key:L,configList:F,placement:L,prefixCls:r,className:u?.(L),style:f?.(L),motion:s,onNoticeClose:S,onAllNoticeRemoved:P,stack:m});return g?g(N,{prefixCls:r,key:L}):N})),o)}),J6=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Z6=function(){return document.body},Ry=0;function eP(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(s){var l=o[s];l!==void 0&&(e[s]=l)})}),e}function tP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Z6:t,r=e.motion,o=e.prefixCls,s=e.maxCount,l=e.className,u=e.style,f=e.onAllRemoved,h=e.stack,m=e.renderNotifications,g=Lt(e,J6),y=d.useState(),w=ae(y,2),b=w[0],C=w[1],S=d.useRef(),O=d.createElement(X6,{container:b,ref:S,prefixCls:o,motion:r,maxCount:s,className:l,style:u,onAllRemoved:f,stack:h,renderNotifications:m}),x=d.useState([]),R=ae(x,2),I=R[0],P=R[1],$=Yn(function(L){var F=eP(g,L);(F.key===null||F.key===void 0)&&(F.key="rc-notification-".concat(Ry),Ry+=1),P(function(N){return[].concat($e(N),[{type:"open",config:F}])})}),_=d.useMemo(function(){return{open:$,close:function(F){P(function(N){return[].concat($e(N),[{type:"close",key:F}])})},destroy:function(){P(function(F){return[].concat($e(F),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){C(n())}),d.useEffect(function(){if(S.current&&I.length){I.forEach(function(N){switch(N.type){case"open":S.current.open(N.config);break;case"close":S.current.close(N.key);break;case"destroy":S.current.destroy();break}});var L,F;P(function(N){return(L!==N||!F)&&(L=N,F=N.filter(function(z){return!I.includes(z)})),F})}},[I]),[_,O]}var nP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},rP=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:nP}))},Ul=d.forwardRef(rP);const UC=He.createContext(void 0),Si=100,oP=10,iP=Si*oP,VC={Modal:Si,Drawer:Si,Popover:Si,Popconfirm:Si,Tooltip:Si,Tour:Si,FloatButton:Si},aP={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function sP(e){return e in VC}const gg=(e,t)=>{const[,n]=oo(),r=He.useContext(UC),o=sP(e);let s;if(t!==void 0)s=[t,t];else{let l=r??0;o?l+=(r?0:n.zIndexPopupBase)+VC[e]:l+=aP[e],s=[r===void 0?t:l,l]}return s},lP=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:s,colorError:l,colorWarning:u,colorInfo:f,fontSizeLG:h,motionEaseInOutCirc:m,motionDurationSlow:g,marginXS:y,paddingXS:w,borderRadiusLG:b,zIndexPopup:C,contentPadding:S,contentBg:O}=e,x=`${t}-notice`,R=new Kt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:w,transform:"translateY(0)",opacity:1}}),I=new Kt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:w,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),P={padding:w,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:h},[`${x}-content`]:{display:"inline-block",padding:S,background:O,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
129
|
-
${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},_i(e)),{color:o,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
130
|
-
${t}-move-up-appear,
|
|
131
|
-
${t}-move-up-enter
|
|
132
|
-
`]:{animationName:R,animationDuration:g,animationPlayState:"paused",animationTimingFunction:m},[`
|
|
133
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
134
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
135
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:g,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},P)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},P),{padding:0,textAlign:"start"})}]},uP=e=>({zIndexPopup:e.zIndexPopupBase+iP+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),WC=io("Message",e=>{const t=Nn(e,{height:150});return lP(t)},uP);var cP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dP={info:d.createElement(MC,null),success:d.createElement(hg,null),error:d.createElement(xd,null),warning:d.createElement(mg,null),loading:d.createElement(Ul,null)},qC=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:Se(`${e}-custom-content`,`${e}-${t}`)},n||dP[t],d.createElement("span",null,r)),fP=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:s}=e,l=cP(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=d.useContext(on),f=t||u("message"),h=Od(f),[m,g,y]=WC(f,h);return m(d.createElement(BC,Object.assign({},l,{prefixCls:f,className:Se(n,g,`${f}-notice-pure-panel`,y,h),eventKey:"pure",duration:null,content:d.createElement(qC,{prefixCls:f,type:r,icon:o},s)})))};function hP(e,t){return{motionName:t??`${e}-move-up`}}function vg(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t?.()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}var pP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mP=8,gP=3,vP=({children:e,prefixCls:t})=>{const n=Od(t),[r,o,s]=WC(t,n);return r(d.createElement(K6,{classNames:{list:Se(o,s,n)}},e))},yP=(e,{prefixCls:t,key:n})=>d.createElement(vP,{prefixCls:t,key:n},e),SP=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:s,duration:l=gP,rtl:u,transitionName:f,onAllRemoved:h}=e,{getPrefixCls:m,getPopupContainer:g,message:y,direction:w}=d.useContext(on),b=r||m("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??mP}),S=()=>Se({[`${b}-rtl`]:u??w==="rtl"}),O=()=>hP(b,f),x=d.createElement("span",{className:`${b}-close-x`},d.createElement(pg,{className:`${b}-close-icon`})),[R,I]=tP({prefixCls:b,style:C,className:S,motion:O,closable:!1,closeIcon:x,duration:l,getContainer:()=>o?.()||g?.()||document.body,maxCount:s,onAllRemoved:h,renderNotifications:yP});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:b,message:y})),I});let Iy=0;function KC(e){const t=d.useRef(null);return ig(),[d.useMemo(()=>{const r=f=>{var h;(h=t.current)===null||h===void 0||h.close(f)},o=f=>{if(!t.current){const $=()=>{};return $.then=()=>{},$}const{open:h,prefixCls:m,message:g}=t.current,y=`${m}-notice`,{content:w,icon:b,type:C,key:S,className:O,style:x,onClose:R}=f,I=pP(f,["content","icon","type","key","className","style","onClose"]);let P=S;return P==null&&(Iy+=1,P=`antd-message-${Iy}`),vg($=>(h(Object.assign(Object.assign({},I),{key:P,content:d.createElement(qC,{prefixCls:m,type:C,icon:b},w),placement:"top",className:Se(C&&`${y}-${C}`,O,g?.className),style:Object.assign(Object.assign({},g?.style),x),onClose:()=>{R?.(),$()}})),()=>{r(P)}))},l={open:o,destroy:f=>{var h;f!==void 0?r(f):(h=t.current)===null||h===void 0||h.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const h=(m,g,y)=>{let w;m&&typeof m=="object"&&"content"in m?w=m:w={content:m};let b,C;typeof g=="function"?C=g:(b=g,C=y);const S=Object.assign(Object.assign({onClose:C,duration:b},w),{type:f});return o(S)};l[f]=h}),l},[]),d.createElement(SP,Object.assign({key:"message-holder"},e,{ref:t}))]}function bP(e){return KC(e)}function GC(e,t){this.v=e,this.k=t}function hr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}hr=function(l,u,f,h){function m(g,y){hr(l,g,function(w){return this._invoke(g,y,w)})}u?o?o(l,u,{value:f,enumerable:!h,configurable:!h,writable:!h}):l[u]=f:(m("next",0),m("throw",1),m("return",2))},hr(e,t,n,r)}function yg(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function s(w,b,C,S){var O=b&&b.prototype instanceof u?b:u,x=Object.create(O.prototype);return hr(x,"_invoke",(function(R,I,P){var $,_,L,F=0,N=P||[],z=!1,A={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(X,V){return $=X,_=0,L=e,A.n=V,l}};function B(H,X){for(_=H,L=X,t=0;!z&&F&&!V&&t<N.length;t++){var V,G=N[t],j=A.p,J=G[2];H>3?(V=J===X)&&(L=G[(_=G[4])?5:(_=3,3)],G[4]=G[5]=e):G[0]<=j&&((V=H<2&&j<G[1])?(_=0,A.v=X,A.n=G[1]):j<J&&(V=H<3||G[0]>X||X>J)&&(G[4]=H,G[5]=X,A.n=J,_=0))}if(V||H>1)return l;throw z=!0,X}return function(H,X,V){if(F>1)throw TypeError("Generator is already running");for(z&&X===1&&B(X,V),_=X,L=V;(t=_<2?e:L)||!z;){$||(_?_<3?(_>1&&(A.n=-1),B(_,L)):A.n=L:A.v=L);try{if(F=2,$){if(_||(H="next"),t=$[H]){if(!(t=t.call($,L)))throw TypeError("iterator result is not an object");if(!t.done)return t;L=t.value,_<2&&(_=0)}else _===1&&(t=$.return)&&t.call($),_<2&&(L=TypeError("The iterator does not provide a '"+H+"' method"),_=1);$=e}else if((t=(z=A.n<0)?L:R.call(I,A))!==l)break}catch(G){$=e,_=1,L=G}finally{F=1}}return{value:t,done:z}}})(w,C,S),!0),x}var l={};function u(){}function f(){}function h(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(hr(t={},r,function(){return this}),t),g=h.prototype=u.prototype=Object.create(m);function y(w){return Object.setPrototypeOf?Object.setPrototypeOf(w,h):(w.__proto__=h,hr(w,o,"GeneratorFunction")),w.prototype=Object.create(g),w}return f.prototype=h,hr(g,"constructor",h),hr(h,"constructor",f),f.displayName="GeneratorFunction",hr(h,o,"GeneratorFunction"),hr(g),hr(g,o,"Generator"),hr(g,r,function(){return this}),hr(g,"toString",function(){return"[object Generator]"}),(yg=function(){return{w:s,m:y}})()}function ed(e,t){function n(o,s,l,u){try{var f=e[o](s),h=f.value;return h instanceof GC?t.resolve(h.v).then(function(m){n("next",m,l,u)},function(m){n("throw",m,l,u)}):t.resolve(h).then(function(m){f.value=m,l(f)},function(m){return n("throw",m,l,u)})}catch(m){u(m)}}var r;this.next||(hr(ed.prototype),hr(ed.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),hr(this,"_invoke",function(o,s,l){function u(){return new t(function(f,h){n(o,l,f,h)})}return r=r?r.then(u,u):u()},!0)}function QC(e,t,n,r,o){return new ed(yg().w(e,t,n,r),o||Promise)}function CP(e,t,n,r,o){var s=QC(e,t,n,r,o);return s.next().then(function(l){return l.done?l.value:s.next()})}function wP(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Ty(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ot(e)+" is not iterable")}function vr(){var e=yg(),t=e.m(vr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(l){var u=typeof l=="function"&&l.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function s(l){var u,f;return function(h){u||(u={stop:function(){return f(h.a,2)},catch:function(){return h.v},abrupt:function(g,y){return f(h.a,o[g],y)},delegateYield:function(g,y,w){return u.resultName=y,f(h.d,Ty(g),w)},finish:function(g){return f(h.f,g)}},f=function(g,y,w){h.p=u.prev,h.n=u.next;try{return g(y,w)}finally{u.next=h.n}}),u.resultName&&(u[u.resultName]=h.v,u.resultName=void 0),u.sent=h.v,u.next=h.n;try{return l.call(this,u)}finally{h.p=u.prev,h.n=u.next}}}return(vr=function(){return{wrap:function(f,h,m,g){return e.w(s(f),h,m,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(f,h){return new GC(f,h)},AsyncIterator:ed,async:function(f,h,m,g,y){return(r(h)?QC:CP)(s(f),h,m,g,y)},keys:wP,values:Ty}})()}function Py(e,t,n,r,o,s,l){try{var u=e[s](l),f=u.value}catch(h){return void n(h)}u.done?t(f):Promise.resolve(f).then(r,o)}function fa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function l(f){Py(s,r,o,l,u,"next",f)}function u(f){Py(s,r,o,l,u,"throw",f)}l(void 0)})}}var ru=q({},_3),EP=ru.version,Hh=ru.render,xP=ru.unmountComponentAtNode,Rd;try{var OP=Number((EP||"").split(".")[0]);OP>=18&&(Rd=ru.createRoot)}catch{}function $y(e){var t=ru.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ot(t)==="object"&&(t.usingClientEntryPoint=e)}var td="__rc_react_root__";function RP(e,t){$y(!0);var n=t[td]||Rd(t);$y(!1),n.render(e),t[td]=n}function IP(e,t){Hh?.(e,t)}function TP(e,t){if(Rd){RP(e,t);return}IP(e,t)}function PP(e){return am.apply(this,arguments)}function am(){return am=fa(vr().mark(function e(t){return vr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[td])===null||o===void 0||o.unmount(),delete t[td]}));case 1:case"end":return r.stop()}},e)})),am.apply(this,arguments)}function $P(e){xP(e)}function _P(e){return sm.apply(this,arguments)}function sm(){return sm=fa(vr().mark(function e(t){return vr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Rd===void 0){r.next=2;break}return r.abrupt("return",PP(t));case 2:$P(t);case 3:case"end":return r.stop()}},e)})),sm.apply(this,arguments)}const DP=(e,t)=>(TP(e,t),()=>_P(t));let LP=DP;function YC(e){return LP}const Uh=()=>({height:0,opacity:0}),_y=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},FP=e=>({height:e?e.offsetHeight:0}),Vh=(e,t)=>t?.deadline===!0||t.propertyName==="height",NP=(e=zl)=>({motionName:`${e}-motion-collapse`,onAppearStart:Uh,onEnterStart:Uh,onAppearActive:_y,onEnterActive:_y,onLeaveStart:FP,onLeaveActive:Uh,onAppearEnd:Vh,onEnterEnd:Vh,onLeaveEnd:Vh,motionDeadline:500}),XC=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function ao(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Sg=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),s=o.width,l=o.height;if(s||l)return!0}}return!1}),MP=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},kP=IT("Wave",MP),JC=`${zl}-wave-target`;function AP(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function jP(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(AP))!==null&&t!==void 0?t:null}function Wh(e){return Number.isNaN(e)?0:e}const zP=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,s=d.useRef(null),l=d.useRef(null);d.useEffect(()=>{l.current=o()},[]);const[u,f]=d.useState(null),[h,m]=d.useState([]),[g,y]=d.useState(0),[w,b]=d.useState(0),[C,S]=d.useState(0),[O,x]=d.useState(0),[R,I]=d.useState(!1),P={left:g,top:w,width:C,height:O,borderRadius:h.map(L=>`${L}px`).join(" ")};u&&(P["--wave-color"]=u);function $(){const L=getComputedStyle(n);f(jP(n));const F=L.position==="static",{borderLeftWidth:N,borderTopWidth:z}=L;y(F?n.offsetLeft:Wh(-Number.parseFloat(N))),b(F?n.offsetTop:Wh(-Number.parseFloat(z))),S(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:B,borderBottomLeftRadius:H,borderBottomRightRadius:X}=L;m([A,B,X,H].map(V=>Wh(Number.parseFloat(V))))}if(d.useEffect(()=>{if(n){const L=bn(()=>{$(),I(!0)});let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver($),F.observe(n)),()=>{bn.cancel(L),F?.disconnect()}}},[n]),!R)return null;const _=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(JC);return d.createElement(ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(L,F)=>{var N,z;if(F.deadline||F.propertyName==="opacity"){const A=(N=s.current)===null||N===void 0?void 0:N.parentElement;(z=l.current)===null||z===void 0||z.call(l).then(()=>{A?.remove()})}return!1}},({className:L},F)=>d.createElement("div",{ref:vs(s,F),className:Se(t,L,{"wave-quick":_}),style:P}))},BP=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);const s=YC();let l=null;function u(){return l}l=s(d.createElement(zP,Object.assign({},t,{target:e,registerUnmount:u})),o)},HP=(e,t,n)=>{const{wave:r}=d.useContext(on),[,o,s]=oo(),l=Yn(h=>{const m=e.current;if(r?.disabled||!m)return;const g=m.querySelector(`.${JC}`)||m,{showEffect:y}=r||{};(y||BP)(g,{className:t,token:o,component:n,event:h,hashId:s})}),u=d.useRef(null);return h=>{bn.cancel(u.current),u.current=bn(()=>{l(h)})}},UP=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(on),s=d.useRef(null),l=o("wave"),[,u]=kP(l),f=HP(s,Se(l,u),r);if(He.useEffect(()=>{const m=s.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=y=>{!Sg(y.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")&&!m.className.includes("disabled:")||m.getAttribute("aria-disabled")==="true"||m.className.includes("-leave")||f(y)};return m.addEventListener("click",g,!0),()=>{m.removeEventListener("click",g,!0)}},[n]),!He.isValidElement(t))return t??null;const h=ys(t)?vs(eu(t),s):s;return da(t,{ref:h})},bg=e=>{const t=He.useContext(ls);return He.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},VP=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},WP=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},qP=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ZC=io("Space",e=>{const t=Nn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[WP(t),qP(t),VP(t)]},()=>({}),{resetStyle:!1});var ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Id=d.createContext(null),tw=(e,t)=>{const n=d.useContext(Id),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:l}=n,u=o==="vertical"?"-vertical-":"-";return Se(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:s,[`${e}-compact${u}last-item`]:l,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},KP=e=>{const{children:t}=e;return d.createElement(Id.Provider,{value:null},t)},GP=e=>{const{children:t}=e,n=ew(e,["children"]);return d.createElement(Id.Provider,{value:d.useMemo(()=>n,[n])},t)},QP=e=>{const{getPrefixCls:t,direction:n}=d.useContext(on),{size:r,direction:o,block:s,prefixCls:l,className:u,rootClassName:f,children:h}=e,m=ew(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=bg(R=>r??R),y=t("space-compact",l),[w,b]=ZC(y),C=Se(y,b,{[`${y}-rtl`]:n==="rtl",[`${y}-block`]:s,[`${y}-vertical`]:o==="vertical"},u,f),S=d.useContext(Id),O=Mo(h),x=d.useMemo(()=>O.map((R,I)=>{const P=R?.key||`${y}-item-${I}`;return d.createElement(GP,{key:P,compactSize:g,compactDirection:o,isFirstItem:I===0&&(!S||S?.isFirstItem),isLastItem:I===O.length-1&&(!S||S?.isLastItem)},R)}),[O,S,o,g,y]);return O.length===0?null:w(d.createElement("div",Object.assign({className:C},m),x))};var YP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nw=d.createContext(void 0),XP=e=>{const{getPrefixCls:t,direction:n}=d.useContext(on),{prefixCls:r,size:o,className:s}=e,l=YP(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=oo(),h=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),m=Se(u,{[`${u}-${h}`]:h,[`${u}-rtl`]:n==="rtl"},s,f);return d.createElement(nw.Provider,{value:o},d.createElement("div",Object.assign({},l,{className:m})))},Dy=/^[\u4E00-\u9FA5]{2}$/,lm=Dy.test.bind(Dy);function Q7(e){return e==="danger"?{danger:!0}:{type:e}}function Ly(e){return typeof e=="string"}function qh(e){return e==="text"||e==="link"}function JP(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ly(e.type)&&lm(e.props.children)?da(e,{children:e.props.children.split("").join(n)}):Ly(e)?lm(e)?He.createElement("span",null,e.split("").join(n)):He.createElement("span",null,e):kC(e)?He.createElement("span",null,e):e}function ZP(e,t){let n=!1;const r=[];return He.Children.forEach(e,o=>{const s=typeof o,l=s==="string"||s==="number";if(n&&l){const u=r.length-1,f=r[u];r[u]=`${f}${o}`}else r.push(o);n=l}),He.Children.map(r,o=>JP(o,t))}["default","primary","danger"].concat($e(ia));const um=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,l=Se(`${s}-icon`,n);return He.createElement("span",{ref:t,className:l,style:r},o)}),Fy=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,l=Se(`${n}-loading-icon`,r);return He.createElement(um,{prefixCls:n,className:l,style:o,ref:t},He.createElement(Ul,{className:s}))}),Kh=()=>({width:0,opacity:0,transform:"scale(0)"}),Gh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),e5=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:l}=e,u=!!n;return r?He.createElement(Fy,{prefixCls:t,className:o,style:s}):He.createElement(ca,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Kh,onAppearActive:Gh,onEnterStart:Kh,onEnterActive:Gh,onLeaveStart:Gh,onLeaveActive:Kh},({className:f,style:h},m)=>{const g=Object.assign(Object.assign({},s),h);return He.createElement(Fy,{prefixCls:t,className:Se(o,f),style:g,ref:m})})},Ny=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),t5=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ny(`${t}-primary`,o),Ny(`${t}-danger`,s)]}};var n5=["b"],r5=["v"],Qh=function(t){return Math.round(Number(t||0))},o5=function(t){if(t instanceof Yt)return t;if(t&&ot(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Lt(n,n5);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Vl=(function(e){jo(n,e);var t=Jo(n);function n(r){return $n(this,n),t.call(this,o5(r))}return _n(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),s=Qh(o.s*100),l=Qh(o.b*100),u=Qh(o.h),f=o.a,h="hsb(".concat(u,", ").concat(s,"%, ").concat(l,"%)"),m="hsba(".concat(u,", ").concat(s,"%, ").concat(l,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?h:m}},{key:"toHsb",value:function(){var o=this.toHsv(),s=o.v,l=Lt(o,r5);return q(q({},l),{},{b:s,a:this.a})}}]),n})(Yt),i5=function(t){return t instanceof Vl?t:new Vl(t)};i5("#1677ff");const a5=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",s5=(e,t)=>e?a5(e,t):"";let cm=(function(){function e(t){$n(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:s})=>({color:new e(o),percent:s})),this.metaColor=new Vl(this.colors[0].color.metaColor)):this.metaColor=new Vl(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _n(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return s5(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const s=n.colors[o];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var l5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},u5=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:l5}))},My=d.forwardRef(u5);const c5=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
136
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
137
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),d5=e=>({animationDuration:e,animationFillMode:"both"}),f5=e=>({animationDuration:e,animationFillMode:"both"}),Cg=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
|
|
138
|
-
${s}${e}-enter,
|
|
139
|
-
${s}${e}-appear
|
|
140
|
-
`]:Object.assign(Object.assign({},d5(r)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:Object.assign(Object.assign({},f5(r)),{animationPlayState:"paused"}),[`
|
|
141
|
-
${s}${e}-enter${e}-enter-active,
|
|
142
|
-
${s}${e}-appear${e}-appear-active
|
|
143
|
-
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},h5=new Kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p5=new Kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),m5=new Kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g5=new Kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),v5=new Kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y5=new Kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S5=new Kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b5=new Kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),C5={"move-up":{inKeyframes:S5,outKeyframes:b5},"move-down":{inKeyframes:h5,outKeyframes:p5},"move-left":{inKeyframes:m5,outKeyframes:g5},"move-right":{inKeyframes:v5,outKeyframes:y5}},ky=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=C5[t];return[Cg(r,o,s,e.motionDurationMid),{[`
|
|
144
|
-
${r}-enter,
|
|
145
|
-
${r}-appear
|
|
146
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},rw=new Kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ow=new Kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),iw=new Kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),aw=new Kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w5=new Kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),E5=new Kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),x5=new Kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),O5=new Kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),R5={"slide-up":{inKeyframes:rw,outKeyframes:ow},"slide-down":{inKeyframes:iw,outKeyframes:aw},"slide-left":{inKeyframes:w5,outKeyframes:E5},"slide-right":{inKeyframes:x5,outKeyframes:O5}},nd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=R5[t];return[Cg(r,o,s,e.motionDurationMid),{[`
|
|
147
|
-
${r}-enter,
|
|
148
|
-
${r}-appear
|
|
149
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},I5=new Kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),T5=new Kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ay=new Kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jy=new Kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),P5=new Kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$5=new Kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_5=new Kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),D5=new Kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),L5=new Kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),F5=new Kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),N5=new Kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),M5=new Kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),k5={zoom:{inKeyframes:I5,outKeyframes:T5},"zoom-big":{inKeyframes:Ay,outKeyframes:jy},"zoom-big-fast":{inKeyframes:Ay,outKeyframes:jy},"zoom-left":{inKeyframes:_5,outKeyframes:D5},"zoom-right":{inKeyframes:L5,outKeyframes:F5},"zoom-up":{inKeyframes:P5,outKeyframes:$5},"zoom-down":{inKeyframes:N5,outKeyframes:M5}},sw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=k5[t];return[Cg(r,o,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
150
|
-
${r}-enter,
|
|
151
|
-
${r}-appear
|
|
152
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},A5=e=>e instanceof cm?e:new cm(e),j5=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),l=new Vl(e.toRgbString()).onBackground(t).toHsv();return s<=.5?l.v>.5:n*.299+r*.587+o*.114>192},lw=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Nn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},uw=e=>{var t,n,r,o,s,l;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,h=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,m=(o=e.contentLineHeight)!==null&&o!==void 0?o:Nc(u),g=(s=e.contentLineHeightSM)!==null&&s!==void 0?s:Nc(f),y=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:Nc(h),w=j5(new cm(e.colorBgSolid),"#fff")?"#000":"#fff",b=ia.reduce((C,S)=>Object.assign(Object.assign({},C),{[`${S}ShadowColor`]:`0 ${Ue(e.controlOutlineWidth)} 0 ${Cl(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:w,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:h,contentLineHeight:m,contentLineHeightSM:g,contentLineHeightLG:y,paddingBlock:Math.max((e.controlHeight-u*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-h*y)/2-e.lineWidth,0)})},z5=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:l,iconGap:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ue(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:nu(),"> a":{color:"currentColor"},"&:not(:disabled)":vC(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(h=>`${h} ${s} ${l}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(u).mul(-1).equal()}}}}}},cw=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),B5=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),H5=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Td=(e,t,n,r,o,s,l,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},cw(e,Object.assign({background:t},l),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:s||void 0}})}),U5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},H5(e))}),V5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Pd=(e,t,n,r)=>{const s=r&&["link","text"].includes(r)?V5:U5;return Object.assign(Object.assign({},s(e)),cw(e.componentCls,t,n))},$d=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Pd(e,r,o))}),_d=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Pd(e,r,o))}),Dd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ld=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Pd(e,n,r))}),ko=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Pd(e,r,o,n))}),W5=e=>{const{componentCls:t}=e;return ia.reduce((n,r)=>{const o=e[`${r}6`],s=e[`${r}1`],l=e[`${r}5`],u=e[`${r}2`],f=e[`${r}3`],h=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},$d(e,e.colorTextLightSolid,o,{background:l},{background:h})),_d(e,o,e.colorBgContainer,{color:l,borderColor:l,background:e.colorBgContainer},{color:h,borderColor:h,background:e.colorBgContainer})),Dd(e)),Ld(e,s,{color:o,background:u},{color:o,background:f})),ko(e,o,"link",{color:l},{color:h})),ko(e,o,"text",{color:l,background:s},{color:h,background:f}))})},{})},q5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},$d(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Dd(e)),Ld(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Td(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ko(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),K5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},_d(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Dd(e)),Ld(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),ko(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ko(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Td(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),G5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},$d(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),_d(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Dd(e)),Ld(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),ko(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ko(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Td(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Q5=e=>Object.assign(Object.assign({},ko(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Td(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Y5=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:q5(e),[`${t}-color-primary`]:K5(e),[`${t}-color-dangerous`]:G5(e),[`${t}-color-link`]:Q5(e)},W5(e))},X5=e=>Object.assign(Object.assign(Object.assign(Object.assign({},_d(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ko(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),$d(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ko(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),wg=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:l,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:h}=e;return[{[t]:{fontSize:o,height:r,padding:`${Ue(f)} ${Ue(l)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:h}}}},{[`${n}${n}-circle${t}`]:B5(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},J5=e=>{const t=Nn(e,{fontSize:e.contentFontSize});return wg(t,e.componentCls)},Z5=e=>{const t=Nn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return wg(t,`${e.componentCls}-sm`)},e$=e=>{const t=Nn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return wg(t,`${e.componentCls}-lg`)},t$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},n$=io("Button",e=>{const t=lw(e);return[z5(t),J5(t),Z5(t),e$(t),t$(t),Y5(t),X5(t),t5(t)]},uw,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function r$(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:l}=n,u=l?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(h=>`&:${h} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function o$(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function dw(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},r$(e,r,t,n)),o$(n,r,t))}}function i$(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function a$(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function s$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},i$(e,t,e.componentCls)),a$(e.componentCls,t))}}const l$=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,s=o(r).mul(-1).equal(),l=u=>{const f=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:u?s:0,insetInlineStart:u?0:s,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},l()),l(!0))},u$=TT(["Button","compact"],e=>{const t=lw(e);return[dw(t),s$(t),l$(t)]},uw);var c$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d$(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const f$={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},h$=He.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:s,color:l,variant:u,type:f,danger:h=!1,shape:m,size:g,styles:y,disabled:w,className:b,rootClassName:C,children:S,icon:O,iconPosition:x="start",ghost:R=!1,block:I=!1,htmlType:P="button",classNames:$,style:_={},autoInsertSpace:L,autoFocus:F}=e,N=c$(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),z=f||"default",{button:A}=He.useContext(on),B=m||A?.shape||"default",[H,X]=d.useMemo(()=>{if(l&&u)return[l,u];if(f||h){const rt=f$[z]||[];return h?["danger",rt[1]]:rt}return A?.color&&A?.variant?[A.color,A.variant]:["default","outlined"]},[l,u,f,h,A?.color,A?.variant,z]),G=H==="danger"?"dangerous":H,{getPrefixCls:j,direction:J,autoInsertSpace:K,className:D,style:M,classNames:te,styles:ee}=$i("button"),Y=(n=L??K)!==null&&n!==void 0?n:!0,re=j("btn",s),[le,pe,ce]=n$(re),Te=d.useContext(Bl),fe=w??Te,ue=d.useContext(nw),he=d.useMemo(()=>d$(o),[o]),[be,ve]=d.useState(he.loading),[xe,Ne]=d.useState(!1),Pe=d.useRef(null),_e=la(t,Pe),We=d.Children.count(S)===1&&!O&&!qh(X),De=d.useRef(!0);He.useEffect(()=>(De.current=!1,()=>{De.current=!0}),[]),mn(()=>{let rt=null;he.delay>0?rt=setTimeout(()=>{rt=null,ve(!0)},he.delay):ve(he.loading);function xt(){rt&&(clearTimeout(rt),rt=null)}return xt},[he.delay,he.loading]),d.useEffect(()=>{if(!Pe.current||!Y)return;const rt=Pe.current.textContent||"";We&&lm(rt)?xe||Ne(!0):xe&&Ne(!1)}),d.useEffect(()=>{F&&Pe.current&&Pe.current.focus()},[]);const qe=He.useCallback(rt=>{var xt;if(be||fe){rt.preventDefault();return}(xt=e.onClick)===null||xt===void 0||xt.call(e,("href"in e,rt))},[e.onClick,be,fe]),{compactSize:Ye,compactItemClassnames:Ie}=tw(re,J),dt={large:"lg",small:"sm",middle:void 0},ft=bg(rt=>{var xt,Nt;return(Nt=(xt=g??Ye)!==null&&xt!==void 0?xt:ue)!==null&&Nt!==void 0?Nt:rt}),ht=ft&&(r=dt[ft])!==null&&r!==void 0?r:"",st=be?"loading":O,et=ao(N,["navigate"]),lt=Se(re,pe,ce,{[`${re}-${B}`]:B!=="default"&&B,[`${re}-${z}`]:z,[`${re}-dangerous`]:h,[`${re}-color-${G}`]:G,[`${re}-variant-${X}`]:X,[`${re}-${ht}`]:ht,[`${re}-icon-only`]:!S&&S!==0&&!!st,[`${re}-background-ghost`]:R&&!qh(X),[`${re}-loading`]:be,[`${re}-two-chinese-chars`]:xe&&Y&&!be,[`${re}-block`]:I,[`${re}-rtl`]:J==="rtl",[`${re}-icon-end`]:x==="end"},Ie,b,C,D),ke=Object.assign(Object.assign({},M),_),mt=Se($?.icon,te.icon),St=Object.assign(Object.assign({},y?.icon||{}),ee.icon||{}),nt=O&&!be?He.createElement(um,{prefixCls:re,className:mt,style:St},O):o&&typeof o=="object"&&o.icon?He.createElement(um,{prefixCls:re,className:mt,style:St},o.icon):He.createElement(e5,{existIcon:!!O,prefixCls:re,loading:be,mount:De.current}),tt=S||S===0?ZP(S,We&&Y):null;if(et.href!==void 0)return le(He.createElement("a",Object.assign({},et,{className:Se(lt,{[`${re}-disabled`]:fe}),href:fe?void 0:et.href,style:ke,onClick:qe,ref:_e,tabIndex:fe?-1:0,"aria-disabled":fe}),nt,tt));let Et=He.createElement("button",Object.assign({},N,{type:P,className:lt,style:ke,onClick:qe,disabled:fe,ref:_e}),nt,tt,Ie&&He.createElement(u$,{prefixCls:re}));return qh(X)||(Et=He.createElement(UP,{component:"Button",disabled:be},Et)),le(Et)}),es=h$;es.Group=XP;es.__ANT_BUTTON=!0;var fw=d.createContext(null),zy=[];function p$(e,t){var n=d.useState(function(){if(!Nr())return null;var b=document.createElement("div");return b}),r=ae(n,1),o=r[0],s=d.useRef(!1),l=d.useContext(fw),u=d.useState(zy),f=ae(u,2),h=f[0],m=f[1],g=l||(s.current?void 0:function(b){m(function(C){var S=[b].concat($e(C));return S})});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function w(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),s.current=!1}return mn(function(){return e?l?l(y):y():w(),w},[e]),mn(function(){h.length&&(h.forEach(function(b){return b()}),m(zy))},[h]),[o,g]}var Yh;function hw(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,s;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(u.width,10),h=parseInt(u.height,10);try{var m=f?"width: ".concat(u.width,";"):"",g=h?"height: ".concat(u.height,";"):"";Qo(`
|
|
153
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
154
|
-
`).concat(m,`
|
|
155
|
-
`).concat(g,`
|
|
156
|
-
}`),t)}catch(b){console.error(b),o=f,s=h}}document.body.appendChild(n);var y=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,w=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ml(t),{width:y,height:w}}function Y7(e){return typeof document>"u"?0:(Yh===void 0&&(Yh=hw()),Yh.width)}function m$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:hw(e)}function g$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var v$="rc-util-locker-".concat(Date.now()),By=0;function y$(e){var t=!!e,n=d.useState(function(){return By+=1,"".concat(v$,"_").concat(By)}),r=ae(n,1),o=r[0];mn(function(){if(t){var s=m$(document.body).width,l=g$();Qo(`
|
|
157
|
-
html body {
|
|
158
|
-
overflow-y: hidden;
|
|
159
|
-
`.concat(l?"width: calc(100% - ".concat(s,"px);"):"",`
|
|
160
|
-
}`),o)}else Ml(o);return function(){Ml(o)}},[t,o])}var S$=!1;function b$(e){return S$}var Hy=function(t){return t===!1?!1:!Nr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},pw=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var s=e.autoDestroy,l=s===void 0?!0:s,u=e.children,f=d.useState(n),h=ae(f,2),m=h[0],g=h[1],y=m||n;d.useEffect(function(){(l||n)&&g(n)},[n,l]);var w=d.useState(function(){return Hy(o)}),b=ae(w,2),C=b[0],S=b[1];d.useEffect(function(){var z=Hy(o);S(z??null)});var O=p$(y&&!C),x=ae(O,2),R=x[0],I=x[1],P=C??R;y$(r&&n&&Nr()&&(P===R||P===document.body));var $=null;if(u&&ys(u)&&t){var _=u;$=_.ref}var L=la($,t);if(!y||!Nr()||C===void 0)return null;var F=P===!1||b$(),N=u;return t&&(N=d.cloneElement(u,{ref:L})),d.createElement(fw.Provider,{value:I},F?N:Ii.createPortal(N,P))});function C$(){var e=q({},Xl);return e.useId}var Uy=0,Vy=C$();const mw=Vy?(function(t){var n=Vy();return t||n}):(function(t){var n=d.useState("ssr-id"),r=ae(n,2),o=r[0],s=r[1];return d.useEffect(function(){var l=Uy;Uy+=1,s("rc_unique_".concat(l))},[]),t||o});var Xi="RC_FORM_INTERNAL_HOOKS",Zt=function(){gr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cs=d.createContext({getFieldValue:Zt,getFieldsValue:Zt,getFieldError:Zt,getFieldWarning:Zt,getFieldsError:Zt,isFieldsTouched:Zt,isFieldTouched:Zt,isFieldValidating:Zt,isFieldsValidating:Zt,resetFields:Zt,setFields:Zt,setFieldValue:Zt,setFieldsValue:Zt,validateFields:Zt,submit:Zt,getInternalHooks:function(){return Zt(),{dispatch:Zt,initEntityValue:Zt,registerField:Zt,useSubscribe:Zt,setInitialValues:Zt,destroyForm:Zt,setCallbacks:Zt,registerWatch:Zt,getFields:Zt,setValidateMessages:Zt,setPreserve:Zt,getInitialValue:Zt}}}),rd=d.createContext(null);function dm(e){return e==null?[]:Array.isArray(e)?e:[e]}function w$(e){return e&&!!e._init}function fm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var hm=fm();function E$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function x$(e,t,n){if(yd())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Fl(o,n.prototype),o}function pm(e){var t=typeof Map=="function"?new Map:void 0;return pm=function(r){if(r===null||!E$(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return x$(r,arguments,ra(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Fl(o,r)},pm(e)}var O$=/%[sdj%]/g,R$=function(){};function mm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(O$,function(u){if(u==="%%")return"%";if(o>=s)return u;switch(u){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return u}});return l}return e}function I$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Bn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||I$(t)&&typeof e=="string"&&!e)}function T$(e,t,n){var r=[],o=0,s=e.length;function l(u){r.push.apply(r,$e(u||[])),o++,o===s&&n(r)}e.forEach(function(u){t(u,l)})}function Wy(e,t,n){var r=0,o=e.length;function s(l){if(l&&l.length){n(l);return}var u=r;r=r+1,u<o?t(e[u],s):n([])}s([])}function P$(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,$e(e[n]||[]))}),t}var qy=(function(e){jo(n,e);var t=Jo(n);function n(r,o){var s;return $n(this,n),s=t.call(this,"Async Validation Error"),U($t(s),"errors",void 0),U($t(s),"fields",void 0),s.errors=r,s.fields=o,s}return _n(n)})(pm(Error));function $$(e,t,n,r,o){if(t.first){var s=new Promise(function(y,w){var b=function(O){return r(O),O.length?w(new qy(O,mm(O))):y(o)},C=P$(e);Wy(C,n,b)});return s.catch(function(y){return y}),s}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,h=0,m=[],g=new Promise(function(y,w){var b=function(S){if(m.push.apply(m,S),h++,h===f)return r(m),m.length?w(new qy(m,mm(m))):y(o)};u.length||(r(m),y(o)),u.forEach(function(C){var S=e[C];l.indexOf(C)!==-1?Wy(S,n,b):T$(S,n,b)})});return g.catch(function(y){return y}),g}function _$(e){return!!(e&&e.message!==void 0)}function D$(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Ky(e,t){return function(n){var r;return e.fullFields?r=D$(t,e.fullFields):r=t[n.field||e.fullField],_$(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Gy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ot(r)==="object"&&ot(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var Aa="enum",L$=function(t,n,r,o,s){t[Aa]=Array.isArray(t[Aa])?t[Aa]:[],t[Aa].indexOf(n)===-1&&o.push(Hr(s.messages[Aa],t.fullField,t[Aa].join(", ")))},F$=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Hr(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||o.push(Hr(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},N$=function(t,n,r,o,s){var l=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,g=null,y=typeof n=="number",w=typeof n=="string",b=Array.isArray(n);if(y?g="number":w?g="string":b&&(g="array"),!g)return!1;b&&(m=n.length),w&&(m=n.replace(h,"_").length),l?m!==t.len&&o.push(Hr(s.messages[g].len,t.fullField,t.len)):u&&!f&&m<t.min?o.push(Hr(s.messages[g].min,t.fullField,t.min)):f&&!u&&m>t.max?o.push(Hr(s.messages[g].max,t.fullField,t.max)):u&&f&&(m<t.min||m>t.max)&&o.push(Hr(s.messages[g].range,t.fullField,t.min,t.max))},gw=function(t,n,r,o,s,l){t.required&&(!r.hasOwnProperty(t.field)||Bn(n,l||t.type))&&o.push(Hr(s.messages.required,t.fullField))},wc;const M$=(function(){if(wc)return wc;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",l="(?:".concat(o.join("|"),")").concat(s),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),f=new RegExp("^".concat(n,"$")),h=new RegExp("^".concat(l,"$")),m=function($){return $&&$.exact?u:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(l).concat(t($),")"),"g")};m.v4=function(P){return P&&P.exact?f:new RegExp("".concat(t(P)).concat(n).concat(t(P)),"g")},m.v6=function(P){return P&&P.exact?h:new RegExp("".concat(t(P)).concat(l).concat(t(P)),"g")};var g="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",w=m.v4().source,b=m.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",O="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",R='(?:[/?#][^\\s"]*)?',I="(?:".concat(g,"|www\\.)").concat(y,"(?:localhost|").concat(w,"|").concat(b,"|").concat(C).concat(S).concat(O,")").concat(x).concat(R);return wc=new RegExp("(?:^".concat(I,"$)"),"i"),wc});var Qy={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},wl={integer:function(t){return wl.number(t)&&parseInt(t,10)===t},float:function(t){return wl.number(t)&&!wl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ot(t)==="object"&&!wl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Qy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(M$())},hex:function(t){return typeof t=="string"&&!!t.match(Qy.hex)}},k$=function(t,n,r,o,s){if(t.required&&n===void 0){gw(t,n,r,o,s);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;l.indexOf(u)>-1?wl[u](n)||o.push(Hr(s.messages.types[u],t.fullField,t.type)):u&&ot(n)!==t.type&&o.push(Hr(s.messages.types[u],t.fullField,t.type))},A$=function(t,n,r,o,s){(/^\s+$/.test(n)||n==="")&&o.push(Hr(s.messages.whitespace,t.fullField))};const At={required:gw,whitespace:A$,type:k$,range:N$,enum:L$,pattern:F$};var j$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s)}r(l)},z$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();At.required(t,n,o,l,s,"array"),n!=null&&(At.type(t,n,o,l,s),At.range(t,n,o,l,s))}r(l)},B$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&At.type(t,n,o,l,s)}r(l)},H$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n,"date")&&!t.required)return r();if(At.required(t,n,o,l,s),!Bn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),At.type(t,f,o,l,s),f&&At.range(t,f.getTime(),o,l,s)}}r(l)},U$="enum",V$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&At[U$](t,n,o,l,s)}r(l)},W$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&(At.type(t,n,o,l,s),At.range(t,n,o,l,s))}r(l)},q$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&(At.type(t,n,o,l,s),At.range(t,n,o,l,s))}r(l)},K$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&At.type(t,n,o,l,s)}r(l)},G$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&(At.type(t,n,o,l,s),At.range(t,n,o,l,s))}r(l)},Q$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),n!==void 0&&At.type(t,n,o,l,s)}r(l)},Y$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n,"string")&&!t.required)return r();At.required(t,n,o,l,s),Bn(n,"string")||At.pattern(t,n,o,l,s)}r(l)},X$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n)&&!t.required)return r();At.required(t,n,o,l,s),Bn(n)||At.type(t,n,o,l,s)}r(l)},J$=function(t,n,r,o,s){var l=[],u=Array.isArray(n)?"array":ot(n);At.required(t,n,o,l,s,u),r(l)},Z$=function(t,n,r,o,s){var l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Bn(n,"string")&&!t.required)return r();At.required(t,n,o,l,s,"string"),Bn(n,"string")||(At.type(t,n,o,l,s),At.range(t,n,o,l,s),At.pattern(t,n,o,l,s),t.whitespace===!0&&At.whitespace(t,n,o,l,s))}r(l)},Xh=function(t,n,r,o,s){var l=t.type,u=[],f=t.required||!t.required&&o.hasOwnProperty(t.field);if(f){if(Bn(n,l)&&!t.required)return r();At.required(t,n,o,u,s,l),Bn(n,l)||At.type(t,n,o,u,s)}r(u)};const Rl={string:Z$,method:K$,number:G$,boolean:B$,regexp:X$,integer:q$,float:W$,array:z$,object:Q$,enum:V$,pattern:Y$,date:H$,url:Xh,hex:Xh,email:Xh,required:J$,any:j$};var ou=(function(){function e(t){$n(this,e),U(this,"rules",null),U(this,"_messages",hm),this.define(t)}return _n(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ot(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var s=n[o];r.rules[o]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=Gy(fm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,u=o,f=s;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,l),Promise.resolve(l);function h(b){var C=[],S={};function O(R){if(Array.isArray(R)){var I;C=(I=C).concat.apply(I,$e(R))}else C.push(R)}for(var x=0;x<b.length;x++)O(b[x]);C.length?(S=mm(C),f(C,S)):f(null,l)}if(u.messages){var m=this.messages();m===hm&&(m=fm()),Gy(m,u.messages),u.messages=m}else u.messages=this.messages();var g={},y=u.keys||Object.keys(this.rules);y.forEach(function(b){var C=r.rules[b],S=l[b];C.forEach(function(O){var x=O;typeof x.transform=="function"&&(l===n&&(l=q({},l)),S=l[b]=x.transform(S),S!=null&&(x.type=x.type||(Array.isArray(S)?"array":ot(S)))),typeof x=="function"?x={validator:x}:x=q({},x),x.validator=r.getValidationMethod(x),x.validator&&(x.field=b,x.fullField=x.fullField||b,x.type=r.getType(x),g[b]=g[b]||[],g[b].push({rule:x,value:S,source:l,field:b}))})});var w={};return $$(g,u,function(b,C){var S=b.rule,O=(S.type==="object"||S.type==="array")&&(ot(S.fields)==="object"||ot(S.defaultField)==="object");O=O&&(S.required||!S.required&&b.value),S.field=b.field;function x(_,L){return q(q({},L),{},{fullField:"".concat(S.fullField,".").concat(_),fullFields:S.fullFields?[].concat($e(S.fullFields),[_]):[_]})}function R(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=Array.isArray(_)?_:[_];!u.suppressWarning&&L.length&&e.warning("async-validator:",L),L.length&&S.message!==void 0&&(L=[].concat(S.message));var F=L.map(Ky(S,l));if(u.first&&F.length)return w[S.field]=1,C(F);if(!O)C(F);else{if(S.required&&!b.value)return S.message!==void 0?F=[].concat(S.message).map(Ky(S,l)):u.error&&(F=[u.error(S,Hr(u.messages.required,S.field))]),C(F);var N={};S.defaultField&&Object.keys(b.value).map(function(B){N[B]=S.defaultField}),N=q(q({},N),b.rule.fields);var z={};Object.keys(N).forEach(function(B){var H=N[B],X=Array.isArray(H)?H:[H];z[B]=X.map(x.bind(null,B))});var A=new e(z);A.messages(u.messages),b.rule.options&&(b.rule.options.messages=u.messages,b.rule.options.error=u.error),A.validate(b.value,b.rule.options||u,function(B){var H=[];F&&F.length&&H.push.apply(H,$e(F)),B&&B.length&&H.push.apply(H,$e(B)),C(H.length?H:null)})}}var I;if(S.asyncValidator)I=S.asyncValidator(S,b.value,R,b.source,u);else if(S.validator){try{I=S.validator(S,b.value,R,b.source,u)}catch(_){var P,$;(P=($=console).error)===null||P===void 0||P.call($,_),u.suppressValidatorError||setTimeout(function(){throw _},0),R(_.message)}I===!0?R():I===!1?R(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):I instanceof Array?R(I):I instanceof Error&&R(I.message)}I&&I.then&&I.then(function(){return R()},function(_){return R(_)})},function(b){h(b)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Rl.hasOwnProperty(n.type))throw new Error(Hr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Rl.required:Rl[this.getType(n)]||void 0}}]),e})();U(ou,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Rl[t]=n});U(ou,"warning",R$);U(ou,"messages",hm);U(ou,"validators",Rl);var Br="'${name}' is not a valid ${type}",vw={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Br,method:Br,array:Br,object:Br,number:Br,date:Br,boolean:Br,integer:Br,float:Br,regexp:Br,email:Br,url:Br,hex:Br},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Yy=ou;function e8(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Xy="CODE_LOGIC_ERROR";function gm(e,t,n,r,o){return vm.apply(this,arguments)}function vm(){return vm=fa(vr().mark(function e(t,n,r,o,s){var l,u,f,h,m,g,y,w,b;return vr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return l=q({},r),delete l.ruleIndex,Yy.warning=function(){},l.validator&&(u=l.validator,l.validator=function(){try{return u.apply(void 0,arguments)}catch(O){return console.error(O),Promise.reject(Xy)}}),f=null,l&&l.type==="array"&&l.defaultField&&(f=l.defaultField,delete l.defaultField),h=new Yy(U({},t,[l])),m=Qa(vw,o.validateMessages),h.messages(m),g=[],S.prev=10,S.next=13,Promise.resolve(h.validate(U({},t,n),q({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(g=S.t0.errors.map(function(O,x){var R=O.message,I=R===Xy?m.default:R;return d.isValidElement(I)?d.cloneElement(I,{key:"error_".concat(x)}):I}));case 18:if(!(!g.length&&f&&Array.isArray(n)&&n.length>0)){S.next=23;break}return S.next=21,Promise.all(n.map(function(O,x){return gm("".concat(t,".").concat(x),O,f,o,s)}));case 21:return y=S.sent,S.abrupt("return",y.reduce(function(O,x){return[].concat($e(O),$e(x))},[]));case 23:return w=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},s),b=g.map(function(O){return typeof O=="string"?e8(O,w):O}),S.abrupt("return",b);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),vm.apply(this,arguments)}function t8(e,t,n,r,o,s){var l=e.join("."),u=n.map(function(m,g){var y=m.validator,w=q(q({},m),{},{ruleIndex:g});return y&&(w.validator=function(b,C,S){var O=!1,x=function(){for(var P=arguments.length,$=new Array(P),_=0;_<P;_++)$[_]=arguments[_];Promise.resolve().then(function(){gr(!O,"Your validator function has already return a promise. `callback` will be ignored."),O||S.apply(void 0,$)})},R=y(b,C,x);O=R&&typeof R.then=="function"&&typeof R.catch=="function",gr(O,"`callback` is deprecated. Please return a promise instead."),O&&R.then(function(){S()}).catch(function(I){S(I||" ")})}),w}).sort(function(m,g){var y=m.warningOnly,w=m.ruleIndex,b=g.warningOnly,C=g.ruleIndex;return!!y==!!b?w-C:y?1:-1}),f;if(o===!0)f=new Promise((function(){var m=fa(vr().mark(function g(y,w){var b,C,S;return vr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:b=0;case 1:if(!(b<u.length)){x.next=12;break}return C=u[b],x.next=5,gm(l,t,C,r,s);case 5:if(S=x.sent,!S.length){x.next=9;break}return w([{errors:S,rule:C}]),x.abrupt("return");case 9:b+=1,x.next=1;break;case 12:y([]);case 13:case"end":return x.stop()}},g)}));return function(g,y){return m.apply(this,arguments)}})());else{var h=u.map(function(m){return gm(l,t,m,r,s).then(function(g){return{errors:g,rule:m}})});f=(o?r8(h):n8(h)).then(function(m){return Promise.reject(m)})}return f.catch(function(m){return m}),f}function n8(e){return ym.apply(this,arguments)}function ym(){return ym=fa(vr().mark(function e(t){return vr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var s,l=(s=[]).concat.apply(s,$e(o));return l}));case 1:case"end":return r.stop()}},e)})),ym.apply(this,arguments)}function r8(e){return Sm.apply(this,arguments)}function Sm(){return Sm=fa(vr().mark(function e(t){var n;return vr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(s){t.forEach(function(l){l.then(function(u){u.errors.length&&s([u]),n+=1,n===t.length&&s([])})})}));case 2:case"end":return o.stop()}},e)})),Sm.apply(this,arguments)}function In(e){return dm(e)}function Jy(e,t){var n={};return t.forEach(function(r){var o=Lo(e,r);n=So(n,r,o)}),n}function ts(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return yw(t,r,n)})}function yw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function o8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ot(e)!=="object"||ot(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return $e(o).every(function(s){var l=e[s],u=t[s];return typeof l=="function"&&typeof u=="function"?!0:l===u})}function i8(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ot(t.target)==="object"&&e in t.target?t.target[e]:t}function Zy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],s=t-n;return s>0?[].concat($e(e.slice(0,n)),[o],$e(e.slice(n,t)),$e(e.slice(t+1,r))):s<0?[].concat($e(e.slice(0,t)),$e(e.slice(t+1,n+1)),[o],$e(e.slice(n+1,r))):e}var a8=["name"],Jr=[];function Jh(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}var Eg=(function(e){jo(n,e);var t=Jo(n);function n(r){var o;if($n(this,n),o=t.call(this,r),U($t(o),"state",{resetCount:0}),U($t(o),"cancelRegisterFunc",null),U($t(o),"mounted",!1),U($t(o),"touched",!1),U($t(o),"dirty",!1),U($t(o),"validatePromise",void 0),U($t(o),"prevValidating",void 0),U($t(o),"errors",Jr),U($t(o),"warnings",Jr),U($t(o),"cancelRegister",function(){var f=o.props,h=f.preserve,m=f.isListField,g=f.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(m,h,In(g)),o.cancelRegisterFunc=null}),U($t(o),"getNamePath",function(){var f=o.props,h=f.name,m=f.fieldContext,g=m.prefixName,y=g===void 0?[]:g;return h!==void 0?[].concat($e(y),$e(h)):[]}),U($t(o),"getRules",function(){var f=o.props,h=f.rules,m=h===void 0?[]:h,g=f.fieldContext;return m.map(function(y){return typeof y=="function"?y(g):y})}),U($t(o),"refresh",function(){o.mounted&&o.setState(function(f){var h=f.resetCount;return{resetCount:h+1}})}),U($t(o),"metaCache",null),U($t(o),"triggerMetaEvent",function(f){var h=o.props.onMetaChange;if(h){var m=q(q({},o.getMeta()),{},{destroy:f});kl(o.metaCache,m)||h(m),o.metaCache=m}else o.metaCache=null}),U($t(o),"onStoreChange",function(f,h,m){var g=o.props,y=g.shouldUpdate,w=g.dependencies,b=w===void 0?[]:w,C=g.onReset,S=m.store,O=o.getNamePath(),x=o.getValue(f),R=o.getValue(S),I=h&&ts(h,O);switch(m.type==="valueUpdate"&&m.source==="external"&&!kl(x,R)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent()),m.type){case"reset":if(!h||I){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent(),C?.(),o.refresh();return}break;case"remove":{if(y&&Jh(y,f,S,x,R,m)){o.reRender();return}break}case"setField":{var P=m.data;if(I){"touched"in P&&(o.touched=P.touched),"validating"in P&&!("originRCField"in P)&&(o.validatePromise=P.validating?Promise.resolve([]):null),"errors"in P&&(o.errors=P.errors||Jr),"warnings"in P&&(o.warnings=P.warnings||Jr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in P&&ts(h,O,!0)){o.reRender();return}if(y&&!O.length&&Jh(y,f,S,x,R,m)){o.reRender();return}break}case"dependenciesUpdate":{var $=b.map(In);if($.some(function(_){return ts(m.relatedFields,_)})){o.reRender();return}break}default:if(I||(!b.length||O.length||y)&&Jh(y,f,S,x,R,m)){o.reRender();return}break}y===!0&&o.reRender()}),U($t(o),"validateRules",function(f){var h=o.getNamePath(),m=o.getValue(),g=f||{},y=g.triggerName,w=g.validateOnly,b=w===void 0?!1:w,C=Promise.resolve().then(fa(vr().mark(function S(){var O,x,R,I,P,$,_;return vr().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(o.mounted){F.next=2;break}return F.abrupt("return",[]);case 2:if(O=o.props,x=O.validateFirst,R=x===void 0?!1:x,I=O.messageVariables,P=O.validateDebounce,$=o.getRules(),y&&($=$.filter(function(N){return N}).filter(function(N){var z=N.validateTrigger;if(!z)return!0;var A=dm(z);return A.includes(y)})),!(P&&y)){F.next=10;break}return F.next=8,new Promise(function(N){setTimeout(N,P)});case 8:if(o.validatePromise===C){F.next=10;break}return F.abrupt("return",[]);case 10:return _=t8(h,m,$,f,R,I),_.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jr;if(o.validatePromise===C){var z;o.validatePromise=null;var A=[],B=[];(z=N.forEach)===null||z===void 0||z.call(N,function(H){var X=H.rule.warningOnly,V=H.errors,G=V===void 0?Jr:V;X?B.push.apply(B,$e(G)):A.push.apply(A,$e(G))}),o.errors=A,o.warnings=B,o.triggerMetaEvent(),o.reRender()}}),F.abrupt("return",_);case 13:case"end":return F.stop()}},S)})));return b||(o.validatePromise=C,o.dirty=!0,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent(),o.reRender()),C}),U($t(o),"isFieldValidating",function(){return!!o.validatePromise}),U($t(o),"isFieldTouched",function(){return o.touched}),U($t(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var f=o.props.fieldContext,h=f.getInternalHooks(Xi),m=h.getInitialValue;return m(o.getNamePath())!==void 0}),U($t(o),"getErrors",function(){return o.errors}),U($t(o),"getWarnings",function(){return o.warnings}),U($t(o),"isListField",function(){return o.props.isListField}),U($t(o),"isList",function(){return o.props.isList}),U($t(o),"isPreserve",function(){return o.props.preserve}),U($t(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var f={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return f}),U($t(o),"getOnlyChild",function(f){if(typeof f=="function"){var h=o.getMeta();return q(q({},o.getOnlyChild(f(o.getControlled(),h,o.props.fieldContext))),{},{isFunction:!0})}var m=Mo(f);return m.length!==1||!d.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),U($t(o),"getValue",function(f){var h=o.props.fieldContext.getFieldsValue,m=o.getNamePath();return Lo(f||h(!0),m)}),U($t(o),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=o.props,m=h.name,g=h.trigger,y=h.validateTrigger,w=h.getValueFromEvent,b=h.normalize,C=h.valuePropName,S=h.getValueProps,O=h.fieldContext,x=y!==void 0?y:O.validateTrigger,R=o.getNamePath(),I=O.getInternalHooks,P=O.getFieldsValue,$=I(Xi),_=$.dispatch,L=o.getValue(),F=S||function(H){return U({},C,H)},N=f[g],z=m!==void 0?F(L):{},A=q(q({},f),z);A[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var H,X=arguments.length,V=new Array(X),G=0;G<X;G++)V[G]=arguments[G];w?H=w.apply(void 0,V):H=i8.apply(void 0,[C].concat(V)),b&&(H=b(H,L,P(!0))),H!==L&&_({type:"updateValue",namePath:R,value:H}),N&&N.apply(void 0,V)};var B=dm(x||[]);return B.forEach(function(H){var X=A[H];A[H]=function(){X&&X.apply(void 0,arguments);var V=o.props.rules;V&&V.length&&_({type:"validateField",namePath:R,triggerName:H})}}),A}),r.fieldContext){var s=r.fieldContext.getInternalHooks,l=s(Xi),u=l.initEntityValue;u($t(o))}return o}return _n(n,[{key:"componentDidMount",value:function(){var o=this.props,s=o.shouldUpdate,l=o.fieldContext;if(this.mounted=!0,l){var u=l.getInternalHooks,f=u(Xi),h=f.registerField;this.cancelRegisterFunc=h(this)}s===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,s=this.props.children,l=this.getOnlyChild(s),u=l.child,f=l.isFunction,h;return f?h=u:d.isValidElement(u)?h=d.cloneElement(u,this.getControlled(u.props)):(gr(!u,"`children` of Field is not validate ReactElement."),h=u),d.createElement(d.Fragment,{key:o},h)}}]),n})(d.Component);U(Eg,"contextType",cs);U(Eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Sw(e){var t,n=e.name,r=Lt(e,a8),o=d.useContext(cs),s=d.useContext(rd),l=n!==void 0?In(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!s,f="keep";return u||(f="_".concat((l||[]).join("_"))),d.createElement(Eg,Fe({key:f,name:l,isListField:u},r,{fieldContext:o}))}function s8(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,s=e.validateTrigger,l=e.isListField,u=d.useContext(cs),f=d.useContext(rd),h=d.useRef({keys:[],id:0}),m=h.current,g=d.useMemo(function(){var C=In(u.prefixName)||[];return[].concat($e(C),$e(In(t)))},[u.prefixName,t]),y=d.useMemo(function(){return q(q({},u),{},{prefixName:g})},[u,g]),w=d.useMemo(function(){return{getKey:function(S){var O=g.length,x=S[O];return[m.keys[x],S.slice(O+1)]}}},[g]);if(typeof r!="function")return gr(!1,"Form.List only accepts function as children."),null;var b=function(S,O,x){var R=x.source;return R==="internal"?!1:S!==O};return d.createElement(rd.Provider,{value:w},d.createElement(cs.Provider,{value:y},d.createElement(Sw,{name:[],shouldUpdate:b,rules:o,validateTrigger:s,initialValue:n,isList:!0,isListField:l??!!f},function(C,S){var O=C.value,x=O===void 0?[]:O,R=C.onChange,I=u.getFieldValue,P=function(){var F=I(g||[]);return F||[]},$={add:function(F,N){var z=P();N>=0&&N<=z.length?(m.keys=[].concat($e(m.keys.slice(0,N)),[m.id],$e(m.keys.slice(N))),R([].concat($e(z.slice(0,N)),[F],$e(z.slice(N))))):(m.keys=[].concat($e(m.keys),[m.id]),R([].concat($e(z),[F]))),m.id+=1},remove:function(F){var N=P(),z=new Set(Array.isArray(F)?F:[F]);z.size<=0||(m.keys=m.keys.filter(function(A,B){return!z.has(B)}),R(N.filter(function(A,B){return!z.has(B)})))},move:function(F,N){if(F!==N){var z=P();F<0||F>=z.length||N<0||N>=z.length||(m.keys=Zy(m.keys,F,N),R(Zy(z,F,N)))}}},_=x||[];return Array.isArray(_)||(_=[]),r(_.map(function(L,F){var N=m.keys[F];return N===void 0&&(m.keys[F]=m.id,N=m.keys[F],m.id+=1),{name:F,key:N,isListField:!0}}),$,S)})))}function l8(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,s){e.forEach(function(l,u){l.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[u]=f,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}var bw="__@field_split__";function Zh(e){return e.map(function(t){return"".concat(ot(t),":").concat(t)}).join(bw)}var ja=(function(){function e(){$n(this,e),U(this,"kvs",new Map)}return _n(e,[{key:"set",value:function(n,r){this.kvs.set(Zh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Zh(n))}},{key:"update",value:function(n,r){var o=this.get(n),s=r(o);s?this.set(n,s):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Zh(n))}},{key:"map",value:function(n){return $e(this.kvs.entries()).map(function(r){var o=ae(r,2),s=o[0],l=o[1],u=s.split(bw);return n({key:u.map(function(f){var h=f.match(/^([^:]*):(.*)$/),m=ae(h,3),g=m[1],y=m[2];return g==="number"?Number(y):y}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,s=r.value;return n[o.join(".")]=s,null}),n}}]),e})(),u8=["name"],c8=_n(function e(t){var n=this;$n(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),U(this,"getInternalHooks",function(r){return r===Xi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(gr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var s,l=Qa(r,n.store);(s=n.prevWithoutPreserves)===null||s===void 0||s.map(function(u){var f=u.key;l=So(l,f,Lo(r,f))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),U(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ja;n.getFieldEntities(!0).forEach(function(s){n.isMergedPreserve(s.isPreserve())||o.set(s.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),U(this,"getInitialValue",function(r){var o=Lo(n.initialValues,r);return r.length?Qa(o):o}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),s=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(o,s,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){}),U(this,"updateStore",function(r){n.store=r}),U(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ja;return n.getFieldEntities(r).forEach(function(s){var l=s.getNamePath();o.set(l,s)}),o}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(s){var l=In(s);return o.get(l)||{INVALIDATE_NAME_PATH:In(s)}})}),U(this,"getFieldsValue",function(r,o){n.warningUnhooked();var s,l,u;if(r===!0||Array.isArray(r)?(s=r,l=o):r&&ot(r)==="object"&&(u=r.strict,l=r.filter),s===!0&&!l)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(s)?s:null),h=[];return f.forEach(function(m){var g,y,w="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(u){var b,C;if((b=(C=m).isList)!==null&&b!==void 0&&b.call(C))return}else if(!s&&(g=(y=m).isListField)!==null&&g!==void 0&&g.call(y))return;if(!l)h.push(w);else{var S="getMeta"in m?m.getMeta():null;l(S)&&h.push(w)}}),Jy(n.store,h.map(In))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var o=In(r);return Lo(n.store,o)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(s,l){return s&&!("INVALIDATE_NAME_PATH"in s)?{name:s.getNamePath(),errors:s.getErrors(),warnings:s.getWarnings()}:{name:In(r[l]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var o=In(r),s=n.getFieldsError([o])[0];return s.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var o=In(r),s=n.getFieldsError([o])[0];return s.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var l=o[0],u=o[1],f,h=!1;o.length===0?f=null:o.length===1?Array.isArray(l)?(f=l.map(In),h=!1):(f=null,h=l):(f=l.map(In),h=u);var m=n.getFieldEntities(!0),g=function(S){return S.isFieldTouched()};if(!f)return h?m.every(function(C){return g(C)||C.isList()}):m.some(g);var y=new ja;f.forEach(function(C){y.set(C,[])}),m.forEach(function(C){var S=C.getNamePath();f.forEach(function(O){O.every(function(x,R){return S[R]===x})&&y.update(O,function(x){return[].concat($e(x),[C])})})});var w=function(S){return S.some(g)},b=y.map(function(C){var S=C.value;return S});return h?b.every(w):b.some(w)}),U(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),U(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(l){return l.isFieldValidating()});var s=r.map(In);return o.some(function(l){var u=l.getNamePath();return ts(s,u)&&l.isFieldValidating()})}),U(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),U(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ja,s=n.getFieldEntities(!0);s.forEach(function(f){var h=f.props.initialValue,m=f.getNamePath();if(h!==void 0){var g=o.get(m)||new Set;g.add({entity:f,value:h}),o.set(m,g)}});var l=function(h){h.forEach(function(m){var g=m.props.initialValue;if(g!==void 0){var y=m.getNamePath(),w=n.getInitialValue(y);if(w!==void 0)gr(!1,"Form already set 'initialValues' with path '".concat(y.join("."),"'. Field can not overwrite it."));else{var b=o.get(y);if(b&&b.size>1)gr(!1,"Multiple Field with path '".concat(y.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var C=n.getFieldValue(y),S=m.isListField();!S&&(!r.skipExist||C===void 0)&&n.updateStore(So(n.store,y,$e(b)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(f){var h=o.get(f);if(h){var m;(m=u).push.apply(m,$e($e(h).map(function(g){return g.entity})))}})):u=s,l(u)}),U(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Qa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var s=r.map(In);s.forEach(function(l){var u=n.getInitialValue(l);n.updateStore(So(n.store,l,u))}),n.resetWithFieldInitialValue({namePathList:s}),n.notifyObservers(o,s,{type:"reset"}),n.notifyWatch(s)}),U(this,"setFields",function(r){n.warningUnhooked();var o=n.store,s=[];r.forEach(function(l){var u=l.name,f=Lt(l,u8),h=In(u);s.push(h),"value"in f&&n.updateStore(So(n.store,h,f.value)),n.notifyObservers(o,[h],{type:"setField",data:l})}),n.notifyWatch(s)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(s){var l=s.getNamePath(),u=s.getMeta(),f=q(q({},u),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return o}),U(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var s=r.getNamePath(),l=Lo(n.store,s);l===void 0&&n.updateStore(So(n.store,s,o))}}),U(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var s=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(s,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!l||f.length>1)){var h=l?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==h&&n.fieldEntities.every(function(g){return!yw(g.getNamePath(),o)})){var m=n.store;n.updateStore(So(m,o,h,!0)),n.notifyObservers(m,[o],{type:"remove"}),n.triggerDependenciesUpdate(m,o)}}n.notifyWatch([o])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,s=r.value;n.updateValue(o,s);break}case"validateField":{var l=r.namePath,u=r.triggerName;n.validateFields([l],{triggerName:u});break}}}),U(this,"notifyObservers",function(r,o,s){if(n.subscribable){var l=q(q({},s),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,o,l)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,o){var s=n.getDependencyChildrenFields(o);return s.length&&n.validateFields(s),n.notifyObservers(r,s,{type:"dependenciesUpdate",relatedFields:[o].concat($e(s))}),s}),U(this,"updateValue",function(r,o){var s=In(r),l=n.store;n.updateStore(So(n.store,s,o)),n.notifyObservers(l,[s],{type:"valueUpdate",source:"internal"}),n.notifyWatch([s]);var u=n.triggerDependenciesUpdate(l,s),f=n.callbacks.onValuesChange;if(f){var h=Jy(n.store,[s]);f(h,n.getFieldsValue())}n.triggerOnFieldsChange([s].concat($e(u)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var s=Qa(n.store,r);n.updateStore(s)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),U(this,"getDependencyChildrenFields",function(r){var o=new Set,s=[],l=new ja;n.getFieldEntities().forEach(function(f){var h=f.props.dependencies;(h||[]).forEach(function(m){var g=In(m);l.update(g,function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return y.add(f),y})})});var u=function f(h){var m=l.get(h)||new Set;m.forEach(function(g){if(!o.has(g)){o.add(g);var y=g.getNamePath();g.isFieldDirty()&&y.length&&(s.push(y),f(y))}})};return u(r),s}),U(this,"triggerOnFieldsChange",function(r,o){var s=n.callbacks.onFieldsChange;if(s){var l=n.getFields();if(o){var u=new ja;o.forEach(function(h){var m=h.name,g=h.errors;u.set(m,g)}),l.forEach(function(h){h.errors=u.get(h.name)||h.errors})}var f=l.filter(function(h){var m=h.name;return ts(r,m)});f.length&&s(f,l)}}),U(this,"validateFields",function(r,o){n.warningUnhooked();var s,l;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(s=r,l=o):l=r;var u=!!s,f=u?s.map(In):[],h=[],m=String(Date.now()),g=new Set,y=l||{},w=y.recursive,b=y.dirty;n.getFieldEntities(!0).forEach(function(x){if(u||f.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(b&&!x.isFieldDirty())){var R=x.getNamePath();if(g.add(R.join(m)),!u||ts(f,R,w)){var I=x.validateRules(q({validateMessages:q(q({},vw),n.validateMessages)},l));h.push(I.then(function(){return{name:R,errors:[],warnings:[]}}).catch(function(P){var $,_=[],L=[];return($=P.forEach)===null||$===void 0||$.call(P,function(F){var N=F.rule.warningOnly,z=F.errors;N?L.push.apply(L,$e(z)):_.push.apply(_,$e(z))}),_.length?Promise.reject({name:R,errors:_,warnings:L}):{name:R,errors:_,warnings:L}}))}}});var C=l8(h);n.lastValidatePromise=C,C.catch(function(x){return x}).then(function(x){var R=x.map(function(I){var P=I.name;return P});n.notifyObservers(n.store,R,{type:"validateFinish"}),n.triggerOnFieldsChange(R,x)});var S=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(x){var R=x.filter(function(I){return I&&I.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:R,outOfDate:n.lastValidatePromise!==C})});S.catch(function(x){return x});var O=f.filter(function(x){return g.has(x.join(m))});return n.triggerOnFieldsChange(O),S}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(s){console.error(s)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Cw(e){var t=d.useRef(),n=d.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var s=function(){o({})},l=new c8(s);t.current=l.getForm()}return[t.current]}var bm=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ww=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,s=t.children,l=d.useContext(bm),u=d.useRef({});return d.createElement(bm.Provider,{value:q(q({},l),{},{validateMessages:q(q({},l.validateMessages),n),triggerFormChange:function(h,m){r&&r(h,{changedFields:m,forms:u.current}),l.triggerFormChange(h,m)},triggerFormFinish:function(h,m){o&&o(h,{values:m,forms:u.current}),l.triggerFormFinish(h,m)},registerForm:function(h,m){h&&(u.current=q(q({},u.current),{},U({},h,m))),l.registerForm(h,m)},unregisterForm:function(h){var m=q({},u.current);delete m[h],u.current=m,l.unregisterForm(h)}})},s)},d8=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],f8=function(t,n){var r=t.name,o=t.initialValues,s=t.fields,l=t.form,u=t.preserve,f=t.children,h=t.component,m=h===void 0?"form":h,g=t.validateMessages,y=t.validateTrigger,w=y===void 0?"onChange":y,b=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,O=t.onFinishFailed,x=t.clearOnDestroy,R=Lt(t,d8),I=d.useRef(null),P=d.useContext(bm),$=Cw(l),_=ae($,1),L=_[0],F=L.getInternalHooks(Xi),N=F.useSubscribe,z=F.setInitialValues,A=F.setCallbacks,B=F.setValidateMessages,H=F.setPreserve,X=F.destroyForm;d.useImperativeHandle(n,function(){return q(q({},L),{},{nativeElement:I.current})}),d.useEffect(function(){return P.registerForm(r,L),function(){P.unregisterForm(r)}},[P,L,r]),B(q(q({},P.validateMessages),g)),A({onValuesChange:b,onFieldsChange:function(ee){if(P.triggerFormChange(r,ee),C){for(var Y=arguments.length,re=new Array(Y>1?Y-1:0),le=1;le<Y;le++)re[le-1]=arguments[le];C.apply(void 0,[ee].concat(re))}},onFinish:function(ee){P.triggerFormFinish(r,ee),S&&S(ee)},onFinishFailed:O}),H(u);var V=d.useRef(null);z(o,!V.current),V.current||(V.current=!0),d.useEffect(function(){return function(){return X(x)}},[]);var G,j=typeof f=="function";if(j){var J=L.getFieldsValue(!0);G=f(J,L)}else G=f;N(!j);var K=d.useRef();d.useEffect(function(){o8(K.current||[],s||[])||L.setFields(s||[]),K.current=s},[s,L]);var D=d.useMemo(function(){return q(q({},L),{},{validateTrigger:w})},[L,w]),M=d.createElement(rd.Provider,{value:null},d.createElement(cs.Provider,{value:D},G));return m===!1?M:d.createElement(m,Fe({},R,{ref:I,onSubmit:function(ee){ee.preventDefault(),ee.stopPropagation(),L.submit()},onReset:function(ee){var Y;ee.preventDefault(),L.resetFields(),(Y=R.onReset)===null||Y===void 0||Y.call(R,ee)}}),M)};function eS(e){try{return JSON.stringify(e)}catch{return Math.random()}}function h8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],s=o===void 0?{}:o,l=w$(s)?{form:s}:s,u=l.form,f=d.useState(),h=ae(f,2),m=h[0],g=h[1],y=d.useMemo(function(){return eS(m)},[m]),w=d.useRef(y);w.current=y;var b=d.useContext(cs),C=u||b,S=C&&C._init,O=In(r),x=d.useRef(O);return x.current=O,d.useEffect(function(){if(S){var R=C.getFieldsValue,I=C.getInternalHooks,P=I(Xi),$=P.registerWatch,_=function(z,A){var B=l.preserve?A:z;return typeof r=="function"?r(B):Lo(B,x.current)},L=$(function(N,z){var A=_(N,z),B=eS(A);w.current!==B&&(w.current=B,g(A))}),F=_(R(),R(!0));return m!==F&&g(F),L}},[S]),m}var p8=d.forwardRef(f8),iu=p8;iu.FormProvider=ww;iu.Field=Sw;iu.List=s8;iu.useForm=Cw;iu.useWatch=h8;const X7=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),J7=d.createContext(null),Z7=e=>{const t=ao(e,["prefixCls"]);return d.createElement(ww,Object.assign({},t))},e9=d.createContext({prefixCls:""}),Cm=d.createContext({}),m8=({children:e,status:t,override:n})=>{const r=d.useContext(Cm),o=d.useMemo(()=>{const s=Object.assign({},r);return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return d.createElement(Cm.Provider,{value:o},e)},g8=d.createContext(void 0),xg=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=He.createElement(m8,{override:!0,status:!0},o)),t&&(o=He.createElement(KP,null,o)),o},v8=He.createContext({});function y8(e){return t=>d.createElement(Di,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const S8=(e,t,n,r,o)=>y8(l=>{const{prefixCls:u,style:f}=l,h=d.useRef(null),[m,g]=d.useState(0),[y,w]=d.useState(0),[b,C]=Yo(!1,{value:l.open}),{getPrefixCls:S}=d.useContext(on),O=S(r||"select",u);d.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver($=>{const _=$[0].target;g(_.offsetHeight+8),w(_.offsetWidth)}),P=setInterval(()=>{var $;const _=o?`.${o(O)}`:`.${O}-dropdown`,L=($=h.current)===null||$===void 0?void 0:$.querySelector(_);L&&(clearInterval(P),I.observe(L))},10);return()=>{clearInterval(P),I.disconnect()}}},[O]);let x=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},f),{margin:0}),open:b,visible:b,getPopupContainer:()=>h.current});t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const R={paddingBottom:m,position:"relative",minWidth:y};return d.createElement("div",{ref:h,style:R},d.createElement(e,Object.assign({},x)))}),Ew=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});var Fd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,s=t.children,l=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(o):r;return d.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),l?.(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:d.createElement("span",{className:Se(n.split(/\s+/).map(function(h){return"".concat(h,"-icon")}))},s))},b8=function(t,n,r,o,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,h=He.useMemo(function(){if(ot(o)==="object")return o.clearIcon;if(s)return s},[o,s]),m=He.useMemo(function(){return!!(!l&&o&&(r.length||u)&&!(f==="combobox"&&u===""))},[o,l,r.length,u,f]);return{allowClear:m,clearIcon:He.createElement(Fd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:h},"×")}},xw=d.createContext(null);function C8(){return d.useContext(xw)}function w8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=ae(t,2),r=n[0],o=n[1],s=d.useRef(null),l=function(){window.clearTimeout(s.current)};d.useEffect(function(){return l},[]);var u=function(h,m){l(),s.current=window.setTimeout(function(){o(h),m&&m()},e)};return[r,u,l]}function Ow(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function E8(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function s(l){var u;if(!((u=o.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f),o.current.open&&e().filter(function(h){return h}).every(function(h){return!h.contains(f)&&h!==f})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",s),function(){return window.removeEventListener("mousedown",s)}},[])}function x8(e){return e&&![at.ESC,at.SHIFT,at.BACKSPACE,at.TAB,at.WIN_KEY,at.ALT,at.META,at.WIN_KEY_RIGHT,at.CTRL,at.SEMICOLON,at.EQUALS,at.CAPS_LOCK,at.CONTEXT_MENU,at.F1,at.F2,at.F3,at.F4,at.F5,at.F6,at.F7,at.F8,at.F9,at.F10,at.F11,at.F12].includes(e)}var O8=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],za=void 0;function R8(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,s=e.renderItem,l=e.responsive,u=e.responsiveDisabled,f=e.registerSize,h=e.itemKey,m=e.className,g=e.style,y=e.children,w=e.display,b=e.order,C=e.component,S=C===void 0?"div":C,O=Lt(e,O8),x=l&&!w;function R(L){f(h,L)}d.useEffect(function(){return function(){R(null)}},[]);var I=s&&o!==za?s(o,{index:b}):y,P;r||(P={opacity:x?0:1,height:x?0:za,overflowY:x?"hidden":za,order:l?b:za,pointerEvents:x?"none":za,position:x?"absolute":za});var $={};x&&($["aria-hidden"]=!0);var _=d.createElement(S,Fe({className:Se(!r&&n,m),style:q(q({},P),g)},$,O,{ref:t}),I);return l&&(_=d.createElement(ua,{onResize:function(F){var N=F.offsetWidth;R(N)},disabled:u},_)),_}var Ja=d.forwardRef(R8);Ja.displayName="Item";function I8(e){if(typeof MessageChannel>"u")bn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function T8(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],I8(function(){Ii.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ba(e,t){var n=d.useState(t),r=ae(n,2),o=r[0],s=r[1],l=Yn(function(u){e(function(){s(u)})});return[o,l]}var od=He.createContext(null),P8=["component"],$8=["className"],_8=["className"],D8=function(t,n){var r=d.useContext(od);if(!r){var o=t.component,s=o===void 0?"div":o,l=Lt(t,P8);return d.createElement(s,Fe({},l,{ref:n}))}var u=r.className,f=Lt(r,$8),h=t.className,m=Lt(t,_8);return d.createElement(od.Provider,{value:null},d.createElement(Ja,Fe({ref:n,className:Se(u,h)},f,m)))},Rw=d.forwardRef(D8);Rw.displayName="RawItem";var L8=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Iw="responsive",Tw="invalidate";function F8(e){return"+ ".concat(e.length," ...")}function N8(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,s=o===void 0?[]:o,l=e.renderItem,u=e.renderRawItem,f=e.itemKey,h=e.itemWidth,m=h===void 0?10:h,g=e.ssr,y=e.style,w=e.className,b=e.maxCount,C=e.renderRest,S=e.renderRawRest,O=e.prefix,x=e.suffix,R=e.component,I=R===void 0?"div":R,P=e.itemComponent,$=e.onVisibleChange,_=Lt(e,L8),L=g==="full",F=T8(),N=Ba(F,null),z=ae(N,2),A=z[0],B=z[1],H=A||0,X=Ba(F,new Map),V=ae(X,2),G=V[0],j=V[1],J=Ba(F,0),K=ae(J,2),D=K[0],M=K[1],te=Ba(F,0),ee=ae(te,2),Y=ee[0],re=ee[1],le=Ba(F,0),pe=ae(le,2),ce=pe[0],Te=pe[1],fe=Ba(F,0),ue=ae(fe,2),he=ue[0],be=ue[1],ve=d.useState(null),xe=ae(ve,2),Ne=xe[0],Pe=xe[1],_e=d.useState(null),We=ae(_e,2),De=We[0],qe=We[1],Ye=d.useMemo(function(){return De===null&&L?Number.MAX_SAFE_INTEGER:De||0},[De,A]),Ie=d.useState(!1),dt=ae(Ie,2),ft=dt[0],ht=dt[1],st="".concat(r,"-item"),et=Math.max(D,Y),lt=b===Iw,ke=s.length&<,mt=b===Tw,St=ke||typeof b=="number"&&s.length>b,nt=d.useMemo(function(){var de=s;return ke?A===null&&L?de=s:de=s.slice(0,Math.min(s.length,H/m)):typeof b=="number"&&(de=s.slice(0,b)),de},[s,m,A,b,ke]),tt=d.useMemo(function(){return ke?s.slice(Ye+1):s.slice(nt.length)},[s,nt,ke,Ye]),Et=d.useCallback(function(de,se){var we;return typeof f=="function"?f(de):(we=f&&de?.[f])!==null&&we!==void 0?we:se},[f]),rt=d.useCallback(l||function(de){return de},[l]);function xt(de,se,we){De===de&&(se===void 0||se===Ne)||(qe(de),we||(ht(de<s.length-1),$?.(de)),se!==void 0&&Pe(se))}function Nt(de,se){B(se.clientWidth)}function Cn(de,se){j(function(we){var Ke=new Map(we);return se===null?Ke.delete(de):Ke.set(de,se),Ke})}function Gt(de,se){re(se),M(Y)}function en(de,se){Te(se)}function cn(de,se){be(se)}function Ut(de){return G.get(Et(nt[de],de))}mn(function(){if(H&&typeof et=="number"&&nt){var de=ce+he,se=nt.length,we=se-1;if(!se){xt(0,null);return}for(var Ke=0;Ke<se;Ke+=1){var Ae=Ut(Ke);if(L&&(Ae=Ae||0),Ae===void 0){xt(Ke-1,void 0,!0);break}if(de+=Ae,we===0&&de<=H||Ke===we-1&&de+Ut(we)<=H){xt(we,null);break}else if(de+et>H){xt(Ke-1,de-Ae-he+Y);break}}x&&Ut(0)+he>H&&Pe(null)}},[H,G,Y,ce,he,Et,nt]);var It=ft&&!!tt.length,Ct={};Ne!==null&&ke&&(Ct={position:"absolute",left:Ne,top:0});var Vt={prefixCls:st,responsive:ke,component:P,invalidate:mt},Mt=u?function(de,se){var we=Et(de,se);return d.createElement(od.Provider,{key:we,value:q(q({},Vt),{},{order:se,item:de,itemKey:we,registerSize:Cn,display:se<=Ye})},u(de,se))}:function(de,se){var we=Et(de,se);return d.createElement(Ja,Fe({},Vt,{order:se,key:we,item:de,renderItem:rt,itemKey:we,registerSize:Cn,display:se<=Ye}))},Ve={order:It?Ye:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:Gt,display:It},it=C||F8,Tt=S?d.createElement(od.Provider,{value:q(q({},Vt),Ve)},S(tt)):d.createElement(Ja,Fe({},Vt,Ve),typeof it=="function"?it(tt):it),Re=d.createElement(I,Fe({className:Se(!mt&&r,w),style:y,ref:t},_),O&&d.createElement(Ja,Fe({},Vt,{responsive:lt,responsiveDisabled:!ke,order:-1,className:"".concat(st,"-prefix"),registerSize:en,display:!0}),O),nt.map(Mt),St?Tt:null,x&&d.createElement(Ja,Fe({},Vt,{responsive:lt,responsiveDisabled:!ke,order:Ye,className:"".concat(st,"-suffix"),registerSize:cn,display:!0,style:Ct}),x));return lt?d.createElement(ua,{onResize:Nt,disabled:!ke},Re):Re}var No=d.forwardRef(N8);No.displayName="Overflow";No.Item=Rw;No.RESPONSIVE=Iw;No.INVALIDATE=Tw;function M8(e,t,n){var r=q(q({},e),t);return Object.keys(t).forEach(function(o){var s=t[o];typeof s=="function"&&(r[o]=function(){for(var l,u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];return s.apply(void 0,f),(l=e[o])===null||l===void 0?void 0:l.call.apply(l,[e].concat(f))})}),r}var k8=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],A8=function(t,n){var r=t.prefixCls,o=t.id,s=t.inputElement,l=t.autoFocus,u=t.autoComplete,f=t.editable,h=t.activeDescendantId,m=t.value,g=t.open,y=t.attrs,w=Lt(t,k8),b=s||d.createElement("input",null),C=b,S=C.ref,O=C.props;return"maxLength"in b.props,b=d.cloneElement(b,q(q(q({type:"search"},M8(w,O)),{},{id:o,ref:vs(n,S),autoComplete:u||"off",autoFocus:l,className:Se("".concat(r,"-selection-search-input"),O?.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":g?h:void 0},y),{},{value:f?m:"",readOnly:!f,unselectable:f?null:"on",style:q(q({},O.style),{},{opacity:f?null:0})})),b},Pw=d.forwardRef(A8);function $w(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var j8=typeof window<"u"&&window.document&&window.document.documentElement,z8=j8;function B8(e){return e!=null}function H8(e){return!e&&e!==0}function tS(e){return["string","number"].includes(ot(e))}function _w(e){var t=void 0;return e&&(tS(e.title)?t=e.title.toString():tS(e.label)&&(t=e.label.toString())),t}function U8(e,t){z8?d.useLayoutEffect(e,t):d.useEffect(e,t)}function V8(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var nS=function(t){t.preventDefault(),t.stopPropagation()},W8=function(t){var n=t.id,r=t.prefixCls,o=t.values,s=t.open,l=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,h=t.placeholder,m=t.disabled,g=t.mode,y=t.showSearch,w=t.autoFocus,b=t.autoComplete,C=t.activeDescendantId,S=t.tabIndex,O=t.removeIcon,x=t.maxTagCount,R=t.maxTagTextLength,I=t.maxTagPlaceholder,P=I===void 0?function(be){return"+ ".concat(be.length," ...")}:I,$=t.tagRender,_=t.onToggleOpen,L=t.onRemove,F=t.onInputChange,N=t.onInputPaste,z=t.onInputKeyDown,A=t.onInputMouseDown,B=t.onInputCompositionStart,H=t.onInputCompositionEnd,X=t.onInputBlur,V=d.useRef(null),G=d.useState(0),j=ae(G,2),J=j[0],K=j[1],D=d.useState(!1),M=ae(D,2),te=M[0],ee=M[1],Y="".concat(r,"-selection"),re=s||g==="multiple"&&u===!1||g==="tags"?l:"",le=g==="tags"||g==="multiple"&&u===!1||y&&(s||te);U8(function(){K(V.current.scrollWidth)},[re]);var pe=function(ve,xe,Ne,Pe,_e){return d.createElement("span",{title:_w(ve),className:Se("".concat(Y,"-item"),U({},"".concat(Y,"-item-disabled"),Ne))},d.createElement("span",{className:"".concat(Y,"-item-content")},xe),Pe&&d.createElement(Fd,{className:"".concat(Y,"-item-remove"),onMouseDown:nS,onClick:_e,customizeIcon:O},"×"))},ce=function(ve,xe,Ne,Pe,_e,We){var De=function(Ye){nS(Ye),_(!s)};return d.createElement("span",{onMouseDown:De},$({label:xe,value:ve,disabled:Ne,closable:Pe,onClose:_e,isMaxTag:!!We}))},Te=function(ve){var xe=ve.disabled,Ne=ve.label,Pe=ve.value,_e=!m&&!xe,We=Ne;if(typeof R=="number"&&(typeof Ne=="string"||typeof Ne=="number")){var De=String(We);De.length>R&&(We="".concat(De.slice(0,R),"..."))}var qe=function(Ie){Ie&&Ie.stopPropagation(),L(ve)};return typeof $=="function"?ce(Pe,We,xe,_e,qe):pe(ve,We,xe,_e,qe)},fe=function(ve){if(!o.length)return null;var xe=typeof P=="function"?P(ve):P;return typeof $=="function"?ce(void 0,xe,!1,!1,void 0,!0):pe({title:xe},xe,!1)},ue=d.createElement("div",{className:"".concat(Y,"-search"),style:{width:J},onFocus:function(){ee(!0)},onBlur:function(){ee(!1)}},d.createElement(Pw,{ref:f,open:s,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:w,autoComplete:b,editable:le,activeDescendantId:C,value:re,onKeyDown:z,onMouseDown:A,onChange:F,onPaste:N,onCompositionStart:B,onCompositionEnd:H,onBlur:X,tabIndex:S,attrs:us(t,!0)}),d.createElement("span",{ref:V,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},re," ")),he=d.createElement(No,{prefixCls:"".concat(Y,"-overflow"),data:o,renderItem:Te,renderRest:fe,suffix:ue,itemKey:V8,maxCount:x});return d.createElement("span",{className:"".concat(Y,"-wrap")},he,!o.length&&!re&&d.createElement("span",{className:"".concat(Y,"-placeholder")},h))},q8=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,s=t.inputRef,l=t.disabled,u=t.autoFocus,f=t.autoComplete,h=t.activeDescendantId,m=t.mode,g=t.open,y=t.values,w=t.placeholder,b=t.tabIndex,C=t.showSearch,S=t.searchValue,O=t.activeValue,x=t.maxLength,R=t.onInputKeyDown,I=t.onInputMouseDown,P=t.onInputChange,$=t.onInputPaste,_=t.onInputCompositionStart,L=t.onInputCompositionEnd,F=t.onInputBlur,N=t.title,z=d.useState(!1),A=ae(z,2),B=A[0],H=A[1],X=m==="combobox",V=X||C,G=y[0],j=S||"";X&&O&&!B&&(j=O),d.useEffect(function(){X&&H(!1)},[X,O]);var J=m!=="combobox"&&!g&&!C?!1:!!j,K=N===void 0?_w(G):N,D=d.useMemo(function(){return G?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:J?{visibility:"hidden"}:void 0},w)},[G,J,w,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(Pw,{ref:s,prefixCls:r,id:o,open:g,inputElement:n,disabled:l,autoFocus:u,autoComplete:f,editable:V,activeDescendantId:h,value:j,onKeyDown:R,onMouseDown:I,onChange:function(te){H(!0),P(te)},onPaste:$,onCompositionStart:_,onCompositionEnd:L,onBlur:F,tabIndex:b,attrs:us(t,!0),maxLength:X?x:void 0})),!X&&G?d.createElement("span",{className:"".concat(r,"-selection-item"),title:K,style:J?{visibility:"hidden"}:void 0},G.label):null,D)},K8=function(t,n){var r=d.useRef(null),o=d.useRef(!1),s=t.prefixCls,l=t.open,u=t.mode,f=t.showSearch,h=t.tokenWithEnter,m=t.disabled,g=t.prefix,y=t.autoClearSearchValue,w=t.onSearch,b=t.onSearchSubmit,C=t.onToggleOpen,S=t.onInputKeyDown,O=t.onInputBlur,x=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(K){r.current.focus(K)},blur:function(){r.current.blur()}}});var R=Ow(0),I=ae(R,2),P=I[0],$=I[1],_=function(K){var D=K.which,M=r.current instanceof HTMLTextAreaElement;!M&&l&&(D===at.UP||D===at.DOWN)&&K.preventDefault(),S&&S(K),D===at.ENTER&&u==="tags"&&!o.current&&!l&&b?.(K.target.value),!(M&&!l&&~[at.UP,at.DOWN,at.LEFT,at.RIGHT].indexOf(D))&&x8(D)&&C(!0)},L=function(){$(!0)},F=d.useRef(null),N=function(K){w(K,!0,o.current)!==!1&&C(!0)},z=function(){o.current=!0},A=function(K){o.current=!1,u!=="combobox"&&N(K.target.value)},B=function(K){var D=K.target.value;if(h&&F.current&&/[\r\n]/.test(F.current)){var M=F.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(M,F.current)}F.current=null,N(D)},H=function(K){var D=K.clipboardData,M=D?.getData("text");F.current=M||""},X=function(K){var D=K.target;if(D!==r.current){var M=document.body.style.msTouchAction!==void 0;M?setTimeout(function(){r.current.focus()}):r.current.focus()}},V=function(K){var D=P();K.target!==r.current&&!D&&!(u==="combobox"&&m)&&K.preventDefault(),(u!=="combobox"&&(!f||!D)||!l)&&(l&&y!==!1&&w("",!0,!1),C())},G={inputRef:r,onInputKeyDown:_,onInputMouseDown:L,onInputChange:B,onInputPaste:H,onInputCompositionStart:z,onInputCompositionEnd:A,onInputBlur:O},j=u==="multiple"||u==="tags"?d.createElement(W8,Fe({},t,G)):d.createElement(q8,Fe({},t,G));return d.createElement("div",{ref:x,className:"".concat(s,"-selector"),onClick:X,onMouseDown:V},g&&d.createElement("div",{className:"".concat(s,"-prefix")},g),j)},G8=d.forwardRef(K8);function Q8(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,s=r||{},l=s.className,u=s.content,f=o.x,h=f===void 0?0:f,m=o.y,g=m===void 0?0:m,y=d.useRef();if(!n||!n.points)return null;var w={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],C=n.points[1],S=b[0],O=b[1],x=C[0],R=C[1];S===x||!["t","b"].includes(S)?w.top=g:S==="t"?w.top=0:w.bottom=0,O===R||!["l","r"].includes(O)?w.left=h:O==="l"?w.left=0:w.right=0}return d.createElement("div",{ref:y,className:Se("".concat(t,"-arrow"),l),style:w},u)}function Y8(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,s=e.motion;return o?d.createElement(ca,Fe({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var u=l.className;return d.createElement("div",{style:{zIndex:r},className:Se("".concat(t,"-mask"),u)})}):null}var X8=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),J8=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,s=e.style,l=e.target,u=e.onVisibleChanged,f=e.open,h=e.keepDom,m=e.fresh,g=e.onClick,y=e.mask,w=e.arrow,b=e.arrowPos,C=e.align,S=e.motion,O=e.maskMotion,x=e.forceRender,R=e.getPopupContainer,I=e.autoDestroy,P=e.portal,$=e.zIndex,_=e.onMouseEnter,L=e.onMouseLeave,F=e.onPointerEnter,N=e.onPointerDownCapture,z=e.ready,A=e.offsetX,B=e.offsetY,H=e.offsetR,X=e.offsetB,V=e.onAlign,G=e.onPrepare,j=e.stretch,J=e.targetWidth,K=e.targetHeight,D=typeof n=="function"?n():n,M=f||h,te=R?.length>0,ee=d.useState(!R||!te),Y=ae(ee,2),re=Y[0],le=Y[1];if(mn(function(){!re&&te&&l&&le(!0)},[re,te,l]),!re)return null;var pe="auto",ce={left:"-1000vw",top:"-1000vh",right:pe,bottom:pe};if(z||!f){var Te,fe=C.points,ue=C.dynamicInset||((Te=C._experimental)===null||Te===void 0?void 0:Te.dynamicInset),he=ue&&fe[0][1]==="r",be=ue&&fe[0][0]==="b";he?(ce.right=H,ce.left=pe):(ce.left=A,ce.right=pe),be?(ce.bottom=X,ce.top=pe):(ce.top=B,ce.bottom=pe)}var ve={};return j&&(j.includes("height")&&K?ve.height=K:j.includes("minHeight")&&K&&(ve.minHeight=K),j.includes("width")&&J?ve.width=J:j.includes("minWidth")&&J&&(ve.minWidth=J)),f||(ve.pointerEvents="none"),d.createElement(P,{open:x||M,getContainer:R&&function(){return R(l)},autoDestroy:I},d.createElement(Y8,{prefixCls:o,open:f,zIndex:$,mask:y,motion:O}),d.createElement(ua,{onResize:V,disabled:!f},function(xe){return d.createElement(ca,Fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:G,onEnterPrepare:G,visible:f,onVisibleChanged:function(Pe){var _e;S==null||(_e=S.onVisibleChanged)===null||_e===void 0||_e.call(S,Pe),u(Pe)}}),function(Ne,Pe){var _e=Ne.className,We=Ne.style,De=Se(o,_e,r);return d.createElement("div",{ref:vs(xe,t,Pe),className:De,style:q(q(q(q({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ce),ve),We),{},{boxSizing:"border-box",zIndex:$},s),onMouseEnter:_,onMouseLeave:L,onPointerEnter:F,onClick:g,onPointerDownCapture:N},w&&d.createElement(Q8,{prefixCls:o,arrow:w,arrowPos:b,align:C}),d.createElement(X8,{cache:!f&&!m},D))})}))}),Z8=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ys(n),s=d.useCallback(function(u){Qm(t,r?r(u):u)},[r]),l=la(s,eu(n));return o?d.cloneElement(n,{ref:l}):n}),rS=d.createContext(null);function oS(e){return e?Array.isArray(e)?e:[e]:[]}function e_(e,t,n,r){return d.useMemo(function(){var o=oS(n??t),s=oS(r??t),l=new Set(o),u=new Set(s);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[l,u]},[e,t,n,r])}function t_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function n_(e,t,n,r){for(var o=n.points,s=Object.keys(e),l=0;l<s.length;l+=1){var u,f=s[l];if(t_((u=e[f])===null||u===void 0?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(f)}return""}function iS(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function au(e){return e.ownerDocument.defaultView}function wm(e){for(var t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=au(n).getComputedStyle(n),s=o.overflowX,l=o.overflowY,u=o.overflow;[s,l,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function Wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function tl(e){return Wl(parseFloat(e),0)}function aS(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=au(r).getComputedStyle(r),s=o.overflow,l=o.overflowClipMargin,u=o.borderTopWidth,f=o.borderBottomWidth,h=o.borderLeftWidth,m=o.borderRightWidth,g=r.getBoundingClientRect(),y=r.offsetHeight,w=r.clientHeight,b=r.offsetWidth,C=r.clientWidth,S=tl(u),O=tl(f),x=tl(h),R=tl(m),I=Wl(Math.round(g.width/b*1e3)/1e3),P=Wl(Math.round(g.height/y*1e3)/1e3),$=(b-C-x-R)*I,_=(y-w-S-O)*P,L=S*P,F=O*P,N=x*I,z=R*I,A=0,B=0;if(s==="clip"){var H=tl(l);A=H*I,B=H*P}var X=g.x+N-A,V=g.y+L-B,G=X+g.width+2*A-N-z-$,j=V+g.height+2*B-L-F-_;n.left=Math.max(n.left,X),n.top=Math.max(n.top,V),n.right=Math.min(n.right,G),n.bottom=Math.min(n.bottom,j)}}),n}function sS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function lS(e,t){var n=t||[],r=ae(n,2),o=r[0],s=r[1];return[sS(e.width,o),sS(e.height,s)]}function uS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ha(e,t){var n=t[0],r=t[1],o,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:s}}function gi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function r_(e,t,n,r,o,s,l){var u=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=ae(u,2),h=f[0],m=f[1],g=d.useRef(0),y=d.useMemo(function(){return t?wm(t):[]},[t]),w=d.useRef({}),b=function(){w.current={}};e||b();var C=Yn(function(){if(t&&n&&e){let lr=function(Or,Wn){var nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dt,lo=M.x+Or,Ro=M.y+Wn,Vr=lo+be,Os=Ro+he,pa=Math.max(lo,nr.left),ze=Math.max(Ro,nr.top),pt=Math.min(Vr,nr.right),tn=Math.min(Os,nr.bottom);return Math.max(0,(pt-pa)*(tn-ze))},so=function(){an=M.y+it,gn=an+he,Dn=M.x+Ve,Jt=Dn+be};var x,R,I,P,$=t,_=$.ownerDocument,L=au($),F=L.getComputedStyle($),N=F.position,z=$.style.left,A=$.style.top,B=$.style.right,H=$.style.bottom,X=$.style.overflow,V=q(q({},o[r]),s),G=_.createElement("div");(x=$.parentElement)===null||x===void 0||x.appendChild(G),G.style.left="".concat($.offsetLeft,"px"),G.style.top="".concat($.offsetTop,"px"),G.style.position=N,G.style.height="".concat($.offsetHeight,"px"),G.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var J,K,D=n.getBoundingClientRect();D.x=(J=D.x)!==null&&J!==void 0?J:D.left,D.y=(K=D.y)!==null&&K!==void 0?K:D.top,j={x:D.x,y:D.y,width:D.width,height:D.height}}var M=$.getBoundingClientRect(),te=L.getComputedStyle($),ee=te.height,Y=te.width;M.x=(R=M.x)!==null&&R!==void 0?R:M.left,M.y=(I=M.y)!==null&&I!==void 0?I:M.top;var re=_.documentElement,le=re.clientWidth,pe=re.clientHeight,ce=re.scrollWidth,Te=re.scrollHeight,fe=re.scrollTop,ue=re.scrollLeft,he=M.height,be=M.width,ve=j.height,xe=j.width,Ne={left:0,top:0,right:le,bottom:pe},Pe={left:-ue,top:-fe,right:ce-ue,bottom:Te-fe},_e=V.htmlRegion,We="visible",De="visibleFirst";_e!=="scroll"&&_e!==De&&(_e=We);var qe=_e===De,Ye=aS(Pe,y),Ie=aS(Ne,y),dt=_e===We?Ie:Ye,ft=qe?Ie:dt;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var ht=$.getBoundingClientRect();$.style.left=z,$.style.top=A,$.style.right=B,$.style.bottom=H,$.style.overflow=X,(P=$.parentElement)===null||P===void 0||P.removeChild(G);var st=Wl(Math.round(be/parseFloat(Y)*1e3)/1e3),et=Wl(Math.round(he/parseFloat(ee)*1e3)/1e3);if(st===0||et===0||Ll(n)&&!Sg(n))return;var lt=V.offset,ke=V.targetOffset,mt=lS(M,lt),St=ae(mt,2),nt=St[0],tt=St[1],Et=lS(j,ke),rt=ae(Et,2),xt=rt[0],Nt=rt[1];j.x-=xt,j.y-=Nt;var Cn=V.points||[],Gt=ae(Cn,2),en=Gt[0],cn=Gt[1],Ut=uS(cn),It=uS(en),Ct=Ha(j,Ut),Vt=Ha(M,It),Mt=q({},V),Ve=Ct.x-Vt.x+nt,it=Ct.y-Vt.y+tt,Tt=lr(Ve,it),Re=lr(Ve,it,Ie),de=Ha(j,["t","l"]),se=Ha(M,["t","l"]),we=Ha(j,["b","r"]),Ke=Ha(M,["b","r"]),Ae=V.overflow||{},_t=Ae.adjustX,kt=Ae.adjustY,Pt=Ae.shiftX,Ot=Ae.shiftY,dn=function(Wn){return typeof Wn=="boolean"?Wn:Wn>=0},an,gn,Dn,Jt;so();var fn=dn(kt),Oe=It[0]===Ut[0];if(fn&&It[0]==="t"&&(gn>ft.bottom||w.current.bt)){var Me=it;Oe?Me-=he-ve:Me=de.y-Ke.y-tt;var gt=lr(Ve,Me),Je=lr(Ve,Me,Ie);gt>Tt||gt===Tt&&(!qe||Je>=Re)?(w.current.bt=!0,it=Me,tt=-tt,Mt.points=[gi(It,0),gi(Ut,0)]):w.current.bt=!1}if(fn&&It[0]==="b"&&(an<ft.top||w.current.tb)){var jt=it;Oe?jt+=he-ve:jt=we.y-se.y-tt;var Mn=lr(Ve,jt),Hn=lr(Ve,jt,Ie);Mn>Tt||Mn===Tt&&(!qe||Hn>=Re)?(w.current.tb=!0,it=jt,tt=-tt,Mt.points=[gi(It,0),gi(Ut,0)]):w.current.tb=!1}var Xn=dn(_t),Ur=It[1]===Ut[1];if(Xn&&It[1]==="l"&&(Jt>ft.right||w.current.rl)){var kn=Ve;Ur?kn-=be-xe:kn=de.x-Ke.x-nt;var vn=lr(kn,it),En=lr(kn,it,Ie);vn>Tt||vn===Tt&&(!qe||En>=Re)?(w.current.rl=!0,Ve=kn,nt=-nt,Mt.points=[gi(It,1),gi(Ut,1)]):w.current.rl=!1}if(Xn&&It[1]==="r"&&(Dn<ft.left||w.current.lr)){var Cr=Ve;Ur?Cr+=be-xe:Cr=we.x-se.x-nt;var xn=lr(Cr,it),wr=lr(Cr,it,Ie);xn>Tt||xn===Tt&&(!qe||wr>=Re)?(w.current.lr=!0,Ve=Cr,nt=-nt,Mt.points=[gi(It,1),gi(Ut,1)]):w.current.lr=!1}so();var Jn=Pt===!0?0:Pt;typeof Jn=="number"&&(Dn<Ie.left&&(Ve-=Dn-Ie.left-nt,j.x+xe<Ie.left+Jn&&(Ve+=j.x-Ie.left+xe-Jn)),Jt>Ie.right&&(Ve-=Jt-Ie.right-nt,j.x>Ie.right-Jn&&(Ve+=j.x-Ie.right+Jn)));var Er=Ot===!0?0:Ot;typeof Er=="number"&&(an<Ie.top&&(it-=an-Ie.top-tt,j.y+ve<Ie.top+Er&&(it+=j.y-Ie.top+ve-Er)),gn>Ie.bottom&&(it-=gn-Ie.bottom-tt,j.y>Ie.bottom-Er&&(it+=j.y-Ie.bottom+Er)));var Zn=M.x+Ve,er=Zn+be,sr=M.y+it,zt=sr+he,je=j.x,Le=je+xe,Ft=j.y,Bt=Ft+ve,Wt=Math.max(Zn,je),Qt=Math.min(er,Le),tr=(Wt+Qt)/2,On=tr-Zn,wt=Math.max(sr,Ft),An=Math.min(zt,Bt),Un=(wt+An)/2,xr=Un-sr;l?.(t,Mt);var Vn=ht.right-M.x-(Ve+M.width),Zo=ht.bottom-M.y-(it+M.height);st===1&&(Ve=Math.round(Ve),Vn=Math.round(Vn)),et===1&&(it=Math.round(it),Zo=Math.round(Zo));var ha={ready:!0,offsetX:Ve/st,offsetY:it/et,offsetR:Vn/st,offsetB:Zo/et,arrowX:On/st,arrowY:xr/et,scaleX:st,scaleY:et,align:Mt};m(ha)}}),S=function(){g.current+=1;var R=g.current;Promise.resolve().then(function(){g.current===R&&C()})},O=function(){m(function(R){return q(q({},R),{},{ready:!1})})};return mn(O,[r]),mn(function(){e||O()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,S]}function o_(e,t,n,r,o){mn(function(){if(e&&t&&n){let g=function(){r(),o()};var s=t,l=n,u=wm(s),f=wm(l),h=au(l),m=new Set([h].concat($e(u),$e(f)));return m.forEach(function(y){y.addEventListener("scroll",g,{passive:!0})}),h.addEventListener("resize",g,{passive:!0}),r(),function(){m.forEach(function(y){y.removeEventListener("scroll",g),h.removeEventListener("resize",g)})}}},[e,t,n])}function i_(e,t,n,r,o,s,l,u){var f=d.useRef(e);f.current=e;var h=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||s)){var g=function(){h.current=!1},y=function(S){var O;f.current&&!l(((O=S.composedPath)===null||O===void 0||(O=O.call(S))===null||O===void 0?void 0:O[0])||S.target)&&!h.current&&u(!1)},w=au(r);w.addEventListener("pointerdown",g,!0),w.addEventListener("mousedown",y,!0),w.addEventListener("contextmenu",y,!0);var b=Zc(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),function(){w.removeEventListener("pointerdown",g,!0),w.removeEventListener("mousedown",y,!0),w.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,o,s]);function m(){h.current=!0}return m}var a_=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function s_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pw,t=d.forwardRef(function(n,r){var o=n.prefixCls,s=o===void 0?"rc-trigger-popup":o,l=n.children,u=n.action,f=u===void 0?"hover":u,h=n.showAction,m=n.hideAction,g=n.popupVisible,y=n.defaultPopupVisible,w=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,C=n.mouseEnterDelay,S=n.mouseLeaveDelay,O=S===void 0?.1:S,x=n.focusDelay,R=n.blurDelay,I=n.mask,P=n.maskClosable,$=P===void 0?!0:P,_=n.getPopupContainer,L=n.forceRender,F=n.autoDestroy,N=n.destroyPopupOnHide,z=n.popup,A=n.popupClassName,B=n.popupStyle,H=n.popupPlacement,X=n.builtinPlacements,V=X===void 0?{}:X,G=n.popupAlign,j=n.zIndex,J=n.stretch,K=n.getPopupClassNameFromAlign,D=n.fresh,M=n.alignPoint,te=n.onPopupClick,ee=n.onPopupAlign,Y=n.arrow,re=n.popupMotion,le=n.maskMotion,pe=n.popupTransitionName,ce=n.popupAnimation,Te=n.maskTransitionName,fe=n.maskAnimation,ue=n.className,he=n.getTriggerDOMNode,be=Lt(n,a_),ve=F||N||!1,xe=d.useState(!1),Ne=ae(xe,2),Pe=Ne[0],_e=Ne[1];mn(function(){_e(Ew())},[]);var We=d.useRef({}),De=d.useContext(rS),qe=d.useMemo(function(){return{registerSubPopup:function(pt,tn){We.current[pt]=tn,De?.registerSubPopup(pt,tn)}}},[De]),Ye=mw(),Ie=d.useState(null),dt=ae(Ie,2),ft=dt[0],ht=dt[1],st=d.useRef(null),et=Yn(function(ze){st.current=ze,Ll(ze)&&ft!==ze&&ht(ze),De?.registerSubPopup(Ye,ze)}),lt=d.useState(null),ke=ae(lt,2),mt=ke[0],St=ke[1],nt=d.useRef(null),tt=Yn(function(ze){Ll(ze)&&mt!==ze&&(St(ze),nt.current=ze)}),Et=d.Children.only(l),rt=Et?.props||{},xt={},Nt=Yn(function(ze){var pt,tn,hn=mt;return hn?.contains(ze)||((pt=Zc(hn))===null||pt===void 0?void 0:pt.host)===ze||ze===hn||ft?.contains(ze)||((tn=Zc(ft))===null||tn===void 0?void 0:tn.host)===ze||ze===ft||Object.values(We.current).some(function(sn){return sn?.contains(ze)||ze===sn})}),Cn=iS(s,re,ce,pe),Gt=iS(s,le,fe,Te),en=d.useState(y||!1),cn=ae(en,2),Ut=cn[0],It=cn[1],Ct=g??Ut,Vt=Yn(function(ze){g===void 0&&It(ze)});mn(function(){It(g||!1)},[g]);var Mt=d.useRef(Ct);Mt.current=Ct;var Ve=d.useRef([]);Ve.current=[];var it=Yn(function(ze){var pt;Vt(ze),((pt=Ve.current[Ve.current.length-1])!==null&&pt!==void 0?pt:Ct)!==ze&&(Ve.current.push(ze),w?.(ze))}),Tt=d.useRef(),Re=function(){clearTimeout(Tt.current)},de=function(pt){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Re(),tn===0?it(pt):Tt.current=setTimeout(function(){it(pt)},tn*1e3)};d.useEffect(function(){return Re},[]);var se=d.useState(!1),we=ae(se,2),Ke=we[0],Ae=we[1];mn(function(ze){(!ze||Ct)&&Ae(!0)},[Ct]);var _t=d.useState(null),kt=ae(_t,2),Pt=kt[0],Ot=kt[1],dn=d.useState(null),an=ae(dn,2),gn=an[0],Dn=an[1],Jt=function(pt){Dn([pt.clientX,pt.clientY])},fn=r_(Ct,ft,M&&gn!==null?gn:mt,H,V,G,ee),Oe=ae(fn,11),Me=Oe[0],gt=Oe[1],Je=Oe[2],jt=Oe[3],Mn=Oe[4],Hn=Oe[5],Xn=Oe[6],Ur=Oe[7],kn=Oe[8],vn=Oe[9],En=Oe[10],Cr=e_(Pe,f,h,m),xn=ae(Cr,2),wr=xn[0],Jn=xn[1],Er=wr.has("click"),Zn=Jn.has("click")||Jn.has("contextMenu"),er=Yn(function(){Ke||En()}),sr=function(){Mt.current&&M&&Zn&&de(!1)};o_(Ct,mt,ft,er,sr),mn(function(){er()},[gn,H]),mn(function(){Ct&&!(V!=null&&V[H])&&er()},[JSON.stringify(G)]);var zt=d.useMemo(function(){var ze=n_(V,s,vn,M);return Se(ze,K?.(vn))},[vn,K,V,s,M]);d.useImperativeHandle(r,function(){return{nativeElement:nt.current,popupElement:st.current,forceAlign:er}});var je=d.useState(0),Le=ae(je,2),Ft=Le[0],Bt=Le[1],Wt=d.useState(0),Qt=ae(Wt,2),tr=Qt[0],On=Qt[1],wt=function(){if(J&&mt){var pt=mt.getBoundingClientRect();Bt(pt.width),On(pt.height)}},An=function(){wt(),er()},Un=function(pt){Ae(!1),En(),b?.(pt)},xr=function(){return new Promise(function(pt){wt(),Ot(function(){return pt})})};mn(function(){Pt&&(En(),Pt(),Ot(null))},[Pt]);function Vn(ze,pt,tn,hn){xt[ze]=function(sn){var ma;hn?.(sn),de(pt,tn);for(var zo=arguments.length,ei=new Array(zo>1?zo-1:0),uo=1;uo<zo;uo++)ei[uo-1]=arguments[uo];(ma=rt[ze])===null||ma===void 0||ma.call.apply(ma,[rt,sn].concat(ei))}}(Er||Zn)&&(xt.onClick=function(ze){var pt;Mt.current&&Zn?de(!1):!Mt.current&&Er&&(Jt(ze),de(!0));for(var tn=arguments.length,hn=new Array(tn>1?tn-1:0),sn=1;sn<tn;sn++)hn[sn-1]=arguments[sn];(pt=rt.onClick)===null||pt===void 0||pt.call.apply(pt,[rt,ze].concat(hn))});var Zo=i_(Ct,Zn,mt,ft,I,$,Nt,de),ha=wr.has("hover"),lr=Jn.has("hover"),so,Or;ha&&(Vn("onMouseEnter",!0,C,function(ze){Jt(ze)}),Vn("onPointerEnter",!0,C,function(ze){Jt(ze)}),so=function(pt){(Ct||Ke)&&ft!==null&&ft!==void 0&&ft.contains(pt.target)&&de(!0,C)},M&&(xt.onMouseMove=function(ze){var pt;(pt=rt.onMouseMove)===null||pt===void 0||pt.call(rt,ze)})),lr&&(Vn("onMouseLeave",!1,O),Vn("onPointerLeave",!1,O),Or=function(){de(!1,O)}),wr.has("focus")&&Vn("onFocus",!0,x),Jn.has("focus")&&Vn("onBlur",!1,R),wr.has("contextMenu")&&(xt.onContextMenu=function(ze){var pt;Mt.current&&Jn.has("contextMenu")?de(!1):(Jt(ze),de(!0)),ze.preventDefault();for(var tn=arguments.length,hn=new Array(tn>1?tn-1:0),sn=1;sn<tn;sn++)hn[sn-1]=arguments[sn];(pt=rt.onContextMenu)===null||pt===void 0||pt.call.apply(pt,[rt,ze].concat(hn))}),ue&&(xt.className=Se(rt.className,ue));var Wn=d.useRef(!1);Wn.current||(Wn.current=L||Ct||Ke);var nr=q(q({},rt),xt),lo={},Ro=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ro.forEach(function(ze){be[ze]&&(lo[ze]=function(){for(var pt,tn=arguments.length,hn=new Array(tn),sn=0;sn<tn;sn++)hn[sn]=arguments[sn];(pt=nr[ze])===null||pt===void 0||pt.call.apply(pt,[nr].concat(hn)),be[ze].apply(be,hn)})});var Vr=d.cloneElement(Et,q(q({},nr),lo)),Os={x:Hn,y:Xn},pa=Y?q({},Y!==!0?Y:{}):null;return d.createElement(d.Fragment,null,d.createElement(ua,{disabled:!Ct,ref:tt,onResize:An},d.createElement(Z8,{getTriggerDOMNode:he},Vr)),Wn.current&&d.createElement(rS.Provider,{value:qe},d.createElement(J8,{portal:e,ref:et,prefixCls:s,popup:z,className:Se(A,zt),style:B,target:mt,onMouseEnter:so,onMouseLeave:Or,onPointerEnter:so,zIndex:j,open:Ct,keepDom:Ke,fresh:D,onClick:te,onPointerDownCapture:Zo,mask:I,motion:Cn,maskMotion:Gt,onVisibleChanged:Un,onPrepare:xr,forceRender:L,autoDestroy:ve,getPopupContainer:_,align:vn,arrow:pa,arrowPos:Os,ready:Me,offsetX:gt,offsetY:Je,offsetR:jt,offsetB:Mn,onAlign:er,stretch:J,targetWidth:Ft/Ur,targetHeight:tr/kn})))});return t}const Og=s_(pw);var l_=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],u_=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},c_=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,s=t.children,l=t.popupElement,u=t.animation,f=t.transitionName,h=t.dropdownStyle,m=t.dropdownClassName,g=t.direction,y=g===void 0?"ltr":g,w=t.placement,b=t.builtinPlacements,C=t.dropdownMatchSelectWidth,S=t.dropdownRender,O=t.dropdownAlign,x=t.getPopupContainer,R=t.empty,I=t.getTriggerDOMNode,P=t.onPopupVisibleChange,$=t.onPopupMouseEnter,_=Lt(t,l_),L="".concat(r,"-dropdown"),F=l;S&&(F=S(l));var N=d.useMemo(function(){return b||u_(C)},[b,C]),z=u?"".concat(L,"-").concat(u):f,A=typeof C=="number",B=d.useMemo(function(){return A?null:C===!1?"minWidth":"width"},[C,A]),H=h;A&&(H=q(q({},H),{},{width:C}));var X=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var G;return(G=X.current)===null||G===void 0?void 0:G.popupElement}}}),d.createElement(Og,Fe({},_,{showAction:P?["click"]:[],hideAction:P?["click"]:[],popupPlacement:w||(y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:L,popupTransitionName:z,popup:d.createElement("div",{onMouseEnter:$},F),ref:X,stretch:B,popupAlign:O,popupVisible:o,getPopupContainer:x,popupClassName:Se(m,U({},"".concat(L,"-empty"),R)),popupStyle:H,getTriggerDOMNode:I,onPopupVisibleChange:P}),s)},d_=d.forwardRef(c_);function cS(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Em(e){return typeof e<"u"&&!Number.isNaN(e)}function Dw(e,t){var n=e||{},r=n.label,o=n.value,s=n.options,l=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:o||"value",options:s||"options",groupLabel:l||u}}function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],s=Dw(n,!1),l=s.label,u=s.value,f=s.options,h=s.groupLabel;function m(g,y){Array.isArray(g)&&g.forEach(function(w){if(y||!(f in w)){var b=w[u];o.push({key:cS(w,o.length),groupOption:y,data:w,label:w[l],value:b})}else{var C=w[h];C===void 0&&r&&(C=w.label),o.push({key:cS(w,o.length),group:!0,data:w,label:C}),m(w[f],!0)}})}return m(e,!1),o}function xm(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return gr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var h_=function(t,n,r){if(!n||!n.length)return null;var o=!1,s=function u(f,h){var m=rC(h),g=m[0],y=m.slice(1);if(!g)return[f];var w=f.split(g);return o=o||w.length>1,w.reduce(function(b,C){return[].concat($e(b),$e(u(C,y)))},[]).filter(Boolean)},l=s(t,n);return o?typeof r<"u"?l.slice(0,r):l:null},Rg=d.createContext(null);function p_(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var s=o.label,l=o.value;return["number","string"].includes(ot(s))?s:l}).join(", ")),n.length>r?", ...":null)}var m_=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],g_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Om=function(t){return t==="tags"||t==="multiple"},v_=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,s=e.className,l=e.showSearch,u=e.tagRender,f=e.direction,h=e.omitDomProps,m=e.displayValues,g=e.onDisplayValuesChange,y=e.emptyOptions,w=e.notFoundContent,b=w===void 0?"Not Found":w,C=e.onClear,S=e.mode,O=e.disabled,x=e.loading,R=e.getInputElement,I=e.getRawInputElement,P=e.open,$=e.defaultOpen,_=e.onDropdownVisibleChange,L=e.activeValue,F=e.onActiveValueChange,N=e.activeDescendantId,z=e.searchValue,A=e.autoClearSearchValue,B=e.onSearch,H=e.onSearchSplit,X=e.tokenSeparators,V=e.allowClear,G=e.prefix,j=e.suffixIcon,J=e.clearIcon,K=e.OptionList,D=e.animation,M=e.transitionName,te=e.dropdownStyle,ee=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,re=e.dropdownRender,le=e.dropdownAlign,pe=e.placement,ce=e.builtinPlacements,Te=e.getPopupContainer,fe=e.showAction,ue=fe===void 0?[]:fe,he=e.onFocus,be=e.onBlur,ve=e.onKeyUp,xe=e.onKeyDown,Ne=e.onMouseDown,Pe=Lt(e,m_),_e=Om(S),We=(l!==void 0?l:_e)||S==="combobox",De=q({},Pe);g_.forEach(function(je){delete De[je]}),h?.forEach(function(je){delete De[je]});var qe=d.useState(!1),Ye=ae(qe,2),Ie=Ye[0],dt=Ye[1];d.useEffect(function(){dt(Ew())},[]);var ft=d.useRef(null),ht=d.useRef(null),st=d.useRef(null),et=d.useRef(null),lt=d.useRef(null),ke=d.useRef(!1),mt=w8(),St=ae(mt,3),nt=St[0],tt=St[1],Et=St[2];d.useImperativeHandle(t,function(){var je,Le;return{focus:(je=et.current)===null||je===void 0?void 0:je.focus,blur:(Le=et.current)===null||Le===void 0?void 0:Le.blur,scrollTo:function(Bt){var Wt;return(Wt=lt.current)===null||Wt===void 0?void 0:Wt.scrollTo(Bt)},nativeElement:ft.current||ht.current}});var rt=d.useMemo(function(){var je;if(S!=="combobox")return z;var Le=(je=m[0])===null||je===void 0?void 0:je.value;return typeof Le=="string"||typeof Le=="number"?String(Le):""},[z,S,m]),xt=S==="combobox"&&typeof R=="function"&&R()||null,Nt=typeof I=="function"&&I(),Cn=la(ht,Nt==null||(n=Nt.props)===null||n===void 0?void 0:n.ref),Gt=d.useState(!1),en=ae(Gt,2),cn=en[0],Ut=en[1];mn(function(){Ut(!0)},[]);var It=Yo(!1,{defaultValue:$,value:P}),Ct=ae(It,2),Vt=Ct[0],Mt=Ct[1],Ve=cn?Vt:!1,it=!b&&y;(O||it&&Ve&&S==="combobox")&&(Ve=!1);var Tt=it?!1:Ve,Re=d.useCallback(function(je){var Le=je!==void 0?je:!Ve;O||(Mt(Le),Ve!==Le&&_?.(Le))},[O,Ve,Mt,_]),de=d.useMemo(function(){return(X||[]).some(function(je){return[`
|
|
161
|
-
`,`\r
|
|
162
|
-
`].includes(je)})},[X]),se=d.useContext(Rg)||{},we=se.maxCount,Ke=se.rawValues,Ae=function(Le,Ft,Bt){if(!(_e&&Em(we)&&Ke?.size>=we)){var Wt=!0,Qt=Le;F?.(null);var tr=h_(Le,X,Em(we)?we-Ke.size:void 0),On=Bt?null:tr;return S!=="combobox"&&On&&(Qt="",H?.(On),Re(!1),Wt=!1),B&&rt!==Qt&&B(Qt,{source:Ft?"typing":"effect"}),Wt}},_t=function(Le){!Le||!Le.trim()||B(Le,{source:"submit"})};d.useEffect(function(){!Ve&&!_e&&S!=="combobox"&&Ae("",!1,!1)},[Ve]),d.useEffect(function(){Vt&&O&&Mt(!1),O&&!ke.current&&tt(!1)},[O]);var kt=Ow(),Pt=ae(kt,2),Ot=Pt[0],dn=Pt[1],an=d.useRef(!1),gn=function(Le){var Ft=Ot(),Bt=Le.key,Wt=Bt==="Enter";if(Wt&&(S!=="combobox"&&Le.preventDefault(),Ve||Re(!0)),dn(!!rt),Bt==="Backspace"&&!Ft&&_e&&!rt&&m.length){for(var Qt=$e(m),tr=null,On=Qt.length-1;On>=0;On-=1){var wt=Qt[On];if(!wt.disabled){Qt.splice(On,1),tr=wt;break}}tr&&g(Qt,{type:"remove",values:[tr]})}for(var An=arguments.length,Un=new Array(An>1?An-1:0),xr=1;xr<An;xr++)Un[xr-1]=arguments[xr];if(Ve&&(!Wt||!an.current)){var Vn;Wt&&(an.current=!0),(Vn=lt.current)===null||Vn===void 0||Vn.onKeyDown.apply(Vn,[Le].concat(Un))}xe?.apply(void 0,[Le].concat(Un))},Dn=function(Le){for(var Ft=arguments.length,Bt=new Array(Ft>1?Ft-1:0),Wt=1;Wt<Ft;Wt++)Bt[Wt-1]=arguments[Wt];if(Ve){var Qt;(Qt=lt.current)===null||Qt===void 0||Qt.onKeyUp.apply(Qt,[Le].concat(Bt))}Le.key==="Enter"&&(an.current=!1),ve?.apply(void 0,[Le].concat(Bt))},Jt=function(Le){var Ft=m.filter(function(Bt){return Bt!==Le});g(Ft,{type:"remove",values:[Le]})},fn=function(){an.current=!1},Oe=d.useRef(!1),Me=function(){tt(!0),O||(he&&!Oe.current&&he.apply(void 0,arguments),ue.includes("focus")&&Re(!0)),Oe.current=!0},gt=function(){ke.current=!0,tt(!1,function(){Oe.current=!1,ke.current=!1,Re(!1)}),!O&&(rt&&(S==="tags"?B(rt,{source:"submit"}):S==="multiple"&&B("",{source:"blur"})),be&&be.apply(void 0,arguments))},Je=[];d.useEffect(function(){return function(){Je.forEach(function(je){return clearTimeout(je)}),Je.splice(0,Je.length)}},[]);var jt=function(Le){var Ft,Bt=Le.target,Wt=(Ft=st.current)===null||Ft===void 0?void 0:Ft.getPopupElement();if(Wt&&Wt.contains(Bt)){var Qt=setTimeout(function(){var An=Je.indexOf(Qt);if(An!==-1&&Je.splice(An,1),Et(),!Ie&&!Wt.contains(document.activeElement)){var Un;(Un=et.current)===null||Un===void 0||Un.focus()}});Je.push(Qt)}for(var tr=arguments.length,On=new Array(tr>1?tr-1:0),wt=1;wt<tr;wt++)On[wt-1]=arguments[wt];Ne?.apply(void 0,[Le].concat(On))},Mn=d.useState({}),Hn=ae(Mn,2),Xn=Hn[1];function Ur(){Xn({})}var kn;Nt&&(kn=function(Le){Re(Le)}),E8(function(){var je;return[ft.current,(je=st.current)===null||je===void 0?void 0:je.getPopupElement()]},Tt,Re,!!Nt);var vn=d.useMemo(function(){return q(q({},e),{},{notFoundContent:b,open:Ve,triggerOpen:Tt,id:r,showSearch:We,multiple:_e,toggleOpen:Re})},[e,b,Tt,Ve,r,We,_e,Re]),En=!!j||x,Cr;En&&(Cr=d.createElement(Fd,{className:Se("".concat(o,"-arrow"),U({},"".concat(o,"-arrow-loading"),x)),customizeIcon:j,customizeIconProps:{loading:x,searchValue:rt,open:Ve,focused:nt,showSearch:We}}));var xn=function(){var Le;C?.(),(Le=et.current)===null||Le===void 0||Le.focus(),g([],{type:"clear",values:m}),Ae("",!1,!1)},wr=b8(o,xn,m,V,J,O,rt,S),Jn=wr.allowClear,Er=wr.clearIcon,Zn=d.createElement(K,{ref:lt}),er=Se(o,s,U(U(U(U(U(U(U(U(U(U({},"".concat(o,"-focused"),nt),"".concat(o,"-multiple"),_e),"".concat(o,"-single"),!_e),"".concat(o,"-allow-clear"),V),"".concat(o,"-show-arrow"),En),"".concat(o,"-disabled"),O),"".concat(o,"-loading"),x),"".concat(o,"-open"),Ve),"".concat(o,"-customize-input"),xt),"".concat(o,"-show-search"),We)),sr=d.createElement(d_,{ref:st,disabled:O,prefixCls:o,visible:Tt,popupElement:Zn,animation:D,transitionName:M,dropdownStyle:te,dropdownClassName:ee,direction:f,dropdownMatchSelectWidth:Y,dropdownRender:re,dropdownAlign:le,placement:pe,builtinPlacements:ce,getPopupContainer:Te,empty:y,getTriggerDOMNode:function(Le){return ht.current||Le},onPopupVisibleChange:kn,onPopupMouseEnter:Ur},Nt?d.cloneElement(Nt,{ref:Cn}):d.createElement(G8,Fe({},e,{domRef:ht,prefixCls:o,inputElement:xt,ref:et,id:r,prefix:G,showSearch:We,autoClearSearchValue:A,mode:S,activeDescendantId:N,tagRender:u,values:m,open:Ve,onToggleOpen:Re,activeValue:L,searchValue:rt,onSearch:Ae,onSearchSubmit:_t,onRemove:Jt,tokenWithEnter:de,onInputBlur:fn}))),zt;return Nt?zt=sr:zt=d.createElement("div",Fe({className:er},De,{ref:ft,onMouseDown:jt,onKeyDown:gn,onKeyUp:Dn,onFocus:Me,onBlur:gt}),d.createElement(p_,{visible:nt&&!Ve,values:m}),sr,Cr,Jn&&Er),d.createElement(xw.Provider,{value:vn},zt)}),Ig=function(){return null};Ig.isSelectOptGroup=!0;var Tg=function(){return null};Tg.isSelectOption=!0;var Lw=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,s=e.children,l=e.prefixCls,u=e.onInnerResize,f=e.innerProps,h=e.rtl,m=e.extra,g={},y={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},y=q(q({},y),{},U(U(U(U(U({transform:"translateY(".concat(r,"px)")},h?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:g},d.createElement(ua,{onResize:function(b){var C=b.offsetHeight;C&&u&&u()}},d.createElement("div",Fe({style:y,className:Se(U({},"".concat(l,"-holder-inner"),l)),ref:t},f),s,m)))});Lw.displayName="Filler";function y_(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function S_(e,t,n,r,o,s,l,u){var f=u.getKey;return e.slice(t,n+1).map(function(h,m){var g=t+m,y=l(h,g,{style:{width:r},offsetX:o}),w=f(h);return d.createElement(y_,{key:w,setRef:function(C){return s(h,C)}},y)})}function b_(e,t,n){var r=e.length,o=t.length,s,l;if(r===0&&o===0)return null;r<o?(s=e,l=t):(s=t,l=e);var u={__EMPTY_ITEM__:!0};function f(b){return b!==void 0?n(b):u}for(var h=null,m=Math.abs(r-o)!==1,g=0;g<l.length;g+=1){var y=f(s[g]),w=f(l[g]);if(y!==w){h=g,m=m||y!==f(l[g+1]);break}}return h===null?null:{index:h,multiple:m}}function C_(e,t,n){var r=d.useState(e),o=ae(r,2),s=o[0],l=o[1],u=d.useState(null),f=ae(u,2),h=f[0],m=f[1];return d.useEffect(function(){var g=b_(s||[],e||[],t);g?.index!==void 0&&m(e[g.index]),l(e)},[e]),[h]}var dS=(typeof navigator>"u"?"undefined":ot(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Fw=(function(e,t,n,r){var o=d.useRef(!1),s=d.useRef(null);function l(){clearTimeout(s.current),o.current=!0,s.current=setTimeout(function(){o.current=!1},50)}var u=d.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(f,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?h<0&&u.current.left||h>0&&u.current.right:h<0&&u.current.top||h>0&&u.current.bottom;return m&&g?(clearTimeout(s.current),o.current=!1):(!g||o.current)&&l(),!o.current&&g}});function w_(e,t,n,r,o,s,l){var u=d.useRef(0),f=d.useRef(null),h=d.useRef(null),m=d.useRef(!1),g=Fw(t,n,r,o);function y(x,R){if(bn.cancel(f.current),!g(!1,R)){var I=x;if(!I._virtualHandled)I._virtualHandled=!0;else return;u.current+=R,h.current=R,dS||I.preventDefault(),f.current=bn(function(){var P=m.current?10:1;l(u.current*P,!1),u.current=0})}}function w(x,R){l(R,!0),dS||x.preventDefault()}var b=d.useRef(null),C=d.useRef(null);function S(x){if(e){bn.cancel(C.current),C.current=bn(function(){b.current=null},2);var R=x.deltaX,I=x.deltaY,P=x.shiftKey,$=R,_=I;(b.current==="sx"||!b.current&&P&&I&&!R)&&($=I,_=0,b.current="sx");var L=Math.abs($),F=Math.abs(_);b.current===null&&(b.current=s&&L>F?"x":"y"),b.current==="y"?y(x,_):w(x,$)}}function O(x){e&&(m.current=x.detail===h.current)}return[S,O]}function E_(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),s=ae(o,2),l=s[0],u=s[1],f=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,y=l.get(m),w=l.get(g);if(y===void 0||w===void 0)for(var b=e.length,C=u.length;C<b;C+=1){var S,O=e[C],x=t(O);l.set(x,C);var R=(S=n.get(x))!==null&&S!==void 0?S:r;if(u[C]=(u[C-1]||0)+R,x===m&&(y=C),x===g&&(w=C),y!==void 0&&w!==void 0)break}return{top:u[y-1]||0,bottom:u[w]}};return f}var x_=(function(){function e(){$n(this,e),U(this,"maps",void 0),U(this,"id",0),U(this,"diffRecords",new Map),this.maps=Object.create(null)}return _n(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function fS(e){var t=parseFloat(e);return isNaN(t)?0:t}function O_(e,t,n){var r=d.useState(0),o=ae(r,2),s=o[0],l=o[1],u=d.useRef(new Map),f=d.useRef(new x_),h=d.useRef(0);function m(){h.current+=1}function g(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var b=function(){var O=!1;u.current.forEach(function(x,R){if(x&&x.offsetParent){var I=x.offsetHeight,P=getComputedStyle(x),$=P.marginTop,_=P.marginBottom,L=fS($),F=fS(_),N=I+L+F;f.current.get(R)!==N&&(f.current.set(R,N),O=!0)}}),O&&l(function(x){return x+1})};if(w)b();else{h.current+=1;var C=h.current;Promise.resolve().then(function(){C===h.current&&b()})}}function y(w,b){var C=e(w);u.current.get(C),b?(u.current.set(C,b),g()):u.current.delete(C)}return d.useEffect(function(){return m},[]),[y,g,f.current,s]}var hS=14/15;function R_(e,t,n){var r=d.useRef(!1),o=d.useRef(0),s=d.useRef(0),l=d.useRef(null),u=d.useRef(null),f,h=function(w){if(r.current){var b=Math.ceil(w.touches[0].pageX),C=Math.ceil(w.touches[0].pageY),S=o.current-b,O=s.current-C,x=Math.abs(S)>Math.abs(O);x?o.current=b:s.current=C;var R=n(x,x?S:O,!1,w);R&&w.preventDefault(),clearInterval(u.current),R&&(u.current=setInterval(function(){x?S*=hS:O*=hS;var I=Math.floor(x?S:O);(!n(x,I,!0)||Math.abs(I)<=.1)&&clearInterval(u.current)},16))}},m=function(){r.current=!1,f()},g=function(w){f(),w.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(w.touches[0].pageX),s.current=Math.ceil(w.touches[0].pageY),l.current=w.target,l.current.addEventListener("touchmove",h,{passive:!1}),l.current.addEventListener("touchend",m,{passive:!0}))};f=function(){l.current&&(l.current.removeEventListener("touchmove",h),l.current.removeEventListener("touchend",m))},mn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var y;(y=t.current)===null||y===void 0||y.removeEventListener("touchstart",g),f(),clearInterval(u.current)}},[e])}function pS(e){return Math.floor(Math.pow(e,.5))}function Rm(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function I_(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,s,l,u=function(){bn.cancel(s)},f=function y(){u(),s=bn(function(){n(l),y()})},h=function(){o=!1,u()},m=function(w){if(!(w.target.draggable||w.button!==0)){var b=w;b._virtualHandled||(b._virtualHandled=!0,o=!0)}},g=function(w){if(o){var b=Rm(w,!1),C=r.getBoundingClientRect(),S=C.top,O=C.bottom;if(b<=S){var x=S-b;l=-pS(x),f()}else if(b>=O){var R=b-O;l=pS(R),f()}else u()}};return r.addEventListener("mousedown",m),r.ownerDocument.addEventListener("mouseup",h),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",h),function(){r.removeEventListener("mousedown",m),r.ownerDocument.removeEventListener("mouseup",h),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",h),u()}}},[e])}var T_=10;function P_(e,t,n,r,o,s,l,u){var f=d.useRef(),h=d.useState(null),m=ae(h,2),g=m[0],y=m[1];return mn(function(){if(g&&g.times<T_){if(!e.current){y(function(J){return q({},J)});return}s();var w=g.targetAlign,b=g.originAlign,C=g.index,S=g.offset,O=e.current.clientHeight,x=!1,R=w,I=null;if(O){for(var P=w||b,$=0,_=0,L=0,F=Math.min(t.length-1,C),N=0;N<=F;N+=1){var z=o(t[N]);_=$;var A=n.get(z);L=_+(A===void 0?r:A),$=L}for(var B=P==="top"?S:O-S,H=F;H>=0;H-=1){var X=o(t[H]),V=n.get(X);if(V===void 0){x=!0;break}if(B-=V,B<=0)break}switch(P){case"top":I=_-S;break;case"bottom":I=L-O+S;break;default:{var G=e.current.scrollTop,j=G+O;_<G?R="top":L>j&&(R="bottom")}}I!==null&&l(I),I!==g.lastTop&&(x=!0)}x&&y(q(q({},g),{},{times:g.times+1,targetAlign:R,lastTop:I}))}},[g,e.current]),function(w){if(w==null){u();return}if(bn.cancel(f.current),typeof w=="number")l(w);else if(w&&ot(w)==="object"){var b,C=w.align;"index"in w?b=w.index:b=t.findIndex(function(x){return o(x)===w.key});var S=w.offset,O=S===void 0?0:S;y({times:0,index:b,offset:O,originAlign:C})}}}var mS=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,s=e.scrollRange,l=e.onStartMove,u=e.onStopMove,f=e.onScroll,h=e.horizontal,m=e.spinSize,g=e.containerSize,y=e.style,w=e.thumbStyle,b=e.showScrollBar,C=d.useState(!1),S=ae(C,2),O=S[0],x=S[1],R=d.useState(null),I=ae(R,2),P=I[0],$=I[1],_=d.useState(null),L=ae(_,2),F=L[0],N=L[1],z=!r,A=d.useRef(),B=d.useRef(),H=d.useState(b),X=ae(H,2),V=X[0],G=X[1],j=d.useRef(),J=function(){b===!0||b===!1||(clearTimeout(j.current),G(!0),j.current=setTimeout(function(){G(!1)},3e3))},K=s-g||0,D=g-m||0,M=d.useMemo(function(){if(o===0||K===0)return 0;var fe=o/K;return fe*D},[o,K,D]),te=function(ue){ue.stopPropagation(),ue.preventDefault()},ee=d.useRef({top:M,dragging:O,pageY:P,startTop:F});ee.current={top:M,dragging:O,pageY:P,startTop:F};var Y=function(ue){x(!0),$(Rm(ue,h)),N(ee.current.top),l(),ue.stopPropagation(),ue.preventDefault()};d.useEffect(function(){var fe=function(ve){ve.preventDefault()},ue=A.current,he=B.current;return ue.addEventListener("touchstart",fe,{passive:!1}),he.addEventListener("touchstart",Y,{passive:!1}),function(){ue.removeEventListener("touchstart",fe),he.removeEventListener("touchstart",Y)}},[]);var re=d.useRef();re.current=K;var le=d.useRef();le.current=D,d.useEffect(function(){if(O){var fe,ue=function(ve){var xe=ee.current,Ne=xe.dragging,Pe=xe.pageY,_e=xe.startTop;bn.cancel(fe);var We=A.current.getBoundingClientRect(),De=g/(h?We.width:We.height);if(Ne){var qe=(Rm(ve,h)-Pe)*De,Ye=_e;!z&&h?Ye-=qe:Ye+=qe;var Ie=re.current,dt=le.current,ft=dt?Ye/dt:0,ht=Math.ceil(ft*Ie);ht=Math.max(ht,0),ht=Math.min(ht,Ie),fe=bn(function(){f(ht,h)})}},he=function(){x(!1),u()};return window.addEventListener("mousemove",ue,{passive:!0}),window.addEventListener("touchmove",ue,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),bn.cancel(fe)}}},[O]),d.useEffect(function(){return J(),function(){clearTimeout(j.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:J}});var pe="".concat(n,"-scrollbar"),ce={position:"absolute",visibility:V?null:"hidden"},Te={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return h?(Object.assign(ce,{height:8,left:0,right:0,bottom:0}),Object.assign(Te,U({height:"100%",width:m},z?"left":"right",M))):(Object.assign(ce,U({width:8,top:0,bottom:0},z?"right":"left",0)),Object.assign(Te,{width:"100%",height:m,top:M})),d.createElement("div",{ref:A,className:Se(pe,U(U(U({},"".concat(pe,"-horizontal"),h),"".concat(pe,"-vertical"),!h),"".concat(pe,"-visible"),V)),style:q(q({},ce),y),onMouseDown:te,onMouseMove:J},d.createElement("div",{ref:B,className:Se("".concat(pe,"-thumb"),U({},"".concat(pe,"-thumb-moving"),O)),style:q(q({},Te),w),onMouseDown:Y}))}),$_=20;function gS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,$_),Math.floor(n)}var __=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],D_=[],L_={overflowY:"auto",overflowAnchor:"none"};function F_(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,s=e.height,l=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,h=e.style,m=e.data,g=e.children,y=e.itemKey,w=e.virtual,b=e.direction,C=e.scrollWidth,S=e.component,O=S===void 0?"div":S,x=e.onScroll,R=e.onVirtualScroll,I=e.onVisibleChange,P=e.innerProps,$=e.extraRender,_=e.styles,L=e.showScrollBar,F=L===void 0?"optional":L,N=Lt(e,__),z=d.useCallback(function(Oe){return typeof y=="function"?y(Oe):Oe?.[y]},[y]),A=O_(z),B=ae(A,4),H=B[0],X=B[1],V=B[2],G=B[3],j=!!(w!==!1&&s&&l),J=d.useMemo(function(){return Object.values(V.maps).reduce(function(Oe,Me){return Oe+Me},0)},[V.id,V.maps]),K=j&&m&&(Math.max(l*m.length,J)>s||!!C),D=b==="rtl",M=Se(r,U({},"".concat(r,"-rtl"),D),o),te=m||D_,ee=d.useRef(),Y=d.useRef(),re=d.useRef(),le=d.useState(0),pe=ae(le,2),ce=pe[0],Te=pe[1],fe=d.useState(0),ue=ae(fe,2),he=ue[0],be=ue[1],ve=d.useState(!1),xe=ae(ve,2),Ne=xe[0],Pe=xe[1],_e=function(){Pe(!0)},We=function(){Pe(!1)},De={getKey:z};function qe(Oe){Te(function(Me){var gt;typeof Oe=="function"?gt=Oe(Me):gt=Oe;var Je=Ut(gt);return ee.current.scrollTop=Je,Je})}var Ye=d.useRef({start:0,end:te.length}),Ie=d.useRef(),dt=C_(te,z),ft=ae(dt,1),ht=ft[0];Ie.current=ht;var st=d.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:te.length-1,offset:void 0};if(!K){var Oe;return{scrollHeight:((Oe=Y.current)===null||Oe===void 0?void 0:Oe.offsetHeight)||0,start:0,end:te.length-1,offset:void 0}}for(var Me=0,gt,Je,jt,Mn=te.length,Hn=0;Hn<Mn;Hn+=1){var Xn=te[Hn],Ur=z(Xn),kn=V.get(Ur),vn=Me+(kn===void 0?l:kn);vn>=ce&>===void 0&&(gt=Hn,Je=Me),vn>ce+s&&jt===void 0&&(jt=Hn),Me=vn}return gt===void 0&&(gt=0,Je=0,jt=Math.ceil(s/l)),jt===void 0&&(jt=te.length-1),jt=Math.min(jt+1,te.length-1),{scrollHeight:Me,start:gt,end:jt,offset:Je}},[K,j,ce,te,G,s]),et=st.scrollHeight,lt=st.start,ke=st.end,mt=st.offset;Ye.current.start=lt,Ye.current.end=ke,d.useLayoutEffect(function(){var Oe=V.getRecord();if(Oe.size===1){var Me=Array.from(Oe.keys())[0],gt=Oe.get(Me),Je=te[lt];if(Je&>===void 0){var jt=z(Je);if(jt===Me){var Mn=V.get(Me),Hn=Mn-l;qe(function(Xn){return Xn+Hn})}}}V.resetRecord()},[et]);var St=d.useState({width:0,height:s}),nt=ae(St,2),tt=nt[0],Et=nt[1],rt=function(Me){Et({width:Me.offsetWidth,height:Me.offsetHeight})},xt=d.useRef(),Nt=d.useRef(),Cn=d.useMemo(function(){return gS(tt.width,C)},[tt.width,C]),Gt=d.useMemo(function(){return gS(tt.height,et)},[tt.height,et]),en=et-s,cn=d.useRef(en);cn.current=en;function Ut(Oe){var Me=Oe;return Number.isNaN(cn.current)||(Me=Math.min(Me,cn.current)),Me=Math.max(Me,0),Me}var It=ce<=0,Ct=ce>=en,Vt=he<=0,Mt=he>=C,Ve=Fw(It,Ct,Vt,Mt),it=function(){return{x:D?-he:he,y:ce}},Tt=d.useRef(it()),Re=Yn(function(Oe){if(R){var Me=q(q({},it()),Oe);(Tt.current.x!==Me.x||Tt.current.y!==Me.y)&&(R(Me),Tt.current=Me)}});function de(Oe,Me){var gt=Oe;Me?(Ii.flushSync(function(){be(gt)}),Re()):qe(gt)}function se(Oe){var Me=Oe.currentTarget.scrollTop;Me!==ce&&qe(Me),x?.(Oe),Re()}var we=function(Me){var gt=Me,Je=C?C-tt.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,Je),gt},Ke=Yn(function(Oe,Me){Me?(Ii.flushSync(function(){be(function(gt){var Je=gt+(D?-Oe:Oe);return we(Je)})}),Re()):qe(function(gt){var Je=gt+Oe;return Je})}),Ae=w_(j,It,Ct,Vt,Mt,!!C,Ke),_t=ae(Ae,2),kt=_t[0],Pt=_t[1];R_(j,ee,function(Oe,Me,gt,Je){var jt=Je;return Ve(Oe,Me,gt)?!1:!jt||!jt._virtualHandled?(jt&&(jt._virtualHandled=!0),kt({preventDefault:function(){},deltaX:Oe?Me:0,deltaY:Oe?0:Me}),!0):!1}),I_(K,ee,function(Oe){qe(function(Me){return Me+Oe})}),mn(function(){function Oe(gt){var Je=It&>.detail<0,jt=Ct&>.detail>0;j&&!Je&&!jt&>.preventDefault()}var Me=ee.current;return Me.addEventListener("wheel",kt,{passive:!1}),Me.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Me.addEventListener("MozMousePixelScroll",Oe,{passive:!1}),function(){Me.removeEventListener("wheel",kt),Me.removeEventListener("DOMMouseScroll",Pt),Me.removeEventListener("MozMousePixelScroll",Oe)}},[j,It,Ct]),mn(function(){if(C){var Oe=we(he);be(Oe),Re({x:Oe})}},[tt.width,C]);var Ot=function(){var Me,gt;(Me=xt.current)===null||Me===void 0||Me.delayHidden(),(gt=Nt.current)===null||gt===void 0||gt.delayHidden()},dn=P_(ee,te,V,l,z,function(){return X(!0)},qe,Ot);d.useImperativeHandle(t,function(){return{nativeElement:re.current,getScrollInfo:it,scrollTo:function(Me){function gt(Je){return Je&&ot(Je)==="object"&&("left"in Je||"top"in Je)}gt(Me)?(Me.left!==void 0&&be(we(Me.left)),dn(Me.top)):dn(Me)}}}),mn(function(){if(I){var Oe=te.slice(lt,ke+1);I(Oe,te)}},[lt,ke,te]);var an=E_(te,z,V,l),gn=$?.({start:lt,end:ke,virtual:K,offsetX:he,offsetY:mt,rtl:D,getSize:an}),Dn=S_(te,lt,ke,C,he,H,g,De),Jt=null;s&&(Jt=q(U({},f?"height":"maxHeight",s),L_),j&&(Jt.overflowY="hidden",C&&(Jt.overflowX="hidden"),Ne&&(Jt.pointerEvents="none")));var fn={};return D&&(fn.dir="rtl"),d.createElement("div",Fe({ref:re,style:q(q({},h),{},{position:"relative"}),className:M},fn,N),d.createElement(ua,{onResize:rt},d.createElement(O,{className:"".concat(r,"-holder"),style:Jt,ref:ee,onScroll:se,onMouseEnter:Ot},d.createElement(Lw,{prefixCls:r,height:et,offsetX:he,offsetY:mt,scrollWidth:C,onInnerResize:X,ref:Y,innerProps:P,rtl:D,extra:gn},Dn))),K&&et>s&&d.createElement(mS,{ref:xt,prefixCls:r,scrollOffset:ce,scrollRange:et,rtl:D,onScroll:de,onStartMove:_e,onStopMove:We,spinSize:Gt,containerSize:tt.height,style:_?.verticalScrollBar,thumbStyle:_?.verticalScrollBarThumb,showScrollBar:F}),K&&C>tt.width&&d.createElement(mS,{ref:Nt,prefixCls:r,scrollOffset:he,scrollRange:C,rtl:D,onScroll:de,onStartMove:_e,onStopMove:We,spinSize:Cn,containerSize:tt.width,horizontal:!0,style:_?.horizontalScrollBar,thumbStyle:_?.horizontalScrollBarThumb,showScrollBar:F}))}var Nw=d.forwardRef(F_);Nw.displayName="List";function N_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var M_=["disabled","title","children","style","className"];function vS(e){return typeof e=="string"||typeof e=="number"}var k_=function(t,n){var r=C8(),o=r.prefixCls,s=r.id,l=r.open,u=r.multiple,f=r.mode,h=r.searchValue,m=r.toggleOpen,g=r.notFoundContent,y=r.onPopupScroll,w=d.useContext(Rg),b=w.maxCount,C=w.flattenOptions,S=w.onActiveValue,O=w.defaultActiveFirstOption,x=w.onSelect,R=w.menuItemSelectedIcon,I=w.rawValues,P=w.fieldNames,$=w.virtual,_=w.direction,L=w.listHeight,F=w.listItemHeight,N=w.optionRender,z="".concat(o,"-item"),A=Zl(function(){return C},[l,C],function(fe,ue){return ue[0]&&fe[1]!==ue[1]}),B=d.useRef(null),H=d.useMemo(function(){return u&&Em(b)&&I?.size>=b},[u,b,I?.size]),X=function(ue){ue.preventDefault()},V=function(ue){var he;(he=B.current)===null||he===void 0||he.scrollTo(typeof ue=="number"?{index:ue}:ue)},G=d.useCallback(function(fe){return f==="combobox"?!1:I.has(fe)},[f,$e(I).toString(),I.size]),j=function(ue){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=A.length,ve=0;ve<be;ve+=1){var xe=(ue+ve*he+be)%be,Ne=A[xe]||{},Pe=Ne.group,_e=Ne.data;if(!Pe&&!(_e!=null&&_e.disabled)&&(G(_e.value)||!H))return xe}return-1},J=d.useState(function(){return j(0)}),K=ae(J,2),D=K[0],M=K[1],te=function(ue){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;M(ue);var be={source:he?"keyboard":"mouse"},ve=A[ue];if(!ve){S(null,-1,be);return}S(ve.value,ue,be)};d.useEffect(function(){te(O!==!1?j(0):-1)},[A.length,h]);var ee=d.useCallback(function(fe){return f==="combobox"?String(fe).toLowerCase()===h.toLowerCase():I.has(fe)},[f,h,$e(I).toString(),I.size]);d.useEffect(function(){var fe=setTimeout(function(){if(!u&&l&&I.size===1){var he=Array.from(I)[0],be=A.findIndex(function(ve){var xe=ve.data;return h?String(xe.value).startsWith(h):xe.value===he});be!==-1&&(te(be),V(be))}});if(l){var ue;(ue=B.current)===null||ue===void 0||ue.scrollTo(void 0)}return function(){return clearTimeout(fe)}},[l,h]);var Y=function(ue){ue!==void 0&&x(ue,{selected:!I.has(ue)}),u||m(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ue){var he=ue.which,be=ue.ctrlKey;switch(he){case at.N:case at.P:case at.UP:case at.DOWN:{var ve=0;if(he===at.UP?ve=-1:he===at.DOWN?ve=1:N_()&&be&&(he===at.N?ve=1:he===at.P&&(ve=-1)),ve!==0){var xe=j(D+ve,ve);V(xe),te(xe,!0)}break}case at.TAB:case at.ENTER:{var Ne,Pe=A[D];Pe&&!(Pe!=null&&(Ne=Pe.data)!==null&&Ne!==void 0&&Ne.disabled)&&!H?Y(Pe.value):Y(void 0),l&&ue.preventDefault();break}case at.ESC:m(!1),l&&ue.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ue){V(ue)}}}),A.length===0)return d.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(z,"-empty"),onMouseDown:X},g);var re=Object.keys(P).map(function(fe){return P[fe]}),le=function(ue){return ue.label};function pe(fe,ue){var he=fe.group;return{role:he?"presentation":"option",id:"".concat(s,"_list_").concat(ue)}}var ce=function(ue){var he=A[ue];if(!he)return null;var be=he.data||{},ve=be.value,xe=he.group,Ne=us(be,!0),Pe=le(he);return he?d.createElement("div",Fe({"aria-label":typeof Pe=="string"&&!xe?Pe:null},Ne,{key:ue},pe(he,ue),{"aria-selected":ee(ve)}),ve):null},Te={role:"listbox",id:"".concat(s,"_list")};return d.createElement(d.Fragment,null,$&&d.createElement("div",Fe({},Te,{style:{height:0,width:0,overflow:"hidden"}}),ce(D-1),ce(D),ce(D+1)),d.createElement(Nw,{itemKey:"key",ref:B,data:A,height:L,itemHeight:F,fullHeight:!1,onMouseDown:X,onScroll:y,virtual:$,direction:_,innerProps:$?null:Te},function(fe,ue){var he=fe.group,be=fe.groupOption,ve=fe.data,xe=fe.label,Ne=fe.value,Pe=ve.key;if(he){var _e,We=(_e=ve.title)!==null&&_e!==void 0?_e:vS(xe)?xe.toString():void 0;return d.createElement("div",{className:Se(z,"".concat(z,"-group"),ve.className),title:We},xe!==void 0?xe:Pe)}var De=ve.disabled,qe=ve.title;ve.children;var Ye=ve.style,Ie=ve.className,dt=Lt(ve,M_),ft=ao(dt,re),ht=G(Ne),st=De||!ht&&H,et="".concat(z,"-option"),lt=Se(z,et,Ie,U(U(U(U({},"".concat(et,"-grouped"),be),"".concat(et,"-active"),D===ue&&!st),"".concat(et,"-disabled"),st),"".concat(et,"-selected"),ht)),ke=le(fe),mt=!R||typeof R=="function"||ht,St=typeof ke=="number"?ke:ke||Ne,nt=vS(St)?St.toString():void 0;return qe!==void 0&&(nt=qe),d.createElement("div",Fe({},us(ft),$?{}:pe(fe,ue),{"aria-selected":ee(Ne),className:lt,title:nt,onMouseMove:function(){D===ue||st||te(ue)},onClick:function(){st||Y(Ne)},style:Ye}),d.createElement("div",{className:"".concat(et,"-content")},typeof N=="function"?N(fe,{index:ue}):St),d.isValidElement(R)||ht,mt&&d.createElement(Fd,{className:"".concat(z,"-option-state"),customizeIcon:R,customizeIconProps:{value:Ne,disabled:st,isSelected:ht}},ht?"✓":null))}))},A_=d.forwardRef(k_);const j_=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var s=n.current,l=s.values,u=s.options,f=e.map(function(g){if(g.label===void 0){var y;return q(q({},g),{},{label:(y=l.get(g.value))===null||y===void 0?void 0:y.label})}return g}),h=new Map,m=new Map;return f.forEach(function(g){h.set(g.value,g),m.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=h,n.current.options=m,f},[e,t]),o=d.useCallback(function(s){return t.get(s)||n.current.options.get(s)},[t]);return[r,o]});function ep(e,t){return $w(e).join("").toUpperCase().includes(t)}const z_=(function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var s=t.options,l=t.label,u=t.value,f=[],h=typeof r=="function",m=n.toUpperCase(),g=h?r:function(w,b){return o?ep(b[o],m):b[s]?ep(b[l!=="children"?l:"label"],m):ep(b[u],m)},y=h?function(w){return xm(w)}:function(w){return w};return e.forEach(function(w){if(w[s]){var b=g(n,y(w));if(b)f.push(w);else{var C=w[s].filter(function(S){return g(n,y(S))});C.length&&f.push(q(q({},w),{},U({},s,C)))}return}g(n,y(w))&&f.push(w)}),f},[e,r,o,n,t])});var yS=0,B_=Nr();function H_(){var e;return B_?(e=yS,yS+=1):e="TEST_OR_SSR",e}function U_(e){var t=d.useState(),n=ae(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(H_()))},[]),e||r}var V_=["children","value"],W_=["children"];function q_(e){var t=e,n=t.key,r=t.props,o=r.children,s=r.value,l=Lt(r,V_);return q({key:n,value:s!==void 0?s:n,children:o},l)}function Mw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mo(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,s=o.type.isSelectOptGroup,l=o.key,u=o.props,f=u.children,h=Lt(u,W_);return t||!s?q_(n):q(q({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},h),{},{options:Mw(f)})}).filter(function(n){return n})}var K_=function(t,n,r,o,s){return d.useMemo(function(){var l=t,u=!t;u&&(l=Mw(n));var f=new Map,h=new Map,m=function(w,b,C){C&&typeof C=="string"&&w.set(b[C],b)},g=function y(w){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<w.length;C+=1){var S=w[C];!S[r.options]||b?(f.set(S[r.value],S),m(h,S,r.label),m(h,S,o),m(h,S,s)):y(S[r.options],!0)}};return g(l),{options:l,valueOptions:f,labelOptions:h}},[t,n,r,o,s])};function SS(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var G_=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Q_=["inputValue"];function Y_(e){return!e||ot(e)!=="object"}var X_=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,s=o===void 0?"rc-select":o,l=e.backfill,u=e.fieldNames,f=e.inputValue,h=e.searchValue,m=e.onSearch,g=e.autoClearSearchValue,y=g===void 0?!0:g,w=e.onSelect,b=e.onDeselect,C=e.dropdownMatchSelectWidth,S=C===void 0?!0:C,O=e.filterOption,x=e.filterSort,R=e.optionFilterProp,I=e.optionLabelProp,P=e.options,$=e.optionRender,_=e.children,L=e.defaultActiveFirstOption,F=e.menuItemSelectedIcon,N=e.virtual,z=e.direction,A=e.listHeight,B=A===void 0?200:A,H=e.listItemHeight,X=H===void 0?20:H,V=e.labelRender,G=e.value,j=e.defaultValue,J=e.labelInValue,K=e.onChange,D=e.maxCount,M=Lt(e,G_),te=U_(n),ee=Om(r),Y=!!(!P&&_),re=d.useMemo(function(){return O===void 0&&r==="combobox"?!1:O},[O,r]),le=d.useMemo(function(){return Dw(u,Y)},[JSON.stringify(u),Y]),pe=Yo("",{value:h!==void 0?h:f,postState:function(de){return de||""}}),ce=ae(pe,2),Te=ce[0],fe=ce[1],ue=K_(P,_,le,R,I),he=ue.valueOptions,be=ue.labelOptions,ve=ue.options,xe=d.useCallback(function(Re){var de=$w(Re);return de.map(function(se){var we,Ke,Ae,_t,kt;if(Y_(se))we=se;else{var Pt;Ae=se.key,Ke=se.label,we=(Pt=se.value)!==null&&Pt!==void 0?Pt:Ae}var Ot=he.get(we);if(Ot){var dn;Ke===void 0&&(Ke=Ot?.[I||le.label]),Ae===void 0&&(Ae=(dn=Ot?.key)!==null&&dn!==void 0?dn:we),_t=Ot?.disabled,kt=Ot?.title}return{label:Ke,value:we,key:Ae,disabled:_t,title:kt}})},[le,I,he]),Ne=Yo(j,{value:G}),Pe=ae(Ne,2),_e=Pe[0],We=Pe[1],De=d.useMemo(function(){var Re,de=ee&&_e===null?[]:_e,se=xe(de);return r==="combobox"&&H8((Re=se[0])===null||Re===void 0?void 0:Re.value)?[]:se},[_e,xe,r,ee]),qe=j_(De,he),Ye=ae(qe,2),Ie=Ye[0],dt=Ye[1],ft=d.useMemo(function(){if(!r&&Ie.length===1){var Re=Ie[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Ie.map(function(de){var se;return q(q({},de),{},{label:(se=typeof V=="function"?V(de):de.label)!==null&&se!==void 0?se:de.value})})},[r,Ie,V]),ht=d.useMemo(function(){return new Set(Ie.map(function(Re){return Re.value}))},[Ie]);d.useEffect(function(){if(r==="combobox"){var Re,de=(Re=Ie[0])===null||Re===void 0?void 0:Re.value;fe(B8(de)?String(de):"")}},[Ie]);var st=SS(function(Re,de){var se=de??Re;return U(U({},le.value,Re),le.label,se)}),et=d.useMemo(function(){if(r!=="tags")return ve;var Re=$e(ve),de=function(we){return he.has(we)};return $e(Ie).sort(function(se,we){return se.value<we.value?-1:1}).forEach(function(se){var we=se.value;de(we)||Re.push(st(we,se.label))}),Re},[st,ve,he,Ie,r]),lt=z_(et,le,Te,re,R),ke=d.useMemo(function(){return r!=="tags"||!Te||lt.some(function(Re){return Re[R||"value"]===Te})||lt.some(function(Re){return Re[le.value]===Te})?lt:[st(Te)].concat($e(lt))},[st,R,r,lt,Te,le]),mt=function Re(de){var se=$e(de).sort(function(we,Ke){return x(we,Ke,{searchValue:Te})});return se.map(function(we){return Array.isArray(we.options)?q(q({},we),{},{options:we.options.length>0?Re(we.options):we.options}):we})},St=d.useMemo(function(){return x?mt(ke):ke},[ke,x,Te]),nt=d.useMemo(function(){return f_(St,{fieldNames:le,childrenAsData:Y})},[St,le,Y]),tt=function(de){var se=xe(de);if(We(se),K&&(se.length!==Ie.length||se.some(function(Ae,_t){var kt;return((kt=Ie[_t])===null||kt===void 0?void 0:kt.value)!==Ae?.value}))){var we=J?se:se.map(function(Ae){return Ae.value}),Ke=se.map(function(Ae){return xm(dt(Ae.value))});K(ee?we:we[0],ee?Ke:Ke[0])}},Et=d.useState(null),rt=ae(Et,2),xt=rt[0],Nt=rt[1],Cn=d.useState(0),Gt=ae(Cn,2),en=Gt[0],cn=Gt[1],Ut=L!==void 0?L:r!=="combobox",It=d.useCallback(function(Re,de){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},we=se.source,Ke=we===void 0?"keyboard":we;cn(de),l&&r==="combobox"&&Re!==null&&Ke==="keyboard"&&Nt(String(Re))},[l,r]),Ct=function(de,se,we){var Ke=function(){var Jt,fn=dt(de);return[J?{label:fn?.[le.label],value:de,key:(Jt=fn?.key)!==null&&Jt!==void 0?Jt:de}:de,xm(fn)]};if(se&&w){var Ae=Ke(),_t=ae(Ae,2),kt=_t[0],Pt=_t[1];w(kt,Pt)}else if(!se&&b&&we!=="clear"){var Ot=Ke(),dn=ae(Ot,2),an=dn[0],gn=dn[1];b(an,gn)}},Vt=SS(function(Re,de){var se,we=ee?de.selected:!0;we?se=ee?[].concat($e(Ie),[Re]):[Re]:se=Ie.filter(function(Ke){return Ke.value!==Re}),tt(se),Ct(Re,we),r==="combobox"?Nt(""):(!Om||y)&&(fe(""),Nt(""))}),Mt=function(de,se){tt(de);var we=se.type,Ke=se.values;(we==="remove"||we==="clear")&&Ke.forEach(function(Ae){Ct(Ae.value,!1,we)})},Ve=function(de,se){if(fe(de),Nt(null),se.source==="submit"){var we=(de||"").trim();if(we){var Ke=Array.from(new Set([].concat($e(ht),[we])));tt(Ke),Ct(we,!0),fe("")}return}se.source!=="blur"&&(r==="combobox"&&tt(de),m?.(de))},it=function(de){var se=de;r!=="tags"&&(se=de.map(function(Ke){var Ae=be.get(Ke);return Ae?.value}).filter(function(Ke){return Ke!==void 0}));var we=Array.from(new Set([].concat($e(ht),$e(se))));tt(we),we.forEach(function(Ke){Ct(Ke,!0)})},Tt=d.useMemo(function(){var Re=N!==!1&&S!==!1;return q(q({},ue),{},{flattenOptions:nt,onActiveValue:It,defaultActiveFirstOption:Ut,onSelect:Vt,menuItemSelectedIcon:F,rawValues:ht,fieldNames:le,virtual:Re,direction:z,listHeight:B,listItemHeight:X,childrenAsData:Y,maxCount:D,optionRender:$})},[D,ue,nt,It,Ut,Vt,F,ht,le,N,S,z,B,X,Y,$]);return d.createElement(Rg.Provider,{value:Tt},d.createElement(v_,Fe({},M,{id:te,prefixCls:s,ref:t,omitDomProps:Q_,mode:r,displayValues:ft,onDisplayValuesChange:Mt,direction:z,searchValue:Te,onSearch:Ve,autoClearSearchValue:y,onSearchSplit:it,dropdownMatchSelectWidth:S,OptionList:A_,emptyOptions:!nt.length,activeValue:xt,activeDescendantId:"".concat(te,"_list_").concat(en)})))}),Pg=X_;Pg.Option=Tg;Pg.OptGroup=Ig;function J_(e,t,n){return Se({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Z_=(e,t)=>t||e,eD=()=>{const[,e]=oo(),[t]=sg("Empty"),r=new Yt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,t?.description||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tD=()=>{const[,e]=oo(),[t]=sg("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:l,shadowColor:u,contentColor:f}=d.useMemo(()=>({borderColor:new Yt(n).onBackground(s).toHexString(),shadowColor:new Yt(r).onBackground(s).toHexString(),contentColor:new Yt(o).onBackground(s).toHexString()}),[n,r,o,s]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,t?.description||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:l},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},nD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},rD=io("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Nn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return nD(o)});var oD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kw=d.createElement(eD,null),Aw=d.createElement(tD,null),Gi=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:s,description:l,children:u,imageStyle:f,style:h,classNames:m,styles:g}=e,y=oD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:b,className:C,style:S,classNames:O,styles:x,image:R}=$i("empty"),I=w("empty",o),[P,$,_]=rD(I),[L]=sg("Empty"),F=typeof l<"u"?l:L?.description,N=typeof F=="string"?F:"empty",z=(t=s??R)!==null&&t!==void 0?t:kw;let A=null;return typeof z=="string"?A=d.createElement("img",{draggable:!1,alt:N,src:z}):A=z,P(d.createElement("div",Object.assign({className:Se($,_,I,C,{[`${I}-normal`]:z===Aw,[`${I}-rtl`]:b==="rtl"},n,r,O.root,m?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),S),g?.root),h)},y),d.createElement("div",{className:Se(`${I}-image`,O.image,m?.image),style:Object.assign(Object.assign(Object.assign({},f),x.image),g?.image)},A),F&&d.createElement("div",{className:Se(`${I}-description`,O.description,m?.description),style:Object.assign(Object.assign({},x.description),g?.description)},F),u&&d.createElement("div",{className:Se(`${I}-footer`,O.footer,m?.footer),style:Object.assign(Object.assign({},x.footer),g?.footer)},u)))};Gi.PRESENTED_IMAGE_DEFAULT=kw;Gi.PRESENTED_IMAGE_SIMPLE=Aw;const iD=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(on),r=n("empty");switch(t){case"Table":case"List":return He.createElement(Gi,{image:Gi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return He.createElement(Gi,{image:Gi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return He.createElement(Gi,null)}},aD=(e,t,n)=>{var r,o;const{variant:s,[e]:l}=d.useContext(on),u=d.useContext(g8),f=l?.variant;let h;typeof t<"u"?h=t:n===!1?h="borderless":h=(o=(r=u??f)!==null&&r!==void 0?r:s)!==null&&o!==void 0?o:"outlined";const m=tT.includes(h);return[h,m]},sD=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function lD(e,t){return e||sD(t)}const bS=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},uD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},_i(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
163
|
-
${o}${u}bottomLeft,
|
|
164
|
-
${s}${u}bottomLeft
|
|
165
|
-
`]:{animationName:rw},[`
|
|
166
|
-
${o}${u}topLeft,
|
|
167
|
-
${s}${u}topLeft,
|
|
168
|
-
${o}${u}topRight,
|
|
169
|
-
${s}${u}topRight
|
|
170
|
-
`]:{animationName:iw},[`${l}${u}bottomLeft`]:{animationName:ow},[`
|
|
171
|
-
${l}${u}topLeft,
|
|
172
|
-
${l}${u}topRight
|
|
173
|
-
`]:{animationName:aw},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},bS(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Xc),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},bS(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},nd(e,"slide-up"),nd(e,"slide-down"),ky(e,"move-up"),ky(e,"move-down")]},cD=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,s=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(s).sub(o).equal(),0);return{basePadding:s,containerPadding:l,itemHeight:Ue(t),itemLineHeight:Ue(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},dD=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fD=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:s,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:u,colorIcon:f,colorIconHover:h,INTERNAL_FIXED_ITEM_MARGIN:m}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(m).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},nu()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h}})}}}},hD=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,s=e.multipleSelectItemHeight,l=dD(e),u=t?`${n}-${t}`:"",f=cD(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},fD(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:f.basePadding,paddingBlock:f.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ue(r)} 0`,lineHeight:Ue(s),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:Ue(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ue(s),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
174
|
-
${n}-prefix + ${n}-selection-wrap
|
|
175
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:s,fontFamily:e.fontFamily,lineHeight:Ue(s),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function tp(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
176
|
-
&${n}-show-arrow ${n}-selector,
|
|
177
|
-
&${n}-allow-clear ${n}-selector
|
|
178
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[hD(e,t),o]}const pD=e=>{const{componentCls:t}=e,n=Nn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Nn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tp(e),tp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},tp(r,"lg")]};function np(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,s=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_i(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Ue(s)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
179
|
-
${n}-selection-item,
|
|
180
|
-
${n}-selection-placeholder
|
|
181
|
-
`]:{display:"block",padding:0,lineHeight:Ue(s),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
182
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
183
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
184
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
185
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ue(r)}`,[`${n}-selection-search-input`]:{height:s,fontSize:e.fontSize},"&:after":{lineHeight:Ue(s)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ue(r)}`,"&:after":{display:"none"}}}}}}}function mD(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[np(e),np(Nn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ue(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
186
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
187
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
188
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},np(Nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const gD=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:s,controlHeightLG:l,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:h,colorText:m,fontWeightStrong:g,controlItemBgActive:y,controlItemBgHover:w,colorBgContainer:b,colorFillSecondary:C,colorBgContainerDisabled:S,colorTextDisabled:O,colorPrimaryHover:x,colorPrimary:R,controlOutline:I}=e,P=u*2,$=r*2,_=Math.min(o-P,o-$),L=Math.min(s-P,s-$),F=Math.min(l-P,l-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:h+50,optionSelectedColor:m,optionSelectedFontWeight:g,optionSelectedBg:y,optionActiveBg:w,optionPadding:`${(o-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:b,clearBg:b,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:L,multipleItemHeightLG:F,multipleSelectorBgDisabled:S,multipleItemColorDisabled:O,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:R,activeOutlineColor:I,selectAffixPadding:u}},jw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ue(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ue(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},CS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},jw(e,t))}),vD=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},jw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),CS(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),CS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ue(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},wS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zw(e,t))}),yD=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},zw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),wS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),wS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),SD=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ue(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Bw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${Ue(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},ES=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Bw(e,t))}),bD=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Bw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ES(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ES(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),CD=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},vD(e)),yD(e)),SD(e)),bD(e))}),wD=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ED=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},xD=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,s={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},_i(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},wD(e)),ED(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Xc),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Xc),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},nu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},OD=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},xD(e),mD(e),pD(e),uD(e),{[`${t}-rtl`]:{direction:"rtl"}},dw(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RD=io("Select",(e,{rootPrefixCls:t})=>{const n=Nn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[OD(n),CD(n)]},gD,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ID={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},TD=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:ID}))},PD=d.forwardRef(TD),$D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},_D=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:$D}))},DD=d.forwardRef(_D),LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},FD=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:LD}))},ND=d.forwardRef(FD);function MD({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:s,hasFeedback:l,prefixCls:u,showSuffixIcon:f,feedbackIcon:h,showArrow:m,componentName:g}){const y=t??d.createElement(xd,null),w=O=>e===null&&!l&&!m?null:d.createElement(d.Fragment,null,f!==!1&&O,l&&h);let b=null;if(e!==void 0)b=w(e);else if(o)b=w(d.createElement(Ul,{spin:!0}));else{const O=`${u}-suffix`;b=({open:x,showSearch:R})=>w(x&&R?d.createElement(ND,{className:O}):d.createElement(DD,{className:O}))}let C=null;n!==void 0?C=n:s?C=d.createElement(PD,null):C=null;let S=null;return r!==void 0?S=r:S=d.createElement(pg,null),{clearIcon:y,suffixIcon:b,itemIcon:C,removeIcon:S}}function kD(e){return He.useMemo(()=>{if(e)return(...t)=>He.createElement(xg,{space:!0},e.apply(void 0,t))},[e])}function AD(e,t){return t!==void 0?t:e!==null}var jD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hw="SECRET_COMBOBOX_MODE_DO_NOT_USE",zD=(e,t)=>{var n,r,o,s,l;const{prefixCls:u,bordered:f,className:h,rootClassName:m,getPopupContainer:g,popupClassName:y,dropdownClassName:w,listHeight:b=256,placement:C,listItemHeight:S,size:O,disabled:x,notFoundContent:R,status:I,builtinPlacements:P,dropdownMatchSelectWidth:$,popupMatchSelectWidth:_,direction:L,style:F,allowClear:N,variant:z,dropdownStyle:A,transitionName:B,tagRender:H,maxCount:X,prefix:V,dropdownRender:G,popupRender:j,onDropdownVisibleChange:J,onOpenChange:K,styles:D,classNames:M}=e,te=jD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:ee,getPrefixCls:Y,renderEmpty:re,direction:le,virtual:pe,popupMatchSelectWidth:ce,popupOverflow:Te}=d.useContext(on),{showSearch:fe,style:ue,styles:he,className:be,classNames:ve}=$i("select"),[,xe]=oo(),Ne=S??xe?.controlHeight,Pe=Y("select",u),_e=Y(),We=L??le,{compactSize:De,compactItemClassnames:qe}=tw(Pe,We),[Ye,Ie]=aD("select",z,f),dt=Od(Pe),[ft,ht,st]=RD(Pe,dt),et=d.useMemo(()=>{const{mode:we}=e;if(we!=="combobox")return we===Hw?"combobox":we},[e.mode]),lt=et==="multiple"||et==="tags",ke=AD(e.suffixIcon,e.showArrow),mt=(n=_??$)!==null&&n!==void 0?n:ce,St=((r=D?.popup)===null||r===void 0?void 0:r.root)||((o=he.popup)===null||o===void 0?void 0:o.root)||A,nt=kD(j||G),tt=K||J,{status:Et,hasFeedback:rt,isFormItemInput:xt,feedbackIcon:Nt}=d.useContext(Cm),Cn=Z_(Et,I);let Gt;R!==void 0?Gt=R:et==="combobox"?Gt=null:Gt=re?.("Select")||d.createElement(iD,{componentName:"Select"});const{suffixIcon:en,itemIcon:cn,removeIcon:Ut,clearIcon:It}=MD(Object.assign(Object.assign({},te),{multiple:lt,hasFeedback:rt,feedbackIcon:Nt,showSuffixIcon:ke,prefixCls:Pe,componentName:"Select"})),Ct=N===!0?{clearIcon:It}:N,Vt=ao(te,["suffixIcon","itemIcon"]),Mt=Se(((s=M?.popup)===null||s===void 0?void 0:s.root)||((l=ve?.popup)===null||l===void 0?void 0:l.root)||y||w,{[`${Pe}-dropdown-${We}`]:We==="rtl"},m,ve.root,M?.root,st,dt,ht),Ve=bg(we=>{var Ke;return(Ke=O??De)!==null&&Ke!==void 0?Ke:we}),it=d.useContext(Bl),Tt=x??it,Re=Se({[`${Pe}-lg`]:Ve==="large",[`${Pe}-sm`]:Ve==="small",[`${Pe}-rtl`]:We==="rtl",[`${Pe}-${Ye}`]:Ie,[`${Pe}-in-form-item`]:xt},J_(Pe,Cn,rt),qe,be,h,ve.root,M?.root,m,st,dt,ht),de=d.useMemo(()=>C!==void 0?C:We==="rtl"?"bottomRight":"bottomLeft",[C,We]),[se]=gg("SelectLike",St?.zIndex);return ft(d.createElement(Pg,Object.assign({ref:t,virtual:pe,showSearch:fe},Vt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),D?.root),ue),F),dropdownMatchSelectWidth:mt,transitionName:XC(_e,"slide-up",B),builtinPlacements:lD(P,Te),listHeight:b,listItemHeight:Ne,mode:et,prefixCls:Pe,placement:de,direction:We,prefix:V,suffixIcon:en,menuItemSelectedIcon:cn,removeIcon:Ut,allowClear:Ct,notFoundContent:Gt,className:Re,getPopupContainer:g||ee,dropdownClassName:Mt,disabled:Tt,dropdownStyle:Object.assign(Object.assign({},St),{zIndex:se}),maxCount:lt?X:void 0,tagRender:lt?H:void 0,dropdownRender:nt,onDropdownVisibleChange:tt})))},Cs=d.forwardRef(zD),BD=S8(Cs,"dropdownAlign");Cs.SECRET_COMBOBOX_MODE_DO_NOT_USE=Hw;Cs.Option=Tg;Cs.OptGroup=Ig;Cs._InternalPanelDoNotUseOrYouWillBeFired=BD;const HD=(e,t)=>{typeof e?.addEventListener<"u"?e.addEventListener("change",t):typeof e?.addListener<"u"&&e.addListener(t)},UD=(e,t)=>{typeof e?.removeEventListener<"u"?e.removeEventListener("change",t):typeof e?.removeListener<"u"&&e.removeListener(t)};function Uw(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,s=e.bodyClassName,l=e.className,u=e.style;return d.createElement("div",{className:Se("".concat(n,"-content"),l),style:u},d.createElement("div",{className:Se("".concat(n,"-inner"),s),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ua={shiftX:64,adjustY:1},Va={adjustX:1,shiftY:!0},Zr=[0,0],VD={left:{points:["cr","cl"],overflow:Va,offset:[-4,0],targetOffset:Zr},right:{points:["cl","cr"],overflow:Va,offset:[4,0],targetOffset:Zr},top:{points:["bc","tc"],overflow:Ua,offset:[0,-4],targetOffset:Zr},bottom:{points:["tc","bc"],overflow:Ua,offset:[0,4],targetOffset:Zr},topLeft:{points:["bl","tl"],overflow:Ua,offset:[0,-4],targetOffset:Zr},leftTop:{points:["tr","tl"],overflow:Va,offset:[-4,0],targetOffset:Zr},topRight:{points:["br","tr"],overflow:Ua,offset:[0,-4],targetOffset:Zr},rightTop:{points:["tl","tr"],overflow:Va,offset:[4,0],targetOffset:Zr},bottomRight:{points:["tr","br"],overflow:Ua,offset:[0,4],targetOffset:Zr},rightBottom:{points:["bl","br"],overflow:Va,offset:[4,0],targetOffset:Zr},bottomLeft:{points:["tl","bl"],overflow:Ua,offset:[0,4],targetOffset:Zr},leftBottom:{points:["br","bl"],overflow:Va,offset:[-4,0],targetOffset:Zr}},WD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],qD=function(t,n){var r=t.overlayClassName,o=t.trigger,s=o===void 0?["hover"]:o,l=t.mouseEnterDelay,u=l===void 0?0:l,f=t.mouseLeaveDelay,h=f===void 0?.1:f,m=t.overlayStyle,g=t.prefixCls,y=g===void 0?"rc-tooltip":g,w=t.children,b=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,O=t.animation,x=t.motion,R=t.placement,I=R===void 0?"right":R,P=t.align,$=P===void 0?{}:P,_=t.destroyTooltipOnHide,L=_===void 0?!1:_,F=t.defaultVisible,N=t.getTooltipContainer,z=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,B=t.id,H=t.showArrow,X=H===void 0?!0:H,V=t.classNames,G=t.styles,j=Lt(t,WD),J=mw(B),K=d.useRef(null);d.useImperativeHandle(n,function(){return K.current});var D=q({},j);"visible"in t&&(D.popupVisible=t.visible);var M=function(){return d.createElement(Uw,{key:"content",prefixCls:y,id:J,bodyClassName:V?.body,overlayInnerStyle:q(q({},z),G?.body)},A)},te=function(){var Y=d.Children.only(w),re=Y?.props||{},le=q(q({},re),{},{"aria-describedby":A?J:null});return d.cloneElement(w,le)};return d.createElement(Og,Fe({popupClassName:Se(r,V?.root),prefixCls:y,popup:M,action:s,builtinPlacements:VD,popupPlacement:I,ref:K,popupAlign:$,getPopupContainer:N,onPopupVisibleChange:b,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:O,popupMotion:x,defaultPopupVisible:F,autoDestroy:L,mouseLeaveDelay:h,popupStyle:q(q({},m),G?.root),mouseEnterDelay:u,arrow:X},D),te())};const KD=d.forwardRef(qD);function GD(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,l=o,u=r*1/Math.sqrt(2),f=o-r*(1-1/Math.sqrt(2)),h=o-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-h,y=m,w=2*o-u,b=f,C=2*o-s,S=l,O=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),R=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,I=`path('M ${s} ${l} A ${r} ${r} 0 0 0 ${u} ${f} L ${h} ${m} A ${n} ${n} 0 0 1 ${g} ${y} L ${w} ${b} A ${r} ${r} 0 0 0 ${C} ${S} Z')`;return{arrowShadowWidth:O,arrowPath:I,arrowPolygon:R}}const QD=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:l,borderRadiusXS:u,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ue(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Vw=8;function Ww(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Vw:r}}function Ec(e,t){return e?t:{}}function YD(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:l}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QD(e,t,o)),{"&:before":{background:t}})]},Ec(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ue(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Ec(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ue(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Ec(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}})),Ec(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}))}}function XD(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const l=Object.assign(Object.assign({},s),o);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const xS={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},JD={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ZD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eL(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:l}=e,u=t/2,f={},h=Ww({contentRadius:s,limitVerticalRadius:!0});return Object.keys(xS).forEach(m=>{const g=r&&JD[m]||xS[m],y=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(f[m]=y,ZD.has(m)&&(y.autoArrow=!1),m){case"top":case"topLeft":case"topRight":y.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=u+o;break}if(r)switch(m){case"topLeft":case"bottomLeft":y.offset[0]=-h.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":y.offset[0]=h.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":y.offset[1]=-h.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":y.offset[1]=h.arrowOffsetHorizontal*2-u;break}y.overflow=XD(m,h,t,n),l&&(y.htmlRegion="visibleFirst")}),f}const tL=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:s,tooltipBorderRadius:l,zIndexPopup:u,controlHeight:f,boxShadowSecondary:h,paddingSM:m,paddingXS:g,arrowOffsetHorizontal:y,sizePopupArrow:w}=e,b=t(l).add(w).add(y).equal(),C=t(l).mul(2).add(w).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},_i(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-inner`]:{minWidth:C,minHeight:f,padding:`${Ue(e.calc(m).div(2).equal())} ${Ue(g)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:l,boxShadow:h,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(l,Vw)}},[`${n}-content`]:{position:"relative"}}),PT(e,(S,{darkColor:O})=>({[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:O},[`${n}-arrow`]:{"--antd-arrow-background-color":O}}}))),{"&-rtl":{direction:"rtl"}})},YD(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nL=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ww({contentRadius:e.borderRadius,limitVerticalRadius:!0})),GD(Nn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),qw=(e,t=!0)=>io("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:s,colorBgSpotlight:l}=r,u=Nn(r,{tooltipMaxWidth:250,tooltipColor:s,tooltipBorderRadius:o,tooltipBg:l});return[tL(u),sw(r,"zoom-big-fast")]},nL,{resetStyle:!1,injectStyle:t})(e),rL=ia.map(e=>`${e}-inverse`),oL=["success","processing","error","default","warning"];function iL(e,t=!0){return t?[].concat($e(rL),$e(ia)).includes(e):ia.includes(e)}function t9(e){return oL.includes(e)}function Kw(e,t){const n=iL(t),r=Se({[`${e}-${t}`]:t&&n}),o={},s={},l=A5(t).toRgb(),f=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:s}}const aL=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:s,overlayInnerStyle:l}=e,{getPrefixCls:u}=d.useContext(on),f=u("tooltip",t),[h,m,g]=qw(f),y=Kw(f,s),w=y.arrowStyle,b=Object.assign(Object.assign({},l),y.overlayStyle),C=Se(m,g,f,`${f}-pure`,`${f}-placement-${r}`,n,y.className);return h(d.createElement("div",{className:C,style:w},d.createElement("div",{className:`${f}-arrow`}),d.createElement(Uw,Object.assign({},e,{className:m,prefixCls:f,overlayInnerStyle:b}),o)))};var sL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lL=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:s,getTooltipContainer:l,color:u,overlayInnerStyle:f,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:y,destroyOnHidden:w,arrow:b=!0,title:C,overlay:S,builtinPlacements:O,arrowPointAtCenter:x=!1,autoAdjustOverflow:R=!0,motion:I,getPopupContainer:P,placement:$="top",mouseEnterDelay:_=.1,mouseLeaveDelay:L=.1,overlayStyle:F,rootClassName:N,overlayClassName:z,styles:A,classNames:B}=e,H=sL(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),X=!!b,[,V]=oo(),{getPopupContainer:G,getPrefixCls:j,direction:J,className:K,style:D,classNames:M,styles:te}=$i("tooltip"),ee=ig(),Y=d.useRef(null),re=()=>{var ke;(ke=Y.current)===null||ke===void 0||ke.forceAlign()};d.useImperativeHandle(t,()=>{var ke,mt;return{forceAlign:re,forcePopupAlign:()=>{ee.deprecated(!1,"forcePopupAlign","forceAlign"),re()},nativeElement:(ke=Y.current)===null||ke===void 0?void 0:ke.nativeElement,popupElement:(mt=Y.current)===null||mt===void 0?void 0:mt.popupElement}});const[le,pe]=Yo(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ce=!C&&!S&&C!==0,Te=ke=>{var mt,St;pe(ce?!1:ke),ce||((mt=e.onOpenChange)===null||mt===void 0||mt.call(e,ke),(St=e.onVisibleChange)===null||St===void 0||St.call(e,ke))},fe=d.useMemo(()=>{var ke,mt;let St=x;return typeof b=="object"&&(St=(mt=(ke=b.pointAtCenter)!==null&&ke!==void 0?ke:b.arrowPointAtCenter)!==null&&mt!==void 0?mt:x),O||eL({arrowPointAtCenter:St,autoAdjustOverflow:R,arrowWidth:X?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0})},[x,b,O,V]),ue=d.useMemo(()=>C===0?C:S||C||"",[S,C]),he=d.createElement(xg,{space:!0},typeof ue=="function"?ue():ue),be=j("tooltip",o),ve=j(),xe=e["data-popover-inject"];let Ne=le;!("open"in e)&&!("visible"in e)&&ce&&(Ne=!1);const Pe=d.isValidElement(h)&&!kC(h)?h:d.createElement("span",null,h),_e=Pe.props,We=!_e.className||typeof _e.className=="string"?Se(_e.className,s||`${be}-open`):_e.className,[De,qe,Ye]=qw(be,!xe),Ie=Kw(be,u),dt=Ie.arrowStyle,ft=Se(z,{[`${be}-rtl`]:J==="rtl"},Ie.className,N,qe,Ye,K,M.root,B?.root),ht=Se(M.body,B?.body),[st,et]=gg("Tooltip",H.zIndex),lt=d.createElement(KD,Object.assign({},H,{zIndex:st,showArrow:X,placement:$,mouseEnterDelay:_,mouseLeaveDelay:L,prefixCls:be,classNames:{root:ft,body:ht},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dt),te.root),D),F),A?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},te.body),f),A?.body),Ie.overlayStyle)},getTooltipContainer:P||l||G,ref:Y,builtinPlacements:fe,overlay:he,visible:Ne,onVisibleChange:Te,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${be}-arrow-content`}),motion:{motionName:XC(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:w??!!y}),Ne?da(Pe,{className:We}):Pe);return De(d.createElement(UC.Provider,{value:et},lt))}),Gw=lL;Gw._InternalPanelDoNotUseOrYouWillBeFired=aL;var uL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},cL=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:uL}))},OS=d.forwardRef(cL),Qw=d.createContext(null);function Yw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Xw(e){var t=d.useContext(Qw);return Yw(t,e)}var dL=["children","locked"],xo=d.createContext(null);function fL(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ql(e){var t=e.children,n=e.locked,r=Lt(e,dL),o=d.useContext(xo),s=Zl(function(){return fL(o,r)},[o,r],function(l,u){return!n&&(l[0]!==u[0]||!kl(l[1],u[1],!0))});return d.createElement(xo.Provider,{value:s},t)}var hL=[],Jw=d.createContext(null);function Nd(){return d.useContext(Jw)}var Zw=d.createContext(hL);function ws(e){var t=d.useContext(Zw);return d.useMemo(function(){return e!==void 0?[].concat($e(t),[e]):t},[t,e])}var eE=d.createContext(null),$g=d.createContext({});function RS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Sg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o),l=null;return o&&!Number.isNaN(s)?l=s:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function pL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=$e(e.querySelectorAll("*")).filter(function(r){return RS(r,t)});return RS(e,t)&&n.unshift(e),n}var Im=at.LEFT,Tm=at.RIGHT,Pm=at.UP,kc=at.DOWN,Ac=at.ENTER,tE=at.ESC,nl=at.HOME,rl=at.END,IS=[Pm,kc,Im,Tm];function mL(e,t,n,r){var o,s="prev",l="next",u="children",f="parent";if(e==="inline"&&r===Ac)return{inlineTrigger:!0};var h=U(U({},Pm,s),kc,l),m=U(U(U(U({},Im,n?l:s),Tm,n?s:l),kc,u),Ac,u),g=U(U(U(U(U(U({},Pm,s),kc,l),Ac,u),tE,f),Im,n?u:f),Tm,n?f:u),y={inline:h,horizontal:m,vertical:g,inlineSub:h,horizontalSub:g,verticalSub:g},w=(o=y["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(w){case s:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function gL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function vL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function _g(e,t){var n=pL(e,!0);return n.filter(function(r){return t.has(r)})}function TS(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=_g(e,t),s=o.length,l=o.findIndex(function(u){return n===u});return r<0?l===-1?l=s-1:l-=1:r>0&&(l+=1),l=(l+s)%s,o[l]}var $m=function(t,n){var r=new Set,o=new Map,s=new Map;return t.forEach(function(l){var u=document.querySelector("[data-menu-id='".concat(Yw(n,l),"']"));u&&(r.add(u),s.set(u,l),o.set(l,u))}),{elements:r,key2element:o,element2key:s}};function yL(e,t,n,r,o,s,l,u,f,h){var m=d.useRef(),g=d.useRef();g.current=t;var y=function(){bn.cancel(m.current)};return d.useEffect(function(){return function(){y()}},[]),function(w){var b=w.which;if([].concat(IS,[Ac,tE,nl,rl]).includes(b)){var C=s(),S=$m(C,r),O=S,x=O.elements,R=O.key2element,I=O.element2key,P=R.get(t),$=vL(P,x),_=I.get($),L=mL(e,l(_,!0).length===1,n,b);if(!L&&b!==nl&&b!==rl)return;(IS.includes(b)||[nl,rl].includes(b))&&w.preventDefault();var F=function(G){if(G){var j=G,J=G.querySelector("a");J!=null&&J.getAttribute("href")&&(j=J);var K=I.get(G);u(K),y(),m.current=bn(function(){g.current===K&&j.focus()})}};if([nl,rl].includes(b)||L.sibling||!$){var N;!$||e==="inline"?N=o.current:N=gL($);var z,A=_g(N,x);b===nl?z=A[0]:b===rl?z=A[A.length-1]:z=TS(N,x,$,L.offset),F(z)}else if(L.inlineTrigger)f(_);else if(L.offset>0)f(_,!0),y(),m.current=bn(function(){S=$m(C,r);var V=$.getAttribute("aria-controls"),G=document.getElementById(V),j=TS(G,S.elements);F(j)},5);else if(L.offset<0){var B=l(_,!0),H=B[B.length-2],X=R.get(H);f(H,!1),F(X)}}h?.(w)}}function SL(e){Promise.resolve().then(e)}var Dg="__RC_UTIL_PATH_SPLIT__",PS=function(t){return t.join(Dg)},bL=function(t){return t.split(Dg)},_m="rc-menu-more";function CL(){var e=d.useState({}),t=ae(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),s=d.useState([]),l=ae(s,2),u=l[0],f=l[1],h=d.useRef(0),m=d.useRef(!1),g=function(){m.current||n({})},y=d.useCallback(function(R,I){var P=PS(I);o.current.set(P,R),r.current.set(R,P),h.current+=1;var $=h.current;SL(function(){$===h.current&&g()})},[]),w=d.useCallback(function(R,I){var P=PS(I);o.current.delete(P),r.current.delete(R)},[]),b=d.useCallback(function(R){f(R)},[]),C=d.useCallback(function(R,I){var P=r.current.get(R)||"",$=bL(P);return I&&u.includes($[0])&&$.unshift(_m),$},[u]),S=d.useCallback(function(R,I){return R.filter(function(P){return P!==void 0}).some(function(P){var $=C(P,!0);return $.includes(I)})},[C]),O=function(){var I=$e(r.current.keys());return u.length&&I.push(_m),I},x=d.useCallback(function(R){var I="".concat(r.current.get(R)).concat(Dg),P=new Set;return $e(o.current.keys()).forEach(function($){$.startsWith(I)&&P.add(o.current.get($))}),P},[]);return d.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:y,unregisterPath:w,refreshOverflowKeys:b,isSubPathKey:S,getKeyPath:C,getKeys:O,getSubPathKeys:x}}function El(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(s))},[]);return e?n:void 0}var wL=Math.random().toFixed(5).toString().slice(2),$S=0;function EL(e){var t=Yo(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return d.useEffect(function(){$S+=1;var s="".concat(wL,"-").concat($S);o("rc-menu-uuid-".concat(s))},[]),r}function nE(e,t,n,r){var o=d.useContext(xo),s=o.activeKey,l=o.onActive,u=o.onInactive,f={active:s===e};return t||(f.onMouseEnter=function(h){n?.({key:e,domEvent:h}),l(e)},f.onMouseLeave=function(h){r?.({key:e,domEvent:h}),u(e)}),f}function rE(e){var t=d.useContext(xo),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var s=e;return r?{paddingRight:s*o}:{paddingLeft:s*o}}function oE(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=d.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var xL=["item"];function id(e){var t=e.item,n=Lt(e,xL);return Object.defineProperty(n,"item",{get:function(){return gr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var OL=["title","attribute","elementRef"],RL=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],IL=["active"],TL=(function(e){jo(n,e);var t=Jo(n);function n(){return $n(this,n),t.apply(this,arguments)}return _n(n,[{key:"render",value:function(){var o=this.props,s=o.title,l=o.attribute,u=o.elementRef,f=Lt(o,OL),h=ao(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return gr(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(No.Item,Fe({},l,{title:typeof s=="string"?s:void 0},h,{ref:u}))}}]),n})(d.Component),PL=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var s=e.disabled,l=e.itemIcon,u=e.children,f=e.role,h=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,w=e.onFocus,b=Lt(e,RL),C=Xw(o),S=d.useContext(xo),O=S.prefixCls,x=S.onItemClick,R=S.disabled,I=S.overflowDisabled,P=S.itemIcon,$=S.selectedKeys,_=S.onActive,L=d.useContext($g),F=L._internalRenderMenuItem,N="".concat(O,"-item"),z=d.useRef(),A=d.useRef(),B=R||s,H=la(t,A),X=ws(o),V=function(ce){return{key:o,keyPath:$e(X).reverse(),item:z.current,domEvent:ce}},G=l||P,j=nE(o,B,h,m),J=j.active,K=Lt(j,IL),D=$.includes(o),M=rE(X.length),te=function(ce){if(!B){var Te=V(ce);g?.(id(Te)),x(Te)}},ee=function(ce){if(y?.(ce),ce.which===at.ENTER){var Te=V(ce);g?.(id(Te)),x(Te)}},Y=function(ce){_(o),w?.(ce)},re={};e.role==="option"&&(re["aria-selected"]=D);var le=d.createElement(TL,Fe({ref:z,elementRef:H,role:f===null?"none":f||"menuitem",tabIndex:s?null:-1,"data-menu-id":I&&C?null:C},ao(b,["extra"]),K,re,{component:"li","aria-disabled":s,style:q(q({},M),n),className:Se(N,U(U(U({},"".concat(N,"-active"),J),"".concat(N,"-selected"),D),"".concat(N,"-disabled"),B),r),onClick:te,onKeyDown:ee,onFocus:Y}),u,d.createElement(oE,{props:q(q({},e),{},{isSelected:D}),icon:G}));return F&&(le=F(le,e,{selected:D})),le});function $L(e,t){var n=e.eventKey,r=Nd(),o=ws(n);return d.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:d.createElement(PL,Fe({},e,{ref:t}))}const Md=d.forwardRef($L);var _L=["className","children"],DL=function(t,n){var r=t.className,o=t.children,s=Lt(t,_L),l=d.useContext(xo),u=l.prefixCls,f=l.mode,h=l.rtl;return d.createElement("ul",Fe({className:Se(u,h&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},s,{"data-menu-list":!0,ref:n}),o)},Lg=d.forwardRef(DL);Lg.displayName="SubMenuList";function Fg(e,t){return Mo(e).map(function(n,r){if(d.isValidElement(n)){var o,s,l=n.key,u=(o=(s=n.props)===null||s===void 0?void 0:s.eventKey)!==null&&o!==void 0?o:l,f=u==null;f&&(u="tmp_key-".concat([].concat($e(t),[r]).join("-")));var h={key:u,eventKey:u};return d.cloneElement(n,h)}return n})}var pr={adjustX:1,adjustY:1},LL={topLeft:{points:["bl","tl"],overflow:pr},topRight:{points:["br","tr"],overflow:pr},bottomLeft:{points:["tl","bl"],overflow:pr},bottomRight:{points:["tr","br"],overflow:pr},leftTop:{points:["tr","tl"],overflow:pr},leftBottom:{points:["br","bl"],overflow:pr},rightTop:{points:["tl","tr"],overflow:pr},rightBottom:{points:["bl","br"],overflow:pr}},FL={topLeft:{points:["bl","tl"],overflow:pr},topRight:{points:["br","tr"],overflow:pr},bottomLeft:{points:["tl","bl"],overflow:pr},bottomRight:{points:["tr","br"],overflow:pr},rightTop:{points:["tr","tl"],overflow:pr},rightBottom:{points:["br","bl"],overflow:pr},leftTop:{points:["tl","tr"],overflow:pr},leftBottom:{points:["bl","br"],overflow:pr}};function iE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var NL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ML(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,s=e.popupStyle,l=e.popupClassName,u=e.popupOffset,f=e.disabled,h=e.mode,m=e.onVisibleChange,g=d.useContext(xo),y=g.getPopupContainer,w=g.rtl,b=g.subMenuOpenDelay,C=g.subMenuCloseDelay,S=g.builtinPlacements,O=g.triggerSubMenuAction,x=g.forceSubMenuRender,R=g.rootClassName,I=g.motion,P=g.defaultMotions,$=d.useState(!1),_=ae($,2),L=_[0],F=_[1],N=q(w?q({},FL):q({},LL),S),z=NL[h],A=iE(h,I,P),B=d.useRef(A);h!=="inline"&&(B.current=A);var H=q(q({},B.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),X=d.useRef();return d.useEffect(function(){return X.current=bn(function(){F(n)}),function(){bn.cancel(X.current)}},[n]),d.createElement(Og,{prefixCls:t,popupClassName:Se("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),w),l,R),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:y,builtinPlacements:N,popupPlacement:z,popupVisible:L,popup:o,popupStyle:s,popupAlign:u&&{offset:u},action:f?[]:[O],mouseEnterDelay:b,mouseLeaveDelay:C,onPopupVisibleChange:m,forceRender:x,popupMotion:H,fresh:!0},r)}function kL(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,s="inline",l=d.useContext(xo),u=l.prefixCls,f=l.forceSubMenuRender,h=l.motion,m=l.defaultMotions,g=l.mode,y=d.useRef(!1);y.current=g===s;var w=d.useState(!y.current),b=ae(w,2),C=b[0],S=b[1],O=y.current?n:!1;d.useEffect(function(){y.current&&S(!1)},[g]);var x=q({},iE(s,h,m));r.length>1&&(x.motionAppear=!1);var R=x.onVisibleChanged;return x.onVisibleChanged=function(I){return!y.current&&!I&&S(!0),R?.(I)},C?null:d.createElement(ql,{mode:s,locked:!y.current},d.createElement(ca,Fe({visible:O},x,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(I){var P=I.className,$=I.style;return d.createElement(Lg,{id:t,className:P,style:$},o)}))}var AL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jL=["active"],zL=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,s=e.eventKey;e.warnKey;var l=e.disabled,u=e.internalPopupClose,f=e.children,h=e.itemIcon,m=e.expandIcon,g=e.popupClassName,y=e.popupOffset,w=e.popupStyle,b=e.onClick,C=e.onMouseEnter,S=e.onMouseLeave,O=e.onTitleClick,x=e.onTitleMouseEnter,R=e.onTitleMouseLeave,I=Lt(e,AL),P=Xw(s),$=d.useContext(xo),_=$.prefixCls,L=$.mode,F=$.openKeys,N=$.disabled,z=$.overflowDisabled,A=$.activeKey,B=$.selectedKeys,H=$.itemIcon,X=$.expandIcon,V=$.onItemClick,G=$.onOpenChange,j=$.onActive,J=d.useContext($g),K=J._internalRenderSubMenuItem,D=d.useContext(eE),M=D.isSubPathKey,te=ws(),ee="".concat(_,"-submenu"),Y=N||l,re=d.useRef(),le=d.useRef(),pe=h??H,ce=m??X,Te=F.includes(s),fe=!z&&Te,ue=M(B,s),he=nE(s,Y,x,R),be=he.active,ve=Lt(he,jL),xe=d.useState(!1),Ne=ae(xe,2),Pe=Ne[0],_e=Ne[1],We=function(Et){Y||_e(Et)},De=function(Et){We(!0),C?.({key:s,domEvent:Et})},qe=function(Et){We(!1),S?.({key:s,domEvent:Et})},Ye=d.useMemo(function(){return be||(L!=="inline"?Pe||M([A],s):!1)},[L,be,A,Pe,s,M]),Ie=rE(te.length),dt=function(Et){Y||(O?.({key:s,domEvent:Et}),L==="inline"&&G(s,!Te))},ft=El(function(tt){b?.(id(tt)),V(tt)}),ht=function(Et){L!=="inline"&&G(s,Et)},st=function(){j(s)},et=P&&"".concat(P,"-popup"),lt=d.useMemo(function(){return d.createElement(oE,{icon:L!=="horizontal"?ce:void 0,props:q(q({},e),{},{isOpen:fe,isSubMenu:!0})},d.createElement("i",{className:"".concat(ee,"-arrow")}))},[L,ce,e,fe,ee]),ke=d.createElement("div",Fe({role:"menuitem",style:Ie,className:"".concat(ee,"-title"),tabIndex:Y?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":z&&P?null:P,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":et,"aria-disabled":Y,onClick:dt,onFocus:st},ve),o,lt),mt=d.useRef(L);if(L!=="inline"&&te.length>1?mt.current="vertical":mt.current=L,!z){var St=mt.current;ke=d.createElement(ML,{mode:St,prefixCls:ee,visible:!u&&fe&&L!=="inline",popupClassName:g,popupOffset:y,popupStyle:w,popup:d.createElement(ql,{mode:St==="horizontal"?"vertical":St},d.createElement(Lg,{id:et,ref:le},f)),disabled:Y,onVisibleChange:ht},ke)}var nt=d.createElement(No.Item,Fe({ref:t,role:"none"},I,{component:"li",style:n,className:Se(ee,"".concat(ee,"-").concat(L),r,U(U(U(U({},"".concat(ee,"-open"),fe),"".concat(ee,"-active"),Ye),"".concat(ee,"-selected"),ue),"".concat(ee,"-disabled"),Y)),onMouseEnter:De,onMouseLeave:qe}),ke,!z&&d.createElement(kL,{id:et,open:fe,keyPath:te},f));return K&&(nt=K(nt,e,{selected:ue,active:Ye,open:fe,disabled:Y})),d.createElement(ql,{onItemClick:ft,mode:L==="horizontal"?"vertical":L,itemIcon:pe,expandIcon:ce},nt)}),kd=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ws(n),s=Fg(r,o),l=Nd();d.useEffect(function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}},[o]);var u;return l?u=s:u=d.createElement(zL,Fe({ref:t},e),s),d.createElement(Zw.Provider,{value:o},u)});function Ng(e){var t=e.className,n=e.style,r=d.useContext(xo),o=r.prefixCls,s=Nd();return s?null:d.createElement("li",{role:"separator",className:Se("".concat(o,"-item-divider"),t),style:n})}var BL=["className","title","eventKey","children"],HL=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,s=Lt(e,BL),l=d.useContext(xo),u=l.prefixCls,f="".concat(u,"-item-group");return d.createElement("li",Fe({ref:t,role:"presentation"},s,{onClick:function(m){return m.stopPropagation()},className:Se(f,n)}),d.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(f,"-list")},o))}),Mg=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ws(n),s=Fg(r,o),l=Nd();return l?s:d.createElement(HL,Fe({ref:t},ao(e,["warnKey"])),s)}),UL=["label","children","key","type","extra"];function Dm(e,t,n){var r=t.item,o=t.group,s=t.submenu,l=t.divider;return(e||[]).map(function(u,f){if(u&&ot(u)==="object"){var h=u,m=h.label,g=h.children,y=h.key,w=h.type,b=h.extra,C=Lt(h,UL),S=y??"tmp-".concat(f);return g||w==="group"?w==="group"?d.createElement(o,Fe({key:S},C,{title:m}),Dm(g,t,n)):d.createElement(s,Fe({key:S},C,{title:m}),Dm(g,t,n)):w==="divider"?d.createElement(l,Fe({key:S},C)):d.createElement(r,Fe({key:S},C,{extra:b}),m,(!!b||b===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(u){return u})}function _S(e,t,n,r,o){var s=e,l=q({divider:Ng,item:Md,group:Mg,submenu:kd},r);return t&&(s=Dm(t,l,o)),Fg(s,n)}var VL=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],qi=[],WL=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,s=o===void 0?"rc-menu":o,l=r.rootClassName,u=r.style,f=r.className,h=r.tabIndex,m=h===void 0?0:h,g=r.items,y=r.children,w=r.direction,b=r.id,C=r.mode,S=C===void 0?"vertical":C,O=r.inlineCollapsed,x=r.disabled,R=r.disabledOverflow,I=r.subMenuOpenDelay,P=I===void 0?.1:I,$=r.subMenuCloseDelay,_=$===void 0?.1:$,L=r.forceSubMenuRender,F=r.defaultOpenKeys,N=r.openKeys,z=r.activeKey,A=r.defaultActiveFirst,B=r.selectable,H=B===void 0?!0:B,X=r.multiple,V=X===void 0?!1:X,G=r.defaultSelectedKeys,j=r.selectedKeys,J=r.onSelect,K=r.onDeselect,D=r.inlineIndent,M=D===void 0?24:D,te=r.motion,ee=r.defaultMotions,Y=r.triggerSubMenuAction,re=Y===void 0?"hover":Y,le=r.builtinPlacements,pe=r.itemIcon,ce=r.expandIcon,Te=r.overflowedIndicator,fe=Te===void 0?"...":Te,ue=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,be=r.onClick,ve=r.onOpenChange,xe=r.onKeyDown;r.openAnimation,r.openTransitionName;var Ne=r._internalRenderMenuItem,Pe=r._internalRenderSubMenuItem,_e=r._internalComponents,We=Lt(r,VL),De=d.useMemo(function(){return[_S(y,g,qi,_e,s),_S(y,g,qi,{},s)]},[y,g,_e]),qe=ae(De,2),Ye=qe[0],Ie=qe[1],dt=d.useState(!1),ft=ae(dt,2),ht=ft[0],st=ft[1],et=d.useRef(),lt=EL(b),ke=w==="rtl",mt=Yo(F,{value:N,postState:function(je){return je||qi}}),St=ae(mt,2),nt=St[0],tt=St[1],Et=function(je){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ft(){tt(je),ve?.(je)}Le?Ii.flushSync(Ft):Ft()},rt=d.useState(nt),xt=ae(rt,2),Nt=xt[0],Cn=xt[1],Gt=d.useRef(!1),en=d.useMemo(function(){return(S==="inline"||S==="vertical")&&O?["vertical",O]:[S,!1]},[S,O]),cn=ae(en,2),Ut=cn[0],It=cn[1],Ct=Ut==="inline",Vt=d.useState(Ut),Mt=ae(Vt,2),Ve=Mt[0],it=Mt[1],Tt=d.useState(It),Re=ae(Tt,2),de=Re[0],se=Re[1];d.useEffect(function(){it(Ut),se(It),Gt.current&&(Ct?tt(Nt):Et(qi))},[Ut,It]);var we=d.useState(0),Ke=ae(we,2),Ae=Ke[0],_t=Ke[1],kt=Ae>=Ye.length-1||Ve!=="horizontal"||R;d.useEffect(function(){Ct&&Cn(nt)},[nt]),d.useEffect(function(){return Gt.current=!0,function(){Gt.current=!1}},[]);var Pt=CL(),Ot=Pt.registerPath,dn=Pt.unregisterPath,an=Pt.refreshOverflowKeys,gn=Pt.isSubPathKey,Dn=Pt.getKeyPath,Jt=Pt.getKeys,fn=Pt.getSubPathKeys,Oe=d.useMemo(function(){return{registerPath:Ot,unregisterPath:dn}},[Ot,dn]),Me=d.useMemo(function(){return{isSubPathKey:gn}},[gn]);d.useEffect(function(){an(kt?qi:Ye.slice(Ae+1).map(function(zt){return zt.key}))},[Ae,kt]);var gt=Yo(z||A&&((n=Ye[0])===null||n===void 0?void 0:n.key),{value:z}),Je=ae(gt,2),jt=Je[0],Mn=Je[1],Hn=El(function(zt){Mn(zt)}),Xn=El(function(){Mn(void 0)});d.useImperativeHandle(t,function(){return{list:et.current,focus:function(je){var Le,Ft=Jt(),Bt=$m(Ft,lt),Wt=Bt.elements,Qt=Bt.key2element,tr=Bt.element2key,On=_g(et.current,Wt),wt=jt??(On[0]?tr.get(On[0]):(Le=Ye.find(function(xr){return!xr.props.disabled}))===null||Le===void 0?void 0:Le.key),An=Qt.get(wt);if(wt&&An){var Un;An==null||(Un=An.focus)===null||Un===void 0||Un.call(An,je)}}}});var Ur=Yo(G||[],{value:j,postState:function(je){return Array.isArray(je)?je:je==null?qi:[je]}}),kn=ae(Ur,2),vn=kn[0],En=kn[1],Cr=function(je){if(H){var Le=je.key,Ft=vn.includes(Le),Bt;V?Ft?Bt=vn.filter(function(Qt){return Qt!==Le}):Bt=[].concat($e(vn),[Le]):Bt=[Le],En(Bt);var Wt=q(q({},je),{},{selectedKeys:Bt});Ft?K?.(Wt):J?.(Wt)}!V&&nt.length&&Ve!=="inline"&&Et(qi)},xn=El(function(zt){be?.(id(zt)),Cr(zt)}),wr=El(function(zt,je){var Le=nt.filter(function(Bt){return Bt!==zt});if(je)Le.push(zt);else if(Ve!=="inline"){var Ft=fn(zt);Le=Le.filter(function(Bt){return!Ft.has(Bt)})}kl(nt,Le,!0)||Et(Le,!0)}),Jn=function(je,Le){var Ft=Le??!nt.includes(je);wr(je,Ft)},Er=yL(Ve,jt,ke,lt,et,Jt,Dn,Mn,Jn,xe);d.useEffect(function(){st(!0)},[]);var Zn=d.useMemo(function(){return{_internalRenderMenuItem:Ne,_internalRenderSubMenuItem:Pe}},[Ne,Pe]),er=Ve!=="horizontal"||R?Ye:Ye.map(function(zt,je){return d.createElement(ql,{key:zt.key,overflowDisabled:je>Ae},zt)}),sr=d.createElement(No,Fe({id:b,ref:et,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Md,className:Se(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ve),f,U(U({},"".concat(s,"-inline-collapsed"),de),"".concat(s,"-rtl"),ke),l),dir:w,style:u,role:"menu",tabIndex:m,data:er,renderRawItem:function(je){return je},renderRawRest:function(je){var Le=je.length,Ft=Le?Ye.slice(-Le):null;return d.createElement(kd,{eventKey:_m,title:fe,disabled:kt,internalPopupClose:Le===0,popupClassName:ue},Ft)},maxCount:Ve!=="horizontal"||R?No.INVALIDATE:No.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(je){_t(je)},onKeyDown:Er},We));return d.createElement($g.Provider,{value:Zn},d.createElement(Qw.Provider,{value:lt},d.createElement(ql,{prefixCls:s,rootClassName:l,mode:Ve,openKeys:nt,rtl:ke,disabled:x,motion:ht?te:null,defaultMotions:ht?ee:null,activeKey:jt,onActive:Hn,onInactive:Xn,selectedKeys:vn,inlineIndent:M,subMenuOpenDelay:P,subMenuCloseDelay:_,forceSubMenuRender:L,builtinPlacements:le,triggerSubMenuAction:re,getPopupContainer:he,itemIcon:pe,expandIcon:ce,onItemClick:xn,onOpenChange:wr},d.createElement(eE.Provider,{value:Me},sr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Jw.Provider,{value:Oe},Ie)))))}),su=WL;su.Item=Md;su.SubMenu=kd;su.ItemGroup=Mg;su.Divider=Ng;var qL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},KL=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:qL}))},GL=d.forwardRef(KL);const aE=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),QL=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:s,headerPadding:l,headerColor:u,footerPadding:f,fontSize:h,bodyBg:m,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:s,padding:l,color:u,lineHeight:Ue(s),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:h,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},sE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:s,marginXXS:l,colorTextLightSolid:u,colorBgContainer:f}=e,h=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${h}px`,headerColor:o,footerPadding:`${s}px ${h}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:o}},lE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],uE=io("Layout",QL,sE,{deprecatedTokens:lE}),YL=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:s,triggerHeight:l,triggerColor:u,triggerBg:f,headerHeight:h,zeroTriggerWidth:m,zeroTriggerHeight:g,borderRadiusLG:y,lightSiderBg:w,lightTriggerColor:b,lightTriggerBg:C,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:l,color:u,lineHeight:Ue(l),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:h,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Ue(y)} ${Ue(y)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${Ue(y)} 0 0 ${Ue(y)}`}},"&-light":{background:w,[`${t}-trigger`]:{color:b,background:C},[`${t}-zero-width-trigger`]:{color:b,background:C,border:`1px solid ${S}`,borderInlineStart:0}}}}},XL=io(["Layout","Sider"],YL,sE,{deprecatedTokens:lE});var JL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DS={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ZL=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Ad=d.createContext({}),eF=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),cE=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:s,defaultCollapsed:l=!1,theme:u="dark",style:f={},collapsible:h=!1,reverseArrow:m=!1,width:g=200,collapsedWidth:y=80,zeroWidthTriggerStyle:w,breakpoint:b,onCollapse:C,onBreakpoint:S}=e,O=JL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=d.useContext(aE),[R,I]=d.useState("collapsed"in e?e.collapsed:l),[P,$]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const _=(pe,ce)=>{"collapsed"in e||I(pe),C?.(pe,ce)},{getPrefixCls:L,direction:F}=d.useContext(on),N=L("layout-sider",n),[z,A,B]=XL(N),H=d.useRef(null);H.current=pe=>{$(pe.matches),S?.(pe.matches),R!==pe.matches&&_(pe.matches,"responsive")},d.useEffect(()=>{function pe(Te){var fe;return(fe=H.current)===null||fe===void 0?void 0:fe.call(H,Te)}let ce;return typeof window?.matchMedia<"u"&&b&&b in DS&&(ce=window.matchMedia(`screen and (max-width: ${DS[b]})`),HD(ce,pe),pe(ce)),()=>{UD(ce,pe)}},[b]),d.useEffect(()=>{const pe=eF("ant-sider-");return x.addSider(pe),()=>x.removeSider(pe)},[]);const X=()=>{_(!R,"clickTrigger")},V=ao(O,["collapsed"]),G=R?y:g,j=ZL(G)?`${G}px`:String(G),J=Number.parseFloat(String(y||0))===0?d.createElement("span",{onClick:X,className:Se(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${m?"right":"left"}`),style:w},o||d.createElement(GL,null)):null,K=F==="rtl"==!m,te={expanded:K?d.createElement(My,null):d.createElement(OS,null),collapsed:K?d.createElement(OS,null):d.createElement(My,null)}[R?"collapsed":"expanded"],ee=o!==null?J||d.createElement("div",{className:`${N}-trigger`,onClick:X,style:{width:j}},o||te):null,Y=Object.assign(Object.assign({},f),{flex:`0 0 ${j}`,maxWidth:j,minWidth:j,width:j}),re=Se(N,`${N}-${u}`,{[`${N}-collapsed`]:!!R,[`${N}-has-trigger`]:h&&o!==null&&!J,[`${N}-below`]:!!P,[`${N}-zero-width`]:Number.parseFloat(j)===0},r,A,B),le=d.useMemo(()=>({siderCollapsed:R}),[R]);return z(d.createElement(Ad.Provider,{value:le},d.createElement("aside",Object.assign({className:re},V,{style:Y,ref:t}),d.createElement("div",{className:`${N}-children`},s),h||P&&J?ee:null)))});var tF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},nF=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:tF}))},rF=d.forwardRef(nF);const ad=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var oF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dE=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=oF(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=d.useContext(on),l=s("menu",t),u=Se({[`${l}-item-divider-dashed`]:!!r},n);return d.createElement(Ng,Object.assign({className:u},o))},fE=e=>{var t;const{className:n,children:r,icon:o,title:s,danger:l,extra:u}=e,{prefixCls:f,firstLevel:h,direction:m,disableMenuItemTitleTooltip:g,inlineCollapsed:y}=d.useContext(ad),w=R=>{const I=r?.[0],P=d.createElement("span",{className:Se(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!u||u===0})},r);return(!o||d.isValidElement(r)&&r.type==="span")&&r&&R&&h&&typeof I=="string"?d.createElement("div",{className:`${f}-inline-collapsed-noicon`},I.charAt(0)):P},{siderCollapsed:b}=d.useContext(Ad);let C=s;typeof s>"u"?C=h?r:"":s===!1&&(C="");const S={title:C};!b&&!y&&(S.title=null,S.open=!1);const O=Mo(r).length;let x=d.createElement(Md,Object.assign({},ao(e,["title","icon","danger"]),{className:Se({[`${f}-item-danger`]:l,[`${f}-item-only-child`]:(o?O+1:O)===1},n),title:typeof s=="string"?s:void 0}),da(o,{className:Se(d.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${f}-item-icon`)}),w(y));return g||(x=d.createElement(Gw,Object.assign({},S,{placement:m==="rtl"?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),x)),x};var iF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sd=d.createContext(null),n9=d.forwardRef((e,t)=>{const{children:n}=e,r=iF(e,["children"]),o=d.useContext(sd),s=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=tR(n),u=la(t,l?eu(n):null);return d.createElement(sd.Provider,{value:s},d.createElement(xg,{space:!0},l?d.cloneElement(n,{ref:u}):n))}),aF=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:s,lineType:l,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ue(s)} ${l} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
|
|
189
|
-
> ${t}-item-active,
|
|
190
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},sF=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
191
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ue(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ue(t)})`}}}}),LS=e=>gC(e),FS=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:s,groupTitleColor:l,itemBg:u,subMenuItemBg:f,itemSelectedBg:h,activeBarHeight:m,activeBarWidth:g,activeBarBorderWidth:y,motionDurationSlow:w,motionEaseInOut:b,motionEaseOut:C,itemPaddingInline:S,motionDurationMid:O,itemHoverColor:x,lineType:R,colorSplit:I,itemDisabledColor:P,dangerItemColor:$,dangerItemHoverColor:_,dangerItemSelectedColor:L,dangerItemActiveBg:F,dangerItemSelectedBg:N,popupBg:z,itemHoverBg:A,itemActiveBg:B,menuSubMenuBg:H,horizontalItemSelectedColor:X,horizontalItemSelectedBg:V,horizontalItemBorderRadius:G,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},LS(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:l}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},LS(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${P} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:x}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:F}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:L},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:h,[`&${n}-item-danger`]:{backgroundColor:N}},[`&${n}-submenu > ${n}`]:{backgroundColor:H},[`&${n}-popup > ${n}`]:{backgroundColor:z},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:z},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:G,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${Ue(m)} solid transparent`,transition:`border-color ${w} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:m,borderBottomColor:X}},"&-selected":{color:X,backgroundColor:V,"&:hover":{backgroundColor:V},"&::after":{borderBottomWidth:m,borderBottomColor:X}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ue(y)} ${R} ${I}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ue(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${O} ${C}`,`opacity ${O} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:L}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${O} ${b}`,`opacity ${O} ${b}`].join(",")}}}}}},NS=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:s,marginXS:l,itemMarginBlock:u,itemWidth:f,itemPaddingInline:h}=e,m=e.calc(s).add(o).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ue(n),paddingInline:h,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:f},[`> ${t}-item,
|
|
192
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ue(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
193
|
-
${t}-submenu-title`]:{paddingInlineEnd:m}}},lF=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:s,controlHeightLG:l,motionEaseOut:u,paddingXL:f,itemMarginInline:h,fontSizeLG:m,motionDurationFast:g,motionDurationSlow:y,paddingXS:w,boxShadowSecondary:b,collapsedWidth:C,collapsedIconSize:S}=e,O={height:r,lineHeight:Ue(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},NS(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},NS(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${Ue(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background ${y}`,`padding ${g} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:O,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:O}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
|
|
194
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
195
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
196
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ue(e.calc(S).div(2).equal())} - ${Ue(h)})`,textOverflow:"clip",[`
|
|
197
|
-
${t}-submenu-arrow,
|
|
198
|
-
${t}-submenu-expand-icon
|
|
199
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:Ue(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Xc),{paddingInline:w})}}]},MS=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:s,iconCls:l,iconSize:u,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${s}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},nu()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kS=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:s,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ue(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ue(l)})`}}}}},uF=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:l,paddingXS:u,padding:f,colorSplit:h,lineWidth:m,zIndexPopup:g,borderRadiusLG:y,subMenuItemBorderRadius:w,menuArrowSize:b,menuArrowOffset:C,lineType:S,groupTitleLineHeight:O,groupTitleFontSize:x}=e;return[{"":{[n]:Object.assign(Object.assign({},dy()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i(e)),dy()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ue(u)} ${Ue(f)}`,fontSize:x,lineHeight:O,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`,`padding ${s} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:h,borderStyle:S,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),MS(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ue(e.calc(r).mul(2).equal())} ${Ue(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:y},MS(e)),kS(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:w},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),kS(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
200
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ue(C)})`},"&::after":{transform:`rotate(45deg) translateX(${Ue(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ue(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ue(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ue(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},cF=e=>{var t,n,r;const{colorPrimary:o,colorError:s,colorTextDisabled:l,colorErrorBg:u,colorText:f,colorTextDescription:h,colorBgContainer:m,colorFillAlter:g,colorFillContent:y,lineWidth:w,lineWidthBold:b,controlItemBgActive:C,colorBgTextHover:S,controlHeightLG:O,lineHeight:x,colorBgElevated:R,marginXXS:I,padding:P,fontSize:$,controlHeightSM:_,fontSizeLG:L,colorTextLightSolid:F,colorErrorHover:N}=e,z=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,A=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:w,B=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,H=new Yt(F).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:f,itemColor:f,colorItemTextHover:f,itemHoverColor:f,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:h,groupTitleColor:h,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:m,itemBg:m,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:y,itemActiveBg:C,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:z,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:w,activeBarBorderWidth:A,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:s,dangerItemColor:s,colorDangerItemTextHover:s,dangerItemHoverColor:s,colorDangerItemTextSelected:s,dangerItemSelectedColor:s,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:O,groupTitleLineHeight:x,collapsedWidth:O*2,popupBg:R,itemMarginBlock:I,itemPaddingInline:P,horizontalLineHeight:`${O*1.15}px`,iconSize:$,iconMarginInlineEnd:_-$,collapsedIconSize:L,groupTitleFontSize:$,darkItemDisabledColor:new Yt(F).setA(.25).toRgbString(),darkItemColor:H,darkDangerItemColor:s,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:F,darkItemSelectedBg:o,darkDangerItemSelectedBg:s,darkItemHoverBg:"transparent",darkGroupTitleColor:H,darkItemHoverColor:F,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:F,darkDangerItemActiveBg:s,itemWidth:z?`calc(100% + ${A}px)`:`calc(100% - ${B*2}px)`}},dF=(e,t=e,n=!0)=>io("Menu",o=>{const{colorBgElevated:s,controlHeightLG:l,fontSize:u,darkItemColor:f,darkDangerItemColor:h,darkItemBg:m,darkSubMenuItemBg:g,darkItemSelectedColor:y,darkItemSelectedBg:w,darkDangerItemSelectedBg:b,darkItemHoverBg:C,darkGroupTitleColor:S,darkItemHoverColor:O,darkItemDisabledColor:x,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:P,popupBg:$,darkPopupBg:_}=o,L=o.calc(u).div(7).mul(5).equal(),F=Nn(o,{menuArrowSize:L,menuHorizontalHeight:o.calc(l).mul(1.15).equal(),menuArrowOffset:o.calc(L).mul(.25).equal(),menuSubMenuBg:s,calc:o.calc,popupBg:$}),N=Nn(F,{itemColor:f,itemHoverColor:O,groupTitleColor:S,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:m,popupBg:_,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:w,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:x,dangerItemColor:h,dangerItemHoverColor:R,dangerItemSelectedColor:I,dangerItemActiveBg:P,dangerItemSelectedBg:b,menuSubMenuBg:g,horizontalItemSelectedColor:y,horizontalItemSelectedBg:w});return[uF(F),aF(F),lF(F),FS(F,"light"),FS(N,"dark"),sF(F),c5(F),nd(F,"slide-up"),nd(F,"slide-down"),sw(F,"zoom-big")]},cF,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),hE=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:s}=e,l=d.useContext(ad),{prefixCls:u,inlineCollapsed:f,theme:h}=l,m=ws();let g;if(!r)g=f&&!m.length&&o&&typeof o=="string"?d.createElement("div",{className:`${u}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${u}-title-content`},o);else{const b=d.isValidElement(o)&&o.type==="span";g=d.createElement(d.Fragment,null,da(r,{className:Se(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),b?o:d.createElement("span",{className:`${u}-title-content`},o))}const y=d.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[w]=gg("Menu");return d.createElement(ad.Provider,{value:y},d.createElement(kd,Object.assign({},ao(e,["icon"]),{title:g,popupClassName:Se(u,n,`${u}-${s||h}`),popupStyle:Object.assign({zIndex:w},e.popupStyle)})))};var fF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rp(e){return e===null||e===!1}const hF={item:fE,submenu:hE,divider:dE},pF=d.forwardRef((e,t)=>{var n;const r=d.useContext(sd),o=r||{},{getPrefixCls:s,getPopupContainer:l,direction:u,menu:f}=d.useContext(on),h=s(),{prefixCls:m,className:g,style:y,theme:w="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:S,siderCollapsed:O,rootClassName:x,mode:R,selectable:I,onClick:P,overflowedIndicatorPopupClassName:$}=e,_=fF(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),L=ao(_,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:R});const F=Yn((...M)=>{var te;P?.apply(void 0,M),(te=o.onClick)===null||te===void 0||te.call(o)}),N=o.mode||R,z=I??o.selectable,A=S??O,B={horizontal:{motionName:`${h}-slide-up`},inline:NP(h),other:{motionName:`${h}-zoom-big`}},H=s("menu",m||o.prefixCls),X=Od(H),[V,G,j]=dF(H,X,!r),J=Se(`${H}-${w}`,f?.className,g),K=d.useMemo(()=>{var M,te;if(typeof b=="function"||rp(b))return b||null;if(typeof o.expandIcon=="function"||rp(o.expandIcon))return o.expandIcon||null;if(typeof f?.expandIcon=="function"||rp(f?.expandIcon))return f?.expandIcon||null;const ee=(M=b??o?.expandIcon)!==null&&M!==void 0?M:f?.expandIcon;return da(ee,{className:Se(`${H}-submenu-expand-icon`,d.isValidElement(ee)?(te=ee.props)===null||te===void 0?void 0:te.className:void 0)})},[b,o?.expandIcon,f?.expandIcon,H]),D=d.useMemo(()=>({prefixCls:H,inlineCollapsed:A||!1,direction:u,firstLevel:!0,theme:w,mode:N,disableMenuItemTitleTooltip:C}),[H,A,u,C,w]);return V(d.createElement(sd.Provider,{value:null},d.createElement(ad.Provider,{value:D},d.createElement(su,Object.assign({getPopupContainer:l,overflowedIndicator:d.createElement(rF,null),overflowedIndicatorPopupClassName:Se(H,`${H}-${w}`,$),mode:N,selectable:z,onClick:F},L,{inlineCollapsed:A,style:Object.assign(Object.assign({},f?.style),y),className:J,prefixCls:H,direction:u,defaultMotions:B,expandIcon:K,ref:t,rootClassName:Se(x,G,o.rootClassName,j,X),_internalComponents:hF})))))}),lu=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(Ad);return d.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var s;(s=n.current)===null||s===void 0||s.focus(o)}})),d.createElement(pF,Object.assign({ref:n},e,r))});lu.Item=fE;lu.SubMenu=hE;lu.Divider=dE;lu.ItemGroup=Mg;function mF(e,t,n){var r=n||{},o=r.noTrailing,s=o===void 0?!1:o,l=r.noLeading,u=l===void 0?!1:l,f=r.debounceMode,h=f===void 0?void 0:f,m,g=!1,y=0;function w(){m&&clearTimeout(m)}function b(S){var O=S||{},x=O.upcomingOnly,R=x===void 0?!1:x;w(),g=!R}function C(){for(var S=arguments.length,O=new Array(S),x=0;x<S;x++)O[x]=arguments[x];var R=this,I=Date.now()-y;if(g)return;function P(){y=Date.now(),t.apply(R,O)}function $(){m=void 0}!u&&h&&!m&&P(),w(),h===void 0&&I>e?u?(y=Date.now(),s||(m=setTimeout(h?$:P,e))):P():s!==!0&&(m=setTimeout(h?$:P,h===void 0?e-I:e))}return C.cancel=b,C}function gF(e,t,n){var r={},o=r.atBegin,s=o===void 0?!1:o;return mF(e,t,{debounceMode:s!==!1})}function AS(e){return["small","middle","large"].includes(e)}function jS(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const pE=He.createContext({latestIndex:0}),vF=pE.Provider,yF=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:s}=d.useContext(pE);return n==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:e,style:o},n),t<s&&r&&d.createElement("span",{className:`${e}-split`},r))};var SF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bF=d.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:s,className:l,style:u,classNames:f,styles:h}=$i("space"),{size:m=s??"small",align:g,className:y,rootClassName:w,children:b,direction:C="horizontal",prefixCls:S,split:O,style:x,wrap:R=!1,classNames:I,styles:P}=e,$=SF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_,L]=Array.isArray(m)?m:[m,m],F=AS(L),N=AS(_),z=jS(L),A=jS(_),B=Mo(b,{keepEmpty:!0}),H=g===void 0&&C==="horizontal"?"center":g,X=r("space",S),[V,G,j]=ZC(X),J=Se(X,l,G,`${X}-${C}`,{[`${X}-rtl`]:o==="rtl",[`${X}-align-${H}`]:H,[`${X}-gap-row-${L}`]:F,[`${X}-gap-col-${_}`]:N},y,w,j),K=Se(`${X}-item`,(n=I?.item)!==null&&n!==void 0?n:f.item),D=Object.assign(Object.assign({},h.item),P?.item),M=B.map((Y,re)=>{const le=Y?.key||`${K}-${re}`;return d.createElement(yF,{className:K,key:le,index:re,split:O,style:D},Y)}),te=d.useMemo(()=>({latestIndex:B.reduce((re,le,pe)=>le!=null?pe:re,0)}),[B]);if(B.length===0)return null;const ee={};return R&&(ee.flexWrap="wrap"),!N&&A&&(ee.columnGap=_),!F&&z&&(ee.rowGap=L),V(d.createElement("div",Object.assign({ref:t,className:J,style:Object.assign(Object.assign(Object.assign({},ee),u),x)},$),d.createElement(vF,{value:te},M)))}),mE=bF;mE.Compact=QP;var CF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},wF=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:CF}))},EF=d.forwardRef(wF);function xF(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mo(t).some(o=>o.type===cE)}var gE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jd({suffixCls:e,tagName:t,displayName:n}){return r=>d.forwardRef((s,l)=>d.createElement(r,Object.assign({ref:l,suffixCls:e,tagName:t},s)))}const kg=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:s}=e,l=gE(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=d.useContext(on),f=u("layout",n),[h,m,g]=uE(f),y=r?`${f}-${r}`:f;return h(d.createElement(s,Object.assign({className:Se(n||y,o,m,g),ref:t},l)))}),OF=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(on),[r,o]=d.useState([]),{prefixCls:s,className:l,rootClassName:u,children:f,hasSider:h,tagName:m,style:g}=e,y=gE(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),w=ao(y,["suffixCls"]),{getPrefixCls:b,className:C,style:S}=$i("layout"),O=b("layout",s),x=xF(r,f,h),[R,I,P]=uE(O),$=Se(O,{[`${O}-has-sider`]:x,[`${O}-rtl`]:n==="rtl"},C,l,u,I,P),_=d.useMemo(()=>({siderHook:{addSider:L=>{o(F=>[].concat($e(F),[L]))},removeSider:L=>{o(F=>F.filter(N=>N!==L))}}}),[]);return R(d.createElement(aE.Provider,{value:_},d.createElement(m,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},S),g)},w),f)))}),RF=jd({tagName:"div",displayName:"Layout"})(OF),IF=jd({suffixCls:"header",tagName:"header",displayName:"Header"})(kg),TF=jd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(kg),PF=jd({suffixCls:"content",tagName:"main",displayName:"Content"})(kg),Ao=RF;Ao.Header=IF;Ao.Footer=TF;Ao.Content=PF;Ao.Sider=cE;Ao._InternalSiderContext=Ad;const ld=100,vE=ld/5,yE=ld/2-vE/2,op=yE*2*Math.PI,zS=50,BS=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:Se(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:yE,cx:zS,cy:zS,strokeWidth:vE,style:n})},$F=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[s,l]=d.useState(!1);mn(()=>{e!==0&&l(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${op/4}`,strokeDasharray:`${op*u/100} ${op*(100-u)/100}`};return d.createElement("span",{className:Se(r,`${n}-progress`,u<=0&&o)},d.createElement("svg",{viewBox:`0 0 ${ld} ${ld}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},d.createElement(BS,{dotClassName:n,hasCircleCls:!0}),d.createElement(BS,{dotClassName:n,style:f})))};function _F(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,s=`${o}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:Se(o,n>0&&s)},d.createElement("span",{className:Se(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>d.createElement("i",{className:`${t}-dot-item`,key:l})))),d.createElement($F,{prefixCls:t,percent:n}))}function DF(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,s=`${n}-dot`;return r&&d.isValidElement(r)?da(r,{className:Se((t=r.props)===null||t===void 0?void 0:t.className,s),percent:o}):d.createElement(_F,{prefixCls:n,percent:o})}const LF=new Kt("antSpinMove",{to:{opacity:1}}),FF=new Kt("antRotate",{to:{transform:"rotate(405deg)"}}),NF=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},_i(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:LF,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:FF,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},MF=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},kF=io("Spin",e=>{const t=Nn(e,{spinDotDefault:e.colorTextDescription});return NF(t)},MF),AF=200,HS=[[30,.05],[70,.03],[96,.01]];function jF(e,t){const[n,r]=d.useState(0),o=d.useRef(null),s=t==="auto";return d.useEffect(()=>(s&&e&&(r(0),o.current=setInterval(()=>{r(l=>{const u=100-l;for(let f=0;f<HS.length;f+=1){const[h,m]=HS[f];if(l<=h)return l+u*m}return l})},AF)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[s,e]),s?n:t}var zF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SE;function BF(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const ud=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:s,rootClassName:l,size:u="default",tip:f,wrapperClassName:h,style:m,children:g,fullscreen:y=!1,indicator:w,percent:b}=e,C=zF(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:S,direction:O,className:x,style:R,indicator:I}=$i("spin"),P=S("spin",n),[$,_,L]=kF(P),[F,N]=d.useState(()=>r&&!BF(r,o)),z=jF(F,b);d.useEffect(()=>{if(r){const j=gF(o,()=>{N(!0)});return j(),()=>{var J;(J=j?.cancel)===null||J===void 0||J.call(j)}}N(!1)},[o,r]);const A=d.useMemo(()=>typeof g<"u"&&!y,[g,y]),B=Se(P,x,{[`${P}-sm`]:u==="small",[`${P}-lg`]:u==="large",[`${P}-spinning`]:F,[`${P}-show-text`]:!!f,[`${P}-rtl`]:O==="rtl"},s,!y&&l,_,L),H=Se(`${P}-container`,{[`${P}-blur`]:F}),X=(t=w??I)!==null&&t!==void 0?t:SE,V=Object.assign(Object.assign({},R),m),G=d.createElement("div",Object.assign({},C,{style:V,className:B,"aria-live":"polite","aria-busy":F}),d.createElement(DF,{prefixCls:P,indicator:X,percent:z}),f&&(A||y)?d.createElement("div",{className:`${P}-text`},f):null);return $(A?d.createElement("div",Object.assign({},C,{className:Se(`${P}-nested-loading`,h,_,L)}),F&&d.createElement("div",{key:"loading"},G),d.createElement("div",{className:H,key:"container"},g)):y?d.createElement("div",{className:Se(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:F},l,_,L)},G):G)};ud.setDefaultIndicator=e=>{SE=e};let to=null,Ji=e=>e(),Kl=[],Gl={};function US(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Gl,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:o}}const HF=He.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=d.useContext(on),s=Gl.prefixCls||o("message"),l=d.useContext(v8),[u,f]=KC(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),l.message));return He.useImperativeHandle(t,()=>{const h=Object.assign({},u);return Object.keys(h).forEach(m=>{h[m]=(...g)=>(r(),u[m].apply(u,g))}),{instance:h,sync:r}}),f}),UF=He.forwardRef((e,t)=>{const[n,r]=He.useState(US),o=()=>{r(US)};He.useEffect(o,[]);const s=c6(),l=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),h=He.createElement(HF,{ref:t,sync:o,messageConfig:n});return He.createElement(Di,{prefixCls:l,iconPrefixCls:u,theme:f},s.holderRender?s.holderRender(h):h)}),zd=()=>{if(!to){const e=document.createDocumentFragment(),t={fragment:e};to=t,Ji(()=>{YC()(He.createElement(UF,{ref:r=>{const{instance:o,sync:s}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=s,zd())})}}),e)});return}to.instance&&(Kl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ji(()=>{const r=to.instance.open(Object.assign(Object.assign({},Gl),e.config));r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ji(()=>{to?.instance.destroy(e.key)});break;default:Ji(()=>{var r;const o=(r=to.instance)[t].apply(r,$e(e.args));o?.then(e.resolve),e.setCloseFn(o)})}}),Kl=[])};function VF(e){Gl=Object.assign(Object.assign({},Gl),e),Ji(()=>{var t;(t=to?.sync)===null||t===void 0||t.call(to)})}function WF(e){const t=vg(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return Kl.push(o),()=>{r?Ji(()=>{r()}):o.skipped=!0}});return zd(),t}function qF(e,t){const n=vg(r=>{let o;const s={type:e,args:t,resolve:r,setCloseFn:l=>{o=l}};return Kl.push(s),()=>{o?Ji(()=>{o()}):s.skipped=!0}});return zd(),n}const KF=e=>{Kl.push({type:"destroy",key:e}),zd()},GF=["success","info","warning","error","loading"],QF={open:WF,destroy:KF,config:VF,useMessage:bP,_InternalPanelDoNotUseOrYouWillBeFired:fP},bi=QF;GF.forEach(e=>{bi[e]=(...t)=>qF(e,t)});var YF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},XF=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:YF}))},JF=d.forwardRef(XF),ZF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},eN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:ZF}))},tN=d.forwardRef(eN);const nN=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),d.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),d.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),d.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),d.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),d.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),d.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),d.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),d.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),d.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),d.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),d.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),d.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),d.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),d.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),d.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),d.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),d.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),d.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),d.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),d.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),d.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),d.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),d.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),d.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),d.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),d.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),d.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),d.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),d.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),d.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),d.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),d.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),d.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),rN=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),d.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),d.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),d.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),d.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),d.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),d.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),d.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),d.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),d.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),d.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),d.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),d.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),d.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),d.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),d.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),d.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),d.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),d.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),d.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),d.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),d.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),d.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),d.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),d.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),d.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),d.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),d.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),d.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),d.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),d.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),d.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),d.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),d.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),d.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),d.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),d.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),d.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),d.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),d.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),d.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),oN=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:s,paddingXS:l,paddingLG:u,marginXS:f,lineHeight:h}=e;return{[t]:{padding:`${Ue(e.calc(u).mul(2).equal())} ${Ue(s)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:u,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:f,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:h,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:u,padding:`${Ue(u)} ${Ue(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},iN=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},aN=e=>[oN(e),iN(e)],sN=e=>aN(e),lN=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),uN=io("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,s=Nn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[sN(s)]},lN),cN=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),d.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),d.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),d.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),d.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),d.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),d.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),d.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),d.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),d.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),d.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),d.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),d.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),d.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),d.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),d.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),d.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),d.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),d.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),d.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),d.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),d.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),d.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),d.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),d.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),d.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),d.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),d.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),d.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),d.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),d.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),d.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),d.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),d.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),d.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),d.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),d.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),d.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),d.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),d.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),dN={success:hg,error:xd,info:mg,warning:tN},uu={404:nN,500:rN,403:cN},fN=Object.keys(uu),hN=({prefixCls:e,icon:t,status:n})=>{const r=Se(`${e}-icon`);if(fN.includes(`${n}`)){const s=uu[n];return d.createElement("div",{className:`${r} ${e}-image`},d.createElement(s,null))}const o=d.createElement(dN[n]);return t===null||t===!1?null:d.createElement("div",{className:r},t||o)},pN=({prefixCls:e,extra:t})=>t?d.createElement("div",{className:`${e}-extra`},t):null,Bd=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:o,style:s,children:l,status:u="info",icon:f,extra:h})=>{const{getPrefixCls:m,direction:g,result:y}=d.useContext(on),w=m("result",e),[b,C,S]=uN(w),O=Se(w,`${w}-${u}`,t,y?.className,n,{[`${w}-rtl`]:g==="rtl"},C,S),x=Object.assign(Object.assign({},y?.style),s);return b(d.createElement("div",{className:O,style:x},d.createElement(hN,{prefixCls:w,status:u,icon:f}),d.createElement("div",{className:`${w}-title`},o),r&&d.createElement("div",{className:`${w}-subtitle`},r),d.createElement(pN,{prefixCls:w,extra:h}),l&&d.createElement("div",{className:`${w}-content`},l)))};Bd.PRESENTED_IMAGE_403=uu[403];Bd.PRESENTED_IMAGE_404=uu[404];Bd.PRESENTED_IMAGE_500=uu[500];var mN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},gN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:mN}))},vN=d.forwardRef(gN);const yN=e=>{const t=e?.algorithm?Gc(e.algorithm):ug,n=Object.assign(Object.assign({},ss),e?.token);return Ub(n,{override:e?.token},t,dg)};function SN(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const bN=(e,t)=>{const n=t??wd(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),SN(t??e)),cC(r)),{controlHeight:o}),uC(Object.assign(Object.assign({},n),{controlHeight:o})))},eo=(e,t)=>new Yt(e).setA(t).toRgbString(),Wa=(e,t)=>new Yt(e).lighten(t).toHexString(),CN=e=>{const t=oa(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},wN=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:eo(r,.85),colorTextSecondary:eo(r,.65),colorTextTertiary:eo(r,.45),colorTextQuaternary:eo(r,.25),colorFill:eo(r,.18),colorFillSecondary:eo(r,.12),colorFillTertiary:eo(r,.08),colorFillQuaternary:eo(r,.04),colorBgSolid:eo(r,.95),colorBgSolidHover:eo(r,1),colorBgSolidActive:eo(r,.9),colorBgElevated:Wa(n,12),colorBgContainer:Wa(n,8),colorBgLayout:Wa(n,0),colorBgSpotlight:Wa(n,26),colorBgBlur:eo(r,.04),colorBorder:Wa(n,26),colorBorderSecondary:Wa(n,19)}},EN=(e,t)=>{const n=Object.keys(lg).map(s=>{const l=oa(e[s],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,f,h)=>(u[`${s}-${h+1}`]=l[h],u[`${s}${h+1}`]=l[h],u),{})}).reduce((s,l)=>(s=Object.assign(Object.assign({},s),l),s),{}),r=t??wd(e),o=lC(e,{generateColorPalettes:CN,generateNeutralColorPalettes:wN});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};function xN(){const[e,t,n]=oo();return{theme:e,token:t,hashId:n}}const ON={defaultSeed:jl.token,useToken:xN,defaultAlgorithm:wd,darkAlgorithm:EN,compactAlgorithm:bN,getDesignToken:yN,defaultConfig:jl,_internalContext:cg};var RN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},IN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:RN}))},TN=d.forwardRef(IN),PN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},$N=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:PN}))},_N=d.forwardRef($N),DN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},LN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:DN}))},FN=d.forwardRef(LN),NN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},MN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:NN}))},kN=d.forwardRef(MN),AN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"},jN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:AN}))},zN=d.forwardRef(jN),BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},HN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:BN}))},UN=d.forwardRef(HN),VN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},WN=function(t,n){return d.createElement(nn,Fe({},t,{ref:n,icon:VN}))},qN=d.forwardRef(WN);const bt=e=>typeof e=="string",ol=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},VS=e=>e==null?"":""+e,KN=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},GN=/###/g,WS=e=>e&&e.indexOf("###")>-1?e.replace(GN,"."):e,qS=e=>!e||bt(e),Il=(e,t,n)=>{const r=bt(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(qS(e))return{};const s=WS(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return qS(e)?{}:{obj:e,k:WS(r[o])}},KS=(e,t,n)=>{const{obj:r,k:o}=Il(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],l=t.slice(0,t.length-1),u=Il(e,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=Il(e,l,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},QN=(e,t,n,r)=>{const{obj:o,k:s}=Il(e,t,Object);o[s]=o[s]||[],o[s].push(n)},cd=(e,t)=>{const{obj:n,k:r}=Il(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},YN=(e,t,n)=>{const r=cd(e,n);return r!==void 0?r:cd(t,n)},bE=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?bt(e[r])||e[r]instanceof String||bt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):bE(e[r],t[r],n):e[r]=t[r]);return e},qa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var XN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const JN=e=>bt(e)?e.replace(/[&<>"'\/]/g,t=>XN[t]):e;class ZN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const eM=[" ",",","?","!",";"],tM=new ZN(20),nM=(e,t,n)=>{t=t||"",n=n||"";const r=eM.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const o=tM.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!o.test(e);if(!s){const l=e.indexOf(n);l>0&&!o.test(e.substring(0,l))&&(s=!0)}return s},Lm=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let l,u="";for(let f=s;f<r.length;++f)if(f!==s&&(u+=n),u+=r[f],l=o[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&f<r.length-1)continue;s+=f-s+1;break}o=l}return o},Ql=e=>e?.replace("_","-"),rM={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class dd{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||rM,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(bt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new dd(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new dd(this.logger,t)}}var Fo=new dd;class Hd{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,s])=>{for(let l=0;l<s;l++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let l=0;l<s;l++)o.apply(o,[t,...n])})}}class GS extends Hd{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):bt(r)&&s?u.push(...r.split(s)):u.push(r)));const f=cd(this.data,u);return!f&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),f||!l||!bt(r)?f:Lm(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o,s={silent:!1}){const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),KS(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const s in r)(bt(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s,l={silent:!1,skipCopy:!1}){let u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let f=cd(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?bE(f,r,s):f={...f,...r},KS(this.data,u,f),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var CE={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const wE=Symbol("i18next/PATH_KEY");function oM(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===wE?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Fm(e,t){const{[wE]:n}=e(oM());return n.join(t?.keySeparator??".")}const QS={},ip=e=>!bt(e)&&typeof e!="boolean"&&typeof e!="number";class fd extends Hd{constructor(t,n={}){super(),KN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const s=ip(o.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nM(t,r,o);if(l&&!u){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:bt(s)?[s]:s};const h=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(h[0])>-1)&&(s=h.shift()),t=h.join(o)}return{key:t,namespaces:bt(s)?[s]:s}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Fm(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:u,namespaces:f}=this.extractFromKey(t[t.length-1],o),h=f[f.length-1];let m=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const g=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return y?s?{res:`${h}${m}${u}`,usedKey:u,exactUsedKey:u,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:`${h}${m}${u}`:s?{res:u,usedKey:u,exactUsedKey:u,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:u;const w=this.resolve(t,o);let b=w?.res;const C=w?.usedKey||u,S=w?.exactUsedKey||u,O=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,I=o.count!==void 0&&!bt(o.count),P=fd.hasDefaultValue(o),$=I?this.pluralResolver.getSuffix(g,o.count,o):"",_=o.ordinal&&I?this.pluralResolver.getSuffix(g,o.count,{ordinal:!1}):"",L=I&&!o.ordinal&&o.count===0,F=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${$}`]||o[`defaultValue${_}`]||o.defaultValue;let N=b;R&&!b&&P&&(N=F);const z=ip(N),A=Object.prototype.toString.apply(N);if(R&&N&&z&&O.indexOf(A)<0&&!(bt(x)&&Array.isArray(N))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,N,{...o,ns:f}):`key '${u} (${this.language})' returned an object instead of string.`;return s?(w.res=B,w.usedParams=this.getUsedParamsDetails(o),w):B}if(l){const B=Array.isArray(N),H=B?[]:{},X=B?S:C;for(const V in N)if(Object.prototype.hasOwnProperty.call(N,V)){const G=`${X}${l}${V}`;P&&!b?H[V]=this.translate(G,{...o,defaultValue:ip(F)?F[V]:void 0,joinArrays:!1,ns:f}):H[V]=this.translate(G,{...o,joinArrays:!1,ns:f}),H[V]===G&&(H[V]=N[V])}b=H}}else if(R&&bt(x)&&Array.isArray(b))b=b.join(x),b&&(b=this.extendTranslation(b,t,o,r));else{let B=!1,H=!1;!this.isValidLookup(b)&&P&&(B=!0,b=F),this.isValidLookup(b)||(H=!0,b=u);const V=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&H?void 0:b,G=P&&F!==b&&this.options.updateMissing;if(H||B||G){if(this.logger.log(G?"updateKey":"missingKey",g,h,u,G?F:b),l){const D=this.resolve(u,{...o,keySeparator:!1});D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let D=0;D<J.length;D++)j.push(J[D]);else this.options.saveMissingTo==="all"?j=this.languageUtils.toResolveHierarchy(o.lng||this.language):j.push(o.lng||this.language);const K=(D,M,te)=>{const ee=P&&te!==b?te:V;this.options.missingKeyHandler?this.options.missingKeyHandler(D,h,M,ee,G,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(D,h,M,ee,G,o),this.emit("missingKey",D,h,M,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?j.forEach(D=>{const M=this.pluralResolver.getSuffixes(D,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&M.indexOf(`${this.options.pluralSeparator}zero`)<0&&M.push(`${this.options.pluralSeparator}zero`),M.forEach(te=>{K([D],u+te,o[`defaultValue${te}`]||F)})}):K(j,u,F))}b=this.extendTranslation(b,t,o,w,r),H&&b===u&&this.options.appendNamespaceToMissingKey&&(b=`${h}${m}${u}`),(H||B)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${m}${u}`:u,B?b:void 0,o))}return s?(w.res=b,w.usedParams=this.getUsedParamsDetails(o),w):b}extendTranslation(t,n,r,o,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=bt(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!bt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>s?.[0]===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,u=bt(l)?[l]:l;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=CE.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,s,l,u;return bt(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(f,n),m=h.key;o=m;let g=h.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const y=n.count!==void 0&&!bt(n.count),w=y&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(bt(n.context)||typeof n.context=="number")&&n.context!=="",C=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(S=>{this.isValidLookup(r)||(u=S,!QS[`${C[0]}-${S}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(QS[`${C[0]}-${S}`]=!0,this.logger.warn(`key "${o}" for languages "${C.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(O=>{if(this.isValidLookup(r))return;l=O;const x=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(x,m,O,S,n);else{let I;y&&(I=this.pluralResolver.getSuffix(O,n.count,n));const P=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&I.indexOf($)===0&&x.push(m+I.replace($,this.options.pluralSeparator)),x.push(m+I),w&&x.push(m+P)),b){const _=`${m}${this.options.contextSeparator||"_"}${n.context}`;x.push(_),y&&(n.ordinal&&I.indexOf($)===0&&x.push(_+I.replace($,this.options.pluralSeparator)),x.push(_+I),w&&x.push(_+P))}}let R;for(;R=x.pop();)this.isValidLookup(r)||(s=R,r=this.getResource(O,S,R,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!bt(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class YS{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}getScriptPartFromCode(t){if(t=Ql(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ql(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(bt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(l=>{if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&(l.indexOf("-")>0&&s.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===s||l.indexOf(s)===0&&s.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),bt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],s=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return bt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):bt(t)&&s(this.formatLanguageCode(t)),r.forEach(l=>{o.indexOf(l)<0&&s(this.formatLanguageCode(l))}),o}}const XS={zero:0,one:1,two:2,few:3,many:4,other:5},JS={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class iM{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Fo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Ql(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let l;try{l=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),JS;if(!t.match(/-|_/))return JS;const f=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(f,n)}return this.pluralRulesCache[s]=l,l}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>XS[o]-XS[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const ZS=(e,t,n,r=".",o=!0)=>{let s=YN(e,t,n);return!s&&o&&bt(n)&&(s=Lm(e,n,r),s===void 0&&(s=Lm(t,n,r))),s},ap=e=>e.replace(/\$/g,"$$$$");class aM{constructor(t={}){this.logger=Fo.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:f,formatSeparator:h,unescapeSuffix:m,unescapePrefix:g,nestingPrefix:y,nestingPrefixEscaped:w,nestingSuffix:b,nestingSuffixEscaped:C,nestingOptionsSeparator:S,maxReplaces:O,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:JN,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?qa(s):l||"{{",this.suffix=u?qa(u):f||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=y?qa(y):w||qa("$t("),this.nestingSuffix=b?qa(b):C||qa(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=O||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,l,u;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=w=>{if(w.indexOf(this.formatSeparator)<0){const O=ZS(n,f,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,r,{...o,...n,interpolationkey:w}):O}const b=w.split(this.formatSeparator),C=b.shift().trim(),S=b.join(this.formatSeparator).trim();return this.format(ZS(n,f,C,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...o,...n,interpolationkey:C})};this.resetRegExp();const m=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>ap(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?ap(this.escape(w)):ap(w)}].forEach(w=>{for(u=0;s=w.regex.exec(t);){const b=s[1].trim();if(l=h(b),l===void 0)if(typeof m=="function"){const S=m(t,s,o);l=bt(S)?S:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))l="";else if(g){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),l="";else!bt(l)&&!this.useRawValueToEscape&&(l=VS(l));const C=w.safeValue(l);if(t=t.replace(s[0],C),g?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,s,l;const u=(f,h)=>{const m=this.nestingOptionsSeparator;if(f.indexOf(m)<0)return f;const g=f.split(new RegExp(`${m}[ ]*{`));let y=`{${g[1]}`;f=g[0],y=this.interpolate(y,l);const w=y.match(/'/g),b=y.match(/"/g);((w?.length??0)%2===0&&!b||b.length%2!==0)&&(y=y.replace(/'/g,'"'));try{l=JSON.parse(y),h&&(l={...h,...l})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,C),`${f}${m}${y}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,f};for(;o=this.nestingRegexp.exec(t);){let f=[];l={...r},l=l.replace&&!bt(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const h=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(h!==-1&&(f=o[1].slice(h).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),o[1]=o[1].slice(0,h)),s=n(u.call(this,o[1].trim(),l),l),s&&o[0]===t&&!bt(s))return s;bt(s)||(s=VS(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f.length&&(s=f.reduce((m,g)=>this.format(m,g,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const sM=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(l=>{if(l){const[u,...f]=l.split(":"),h=f.join(":").trim().replace(/^'+|'+$/g,""),m=u.trim();n[m]||(n[m]=h),h==="false"&&(n[m]=!1),h==="true"&&(n[m]=!0),isNaN(h)||(n[m]=parseInt(h,10))}})}return{formatName:t,formatOptions:n}},e2=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const l=r+JSON.stringify(s);let u=t[l];return u||(u=e(Ql(r),o),t[l]=u),u(n)}},lM=e=>(t,n,r)=>e(Ql(n),r)(t);class uM{constructor(t={}){this.logger=Fo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?e2:lM;this.formats={number:r((o,s)=>{const l=new Intl.NumberFormat(o,{...s});return u=>l.format(u)}),currency:r((o,s)=>{const l=new Intl.NumberFormat(o,{...s,style:"currency"});return u=>l.format(u)}),datetime:r((o,s)=>{const l=new Intl.DateTimeFormat(o,{...s});return u=>l.format(u)}),relativetime:r((o,s)=>{const l=new Intl.RelativeTimeFormat(o,{...s});return u=>l.format(u,s.range||"day")}),list:r((o,s)=>{const l=new Intl.ListFormat(o,{...s});return u=>l.format(u)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=e2(n)}format(t,n,r,o={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,f)=>{const{formatName:h,formatOptions:m}=sM(f);if(this.formats[h]){let g=u;try{const y=o?.formatParams?.[o.interpolationkey]||{},w=y.locale||y.lng||o.locale||o.lng||r;g=this.formats[h](u,w,{...m,...o,...y})}catch(y){this.logger.warn(y)}return g}else this.logger.warn(`there was no format function for ${h}`);return u},t)}}const cM=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class dM extends Hd{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Fo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},l={},u={},f={};return t.forEach(h=>{let m=!0;n.forEach(g=>{const y=`${h}|${g}`;!r.reload&&this.store.hasResourceBundle(h,g)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?l[y]===void 0&&(l[y]=!0):(this.state[y]=1,m=!1,l[y]===void 0&&(l[y]=!0),s[y]===void 0&&(s[y]=!0),f[g]===void 0&&(f[g]=!0)))}),m||(u[h]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(f)}}loaded(t,n,r){const o=t.split("|"),s=o[0],l=o[1];n&&this.emit("failedLoading",s,l,n),!n&&r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(f=>{QN(f.loaded,[s],l),cM(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(h=>{u[h]||(u[h]={});const m=f.loaded[h];m.length&&m.forEach(g=>{u[h][g]===void 0&&(u[h][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(f=>!f.done)}read(t,n,r,o=0,s=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:l});return}this.readingCalls++;const u=(h,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(h&&m&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,l)},s);return}l(h,m)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const h=f(t,n);h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}return}return f(t,n,u)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();bt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),bt(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,l,u)})}saveMissing(t,n,r,o,s,l={},u=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...l,isUpdate:s},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(t,n,r,o,f):m=h(t,n,r,o),m&&typeof m.then=="function"?m.then(g=>u(null,g)).catch(u):u(null,m)}catch(m){u(m)}else h(t,n,r,o,u,f)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const t2=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),bt(e[1])&&(t.defaultValue=e[1]),bt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),n2=e=>(bt(e.ns)&&(e.ns=[e.ns]),bt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),xc=()=>{},fM=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Tl extends Hd{constructor(t={},n){if(super(),this.options=n2(t),this.services={},this.logger=Fo,this.modules={external:[]},fM(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(bt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=t2();this.options={...r,...this.options,...n2(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?Fo.init(o(this.modules.logger),this.options):Fo.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=uM;const m=new YS(this.options);this.store=new GS(this.options.resources,this.options);const g=this.services;g.logger=Fo,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new iM(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=o(h),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new aM(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new dM(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(w,...b)=>{this.emit(w,...b)}),this.modules.languageDetector&&(g.languageDetector=o(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=o(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new fd(this.services,this.options),this.translator.on("*",(w,...b)=>{this.emit(w,...b)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,n||(n=xc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=(...m)=>this.store[h](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...m)=>(this.store[h](...m),this)});const u=ol(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(g),n(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),u}loadResources(t,n=xc){let r=n;const o=bt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&s.indexOf(h)<0&&s.push(h)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),this.options.preload?.forEach?.(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=ol();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=xc),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&CE.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=ol();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},s=(u,f)=>{f?this.isLanguageChangingTo===t&&(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...h)=>this.t(...h)),n&&n(u,(...h)=>this.t(...h))},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const f=bt(u)?u:u&&u[0],h=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(bt(u)?[u]:u);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector?.cacheUserLanguage?.(h)),this.loadResources(h,m=>{s(m,h)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,r){const o=(s,l,...u)=>{let f;typeof l!="object"?f=this.options.overloadTranslationOptionHandler([s,l].concat(u)):f={...l},f.lng=f.lng||o.lng,f.lngs=f.lngs||o.lngs,f.ns=f.ns||o.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||o.keyPrefix);const h=this.options.keySeparator||".";let m;return f.keyPrefix&&Array.isArray(s)?m=s.map(g=>(typeof g=="function"&&(g=Fm(g,{...this.options,...l})),`${f.keyPrefix}${h}${g}`)):(typeof s=="function"&&(s=Fm(s,{...this.options,...l})),m=f.keyPrefix?`${f.keyPrefix}${h}${s}`:s),this.t(m,f)};return bt(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,f)=>{const h=this.services.backendConnector.state[`${u}|${f}`];return h===-1||h===0||h===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!o||l(s,t)))}loadNamespaces(t,n){const r=ol();return this.options.ns?(bt(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ol();bt(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=o.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new YS(t2());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Tl(t,n);return r.createInstance=Tl.createInstance,r}cloneInstance(t={},n=xc){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new Tl(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((f,h)=>(f[h]={...this.store.data[h]},f[h]=Object.keys(f[h]).reduce((m,g)=>(m[g]={...f[h][g]},m),f[h]),f),{});s.store=new GS(u,o),s.services.resourceStore=s.store}return s.translator=new fd(s.services,o),s.translator.on("*",(u,...f)=>{s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const br=Tl.createInstance();br.createInstance;br.dir;br.init;br.loadResources;br.reloadResources;br.use;br.changeLanguage;br.getFixedT;br.t;br.exists;br.setDefaultNamespace;br.hasLoadedNamespace;br.loadNamespaces;br.loadLanguages;const hM=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);aa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},r2={},EE=(e,t,n,r)=>{aa(n)&&r2[n]||(aa(n)&&(r2[n]=new Date),hM(e,t,n,r))},xE=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Nm=(e,t,n)=>{e.loadNamespaces(t,xE(e,n))},o2=(e,t,n,r)=>{if(aa(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Nm(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,xE(e,r))},pM=(e,t,n={})=>!t.languages||!t.languages.length?(EE(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),aa=e=>typeof e=="string",mM=e=>typeof e=="object"&&e!==null,gM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},yM=e=>vM[e],SM=e=>e.replace(gM,yM);let Mm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:SM};const bM=(e={})=>{Mm={...Mm,...e}},CM=()=>Mm;let OE;const wM=e=>{OE=e},EM=()=>OE,xM={type:"3rdParty",init(e){bM(e.options.react),wM(e)}},OM=d.createContext();class RM{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var sp={exports:{}},lp={};var i2;function IM(){if(i2)return lp;i2=1;var e=pd();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,y){var w=y(),b=r({inst:{value:w,getSnapshot:y}}),C=b[0].inst,S=b[1];return s(function(){C.value=w,C.getSnapshot=y,f(C)&&S({inst:C})},[g,w,y]),o(function(){return f(C)&&S({inst:C}),g(function(){f(C)&&S({inst:C})})},[g]),l(w),w}function f(g){var y=g.getSnapshot;g=g.value;try{var w=y();return!n(g,w)}catch{return!0}}function h(g,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return lp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,lp}var a2;function TM(){return a2||(a2=1,sp.exports=IM()),sp.exports}var PM=TM();const $M=(e,t)=>aa(t)?t:mM(t)&&aa(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,_M={t:$M,ready:!1},DM=()=>()=>{},cu=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=d.useContext(OM)||{},s=n||r||EM();s&&!s.reportNamespaces&&(s.reportNamespaces=new RM),s||EE(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=d.useMemo(()=>({...CM(),...s?.options?.react,...t}),[s,t]),{useSuspense:u,keyPrefix:f}=l,h=d.useMemo(()=>{const I=o||s?.options?.defaultNS;return aa(I)?[I]:I||["translation"]},[e,o,s]);s?.reportNamespaces?.addUsedNamespaces?.(h);const m=d.useRef(0),g=d.useCallback(I=>{if(!s)return DM;const{bindI18n:P,bindI18nStore:$}=l,_=()=>{m.current+=1,I()};return P&&s.on(P,_),$&&s.store.on($,_),()=>{P&&P.split(" ").forEach(L=>s.off(L,_)),$&&$.split(" ").forEach(L=>s.store.off(L,_))}},[s,l]),y=d.useRef(),w=d.useCallback(()=>{if(!s)return _M;const I=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(N=>pM(N,s,l)),P=t.lng||s.language,$=m.current,_=y.current;if(_&&_.ready===I&&_.lng===P&&_.keyPrefix===f&&_.revision===$)return _;const F={t:s.getFixedT(P,l.nsMode==="fallback"?h:h[0],f),ready:I,lng:P,keyPrefix:f,revision:$};return y.current=F,F},[s,h,f,l,t.lng]),[b,C]=d.useState(0),{t:S,ready:O}=PM.useSyncExternalStore(g,w,w);d.useEffect(()=>{if(s&&!O&&!u){const I=()=>C(P=>P+1);t.lng?o2(s,t.lng,h,I):Nm(s,h,I)}},[s,t.lng,h,O,u,b]);const x=s||{},R=d.useMemo(()=>{const I=[S,x,O];return I.t=S,I.i18n=x,I.ready=O,I},[S,x,O]);if(s&&u&&!O)throw new Promise(I=>{const P=()=>I();t.lng?o2(s,t.lng,h,P):Nm(s,h,P)});return R},{Header:LM}=Ao;function FM({isAuthenticated:e,isLoggingOut:t,isRefreshingToken:n,onLogin:r,onLogout:o,onRefreshToken:s,colorBgContainer:l}){const{t:u,i18n:f}=cu(),h=m=>{f.changeLanguage(m)};return Ce.jsx(LM,{style:{padding:0,background:l},children:Ce.jsxs("div",{style:{padding:"0 24px",lineHeight:"64px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Ce.jsx("h1",{style:{margin:0,fontSize:"20px"},children:u("layout.title")}),Ce.jsxs(mE,{children:[e?Ce.jsxs(Ce.Fragment,{children:[Ce.jsx(es,{icon:Ce.jsx(JF,{}),onClick:s,loading:n,children:u("layout.refreshToken")}),Ce.jsx(es,{danger:!0,icon:Ce.jsx(UN,{}),onClick:o,loading:t,children:u("layout.logout")})]}):Ce.jsx(es,{type:"primary",icon:Ce.jsx(zN,{}),onClick:r,children:u("layout.login")}),Ce.jsx(Cs,{value:f.language,onChange:h,style:{width:120},options:[{label:u("layout.languageZh"),value:"zh-CN"},{label:u("layout.languageEn"),value:"en-US"}]})]})]})})}const{Sider:NM}=Ao;function MM({collapsed:e,onCollapse:t}){const{t:n}=cu(),r=gd(),o=gs(),s=[{key:"/dashboard",icon:Ce.jsx(_N,{}),label:n("layout.dashboard")},{key:"/config",icon:Ce.jsx(qN,{}),label:n("layout.config")},{key:"/download",icon:Ce.jsx(TN,{}),label:n("layout.download")},{key:"/url-download",icon:Ce.jsx(kN,{}),label:n("layout.urlDownload")},{key:"/history",icon:Ce.jsx(FN,{}),label:n("layout.history")},{key:"/logs",icon:Ce.jsx(EF,{}),label:n("layout.logs")},{key:"/files",icon:Ce.jsx(vN,{}),label:n("layout.files")}],l=({key:u})=>{r(u)};return Ce.jsxs(NM,{collapsible:!0,collapsed:e,onCollapse:t,theme:"dark",children:[Ce.jsx("div",{style:{height:32,margin:16,background:"rgba(255, 255, 255, 0.3)",borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:"bold"},children:e?"PF":"PixivFlow"}),Ce.jsx(lu,{theme:"dark",selectedKeys:[o.pathname],mode:"inline",items:s,onClick:l})]})}function RE(e,t){return function(){return e.apply(t,arguments)}}const{toString:kM}=Object.prototype,{getPrototypeOf:Ag}=Object,{iterator:Ud,toStringTag:IE}=Symbol,Vd=(e=>t=>{const n=kM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Oo=e=>(e=e.toLowerCase(),t=>Vd(t)===e),Wd=e=>t=>typeof t===e,{isArray:Es}=Array,ds=Wd("undefined");function du(e){return e!==null&&!ds(e)&&e.constructor!==null&&!ds(e.constructor)&&Lr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const TE=Oo("ArrayBuffer");function AM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&TE(e.buffer),t}const jM=Wd("string"),Lr=Wd("function"),PE=Wd("number"),fu=e=>e!==null&&typeof e=="object",zM=e=>e===!0||e===!1,jc=e=>{if(Vd(e)!=="object")return!1;const t=Ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(IE in e)&&!(Ud in e)},BM=e=>{if(!fu(e)||du(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},HM=Oo("Date"),UM=Oo("File"),VM=Oo("Blob"),WM=Oo("FileList"),qM=e=>fu(e)&&Lr(e.pipe),KM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Lr(e.append)&&((t=Vd(e))==="formdata"||t==="object"&&Lr(e.toString)&&e.toString()==="[object FormData]"))},GM=Oo("URLSearchParams"),[QM,YM,XM,JM]=["ReadableStream","Request","Response","Headers"].map(Oo),ZM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Es(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(du(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function $E(e,t){if(du(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_E=e=>!ds(e)&&e!==Zi;function km(){const{caseless:e,skipUndefined:t}=_E(this)&&this||{},n={},r=(o,s)=>{const l=e&&$E(n,s)||s;jc(n[l])&&jc(o)?n[l]=km(n[l],o):jc(o)?n[l]=km({},o):Es(o)?n[l]=o.slice():(!t||!ds(o))&&(n[l]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&hu(arguments[o],r);return n}const ek=(e,t,n,{allOwnKeys:r}={})=>(hu(t,(o,s)=>{n&&Lr(o)?e[s]=RE(o,n):e[s]=o},{allOwnKeys:r}),e),tk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rk=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Ag(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ok=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ik=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!PE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ak=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ag(Uint8Array)),sk=(e,t)=>{const r=(e&&e[Ud]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},lk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uk=Oo("HTMLFormElement"),ck=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),s2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dk=Oo("RegExp"),DE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hu(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},fk=e=>{DE(e,(t,n)=>{if(Lr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Lr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hk=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Es(e)?r(e):r(String(e).split(t)),n},pk=()=>{},mk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gk(e){return!!(e&&Lr(e.append)&&e[IE]==="FormData"&&e[Ud])}const vk=e=>{const t=new Array(10),n=(r,o)=>{if(fu(r)){if(t.indexOf(r)>=0)return;if(du(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Es(r)?[]:{};return hu(r,(l,u)=>{const f=n(l,o+1);!ds(f)&&(s[u]=f)}),t[o]=void 0,s}}return r};return n(e,0)},yk=Oo("AsyncFunction"),Sk=e=>e&&(fu(e)||Lr(e))&&Lr(e.then)&&Lr(e.catch),LE=((e,t)=>e?setImmediate:t?((n,r)=>(Zi.addEventListener("message",({source:o,data:s})=>{o===Zi&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Zi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Lr(Zi.postMessage)),bk=typeof queueMicrotask<"u"?queueMicrotask.bind(Zi):typeof process<"u"&&process.nextTick||LE,Ck=e=>e!=null&&Lr(e[Ud]),ie={isArray:Es,isArrayBuffer:TE,isBuffer:du,isFormData:KM,isArrayBufferView:AM,isString:jM,isNumber:PE,isBoolean:zM,isObject:fu,isPlainObject:jc,isEmptyObject:BM,isReadableStream:QM,isRequest:YM,isResponse:XM,isHeaders:JM,isUndefined:ds,isDate:HM,isFile:UM,isBlob:VM,isRegExp:dk,isFunction:Lr,isStream:qM,isURLSearchParams:GM,isTypedArray:ak,isFileList:WM,forEach:hu,merge:km,extend:ek,trim:ZM,stripBOM:tk,inherits:nk,toFlatObject:rk,kindOf:Vd,kindOfTest:Oo,endsWith:ok,toArray:ik,forEachEntry:sk,matchAll:lk,isHTMLForm:uk,hasOwnProperty:s2,hasOwnProp:s2,reduceDescriptors:DE,freezeMethods:fk,toObjectSet:hk,toCamelCase:ck,noop:pk,toFiniteNumber:mk,findKey:$E,global:Zi,isContextDefined:_E,isSpecCompliantForm:gk,toJSONObject:vk,isAsyncFn:yk,isThenable:Sk,setImmediate:LE,asap:bk,isIterable:Ck};function Rt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ie.inherits(Rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const FE=Rt.prototype,NE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{NE[e]={value:e}});Object.defineProperties(Rt,NE);Object.defineProperty(FE,"isAxiosError",{value:!0});Rt.from=(e,t,n,r,o,s)=>{const l=Object.create(FE);ie.toFlatObject(e,l,function(m){return m!==Error.prototype},h=>h!=="isAxiosError");const u=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Rt.call(l,u,f,n,r,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const wk=null;function Am(e){return ie.isPlainObject(e)||ie.isArray(e)}function ME(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function l2(e,t,n){return e?e.concat(t).map(function(o,s){return o=ME(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Ek(e){return ie.isArray(e)&&!e.some(Am)}const xk=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function qd(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,S){return!ie.isUndefined(S[C])});const r=n.metaTokens,o=n.visitor||m,s=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(o))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(ie.isDate(b))return b.toISOString();if(ie.isBoolean(b))return b.toString();if(!f&&ie.isBlob(b))throw new Rt("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(b)||ie.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function m(b,C,S){let O=b;if(b&&!S&&typeof b=="object"){if(ie.endsWith(C,"{}"))C=r?C:C.slice(0,-2),b=JSON.stringify(b);else if(ie.isArray(b)&&Ek(b)||(ie.isFileList(b)||ie.endsWith(C,"[]"))&&(O=ie.toArray(b)))return C=ME(C),O.forEach(function(R,I){!(ie.isUndefined(R)||R===null)&&t.append(l===!0?l2([C],I,s):l===null?C:C+"[]",h(R))}),!1}return Am(b)?!0:(t.append(l2(S,C,s),h(b)),!1)}const g=[],y=Object.assign(xk,{defaultVisitor:m,convertValue:h,isVisitable:Am});function w(b,C){if(!ie.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+C.join("."));g.push(b),ie.forEach(b,function(O,x){(!(ie.isUndefined(O)||O===null)&&o.call(t,O,ie.isString(x)?x.trim():x,C,y))===!0&&w(O,C?C.concat(x):[x])}),g.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return w(e),t}function u2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function jg(e,t){this._pairs=[],e&&qd(e,this,t)}const kE=jg.prototype;kE.append=function(t,n){this._pairs.push([t,n])};kE.toString=function(t){const n=t?function(r){return t.call(this,r,u2)}:u2;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ok(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function AE(e,t,n){if(!t)return e;const r=n&&n.encode||Ok;ie.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=ie.isURLSearchParams(t)?t.toString():new jg(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class c2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rk=typeof URLSearchParams<"u"?URLSearchParams:jg,Ik=typeof FormData<"u"?FormData:null,Tk=typeof Blob<"u"?Blob:null,Pk={isBrowser:!0,classes:{URLSearchParams:Rk,FormData:Ik,Blob:Tk},protocols:["http","https","file","blob","url","data"]},zg=typeof window<"u"&&typeof document<"u",jm=typeof navigator=="object"&&navigator||void 0,$k=zg&&(!jm||["ReactNative","NativeScript","NS"].indexOf(jm.product)<0),_k=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dk=zg&&window.location.href||"http://localhost",Lk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zg,hasStandardBrowserEnv:$k,hasStandardBrowserWebWorkerEnv:_k,navigator:jm,origin:Dk},Symbol.toStringTag,{value:"Module"})),mr={...Lk,...Pk};function Fk(e,t){return qd(e,new mr.classes.URLSearchParams,{visitor:function(n,r,o,s){return mr.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Nk(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mk(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function zE(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=s>=n.length;return l=!l&&ie.isArray(o)?o.length:l,f?(ie.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!ie.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&ie.isArray(o[l])&&(o[l]=Mk(o[l])),!u)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,o)=>{t(Nk(r),o,n,0)}),n}return null}function kk(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pu={transitional:jE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ie.isObject(t);if(s&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return o?JSON.stringify(zE(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fk(t,this.formSerializer).toString();if((u=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return qd(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),kk(t)):t}],transformResponse:[function(t){const n=this.transitional||pu.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?Rt.from(u,Rt.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mr.classes.FormData,Blob:mr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{pu.headers[e]={}});const Ak=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jk=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
201
|
-
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Ak[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},d2=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function zc(e){return e===!1||e==null?e:ie.isArray(e)?e.map(zc):String(e)}function zk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Bk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function up(e,t,n,r,o){if(ie.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function Hk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Uk(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let Fr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(u,f,h){const m=il(f);if(!m)throw new Error("header name must be a non-empty string");const g=ie.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=zc(u))}const l=(u,f)=>ie.forEach(u,(h,m)=>s(h,m,f));if(ie.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ie.isString(t)&&(t=t.trim())&&!Bk(t))l(jk(t),n);else if(ie.isObject(t)&&ie.isIterable(t)){let u={},f,h;for(const m of t){if(!ie.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[h=m[0]]=(f=u[h])?ie.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}l(u,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=il(t),t){const r=ie.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return zk(o);if(ie.isFunction(n))return n.call(this,o,r);if(ie.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=il(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||up(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=il(l),l){const u=ie.findKey(r,l);u&&(!n||up(r,r[u],u,n))&&(delete r[u],o=!0)}}return ie.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||up(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return ie.forEach(this,(o,s)=>{const l=ie.findKey(r,s);if(l){n[l]=zc(o),delete n[s];return}const u=t?Hk(s):String(s).trim();u!==s&&delete n[s],n[u]=zc(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
202
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[d2]=this[d2]={accessors:{}}).accessors,o=this.prototype;function s(l){const u=il(l);r[u]||(Uk(o,l),r[u]=!0)}return ie.isArray(t)?t.forEach(s):s(t),this}};Fr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(Fr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(Fr);function cp(e,t){const n=this||pu,r=t||n,o=Fr.from(r.headers);let s=r.data;return ie.forEach(e,function(u){s=u.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function BE(e){return!!(e&&e.__CANCEL__)}function xs(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(xs,Rt,{__CANCEL__:!0});function HE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Vk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=r[s];l||(l=h),n[o]=f,r[o]=h;let g=s,y=0;for(;g!==o;)y+=n[g++],g=g%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),h-l<t)return;const w=m&&h-m;return w?Math.round(y*1e3/w):void 0}}function qk(e,t){let n=0,r=1e3/t,o,s;const l=(h,m=Date.now())=>{n=m,o=null,s&&(clearTimeout(s),s=null),e(...h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=r?l(h,m):(o=h,s||(s=setTimeout(()=>{s=null,l(o)},r-g)))},()=>o&&l(o)]}const hd=(e,t,n=3)=>{let r=0;const o=Wk(50,250);return qk(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,f=l-r,h=o(f),m=l<=u;r=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&m?(u-l)/h:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},f2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},h2=e=>(...t)=>ie.asap(()=>e(...t)),Kk=mr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,mr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(mr.origin),mr.navigator&&/(msie|trident)/i.test(mr.navigator.userAgent)):()=>!0,Gk=mr.hasStandardBrowserEnv?{write(e,t,n,r,o,s,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),ie.isString(r)&&u.push(`path=${r}`),ie.isString(o)&&u.push(`domain=${o}`),s===!0&&u.push("secure"),ie.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function UE(e,t,n){let r=!Qk(t);return e&&(r||n==!1)?Yk(e,t):t}const p2=e=>e instanceof Fr?{...e}:e;function sa(e,t){t=t||{};const n={};function r(h,m,g,y){return ie.isPlainObject(h)&&ie.isPlainObject(m)?ie.merge.call({caseless:y},h,m):ie.isPlainObject(m)?ie.merge({},m):ie.isArray(m)?m.slice():m}function o(h,m,g,y){if(ie.isUndefined(m)){if(!ie.isUndefined(h))return r(void 0,h,g,y)}else return r(h,m,g,y)}function s(h,m){if(!ie.isUndefined(m))return r(void 0,m)}function l(h,m){if(ie.isUndefined(m)){if(!ie.isUndefined(h))return r(void 0,h)}else return r(void 0,m)}function u(h,m,g){if(g in t)return r(h,m);if(g in e)return r(void 0,h)}const f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(h,m,g)=>o(p2(h),p2(m),g,!0)};return ie.forEach(Object.keys({...e,...t}),function(m){const g=f[m]||o,y=g(e[m],t[m],m);ie.isUndefined(y)&&g!==u||(n[m]=y)}),n}const VE=e=>{const t=sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=t;if(t.headers=l=Fr.from(l),t.url=AE(UE(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ie.isFormData(n)){if(mr.hasStandardBrowserEnv||mr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(ie.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([m,g])=>{h.includes(m.toLowerCase())&&l.set(m,g)})}}if(mr.hasStandardBrowserEnv&&(r&&ie.isFunction(r)&&(r=r(t)),r||r!==!1&&Kk(t.url))){const f=o&&s&&Gk.read(s);f&&l.set(o,f)}return t},Xk=typeof XMLHttpRequest<"u",Jk=Xk&&function(e){return new Promise(function(n,r){const o=VE(e);let s=o.data;const l=Fr.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:h}=o,m,g,y,w,b;function C(){w&&w(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function O(){if(!S)return;const R=Fr.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),P={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:R,config:e,request:S};HE(function(_){n(_),C()},function(_){r(_),C()},P),S=null}"onloadend"in S?S.onloadend=O:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(O)},S.onabort=function(){S&&(r(new Rt("Request aborted",Rt.ECONNABORTED,e,S)),S=null)},S.onerror=function(I){const P=I&&I.message?I.message:"Network Error",$=new Rt(P,Rt.ERR_NETWORK,e,S);$.event=I||null,r($),S=null},S.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||jE;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),r(new Rt(I,P.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,S)),S=null},s===void 0&&l.setContentType(null),"setRequestHeader"in S&&ie.forEach(l.toJSON(),function(I,P){S.setRequestHeader(P,I)}),ie.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),u&&u!=="json"&&(S.responseType=o.responseType),h&&([y,b]=hd(h,!0),S.addEventListener("progress",y)),f&&S.upload&&([g,w]=hd(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(m=R=>{S&&(r(!R||R.type?new xs(null,e,S):R),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const x=Vk(o.url);if(x&&mr.protocols.indexOf(x)===-1){r(new Rt("Unsupported protocol "+x+":",Rt.ERR_BAD_REQUEST,e));return}S.send(s||null)})},Zk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(h){if(!o){o=!0,u();const m=h instanceof Error?h:this.reason;r.abort(m instanceof Rt?m:new xs(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,s(new Rt(`timeout ${t} of ms exceeded`,Rt.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(s):h.removeEventListener("abort",s)}),e=null)};e.forEach(h=>h.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>ie.asap(u),f}},eA=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},tA=async function*(e,t){for await(const n of nA(e))yield*eA(n,t)},nA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},m2=(e,t,n,r)=>{const o=tA(e,t);let s=0,l,u=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await o.next();if(h){u(),f.close();return}let g=m.byteLength;if(n){let y=s+=g;n(y)}f.enqueue(new Uint8Array(m))}catch(h){throw u(h),h}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},g2=64*1024,{isFunction:Oc}=ie,rA=(({Request:e,Response:t})=>({Request:e,Response:t}))(ie.global),{ReadableStream:v2,TextEncoder:y2}=ie.global,S2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},oA=e=>{e=ie.merge.call({skipUndefined:!0},rA,e);const{fetch:t,Request:n,Response:r}=e,o=t?Oc(t):typeof fetch=="function",s=Oc(n),l=Oc(r);if(!o)return!1;const u=o&&Oc(v2),f=o&&(typeof y2=="function"?(b=>C=>b.encode(C))(new y2):async b=>new Uint8Array(await new n(b).arrayBuffer())),h=s&&u&&S2(()=>{let b=!1;const C=new n(mr.origin,{body:new v2,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!C}),m=l&&u&&S2(()=>ie.isReadableStream(new r("").body)),g={stream:m&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(C,S)=>{let O=C&&C[b];if(O)return O.call(C);throw new Rt(`Response type '${b}' is not supported`,Rt.ERR_NOT_SUPPORT,S)})});const y=async b=>{if(b==null)return 0;if(ie.isBlob(b))return b.size;if(ie.isSpecCompliantForm(b))return(await new n(mr.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(b)||ie.isArrayBuffer(b))return b.byteLength;if(ie.isURLSearchParams(b)&&(b=b+""),ie.isString(b))return(await f(b)).byteLength},w=async(b,C)=>{const S=ie.toFiniteNumber(b.getContentLength());return S??y(C)};return async b=>{let{url:C,method:S,data:O,signal:x,cancelToken:R,timeout:I,onDownloadProgress:P,onUploadProgress:$,responseType:_,headers:L,withCredentials:F="same-origin",fetchOptions:N}=VE(b),z=t||fetch;_=_?(_+"").toLowerCase():"text";let A=Zk([x,R&&R.toAbortSignal()],I),B=null;const H=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let X;try{if($&&h&&S!=="get"&&S!=="head"&&(X=await w(L,O))!==0){let D=new n(C,{method:"POST",body:O,duplex:"half"}),M;if(ie.isFormData(O)&&(M=D.headers.get("content-type"))&&L.setContentType(M),D.body){const[te,ee]=f2(X,hd(h2($)));O=m2(D.body,g2,te,ee)}}ie.isString(F)||(F=F?"include":"omit");const V=s&&"credentials"in n.prototype,G={...N,signal:A,method:S.toUpperCase(),headers:L.normalize().toJSON(),body:O,duplex:"half",credentials:V?F:void 0};B=s&&new n(C,G);let j=await(s?z(B,N):z(C,G));const J=m&&(_==="stream"||_==="response");if(m&&(P||J&&H)){const D={};["status","statusText","headers"].forEach(Y=>{D[Y]=j[Y]});const M=ie.toFiniteNumber(j.headers.get("content-length")),[te,ee]=P&&f2(M,hd(h2(P),!0))||[];j=new r(m2(j.body,g2,te,()=>{ee&&ee(),H&&H()}),D)}_=_||"text";let K=await g[ie.findKey(g,_)||"text"](j,b);return!J&&H&&H(),await new Promise((D,M)=>{HE(D,M,{data:K,headers:Fr.from(j.headers),status:j.status,statusText:j.statusText,config:b,request:B})})}catch(V){throw H&&H(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,b,B),{cause:V.cause||V}):Rt.from(V,V&&V.code,b,B)}}},iA=new Map,WE=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let l=s.length,u=l,f,h,m=iA;for(;u--;)f=s[u],h=m.get(f),h===void 0&&m.set(f,h=u?new Map:oA(t)),m=h;return h};WE();const Bg={http:wk,xhr:Jk,fetch:{get:WE}};ie.forEach(Bg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const b2=e=>`- ${e}`,aA=e=>ie.isFunction(e)||e===null||e===!1;function sA(e,t){e=ie.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let l=0;l<n;l++){r=e[l];let u;if(o=r,!aA(r)&&(o=Bg[(u=String(r)).toLowerCase()],o===void 0))throw new Rt(`Unknown adapter '${u}'`);if(o&&(ie.isFunction(o)||(o=o.get(t))))break;s[u||"#"+l]=o}if(!o){const l=Object.entries(s).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
|
|
203
|
-
`+l.map(b2).join(`
|
|
204
|
-
`):" "+b2(l[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}const qE={getAdapter:sA,adapters:Bg};function dp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xs(null,e)}function C2(e){return dp(e),e.headers=Fr.from(e.headers),e.data=cp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qE.getAdapter(e.adapter||pu.adapter,e)(e).then(function(r){return dp(e),r.data=cp.call(e,e.transformResponse,r),r.headers=Fr.from(r.headers),r},function(r){return BE(r)||(dp(e),r&&r.response&&(r.response.data=cp.call(e,e.transformResponse,r.response),r.response.headers=Fr.from(r.response.headers))),Promise.reject(r)})}const KE="1.13.2",Kd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const w2={};Kd.transitional=function(t,n,r){function o(s,l){return"[Axios v"+KE+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new Rt(o(l," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!w2[l]&&(w2[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};Kd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function lA(e,t,n){if(typeof e!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const u=e[s],f=u===void 0||l(u,s,e);if(f!==!0)throw new Rt("option "+s+" must be "+f,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+s,Rt.ERR_BAD_OPTION)}}const Bc={assertOptions:lA,validators:Kd},_o=Bc.validators;let ta=class{constructor(t){this.defaults=t||{},this.interceptors={request:new c2,response:new c2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
205
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Bc.assertOptions(r,{silentJSONParsing:_o.transitional(_o.boolean),forcedJSONParsing:_o.transitional(_o.boolean),clarifyTimeoutError:_o.transitional(_o.boolean)},!1),o!=null&&(ie.isFunction(o)?n.paramsSerializer={serialize:o}:Bc.assertOptions(o,{encode:_o.function,serialize:_o.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Bc.assertOptions(n,{baseUrl:_o.spelling("baseURL"),withXsrfToken:_o.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ie.merge(s.common,s[n.method]);s&&ie.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),n.headers=Fr.concat(l,s);const u=[];let f=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(f=f&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let m,g=0,y;if(!f){const b=[C2.bind(this),void 0];for(b.unshift(...u),b.push(...h),y=b.length,m=Promise.resolve(n);g<y;)m=m.then(b[g++],b[g++]);return m}y=u.length;let w=n;for(;g<y;){const b=u[g++],C=u[g++];try{w=b(w)}catch(S){C.call(this,S);break}}try{m=C2.call(this,w)}catch(b){return Promise.reject(b)}for(g=0,y=h.length;g<y;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=sa(this.defaults,t);const n=UE(t.baseURL,t.url,t.allowAbsoluteUrls);return AE(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){ta.prototype[t]=function(n,r){return this.request(sa(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(sa(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ta.prototype[t]=n(),ta.prototype[t+"Form"]=n(!0)});let uA=class GE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new xs(s,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new GE(function(o){t=o}),cancel:t}}};function cA(e){return function(n){return e.apply(null,n)}}function dA(e){return ie.isObject(e)&&e.isAxiosError===!0}const zm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zm).forEach(([e,t])=>{zm[t]=e});function QE(e){const t=new ta(e),n=RE(ta.prototype.request,t);return ie.extend(n,ta.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return QE(sa(e,o))},n}const Pn=QE(pu);Pn.Axios=ta;Pn.CanceledError=xs;Pn.CancelToken=uA;Pn.isCancel=BE;Pn.VERSION=KE;Pn.toFormData=qd;Pn.AxiosError=Rt;Pn.Cancel=Pn.CanceledError;Pn.all=function(t){return Promise.all(t)};Pn.spread=cA;Pn.isAxiosError=dA;Pn.mergeConfig=sa;Pn.AxiosHeaders=Fr;Pn.formToJSON=e=>zE(ie.isHTMLForm(e)?new FormData(e):e);Pn.getAdapter=qE.getAdapter;Pn.HttpStatusCode=zm;Pn.default=Pn;const{Axios:i9,AxiosError:a9,CanceledError:s9,isCancel:l9,CancelToken:u9,VERSION:c9,all:d9,Cancel:f9,isAxiosError:h9,spread:p9,toFormData:m9,AxiosHeaders:g9,HttpStatusCode:v9,formToJSON:y9,getAdapter:S9,mergeConfig:b9}=Pn;const fA=e=>{const t=new Map;t.set("web",{name:"web"});const n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t},r=(s,l)=>{n.platforms.set(s,l)},o=s=>{n.platforms.has(s)&&(n.currentPlatform=n.platforms.get(s))};return n.addPlatform=r,n.setPlatform=o,n},hA=e=>e.CapacitorPlatforms=fA(e),YE=hA(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});YE.addPlatform;YE.setPlatform;var fs;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(fs||(fs={}));class fp extends Error{constructor(t,n,r){super(t),this.message=t,this.code=n,this.data=r}}const pA=e=>{var t,n;return e?.androidBridge?"android":!((n=(t=e?.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},mA=e=>{var t,n,r,o,s;const l=e.CapacitorCustomPlatform||null,u=e.Capacitor||{},f=u.Plugins=u.Plugins||{},h=e.CapacitorPlatforms,m=()=>l!==null?l.name:pA(e),g=((t=h?.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||m,y=()=>g()!=="web",w=((n=h?.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||y,b=_=>{const L=I.get(_);return!!(L?.platforms.has(g())||O(_))},C=((r=h?.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||b,S=_=>{var L;return(L=u.PluginHeaders)===null||L===void 0?void 0:L.find(F=>F.name===_)},O=((o=h?.currentPlatform)===null||o===void 0?void 0:o.getPluginHeader)||S,x=_=>e.console.error(_),R=(_,L,F)=>Promise.reject(`${F} does not have an implementation of "${L}".`),I=new Map,P=(_,L={})=>{const F=I.get(_);if(F)return console.warn(`Capacitor plugin "${_}" already registered. Cannot register plugins twice.`),F.proxy;const N=g(),z=O(_);let A;const B=async()=>(!A&&N in L?A=typeof L[N]=="function"?A=await L[N]():A=L[N]:l!==null&&!A&&"web"in L&&(A=typeof L.web=="function"?A=await L.web():A=L.web),A),H=(K,D)=>{var M,te;if(z){const ee=z?.methods.find(Y=>D===Y.name);if(ee)return ee.rtype==="promise"?Y=>u.nativePromise(_,D.toString(),Y):(Y,re)=>u.nativeCallback(_,D.toString(),Y,re);if(K)return(M=K[D])===null||M===void 0?void 0:M.bind(K)}else{if(K)return(te=K[D])===null||te===void 0?void 0:te.bind(K);throw new fp(`"${_}" plugin is not implemented on ${N}`,fs.Unimplemented)}},X=K=>{let D;const M=(...te)=>{const ee=B().then(Y=>{const re=H(Y,K);if(re){const le=re(...te);return D=le?.remove,le}else throw new fp(`"${_}.${K}()" is not implemented on ${N}`,fs.Unimplemented)});return K==="addListener"&&(ee.remove=async()=>D()),ee};return M.toString=()=>`${K.toString()}() { [capacitor code] }`,Object.defineProperty(M,"name",{value:K,writable:!1,configurable:!1}),M},V=X("addListener"),G=X("removeListener"),j=(K,D)=>{const M=V({eventName:K},D),te=async()=>{const Y=await M;G({eventName:K,callbackId:Y},D)},ee=new Promise(Y=>M.then(()=>Y({remove:te})));return ee.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await te()},ee},J=new Proxy({},{get(K,D){switch(D){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return z?j:V;case"removeListener":return G;default:return X(D)}}});return f[_]=J,I.set(_,{name:_,proxy:J,platforms:new Set([...Object.keys(L),...z?[N]:[]])}),J},$=((s=h?.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||P;return u.convertFileSrc||(u.convertFileSrc=_=>_),u.getPlatform=g,u.handleError=x,u.isNativePlatform=w,u.isPluginAvailable=C,u.pluginMethodNoop=R,u.registerPlugin=$,u.Exception=fp,u.DEBUG=!!u.DEBUG,u.isLoggingEnabled=!!u.isLoggingEnabled,u.platform=u.getPlatform(),u.isNative=u.isNativePlatform(),u},gA=e=>e.Capacitor=mA(e),Yl=gA(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),XE=Yl.registerPlugin;Yl.Plugins;class JE{constructor(t){this.listeners={},this.retainedEventArguments={},this.windowListeners={},t&&(console.warn(`Capacitor WebPlugin "${t.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=t)}addListener(t,n){let r=!1;this.listeners[t]||(this.listeners[t]=[],r=!0),this.listeners[t].push(n);const s=this.windowListeners[t];s&&!s.registered&&this.addWindowListener(s),r&&this.sendRetainedArgumentsForEvent(t);const l=async()=>this.removeListener(t,n);return Promise.resolve({remove:l})}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,n,r){const o=this.listeners[t];if(!o){if(r){let s=this.retainedEventArguments[t];s||(s=[]),s.push(n),this.retainedEventArguments[t]=s}return}o.forEach(s=>s(n))}hasListeners(t){return!!this.listeners[t].length}registerWindowListener(t,n){this.windowListeners[n]={registered:!1,windowEventName:t,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(t="not implemented"){return new Yl.Exception(t,fs.Unimplemented)}unavailable(t="not available"){return new Yl.Exception(t,fs.Unavailable)}async removeListener(t,n){const r=this.listeners[t];if(!r)return;const o=r.indexOf(n);this.listeners[t].splice(o,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}sendRetainedArgumentsForEvent(t){const n=this.retainedEventArguments[t];n&&(delete this.retainedEventArguments[t],n.forEach(r=>{this.notifyListeners(t,r)}))}}const E2=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),x2=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class vA extends JE{async getCookies(){const t=document.cookie,n={};return t.split(";").forEach(r=>{if(r.length<=0)return;let[o,s]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");o=x2(o).trim(),s=x2(s).trim(),n[o]=s}),n}async setCookie(t){try{const n=E2(t.key),r=E2(t.value),o=`; expires=${(t.expires||"").replace("expires=","")}`,s=(t.path||"/").replace("path=",""),l=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${n}=${r||""}${o}; path=${s}; ${l};`}catch(n){return Promise.reject(n)}}async deleteCookie(t){try{document.cookie=`${t.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const t=document.cookie.split(";")||[];for(const n of t)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(t){return Promise.reject(t)}}async clearAllCookies(){try{await this.clearCookies()}catch(t){return Promise.reject(t)}}}XE("CapacitorCookies",{web:()=>new vA});const yA=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const o=r.result;t(o.indexOf(",")>=0?o.split(",")[1]:o)},r.onerror=o=>n(o),r.readAsDataURL(e)}),SA=(e={})=>{const t=Object.keys(e);return Object.keys(e).map(o=>o.toLocaleLowerCase()).reduce((o,s,l)=>(o[s]=e[t[l]],o),{})},bA=(e,t=!0)=>e?Object.entries(e).reduce((r,o)=>{const[s,l]=o;let u,f;return Array.isArray(l)?(f="",l.forEach(h=>{u=t?encodeURIComponent(h):h,f+=`${s}=${u}&`}),f.slice(0,-1)):(u=t?encodeURIComponent(l):l,f=`${s}=${u}`),`${r}&${f}`},"").substr(1):null,CA=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),o=SA(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(o.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[l,u]of Object.entries(e.data||{}))s.set(l,u);n.body=s.toString()}else if(o.includes("multipart/form-data")||e.data instanceof FormData){const s=new FormData;if(e.data instanceof FormData)e.data.forEach((u,f)=>{s.append(f,u)});else for(const u of Object.keys(e.data))s.append(u,e.data[u]);n.body=s;const l=new Headers(n.headers);l.delete("content-type"),n.headers=l}else(o.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class wA extends JE{async request(t){const n=CA(t,t.webFetchExtra),r=bA(t.params,t.shouldEncodeUrlParams),o=r?`${t.url}?${r}`:t.url,s=await fetch(o,n),l=s.headers.get("content-type")||"";let{responseType:u="text"}=s.ok?t:{};l.includes("application/json")&&(u="json");let f,h;switch(u){case"arraybuffer":case"blob":h=await s.blob(),f=await yA(h);break;case"json":f=await s.json();break;case"document":case"text":default:f=await s.text()}const m={};return s.headers.forEach((g,y)=>{m[y]=g}),{data:f,headers:m,status:s.status,url:s.url}}async get(t){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))}async post(t){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))}async put(t){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))}async patch(t){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))}async delete(t){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))}}XE("CapacitorHttp",{web:()=>new wA});var Co=(e=>(e.NETWORK_ERROR="NETWORK_ERROR",e.VALIDATION_ERROR="VALIDATION_ERROR",e.AUTH_ERROR="AUTH_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.CONFIG_ERROR="CONFIG_ERROR",e.DOWNLOAD_ERROR="DOWNLOAD_ERROR",e.FILE_ERROR="FILE_ERROR",e))(Co||{});function O2(e){if(e instanceof Error)return e.message.includes("Network Error")||e.message.includes("timeout")?{code:"NETWORK_ERROR",message:e.message,statusCode:void 0,originalError:e}:{code:"UNKNOWN_ERROR",message:e.message,statusCode:void 0,originalError:e};if(typeof e=="object"&&e!==null&&"response"in e){const t=e,n=t.response?.data?.errorCode,r=t.response?.data?.message||"An error occurred";return{code:n||"SERVER_ERROR",message:r,statusCode:t.response?.status,details:t.response?.data?.details,params:t.response?.data?.params,originalError:e}}return{code:"UNKNOWN_ERROR",message:String(e),statusCode:void 0,originalError:e}}class Qi extends Error{code;statusCode;details;originalError;params;constructor(t,n,r,o,s,l){super(n),this.name="ApiError",this.code=t,this.statusCode=r,this.details=o,this.originalError=s,this.params=l,Error.captureStackTrace&&Error.captureStackTrace(this,Qi)}isNetworkError(){return this.code===Co.NETWORK_ERROR||this.statusCode===void 0||this.originalError instanceof Error&&(this.originalError.message.includes("Network Error")||this.originalError.message.includes("timeout"))}isAuthError(){return this.code===Co.AUTH_ERROR||this.statusCode===401||this.statusCode===403}isValidationError(){return this.code===Co.VALIDATION_ERROR||this.statusCode===400}isServerError(){return this.code===Co.SERVER_ERROR||this.statusCode!==void 0&&this.statusCode>=500}toAppError(){return{code:this.code,message:this.message,statusCode:this.statusCode,params:this.params,details:this.details,originalError:this.originalError}}}function ZE(e){if(e instanceof Qi)return e;if(xA(e)){const n=e,r=n.response,o=n.request;if(r){const s=r.data?.errorCode||EA(r.status),l=r.data?.message||r.statusText||"An error occurred",u=r.data?.details,f=r.data?.params;return new Qi(s,l,r.status,u,n,f)}if(o){const s=n.code==="ECONNABORTED"||n.message?.includes("timeout")||n.message?.includes("Network Error");return new Qi(Co.NETWORK_ERROR,s?"Request timeout":"Network error occurred",void 0,{code:n.code,message:n.message},n)}}if(e instanceof Error){const n=O2(e);return new Qi(n.code,n.message,void 0,n.details,n.originalError)}const t=O2(e);return new Qi(t.code,t.message,t.statusCode,t.details,t.originalError,t.params)}function EA(e){return e>=400&&e<500?e===401||e===403?Co.AUTH_ERROR:Co.VALIDATION_ERROR:e>=500?Co.SERVER_ERROR:Co.UNKNOWN_ERROR}function xA(e){return typeof e=="object"&&e!==null&&"isAxiosError"in e&&e.isAxiosError===!0}function OA(e){e.interceptors.request.use(t=>t,t=>Promise.reject(ZE(t)))}function RA(e){e.interceptors.response.use(t=>t,t=>{const n=ZE(t);return Promise.reject(n)})}function R2(e){const t=typeof globalThis<"u"&&"process"in globalThis?globalThis.process:void 0;if(t?.env?.[e])return t.env[e];if(typeof globalThis<"u"&&globalThis.__VITE_ENV__?.[e])return globalThis.__VITE_ENV__[e]}const IA=()=>{if(Yl.getPlatform()==="android"&&R2("VITE_USE_EMBEDDED_BACKEND")!=="false")return"http://127.0.0.1:3000/api";const t=R2("VITE_API_BASE_URL");return t?`${t}/api`:"/api"};function TA(){const e=Pn.create({baseURL:IA(),timeout:3e4,headers:{"Content-Type":"application/json"}});return OA(e),RA(e),e}const yt=TA(),al={getAuthStatus:()=>yt.get("/auth/status"),login:(e,t,n=!0,r)=>{const o=n?3e4:6e5;return yt.post("/auth/login",{username:e,password:t,headless:n,proxy:r},{timeout:o})},loginWithToken:e=>yt.post("/auth/login-with-token",{refreshToken:e}),refreshToken:e=>yt.post("/auth/refresh",{refreshToken:e}),logout:()=>yt.post("/auth/logout")},ir={getConfig:()=>yt.get("/config"),updateConfig:e=>yt.put("/config",e),validateConfig:e=>yt.post("/config/validate",e),backupConfig:()=>yt.get("/config/backup"),restoreConfig:e=>yt.post("/config/restore",{backupPath:e}),getConfigHistory:()=>yt.get("/config/history"),saveConfigHistory:(e,t,n)=>yt.post("/config/history",{name:e,config:t,description:n}),applyConfigHistory:e=>yt.post(`/config/history/${e}/apply`),deleteConfigHistory:e=>yt.delete(`/config/history/${e}`),listConfigFiles:()=>yt.get("/config/files"),switchConfigFile:e=>yt.post("/config/files/switch",{path:e}),importConfigFile:(e,t)=>yt.post("/config/files/import",{config:e,name:t}),deleteConfigFile:e=>yt.delete(`/config/files/${e}`),getConfigFileContent:e=>yt.get(`/config/files/${e}/content`),updateConfigFileContent:(e,t)=>yt.put(`/config/files/${e}/content`,{content:t}),diagnoseConfig:()=>yt.get("/config/diagnose"),repairConfig:e=>yt.post("/config/repair",{createBackup:e})},vo={startDownload:(e,t,n)=>yt.post("/download/start",{targetId:e,config:t,configPaths:n}),stopDownload:e=>yt.post("/download/stop",{taskId:e}),getDownloadStatus:e=>yt.get("/download/status",{params:{taskId:e}}),getTaskLogs:(e,t)=>yt.get("/download/logs",{params:{taskId:e,limit:t}}),getDownloadHistory:e=>yt.get("/download/history",{params:e}),runAllDownloads:e=>yt.post("/download/run-all",{configPaths:e}),randomDownload:e=>yt.post("/download/random",{type:e}),getIncompleteTasks:()=>yt.get("/download/incomplete"),resumeDownload:(e,t)=>yt.post("/download/resume",{tag:e,type:t}),deleteIncompleteTask:e=>yt.delete(`/download/incomplete/${e}`),deleteAllIncompleteTasks:()=>yt.delete("/download/incomplete"),downloadFromUrl:e=>yt.post("/download/url",{url:e}),downloadFromBatchUrls:e=>yt.post("/download/batch-url",{urls:e}),parseUrl:e=>yt.post("/download/parse-url",{url:e})},sl={listFiles:e=>yt.get("/files/list",{params:e}),getRecentFiles:e=>yt.get("/files/recent",{params:e}),getFilePreview:(e,t)=>yt.get("/files/preview",{params:{path:e,type:t},responseType:"blob"}),deleteFile:(e,t)=>yt.delete(`/files/${e}`,{params:t}),normalizeFiles:e=>yt.post("/files/normalize",e)},I2={getLogs:e=>yt.get("/logs",{params:e}),clearLogs:()=>yt.delete("/logs")},Rc={getStatsOverview:()=>yt.get("/stats/overview"),getDownloadStats:e=>yt.get("/stats/downloads",{params:{period:e}}),getTagStats:e=>yt.get("/stats/tags",{params:{limit:e}}),getAuthorStats:e=>yt.get("/stats/authors",{params:{limit:e}})},Hc={getAuthStatus:al.getAuthStatus,login:al.login,loginWithToken:al.loginWithToken,refreshToken:al.refreshToken,logout:al.logout,getConfig:ir.getConfig,updateConfig:ir.updateConfig,validateConfig:ir.validateConfig,backupConfig:ir.backupConfig,restoreConfig:ir.restoreConfig,getConfigHistory:ir.getConfigHistory,saveConfigHistory:ir.saveConfigHistory,applyConfigHistory:ir.applyConfigHistory,deleteConfigHistory:ir.deleteConfigHistory,listConfigFiles:ir.listConfigFiles,switchConfigFile:ir.switchConfigFile,importConfigFile:ir.importConfigFile,deleteConfigFile:ir.deleteConfigFile,getConfigFileContent:ir.getConfigFileContent,updateConfigFileContent:ir.updateConfigFileContent,diagnoseConfig:ir.diagnoseConfig,repairConfig:ir.repairConfig,startDownload:vo.startDownload,stopDownload:vo.stopDownload,getDownloadStatus:vo.getDownloadStatus,getTaskLogs:vo.getTaskLogs,getDownloadHistory:vo.getDownloadHistory,runAllDownloads:vo.runAllDownloads,randomDownload:vo.randomDownload,getIncompleteTasks:vo.getIncompleteTasks,resumeDownload:vo.resumeDownload,deleteIncompleteTask:vo.deleteIncompleteTask,deleteAllIncompleteTasks:vo.deleteAllIncompleteTasks,getStatsOverview:Rc.getStatsOverview,getDownloadStats:Rc.getDownloadStats,getTagStats:Rc.getTagStats,getAuthorStats:Rc.getAuthorStats,getLogs:I2.getLogs,clearLogs:I2.clearLogs,listFiles:sl.listFiles,getRecentFiles:sl.getRecentFiles,getFilePreview:sl.getFilePreview,deleteFile:sl.deleteFile,normalizeFiles:sl.normalizeFiles},Uc={AUTH_STATUS:["authStatus"],AUTH:["auth","status"],CONFIG:["config"],CONFIG_FILES:["configFiles"],CONFIG_HISTORY:["configHistory"],CONFIG_DIAGNOSE:["configDiagnose"],DOWNLOAD_STATUS:e=>e?["download","status",e]:["download","status"],DOWNLOAD_LOGS:e=>["download","logs",e],DOWNLOAD_HISTORY:e=>e?["download","history",e]:["download","history"],INCOMPLETE_TASKS:["download","incomplete"],STATS_OVERVIEW:["stats","overview"],STATS_DOWNLOADS:e=>e?["stats","downloads",e]:["stats","downloads"],STATS_TAGS:e=>e?["stats","tags",e]:["stats","tags"],STATS_AUTHORS:e=>e?["stats","authors",e]:["stats","authors"],LOGS:e=>e?["logs",e]:["logs"],FILES:e=>e?["files",e]:["files"],FILES_RECENT:e=>e?["files","recent",e]:["files","recent"],FILES_PREVIEW:(e,t)=>t?["files","preview",e,t]:["files","preview",e]};function ex(e){if(!e)return!1;if(typeof e=="object"&&e!==null&&"data"in e){const n=e.data;if(n&&typeof n=="object"&&"data"in n)return n.data?.isAuthenticated===!0;const r=n;if(r&&typeof r=="object"&&"isAuthenticated"in r)return r.isAuthenticated===!0}if(typeof e=="object"&&e!==null&&"isAuthenticated"in e)return e.isAuthenticated===!0;if(typeof e=="object"&&e!==null){const t=e,n=t.data;if(n){const o=n.data||n;return o?.isAuthenticated===!0||o?.authenticated===!0||o?.hasToken===!0}return t.isAuthenticated===!0||t.authenticated===!0||t.hasToken===!0}return!1}function PA(){const{t:e}=cu(),t=gd(),n=ub(),[r,o]=d.useState(!1),[s,l]=d.useState(!1),{data:u}=db({queryKey:Uc.AUTH_STATUS,queryFn:()=>Hc.getAuthStatus(),retry:!1,refetchInterval:3e4}),f=()=>ex(u),h=async()=>{try{o(!0),await Hc.logout(),n.clear(),bi.success(e("layout.logoutSuccess")),t("/login",{replace:!0}),setTimeout(()=>{window.location.href="/login"},500)}catch(y){console.error("Logout failed:",y),bi.error(e("layout.logoutFailed")),o(!1)}},m=async()=>{try{l(!0),bi.loading(e("layout.refreshingToken"),0),await Hc.refreshToken(),await n.invalidateQueries({queryKey:Uc.AUTH_STATUS}),await n.invalidateQueries({queryKey:Uc.CONFIG}),bi.destroy(),bi.success(e("layout.tokenRefreshed"))}catch(y){console.error("Token refresh failed:",y),bi.destroy(),bi.error(e("layout.tokenRefreshFailed"))}finally{l(!1)}},g=()=>{t("/login",{replace:!0})};return{isAuthenticated:f(),isLoggingOut:r,isRefreshingToken:s,handleLogin:g,handleLogout:h,handleRefreshToken:m}}const{Content:$A}=Ao;function _A(){const[e,t]=d.useState(!1),{token:{colorBgContainer:n}}=ON.useToken(),{isAuthenticated:r,isLoggingOut:o,isRefreshingToken:s,handleLogin:l,handleLogout:u,handleRefreshToken:f}=PA();return Ce.jsxs(Ao,{style:{minHeight:"100vh"},children:[Ce.jsx(MM,{collapsed:e,onCollapse:t}),Ce.jsxs(Ao,{children:[Ce.jsx(FM,{isAuthenticated:r,isLoggingOut:o,isRefreshingToken:s,onLogin:l,onLogout:u,onRefreshToken:f,colorBgContainer:n}),Ce.jsx($A,{style:{margin:"24px 16px",padding:24,minHeight:280,background:n},children:Ce.jsx(xO,{})})]})]})}function DA({children:e}){const{t}=cu(),{data:n,isLoading:r,isError:o}=db({queryKey:Uc.AUTH_STATUS,queryFn:()=>Hc.getAuthStatus(),retry:!1,staleTime:0,refetchOnMount:!0,refetchOnWindowFocus:!1}),s=!o&&ex(n);return r&&!n?Ce.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:Ce.jsx(ud,{size:"large"})}):Ce.jsxs(Ce.Fragment,{children:[!s&&Ce.jsx(zC,{message:t("layout.needLogin"),description:Ce.jsxs("span",{children:[t("layout.notLoggedInDesc"),Ce.jsx(MO,{to:"/login",style:{marginLeft:8},children:t("layout.loginNow")})]}),type:"warning",showIcon:!0,closable:!0,style:{margin:16,marginBottom:0}}),e]})}function vi({size:e="default",tip:t,fullScreen:n=!1,spinning:r=!0,...o}){const s=e==="small"?16:e==="large"?32:24;return n?Ce.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:9999},children:Ce.jsx(ud,{spinning:r,size:e,tip:t,indicator:Ce.jsx(Ul,{style:{fontSize:s},spin:!0}),...o})}):Ce.jsx(ud,{spinning:r,size:e,tip:t,indicator:Ce.jsx(Ul,{style:{fontSize:s},spin:!0}),...o})}const LA=d.lazy(()=>Pi(()=>import("./Dashboard-CaGAH0y2.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),FA=d.lazy(()=>Pi(()=>import("./Config-D9TWUGQR.js"),__vite__mapDeps([4,5,6,7,8,1,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)),NA=d.lazy(()=>Pi(()=>import("./Download-D9E4xrnM.js"),__vite__mapDeps([20,21,6,7,8,1,9,5,2,11,22,10,23,24,15,16,19]),import.meta.url)),MA=d.lazy(()=>Pi(()=>import("./UrlDownload-ClkUOXN_.js"),__vite__mapDeps([25,8,1,14,9,19,12,11,22]),import.meta.url)),kA=d.lazy(()=>Pi(()=>import("./index-G0EJCamt.js"),__vite__mapDeps([26,21,6,7,8,1,9,2,3,14,23,27]),import.meta.url)),AA=d.lazy(()=>Pi(()=>import("./index-CiHwNwrk.js"),__vite__mapDeps([28,6,7,8,1,9,2,13,18,16,14,23]),import.meta.url)),jA=d.lazy(()=>Pi(()=>import("./Files-CKyc_PdW.js"),__vite__mapDeps([29,6,7,8,1,9,14,27,2,3,23,18,16,19,15,24]),import.meta.url)),zA=d.lazy(()=>Pi(()=>import("./index-CSoUPZat.js"),__vite__mapDeps([30,6,10,1,8,11,17,14,12]),import.meta.url));function BA(){return Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsxs(RO,{children:[Ce.jsx(yo,{path:"/login",element:Ce.jsx(zA,{})}),Ce.jsxs(yo,{path:"/",element:Ce.jsx(DA,{children:Ce.jsx(_A,{})}),children:[Ce.jsx(yo,{index:!0,element:Ce.jsx(EO,{to:"/dashboard",replace:!0})}),Ce.jsx(yo,{path:"dashboard",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(LA,{})})}),Ce.jsx(yo,{path:"config",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(FA,{})})}),Ce.jsx(yo,{path:"download",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(NA,{})})}),Ce.jsx(yo,{path:"url-download",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(MA,{})})}),Ce.jsx(yo,{path:"history",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(kA,{})})}),Ce.jsx(yo,{path:"logs",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(AA,{})})}),Ce.jsx(yo,{path:"files",element:Ce.jsx(d.Suspense,{fallback:Ce.jsx(vi,{}),children:Ce.jsx(jA,{})})})]})]})})}function HA(){return Ce.jsx(LO,{children:Ce.jsx(BA,{})})}var ll={},hp={exports:{}},T2;function Li(){return T2||(T2=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hp)),hp.exports}var ul={},P2;function UA(){if(P2)return ul;P2=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return ul.default=e,ul}var cl={},dl={},fl={},pp={exports:{}},mp={exports:{}},gp={exports:{}},vp={exports:{}},$2;function tx(){return $2||($2=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vp)),vp.exports}var yp={exports:{}},_2;function VA(){return _2||(_2=1,(function(e){var t=tx().default;function n(r,o){if(t(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var l=s.call(r,o||"default");if(t(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(yp)),yp.exports}var D2;function WA(){return D2||(D2=1,(function(e){var t=tx().default,n=VA();function r(o){var s=n(o,"string");return t(s)=="symbol"?s:s+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(gp)),gp.exports}var L2;function qA(){return L2||(L2=1,(function(e){var t=WA();function n(r,o,s){return(o=t(o))in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(mp)),mp.exports}var F2;function nx(){return F2||(F2=1,(function(e){var t=qA();function n(o,s){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);s&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),l.push.apply(l,u)}return l}function r(o){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?n(Object(l),!0).forEach(function(u){t(o,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(l,u))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(pp)),pp.exports}var hl={},N2;function rx(){return N2||(N2=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.commonLocale=void 0,hl.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),hl}var M2;function KA(){if(M2)return fl;M2=1;var e=Li().default;Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=void 0;var t=e(nx()),n=rx(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return fl.default=r,fl}var pl={},k2;function ox(){if(k2)return pl;k2=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return pl.default=e,pl}var A2;function ix(){if(A2)return dl;A2=1;var e=Li().default;Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var t=e(KA()),n=e(ox());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",dl.default=r,dl}var j2;function GA(){if(j2)return cl;j2=1;var e=Li().default;Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var t=e(ix());return cl.default=t.default,cl}var z2;function QA(){if(z2)return ll;z2=1;var e=Li().default;Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var t=e(UA()),n=e(GA()),r=e(ix()),o=e(ox());const s="${label}不是一个有效的${type}",l={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return ll.default=l,ll}var Sp,B2;function YA(){return B2||(B2=1,Sp=QA()),Sp}var XA=YA();const JA=hs(XA);var ml={},gl={},H2;function ZA(){if(H2)return gl;H2=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};return gl.default=e,gl}var vl={},yl={},Sl={},U2;function e7(){if(U2)return Sl;U2=1;var e=Li().default;Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var t=e(nx()),n=rx(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});return Sl.default=r,Sl}var bl={},V2;function ax(){if(V2)return bl;V2=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return bl.default=e,bl}var W2;function sx(){if(W2)return yl;W2=1;var e=Li().default;Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=void 0;var t=e(e7()),n=e(ax());const r={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},t.default),timePickerLocale:Object.assign({},n.default)};return yl.default=r,yl}var q2;function t7(){if(q2)return vl;q2=1;var e=Li().default;Object.defineProperty(vl,"__esModule",{value:!0}),vl.default=void 0;var t=e(sx());return vl.default=t.default,vl}var K2;function n7(){if(K2)return ml;K2=1;var e=Li().default;Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var t=e(ZA()),n=e(t7()),r=e(sx()),o=e(ax());const s="${label} is not a valid ${type}",l={locale:"en",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return ml.default=l,ml}var bp,G2;function r7(){return G2||(G2=1,bp=n7()),bp}var o7=r7();const i7=hs(o7);function a7({children:e}){const{i18n:t}=cu(),n=t.language==="en-US"?i7:JA;return Ce.jsx(Di,{locale:n,children:e})}class s7 extends d.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n),this.setState({error:t,errorInfo:n})}render(){return this.state.hasError?Ce.jsxs("div",{style:{padding:"50px",textAlign:"center"},children:[Ce.jsx(Bd,{status:"error",title:"应用程序出错",subTitle:"抱歉,应用程序遇到了一个错误。",extra:[Ce.jsx(es,{type:"primary",onClick:()=>window.location.reload(),children:"重新加载"},"reload")]}),this.state.error&&Ce.jsxs("details",{style:{marginTop:"20px",textAlign:"left",maxWidth:"800px",margin:"20px auto"},children:[Ce.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"错误详情"}),Ce.jsxs("pre",{style:{background:"#f5f5f5",padding:"15px",borderRadius:"4px",overflow:"auto",fontSize:"12px"},children:[this.state.error.toString(),this.state.errorInfo&&`
|
|
206
|
-
|
|
207
|
-
`+this.state.errorInfo.componentStack]})]})]}):this.props.children}}const{slice:l7,forEach:u7}=[];function c7(e){return u7.call(l7.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function d7(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Q2=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,f7=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const l=r.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(l)}`}if(r.domain){if(!Q2.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Q2.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},Y2={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=f7(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var h7={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Y2.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&Y2.create(n,e,r,o,s)}},p7={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let l=0;l<s.length;l++){const u=s[l].indexOf("=");u>0&&s[l].substring(0,u)===t&&(n=s[l].substring(u+1))}}return n}},m7={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const l=s.split("&");for(let u=0;u<l.length;u++){const f=l[u].indexOf("=");f>0&&l[u].substring(0,f)===t&&(r=l[u].substring(f+1))}}if(r)return r;if(!r&&n>-1){const l=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Ka=null;const X2=()=>{if(Ka!==null)return Ka;try{if(Ka=typeof window<"u"&&window.localStorage!==null,!Ka)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ka=!1}return Ka};var g7={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&X2())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&X2()&&window.localStorage.setItem(n,e)}};let Ga=null;const J2=()=>{if(Ga!==null)return Ga;try{if(Ga=typeof window<"u"&&window.sessionStorage!==null,!Ga)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ga=!1}return Ga};var v7={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&J2())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&J2()&&window.sessionStorage.setItem(n,e)}},y7={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},S7={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},b7={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},C7={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let lx=!1;try{document.cookie,lx=!0}catch{}const ux=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];lx||ux.splice(1,1);const w7=()=>({order:ux,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class cx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=c7(n,this.options||{},w7()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(h7),this.addDetector(p7),this.addDetector(g7),this.addDetector(v7),this.addDetector(y7),this.addDetector(S7),this.addDetector(b7),this.addDetector(C7),this.addDetector(m7)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!d7(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}cx.type="languageDetector";const E7={save:"保存",cancel:"取消",delete:"删除",edit:"编辑",confirm:"确认",reload:"刷新",search:"搜索",reset:"重置",submit:"提交",close:"关闭",back:"返回",next:"下一步",previous:"上一步",loading:"加载中...",noData:"暂无数据",success:"成功",error:"错误",warning:"警告",info:"信息",ok:"确定",yes:"是",no:"否",copy:"复制",export:"导出",import:"导入",preview:"预览",execute:"执行",skip:"跳过",continue:"继续",stop:"停止",start:"开始",retry:"重试",clear:"清空",refresh:"刷新",add:"添加",remove:"移除",update:"更新",view:"查看",open:"打开",download:"下载",upload:"上传",select:"选择",all:"全部",none:"无",unknown:"未知",recommended:"推荐",loginRequired:"请先登录才能使用此功能"},x7={title:"PixivFlow WebUI",dashboard:"仪表盘",config:"配置管理",download:"下载任务",urlDownload:"URL 下载",history:"下载历史",logs:"日志查看",files:"文件浏览",language:"语言",languageZh:"中文",languageEn:"English",login:"登录",logout:"退出登录",logoutSuccess:"已退出登录",logoutFailed:"退出登录失败",refreshToken:"刷新Token",refreshingToken:"正在刷新Token...",tokenRefreshed:"Token已刷新",tokenRefreshFailed:"Token刷新失败",needLogin:"需要登录",notLoggedInDesc:"您尚未登录。某些功能可能需要登录后才能使用。",loginNow:"立即登录"},O7={title:"仪表盘",totalDownloads:"总下载数",illustrations:"插画",novels:"小说",recentDownloads:"最近下载",recentDownloadsDesc:"最近 7 天下载: {{count}} 个作品",refreshStats:"刷新统计",relogin:"重新登录",refreshingStats:"正在刷新统计数据...",statsRefreshed:"统计数据已刷新",refreshStatsFailed:"刷新统计数据失败",gettingAuthCode:"✅ 已获取授权码,正在刷新 Token...",tokenRefreshing:"✅ Token 已刷新,正在更新状态...",tokenRefreshSuccess:"✅ Token 刷新成功!",tokenRefreshedButVerifyFailed:"Token 已刷新,但状态验证失败。请刷新页面。",tokenRefreshed:"✅ Token 已刷新!",loginSuccessEventError:"处理登录成功事件时出错: {{error}}",loginFailed:"登录失败: {{error}}",openingBrowser:"正在打开系统浏览器进行登录...",cannotOpenLoginWindow:"无法打开登录窗口",cannotOpenLoginWindowError:"无法打开登录窗口: {{error}}",redirectingToLogin:"正在跳转到登录页面..."},R7={title:"登录",subtitle:"登录到 PixivFlow",loginMode:"登录模式",loginModeHeadless:"无头模式(自动登录)",loginModeInteractive:"交互模式(浏览器登录)",loginModeHeadlessDesc:"使用用户名和密码自动登录,浏览器在后台运行",loginModeInteractiveDesc:"打开浏览器窗口,手动登录 Pixiv(推荐,更稳定)",username:"用户名",password:"密码",usernamePlaceholder:"请输入 Pixiv 用户名或邮箱",passwordPlaceholder:"请输入密码",usernameRequired:"请输入用户名",passwordRequired:"请输入密码",loginButton:"登录",loggingIn:"登录中...",processing:"正在处理登录",processingDesc:"正在使用 gppt 进行 Pixiv OAuth 认证(无头模式),这可能需要一些时间。如果是首次使用无头模式,应用可能会自动安装 gppt 库(可能需要几分钟),请耐心等待。",processingInteractiveDesc:"正在打开浏览器窗口,请在浏览器中完成登录。交互模式使用 Puppeteer,无需安装额外依赖。",requirements:"登录说明",requirementsDesc:"推荐使用交互模式(Puppeteer)登录,更稳定且无需额外依赖。无头模式使用 Python gppt 库,首次使用时会自动安装(可能需要几分钟)。",browserWindowNote:"注意:交互模式会打开一个独立的浏览器窗口,您需要在浏览器中手动完成登录。这种方式更稳定,推荐使用。",note:"登录成功后,refresh_token 会保存到配置文件,之后无需再次登录。"},I7={title:"配置管理",currentConfigPath:"当前配置文件",refresh:"刷新",previewConfig:"预览配置",exportConfig:"导出配置",importConfig:"导入配置",copyConfig:"复制配置",validateConfig:"验证配置",saveConfig:"保存配置",saveSuccess:"配置保存成功",saveFailed:"配置保存失败",validationPassed:"配置验证通过",validationFailed:"配置验证失败",configExported:"配置已导出",configImported:"配置已导入并保存",configImportedAndSaved:"配置已导入并持久化保存",configImportFailed:"配置导入失败",configBatchImportedSuccess:"成功导入 {{count}} 个配置文件",configBatchImportedPartial:"已导入 {{success}}/{{total}} 个配置文件,{{failed}} 个失败",configBatchImportedFailed:"批量导入失败,{{count}} 个配置文件无法导入",unknownError:"未知错误",configCopied:"配置已复制到剪贴板",configPreview:"配置预览",basicConfig:"基础配置",pixivCredentials:"Pixiv 凭证",networkConfig:"网络配置",storageConfig:"存储配置",schedulerConfig:"调度器配置",downloadConfig:"下载配置",targets:"下载目标",logLevel:"日志级别",logLevelTooltip:"控制日志输出的详细程度,debug 最详细,error 只显示错误",logLevelDebug:"Debug - 调试信息(最详细)",logLevelInfo:"Info - 一般信息",logLevelWarn:"Warn - 警告信息",logLevelError:"Error - 错误信息(最简洁)",initialDelay:"初始延迟 (毫秒)",initialDelayTooltip:"下载开始前的延迟时间,用于避免请求过快",initialDelayPlaceholder:"建议值:1000-3000",tabBasic:"基础配置",tabPixiv:"Pixiv 凭证",tabNetwork:"网络配置",tabStorage:"存储配置",tabScheduler:"调度器配置",tabDownload:"下载配置",tabTargets:"下载目标",tabHistory:"配置历史",tabConfigFiles:"配置文件",configHistory:"配置历史",configFiles:"配置文件",activeConfig:"当前激活",fileName:"文件名",filePath:"文件路径",fileModified:"修改时间",fileSize:"文件大小",configSwitched:"配置切换成功",configSwitchFailed:"配置切换失败",switch:"切换",deleteConfigFileConfirm:"确定要删除此配置文件吗?",configFileDeleted:"配置文件已删除",configFileDeleteFailed:"删除配置文件失败",configFileReadFailed:"读取配置文件失败",editJson:"编辑 JSON",formatJson:"格式化",jsonFormatted:"JSON 已格式化",jsonFormatError:"JSON 格式错误,请检查语法",jsonEditorPlaceholder:"在此编辑配置文件内容...",jsonEditorWarning:"警告:直接编辑 JSON 可能导致配置错误,请谨慎操作",jsonEditorExternalChanges:"检测到文件外部修改",jsonEditorExternalChangesDesc:"配置文件已被外部程序修改。点击刷新按钮加载最新内容,或继续编辑当前内容。",jsonEditorRefreshed:"已刷新为最新内容",configFilesEmpty:"暂无配置文件",configFilesEmptyDesc:"配置文件将显示在这里。您可以导入配置来创建新文件。",selectConfigFile:"快速切换配置文件",historyName:"名称",historyDescription:"描述",historyCreatedAt:"创建时间",historyUpdatedAt:"更新时间",historyEmpty:"暂无配置历史",historyEmptyDesc:"导入或保存配置后,历史记录将显示在这里",deleteHistoryConfirm:"确定要删除此配置历史吗?",historyDeleted:"配置历史已删除",historyDeleteFailed:"删除配置历史失败",configApplied:"配置已应用",configApplyFailed:"应用配置失败",apply:"应用",pixivCredentialsHidden:"敏感信息已隐藏。如需修改,请使用命令行工具或直接编辑配置文件。",networkTimeout:"请求超时 (毫秒)",networkRetries:"重试次数",networkRetryDelay:"重试延迟 (毫秒)",proxyEnabled:"启用代理",storageDatabasePath:"数据库路径",storageDownloadDirectory:"下载目录",storageIllustrationDirectory:"插画目录",storageNovelDirectory:"小说目录",storageIllustrationOrganization:"插画组织方式",storageIllustrationOrganizationTooltip:"选择文件在下载目录中的组织方式。⭐ 标记的选项按下载日期组织,便于按下载时间查找文件。",storageNovelOrganization:"小说组织方式",storageNovelOrganizationTooltip:"选择文件在下载目录中的组织方式。⭐ 标记的选项按下载日期组织,便于按下载时间查找文件。",schedulerEnabled:"启用调度器",schedulerCron:"Cron 表达式",schedulerCronPlaceholder:"例如: 0 3 * * * (每天凌晨3点)",schedulerTimezone:"时区",schedulerTimezonePlaceholder:"例如: Asia/Shanghai",schedulerMaxExecutions:"最大执行次数",schedulerMaxExecutionsPlaceholder:"留空表示无限制",schedulerMinInterval:"最小执行间隔 (毫秒)",schedulerTimeout:"超时时间 (毫秒)",schedulerTimeoutPlaceholder:"留空表示无超时",downloadConcurrency:"并发数",downloadMaxRetries:"最大重试次数",downloadRetryDelay:"重试延迟 (毫秒)",downloadTimeout:"超时时间 (毫秒)",targetsTitle:"下载目标配置",targetsEmpty:'暂无下载目标,请点击"添加目标"按钮添加',deleteTargetConfirm:"确定要删除这个下载目标吗?",unknown:"未知",from:"从",to:"至",seriesId:"系列 ID",novelId:"小说 ID",targetsConfig:"下载目标配置",targetsDescription:"配置要下载的内容。支持标签搜索、排行榜、系列下载等多种模式。可以添加多个目标,它们会按顺序执行。",targetsList:"下载目标列表",addTarget:"添加目标",noTargets:'暂无下载目标,请点击"添加目标"按钮添加',editTarget:"编辑下载目标",addTargetTitle:"添加下载目标",templateTooltip:"使用模板可以快速创建常用配置",selectTemplate:"选择模板",quickStart:"快速开始",configureParams:"配置参数",detailedSettings:"详细设置",templateDescription:"选择一个配置模板快速开始,或直接进入下一步手动配置",useTemplate:"使用模板",skipTemplate:"跳过模板,手动配置",basicSettings:"基础设置",type:"类型",typeTooltip:"选择要下载的内容类型",typeIllustration:"插画(图片)",typeNovel:"小说",mode:"模式",modeTooltip:"搜索模式:按标签搜索作品;排行榜模式:下载排行榜作品",modeSearch:"搜索模式",modeRanking:"排行榜模式",limit:"下载数量限制",limitTooltip:"每次运行最多下载的作品数量,建议值:10-50",limitPlaceholder:"例如:20",searchRankingSettings:"搜索/排行榜设置",tag:"标签",tagTooltip:"搜索标签,支持多个标签用空格分隔(AND关系)。例如:'原神' 或 '明日方舟 アークナイツ'",tagPlaceholder:"例如:原神 或 明日方舟 アークナイツ(多标签用空格分隔)",searchTarget:"搜索目标",searchTargetTooltip:"部分匹配:标签部分匹配即可;精确匹配:标签必须完全匹配;标题和说明:在标题和说明中搜索",searchTargetPartial:"部分匹配标签(推荐)",searchTargetExact:"精确匹配标签",searchTargetTitle:"标题和说明",sort:"排序方式",sortTooltip:"日期降序:最新作品优先;日期升序:最旧作品优先;人气降序:收藏数最多优先",sortDateDesc:"日期降序(最新优先)",sortDateAsc:"日期升序(最旧优先)",sortPopularDesc:"人气降序(收藏最多优先)",rankingMode:"排行榜模式",rankingModeTooltip:"选择要下载的排行榜类型",rankingDay:"日榜",rankingWeek:"周榜",rankingMonth:"月榜",rankingDayMale:"男性向日榜",rankingDayFemale:"女性向日榜",rankingDayAI:"AI作品日榜",rankingWeekOriginal:"原创周榜",rankingWeekRookie:"新人周榜",rankingDate:"排行榜日期",rankingDateTooltip:"指定排行榜日期,格式:YYYY-MM-DD 或使用 YESTERDAY 表示昨天",rankingDatePlaceholder:"例如:2024-01-15 或 YESTERDAY(留空表示今天)",filterTag:"筛选标签",filterTagTooltip:"可选:从排行榜结果中筛选包含此标签的作品",filterTagPlaceholder:"可选:例如 原神(留空表示不过滤)",advancedFilters:"高级筛选(可选)",minBookmarks:"最小收藏数",minBookmarksTooltip:"只下载收藏数大于等于此值的作品,用于筛选高质量作品",minBookmarksPlaceholder:"例如:1000(留空表示不限制)",startDate:"开始日期",startDateTooltip:"只下载此日期之后发布的作品,格式:YYYY-MM-DD",startDatePlaceholder:"例如:2024-01-01(留空表示不限制)",endDate:"结束日期",endDateTooltip:"只下载此日期之前发布的作品,格式:YYYY-MM-DD",endDatePlaceholder:"例如:2024-12-31(留空表示不限制)",targetType:"类型",targetTypeTooltip:"选择要下载的内容类型",targetTypeRequired:"请选择类型",targetMode:"模式",targetModeTooltip:"搜索模式:按标签搜索作品;排行榜模式:下载排行榜作品",targetConfig:"标签/配置",targetFilters:"限制/筛选",targetActions:"操作",targetBasicSettings:"基础设置",targetModeSettings:"搜索/排行榜设置",targetLimit:"下载数量限制",targetLimitTooltip:"每次运行最多下载的作品数量,建议值:10-50",targetLimitRange:"限制数量应在 1-1000 之间",targetLimitPlaceholder:"例如:20",targetTag:"标签",targetTagTooltip:"搜索标签,支持多个标签用空格分隔(AND关系)。例如:'原神' 或 '明日方舟 アークナイツ'",targetTagRequired:"搜索模式下标签不能为空",targetTagPlaceholder:"例如:原神 或 明日方舟 アークナイツ(多标签用空格分隔)",targetAdvancedFilters:"高级筛选(可选)",stepSelectTemplate:"选择模板",stepSelectTemplateDesc:"快速开始",stepConfigure:"配置参数",stepConfigureDesc:"详细设置",templateSelectDescription:"选择一个配置模板快速开始,或直接进入下一步手动配置",targetDeleted:"下载目标已删除",targetSaved:"下载目标已保存",targetDeletedButSaveFailed:"下载目标已从表单删除,但保存到后端失败。请手动保存。",targetSavedButSaveFailed:"下载目标已添加到表单,但保存到后端失败。请手动保存。",templateApplied:"已应用模板",configNotLoaded:"配置数据未加载,请稍后再试",configFormatError:"配置文件格式错误,请确保是有效的 JSON 文件",configImportedToForm:"配置已导入到表单,但保存失败。请检查配置后手动保存。",typeRequired:"请选择类型",tagRequired:"搜索模式下标签不能为空",limitRange:"限制数量应在 1-1000 之间",templateTagSearch:"标签搜索",templateTagSearchDesc:"按标签搜索并下载插画",templateRanking:"排行榜下载",templateRankingDesc:"下载排行榜作品",templateMultiTag:"多标签搜索",templateMultiTagDesc:"同时包含多个标签的作品",templateHighQuality:"高质量筛选",templateHighQualityDesc:"按收藏数筛选高质量作品",templateNovel:"小说下载",templateNovelDesc:"下载小说作品",organizationGroupSimple:"简单模式",organizationGroupDate:"按日期组织",organizationGroupCombined:"组合模式",organizationFlat:"扁平结构(所有文件在同一目录)",organizationByAuthor:"按作者",organizationByTag:"按标签",organizationByDate:"按作品创建日期(月份)",organizationByDay:"按作品创建日期(天)",organizationByDownloadDate:"按下载日期(月份)⭐",organizationByDownloadDay:"按下载日期(天)⭐",organizationByAuthorAndTag:"按作者和标签",organizationByDateAndAuthor:"按作品创建日期和作者",organizationByDayAndAuthor:"按作品创建日期和作者(天)",organizationByDownloadDateAndAuthor:"按下载日期和作者(月份)⭐",organizationByDownloadDayAndAuthor:"按下载日期和作者(天)⭐"},T7={title:"下载任务管理",description:"在这里可以启动、停止和监控下载任务。支持下载单个目标或所有配置的目标。",totalTasks:"总任务数",completed:"已完成",failed:"失败",stopped:"已停止",taskOperations:"任务操作",startDownload:"启动下载任务",downloadAll:"下载所有目标",stopCurrent:"停止当前任务",hasActiveTask:"当前有任务正在运行",hasActiveTaskDesc:"请等待当前任务完成或手动停止后再启动新任务",fileSavePath:"文件保存路径",refreshPath:"刷新路径显示",illustrationPath:"插画目录:",novelPath:"小说目录:",pathTip:"提示:路径会在配置更新后自动刷新,您也可以点击刷新按钮手动更新",currentTask:"当前运行的任务",stopTask:"停止任务",taskId:"任务ID",status:"状态",startTime:"开始时间",duration:"运行时长",endTime:"结束时间",progress:"进度",errorInfo:"错误信息",realtimeLogs:"实时日志",logsCount:"条",statusRunning:"运行中",statusCompleted:"已完成",statusFailed:"失败",statusStopped:"已停止",incompleteTasks:"未完成的任务",refreshList:"刷新列表",deleteAll:"一键删除所有",incompleteTasksFound:"发现 {{count}} 个未完成的任务",incompleteTasksDesc:"这些任务可能因为网络问题或其他原因未能完成,您可以点击「继续下载」按钮重新尝试下载",tag:"标签",type:"类型",typeIllustration:"插画",typeNovel:"小说",incompleteStatus:"状态",statusPartial:"部分完成",errorMessage:"错误信息",executedAt:"执行时间",actions:"操作",resumeDownload:"继续下载",deleteTask:"删除",confirmDelete:"确认删除",confirmDeleteAll:"确认删除所有未完成任务",confirmDeleteAllDesc:"确定要删除所有 {{count}} 个未完成的任务吗?此操作不可恢复。",confirmDeleteDesc:'确定要删除未完成任务 "{{tag}}" ({{type}}) 吗?',taskHistory:"任务历史记录",loadingHistory:"加载任务历史中...",noHistory:"暂无任务历史记录",taskRecords:"共 {{total}} 条任务记录",startDownloadModal:"启动下载任务",startDownloadTip:"提示",startDownloadTipDesc:"选择一个特定的目标进行下载,或留空以下载所有配置的目标",selectConfigFiles:"选择配置文件",selectConfigFilesTooltip:"选择一个或多个配置文件用于下载。如果选择多个文件,它们的下载目标将被合并。",selectConfigFilesExtra:"如果未选择文件,将使用当前激活的配置文件",selectConfigFilesPlaceholder:"选择配置文件(可选)",selectTarget:"选择下载目标",selectTargetTooltip:"留空则下载所有配置的目标",selectTargetExtra:"从配置的目标列表中选择一个进行下载,或留空以下载所有目标",selectTargetPlaceholder:"选择要下载的目标(留空则下载所有目标)",noTargetsFound:"未找到配置的目标",noTargetsFoundDesc:"请先在配置页面添加下载目标",taskStarted:"下载任务已启动",taskStopped:"下载任务已停止",allTargetsStarted:"已开始下载所有目标",taskResumed:"已继续下载任务",incompleteTaskDeleted:"未完成任务已删除",allIncompleteTasksDeleted:"已成功删除 {{count}} 个未完成任务",noIncompleteTasks:"没有未完成的任务需要删除",startFailed:"启动下载失败",stopFailed:"停止下载失败",resumeFailed:"继续下载失败",deleteFailed:"删除任务失败",deleteAllFailed:"删除所有未完成任务失败",seconds:"秒",minutes:"分",hours:"小时",error401:"认证失败:请检查 refresh token 是否有效,尝试重新登录",error403:"访问被拒绝:可能是 Pixiv API 限制,等待后重试",errorTimeout:"请求超时:检查网络连接或增加超时时间",errorRetries:"多次重试失败:检查网络连接和代理设置,等待后重试",totalEntries:"共 {{total}} 条",taskResumedWithTag:"已继续下载任务: {{tag}} ({{type}})",limit:"限制",entries:"条",urlDownload:{title:"URL 直接下载",description:"通过输入 Pixiv URL 或作品 ID 直接下载作品,无需配置文件",singleDownload:"单个下载",batchDownload:"批量下载",inputLabel:"输入 Pixiv URL 或作品 ID",placeholder:"例如: https://www.pixiv.net/artworks/123456 或直接输入 123456",batchInputLabel:"输入多个 URL(每行一个)",batchPlaceholder:`每行一个 URL 或作品 ID,例如:
|
|
208
|
-
https://www.pixiv.net/artworks/123456
|
|
209
|
-
https://www.pixiv.net/artworks/789012
|
|
210
|
-
123456`,download:"立即下载",downloadAll:"下载全部",parseUrl:"解析 URL",parseUrls:"解析所有 URL",clear:"清空",remove:"移除",enterUrl:"请输入 URL 或作品 ID",enterUrls:"请输入至少一个 URL",parseSuccess:"URL 解析成功",parseError:"URL 解析失败",invalidUrl:"无效的 URL",validUrl:"有效的 URL",workId:"作品 ID",workType:"作品类型",illustration:"插画",novel:"小说",parsedCount:"成功解析 {{count}}/{{total}} 个 URL",noValidUrls:"没有有效的 URL",downloadStarted:"下载任务已启动",batchDownloadStarted:"批量下载已启动,共 {{count}} 个作品",downloadError:"下载失败",parseResult:"解析结果",validUrls:"有效",invalidUrls:"无效",urlList:"URL 列表",helpTitle:"使用说明",supportedFormats:"支持的 URL 格式:",directId:"(直接输入作品 ID)",tip:"提示",tipDescription:"您可以直接从 Pixiv 网站复制作品链接,或者只输入作品 ID。批量下载时,每行输入一个 URL 或 ID。"}},P7={title:"下载历史",exportData:"导出数据",exportCSV:"导出为 CSV",exportJSON:"导出为 JSON",totalRecords:"总记录数",illustrations:"插画",novels:"小说",authors:"作者数",filterType:"筛选类型",searchTitle:"搜索标题",searchTag:"搜索标签",searchAuthor:"搜索作者",dateRange:"日期范围",startDate:"开始日期",endDate:"结束日期",resetFilters:"重置筛选",sortBy:"排序方式:",sortDownloadTime:"下载时间",sortTitle:"标题",sortAuthor:"作者",sortPixivId:"Pixiv ID",sortOrderDesc:"降序",sortOrderAsc:"升序",loadFailed:"加载失败",loadFailedDesc:"无法加载下载历史",displaying:"显示 {{start}}-{{end}} 条,共 {{total}} 条记录",filtered:" (已筛选)",pixivId:"Pixiv ID",type:"类型",typeIllustration:"插画",typeNovel:"小说",workTitle:"标题",tag:"标签",author:"作者",filePath:"文件路径",open:"打开",downloadedAt:"下载时间"},$7={title:"日志查看",autoRefresh:"自动刷新",manualRefresh:"手动刷新",autoScroll:"自动滚动",manualScroll:"手动滚动",refresh:"刷新",scrollToBottom:"滚动到底部",export:"导出",clearLogs:"清空日志",confirmClear:"确定要清空所有日志吗?",totalLogs:"总日志数",errors:"错误/致命",warnings:"警告",info:"信息",searchPlaceholder:"搜索日志内容(支持高亮)",filterLevel:"筛选日志级别",pageSize:"条/页",displaying:"显示 {{start}}-{{end}} 条,共 {{total}} 条日志",level:"级别",time:"时间",content:"内容",copyLine:"复制整行",copied:"已复制到剪贴板",copyFailed:"复制失败",logsExported:"日志已导出",scrolledToBottom:"已滚动到底部",logsCleared:"日志已清空",clearFailed:"清空日志失败",justNow:"刚刚",minutesAgo:"分钟前",hoursAgo:"小时前",daysAgo:"天前"},_7={title:"文件浏览",normalizeFiles:"规范化文件",directories:"目录",files:"文件",images:"图片",totalSize:"总大小",searchPlaceholder:"搜索文件名...",filterAll:"全部时间",filterToday:"今天",filterYesterday:"昨天",filterThisWeek:"本周",filterLastWeek:"上周",filterThisMonth:"本月",filterLastMonth:"上月",sortByName:"按名称",sortByTime:"按时间",sortByDownloadTime:"按下载时间",sortBySize:"按大小",sortByType:"按类型",ascending:"升序",descending:"降序",root:"根目录",goBack:"返回上级",displaying:"显示 {{start}}-{{end}} 项,共 {{total}} 项",filtered:" (已筛选)",name:"名称",type:"类型",typeDirectory:"目录",typeImage:"图片",typeText:"文本",typeFile:"文件",size:"大小",modified:"修改时间",downloadedAt:"下载时间",unknown:"未知",actions:"操作",preview:"预览",delete:"删除",confirmDelete:"确定要删除这个文件吗?",fileDeleted:"文件删除成功",deleteFailed:"删除文件失败",previewNotSupported:"该文件类型不支持预览",loadingContent:"加载中...",loadContentFailed:"无法加载文件内容",normalizeTitle:"规范化文件",normalizeDescription:"此功能将根据当前配置重新组织文件结构,规范化文件名,并更新数据库记录。建议先使用预览模式查看将要执行的操作。",normalizeOptions:"规范化选项:",normalizeNames:"规范化文件名(清理特殊字符,统一格式)",reorganize:"重新组织文件结构(根据当前配置的组织模式)",updateDatabase:"更新数据库记录(更新文件路径)",fileType:"文件类型:",allTypes:"全部(插画和小说)",illustrationOnly:"仅插画",novelOnly:"仅小说",processing:"正在处理文件,请稍候...",normalizeResult:"规范化结果:",totalFiles:"总文件数",processedFiles:"已处理",movedFiles:"已移动",renamedFiles:"已重命名",updatedDatabase:"数据库已更新",skippedFiles:"已跳过",errors:"错误数",processingErrors:"处理错误",previewMode:"预览模式",previewModeDesc:"这是预览结果,文件尚未实际修改。要执行规范化,请点击执行规范化按钮。",previewButton:"预览(不执行)",executeNormalize:"执行规范化",normalizeCompleted:"文件规范化完成",previewCompleted:"预览完成,请查看结果",normalizeFailed:"文件规范化失败"},D7={CONFIG_GET_FAILED:"获取配置失败",CONFIG_UPDATE_FAILED:"更新配置失败",CONFIG_UPDATE_SUCCESS:"配置更新成功",CONFIG_INVALID:"配置无效",CONFIG_VALIDATE_FAILED:"验证配置失败",CONFIG_BACKUP_SUCCESS:"配置备份成功",CONFIG_BACKUP_FAILED:"配置备份失败",CONFIG_RESTORE_SUCCESS:"配置恢复成功",CONFIG_RESTORE_FAILED:"配置恢复失败",CONFIG_BACKUP_PATH_INVALID:"备份路径无效",CONFIG_VALIDATION_PIXIV_REQUIRED:"需要 Pixiv 配置",CONFIG_VALIDATION_PIXIV_CLIENT_ID_REQUIRED:"需要 Pixiv 客户端 ID",CONFIG_VALIDATION_PIXIV_REFRESH_TOKEN_REQUIRED:"需要 Pixiv 刷新令牌",CONFIG_VALIDATION_TARGETS_REQUIRED:"至少需要一个下载目标",CONFIG_VALIDATION_TARGET_TYPE_REQUIRED:"目标 {{index}}:需要类型",CONFIG_VALIDATION_TARGET_TYPE_INVALID:"目标 {{index}}:类型必须是 'illustration' 或 'novel'",CONFIG_VALIDATION_TARGET_LIMIT_INVALID:"目标 {{index}}:限制必须大于 0",CONFIG_VALIDATION_STORAGE_REQUIRED:"需要存储配置",CONFIG_VALIDATION_DOWNLOAD_DIRECTORY_REQUIRED:"需要下载目录",CONFIG_VALIDATION_CRON_REQUIRED:"启用调度器时需要 Cron 表达式",CONFIG_VALIDATION_CRON_INVALID:"Cron 表达式格式无效",DOWNLOAD_TASK_ALREADY_RUNNING:"另一个下载任务正在运行",DOWNLOAD_START_SUCCESS:"下载任务已启动",DOWNLOAD_START_FAILED:"启动下载失败",DOWNLOAD_STOP_SUCCESS:"下载任务已停止",DOWNLOAD_STOP_FAILED:"停止下载失败",DOWNLOAD_TASK_NOT_FOUND:"任务未找到",DOWNLOAD_STATUS_FAILED:"获取下载状态失败",DOWNLOAD_TASK_ID_REQUIRED:"需要任务 ID",DOWNLOAD_LOGS_FAILED:"获取任务日志失败",DOWNLOAD_HISTORY_FAILED:"获取下载历史失败",DOWNLOAD_RUN_ALL_START_SUCCESS:"所有目标下载已启动",DOWNLOAD_RUN_ALL_START_FAILED:"启动所有下载失败",DOWNLOAD_INCOMPLETE_GET_FAILED:"获取未完成任务失败",DOWNLOAD_INCOMPLETE_DELETE_ALL_SUCCESS:"成功删除 {{count}} 个未完成任务",DOWNLOAD_INCOMPLETE_DELETE_ALL_FAILED:"删除所有未完成任务失败",DOWNLOAD_INCOMPLETE_DELETE_SUCCESS:"任务删除成功",DOWNLOAD_INCOMPLETE_DELETE_FAILED:"删除未完成任务失败",DOWNLOAD_INCOMPLETE_TASK_ID_INVALID:"任务 ID 必须是有效的正整数,得到:{{rawId}}",DOWNLOAD_DATABASE_NOT_CONFIGURED:"数据库未配置",DOWNLOAD_DATABASE_INIT_FAILED:"数据库初始化失败",DOWNLOAD_DATABASE_TEST_SUCCESS:"数据库连接成功",DOWNLOAD_DATABASE_TEST_FAILED:"数据库测试失败",DOWNLOAD_RESUME_TAG_TYPE_REQUIRED:"需要标签和类型",DOWNLOAD_RESUME_TARGET_NOT_FOUND:'未找到标签 "{{tag}}" 和类型 "{{type}}" 的目标',DOWNLOAD_RESUME_SUCCESS:'正在恢复标签 "{{tag}}" ({{type}}) 的下载任务',DOWNLOAD_RESUME_FAILED:"恢复下载失败",DOWNLOAD_RANDOM_START_SUCCESS:"随机 {{type}} 下载已启动",DOWNLOAD_RANDOM_START_FAILED:"启动随机下载失败",FILE_LIST_FAILED:"列出文件失败",FILE_PATH_INVALID:"路径无效",FILE_PATH_REQUIRED:"需要文件路径",FILE_NOT_FOUND:"文件未找到",FILE_IS_DIRECTORY:"路径是目录,不是文件",FILE_READ_FAILED:"读取文件失败",FILE_PREVIEW_FAILED:"获取文件预览失败",FILE_DELETE_SUCCESS:"文件删除成功",FILE_DELETE_FAILED:"删除文件失败",FILE_NORMALIZE_FAILED:"规范化文件失败",AUTH_STATUS_FAILED:"获取认证状态失败",AUTH_USERNAME_PASSWORD_REQUIRED:"需要用户名和密码",AUTH_LOGIN_SUCCESS:"登录成功",AUTH_LOGIN_FAILED:"登录失败",AUTH_REFRESH_TOKEN_REQUIRED:"需要刷新令牌",AUTH_REFRESH_SUCCESS:"令牌刷新成功",AUTH_REFRESH_FAILED:"令牌刷新失败",AUTH_LOGOUT_SUCCESS:"登出成功",AUTH_LOGOUT_FAILED:"登出失败",STATS_OVERVIEW_FAILED:"获取概览统计失败",STATS_DOWNLOADS_FAILED:"获取下载统计失败",STATS_TAGS_FAILED:"获取标签统计失败",STATS_AUTHORS_FAILED:"获取作者统计失败",LOGS_GET_FAILED:"获取日志失败",LOGS_CLEAR_SUCCESS:"日志清除成功",LOGS_CLEAR_FAILED:"清除日志失败"},L7={common:E7,layout:x7,dashboard:O7,login:R7,config:I7,download:T7,history:P7,logs:$7,files:_7,errorCodes:D7},F7={save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",confirm:"Confirm",reload:"Reload",search:"Search",reset:"Reset",submit:"Submit",close:"Close",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",noData:"No Data",success:"Success",error:"Error",warning:"Warning",info:"Info",ok:"OK",yes:"Yes",no:"No",copy:"Copy",export:"Export",import:"Import",preview:"Preview",execute:"Execute",skip:"Skip",continue:"Continue",stop:"Stop",start:"Start",retry:"Retry",clear:"Clear",refresh:"Refresh",add:"Add",remove:"Remove",update:"Update",view:"View",open:"Open",download:"Download",upload:"Upload",select:"Select",all:"All",none:"None",unknown:"Unknown",recommended:"Recommended",loginRequired:"Please login first to use this feature"},N7={title:"PixivFlow WebUI",dashboard:"Dashboard",config:"Configuration",download:"Download Tasks",urlDownload:"URL Download",history:"Download History",logs:"Logs",files:"File Browser",language:"Language",languageZh:"中文",languageEn:"English",login:"Login",logout:"Logout",logoutSuccess:"Logged out successfully",logoutFailed:"Logout failed",refreshToken:"Refresh Token",refreshingToken:"Refreshing token...",tokenRefreshed:"Token refreshed",tokenRefreshFailed:"Token refresh failed",needLogin:"Login Required",notLoggedInDesc:"You are not logged in. Some features may require login to use.",loginNow:"Login Now"},M7={title:"Dashboard",totalDownloads:"Total Downloads",illustrations:"Illustrations",novels:"Novels",recentDownloads:"Recent Downloads",recentDownloadsDesc:"Downloads in last 7 days: {{count}} works",refreshStats:"Refresh Stats",relogin:"Re-login",refreshingStats:"Refreshing statistics...",statsRefreshed:"Statistics refreshed",refreshStatsFailed:"Failed to refresh statistics",gettingAuthCode:"✅ Authorization code obtained, refreshing token...",tokenRefreshing:"✅ Token refreshed, updating status...",tokenRefreshSuccess:"✅ Token refreshed successfully!",tokenRefreshedButVerifyFailed:"Token refreshed but status verification failed. Please refresh the page.",tokenRefreshed:"✅ Token refreshed!",loginSuccessEventError:"Error handling login success event: {{error}}",loginFailed:"Login failed: {{error}}",openingBrowser:"Opening system browser for login...",cannotOpenLoginWindow:"Cannot open login window",cannotOpenLoginWindowError:"Cannot open login window: {{error}}",redirectingToLogin:"Redirecting to login page..."},k7={title:"Login",subtitle:"Login to PixivFlow",loginMode:"Login Mode",loginModeHeadless:"Headless Mode (Auto Login)",loginModeInteractive:"Interactive Mode (Browser Login)",loginModeHeadlessDesc:"Auto login with username and password, browser runs in background",loginModeInteractiveDesc:"Open browser window for manual login (Recommended, more stable)",username:"Username",password:"Password",usernamePlaceholder:"Enter Pixiv username or email",passwordPlaceholder:"Enter password",usernameRequired:"Please enter username",passwordRequired:"Please enter password",loginButton:"Login",loggingIn:"Logging in...",processing:"Processing login",processingDesc:"Using gppt for Pixiv OAuth authentication (headless mode), this may take some time. On first use of headless mode, the app may automatically install the gppt library (may take a few minutes), please be patient.",processingInteractiveDesc:"Opening browser window, please complete login in the browser. Interactive mode uses Puppeteer and requires no additional dependencies.",requirements:"Login Information",requirementsDesc:"Recommended to use Interactive Mode (Puppeteer) for login - more stable and requires no additional dependencies. Headless mode uses Python gppt library, which will be automatically installed on first use (may take a few minutes).",browserWindowNote:"Note: Interactive mode will open a separate browser window where you need to manually complete the login. This method is more stable and recommended.",note:"After successful login, the refresh_token will be saved to the config file, and you won't need to login again."},A7=JSON.parse(`{"title":"Configuration Management","currentConfigPath":"Current Config File","refresh":"Refresh","previewConfig":"Preview Config","exportConfig":"Export Config","importConfig":"Import Config","copyConfig":"Copy Config","validateConfig":"Validate Config","saveConfig":"Save Config","saveSuccess":"Configuration saved successfully","saveFailed":"Configuration save failed","validationPassed":"Configuration validation passed","validationFailed":"Configuration validation failed","configExported":"Configuration exported","configImported":"Configuration imported and saved","configImportedAndSaved":"Configuration imported and persisted","configImportFailed":"Failed to import configuration","configBatchImportedSuccess":"Successfully imported {{count}} configuration files","configBatchImportedPartial":"Imported {{success}}/{{total}} configuration files, {{failed}} failed","configBatchImportedFailed":"Batch import failed, {{count}} configuration files could not be imported","unknownError":"Unknown error","configCopied":"Configuration copied to clipboard","configPreview":"Config Preview","basicConfig":"Basic Config","pixivCredentials":"Pixiv Credentials","networkConfig":"Network Config","storageConfig":"Storage Config","schedulerConfig":"Scheduler Config","downloadConfig":"Download Config","targets":"Download Targets","logLevel":"Log Level","logLevelTooltip":"Control the verbosity of log output, debug is most detailed, error only shows errors","logLevelDebug":"Debug - Debug info (most detailed)","logLevelInfo":"Info - General information","logLevelWarn":"Warn - Warning information","logLevelError":"Error - Error information (most concise)","initialDelay":"Initial Delay (ms)","initialDelayTooltip":"Delay before download starts to avoid requests being too fast","initialDelayPlaceholder":"Recommended: 1000-3000","tabBasic":"Basic Config","tabPixiv":"Pixiv Credentials","tabNetwork":"Network Config","tabStorage":"Storage Config","tabScheduler":"Scheduler Config","tabDownload":"Download Config","tabTargets":"Download Targets","tabHistory":"Config History","tabConfigFiles":"Config Files","configHistory":"Configuration History","configFiles":"Configuration Files","activeConfig":"Active","fileName":"File Name","filePath":"File Path","fileModified":"Modified","fileSize":"Size","configSwitched":"Configuration switched successfully","configSwitchFailed":"Failed to switch configuration","switch":"Switch","deleteConfigFileConfirm":"Are you sure you want to delete this configuration file?","configFileDeleted":"Configuration file deleted","configFileDeleteFailed":"Failed to delete configuration file","configFileReadFailed":"Failed to read configuration file","editJson":"Edit JSON","formatJson":"Format","jsonFormatted":"JSON formatted","jsonFormatError":"JSON format error, please check syntax","jsonEditorPlaceholder":"Edit configuration file content here...","jsonEditorWarning":"Warning: Directly editing JSON may cause configuration errors, please proceed with caution","jsonEditorExternalChanges":"External file changes detected","jsonEditorExternalChangesDesc":"The configuration file has been modified by an external program. Click refresh to load the latest content, or continue editing the current content.","jsonEditorRefreshed":"Refreshed to latest content","configFilesEmpty":"No configuration files","configFilesEmptyDesc":"Configuration files will appear here. You can import configurations to create new files.","selectConfigFile":"Quick Switch Configuration File","historyName":"Name","historyDescription":"Description","historyCreatedAt":"Created At","historyUpdatedAt":"Updated At","historyEmpty":"No configuration history","historyEmptyDesc":"Configuration history will appear here after importing or saving configurations","deleteHistoryConfirm":"Are you sure you want to delete this configuration history?","historyDeleted":"Configuration history deleted","historyDeleteFailed":"Failed to delete configuration history","configApplied":"Configuration applied","configApplyFailed":"Failed to apply configuration","apply":"Apply","pixivCredentialsHidden":"Sensitive information is hidden. To modify, please use command line tools or edit the config file directly.","networkTimeout":"Request Timeout (ms)","networkRetries":"Retry Count","networkRetryDelay":"Retry Delay (ms)","proxyEnabled":"Enable Proxy","storageDatabasePath":"Database Path","storageDownloadDirectory":"Download Directory","storageIllustrationDirectory":"Illustration Directory","storageNovelDirectory":"Novel Directory","storageIllustrationOrganization":"Illustration Organization","storageIllustrationOrganizationTooltip":"Choose how files are organized in the download directory. Options marked with ⭐ organize by download date, making it easier to find files by download time.","storageNovelOrganization":"Novel Organization","storageNovelOrganizationTooltip":"Choose how files are organized in the download directory. Options marked with ⭐ organize by download date, making it easier to find files by download time.","schedulerEnabled":"Enable Scheduler","schedulerCron":"Cron Expression","schedulerCronPlaceholder":"Example: 0 3 * * * (3 AM daily)","schedulerTimezone":"Timezone","schedulerTimezonePlaceholder":"Example: Asia/Shanghai","schedulerMaxExecutions":"Max Executions","schedulerMaxExecutionsPlaceholder":"Leave empty for unlimited","schedulerMinInterval":"Min Interval (ms)","schedulerTimeout":"Timeout (ms)","schedulerTimeoutPlaceholder":"Leave empty for no timeout","downloadConcurrency":"Concurrency","downloadMaxRetries":"Max Retries","downloadRetryDelay":"Retry Delay (ms)","downloadTimeout":"Timeout (ms)","targetsTitle":"Download Targets Configuration","targetsEmpty":"No download targets, please click \\"Add Target\\" button to add","deleteTargetConfirm":"Are you sure you want to delete this download target?","unknown":"Unknown","from":"From","to":"To","seriesId":"Series ID","novelId":"Novel ID","targetsConfig":"Download Targets Config","targetsDescription":"Configure content to download. Supports tag search, rankings, series download and more. You can add multiple targets, they will execute in order.","targetsList":"Download Targets List","addTarget":"Add Target","noTargets":"No download targets, please click \\"Add Target\\" button to add","editTarget":"Edit Download Target","addTargetTitle":"Add Download Target","templateTooltip":"Use templates to quickly create common configurations","selectTemplate":"Select Template","quickStart":"Quick Start","configureParams":"Configure Parameters","detailedSettings":"Detailed Settings","templateDescription":"Select a config template to get started quickly, or go directly to the next step to configure manually","useTemplate":"Use Template","skipTemplate":"Skip Template, Configure Manually","basicSettings":"Basic Settings","type":"Type","typeTooltip":"Select the type of content to download","typeIllustration":"Illustration (Images)","typeNovel":"Novel","mode":"Mode","modeTooltip":"Search mode: search works by tags; Ranking mode: download ranking works","modeSearch":"Search Mode","modeRanking":"Ranking Mode","limit":"Download Limit","limitTooltip":"Maximum number of works to download per run, recommended: 10-50","limitPlaceholder":"e.g.: 20","searchRankingSettings":"Search/Ranking Settings","tag":"Tag","tagTooltip":"Search tags, supports multiple tags separated by spaces (AND relationship). e.g.: 'Genshin' or 'Arknights アークナイツ'","tagPlaceholder":"e.g.: Genshin or Arknights アークナイツ (multiple tags separated by spaces)","searchTarget":"Search Target","searchTargetTooltip":"Partial match: tags partially match; Exact match: tags must match exactly; Title and description: search in title and description","searchTargetPartial":"Partial Match Tags (Recommended)","searchTargetExact":"Exact Match Tags","searchTargetTitle":"Title and Description","sort":"Sort Order","sortTooltip":"Date desc: newest works first; Date asc: oldest works first; Popular desc: most bookmarks first","sortDateDesc":"Date Descending (Newest First)","sortDateAsc":"Date Ascending (Oldest First)","sortPopularDesc":"Popular Descending (Most Bookmarks First)","rankingMode":"Ranking Mode","rankingModeTooltip":"Select the type of ranking to download","rankingDay":"Daily","rankingWeek":"Weekly","rankingMonth":"Monthly","rankingDayMale":"Male Daily","rankingDayFemale":"Female Daily","rankingDayAI":"AI Daily","rankingWeekOriginal":"Original Weekly","rankingWeekRookie":"Rookie Weekly","rankingDate":"Ranking Date","rankingDateTooltip":"Specify ranking date, format: YYYY-MM-DD or use YESTERDAY for yesterday","rankingDatePlaceholder":"e.g.: 2024-01-15 or YESTERDAY (leave empty for today)","filterTag":"Filter Tag","filterTagTooltip":"Optional: filter works containing this tag from ranking results","filterTagPlaceholder":"Optional: e.g. Genshin (leave empty for no filter)","advancedFilters":"Advanced Filters (Optional)","minBookmarks":"Min Bookmarks","minBookmarksTooltip":"Only download works with bookmarks greater than or equal to this value, for filtering high-quality works","minBookmarksPlaceholder":"e.g.: 1000 (leave empty for no limit)","startDate":"Start Date","startDateTooltip":"Only download works published after this date, format: YYYY-MM-DD","startDatePlaceholder":"e.g.: 2024-01-01 (leave empty for no limit)","endDate":"End Date","endDateTooltip":"Only download works published before this date, format: YYYY-MM-DD","endDatePlaceholder":"e.g.: 2024-12-31 (leave empty for no limit)","targetType":"Type","targetTypeTooltip":"Select the type of content to download","targetTypeRequired":"Please select a type","targetMode":"Mode","targetModeTooltip":"Search mode: search works by tags; Ranking mode: download ranking works","targetConfig":"Tag/Config","targetFilters":"Limit/Filters","targetActions":"Actions","targetBasicSettings":"Basic Settings","targetModeSettings":"Search/Ranking Settings","targetLimit":"Download Limit","targetLimitTooltip":"Maximum number of works to download per run, recommended: 10-50","targetLimitRange":"Limit should be between 1-1000","targetLimitPlaceholder":"e.g.: 20","targetTag":"Tag","targetTagTooltip":"Search tags, supports multiple tags separated by spaces (AND relationship). e.g.: 'Genshin' or 'Arknights アークナイツ'","targetTagRequired":"Tag cannot be empty in search mode","targetTagPlaceholder":"e.g.: Genshin or Arknights アークナイツ (multiple tags separated by spaces)","targetAdvancedFilters":"Advanced Filters (Optional)","stepSelectTemplate":"Select Template","stepSelectTemplateDesc":"Quick Start","stepConfigure":"Configure Parameters","stepConfigureDesc":"Detailed Settings","templateSelectDescription":"Select a configuration template to get started quickly, or proceed to the next step to configure manually","targetDeleted":"Download target deleted","targetSaved":"Download target saved","targetDeletedButSaveFailed":"Download target deleted from form, but failed to save to backend. Please save manually.","targetSavedButSaveFailed":"Download target added to form, but failed to save to backend. Please save manually.","templateApplied":"Template applied","configNotLoaded":"Config data not loaded, please try again later","configFormatError":"Config file format error, please ensure it is a valid JSON file","configImportedToForm":"Config imported to form, but save failed. Please check the config and save manually.","typeRequired":"Please select type","tagRequired":"Tag cannot be empty in search mode","limitRange":"Limit should be between 1-1000","templateTagSearch":"Tag Search","templateTagSearchDesc":"Search and download illustrations by tag","templateRanking":"Ranking Download","templateRankingDesc":"Download ranking works","templateMultiTag":"Multi-Tag Search","templateMultiTagDesc":"Works containing multiple tags","templateHighQuality":"High Quality Filter","templateHighQualityDesc":"Filter high-quality works by bookmark count","templateNovel":"Novel Download","templateNovelDesc":"Download novel works","organizationGroupSimple":"Simple Modes","organizationGroupDate":"By Date","organizationGroupCombined":"Combined Modes","organizationFlat":"Flat (all files in same directory)","organizationByAuthor":"By Author","organizationByTag":"By Tag","organizationByDate":"By Creation Date (month)","organizationByDay":"By Creation Date (day)","organizationByDownloadDate":"By Download Date (month) ⭐","organizationByDownloadDay":"By Download Date (day) ⭐","organizationByAuthorAndTag":"By Author and Tag","organizationByDateAndAuthor":"By Creation Date and Author","organizationByDayAndAuthor":"By Creation Date and Author (day)","organizationByDownloadDateAndAuthor":"By Download Date and Author (month) ⭐","organizationByDownloadDayAndAuthor":"By Download Date and Author (day) ⭐"}`),j7={title:"Download Task Management",description:"Here you can start, stop and monitor download tasks. Supports downloading a single target or all configured targets.",totalTasks:"Total Tasks",completed:"Completed",failed:"Failed",stopped:"Stopped",taskOperations:"Task Operations",startDownload:"Start Download Task",downloadAll:"Download All Targets",stopCurrent:"Stop Current Task",hasActiveTask:"There is a task currently running",hasActiveTaskDesc:"Please wait for the current task to complete or manually stop it before starting a new task",fileSavePath:"File Save Path",refreshPath:"Refresh Path Display",illustrationPath:"Illustration Directory:",novelPath:"Novel Directory:",pathTip:"Tip: Paths will automatically refresh after config updates, you can also click the refresh button to update manually",currentTask:"Currently Running Task",stopTask:"Stop Task",taskId:"Task ID",status:"Status",startTime:"Start Time",duration:"Duration",endTime:"End Time",progress:"Progress",errorInfo:"Error Info",realtimeLogs:"Real-time Logs",logsCount:"entries",statusRunning:"Running",statusCompleted:"Completed",statusFailed:"Failed",statusStopped:"Stopped",incompleteTasks:"Incomplete Tasks",refreshList:"Refresh List",deleteAll:"Delete All",incompleteTasksFound:"Found {{count}} incomplete tasks",incompleteTasksDesc:'These tasks may not have completed due to network issues or other reasons. You can click the "Resume Download" button to retry downloading',tag:"Tag",type:"Type",typeIllustration:"Illustration",typeNovel:"Novel",incompleteStatus:"Status",statusPartial:"Partially Completed",errorMessage:"Error Message",executedAt:"Executed At",actions:"Actions",resumeDownload:"Resume Download",deleteTask:"Delete",confirmDelete:"Confirm Delete",confirmDeleteAll:"Confirm Delete All Incomplete Tasks",confirmDeleteAllDesc:"Are you sure you want to delete all {{count}} incomplete tasks? This action cannot be undone.",confirmDeleteDesc:'Are you sure you want to delete incomplete task "{{tag}}" ({{type}})?',taskHistory:"Task History",loadingHistory:"Loading task history...",noHistory:"No task history",taskRecords:"Total {{total}} task records",startDownloadModal:"Start Download Task",startDownloadTip:"Tip",startDownloadTipDesc:"Select a specific target to download, or leave empty to download all configured targets",selectConfigFiles:"Select Configuration Files",selectConfigFilesTooltip:"Select one or more configuration files to use for download. If multiple files are selected, their targets will be merged.",selectConfigFilesExtra:"If no files are selected, the current active configuration will be used",selectConfigFilesPlaceholder:"Select configuration files (optional)",selectTarget:"Select Download Target",selectTargetTooltip:"Leave empty to download all configured targets",selectTargetExtra:"Select a target from the configured target list to download, or leave empty to download all targets",selectTargetPlaceholder:"Select target to download (leave empty to download all targets)",noTargetsFound:"No configured targets found",noTargetsFoundDesc:"Please add download targets in the config page first",taskStarted:"Download task started",taskStopped:"Download task stopped",allTargetsStarted:"Started downloading all targets",taskResumed:"Resumed download task",incompleteTaskDeleted:"Incomplete task deleted",allIncompleteTasksDeleted:"Successfully deleted {{count}} incomplete tasks",noIncompleteTasks:"No incomplete tasks to delete",startFailed:"Failed to start download",stopFailed:"Failed to stop download",resumeFailed:"Failed to resume download",deleteFailed:"Failed to delete task",deleteAllFailed:"Failed to delete all incomplete tasks",seconds:"seconds",minutes:"minutes",hours:"hours",error401:"Authentication failed: Please check if refresh token is valid, try logging in again",error403:"Access denied: May be Pixiv API limit, wait and retry",errorTimeout:"Request timeout: Check network connection or increase timeout",errorRetries:"Multiple retries failed: Check network connection and proxy settings, wait and retry",totalEntries:"Total {{total}} entries",taskResumedWithTag:"Resumed download task: {{tag}} ({{type}})",limit:"Limit",entries:"entries",urlDownload:{title:"URL Direct Download",description:"Download works directly by entering Pixiv URL or work ID, no configuration file needed",singleDownload:"Single Download",batchDownload:"Batch Download",inputLabel:"Enter Pixiv URL or Work ID",placeholder:"e.g., https://www.pixiv.net/artworks/123456 or just 123456",batchInputLabel:"Enter multiple URLs (one per line)",batchPlaceholder:`One URL or work ID per line, e.g.:
|
|
211
|
-
https://www.pixiv.net/artworks/123456
|
|
212
|
-
https://www.pixiv.net/artworks/789012
|
|
213
|
-
123456`,download:"Download Now",downloadAll:"Download All",parseUrl:"Parse URL",parseUrls:"Parse All URLs",clear:"Clear",remove:"Remove",enterUrl:"Please enter URL or work ID",enterUrls:"Please enter at least one URL",parseSuccess:"URL parsed successfully",parseError:"Failed to parse URL",invalidUrl:"Invalid URL",validUrl:"Valid URL",workId:"Work ID",workType:"Work Type",illustration:"Illustration",novel:"Novel",parsedCount:"Successfully parsed {{count}}/{{total}} URLs",noValidUrls:"No valid URLs",downloadStarted:"Download task started",batchDownloadStarted:"Batch download started, {{count}} works in total",downloadError:"Download failed",parseResult:"Parse Result",validUrls:"Valid",invalidUrls:"Invalid",urlList:"URL List",helpTitle:"Usage Instructions",supportedFormats:"Supported URL formats:",directId:"(Direct work ID input)",tip:"Tip",tipDescription:"You can directly copy work links from Pixiv website, or just enter the work ID. For batch download, enter one URL or ID per line."}},z7={title:"Download History",exportData:"Export Data",exportCSV:"Export as CSV",exportJSON:"Export as JSON",totalRecords:"Total Records",illustrations:"Illustrations",novels:"Novels",authors:"Authors",filterType:"Filter Type",searchTitle:"Search Title",searchTag:"Search Tag",searchAuthor:"Search Author",dateRange:"Date Range",startDate:"Start Date",endDate:"End Date",resetFilters:"Reset Filters",sortBy:"Sort By:",sortDownloadTime:"Download Time",sortTitle:"Title",sortAuthor:"Author",sortPixivId:"Pixiv ID",sortOrderDesc:"Descending",sortOrderAsc:"Ascending",loadFailed:"Load Failed",loadFailedDesc:"Unable to load download history",displaying:"Displaying {{start}}-{{end}} of {{total}} records",filtered:" (filtered)",pixivId:"Pixiv ID",type:"Type",typeIllustration:"Illustration",typeNovel:"Novel",workTitle:"Title",tag:"Tag",author:"Author",filePath:"File Path",open:"Open",downloadedAt:"Downloaded At"},B7={title:"Log Viewer",autoRefresh:"Auto Refresh",manualRefresh:"Manual Refresh",autoScroll:"Auto Scroll",manualScroll:"Manual Scroll",refresh:"Refresh",scrollToBottom:"Scroll to Bottom",export:"Export",clearLogs:"Clear Logs",confirmClear:"Are you sure you want to clear all logs?",totalLogs:"Total Logs",errors:"Errors/Fatal",warnings:"Warnings",info:"Info",searchPlaceholder:"Search log content (supports highlighting)",filterLevel:"Filter Log Level",pageSize:"entries/page",displaying:"Displaying {{start}}-{{end}} of {{total}} logs",level:"Level",time:"Time",content:"Content",copyLine:"Copy Line",copied:"Copied to clipboard",copyFailed:"Copy failed",logsExported:"Logs exported",scrolledToBottom:"Scrolled to bottom",logsCleared:"Logs cleared",clearFailed:"Failed to clear logs",justNow:"Just now",minutesAgo:"minutes ago",hoursAgo:"hours ago",daysAgo:"days ago"},H7={title:"File Browser",normalizeFiles:"Normalize Files",directories:"Directories",files:"Files",images:"Images",totalSize:"Total Size",searchPlaceholder:"Search file name...",filterAll:"All Time",filterToday:"Today",filterYesterday:"Yesterday",filterThisWeek:"This Week",filterLastWeek:"Last Week",filterThisMonth:"This Month",filterLastMonth:"Last Month",sortByName:"By Name",sortByTime:"By Time",sortByDownloadTime:"By Download Time",sortBySize:"By Size",sortByType:"By Type",ascending:"Ascending",descending:"Descending",root:"Root Directory",goBack:"Go Back",displaying:"Displaying {{start}}-{{end}} of {{total}} items",filtered:" (filtered)",name:"Name",type:"Type",typeDirectory:"Directory",typeImage:"Image",typeText:"Text",typeFile:"File",size:"Size",modified:"Modified",downloadedAt:"Downloaded At",unknown:"Unknown",actions:"Actions",preview:"Preview",delete:"Delete",confirmDelete:"Are you sure you want to delete this file?",fileDeleted:"File deleted successfully",deleteFailed:"Failed to delete file",previewNotSupported:"This file type is not supported for preview",loadingContent:"Loading...",loadContentFailed:"Unable to load file content",normalizeTitle:"Normalize Files",normalizeDescription:"This feature will reorganize file structure, normalize file names, and update database records according to current configuration. It is recommended to use preview mode first to see what operations will be performed.",normalizeOptions:"Normalize Options:",normalizeNames:"Normalize file names (clean special characters, unify format)",reorganize:"Reorganize file structure (according to current organization mode)",updateDatabase:"Update database records (update file paths)",fileType:"File Type:",allTypes:"All (Illustrations and Novels)",illustrationOnly:"Illustrations Only",novelOnly:"Novels Only",processing:"Processing files, please wait...",normalizeResult:"Normalize Result:",totalFiles:"Total Files",processedFiles:"Processed",movedFiles:"Moved",renamedFiles:"Renamed",updatedDatabase:"Database Updated",skippedFiles:"Skipped",errors:"Errors",processingErrors:"Processing Errors",previewMode:"Preview Mode",previewModeDesc:"This is a preview result, files have not been actually modified. To execute normalization, please click the Execute Normalization button.",previewButton:"Preview (Do Not Execute)",executeNormalize:"Execute Normalization",normalizeCompleted:"File normalization completed",previewCompleted:"Preview completed, please check the result",normalizeFailed:"File normalization failed"},U7={CONFIG_GET_FAILED:"Failed to get configuration",CONFIG_UPDATE_FAILED:"Failed to update configuration",CONFIG_UPDATE_SUCCESS:"Configuration updated successfully",CONFIG_INVALID:"Invalid configuration",CONFIG_VALIDATE_FAILED:"Failed to validate configuration",CONFIG_BACKUP_SUCCESS:"Configuration backed up successfully",CONFIG_BACKUP_FAILED:"Failed to backup configuration",CONFIG_RESTORE_SUCCESS:"Configuration restored successfully",CONFIG_RESTORE_FAILED:"Failed to restore configuration",CONFIG_BACKUP_PATH_INVALID:"Invalid backup path",CONFIG_VALIDATION_PIXIV_REQUIRED:"Pixiv configuration is required",CONFIG_VALIDATION_PIXIV_CLIENT_ID_REQUIRED:"Pixiv client ID is required",CONFIG_VALIDATION_PIXIV_REFRESH_TOKEN_REQUIRED:"Pixiv refresh token is required",CONFIG_VALIDATION_TARGETS_REQUIRED:"At least one download target is required",CONFIG_VALIDATION_TARGET_TYPE_REQUIRED:"Target {{index}}: type is required",CONFIG_VALIDATION_TARGET_TYPE_INVALID:"Target {{index}}: type must be 'illustration' or 'novel'",CONFIG_VALIDATION_TARGET_LIMIT_INVALID:"Target {{index}}: limit must be greater than 0",CONFIG_VALIDATION_STORAGE_REQUIRED:"Storage configuration is required",CONFIG_VALIDATION_DOWNLOAD_DIRECTORY_REQUIRED:"Download directory is required",CONFIG_VALIDATION_CRON_REQUIRED:"Cron expression is required when scheduler is enabled",CONFIG_VALIDATION_CRON_INVALID:"Invalid cron expression format",DOWNLOAD_TASK_ALREADY_RUNNING:"Another download task is already running",DOWNLOAD_START_SUCCESS:"Download task started",DOWNLOAD_START_FAILED:"Failed to start download",DOWNLOAD_STOP_SUCCESS:"Download task stopped",DOWNLOAD_STOP_FAILED:"Failed to stop download",DOWNLOAD_TASK_NOT_FOUND:"Task not found",DOWNLOAD_STATUS_FAILED:"Failed to get download status",DOWNLOAD_TASK_ID_REQUIRED:"Task ID is required",DOWNLOAD_LOGS_FAILED:"Failed to get task logs",DOWNLOAD_HISTORY_FAILED:"Failed to get download history",DOWNLOAD_RUN_ALL_START_SUCCESS:"Download all targets started",DOWNLOAD_RUN_ALL_START_FAILED:"Failed to start download all",DOWNLOAD_INCOMPLETE_GET_FAILED:"Failed to get incomplete tasks",DOWNLOAD_INCOMPLETE_DELETE_ALL_SUCCESS:"Successfully deleted {{count}} incomplete task(s)",DOWNLOAD_INCOMPLETE_DELETE_ALL_FAILED:"Failed to delete all incomplete tasks",DOWNLOAD_INCOMPLETE_DELETE_SUCCESS:"Task deleted successfully",DOWNLOAD_INCOMPLETE_DELETE_FAILED:"Failed to delete incomplete task",DOWNLOAD_INCOMPLETE_TASK_ID_INVALID:"Task ID must be a valid positive integer, got: {{rawId}}",DOWNLOAD_DATABASE_NOT_CONFIGURED:"Database not configured",DOWNLOAD_DATABASE_INIT_FAILED:"Database initialization failed",DOWNLOAD_DATABASE_TEST_SUCCESS:"Database connection successful",DOWNLOAD_DATABASE_TEST_FAILED:"Database test failed",DOWNLOAD_RESUME_TAG_TYPE_REQUIRED:"Tag and type are required",DOWNLOAD_RESUME_TARGET_NOT_FOUND:'Target not found for tag "{{tag}}" and type "{{type}}"',DOWNLOAD_RESUME_SUCCESS:'Resuming download task for tag "{{tag}}" ({{type}})',DOWNLOAD_RESUME_FAILED:"Failed to resume download",DOWNLOAD_RANDOM_START_SUCCESS:"Random {{type}} download started",DOWNLOAD_RANDOM_START_FAILED:"Failed to start random download",FILE_LIST_FAILED:"Failed to list files",FILE_PATH_INVALID:"Invalid path",FILE_PATH_REQUIRED:"File path is required",FILE_NOT_FOUND:"File not found",FILE_IS_DIRECTORY:"Path is a directory, not a file",FILE_READ_FAILED:"Failed to read file",FILE_PREVIEW_FAILED:"Failed to get file preview",FILE_DELETE_SUCCESS:"File deleted successfully",FILE_DELETE_FAILED:"Failed to delete file",FILE_NORMALIZE_FAILED:"Failed to normalize files",AUTH_STATUS_FAILED:"Failed to get auth status",AUTH_USERNAME_PASSWORD_REQUIRED:"Username and password are required",AUTH_LOGIN_SUCCESS:"Login successful",AUTH_LOGIN_FAILED:"Login failed",AUTH_REFRESH_TOKEN_REQUIRED:"Refresh token is required",AUTH_REFRESH_SUCCESS:"Token refreshed successfully",AUTH_REFRESH_FAILED:"Token refresh failed",AUTH_LOGOUT_SUCCESS:"Logged out successfully",AUTH_LOGOUT_FAILED:"Logout failed",STATS_OVERVIEW_FAILED:"Failed to get overview stats",STATS_DOWNLOADS_FAILED:"Failed to get download stats",STATS_TAGS_FAILED:"Failed to get tag stats",STATS_AUTHORS_FAILED:"Failed to get author stats",LOGS_GET_FAILED:"Failed to get logs",LOGS_CLEAR_SUCCESS:"Logs cleared successfully",LOGS_CLEAR_FAILED:"Failed to clear logs"},V7={common:F7,layout:N7,dashboard:M7,login:k7,config:A7,download:j7,history:z7,logs:B7,files:H7,errorCodes:U7};br.use(cx).use(xM).init({resources:{"zh-CN":{translation:L7},"en-US":{translation:V7}},fallbackLng:"zh-CN",defaultNS:"translation",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"i18nextLng"}});const W7=new y3({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:300*1e3,gcTime:600*1e3}}});G4.createRoot(document.getElementById("root")).render(Ce.jsx(He.StrictMode,{children:Ce.jsx(s7,{children:Ce.jsx(S3,{client:W7,children:Ce.jsx(a7,{children:Ce.jsx(HA,{})})})})}));export{FN as $,nu as A,es as B,on as C,Od as D,tw as E,Yt as F,Cm as G,bg as H,nn as I,Bl as J,aD as K,J_ as L,xg as M,DD as N,Z_ as O,Di as P,Uc as Q,JF as R,ud as S,ub as T,ZE as U,mE as V,Cs as W,Gw as X,zC as Y,PD as Z,Fe as _,Hc as a,q7 as a$,vi as a0,He as a1,at as a2,q as a3,ca as a4,Mo as a5,Yo as a6,us as a7,$e as a8,c5 as a9,QD as aA,MD as aB,sg as aC,X1 as aD,gg as aE,S8 as aF,ND as aG,lu as aH,PT as aI,Kt as aJ,iL as aK,UP as aL,Ul as aM,pw as aN,kl as aO,sw as aP,OS as aQ,pg as aR,XC as aS,vN as aT,Cg as aU,la as aV,mw as aW,DR as aX,Nr as aY,Q7 as aZ,aT as a_,vC as aa,$i as ab,My as ac,da as ad,NP as ae,ao as af,iD as ag,gd as ah,kN as ai,vo as aj,hs as ak,Og as al,Yn as am,Sg as an,ua as ao,No as ap,fD as aq,cD as ar,GD as as,nd as at,ky as au,ow as av,aw,rw as ax,iw as ay,Xc as az,cu as b,h8 as b$,UC as b0,TT as b1,dy as b2,oo as b3,iP as b4,mg as b5,xd as b6,hg as b7,MC as b8,c6 as b9,Jo as bA,$t as bB,Gi as bC,G7 as bD,Qi as bE,jI as bF,t9 as bG,AC as bH,ex as bI,zN as bJ,I5 as bK,e9 as bL,n6 as bM,AI as bN,g8 as bO,ls as bP,Z7 as bQ,X7 as bR,m8 as bS,iu as bT,eu as bU,So as bV,J7 as bW,cs as bX,rd as bY,Sw as bZ,s8 as b_,YC as ba,as as bb,y8 as bc,YD as bd,ia as be,Ww as bf,Uw as bg,Hl as bh,br as bi,eL as bj,n9 as bk,ig as bl,gC as bm,JC as bn,rF as bo,Tp as bp,Ii as bq,ys as br,Zl as bs,Lo as bt,Qm as bu,XO as bv,Y7 as bw,m$ as bx,Nw as by,jo as bz,TN as c,Mh as c0,Jl as c1,wp as c2,Pl as c3,m3 as c4,ar as c5,Dr as c6,r3 as c7,Cw as c8,Wp as c9,UD as ca,HD as cb,su as cc,Md as cd,EF as d,_n as e,$n as f,U as g,ae as h,mn as i,Ce as j,Ew as k,bn as l,Se as m,Lt as n,ot as o,V1 as p,vs as q,d as r,bi as s,io as t,db as u,Nn as v,gr as w,dw as x,_i as y,Ue as z};
|
|
214
|
-
//# sourceMappingURL=index-BFgUdwJv.js.map
|