0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.15.186.27


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/index-DDpW8Zps.js

const __vite__fileDeps=["assets/Header-CJMGBqBK.js","assets/Header-DLQGvZvA.css","assets/GuideLines-Bm3shF3E.js","assets/index-Bscn6R2P.js","assets/HomeOutlined-Df8--0F2.js","assets/BankDetails-DLNtSMv1.js","assets/row-17Sa_2rc.js","assets/responsiveObserver-BB0qdjsH.js","assets/QpPattern-BZtr4UQM.js","assets/sem-xL-Ac5nH.js","assets/UploadQpPattern-C1gMH4fd.js","assets/datatable-DeBmyo0V.js","assets/UploadOutlined-BSyDKse0.js","assets/index-B_UJqVJk.js","assets/DeleteOutlined-BNrPdHbA.js","assets/Table-DI77gHgR.js","assets/AvailableQp-tO3doIMU.js","assets/ArrowLeftOutlined-DSUkalIj.js","assets/SaveOutlined-D188ut_H.js","assets/EligibleQpSetter-CHu22kKr.js","assets/SelectQpSetter-BRbOhyIB.js","assets/index-CT66o_wy.js","assets/AcceptQpRequest-B_ROQBRG.js","assets/UploadQuestionPaper-C-al33qm.js","assets/PrepareQuestionPaper-BSXEy8KX.js","assets/PrepareQp-Clzv5lpr.js","assets/EditOutlined-DcaR8NQz.js","assets/FilePdfOutlined-B-x--wHG.js","assets/PrepareThQp-BgE6-OMC.js","assets/PrepareThQp-CZc8s0fY.css","assets/AssignModerator-BVOJihH_.js","assets/DisplayTempCode-DgVb9pUL.js","assets/TemplateCode-Cv0MENCG.js","assets/CreateTempCode-DX8DvT8h.js","assets/QpSummary-CImxW5Dm.js","assets/SelectFinalQp-CLsTd2bp.js","assets/SelectFinalQP-D6OHOaBP.js","assets/SelectFinalMCQQp-DVbEILey.js","assets/ModQpDetailsOnline-B5PAvXRt.js","assets/ModQpDetails-CZy182vC.js","assets/ModQpDetailsOffline-f0mRIfCH.js","assets/ViewMcqFinalPaper-BDdvpj8m.js","assets/GenerateBill-oB8XgtSV.js","assets/ChangePassword-BiM5qOWF.js","assets/ViewQPScr-BFyHvciD.js","assets/ViewQPScr-C0bmnYnC.js","assets/ViewFinalQP-DHSepqEW.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
function Gb(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 a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var W8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qb={exports:{}},Mc={},Qb={exports:{}},dt={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ys=Symbol.for("react.element"),gR=Symbol.for("react.portal"),hR=Symbol.for("react.fragment"),yR=Symbol.for("react.strict_mode"),bR=Symbol.for("react.profiler"),SR=Symbol.for("react.provider"),CR=Symbol.for("react.context"),wR=Symbol.for("react.forward_ref"),ER=Symbol.for("react.suspense"),xR=Symbol.for("react.memo"),RR=Symbol.for("react.lazy"),Ug=Symbol.iterator;function $R(e){return e===null||typeof e!="object"?null:(e=Ug&&e[Ug]||e["@@iterator"],typeof e=="function"?e:null)}var Xb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yb=Object.assign,Jb={};function Hi(e,t,n){this.props=e,this.context=t,this.refs=Jb,this.updater=n||Xb}Hi.prototype.isReactComponent={};Hi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Hi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zb(){}Zb.prototype=Hi.prototype;function Jm(e,t,n){this.props=e,this.context=t,this.refs=Jb,this.updater=n||Xb}var Zm=Jm.prototype=new Zb;Zm.constructor=Jm;Yb(Zm,Hi.prototype);Zm.isPureReactComponent=!0;var Kg=Array.isArray,eS=Object.prototype.hasOwnProperty,ep={current:null},tS={key:!0,ref:!0,__self:!0,__source:!0};function nS(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)eS.call(t,r)&&!tS.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ys,type:e,key:a,ref:i,props:o,_owner:ep.current}}function OR(e,t){return{$$typeof:ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tp(e){return typeof e=="object"&&e!==null&&e.$$typeof===ys}function PR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Gg=/\/+/g;function Ld(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PR(""+e.key):t.toString(36)}function hu(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ys:case gR:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ld(i,0):r,Kg(o)?(n="",e!=null&&(n=e.replace(Gg,"$&/")+"/"),hu(o,t,n,"",function(c){return c})):o!=null&&(tp(o)&&(o=OR(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Gg,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Kg(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+Ld(a,l);i+=hu(a,t,n,s,o)}else if(s=$R(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+Ld(a,l++),i+=hu(a,t,n,s,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ks(e,t,n){if(e==null)return e;var r=[],o=0;return hu(e,r,"","",function(a){return t.call(n,a,o++)}),r}function IR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jn={current:null},yu={transition:null},_R={ReactCurrentDispatcher:jn,ReactCurrentBatchConfig:yu,ReactCurrentOwner:ep};function rS(){throw Error("act(...) is not supported in production builds of React.")}dt.Children={map:ks,forEach:function(e,t,n){ks(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ks(e,function(){t++}),t},toArray:function(e){return ks(e,function(t){return t})||[]},only:function(e){if(!tp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};dt.Component=Hi;dt.Fragment=hR;dt.Profiler=bR;dt.PureComponent=Jm;dt.StrictMode=yR;dt.Suspense=ER;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_R;dt.act=rS;dt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Yb({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=ep.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)eS.call(t,s)&&!tS.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:ys,type:e.type,key:o,ref:a,props:r,_owner:i}};dt.createContext=function(e){return e={$$typeof:CR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:SR,_context:e},e.Consumer=e};dt.createElement=nS;dt.createFactory=function(e){var t=nS.bind(null,e);return t.type=e,t};dt.createRef=function(){return{current:null}};dt.forwardRef=function(e){return{$$typeof:wR,render:e}};dt.isValidElement=tp;dt.lazy=function(e){return{$$typeof:RR,_payload:{_status:-1,_result:e},_init:IR}};dt.memo=function(e,t){return{$$typeof:xR,type:e,compare:t===void 0?null:t}};dt.startTransition=function(e){var t=yu.transition;yu.transition={};try{e()}finally{yu.transition=t}};dt.unstable_act=rS;dt.useCallback=function(e,t){return jn.current.useCallback(e,t)};dt.useContext=function(e){return jn.current.useContext(e)};dt.useDebugValue=function(){};dt.useDeferredValue=function(e){return jn.current.useDeferredValue(e)};dt.useEffect=function(e,t){return jn.current.useEffect(e,t)};dt.useId=function(){return jn.current.useId()};dt.useImperativeHandle=function(e,t,n){return jn.current.useImperativeHandle(e,t,n)};dt.useInsertionEffect=function(e,t){return jn.current.useInsertionEffect(e,t)};dt.useLayoutEffect=function(e,t){return jn.current.useLayoutEffect(e,t)};dt.useMemo=function(e,t){return jn.current.useMemo(e,t)};dt.useReducer=function(e,t,n){return jn.current.useReducer(e,t,n)};dt.useRef=function(e){return jn.current.useRef(e)};dt.useState=function(e){return jn.current.useState(e)};dt.useSyncExternalStore=function(e,t,n){return jn.current.useSyncExternalStore(e,t,n)};dt.useTransition=function(){return jn.current.useTransition()};dt.version="18.3.1";Qb.exports=dt;var u=Qb.exports;const K=Ym(u),$a=Gb({__proto__:null,default:K},[u]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var TR=u,MR=Symbol.for("react.element"),NR=Symbol.for("react.fragment"),LR=Object.prototype.hasOwnProperty,AR=TR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FR={key:!0,ref:!0,__self:!0,__source:!0};function oS(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)LR.call(t,r)&&!FR.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:MR,type:e,key:a,ref:i,props:o,_owner:AR.current}}Mc.Fragment=NR;Mc.jsx=oS;Mc.jsxs=oS;qb.exports=Mc;var X=qb.exports,Gf={},aS={exports:{}},sr={},iS={exports:{}},lS={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t($,L){var N=$.length;$.push(L);e:for(;0<N;){var T=N-1>>>1,B=$[T];if(0<o(B,L))$[T]=L,$[N]=B,N=T;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var L=$[0],N=$.pop();if(N!==L){$[0]=N;e:for(var T=0,B=$.length,k=B>>>1;T<k;){var W=2*(T+1)-1,U=$[W],ee=W+1,q=$[ee];if(0>o(U,N))ee<B&&0>o(q,U)?($[T]=q,$[ee]=N,T=ee):($[T]=U,$[W]=N,T=W);else if(ee<B&&0>o(q,N))$[T]=q,$[ee]=N,T=ee;else break e}}return L}function o($,L){var N=$.sortIndex-L.sortIndex;return N!==0?N:$.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],d=1,f=null,v=3,g=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p($){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=$)r(c),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(c)}}function C($){if(b=!1,p($),!y)if(n(s)!==null)y=!0,F(w);else{var L=n(c);L!==null&&P(C,L.startTime-$)}}function w($,L){y=!1,b&&(b=!1,h(R),R=-1),g=!0;var N=v;try{for(p(L),f=n(s);f!==null&&(!(f.expirationTime>L)||$&&!A());){var T=f.callback;if(typeof T=="function"){f.callback=null,v=f.priorityLevel;var B=T(f.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(s)&&r(s),p(L)}else r(s);f=n(s)}if(f!==null)var k=!0;else{var W=n(c);W!==null&&P(C,W.startTime-L),k=!1}return k}finally{f=null,v=N,g=!1}}var x=!1,E=null,R=-1,O=5,I=-1;function A(){return!(e.unstable_now()-I<O)}function M(){if(E!==null){var $=e.unstable_now();I=$;var L=!0;try{L=E(!0,$)}finally{L?z():(x=!1,E=null)}}else x=!1}var z;if(typeof m=="function")z=function(){m(M)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,H=_.port2;_.port1.onmessage=M,z=function(){H.postMessage(null)}}else z=function(){S(M,0)};function F($){E=$,x||(x=!0,z())}function P($,L){R=S(function(){$(e.unstable_now())},L)}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($){$.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,F(w))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(v){case 1:case 2:case 3:var L=3;break;default:L=v}var N=v;v=L;try{return $()}finally{v=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,L){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=v;v=$;try{return L()}finally{v=N}},e.unstable_scheduleCallback=function($,L,N){var T=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?T+N:T):N=T,$){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=N+B,$={id:d++,callback:L,priorityLevel:$,startTime:N,expirationTime:B,sortIndex:-1},N>T?($.sortIndex=N,t(c,$),n(s)===null&&$===n(c)&&(b?(h(R),R=-1):b=!0,P(C,N-T))):($.sortIndex=B,t(s,$),y||g||(y=!0,F(w))),$},e.unstable_shouldYield=A,e.unstable_wrapCallback=function($){var L=v;return function(){var N=v;v=L;try{return $.apply(this,arguments)}finally{v=N}}}})(lS);iS.exports=lS;var zR=iS.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var jR=u,ir=zR;function ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sS=new Set,zl={};function Fa(e,t){Oi(e,t),Oi(e+"Capture",t)}function Oi(e,t){for(zl[e]=t,e=0;e<t.length;e++)sS.add(t[e])}var mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qf=Object.prototype.hasOwnProperty,DR=/^[: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]*$/,qg={},Qg={};function BR(e){return qf.call(Qg,e)?!0:qf.call(qg,e)?!1:DR.test(e)?Qg[e]=!0:(qg[e]=!0,!1)}function kR(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HR(e,t,n,r){if(t===null||typeof t>"u"||kR(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dn(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new Dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new Dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new Dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new Dn(e,2,!1,e,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(e){Rn[e]=new Dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new Dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new Dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new Dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new Dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var np=/[\-:]([a-z])/g;function rp(e){return e[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(e){var t=e.replace(np,rp);Rn[t]=new Dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(np,rp);Rn[t]=new Dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(np,rp);Rn[t]=new Dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new Dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function op(e,t,n,r){var o=Rn.hasOwnProperty(t)?Rn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(HR(t,n,o,r)&&(n=null),r||o===null?BR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var So=jR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hs=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),ap=Symbol.for("react.strict_mode"),Qf=Symbol.for("react.profiler"),uS=Symbol.for("react.provider"),cS=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Yf=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),To=Symbol.for("react.lazy"),dS=Symbol.for("react.offscreen"),Xg=Symbol.iterator;function tl(e){return e===null||typeof e!="object"?null:(e=Xg&&e[Xg]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,Ad;function gl(e){if(Ad===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ad=t&&t[1]||""}return`
`+Ad+e}var Fd=!1;function zd(e,t){if(!e||Fd)return"";Fd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),a=r.stack.split(`
`),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==a[l]){var s=`
`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{Fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gl(e):""}function VR(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=zd(e.type,!1),e;case 11:return e=zd(e.type.render,!1),e;case 1:return e=zd(e.type,!0),e;default:return""}}function Jf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case oi:return"Portal";case Qf:return"Profiler";case ap:return"StrictMode";case Xf:return"Suspense";case Yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cS:return(e.displayName||"Context")+".Consumer";case uS:return(e._context.displayName||"Context")+".Provider";case ip:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:Jf(e.type)||"Memo";case To:t=e._payload,e=e._init;try{return Jf(e(t))}catch{}}return null}function WR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jf(t);case 8:return t===ap?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UR(e){var t=fS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vs(e){e._valueTracker||(e._valueTracker=UR(e))}function vS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zf(e,t){var n=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mS(e,t){t=t.checked,t!=null&&op(e,"checked",t,!1)}function ev(e,t){mS(e,t);var n=Xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tv(e,t.type,n):t.hasOwnProperty("defaultValue")&&tv(e,t.type,Xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tv(e,t,n){(t!=="number"||Vu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hl=Array.isArray;function bi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ue(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ue(92));if(hl(n)){if(1<n.length)throw Error(ue(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xo(n)}}function pS(e,t){var n=Xo(t.value),r=Xo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function eh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gS(e){switch(e){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 rv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ws,hS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ws=Ws||document.createElement("div"),Ws.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wl={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},KR=["Webkit","ms","Moz","O"];Object.keys(wl).forEach(function(e){KR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wl[t]=wl[e]})});function yS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wl.hasOwnProperty(e)&&wl[e]?(""+t).trim():t+"px"}function bS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=yS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var GR=Wt({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 ov(e,t){if(t){if(GR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ue(62))}}function av(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 iv=null;function sp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lv=null,Si=null,Ci=null;function th(e){if(e=Cs(e)){if(typeof lv!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=zc(t),lv(e.stateNode,e.type,t))}}function SS(e){Si?Ci?Ci.push(e):Ci=[e]:Si=e}function CS(){if(Si){var e=Si,t=Ci;if(Ci=Si=null,th(e),t)for(e=0;e<t.length;e++)th(t[e])}}function wS(e,t){return e(t)}function ES(){}var jd=!1;function xS(e,t,n){if(jd)return e(t,n);jd=!0;try{return wS(e,t,n)}finally{jd=!1,(Si!==null||Ci!==null)&&(ES(),CS())}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var r=zc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ue(231,t,typeof n));return n}var sv=!1;if(mo)try{var nl={};Object.defineProperty(nl,"passive",{get:function(){sv=!0}}),window.addEventListener("test",nl,nl),window.removeEventListener("test",nl,nl)}catch{sv=!1}function qR(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var El=!1,Wu=null,Uu=!1,uv=null,QR={onError:function(e){El=!0,Wu=e}};function XR(e,t,n,r,o,a,i,l,s){El=!1,Wu=null,qR.apply(QR,arguments)}function YR(e,t,n,r,o,a,i,l,s){if(XR.apply(this,arguments),El){if(El){var c=Wu;El=!1,Wu=null}else throw Error(ue(198));Uu||(Uu=!0,uv=c)}}function za(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function RS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function nh(e){if(za(e)!==e)throw Error(ue(188))}function JR(e){var t=e.alternate;if(!t){if(t=za(e),t===null)throw Error(ue(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return nh(o),e;if(a===r)return nh(o),t;a=a.sibling}throw Error(ue(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(ue(189))}}if(n.alternate!==r)throw Error(ue(190))}if(n.tag!==3)throw Error(ue(188));return n.stateNode.current===n?e:t}function $S(e){return e=JR(e),e!==null?OS(e):null}function OS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=OS(e);if(t!==null)return t;e=e.sibling}return null}var PS=ir.unstable_scheduleCallback,rh=ir.unstable_cancelCallback,ZR=ir.unstable_shouldYield,e$=ir.unstable_requestPaint,Xt=ir.unstable_now,t$=ir.unstable_getCurrentPriorityLevel,up=ir.unstable_ImmediatePriority,IS=ir.unstable_UserBlockingPriority,Ku=ir.unstable_NormalPriority,n$=ir.unstable_LowPriority,_S=ir.unstable_IdlePriority,Nc=null,Jr=null;function r$(e){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(Nc,e,void 0,(e.current.flags&128)===128)}catch{}}var zr=Math.clz32?Math.clz32:i$,o$=Math.log,a$=Math.LN2;function i$(e){return e>>>=0,e===0?32:31-(o$(e)/a$|0)|0}var Us=64,Ks=4194304;function yl(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=yl(l):(a&=i,a!==0&&(r=yl(a)))}else i=n&~o,i!==0?r=yl(i):a!==0&&(r=yl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-zr(t),o=1<<n,r|=e[n],t&=~o;return r}function l$(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 s$(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-zr(a),l=1<<i,s=o[i];s===-1?(!(l&n)||l&r)&&(o[i]=l$(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function cv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function TS(){var e=Us;return Us<<=1,!(Us&4194240)&&(Us=64),e}function Dd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=n}function u$(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-zr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function cp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-zr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Rt=0;function MS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var NS,dp,LS,AS,FS,dv=!1,Gs=[],ko=null,Ho=null,Vo=null,Bl=new Map,kl=new Map,No=[],c$="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 oh(e,t){switch(e){case"focusin":case"focusout":ko=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Vo=null;break;case"pointerover":case"pointerout":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function rl(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Cs(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d$(e,t,n,r,o){switch(t){case"focusin":return ko=rl(ko,e,t,n,r,o),!0;case"dragenter":return Ho=rl(Ho,e,t,n,r,o),!0;case"mouseover":return Vo=rl(Vo,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Bl.set(a,rl(Bl.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,kl.set(a,rl(kl.get(a)||null,e,t,n,r,o)),!0}return!1}function zS(e){var t=pa(e.target);if(t!==null){var n=za(t);if(n!==null){if(t=n.tag,t===13){if(t=RS(n),t!==null){e.blockedOn=t,FS(e.priority,function(){LS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);iv=r,n.target.dispatchEvent(r),iv=null}else return t=Cs(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function ah(e,t,n){bu(e)&&n.delete(t)}function f$(){dv=!1,ko!==null&&bu(ko)&&(ko=null),Ho!==null&&bu(Ho)&&(Ho=null),Vo!==null&&bu(Vo)&&(Vo=null),Bl.forEach(ah),kl.forEach(ah)}function ol(e,t){e.blockedOn===t&&(e.blockedOn=null,dv||(dv=!0,ir.unstable_scheduleCallback(ir.unstable_NormalPriority,f$)))}function Hl(e){function t(o){return ol(o,e)}if(0<Gs.length){ol(Gs[0],e);for(var n=1;n<Gs.length;n++){var r=Gs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ko!==null&&ol(ko,e),Ho!==null&&ol(Ho,e),Vo!==null&&ol(Vo,e),Bl.forEach(t),kl.forEach(t),n=0;n<No.length;n++)r=No[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<No.length&&(n=No[0],n.blockedOn===null);)zS(n),n.blockedOn===null&&No.shift()}var wi=So.ReactCurrentBatchConfig,qu=!0;function v$(e,t,n,r){var o=Rt,a=wi.transition;wi.transition=null;try{Rt=1,fp(e,t,n,r)}finally{Rt=o,wi.transition=a}}function m$(e,t,n,r){var o=Rt,a=wi.transition;wi.transition=null;try{Rt=4,fp(e,t,n,r)}finally{Rt=o,wi.transition=a}}function fp(e,t,n,r){if(qu){var o=fv(e,t,n,r);if(o===null)Qd(e,t,r,Qu,n),oh(e,r);else if(d$(o,e,t,n,r))r.stopPropagation();else if(oh(e,r),t&4&&-1<c$.indexOf(e)){for(;o!==null;){var a=Cs(o);if(a!==null&&NS(a),a=fv(e,t,n,r),a===null&&Qd(e,t,r,Qu,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else Qd(e,t,r,null,n)}}var Qu=null;function fv(e,t,n,r){if(Qu=null,e=sp(r),e=pa(e),e!==null)if(t=za(e),t===null)e=null;else if(n=t.tag,n===13){if(e=RS(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qu=e,null}function jS(e){switch(e){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(t$()){case up:return 1;case IS:return 4;case Ku:case n$:return 16;case _S:return 536870912;default:return 16}default:return 16}}var Ao=null,vp=null,Su=null;function DS(){if(Su)return Su;var e,t=vp,n=t.length,r,o="value"in Ao?Ao.value:Ao.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return Su=o.slice(e,1<r?1-r:void 0)}function Cu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qs(){return!0}function ih(){return!1}function ur(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?qs:ih,this.isPropagationStopped=ih,this}return Wt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),t}var Vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mp=ur(Vi),Ss=Wt({},Vi,{view:0,detail:0}),p$=ur(Ss),Bd,kd,al,Lc=Wt({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==al&&(al&&e.type==="mousemove"?(Bd=e.screenX-al.screenX,kd=e.screenY-al.screenY):kd=Bd=0,al=e),Bd)},movementY:function(e){return"movementY"in e?e.movementY:kd}}),lh=ur(Lc),g$=Wt({},Lc,{dataTransfer:0}),h$=ur(g$),y$=Wt({},Ss,{relatedTarget:0}),Hd=ur(y$),b$=Wt({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),S$=ur(b$),C$=Wt({},Vi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w$=ur(C$),E$=Wt({},Vi,{data:0}),sh=ur(E$),x$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R$={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"},$$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$$[e])?!!t[e]:!1}function pp(){return O$}var P$=Wt({},Ss,{key:function(e){if(e.key){var t=x$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?R$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pp,charCode:function(e){return e.type==="keypress"?Cu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I$=ur(P$),_$=Wt({},Lc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uh=ur(_$),T$=Wt({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pp}),M$=ur(T$),N$=Wt({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),L$=ur(N$),A$=Wt({},Lc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F$=ur(A$),z$=[9,13,27,32],gp=mo&&"CompositionEvent"in window,xl=null;mo&&"documentMode"in document&&(xl=document.documentMode);var j$=mo&&"TextEvent"in window&&!xl,BS=mo&&(!gp||xl&&8<xl&&11>=xl),ch=" ",dh=!1;function kS(e,t){switch(e){case"keyup":return z$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ii=!1;function D$(e,t){switch(e){case"compositionend":return HS(t);case"keypress":return t.which!==32?null:(dh=!0,ch);case"textInput":return e=t.data,e===ch&&dh?null:e;default:return null}}function B$(e,t){if(ii)return e==="compositionend"||!gp&&kS(e,t)?(e=DS(),Su=vp=Ao=null,ii=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return BS&&t.locale!=="ko"?null:t.data;default:return null}}var k$={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 fh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!k$[e.type]:t==="textarea"}function VS(e,t,n,r){SS(r),t=Xu(t,"onChange"),0<t.length&&(n=new mp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rl=null,Vl=null;function H$(e){e1(e,0)}function Ac(e){var t=ui(e);if(vS(t))return e}function V$(e,t){if(e==="change")return t}var WS=!1;if(mo){var Vd;if(mo){var Wd="oninput"in document;if(!Wd){var vh=document.createElement("div");vh.setAttribute("oninput","return;"),Wd=typeof vh.oninput=="function"}Vd=Wd}else Vd=!1;WS=Vd&&(!document.documentMode||9<document.documentMode)}function mh(){Rl&&(Rl.detachEvent("onpropertychange",US),Vl=Rl=null)}function US(e){if(e.propertyName==="value"&&Ac(Vl)){var t=[];VS(t,Vl,e,sp(e)),xS(H$,t)}}function W$(e,t,n){e==="focusin"?(mh(),Rl=t,Vl=n,Rl.attachEvent("onpropertychange",US)):e==="focusout"&&mh()}function U$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ac(Vl)}function K$(e,t){if(e==="click")return Ac(t)}function G$(e,t){if(e==="input"||e==="change")return Ac(t)}function q$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vr=typeof Object.is=="function"?Object.is:q$;function Wl(e,t){if(Vr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!qf.call(t,o)||!Vr(e[o],t[o]))return!1}return!0}function ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gh(e,t){var n=ph(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ph(n)}}function KS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?KS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GS(){for(var e=window,t=Vu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vu(e.document)}return t}function hp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q$(e){var t=GS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&KS(n.ownerDocument.documentElement,n)){if(r!==null&&hp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=gh(n,a);var i=gh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var X$=mo&&"documentMode"in document&&11>=document.documentMode,li=null,vv=null,$l=null,mv=!1;function hh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mv||li==null||li!==Vu(r)||(r=li,"selectionStart"in r&&hp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$l&&Wl($l,r)||($l=r,r=Xu(vv,"onSelect"),0<r.length&&(t=new mp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Qs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var si={animationend:Qs("Animation","AnimationEnd"),animationiteration:Qs("Animation","AnimationIteration"),animationstart:Qs("Animation","AnimationStart"),transitionend:Qs("Transition","TransitionEnd")},Ud={},qS={};mo&&(qS=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Fc(e){if(Ud[e])return Ud[e];if(!si[e])return e;var t=si[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qS)return Ud[e]=t[n];return e}var QS=Fc("animationend"),XS=Fc("animationiteration"),YS=Fc("animationstart"),JS=Fc("transitionend"),ZS=new Map,yh="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 ta(e,t){ZS.set(e,t),Fa(t,[e])}for(var Kd=0;Kd<yh.length;Kd++){var Gd=yh[Kd],Y$=Gd.toLowerCase(),J$=Gd[0].toUpperCase()+Gd.slice(1);ta(Y$,"on"+J$)}ta(QS,"onAnimationEnd");ta(XS,"onAnimationIteration");ta(YS,"onAnimationStart");ta("dblclick","onDoubleClick");ta("focusin","onFocus");ta("focusout","onBlur");ta(JS,"onTransitionEnd");Oi("onMouseEnter",["mouseout","mouseover"]);Oi("onMouseLeave",["mouseout","mouseover"]);Oi("onPointerEnter",["pointerout","pointerover"]);Oi("onPointerLeave",["pointerout","pointerover"]);Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="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(" "),Z$=new Set("cancel close invalid load scroll toggle".split(" ").concat(bl));function bh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,YR(r,t,void 0,e),e.currentTarget=null}function e1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;bh(o,l,c),a=s}else for(i=0;i<r.length;i++){if(l=r[i],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;bh(o,l,c),a=s}}}if(Uu)throw e=uv,Uu=!1,uv=null,e}function Ft(e,t){var n=t[bv];n===void 0&&(n=t[bv]=new Set);var r=e+"__bubble";n.has(r)||(t1(t,e,2,!1),n.add(r))}function qd(e,t,n){var r=0;t&&(r|=4),t1(n,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Ul(e){if(!e[Xs]){e[Xs]=!0,sS.forEach(function(n){n!=="selectionchange"&&(Z$.has(n)||qd(n,!1,e),qd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,qd("selectionchange",!1,t))}}function t1(e,t,n,r){switch(jS(t)){case 1:var o=v$;break;case 4:o=m$;break;default:o=fp}n=o.bind(null,t,n,e),o=void 0,!sv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Qd(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;i=i.return}for(;l!==null;){if(i=pa(l),i===null)return;if(s=i.tag,s===5||s===6){r=a=i;continue e}l=l.parentNode}}r=r.return}xS(function(){var c=a,d=sp(n),f=[];e:{var v=ZS.get(e);if(v!==void 0){var g=mp,y=e;switch(e){case"keypress":if(Cu(n)===0)break e;case"keydown":case"keyup":g=I$;break;case"focusin":y="focus",g=Hd;break;case"focusout":y="blur",g=Hd;break;case"beforeblur":case"afterblur":g=Hd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=h$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=M$;break;case QS:case XS:case YS:g=S$;break;case JS:g=L$;break;case"scroll":g=p$;break;case"wheel":g=F$;break;case"copy":case"cut":case"paste":g=w$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=uh}var b=(t&4)!==0,S=!b&&e==="scroll",h=b?v!==null?v+"Capture":null:v;b=[];for(var m=c,p;m!==null;){p=m;var C=p.stateNode;if(p.tag===5&&C!==null&&(p=C,h!==null&&(C=Dl(m,h),C!=null&&b.push(Kl(m,C,p)))),S)break;m=m.return}0<b.length&&(v=new g(v,y,null,n,d),f.push({event:v,listeners:b}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==iv&&(y=n.relatedTarget||n.fromElement)&&(pa(y)||y[po]))break e;if((g||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?pa(y):null,y!==null&&(S=za(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=c),g!==y)){if(b=lh,C="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=uh,C="onPointerLeave",h="onPointerEnter",m="pointer"),S=g==null?v:ui(g),p=y==null?v:ui(y),v=new b(C,m+"leave",g,n,d),v.target=S,v.relatedTarget=p,C=null,pa(d)===c&&(b=new b(h,m+"enter",y,n,d),b.target=p,b.relatedTarget=S,C=b),S=C,g&&y)t:{for(b=g,h=y,m=0,p=b;p;p=qa(p))m++;for(p=0,C=h;C;C=qa(C))p++;for(;0<m-p;)b=qa(b),m--;for(;0<p-m;)h=qa(h),p--;for(;m--;){if(b===h||h!==null&&b===h.alternate)break t;b=qa(b),h=qa(h)}b=null}else b=null;g!==null&&Sh(f,v,g,b,!1),y!==null&&S!==null&&Sh(f,S,y,b,!0)}}e:{if(v=c?ui(c):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var w=V$;else if(fh(v))if(WS)w=G$;else{w=U$;var x=W$}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(w=K$);if(w&&(w=w(e,c))){VS(f,w,n,d);break e}x&&x(e,v,c),e==="focusout"&&(x=v._wrapperState)&&x.controlled&&v.type==="number"&&tv(v,"number",v.value)}switch(x=c?ui(c):window,e){case"focusin":(fh(x)||x.contentEditable==="true")&&(li=x,vv=c,$l=null);break;case"focusout":$l=vv=li=null;break;case"mousedown":mv=!0;break;case"contextmenu":case"mouseup":case"dragend":mv=!1,hh(f,n,d);break;case"selectionchange":if(X$)break;case"keydown":case"keyup":hh(f,n,d)}var E;if(gp)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ii?kS(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(BS&&n.locale!=="ko"&&(ii||R!=="onCompositionStart"?R==="onCompositionEnd"&&ii&&(E=DS()):(Ao=d,vp="value"in Ao?Ao.value:Ao.textContent,ii=!0)),x=Xu(c,R),0<x.length&&(R=new sh(R,e,null,n,d),f.push({event:R,listeners:x}),E?R.data=E:(E=HS(n),E!==null&&(R.data=E)))),(E=j$?D$(e,n):B$(e,n))&&(c=Xu(c,"onBeforeInput"),0<c.length&&(d=new sh("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=E))}e1(f,t)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Dl(e,n),a!=null&&r.unshift(Kl(e,a,o)),a=Dl(e,t),a!=null&&r.push(Kl(e,a,o))),e=e.return}return r}function qa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sh(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&c!==null&&(l=c,o?(s=Dl(n,a),s!=null&&i.unshift(Kl(n,s,l))):o||(s=Dl(n,a),s!=null&&i.push(Kl(n,s,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var e2=/\r\n?/g,t2=/\u0000|\uFFFD/g;function Ch(e){return(typeof e=="string"?e:""+e).replace(e2,`
`).replace(t2,"")}function Ys(e,t,n){if(t=Ch(t),Ch(e)!==t&&n)throw Error(ue(425))}function Yu(){}var pv=null,gv=null;function hv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yv=typeof setTimeout=="function"?setTimeout:void 0,n2=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,r2=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(o2)}:yv;function o2(e){setTimeout(function(){throw e})}function Xd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Hl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Hl(t)}function Wo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Eh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wi=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Wi,Gl="__reactProps$"+Wi,po="__reactContainer$"+Wi,bv="__reactEvents$"+Wi,a2="__reactListeners$"+Wi,i2="__reactHandles$"+Wi;function pa(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Eh(e);e!==null;){if(n=e[Xr])return n;e=Eh(e)}return t}e=n,n=e.parentNode}return null}function Cs(e){return e=e[Xr]||e[po],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ue(33))}function zc(e){return e[Gl]||null}var Sv=[],ci=-1;function na(e){return{current:e}}function jt(e){0>ci||(e.current=Sv[ci],Sv[ci]=null,ci--)}function Lt(e,t){ci++,Sv[ci]=e.current,e.current=t}var Yo={},Mn=na(Yo),Gn=na(!1),Oa=Yo;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Yo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qn(e){return e=e.childContextTypes,e!=null}function Ju(){jt(Gn),jt(Mn)}function xh(e,t,n){if(Mn.current!==Yo)throw Error(ue(168));Lt(Mn,t),Lt(Gn,n)}function n1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ue(108,WR(e)||"Unknown",o));return Wt({},n,r)}function Zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,Oa=Mn.current,Lt(Mn,e),Lt(Gn,Gn.current),!0}function Rh(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=n1(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,jt(Gn),jt(Mn),Lt(Mn,e)):jt(Gn),Lt(Gn,n)}var io=null,jc=!1,Yd=!1;function r1(e){io===null?io=[e]:io.push(e)}function l2(e){jc=!0,r1(e)}function ra(){if(!Yd&&io!==null){Yd=!0;var e=0,t=Rt;try{var n=io;for(Rt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}io=null,jc=!1}catch(o){throw io!==null&&(io=io.slice(e+1)),PS(up,ra),o}finally{Rt=t,Yd=!1}}return null}var di=[],fi=0,ec=null,tc=0,yr=[],br=0,Pa=null,so=1,uo="";function ca(e,t){di[fi++]=tc,di[fi++]=ec,ec=e,tc=t}function o1(e,t,n){yr[br++]=so,yr[br++]=uo,yr[br++]=Pa,Pa=e;var r=so;e=uo;var o=32-zr(r)-1;r&=~(1<<o),n+=1;var a=32-zr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,so=1<<32-zr(t)+o|n<<o|r,uo=a+e}else so=1<<a|n<<o|r,uo=e}function yp(e){e.return!==null&&(ca(e,1),o1(e,1,0))}function bp(e){for(;e===ec;)ec=di[--fi],di[fi]=null,tc=di[--fi],di[fi]=null;for(;e===Pa;)Pa=yr[--br],yr[br]=null,uo=yr[--br],yr[br]=null,so=yr[--br],yr[br]=null}var or=null,nr=null,Bt=!1,Fr=null;function a1(e,t){var n=Sr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $h(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,or=e,nr=Wo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,or=e,nr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pa!==null?{id:so,overflow:uo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Sr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,or=e,nr=null,!0):!1;default:return!1}}function Cv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wv(e){if(Bt){var t=nr;if(t){var n=t;if(!$h(e,t)){if(Cv(e))throw Error(ue(418));t=Wo(n.nextSibling);var r=or;t&&$h(e,t)?a1(r,n):(e.flags=e.flags&-4097|2,Bt=!1,or=e)}}else{if(Cv(e))throw Error(ue(418));e.flags=e.flags&-4097|2,Bt=!1,or=e}}}function Oh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;or=e}function Js(e){if(e!==or)return!1;if(!Bt)return Oh(e),Bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hv(e.type,e.memoizedProps)),t&&(t=nr)){if(Cv(e))throw i1(),Error(ue(418));for(;t;)a1(e,t),t=Wo(t.nextSibling)}if(Oh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ue(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nr=Wo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nr=null}}else nr=or?Wo(e.stateNode.nextSibling):null;return!0}function i1(){for(var e=nr;e;)e=Wo(e.nextSibling)}function Ii(){nr=or=null,Bt=!1}function Sp(e){Fr===null?Fr=[e]:Fr.push(e)}var s2=So.ReactCurrentBatchConfig;function il(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ue(309));var r=n.stateNode}if(!r)throw Error(ue(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var l=o.refs;i===null?delete l[a]:l[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(ue(284));if(!n._owner)throw Error(ue(290,e))}return e}function Zs(e,t){throw e=Object.prototype.toString.call(t),Error(ue(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ph(e){var t=e._init;return t(e._payload)}function l1(e){function t(h,m){if(e){var p=h.deletions;p===null?(h.deletions=[m],h.flags|=16):p.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=qo(h,m),h.index=0,h.sibling=null,h}function a(h,m,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<m?(h.flags|=2,m):p):(h.flags|=2,m)):(h.flags|=1048576,m)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,m,p,C){return m===null||m.tag!==6?(m=of(p,h.mode,C),m.return=h,m):(m=o(m,p),m.return=h,m)}function s(h,m,p,C){var w=p.type;return w===ai?d(h,m,p.props.children,C,p.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Ph(w)===m.type)?(C=o(m,p.props),C.ref=il(h,m,p),C.return=h,C):(C=Pu(p.type,p.key,p.props,null,h.mode,C),C.ref=il(h,m,p),C.return=h,C)}function c(h,m,p,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=af(p,h.mode,C),m.return=h,m):(m=o(m,p.children||[]),m.return=h,m)}function d(h,m,p,C,w){return m===null||m.tag!==7?(m=wa(p,h.mode,C,w),m.return=h,m):(m=o(m,p),m.return=h,m)}function f(h,m,p){if(typeof m=="string"&&m!==""||typeof m=="number")return m=of(""+m,h.mode,p),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Hs:return p=Pu(m.type,m.key,m.props,null,h.mode,p),p.ref=il(h,null,m),p.return=h,p;case oi:return m=af(m,h.mode,p),m.return=h,m;case To:var C=m._init;return f(h,C(m._payload),p)}if(hl(m)||tl(m))return m=wa(m,h.mode,p,null),m.return=h,m;Zs(h,m)}return null}function v(h,m,p,C){var w=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return w!==null?null:l(h,m,""+p,C);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Hs:return p.key===w?s(h,m,p,C):null;case oi:return p.key===w?c(h,m,p,C):null;case To:return w=p._init,v(h,m,w(p._payload),C)}if(hl(p)||tl(p))return w!==null?null:d(h,m,p,C,null);Zs(h,p)}return null}function g(h,m,p,C,w){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(p)||null,l(m,h,""+C,w);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Hs:return h=h.get(C.key===null?p:C.key)||null,s(m,h,C,w);case oi:return h=h.get(C.key===null?p:C.key)||null,c(m,h,C,w);case To:var x=C._init;return g(h,m,p,x(C._payload),w)}if(hl(C)||tl(C))return h=h.get(p)||null,d(m,h,C,w,null);Zs(m,C)}return null}function y(h,m,p,C){for(var w=null,x=null,E=m,R=m=0,O=null;E!==null&&R<p.length;R++){E.index>R?(O=E,E=null):O=E.sibling;var I=v(h,E,p[R],C);if(I===null){E===null&&(E=O);break}e&&E&&I.alternate===null&&t(h,E),m=a(I,m,R),x===null?w=I:x.sibling=I,x=I,E=O}if(R===p.length)return n(h,E),Bt&&ca(h,R),w;if(E===null){for(;R<p.length;R++)E=f(h,p[R],C),E!==null&&(m=a(E,m,R),x===null?w=E:x.sibling=E,x=E);return Bt&&ca(h,R),w}for(E=r(h,E);R<p.length;R++)O=g(E,h,R,p[R],C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?R:O.key),m=a(O,m,R),x===null?w=O:x.sibling=O,x=O);return e&&E.forEach(function(A){return t(h,A)}),Bt&&ca(h,R),w}function b(h,m,p,C){var w=tl(p);if(typeof w!="function")throw Error(ue(150));if(p=w.call(p),p==null)throw Error(ue(151));for(var x=w=null,E=m,R=m=0,O=null,I=p.next();E!==null&&!I.done;R++,I=p.next()){E.index>R?(O=E,E=null):O=E.sibling;var A=v(h,E,I.value,C);if(A===null){E===null&&(E=O);break}e&&E&&A.alternate===null&&t(h,E),m=a(A,m,R),x===null?w=A:x.sibling=A,x=A,E=O}if(I.done)return n(h,E),Bt&&ca(h,R),w;if(E===null){for(;!I.done;R++,I=p.next())I=f(h,I.value,C),I!==null&&(m=a(I,m,R),x===null?w=I:x.sibling=I,x=I);return Bt&&ca(h,R),w}for(E=r(h,E);!I.done;R++,I=p.next())I=g(E,h,R,I.value,C),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?R:I.key),m=a(I,m,R),x===null?w=I:x.sibling=I,x=I);return e&&E.forEach(function(M){return t(h,M)}),Bt&&ca(h,R),w}function S(h,m,p,C){if(typeof p=="object"&&p!==null&&p.type===ai&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Hs:e:{for(var w=p.key,x=m;x!==null;){if(x.key===w){if(w=p.type,w===ai){if(x.tag===7){n(h,x.sibling),m=o(x,p.props.children),m.return=h,h=m;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Ph(w)===x.type){n(h,x.sibling),m=o(x,p.props),m.ref=il(h,x,p),m.return=h,h=m;break e}n(h,x);break}else t(h,x);x=x.sibling}p.type===ai?(m=wa(p.props.children,h.mode,C,p.key),m.return=h,h=m):(C=Pu(p.type,p.key,p.props,null,h.mode,C),C.ref=il(h,m,p),C.return=h,h=C)}return i(h);case oi:e:{for(x=p.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(h,m.sibling),m=o(m,p.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=af(p,h.mode,C),m.return=h,h=m}return i(h);case To:return x=p._init,S(h,m,x(p._payload),C)}if(hl(p))return y(h,m,p,C);if(tl(p))return b(h,m,p,C);Zs(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,p),m.return=h,h=m):(n(h,m),m=of(p,h.mode,C),m.return=h,h=m),i(h)):n(h,m)}return S}var _i=l1(!0),s1=l1(!1),nc=na(null),rc=null,vi=null,Cp=null;function wp(){Cp=vi=rc=null}function Ep(e){var t=nc.current;jt(nc),e._currentValue=t}function Ev(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){rc=e,Cp=vi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kn=!0),e.firstContext=null)}function xr(e){var t=e._currentValue;if(Cp!==e)if(e={context:e,memoizedValue:t,next:null},vi===null){if(rc===null)throw Error(ue(308));vi=e,rc.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var ga=null;function xp(e){ga===null?ga=[e]:ga.push(e)}function u1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,xp(t)):(n.next=o.next,o.next=n),t.interleaved=n,go(e,r)}function go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mo=!1;function Rp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,go(e,n)}return o=r.interleaved,o===null?(t.next=t,xp(r)):(t.next=o.next,o.next=t),r.interleaved=t,go(e,n)}function wu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cp(e,n)}}function Ih(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oc(e,t,n,r){var o=e.updateQueue;Mo=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,i===null?a=c:i.next=c,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(a!==null){var f=o.baseState;i=0,d=c=s=null,l=a;do{var v=l.lane,g=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(v=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(g,f,v);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,v=typeof y=="function"?y.call(g,f,v):y,v==null)break e;f=Wt({},f,v);break e;case 2:Mo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else g={eventTime:g,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=f):d=d.next=g,i|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);_a|=i,e.lanes=i,e.memoizedState=f}}function _h(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(ue(191,o));o.call(r)}}}var ws={},Zr=na(ws),ql=na(ws),Ql=na(ws);function ha(e){if(e===ws)throw Error(ue(174));return e}function $p(e,t){switch(Lt(Ql,t),Lt(ql,e),Lt(Zr,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rv(t,e)}jt(Zr),Lt(Zr,t)}function Ti(){jt(Zr),jt(ql),jt(Ql)}function d1(e){ha(Ql.current);var t=ha(Zr.current),n=rv(t,e.type);t!==n&&(Lt(ql,e),Lt(Zr,n))}function Op(e){ql.current===e&&(jt(Zr),jt(ql))}var Ht=na(0);function ac(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jd=[];function Pp(){for(var e=0;e<Jd.length;e++)Jd[e]._workInProgressVersionPrimary=null;Jd.length=0}var Eu=So.ReactCurrentDispatcher,Zd=So.ReactCurrentBatchConfig,Ia=0,Vt=null,ln=null,vn=null,ic=!1,Ol=!1,Xl=0,u2=0;function On(){throw Error(ue(321))}function Ip(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function _p(e,t,n,r,o,a){if(Ia=a,Vt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eu.current=e===null||e.memoizedState===null?v2:m2,e=n(r,o),Ol){a=0;do{if(Ol=!1,Xl=0,25<=a)throw Error(ue(301));a+=1,vn=ln=null,t.updateQueue=null,Eu.current=p2,e=n(r,o)}while(Ol)}if(Eu.current=lc,t=ln!==null&&ln.next!==null,Ia=0,vn=ln=Vt=null,ic=!1,t)throw Error(ue(300));return e}function Tp(){var e=Xl!==0;return Xl=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?Vt.memoizedState=vn=e:vn=vn.next=e,vn}function Rr(){if(ln===null){var e=Vt.alternate;e=e!==null?e.memoizedState:null}else e=ln.next;var t=vn===null?Vt.memoizedState:vn.next;if(t!==null)vn=t,ln=e;else{if(e===null)throw Error(ue(310));ln=e,e={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},vn===null?Vt.memoizedState=vn=e:vn=vn.next=e}return vn}function Yl(e,t){return typeof t=="function"?t(e):t}function ef(e){var t=Rr(),n=t.queue;if(n===null)throw Error(ue(311));n.lastRenderedReducer=e;var r=ln,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var d=c.lane;if((Ia&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=f,i=r):s=s.next=f,Vt.lanes|=d,_a|=d}c=c.next}while(c!==null&&c!==a);s===null?i=r:s.next=l,Vr(r,t.memoizedState)||(Kn=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,Vt.lanes|=a,_a|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tf(e){var t=Rr(),n=t.queue;if(n===null)throw Error(ue(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Vr(a,t.memoizedState)||(Kn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function f1(){}function v1(e,t){var n=Vt,r=Rr(),o=t(),a=!Vr(r.memoizedState,o);if(a&&(r.memoizedState=o,Kn=!0),r=r.queue,Mp(g1.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||vn!==null&&vn.memoizedState.tag&1){if(n.flags|=2048,Jl(9,p1.bind(null,n,r,o,t),void 0,null),pn===null)throw Error(ue(349));Ia&30||m1(n,t,o)}return o}function m1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function p1(e,t,n,r){t.value=n,t.getSnapshot=r,h1(t)&&y1(e)}function g1(e,t,n){return n(function(){h1(t)&&y1(e)})}function h1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vr(e,n)}catch{return!0}}function y1(e){var t=go(e,1);t!==null&&jr(t,e,1,-1)}function Th(e){var t=Qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:e},t.queue=e,e=e.dispatch=f2.bind(null,Vt,e),[t.memoizedState,e]}function Jl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function b1(){return Rr().memoizedState}function xu(e,t,n,r){var o=Qr();Vt.flags|=e,o.memoizedState=Jl(1|t,n,void 0,r===void 0?null:r)}function Dc(e,t,n,r){var o=Rr();r=r===void 0?null:r;var a=void 0;if(ln!==null){var i=ln.memoizedState;if(a=i.destroy,r!==null&&Ip(r,i.deps)){o.memoizedState=Jl(t,n,a,r);return}}Vt.flags|=e,o.memoizedState=Jl(1|t,n,a,r)}function Mh(e,t){return xu(8390656,8,e,t)}function Mp(e,t){return Dc(2048,8,e,t)}function S1(e,t){return Dc(4,2,e,t)}function C1(e,t){return Dc(4,4,e,t)}function w1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function E1(e,t,n){return n=n!=null?n.concat([e]):null,Dc(4,4,w1.bind(null,t,e),n)}function Np(){}function x1(e,t){var n=Rr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ip(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function R1(e,t){var n=Rr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ip(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $1(e,t,n){return Ia&21?(Vr(n,t)||(n=TS(),Vt.lanes|=n,_a|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kn=!0),e.memoizedState=n)}function c2(e,t){var n=Rt;Rt=n!==0&&4>n?n:4,e(!0);var r=Zd.transition;Zd.transition={};try{e(!1),t()}finally{Rt=n,Zd.transition=r}}function O1(){return Rr().memoizedState}function d2(e,t,n){var r=Go(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},P1(e))I1(t,n);else if(n=u1(e,t,n,r),n!==null){var o=An();jr(n,e,r,o),_1(n,t,r)}}function f2(e,t,n){var r=Go(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(P1(e))I1(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Vr(l,i)){var s=t.interleaved;s===null?(o.next=o,xp(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=u1(e,t,o,r),n!==null&&(o=An(),jr(n,e,r,o),_1(n,t,r))}}function P1(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function I1(e,t){Ol=ic=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cp(e,n)}}var lc={readContext:xr,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},v2={readContext:xr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:xr,useEffect:Mh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xu(4194308,4,w1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xu(4194308,4,e,t)},useInsertionEffect:function(e,t){return xu(4,2,e,t)},useMemo:function(e,t){var n=Qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=d2.bind(null,Vt,e),[r.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:Np,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=c2.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vt,o=Qr();if(Bt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),pn===null)throw Error(ue(349));Ia&30||m1(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Mh(g1.bind(null,r,a,e),[e]),r.flags|=2048,Jl(9,p1.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Qr(),t=pn.identifierPrefix;if(Bt){var n=uo,r=so;n=(r&~(1<<32-zr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=u2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},m2={readContext:xr,useCallback:x1,useContext:xr,useEffect:Mp,useImperativeHandle:E1,useInsertionEffect:S1,useLayoutEffect:C1,useMemo:R1,useReducer:ef,useRef:b1,useState:function(){return ef(Yl)},useDebugValue:Np,useDeferredValue:function(e){var t=Rr();return $1(t,ln.memoizedState,e)},useTransition:function(){var e=ef(Yl)[0],t=Rr().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:v1,useId:O1,unstable_isNewReconciler:!1},p2={readContext:xr,useCallback:x1,useContext:xr,useEffect:Mp,useImperativeHandle:E1,useInsertionEffect:S1,useLayoutEffect:C1,useMemo:R1,useReducer:tf,useRef:b1,useState:function(){return tf(Yl)},useDebugValue:Np,useDeferredValue:function(e){var t=Rr();return ln===null?t.memoizedState=e:$1(t,ln.memoizedState,e)},useTransition:function(){var e=tf(Yl)[0],t=Rr().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:v1,useId:O1,unstable_isNewReconciler:!1};function Mr(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Wt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bc={isMounted:function(e){return(e=e._reactInternals)?za(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=An(),o=Go(e),a=co(r,o);a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(jr(t,e,o,r),wu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=An(),o=Go(e),a=co(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(jr(t,e,o,r),wu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=An(),r=Go(e),o=co(n,r);o.tag=2,t!=null&&(o.callback=t),t=Uo(e,o,r),t!==null&&(jr(t,e,r,n),wu(t,e,r))}};function Nh(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,r)||!Wl(o,a):!0}function T1(e,t,n){var r=!1,o=Yo,a=t.contextType;return typeof a=="object"&&a!==null?a=xr(a):(o=qn(t)?Oa:Mn.current,r=t.contextTypes,a=(r=r!=null)?Pi(e,o):Yo),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Lh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bc.enqueueReplaceState(t,t.state,null)}function Rv(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Rp(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=xr(a):(a=qn(t)?Oa:Mn.current,o.context=Pi(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(xv(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Bc.enqueueReplaceState(o,o.state,null),oc(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Mi(e,t){try{var n="",r=t;do n+=VR(r),r=r.return;while(r);var o=n}catch(a){o=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function nf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $v(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var g2=typeof WeakMap=="function"?WeakMap:Map;function M1(e,t,n){n=co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){uc||(uc=!0,Fv=r),$v(e,t)},n}function N1(e,t,n){n=co(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){$v(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){$v(e,t),typeof r!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ah(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new g2;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_2.bind(null,e,t,n),t.then(e,e))}function Fh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=co(-1,1),t.tag=2,Uo(n,t,1))),n.lanes|=1),e)}var h2=So.ReactCurrentOwner,Kn=!1;function Ln(e,t,n,r){t.child=e===null?s1(t,null,n,r):_i(t,e.child,n,r)}function jh(e,t,n,r,o){n=n.render;var a=t.ref;return Ei(t,o),r=_p(e,t,n,r,a,o),n=Tp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(Bt&&n&&yp(t),t.flags|=1,Ln(e,t,r,o),t.child)}function Dh(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!kp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,L1(e,t,a,r,o)):(e=Pu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(i,r)&&e.ref===t.ref)return ho(e,t,o)}return t.flags|=1,e=qo(a,r),e.ref=t.ref,e.return=t,t.child=e}function L1(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(Wl(a,r)&&e.ref===t.ref)if(Kn=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Kn=!0);else return t.lanes=e.lanes,ho(e,t,o)}return Ov(e,t,n,r,o)}function A1(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(pi,tr),tr|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lt(pi,tr),tr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Lt(pi,tr),tr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Lt(pi,tr),tr|=r;return Ln(e,t,o,n),t.child}function F1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ov(e,t,n,r,o){var a=qn(n)?Oa:Mn.current;return a=Pi(t,a),Ei(t,o),n=_p(e,t,n,r,a,o),r=Tp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(Bt&&r&&yp(t),t.flags|=1,Ln(e,t,n,o),t.child)}function Bh(e,t,n,r,o){if(qn(n)){var a=!0;Zu(t)}else a=!1;if(Ei(t,o),t.stateNode===null)Ru(e,t),T1(t,n,r),Rv(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=xr(c):(c=qn(n)?Oa:Mn.current,c=Pi(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||s!==c)&&Lh(t,i,r,c),Mo=!1;var v=t.memoizedState;i.state=v,oc(t,r,i,o),s=t.memoizedState,l!==r||v!==s||Gn.current||Mo?(typeof d=="function"&&(xv(t,n,d,r),s=t.memoizedState),(l=Mo||Nh(t,n,l,r,v,s,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,c1(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Mr(t.type,l),i.props=c,f=t.pendingProps,v=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=xr(s):(s=qn(n)?Oa:Mn.current,s=Pi(t,s));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||v!==s)&&Lh(t,i,r,s),Mo=!1,v=t.memoizedState,i.state=v,oc(t,r,i,o);var y=t.memoizedState;l!==f||v!==y||Gn.current||Mo?(typeof g=="function"&&(xv(t,n,g,r),y=t.memoizedState),(c=Mo||Nh(t,n,c,r,v,y,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return Pv(e,t,n,r,a,o)}function Pv(e,t,n,r,o,a){F1(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Rh(t,n,!1),ho(e,t,a);r=t.stateNode,h2.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=_i(t,e.child,null,a),t.child=_i(t,null,l,a)):Ln(e,t,l,a),t.memoizedState=r.state,o&&Rh(t,n,!0),t.child}function z1(e){var t=e.stateNode;t.pendingContext?xh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xh(e,t.context,!1),$p(e,t.containerInfo)}function kh(e,t,n,r,o){return Ii(),Sp(o),t.flags|=256,Ln(e,t,n,r),t.child}var Iv={dehydrated:null,treeContext:null,retryLane:0};function _v(e){return{baseLanes:e,cachePool:null,transitions:null}}function j1(e,t,n){var r=t.pendingProps,o=Ht.current,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Lt(Ht,o&1),e===null)return wv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Vc(i,r,0,null),e=wa(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=_v(n),t.memoizedState=Iv,e):Lp(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return y2(e,t,i,r,l,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=qo(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=qo(l,a):(a=wa(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?_v(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=Iv,r}return a=e.child,e=a.sibling,r=qo(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Lp(e,t){return t=Vc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,n,r){return r!==null&&Sp(r),_i(t,e.child,null,n),e=Lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function y2(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=nf(Error(ue(422))),eu(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Vc({mode:"visible",children:r.children},o,0,null),a=wa(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&_i(t,e.child,null,i),t.child.memoizedState=_v(i),t.memoizedState=Iv,a);if(!(t.mode&1))return eu(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(ue(419)),r=nf(a,r,void 0),eu(e,t,i,r)}if(l=(i&e.childLanes)!==0,Kn||l){if(r=pn,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,go(e,o),jr(r,e,o,-1))}return Bp(),r=nf(Error(ue(421))),eu(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=T2.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,nr=Wo(o.nextSibling),or=t,Bt=!0,Fr=null,e!==null&&(yr[br++]=so,yr[br++]=uo,yr[br++]=Pa,so=e.id,uo=e.overflow,Pa=t),t=Lp(t,r.children),t.flags|=4096,t)}function Hh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ev(e.return,t,n)}function rf(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function D1(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ln(e,t,r.children,n),r=Ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hh(e,n,t);else if(e.tag===19)Hh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Lt(Ht,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ac(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rf(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ac(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rf(t,!0,n,null,a);break;case"together":rf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ru(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ho(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_a|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ue(153));if(t.child!==null){for(e=t.child,n=qo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function b2(e,t,n){switch(t.tag){case 3:z1(t),Ii();break;case 5:d1(t);break;case 1:qn(t.type)&&Zu(t);break;case 4:$p(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lt(nc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Lt(Ht,Ht.current&1),t.flags|=128,null):n&t.child.childLanes?j1(e,t,n):(Lt(Ht,Ht.current&1),e=ho(e,t,n),e!==null?e.sibling:null);Lt(Ht,Ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return D1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lt(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,A1(e,t,n)}return ho(e,t,n)}var B1,Tv,k1,H1;B1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tv=function(){};k1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ha(Zr.current);var a=null;switch(n){case"input":o=Zf(e,o),r=Zf(e,r),a=[];break;case"select":o=Wt({},o,{value:void 0}),r=Wt({},r,{value:void 0}),a=[];break;case"textarea":o=nv(e,o),r=nv(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yu)}ov(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zl.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zl.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Ft("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};H1=function(e,t,n,r){n!==r&&(t.flags|=4)};function ll(e,t){if(!Bt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function S2(e,t,n){var r=t.pendingProps;switch(bp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(t),null;case 1:return qn(t.type)&&Ju(),Pn(t),null;case 3:return r=t.stateNode,Ti(),jt(Gn),jt(Mn),Pp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fr!==null&&(Dv(Fr),Fr=null))),Tv(e,t),Pn(t),null;case 5:Op(t);var o=ha(Ql.current);if(n=t.type,e!==null&&t.stateNode!=null)k1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ue(166));return Pn(t),null}if(e=ha(Zr.current),Js(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Xr]=t,r[Gl]=a,e=(t.mode&1)!==0,n){case"dialog":Ft("cancel",r),Ft("close",r);break;case"iframe":case"object":case"embed":Ft("load",r);break;case"video":case"audio":for(o=0;o<bl.length;o++)Ft(bl[o],r);break;case"source":Ft("error",r);break;case"img":case"image":case"link":Ft("error",r),Ft("load",r);break;case"details":Ft("toggle",r);break;case"input":Yg(r,a),Ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ft("invalid",r);break;case"textarea":Zg(r,a),Ft("invalid",r)}ov(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&Ys(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Ys(r.textContent,l,e),o=["children",""+l]):zl.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&Ft("scroll",r)}switch(n){case"input":Vs(r),Jg(r,a,!0);break;case"textarea":Vs(r),eh(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Yu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gS(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Xr]=t,e[Gl]=r,B1(e,t,!1,!1),t.stateNode=e;e:{switch(i=av(n,r),n){case"dialog":Ft("cancel",e),Ft("close",e),o=r;break;case"iframe":case"object":case"embed":Ft("load",e),o=r;break;case"video":case"audio":for(o=0;o<bl.length;o++)Ft(bl[o],e);o=r;break;case"source":Ft("error",e),o=r;break;case"img":case"image":case"link":Ft("error",e),Ft("load",e),o=r;break;case"details":Ft("toggle",e),o=r;break;case"input":Yg(e,r),o=Zf(e,r),Ft("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Wt({},r,{value:void 0}),Ft("invalid",e);break;case"textarea":Zg(e,r),o=nv(e,r),Ft("invalid",e);break;default:o=r}ov(n,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?bS(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&hS(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&jl(e,s):typeof s=="number"&&jl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zl.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Ft("scroll",e):s!=null&&op(e,a,s,i))}switch(n){case"input":Vs(e),Jg(e,r,!1);break;case"textarea":Vs(e),eh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xo(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?bi(e,!!r.multiple,a,!1):r.defaultValue!=null&&bi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Yu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pn(t),null;case 6:if(e&&t.stateNode!=null)H1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ue(166));if(n=ha(Ql.current),ha(Zr.current),Js(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,(a=r.nodeValue!==n)&&(e=or,e!==null))switch(e.tag){case 3:Ys(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ys(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=t,t.stateNode=r}return Pn(t),null;case 13:if(jt(Ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Bt&&nr!==null&&t.mode&1&&!(t.flags&128))i1(),Ii(),t.flags|=98560,a=!1;else if(a=Js(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(ue(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ue(317));a[Xr]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pn(t),a=!1}else Fr!==null&&(Dv(Fr),Fr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ht.current&1?sn===0&&(sn=3):Bp())),t.updateQueue!==null&&(t.flags|=4),Pn(t),null);case 4:return Ti(),Tv(e,t),e===null&&Ul(t.stateNode.containerInfo),Pn(t),null;case 10:return Ep(t.type._context),Pn(t),null;case 17:return qn(t.type)&&Ju(),Pn(t),null;case 19:if(jt(Ht),a=t.memoizedState,a===null)return Pn(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)ll(a,!1);else{if(sn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ac(e),i!==null){for(t.flags|=128,ll(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Lt(Ht,Ht.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xt()>Ni&&(t.flags|=128,r=!0,ll(a,!1),t.lanes=4194304)}else{if(!r)if(e=ac(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ll(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Bt)return Pn(t),null}else 2*Xt()-a.renderingStartTime>Ni&&n!==1073741824&&(t.flags|=128,r=!0,ll(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xt(),t.sibling=null,n=Ht.current,Lt(Ht,r?n&1|2:n&1),t):(Pn(t),null);case 22:case 23:return Dp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tr&1073741824&&(Pn(t),t.subtreeFlags&6&&(t.flags|=8192)):Pn(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function C2(e,t){switch(bp(t),t.tag){case 1:return qn(t.type)&&Ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ti(),jt(Gn),jt(Mn),Pp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Op(t),null;case 13:if(jt(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ue(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jt(Ht),null;case 4:return Ti(),null;case 10:return Ep(t.type._context),null;case 22:case 23:return Dp(),null;case 24:return null;default:return null}}var tu=!1,_n=!1,w2=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qt(e,t,r)}else n.current=null}function Mv(e,t,n){try{n()}catch(r){qt(e,t,r)}}var Vh=!1;function E2(e,t){if(pv=qu,e=GS(),hp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,c=0,d=0,f=e,v=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)v=f,f=g;for(;;){if(f===e)break t;if(v===n&&++c===o&&(l=i),v===a&&++d===r&&(s=i),(g=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(gv={focusedElem:e,selectionRange:n},qu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){t=Ie;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,S=y.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?b:Mr(t.type,b),S);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(C){qt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}return y=Vh,Vh=!1,y}function Pl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Mv(t,n,a)}o=o.next}while(o!==r)}}function kc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nv(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V1(e){var t=e.alternate;t!==null&&(e.alternate=null,V1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[Gl],delete t[bv],delete t[a2],delete t[i2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W1(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yu));else if(r!==4&&(e=e.child,e!==null))for(Lv(e,t,n),e=e.sibling;e!==null;)Lv(e,t,n),e=e.sibling}function Av(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Av(e,t,n),e=e.sibling;e!==null;)Av(e,t,n),e=e.sibling}var Sn=null,Nr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)U1(e,t,n),n=n.sibling}function U1(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 5:_n||mi(n,t);case 6:var r=Sn,o=Nr;Sn=null,Oo(e,t,n),Sn=r,Nr=o,Sn!==null&&(Nr?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(Nr?(e=Sn,n=n.stateNode,e.nodeType===8?Xd(e.parentNode,n):e.nodeType===1&&Xd(e,n),Hl(e)):Xd(Sn,n.stateNode));break;case 4:r=Sn,o=Nr,Sn=n.stateNode.containerInfo,Nr=!0,Oo(e,t,n),Sn=r,Nr=o;break;case 0:case 11:case 14:case 15:if(!_n&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Mv(n,t,i),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!_n&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){qt(n,t,l)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(_n=(r=_n)||n.memoizedState!==null,Oo(e,t,n),_n=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new w2),t.forEach(function(r){var o=M2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function _r(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Sn=l.stateNode,Nr=!1;break e;case 3:Sn=l.stateNode.containerInfo,Nr=!0;break e;case 4:Sn=l.stateNode.containerInfo,Nr=!0;break e}l=l.return}if(Sn===null)throw Error(ue(160));U1(a,i,o),Sn=null,Nr=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(c){qt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)K1(t,e),t=t.sibling}function K1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_r(t,e),qr(e),r&4){try{Pl(3,e,e.return),kc(3,e)}catch(b){qt(e,e.return,b)}try{Pl(5,e,e.return)}catch(b){qt(e,e.return,b)}}break;case 1:_r(t,e),qr(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(_r(t,e),qr(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var o=e.stateNode;try{jl(o,"")}catch(b){qt(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&mS(o,a),av(l,i);var c=av(l,a);for(i=0;i<s.length;i+=2){var d=s[i],f=s[i+1];d==="style"?bS(o,f):d==="dangerouslySetInnerHTML"?hS(o,f):d==="children"?jl(o,f):op(o,d,f,c)}switch(l){case"input":ev(o,a);break;case"textarea":pS(o,a);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?bi(o,!!a.multiple,g,!1):v!==!!a.multiple&&(a.defaultValue!=null?bi(o,!!a.multiple,a.defaultValue,!0):bi(o,!!a.multiple,a.multiple?[]:"",!1))}o[Gl]=a}catch(b){qt(e,e.return,b)}}break;case 6:if(_r(t,e),qr(e),r&4){if(e.stateNode===null)throw Error(ue(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(b){qt(e,e.return,b)}}break;case 3:if(_r(t,e),qr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hl(t.containerInfo)}catch(b){qt(e,e.return,b)}break;case 4:_r(t,e),qr(e);break;case 13:_r(t,e),qr(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(zp=Xt())),r&4&&Uh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(_n=(c=_n)||d,_r(t,e),_n=c):_r(t,e),qr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Ie=e,d=e.child;d!==null;){for(f=Ie=d;Ie!==null;){switch(v=Ie,g=v.child,v.tag){case 0:case 11:case 14:case 15:Pl(4,v,v.return);break;case 1:mi(v,v.return);var y=v.stateNode;if(typeof y.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){qt(r,n,b)}}break;case 5:mi(v,v.return);break;case 22:if(v.memoizedState!==null){Gh(f);continue}}g!==null?(g.return=v,Ie=g):Gh(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=yS("display",i))}catch(b){qt(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(b){qt(e,e.return,b)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:_r(t,e),qr(e),r&4&&Uh(e);break;case 21:break;default:_r(t,e),qr(e)}}function qr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(W1(n)){var r=n;break e}n=n.return}throw Error(ue(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(jl(o,""),r.flags&=-33);var a=Wh(e);Av(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Wh(e);Lv(e,l,i);break;default:throw Error(ue(161))}}catch(s){qt(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function x2(e,t,n){Ie=e,G1(e)}function G1(e,t,n){for(var r=(e.mode&1)!==0;Ie!==null;){var o=Ie,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||tu;if(!i){var l=o.alternate,s=l!==null&&l.memoizedState!==null||_n;l=tu;var c=_n;if(tu=i,(_n=s)&&!c)for(Ie=o;Ie!==null;)i=Ie,s=i.child,i.tag===22&&i.memoizedState!==null?qh(o):s!==null?(s.return=i,Ie=s):qh(o);for(;a!==null;)Ie=a,G1(a),a=a.sibling;Ie=o,tu=l,_n=c}Kh(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,Ie=a):Kh(e)}}function Kh(e){for(;Ie!==null;){var t=Ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_n||kc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_n)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&_h(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_h(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Hl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ue(163))}_n||t.flags&512&&Nv(t)}catch(v){qt(t,t.return,v)}}if(t===e){Ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function Gh(e){for(;Ie!==null;){var t=Ie;if(t===e){Ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function qh(e){for(;Ie!==null;){var t=Ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kc(4,t)}catch(s){qt(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){qt(t,o,s)}}var a=t.return;try{Nv(t)}catch(s){qt(t,a,s)}break;case 5:var i=t.return;try{Nv(t)}catch(s){qt(t,i,s)}}}catch(s){qt(t,t.return,s)}if(t===e){Ie=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ie=l;break}Ie=t.return}}var R2=Math.ceil,sc=So.ReactCurrentDispatcher,Ap=So.ReactCurrentOwner,Cr=So.ReactCurrentBatchConfig,gt=0,pn=null,nn=null,En=0,tr=0,pi=na(0),sn=0,Zl=null,_a=0,Hc=0,Fp=0,Il=null,Wn=null,zp=0,Ni=1/0,ao=null,uc=!1,Fv=null,Ko=null,nu=!1,Fo=null,cc=0,_l=0,zv=null,$u=-1,Ou=0;function An(){return gt&6?Xt():$u!==-1?$u:$u=Xt()}function Go(e){return e.mode&1?gt&2&&En!==0?En&-En:s2.transition!==null?(Ou===0&&(Ou=TS()),Ou):(e=Rt,e!==0||(e=window.event,e=e===void 0?16:jS(e.type)),e):1}function jr(e,t,n,r){if(50<_l)throw _l=0,zv=null,Error(ue(185));bs(e,n,r),(!(gt&2)||e!==pn)&&(e===pn&&(!(gt&2)&&(Hc|=n),sn===4&&Lo(e,En)),Qn(e,r),n===1&&gt===0&&!(t.mode&1)&&(Ni=Xt()+500,jc&&ra()))}function Qn(e,t){var n=e.callbackNode;s$(e,t);var r=Gu(e,e===pn?En:0);if(r===0)n!==null&&rh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rh(n),t===1)e.tag===0?l2(Qh.bind(null,e)):r1(Qh.bind(null,e)),r2(function(){!(gt&6)&&ra()}),n=null;else{switch(MS(r)){case 1:n=up;break;case 4:n=IS;break;case 16:n=Ku;break;case 536870912:n=_S;break;default:n=Ku}n=tC(n,q1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function q1(e,t){if($u=-1,Ou=0,gt&6)throw Error(ue(327));var n=e.callbackNode;if(xi()&&e.callbackNode!==n)return null;var r=Gu(e,e===pn?En:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dc(e,r);else{t=r;var o=gt;gt|=2;var a=X1();(pn!==e||En!==t)&&(ao=null,Ni=Xt()+500,Ca(e,t));do try{P2();break}catch(l){Q1(e,l)}while(!0);wp(),sc.current=a,gt=o,nn!==null?t=0:(pn=null,En=0,t=sn)}if(t!==0){if(t===2&&(o=cv(e),o!==0&&(r=o,t=jv(e,o))),t===1)throw n=Zl,Ca(e,0),Lo(e,r),Qn(e,Xt()),n;if(t===6)Lo(e,r);else{if(o=e.current.alternate,!(r&30)&&!$2(o)&&(t=dc(e,r),t===2&&(a=cv(e),a!==0&&(r=a,t=jv(e,a))),t===1))throw n=Zl,Ca(e,0),Lo(e,r),Qn(e,Xt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ue(345));case 2:da(e,Wn,ao);break;case 3:if(Lo(e,r),(r&130023424)===r&&(t=zp+500-Xt(),10<t)){if(Gu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){An(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yv(da.bind(null,e,Wn,ao),t);break}da(e,Wn,ao);break;case 4:if(Lo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-zr(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R2(r/1960))-r,10<r){e.timeoutHandle=yv(da.bind(null,e,Wn,ao),r);break}da(e,Wn,ao);break;case 5:da(e,Wn,ao);break;default:throw Error(ue(329))}}}return Qn(e,Xt()),e.callbackNode===n?q1.bind(null,e):null}function jv(e,t){var n=Il;return e.current.memoizedState.isDehydrated&&(Ca(e,t).flags|=256),e=dc(e,t),e!==2&&(t=Wn,Wn=n,t!==null&&Dv(t)),e}function Dv(e){Wn===null?Wn=e:Wn.push.apply(Wn,e)}function $2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Vr(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lo(e,t){for(t&=~Fp,t&=~Hc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zr(t),r=1<<n;e[n]=-1,t&=~r}}function Qh(e){if(gt&6)throw Error(ue(327));xi();var t=Gu(e,0);if(!(t&1))return Qn(e,Xt()),null;var n=dc(e,t);if(e.tag!==0&&n===2){var r=cv(e);r!==0&&(t=r,n=jv(e,r))}if(n===1)throw n=Zl,Ca(e,0),Lo(e,t),Qn(e,Xt()),n;if(n===6)throw Error(ue(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,da(e,Wn,ao),Qn(e,Xt()),null}function jp(e,t){var n=gt;gt|=1;try{return e(t)}finally{gt=n,gt===0&&(Ni=Xt()+500,jc&&ra())}}function Ta(e){Fo!==null&&Fo.tag===0&&!(gt&6)&&xi();var t=gt;gt|=1;var n=Cr.transition,r=Rt;try{if(Cr.transition=null,Rt=1,e)return e()}finally{Rt=r,Cr.transition=n,gt=t,!(gt&6)&&ra()}}function Dp(){tr=pi.current,jt(pi)}function Ca(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,n2(n)),nn!==null)for(n=nn.return;n!==null;){var r=n;switch(bp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ju();break;case 3:Ti(),jt(Gn),jt(Mn),Pp();break;case 5:Op(r);break;case 4:Ti();break;case 13:jt(Ht);break;case 19:jt(Ht);break;case 10:Ep(r.type._context);break;case 22:case 23:Dp()}n=n.return}if(pn=e,nn=e=qo(e.current,null),En=tr=t,sn=0,Zl=null,Fp=Hc=_a=0,Wn=Il=null,ga!==null){for(t=0;t<ga.length;t++)if(n=ga[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}ga=null}return e}function Q1(e,t){do{var n=nn;try{if(wp(),Eu.current=lc,ic){for(var r=Vt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ic=!1}if(Ia=0,vn=ln=Vt=null,Ol=!1,Xl=0,Ap.current=null,n===null||n.return===null){sn=1,Zl=t,nn=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=En,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Fh(i);if(g!==null){g.flags&=-257,zh(g,i,l,a,t),g.mode&1&&Ah(a,c,t),t=g,s=c;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if(!(t&1)){Ah(a,c,t),Bp();break e}s=Error(ue(426))}}else if(Bt&&l.mode&1){var S=Fh(i);if(S!==null){!(S.flags&65536)&&(S.flags|=256),zh(S,i,l,a,t),Sp(Mi(s,l));break e}}a=s=Mi(s,l),sn!==4&&(sn=2),Il===null?Il=[a]:Il.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var h=M1(a,s,t);Ih(a,h);break e;case 1:l=s;var m=a.type,p=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ko===null||!Ko.has(p)))){a.flags|=65536,t&=-t,a.lanes|=t;var C=N1(a,l,t);Ih(a,C);break e}}a=a.return}while(a!==null)}J1(n)}catch(w){t=w,nn===n&&n!==null&&(nn=n=n.return);continue}break}while(!0)}function X1(){var e=sc.current;return sc.current=lc,e===null?lc:e}function Bp(){(sn===0||sn===3||sn===2)&&(sn=4),pn===null||!(_a&268435455)&&!(Hc&268435455)||Lo(pn,En)}function dc(e,t){var n=gt;gt|=2;var r=X1();(pn!==e||En!==t)&&(ao=null,Ca(e,t));do try{O2();break}catch(o){Q1(e,o)}while(!0);if(wp(),gt=n,sc.current=r,nn!==null)throw Error(ue(261));return pn=null,En=0,sn}function O2(){for(;nn!==null;)Y1(nn)}function P2(){for(;nn!==null&&!ZR();)Y1(nn)}function Y1(e){var t=eC(e.alternate,e,tr);e.memoizedProps=e.pendingProps,t===null?J1(e):nn=t,Ap.current=null}function J1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=C2(n,t),n!==null){n.flags&=32767,nn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sn=6,nn=null;return}}else if(n=S2(n,t,tr),n!==null){nn=n;return}if(t=t.sibling,t!==null){nn=t;return}nn=t=e}while(t!==null);sn===0&&(sn=5)}function da(e,t,n){var r=Rt,o=Cr.transition;try{Cr.transition=null,Rt=1,I2(e,t,n,r)}finally{Cr.transition=o,Rt=r}return null}function I2(e,t,n,r){do xi();while(Fo!==null);if(gt&6)throw Error(ue(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ue(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(u$(e,a),e===pn&&(nn=pn=null,En=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nu||(nu=!0,tC(Ku,function(){return xi(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Cr.transition,Cr.transition=null;var i=Rt;Rt=1;var l=gt;gt|=4,Ap.current=null,E2(e,n),K1(n,e),Q$(gv),qu=!!pv,gv=pv=null,e.current=n,x2(n),e$(),gt=l,Rt=i,Cr.transition=a}else e.current=n;if(nu&&(nu=!1,Fo=e,cc=o),a=e.pendingLanes,a===0&&(Ko=null),r$(n.stateNode),Qn(e,Xt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(uc)throw uc=!1,e=Fv,Fv=null,e;return cc&1&&e.tag!==0&&xi(),a=e.pendingLanes,a&1?e===zv?_l++:(_l=0,zv=e):_l=0,ra(),null}function xi(){if(Fo!==null){var e=MS(cc),t=Cr.transition,n=Rt;try{if(Cr.transition=null,Rt=16>e?16:e,Fo===null)var r=!1;else{if(e=Fo,Fo=null,cc=0,gt&6)throw Error(ue(331));var o=gt;for(gt|=4,Ie=e.current;Ie!==null;){var a=Ie,i=a.child;if(Ie.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(Ie=c;Ie!==null;){var d=Ie;switch(d.tag){case 0:case 11:case 15:Pl(8,d,a)}var f=d.child;if(f!==null)f.return=d,Ie=f;else for(;Ie!==null;){d=Ie;var v=d.sibling,g=d.return;if(V1(d),d===c){Ie=null;break}if(v!==null){v.return=g,Ie=v;break}Ie=g}}}var y=a.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var S=b.sibling;b.sibling=null,b=S}while(b!==null)}}Ie=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,Ie=i;else e:for(;Ie!==null;){if(a=Ie,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Pl(9,a,a.return)}var h=a.sibling;if(h!==null){h.return=a.return,Ie=h;break e}Ie=a.return}}var m=e.current;for(Ie=m;Ie!==null;){i=Ie;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,Ie=p;else e:for(i=m;Ie!==null;){if(l=Ie,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:kc(9,l)}}catch(w){qt(l,l.return,w)}if(l===i){Ie=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,Ie=C;break e}Ie=l.return}}if(gt=o,ra(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(Nc,e)}catch{}r=!0}return r}finally{Rt=n,Cr.transition=t}}return!1}function Xh(e,t,n){t=Mi(n,t),t=M1(e,t,1),e=Uo(e,t,1),t=An(),e!==null&&(bs(e,1,t),Qn(e,t))}function qt(e,t,n){if(e.tag===3)Xh(e,e,n);else for(;t!==null;){if(t.tag===3){Xh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ko===null||!Ko.has(r))){e=Mi(n,e),e=N1(t,e,1),t=Uo(t,e,1),e=An(),t!==null&&(bs(t,1,e),Qn(t,e));break}}t=t.return}}function _2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=An(),e.pingedLanes|=e.suspendedLanes&n,pn===e&&(En&n)===n&&(sn===4||sn===3&&(En&130023424)===En&&500>Xt()-zp?Ca(e,0):Fp|=n),Qn(e,t)}function Z1(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=An();e=go(e,t),e!==null&&(bs(e,t,n),Qn(e,n))}function T2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Z1(e,n)}function M2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(t),Z1(e,n)}var eC;eC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gn.current)Kn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kn=!1,b2(e,t,n);Kn=!!(e.flags&131072)}else Kn=!1,Bt&&t.flags&1048576&&o1(t,tc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ru(e,t),e=t.pendingProps;var o=Pi(t,Mn.current);Ei(t,n),o=_p(null,t,r,e,o,n);var a=Tp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qn(r)?(a=!0,Zu(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rp(t),o.updater=Bc,t.stateNode=o,o._reactInternals=t,Rv(t,r,e,n),t=Pv(null,t,r,!0,a,n)):(t.tag=0,Bt&&a&&yp(t),Ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ru(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L2(r),e=Mr(r,e),o){case 0:t=Ov(null,t,r,e,n);break e;case 1:t=Bh(null,t,r,e,n);break e;case 11:t=jh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,Mr(r.type,e),n);break e}throw Error(ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Ov(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Bh(e,t,r,o,n);case 3:e:{if(z1(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,c1(e,t),oc(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Mi(Error(ue(423)),t),t=kh(e,t,r,n,o);break e}else if(r!==o){o=Mi(Error(ue(424)),t),t=kh(e,t,r,n,o);break e}else for(nr=Wo(t.stateNode.containerInfo.firstChild),or=t,Bt=!0,Fr=null,n=s1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ii(),r===o){t=ho(e,t,n);break e}Ln(e,t,r,n)}t=t.child}return t;case 5:return d1(t),e===null&&wv(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,hv(r,o)?i=null:a!==null&&hv(r,a)&&(t.flags|=32),F1(e,t),Ln(e,t,i,n),t.child;case 6:return e===null&&wv(t),null;case 13:return j1(e,t,n);case 4:return $p(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_i(t,null,r,n):Ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),jh(e,t,r,o,n);case 7:return Ln(e,t,t.pendingProps,n),t.child;case 8:return Ln(e,t,t.pendingProps.children,n),t.child;case 12:return Ln(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Lt(nc,r._currentValue),r._currentValue=i,a!==null)if(Vr(a.value,i)){if(a.children===o.children&&!Gn.current){t=ho(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=co(-1,n&-n),s.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ev(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ue(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ev(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),o=xr(o),r=r(o),t.flags|=1,Ln(e,t,r,n),t.child;case 14:return r=t.type,o=Mr(r,t.pendingProps),o=Mr(r.type,o),Dh(e,t,r,o,n);case 15:return L1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Ru(e,t),t.tag=1,qn(r)?(e=!0,Zu(t)):e=!1,Ei(t,n),T1(t,r,o),Rv(t,r,o,n),Pv(null,t,r,!0,e,n);case 19:return D1(e,t,n);case 22:return A1(e,t,n)}throw Error(ue(156,t.tag))};function tC(e,t){return PS(e,t)}function N2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(e,t,n,r){return new N2(e,t,n,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L2(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ip)return 11;if(e===lp)return 14}return 2}function qo(e,t){var n=e.alternate;return n===null?(n=Sr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")kp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ai:return wa(n.children,o,a,t);case ap:i=8,o|=8;break;case Qf:return e=Sr(12,n,t,o|2),e.elementType=Qf,e.lanes=a,e;case Xf:return e=Sr(13,n,t,o),e.elementType=Xf,e.lanes=a,e;case Yf:return e=Sr(19,n,t,o),e.elementType=Yf,e.lanes=a,e;case dS:return Vc(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uS:i=10;break e;case cS:i=9;break e;case ip:i=11;break e;case lp:i=14;break e;case To:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=Sr(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function wa(e,t,n,r){return e=Sr(7,e,r,t),e.lanes=n,e}function Vc(e,t,n,r){return e=Sr(22,e,r,t),e.elementType=dS,e.lanes=n,e.stateNode={isHidden:!1},e}function of(e,t,n){return e=Sr(6,e,null,t),e.lanes=n,e}function af(e,t,n){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A2(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dd(0),this.expirationTimes=Dd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hp(e,t,n,r,o,a,i,l,s){return e=new A2(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Sr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rp(a),e}function F2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function nC(e){if(!e)return Yo;e=e._reactInternals;e:{if(za(e)!==e||e.tag!==1)throw Error(ue(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ue(171))}if(e.tag===1){var n=e.type;if(qn(n))return n1(e,n,t)}return t}function rC(e,t,n,r,o,a,i,l,s){return e=Hp(n,r,!0,e,o,a,i,l,s),e.context=nC(null),n=e.current,r=An(),o=Go(n),a=co(r,o),a.callback=t??null,Uo(n,a,o),e.current.lanes=o,bs(e,o,r),Qn(e,r),e}function Wc(e,t,n,r){var o=t.current,a=An(),i=Go(o);return n=nC(n),t.context===null?t.context=n:t.pendingContext=n,t=co(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Uo(o,t,i),e!==null&&(jr(e,o,i,a),wu(e,o,i)),i}function fc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vp(e,t){Yh(e,t),(e=e.alternate)&&Yh(e,t)}function z2(){return null}var oC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wp(e){this._internalRoot=e}Uc.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ue(409));Wc(e,t,null,null)};Uc.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ta(function(){Wc(null,e,null,null)}),t[po]=null}};function Uc(e){this._internalRoot=e}Uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=AS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<No.length&&t!==0&&t<No[n].priority;n++);No.splice(n,0,e),n===0&&zS(e)}};function Up(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jh(){}function j2(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var c=fc(i);a.call(c)}}var i=rC(t,r,e,0,null,!1,!1,"",Jh);return e._reactRootContainer=i,e[po]=i.current,Ul(e.nodeType===8?e.parentNode:e),Ta(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=fc(s);l.call(c)}}var s=Hp(e,0,!1,null,null,!1,!1,"",Jh);return e._reactRootContainer=s,e[po]=s.current,Ul(e.nodeType===8?e.parentNode:e),Ta(function(){Wc(t,s,n,r)}),s}function Gc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var l=o;o=function(){var s=fc(i);l.call(s)}}Wc(t,i,e,o)}else i=j2(n,t,e,o,r);return fc(i)}NS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yl(t.pendingLanes);n!==0&&(cp(t,n|1),Qn(t,Xt()),!(gt&6)&&(Ni=Xt()+500,ra()))}break;case 13:Ta(function(){var r=go(e,1);if(r!==null){var o=An();jr(r,e,1,o)}}),Vp(e,1)}};dp=function(e){if(e.tag===13){var t=go(e,134217728);if(t!==null){var n=An();jr(t,e,134217728,n)}Vp(e,134217728)}};LS=function(e){if(e.tag===13){var t=Go(e),n=go(e,t);if(n!==null){var r=An();jr(n,e,t,r)}Vp(e,t)}};AS=function(){return Rt};FS=function(e,t){var n=Rt;try{return Rt=e,t()}finally{Rt=n}};lv=function(e,t,n){switch(t){case"input":if(ev(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=zc(r);if(!o)throw Error(ue(90));vS(r),ev(r,o)}}}break;case"textarea":pS(e,n);break;case"select":t=n.value,t!=null&&bi(e,!!n.multiple,t,!1)}};wS=jp;ES=Ta;var D2={usingClientEntryPoint:!1,Events:[Cs,ui,zc,SS,CS,jp]},sl={findFiberByHostInstance:pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B2={bundleType:sl.bundleType,version:sl.version,rendererPackageName:sl.rendererPackageName,rendererConfig:sl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:So.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$S(e),e===null?null:e.stateNode},findFiberByHostInstance:sl.findFiberByHostInstance||z2,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 ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Nc=ru.inject(B2),Jr=ru}catch{}}sr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D2;sr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Up(t))throw Error(ue(200));return F2(e,t,null,n)};sr.createRoot=function(e,t){if(!Up(e))throw Error(ue(299));var n=!1,r="",o=oC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hp(e,1,!1,null,null,n,!1,r,o),e[po]=t.current,Ul(e.nodeType===8?e.parentNode:e),new Wp(t)};sr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ue(188)):(e=Object.keys(e).join(","),Error(ue(268,e)));return e=$S(t),e=e===null?null:e.stateNode,e};sr.flushSync=function(e){return Ta(e)};sr.hydrate=function(e,t,n){if(!Kc(t))throw Error(ue(200));return Gc(null,e,t,!0,n)};sr.hydrateRoot=function(e,t,n){if(!Up(e))throw Error(ue(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=oC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=rC(t,null,e,1,n??null,o,!1,a,i),e[po]=t.current,Ul(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Uc(t)};sr.render=function(e,t,n){if(!Kc(t))throw Error(ue(200));return Gc(null,e,t,!1,n)};sr.unmountComponentAtNode=function(e){if(!Kc(e))throw Error(ue(40));return e._reactRootContainer?(Ta(function(){Gc(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0):!1};sr.unstable_batchedUpdates=jp;sr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kc(n))throw Error(ue(200));if(e==null||e._reactInternals===void 0)throw Error(ue(38));return Gc(e,t,n,!1,r)};sr.version="18.3.1-next-f1338f8080-20240426";function aC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aC)}catch(e){console.error(e)}}aC(),aS.exports=sr;var Jo=aS.exports;const Bv=Ym(Jo),k2=Gb({__proto__:null,default:Bv},[Jo]);var Zh=Jo;Gf.createRoot=Zh.createRoot,Gf.hydrateRoot=Zh.hydrateRoot;/**
 * @remix-run/router v1.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function es(){return es=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},es.apply(this,arguments)}var zo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(zo||(zo={}));const e0="popstate";function H2(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:l="",hash:s=""}=ja(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),kv("",{pathname:i,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let s=o.location.href,c=s.indexOf("#");l=c===-1?s:s.slice(0,c)}return l+"#"+(typeof a=="string"?a:vc(a))}function r(o,a){Kp(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return W2(t,n,r,e)}function Yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function V2(){return Math.random().toString(36).substr(2,8)}function t0(e,t){return{usr:e.state,key:e.key,idx:t}}function kv(e,t,n,r){return n===void 0&&(n=null),es({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ja(t):t,{state:n,key:t&&t.key||r||V2()})}function vc(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 ja(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 W2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=zo.Pop,s=null,c=d();c==null&&(c=0,i.replaceState(es({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=zo.Pop;let S=d(),h=S==null?null:S-c;c=S,s&&s({action:l,location:b.location,delta:h})}function v(S,h){l=zo.Push;let m=kv(b.location,S,h);n&&n(m,S),c=d()+1;let p=t0(m,c),C=b.createHref(m);try{i.pushState(p,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(C)}a&&s&&s({action:l,location:b.location,delta:1})}function g(S,h){l=zo.Replace;let m=kv(b.location,S,h);n&&n(m,S),c=d();let p=t0(m,c),C=b.createHref(m);i.replaceState(p,"",C),a&&s&&s({action:l,location:b.location,delta:0})}function y(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof S=="string"?S:vc(S);return m=m.replace(/ $/,"%20"),Yt(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let b={get action(){return l},get location(){return e(o,i)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(e0,f),s=S,()=>{o.removeEventListener(e0,f),s=null}},createHref(S){return t(o,S)},createURL:y,encodeLocation(S){let h=y(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:g,go(S){return i.go(S)}};return b}var n0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(n0||(n0={}));function U2(e,t,n){return n===void 0&&(n="/"),K2(e,t,n,!1)}function K2(e,t,n,r){let o=typeof t=="string"?ja(t):t,a=Gp(o.pathname||"/",n);if(a==null)return null;let i=iC(e);G2(i);let l=null;for(let s=0;l==null&&s<i.length;++s){let c=oO(a);l=nO(i[s],c,r)}return l}function iC(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(Yt(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=Qo([r,s.relativePath]),d=n.concat(s);a.children&&a.children.length>0&&(Yt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),iC(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:eO(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of lC(a.path))o(a,i,s)}),t}function lC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=lC(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function G2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const q2=/^:[\w-]+$/,Q2=3,X2=2,Y2=1,J2=10,Z2=-2,r0=e=>e==="*";function eO(e,t){let n=e.split("/"),r=n.length;return n.some(r0)&&(r+=Z2),t&&(r+=X2),n.filter(o=>!r0(o)).reduce((o,a)=>o+(q2.test(a)?Q2:a===""?Y2:J2),r)}function tO(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 nO(e,t,n){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l<r.length;++l){let s=r[l],c=l===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=o0({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d),v=s.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=o0({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Qo([a,f.pathname]),pathnameBase:sO(Qo([a,f.pathnameBase])),route:v}),f.pathnameBase!=="/"&&(a=Qo([a,f.pathnameBase]))}return i}function o0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rO(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:v,isOptional:g}=d;if(v==="*"){let b=l[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=l[f];return g&&!y?c[v]=void 0:c[v]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function rO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Kp(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,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function oO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kp(!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 Gp(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 aO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ja(e):e;return{pathname:n?n.startsWith("/")?n:iO(n,t):t,search:uO(r),hash:cO(o)}}function iO(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 lf(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 lO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qp(e,t){let n=lO(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ja(e):(o=es({},e),Yt(!o.pathname||!o.pathname.includes("?"),lf("?","pathname","search",o)),Yt(!o.pathname||!o.pathname.includes("#"),lf("#","pathname","hash",o)),Yt(!o.search||!o.search.includes("#"),lf("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),f-=1;o.pathname=v.join("/")}l=f>=0?t[f]:"/"}let s=aO(o,l),c=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const Qo=e=>e.join("/").replace(/\/\/+/g,"/"),sO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sC=["post","put","patch","delete"];new Set(sC);const fO=["get",...sC];new Set(fO);/**
 * React Router v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ts(){return ts=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},ts.apply(this,arguments)}const Xp=u.createContext(null),vO=u.createContext(null),oa=u.createContext(null),qc=u.createContext(null),Co=u.createContext({outlet:null,matches:[],isDataRoute:!1}),uC=u.createContext(null);function mO(e,t){let{relative:n}=t===void 0?{}:t;Ui()||Yt(!1);let{basename:r,navigator:o}=u.useContext(oa),{hash:a,pathname:i,search:l}=dC(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:Qo([r,i])),o.createHref({pathname:s,search:l,hash:a})}function Ui(){return u.useContext(qc)!=null}function Da(){return Ui()||Yt(!1),u.useContext(qc).location}function cC(e){u.useContext(oa).static||u.useLayoutEffect(e)}function Es(){let{isDataRoute:e}=u.useContext(Co);return e?OO():pO()}function pO(){Ui()||Yt(!1);let e=u.useContext(Xp),{basename:t,future:n,navigator:r}=u.useContext(oa),{matches:o}=u.useContext(Co),{pathname:a}=Da(),i=JSON.stringify(qp(o,n.v7_relativeSplatPath)),l=u.useRef(!1);return cC(()=>{l.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let f=Qp(c,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qo([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}function U8(){let{matches:e}=u.useContext(Co),t=e[e.length-1];return t?t.params:{}}function dC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(oa),{matches:o}=u.useContext(Co),{pathname:a}=Da(),i=JSON.stringify(qp(o,r.v7_relativeSplatPath));return u.useMemo(()=>Qp(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function gO(e,t){return hO(e,t)}function hO(e,t,n,r){Ui()||Yt(!1);let{navigator:o}=u.useContext(oa),{matches:a}=u.useContext(Co),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=Da(),d;if(t){var f;let S=typeof t=="string"?ja(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||Yt(!1),d=S}else d=c;let v=d.pathname||"/",g=v;if(s!=="/"){let S=s.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=U2(e,{pathname:g}),b=wO(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Qo([s,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Qo([s,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r);return t&&b?u.createElement(qc.Provider,{value:{location:ts({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:zo.Pop}},b):b}function yO(){let e=$O(),t=dO(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 u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const bO=u.createElement(yO,null);class SO extends u.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?u.createElement(Co.Provider,{value:this.props.routeContext},u.createElement(uC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CO(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Xp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Co.Provider,{value:t},r)}function wO(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Yt(!1),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:v,errors:g}=n,y=f.route.loader&&v[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||y){s=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,v)=>{let g,y=!1,b=null,S=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||bO,s&&(c<0&&v===0?(y=!0,S=null):c===v&&(y=!0,S=f.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,v+1)),m=()=>{let p;return g?p=b:y?p=S:f.route.Component?p=u.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=d,u.createElement(CO,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||v===0)?u.createElement(SO,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var fC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fC||{}),mc=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}(mc||{});function EO(e){let t=u.useContext(Xp);return t||Yt(!1),t}function xO(e){let t=u.useContext(vO);return t||Yt(!1),t}function RO(e){let t=u.useContext(Co);return t||Yt(!1),t}function vC(e){let t=RO(),n=t.matches[t.matches.length-1];return n.route.id||Yt(!1),n.route.id}function $O(){var e;let t=u.useContext(uC),n=xO(mc.UseRouteError),r=vC(mc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function OO(){let{router:e}=EO(fC.UseNavigateStable),t=vC(mc.UseNavigateStable),n=u.useRef(!1);return cC(()=>{n.current=!0}),u.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ts({fromRouteId:t},a)))},[e,t])}function Hv(e){let{to:t,replace:n,state:r,relative:o}=e;Ui()||Yt(!1);let{future:a,static:i}=u.useContext(oa),{matches:l}=u.useContext(Co),{pathname:s}=Da(),c=Es(),d=Qp(t,qp(l,a.v7_relativeSplatPath),s,o==="path"),f=JSON.stringify(d);return u.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function pt(e){Yt(!1)}function PO(e){let{basename:t="/",children:n=null,location:r,navigationType:o=zo.Pop,navigator:a,static:i=!1,future:l}=e;Ui()&&Yt(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:a,static:i,future:ts({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=ja(r));let{pathname:d="/",search:f="",hash:v="",state:g=null,key:y="default"}=r,b=u.useMemo(()=>{let S=Gp(d,s);return S==null?null:{location:{pathname:S,search:f,hash:v,state:g,key:y},navigationType:o}},[s,d,f,v,g,y,o]);return b==null?null:u.createElement(oa.Provider,{value:c},u.createElement(qc.Provider,{children:n,value:b}))}function mC(e){let{children:t,location:n}=e;return gO(Vv(t),n)}new Promise(()=>{});function Vv(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let a=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Vv(r.props.children,a));return}r.type!==pt&&Yt(!1),!r.props.index||!r.props.children||Yt(!1);let i={id:r.props.id||a.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&&(i.children=Vv(r.props.children,a)),n.push(i)}),n}/**
 * React Router DOM v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Wv(){return Wv=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},Wv.apply(this,arguments)}function IO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _O(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function TO(e,t){return e.button===0&&(!t||t==="_self")&&!_O(e)}const MO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],NO="6";try{window.__reactRouterVersion=NO}catch{}const LO="startTransition",a0=$a[LO];function AO(e){let{basename:t,children:n,future:r,window:o}=e,a=u.useRef();a.current==null&&(a.current=H2({window:o,v5Compat:!0}));let i=a.current,[l,s]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=u.useCallback(f=>{c&&a0?a0(()=>s(f)):s(f)},[s,c]);return u.useLayoutEffect(()=>i.listen(d),[i,d]),u.createElement(PO,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const FO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pC=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:s,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,v=IO(t,MO),{basename:g}=u.useContext(oa),y,b=!1;if(typeof c=="string"&&zO.test(c)&&(y=c,FO))try{let p=new URL(window.location.href),C=c.startsWith("//")?new URL(p.protocol+c):new URL(c),w=Gp(C.pathname,g);C.origin===p.origin&&w!=null?c=w+C.search+C.hash:b=!0}catch{}let S=mO(c,{relative:o}),h=jO(c,{replace:i,state:l,target:s,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(p){r&&r(p),p.defaultPrevented||h(p)}return u.createElement("a",Wv({},v,{href:y||S,onClick:b||a?r:m,ref:n,target:s}))});var i0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(i0||(i0={}));var l0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(l0||(l0={}));function jO(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=Es(),c=Da(),d=dC(e,{relative:i});return u.useCallback(f=>{if(TO(f,n)){f.preventDefault();let v=r!==void 0?r:vc(c)===vc(d);s(e,{replace:v,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[c,s,d,r,o,n,e,a,i,l])}var DO={};/**
 * @license React
 * use-sync-external-store-with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xs=u;function BO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kO=typeof Object.is=="function"?Object.is:BO,HO=xs.useSyncExternalStore,VO=xs.useRef,WO=xs.useEffect,UO=xs.useMemo,KO=xs.useDebugValue;DO.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=VO(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=UO(function(){function s(g){if(!c){if(c=!0,d=g,g=r(g),o!==void 0&&i.hasValue){var y=i.value;if(o(y,g))return f=y}return f=g}if(y=f,kO(d,g))return y;var b=r(g);return o!==void 0&&o(y,b)?y:(d=g,f=b)}var c=!1,d,f,v=n===void 0?null:n;return[function(){return s(t())},v===null?void 0:function(){return s(v())}]},[t,n,r,o]);var l=HO(e,a[0],a[1]);return WO(function(){i.hasValue=!0,i.value=l},[l]),KO(l),l};var Ct="default"in $a?K:$a,s0=Symbol.for("react-redux-context"),u0=typeof globalThis<"u"?globalThis:{};function GO(){if(!Ct.createContext)return{};const e=u0[s0]??(u0[s0]=new Map);let t=e.get(Ct.createContext);return t||(t=Ct.createContext(null),e.set(Ct.createContext,t)),t}var Ma=GO(),qO=()=>{throw new Error("uSES not initialized!")};function gC(e=Ma){return function(){return Ct.useContext(e)}}var QO=gC(),XO=Symbol.for("react.element"),YO=Symbol.for("react.portal"),JO=Symbol.for("react.fragment"),ZO=Symbol.for("react.strict_mode"),eP=Symbol.for("react.profiler"),tP=Symbol.for("react.provider"),nP=Symbol.for("react.context"),rP=Symbol.for("react.server_context"),hC=Symbol.for("react.forward_ref"),oP=Symbol.for("react.suspense"),aP=Symbol.for("react.suspense_list"),Yp=Symbol.for("react.memo"),iP=Symbol.for("react.lazy"),lP=hC,sP=Yp;function uP(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case XO:{const n=e.type;switch(n){case JO:case eP:case ZO:case oP:case aP:return n;default:{const r=n&&n.$$typeof;switch(r){case rP:case nP:case hC:case iP:case Yp:case tP:return r;default:return t}}}}case YO:return t}}}function cP(e){return uP(e)===Yp}function dP(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l=!1,s,c,d,f,v;function g(m,p){return s=m,c=p,d=e(s,c),f=t(r,c),v=n(d,f,c),l=!0,v}function y(){return d=e(s,c),t.dependsOnOwnProps&&(f=t(r,c)),v=n(d,f,c),v}function b(){return e.dependsOnOwnProps&&(d=e(s,c)),t.dependsOnOwnProps&&(f=t(r,c)),v=n(d,f,c),v}function S(){const m=e(s,c),p=!i(m,d);return d=m,p&&(v=n(d,f,c)),v}function h(m,p){const C=!a(p,c),w=!o(m,s,p,c);return s=m,c=p,C&&w?y():C?b():w?S():v}return function(p,C){return l?h(p,C):g(p,C)}}function fP(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){const a=t(e,o),i=n(e,o),l=r(e,o);return dP(a,i,l,e,o)}function vP(e,t){const n={};for(const r in e){const o=e[r];typeof o=="function"&&(n[r]=(...a)=>t(o(...a)))}return n}function Uv(e){return function(n){const r=e(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function c0(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yC(e,t){return function(r,{displayName:o}){const a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=c0(e);let c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=c0(c),c=a(l,s)),c},a}}function Jp(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function mP(e){return e&&typeof e=="object"?Uv(t=>vP(e,t)):e?typeof e=="function"?yC(e):Jp(e,"mapDispatchToProps"):Uv(t=>({dispatch:t}))}function pP(e){return e?typeof e=="function"?yC(e):Jp(e,"mapStateToProps"):Uv(()=>({}))}function gP(e,t,n){return{...n,...e,...t}}function hP(e){return function(n,{displayName:r,areMergedPropsEqual:o}){let a=!1,i;return function(s,c,d){const f=e(s,c,d);return a?o(f,i)||(i=f):(a=!0,i=f),i}}}function yP(e){return e?typeof e=="function"?hP(e):Jp(e,"mergeProps"):()=>gP}function bP(e){e()}function SP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bP(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var d0={notify(){},get:()=>[]};function bC(e,t){let n,r=d0,o=0,a=!1;function i(b){d();const S=r.subscribe(b);let h=!1;return()=>{h||(h=!0,S(),f())}}function l(){r.notify()}function s(){y.onStateChange&&y.onStateChange()}function c(){return a}function d(){o++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=SP())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=d0)}function v(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const y={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:c,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>r};return y}var CP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wP=typeof navigator<"u"&&navigator.product==="ReactNative",pc=CP||wP?Ct.useLayoutEffect:Ct.useEffect;function f0(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sf(e,t){if(f0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!f0(e[n[o]],t[n[o]]))return!1;return!0}var EP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xP={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},RP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},SC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$P={[lP]:RP,[sP]:SC};function v0(e){return cP(e)?SC:$P[e.$$typeof]||EP}var OP=Object.defineProperty,PP=Object.getOwnPropertyNames,m0=Object.getOwnPropertySymbols,IP=Object.getOwnPropertyDescriptor,_P=Object.getPrototypeOf,p0=Object.prototype;function Kv(e,t){if(typeof t!="string"){if(p0){const a=_P(t);a&&a!==p0&&Kv(e,a)}let n=PP(t);m0&&(n=n.concat(m0(t)));const r=v0(e),o=v0(t);for(let a=0;a<n.length;++a){const i=n[a];if(!xP[i]&&!(o&&o[i])&&!(r&&r[i])){const l=IP(t,i);try{OP(e,i,l)}catch{}}}}return e}var CC=qO,TP=e=>{CC=e},MP=[null,null];function NP(e,t,n){pc(()=>e(...t),n)}function LP(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function AP(e,t,n,r,o,a,i,l,s,c,d){if(!e)return()=>{};let f=!1,v=null;const g=()=>{if(f||!l.current)return;const b=t.getState();let S,h;try{S=r(b,o.current)}catch(m){h=m,v=m}h||(v=null),S===a.current?i.current||c():(a.current=S,s.current=S,i.current=!0,d())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,v)throw v}}function FP(e,t){return e===t}function zP(e,t,n,{pure:r,areStatesEqual:o=FP,areOwnPropsEqual:a=sf,areStatePropsEqual:i=sf,areMergedPropsEqual:l=sf,forwardRef:s=!1,context:c=Ma}={}){const d=c,f=pP(e),v=mP(t),g=yP(n),y=!!e;return S=>{const h=S.displayName||S.name||"Component",m=`Connect(${h})`,p={shouldHandleStateChanges:y,displayName:m,wrappedComponentName:h,WrappedComponent:S,initMapStateToProps:f,initMapDispatchToProps:v,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:l};function C(E){const[R,O,I]=Ct.useMemo(()=>{const{reactReduxForwardedRef:te,...ie}=E;return[E.context,te,ie]},[E]),A=Ct.useMemo(()=>{let te=d;return R!=null&&R.Consumer,te},[R,d]),M=Ct.useContext(A),z=!!E.store&&!!E.store.getState&&!!E.store.dispatch,_=!!M&&!!M.store,H=z?E.store:M.store,F=_?M.getServerState:H.getState,P=Ct.useMemo(()=>fP(H.dispatch,p),[H]),[$,L]=Ct.useMemo(()=>{if(!y)return MP;const te=bC(H,z?void 0:M.subscription),ie=te.notifyNestedSubs.bind(te);return[te,ie]},[H,z,M]),N=Ct.useMemo(()=>z?M:{...M,subscription:$},[z,M,$]),T=Ct.useRef(void 0),B=Ct.useRef(I),k=Ct.useRef(void 0),W=Ct.useRef(!1),U=Ct.useRef(!1),ee=Ct.useRef(void 0);pc(()=>(U.current=!0,()=>{U.current=!1}),[]);const q=Ct.useMemo(()=>()=>k.current&&I===B.current?k.current:P(H.getState(),I),[H,I]),ae=Ct.useMemo(()=>ie=>$?AP(y,H,$,P,B,T,W,U,k,L,ie):()=>{},[$]);NP(LP,[B,T,W,I,k,L]);let ce;try{ce=CC(ae,q,F?()=>P(F(),I):q)}catch(te){throw ee.current&&(te.message+=`
The error may be correlated with this previous error:
${ee.current.stack}

`),te}pc(()=>{ee.current=void 0,k.current=void 0,T.current=ce});const ne=Ct.useMemo(()=>Ct.createElement(S,{...ce,ref:O}),[O,S,ce]);return Ct.useMemo(()=>y?Ct.createElement(A.Provider,{value:N},ne):ne,[A,ne,N])}const x=Ct.memo(C);if(x.WrappedComponent=S,x.displayName=C.displayName=m,s){const R=Ct.forwardRef(function(I,A){return Ct.createElement(x,{...I,reactReduxForwardedRef:A})});return R.displayName=m,R.WrappedComponent=S,Kv(R,S)}return Kv(x,S)}}var Zp=zP;function jP({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const i=Ct.useMemo(()=>{const c=bC(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}},[e,r,o,a]),l=Ct.useMemo(()=>e.getState(),[e]);pc(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,l]);const s=t||Ma;return Ct.createElement(s.Provider,{value:i},n)}var DP=jP;function wC(e=Ma){const t=e===Ma?QO:gC(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var BP=wC();function kP(e=Ma){const t=e===Ma?BP:wC(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var HP=kP();TP(u.useSyncExternalStore);function bn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var VP=typeof Symbol=="function"&&Symbol.observable||"@@observable",g0=VP,uf=()=>Math.random().toString(36).substring(7).split("").join("."),WP={INIT:`@@redux/INIT${uf()}`,REPLACE:`@@redux/REPLACE${uf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${uf()}`},gc=WP;function UP(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function EC(e,t,n){if(typeof e!="function")throw new Error(bn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(bn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(bn(1));return n(EC)(e,t)}let r=e,o=t,a=new Map,i=a,l=0,s=!1;function c(){i===a&&(i=new Map,a.forEach((S,h)=>{i.set(h,S)}))}function d(){if(s)throw new Error(bn(3));return o}function f(S){if(typeof S!="function")throw new Error(bn(4));if(s)throw new Error(bn(5));let h=!0;c();const m=l++;return i.set(m,S),function(){if(h){if(s)throw new Error(bn(6));h=!1,c(),i.delete(m),a=null}}}function v(S){if(!UP(S))throw new Error(bn(7));if(typeof S.type>"u")throw new Error(bn(8));if(typeof S.type!="string")throw new Error(bn(17));if(s)throw new Error(bn(9));try{s=!0,o=r(o,S)}finally{s=!1}return(a=i).forEach(m=>{m()}),S}function g(S){if(typeof S!="function")throw new Error(bn(10));r=S,v({type:gc.REPLACE})}function y(){const S=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(bn(11));function m(){const C=h;C.next&&C.next(d())}return m(),{unsubscribe:S(m)}},[g0](){return this}}}return v({type:gc.INIT}),{dispatch:v,subscribe:f,getState:d,replaceReducer:g,[g0]:y}}function KP(e,t,n){return EC(e,t,n)}function GP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:gc.INIT})>"u")throw new Error(bn(12));if(typeof n(void 0,{type:gc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bn(13))})}function qP(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const i=t[a];typeof e[i]=="function"&&(n[i]=e[i])}const r=Object.keys(n);let o;try{GP(n)}catch(a){o=a}return function(i={},l){if(o)throw o;let s=!1;const c={};for(let d=0;d<r.length;d++){const f=r[d],v=n[f],g=i[f],y=v(g,l);if(typeof y>"u")throw l&&l.type,new Error(bn(14));c[f]=y,s=s||y!==g}return s=s||r.length!==Object.keys(i).length,s?c:i}}function xC(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function QP(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(bn(15))};const i={getState:o.getState,dispatch:(s,...c)=>a(s,...c)},l=e.map(s=>s(i));return a=xC(...l)(o.dispatch),{...o,dispatch:a}}}function XP(e){return({dispatch:n,getState:r})=>o=>a=>typeof a=="function"?a(n,r,e):o(a)}var YP=XP();const JP={appLoading:!1,btnLoading:!1},ZP=(e=JP,t)=>{switch(t.type){case"SET_LOADER":return{...e,appLoading:!0};case"UNSET_LOADER":return{...e,appLoading:!1};case"SET_BTN_LOADER":return{...e,btnLoading:!0};case"UNSET_BTN_LOADER":return{...e,btnLoading:!1};default:return e}},h0=localStorage.getItem("uniclare-token"),y0=localStorage.getItem("userInfo"),eI={userData:y0!=null?JSON.parse(y0):null,token:h0??null,loading:!1},tI=(e=eI,t)=>{const{type:n,payload:r}=t;switch(n){case"USER_INFO":return{...e,userData:r};case"CLEAR_USERINFO":return{...e,userData:null};case"USERS":return{...e,users:r};case"LOADING":return{...e,loading:!1};default:return e}},nI=(e=[],t)=>{const{type:n,payload:r}=t;switch(n){case"MENUS":return r;case"CLEAR_USERINFO":return e;default:return e}},rI=(e=[],t)=>{switch(t.type){case"SAVE_BANK_DETAILS":return t.payload;default:return e}},oI=(e=[],t)=>{switch(t.type){case"GET_QP_BANK_DETAILS":return t.payload;default:return e}},aI=(e=[],t)=>{switch(t.type){case"QP_GUIDELINES":return t.payload;default:return e}},iI=(e=[],t)=>{switch(t.type){case"GET_QP_DEGGRP":return t.payload;case"CLEAR_QP_DEGGRP":return t.payload;default:return e}},lI=(e=[],t)=>{switch(t.type){case"GET_QP_DEGREE":return t.payload;case"CLEAR_QP_DEGREE":return t.payload;default:return e}},sI=(e=[],t)=>{switch(t.type){case"GET_QP_BOARD":return t.payload;case"CLEAR_QP_BOARD":return t.payload;default:return e}},uI=(e=[],t)=>{switch(t.type){case"GET_QP_CODE":return t.payload;case"CLEAR_QP_CODE":return t.payload;default:return e}},cI=(e=[],t)=>{switch(t.type){case"GET_QP_PATTERN_UPD_DETAILS":return t.payload;case"CLEAR_QP_PATTERN_UPD_DETAILS":return t.payload;default:return e}},dI=(e=[],t)=>{switch(t.type){case"GET_QP_PATTERN_TEMP_CODE":return t.payload;case"CLEAR_QP_PATTERN_TEMP_CODE":return t.payload;default:return e}},fI=(e=[],t)=>{switch(t.type){case"EXAMNAME":return t.payload;default:return e}},vI=(e=[],t)=>{switch(t.type){case"GET_AVAILABLE_SUBJECTS":return t.payload;default:return e}},mI=(e=[],t)=>{switch(t.type){case"AVAILABLE_QP":return t.payload;case"CLEAR_AVAILABLE_QP":return t.payload;default:return e}},pI=(e=[],t)=>{switch(t.type){case"VIEW_DETAILED_AVAILABLE_QP":return t.payload;case"CLEAR_DETAILED_AVAILABLE_QP":return t.payload;default:return e}},gI=(e=[],t)=>{switch(t.type){case"ELIGIBLE_QP_SETTER":return t.payload;case"CLEAR_ELIGIBLE_QP_SETTER":return t.payload;default:return e}},hI=(e=[],t)=>{switch(t.type){case"SELECTED_QP_SETTER":return t.payload;case"CLEAR_SELECTED_QP_SETTER":return t.payload;default:return e}},yI=(e={},t)=>{switch(t.type){case"AVAILABLE_QP_DATA":return t.payload;case"CLEAR_AVAILABLE_QP_DATA":return t.payload;default:return e}},bI=(e=[],t)=>{switch(t.type){case"QP_DETAILS":return t.payload;case"CLEAR_QP_DETAILS":return t.payload;default:return e}},SI=(e=[],t)=>{switch(t.type){case"SET_QP_UPLOAD_DETAILS":return t.payload;case"CLEAR_SET_QP_UPLOAD_DETAILS":return t.payload;default:return e}},CI=(e=[],t)=>{switch(t.type){case"QP_UPD_NOTE":return t.payload;case"CLEAR_QP_UPD_NOTE":return t.payload;default:return e}},wI=(e=[],t)=>{switch(t.type){case"PREPARE_QP_DETAILS":return t.payload;case"CLEAR_PREPARE_QP_DETAILS":return t.payload;default:return e}},EI=(e=[],t)=>{switch(t.type){case"QUESTION_NOS":return t.payload;case"CLEAR_QUESTION_NOS":return t.payload;default:return e}},xI=(e=[],t)=>{switch(t.type){case"QN_FILE_DET":return t.payload;case"CLEAR_QN_FILE_DET":return t.payload;default:return e}},RI=(e=[],t)=>{switch(t.type){case"MCQ_SELECTED_QP_DATA":return t.payload;default:return e}},$I=(e=[],t)=>{switch(t.type){case"MOD_DETAILS":return t.payload;default:return e}},OI=(e=[],t)=>{switch(t.type){case"TEACHER_DETAILS":return t.payload;default:return e}},PI=(e=[],t)=>{switch(t.type){case"TEMP_DETAILS":return t.payload;case"CLEAR_TEMP_DETAILS":return t.payload;default:return e}},II=(e=[],t)=>{switch(t.type){case"TEMP_CODE_DETAILS":return t.payload;case"CLEAR_TEMP_CODE_DETAILS":return t.payload;default:return e}},_I=(e=[],t)=>{switch(t.type){case"SET_SELECT_FINAL_QP":return t.payload;default:return e}},TI=(e=[],t)=>{switch(t.type){case"SET_SELECT_MCQ_FINAL_QP":return t.payload;default:return e}},MI=(e=[],t)=>{switch(t.type){case"MOD_QP_ONLINE":return t.payload;default:return e}},NI=(e=[],t)=>{switch(t.type){case"MOD_QP_OFFLINE":return t.payload;default:return e}},LI=(e=[],t)=>{switch(t.type){case"MOD_QP_DATA":return t.payload;default:return e}},AI=(e=[],t)=>{switch(t.type){case"QP_SUMMARY":return t.payload;case"CLEAR_QP_SUMMARY":return t.payload;default:return e}},FI=(e=[],t)=>{switch(t.type){case"GENERATE_BILL":return t.payload;case"CLEAR_GENERATE_BILL":return t.payload;default:return e}},zI=(e=[],t)=>{switch(t.type){case"OTP_CORRECT":return t.payload;case"OTP_NOT_CORRECT":return t.payload;default:return e}},jI=(e=[],t)=>{switch(t.type){case"VALIDATE_PASSWORD":return{...e,validate:t.payload};case"CHECK_PASSWORD":return{...e,check:t.payload};default:return e}},DI=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGGRP":return t.payload;case"CLEAR_VIEW_QP_DEGGRP":return t.payload;default:return e}},BI=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_BOARD":return t.payload;case"CLEAR_VIEW_QP_BOARD":return t.payload;default:return e}},kI=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGREE":return t.payload;case"CLEAR_VIEW_QP_DEGREE":return t.payload;default:return e}},HI=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_SUBJ":return t.payload;case"CLEAR_VIEW_QP_SUBJ":return t.payload;default:return e}},VI=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DATA":return t.payload;case"CLEAR_VIEW_QP_DATA":return t.payload;default:return e}},WI=(e=[],t)=>{switch(t.type){case"VIEW_FINAL_QP_DATA":return t.payload;case"CLEAR_FINAL_QP_DATA":return t.payload;default:return e}},UI=qP({loginfo:tI,menuItems:nI,loader:ZP,saveBankDet:rI,getBankDet:oI,deggrp:iI,board:sI,qpcode:uI,tempcodes:dI,patternDetails:cI,degree:lI,availableQp:mI,detailedAvailableQp:pI,eligibleQpSetter:gI,qpsetters:hI,avlQpCount:yI,qpAcceptDetails:bI,qpUpdData:SI,qpUpdNote:CI,prepareQpDetails:wI,getQuestions:EI,getAssignMod:$I,teachers:OI,qnfiles:xI,tempDet:PI,tempcodedata:II,examnames:fI,getSelectFinalQP:_I,getPreparedOmrQp:TI,getModQpOnline:MI,getModQpOffile:NI,getModUpdData:LI,selectedFinalMcq:RI,qpsummary:AI,billgenerate:FI,changepwd:zI,oldPwd:jI,viewQPDeggrp:DI,viewBoardData:BI,viewDegreeData:kI,viewSubjData:HI,viewQPData:VI,viewFinalQP:WI,availableSubjects:vI,qpGuidelines:aI}),KI=(e,t)=>(t.type=="LOGOUT_USER"&&(e=void 0),UI(e,t)),GI=[YP],qI=window.REDUX_DEVTOOLS_EXTENSION_COMPOSE||xC,QI=KP(KI,qI(QP(...GI)));var RC={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(RC);var XI=RC.exports;const G=Ym(XI);function be(){return be=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},be.apply(null,arguments)}var $C={exports:{}},$t={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eg=Symbol.for("react.element"),tg=Symbol.for("react.portal"),Qc=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),Zc=Symbol.for("react.context"),YI=Symbol.for("react.server_context"),ed=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),nd=Symbol.for("react.suspense_list"),rd=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),JI=Symbol.for("react.offscreen"),OC;OC=Symbol.for("react.module.reference");function Or(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eg:switch(e=e.type,e){case Qc:case Yc:case Xc:case td:case nd:return e;default:switch(e=e&&e.$$typeof,e){case YI:case Zc:case ed:case od:case rd:case Jc:return e;default:return t}}case tg:return t}}}$t.ContextConsumer=Zc;$t.ContextProvider=Jc;$t.Element=eg;$t.ForwardRef=ed;$t.Fragment=Qc;$t.Lazy=od;$t.Memo=rd;$t.Portal=tg;$t.Profiler=Yc;$t.StrictMode=Xc;$t.Suspense=td;$t.SuspenseList=nd;$t.isAsyncMode=function(){return!1};$t.isConcurrentMode=function(){return!1};$t.isContextConsumer=function(e){return Or(e)===Zc};$t.isContextProvider=function(e){return Or(e)===Jc};$t.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eg};$t.isForwardRef=function(e){return Or(e)===ed};$t.isFragment=function(e){return Or(e)===Qc};$t.isLazy=function(e){return Or(e)===od};$t.isMemo=function(e){return Or(e)===rd};$t.isPortal=function(e){return Or(e)===tg};$t.isProfiler=function(e){return Or(e)===Yc};$t.isStrictMode=function(e){return Or(e)===Xc};$t.isSuspense=function(e){return Or(e)===td};$t.isSuspenseList=function(e){return Or(e)===nd};$t.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qc||e===Yc||e===Xc||e===td||e===nd||e===JI||typeof e=="object"&&e!==null&&(e.$$typeof===od||e.$$typeof===rd||e.$$typeof===Jc||e.$$typeof===Zc||e.$$typeof===ed||e.$$typeof===OC||e.getModuleId!==void 0)};$t.typeOf=Or;$C.exports=$t;var Tl=$C.exports;function Zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return K.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zo(r)):Tl.isFragment(r)&&r.props?n=n.concat(Zo(r.props.children,t)):n.push(r))}),n}var Gv={},ZI=function(t){};function e_(e,t){}function t_(e,t){}function n_(){Gv={}}function PC(e,t,n){!t&&!Gv[n]&&(e(!1,n),Gv[n]=!0)}function Tn(e,t){PC(e_,e,t)}function r_(e,t){PC(t_,e,t)}Tn.preMessage=ZI;Tn.resetWarned=n_;Tn.noteOnce=r_;function Ae(e){"@babel/helpers - typeof";return Ae=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},Ae(e)}function o_(e,t){if(Ae(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ae(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IC(e){var t=o_(e,"string");return Ae(t)=="symbol"?t:t+""}function j(e,t,n){return(t=IC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0(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 D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(n),!0).forEach(function(r){j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ns(e){return e instanceof HTMLElement||e instanceof SVGElement}function a_(e){return e&&Ae(e)==="object"&&ns(e.nativeElement)?e.nativeElement:ns(e)?e:null}function Ml(e){var t=a_(e);if(t)return t;if(e instanceof K.Component){var n;return(n=Bv.findDOMNode)===null||n===void 0?void 0:n.call(Bv,e)}return null}function Rs(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var ng=function(t,n){typeof t=="function"?t(n):Ae(t)==="object"&&t&&"current"in t&&(t.current=n)},Ur=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(a){n.forEach(function(i){ng(i,a)})}},Ba=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Rs(function(){return Ur.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,l){return i!==a[l]})})},aa=function(t){var n,r,o=Tl.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Tl.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Tl.ForwardRef)};function qv(e){return u.isValidElement(e)&&!Tl.isFragment(e)}var K8=function(t){return qv(t)&&aa(t)};Number(u.version.split(".")[0])>=19;var Qv=u.createContext(null);function i_(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),a=u.useContext(Qv),i=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(l,s,c)},[n,a]);return u.createElement(Qv.Provider,{value:i},t)}var _C=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!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,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),Xv=typeof window<"u"&&typeof document<"u"&&window.document===document,hc=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")()}(),l_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(hc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s_=2;function u_(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){l_(a)}function l(){var s=Date.now();if(n){if(s-o<s_)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var c_=20,d_=["top","right","bottom","left","width","height","size","weight"],f_=typeof MutationObserver<"u",v_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u_(this.refresh.bind(this),c_)}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(){!Xv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f_?(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(){!Xv||!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=d_.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),TC=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},Li=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||hc},MC=ad(0,0,0,0);function yc(e){return parseFloat(e)||0}function S0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+yc(a)},0)}function m_(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=yc(i)}return n}function p_(e){var t=e.getBBox();return ad(0,0,t.width,t.height)}function g_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return MC;var r=Li(e).getComputedStyle(e),o=m_(r),a=o.left+o.right,i=o.top+o.bottom,l=yc(r.width),s=yc(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=S0(r,"left","right")+a),Math.round(s+i)!==n&&(s-=S0(r,"top","bottom")+i)),!y_(e)){var c=Math.round(l+a)-t,d=Math.round(s+i)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d)}return ad(o.left,o.top,l,s)}var h_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Li(e).SVGGraphicsElement}:function(e){return e instanceof Li(e).SVGElement&&typeof e.getBBox=="function"}}();function y_(e){return e===Li(e).document.documentElement}function b_(e){return Xv?h_(e)?p_(e):g_(e):MC}function S_(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return TC(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function ad(e,t,n,r){return{x:e,y:t,width:n,height:r}}var C_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ad(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=b_(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}(),w_=function(){function e(t,n){var r=S_(n);TC(this,{target:t,contentRect:r})}return e}(),E_=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new _C,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 Li(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new C_(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 Li(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 w_(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}(),NC=typeof WeakMap<"u"?new WeakMap:new _C,LC=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=v_.getInstance(),r=new E_(t,n,this);NC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){LC.prototype[e]=function(){var t;return(t=NC.get(this))[e].apply(t,arguments)}});var x_=function(){return typeof hc.ResizeObserver<"u"?hc.ResizeObserver:LC}(),jo=new Map;function R_(e){e.forEach(function(t){var n,r=t.target;(n=jo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var AC=new x_(R_);function $_(e,t){jo.has(e)||(jo.set(e,new Set),AC.observe(e)),jo.get(e).add(t)}function O_(e,t){jo.has(e)&&(jo.get(e).delete(t),jo.get(e).size||(AC.unobserve(e),jo.delete(e)))}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C0(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,IC(r.key),r)}}function hn(e,t,n){return t&&C0(e.prototype,t),n&&C0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rs(e,t)}function ia(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&&rs(e,t)}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},os(e)}function rg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rg=function(){return!!e})()}function it(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P_(e,t){if(t&&(Ae(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}function la(e){var t=rg();return function(){var n,r=os(e);if(t){var o=os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P_(this,n)}}var I_=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function __(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(Qv),l=typeof n=="function",s=l?n(o):n,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u.isValidElement(s)&&aa(s),f=d?s.ref:null,v=Ba(f,o),g=function(){var h;return Ml(o.current)||(o.current&&Ae(o.current)==="object"?Ml((h=o.current)===null||h===void 0?void 0:h.nativeElement):null)||Ml(a.current)};u.useImperativeHandle(t,function(){return g()});var y=u.useRef(e);y.current=e;var b=u.useCallback(function(S){var h=y.current,m=h.onResize,p=h.data,C=S.getBoundingClientRect(),w=C.width,x=C.height,E=S.offsetWidth,R=S.offsetHeight,O=Math.floor(w),I=Math.floor(x);if(c.current.width!==O||c.current.height!==I||c.current.offsetWidth!==E||c.current.offsetHeight!==R){var A={width:O,height:I,offsetWidth:E,offsetHeight:R};c.current=A;var M=E===Math.round(w)?w:E,z=R===Math.round(x)?x:R,_=D(D({},A),{},{offsetWidth:M,offsetHeight:z});i==null||i(_,S,p),m&&Promise.resolve().then(function(){m(_,S)})}},[]);return u.useEffect(function(){var S=g();return S&&!r&&$_(S,b),function(){return O_(S,b)}},[o.current,r]),u.createElement(I_,{ref:a},d?u.cloneElement(s,{ref:v}):s)}var T_=u.forwardRef(__),M_="rc-observer-key";function N_(e,t){var n=e.children,r=typeof n=="function"?[n]:Zo(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(M_,"-").concat(a);return u.createElement(T_,be({},e,{key:i,ref:a===0?t:void 0}),o)})}var Dr=u.forwardRef(N_);Dr.Collection=i_;function cr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Yv(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 L_(e){if(Array.isArray(e))return Yv(e)}function FC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function og(e,t){if(e){if(typeof e=="string")return Yv(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)?Yv(e,t):void 0}}function A_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return L_(e)||FC(e)||og(e)||A_()}var zC=function(t){return+setTimeout(t,16)},jC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(zC=function(t){return window.requestAnimationFrame(t)},jC=function(t){return window.cancelAnimationFrame(t)});var w0=0,ag=new Map;function DC(e){ag.delete(e)}var xt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;w0+=1;var r=w0;function o(a){if(a===0)DC(r),t();else{var i=zC(function(){o(a-1)});ag.set(r,i)}}return o(n),r};xt.cancel=function(e){var t=ag.get(e);return DC(e),jC(t)};function BC(e){if(Array.isArray(e))return e}function F_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function kC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(e,t){return BC(e)||F_(e,t)||og(e,t)||kC()}function as(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 Fn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jv(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 E0="data-rc-order",x0="data-rc-priority",z_="rc-util-key",Zv=new Map;function HC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):z_}function id(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function j_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ig(e){return Array.from((Zv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function VC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=j_(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(E0,i),l&&a&&s.setAttribute(x0,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=id(t),d=c.firstChild;if(r){if(l){var f=(t.styles||ig(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(E0)))return!1;var g=Number(v.getAttribute(x0)||0);return a>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function WC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=id(t);return(t.styles||ig(n)).find(function(r){return r.getAttribute(HC(t))===e})}function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=WC(e,t);if(n){var r=id(t);r.removeChild(n)}}function D_(e,t){var n=Zv.get(e);if(!n||!Jv(document,n)){var r=VC("",t),o=r.parentNode;Zv.set(e,o),e.removeChild(r)}}function fo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=id(n),o=ig(r),a=D(D({},n),{},{styles:o});D_(r,a);var i=WC(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=VC(e,a);return d.setAttribute(HC(a),t),d}function B_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function at(e,t){if(e==null)return{};var n,r,o=B_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ls(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(Tn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var c=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],c))return!1;return!0}if(a&&i&&Ae(a)==="object"&&Ae(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(v){return o(a[v],i[v],c)})}return!1}return o(e,t)}var k_="%";function em(e){return e.join(k_)}var H_=function(){function e(t){gn(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t}return hn(e,[{key:"get",value:function(n){return this.opGet(em(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(em(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Ai="data-token-hash",Br="data-css-hash",Do="__cssinjs_instance__";function V_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Br,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Do]=o[Do]||e,o[Do]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Br,"]"))).forEach(function(o){var a=o.getAttribute(Br);if(r[a]){if(o[Do]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new H_(e)}var W_=u.createContext({hashPriority:"low",cache:V_(),defaultCache:!0});const ld=W_;var UC=hn(function e(){gn(this,e)}),KC="CALC_UNIT",U_=new RegExp(KC,"g");function cf(e){return typeof e=="number"?"".concat(e).concat(KC):e}var K_=function(e){ia(n,e);var t=la(n);function n(r,o){var a;gn(this,n),a=t.call(this),j(it(a),"result",""),j(it(a),"unitlessCssVar",void 0),j(it(a),"lowPriority",void 0);var i=Ae(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=cf(r):i==="string"&&(a.result=r),a}return hn(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(cf(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(cf(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 a=this,i=o||{},l=i.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(s=!1),this.result=this.result.replace(U_,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(UC),G_=function(e){ia(n,e);var t=la(n);function n(r){var o;return gn(this,n),o=t.call(this),j(it(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return hn(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}(UC),q_=function(t,n){var r=t==="css"?K_:G_;return function(o){return new r(o,n)}};function Q_(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 lg=function(){function e(){gn(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return hn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,d){var f=V(c,2),v=f[1];return o.internalGet(d)[1]<v?[d,o.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=V(a,1),l=i[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,d){if(d===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Q_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();j(lg,"MAX_CACHE_SIZE",20);j(lg,"MAX_CACHE_OFFSET",5);var R0=0,GC=function(){function e(t){gn(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=R0,t.length===0&&(t.length>0,void 0),R0+=1}return hn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),df=new lg;function tm(e){var t=Array.isArray(e)?e:[e];return df.has(t)||df.set(t,new GC(t)),df.get(t)}var X_=new WeakMap,ff={};function Y_(e,t){for(var n=X_,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(ff)||n.set(ff,e()),n.get(ff)}var $0=new WeakMap;function Nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=$0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof GC?n+=o.id:o&&Ae(o)==="object"?n+=Nl(o,t):n+=o}),t&&(n=as(n)),$0.set(e,n)),n}function O0(e,t){return as("".concat(t,"_").concat(Nl(e,!0)))}var nm=Fn();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function bc(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 a=D(D({},r),{},j(j({},Ai,t),Br,n)),i=Object.keys(a).map(function(l){var s=a[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Iu=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()},J_=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 a=V(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},qC=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,c=V(i,2),d=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var v,g=Iu(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,J_(o,n,{scope:r==null?void 0:r.scope})]},P0=Fn()?u.useLayoutEffect:u.useEffect,zt=function(t,n){var r=u.useRef(!0);P0(function(){return t(r.current)},n),P0(function(){return r.current=!1,function(){r.current=!0}},[])},rm=function(t,n){zt(function(r){if(!r)return t()},n)},Z_=D({},$a),I0=Z_.useInsertionEffect,eT=function(t,n,r){u.useMemo(t,r),zt(function(){return n(!0)},r)},tT=I0?function(e,t,n){return I0(function(){return e(),t()},n)}:eT;const nT=tT;var rT=D({},$a),oT=rT.useInsertionEffect,aT=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},iT=function(){return function(t){t()}},lT=typeof oT<"u"?aT:iT;const sT=lT;function sg(e,t,n,r,o){var a=u.useContext(ld),i=a.cache,l=[e].concat(ye(t)),s=em(l),c=sT([s]),d=function(y){i.opUpdate(s,function(b){var S=b||[void 0,void 0],h=V(S,2),m=h[0],p=m===void 0?0:m,C=h[1],w=C,x=w||n(),E=[p,x];return y?y(E):E})};u.useMemo(function(){d()},[s]);var f=i.opGet(s),v=f[1];return nT(function(){o==null||o(v)},function(g){return d(function(y){var b=V(y,2),S=b[0],h=b[1];return g&&S===0&&(o==null||o(v)),[S+1,h]}),function(){i.opUpdate(s,function(y){var b=y||[],S=V(b,2),h=S[0],m=h===void 0?0:h,p=S[1],C=m-1;return C===0?(c(function(){(g||!i.opGet(s))&&(r==null||r(p,!1))}),null):[m-1,p]})}},[s]),v}var uT={},cT="css",va=new Map;function dT(e){va.set(e,(va.get(e)||0)+1)}function fT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ai,'="').concat(e,'"]'));n.forEach(function(r){if(r[Do]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var vT=0;function mT(e,t){va.set(e,(va.get(e)||0)-1);var n=Array.from(va.keys()),r=n.filter(function(o){var a=va.get(o)||0;return a<=0});n.length-r.length>vT&&r.forEach(function(o){fT(o,t),va.delete(o)})}var pT=function(t,n,r,o){var a=r.getDerivativeToken(t),i=D(D({},a),n);return o&&(i=o(i)),i},QC="token";function gT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(ld),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?uT:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,g=Y_(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),y=Nl(g),b=Nl(c),S=v?Nl(v):"",h=sg(QC,[l,e.id,y,b,S],function(){var m,p=f?f(g,c,e):pT(g,c,e,d),C=D({},p),w="";if(v){var x=qC(p,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),E=V(x,2);p=E[0],w=E[1]}var R=O0(p,l);p._tokenKey=R,C._tokenKey=O0(C,l);var O=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:R;p._themeKey=O,dT(O);var I="".concat(cT,"-").concat(as(R));return p._hashId=I,[p,I,C,w,(v==null?void 0:v.key)||""]},function(m){mT(m[0]._themeKey,o)},function(m){var p=V(m,4),C=p[0],w=p[3];if(v&&w){var x=fo(w,as("css-variables-".concat(C._themeKey)),{mark:Br,prepend:"queue",attachTo:a,priority:-999});x[Do]=o,x.setAttribute(Ai,C._themeKey)}});return h}var hT=function(t,n,r){var o=V(t,5),a=o[2],i=o[3],l=o[4],s=r||{},c=s.plain;if(!i)return null;var d=a._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=bc(i,l,d,v,c);return[f,d,g]},yT={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},XC="comm",YC="rule",JC="decl",bT="@import",ST="@keyframes",CT="@layer",ZC=Math.abs,ug=String.fromCharCode;function ew(e){return e.trim()}function _u(e,t,n){return e.replace(t,n)}function wT(e,t,n){return e.indexOf(t,n)}function ss(e,t){return e.charCodeAt(t)|0}function us(e,t,n){return e.slice(t,n)}function lo(e){return e.length}function ET(e){return e.length}function ou(e,t){return t.push(e),e}var sd=1,Fi=1,tw=0,$r=0,en=0,Ki="";function cg(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:sd,column:Fi,length:i,return:"",siblings:l}}function xT(){return en}function RT(){return en=$r>0?ss(Ki,--$r):0,Fi--,en===10&&(Fi=1,sd--),en}function kr(){return en=$r<tw?ss(Ki,$r++):0,Fi++,en===10&&(Fi=1,sd++),en}function Ea(){return ss(Ki,$r)}function Tu(){return $r}function ud(e,t){return us(Ki,e,t)}function om(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 $T(e){return sd=Fi=1,tw=lo(Ki=e),$r=0,[]}function OT(e){return Ki="",e}function vf(e){return ew(ud($r-1,am(e===91?e+2:e===40?e+1:e)))}function PT(e){for(;(en=Ea())&&en<33;)kr();return om(e)>2||om(en)>3?"":" "}function IT(e,t){for(;--t&&kr()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return ud(e,Tu()+(t<6&&Ea()==32&&kr()==32))}function am(e){for(;kr();)switch(en){case e:return $r;case 34:case 39:e!==34&&e!==39&&am(en);break;case 40:e===41&&am(e);break;case 92:kr();break}return $r}function _T(e,t){for(;kr()&&e+en!==57;)if(e+en===84&&Ea()===47)break;return"/*"+ud(t,$r-1)+"*"+ug(e===47?e:kr())}function TT(e){for(;!om(Ea());)kr();return ud(e,$r)}function MT(e){return OT(Mu("",null,null,null,[""],e=$T(e),0,[0],e))}function Mu(e,t,n,r,o,a,i,l,s){for(var c=0,d=0,f=i,v=0,g=0,y=0,b=1,S=1,h=1,m=0,p="",C=o,w=a,x=r,E=p;S;)switch(y=m,m=kr()){case 40:if(y!=108&&ss(E,f-1)==58){wT(E+=_u(vf(m),"&","&\f"),"&\f",ZC(c?l[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:E+=vf(m);break;case 9:case 10:case 13:case 32:E+=PT(y);break;case 92:E+=IT(Tu()-1,7);continue;case 47:switch(Ea()){case 42:case 47:ou(NT(_T(kr(),Tu()),t,n,s),s);break;default:E+="/"}break;case 123*b:l[c++]=lo(E)*h;case 125*b:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+d:h==-1&&(E=_u(E,/\f/g,"")),g>0&&lo(E)-f&&ou(g>32?T0(E+";",r,n,f-1,s):T0(_u(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(ou(x=_0(E,t,n,c,d,o,l,p,C=[],w=[],f,a),a),m===123)if(d===0)Mu(E,t,x,x,C,a,f,l,w);else switch(v===99&&ss(E,3)===110?100:v){case 100:case 108:case 109:case 115:Mu(e,x,x,r&&ou(_0(e,x,x,0,0,o,l,p,o,C=[],f,w),w),o,w,f,l,r?C:w);break;default:Mu(E,x,x,x,[""],w,0,l,w)}}c=d=g=0,b=h=1,p=E="",f=i;break;case 58:f=1+lo(E),g=y;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&RT()==125)continue}switch(E+=ug(m),m*b){case 38:h=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(lo(E)-1)*h,h=1;break;case 64:Ea()===45&&(E+=vf(kr())),v=Ea(),d=f=lo(p=E+=TT(Tu())),m++;break;case 45:y===45&&lo(E)==2&&(b=0)}}return a}function _0(e,t,n,r,o,a,i,l,s,c,d,f){for(var v=o-1,g=o===0?a:[""],y=ET(g),b=0,S=0,h=0;b<r;++b)for(var m=0,p=us(e,v+1,v=ZC(S=i[b])),C=e;m<y;++m)(C=ew(S>0?g[m]+" "+p:_u(p,/&\f/g,g[m])))&&(s[h++]=C);return cg(e,t,n,o===0?YC:l,s,c,d,f)}function NT(e,t,n,r){return cg(e,t,n,XC,ug(xT()),us(e,2,-2),0,r)}function T0(e,t,n,r,o){return cg(e,t,n,JC,us(e,0,r),us(e,r+1,-1),r,o)}function im(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function LT(e,t,n,r){switch(e.type){case CT:if(e.children.length)break;case bT:case JC:return e.return=e.return||e.value;case XC:return"";case ST:return e.return=e.value+"{"+im(e.children,r)+"}";case YC:if(!lo(e.value=e.props.join(",")))return""}return lo(n=im(e.children,r))?e.return=e.value+"{"+n+"}":""}var M0="data-ant-cssinjs-cache-path",nw="_FILE_STYLE__",xa,rw=!0;function AT(){if(!xa&&(xa={},Fn())){var e=document.createElement("div");e.className=M0,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 a=o.split(":"),i=V(a,2),l=i[0],s=i[1];xa[l]=s});var n=document.querySelector("style[".concat(M0,"]"));if(n){var r;rw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function FT(e){return AT(),!!xa[e]}function zT(e){var t=xa[e],n=null;if(t&&Fn())if(rw)n=nw;else{var r=document.querySelector("style[".concat(Br,'="').concat(xa[e],'"]'));r?n=r.innerHTML:delete xa[e]}return[n,t]}var jT="_skip_check_",ow="_multi_value_";function Nu(e){var t=im(MT(e),LT);return t.replace(/\{%%%\:[^;];}/g,";")}function DT(e){return Ae(e)==="object"&&e&&(jT in e||ow in e)}function BT(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(ye(s.slice(1))).join(" ")});return a.join(",")}var kT=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,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var v="",g={};function y(h){var m=h.getName(l);if(!g[m]){var p=e(h.style,n,{root:!1,parentSelectors:i}),C=V(p,1),w=C[0];g[m]="@keyframes ".concat(h.getName(l)).concat(w)}}function b(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(p){Array.isArray(p)?b(p,m):p&&m.push(p)}),m}var S=b(Array.isArray(t)?t:[t]);return S.forEach(function(h){var m=typeof h=="string"&&!o?{}:h;if(typeof m=="string")v+="".concat(m,`
`);else if(m._keyframe)y(m);else{var p=f.reduce(function(C,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,C))||C},m);Object.keys(p).forEach(function(C){var w=p[C];if(Ae(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!DT(w)){var x=!1,E=C.trim(),R=!1;(o||a)&&l?E.startsWith("@")?x=!0:E=BT(C,l,c):o&&!l&&(E==="&"||E==="")&&(E="",R=!0);var O=e(w,n,{root:R,injectHash:x,parentSelectors:[].concat(ye(i),[E])}),I=V(O,2),A=I[0],M=I[1];g=D(D({},g),M),v+="".concat(E).concat(A)}else{let H=function(F,P){var $=F.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),L=P;!yT[F]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),F==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),L=P.getName(l)),v+="".concat($,":").concat(L,";")};var z,_=(z=w==null?void 0:w.value)!==null&&z!==void 0?z:w;Ae(w)==="object"&&w!==null&&w!==void 0&&w[ow]&&Array.isArray(_)?_.forEach(function(F){H(C,F)}):H(C,_)}})}}),o?s&&(v="@layer ".concat(s.name," {").concat(v,"}"),s.dependencies&&(g["@layer ".concat(s.name)]=s.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(s.name,";")}).join(`
`))):v="{".concat(v,"}"),[v,g]};function aw(e,t){return as("".concat(e.join("%")).concat(t))}function HT(){return null}var iw="style";function lm(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(ld),f=d.autoClear;d.mock;var v=d.defaultCache,g=d.hashPriority,y=d.container,b=d.ssrInline,S=d.transformers,h=d.linters,m=d.cache,p=d.layer,C=n._tokenKey,w=[C];p&&w.push("layer"),w.push.apply(w,ye(r));var x=nm,E=sg(iw,w,function(){var M=w.join("|");if(FT(M)){var z=zT(M),_=V(z,2),H=_[0],F=_[1];if(H)return[H,C,F,{},l,c]}var P=t(),$=kT(P,{hashId:o,hashPriority:g,layer:p?a:void 0,path:r.join("-"),transformers:S,linters:h}),L=V($,2),N=L[0],T=L[1],B=Nu(N),k=aw(w,B);return[B,C,k,T,l,c]},function(M,z){var _=V(M,3),H=_[2];(z||f)&&nm&&is(H,{mark:Br})},function(M){var z=V(M,4),_=z[0];z[1];var H=z[2],F=z[3];if(x&&_!==nw){var P={mark:Br,prepend:p?!1:"queue",attachTo:y,priority:c},$=typeof i=="function"?i():i;$&&(P.csp={nonce:$});var L=[],N=[];Object.keys(F).forEach(function(B){B.startsWith("@layer")?L.push(B):N.push(B)}),L.forEach(function(B){fo(Nu(F[B]),"_layer-".concat(B),D(D({},P),{},{prepend:!0}))});var T=fo(_,H,P);T[Do]=m.instanceId,T.setAttribute(Ai,C),N.forEach(function(B){fo(Nu(F[B]),"_effect-".concat(B),P)})}}),R=V(E,3),O=R[0],I=R[1],A=R[2];return function(M){var z;return!b||x||!v?z=u.createElement(HT,null):z=u.createElement("style",be({},j(j({},Ai,I),Br,A),{dangerouslySetInnerHTML:{__html:O}})),u.createElement(u.Fragment,null,z,M)}}var VT=function(t,n,r){var o=V(t,6),a=o[0],i=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},v=f.plain;if(c)return null;var g=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=bc(a,i,l,y,v),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var S=Nu(s[b]),h=bc(S,i,"_effect-".concat(b),y,v);b.startsWith("@layer")?g=h+g:g+=h}}),[d,l,g]},lw="cssVar",WT=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(ld),f=d.cache.instanceId,v=d.container,g=l._tokenKey,y=[].concat(ye(t.path),[r,c,g]),b=sg(lw,y,function(){var S=n(),h=qC(S,r,{prefix:o,unitless:a,ignore:i,scope:c}),m=V(h,2),p=m[0],C=m[1],w=aw(y,C);return[p,C,w,r]},function(S){var h=V(S,3),m=h[2];nm&&is(m,{mark:Br})},function(S){var h=V(S,3),m=h[1],p=h[2];if(m){var C=fo(m,p,{mark:Br,prepend:"queue",attachTo:v,priority:-999});C[Do]=f,C.setAttribute(Ai,r)}});return b},UT=function(t,n,r){var o=V(t,4),a=o[1],i=o[2],l=o[3],s=r||{},c=s.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=bc(a,l,i,f,c);return[d,i,v]};j(j(j({},iw,VT),QC,hT),lw,UT);var ht=function(){function e(t,n){gn(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return hn(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 Qa(e){return e.notSplit=!0,e}Qa(["borderTop","borderBottom"]),Qa(["borderTop"]),Qa(["borderBottom"]),Qa(["borderLeft","borderRight"]),Qa(["borderLeft"]),Qa(["borderRight"]);var dg=u.createContext({});function sw(e){return BC(e)||FC(e)||og(e)||kC()}function Yr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function uw(e,t,n,r){if(!t.length)return n;var o=sw(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=ye(e):l=D({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=uw(l[a],i,n,r),l}function Lr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Yr(e,t.slice(0,-1))?e:uw(e,t,n,r)}function KT(e){return Ae(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function N0(e){return Array.isArray(e)?[]:{}}var GT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=N0(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=Yr(o,i),d=Array.isArray(c);if(d||KT(c)){if(!s.has(c)){s.add(c);var f=Yr(r,i);d?r=Lr(r,i,[]):(!f||Ae(f)!=="object")&&(r=Lr(r,i,N0(c))),GT(c).forEach(function(v){a([].concat(ye(i),[v]),s)})}}else r=Lr(r,i,c)}a([])}),r}function qT(){}const QT=u.createContext({}),XT=()=>{const e=()=>{};return e.deprecated=qT,e},YT=u.createContext(void 0);var JT={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"},ZT={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 cw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},L0={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"]},ZT),timePickerLocale:Object.assign({},cw)},Jn="${label} is not a valid ${type}",Na={locale:"en",Pagination:JT,DatePicker:L0,TimePicker:cw,Calendar:L0,global:{placeholder:"Please select"},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:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,url:Jn,hex:Jn},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"}};let Lu=Object.assign({},Na.Modal),Au=[];const A0=()=>Au.reduce((e,t)=>Object.assign(Object.assign({},e),t),Na.Modal);function eM(e){if(e){const t=Object.assign({},e);return Au.push(t),Lu=A0(),()=>{Au=Au.filter(n=>n!==t),Lu=A0()}}Lu=Object.assign({},Na.Modal)}function dw(){return Lu}const fg=u.createContext(void 0),cd=(e,t)=>{const n=u.useContext(fg),r=u.useMemo(()=>{var a;const i=t||Na[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Na.locale:a},[n]);return[r,o]},tM="internalMark",nM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>eM(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(fg.Provider,{value:o},n)};function xn(e,t){rM(e)&&(e="100%");var n=oM(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function au(e){return Math.min(1,Math.max(0,e))}function rM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function oM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function fw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function iu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ya(e){return e.length===1?"0"+e:String(e)}function aM(e,t,n){return{r:xn(e,255)*255,g:xn(t,255)*255,b:xn(n,255)*255}}function F0(e,t,n){e=xn(e,255),t=xn(t,255),n=xn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:i,l}}function mf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iM(e,t,n){var r,o,a;if(e=xn(e,360),t=xn(t,100),n=xn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=mf(l,i,e+1/3),o=mf(l,i,e),a=mf(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function sm(e,t,n){e=xn(e,255),t=xn(t,255),n=xn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function lM(e,t,n){e=xn(e,360)*6,t=xn(t,100),n=xn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,i,a,a,l,n][s],d=[l,n,n,i,a,a][s],f=[a,a,l,n,n,i][s];return{r:c*255,g:d*255,b:f*255}}function um(e,t,n,r){var o=[ya(Math.round(e).toString(16)),ya(Math.round(t).toString(16)),ya(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function sM(e,t,n,r,o){var a=[ya(Math.round(e).toString(16)),ya(Math.round(t).toString(16)),ya(Math.round(n).toString(16)),ya(uM(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function uM(e){return Math.round(parseFloat(e)*255).toString(16)}function z0(e){return er(e)/255}function er(e){return parseInt(e,16)}function cM(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var cm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ri(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=vM(e)),typeof e=="object"&&(ro(e.r)&&ro(e.g)&&ro(e.b)?(t=aM(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ro(e.h)&&ro(e.s)&&ro(e.v)?(r=iu(e.s),o=iu(e.v),t=lM(e.h,r,o),i=!0,l="hsv"):ro(e.h)&&ro(e.s)&&ro(e.l)&&(r=iu(e.s),a=iu(e.l),t=iM(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=fw(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var dM="[-\\+]?\\d+%?",fM="[-\\+]?\\d*\\.\\d+%?",Bo="(?:".concat(fM,")|(?:").concat(dM,")"),pf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),gf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(Bo),rgb:new RegExp("rgb"+pf),rgba:new RegExp("rgba"+gf),hsl:new RegExp("hsl"+pf),hsla:new RegExp("hsla"+gf),hsv:new RegExp("hsv"+pf),hsva:new RegExp("hsva"+gf),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function vM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(cm[e])e=cm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tr.hex8.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),a:z0(n[4]),format:t?"name":"hex8"}:(n=Tr.hex6.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),format:t?"name":"hex"}:(n=Tr.hex4.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),a:z0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tr.hex3.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ro(e){return!!Tr.CSS_UNIT.exec(String(e))}var wn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=cM(t)),this.originalInput=t;var o=ri(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=fw(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=sm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=sm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=F0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=F0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),um(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),sM(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+um(this.r,this.g,this.b,!1),n=0,r=Object.entries(cm);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=au(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=au(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=au(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=au(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),lu=2,j0=.16,mM=.05,pM=.05,gM=.15,vw=5,mw=4,hM=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function D0(e){var t=e.r,n=e.g,r=e.b,o=sm(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function su(e){var t=e.r,n=e.g,r=e.b;return"#".concat(um(t,n,r,!1))}function yM(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function B0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function k0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-j0*t:t===mw?r=e.s+j0:r=e.s+mM*t,r>1&&(r=1),n&&t===vw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function H0(e,t,n){var r;return n?r=e.v+pM*t:r=e.v-gM*t,r>1&&(r=1),Number(r.toFixed(2))}function cs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ri(e),o=vw;o>0;o-=1){var a=D0(r),i=su(ri({h:B0(a,o,!0),s:k0(a,o,!0),v:H0(a,o,!0)}));n.push(i)}n.push(su(r));for(var l=1;l<=mw;l+=1){var s=D0(r),c=su(ri({h:B0(s,l),s:k0(s,l),v:H0(s,l)}));n.push(c)}return t.theme==="dark"?hM.map(function(d){var f=d.index,v=d.opacity,g=su(yM(ri(t.backgroundColor||"#141414"),ri(n[f]),v*100));return g}):n}var G8={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"},dm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dm.primary=dm[5];const pw={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"},ds=Object.assign(Object.assign({},pw),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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});function bM(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),v=n(o),g=n(a),y=n(i),b=n(l),S=r(c,d),h=e.colorLink||e.colorInfo,m=n(h);return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new wn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const SM=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 CM(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},SM(r))}const wM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Fu(e){return(e+8)/e}function EM(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Fu(n)}))}const xM=e=>{const t=EM(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function RM(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 oo=(e,t)=>new wn(e).setAlpha(t).toRgbString(),ul=(e,t)=>new wn(e).darken(t).toHexString(),$M=e=>{const t=cs(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]}},OM=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgLayout:ul(n,4),colorBgContainer:ul(n,0),colorBgElevated:ul(n,0),colorBgSpotlight:oo(r,.85),colorBgBlur:"transparent",colorBorder:ul(n,15),colorBorderSecondary:ul(n,6)}};function PM(e){const t=Object.keys(pw).map(n=>{const r=cs(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),bM(e,{generateColorPalettes:$M,generateNeutralColorPalettes:OM})),xM(e.fontSize)),RM(e)),wM(e)),CM(e))}const gw=tm(PM),fm={token:ds,override:{override:ds},hashed:!0},hw=K.createContext(fm),vg="anticon",IM=["outlined","borderless","filled"],_M=(e,t)=>t||(e?`ant-${e}`:"ant"),ct=u.createContext({getPrefixCls:_M,iconPrefixCls:vg}),TM=`-ant-${Date.now()}-${Math.random()}`;function MM(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new wn(i),c=cs(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new wn(t.primaryColor),l=cs(i.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new wn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.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"),`
  :root {
    ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
  }
  `.trim()}function NM(e,t){const n=MM(e,t);Fn()&&fo(n,`${TM}-dynamic-theme`)}const La=u.createContext(!1),yw=e=>{let{children:t,disabled:n}=e;const r=u.useContext(La);return u.createElement(La.Provider,{value:n??r},t)},zi=u.createContext(void 0),LM=e=>{let{children:t,size:n}=e;const r=u.useContext(zi);return u.createElement(zi.Provider,{value:n||r},t)};function AM(){const e=u.useContext(La),t=u.useContext(zi);return{componentDisabled:e,componentSize:t}}const FM="5.19.0";function hf(e){return e>=0&&e<=255}function uu(e,t){const{r:n,g:r,b:o,a}=new wn(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new wn(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-i*(1-c))/c),f=Math.round((r-l*(1-c))/c),v=Math.round((o-s*(1-c))/c);if(hf(d)&&hf(f)&&hf(v))return new wn({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new wn({r:n,g:r,b:o,a:1}).toRgbString()}var zM=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 bw(e){const{override:t}=e,n=zM(e,["override"]),r=Object.assign({},t);Object.keys(ds).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,c=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:uu(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:uu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:uu(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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:uu(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:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new wn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new wn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new wn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,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 V0=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 Sw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Cw={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},jM={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},ww=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=V0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=bw(i),a&&Object.entries(a).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=V0(c,["theme"]);let v=f;d&&(v=ww(Object.assign(Object.assign({},i),f),{override:f},d)),i[s]=v}),i};function lr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=K.useContext(hw),a=`${FM}-${t||""}`,i=n||gw,[l,s,c]=gT(i,[ds,e],{salt:a,override:r,getComputedToken:ww,formatToken:bw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Sw,ignore:Cw,preserve:jM}});return[i,c,t?s:"",l,o]}function tn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function ji(e){var t=u.useRef(!1),n=u.useState(e),r=V(n,2),o=r[0],a=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||a(l)}return[o,i]}function yf(e){return e!==void 0}function ar(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=ji(function(){return yf(o)?o:yf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=V(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,v=i?i(f):f,g=tn(a),y=ji([f]),b=V(y,2),S=b[0],h=b[1];rm(function(){var p=S[0];c!==p&&g(c,p)},[S]),rm(function(){yf(o)||d(o)},[o]);var m=tn(function(p,C){d(p,C),h([f],C)});return[v,m]}const DM=1e3*60*10;let BM=function(){function e(){gn(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return hn(e,[{key:"set",value:function(n,r){this.clear();const o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){const 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){return n.map(o=>o&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);const r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){if(this.accessBeat>1e4){const n=Date.now();this.lastAccessBeat.forEach((r,o)=>{n-r>DM&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}])}();const W0=new BM;function kM(e,t){return K.useMemo(()=>{const n=W0.get(t);if(n)return n;const r=e();return W0.set(t,r),r},t)}const Di={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},to=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},mg=()=>({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"}}),Gi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),HM=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"}}}),VM=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),i),{[o]:i})}},WM=e=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),dd=e=>({"&:focus-visible":Object.assign({},WM(e))});function UM(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`max(${n.map(o=>J(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>J(o)).join(",")})`}}}const Ew=typeof CSSINJS_STATISTIC<"u";let vm=!0;function Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ew)return Object.assign.apply(Object,[{}].concat(t));vm=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),vm=!0,r}const U0={};function KM(){}const GM=e=>{let t,n=e,r=KM;return Ew&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return vm&&t.add(a),o[a]}}),r=(o,a)=>{var i;U0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=U0[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},xw=(e,t)=>{const[n,r]=lr();return lm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},mg()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Rw=(e,t,n)=>{var r;return typeof n=="function"?n(Ut(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},$w=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[s,c]=l;var d;(o!=null&&o[s]||o!=null&&o[c])&&((d=o[c])!==null&&d!==void 0||(o[c]=o==null?void 0:o[s]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},K0=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function pg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[c,d,f,v,g]=lr(),{getPrefixCls:y,iconPrefixCls:b,csp:S}=u.useContext(ct),h=y(),m=g?"css":"js",p=kM(()=>{const R=new Set;return g&&Object.keys(r.unitless||{}).forEach(O=>{R.add(Iu(O,g.prefix)),R.add(Iu(O,K0(a,g.prefix)))}),q_(m,R)},[m,a,g==null?void 0:g.prefix]),{max:C,min:w}=UM(m),x={theme:c,token:v,hashId:f,nonce:()=>S==null?void 0:S.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return lm(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":HM(v)}]),xw(b,S),[lm(Object.assign(Object.assign({},x),{path:[i,l,b]}),()=>{if(r.injectStyle===!1)return[];const{token:R,flush:O}=GM(v),I=Rw(a,d,n),A=`.${l}`,M=$w(a,d,I,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(I).forEach(H=>{I[H]=`var(${Iu(H,K0(a,g.prefix))})`});const z=Ut(R,{componentCls:A,prefixCls:l,iconCls:`.${b}`,antCls:`.${h}`,calc:p,max:C,min:w},g?I:M),_=t(z,{hashId:f,prefixCls:l,rootPrefixCls:h,iconPrefixCls:b});return O(a,M),[r.resetStyle===!1?null:VM(z,l,s,r.resetFont),_]}),f]}}const Ow=(e,t,n,r)=>{const o=pg(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:s=l}=i;return o(l,s),null}},qM=(e,t,n)=>{const{unitless:r,injectStyle:o=!0,prefixToken:a}=n,i=s=>{let{rootCls:c,cssVar:d}=s;const[,f]=lr();return WT({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:r,ignore:Cw,token:f,scope:c},()=>{const v=Rw(e,f,t),g=$w(e,f,v,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(v).forEach(y=>{g[a(y)]=g[y],delete g[y]}),g}),null};return s=>{const[,,,,c]=lr();return[d=>o&&c?K.createElement(K.Fragment,null,K.createElement(i,{rootCls:s,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},Pr=(e,t,n,r)=>{const o=Array.isArray(e)?e[0]:e;function a(f){return`${o}${f.slice(0,1).toUpperCase()}${f.slice(1)}`}const i=(r==null?void 0:r.unitless)||{},l=Object.assign(Object.assign({},Sw),{[a("zIndexPopup")]:!0});Object.keys(i).forEach(f=>{l[a(f)]=i[f]});const s=Object.assign(Object.assign({},r),{unitless:l,prefixToken:a}),c=pg(e,t,n,s),d=qM(o,n,s);return function(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;const[,g]=c(f,v),[y,b]=d(v);return[y,g,b]}},QM=Object.assign({},$a),{useId:G0}=QM,XM=()=>"",YM=typeof G0>"u"?XM:G0;function JM(e,t,n){var r;XT();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},fm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:fm.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=YM();return Rs(()=>{var l,s;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(l,s)=>l.some((c,d)=>{const f=s[d];return!ls(c,f,!0)}))}var ZM=["children"],Pw=u.createContext({});function eN(e){var t=e.children,n=at(e,ZM);return u.createElement(Pw.Provider,{value:n},t)}var tN=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function nN(e){var t=u.useReducer(function(l){return l+1},0),n=V(t,2),r=n[1],o=u.useRef(e),a=tn(function(){return o.current}),i=tn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var _o="none",cu="appear",du="enter",fu="leave",q0="none",Ar="prepare",hi="start",yi="active",gg="end",Iw="prepared";function Q0(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 rN(e,t){var n={animationend:Q0("Animation","AnimationEnd"),transitionend:Q0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var oN=rN(Fn(),typeof window<"u"?window:{}),_w={};if(Fn()){var aN=document.createElement("div");_w=aN.style}var vu={};function Tw(e){if(vu[e])return vu[e];var t=oN[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in _w)return vu[e]=t[a],vu[e]}return""}var Mw=Tw("animationend"),Nw=Tw("transitionend"),Lw=!!(Mw&&Nw),X0=Mw||"animationend",Y0=Nw||"transitionend";function J0(e,t){if(!e)return null;if(Ae(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const iN=function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(Y0,e),o.removeEventListener(X0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Y0,e),o.addEventListener(X0,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Aw=Fn()?u.useLayoutEffect:u.useEffect;const lN=function(){var e=u.useRef(null);function t(){xt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=xt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var sN=[Ar,hi,yi,gg],uN=[Ar,Iw],Fw=!1,cN=!0;function zw(e){return e===yi||e===gg}const dN=function(e,t,n){var r=ji(q0),o=V(r,2),a=o[0],i=o[1],l=lN(),s=V(l,2),c=s[0],d=s[1];function f(){i(Ar,!0)}var v=t?uN:sN;return Aw(function(){if(a!==q0&&a!==gg){var g=v.indexOf(a),y=v[g+1],b=n(a);b===Fw?i(y,!0):y&&c(function(S){function h(){S.isCanceled()||i(y,!0)}b===!0?h():Promise.resolve(b).then(h)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]};function fN(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,S=r.onEnterStart,h=r.onLeaveStart,m=r.onAppearActive,p=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,R=r.onVisibleChanged,O=ji(),I=V(O,2),A=I[0],M=I[1],z=nN(_o),_=V(z,2),H=_[0],F=_[1],P=ji(null),$=V(P,2),L=$[0],N=$[1],T=H(),B=u.useRef(!1),k=u.useRef(null);function W(){return n()}var U=u.useRef(!1);function ee(){F(_o),N(null,!0)}var q=tn(function(ve){var se=H();if(se!==_o){var Ee=W();if(!(ve&&!ve.deadline&&ve.target!==Ee)){var Ne=U.current,Se;se===cu&&Ne?Se=w==null?void 0:w(Ee,ve):se===du&&Ne?Se=x==null?void 0:x(Ee,ve):se===fu&&Ne&&(Se=E==null?void 0:E(Ee,ve)),Ne&&Se!==!1&&ee()}}}),ae=iN(q),ce=V(ae,1),ne=ce[0],Q=function(se){switch(se){case cu:return j(j(j({},Ar,v),hi,b),yi,m);case du:return j(j(j({},Ar,g),hi,S),yi,p);case fu:return j(j(j({},Ar,y),hi,h),yi,C);default:return{}}},te=u.useMemo(function(){return Q(T)},[T]),ie=dN(T,!e,function(ve){if(ve===Ar){var se=te[Ar];return se?se(W()):Fw}if(fe in te){var Ee;N(((Ee=te[fe])===null||Ee===void 0?void 0:Ee.call(te,W(),null))||null)}return fe===yi&&T!==_o&&(ne(W()),d>0&&(clearTimeout(k.current),k.current=setTimeout(function(){q({deadline:!0})},d))),fe===Iw&&ee(),cN}),Y=V(ie,2),oe=Y[0],fe=Y[1],Pe=zw(fe);U.current=Pe,Aw(function(){M(t);var ve=B.current;B.current=!0;var se;!ve&&t&&l&&(se=cu),ve&&t&&a&&(se=du),(ve&&!t&&c||!ve&&f&&!t&&c)&&(se=fu);var Ee=Q(se);se&&(e||Ee[Ar])?(F(se),oe()):F(_o)},[t]),u.useEffect(function(){(T===cu&&!l||T===du&&!a||T===fu&&!c)&&F(_o)},[l,a,c]),u.useEffect(function(){return function(){B.current=!1,clearTimeout(k.current)}},[]);var me=u.useRef(!1);u.useEffect(function(){A&&(me.current=!0),A!==void 0&&T===_o&&((me.current||A)&&(R==null||R(A)),me.current=!0)},[A,T]);var le=L;return te[Ar]&&fe===hi&&(le=D({transition:"none"},le)),[T,fe,le,A??t]}function vN(e){var t=e;Ae(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=u.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,v=o.motionName,g=o.leavedClassName,y=o.eventProps,b=u.useContext(Pw),S=b.motion,h=n(o,S),m=u.useRef(),p=u.useRef();function C(){try{return m.current instanceof HTMLElement?m.current:Ml(p.current)}catch{return null}}var w=fN(h,l,C,o),x=V(w,4),E=x[0],R=x[1],O=x[2],I=x[3],A=u.useRef(I);I&&(A.current=!0);var M=u.useCallback(function(L){m.current=L,ng(a,L)},[a]),z,_=D(D({},y),{},{visible:l});if(!f)z=null;else if(E===_o)I?z=f(D({},_),M):!c&&A.current&&g?z=f(D(D({},_),{},{className:g}),M):d||!c&&!g?z=f(D(D({},_),{},{style:{display:"none"}}),M):z=null;else{var H;R===Ar?H="prepare":zw(R)?H="active":R===hi&&(H="start");var F=J0(v,"".concat(E,"-").concat(H));z=f(D(D({},_),{},{className:G(J0(v,E),j(j({},F,F&&H),v,typeof v=="string")),style:O}),M)}if(u.isValidElement(z)&&aa(z)){var P=z,$=P.ref;$||(z=u.cloneElement(z,{ref:M}))}return u.createElement(tN,{ref:p},z)});return r.displayName="CSSMotion",r}const wo=vN(Lw);var mm="add",pm="keep",gm="remove",bf="removed";function mN(e){var t;return e&&Ae(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mN)}function pN(){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,a=hm(e),i=hm(t);a.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var v=i[f];if(v.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return D(D({},g),{},{status:mm})})),r=f),n.push(D(D({},v),{},{status:pm})),r+=1,d=!0;break}}d||n.push(D(D({},c),{},{status:gm}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return D(D({},c),{},{status:mm})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==gm}),n.forEach(function(d){d.key===c&&(d.status=pm)})}),n}var gN=["component","children","onVisibleChanged","onAllRemoved"],hN=["status"],yN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo,n=function(r){ia(a,r);var o=la(a);function a(){var i;gn(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=o.call.apply(o,[this].concat(s)),j(it(i),"state",{keyEntities:[]}),j(it(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(g){return g.key!==d?g:D(D({},g),{},{status:bf})});return i.setState({keyEntities:v}),v.filter(function(g){var y=g.status;return y!==bf}).length}),i}return hn(a,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,d=c.component,f=c.children,v=c.onVisibleChanged,g=c.onAllRemoved,y=at(c,gN),b=d||u.Fragment,S={};return yN.forEach(function(h){S[h]=y[h],delete y[h]}),delete y.keys,u.createElement(b,y,s.map(function(h,m){var p=h.status,C=at(h,hN),w=p===mm||p===pm;return u.createElement(t,be({},S,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(E){if(v==null||v(E,{key:C.key}),!E){var R=l.removeKey(C.key);R===0&&g&&g()}}}),function(x,E){return f(D(D({},x),{},{index:m}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,d=s.keyEntities,f=hm(c),v=pN(d,f);return{keyEntities:v.filter(function(g){var y=d.find(function(b){var S=b.key;return g.key===S});return!(y&&y.status===bf&&g.status===gm)})}}}]),a}(u.Component);return j(n,"defaultProps",{component:"div"}),n}const q8=bN(Lw);function SN(e){const{children:t}=e,[,n]=lr(),{motion:r}=n,o=u.useRef(!1);return o.current=o.current||r===!1,o.current?u.createElement(eN,{motion:r},t):t}const CN=()=>null;var wN=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 EN=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],jw="ant";let Sc,Dw,Bw,kw;function zu(){return Sc||jw}function xN(){return Dw||vg}function RN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const $N=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Sc=t),n!==void 0&&(Dw=n),"holderRender"in e&&(kw=o),r&&(RN(r)?NM(zu(),r):Bw=r)},ON=()=>({getPrefixCls:(e,t)=>t||(e?`${zu()}-${e}`:zu()),getIconPrefixCls:xN,getRootPrefixCls:()=>Sc||zu(),getTheme:()=>Bw,holderRender:kw}),PN=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:b,parentContext:S,iconPrefixCls:h,theme:m,componentDisabled:p,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:I,typography:A,checkbox:M,descriptions:z,divider:_,drawer:H,skeleton:F,steps:P,image:$,layout:L,list:N,mentions:T,modal:B,progress:k,result:W,slider:U,breadcrumb:ee,menu:q,pagination:ae,input:ce,textArea:ne,empty:Q,badge:te,radio:ie,rate:Y,switch:oe,transfer:fe,avatar:Pe,message:me,tag:le,table:ve,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:Fe,notification:pe,tree:rt,colorPicker:De,datePicker:xe,rangePicker:Ce,flex:He,wave:Be,dropdown:et,warning:ft,tour:ut,floatButtonGroup:qe,variant:lt,inputNumber:st,treeSelect:Mt}=e,yt=u.useCallback((de,we)=>{const{prefixCls:he}=e;if(we)return we;const _e=he||S.getPrefixCls("");return de?`${_e}-${de}`:_e},[S.getPrefixCls,e.prefixCls]),wt=h||S.iconPrefixCls||vg,At=n||S.csp;xw(wt,At);const bt=JM(m,S.theme,{prefixCls:yt("")}),Je={csp:At,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||b,direction:c,space:d,virtual:f,popupMatchSelectWidth:g??v,popupOverflow:y,getPrefixCls:yt,iconPrefixCls:wt,theme:bt,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:I,typography:A,checkbox:M,descriptions:z,divider:_,drawer:H,skeleton:F,steps:P,image:$,input:ce,textArea:ne,layout:L,list:N,mentions:T,modal:B,progress:k,result:W,slider:U,breadcrumb:ee,menu:q,pagination:ae,empty:Q,badge:te,radio:ie,rate:Y,switch:oe,transfer:fe,avatar:Pe,message:me,tag:le,table:ve,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:Fe,notification:pe,tree:rt,colorPicker:De,datePicker:xe,rangePicker:Ce,flex:He,wave:Be,dropdown:et,warning:ft,tour:ut,floatButtonGroup:qe,variant:lt,inputNumber:st,treeSelect:Mt},je=Object.assign({},S);Object.keys(Je).forEach(de=>{Je[de]!==void 0&&(je[de]=Je[de])}),EN.forEach(de=>{const we=e[de];we&&(je[de]=we)}),typeof r<"u"&&(je.button=Object.assign({autoInsertSpace:r},je.button));const ke=Rs(()=>je,je,(de,we)=>{const he=Object.keys(de),_e=Object.keys(we);return he.length!==_e.length||he.some(Ve=>de[Ve]!==we[Ve])}),Le=u.useMemo(()=>({prefixCls:wt,csp:At}),[wt,At]);let ge=u.createElement(u.Fragment,null,u.createElement(CN,{dropdownMatchSelectWidth:v}),t);const Xe=u.useMemo(()=>{var de,we,he,_e;return gi(((de=Na.Form)===null||de===void 0?void 0:de.defaultValidateMessages)||{},((he=(we=ke.locale)===null||we===void 0?void 0:we.Form)===null||he===void 0?void 0:he.defaultValidateMessages)||{},((_e=ke.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ke,i==null?void 0:i.validateMessages]);Object.keys(Xe).length>0&&(ge=u.createElement(YT.Provider,{value:Xe},ge)),l&&(ge=u.createElement(nM,{locale:l,_ANT_MARK__:tM},ge)),(wt||At)&&(ge=u.createElement(dg.Provider,{value:Le},ge)),s&&(ge=u.createElement(LM,{size:s},ge)),ge=u.createElement(SN,null,ge);const tt=u.useMemo(()=>{const de=bt||{},{algorithm:we,token:he,components:_e,cssVar:Ve}=de,Ze=wN(de,["algorithm","token","components","cssVar"]),Ot=we&&(!Array.isArray(we)||we.length>0)?tm(we):gw,mt={};Object.entries(_e||{}).forEach(Re=>{let[We,Et]=Re;const St=Object.assign({},Et);"algorithm"in St&&(St.algorithm===!0?St.theme=Ot:(Array.isArray(St.algorithm)||typeof St.algorithm=="function")&&(St.theme=tm(St.algorithm)),delete St.algorithm),mt[We]=St});const Ue=Object.assign(Object.assign({},ds),he);return Object.assign(Object.assign({},Ze),{theme:Ot,token:Ue,components:mt,override:Object.assign({override:Ue},mt),cssVar:Ve})},[bt]);return m&&(ge=u.createElement(hw.Provider,{value:tt},ge)),ke.warning&&(ge=u.createElement(QT.Provider,{value:ke.warning},ge)),p!==void 0&&(ge=u.createElement(yw,{disabled:p},ge)),u.createElement(ct.Provider,{value:ke},ge)},qi=e=>{const t=u.useContext(ct),n=u.useContext(fg);return u.createElement(PN,Object.assign({parentContext:t,legacyLocale:n},e))};qi.ConfigContext=ct;qi.SizeContext=zi;qi.config=$N;qi.useConfig=AM;Object.defineProperty(qi,"SizeContext",{get:()=>zi});const $s=qi;var IN={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 Hw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function _N(e){return Hw(e)instanceof ShadowRoot}function Cc(e){return _N(e)?Hw(e):null}function TN(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MN(e,t){Tn(e,"[@ant-design/icons] ".concat(t))}function Z0(e){return Ae(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ae(e.icon)==="object"||typeof e.icon=="function")}function ey(){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[TN(n)]=r}return t},{})}function ym(e,t,n){return n?K.createElement(e.tag,D(D({key:t},ey(e.attrs)),n),(e.children||[]).map(function(r,o){return ym(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):K.createElement(e.tag,D({key:t},ey(e.attrs)),(e.children||[]).map(function(r,o){return ym(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Vw(e){return cs(e)[0]}function Ww(e){return e?Array.isArray(e)?e:[e]:[]}var NN=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,LN=function(t){var n=u.useContext(dg),r=n.csp,o=n.prefixCls,a=NN;o&&(a=a.replace(/anticon/g,o)),u.useEffect(function(){var i=t.current,l=Cc(i);fo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},AN=["icon","className","onClick","style","primaryColor","secondaryColor"],Ll={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function FN(e){var t=e.primaryColor,n=e.secondaryColor;Ll.primaryColor=t,Ll.secondaryColor=n||Vw(t),Ll.calculated=!!n}function zN(){return D({},Ll)}var Qi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=at(t,AN),c=u.useRef(),d=Ll;if(i&&(d={primaryColor:i,secondaryColor:l||Vw(i)}),LN(c),MN(Z0(n),"icon should be icon definiton, but got ".concat(n)),!Z0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ym(f.icon,"svg-".concat(f.name),D(D({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Qi.displayName="IconReact";Qi.getTwoToneColors=zN;Qi.setTwoToneColors=FN;function Uw(e){var t=Ww(e),n=V(t,2),r=n[0],o=n[1];return Qi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jN(){var e=Qi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var DN=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Uw(dm.primary);var cn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=at(e,DN),d=u.useContext(dg),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,y=G(g,v,j(j({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,h=Ww(s),m=V(h,2),p=m[0],C=m[1];return u.createElement("span",be({role:"img","aria-label":r.name},c,{ref:t,tabIndex:b,onClick:l,className:y}),u.createElement(Qi,{icon:r,primaryColor:p,secondaryColor:C,style:S}))});cn.displayName="AntdIcon";cn.getTwoToneColor=jN;cn.setTwoToneColor=Uw;var BN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:IN}))},kN=u.forwardRef(BN),HN={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"},VN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:HN}))},hg=u.forwardRef(VN),WN={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"},UN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:WN}))},Os=u.forwardRef(UN),KN={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"},GN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:KN}))},qN=u.forwardRef(GN),QN={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"},XN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:QN}))},YN=u.forwardRef(XN),JN=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,ZN=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,eL="".concat(JN," ").concat(ZN).split(/[\s\n]+/),tL="aria-",nL="data-";function ty(e,t){return e.indexOf(t)===0}function ea(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=D({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||ty(o,tL))||n.data&&ty(o,nL)||n.attr&&eL.includes(o))&&(r[o]=e[o])}),r}function rL(e){return e&&K.isValidElement(e)&&e.type===K.Fragment}const oL=(e,t,n)=>K.isValidElement(e)?K.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function fs(e,t){return oL(e,e,t)}const ka=e=>{const[,,,,t]=lr();return t?`${e}-css-var`:""};var re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=re.F1&&n<=re.F12)return!1;switch(n){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=re.ZERO&&t<=re.NINE||t>=re.NUM_ZERO&&t<=re.NUM_MULTIPLY||t>=re.A&&t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},aL={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"},iL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:aL}))},Kw=u.forwardRef(iL);const Gw=K.createContext(void 0),fa=100,lL=10,qw=fa*lL,Qw={Modal:fa,Drawer:fa,Popover:fa,Popconfirm:fa,Tooltip:fa,Tour:fa},sL={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function uL(e){return e in Qw}function Xw(e,t){const[,n]=lr(),r=K.useContext(Gw),o=uL(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+Qw[e],a=Math.min(a,n.zIndexPopupBase+qw)):a+=sL[e],[r===void 0?t:a,a]}function cL(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(ye(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function zn(){zn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(F,P,$){F[P]=$.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(F,P,$){return Object.defineProperty(F,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),F[P]}try{c({},"")}catch{c=function($,L,N){return $[L]=N}}function d(F,P,$,L){var N=P&&P.prototype instanceof h?P:h,T=Object.create(N.prototype),B=new _(L||[]);return o(T,"_invoke",{value:I(F,$,B)}),T}function f(F,P,$){try{return{type:"normal",arg:F.call(P,$)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var v="suspendedStart",g="suspendedYield",y="executing",b="completed",S={};function h(){}function m(){}function p(){}var C={};c(C,i,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(H([])));x&&x!==n&&r.call(x,i)&&(C=x);var E=p.prototype=h.prototype=Object.create(C);function R(F){["next","throw","return"].forEach(function(P){c(F,P,function($){return this._invoke(P,$)})})}function O(F,P){function $(N,T,B,k){var W=f(F[N],F,T);if(W.type!=="throw"){var U=W.arg,ee=U.value;return ee&&Ae(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(q){$("next",q,B,k)},function(q){$("throw",q,B,k)}):P.resolve(ee).then(function(q){U.value=q,B(U)},function(q){return $("throw",q,B,k)})}k(W.arg)}var L;o(this,"_invoke",{value:function(T,B){function k(){return new P(function(W,U){$(T,B,W,U)})}return L=L?L.then(k,k):k()}})}function I(F,P,$){var L=v;return function(N,T){if(L===y)throw Error("Generator is already running");if(L===b){if(N==="throw")throw T;return{value:e,done:!0}}for($.method=N,$.arg=T;;){var B=$.delegate;if(B){var k=A(B,$);if(k){if(k===S)continue;return k}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(L===v)throw L=b,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);L=y;var W=f(F,P,$);if(W.type==="normal"){if(L=$.done?b:g,W.arg===S)continue;return{value:W.arg,done:$.done}}W.type==="throw"&&(L=b,$.method="throw",$.arg=W.arg)}}}function A(F,P){var $=P.method,L=F.iterator[$];if(L===e)return P.delegate=null,$==="throw"&&F.iterator.return&&(P.method="return",P.arg=e,A(F,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),S;var N=f(L,F.iterator,P.arg);if(N.type==="throw")return P.method="throw",P.arg=N.arg,P.delegate=null,S;var T=N.arg;return T?T.done?(P[F.resultName]=T.value,P.next=F.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,S):T:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,S)}function M(F){var P={tryLoc:F[0]};1 in F&&(P.catchLoc=F[1]),2 in F&&(P.finallyLoc=F[2],P.afterLoc=F[3]),this.tryEntries.push(P)}function z(F){var P=F.completion||{};P.type="normal",delete P.arg,F.completion=P}function _(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(M,this),this.reset(!0)}function H(F){if(F||F===""){var P=F[i];if(P)return P.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var $=-1,L=function N(){for(;++$<F.length;)if(r.call(F,$))return N.value=F[$],N.done=!1,N;return N.value=e,N.done=!0,N};return L.next=L}}throw new TypeError(Ae(F)+" is not iterable")}return m.prototype=p,o(E,"constructor",{value:p,configurable:!0}),o(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(F){var P=typeof F=="function"&&F.constructor;return!!P&&(P===m||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,p):(F.__proto__=p,c(F,s,"GeneratorFunction")),F.prototype=Object.create(E),F},t.awrap=function(F){return{__await:F}},R(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(F,P,$,L,N){N===void 0&&(N=Promise);var T=new O(d(F,P,$,L),N);return t.isGeneratorFunction(P)?T:T.next().then(function(B){return B.done?B.value:T.next()})},R(E),c(E,s,"Generator"),c(E,i,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(F){var P=Object(F),$=[];for(var L in P)$.push(L);return $.reverse(),function N(){for(;$.length;){var T=$.pop();if(T in P)return N.value=T,N.done=!1,N}return N.done=!0,N}},t.values=H,_.prototype={constructor:_,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!P)for(var $ in this)$.charAt(0)==="t"&&r.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function L(U,ee){return B.type="throw",B.arg=P,$.next=U,ee&&($.method="next",$.arg=e),!!ee}for(var N=this.tryEntries.length-1;N>=0;--N){var T=this.tryEntries[N],B=T.completion;if(T.tryLoc==="root")return L("end");if(T.tryLoc<=this.prev){var k=r.call(T,"catchLoc"),W=r.call(T,"finallyLoc");if(k&&W){if(this.prev<T.catchLoc)return L(T.catchLoc,!0);if(this.prev<T.finallyLoc)return L(T.finallyLoc)}else if(k){if(this.prev<T.catchLoc)return L(T.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return L(T.finallyLoc)}}}},abrupt:function(P,$){for(var L=this.tryEntries.length-1;L>=0;--L){var N=this.tryEntries[L];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var T=N;break}}T&&(P==="break"||P==="continue")&&T.tryLoc<=$&&$<=T.finallyLoc&&(T=null);var B=T?T.completion:{};return B.type=P,B.arg=$,T?(this.method="next",this.next=T.finallyLoc,S):this.complete(B)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),S},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.finallyLoc===P)return this.complete(L.completion,L.afterLoc),z(L),S}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.tryLoc===P){var N=L.completion;if(N.type==="throw"){var T=N.arg;z(L)}return T}}throw Error("illegal catch attempt")},delegateYield:function(P,$,L){return this.delegate={iterator:H(P),resultName:$,nextLoc:L},this.method==="next"&&(this.arg=e),S}},t}function ny(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){ny(a,r,o,i,l,"next",s)}function l(s){ny(a,r,o,i,l,"throw",s)}i(void 0)})}}var Ps=D({},k2),dL=Ps.version,fL=Ps.render,vL=Ps.unmountComponentAtNode,fd;try{var mL=Number((dL||"").split(".")[0]);mL>=18&&(fd=Ps.createRoot)}catch{}function ry(e){var t=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ae(t)==="object"&&(t.usingClientEntryPoint=e)}var wc="__rc_react_root__";function pL(e,t){ry(!0);var n=t[wc]||fd(t);ry(!1),n.render(e),t[wc]=n}function gL(e,t){fL(e,t)}function Yw(e,t){if(fd){pL(e,t);return}gL(e,t)}function hL(e){return bm.apply(this,arguments)}function bm(){return bm=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[wc])===null||o===void 0||o.unmount(),delete t[wc]}));case 1:case"end":return r.stop()}},e)})),bm.apply(this,arguments)}function yL(e){vL(e)}function Jw(e){return Sm.apply(this,arguments)}function Sm(){return Sm=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(fd===void 0){r.next=2;break}return r.abrupt("return",hL(t));case 2:yL(t);case 3:case"end":return r.stop()}},e)})),Sm.apply(this,arguments)}const Sf=()=>({height:0,opacity:0}),oy=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},bL=e=>({height:e?e.offsetHeight:0}),Cf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Q8=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Sf,onEnterStart:Sf,onAppearActive:oy,onEnterActive:oy,onLeaveStart:bL,onLeaveActive:Sf,onAppearEnd:Cf,onEnterEnd:Cf,onLeaveEnd:Cf,motionDeadline:500}},Bi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,yg=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(),a=o.width,i=o.height;if(a||i)return!0}}return!1},SL=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(",")}}}}},CL=pg("Wave",e=>[SL(e)]),Zw=`${jw}-wave-target`;function wL(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function wf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&wL(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function EL(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wf(t)?t:wf(n)?n:wf(r)?r:null}function Ef(e){return Number.isNaN(e)?0:e}const xL=e=>{const{className:t,target:n,component:r}=e,o=u.useRef(null),[a,i]=u.useState(null),[l,s]=u.useState([]),[c,d]=u.useState(0),[f,v]=u.useState(0),[g,y]=u.useState(0),[b,S]=u.useState(0),[h,m]=u.useState(!1),p={left:c,top:f,width:g,height:b,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(p["--wave-color"]=a);function C(){const x=getComputedStyle(n);i(EL(n));const E=x.position==="static",{borderLeftWidth:R,borderTopWidth:O}=x;d(E?n.offsetLeft:Ef(-parseFloat(R))),v(E?n.offsetTop:Ef(-parseFloat(O))),y(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:A,borderBottomLeftRadius:M,borderBottomRightRadius:z}=x;s([I,A,z,M].map(_=>Ef(parseFloat(_))))}if(u.useEffect(()=>{if(n){const x=xt(()=>{C(),m(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(C),E.observe(n)),()=>{xt.cancel(x),E==null||E.disconnect()}}},[]),!h)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Zw));return u.createElement(wo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,E)=>{var R;if(E.deadline||E.propertyName==="opacity"){const O=(R=o.current)===null||R===void 0?void 0:R.parentElement;Jw(O).then(()=>{O==null||O.remove()})}return!1}},(x,E)=>{let{className:R}=x;return u.createElement("div",{ref:Ur(o,E),className:G(t,R,{"wave-quick":w}),style:p})})},RL=(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==null||e.insertBefore(o,e==null?void 0:e.firstChild),Yw(u.createElement(xL,Object.assign({},t,{target:e})),o)},$L=(e,t,n)=>{const{wave:r}=u.useContext(ct),[,o,a]=lr(),i=tn(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Zw}`)||d,{showEffect:v}=r||{};(v||RL)(f,{className:t,token:o,component:n,event:c,hashId:a})}),l=u.useRef();return c=>{xt.cancel(l.current),l.current=xt(()=>{i(c)})}},OL=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(ct),a=u.useRef(null),i=o("wave"),[,l]=CL(i),s=$L(a,G(i,l),r);if(K.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!yg(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!K.isValidElement(t))return t??null;const c=aa(t)?Ur(t.ref,a):a;return fs(t,{ref:c})},Eo=e=>{const t=K.useContext(zi);return K.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},PL=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},IL=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"}}}},_L=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}}}},TL=Pr("Space",e=>{const t=Ut(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[IL(t),_L(t),PL(t)]},()=>({}),{resetStyle:!1});var eE=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 vd=u.createContext(null),md=(e,t)=>{const n=u.useContext(vd),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return G(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ML=e=>{let{children:t}=e;return u.createElement(vd.Provider,{value:null},t)},NL=e=>{var{children:t}=e,n=eE(e,["children"]);return u.createElement(vd.Provider,{value:n},t)},X8=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ct),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:c}=e,d=eE(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(p=>r??p),v=t("space-compact",i),[g,y]=TL(v),b=G(v,y,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:o==="vertical"},l,s),S=u.useContext(vd),h=Zo(c),m=u.useMemo(()=>h.map((p,C)=>{const w=(p==null?void 0:p.key)||`${v}-item-${C}`;return u.createElement(NL,{key:w,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:C===h.length-1&&(!S||(S==null?void 0:S.isLastItem))},p)}),[r,h,S]);return h.length===0?null:g(u.createElement("div",Object.assign({className:b},d),m))};var LL=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 tE=u.createContext(void 0),AL=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ct),{prefixCls:r,size:o,className:a}=e,i=LL(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=lr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=G(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},a,s);return u.createElement(tE.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},ay=/^[\u4e00-\u9fa5]{2}$/,Cm=ay.test.bind(ay);function nE(e){return e==="danger"?{danger:!0}:{type:e}}function iy(e){return typeof e=="string"}function xf(e){return e==="text"||e==="link"}function FL(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&iy(e.type)&&Cm(e.props.children)?fs(e,{children:e.props.children.split("").join(n)}):iy(e)?Cm(e)?K.createElement("span",null,e.split("").join(n)):K.createElement("span",null,e):rL(e)?K.createElement("span",null,e):e}function zL(e,t){let n=!1;const r=[];return K.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),K.Children.map(r,o=>FL(o,t))}const rE=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=G(`${a}-icon`,n);return K.createElement("span",{ref:t,className:i,style:r},o)}),ly=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=G(`${n}-loading-icon`,r);return K.createElement(rE,{prefixCls:n,className:i,style:o,ref:t},K.createElement(Kw,{className:a}))}),Rf=()=>({width:0,opacity:0,transform:"scale(0)"}),$f=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jL=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?K.createElement(ly,{prefixCls:t,className:o,style:a}):K.createElement(wo,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Rf,onAppearActive:$f,onEnterStart:Rf,onEnterActive:$f,onLeaveStart:$f,onLeaveActive:Rf},(l,s)=>{let{className:c,style:d}=l;return K.createElement(ly,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:s,iconClassName:c})})},sy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),DL=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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}},sy(`${t}-primary`,o),sy(`${t}-danger`,a)]}},oE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ut(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},aE=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Fu(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Fu(s),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Fu(c);return{fontWeight:400,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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)}},BL=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},dd(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},yo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),kL=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HL=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VL=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vs=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},yo(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),bg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VL(e))}),iE=e=>Object.assign({},bg(e)),Ec=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),lE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iE(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yo(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},yo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bg(e))}),WL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iE(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),yo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),vs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},yo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bg(e))}),UL=e=>Object.assign(Object.assign({},lE(e)),{borderStyle:"dashed"}),KL=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ec(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ec(e))}),GL=e=>Object.assign(Object.assign(Object.assign({},yo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ec(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ec(e)),yo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),qL=e=>{const{componentCls:t}=e;return{[`${t}-default`]:lE(e),[`${t}-primary`]:WL(e),[`${t}-dashed`]:UL(e),[`${t}-link`]:KL(e),[`${t}-text`]:GL(e),[`${t}-ghost`]:vs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Sg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${J(c)} ${J(l)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:kL(e)},{[`${n}${n}-round${t}`]:HL(e)}]},QL=e=>{const t=Ut(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Sg(t,e.componentCls)},XL=e=>{const t=Ut(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Sg(t,`${e.componentCls}-sm`)},YL=e=>{const t=Ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Sg(t,`${e.componentCls}-lg`)},JL=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ZL=Pr("Button",e=>{const t=oE(e);return[BL(t),QL(t),XL(t),YL(t),JL(t),qL(t),DL(t)]},aE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function eA(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function tA(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 Cg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},eA(e,r,t)),tA(n,r,t))}}function nA(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function rA(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 oA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},nA(e,t)),rA(e.componentCls,t))}}const aA=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${J(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${J(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},iA=Ow(["Button","compact"],e=>{const t=oE(e);return[Cg(t),oA(t),aA(t)]},aE);var lA=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 sA(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const uA=K.forwardRef((e,t)=>{var n,r,o;const{loading:a=!1,prefixCls:i,type:l,danger:s=!1,shape:c="default",size:d,styles:f,disabled:v,className:g,rootClassName:y,children:b,icon:S,iconPosition:h="start",ghost:m=!1,block:p=!1,htmlType:C="button",classNames:w,style:x={},autoInsertSpace:E}=e,R=lA(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=l||"default",{getPrefixCls:I,direction:A,button:M}=u.useContext(ct),z=(n=E??(M==null?void 0:M.autoInsertSpace))!==null&&n!==void 0?n:!0,_=I("btn",i),[H,F,P]=ZL(_),$=u.useContext(La),L=v??$,N=u.useContext(tE),T=u.useMemo(()=>sA(a),[a]),[B,k]=u.useState(T.loading),[W,U]=u.useState(!1),q=Ur(t,u.createRef()),ae=u.Children.count(b)===1&&!S&&!xf(O);u.useEffect(()=>{let Se=null;T.delay>0?Se=setTimeout(()=>{Se=null,k(!0)},T.delay):k(T.loading);function Fe(){Se&&(clearTimeout(Se),Se=null)}return Fe},[T]),u.useEffect(()=>{if(!q||!q.current||!z)return;const Se=q.current.textContent;ae&&Cm(Se)?W||U(!0):W&&U(!1)},[q]);const ce=Se=>{const{onClick:Fe}=e;if(B||L){Se.preventDefault();return}Fe==null||Fe(Se)},{compactSize:ne,compactItemClassnames:Q}=md(_,A),te={large:"lg",small:"sm",middle:void 0},ie=Eo(Se=>{var Fe,pe;return(pe=(Fe=d??ne)!==null&&Fe!==void 0?Fe:N)!==null&&pe!==void 0?pe:Se}),Y=ie&&te[ie]||"",oe=B?"loading":S,fe=cr(R,["navigate"]),Pe=G(_,F,P,{[`${_}-${c}`]:c!=="default"&&c,[`${_}-${O}`]:O,[`${_}-${Y}`]:Y,[`${_}-icon-only`]:!b&&b!==0&&!!oe,[`${_}-background-ghost`]:m&&!xf(O),[`${_}-loading`]:B,[`${_}-two-chinese-chars`]:W&&z&&!B,[`${_}-block`]:p,[`${_}-dangerous`]:s,[`${_}-rtl`]:A==="rtl",[`${_}-icon-end`]:h==="end"},Q,g,y,M==null?void 0:M.className),me=Object.assign(Object.assign({},M==null?void 0:M.style),x),le=G(w==null?void 0:w.icon,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.icon),ve=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.icon)||{}),se=S&&!B?K.createElement(rE,{prefixCls:_,className:le,style:ve},S):K.createElement(jL,{existIcon:!!S,prefixCls:_,loading:B}),Ee=b||b===0?zL(b,ae&&z):null;if(fe.href!==void 0)return H(K.createElement("a",Object.assign({},fe,{className:G(Pe,{[`${_}-disabled`]:L}),href:L?void 0:fe.href,style:me,onClick:ce,ref:q,tabIndex:L?-1:0}),se,Ee));let Ne=K.createElement("button",Object.assign({},R,{type:C,className:Pe,style:me,onClick:ce,disabled:L,ref:q}),se,Ee,!!Q&&K.createElement(iA,{key:"compact",prefixCls:_}));return xf(O)||(Ne=K.createElement(OL,{component:"Button",disabled:B},Ne)),H(Ne)}),wr=uA;wr.Group=AL;wr.__ANT_BUTTON=!0;function Of(e){return!!(e!=null&&e.then)}const sE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:d}=e,f=u.useRef(!1),v=u.useRef(null),[g,y]=ji(!1),b=function(){a==null||a.apply(void 0,arguments)};u.useEffect(()=>{let m=null;return i&&(m=setTimeout(()=>{var p;(p=v.current)===null||p===void 0||p.focus()})),()=>{m&&clearTimeout(m)}},[]);const S=m=>{Of(m)&&(y(!0),m.then(function(){y(!1,!0),b.apply(void 0,arguments),f.current=!1},p=>{if(y(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(p)}))},h=m=>{if(f.current)return;if(f.current=!0,!d){b();return}let p;if(l){if(p=d(m),c&&!Of(p)){f.current=!1,b(m);return}}else if(d.length)p=d(a),f.current=!1;else if(p=d(),!Of(p)){b();return}S(p)};return u.createElement(wr,Object.assign({},nE(t),{onClick:h,loading:g,prefixCls:r},o,{ref:v}),n)},Is=K.createContext({}),{Provider:uE}=Is,uy=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=u.useContext(Is);return o?K.createElement(sE,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},cy=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=u.useContext(Is);return K.createElement(sE,{isSilent:n,type:i||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var cE=u.createContext(null),dy=[];function cA(e,t){var n=u.useState(function(){if(!Fn())return null;var y=document.createElement("div");return y}),r=V(n,1),o=r[0],a=u.useRef(!1),i=u.useContext(cE),l=u.useState(dy),s=V(l,2),c=s[0],d=s[1],f=i||(a.current?void 0:function(y){d(function(b){var S=[y].concat(ye(b));return S})});function v(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var y;(y=o.parentElement)===null||y===void 0||y.removeChild(o),a.current=!1}return zt(function(){return e?i?i(v):v():g(),g},[e]),zt(function(){c.length&&(c.forEach(function(y){return y()}),d(dy))},[c]),[o,f]}var Pf;function dE(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,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";fo(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),t)}catch(y){console.error(y),o=s,a=c}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),is(t),{width:v,height:g}}function Y8(e){return typeof document>"u"?0:(Pf===void 0&&(Pf=dE()),Pf.width)}function dA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:dE(e)}function fA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vA="rc-util-locker-".concat(Date.now()),fy=0;function mA(e){var t=!!e,n=u.useState(function(){return fy+=1,"".concat(vA,"_").concat(fy)}),r=V(n,1),o=r[0];zt(function(){if(t){var a=dA(document.body).width,i=fA();fo(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else is(o);return function(){is(o)}},[t,o])}var pA=!1;function gA(e){return pA}var vy=function(t){return t===!1?!1:!Fn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},wg=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=u.useState(n),c=V(s,2),d=c[0],f=c[1],v=d||n;u.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=u.useState(function(){return vy(o)}),y=V(g,2),b=y[0],S=y[1];u.useEffect(function(){var A=vy(o);S(A??null)});var h=cA(v&&!b),m=V(h,2),p=m[0],C=m[1],w=b??p;mA(r&&n&&Fn()&&(w===p||w===document.body));var x=null;if(l&&aa(l)&&t){var E=l;x=E.ref}var R=Ba(x,t);if(!v||!Fn()||b===void 0)return null;var O=w===!1||gA(),I=l;return t&&(I=u.cloneElement(l,{ref:R})),u.createElement(cE.Provider,{value:C},O?I:Jo.createPortal(I,w))}),fE=u.createContext({});function hA(){var e=D({},$a);return e.useId}var my=0,py=hA();const vE=py?function(t){var n=py();return t||n}:function(t){var n=u.useState("ssr-id"),r=V(n,2),o=r[0],a=r[1];return u.useEffect(function(){var i=my;my+=1,a("rc_unique_".concat(i))},[]),t||o};function gy(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function hy(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function yA(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=hy(o),n.top+=hy(o,!0),n}const bA=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var yy={width:0,height:0,overflow:"hidden",outline:"none"},SA={outline:"none"},mE=K.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,v=e.bodyStyle,g=e.bodyProps,y=e.modalRender,b=e.onMouseDown,S=e.onMouseUp,h=e.holderRef,m=e.visible,p=e.forceRender,C=e.width,w=e.height,x=e.classNames,E=e.styles,R=K.useContext(fE),O=R.panel,I=Ba(h,O),A=u.useRef(),M=u.useRef(),z=u.useRef();K.useImperativeHandle(t,function(){return{focus:function(){var k;(k=z.current)===null||k===void 0||k.focus({preventScroll:!0})},changeActive:function(k){var W=document,U=W.activeElement;k&&U===M.current?A.current.focus({preventScroll:!0}):!k&&U===A.current&&M.current.focus({preventScroll:!0})}}});var _={};C!==void 0&&(_.width=C),w!==void 0&&(_.height=w);var H=l?K.createElement("div",{className:G("".concat(n,"-footer"),x==null?void 0:x.footer),style:D({},E==null?void 0:E.footer)},l):null,F=a?K.createElement("div",{className:G("".concat(n,"-header"),x==null?void 0:x.header),style:D({},E==null?void 0:E.header)},K.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,P=u.useMemo(function(){return Ae(s)==="object"&&s!==null?s:s?{closeIcon:c??K.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),$=ea(P,!0),L=Ae(s)==="object"&&s.disabled,N=s?K.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},$,{className:"".concat(n,"-close"),disabled:L}),P.closeIcon):null,T=K.createElement("div",{className:G("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},N,F,K.createElement("div",be({className:G("".concat(n,"-body"),x==null?void 0:x.body),style:D(D({},v),E==null?void 0:E.body)},g),f),H);return K.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:D(D({},o),_),className:G(n,r),onMouseDown:b,onMouseUp:S},K.createElement("div",{tabIndex:0,ref:A,style:yy,"aria-hidden":"true"}),K.createElement("div",{ref:z,tabIndex:-1,style:SA},K.createElement(bA,{shouldUpdate:m||p},y?y(T):T)),K.createElement("div",{tabIndex:0,ref:M,style:yy,"aria-hidden":"true"}))}),pE=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,v=e.mousePosition,g=u.useRef(),y=u.useState(),b=V(y,2),S=b[0],h=b[1],m={};S&&(m.transformOrigin=S);function p(){var C=yA(g.current);h(v&&(v.x||v.y)?"".concat(v.x-C.left,"px ").concat(v.y-C.top,"px"):"")}return u.createElement(wo,{visible:i,onVisibleChanged:f,onAppearPrepare:p,onEnterPrepare:p,forceRender:l,motionName:c,removeOnLeave:s,ref:g},function(C,w){var x=C.className,E=C.style;return u.createElement(mE,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:D(D(D({},E),o),m),className:G(a,x)}))})});pE.displayName="Content";var CA=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,l=t.className;return u.createElement(wo,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(s,c){var d=s.className,f=s.style;return u.createElement("div",be({ref:c,style:D(D({},f),r),className:G("".concat(n,"-mask"),d,l)},a))})},wA=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,l=t.keyboard,s=l===void 0?!0:l,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,f=t.wrapStyle,v=t.wrapClassName,g=t.wrapProps,y=t.onClose,b=t.afterOpenChange,S=t.afterClose,h=t.transitionName,m=t.animation,p=t.closable,C=p===void 0?!0:p,w=t.mask,x=w===void 0?!0:w,E=t.maskTransitionName,R=t.maskAnimation,O=t.maskClosable,I=O===void 0?!0:O,A=t.maskStyle,M=t.maskProps,z=t.rootClassName,_=t.classNames,H=t.styles,F=u.useRef(),P=u.useRef(),$=u.useRef(),L=u.useState(i),N=V(L,2),T=N[0],B=N[1],k=vE();function W(){Jv(P.current,document.activeElement)||(F.current=document.activeElement)}function U(){if(!Jv(P.current,document.activeElement)){var oe;(oe=$.current)===null||oe===void 0||oe.focus()}}function ee(oe){if(oe)U();else{if(B(!1),x&&F.current&&d){try{F.current.focus({preventScroll:!0})}catch{}F.current=null}T&&(S==null||S())}b==null||b(oe)}function q(oe){y==null||y(oe)}var ae=u.useRef(!1),ce=u.useRef(),ne=function(){clearTimeout(ce.current),ae.current=!0},Q=function(){ce.current=setTimeout(function(){ae.current=!1})},te=null;I&&(te=function(fe){ae.current?ae.current=!1:P.current===fe.target&&q(fe)});function ie(oe){if(s&&oe.keyCode===re.ESC){oe.stopPropagation(),q(oe);return}i&&oe.keyCode===re.TAB&&$.current.changeActive(!oe.shiftKey)}u.useEffect(function(){i&&(B(!0),W())},[i]),u.useEffect(function(){return function(){clearTimeout(ce.current)}},[]);var Y=D(D(D({zIndex:o},f),H==null?void 0:H.wrapper),{},{display:T?null:"none"});return u.createElement("div",be({className:G("".concat(r,"-root"),z)},ea(t,{data:!0})),u.createElement(CA,{prefixCls:r,visible:x&&i,motionName:gy(r,E,R),style:D(D({zIndex:o},A),H==null?void 0:H.mask),maskProps:M,className:_==null?void 0:_.mask}),u.createElement("div",be({tabIndex:-1,onKeyDown:ie,className:G("".concat(r,"-wrap"),v,_==null?void 0:_.wrapper),ref:P,onClick:te,style:Y},g),u.createElement(pE,be({},t,{onMouseDown:ne,onMouseUp:Q,ref:$,closable:C,ariaId:k,prefixCls:r,visible:i&&T,onClose:q,onVisibleChanged:ee,motionName:gy(r,h,m)}))))},gE=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,l=t.afterClose,s=t.panelRef,c=u.useState(n),d=V(c,2),f=d[0],v=d[1],g=u.useMemo(function(){return{panel:s}},[s]);return u.useEffect(function(){n&&v(!0)},[n]),!o&&i&&!f?null:u.createElement(fE.Provider,{value:g},u.createElement(wg,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(wA,be({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),v(!1)}}))))};gE.displayName="Dialog";var ba="RC_FORM_INTERNAL_HOOKS",Tt=function(){Tn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ki=u.createContext({getFieldValue:Tt,getFieldsValue:Tt,getFieldError:Tt,getFieldWarning:Tt,getFieldsError:Tt,isFieldsTouched:Tt,isFieldTouched:Tt,isFieldValidating:Tt,isFieldsValidating:Tt,resetFields:Tt,setFields:Tt,setFieldValue:Tt,setFieldsValue:Tt,validateFields:Tt,submit:Tt,getInternalHooks:function(){return Tt(),{dispatch:Tt,initEntityValue:Tt,registerField:Tt,useSubscribe:Tt,setInitialValues:Tt,destroyForm:Tt,setCallbacks:Tt,registerWatch:Tt,getFields:Tt,setValidateMessages:Tt,setPreserve:Tt,getInitialValue:Tt}}}),xc=u.createContext(null);function wm(e){return e==null?[]:Array.isArray(e)?e:[e]}function EA(e){return e&&!!e._init}function Em(){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 xm=Em();function xA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function RA(e,t,n){if(rg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&rs(o,n.prototype),o}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!xA(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 RA(r,arguments,os(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),rs(o,r)},Rm(e)}var $A=/%[sdj%]/g,OA=function(){};function $m(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 rr(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace($A,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){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 l}});return i}return e}function PA(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function un(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PA(t)&&typeof e=="string"&&!e)}function IA(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,ye(l||[])),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function by(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function _A(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ye(e[n]||[]))}),t}var Sy=function(e){ia(n,e);var t=la(n);function n(r,o){var a;return gn(this,n),a=t.call(this,"Async Validation Error"),j(it(a),"errors",void 0),j(it(a),"fields",void 0),a.errors=r,a.fields=o,a}return hn(n)}(Rm(Error));function TA(e,t,n,r,o){if(t.first){var a=new Promise(function(v,g){var y=function(h){return r(h),h.length?g(new Sy(h,$m(h))):v(o)},b=_A(e);by(b,n,y)});return a.catch(function(v){return v}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],f=new Promise(function(v,g){var y=function(S){if(d.push.apply(d,S),c++,c===s)return r(d),d.length?g(new Sy(d,$m(d))):v(o)};l.length||(r(d),v(o)),l.forEach(function(b){var S=e[b];i.indexOf(b)!==-1?by(S,n,y):IA(S,n,y)})});return f.catch(function(v){return v}),f}function MA(e){return!!(e&&e.message!==void 0)}function NA(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cy(e,t){return function(n){var r;return e.fullFields?r=NA(t,e.fullFields):r=t[n.field||e.fullField],MA(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 wy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ae(r)==="object"&&Ae(e[n])==="object"?e[n]=D(D({},e[n]),r):e[n]=r}}return e}var Xa="enum",LA=function(t,n,r,o,a){t[Xa]=Array.isArray(t[Xa])?t[Xa]:[],t[Xa].indexOf(n)===-1&&o.push(rr(a.messages[Xa],t.fullField,t[Xa].join(", ")))},AA=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(rr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(rr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},FA=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,v=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(v?f="number":g?f="string":y&&(f="array"),!f)return!1;y&&(d=n.length),g&&(d=n.replace(c,"_").length),i?d!==t.len&&o.push(rr(a.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(rr(a.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(rr(a.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(rr(a.messages[f].range,t.fullField,t.min,t.max))},hE=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||un(n,i||t.type))&&o.push(rr(a.messages.required,t.fullField))},mu;const zA=function(){if(mu)return mu;var e="[a-fA-F\\d:]",t=function(x){return x&&x.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?l:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,y=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(g,"|").concat(y,"|").concat(b).concat(S).concat(h,")").concat(m).concat(p);return mu=new RegExp("(?:^".concat(C,"$)"),"i"),mu};var Ey={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},Sl={integer:function(t){return Sl.number(t)&&parseInt(t,10)===t},float:function(t){return Sl.number(t)&&!Sl.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 Ae(t)==="object"&&!Sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ey.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(zA())},hex:function(t){return typeof t=="string"&&!!t.match(Ey.hex)}},jA=function(t,n,r,o,a){if(t.required&&n===void 0){hE(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Sl[l](n)||o.push(rr(a.messages.types[l],t.fullField,t.type)):l&&Ae(n)!==t.type&&o.push(rr(a.messages.types[l],t.fullField,t.type))},DA=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(rr(a.messages.whitespace,t.fullField))};const vt={required:hE,whitespace:DA,type:jA,range:FA,enum:LA,pattern:AA};var BA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a)}r(i)},kA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();vt.required(t,n,o,i,a,"array"),n!=null&&(vt.type(t,n,o,i,a),vt.range(t,n,o,i,a))}r(i)},HA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&vt.type(t,n,o,i,a)}r(i)},VA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"date")&&!t.required)return r();if(vt.required(t,n,o,i,a),!un(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),vt.type(t,s,o,i,a),s&&vt.range(t,s.getTime(),o,i,a)}}r(i)},WA="enum",UA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&vt[WA](t,n,o,i,a)}r(i)},KA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&(vt.type(t,n,o,i,a),vt.range(t,n,o,i,a))}r(i)},GA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&(vt.type(t,n,o,i,a),vt.range(t,n,o,i,a))}r(i)},qA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&vt.type(t,n,o,i,a)}r(i)},QA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&(vt.type(t,n,o,i,a),vt.range(t,n,o,i,a))}r(i)},XA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),n!==void 0&&vt.type(t,n,o,i,a)}r(i)},YA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"string")&&!t.required)return r();vt.required(t,n,o,i,a),un(n,"string")||vt.pattern(t,n,o,i,a)}r(i)},JA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();vt.required(t,n,o,i,a),un(n)||vt.type(t,n,o,i,a)}r(i)},ZA=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":Ae(n);vt.required(t,n,o,i,a,l),r(i)},e4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"string")&&!t.required)return r();vt.required(t,n,o,i,a,"string"),un(n,"string")||(vt.type(t,n,o,i,a),vt.range(t,n,o,i,a),vt.pattern(t,n,o,i,a),t.whitespace===!0&&vt.whitespace(t,n,o,i,a))}r(i)},If=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,i)&&!t.required)return r();vt.required(t,n,o,l,a,i),un(n,i)||vt.type(t,n,o,l,a)}r(l)};const Al={string:e4,method:qA,number:QA,boolean:HA,regexp:JA,integer:GA,float:KA,array:kA,object:XA,enum:UA,pattern:YA,date:VA,url:If,hex:If,email:If,required:ZA,any:BA};var _s=function(){function e(t){gn(this,e),j(this,"rules",null),j(this,"_messages",xm),this.define(t)}return hn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ae(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=wy(Em(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=o,s=a;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,i),Promise.resolve(i);function c(y){var b=[],S={};function h(p){if(Array.isArray(p)){var C;b=(C=b).concat.apply(C,ye(p))}else b.push(p)}for(var m=0;m<y.length;m++)h(y[m]);b.length?(S=$m(b),s(b,S)):s(null,i)}if(l.messages){var d=this.messages();d===xm&&(d=Em()),wy(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},v=l.keys||Object.keys(this.rules);v.forEach(function(y){var b=r.rules[y],S=i[y];b.forEach(function(h){var m=h;typeof m.transform=="function"&&(i===n&&(i=D({},i)),S=i[y]=m.transform(S),S!=null&&(m.type=m.type||(Array.isArray(S)?"array":Ae(S)))),typeof m=="function"?m={validator:m}:m=D({},m),m.validator=r.getValidationMethod(m),m.validator&&(m.field=y,m.fullField=m.fullField||y,m.type=r.getType(m),f[y]=f[y]||[],f[y].push({rule:m,value:S,source:i,field:y}))})});var g={};return TA(f,l,function(y,b){var S=y.rule,h=(S.type==="object"||S.type==="array")&&(Ae(S.fields)==="object"||Ae(S.defaultField)==="object");h=h&&(S.required||!S.required&&y.value),S.field=y.field;function m(E,R){return D(D({},R),{},{fullField:"".concat(S.fullField,".").concat(E),fullFields:S.fullFields?[].concat(ye(S.fullFields),[E]):[E]})}function p(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(E)?E:[E];!l.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&S.message!==void 0&&(R=[].concat(S.message));var O=R.map(Cy(S,i));if(l.first&&O.length)return g[S.field]=1,b(O);if(!h)b(O);else{if(S.required&&!y.value)return S.message!==void 0?O=[].concat(S.message).map(Cy(S,i)):l.error&&(O=[l.error(S,rr(l.messages.required,S.field))]),b(O);var I={};S.defaultField&&Object.keys(y.value).map(function(z){I[z]=S.defaultField}),I=D(D({},I),y.rule.fields);var A={};Object.keys(I).forEach(function(z){var _=I[z],H=Array.isArray(_)?_:[_];A[z]=H.map(m.bind(null,z))});var M=new e(A);M.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),M.validate(y.value,y.rule.options||l,function(z){var _=[];O&&O.length&&_.push.apply(_,ye(O)),z&&z.length&&_.push.apply(_,ye(z)),b(_.length?_:null)})}}var C;if(S.asyncValidator)C=S.asyncValidator(S,y.value,p,y.source,l);else if(S.validator){try{C=S.validator(S,y.value,p,y.source,l)}catch(E){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,E),l.suppressValidatorError||setTimeout(function(){throw E},0),p(E.message)}C===!0?p():C===!1?p(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):C instanceof Array?p(C):C instanceof Error&&p(C.message)}C&&C.then&&C.then(function(){return p()},function(E){return p(E)})},function(y){c(y)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Al.hasOwnProperty(n.type))throw new Error(rr("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"?Al.required:Al[this.getType(n)]||void 0}}]),e}();j(_s,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Al[t]=n});j(_s,"warning",OA);j(_s,"messages",xm);j(_s,"validators",Al);var Zn="'${name}' is not a valid ${type}",yE={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:Zn,method:Zn,array:Zn,object:Zn,number:Zn,date:Zn,boolean:Zn,integer:Zn,float:Zn,regexp:Zn,email:Zn,url:Zn,hex:Zn},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}"}},xy=_s;function t4(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Ry="CODE_LOGIC_ERROR";function Om(e,t,n,r,o){return Pm.apply(this,arguments)}function Pm(){return Pm=Ha(zn().mark(function e(t,n,r,o,a){var i,l,s,c,d,f,v,g,y;return zn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return i=D({},r),delete i.ruleIndex,xy.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(Ry)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new xy(j({},t,[i])),d=gi(yE,o.validateMessages),c.messages(d),f=[],S.prev=10,S.next=13,Promise.resolve(c.validate(j({},t,n),D({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(f=S.t0.errors.map(function(h,m){var p=h.message,C=p===Ry?d.default:p;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(m)}):C}));case 18:if(!(!f.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(h,m){return Om("".concat(t,".").concat(m),h,s,o,a)}));case 21:return v=S.sent,S.abrupt("return",v.reduce(function(h,m){return[].concat(ye(h),ye(m))},[]));case 23:return g=D(D({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=f.map(function(h){return typeof h=="string"?t4(h,g):h}),S.abrupt("return",y);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),Pm.apply(this,arguments)}function n4(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var v=d.validator,g=D(D({},d),{},{ruleIndex:f});return v&&(g.validator=function(y,b,S){var h=!1,m=function(){for(var w=arguments.length,x=new Array(w),E=0;E<w;E++)x[E]=arguments[E];Promise.resolve().then(function(){Tn(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||S.apply(void 0,x)})},p=v(y,b,m);h=p&&typeof p.then=="function"&&typeof p.catch=="function",Tn(h,"`callback` is deprecated. Please return a promise instead."),h&&p.then(function(){S()}).catch(function(C){S(C||" ")})}),g}).sort(function(d,f){var v=d.warningOnly,g=d.ruleIndex,y=f.warningOnly,b=f.ruleIndex;return!!v==!!y?g-b:v?1:-1}),s;if(o===!0)s=new Promise(function(){var d=Ha(zn().mark(function f(v,g){var y,b,S;return zn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:y=0;case 1:if(!(y<l.length)){m.next=12;break}return b=l[y],m.next=5,Om(i,t,b,r,a);case 5:if(S=m.sent,!S.length){m.next=9;break}return g([{errors:S,rule:b}]),m.abrupt("return");case 9:y+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var c=l.map(function(d){return Om(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?o4(c):r4(c)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function r4(e){return Im.apply(this,arguments)}function Im(){return Im=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ye(o));return i}));case 1:case"end":return r.stop()}},e)})),Im.apply(this,arguments)}function o4(e){return _m.apply(this,arguments)}function _m(){return _m=Ha(zn().mark(function e(t){var n;return zn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(l){l.errors.length&&a([l]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),_m.apply(this,arguments)}function Qt(e){return wm(e)}function $y(e,t){var n={};return t.forEach(function(r){var o=Yr(e,r);n=Lr(n,r,o)}),n}function Ri(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return bE(t,r,n)})}function bE(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 a4(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ae(e)!=="object"||Ae(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ye(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function i4(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ae(t.target)==="object"&&e in t.target?t.target[e]:t}function Oy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ye(e.slice(0,n)),[o],ye(e.slice(n,t)),ye(e.slice(t+1,r))):a<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,n+1)),[o],ye(e.slice(n+1,r))):e}var l4=["name"],gr=[];function Py(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Eg=function(e){ia(n,e);var t=la(n);function n(r){var o;if(gn(this,n),o=t.call(this,r),j(it(o),"state",{resetCount:0}),j(it(o),"cancelRegisterFunc",null),j(it(o),"mounted",!1),j(it(o),"touched",!1),j(it(o),"dirty",!1),j(it(o),"validatePromise",void 0),j(it(o),"prevValidating",void 0),j(it(o),"errors",gr),j(it(o),"warnings",gr),j(it(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,Qt(f)),o.cancelRegisterFunc=null}),j(it(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ye(v),ye(c)):[]}),j(it(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),j(it(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),j(it(o),"metaCache",null),j(it(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=D(D({},o.getMeta()),{},{destroy:s});ls(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),j(it(o),"onStoreChange",function(s,c,d){var f=o.props,v=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,b=f.onReset,S=d.store,h=o.getNamePath(),m=o.getValue(s),p=o.getValue(S),C=c&&Ri(c,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!ls(m,p)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=gr,o.warnings=gr,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(v){o.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||gr),"warnings"in w&&(o.warnings=w.warnings||gr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Ri(c,h,!0)){o.reRender();return}if(v&&!h.length&&Py(v,s,S,m,p,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=y.map(Qt);if(x.some(function(E){return Ri(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!y.length||h.length||v)&&Py(v,s,S,m,p,d)){o.reRender();return}break}v===!0&&o.reRender()}),j(it(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,b=Promise.resolve().then(Ha(zn().mark(function S(){var h,m,p,C,w,x,E;return zn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(h=o.props,m=h.validateFirst,p=m===void 0?!1:m,C=h.messageVariables,w=h.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(I){return I}).filter(function(I){var A=I.validateTrigger;if(!A)return!0;var M=wm(A);return M.includes(v)})),!(w&&v)){O.next=10;break}return O.next=8,new Promise(function(I){setTimeout(I,w)});case 8:if(o.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return E=n4(c,d,x,s,p,C),E.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr;if(o.validatePromise===b){var A;o.validatePromise=null;var M=[],z=[];(A=I.forEach)===null||A===void 0||A.call(I,function(_){var H=_.rule.warningOnly,F=_.errors,P=F===void 0?gr:F;H?z.push.apply(z,ye(P)):M.push.apply(M,ye(P))}),o.errors=M,o.warnings=z,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},S)})));return y||(o.validatePromise=b,o.dirty=!0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),o.reRender()),b}),j(it(o),"isFieldValidating",function(){return!!o.validatePromise}),j(it(o),"isFieldTouched",function(){return o.touched}),j(it(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(ba),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),j(it(o),"getErrors",function(){return o.errors}),j(it(o),"getWarnings",function(){return o.warnings}),j(it(o),"isListField",function(){return o.props.isListField}),j(it(o),"isList",function(){return o.props.isList}),j(it(o),"isPreserve",function(){return o.props.preserve}),j(it(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),j(it(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return D(D({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=Zo(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),j(it(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Yr(s||c(!0),d)}),j(it(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,g=c.getValueFromEvent,y=c.normalize,b=c.valuePropName,S=c.getValueProps,h=c.fieldContext,m=v!==void 0?v:h.validateTrigger,p=o.getNamePath(),C=h.getInternalHooks,w=h.getFieldsValue,x=C(ba),E=x.dispatch,R=o.getValue(),O=S||function(_){return j({},b,_)},I=s[f],A=d!==void 0?O(R):{},M=D(D({},s),A);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var _,H=arguments.length,F=new Array(H),P=0;P<H;P++)F[P]=arguments[P];g?_=g.apply(void 0,F):_=i4.apply(void 0,[b].concat(F)),y&&(_=y(_,R,w(!0))),E({type:"updateValue",namePath:p,value:_}),I&&I.apply(void 0,F)};var z=wm(m||[]);return z.forEach(function(_){var H=M[_];M[_]=function(){H&&H.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&E({type:"validateField",namePath:p,triggerName:_})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(ba),l=i.initEntityValue;l(it(o))}return o}return hn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(ba),c=s.registerField;this.cancelRegisterFunc=c(this)}a===!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,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.isFunction,c;return s?c=l:u.isValidElement(l)?c=u.cloneElement(l,this.getControlled(l.props)):(Tn(!l,"`children` of Field is not validate ReactElement."),c=l),u.createElement(u.Fragment,{key:o},c)}}]),n}(u.Component);j(Eg,"contextType",ki);j(Eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function SE(e){var t=e.name,n=at(e,l4),r=u.useContext(ki),o=u.useContext(xc),a=t!==void 0?Qt(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),u.createElement(Eg,be({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function s4(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=u.useContext(ki),s=u.useContext(xc),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var b=Qt(l.prefixName)||[];return[].concat(ye(b),ye(Qt(t)))},[l.prefixName,t]),v=u.useMemo(function(){return D(D({},l),{},{prefixName:f})},[l,f]),g=u.useMemo(function(){return{getKey:function(S){var h=f.length,m=S[h];return[d.keys[m],S.slice(h+1)]}}},[f]);if(typeof r!="function")return Tn(!1,"Form.List only accepts function as children."),null;var y=function(S,h,m){var p=m.source;return p==="internal"?!1:S!==h};return u.createElement(xc.Provider,{value:g},u.createElement(ki.Provider,{value:v},u.createElement(SE,{name:[],shouldUpdate:y,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(b,S){var h=b.value,m=h===void 0?[]:h,p=b.onChange,C=l.getFieldValue,w=function(){var O=C(f||[]);return O||[]},x={add:function(O,I){var A=w();I>=0&&I<=A.length?(d.keys=[].concat(ye(d.keys.slice(0,I)),[d.id],ye(d.keys.slice(I))),p([].concat(ye(A.slice(0,I)),[O],ye(A.slice(I))))):(d.keys=[].concat(ye(d.keys),[d.id]),p([].concat(ye(A),[O]))),d.id+=1},remove:function(O){var I=w(),A=new Set(Array.isArray(O)?O:[O]);A.size<=0||(d.keys=d.keys.filter(function(M,z){return!A.has(z)}),p(I.filter(function(M,z){return!A.has(z)})))},move:function(O,I){if(O!==I){var A=w();O<0||O>=A.length||I<0||I>=A.length||(d.keys=Oy(d.keys,O,I),p(Oy(A,O,I)))}}},E=m||[];return Array.isArray(E)||(E=[]),r(E.map(function(R,O){var I=d.keys[O];return I===void 0&&(d.keys[O]=d.id,I=d.keys[O],d.id+=1),{name:O,key:I,isListField:!0}}),x,S)})))}function u4(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var CE="__@field_split__";function _f(e){return e.map(function(t){return"".concat(Ae(t),":").concat(t)}).join(CE)}var Ya=function(){function e(){gn(this,e),j(this,"kvs",new Map)}return hn(e,[{key:"set",value:function(n,r){this.kvs.set(_f(n),r)}},{key:"get",value:function(n){return this.kvs.get(_f(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(_f(n))}},{key:"map",value:function(n){return ye(this.kvs.entries()).map(function(r){var o=V(r,2),a=o[0],i=o[1],l=a.split(CE);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=V(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),c4=["name"],d4=hn(function e(t){var n=this;gn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(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}}),j(this,"getInternalHooks",function(r){return r===ba?(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}):(Tn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=gi(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=Lr(i,s,Yr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),j(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ya;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),j(this,"getInitialValue",function(r){var o=Yr(n.initialValues,r);return r.length?gi(o):o}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(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}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ya;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Qt(a);return o.get(i)||{INVALIDATE_NAME_PATH:Qt(a)}})}),j(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&Ae(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return s.forEach(function(d){var f,v,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var y,b;if((y=(b=d).isList)!==null&&y!==void 0&&y.call(b))return}else if(!a&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(g);else{var S="getMeta"in d?d.getMeta():null;i(S)&&c.push(g)}}),$y(n.store,c.map(Qt))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var o=Qt(r);return Yr(n.store,o)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Qt(r[i]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var o=Qt(r),a=n.getFieldsError([o])[0];return a.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Qt(r),a=n.getFieldsError([o])[0];return a.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map(Qt),c=!1):(s=null,c=i):(s=i.map(Qt),c=l);var d=n.getFieldEntities(!0),f=function(S){return S.isFieldTouched()};if(!s)return c?d.every(function(b){return f(b)||b.isList()}):d.some(f);var v=new Ya;s.forEach(function(b){v.set(b,[])}),d.forEach(function(b){var S=b.getNamePath();s.forEach(function(h){h.every(function(m,p){return S[p]===m})&&v.update(h,function(m){return[].concat(ye(m),[b])})})});var g=function(S){return S.some(f)},y=v.map(function(b){var S=b.value;return S});return c?y.every(g):y.some(g)}),j(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),j(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Qt);return o.some(function(i){var l=i.getNamePath();return Ri(a,l)&&i.isFieldValidating()})}),j(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),j(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ya,a=n.getFieldEntities(!0);a.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),g=n.getInitialValue(v);if(g!==void 0)Tn(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var y=o.get(v);if(y&&y.size>1)Tn(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(v),S=d.isListField();!S&&(!r.skipExist||b===void 0)&&n.updateStore(Lr(n.store,v,ye(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,ye(ye(c).map(function(f){return f.entity})))}})):l=a,i(l)}),j(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(gi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Qt);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Lr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),j(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=at(i,c4),c=Qt(l);a.push(c),"value"in s&&n.updateStore(Lr(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=D(D({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),j(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Yr(n.store,a);i===void 0&&n.updateStore(Lr(n.store,a,o))}}),j(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!bE(f.getNamePath(),o)})){var d=n.store;n.updateStore(Lr(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),j(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=D(D({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ye(a))}),a}),j(this,"updateValue",function(r,o){var a=Qt(r),i=n.store;n.updateStore(Lr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var c=$y(n.store,[a]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ye(l)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=gi(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),j(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Ya;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=Qt(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(a.push(v),s(v))}})};return l(r),a}),j(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new Ya;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=i.filter(function(c){var d=c.name;return Ri(r,d)});s.length&&a(s,i)}}),j(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(Qt):[],c=[],d=String(Date.now()),f=new Set,v=i||{},g=v.recursive,y=v.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(y&&!m.isFieldDirty())){var p=m.getNamePath();if(f.add(p.join(d)),!l||Ri(s,p,g)){var C=m.validateRules(D({validateMessages:D(D({},yE),n.validateMessages)},i));c.push(C.then(function(){return{name:p,errors:[],warnings:[]}}).catch(function(w){var x,E=[],R=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(O){var I=O.rule.warningOnly,A=O.errors;I?R.push.apply(R,ye(A)):E.push.apply(E,ye(A))}),E.length?Promise.reject({name:p,errors:E,warnings:R}):{name:p,errors:E,warnings:R}}))}}});var b=u4(c);n.lastValidatePromise=b,b.catch(function(m){return m}).then(function(m){var p=m.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,p,{type:"validateFinish"}),n.triggerOnFieldsChange(p,m)});var S=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var p=m.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:p,outOfDate:n.lastValidatePromise!==b})});S.catch(function(m){return m});var h=s.filter(function(m){return f.has(m.join(d))});return n.triggerOnFieldsChange(h),S}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function wE(e){var t=u.useRef(),n=u.useState({}),r=V(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new d4(a);t.current=i.getForm()}return[t.current]}var Tm=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),EE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=u.useContext(Tm),l=u.useRef({});return u.createElement(Tm.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:l.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=D(D({},l.current),{},j({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=D({},l.current);delete d[c],l.current=d,i.unregisterForm(c)}})},a)},f4=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],v4=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,g=v===void 0?"onChange":v,y=t.onValuesChange,b=t.onFieldsChange,S=t.onFinish,h=t.onFinishFailed,m=t.clearOnDestroy,p=at(t,f4),C=u.useRef(null),w=u.useContext(Tm),x=wE(i),E=V(x,1),R=E[0],O=R.getInternalHooks(ba),I=O.useSubscribe,A=O.setInitialValues,M=O.setCallbacks,z=O.setValidateMessages,_=O.setPreserve,H=O.destroyForm;u.useImperativeHandle(n,function(){return D(D({},R),{},{nativeElement:C.current})}),u.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),z(D(D({},w.validateMessages),f)),M({onValuesChange:y,onFieldsChange:function(W){if(w.triggerFormChange(r,W),b){for(var U=arguments.length,ee=new Array(U>1?U-1:0),q=1;q<U;q++)ee[q-1]=arguments[q];b.apply(void 0,[W].concat(ee))}},onFinish:function(W){w.triggerFormFinish(r,W),S&&S(W)},onFinishFailed:h}),_(l);var F=u.useRef(null);A(o,!F.current),F.current||(F.current=!0),u.useEffect(function(){return function(){return H(m)}},[]);var P,$=typeof s=="function";if($){var L=R.getFieldsValue(!0);P=s(L,R)}else P=s;I(!$);var N=u.useRef();u.useEffect(function(){a4(N.current||[],a||[])||R.setFields(a||[]),N.current=a},[a,R]);var T=u.useMemo(function(){return D(D({},R),{},{validateTrigger:g})},[R,g]),B=u.createElement(xc.Provider,{value:null},u.createElement(ki.Provider,{value:T},P));return d===!1?B:u.createElement(d,be({},p,{ref:C,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),R.submit()},onReset:function(W){var U;W.preventDefault(),R.resetFields(),(U=p.onReset)===null||U===void 0||U.call(p,W)}}),B)};function Iy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function m4(){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],a=o===void 0?{}:o,i=EA(a)?{form:a}:a,l=i.form,s=u.useState(),c=V(s,2),d=c[0],f=c[1],v=u.useMemo(function(){return Iy(d)},[d]),g=u.useRef(v);g.current=v;var y=u.useContext(ki),b=l||y,S=b&&b._init,h=Qt(r),m=u.useRef(h);return m.current=h,u.useEffect(function(){if(S){var p=b.getFieldsValue,C=b.getInternalHooks,w=C(ba),x=w.registerWatch,E=function(A,M){var z=i.preserve?M:A;return typeof r=="function"?r(z):Yr(z,m.current)},R=x(function(I,A){var M=E(I,A),z=Iy(M);g.current!==z&&(g.current=z,f(M))}),O=E(p(),p(!0));return d!==O&&f(O),R}},[S]),d}var p4=u.forwardRef(v4),Ts=p4;Ts.FormProvider=EE;Ts.Field=SE;Ts.List=s4;Ts.useForm=wE;Ts.useWatch=m4;const J8=u.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Z8=u.createContext(null),ek=e=>{const t=cr(e,["prefixCls"]);return u.createElement(EE,Object.assign({},t))},tk=u.createContext({prefixCls:""}),bo=u.createContext({}),g4=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(bo),a=u.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return u.createElement(bo.Provider,{value:a},t)},h4=u.createContext(void 0),Mm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=K.createElement(g4,{override:!0,status:!0},o)),t&&(o=K.createElement(ML,null,o)),o};function _y(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Ty(e){const{closable:t,closeIcon:n}=e||{};return K.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function My(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const y4={};function b4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y4;const r=Ty(e),o=Ty(t),a=K.useMemo(()=>Object.assign({closeIcon:K.createElement(Os,null)},n),[n]),i=K.useMemo(()=>r===!1?!1:r?My(a,o,r):o===!1?!1:o?My(a,o):a.closable?a:!1,[r,o,a]);return K.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:l}=a,{closeIcon:s}=i;let c=s;if(c!=null){l&&(c=l(s));const d=ea(i,!0);Object.keys(d).length&&(c=K.isValidElement(c)?K.cloneElement(c,d):K.createElement("span",Object.assign({},d),c))}return[!0,c]},[i,a])}const S4=()=>Fn()&&window.document.documentElement,pd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=G({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=G({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),s=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:G(t,i,l,n),style:Object.assign(Object.assign({},s),r)})},C4=new ht("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),gd=e=>({height:e,lineHeight:J(e)}),$i=e=>Object.assign({width:e},gd(e)),w4=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:C4,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Tf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},gd(e)),E4=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$i(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$i(o)),[`${t}${t}-sm`]:Object.assign({},$i(a))}},x4=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Tf(t,l)),[`${r}-lg`]:Object.assign({},Tf(o,l)),[`${r}-sm`]:Object.assign({},Tf(a,l))}},Ny=e=>Object.assign({width:e},gd(e)),R4=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Ny(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Ny(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Mf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Nf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},gd(e)),$4=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Nf(r,l))},Mf(e,r,n)),{[`${n}-lg`]:Object.assign({},Nf(o,l))}),Mf(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Nf(a,l))}),Mf(e,a,`${n}-sm`))},O4=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:g,borderRadius:y,titleHeight:b,blockRadius:S,paragraphLiHeight:h,controlHeightXS:m,paragraphMarginTop:p}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},$i(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$i(c)),[`${n}-sm`]:Object.assign({},$i(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:b,background:f,borderRadius:S,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:f,borderRadius:S,"+ li":{marginBlockStart:m}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:p}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$4(e)),E4(e)),x4(e)),R4(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${a},
        ${i},
        ${l}
      `]:Object.assign({},w4(e))}}},P4=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Xi=Pr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ut(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[O4(r)]},P4,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),I4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(e,["prefixCls","className"]),g=G(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(pd,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},v))))},_4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(e,["prefixCls"]),g=G(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(pd,Object.assign({prefixCls:`${s}-button`,size:i},v))))},T4="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",M4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=u.useContext(ct),l=i("skeleton",t),[s,c,d]=Xi(l),f=G(l,`${l}-element`,{[`${l}-active`]:a},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:G(`${l}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:T4,className:`${l}-image-path`})))))},N4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(e,["prefixCls"]),g=G(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(pd,Object.assign({prefixCls:`${s}-input`,size:i},v))))};var L4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},A4=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:L4}))},F4=u.forwardRef(A4);const z4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Xi(s),v=G(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),g=i??u.createElement(F4,null);return c(u.createElement("div",{className:v},u.createElement("div",{className:G(`${s}-image`,n),style:o},g)))},j4=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},D4=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=ye(Array(o)).map((i,l)=>u.createElement("li",{key:l,style:{width:j4(l,e)}}));return u.createElement("ul",{className:G(t,n),style:r},a)},B4=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return u.createElement("h3",{className:G(t,n),style:Object.assign({width:r},o)})};function Lf(e){return e&&typeof e=="object"?e:{}}function k4(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function H4(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function V4(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Va=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:v,direction:g,skeleton:y}=u.useContext(ct),b=v("skeleton",t),[S,h,m]=Xi(b);if(n||!("loading"in e)){const p=!!l,C=!!s,w=!!c;let x;if(p){const O=Object.assign(Object.assign({prefixCls:`${b}-avatar`},k4(C,w)),Lf(l));x=u.createElement("div",{className:`${b}-header`},u.createElement(pd,Object.assign({},O)))}let E;if(C||w){let O;if(C){const A=Object.assign(Object.assign({prefixCls:`${b}-title`},H4(p,w)),Lf(s));O=u.createElement(B4,Object.assign({},A))}let I;if(w){const A=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},V4(p,C)),Lf(c));I=u.createElement(D4,Object.assign({},A))}E=u.createElement("div",{className:`${b}-content`},O,I)}const R=G(b,{[`${b}-with-avatar`]:p,[`${b}-active`]:d,[`${b}-rtl`]:g==="rtl",[`${b}-round`]:f},y==null?void 0:y.className,r,o,h,m);return S(u.createElement("div",{className:R,style:Object.assign(Object.assign({},y==null?void 0:y.style),a)},x,E))}return i??null};Va.Button=_4;Va.Avatar=I4;Va.Input=N4;Va.Image=M4;Va.Node=z4;function Ly(){}const W4=u.createContext({add:Ly,remove:Ly});function U4(e){const t=u.useContext(W4),n=u.useRef();return tn(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const Ay=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(Is);return K.createElement(wr,Object.assign({onClick:n},e),t)},Fy=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(Is);return K.createElement(wr,Object.assign({},nE(n),{loading:e,onClick:o},t),r)};function xE(e,t){return K.createElement("span",{className:`${e}-close-x`},t||K.createElement(Os,{className:`${e}-close-icon`}))}const RE=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[d]=cd("Modal",dw()),f=t||(d==null?void 0:d.okText),v=r||(d==null?void 0:d.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:v,okType:n,onOk:a,onCancel:i},y=K.useMemo(()=>g,ye(Object.values(g)));let b;return typeof c=="function"||typeof c>"u"?(b=K.createElement(K.Fragment,null,K.createElement(Ay,null),K.createElement(Fy,null)),typeof c=="function"&&(b=c(b,{OkBtn:Fy,CancelBtn:Ay})),b=K.createElement(uE,{value:y},b)):b=c,K.createElement(yw,{disabled:!1},b)},K4=e=>({animationDuration:e,animationFillMode:"both"}),G4=e=>({animationDuration:e,animationFillMode:"both"}),hd=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},K4(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},G4(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},q4=new ht("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Q4=new ht("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),X4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hd(r,q4,Q4,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Y4=new ht("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J4=new ht("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Z4=new ht("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eF=new ht("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tF=new ht("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nF=new ht("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rF=new ht("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oF=new ht("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),aF={"move-up":{inKeyframes:rF,outKeyframes:oF},"move-down":{inKeyframes:Y4,outKeyframes:J4},"move-left":{inKeyframes:Z4,outKeyframes:eF},"move-right":{inKeyframes:tF,outKeyframes:nF}},zy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=aF[t];return[hd(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$E=new ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),OE=new ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),PE=new ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),IE=new ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),iF=new ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lF=new ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),sF=new ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),uF=new ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),cF={"slide-up":{inKeyframes:$E,outKeyframes:OE},"slide-down":{inKeyframes:PE,outKeyframes:IE},"slide-left":{inKeyframes:iF,outKeyframes:lF},"slide-right":{inKeyframes:sF,outKeyframes:uF}},Rc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=cF[t];return[hd(r,o,a,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},dF=new ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fF=new ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),jy=new ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dy=new ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vF=new ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mF=new ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pF=new ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gF=new ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hF=new ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),yF=new ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bF=new ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),SF=new ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),CF={zoom:{inKeyframes:dF,outKeyframes:fF},"zoom-big":{inKeyframes:jy,outKeyframes:Dy},"zoom-big-fast":{inKeyframes:jy,outKeyframes:Dy},"zoom-left":{inKeyframes:pF,outKeyframes:gF},"zoom-right":{inKeyframes:hF,outKeyframes:yF},"zoom-up":{inKeyframes:vF,outKeyframes:mF},"zoom-down":{inKeyframes:bF,outKeyframes:SF}},wF=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=CF[t];return[hd(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function By(e){return{position:e,inset:0}}const EF=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},By("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},By("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:X4(e)}]},xF=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${J(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},to(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${J(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${J(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},dd(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${J(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},RF=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},_E=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ut(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},TE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${J(e.padding)} ${J(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${J(e.paddingXS)} ${J(e.padding)}`:0,footerBorderTop:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${J(e.padding*2)} ${J(e.padding*2)} ${J(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ME=Pr("Modal",e=>{const t=_E(e);return[xF(t),RF(t),EF(t),wF(t,"zoom")]},TE,{unitless:{titleLineHeight:!0}});var $F=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 Nm;const OF=e=>{Nm={x:e.pageX,y:e.pageY},setTimeout(()=>{Nm=null},100)};S4()&&document.documentElement.addEventListener("click",OF,!0);const NE=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=u.useContext(ct),i=B=>{const{onCancel:k}=e;k==null||k(B)},l=B=>{const{onOk:k}=e;k==null||k(B)},{prefixCls:s,className:c,rootClassName:d,open:f,wrapClassName:v,centered:g,getContainer:y,focusTriggerAfterClose:b=!0,style:S,visible:h,width:m=520,footer:p,classNames:C,styles:w,children:x,loading:E}=e,R=$F(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",s),I=r(),A=ka(O),[M,z,_]=ME(O,A),H=G(v,{[`${O}-centered`]:!!g,[`${O}-wrap-rtl`]:o==="rtl"}),F=p!==null&&!E?u.createElement(RE,Object.assign({},e,{onOk:l,onCancel:i})):null,[P,$]=b4(_y(e),_y(a),{closable:!0,closeIcon:u.createElement(Os,{className:`${O}-close-icon`}),closeIconRender:B=>xE(O,B)}),L=U4(`.${O}-content`),[N,T]=Xw("Modal",R.zIndex);return M(u.createElement(Mm,{form:!0,space:!0},u.createElement(Gw.Provider,{value:T},u.createElement(gE,Object.assign({width:m},R,{zIndex:N,getContainer:y===void 0?n:y,prefixCls:O,rootClassName:G(z,d,_,A),footer:F,visible:f??h,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:Nm,onClose:i,closable:P,closeIcon:$,focusTriggerAfterClose:b,transitionName:Bi(I,"zoom",e.transitionName),maskTransitionName:Bi(I,"fade",e.maskTransitionName),className:G(z,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),S),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:G(H,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:L}),E?u.createElement(Va,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):x))))},PF=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Gi()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${J(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
        ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},IF=Ow(["Modal","confirm"],e=>{const t=_E(e);return[PF(t)]},TE,{order:-1e3});var _F=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 LE(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:s,locale:c}=e,d=_F(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=u.createElement(YN,null);break;case"success":f=u.createElement(kN,null);break;case"error":f=u.createElement(hg,null);break;default:f=u.createElement(qN,null)}const v=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=cd("Modal"),b=c||y,S=r||(v?b==null?void 0:b.okText:b==null?void 0:b.justOkText),h=o||(b==null?void 0:b.cancelText),m=Object.assign({autoFocusButton:g,cancelTextLocale:h,okTextLocale:S,mergedOkCancel:v},d),p=u.useMemo(()=>m,ye(Object.values(m))),C=u.createElement(u.Fragment,null,u.createElement(uy,null),u.createElement(cy,null)),w=e.title!==void 0&&e.title!==null,x=`${a}-body`;return u.createElement("div",{className:`${a}-body-wrapper`},u.createElement("div",{className:G(x,{[`${x}-has-title`]:w})},f,u.createElement("div",{className:`${a}-paragraph`},w&&u.createElement("span",{className:`${a}-title`},e.title),u.createElement("div",{className:`${a}-content`},e.content))),s===void 0||typeof s=="function"?u.createElement(uE,{value:p},u.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(C,{OkBtn:cy,CancelBtn:uy}):C)):s,u.createElement(IF,{prefixCls:t}))}const TF=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:s,direction:c,prefixCls:d,wrapClassName:f,rootPrefixCls:v,bodyStyle:g,closable:y=!1,closeIcon:b,modalRender:S,focusTriggerAfterClose:h,onConfirm:m,styles:p}=e,C=`${d}-confirm`,w=e.width||416,x=e.style||{},E=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,O=G(C,`${C}-${e.type}`,{[`${C}-rtl`]:c==="rtl"},e.className),[,I]=lr(),A=u.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+qw,[n,I]);return u.createElement(NE,{prefixCls:d,className:O,wrapClassName:G({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),m==null||m(!1)},open:o,title:"",footer:null,transitionName:Bi(v||"","zoom",e.transitionName),maskTransitionName:Bi(v||"","fade",e.maskTransitionName),mask:E,maskClosable:R,style:x,styles:Object.assign({body:g,mask:s},p),width:w,zIndex:A,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:y,closeIcon:b,modalRender:S,focusTriggerAfterClose:h},u.createElement(LE,Object.assign({},e,{confirmPrefixCls:C})))},AE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement($s,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(TF,Object.assign({},e)))},Sa=[];let FE="";function zE(){return FE}const MF=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=dw(),l=u.useContext(ct),s=zE()||l.getPrefixCls(),c=r||`${s}-modal`;let d=o;return d===!1&&(d=void 0),K.createElement(AE,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function Ms(e){const t=ON(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function a(){for(var c,d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];if(f.some(b=>b==null?void 0:b.triggerCancel)){var y;(c=e.onCancel)===null||c===void 0||(y=c).call.apply(y,[e,()=>{}].concat(ye(f.slice(1))))}for(let b=0;b<Sa.length;b++)if(Sa[b]===l){Sa.splice(b,1);break}Jw(n)}function i(c){clearTimeout(o),o=setTimeout(()=>{const d=t.getPrefixCls(void 0,zE()),f=t.getIconPrefixCls(),v=t.getTheme(),g=K.createElement(MF,Object.assign({},c));Yw(K.createElement($s,{prefixCls:d,iconPrefixCls:f,theme:v},t.holderRender?t.holderRender(g):g),n)})}function l(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function s(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),i(r)}return i(r),Sa.push(l),{destroy:l,update:s}}function jE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function DE(e){return Object.assign(Object.assign({},e),{type:"info"})}function BE(e){return Object.assign(Object.assign({},e),{type:"success"})}function kE(e){return Object.assign(Object.assign({},e),{type:"error"})}function HE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function NF(e){let{rootPrefixCls:t}=e;FE=t}var LF=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 AF=(e,t)=>{var n,{afterClose:r,config:o}=e,a=LF(e,["afterClose","config"]);const[i,l]=u.useState(!0),[s,c]=u.useState(o),{direction:d,getPrefixCls:f}=u.useContext(ct),v=f("modal"),g=f(),y=()=>{var m;r(),(m=s.afterClose)===null||m===void 0||m.call(s)},b=function(){var m;l(!1);for(var p=arguments.length,C=new Array(p),w=0;w<p;w++)C[w]=arguments[w];if(C.some(R=>R==null?void 0:R.triggerCancel)){var E;(m=s.onCancel)===null||m===void 0||(E=m).call.apply(E,[s,()=>{}].concat(ye(C.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:b,update:m=>{c(p=>Object.assign(Object.assign({},p),m))}}));const S=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[h]=cd("Modal",Na.Modal);return u.createElement(AE,Object.assign({prefixCls:v,rootPrefixCls:g},s,{close:b,open:i,afterClose:y,okText:s.okText||(S?h==null?void 0:h.okText:h==null?void 0:h.justOkText),direction:s.direction||d,cancelText:s.cancelText||(h==null?void 0:h.cancelText)},a))},FF=u.forwardRef(AF);let ky=0;const zF=u.memo(u.forwardRef((e,t)=>{const[n,r]=cL();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function jF(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(ye(t).forEach(i=>{i()}),n([]))},[t]);const r=u.useCallback(a=>function(l){var s;ky+=1;const c=u.createRef();let d;const f=new Promise(S=>{d=S});let v=!1,g;const y=u.createElement(FF,{key:`modal-${ky}`,config:a(l),ref:c,afterClose:()=>{g==null||g()},isSilent:()=>v,onConfirm:S=>{d(S)}});return g=(s=e.current)===null||s===void 0?void 0:s.patchElement(y),g&&Sa.push(g),{destroy:()=>{function S(){var h;(h=c.current)===null||h===void 0||h.destroy()}c.current?S():n(h=>[].concat(ye(h),[S]))},update:S=>{function h(){var m;(m=c.current)===null||m===void 0||m.update(S)}c.current?h():n(m=>[].concat(ye(m),[h]))},then:S=>(v=!0,f.then(S))}},[]);return[u.useMemo(()=>({info:r(DE),success:r(BE),error:r(kE),warning:r(jE),confirm:r(HE)}),[]),u.createElement(zF,{key:"modal-holder",ref:e})]}function VE(e){return t=>u.createElement($s,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const DF=(e,t,n,r)=>VE(a=>{const{prefixCls:i,style:l}=a,s=u.useRef(null),[c,d]=u.useState(0),[f,v]=u.useState(0),[g,y]=ar(!1,{value:a.open}),{getPrefixCls:b}=u.useContext(ct),S=b(t||"select",i);u.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const p=new ResizeObserver(w=>{const x=w[0].target;d(x.offsetHeight+8),v(x.offsetWidth)}),C=setInterval(()=>{var w;const x=n?`.${n(S)}`:`.${S}-dropdown`,E=(w=s.current)===null||w===void 0?void 0:w.querySelector(x);E&&(clearInterval(C),p.observe(E))},10);return()=>{clearInterval(C),p.disconnect()}}},[]);let h=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>s.current});r&&(h=r(h));const m={paddingBottom:c,position:"relative",minWidth:f};return u.createElement("div",{ref:s,style:m},u.createElement(e,Object.assign({},h)))}),xg=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==null?void 0:e.substr(0,4))};var yd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return u.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:u.createElement("span",{className:G(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},BF=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=K.useMemo(function(){if(Ae(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=K.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:K.createElement(yd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},WE=u.createContext(null);function kF(){return u.useContext(WE)}function HF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=V(t,2),r=n[0],o=n[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect(function(){return i},[]);var l=function(c,d){i(),a.current=window.setTimeout(function(){o(c),d&&d()},e)};return[r,l,i]}function UE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.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 VF(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function WF(e){return![re.ESC,re.SHIFT,re.BACKSPACE,re.TAB,re.WIN_KEY,re.ALT,re.META,re.WIN_KEY_RIGHT,re.CTRL,re.SEMICOLON,re.EQUALS,re.CAPS_LOCK,re.CONTEXT_MENU,re.F1,re.F2,re.F3,re.F4,re.F5,re.F6,re.F7,re.F8,re.F9,re.F10,re.F11,re.F12].includes(e)}var UF=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ja=void 0;function KF(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,y=e.order,b=e.component,S=b===void 0?"div":b,h=at(e,UF),m=i&&!g;function p(R){s(c,R)}u.useEffect(function(){return function(){p(null)}},[]);var C=a&&o!==Ja?a(o):v,w;r||(w={opacity:m?0:1,height:m?0:Ja,overflowY:m?"hidden":Ja,order:i?y:Ja,pointerEvents:m?"none":Ja,position:m?"absolute":Ja});var x={};m&&(x["aria-hidden"]=!0);var E=u.createElement(S,be({className:G(!r&&n,d),style:D(D({},w),f)},x,h,{ref:t}),C);return i&&(E=u.createElement(Dr,{onResize:function(O){var I=O.offsetWidth;p(I)},disabled:l},E)),E}var Fl=u.forwardRef(KF);Fl.displayName="Item";function GF(e){if(typeof MessageChannel>"u")xt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function qF(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],GF(function(){Jo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function cl(e,t){var n=u.useState(t),r=V(n,2),o=r[0],a=r[1],i=tn(function(l){e(function(){a(l)})});return[o,i]}var $c=K.createContext(null),QF=["component"],XF=["className"],YF=["className"],JF=function(t,n){var r=u.useContext($c);if(!r){var o=t.component,a=o===void 0?"div":o,i=at(t,QF);return u.createElement(a,be({},i,{ref:n}))}var l=r.className,s=at(r,XF),c=t.className,d=at(t,YF);return u.createElement($c.Provider,{value:null},u.createElement(Fl,be({ref:n,className:G(l,c)},s,d)))},KE=u.forwardRef(JF);KE.displayName="RawItem";var ZF=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],GE="responsive",qE="invalidate";function ez(e){return"+ ".concat(e.length," ...")}function tz(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,g=e.className,y=e.maxCount,b=e.renderRest,S=e.renderRawRest,h=e.suffix,m=e.component,p=m===void 0?"div":m,C=e.itemComponent,w=e.onVisibleChange,x=at(e,ZF),E=f==="full",R=qF(),O=cl(R,null),I=V(O,2),A=I[0],M=I[1],z=A||0,_=cl(R,new Map),H=V(_,2),F=H[0],P=H[1],$=cl(R,0),L=V($,2),N=L[0],T=L[1],B=cl(R,0),k=V(B,2),W=k[0],U=k[1],ee=cl(R,0),q=V(ee,2),ae=q[0],ce=q[1],ne=u.useState(null),Q=V(ne,2),te=Q[0],ie=Q[1],Y=u.useState(null),oe=V(Y,2),fe=oe[0],Pe=oe[1],me=u.useMemo(function(){return fe===null&&E?Number.MAX_SAFE_INTEGER:fe||0},[fe,A]),le=u.useState(!1),ve=V(le,2),se=ve[0],Ee=ve[1],Ne="".concat(r,"-item"),Se=Math.max(N,W),Fe=y===GE,pe=a.length&&Fe,rt=y===qE,De=pe||typeof y=="number"&&a.length>y,xe=u.useMemo(function(){var Le=a;return pe?A===null&&E?Le=a:Le=a.slice(0,Math.min(a.length,z/d)):typeof y=="number"&&(Le=a.slice(0,y)),Le},[a,d,A,y,pe]),Ce=u.useMemo(function(){return pe?a.slice(me+1):a.slice(xe.length)},[a,xe,pe,me]),He=u.useCallback(function(Le,ge){var Xe;return typeof s=="function"?s(Le):(Xe=s&&(Le==null?void 0:Le[s]))!==null&&Xe!==void 0?Xe:ge},[s]),Be=u.useCallback(i||function(Le){return Le},[i]);function et(Le,ge,Xe){fe===Le&&(ge===void 0||ge===te)||(Pe(Le),Xe||(Ee(Le<a.length-1),w==null||w(Le)),ge!==void 0&&ie(ge))}function ft(Le,ge){M(ge.clientWidth)}function ut(Le,ge){P(function(Xe){var tt=new Map(Xe);return ge===null?tt.delete(Le):tt.set(Le,ge),tt})}function qe(Le,ge){U(ge),T(W)}function lt(Le,ge){ce(ge)}function st(Le){return F.get(He(xe[Le],Le))}zt(function(){if(z&&typeof Se=="number"&&xe){var Le=ae,ge=xe.length,Xe=ge-1;if(!ge){et(0,null);return}for(var tt=0;tt<ge;tt+=1){var de=st(tt);if(E&&(de=de||0),de===void 0){et(tt-1,void 0,!0);break}if(Le+=de,Xe===0&&Le<=z||tt===Xe-1&&Le+st(Xe)<=z){et(Xe,null);break}else if(Le+Se>z){et(tt-1,Le-de-ae+W);break}}h&&st(0)+ae>z&&ie(null)}},[z,F,W,ae,He,xe]);var Mt=se&&!!Ce.length,yt={};te!==null&&pe&&(yt={position:"absolute",left:te,top:0});var wt={prefixCls:Ne,responsive:pe,component:C,invalidate:rt},At=l?function(Le,ge){var Xe=He(Le,ge);return u.createElement($c.Provider,{key:Xe,value:D(D({},wt),{},{order:ge,item:Le,itemKey:Xe,registerSize:ut,display:ge<=me})},l(Le,ge))}:function(Le,ge){var Xe=He(Le,ge);return u.createElement(Fl,be({},wt,{order:ge,key:Xe,item:Le,renderItem:Be,itemKey:Xe,registerSize:ut,display:ge<=me}))},bt,Je={order:Mt?me:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:qe,display:Mt};if(S)S&&(bt=u.createElement($c.Provider,{value:D(D({},wt),Je)},S(Ce)));else{var je=b||ez;bt=u.createElement(Fl,be({},wt,Je),typeof je=="function"?je(Ce):je)}var ke=u.createElement(p,be({className:G(!rt&&r,g),style:v,ref:t},x),xe.map(At),De?bt:null,h&&u.createElement(Fl,be({},wt,{responsive:Fe,responsiveDisabled:!pe,order:me,className:"".concat(Ne,"-suffix"),registerSize:lt,display:!0,style:yt}),h));return Fe&&(ke=u.createElement(Dr,{onResize:ft,disabled:!pe},ke)),ke}var eo=u.forwardRef(tz);eo.displayName="Overflow";eo.Item=KE;eo.RESPONSIVE=GE;eo.INVALIDATE=qE;var nz=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,d=t.autoComplete,f=t.editable,v=t.activeDescendantId,g=t.value,y=t.maxLength,b=t.onKeyDown,S=t.onMouseDown,h=t.onChange,m=t.onPaste,p=t.onCompositionStart,C=t.onCompositionEnd,w=t.open,x=t.attrs,E=i||u.createElement("input",null),R=E,O=R.ref,I=R.props,A=I.onKeyDown,M=I.onChange,z=I.onMouseDown,_=I.onCompositionStart,H=I.onCompositionEnd,F=I.style;return"maxLength"in E.props,E=u.cloneElement(E,D(D(D({type:"search"},I),{},{id:a,ref:Ur(n,O),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:c,className:G("".concat(o,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?v:void 0},x),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:D(D({},F),{},{opacity:f?null:0}),onKeyDown:function($){b($),A&&A($)},onMouseDown:function($){S($),z&&z($)},onChange:function($){h($),M&&M($)},onCompositionStart:function($){p($),_&&_($)},onCompositionEnd:function($){C($),H&&H($)},onPaste:m})),E},QE=u.forwardRef(nz);function XE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var rz=typeof window<"u"&&window.document&&window.document.documentElement,oz=rz;function az(e){return e!=null}function iz(e){return!e&&e!==0}function Hy(e){return["string","number"].includes(Ae(e))}function YE(e){var t=void 0;return e&&(Hy(e.title)?t=e.title.toString():Hy(e.label)&&(t=e.label.toString())),t}function lz(e,t){oz?u.useLayoutEffect(e,t):u.useEffect(e,t)}function sz(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Vy=function(t){t.preventDefault(),t.stopPropagation()},uz=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,v=t.showSearch,g=t.autoFocus,y=t.autoComplete,b=t.activeDescendantId,S=t.tabIndex,h=t.removeIcon,m=t.maxTagCount,p=t.maxTagTextLength,C=t.maxTagPlaceholder,w=C===void 0?function(ie){return"+ ".concat(ie.length," ...")}:C,x=t.tagRender,E=t.onToggleOpen,R=t.onRemove,O=t.onInputChange,I=t.onInputPaste,A=t.onInputKeyDown,M=t.onInputMouseDown,z=t.onInputCompositionStart,_=t.onInputCompositionEnd,H=u.useRef(null),F=u.useState(0),P=V(F,2),$=P[0],L=P[1],N=u.useState(!1),T=V(N,2),B=T[0],k=T[1],W="".concat(r,"-selection"),U=a||f==="multiple"&&l===!1||f==="tags"?i:"",ee=f==="tags"||f==="multiple"&&l===!1||v&&(a||B);lz(function(){L(H.current.scrollWidth)},[U]);var q=function(Y,oe,fe,Pe,me){return u.createElement("span",{title:YE(Y),className:G("".concat(W,"-item"),j({},"".concat(W,"-item-disabled"),fe))},u.createElement("span",{className:"".concat(W,"-item-content")},oe),Pe&&u.createElement(yd,{className:"".concat(W,"-item-remove"),onMouseDown:Vy,onClick:me,customizeIcon:h},"×"))},ae=function(Y,oe,fe,Pe,me,le){var ve=function(Ee){Vy(Ee),E(!a)};return u.createElement("span",{onMouseDown:ve},x({label:oe,value:Y,disabled:fe,closable:Pe,onClose:me,isMaxTag:!!le}))},ce=function(Y){var oe=Y.disabled,fe=Y.label,Pe=Y.value,me=!d&&!oe,le=fe;if(typeof p=="number"&&(typeof fe=="string"||typeof fe=="number")){var ve=String(le);ve.length>p&&(le="".concat(ve.slice(0,p),"..."))}var se=function(Ne){Ne&&Ne.stopPropagation(),R(Y)};return typeof x=="function"?ae(Pe,le,oe,me,se):q(Y,le,oe,me,se)},ne=function(Y){var oe=typeof w=="function"?w(Y):w;return typeof x=="function"?ae(void 0,oe,!1,!1,void 0,!0):q({title:oe},oe,!1)},Q=u.createElement("div",{className:"".concat(W,"-search"),style:{width:$},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},u.createElement(QE,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:y,editable:ee,activeDescendantId:b,value:U,onKeyDown:A,onMouseDown:M,onChange:O,onPaste:I,onCompositionStart:z,onCompositionEnd:_,tabIndex:S,attrs:ea(t,!0)}),u.createElement("span",{ref:H,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},U," ")),te=u.createElement(eo,{prefixCls:"".concat(W,"-overflow"),data:o,renderItem:ce,renderRest:ne,suffix:Q,itemKey:sz,maxCount:m});return u.createElement(u.Fragment,null,te,!o.length&&!U&&u.createElement("span",{className:"".concat(W,"-placeholder")},c))},cz=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,g=t.placeholder,y=t.tabIndex,b=t.showSearch,S=t.searchValue,h=t.activeValue,m=t.maxLength,p=t.onInputKeyDown,C=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,R=t.onInputCompositionEnd,O=t.title,I=u.useState(!1),A=V(I,2),M=A[0],z=A[1],_=d==="combobox",H=_||b,F=v[0],P=S||"";_&&h&&!M&&(P=h),u.useEffect(function(){_&&z(!1)},[_,h]);var $=d!=="combobox"&&!f&&!b?!1:!!P,L=O===void 0?YE(F):O,N=u.useMemo(function(){return F?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:$?{visibility:"hidden"}:void 0},g)},[F,$,g,r]);return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(QE,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:H,activeDescendantId:c,value:P,onKeyDown:p,onMouseDown:C,onChange:function(B){z(!0),w(B)},onPaste:x,onCompositionStart:E,onCompositionEnd:R,tabIndex:y,attrs:ea(t,!0),maxLength:_?m:void 0})),!_&&F?u.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:$?{visibility:"hidden"}:void 0},F.label):null,N)},dz=function(t,n){var r=u.useRef(null),o=u.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,v=t.onSearch,g=t.onSearchSubmit,y=t.onToggleOpen,b=t.onInputKeyDown,S=t.domRef;u.useImperativeHandle(n,function(){return{focus:function($){r.current.focus($)},blur:function(){r.current.blur()}}});var h=UE(0),m=V(h,2),p=m[0],C=m[1],w=function($){var L=$.which;(L===re.UP||L===re.DOWN)&&$.preventDefault(),b&&b($),L===re.ENTER&&l==="tags"&&!o.current&&!i&&(g==null||g($.target.value)),WF(L)&&y(!0)},x=function(){C(!0)},E=u.useRef(null),R=function($){v($,!0,o.current)!==!1&&y(!0)},O=function(){o.current=!0},I=function($){o.current=!1,l!=="combobox"&&R($.target.value)},A=function($){var L=$.target.value;if(c&&E.current&&/[\r\n]/.test(E.current)){var N=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(N,E.current)}E.current=null,R(L)},M=function($){var L=$.clipboardData,N=L==null?void 0:L.getData("text");E.current=N||""},z=function($){var L=$.target;if(L!==r.current){var N=document.body.style.msTouchAction!==void 0;N?setTimeout(function(){r.current.focus()}):r.current.focus()}},_=function($){var L=p();$.target!==r.current&&!L&&!(l==="combobox"&&d)&&$.preventDefault(),(l!=="combobox"&&(!s||!L)||!i)&&(i&&f!==!1&&v("",!0,!1),y())},H={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:A,onInputPaste:M,onInputCompositionStart:O,onInputCompositionEnd:I},F=l==="multiple"||l==="tags"?u.createElement(uz,be({},t,H)):u.createElement(cz,be({},t,H));return u.createElement("div",{ref:S,className:"".concat(a,"-selector"),onClick:z,onMouseDown:_},F)},fz=u.forwardRef(dz);function vz(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,v=u.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],S=y[0],h=y[1],m=b[0],p=b[1];S===m||!["t","b"].includes(S)?g.top=f:S==="t"?g.top=0:g.bottom=0,h===p||!["l","r"].includes(h)?g.left=c:h==="l"?g.left=0:g.right=0}return u.createElement("div",{ref:v,className:G("".concat(t,"-arrow"),i),style:g},l)}function mz(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(wo,be({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return u.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),l)})}):null}var pz=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),gz=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,y=e.arrowPos,b=e.align,S=e.motion,h=e.maskMotion,m=e.forceRender,p=e.getPopupContainer,C=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,I=e.ready,A=e.offsetX,M=e.offsetY,z=e.offsetR,_=e.offsetB,H=e.onAlign,F=e.onPrepare,P=e.stretch,$=e.targetWidth,L=e.targetHeight,N=typeof n=="function"?n():n,T=s||c,B=(p==null?void 0:p.length)>0,k=u.useState(!p||!B),W=V(k,2),U=W[0],ee=W[1];if(zt(function(){!U&&B&&i&&ee(!0)},[U,B,i]),!U)return null;var q="auto",ae={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(I||!s){var ce,ne=b.points,Q=b.dynamicInset||((ce=b._experimental)===null||ce===void 0?void 0:ce.dynamicInset),te=Q&&ne[0][1]==="r",ie=Q&&ne[0][0]==="b";te?(ae.right=z,ae.left=q):(ae.left=A,ae.right=q),ie?(ae.bottom=_,ae.top=q):(ae.top=M,ae.bottom=q)}var Y={};return P&&(P.includes("height")&&L?Y.height=L:P.includes("minHeight")&&L&&(Y.minHeight=L),P.includes("width")&&$?Y.width=$:P.includes("minWidth")&&$&&(Y.minWidth=$)),s||(Y.pointerEvents="none"),u.createElement(w,{open:m||T,getContainer:p&&function(){return p(i)},autoDestroy:C},u.createElement(mz,{prefixCls:o,open:s,zIndex:x,mask:v,motion:h}),u.createElement(Dr,{onResize:H,disabled:!s},function(oe){return u.createElement(wo,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:F,onEnterPrepare:F,visible:s,onVisibleChanged:function(Pe){var me;S==null||(me=S.onVisibleChanged)===null||me===void 0||me.call(S,Pe),l(Pe)}}),function(fe,Pe){var me=fe.className,le=fe.style,ve=G(o,me,r);return u.createElement("div",{ref:Ur(oe,t,Pe),className:ve,style:D(D(D(D({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ae),Y),le),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:E,onMouseLeave:R,onPointerEnter:O,onClick:f},g&&u.createElement(vz,{prefixCls:o,arrow:g,arrowPos:y,align:b}),u.createElement(pz,{cache:!s&&!d},N))})}))}),hz=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=aa(n),a=u.useCallback(function(l){ng(t,r?r(l):l)},[r]),i=Ba(a,n.ref);return o?u.cloneElement(n,{ref:i}):n}),Wy=u.createContext(null);function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function yz(e,t,n,r){return u.useMemo(function(){var o=Uy(n??t),a=Uy(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function bz(){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 Sz(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(bz((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function Ky(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ns(e){return e.ownerDocument.defaultView}function Lm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ns(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function dl(e){return ms(parseFloat(e),0)}function Gy(e,t){var n=D({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ns(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,S=dl(l),h=dl(s),m=dl(c),p=dl(d),C=ms(Math.round(f.width/y*1e3)/1e3),w=ms(Math.round(f.height/v*1e3)/1e3),x=(y-b-m-p)*C,E=(v-g-S-h)*w,R=S*w,O=h*w,I=m*C,A=p*C,M=0,z=0;if(a==="clip"){var _=dl(i);M=_*C,z=_*w}var H=f.x+I-M,F=f.y+R-z,P=H+f.width+2*M-I-A-x,$=F+f.height+2*z-R-O-E;n.left=Math.max(n.left,H),n.top=Math.max(n.top,F),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,$)}}),n}function qy(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 Qy(e,t){var n=t||[],r=V(n,2),o=r[0],a=r[1];return[qy(e.width,o),qy(e.height,a)]}function Xy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Za(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function Po(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 Cz(e,t,n,r,o,a,i){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=V(l,2),c=s[0],d=s[1],f=u.useRef(0),v=u.useMemo(function(){return t?Lm(t):[]},[t]),g=u.useRef({}),y=function(){g.current={}};e||y();var b=tn(function(){if(t&&n&&e){let fn=function(Ir,sa){var Ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,Ga=N.x+Ir,Zi=N.y+sa,el=Ga+ce,js=Zi+ae,Id=Math.max(Ga,Ka.left),_d=Math.max(Zi,Ka.top),Td=Math.min(el,Ka.right),Md=Math.min(js,Ka.bottom);return Math.max(0,(Td-Id)*(Md-_d))},$o=function(){mt=N.y+je,Ue=mt+ae,Re=N.x+Je,We=Re+ce};var m,p,C=t,w=C.ownerDocument,x=Ns(C),E=x.getComputedStyle(C),R=E.width,O=E.height,I=E.position,A=C.style.left,M=C.style.top,z=C.style.right,_=C.style.bottom,H=C.style.overflow,F=D(D({},o[r]),a),P=w.createElement("div");(m=C.parentElement)===null||m===void 0||m.appendChild(P),P.style.left="".concat(C.offsetLeft,"px"),P.style.top="".concat(C.offsetTop,"px"),P.style.position=I,P.style.height="".concat(C.offsetHeight,"px"),P.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();$={x:L.x,y:L.y,width:L.width,height:L.height}}var N=C.getBoundingClientRect(),T=w.documentElement,B=T.clientWidth,k=T.clientHeight,W=T.scrollWidth,U=T.scrollHeight,ee=T.scrollTop,q=T.scrollLeft,ae=N.height,ce=N.width,ne=$.height,Q=$.width,te={left:0,top:0,right:B,bottom:k},ie={left:-q,top:-ee,right:W-q,bottom:U-ee},Y=F.htmlRegion,oe="visible",fe="visibleFirst";Y!=="scroll"&&Y!==fe&&(Y=oe);var Pe=Y===fe,me=Gy(ie,v),le=Gy(te,v),ve=Y===oe?le:me,se=Pe?le:ve;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Ee=C.getBoundingClientRect();C.style.left=A,C.style.top=M,C.style.right=z,C.style.bottom=_,C.style.overflow=H,(p=C.parentElement)===null||p===void 0||p.removeChild(P);var Ne=ms(Math.round(ce/parseFloat(R)*1e3)/1e3),Se=ms(Math.round(ae/parseFloat(O)*1e3)/1e3);if(Ne===0||Se===0||ns(n)&&!yg(n))return;var Fe=F.offset,pe=F.targetOffset,rt=Qy(N,Fe),De=V(rt,2),xe=De[0],Ce=De[1],He=Qy($,pe),Be=V(He,2),et=Be[0],ft=Be[1];$.x-=et,$.y-=ft;var ut=F.points||[],qe=V(ut,2),lt=qe[0],st=qe[1],Mt=Xy(st),yt=Xy(lt),wt=Za($,Mt),At=Za(N,yt),bt=D({},F),Je=wt.x-At.x+xe,je=wt.y-At.y+Ce,ke=fn(Je,je),Le=fn(Je,je,le),ge=Za($,["t","l"]),Xe=Za(N,["t","l"]),tt=Za($,["b","r"]),de=Za(N,["b","r"]),we=F.overflow||{},he=we.adjustX,_e=we.adjustY,Ve=we.shiftX,Ze=we.shiftY,Ot=function(sa){return typeof sa=="boolean"?sa:sa>=0},mt,Ue,Re,We;$o();var Et=Ot(_e),St=yt[0]===Mt[0];if(Et&&yt[0]==="t"&&(Ue>se.bottom||g.current.bt)){var Pt=je;St?Pt-=ae-ne:Pt=ge.y-de.y-Ce;var kt=fn(Je,Pt),$e=fn(Je,Pt,le);kt>ke||kt===ke&&(!Pe||$e>=Le)?(g.current.bt=!0,je=Pt,Ce=-Ce,bt.points=[Po(yt,0),Po(Mt,0)]):g.current.bt=!1}if(Et&&yt[0]==="b"&&(mt<se.top||g.current.tb)){var Oe=je;St?Oe+=ae-ne:Oe=tt.y-Xe.y-Ce;var Me=fn(Je,Oe),It=fn(Je,Oe,le);Me>ke||Me===ke&&(!Pe||It>=Le)?(g.current.tb=!0,je=Oe,Ce=-Ce,bt.points=[Po(yt,0),Po(Mt,0)]):g.current.tb=!1}var on=Ot(he),dr=yt[1]===Mt[1];if(on&&yt[1]==="l"&&(We>se.right||g.current.rl)){var Jt=Je;dr?Jt-=ce-Q:Jt=ge.x-de.x-xe;var Bn=fn(Jt,je),fr=fn(Jt,je,le);Bn>ke||Bn===ke&&(!Pe||fr>=Le)?(g.current.rl=!0,Je=Jt,xe=-xe,bt.points=[Po(yt,1),Po(Mt,1)]):g.current.rl=!1}if(on&&yt[1]==="r"&&(Re<se.left||g.current.lr)){var kn=Je;dr?kn+=ce-Q:kn=tt.x-Xe.x-xe;var Yn=fn(kn,je),xo=fn(kn,je,le);Yn>ke||Yn===ke&&(!Pe||xo>=Le)?(g.current.lr=!0,Je=kn,xe=-xe,bt.points=[Po(yt,1),Po(Mt,1)]):g.current.lr=!1}$o();var Nn=Ve===!0?0:Ve;typeof Nn=="number"&&(Re<le.left&&(Je-=Re-le.left-xe,$.x+Q<le.left+Nn&&(Je+=$.x-le.left+Q-Nn)),We>le.right&&(Je-=We-le.right-xe,$.x>le.right-Nn&&(Je+=$.x-le.right+Nn)));var yn=Ze===!0?0:Ze;typeof yn=="number"&&(mt<le.top&&(je-=mt-le.top-Ce,$.y+ne<le.top+yn&&(je+=$.y-le.top+ne-yn)),Ue>le.bottom&&(je-=Ue-le.bottom-Ce,$.y>le.bottom-yn&&(je+=$.y-le.bottom+yn)));var no=N.x+Je,Ro=no+ce,vr=N.y+je,mr=vr+ae,Gr=$.x,pr=Gr+Q,Qe=$.y,Ke=Qe+ne,Zt=Math.max(no,Gr),ot=Math.min(Ro,pr),ze=(Zt+ot)/2,Ye=ze-no,_t=Math.max(vr,Qe),Nt=Math.min(mr,Ke),dn=(_t+Nt)/2,Hn=dn-vr;i==null||i(t,bt);var $n=Ee.right-N.x-(Je+N.width),Vn=Ee.bottom-N.y-(je+N.height);Ne===1&&(Je=Math.round(Je),$n=Math.round($n)),Se===1&&(je=Math.round(je),Vn=Math.round(Vn));var Ua={ready:!0,offsetX:Je/Ne,offsetY:je/Se,offsetR:$n/Ne,offsetB:Vn/Se,arrowX:Ye/Ne,arrowY:Hn/Se,scaleX:Ne,scaleY:Se,align:bt};d(Ua)}}),S=function(){f.current+=1;var p=f.current;Promise.resolve().then(function(){f.current===p&&b()})},h=function(){d(function(p){return D(D({},p),{},{ready:!1})})};return zt(h,[r]),zt(function(){e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,S]}function wz(e,t,n,r,o){zt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=Lm(a),s=Lm(i),c=Ns(i),d=new Set([c].concat(ye(l),ye(s)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function Ez(e,t,n,r,o,a,i,l){var s=u.useRef(e);s.current=e,u.useEffect(function(){if(t&&r&&(!o||a)){var c=function(g){var y=g.target;s.current&&!i(y)&&l(!1)},d=Ns(r);d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var f=Cc(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,a])}var xz=["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 Rz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wg,t=u.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,S=n.mouseLeaveDelay,h=S===void 0?.1:S,m=n.focusDelay,p=n.blurDelay,C=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,R=n.forceRender,O=n.autoDestroy,I=n.destroyPopupOnHide,A=n.popup,M=n.popupClassName,z=n.popupStyle,_=n.popupPlacement,H=n.builtinPlacements,F=H===void 0?{}:H,P=n.popupAlign,$=n.zIndex,L=n.stretch,N=n.getPopupClassNameFromAlign,T=n.fresh,B=n.alignPoint,k=n.onPopupClick,W=n.onPopupAlign,U=n.arrow,ee=n.popupMotion,q=n.maskMotion,ae=n.popupTransitionName,ce=n.popupAnimation,ne=n.maskTransitionName,Q=n.maskAnimation,te=n.className,ie=n.getTriggerDOMNode,Y=at(n,xz),oe=O||I||!1,fe=u.useState(!1),Pe=V(fe,2),me=Pe[0],le=Pe[1];zt(function(){le(xg())},[]);var ve=u.useRef({}),se=u.useContext(Wy),Ee=u.useMemo(function(){return{registerSubPopup:function(Ge,Kt){ve.current[Ge]=Kt,se==null||se.registerSubPopup(Ge,Kt)}}},[se]),Ne=vE(),Se=u.useState(null),Fe=V(Se,2),pe=Fe[0],rt=Fe[1],De=u.useRef(null),xe=tn(function(Te){De.current=Te,ns(Te)&&pe!==Te&&rt(Te),se==null||se.registerSubPopup(Ne,Te)}),Ce=u.useState(null),He=V(Ce,2),Be=He[0],et=He[1],ft=u.useRef(null),ut=tn(function(Te){ns(Te)&&Be!==Te&&(et(Te),ft.current=Te)}),qe=u.Children.only(i),lt=(qe==null?void 0:qe.props)||{},st={},Mt=tn(function(Te){var Ge,Kt,an=Be;return(an==null?void 0:an.contains(Te))||((Ge=Cc(an))===null||Ge===void 0?void 0:Ge.host)===Te||Te===an||(pe==null?void 0:pe.contains(Te))||((Kt=Cc(pe))===null||Kt===void 0?void 0:Kt.host)===Te||Te===pe||Object.values(ve.current).some(function(Gt){return(Gt==null?void 0:Gt.contains(Te))||Te===Gt})}),yt=Ky(a,ee,ce,ae),wt=Ky(a,q,Q,ne),At=u.useState(v||!1),bt=V(At,2),Je=bt[0],je=bt[1],ke=f??Je,Le=tn(function(Te){f===void 0&&je(Te)});zt(function(){je(f||!1)},[f]);var ge=u.useRef(ke);ge.current=ke;var Xe=u.useRef([]);Xe.current=[];var tt=tn(function(Te){var Ge;Le(Te),((Ge=Xe.current[Xe.current.length-1])!==null&&Ge!==void 0?Ge:ke)!==Te&&(Xe.current.push(Te),g==null||g(Te))}),de=u.useRef(),we=function(){clearTimeout(de.current)},he=function(Ge){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;we(),Kt===0?tt(Ge):de.current=setTimeout(function(){tt(Ge)},Kt*1e3)};u.useEffect(function(){return we},[]);var _e=u.useState(!1),Ve=V(_e,2),Ze=Ve[0],Ot=Ve[1];zt(function(Te){(!Te||ke)&&Ot(!0)},[ke]);var mt=u.useState(null),Ue=V(mt,2),Re=Ue[0],We=Ue[1],Et=u.useState([0,0]),St=V(Et,2),Pt=St[0],kt=St[1],$e=function(Ge){kt([Ge.clientX,Ge.clientY])},Oe=Cz(ke,pe,B?Pt:Be,_,F,P,W),Me=V(Oe,11),It=Me[0],on=Me[1],dr=Me[2],Jt=Me[3],Bn=Me[4],fr=Me[5],kn=Me[6],Yn=Me[7],xo=Me[8],Nn=Me[9],yn=Me[10],no=yz(me,s,c,d),Ro=V(no,2),vr=Ro[0],mr=Ro[1],Gr=vr.has("click"),pr=mr.has("click")||mr.has("contextMenu"),Qe=tn(function(){Ze||yn()}),Ke=function(){ge.current&&B&&pr&&he(!1)};wz(ke,Be,pe,Qe,Ke),zt(function(){Qe()},[Pt,_]),zt(function(){ke&&!(F!=null&&F[_])&&Qe()},[JSON.stringify(P)]);var Zt=u.useMemo(function(){var Te=Sz(F,a,Nn,B);return G(Te,N==null?void 0:N(Nn))},[Nn,N,F,a,B]);u.useImperativeHandle(r,function(){return{nativeElement:ft.current,popupElement:De.current,forceAlign:Qe}});var ot=u.useState(0),ze=V(ot,2),Ye=ze[0],_t=ze[1],Nt=u.useState(0),dn=V(Nt,2),Hn=dn[0],$n=dn[1],Vn=function(){if(L&&Be){var Ge=Be.getBoundingClientRect();_t(Ge.width),$n(Ge.height)}},Ua=function(){Vn(),Qe()},fn=function(Ge){Ot(!1),yn(),y==null||y(Ge)},$o=function(){return new Promise(function(Ge){Vn(),We(function(){return Ge})})};zt(function(){Re&&(yn(),Re(),We(null))},[Re]);function Ir(Te,Ge,Kt,an){st[Te]=function(Gt){var Ds;an==null||an(Gt),he(Ge,Kt);for(var Nd=arguments.length,Wg=new Array(Nd>1?Nd-1:0),Bs=1;Bs<Nd;Bs++)Wg[Bs-1]=arguments[Bs];(Ds=lt[Te])===null||Ds===void 0||Ds.call.apply(Ds,[lt,Gt].concat(Wg))}}(Gr||pr)&&(st.onClick=function(Te){var Ge;ge.current&&pr?he(!1):!ge.current&&Gr&&($e(Te),he(!0));for(var Kt=arguments.length,an=new Array(Kt>1?Kt-1:0),Gt=1;Gt<Kt;Gt++)an[Gt-1]=arguments[Gt];(Ge=lt.onClick)===null||Ge===void 0||Ge.call.apply(Ge,[lt,Te].concat(an))}),Ez(ke,pr,Be,pe,C,x,Mt,he);var sa=vr.has("hover"),Ka=mr.has("hover"),Ga,Zi;sa&&(Ir("onMouseEnter",!0,b,function(Te){$e(Te)}),Ir("onPointerEnter",!0,b,function(Te){$e(Te)}),Ga=function(Ge){(ke||Ze)&&pe!==null&&pe!==void 0&&pe.contains(Ge.target)&&he(!0,b)},B&&(st.onMouseMove=function(Te){var Ge;(Ge=lt.onMouseMove)===null||Ge===void 0||Ge.call(lt,Te)})),Ka&&(Ir("onMouseLeave",!1,h),Ir("onPointerLeave",!1,h),Zi=function(){he(!1,h)}),vr.has("focus")&&Ir("onFocus",!0,m),mr.has("focus")&&Ir("onBlur",!1,p),vr.has("contextMenu")&&(st.onContextMenu=function(Te){var Ge;ge.current&&mr.has("contextMenu")?he(!1):($e(Te),he(!0)),Te.preventDefault();for(var Kt=arguments.length,an=new Array(Kt>1?Kt-1:0),Gt=1;Gt<Kt;Gt++)an[Gt-1]=arguments[Gt];(Ge=lt.onContextMenu)===null||Ge===void 0||Ge.call.apply(Ge,[lt,Te].concat(an))}),te&&(st.className=G(lt.className,te));var el=D(D({},lt),st),js={},Id=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Id.forEach(function(Te){Y[Te]&&(js[Te]=function(){for(var Ge,Kt=arguments.length,an=new Array(Kt),Gt=0;Gt<Kt;Gt++)an[Gt]=arguments[Gt];(Ge=el[Te])===null||Ge===void 0||Ge.call.apply(Ge,[el].concat(an)),Y[Te].apply(Y,an)})});var _d=u.cloneElement(qe,D(D({},el),js)),Td={x:fr,y:kn},Md=U?D({},U!==!0?U:{}):null;return u.createElement(u.Fragment,null,u.createElement(Dr,{disabled:!ke,ref:ut,onResize:Ua},u.createElement(hz,{getTriggerDOMNode:ie},_d)),u.createElement(Wy.Provider,{value:Ee},u.createElement(gz,{portal:e,ref:xe,prefixCls:a,popup:A,className:G(M,Zt),style:z,target:Be,onMouseEnter:Ga,onMouseLeave:Zi,onPointerEnter:Ga,zIndex:$,open:ke,keepDom:Ze,fresh:T,onClick:k,mask:C,motion:yt,maskMotion:wt,onVisibleChanged:fn,onPrepare:$o,forceRender:R,autoDestroy:oe,getPopupContainer:E,align:Nn,arrow:Md,arrowPos:Td,ready:It,offsetX:on,offsetY:dr,offsetR:Jt,offsetB:Bn,onAlign:Qe,stretch:L,targetWidth:Ye/Yn,targetHeight:Hn/xo})))});return t}const Rg=Rz(wg);var $z=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oz=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"}}},Pz=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,g=t.placement,y=t.builtinPlacements,b=t.dropdownMatchSelectWidth,S=t.dropdownRender,h=t.dropdownAlign,m=t.getPopupContainer,p=t.empty,C=t.getTriggerDOMNode,w=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=at(t,$z),R="".concat(r,"-dropdown"),O=i;S&&(O=S(i));var I=u.useMemo(function(){return y||Oz(b)},[y,b]),A=l?"".concat(R,"-").concat(l):s,M=typeof b=="number",z=u.useMemo(function(){return M?null:b===!1?"minWidth":"width"},[b,M]),_=c;M&&(_=D(D({},_),{},{width:b}));var H=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=H.current)===null||P===void 0?void 0:P.popupElement}}}),u.createElement(Rg,be({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:R,popupTransitionName:A,popup:u.createElement("div",{onMouseEnter:x},O),ref:H,stretch:z,popupAlign:h,popupVisible:o,getPopupContainer:m,popupClassName:G(d,j({},"".concat(R,"-empty"),p)),popupStyle:_,getTriggerDOMNode:C,onPopupVisibleChange:w}),a)},Iz=u.forwardRef(Pz);function Yy(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 Am(e){return typeof e<"u"&&!Number.isNaN(e)}function JE(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function _z(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=JE(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(g){if(v||!(s in g)){var y=g[l];o.push({key:Yy(g,o.length),groupOption:v,data:g,label:g[i],value:y})}else{var b=g[c];b===void 0&&r&&(b=g.label),o.push({key:Yy(g,o.length),group:!0,data:g,label:b}),d(g[s],!0)}})}return d(e,!1),o}function Fm(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Tn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Tz=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,c){var d=sw(c),f=d[0],v=d.slice(1);if(!f)return[s];var g=s.split(f);return o=o||g.length>1,g.reduce(function(y,b){return[].concat(ye(y),ye(l(b,v)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},$g=u.createContext(null);function Mz(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.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 a=o.label,i=o.value;return["number","string"].includes(Ae(a))?a:i}).join(", ")),n.length>r?", ...":null)}var Nz=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Lz=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],zm=function(t){return t==="tags"||t==="multiple"},Az=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,v=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,b=e.onClear,S=e.mode,h=e.disabled,m=e.loading,p=e.getInputElement,C=e.getRawInputElement,w=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,R=e.activeValue,O=e.onActiveValueChange,I=e.activeDescendantId,A=e.searchValue,M=e.autoClearSearchValue,z=e.onSearch,_=e.onSearchSplit,H=e.tokenSeparators,F=e.allowClear,P=e.suffixIcon,$=e.clearIcon,L=e.OptionList,N=e.animation,T=e.transitionName,B=e.dropdownStyle,k=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,ee=e.dropdownAlign,q=e.placement,ae=e.builtinPlacements,ce=e.getPopupContainer,ne=e.showAction,Q=ne===void 0?[]:ne,te=e.onFocus,ie=e.onBlur,Y=e.onKeyUp,oe=e.onKeyDown,fe=e.onMouseDown,Pe=at(e,Nz),me=zm(S),le=(i!==void 0?i:me)||S==="combobox",ve=D({},Pe);Lz.forEach(function(Qe){delete ve[Qe]}),c==null||c.forEach(function(Qe){delete ve[Qe]});var se=u.useState(!1),Ee=V(se,2),Ne=Ee[0],Se=Ee[1];u.useEffect(function(){Se(xg())},[]);var Fe=u.useRef(null),pe=u.useRef(null),rt=u.useRef(null),De=u.useRef(null),xe=u.useRef(null),Ce=u.useRef(!1),He=HF(),Be=V(He,3),et=Be[0],ft=Be[1],ut=Be[2];u.useImperativeHandle(t,function(){var Qe,Ke;return{focus:(Qe=De.current)===null||Qe===void 0?void 0:Qe.focus,blur:(Ke=De.current)===null||Ke===void 0?void 0:Ke.blur,scrollTo:function(ot){var ze;return(ze=xe.current)===null||ze===void 0?void 0:ze.scrollTo(ot)},nativeElement:Fe.current||pe.current}});var qe=u.useMemo(function(){var Qe;if(S!=="combobox")return A;var Ke=(Qe=d[0])===null||Qe===void 0?void 0:Qe.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[A,S,d]),lt=S==="combobox"&&typeof p=="function"&&p()||null,st=typeof C=="function"&&C(),Mt=Ba(pe,st==null||(n=st.props)===null||n===void 0?void 0:n.ref),yt=u.useState(!1),wt=V(yt,2),At=wt[0],bt=wt[1];zt(function(){bt(!0)},[]);var Je=ar(!1,{defaultValue:x,value:w}),je=V(Je,2),ke=je[0],Le=je[1],ge=At?ke:!1,Xe=!y&&v;(h||Xe&&ge&&S==="combobox")&&(ge=!1);var tt=Xe?!1:ge,de=u.useCallback(function(Qe){var Ke=Qe!==void 0?Qe:!ge;h||(Le(Ke),ge!==Ke&&(E==null||E(Ke)))},[h,ge,Le,E]),we=u.useMemo(function(){return(H||[]).some(function(Qe){return[`
`,`\r
`].includes(Qe)})},[H]),he=u.useContext($g)||{},_e=he.maxCount,Ve=he.rawValues,Ze=function(Ke,Zt,ot){if(!(me&&Am(_e)&&(Ve==null?void 0:Ve.size)>=_e)){var ze=!0,Ye=Ke;O==null||O(null);var _t=Tz(Ke,H,Am(_e)?_e-Ve.size:void 0),Nt=ot?null:_t;return S!=="combobox"&&Nt&&(Ye="",_==null||_(Nt),de(!1),ze=!1),z&&qe!==Ye&&z(Ye,{source:Zt?"typing":"effect"}),ze}},Ot=function(Ke){!Ke||!Ke.trim()||z(Ke,{source:"submit"})};u.useEffect(function(){!ge&&!me&&S!=="combobox"&&Ze("",!1,!1)},[ge]),u.useEffect(function(){ke&&h&&Le(!1),h&&!Ce.current&&ft(!1)},[h]);var mt=UE(),Ue=V(mt,2),Re=Ue[0],We=Ue[1],Et=function(Ke){var Zt=Re(),ot=Ke.which;if(ot===re.ENTER&&(S!=="combobox"&&Ke.preventDefault(),ge||de(!0)),We(!!qe),ot===re.BACKSPACE&&!Zt&&me&&!qe&&d.length){for(var ze=ye(d),Ye=null,_t=ze.length-1;_t>=0;_t-=1){var Nt=ze[_t];if(!Nt.disabled){ze.splice(_t,1),Ye=Nt;break}}Ye&&f(ze,{type:"remove",values:[Ye]})}for(var dn=arguments.length,Hn=new Array(dn>1?dn-1:0),$n=1;$n<dn;$n++)Hn[$n-1]=arguments[$n];if(ge){var Vn;(Vn=xe.current)===null||Vn===void 0||Vn.onKeyDown.apply(Vn,[Ke].concat(Hn))}oe==null||oe.apply(void 0,[Ke].concat(Hn))},St=function(Ke){for(var Zt=arguments.length,ot=new Array(Zt>1?Zt-1:0),ze=1;ze<Zt;ze++)ot[ze-1]=arguments[ze];if(ge){var Ye;(Ye=xe.current)===null||Ye===void 0||Ye.onKeyUp.apply(Ye,[Ke].concat(ot))}Y==null||Y.apply(void 0,[Ke].concat(ot))},Pt=function(Ke){var Zt=d.filter(function(ot){return ot!==Ke});f(Zt,{type:"remove",values:[Ke]})},kt=u.useRef(!1),$e=function(){ft(!0),h||(te&&!kt.current&&te.apply(void 0,arguments),Q.includes("focus")&&de(!0)),kt.current=!0},Oe=function(){Ce.current=!0,ft(!1,function(){kt.current=!1,Ce.current=!1,de(!1)}),!h&&(qe&&(S==="tags"?z(qe,{source:"submit"}):S==="multiple"&&z("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},Me=[];u.useEffect(function(){return function(){Me.forEach(function(Qe){return clearTimeout(Qe)}),Me.splice(0,Me.length)}},[]);var It=function(Ke){var Zt,ot=Ke.target,ze=(Zt=rt.current)===null||Zt===void 0?void 0:Zt.getPopupElement();if(ze&&ze.contains(ot)){var Ye=setTimeout(function(){var Hn=Me.indexOf(Ye);if(Hn!==-1&&Me.splice(Hn,1),ut(),!Ne&&!ze.contains(document.activeElement)){var $n;($n=De.current)===null||$n===void 0||$n.focus()}});Me.push(Ye)}for(var _t=arguments.length,Nt=new Array(_t>1?_t-1:0),dn=1;dn<_t;dn++)Nt[dn-1]=arguments[dn];fe==null||fe.apply(void 0,[Ke].concat(Nt))},on=u.useState({}),dr=V(on,2),Jt=dr[1];function Bn(){Jt({})}var fr;st&&(fr=function(Ke){de(Ke)}),VF(function(){var Qe;return[Fe.current,(Qe=rt.current)===null||Qe===void 0?void 0:Qe.getPopupElement()]},tt,de,!!st);var kn=u.useMemo(function(){return D(D({},e),{},{notFoundContent:y,open:ge,triggerOpen:tt,id:r,showSearch:le,multiple:me,toggleOpen:de})},[e,y,tt,ge,r,le,me,de]),Yn=!!P||m,xo;Yn&&(xo=u.createElement(yd,{className:G("".concat(o,"-arrow"),j({},"".concat(o,"-arrow-loading"),m)),customizeIcon:P,customizeIconProps:{loading:m,searchValue:qe,open:ge,focused:et,showSearch:le}}));var Nn=function(){var Ke;b==null||b(),(Ke=De.current)===null||Ke===void 0||Ke.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},yn=BF(o,Nn,d,F,$,h,qe,S),no=yn.allowClear,Ro=yn.clearIcon,vr=u.createElement(L,{ref:xe}),mr=G(o,a,j(j(j(j(j(j(j(j(j(j({},"".concat(o,"-focused"),et),"".concat(o,"-multiple"),me),"".concat(o,"-single"),!me),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),Yn),"".concat(o,"-disabled"),h),"".concat(o,"-loading"),m),"".concat(o,"-open"),ge),"".concat(o,"-customize-input"),lt),"".concat(o,"-show-search"),le)),Gr=u.createElement(Iz,{ref:rt,disabled:h,prefixCls:o,visible:tt,popupElement:vr,animation:N,transitionName:T,dropdownStyle:B,dropdownClassName:k,direction:s,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:ee,placement:q,builtinPlacements:ae,getPopupContainer:ce,empty:v,getTriggerDOMNode:function(Ke){return pe.current||Ke},onPopupVisibleChange:fr,onPopupMouseEnter:Bn},st?u.cloneElement(st,{ref:Mt}):u.createElement(fz,be({},e,{domRef:pe,prefixCls:o,inputElement:lt,ref:De,id:r,showSearch:le,autoClearSearchValue:M,mode:S,activeDescendantId:I,tagRender:l,values:d,open:ge,onToggleOpen:de,activeValue:R,searchValue:qe,onSearch:Ze,onSearchSubmit:Ot,onRemove:Pt,tokenWithEnter:we}))),pr;return st?pr=Gr:pr=u.createElement("div",be({className:mr},ve,{ref:Fe,onMouseDown:It,onKeyDown:Et,onKeyUp:St,onFocus:$e,onBlur:Oe}),u.createElement(Mz,{visible:et&&!ge,values:d}),Gr,xo,no&&Ro),u.createElement(WE.Provider,{value:kn},pr)}),Og=function(){return null};Og.isSelectOptGroup=!0;var Pg=function(){return null};Pg.isSelectOption=!0;var ZE=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,f={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},v=D(D({},v),{},j(j(j(j(j({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(Dr,{onResize:function(y){var b=y.offsetHeight;b&&l&&l()}},u.createElement("div",be({style:v,className:G(j({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});ZE.displayName="Filler";function Fz(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function zz(e,t,n,r,o,a,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(c,d){var f=t+d,v=i(c,f,{style:{width:r},offsetX:o}),g=s(c);return u.createElement(Fz,{key:g,setRef:function(b){return a(c,b)}},v)})}function jz(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(y){return y!==void 0?n(y):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var v=s(a[f]),g=s(i[f]);if(v!==g){c=f,d=d||v!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:d}}function Dz(e,t,n){var r=u.useState(e),o=V(r,2),a=o[0],i=o[1],l=u.useState(null),s=V(l,2),c=s[0],d=s[1];return u.useEffect(function(){var f=jz(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[c]}var Jy=(typeof navigator>"u"?"undefined":Ae(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ex=function(e,t,n,r){var o=u.useRef(!1),a=u.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=u.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?c<0&&l.current.left||c>0&&l.current.right:c<0&&l.current.top||c>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function Bz(e,t,n,r,o,a,i){var l=u.useRef(0),s=u.useRef(null),c=u.useRef(null),d=u.useRef(!1),f=ex(t,n,r,o);function v(m,p){xt.cancel(s.current),l.current+=p,c.current=p,!f(!1,p)&&(Jy||m.preventDefault(),s.current=xt(function(){var C=d.current?10:1;i(l.current*C),l.current=0}))}function g(m,p){i(p,!0),Jy||m.preventDefault()}var y=u.useRef(null),b=u.useRef(null);function S(m){if(e){xt.cancel(b.current),b.current=xt(function(){y.current=null},2);var p=m.deltaX,C=m.deltaY,w=m.shiftKey,x=p,E=C;(y.current==="sx"||!y.current&&w&&C&&!p)&&(x=C,E=0,y.current="sx");var R=Math.abs(x),O=Math.abs(E);y.current===null&&(y.current=a&&R>O?"x":"y"),y.current==="y"?v(m,E):g(m,x)}}function h(m){e&&(d.current=m.detail===c.current)}return[S,h]}function kz(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=V(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,v=i.get(d),g=i.get(f);if(v===void 0||g===void 0)for(var y=e.length,b=l.length;b<y;b+=1){var S,h=e[b],m=t(h);i.set(m,b);var p=(S=n.get(m))!==null&&S!==void 0?S:r;if(l[b]=(l[b-1]||0)+p,m===d&&(v=b),m===f&&(g=b),v!==void 0&&g!==void 0)break}return{top:l[v-1]||0,bottom:l[g]}};return s}var Hz=function(){function e(){gn(this,e),j(this,"maps",void 0),j(this,"id",0),this.maps=Object.create(null)}return hn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function Vz(e,t,n){var r=u.useState(0),o=V(r,2),a=o[0],i=o[1],l=u.useRef(new Map),s=u.useRef(new Hz),c=u.useRef();function d(){xt.cancel(c.current)}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var y=function(){l.current.forEach(function(S,h){if(S&&S.offsetParent){var m=Ml(S),p=m.offsetHeight;s.current.get(h)!==p&&s.current.set(h,m.offsetHeight)}}),i(function(S){return S+1})};g?y():c.current=xt(y)}function v(g,y){var b=e(g);l.current.get(b),y?(l.current.set(b,y),f()):l.current.delete(b)}return u.useEffect(function(){return d},[]),[v,f,s.current,a]}var Zy=14/15;function Wz(e,t,n){var r=u.useRef(!1),o=u.useRef(0),a=u.useRef(0),i=u.useRef(null),l=u.useRef(null),s,c=function(g){if(r.current){var y=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),S=o.current-y,h=a.current-b,m=Math.abs(S)>Math.abs(h);m?o.current=y:a.current=b,n(m,m?S:h)&&g.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){m?S*=Zy:h*=Zy;var p=Math.floor(m?S:h);(!n(m,p,!0)||Math.abs(p)<=.1)&&clearInterval(l.current)},16)}},d=function(){r.current=!1,s()},f=function(g){s(),g.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(g.touches[0].pageX),a.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},zt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}var Uz=10;function Kz(e,t,n,r,o,a,i,l){var s=u.useRef(),c=u.useState(null),d=V(c,2),f=d[0],v=d[1];return zt(function(){if(f&&f.times<Uz){if(!e.current){v(function(L){return D({},L)});return}a();var g=f.targetAlign,y=f.originAlign,b=f.index,S=f.offset,h=e.current.clientHeight,m=!1,p=g,C=null;if(h){for(var w=g||y,x=0,E=0,R=0,O=Math.min(t.length-1,b),I=0;I<=O;I+=1){var A=o(t[I]);E=x;var M=n.get(A);R=E+(M===void 0?r:M),x=R}for(var z=w==="top"?S:h-S,_=O;_>=0;_-=1){var H=o(t[_]),F=n.get(H);if(F===void 0){m=!0;break}if(z-=F,z<=0)break}switch(w){case"top":C=E-S;break;case"bottom":C=R-h+S;break;default:{var P=e.current.scrollTop,$=P+h;E<P?p="top":R>$&&(p="bottom")}}C!==null&&i(C),C!==f.lastTop&&(m=!0)}m&&v(D(D({},f),{},{times:f.times+1,targetAlign:p,lastTop:C}))}},[f,e.current]),function(g){if(g==null){l();return}if(xt.cancel(s.current),typeof g=="number")i(g);else if(g&&Ae(g)==="object"){var y,b=g.align;"index"in g?y=g.index:y=t.findIndex(function(m){return o(m)===g.key});var S=g.offset,h=S===void 0?0:S;v({times:0,index:y,offset:h,originAlign:b})}}}function eb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var tb=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,v=e.style,g=e.thumbStyle,y=u.useState(!1),b=V(y,2),S=b[0],h=b[1],m=u.useState(null),p=V(m,2),C=p[0],w=p[1],x=u.useState(null),E=V(x,2),R=E[0],O=E[1],I=!r,A=u.useRef(),M=u.useRef(),z=u.useState(!1),_=V(z,2),H=_[0],F=_[1],P=u.useRef(),$=function(){clearTimeout(P.current),F(!0),P.current=setTimeout(function(){F(!1)},3e3)},L=a-f||0,N=f-d||0,T=u.useMemo(function(){if(o===0||L===0)return 0;var ne=o/L;return ne*N},[o,L,N]),B=function(Q){Q.stopPropagation(),Q.preventDefault()},k=u.useRef({top:T,dragging:S,pageY:C,startTop:R});k.current={top:T,dragging:S,pageY:C,startTop:R};var W=function(Q){h(!0),w(eb(Q,c)),O(k.current.top),i(),Q.stopPropagation(),Q.preventDefault()};u.useEffect(function(){var ne=function(Y){Y.preventDefault()},Q=A.current,te=M.current;return Q.addEventListener("touchstart",ne,{passive:!1}),te.addEventListener("touchstart",W,{passive:!1}),function(){Q.removeEventListener("touchstart",ne),te.removeEventListener("touchstart",W)}},[]);var U=u.useRef();U.current=L;var ee=u.useRef();ee.current=N,u.useEffect(function(){if(S){var ne,Q=function(Y){var oe=k.current,fe=oe.dragging,Pe=oe.pageY,me=oe.startTop;xt.cancel(ne);var le=A.current.getBoundingClientRect(),ve=f/(c?le.width:le.height);if(fe){var se=(eb(Y,c)-Pe)*ve,Ee=me;!I&&c?Ee-=se:Ee+=se;var Ne=U.current,Se=ee.current,Fe=Se?Ee/Se:0,pe=Math.ceil(Fe*Ne);pe=Math.max(pe,0),pe=Math.min(pe,Ne),ne=xt(function(){s(pe,c)})}},te=function(){h(!1),l()};return window.addEventListener("mousemove",Q,{passive:!0}),window.addEventListener("touchmove",Q,{passive:!0}),window.addEventListener("mouseup",te,{passive:!0}),window.addEventListener("touchend",te,{passive:!0}),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),xt.cancel(ne)}}},[S]),u.useEffect(function(){return $(),function(){clearTimeout(P.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:$}});var q="".concat(n,"-scrollbar"),ae={position:"absolute",visibility:H?null:"hidden"},ce={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(ae.height=8,ae.left=0,ae.right=0,ae.bottom=0,ce.height="100%",ce.width=d,I?ce.left=T:ce.right=T):(ae.width=8,ae.top=0,ae.bottom=0,I?ae.right=0:ae.left=0,ce.width="100%",ce.height=d,ce.top=T),u.createElement("div",{ref:A,className:G(q,j(j(j({},"".concat(q,"-horizontal"),c),"".concat(q,"-vertical"),!c),"".concat(q,"-visible"),H)),style:D(D({},ae),v),onMouseDown:B,onMouseMove:$},u.createElement("div",{ref:M,className:G("".concat(q,"-thumb"),j({},"".concat(q,"-thumb-moving"),S)),style:D(D({},ce),g),onMouseDown:W}))}),Gz=20;function nb(){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,Gz),Math.floor(n)}var qz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Qz=[],Xz={overflowY:"auto",overflowAnchor:"none"};function Yz(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,v=e.itemKey,g=e.virtual,y=e.direction,b=e.scrollWidth,S=e.component,h=S===void 0?"div":S,m=e.onScroll,p=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,R=at(e,qz),O=u.useCallback(function($e){return typeof v=="function"?v($e):$e==null?void 0:$e[v]},[v]),I=Vz(O),A=V(I,4),M=A[0],z=A[1],_=A[2],H=A[3],F=!!(g!==!1&&a&&i),P=u.useMemo(function(){return Object.values(_.maps).reduce(function($e,Oe){return $e+Oe},0)},[_.id,_.maps]),$=F&&d&&(Math.max(i*d.length,P)>a||!!b),L=y==="rtl",N=G(r,j({},"".concat(r,"-rtl"),L),o),T=d||Qz,B=u.useRef(),k=u.useRef(),W=u.useRef(),U=u.useState(0),ee=V(U,2),q=ee[0],ae=ee[1],ce=u.useState(0),ne=V(ce,2),Q=ne[0],te=ne[1],ie=u.useState(!1),Y=V(ie,2),oe=Y[0],fe=Y[1],Pe=function(){fe(!0)},me=function(){fe(!1)},le={getKey:O};function ve($e){ae(function(Oe){var Me;typeof $e=="function"?Me=$e(Oe):Me=$e;var It=At(Me);return B.current.scrollTop=It,It})}var se=u.useRef({start:0,end:T.length}),Ee=u.useRef(),Ne=Dz(T,O),Se=V(Ne,1),Fe=Se[0];Ee.current=Fe;var pe=u.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!$){var $e;return{scrollHeight:(($e=k.current)===null||$e===void 0?void 0:$e.offsetHeight)||0,start:0,end:T.length-1,offset:void 0}}for(var Oe=0,Me,It,on,dr=T.length,Jt=0;Jt<dr;Jt+=1){var Bn=T[Jt],fr=O(Bn),kn=_.get(fr),Yn=Oe+(kn===void 0?i:kn);Yn>=q&&Me===void 0&&(Me=Jt,It=Oe),Yn>q+a&&on===void 0&&(on=Jt),Oe=Yn}return Me===void 0&&(Me=0,It=0,on=Math.ceil(a/i)),on===void 0&&(on=T.length-1),on=Math.min(on+1,T.length-1),{scrollHeight:Oe,start:Me,end:on,offset:It}},[$,F,q,T,H,a]),rt=pe.scrollHeight,De=pe.start,xe=pe.end,Ce=pe.offset;se.current.start=De,se.current.end=xe;var He=u.useState({width:0,height:a}),Be=V(He,2),et=Be[0],ft=Be[1],ut=function(Oe){ft({width:Oe.offsetWidth,height:Oe.offsetHeight})},qe=u.useRef(),lt=u.useRef(),st=u.useMemo(function(){return nb(et.width,b)},[et.width,b]),Mt=u.useMemo(function(){return nb(et.height,rt)},[et.height,rt]),yt=rt-a,wt=u.useRef(yt);wt.current=yt;function At($e){var Oe=$e;return Number.isNaN(wt.current)||(Oe=Math.min(Oe,wt.current)),Oe=Math.max(Oe,0),Oe}var bt=q<=0,Je=q>=yt,je=Q<=0,ke=Q>=b,Le=ex(bt,Je,je,ke),ge=function(){return{x:L?-Q:Q,y:q}},Xe=u.useRef(ge()),tt=tn(function($e){if(p){var Oe=D(D({},ge()),$e);(Xe.current.x!==Oe.x||Xe.current.y!==Oe.y)&&(p(Oe),Xe.current=Oe)}});function de($e,Oe){var Me=$e;Oe?(Jo.flushSync(function(){te(Me)}),tt()):ve(Me)}function we($e){var Oe=$e.currentTarget.scrollTop;Oe!==q&&ve(Oe),m==null||m($e),tt()}var he=function(Oe){var Me=Oe,It=b?b-et.width:0;return Me=Math.max(Me,0),Me=Math.min(Me,It),Me},_e=tn(function($e,Oe){Oe?(Jo.flushSync(function(){te(function(Me){var It=Me+(L?-$e:$e);return he(It)})}),tt()):ve(function(Me){var It=Me+$e;return It})}),Ve=Bz(F,bt,Je,je,ke,!!b,_e),Ze=V(Ve,2),Ot=Ze[0],mt=Ze[1];Wz(F,B,function($e,Oe,Me){return Le($e,Oe,Me)?!1:(Ot({preventDefault:function(){},deltaX:$e?Oe:0,deltaY:$e?0:Oe}),!0)}),zt(function(){function $e(Me){F&&Me.preventDefault()}var Oe=B.current;return Oe.addEventListener("wheel",Ot,{passive:!1}),Oe.addEventListener("DOMMouseScroll",mt,{passive:!0}),Oe.addEventListener("MozMousePixelScroll",$e,{passive:!1}),function(){Oe.removeEventListener("wheel",Ot),Oe.removeEventListener("DOMMouseScroll",mt),Oe.removeEventListener("MozMousePixelScroll",$e)}},[F]),zt(function(){if(b){var $e=he(Q);te($e),tt({x:$e})}},[et.width,b]);var Ue=function(){var Oe,Me;(Oe=qe.current)===null||Oe===void 0||Oe.delayHidden(),(Me=lt.current)===null||Me===void 0||Me.delayHidden()},Re=Kz(B,T,_,i,O,function(){return z(!0)},ve,Ue);u.useImperativeHandle(t,function(){return{nativeElement:W.current,getScrollInfo:ge,scrollTo:function(Oe){function Me(It){return It&&Ae(It)==="object"&&("left"in It||"top"in It)}Me(Oe)?(Oe.left!==void 0&&te(he(Oe.left)),Re(Oe.top)):Re(Oe)}}}),zt(function(){if(C){var $e=T.slice(De,xe+1);C($e,T)}},[De,xe,T]);var We=kz(T,O,_,i),Et=x==null?void 0:x({start:De,end:xe,virtual:$,offsetX:Q,offsetY:Ce,rtl:L,getSize:We}),St=zz(T,De,xe,b,Q,M,f,le),Pt=null;a&&(Pt=D(j({},s?"height":"maxHeight",a),Xz),F&&(Pt.overflowY="hidden",b&&(Pt.overflowX="hidden"),oe&&(Pt.pointerEvents="none")));var kt={};return L&&(kt.dir="rtl"),u.createElement("div",be({ref:W,style:D(D({},c),{},{position:"relative"}),className:N},kt,R),u.createElement(Dr,{onResize:ut},u.createElement(h,{className:"".concat(r,"-holder"),style:Pt,ref:B,onScroll:we,onMouseEnter:Ue},u.createElement(ZE,{prefixCls:r,height:rt,offsetX:Q,offsetY:Ce,scrollWidth:b,onInnerResize:z,ref:k,innerProps:w,rtl:L,extra:Et},St))),$&&rt>a&&u.createElement(tb,{ref:qe,prefixCls:r,scrollOffset:q,scrollRange:rt,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:me,spinSize:Mt,containerSize:et.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),$&&b>et.width&&u.createElement(tb,{ref:lt,prefixCls:r,scrollOffset:Q,scrollRange:b,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:me,spinSize:st,containerSize:et.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var tx=u.forwardRef(Yz);tx.displayName="List";function Jz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Zz=["disabled","title","children","style","className"];function rb(e){return typeof e=="string"||typeof e=="number"}var ej=function(t,n){var r=kF(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,g=u.useContext($g),y=g.maxCount,b=g.flattenOptions,S=g.onActiveValue,h=g.defaultActiveFirstOption,m=g.onSelect,p=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,x=g.virtual,E=g.direction,R=g.listHeight,O=g.listItemHeight,I=g.optionRender,A="".concat(o,"-item"),M=Rs(function(){return b},[i,b],function(ne,Q){return Q[0]&&ne[1]!==Q[1]}),z=u.useRef(null),_=u.useMemo(function(){return l&&Am(y)&&(C==null?void 0:C.size)>=y},[l,y,C==null?void 0:C.size]),H=function(Q){Q.preventDefault()},F=function(Q){var te;(te=z.current)===null||te===void 0||te.scrollTo(typeof Q=="number"?{index:Q}:Q)},P=function(Q){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=M.length,Y=0;Y<ie;Y+=1){var oe=(Q+Y*te+ie)%ie,fe=M[oe]||{},Pe=fe.group,me=fe.data;if(!Pe&&!(me!=null&&me.disabled)&&!_)return oe}return-1},$=u.useState(function(){return P(0)}),L=V($,2),N=L[0],T=L[1],B=function(Q){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;T(Q);var ie={source:te?"keyboard":"mouse"},Y=M[Q];if(!Y){S(null,-1,ie);return}S(Y.value,Q,ie)};u.useEffect(function(){B(h!==!1?P(0):-1)},[M.length,c]);var k=u.useCallback(function(ne){return C.has(ne)&&s!=="combobox"},[s,ye(C).toString(),C.size]);u.useEffect(function(){var ne=setTimeout(function(){if(!l&&i&&C.size===1){var te=Array.from(C)[0],ie=M.findIndex(function(Y){var oe=Y.data;return oe.value===te});ie!==-1&&(B(ie),F(ie))}});if(i){var Q;(Q=z.current)===null||Q===void 0||Q.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[i,c]);var W=function(Q){Q!==void 0&&m(Q,{selected:!C.has(Q)}),l||d(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(Q){var te=Q.which,ie=Q.ctrlKey;switch(te){case re.N:case re.P:case re.UP:case re.DOWN:{var Y=0;if(te===re.UP?Y=-1:te===re.DOWN?Y=1:Jz()&&ie&&(te===re.N?Y=1:te===re.P&&(Y=-1)),Y!==0){var oe=P(N+Y,Y);F(oe),B(oe,!0)}break}case re.ENTER:{var fe,Pe=M[N];Pe&&!(Pe!=null&&(fe=Pe.data)!==null&&fe!==void 0&&fe.disabled)&&!_?W(Pe.value):W(void 0),i&&Q.preventDefault();break}case re.ESC:d(!1),i&&Q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Q){F(Q)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(A,"-empty"),onMouseDown:H},f);var U=Object.keys(w).map(function(ne){return w[ne]}),ee=function(Q){return Q.label};function q(ne,Q){var te=ne.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(Q)}}var ae=function(Q){var te=M[Q];if(!te)return null;var ie=te.data||{},Y=ie.value,oe=te.group,fe=ea(ie,!0),Pe=ee(te);return te?u.createElement("div",be({"aria-label":typeof Pe=="string"&&!oe?Pe:null},fe,{key:Q},q(te,Q),{"aria-selected":k(Y)}),Y):null},ce={role:"listbox",id:"".concat(a,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",be({},ce,{style:{height:0,width:0,overflow:"hidden"}}),ae(N-1),ae(N),ae(N+1)),u.createElement(tx,{itemKey:"key",ref:z,data:M,height:R,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:v,virtual:x,direction:E,innerProps:x?null:ce},function(ne,Q){var te=ne.group,ie=ne.groupOption,Y=ne.data,oe=ne.label,fe=ne.value,Pe=Y.key;if(te){var me,le=(me=Y.title)!==null&&me!==void 0?me:rb(oe)?oe.toString():void 0;return u.createElement("div",{className:G(A,"".concat(A,"-group"),Y.className),title:le},oe!==void 0?oe:Pe)}var ve=Y.disabled,se=Y.title;Y.children;var Ee=Y.style,Ne=Y.className,Se=at(Y,Zz),Fe=cr(Se,U),pe=k(fe),rt=ve||!pe&&_,De="".concat(A,"-option"),xe=G(A,De,Ne,j(j(j(j({},"".concat(De,"-grouped"),ie),"".concat(De,"-active"),N===Q&&!rt),"".concat(De,"-disabled"),rt),"".concat(De,"-selected"),pe)),Ce=ee(ne),He=!p||typeof p=="function"||pe,Be=typeof Ce=="number"?Ce:Ce||fe,et=rb(Be)?Be.toString():void 0;return se!==void 0&&(et=se),u.createElement("div",be({},ea(Fe),x?{}:q(ne,Q),{"aria-selected":pe,className:xe,title:et,onMouseMove:function(){N===Q||rt||B(Q)},onClick:function(){rt||W(fe)},style:Ee}),u.createElement("div",{className:"".concat(De,"-content")},typeof I=="function"?I(ne,{index:Q}):Be),u.isValidElement(p)||pe,He&&u.createElement(yd,{className:"".concat(A,"-option-state"),customizeIcon:p,customizeIconProps:{value:fe,disabled:rt,isSelected:pe}},pe?"✓":null))}))},tj=u.forwardRef(ej);const nj=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var v;return D(D({},f),{},{label:(v=i.get(f.value))===null||v===void 0?void 0:v.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=d,s},[e,t]),o=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Af(e,t){return XE(e).join("").toUpperCase().includes(t)}const rj=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(g,y){return o?Af(y[o],d):y[a]?Af(y[i!=="children"?i:"label"],d):Af(y[l],d)},v=c?function(g){return Fm(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var y=f(n,v(g));if(y)s.push(g);else{var b=g[a].filter(function(S){return f(n,v(S))});b.length&&s.push(D(D({},g),{},j({},a,b)))}return}f(n,v(g))&&s.push(g)}),s},[e,r,o,n,t])};var ob=0,oj=Fn();function aj(){var e;return oj?(e=ob,ob+=1):e="TEST_OR_SSR",e}function ij(e){var t=u.useState(),n=V(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(aj()))},[]),e||r}var lj=["children","value"],sj=["children"];function uj(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=at(r,lj);return D({key:n,value:a!==void 0?a:n,children:o},i)}function nx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Zo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=at(l,sj);return t||!a?uj(n):D(D({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:nx(s)})}).filter(function(n){return n})}var cj=function(t,n,r,o,a){return u.useMemo(function(){var i=t,l=!t;l&&(i=nx(n));var s=new Map,c=new Map,d=function(g,y,b){b&&typeof b=="string"&&g.set(y[b],y)},f=function v(g){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<g.length;b+=1){var S=g[b];!S[r.options]||y?(s.set(S[r.value],S),d(c,S,r.label),d(c,S,o),d(c,S,a)):v(S[r.options],!0)}};return f(i),{options:i,valueOptions:s,labelOptions:c}},[t,n,r,o,a])};function ab(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var dj=["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"],fj=["inputValue"];function vj(e){return!e||Ae(e)!=="object"}var mj=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,v=f===void 0?!0:f,g=e.onSelect,y=e.onDeselect,b=e.dropdownMatchSelectWidth,S=b===void 0?!0:b,h=e.filterOption,m=e.filterSort,p=e.optionFilterProp,C=e.optionLabelProp,w=e.options,x=e.optionRender,E=e.children,R=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,I=e.virtual,A=e.direction,M=e.listHeight,z=M===void 0?200:M,_=e.listItemHeight,H=_===void 0?20:_,F=e.labelRender,P=e.value,$=e.defaultValue,L=e.labelInValue,N=e.onChange,T=e.maxCount,B=at(e,dj),k=ij(n),W=zm(r),U=!!(!w&&E),ee=u.useMemo(function(){return h===void 0&&r==="combobox"?!1:h},[h,r]),q=u.useMemo(function(){return JE(l,U)},[JSON.stringify(l),U]),ae=ar("",{value:c!==void 0?c:s,postState:function(we){return we||""}}),ce=V(ae,2),ne=ce[0],Q=ce[1],te=cj(w,E,q,p,C),ie=te.valueOptions,Y=te.labelOptions,oe=te.options,fe=u.useCallback(function(de){var we=XE(de);return we.map(function(he){var _e,Ve,Ze,Ot,mt;if(vj(he))_e=he;else{var Ue;Ze=he.key,Ve=he.label,_e=(Ue=he.value)!==null&&Ue!==void 0?Ue:Ze}var Re=ie.get(_e);if(Re){var We;Ve===void 0&&(Ve=Re==null?void 0:Re[C||q.label]),Ze===void 0&&(Ze=(We=Re==null?void 0:Re.key)!==null&&We!==void 0?We:_e),Ot=Re==null?void 0:Re.disabled,mt=Re==null?void 0:Re.title}return{label:Ve,value:_e,key:Ze,disabled:Ot,title:mt}})},[q,C,ie]),Pe=ar($,{value:P}),me=V(Pe,2),le=me[0],ve=me[1],se=u.useMemo(function(){var de,we=W&&le===null?[]:le,he=fe(we);return r==="combobox"&&iz((de=he[0])===null||de===void 0?void 0:de.value)?[]:he},[le,fe,r,W]),Ee=nj(se,ie),Ne=V(Ee,2),Se=Ne[0],Fe=Ne[1],pe=u.useMemo(function(){if(!r&&Se.length===1){var de=Se[0];if(de.value===null&&(de.label===null||de.label===void 0))return[]}return Se.map(function(we){var he;return D(D({},we),{},{label:(he=typeof F=="function"?F(we):we.label)!==null&&he!==void 0?he:we.value})})},[r,Se,F]),rt=u.useMemo(function(){return new Set(Se.map(function(de){return de.value}))},[Se]);u.useEffect(function(){if(r==="combobox"){var de,we=(de=Se[0])===null||de===void 0?void 0:de.value;Q(az(we)?String(we):"")}},[Se]);var De=ab(function(de,we){var he=we??de;return j(j({},q.value,de),q.label,he)}),xe=u.useMemo(function(){if(r!=="tags")return oe;var de=ye(oe),we=function(_e){return ie.has(_e)};return ye(Se).sort(function(he,_e){return he.value<_e.value?-1:1}).forEach(function(he){var _e=he.value;we(_e)||de.push(De(_e,he.label))}),de},[De,oe,ie,Se,r]),Ce=rj(xe,q,ne,ee,p),He=u.useMemo(function(){return r!=="tags"||!ne||Ce.some(function(de){return de[p||"value"]===ne})||Ce.some(function(de){return de[q.value]===ne})?Ce:[De(ne)].concat(ye(Ce))},[De,p,r,Ce,ne,q]),Be=u.useMemo(function(){return m?ye(He).sort(function(de,we){return m(de,we,{searchValue:ne})}):He},[He,m,ne]),et=u.useMemo(function(){return _z(Be,{fieldNames:q,childrenAsData:U})},[Be,q,U]),ft=function(we){var he=fe(we);if(ve(he),N&&(he.length!==Se.length||he.some(function(Ze,Ot){var mt;return((mt=Se[Ot])===null||mt===void 0?void 0:mt.value)!==(Ze==null?void 0:Ze.value)}))){var _e=L?he:he.map(function(Ze){return Ze.value}),Ve=he.map(function(Ze){return Fm(Fe(Ze.value))});N(W?_e:_e[0],W?Ve:Ve[0])}},ut=u.useState(null),qe=V(ut,2),lt=qe[0],st=qe[1],Mt=u.useState(0),yt=V(Mt,2),wt=yt[0],At=yt[1],bt=R!==void 0?R:r!=="combobox",Je=u.useCallback(function(de,we){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=he.source,Ve=_e===void 0?"keyboard":_e;At(we),i&&r==="combobox"&&de!==null&&Ve==="keyboard"&&st(String(de))},[i,r]),je=function(we,he,_e){var Ve=function(){var kt,$e=Fe(we);return[L?{label:$e==null?void 0:$e[q.label],value:we,key:(kt=$e==null?void 0:$e.key)!==null&&kt!==void 0?kt:we}:we,Fm($e)]};if(he&&g){var Ze=Ve(),Ot=V(Ze,2),mt=Ot[0],Ue=Ot[1];g(mt,Ue)}else if(!he&&y&&_e!=="clear"){var Re=Ve(),We=V(Re,2),Et=We[0],St=We[1];y(Et,St)}},ke=ab(function(de,we){var he,_e=W?we.selected:!0;_e?he=W?[].concat(ye(Se),[de]):[de]:he=Se.filter(function(Ve){return Ve.value!==de}),ft(he),je(de,_e),r==="combobox"?st(""):(!zm||v)&&(Q(""),st(""))}),Le=function(we,he){ft(we);var _e=he.type,Ve=he.values;(_e==="remove"||_e==="clear")&&Ve.forEach(function(Ze){je(Ze.value,!1,_e)})},ge=function(we,he){if(Q(we),st(null),he.source==="submit"){var _e=(we||"").trim();if(_e){var Ve=Array.from(new Set([].concat(ye(rt),[_e])));ft(Ve),je(_e,!0),Q("")}return}he.source!=="blur"&&(r==="combobox"&&ft(we),d==null||d(we))},Xe=function(we){var he=we;r!=="tags"&&(he=we.map(function(Ve){var Ze=Y.get(Ve);return Ze==null?void 0:Ze.value}).filter(function(Ve){return Ve!==void 0}));var _e=Array.from(new Set([].concat(ye(rt),ye(he))));ft(_e),_e.forEach(function(Ve){je(Ve,!0)})},tt=u.useMemo(function(){var de=I!==!1&&S!==!1;return D(D({},te),{},{flattenOptions:et,onActiveValue:Je,defaultActiveFirstOption:bt,onSelect:ke,menuItemSelectedIcon:O,rawValues:rt,fieldNames:q,virtual:de,direction:A,listHeight:z,listItemHeight:H,childrenAsData:U,maxCount:T,optionRender:x})},[T,te,et,Je,bt,ke,O,rt,q,I,S,A,z,H,U,x]);return u.createElement($g.Provider,{value:tt},u.createElement(Az,be({},B,{id:k,prefixCls:a,ref:t,omitDomProps:fj,mode:r,displayValues:pe,onDisplayValuesChange:Le,direction:A,searchValue:ne,onSearch:ge,autoClearSearchValue:v,onSearchSplit:Xe,dropdownMatchSelectWidth:S,OptionList:tj,emptyOptions:!et.length,activeValue:lt,activeDescendantId:"".concat(k,"_list_").concat(wt)})))}),Ig=mj;Ig.Option=Pg;Ig.OptGroup=Og;function Oc(e,t,n){return G({[`${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 bd=(e,t)=>t||e,pj=()=>{const[,e]=lr(),n=new wn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,"empty image"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.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"}),u.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)"}),u.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"}),u.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"})),u.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"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},gj=()=>{const[,e]=lr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=u.useMemo(()=>({borderColor:new wn(t).onBackground(o).toHexShortString(),shadowColor:new wn(n).onBackground(o).toHexShortString(),contentColor:new wn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,"Simple Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:a},u.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"}),u.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:l}))))},hj=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},yj=Pr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[hj(o)]});var bj=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 rx=u.createElement(pj,null),ox=u.createElement(gj,null),ma=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=rx,description:a,children:i,imageStyle:l,style:s}=e,c=bj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:v}=u.useContext(ct),g=d("empty",r),[y,b,S]=yj(g),[h]=cd("Empty"),m=typeof a<"u"?a:h==null?void 0:h.description,p=typeof m=="string"?m:"empty";let C=null;return typeof o=="string"?C=u.createElement("img",{alt:p,src:o}):C=o,y(u.createElement("div",Object.assign({className:G(b,S,g,v==null?void 0:v.className,{[`${g}-normal`]:o===ox,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),s)},c),u.createElement("div",{className:`${g}-image`,style:l},C),m&&u.createElement("div",{className:`${g}-description`},m),i&&u.createElement("div",{className:`${g}-footer`},i)))};ma.PRESENTED_IMAGE_DEFAULT=rx;ma.PRESENTED_IMAGE_SIMPLE=ox;const Sj=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(ct),r=n("empty");switch(t){case"Table":case"List":return K.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return K.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return K.createElement(ma,null)}},_g=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:a,[e]:i}=u.useContext(ct),l=u.useContext(h4),s=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=IM.includes(c);return[c,d]},Cj=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 wj(e,t){return e||Cj(t)}const ib=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"}},Ej=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},to(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,[`
          ${o}${l}bottomLeft,
          ${a}${l}bottomLeft
        `]:{animationName:$E},[`
          ${o}${l}topLeft,
          ${a}${l}topLeft,
          ${o}${l}topRight,
          ${a}${l}topRight
        `]:{animationName:PE},[`${i}${l}bottomLeft`]:{animationName:OE},[`
          ${i}${l}topLeft,
          ${i}${l}topRight
        `]:{animationName:IE},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ib(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"},Di),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},ib(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Rc(e,"slide-up"),Rc(e,"slide-down"),zy(e,"move-up"),zy(e,"move-down")]},xj=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:J(t),itemLineHeight:J(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Rj=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},$j=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},mg()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Oj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=Rj(e),l=t?`${n}-${t}`:"",s=xj(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},$j(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${J(r)} 0`,lineHeight:J(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:J(s.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:J(a),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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ff(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Oj(e,t),o]}const Pj=e=>{const{componentCls:t}=e,n=Ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ff(e),Ff(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ff(r,"lg")]};function zf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},to(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:J(a),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"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${J(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:J(a)}}},[`&${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 ${J(r)}`,"&:after":{display:"none"}}}}}}}function Ij(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[zf(e),zf(Ut(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${J(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},zf(Ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const _j=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:g,colorBgContainer:y,colorFillSecondary:b,colorBgContainerDisabled:S,colorTextDisabled:h}=e,m=l*2,p=r*2,C=Math.min(o-m,o-p),w=Math.min(a-m,a-p),x=Math.min(i-m,i-p);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:g,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:y,clearBg:y,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:x,multipleSelectorBgDisabled:S,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},ax=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${J(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 ${J(o)} ${t.activeShadowColor}`,outline:0}}}},lb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ax(e,t))}),Tj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ax(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),lb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),lb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${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:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ix=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${J(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}}}},sb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ix(e,t))}),Mj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ix(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),sb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),sb(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:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Nj=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Lj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Tj(e)),Mj(e)),Nj(e))}),Aj=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"}}}},Fj=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","-webkit-appearance":"none"}}}},zj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},to(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Aj(e)),Fj(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Di),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Di),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},mg()),{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}-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","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},jj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},zj(e),Ij(e),Pj(e),Ej(e),{[`${t}-rtl`]:{direction:"rtl"}},Cg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Dj=Pr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ut(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[jj(r),Lj(r)]},_j,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Bj={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"},kj=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:Bj}))},Hj=u.forwardRef(kj),Vj={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"},Wj=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:Vj}))},Uj=u.forwardRef(Wj),Kj={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"},Gj=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:Kj}))},lx=u.forwardRef(Gj);function qj(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:d,showArrow:f,componentName:v}=e;const g=n??u.createElement(hg,null),y=m=>t===null&&!l&&!f?null:u.createElement(u.Fragment,null,c!==!1&&m,l&&d);let b=null;if(t!==void 0)b=y(t);else if(a)b=y(u.createElement(Kw,{spin:!0}));else{const m=`${s}-suffix`;b=p=>{let{open:C,showSearch:w}=p;return y(C&&w?u.createElement(lx,{className:m}):u.createElement(Uj,{className:m}))}}let S=null;r!==void 0?S=r:i?S=u.createElement(Hj,null):S=null;let h=null;return o!==void 0?h=o:h=u.createElement(Os,null),{clearIcon:g,suffixIcon:b,itemIcon:S,removeIcon:h}}function Qj(e,t){return t!==void 0?t:e!==null}var Xj=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 sx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Yj=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:v,size:g,disabled:y,notFoundContent:b,status:S,builtinPlacements:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:p,direction:C,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:I,maxCount:A}=e,M=Xj(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"]),{getPopupContainer:z,getPrefixCls:_,renderEmpty:H,direction:F,virtual:P,popupMatchSelectWidth:$,popupOverflow:L,select:N}=u.useContext(ct),[,T]=lr(),B=v??(T==null?void 0:T.controlHeight),k=_("select",r),W=_(),U=C??F,{compactSize:ee,compactItemClassnames:q}=md(k,U),[ae,ce]=_g("select",E,o),ne=ka(k),[Q,te,ie]=Dj(k,ne),Y=u.useMemo(()=>{const{mode:lt}=e;if(lt!=="combobox")return lt===sx?"combobox":lt},[e.mode]),oe=Y==="multiple"||Y==="tags",fe=Qj(e.suffixIcon,e.showArrow),Pe=(n=p??m)!==null&&n!==void 0?n:$,{status:me,hasFeedback:le,isFormItemInput:ve,feedbackIcon:se}=u.useContext(bo),Ee=bd(me,S);let Ne;b!==void 0?Ne=b:Y==="combobox"?Ne=null:Ne=(H==null?void 0:H("Select"))||u.createElement(Sj,{componentName:"Select"});const{suffixIcon:Se,itemIcon:Fe,removeIcon:pe,clearIcon:rt}=qj(Object.assign(Object.assign({},M),{multiple:oe,hasFeedback:le,feedbackIcon:se,showSuffixIcon:fe,prefixCls:k,componentName:"Select"})),De=x===!0?{clearIcon:rt}:x,xe=cr(M,["suffixIcon","itemIcon"]),Ce=G(s||c,{[`${k}-dropdown-${U}`]:U==="rtl"},i,ie,ne,te),He=Eo(lt=>{var st;return(st=g??ee)!==null&&st!==void 0?st:lt}),Be=u.useContext(La),et=y??Be,ft=G({[`${k}-lg`]:He==="large",[`${k}-sm`]:He==="small",[`${k}-rtl`]:U==="rtl",[`${k}-${ae}`]:ce,[`${k}-in-form-item`]:ve},Oc(k,Ee,le),q,N==null?void 0:N.className,a,i,ie,ne,te),ut=u.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[qe]=Xw("SelectLike",R==null?void 0:R.zIndex);return Q(u.createElement(Ig,Object.assign({ref:t,virtual:P,showSearch:N==null?void 0:N.showSearch},xe,{style:Object.assign(Object.assign({},N==null?void 0:N.style),w),dropdownMatchSelectWidth:Pe,transitionName:Bi(W,"slide-up",O),builtinPlacements:wj(h,L),listHeight:d,listItemHeight:B,mode:Y,prefixCls:k,placement:ut,direction:U,suffixIcon:Se,menuItemSelectedIcon:Fe,removeIcon:pe,allowClear:De,notFoundContent:Ne,className:ft,getPopupContainer:l||z,dropdownClassName:Ce,disabled:et,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:qe}),maxCount:oe?A:void 0,tagRender:oe?I:void 0})))},Wa=u.forwardRef(Yj),Jj=DF(Wa);Wa.SECRET_COMBOBOX_MODE_DO_NOT_USE=sx;Wa.Option=Pg;Wa.OptGroup=Og;Wa._InternalPanelDoNotUseOrYouWillBeFired=Jj;var Zj=re.ESC,eD=re.TAB;function tD(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=u.useRef(!1),l=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},s=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(f){switch(f.keyCode){case Zj:l();break;case eD:{var v=!1;i.current||(v=s()),v?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&xt(s,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}},[t])}var nD=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Ur(t,a==null?void 0:a.ref);return K.createElement(K.Fragment,null,r&&K.createElement("div",{className:"".concat(o,"-arrow")}),K.cloneElement(a,{ref:aa(a)?i:void 0}))}),ei={adjustX:1,adjustY:1},ti=[0,0],rD={topLeft:{points:["bl","tl"],overflow:ei,offset:[0,-4],targetOffset:ti},top:{points:["bc","tc"],overflow:ei,offset:[0,-4],targetOffset:ti},topRight:{points:["br","tr"],overflow:ei,offset:[0,-4],targetOffset:ti},bottomLeft:{points:["tl","bl"],overflow:ei,offset:[0,4],targetOffset:ti},bottom:{points:["tc","bc"],overflow:ei,offset:[0,4],targetOffset:ti},bottomRight:{points:["tr","br"],overflow:ei,offset:[0,4],targetOffset:ti}},oD=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function aD(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,g=v===void 0?rD:v,y=e.getPopupContainer,b=e.showAction,S=e.hideAction,h=e.overlayClassName,m=e.overlayStyle,p=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,x=e.autoFocus,E=e.overlay,R=e.children,O=e.onVisibleChange,I=at(e,oD),A=K.useState(),M=V(A,2),z=M[0],_=M[1],H="visible"in e?p:z,F=K.useRef(null),P=K.useRef(null),$=K.useRef(null);K.useImperativeHandle(t,function(){return F.current});var L=function(ae){_(ae),O==null||O(ae)};tD({visible:H,triggerRef:$,onVisibleChange:L,autoFocus:x,overlayRef:P});var N=function(ae){var ce=e.onOverlayClick;_(!1),ce&&ce(ae)},T=function(){return K.createElement(nD,{ref:P,overlay:E,prefixCls:i,arrow:o})},B=function(){return typeof E=="function"?T:T()},k=function(){var ae=e.minOverlayWidthMatchTrigger,ce=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ae:!ce},W=function(){var ae=e.openClassName;return ae!==void 0?ae:"".concat(i,"-open")},U=K.cloneElement(R,{className:G((n=R.props)===null||n===void 0?void 0:n.className,H&&W()),ref:aa(R)?Ur($,R.ref):void 0}),ee=S;return!ee&&w.indexOf("contextMenu")!==-1&&(ee=["click"]),K.createElement(Rg,be({builtinPlacements:g},I,{prefixCls:i,ref:F,popupClassName:G(h,j({},"".concat(i,"-show-arrow"),o)),popupStyle:m,action:w,showAction:b,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:H,stretch:k()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:N,getPopupContainer:y}),U)}const iD=K.forwardRef(aD);var ux=u.createContext(null);function cx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function dx(e){var t=u.useContext(ux);return cx(t,e)}var lD=["children","locked"],Wr=u.createContext(null);function sD(e,t){var n=D({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ps(e){var t=e.children,n=e.locked,r=at(e,lD),o=u.useContext(Wr),a=Rs(function(){return sD(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!ls(i[1],l[1],!0))});return u.createElement(Wr.Provider,{value:a},t)}var uD=[],fx=u.createContext(null);function Sd(){return u.useContext(fx)}var vx=u.createContext(uD);function Ls(e){var t=u.useContext(vx);return u.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var mx=u.createContext(null),Tg=u.createContext({});function ub(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(yg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function cD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ye(e.querySelectorAll("*")).filter(function(r){return ub(r,t)});return ub(e,t)&&n.unshift(e),n}var jm=re.LEFT,Dm=re.RIGHT,Bm=re.UP,ju=re.DOWN,Du=re.ENTER,px=re.ESC,fl=re.HOME,vl=re.END,cb=[Bm,ju,jm,Dm];function dD(e,t,n,r){var o,a,i,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===Du)return{inlineTrigger:!0};var v=(o={},j(o,Bm,s),j(o,ju,c),o),g=(a={},j(a,jm,n?c:s),j(a,Dm,n?s:c),j(a,ju,d),j(a,Du,d),a),y=(i={},j(i,Bm,s),j(i,ju,c),j(i,Du,d),j(i,px,f),j(i,jm,n?d:f),j(i,Dm,n?f:d),i),b={inline:v,horizontal:g,vertical:y,inlineSub:v,horizontalSub:y,verticalSub:y},S=(l=b["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(S){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function fD(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function vD(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Mg(e,t){var n=cD(e,!0);return n.filter(function(r){return t.has(r)})}function db(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Mg(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var km=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(cx(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function mD(e,t,n,r,o,a,i,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var v=function(){xt.cancel(d.current)};return u.useEffect(function(){return function(){v()}},[]),function(g){var y=g.which;if([].concat(cb,[Du,px,fl,vl]).includes(y)){var b=a(),S=km(b,r),h=S,m=h.elements,p=h.key2element,C=h.element2key,w=p.get(t),x=vD(w,m),E=C.get(x),R=dD(e,i(E,!0).length===1,n,y);if(!R&&y!==fl&&y!==vl)return;(cb.includes(y)||[fl,vl].includes(y))&&g.preventDefault();var O=function(P){if(P){var $=P,L=P.querySelector("a");L!=null&&L.getAttribute("href")&&($=L);var N=C.get(P);l(N),v(),d.current=xt(function(){f.current===N&&$.focus()})}};if([fl,vl].includes(y)||R.sibling||!x){var I;!x||e==="inline"?I=o.current:I=fD(x);var A,M=Mg(I,m);y===fl?A=M[0]:y===vl?A=M[M.length-1]:A=db(I,m,x,R.offset),O(A)}else if(R.inlineTrigger)s(E);else if(R.offset>0)s(E,!0),v(),d.current=xt(function(){S=km(b,r);var F=x.getAttribute("aria-controls"),P=document.getElementById(F),$=db(P,S.elements);O($)},5);else if(R.offset<0){var z=i(E,!0),_=z[z.length-2],H=p.get(_);s(_,!1),O(H)}}c==null||c(g)}}function pD(e){Promise.resolve().then(e)}var Ng="__RC_UTIL_PATH_SPLIT__",fb=function(t){return t.join(Ng)},gD=function(t){return t.split(Ng)},Hm="rc-menu-more";function hD(){var e=u.useState({}),t=V(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),a=u.useState([]),i=V(a,2),l=i[0],s=i[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},v=u.useCallback(function(p,C){var w=fb(C);o.current.set(w,p),r.current.set(p,w),c.current+=1;var x=c.current;pD(function(){x===c.current&&f()})},[]),g=u.useCallback(function(p,C){var w=fb(C);o.current.delete(w),r.current.delete(p)},[]),y=u.useCallback(function(p){s(p)},[]),b=u.useCallback(function(p,C){var w=r.current.get(p)||"",x=gD(w);return C&&l.includes(x[0])&&x.unshift(Hm),x},[l]),S=u.useCallback(function(p,C){return p.filter(function(w){return w!==void 0}).some(function(w){var x=b(w,!0);return x.includes(C)})},[b]),h=function(){var C=ye(r.current.keys());return l.length&&C.push(Hm),C},m=u.useCallback(function(p){var C="".concat(r.current.get(p)).concat(Ng),w=new Set;return ye(o.current.keys()).forEach(function(x){x.startsWith(C)&&w.add(o.current.get(x))}),w},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:g,refreshOverflowKeys:y,isSubPathKey:S,getKeyPath:b,getKeys:h,getSubPathKeys:m}}function Cl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var yD=Math.random().toFixed(5).toString().slice(2),vb=0;function bD(e){var t=ar(e,{value:e}),n=V(t,2),r=n[0],o=n[1];return u.useEffect(function(){vb+=1;var a="".concat(yD,"-").concat(vb);o("rc-menu-uuid-".concat(a))},[]),r}function gx(e,t,n,r){var o=u.useContext(Wr),a=o.activeKey,i=o.onActive,l=o.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e)},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e)}),s}function hx(e){var t=u.useContext(Wr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function yx(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=u.createElement(t,D({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var SD=["item"];function Pc(e){var t=e.item,n=at(e,SD);return Object.defineProperty(n,"item",{get:function(){return Tn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var CD=["title","attribute","elementRef"],wD=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ED=["active"],xD=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,s=at(o,CD),c=cr(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Tn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(eo.Item,be({},i,{title:typeof a=="string"?a:void 0},c,{ref:l}))}}]),n}(u.Component),RD=u.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,v=e.onClick,g=e.onKeyDown,y=e.onFocus,b=at(e,wD),S=dx(a),h=u.useContext(Wr),m=h.prefixCls,p=h.onItemClick,C=h.disabled,w=h.overflowDisabled,x=h.itemIcon,E=h.selectedKeys,R=h.onActive,O=u.useContext(Tg),I=O._internalRenderMenuItem,A="".concat(m,"-item"),M=u.useRef(),z=u.useRef(),_=C||i,H=Ba(t,z),F=Ls(a),P=function(ne){return{key:a,keyPath:ye(F).reverse(),item:M.current,domEvent:ne}},$=l||x,L=gx(a,_,d,f),N=L.active,T=at(L,ED),B=E.includes(a),k=hx(F.length),W=function(ne){if(!_){var Q=P(ne);v==null||v(Pc(Q)),p(Q)}},U=function(ne){if(g==null||g(ne),ne.which===re.ENTER){var Q=P(ne);v==null||v(Pc(Q)),p(Q)}},ee=function(ne){R(a),y==null||y(ne)},q={};e.role==="option"&&(q["aria-selected"]=B);var ae=u.createElement(xD,be({ref:M,elementRef:H,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&S?null:S},b,T,q,{component:"li","aria-disabled":i,style:D(D({},k),r),className:G(A,(n={},j(n,"".concat(A,"-active"),N),j(n,"".concat(A,"-selected"),B),j(n,"".concat(A,"-disabled"),_),n),o),onClick:W,onKeyDown:U,onFocus:ee}),s,u.createElement(yx,{props:D(D({},e),{},{isSelected:B}),icon:$}));return I&&(ae=I(ae,e,{selected:B})),ae});function $D(e,t){var n=e.eventKey,r=Sd(),o=Ls(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement(RD,be({},e,{ref:t}))}const Cd=u.forwardRef($D);var OD=["className","children"],PD=function(t,n){var r=t.className,o=t.children,a=at(t,OD),i=u.useContext(Wr),l=i.prefixCls,s=i.mode,c=i.rtl;return u.createElement("ul",be({className:G(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Lg=u.forwardRef(PD);Lg.displayName="SubMenuList";function Ag(e,t){return Zo(e).map(function(n,r){if(u.isValidElement(n)){var o,a,i=n.key,l=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,s=l==null;s&&(l="tmp_key-".concat([].concat(ye(t),[r]).join("-")));var c={key:l,eventKey:l};return u.cloneElement(n,c)}return n})}var In={adjustX:1,adjustY:1},ID={topLeft:{points:["bl","tl"],overflow:In},topRight:{points:["br","tr"],overflow:In},bottomLeft:{points:["tl","bl"],overflow:In},bottomRight:{points:["tr","br"],overflow:In},leftTop:{points:["tr","tl"],overflow:In},leftBottom:{points:["br","bl"],overflow:In},rightTop:{points:["tl","tr"],overflow:In},rightBottom:{points:["bl","br"],overflow:In}},_D={topLeft:{points:["bl","tl"],overflow:In},topRight:{points:["br","tr"],overflow:In},bottomLeft:{points:["tl","bl"],overflow:In},bottomRight:{points:["tr","br"],overflow:In},rightTop:{points:["tr","tl"],overflow:In},rightBottom:{points:["br","bl"],overflow:In},leftTop:{points:["tl","tr"],overflow:In},leftBottom:{points:["bl","br"],overflow:In}};function bx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var TD={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function MD(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,d=e.onVisibleChange,f=u.useContext(Wr),v=f.getPopupContainer,g=f.rtl,y=f.subMenuOpenDelay,b=f.subMenuCloseDelay,S=f.builtinPlacements,h=f.triggerSubMenuAction,m=f.forceSubMenuRender,p=f.rootClassName,C=f.motion,w=f.defaultMotions,x=u.useState(!1),E=V(x,2),R=E[0],O=E[1],I=D(g?D({},_D):D({},ID),S),A=TD[c],M=bx(c,C,w),z=u.useRef(M);c!=="inline"&&(z.current=M);var _=D(D({},z.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=u.useRef();return u.useEffect(function(){return H.current=xt(function(){O(n)}),function(){xt.cancel(H.current)}},[n]),u.createElement(Rg,{prefixCls:t,popupClassName:G("".concat(t,"-popup"),j({},"".concat(t,"-rtl"),g),i,p),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:A,popupVisible:R,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[h],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},r)}function ND(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=u.useContext(Wr),l=i.prefixCls,s=i.forceSubMenuRender,c=i.motion,d=i.defaultMotions,f=i.mode,v=u.useRef(!1);v.current=f===a;var g=u.useState(!v.current),y=V(g,2),b=y[0],S=y[1],h=v.current?n:!1;u.useEffect(function(){v.current&&S(!1)},[f]);var m=D({},bx(a,c,d));r.length>1&&(m.motionAppear=!1);var p=m.onVisibleChanged;return m.onVisibleChanged=function(C){return!v.current&&!C&&S(!0),p==null?void 0:p(C)},b?null:u.createElement(ps,{mode:a,locked:!v.current},u.createElement(wo,be({visible:h},m,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var w=C.className,x=C.style;return u.createElement(Lg,{id:t,className:w,style:x},o)}))}var LD=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],AD=["active"],FD=u.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.title,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,v=e.popupClassName,g=e.popupOffset,y=e.popupStyle,b=e.onClick,S=e.onMouseEnter,h=e.onMouseLeave,m=e.onTitleClick,p=e.onTitleMouseEnter,C=e.onTitleMouseLeave,w=at(e,LD),x=dx(i),E=u.useContext(Wr),R=E.prefixCls,O=E.mode,I=E.openKeys,A=E.disabled,M=E.overflowDisabled,z=E.activeKey,_=E.selectedKeys,H=E.itemIcon,F=E.expandIcon,P=E.onItemClick,$=E.onOpenChange,L=E.onActive,N=u.useContext(Tg),T=N._internalRenderSubMenuItem,B=u.useContext(mx),k=B.isSubPathKey,W=Ls(),U="".concat(R,"-submenu"),ee=A||l,q=u.useRef(),ae=u.useRef(),ce=d??H,ne=f??F,Q=I.includes(i),te=!M&&Q,ie=k(_,i),Y=gx(i,ee,p,C),oe=Y.active,fe=at(Y,AD),Pe=u.useState(!1),me=V(Pe,2),le=me[0],ve=me[1],se=function(qe){ee||ve(qe)},Ee=function(qe){se(!0),S==null||S({key:i,domEvent:qe})},Ne=function(qe){se(!1),h==null||h({key:i,domEvent:qe})},Se=u.useMemo(function(){return oe||(O!=="inline"?le||k([z],i):!1)},[O,oe,z,le,i,k]),Fe=hx(W.length),pe=function(qe){ee||(m==null||m({key:i,domEvent:qe}),O==="inline"&&$(i,!Q))},rt=Cl(function(ut){b==null||b(Pc(ut)),P(ut)}),De=function(qe){O!=="inline"&&$(i,qe)},xe=function(){L(i)},Ce=x&&"".concat(x,"-popup"),He=u.createElement("div",be({role:"menuitem",style:Fe,className:"".concat(U,"-title"),tabIndex:ee?null:-1,ref:q,title:typeof a=="string"?a:null,"data-menu-id":M&&x?null:x,"aria-expanded":te,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ee,onClick:pe,onFocus:xe},fe),a,u.createElement(yx,{icon:O!=="horizontal"?ne:void 0,props:D(D({},e),{},{isOpen:te,isSubMenu:!0})},u.createElement("i",{className:"".concat(U,"-arrow")}))),Be=u.useRef(O);if(O!=="inline"&&W.length>1?Be.current="vertical":Be.current=O,!M){var et=Be.current;He=u.createElement(MD,{mode:et,prefixCls:U,visible:!s&&te&&O!=="inline",popupClassName:v,popupOffset:g,popupStyle:y,popup:u.createElement(ps,{mode:et==="horizontal"?"vertical":et},u.createElement(Lg,{id:Ce,ref:ae},c)),disabled:ee,onVisibleChange:De},He)}var ft=u.createElement(eo.Item,be({ref:t,role:"none"},w,{component:"li",style:r,className:G(U,"".concat(U,"-").concat(O),o,(n={},j(n,"".concat(U,"-open"),te),j(n,"".concat(U,"-active"),Se),j(n,"".concat(U,"-selected"),ie),j(n,"".concat(U,"-disabled"),ee),n)),onMouseEnter:Ee,onMouseLeave:Ne}),He,!M&&u.createElement(ND,{id:Ce,open:te,keyPath:W},c));return T&&(ft=T(ft,e,{selected:ie,active:Se,open:te,disabled:ee})),u.createElement(ps,{onItemClick:rt,mode:O==="horizontal"?"vertical":O,itemIcon:ce,expandIcon:ne},ft)}),Fg=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ls(n),a=Ag(r,o),i=Sd();u.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var l;return i?l=a:l=u.createElement(FD,be({ref:t},e),a),u.createElement(vx.Provider,{value:o},l)});function Sx(e){var t=e.className,n=e.style,r=u.useContext(Wr),o=r.prefixCls,a=Sd();return a?null:u.createElement("li",{role:"separator",className:G("".concat(o,"-item-divider"),t),style:n})}var zD=["className","title","eventKey","children"],jD=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=at(e,zD),i=u.useContext(Wr),l=i.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",be({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:G(s,n)}),u.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),Cx=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ls(n),a=Ag(r,o),i=Sd();return i?a:u.createElement(jD,be({ref:t},cr(e,["warnKey"])),a)}),DD=["label","children","key","type"];function Vm(e,t){var n=t.item,r=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(i,l){if(i&&Ae(i)==="object"){var s=i,c=s.label,d=s.children,f=s.key,v=s.type,g=at(s,DD),y=f??"tmp-".concat(l);return d||v==="group"?v==="group"?u.createElement(r,be({key:y},g,{title:c}),Vm(d,t)):u.createElement(o,be({key:y},g,{title:c}),Vm(d,t)):v==="divider"?u.createElement(a,be({key:y},g)):u.createElement(n,be({key:y},g),c)}return null}).filter(function(i){return i})}function mb(e,t,n,r){var o=e,a=D({divider:Sx,item:Cd,group:Cx,submenu:Fg},r);return t&&(o=Vm(t,a)),Ag(o,n)}var BD=["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"],ua=[],kD=u.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,l=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,v=o.items,g=o.children,y=o.direction,b=o.id,S=o.mode,h=S===void 0?"vertical":S,m=o.inlineCollapsed,p=o.disabled,C=o.disabledOverflow,w=o.subMenuOpenDelay,x=w===void 0?.1:w,E=o.subMenuCloseDelay,R=E===void 0?.1:E,O=o.forceSubMenuRender,I=o.defaultOpenKeys,A=o.openKeys,M=o.activeKey,z=o.defaultActiveFirst,_=o.selectable,H=_===void 0?!0:_,F=o.multiple,P=F===void 0?!1:F,$=o.defaultSelectedKeys,L=o.selectedKeys,N=o.onSelect,T=o.onDeselect,B=o.inlineIndent,k=B===void 0?24:B,W=o.motion,U=o.defaultMotions,ee=o.triggerSubMenuAction,q=ee===void 0?"hover":ee,ae=o.builtinPlacements,ce=o.itemIcon,ne=o.expandIcon,Q=o.overflowedIndicator,te=Q===void 0?"...":Q,ie=o.overflowedIndicatorPopupClassName,Y=o.getPopupContainer,oe=o.onClick,fe=o.onOpenChange,Pe=o.onKeyDown;o.openAnimation,o.openTransitionName;var me=o._internalRenderMenuItem,le=o._internalRenderSubMenuItem,ve=o._internalComponents,se=at(o,BD),Ee=u.useMemo(function(){return[mb(g,v,ua,ve),mb(g,v,ua,{})]},[g,v,ve]),Ne=V(Ee,2),Se=Ne[0],Fe=Ne[1],pe=u.useState(!1),rt=V(pe,2),De=rt[0],xe=rt[1],Ce=u.useRef(),He=bD(b),Be=y==="rtl",et=ar(I,{value:A,postState:function(ze){return ze||ua}}),ft=V(et,2),ut=ft[0],qe=ft[1],lt=function(ze){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _t(){qe(ze),fe==null||fe(ze)}Ye?Jo.flushSync(_t):_t()},st=u.useState(ut),Mt=V(st,2),yt=Mt[0],wt=Mt[1],At=u.useRef(!1),bt=u.useMemo(function(){return(h==="inline"||h==="vertical")&&m?["vertical",m]:[h,!1]},[h,m]),Je=V(bt,2),je=Je[0],ke=Je[1],Le=je==="inline",ge=u.useState(je),Xe=V(ge,2),tt=Xe[0],de=Xe[1],we=u.useState(ke),he=V(we,2),_e=he[0],Ve=he[1];u.useEffect(function(){de(je),Ve(ke),At.current&&(Le?qe(yt):lt(ua))},[je,ke]);var Ze=u.useState(0),Ot=V(Ze,2),mt=Ot[0],Ue=Ot[1],Re=mt>=Se.length-1||tt!=="horizontal"||C;u.useEffect(function(){Le&&wt(ut)},[ut]),u.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var We=hD(),Et=We.registerPath,St=We.unregisterPath,Pt=We.refreshOverflowKeys,kt=We.isSubPathKey,$e=We.getKeyPath,Oe=We.getKeys,Me=We.getSubPathKeys,It=u.useMemo(function(){return{registerPath:Et,unregisterPath:St}},[Et,St]),on=u.useMemo(function(){return{isSubPathKey:kt}},[kt]);u.useEffect(function(){Pt(Re?ua:Se.slice(mt+1).map(function(ot){return ot.key}))},[mt,Re]);var dr=ar(M||z&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:M}),Jt=V(dr,2),Bn=Jt[0],fr=Jt[1],kn=Cl(function(ot){fr(ot)}),Yn=Cl(function(){fr(void 0)});u.useImperativeHandle(t,function(){return{list:Ce.current,focus:function(ze){var Ye,_t=Oe(),Nt=km(_t,He),dn=Nt.elements,Hn=Nt.key2element,$n=Nt.element2key,Vn=Mg(Ce.current,dn),Ua=Bn??(Vn[0]?$n.get(Vn[0]):(Ye=Se.find(function(Ir){return!Ir.props.disabled}))===null||Ye===void 0?void 0:Ye.key),fn=Hn.get(Ua);if(Ua&&fn){var $o;fn==null||($o=fn.focus)===null||$o===void 0||$o.call(fn,ze)}}}});var xo=ar($||[],{value:L,postState:function(ze){return Array.isArray(ze)?ze:ze==null?ua:[ze]}}),Nn=V(xo,2),yn=Nn[0],no=Nn[1],Ro=function(ze){if(H){var Ye=ze.key,_t=yn.includes(Ye),Nt;P?_t?Nt=yn.filter(function(Hn){return Hn!==Ye}):Nt=[].concat(ye(yn),[Ye]):Nt=[Ye],no(Nt);var dn=D(D({},ze),{},{selectedKeys:Nt});_t?T==null||T(dn):N==null||N(dn)}!P&&ut.length&&tt!=="inline"&&lt(ua)},vr=Cl(function(ot){oe==null||oe(Pc(ot)),Ro(ot)}),mr=Cl(function(ot,ze){var Ye=ut.filter(function(Nt){return Nt!==ot});if(ze)Ye.push(ot);else if(tt!=="inline"){var _t=Me(ot);Ye=Ye.filter(function(Nt){return!_t.has(Nt)})}ls(ut,Ye,!0)||lt(Ye,!0)}),Gr=function(ze,Ye){var _t=Ye??!ut.includes(ze);mr(ze,_t)},pr=mD(tt,Bn,Be,He,Ce,Oe,$e,fr,Gr,Pe);u.useEffect(function(){xe(!0)},[]);var Qe=u.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:le}},[me,le]),Ke=tt!=="horizontal"||C?Se:Se.map(function(ot,ze){return u.createElement(ps,{key:ot.key,overflowDisabled:ze>mt},ot)}),Zt=u.createElement(eo,be({id:b,ref:Ce,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cd,className:G(i,"".concat(i,"-root"),"".concat(i,"-").concat(tt),c,(r={},j(r,"".concat(i,"-inline-collapsed"),_e),j(r,"".concat(i,"-rtl"),Be),r),l),dir:y,style:s,role:"menu",tabIndex:f,data:Ke,renderRawItem:function(ze){return ze},renderRawRest:function(ze){var Ye=ze.length,_t=Ye?Se.slice(-Ye):null;return u.createElement(Fg,{eventKey:Hm,title:te,disabled:Re,internalPopupClose:Ye===0,popupClassName:ie},_t)},maxCount:tt!=="horizontal"||C?eo.INVALIDATE:eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ze){Ue(ze)},onKeyDown:pr},se));return u.createElement(Tg.Provider,{value:Qe},u.createElement(ux.Provider,{value:He},u.createElement(ps,{prefixCls:i,rootClassName:l,mode:tt,openKeys:ut,rtl:Be,disabled:p,motion:De?W:null,defaultMotions:De?U:null,activeKey:Bn,onActive:kn,onInactive:Yn,selectedKeys:yn,inlineIndent:k,subMenuOpenDelay:x,subMenuCloseDelay:R,forceSubMenuRender:O,builtinPlacements:ae,triggerSubMenuAction:q,getPopupContainer:Y,itemIcon:ce,expandIcon:ne,onItemClick:vr,onOpenChange:mr},u.createElement(mx.Provider,{value:on},Zt),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(fx.Provider,{value:It},Fe)))))}),As=kD;As.Item=Cd;As.SubMenu=Fg;As.ItemGroup=Cx;As.Divider=Sx;var HD={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"},VD=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:HD}))},WD=u.forwardRef(VD);function wx(e){return Ut(e,{inputAffixPadding:e.paddingXXS})}const Ex=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:g,colorPrimary:y,controlOutlineWidth:b,controlOutline:S,colorErrorOutline:h,colorWarningOutline:m,colorBgContainer:p}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:y,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${S}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:p,activeBg:p,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},UD=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),zg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},UD(Ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),xx=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),pb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),KD=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xx(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zg(e))}),pb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),pb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),GD=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},gb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},zg(e))}})}),qD=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Rx=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),hb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),QD=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zg(e))}),hb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),yb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),XD=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},yb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),yb(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),YD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),$x=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Ox=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Px=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},YD(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},$x(e)),"&-sm":Object.assign({},Ox(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),JD=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},$x(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ox(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${J(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Gi()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ZD=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},to(e)),Px(e)),KD(e)),QD(e)),qD(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},e3=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${J(e.inputAffixPadding)}`}}}},t3=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Px(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),e3(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},n3=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},to(e)),JD(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},GD(e)),XD(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},r3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},o3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},a3=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jg=Pr("Input",e=>{const t=Ut(e,wx(e));return[ZD(t),o3(t),t3(t),n3(t),r3(t),a3(t),Cg(t)]},Ex,{resetFont:!1});var i3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l3=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:i3}))},s3=u.forwardRef(l3);const wd=u.createContext(null);var u3=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,c=s===void 0?"center":s,d=u.useState(),f=V(d,2),v=f[0],g=f[1],y=u.useRef(),b=K.useCallback(function(h){return typeof l=="function"?l(h):typeof l=="number"?l:h},[l]);function S(){xt.cancel(y.current)}return u.useEffect(function(){var h={};if(n)if(r){h.width=b(n.width);var m=o?"right":"left";c==="start"&&(h[m]=n[m]),c==="center"&&(h[m]=n[m]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(h[m]=n[m]+n.width,h.transform="translateX(-100%)")}else h.height=b(n.height),c==="start"&&(h.top=n.top),c==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),c==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return S(),y.current=xt(function(){g(h)}),S},[n,r,o,c,b]),{style:v}},bb={width:0,height:0,left:0,top:0};function c3(e,t,n){return u.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||bb,i=a.left+a.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var d;c=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||bb}var f=o.get(s)||D({},c);f.right=i-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Sb(e,t){var n=u.useRef(e),r=u.useState({}),o=V(r,2),a=o[1];function i(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,a({})}return[n.current,i]}var d3=.1,Cb=.01,Bu=20,wb=Math.pow(.995,Bu);function f3(e,t){var n=u.useState(),r=V(n,2),o=r[0],a=r[1],i=u.useState(0),l=V(i,2),s=l[0],c=l[1],d=u.useState(0),f=V(d,2),v=f[0],g=f[1],y=u.useState(),b=V(y,2),S=b[0],h=b[1],m=u.useRef();function p(O){var I=O.touches[0],A=I.screenX,M=I.screenY;a({x:A,y:M}),window.clearInterval(m.current)}function C(O){if(o){O.preventDefault();var I=O.touches[0],A=I.screenX,M=I.screenY;a({x:A,y:M});var z=A-o.x,_=M-o.y;t(z,_);var H=Date.now();c(H),g(H-s),h({x:z,y:_})}}function w(){if(o&&(a(null),h(null),S)){var O=S.x/v,I=S.y/v,A=Math.abs(O),M=Math.abs(I);if(Math.max(A,M)<d3)return;var z=O,_=I;m.current=window.setInterval(function(){if(Math.abs(z)<Cb&&Math.abs(_)<Cb){window.clearInterval(m.current);return}z*=wb,_*=wb,t(z*Bu,_*Bu)},Bu)}}var x=u.useRef();function E(O){var I=O.deltaX,A=O.deltaY,M=0,z=Math.abs(I),_=Math.abs(A);z===_?M=x.current==="x"?I:A:z>_?(M=I,x.current="x"):(M=A,x.current="y"),t(-M,-M)&&O.preventDefault()}var R=u.useRef(null);R.current={onTouchStart:p,onTouchMove:C,onTouchEnd:w,onWheel:E},u.useEffect(function(){function O(z){R.current.onTouchStart(z)}function I(z){R.current.onTouchMove(z)}function A(z){R.current.onTouchEnd(z)}function M(z){R.current.onWheel(z)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",A)}},[])}function Ix(e){var t=u.useState(0),n=V(t,2),r=n[0],o=n[1],a=u.useRef(0),i=u.useRef();return i.current=e,rm(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function v3(e){var t=u.useRef([]),n=u.useState({}),r=V(n,2),o=r[1],a=u.useRef(typeof e=="function"?e():e),i=Ix(function(){var s=a.current;t.current.forEach(function(c){s=c(s)}),t.current=[],a.current=s,o({})});function l(s){t.current.push(s),i()}return[a.current,l]}var Eb={width:0,height:0,left:0,top:0,right:0};function m3(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,c=i.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,y=g,b=0;b<g;b+=1){var S=e.get(l[b].key)||Eb;if(S[f]+S[d]>v+t){y=b-1;break}}for(var h=0,m=g-1;m>=0;m-=1){var p=e.get(l[m].key)||Eb;if(p[f]<v){h=m+1;break}}return h>=y?[0,0]:[h,y]},[e,t,r,o,a,v,s,l.map(function(g){return g.key}).join("_"),c])}function xb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var p3="TABS_DQ";function _x(e){return String(e).replace(/"/g,p3)}function Tx(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Mx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Rb=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return Ae(o)==="object"&&!u.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),g3=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,b=e.onTabClick,S=e.getPopupContainer,h=e.popupClassName,m=u.useState(!1),p=V(m,2),C=p[0],w=p[1],x=u.useState(null),E=V(x,2),R=E[0],O=E[1],I=s.icon,A=I===void 0?"More":I,M="".concat(r,"-more-popup"),z="".concat(n,"-dropdown"),_=R!==null?"".concat(M,"-").concat(R):null,H=a==null?void 0:a.dropdownAriaLabel;function F(k,W){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:W,event:k})}var P=u.createElement(As,{onClick:function(W){var U=W.key,ee=W.domEvent;b(U,ee),w(!1)},prefixCls:"".concat(z,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[R],"aria-label":H!==void 0?H:"expanded dropdown"},o.map(function(k){var W=k.closable,U=k.disabled,ee=k.closeIcon,q=k.key,ae=k.label,ce=Tx(W,ee,f,U);return u.createElement(Cd,{key:q,id:"".concat(M,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:U},u.createElement("span",null,ae),ce&&u.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(Q){Q.stopPropagation(),F(Q,q)}},ee||f.removeIcon||"×"))}));function $(k){for(var W=o.filter(function(ce){return!ce.disabled}),U=W.findIndex(function(ce){return ce.key===R})||0,ee=W.length,q=0;q<ee;q+=1){U=(U+k+ee)%ee;var ae=W[U];if(!ae.disabled){O(ae.key);return}}}function L(k){var W=k.which;if(!C){[re.DOWN,re.SPACE,re.ENTER].includes(W)&&(w(!0),k.preventDefault());return}switch(W){case re.UP:$(-1),k.preventDefault();break;case re.DOWN:$(1),k.preventDefault();break;case re.ESC:w(!1);break;case re.SPACE:case re.ENTER:R!==null&&b(R,k);break}}u.useEffect(function(){var k=document.getElementById(_);k&&k.scrollIntoView&&k.scrollIntoView(!1)},[R]),u.useEffect(function(){C||O(null)},[C]);var N=j({},g?"marginRight":"marginLeft",v);o.length||(N.visibility="hidden",N.order=1);var T=G(j({},"".concat(z,"-rtl"),g)),B=i?null:u.createElement(iD,be({prefixCls:z,overlay:P,visible:o.length?C:!1,onVisibleChange:w,overlayClassName:G(T,h),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},s),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:L},A));return u.createElement("div",{className:G("".concat(n,"-nav-operations"),d),style:c,ref:t},B,u.createElement(Mx,{prefixCls:n,locale:a,editable:f}))});const h3=u.memo(g3,function(e,t){return t.tabMoving});var y3=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.tab,i=a.key,l=a.label,s=a.disabled,c=a.closeIcon,d=a.icon,f=t.closable,v=t.renderWrapper,g=t.removeAriaLabel,y=t.editable,b=t.onClick,S=t.onFocus,h=t.style,m="".concat(n,"-tab"),p=Tx(f,c,y,s);function C(R){s||b(R)}function w(R){R.preventDefault(),R.stopPropagation(),y.onEdit("remove",{key:i,event:R})}var x=u.useMemo(function(){return d&&typeof l=="string"?u.createElement("span",null,l):l},[l,d]),E=u.createElement("div",{key:i,"data-node-key":_x(i),className:G(m,j(j(j({},"".concat(m,"-with-remove"),p),"".concat(m,"-active"),o),"".concat(m,"-disabled"),s)),style:h,onClick:C},u.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(O){O.stopPropagation(),C(O)},onKeyDown:function(O){[re.SPACE,re.ENTER].includes(O.which)&&(O.preventDefault(),C(O))},onFocus:S},d&&u.createElement("span",{className:"".concat(m,"-icon")},d),l&&x),p&&u.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function(O){O.stopPropagation(),w(O)}},c||y.removeIcon||"×"));return v?v(E):E},b3=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,d=l.x,f=l.y;return Math.abs(s-r)<1?[s,c,d-n.x,f-n.y]:[r,o,i,a]},ni=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return[s,c]}return[o,i]},pu=function(t,n){return t[n?0:1]},$b=u.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,g=e.children,y=e.onTabClick,b=e.onTabScroll,S=e.indicator,h=u.useContext(wd),m=h.prefixCls,p=h.tabs,C=u.useRef(null),w=u.useRef(null),x=u.useRef(null),E=u.useRef(null),R=u.useRef(null),O=u.useRef(null),I=u.useRef(null),A=f==="top"||f==="bottom",M=Sb(0,function(Ue,Re){A&&b&&b({direction:Ue>Re?"left":"right"})}),z=V(M,2),_=z[0],H=z[1],F=Sb(0,function(Ue,Re){!A&&b&&b({direction:Ue>Re?"top":"bottom"})}),P=V(F,2),$=P[0],L=P[1],N=u.useState([0,0]),T=V(N,2),B=T[0],k=T[1],W=u.useState([0,0]),U=V(W,2),ee=U[0],q=U[1],ae=u.useState([0,0]),ce=V(ae,2),ne=ce[0],Q=ce[1],te=u.useState([0,0]),ie=V(te,2),Y=ie[0],oe=ie[1],fe=v3(new Map),Pe=V(fe,2),me=Pe[0],le=Pe[1],ve=c3(p,me,ee[0]),se=pu(B,A),Ee=pu(ee,A),Ne=pu(ne,A),Se=pu(Y,A),Fe=se<Ee+Ne,pe=Fe?se-Se:se-Ne,rt="".concat(m,"-nav-operations-hidden"),De=0,xe=0;A&&l?(De=0,xe=Math.max(0,Ee-pe)):(De=Math.min(0,pe-Ee),xe=0);function Ce(Ue){return Ue<De?De:Ue>xe?xe:Ue}var He=u.useRef(null),Be=u.useState(),et=V(Be,2),ft=et[0],ut=et[1];function qe(){ut(Date.now())}function lt(){He.current&&clearTimeout(He.current)}f3(E,function(Ue,Re){function We(Et,St){Et(function(Pt){var kt=Ce(Pt+St);return kt})}return Fe?(A?We(H,Ue):We(L,Re),lt(),qe(),!0):!1}),u.useEffect(function(){return lt(),ft&&(He.current=setTimeout(function(){ut(0)},100)),lt},[ft]);var st=m3(ve,pe,A?_:$,Ee,Ne,Se,D(D({},e),{},{tabs:p})),Mt=V(st,2),yt=Mt[0],wt=Mt[1],At=tn(function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Re=ve.get(Ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var We=_;l?Re.right<_?We=Re.right:Re.right+Re.width>_+pe&&(We=Re.right+Re.width-pe):Re.left<-_?We=-Re.left:Re.left+Re.width>-_+pe&&(We=-(Re.left+Re.width-pe)),L(0),H(Ce(We))}else{var Et=$;Re.top<-$?Et=-Re.top:Re.top+Re.height>-$+pe&&(Et=-(Re.top+Re.height-pe)),H(0),L(Ce(Et))}}),bt={};f==="top"||f==="bottom"?bt[l?"marginRight":"marginLeft"]=v:bt.marginTop=v;var Je=p.map(function(Ue,Re){var We=Ue.key;return u.createElement(y3,{id:o,prefixCls:m,key:We,tab:Ue,style:Re===0?void 0:bt,closable:Ue.closable,editable:c,active:We===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(St){y(We,St)},onFocus:function(){At(We),qe(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),je=function(){return le(function(){var Re,We=new Map,Et=(Re=R.current)===null||Re===void 0?void 0:Re.getBoundingClientRect();return p.forEach(function(St){var Pt,kt=St.key,$e=(Pt=R.current)===null||Pt===void 0?void 0:Pt.querySelector('[data-node-key="'.concat(_x(kt),'"]'));if($e){var Oe=b3($e,Et),Me=V(Oe,4),It=Me[0],on=Me[1],dr=Me[2],Jt=Me[3];We.set(kt,{width:It,height:on,left:dr,top:Jt})}}),We})};u.useEffect(function(){je()},[p.map(function(Ue){return Ue.key}).join("_")]);var ke=Ix(function(){var Ue=ni(C),Re=ni(w),We=ni(x);k([Ue[0]-Re[0]-We[0],Ue[1]-Re[1]-We[1]]);var Et=ni(I);Q(Et);var St=ni(O);oe(St);var Pt=ni(R);q([Pt[0]-Et[0],Pt[1]-Et[1]]),je()}),Le=p.slice(0,yt),ge=p.slice(wt+1),Xe=[].concat(ye(Le),ye(ge)),tt=ve.get(i),de=u3({activeTabOffset:tt,horizontal:A,indicator:S,rtl:l}),we=de.style;u.useEffect(function(){At()},[i,De,xe,xb(tt),xb(ve),A]),u.useEffect(function(){ke()},[l]);var he=!!Xe.length,_e="".concat(m,"-nav-wrap"),Ve,Ze,Ot,mt;return A?l?(Ze=_>0,Ve=_!==xe):(Ve=_<0,Ze=_!==De):(Ot=$<0,mt=$!==De),u.createElement(Dr,{onResize:ke},u.createElement("div",{ref:Ba(t,C),role:"tablist",className:G("".concat(m,"-nav"),n),style:r,onKeyDown:function(){qe()}},u.createElement(Rb,{ref:w,position:"left",extra:s,prefixCls:m}),u.createElement(Dr,{onResize:ke},u.createElement("div",{className:G(_e,j(j(j(j({},"".concat(_e,"-ping-left"),Ve),"".concat(_e,"-ping-right"),Ze),"".concat(_e,"-ping-top"),Ot),"".concat(_e,"-ping-bottom"),mt)),ref:E},u.createElement(Dr,{onResize:ke},u.createElement("div",{ref:R,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat($,"px)"),transition:ft?"none":void 0}},Je,u.createElement(Mx,{ref:I,prefixCls:m,locale:d,editable:c,style:D(D({},Je.length===0?void 0:bt),{},{visibility:he?"hidden":null})}),u.createElement("div",{className:G("".concat(m,"-ink-bar"),j({},"".concat(m,"-ink-bar-animated"),a.inkBar)),style:we}))))),u.createElement(h3,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:m,tabs:Xe,className:!he&&rt,tabMoving:!!ft})),u.createElement(Rb,{ref:x,position:"right",extra:s,prefixCls:m})))}),Nx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:G(n,i&&"".concat(n,"-active"),r),ref:t},s)}),S3=["renderTabBar"],C3=["label","key"],w3=function(t){var n=t.renderTabBar,r=at(t,S3),o=u.useContext(wd),a=o.tabs;if(n){var i=D(D({},r),{},{panes:a.map(function(l){var s=l.label,c=l.key,d=at(l,C3);return u.createElement(Nx,be({tab:s,key:c,tabKey:c},d))})});return n(i,$b)}return u.createElement($b,r)},E3=["key","forceRender","style","className","destroyInactiveTabPane"],x3=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=u.useContext(wd),s=l.prefixCls,c=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return u.createElement("div",{className:G("".concat(s,"-content-holder"))},u.createElement("div",{className:G("".concat(s,"-content"),"".concat(s,"-content-").concat(a),j({},"".concat(s,"-content-animated"),d))},c.map(function(v){var g=v.key,y=v.forceRender,b=v.style,S=v.className,h=v.destroyInactiveTabPane,m=at(v,E3),p=g===r;return u.createElement(wo,be({key:g,visible:p,forceRender:y,removeOnLeave:!!(i||h),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(C,w){var x=C.style,E=C.className;return u.createElement(Nx,be({},m,{prefixCls:f,id:n,tabKey:g,animated:d,active:p,style:D(D({},b),x),className:G(S,E),ref:w}))})})))};function R3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},Ae(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var $3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ob=0,O3=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,g=v===void 0?"top":v,y=e.tabBarGutter,b=e.tabBarStyle,S=e.tabBarExtraContent,h=e.locale,m=e.more,p=e.destroyInactiveTabPane,C=e.renderTabBar,w=e.onChange,x=e.onTabClick,E=e.onTabScroll,R=e.getPopupContainer,O=e.popupClassName,I=e.indicator,A=at(e,$3),M=u.useMemo(function(){return(i||[]).filter(function(Y){return Y&&Ae(Y)==="object"&&"key"in Y})},[i]),z=l==="rtl",_=R3(f),H=u.useState(!1),F=V(H,2),P=F[0],$=F[1];u.useEffect(function(){$(xg())},[]);var L=ar(function(){var Y;return(Y=M[0])===null||Y===void 0?void 0:Y.key},{value:s,defaultValue:c}),N=V(L,2),T=N[0],B=N[1],k=u.useState(function(){return M.findIndex(function(Y){return Y.key===T})}),W=V(k,2),U=W[0],ee=W[1];u.useEffect(function(){var Y=M.findIndex(function(fe){return fe.key===T});if(Y===-1){var oe;Y=Math.max(0,Math.min(U,M.length-1)),B((oe=M[Y])===null||oe===void 0?void 0:oe.key)}ee(Y)},[M.map(function(Y){return Y.key}).join("_"),T,U]);var q=ar(null,{value:n}),ae=V(q,2),ce=ae[0],ne=ae[1];u.useEffect(function(){n||(ne("rc-tabs-".concat(Ob)),Ob+=1)},[]);function Q(Y,oe){x==null||x(Y,oe);var fe=Y!==T;B(Y),fe&&(w==null||w(Y))}var te={id:ce,activeKey:T,animated:_,tabPosition:g,rtl:z,mobile:P},ie=D(D({},te),{},{editable:d,locale:h,more:m,tabBarGutter:y,onTabClick:Q,onTabScroll:E,extra:S,style:b,panes:null,getPopupContainer:R,popupClassName:O,indicator:I});return u.createElement(wd.Provider,{value:{tabs:M,prefixCls:o}},u.createElement("div",be({ref:t,id:n,className:G(o,"".concat(o,"-").concat(g),j(j(j({},"".concat(o,"-mobile"),P),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),z),a)},A),u.createElement(w3,be({},ie,{renderTabBar:C})),u.createElement(x3,be({destroyInactiveTabPane:p},te,{animated:_}))))});const P3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function I3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},P3),{motionName:Bi(e,"switch")})),n}var _3=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 T3(e){return e.filter(t=>t)}function M3(e,t){if(e)return e;const n=Zo(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=_3(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return T3(n)}const N3=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Rc(e,"slide-up"),Rc(e,"slide-down")]]},L3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${J(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:J(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:J(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadiusLG)} 0 0 ${J(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},A3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},to(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${J(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Di),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${J(e.paddingXXS)} ${J(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},F3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${J(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:J(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},z3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadius)} ${J(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${J(e.borderRadius)} ${J(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadius)} ${J(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadius)} 0 0 ${J(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},dd(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},D3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:J(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:J(e.marginXS)},marginLeft:{_skip_check_:!0,value:J(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},B3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},to(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${J(e.paddingXS)}`,background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},dd(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},k3=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},H3=Pr("Tabs",e=>{const t=Ut(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[z3(t),D3(t),F3(t),A3(t),L3(t),B3(t),N3(t)]},k3),V3=()=>null;var W3=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 Lx=e=>{var t,n,r,o,a,i,l,s,c,d,f;const{type:v,className:g,rootClassName:y,size:b,onEdit:S,hideAdd:h,centered:m,addIcon:p,removeIcon:C,moreIcon:w,more:x,popupClassName:E,children:R,items:O,animated:I,style:A,indicatorSize:M,indicator:z}=e,_=W3(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=_,{direction:F,tabs:P,getPrefixCls:$,getPopupContainer:L}=u.useContext(ct),N=$("tabs",H),T=ka(N),[B,k,W]=H3(N,T);let U;v==="editable-card"&&(U={onEdit:(te,ie)=>{let{key:Y,event:oe}=ie;S==null||S(te==="add"?oe:Y,te)},removeIcon:(t=C??(P==null?void 0:P.removeIcon))!==null&&t!==void 0?t:u.createElement(Os,null),addIcon:(p??(P==null?void 0:P.addIcon))||u.createElement(s3,null),showAdd:h!==!0});const ee=$(),q=Eo(b),ae=M3(O,R),ce=I3(N,I),ne=Object.assign(Object.assign({},P==null?void 0:P.style),A),Q={align:(n=z==null?void 0:z.align)!==null&&n!==void 0?n:(r=P==null?void 0:P.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=z==null?void 0:z.size)!==null&&o!==void 0?o:M)!==null&&a!==void 0?a:(i=P==null?void 0:P.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:P==null?void 0:P.indicatorSize};return B(u.createElement(O3,Object.assign({direction:F,getPopupContainer:L},_,{items:ae,className:G({[`${N}-${q}`]:q,[`${N}-card`]:["card","editable-card"].includes(v),[`${N}-editable-card`]:v==="editable-card",[`${N}-centered`]:m},P==null?void 0:P.className,g,y,k,W,T),popupClassName:G(E,k,W,T),style:ne,editable:U,more:Object.assign({icon:(f=(d=(c=(s=P==null?void 0:P.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:P==null?void 0:P.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:u.createElement(WD,null),transitionName:`${ee}-slide-up`},x),prefixCls:N,animated:ce,indicator:Q})))};Lx.TabPane=V3;var U3=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 Ax=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=U3(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=u.useContext(ct),i=a("card",t),l=G(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:l}))},K3=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${J(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},Gi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Di),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},G3=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${J(o)} 0 0 0 ${n},
      0 ${J(o)} 0 0 ${n},
      ${J(o)} ${J(o)} 0 0 ${n},
      ${J(o)} 0 0 0 ${n} inset,
      0 ${J(o)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},q3=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${J(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},Gi()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:J(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:J(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${a}`}}})},Q3=e=>Object.assign(Object.assign({margin:`${J(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Gi()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Di),"&-description":{color:e.colorTextDescription}}),X3=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${J(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${J(e.padding)} ${J(n)}`}}},Y3=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},J3=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:a,boxShadowTertiary:i,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},to(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:K3(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},Gi()),[`${n}-grid`]:G3(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:q3(e),[`${n}-meta`]:Q3(e)}),[`${n}-bordered`]:{border:`${J(e.lineWidth)} ${e.lineType} ${a}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> div${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:X3(e),[`${n}-loading`]:Y3(e),[`${n}-rtl`]:{direction:"rtl"}}},Z3=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${J(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},e5=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),t5=Pr("Card",e=>{const t=Ut(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[J3(t),Z3(t)]},e5);var Pb=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 n5=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:i},u.createElement("span",null,o))}))},r5=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:f=!0,size:v,type:g,cover:y,actions:b,tabList:S,children:h,activeTabKey:m,defaultActiveTabKey:p,tabBarExtraContent:C,hoverable:w,tabProps:x={},classNames:E,styles:R}=e,O=Pb(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:A,card:M}=u.useContext(ct),z=me=>{var le;(le=e.onTabChange)===null||le===void 0||le.call(e,me)},_=me=>{var le;return G((le=M==null?void 0:M.classNames)===null||le===void 0?void 0:le[me],E==null?void 0:E[me])},H=me=>{var le;return Object.assign(Object.assign({},(le=M==null?void 0:M.styles)===null||le===void 0?void 0:le[me]),R==null?void 0:R[me])},F=u.useMemo(()=>{let me=!1;return u.Children.forEach(h,le=>{(le==null?void 0:le.type)===Ax&&(me=!0)}),me},[h]),P=I("card",n),[$,L,N]=t5(P),T=u.createElement(Va,{loading:!0,active:!0,paragraph:{rows:4},title:!1},h),B=m!==void 0,k=Object.assign(Object.assign({},x),{[B?"activeKey":"defaultActiveKey"]:B?m:p,tabBarExtraContent:C});let W;const U=Eo(v),ee=!U||U==="default"?"large":U,q=S?u.createElement(Lx,Object.assign({size:ee},k,{className:`${P}-head-tabs`,onChange:z,items:S.map(me=>{var{tab:le}=me,ve=Pb(me,["tab"]);return Object.assign({label:le},ve)})})):null;if(c||i||q){const me=G(`${P}-head`,_("header")),le=G(`${P}-head-title`,_("title")),ve=G(`${P}-extra`,_("extra")),se=Object.assign(Object.assign({},l),H("header"));W=u.createElement("div",{className:me,style:se},u.createElement("div",{className:`${P}-head-wrapper`},c&&u.createElement("div",{className:le,style:H("title")},c),i&&u.createElement("div",{className:ve,style:H("extra")},i)),q)}const ae=G(`${P}-cover`,_("cover")),ce=y?u.createElement("div",{className:ae,style:H("cover")},y):null,ne=G(`${P}-body`,_("body")),Q=Object.assign(Object.assign({},s),H("body")),te=u.createElement("div",{className:ne,style:Q},d?T:h),ie=G(`${P}-actions`,_("actions")),Y=b!=null&&b.length?u.createElement(n5,{actionClasses:ie,actionStyle:H("actions"),actions:b}):null,oe=cr(O,["onTabChange"]),fe=G(P,M==null?void 0:M.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:w,[`${P}-contain-grid`]:F,[`${P}-contain-tabs`]:S==null?void 0:S.length,[`${P}-${U}`]:U,[`${P}-type-${g}`]:!!g,[`${P}-rtl`]:A==="rtl"},r,o,L,N),Pe=Object.assign(Object.assign({},M==null?void 0:M.style),a);return $(u.createElement("div",Object.assign({ref:t},oe,{className:fe,style:Pe}),W,ce,te,Y))});var o5=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 a5=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=o5(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(ct),s=l("card",t),c=G(`${s}-meta`,n),d=r?u.createElement("div",{className:`${s}-meta-avatar`},r):null,f=o?u.createElement("div",{className:`${s}-meta-title`},o):null,v=a?u.createElement("div",{className:`${s}-meta-description`},a):null,g=f||v?u.createElement("div",{className:`${s}-meta-detail`},f,v):null;return u.createElement("div",Object.assign({},i,{className:c}),d,g)},gs=r5;gs.Grid=Ax;gs.Meta=a5;function i5(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,c=s===void 0?void 0:s,d,f=!1,v=0;function g(){d&&clearTimeout(d)}function y(S){var h=S||{},m=h.upcomingOnly,p=m===void 0?!1:m;g(),f=!p}function b(){for(var S=arguments.length,h=new Array(S),m=0;m<S;m++)h[m]=arguments[m];var p=this,C=Date.now()-v;if(f)return;function w(){v=Date.now(),t.apply(p,h)}function x(){d=void 0}!l&&c&&!d&&w(),g(),c===void 0&&C>e?l?(v=Date.now(),a||(d=setTimeout(c?x:w,e))):w():a!==!0&&(d=setTimeout(c?x:w,c===void 0?e-C:e))}return b.cancel=y,b}function l5(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return i5(e,t,{debounceMode:a!==!1})}function s5(e){return!!(e.addonBefore||e.addonAfter)}function u5(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ib(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ic(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Ib(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Ib(t,e,r),n(o);return}n(o)}}function c5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Fx=K.forwardRef(function(e,t){var n,r,o=e.inputElement,a=e.children,i=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,g=e.disabled,y=e.readOnly,b=e.focused,S=e.triggerFocus,h=e.allowClear,m=e.value,p=e.handleReset,C=e.hidden,w=e.classes,x=e.classNames,E=e.dataAttrs,R=e.styles,O=e.components,I=a??o,A=(O==null?void 0:O.affixWrapper)||"span",M=(O==null?void 0:O.groupWrapper)||"span",z=(O==null?void 0:O.wrapper)||"span",_=(O==null?void 0:O.groupAddon)||"span",H=u.useRef(null),F=function(oe){var fe;(fe=H.current)!==null&&fe!==void 0&&fe.contains(oe.target)&&(S==null||S())},P=u5(e),$=u.cloneElement(I,{value:m,className:G(I.props.className,!P&&(x==null?void 0:x.variant))||null}),L=u.useRef(null);if(K.useImperativeHandle(t,function(){return{nativeElement:L.current||H.current}}),P){var N,T=null;if(h){var B,k=!g&&!y&&m,W="".concat(i,"-clear-icon"),U=Ae(h)==="object"&&h!==null&&h!==void 0&&h.clearIcon?h.clearIcon:"✖";T=K.createElement("span",{onClick:p,onMouseDown:function(oe){return oe.preventDefault()},className:G(W,(B={},j(B,"".concat(W,"-hidden"),!k),j(B,"".concat(W,"-has-suffix"),!!s),B)),role:"button",tabIndex:-1},U)}var ee="".concat(i,"-affix-wrapper"),q=G(ee,(N={},j(N,"".concat(i,"-disabled"),g),j(N,"".concat(ee,"-disabled"),g),j(N,"".concat(ee,"-focused"),b),j(N,"".concat(ee,"-readonly"),y),j(N,"".concat(ee,"-input-with-clear-btn"),s&&h&&m),N),w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),ae=(s||h)&&K.createElement("span",{className:G("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},T,s);$=K.createElement(A,be({className:q,style:R==null?void 0:R.affixWrapper,onClick:F},E==null?void 0:E.affixWrapper,{ref:H}),l&&K.createElement("span",{className:G("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},l),$,ae)}if(s5(e)){var ce="".concat(i,"-group"),ne="".concat(ce,"-addon"),Q="".concat(ce,"-wrapper"),te=G("".concat(i,"-wrapper"),ce,w==null?void 0:w.wrapper,x==null?void 0:x.wrapper),ie=G(Q,j({},"".concat(Q,"-disabled"),g),w==null?void 0:w.group,x==null?void 0:x.groupWrapper);$=K.createElement(M,{className:ie,ref:L},K.createElement(z,{className:te},c&&K.createElement(_,{className:ne},c),$,d&&K.createElement(_,{className:ne},d)))}return K.cloneElement($,{className:G((n=$.props)===null||n===void 0?void 0:n.className,f)||null,style:D(D({},(r=$.props)===null||r===void 0?void 0:r.style),v),hidden:C})}),d5=["show"];function zx(e,t){return u.useMemo(function(){var n={};t&&(n.show=Ae(t)==="object"&&t.formatter?t.formatter:!!t),n=D(D({},n),e);var r=n,o=r.show,a=at(r,d5);return D(D({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var f5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],v5=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,v=e.className,g=e.maxLength,y=e.suffix,b=e.showCount,S=e.count,h=e.type,m=h===void 0?"text":h,p=e.classes,C=e.classNames,w=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,R=at(e,f5),O=u.useState(!1),I=V(O,2),A=I[0],M=I[1],z=u.useRef(!1),_=u.useRef(null),H=u.useRef(null),F=function(se){_.current&&c5(_.current,se)},P=ar(e.defaultValue,{value:e.value}),$=V(P,2),L=$[0],N=$[1],T=L==null?"":String(L),B=u.useState(null),k=V(B,2),W=k[0],U=k[1],ee=zx(S,b),q=ee.max||g,ae=ee.strategy(T),ce=!!q&&ae>q;u.useImperativeHandle(t,function(){var ve;return{focus:F,blur:function(){var Ee;(Ee=_.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,Ne,Se){var Fe;(Fe=_.current)===null||Fe===void 0||Fe.setSelectionRange(Ee,Ne,Se)},select:function(){var Ee;(Ee=_.current)===null||Ee===void 0||Ee.select()},input:_.current,nativeElement:((ve=H.current)===null||ve===void 0?void 0:ve.nativeElement)||_.current}}),u.useEffect(function(){M(function(ve){return ve&&d?!1:ve})},[d]);var ne=function(se,Ee,Ne){var Se=Ee;if(!z.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ee)>ee.max){if(Se=ee.exceedFormatter(Ee,{max:ee.max}),Ee!==Se){var Fe,pe;U([((Fe=_.current)===null||Fe===void 0?void 0:Fe.selectionStart)||0,((pe=_.current)===null||pe===void 0?void 0:pe.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;N(Se),_.current&&Ic(_.current,se,r,Se)};u.useEffect(function(){if(W){var ve;(ve=_.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,ye(W))}},[W]);var Q=function(se){ne(se,se.target.value,{source:"change"})},te=function(se){z.current=!1,ne(se,se.currentTarget.value,{source:"compositionEnd"}),E==null||E(se)},ie=function(se){i&&se.key==="Enter"&&i(se),l==null||l(se)},Y=function(se){M(!0),o==null||o(se)},oe=function(se){M(!1),a==null||a(se)},fe=function(se){N(""),F(),_.current&&Ic(_.current,se,r)},Pe=ce&&"".concat(c,"-out-of-range"),me=function(){var se=cr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return K.createElement("input",be({autoComplete:n},se,{onChange:Q,onFocus:Y,onBlur:oe,onKeyDown:ie,className:G(c,j({},"".concat(c,"-disabled"),d),C==null?void 0:C.input),style:w==null?void 0:w.input,ref:_,size:f,type:m,onCompositionStart:function(Ne){z.current=!0,x==null||x(Ne)},onCompositionEnd:te}))},le=function(){var se=Number(q)>0;if(y||ee.show){var Ee=ee.showFormatter?ee.showFormatter({value:T,count:ae,maxLength:q}):"".concat(ae).concat(se?" / ".concat(q):"");return K.createElement(K.Fragment,null,ee.show&&K.createElement("span",{className:G("".concat(c,"-show-count-suffix"),j({},"".concat(c,"-show-count-has-suffix"),!!y),C==null?void 0:C.count),style:D({},w==null?void 0:w.count)},Ee),y)}return null};return K.createElement(Fx,be({},R,{prefixCls:c,className:G(v,Pe),handleReset:fe,value:T,focused:A,triggerFocus:F,suffix:le(),disabled:d,classes:p,classNames:C,styles:w}),me())});const m5=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ct),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=jg(i),c=G(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),d=u.useContext(bo),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(u.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(bo.Provider,{value:f},e.children)))},jx=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:K.createElement(hg,null)}),t};function Dx(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function p5(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var g5=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 h5(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Ed=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:v,addonBefore:g,className:y,style:b,styles:S,rootClassName:h,onChange:m,classNames:p,variant:C}=e,w=g5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:R}=K.useContext(ct),O=x("input",r),I=u.useRef(null),A=ka(O),[M,z,_]=jg(O,A),{compactSize:H,compactItemClassnames:F}=md(O,E),P=Eo(ie=>{var Y;return(Y=i??H)!==null&&Y!==void 0?Y:ie}),$=K.useContext(La),L=l??$,{status:N,hasFeedback:T,feedbackIcon:B}=u.useContext(bo),k=bd(N,a),W=p5(e)||!!T;u.useRef(W);const U=Dx(I,!0),ee=ie=>{U(),s==null||s(ie)},q=ie=>{U(),c==null||c(ie)},ae=ie=>{U(),m==null||m(ie)},ce=(T||d)&&K.createElement(K.Fragment,null,d,T&&B),ne=jx(f??(R==null?void 0:R.allowClear)),[Q,te]=_g("input",C,o);return M(K.createElement(v5,Object.assign({ref:Ur(t,I),prefixCls:O,autoComplete:R==null?void 0:R.autoComplete},w,{disabled:L,onBlur:ee,onFocus:q,style:Object.assign(Object.assign({},R==null?void 0:R.style),b),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),S),suffix:ce,allowClear:ne,className:G(y,h,_,A,F,R==null?void 0:R.className),onChange:ae,addonBefore:g&&K.createElement(Mm,{form:!0,space:!0},g),addonAfter:v&&K.createElement(Mm,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},p),R==null?void 0:R.classNames),{input:G({[`${O}-sm`]:P==="small",[`${O}-lg`]:P==="large",[`${O}-rtl`]:E==="rtl"},p==null?void 0:p.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,z),variant:G({[`${O}-${Q}`]:te},Oc(O,k)),affixWrapper:G({[`${O}-affix-wrapper-sm`]:P==="small",[`${O}-affix-wrapper-lg`]:P==="large",[`${O}-affix-wrapper-rtl`]:E==="rtl"},z),wrapper:G({[`${O}-group-rtl`]:E==="rtl"},z),groupWrapper:G({[`${O}-group-wrapper-sm`]:P==="small",[`${O}-group-wrapper-lg`]:P==="large",[`${O}-group-wrapper-rtl`]:E==="rtl",[`${O}-group-wrapper-${Q}`]:te},Oc(`${O}-group-wrapper`,k,T),z)})})))}),y5=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},b5=Pr(["Input","OTP"],e=>{const t=Ut(e,wx(e));return[y5(t)]},Ex);var S5=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 C5=u.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:a,mask:i}=e,l=S5(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof i=="string"?i:n,c=y=>{r(a,y.target.value)},d=u.useRef(null);u.useImperativeHandle(t,()=>d.current);const f=()=>{xt(()=>{var y;const b=(y=d.current)===null||y===void 0?void 0:y.input;document.activeElement===b&&b&&b.select()})},v=y=>{let{key:b}=y;b==="ArrowLeft"?o(a-1):b==="ArrowRight"&&o(a+1),f()},g=y=>{y.key==="Backspace"&&!n&&o(a-1),f()};return u.createElement(Ed,Object.assign({},l,{ref:d,value:s,onInput:c,onFocus:f,onKeyDown:v,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var w5=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 gu(e){return(e||"").split("")}const E5=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:s,variant:c,disabled:d,status:f,autoFocus:v,mask:g}=e,y=w5(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:S}=u.useContext(ct),h=b("otp",n),m=ea(y,{aria:!0,data:!0,attr:!0}),p=ka(h),[C,w,x]=b5(h,p),E=Eo(T=>o??T),R=u.useContext(bo),O=bd(R.status,f),I=u.useMemo(()=>Object.assign(Object.assign({},R),{status:O,hasFeedback:!1,feedbackIcon:null}),[R,O]),A=u.useRef(null),M=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var T;(T=M.current[0])===null||T===void 0||T.focus()},blur:()=>{var T;for(let B=0;B<r;B+=1)(T=M.current[B])===null||T===void 0||T.blur()},nativeElement:A.current}));const z=T=>s?s(T):T,[_,H]=u.useState(gu(z(a||"")));u.useEffect(()=>{i!==void 0&&H(gu(i))},[i]);const F=tn(T=>{H(T),l&&T.length===r&&T.every(B=>B)&&T.some((B,k)=>_[k]!==B)&&l(T.join(""))}),P=tn((T,B)=>{let k=ye(_);for(let U=0;U<T;U+=1)k[U]||(k[U]="");B.length<=1?k[T]=B:k=k.slice(0,T).concat(gu(B)),k=k.slice(0,r);for(let U=k.length-1;U>=0&&!k[U];U-=1)k.pop();const W=z(k.map(U=>U||" ").join(""));return k=gu(W).map((U,ee)=>U===" "&&!k[ee]?k[ee]:U),k}),$=(T,B)=>{var k;const W=P(T,B),U=Math.min(T+B.length,r-1);U!==T&&((k=M.current[U])===null||k===void 0||k.focus()),F(W)},L=T=>{var B;(B=M.current[T])===null||B===void 0||B.focus()},N={variant:c,disabled:d,status:O,mask:g};return C(u.createElement("div",Object.assign({},m,{ref:A,className:G(h,{[`${h}-sm`]:E==="small",[`${h}-lg`]:E==="large",[`${h}-rtl`]:S==="rtl"},x,w)}),u.createElement(bo.Provider,{value:I},Array.from({length:r}).map((T,B)=>{const k=`otp-${B}`,W=_[B]||"";return u.createElement(C5,Object.assign({ref:U=>{M.current[B]=U},key:k,index:B,size:E,htmlSize:1,className:`${h}-input`,onChange:$,value:W,onActiveChange:L,autoFocus:B===0&&v},N))}))))});var x5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},R5=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:x5}))},$5=u.forwardRef(R5),O5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},P5=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:O5}))},I5=u.forwardRef(P5),_5=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 T5=e=>e?u.createElement(I5,null):u.createElement($5,null),M5={click:"onClick",hover:"onMouseOver"},N5=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=T5}=e,i=typeof o=="object"&&o.visible!==void 0,[l,s]=u.useState(()=>i?o.visible:!1),c=u.useRef(null);u.useEffect(()=>{i&&s(o.visible)},[i,o]);const d=Dx(c),f=()=>{n||(l&&d(),s(R=>{var O;const I=!R;return typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I)),I}))},v=R=>{const O=M5[r]||"",I=a(l),A={[O]:f,className:`${R}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return u.cloneElement(u.isValidElement(I)?I:u.createElement("span",null,I),A)},{className:g,prefixCls:y,inputPrefixCls:b,size:S}=e,h=_5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=u.useContext(ct),p=m("input",b),C=m("input-password",y),w=o&&v(C),x=G(C,g,{[`${C}-${S}`]:!!S}),E=Object.assign(Object.assign({},cr(h,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:x,prefixCls:p,suffix:w});return S&&(E.size=S),u.createElement(Ed,Object.assign({ref:Ur(t,c)},E))});var L5=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 A5=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:v,onCompositionStart:g,onCompositionEnd:y}=e,b=L5(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:h}=u.useContext(ct),m=u.useRef(!1),p=S("input-search",n),C=S("input",r),{compactSize:w}=md(p,h),x=Eo(N=>{var T;return(T=a??w)!==null&&T!==void 0?T:N}),E=u.useRef(null),R=N=>{N!=null&&N.target&&N.type==="click"&&f&&f(N.target.value,N,{source:"clear"}),v==null||v(N)},O=N=>{var T;document.activeElement===((T=E.current)===null||T===void 0?void 0:T.input)&&N.preventDefault()},I=N=>{var T,B;f&&f((B=(T=E.current)===null||T===void 0?void 0:T.input)===null||B===void 0?void 0:B.value,N,{source:"input"})},A=N=>{m.current||c||I(N)},M=typeof l=="boolean"?u.createElement(lx,null):null,z=`${p}-button`;let _;const H=l||{},F=H.type&&H.type.__ANT_BUTTON===!0;F||H.type==="button"?_=fs(H,Object.assign({onMouseDown:O,onClick:N=>{var T,B;(B=(T=H==null?void 0:H.props)===null||T===void 0?void 0:T.onClick)===null||B===void 0||B.call(T,N),I(N)},key:"enterButton"},F?{className:z,size:x}:{})):_=u.createElement(wr,{className:z,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:O,onClick:I,loading:c,icon:M},l),s&&(_=[_,fs(s,{key:"addonAfter"})]);const P=G(p,{[`${p}-rtl`]:h==="rtl",[`${p}-${x}`]:!!x,[`${p}-with-button`]:!!l},o),$=N=>{m.current=!0,g==null||g(N)},L=N=>{m.current=!1,y==null||y(N)};return u.createElement(Ed,Object.assign({ref:Ur(E,t),onPressEnter:A},b,{size:x,onCompositionStart:$,onCompositionEnd:L,prefixCls:C,addonAfter:_,suffix:i,onChange:R,className:P,disabled:d}))});var F5=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,z5=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],jf={},hr;function j5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&jf[n])return jf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=z5.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(jf[n]=s),s}function D5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hr||(hr=document.createElement("textarea"),hr.setAttribute("tab-index","-1"),hr.setAttribute("aria-hidden","true"),document.body.appendChild(hr)),e.getAttribute("wrap")?hr.setAttribute("wrap",e.getAttribute("wrap")):hr.removeAttribute("wrap");var o=j5(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;hr.setAttribute("style","".concat(s,";").concat(F5)),hr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=hr.scrollHeight;if(l==="border-box"?v+=i:l==="content-box"&&(v-=a),n!==null||r!==null){hr.value=" ";var g=hr.scrollHeight-a;n!==null&&(c=g*n,l==="border-box"&&(c=c+a+i),v=Math.max(c,v)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=v>d?"":"hidden",v=Math.min(d,v))}var y={height:v,overflowY:f,resize:"none"};return c&&(y.minHeight=c),d&&(y.maxHeight=d),y}var B5=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Df=0,Bf=1,kf=2,k5=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var v=at(n,B5),g=ar(o,{value:a,postState:function(W){return W??""}}),y=V(g,2),b=y[0],S=y[1],h=function(W){S(W.target.value),f==null||f(W)},m=u.useRef();u.useImperativeHandle(t,function(){return{textArea:m.current}});var p=u.useMemo(function(){return i&&Ae(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=V(p,2),w=C[0],x=C[1],E=!!i,R=function(){try{if(document.activeElement===m.current){var W=m.current,U=W.selectionStart,ee=W.selectionEnd,q=W.scrollTop;m.current.setSelectionRange(U,ee),m.current.scrollTop=q}}catch{}},O=u.useState(kf),I=V(O,2),A=I[0],M=I[1],z=u.useState(),_=V(z,2),H=_[0],F=_[1],P=function(){M(Df)};zt(function(){E&&P()},[a,w,x,E]),zt(function(){if(A===Df)M(Bf);else if(A===Bf){var k=D5(m.current,!1,w,x);M(kf),F(k)}else R()},[A]);var $=u.useRef(),L=function(){xt.cancel($.current)},N=function(W){A===kf&&(l==null||l(W),i&&(L(),$.current=xt(function(){P()})))};u.useEffect(function(){return L},[]);var T=E?H:null,B=D(D({},c),T);return(A===Df||A===Bf)&&(B.overflowY="hidden",B.overflowX="hidden"),u.createElement(Dr,{onResize:N,disabled:!(i||l)},u.createElement("textarea",be({},v,{ref:m,style:B,className:G(r,s,j({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:h})))}),H5=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],V5=K.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,y=g===void 0?"rc-textarea":g,b=e.showCount,S=e.count,h=e.className,m=e.style,p=e.disabled,C=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,R=e.readOnly,O=at(e,H5),I=ar(r,{value:o,defaultValue:r}),A=V(I,2),M=A[0],z=A[1],_=M==null?"":String(M),H=K.useState(!1),F=V(H,2),P=F[0],$=F[1],L=K.useRef(!1),N=K.useState(null),T=V(N,2),B=T[0],k=T[1],W=u.useRef(null),U=u.useRef(null),ee=function(){var Ce;return(Ce=U.current)===null||Ce===void 0?void 0:Ce.textArea},q=function(){ee().focus()};u.useImperativeHandle(t,function(){var xe;return{resizableTextArea:U.current,focus:q,blur:function(){ee().blur()},nativeElement:((xe=W.current)===null||xe===void 0?void 0:xe.nativeElement)||ee()}}),u.useEffect(function(){$(function(xe){return!p&&xe})},[p]);var ae=K.useState(null),ce=V(ae,2),ne=ce[0],Q=ce[1];K.useEffect(function(){if(ne){var xe;(xe=ee()).setSelectionRange.apply(xe,ye(ne))}},[ne]);var te=zx(S,b),ie=(n=te.max)!==null&&n!==void 0?n:c,Y=Number(ie)>0,oe=te.strategy(_),fe=!!ie&&oe>ie,Pe=function(Ce,He){var Be=He;!L.current&&te.exceedFormatter&&te.max&&te.strategy(He)>te.max&&(Be=te.exceedFormatter(He,{max:te.max}),He!==Be&&Q([ee().selectionStart||0,ee().selectionEnd||0])),z(Be),Ic(Ce.currentTarget,Ce,l,Be)},me=function(Ce){L.current=!0,d==null||d(Ce)},le=function(Ce){L.current=!1,Pe(Ce,Ce.currentTarget.value),f==null||f(Ce)},ve=function(Ce){Pe(Ce,Ce.target.value)},se=function(Ce){var He=O.onPressEnter,Be=O.onKeyDown;Ce.key==="Enter"&&He&&He(Ce),Be==null||Be(Ce)},Ee=function(Ce){$(!0),a==null||a(Ce)},Ne=function(Ce){$(!1),i==null||i(Ce)},Se=function(Ce){z(""),q(),Ic(ee(),Ce,l)},Fe=v,pe;te.show&&(te.showFormatter?pe=te.showFormatter({value:_,count:oe,maxLength:ie}):pe="".concat(oe).concat(Y?" / ".concat(ie):""),Fe=K.createElement(K.Fragment,null,Fe,K.createElement("span",{className:G("".concat(y,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},pe)));var rt=function(Ce){var He;E==null||E(Ce),(He=ee())!==null&&He!==void 0&&He.style.height&&k(!0)},De=!O.autoSize&&!b&&!s;return K.createElement(Fx,{ref:W,value:_,allowClear:s,handleReset:Se,suffix:Fe,prefixCls:y,classNames:D(D({},w),{},{affixWrapper:G(w==null?void 0:w.affixWrapper,j(j({},"".concat(y,"-show-count"),b),"".concat(y,"-textarea-allow-clear"),s))}),disabled:p,focused:P,className:G(h,fe&&"".concat(y,"-out-of-range")),style:D(D({},m),B&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:C,readOnly:R},K.createElement(k5,be({},O,{maxLength:c,onKeyDown:se,onChange:ve,onFocus:Ee,onBlur:Ne,onCompositionStart:me,onCompositionEnd:le,className:G(w==null?void 0:w.textarea),style:D(D({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:p,prefixCls:y,onResize:rt,ref:U,readOnly:R})))}),W5=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 U5=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:s,allowClear:c,classNames:d,rootClassName:f,className:v,style:g,styles:y,variant:b}=e,S=W5(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:h,direction:m,textArea:p}=u.useContext(ct),C=Eo(i),w=u.useContext(La),x=l??w,{status:E,hasFeedback:R,feedbackIcon:O}=u.useContext(bo),I=bd(E,s),A=u.useRef(null);u.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=A.current)===null||N===void 0?void 0:N.resizableTextArea,focus:T=>{var B,k;h5((k=(B=A.current)===null||B===void 0?void 0:B.resizableTextArea)===null||k===void 0?void 0:k.textArea,T)},blur:()=>{var T;return(T=A.current)===null||T===void 0?void 0:T.blur()}}});const M=h("input",o),z=ka(M),[_,H,F]=jg(M,z),[P,$]=_g("textArea",b,a),L=jx(c??(p==null?void 0:p.allowClear));return _(u.createElement(V5,Object.assign({autoComplete:p==null?void 0:p.autoComplete},S,{style:Object.assign(Object.assign({},p==null?void 0:p.style),g),styles:Object.assign(Object.assign({},p==null?void 0:p.styles),y),disabled:x,allowClear:L,className:G(F,z,v,f,p==null?void 0:p.className),classNames:Object.assign(Object.assign(Object.assign({},d),p==null?void 0:p.classNames),{textarea:G({[`${M}-sm`]:C==="small",[`${M}-lg`]:C==="large"},H,d==null?void 0:d.textarea,(n=p==null?void 0:p.classNames)===null||n===void 0?void 0:n.textarea),variant:G({[`${M}-${P}`]:$},Oc(M,I)),affixWrapper:G(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:m==="rtl",[`${M}-affix-wrapper-sm`]:C==="small",[`${M}-affix-wrapper-lg`]:C==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},H)}),prefixCls:M,suffix:R&&u.createElement("span",{className:`${M}-textarea-suffix`},O),ref:A})))}),Un=Ed;Un.Group=m5;Un.Search=A5;Un.TextArea=U5;Un.Password=N5;Un.OTP=E5;function _b(e){return["small","middle","large"].includes(e)}function nk(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Bx=["wrap","nowrap","wrap-reverse"],kx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Hx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],K5=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Bx.includes(n)}},G5=(e,t)=>{const n={};return Hx.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},q5=(e,t)=>{const n={};return kx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function Q5(e,t){return G(Object.assign(Object.assign(Object.assign({},K5(e,t)),G5(e,t)),q5(e,t)))}const X5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Y5=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},J5=e=>{const{componentCls:t}=e,n={};return Bx.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},Z5=e=>{const{componentCls:t}=e,n={};return Hx.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},e6=e=>{const{componentCls:t}=e,n={};return kx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},t6=()=>({}),n6=Pr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Ut(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[X5(o),Y5(o),J5(o),Z5(o),e6(o)]},t6,{resetStyle:!1});var r6=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 o6=K.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:i,gap:l,children:s,vertical:c=!1,component:d="div"}=e,f=r6(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:g,getPrefixCls:y}=K.useContext(ct),b=y("flex",n),[S,h,m]=n6(b),p=c??(v==null?void 0:v.vertical),C=G(o,r,v==null?void 0:v.className,b,h,m,Q5(b,e),{[`${b}-rtl`]:g==="rtl",[`${b}-gap-${l}`]:_b(l),[`${b}-vertical`]:p}),w=Object.assign(Object.assign({},v==null?void 0:v.style),a);return i&&(w.flex=i),l&&!_b(l)&&(w.gap=l),S(K.createElement(d,Object.assign({ref:t,className:C,style:w},cr(f,["justify","wrap","align"])),s))});function a6(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,a=`${o}-hidden`,[i,l]=u.useState(!1);zt(()=>{t!==0&&l(!0)},[t!==0]);const s=Math.max(Math.min(t,100),0),c=100,d=c/5,f=c/2-d/2,v=f*2*Math.PI,g=(y,b)=>u.createElement("circle",{className:G(y,`${r}-circle`),r:f,cx:"50",cy:"50",strokeWidth:d,style:b});return i?u.createElement("span",{className:G(o,`${r}-progress`,s<=0&&a)},u.createElement("svg",{viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},g(`${r}-circle-bg`),g("",{strokeDasharray:`${v*s/100} ${v*(100-s)/100}`,strokeDashoffset:`${v/4}`}))):null}function i6(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:G(o,n>0&&a)},u.createElement("span",{className:G(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>u.createElement("i",{className:`${t}-dot-item`,key:i})))),u.createElement(a6,{prefixCls:t,percent:n}))}function l6(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&u.isValidElement(n)?fs(n,{className:G(n.props.className,o),percent:r}):u.createElement(i6,{prefixCls:t,percent:r})}const s6=new ht("antSpinMove",{to:{opacity:1}}),u6=new ht("antRotate",{to:{transform:"rotate(405deg)"}}),c6=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},to(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-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${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",top:0,insetInlineStart: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:s6,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:u6,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`]:{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`]:{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"}})}},d6=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},f6=Pr("Spin",e=>{const t=Ut(e,{spinDotDefault:e.colorTextDescription});return[c6(t)]},d6),v6=200,Tb=[[30,.05],[70,.03],[96,.01]];function m6(e,t){const[n,r]=u.useState(0),o=u.useRef(),a=t==="auto";return u.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const l=100-i;for(let s=0;s<Tb.length;s+=1){const[c,d]=Tb[s];if(i<=c)return i+l*d}return i})},v6)),()=>{clearInterval(o.current)}),[a,e]),a?n:t}var p6=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 Vx;function g6(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Wx=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:s,style:c,children:d,fullscreen:f=!1,indicator:v,percent:g}=e,y=p6(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b}=u.useContext(ct),S=b("spin",t),[h,m,p]=f6(S),[C,w]=u.useState(()=>n&&!g6(n,r)),x=m6(C,g);u.useEffect(()=>{if(n){const _=l5(r,()=>{w(!0)});return _(),()=>{var H;(H=_==null?void 0:_.cancel)===null||H===void 0||H.call(_)}}w(!1)},[r,n]);const E=u.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:R,spin:O}=u.useContext(ct),I=G(S,O==null?void 0:O.className,{[`${S}-sm`]:i==="small",[`${S}-lg`]:i==="large",[`${S}-spinning`]:C,[`${S}-show-text`]:!!l,[`${S}-rtl`]:R==="rtl"},o,!f&&a,m,p),A=G(`${S}-container`,{[`${S}-blur`]:C}),M=Object.assign(Object.assign({},O==null?void 0:O.style),c),z=u.createElement("div",Object.assign({},y,{style:M,className:I,"aria-live":"polite","aria-busy":C}),u.createElement(l6,{prefixCls:S,indicator:v??Vx,percent:x}),l&&(E||f)?u.createElement("div",{className:`${S}-text`},l):null);return h(E?u.createElement("div",Object.assign({},y,{className:G(`${S}-nested-loading`,s,m,p)}),C&&u.createElement("div",{key:"loading"},z),u.createElement("div",{className:A,key:"container"},d)):f?u.createElement("div",{className:G(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:C},a,m,p)},z):z)};Wx.setDefaultIndicator=e=>{Vx=e};var h6=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 y6=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:l,footer:s}=e,c=h6(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=u.useContext(ct),f=d(),v=t||d("modal"),g=ka(f),[y,b,S]=ME(v,g),h=`${v}-confirm`;let m={};return a?m={closable:o??!1,title:"",footer:"",children:u.createElement(LE,Object.assign({},e,{prefixCls:v,confirmPrefixCls:h,rootPrefixCls:f,content:l}))}:m={closable:o??!0,title:i,footer:s!==null&&u.createElement(RE,Object.assign({},e)),children:l},y(u.createElement(mE,Object.assign({prefixCls:v,className:G(b,`${v}-pure-panel`,a&&h,a&&`${h}-${a}`,n,S,g)},c,{closeIcon:xE(v,r),closable:o},m)))},b6=VE(y6);function Ux(e){return Ms(jE(e))}const Cn=NE;Cn.useModal=jF;Cn.info=function(t){return Ms(DE(t))};Cn.success=function(t){return Ms(BE(t))};Cn.error=function(t){return Ms(kE(t))};Cn.warning=Ux;Cn.warn=Ux;Cn.confirm=function(t){return Ms(HE(t))};Cn.destroyAll=function(){for(;Sa.length;){const t=Sa.pop();t&&t()}};Cn.config=NF;Cn._InternalPanelDoNotUseOrYouWillBeFired=b6;function Kx(e,t){return function(){return e.apply(t,arguments)}}const{toString:S6}=Object.prototype,{getPrototypeOf:Dg}=Object,xd=(e=>t=>{const n=S6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kr=e=>(e=e.toLowerCase(),t=>xd(t)===e),Rd=e=>t=>typeof t===e,{isArray:Yi}=Array,hs=Rd("undefined");function C6(e){return e!==null&&!hs(e)&&e.constructor!==null&&!hs(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gx=Kr("ArrayBuffer");function w6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gx(e.buffer),t}const E6=Rd("string"),Er=Rd("function"),qx=Rd("number"),$d=e=>e!==null&&typeof e=="object",x6=e=>e===!0||e===!1,ku=e=>{if(xd(e)!=="object")return!1;const t=Dg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R6=Kr("Date"),$6=Kr("File"),O6=Kr("Blob"),P6=Kr("FileList"),I6=e=>$d(e)&&Er(e.pipe),_6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=xd(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},T6=Kr("URLSearchParams"),[M6,N6,L6,A6]=["ReadableStream","Request","Response","Headers"].map(Kr),F6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Yi(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function Qx(e,t){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 Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yx=e=>!hs(e)&&e!==Xx;function Wm(){const{caseless:e}=Yx(this)&&this||{},t={},n=(r,o)=>{const a=e&&Qx(t,o)||o;ku(t[a])&&ku(r)?t[a]=Wm(t[a],r):ku(r)?t[a]=Wm({},r):Yi(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fs(arguments[r],n);return t}const z6=(e,t,n,{allOwnKeys:r}={})=>(Fs(t,(o,a)=>{n&&Er(o)?e[a]=Kx(o,n):e[a]=o},{allOwnKeys:r}),e),j6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D6=(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)},B6=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Dg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},k6=(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},H6=e=>{if(!e)return null;if(Yi(e))return e;let t=e.length;if(!qx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dg(Uint8Array)),W6=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},U6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},K6=Kr("HTMLFormElement"),G6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Mb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q6=Kr("RegExp"),Jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fs(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},Q6=e=>{Jx(e,(t,n)=>{if(Er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Er(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+"'")})}})},X6=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Yi(e)?r(e):r(String(e).split(t)),n},Y6=()=>{},J6=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Hf="abcdefghijklmnopqrstuvwxyz",Nb="0123456789",Zx={DIGIT:Nb,ALPHA:Hf,ALPHA_DIGIT:Hf+Hf.toUpperCase()+Nb},Z6=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eB(e){return!!(e&&Er(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tB=e=>{const t=new Array(10),n=(r,o)=>{if($d(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=Yi(r)?[]:{};return Fs(r,(i,l)=>{const s=n(i,o+1);!hs(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},nB=Kr("AsyncFunction"),rB=e=>e&&($d(e)||Er(e))&&Er(e.then)&&Er(e.catch),Z={isArray:Yi,isArrayBuffer:Gx,isBuffer:C6,isFormData:_6,isArrayBufferView:w6,isString:E6,isNumber:qx,isBoolean:x6,isObject:$d,isPlainObject:ku,isReadableStream:M6,isRequest:N6,isResponse:L6,isHeaders:A6,isUndefined:hs,isDate:R6,isFile:$6,isBlob:O6,isRegExp:q6,isFunction:Er,isStream:I6,isURLSearchParams:T6,isTypedArray:V6,isFileList:P6,forEach:Fs,merge:Wm,extend:z6,trim:F6,stripBOM:j6,inherits:D6,toFlatObject:B6,kindOf:xd,kindOfTest:Kr,endsWith:k6,toArray:H6,forEachEntry:W6,matchAll:U6,isHTMLForm:K6,hasOwnProperty:Mb,hasOwnProp:Mb,reduceDescriptors:Jx,freezeMethods:Q6,toObjectSet:X6,toCamelCase:G6,noop:Y6,toFiniteNumber:J6,findKey:Qx,global:Xx,isContextDefined:Yx,ALPHABET:Zx,generateString:Z6,isSpecCompliantForm:eB,toJSONObject:tB,isAsyncFn:nB,isThenable:rB};function nt(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)}Z.inherits(nt,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:Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eR=nt.prototype,tR={};["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=>{tR[e]={value:e}});Object.defineProperties(nt,tR);Object.defineProperty(eR,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,a)=>{const i=Object.create(eR);return Z.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),nt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const oB=null;function Um(e){return Z.isPlainObject(e)||Z.isArray(e)}function nR(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Lb(e,t,n){return e?e.concat(t).map(function(o,a){return o=nR(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function aB(e){return Z.isArray(e)&&!e.some(Um)}const iB=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Od(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!Z.isUndefined(S[b])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Z.isDate(y))return y.toISOString();if(!s&&Z.isBlob(y))throw new nt("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(y)||Z.isTypedArray(y)?s&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,b,S){let h=y;if(y&&!S&&typeof y=="object"){if(Z.endsWith(b,"{}"))b=r?b:b.slice(0,-2),y=JSON.stringify(y);else if(Z.isArray(y)&&aB(y)||(Z.isFileList(y)||Z.endsWith(b,"[]"))&&(h=Z.toArray(y)))return b=nR(b),h.forEach(function(p,C){!(Z.isUndefined(p)||p===null)&&t.append(i===!0?Lb([b],C,a):i===null?b:b+"[]",c(p))}),!1}return Um(y)?!0:(t.append(Lb(S,b,a),c(y)),!1)}const f=[],v=Object.assign(iB,{defaultVisitor:d,convertValue:c,isVisitable:Um});function g(y,b){if(!Z.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(y),Z.forEach(y,function(h,m){(!(Z.isUndefined(h)||h===null)&&o.call(t,h,Z.isString(m)?m.trim():m,b,v))===!0&&g(h,b?b.concat(m):[m])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ab(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bg(e,t){this._pairs=[],e&&Od(e,this,t)}const rR=Bg.prototype;rR.append=function(t,n){this._pairs.push([t,n])};rR.toString=function(t){const n=t?function(r){return t.call(this,r,Ab)}:Ab;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oR(e,t,n){if(!t)return e;const r=n&&n.encode||lB,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Bg(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Fb{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){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const aR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sB=typeof URLSearchParams<"u"?URLSearchParams:Bg,uB=typeof FormData<"u"?FormData:null,cB=typeof Blob<"u"?Blob:null,dB={isBrowser:!0,classes:{URLSearchParams:sB,FormData:uB,Blob:cB},protocols:["http","https","file","blob","url","data"]},kg=typeof window<"u"&&typeof document<"u",fB=(e=>kg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mB=kg&&window.location.href||"http://localhost",pB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kg,hasStandardBrowserEnv:fB,hasStandardBrowserWebWorkerEnv:vB,origin:mB},Symbol.toStringTag,{value:"Module"})),Hr={...pB,...dB};function gB(e,t){return Od(e,new Hr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Hr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function hB(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yB(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function iR(e){function t(n,r,o,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),s=a>=n.length;return i=!i&&Z.isArray(o)?o.length:i,s?(Z.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Z.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Z.isArray(o[i])&&(o[i]=yB(o[i])),!l)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(hB(r),o,n,0)}),n}return null}function bB(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zs={transitional:aR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(iR(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gB(t,this.formSerializer).toString();if((l=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Od(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),bB(t)):t}],transformResponse:[function(t){const n=this.transitional||zs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?nt.from(l,nt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hr.classes.FormData,Blob:Hr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{zs.headers[e]={}});const SB=Z.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"]),CB=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&SB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zb=Symbol("internals");function ml(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Hu):String(e)}function wB(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 EB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vf(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function xB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RB(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class Xn{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,c){const d=ml(s);if(!d)throw new Error("header name must be a non-empty string");const f=Z.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||s]=Hu(l))}const i=(l,s)=>Z.forEach(l,(c,d)=>a(c,d,s));if(Z.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(Z.isString(t)&&(t=t.trim())&&!EB(t))i(CB(t),n);else if(Z.isHeaders(t))for(const[l,s]of t.entries())a(s,l,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=ml(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return wB(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ml(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=ml(i),i){const l=Z.findKey(r,i);l&&(!n||Vf(r,r[l],l,n))&&(delete r[l],o=!0)}}return Z.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||Vf(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,a)=>{const i=Z.findKey(r,a);if(i){n[i]=Hu(o),delete n[a];return}const l=t?xB(a):String(a).trim();l!==a&&delete n[a],n[l]=Hu(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.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(`
`)}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[zb]=this[zb]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=ml(i);r[l]||(RB(o,i),r[l]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Xn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Xn);function Wf(e,t){const n=this||zs,r=t||n,o=Xn.from(r.headers);let a=r.data;return Z.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function lR(e){return!!(e&&e.__CANCEL__)}function Ji(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(Ji,nt,{__CANCEL__:!0});function sR(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $B(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),d=r[a];i||(i=c),n[o]=s,r[o]=c;let f=a,v=0;for(;f!==o;)v+=n[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const g=d&&c-d;return g?Math.round(v*1e3/g):void 0}}function PB(e,t){let n=0;const r=1e3/t;let o=null;return function(){const i=this===!0,l=Date.now();if(i||l-n>r)return o&&(clearTimeout(o),o=null),n=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}const _c=(e,t,n=3)=>{let r=0;const o=OB(50,250);return PB(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-r,c=o(s),d=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a,lengthComputable:l!=null};f[t?"download":"upload"]=!0,e(f)},n)},IB=Hr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=Z.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),_B=Hr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&i.push("path="+r),Z.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function MB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uR(e,t){return e&&!TB(t)?MB(e,t):t}const jb=e=>e instanceof Xn?{...e}:e;function Aa(e,t){t=t||{};const n={};function r(c,d,f){return Z.isPlainObject(c)&&Z.isPlainObject(d)?Z.merge.call({caseless:f},c,d):Z.isPlainObject(d)?Z.merge({},d):Z.isArray(d)?d.slice():d}function o(c,d,f){if(Z.isUndefined(d)){if(!Z.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function a(c,d){if(!Z.isUndefined(d))return r(void 0,d)}function i(c,d){if(Z.isUndefined(d)){if(!Z.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d)=>o(jb(c),jb(d),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=s[d]||o,v=f(e[d],t[d],d);Z.isUndefined(v)&&f!==l||(n[d]=v)}),n}const cR=e=>{const t=Aa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Xn.from(i),t.url=oR(uR(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(Z.isFormData(n)){if(Hr.hasStandardBrowserEnv||Hr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[c,...d]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Hr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&IB(t.url))){const c=o&&a&&_B.read(a);c&&i.set(o,c)}return t},NB=typeof XMLHttpRequest<"u",LB=NB&&function(e){return new Promise(function(n,r){const o=cR(e);let a=o.data;const i=Xn.from(o.headers).normalize();let{responseType:l}=o,s;function c(){o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const g=Xn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};sR(function(h){n(h),c()},function(h){r(h),c()},b),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new nt("Request aborted",nt.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||aR;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new nt(y,b.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,o,d)),d=null},a===void 0&&i.setContentType(null),"setRequestHeader"in d&&Z.forEach(i.toJSON(),function(y,b){d.setRequestHeader(b,y)}),Z.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",_c(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",_c(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=g=>{d&&(r(!g||g.type?new Ji(null,e,d):g),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const v=$B(o.url);if(v&&Hr.protocols.indexOf(v)===-1){r(new nt("Unsupported protocol "+v+":",nt.ERR_BAD_REQUEST,e));return}d.send(a||null)})},AB=(e,t)=>{let n=new AbortController,r;const o=function(s){if(!r){r=!0,i();const c=s instanceof Error?s:this.reason;n.abort(c instanceof nt?c:new Ji(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{o(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",o):s.unsubscribe(o))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},FB=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},zB=async function*(e,t,n){for await(const r of e)yield*FB(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Db=(e,t,n,r,o)=>{const a=zB(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:s,value:c}=await a.next();if(s){l.close(),r();return}let d=c.byteLength;n&&n(i+=d),l.enqueue(new Uint8Array(c))},cancel(l){return r(l),a.return()}},{highWaterMark:2})},Bb=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Pd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",dR=Pd&&typeof ReadableStream=="function",Km=Pd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jB=dR&&(()=>{let e=!1;const t=new Request(Hr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),kb=64*1024,Gm=dR&&!!(()=>{try{return Z.isReadableStream(new Response("").body)}catch{}})(),Tc={stream:Gm&&(e=>e.body)};Pd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Tc[t]&&(Tc[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,r)})})})(new Response);const DB=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await Km(e)).byteLength},BB=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??DB(t)},kB=Pd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:v}=cR(e);c=c?(c+"").toLowerCase():"text";let[g,y]=o||a||i?AB([o,a],i):[],b,S;const h=()=>{!b&&setTimeout(()=>{g&&g.unsubscribe()}),b=!0};let m;try{if(s&&jB&&n!=="get"&&n!=="head"&&(m=await BB(d,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),E;Z.isFormData(r)&&(E=x.headers.get("content-type"))&&d.setContentType(E),x.body&&(r=Db(x.body,kb,Bb(m,_c(s)),null,Km))}Z.isString(f)||(f=f?"cors":"omit"),S=new Request(t,{...v,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let p=await fetch(S);const C=Gm&&(c==="stream"||c==="response");if(Gm&&(l||C)){const x={};["status","statusText","headers"].forEach(R=>{x[R]=p[R]});const E=Z.toFiniteNumber(p.headers.get("content-length"));p=new Response(Db(p.body,kb,l&&Bb(E,_c(l,!0)),C&&h,Km),x)}c=c||"text";let w=await Tc[Z.findKey(Tc,c)||"text"](p,e);return!C&&h(),y&&y(),await new Promise((x,E)=>{sR(x,E,{data:w,headers:Xn.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(p){throw h(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,S),{cause:p.cause||p}):nt.from(p,p&&p.code,e,S)}}),qm={http:oB,xhr:LB,fetch:kB};Z.forEach(qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hb=e=>`- ${e}`,HB=e=>Z.isFunction(e)||e===null||e===!1,fR={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let i;if(r=n,!HB(n)&&(r=qm[(i=String(n)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+a]=r}if(!r){const a=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
`+a.map(Hb).join(`
`):" "+Hb(a[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:qm};function Uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function Vb(e){return Uf(e),e.headers=Xn.from(e.headers),e.data=Wf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fR.getAdapter(e.adapter||zs.adapter)(e).then(function(r){return Uf(e),r.data=Wf.call(e,e.transformResponse,r),r.headers=Xn.from(r.headers),r},function(r){return lR(r)||(Uf(e),r&&r.response&&(r.response.data=Wf.call(e,e.transformResponse,r.response),r.response.headers=Xn.from(r.response.headers))),Promise.reject(r)})}const vR="1.7.2",Hg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wb={};Hg.transitional=function(t,n,r){function o(a,i){return"[Axios v"+vR+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new nt(o(i," has been removed"+(n?" in "+n:"")),nt.ERR_DEPRECATED);return n&&!Wb[i]&&(Wb[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function VB(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const l=e[a],s=l===void 0||i(l,a,e);if(s!==!0)throw new nt("option "+a+" must be "+s,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+a,nt.ERR_BAD_OPTION)}}const Qm={assertOptions:VB,validators:Hg},Io=Qm.validators;class Ra{constructor(t){this.defaults=t,this.interceptors={request:new Fb,response:new Fb}}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 a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Aa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Qm.assertOptions(r,{silentJSONParsing:Io.transitional(Io.boolean),forcedJSONParsing:Io.transitional(Io.boolean),clarifyTimeoutError:Io.transitional(Io.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:Qm.assertOptions(o,{encode:Io.function,serialize:Io.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Z.merge(a.common,a[n.method]);a&&Z.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Xn.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(s=s&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let d,f=0,v;if(!s){const y=[Vb.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),v=y.length,d=Promise.resolve(n);f<v;)d=d.then(y[f++],y[f++]);return d}v=l.length;let g=n;for(f=0;f<v;){const y=l[f++],b=l[f++];try{g=y(g)}catch(S){b.call(this,S);break}}try{d=Vb.call(this,g)}catch(y){return Promise.reject(y)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Aa(this.defaults,t);const n=uR(t.baseURL,t.url);return oR(n,t.params,t.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(t){Ra.prototype[t]=function(n,r){return this.request(Aa(r||{},{method:t,url:n,data:(r||{}).data}))}});Z.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(Aa(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ra.prototype[t]=n(),Ra.prototype[t+"Form"]=n(!0)});class Vg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Ji(a,i,l),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)}static source(){let t;return{token:new Vg(function(o){t=o}),cancel:t}}}function WB(e){return function(n){return e.apply(null,n)}}function UB(e){return Z.isObject(e)&&e.isAxiosError===!0}const Xm={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};Object.entries(Xm).forEach(([e,t])=>{Xm[t]=e});function mR(e){const t=new Ra(e),n=Kx(Ra.prototype.request,t);return Z.extend(n,Ra.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mR(Aa(e,o))},n}const rn=mR(zs);rn.Axios=Ra;rn.CanceledError=Ji;rn.CancelToken=Vg;rn.isCancel=lR;rn.VERSION=vR;rn.toFormData=Od;rn.AxiosError=nt;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=WB;rn.isAxiosError=UB;rn.mergeConfig=Aa;rn.AxiosHeaders=Xn;rn.formToJSON=e=>iR(Z.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=fR.getAdapter;rn.HttpStatusCode=Xm;rn.default=rn;const pR=window.location.protocol+"//universitysolutions.in/collportal";console.log(pR);const vo=rn.create({baseURL:pR,headers:{"X-Auth-Origin":"UNICLARE"}});vo.interceptors.request.use(function(e){const t=localStorage.getItem("uniclare-token");return t&&(e.headers.Authorization=t),e},function(e){return Promise.reject(e)});const mn=(e,t)=>{console.log(e),e.toLowerCase()=="error"?Cn.error({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#FF4D4F",borderColor:"#FF4D4F"}}}):e.toLowerCase()=="success"?Cn.success({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#52c41a",borderColor:"#52c41a"}}}):e.toLowerCase()=="info"?Cn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}}):e.toLowerCase()=="warning"?Cn.warning({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#faad14",borderColor:"#faad14"}}}):Cn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}})},KB=()=>async(e,t)=>{try{const n=await vo.post("/app.php?a=getUnivDetails");n.data.error_code===0?(localStorage.setItem("uniclare-token",n.data.data.token),e({type:"USER_INFO",payload:n.data.data.token}),navigate("/")):e({type:"CLEAR_USER_INFO",payload:{}})}catch(n){mn("error",n.message)}},GB=(e,t)=>async(n,r)=>{try{const o=r();let a=localStorage.getItem("dbname"),i=localStorage.getItem("type");n({type:"SET_BTN_LOADER"});const l=await vo.post("/app.php?a=uniclareLogin&db="+a+"&type="+i,t);n({type:"UNSET_BTN_LOADER"}),l.data.error_code===0?(l.data.data.users.length===1&&l.data.data.users[0].fusertype!=="A"&&(localStorage.setItem("uniclare-token",l.data.data.token),localStorage.setItem("userInfo",JSON.stringify(l.data.data.userInfo)),n({type:"USER_INFO",payload:l.data.data.userInfo})),n({type:"USERS",payload:l.data.data.users}),n({type:"SET_ERROR_MSG",payload:""})):(mn("info",l.data.data.msg),n({type:"SET_ERROR_MSG",payload:l.data.data.msg}))}catch(o){mn("error",o.message)}},rk=e=>async(t,n)=>{localStorage.removeItem("uniclare-token");const r=localStorage.getItem("uniclare-rootpath");localStorage.removeItem("uniclare-token"),localStorage.removeItem("userInfo"),e(r),t({type:"LOGOUT_USER",payload:[]})},qB=e=>async(t,n)=>{try{const r=localStorage.getItem("uniclare-rootpath");t({type:"SET_LOADER"});const o=await vo.get("app.php?a=isLoggedIn");if(t({type:"UNSET_LOADER"}),typeof o.data!="object"){localStorage.removeItem("uniclare-token"),localStorage.removeItem("userInfo"),mn("error","Token Expired ! Please Login Again"),e(r);return}}catch(r){mn("error",r.message);return}},QB=(e,t)=>async(n,r)=>{try{const o=r();let a=localStorage.getItem("dbname"),i=localStorage.getItem("type");n({type:"SET_LOADER"});const l=await vo.post("/app.php?a=uniclareAdminLogin&db="+a+"&type="+i,t);n({type:"UNSET_LOADER"}),l.data.error_code===0?(l.data.data.users.length===1&&(localStorage.setItem("uniclare-token",l.data.data.token),localStorage.setItem("userInfo",JSON.stringify(l.data.data.userInfo)),n({type:"USER_INFO",payload:l.data.data.userInfo})),n({type:"USERS",payload:l.data.data.users}),n({type:"SET_ERROR_MSG",payload:""})):(mn("info",l.data.data.msg),n({type:"SET_ERROR_MSG",payload:l.data.data.msg}))}catch(o){mn("error",o.message)}};var XB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},YB=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:XB}))},JB=u.forwardRef(YB),ZB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},e8=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:ZB}))},Ub=u.forwardRef(e8);const t8="/assets/098_logo-Cc_avybB.jpg",n8="/assets/Logisys-CUGyUsc1.png",r8=e=>{const t=u.useRef(null),n=u.useRef(null),[r,o]=u.useState({mobileno:"7353604921",password:"7353604921",usertype:"",otp:""}),[a,i]=u.useState([]),[l,s]=u.useState(!1),c=Es(),d=Da(),f=HP();u.useEffect(()=>{localStorage.setItem("type",d.pathname.split("/")[1]),localStorage.setItem("uniclare-rootpath",d.pathname),document.getElementById("univ-title").innerHTML=d.pathname.split("/")[1],d.pathname.split("/")[1]==="demo"?localStorage.setItem("univlogo",t8):localStorage.setItem("univlogo",n8),v()},[]),u.useEffect(()=>{var m;i(e.loginfo.users),((m=e.loginfo.users)==null?void 0:m.length)===1&&(o({...r,usertype:e.loginfo.users[0].fusertype}),e.loginfo.users[0].fusertype==="A"&&b())},[e.loginfo.users]);const v=async()=>{e.getUnivDetails()},g=async(m,p)=>{o(p==="usertype"?{...r,[p]:m}:{...r,[m.target.name]:m.target.value})},y=async(m,p)=>{if(e.loginfo.users!==void 0&&e.loginfo.users.length>1&&r.usertype===""||r.mobileno===""||r.password===""){mn("Warning","Please fill all the fields");return}r.usertype==="A"?await b():await e.handleLogin(c,r)},b=async()=>{try{f({type:"SET_BTN_LOADER"});const m=localStorage.getItem("dbname");let p=localStorage.getItem("type");const C=await vo.post("app.php?a=getAdminOTP&db="+m+"&type="+p,r);f({type:"UNSET_BTN_LOADER"}),C.data.error_code===0?s(!0):mn("error",C.data.data.msg)}catch(m){mn("error",m.message);return}},S=async()=>{if(r.otp===""){mn("warning","Please Enter OTP ");return}await e.handleAdminLogin(c,r)},h=(m,p)=>{p!=="continue"&&m.key==="Enter"?t.current.click():p==="continue"&&m.key==="Enter"&&n.current.click()};return X.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundImage:"url(https://img.freepik.com/premium-photo/abstract-blurred-empty-college-library-interior-space-blurry-classroom-with-bookshelves-by-defocused-effect-use-background-backdrop-book-shop-business-education-resources-concepts_505557-7370.jpg)",backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:[X.jsx(Cn,{title:"Enter OTP",open:l,width:400,footer:[X.jsx(wr,{size:"medium",type:"primary",danger:!0,onClick:()=>s(!1),children:"Cancel"},2),X.jsx(wr,{size:"medium",type:"primary",onClick:()=>S(),ref:n,children:"Continue"},1)],closable:!1,children:X.jsx(Un,{size:"large",style:{marginBottom:"10px"},prefix:X.jsx(Ub,{}),name:"otp",value:r.otp,maxLength:6,onChange:g,onKeyDown:m=>h(m,"continue")})}),X.jsxs(gs,{style:{width:400},children:[X.jsx("h2",{children:"Login"}),X.jsx("p",{children:"Sign in to your account"}),X.jsx("label",{children:"Mobile Number"}),X.jsx(Un,{size:"large",style:{marginBottom:"10px"},prefix:X.jsx(Ub,{}),name:"mobileno",value:r.mobileno,maxLength:10,onChange:g,onKeyDown:h}),X.jsx("label",{children:"Password"}),X.jsx(Un.Password,{size:"large",style:{marginBottom:"20px"},prefix:X.jsx(JB,{}),name:"password",value:r.password,onChange:g,onKeyDown:h}),(a==null?void 0:a.length)>1&&X.jsxs("div",{children:[X.jsx("label",{children:"Select Role"}),X.jsx(Wa,{placeholder:"Login as",value:r.usertype,options:e.loginfo.users.map((m,p)=>({key:p,value:m.fusertype,label:m.fdescpn})),style:{width:"100%",marginBottom:"20px"},onChange:m=>g(m,"usertype"),onKeyDown:h})]}),X.jsx(wr,{ref:t,type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:e.loader,onClick:()=>y(),children:(a==null?void 0:a.length)>1?"OK":"Login"}),X.jsx(pC,{to:"/register",children:"Click here to Register"})]})]})},o8=e=>({loginfo:e.loginfo,loader:e.loader.btnLoading}),Kf=Zp(o8,{handleLogin:GB,getUnivDetails:KB,handleAdminLogin:QB})(r8),a8=()=>X.jsx("div",{children:"NoPageFound"}),i8=()=>{const[e,t]=u.useState({usertype:"T",regno:"",name:"",dob:"",mobileNo:"",emailId:"",password:"",confirmPassword:"",mobOtp:"",emailOtp:"",otp:""}),[n,r]=u.useState([{value:"T",label:"Teacher"}]),[o,a]=u.useState(!1),[i,l]=u.useState(!0),[s,c]=u.useState(!0),[d,f]=u.useState(!1),v=localStorage.getItem("uniclare-rootpath"),g=localStorage.getItem("dbname"),y=Es(),b=(p,C)=>{C=="usertype"?t({...e,[C]:p}):t({...e,[p.target.name]:p.target.value})},S=async()=>{a(!0),await vo.get("/app.php?a=validateRegno&db="+g+"&usertype="+e.usertype+"&regno="+e.regno).then(p=>{p.data.error_code===0?(t({...e,mobileNo:p.data.data.fmobile,emailId:p.data.data.femail,name:p.data.data.fteachname,dob:p.data.data.fdob}),l(!1)):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))},h=async()=>{a(!0),await vo.post("/app.php?a=sendOtp&db="+g,e).then(p=>{p.data.error_code===0?(c(!1),f(!0)):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))},m=async()=>{a(!0),await vo.post("/app.php?a=registerUser&db="+g,e).then(p=>{p.data.error_code===0?(mn("success",p.data.data.msg),y(localStorage.getItem("uniclare-rootpath"))):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))};return X.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[X.jsxs(Cn,{title:"OTP Verification",centered:!0,open:d,footer:[X.jsx(wr,{onClick:()=>m(),loading:o,children:"Register"},"ok")],children:[X.jsx("label",{children:"Enter OTP"}),X.jsx(Un,{name:"otp",style:{marginBottom:"20px"},value:e.otp,maxLength:4,onChange:b})]}),X.jsxs(gs,{style:{width:400},children:[X.jsx("h4",{children:"Registration"}),X.jsx("p",{children:"Create your account"}),X.jsx("label",{children:"User Type"}),X.jsx(Wa,{disabled:!i&&!0,defaultValue:"teacher",name:"usertype",style:{width:"100%",marginBottom:"20px"},value:e.usertype,options:n,onChange:p=>b(p,"usertype")}),X.jsx("label",{children:"Teacher Code"}),X.jsx(Un,{disabled:!i&&!0,name:"regno",style:{marginBottom:"20px"},value:e.regno,maxLength:20,onChange:b}),i?X.jsx(wr,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>S(),children:"Validate"}):X.jsxs("div",{children:[X.jsxs(gs,{style:{marginBottom:"20px"},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},children:[X.jsx("span",{children:X.jsx("b",{children:"Name"})}),X.jsx("span",{children:e.name})]}),X.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[X.jsx("span",{children:X.jsx("b",{children:"Date of Birth"})}),X.jsx("span",{children:e.dob})]})]}),X.jsx("label",{children:"Mobile Number"}),X.jsx(Un,{name:"mobileNo",disabled:!0,style:{marginBottom:"20px"},value:e.mobileNo,maxLength:10}),X.jsx("label",{children:"Email ID"}),X.jsx(Un,{name:"emailId",disabled:!0,style:{marginBottom:"20px"},value:e.emailId}),X.jsx("label",{children:"Password"}),X.jsx(Un.Password,{name:"password",style:{marginBottom:"20px"},value:e.password,maxLength:32,onChange:b}),X.jsx("label",{children:"Confirm Password"}),X.jsx(Un.Password,{name:"confirmPassword",style:{marginBottom:"20px"},value:e.confirmPassword,maxLength:32,onChange:b}),s&&X.jsx(wr,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>h(),children:"Send OTP"})]}),"Already Registered ?",X.jsx(pC,{to:v,children:X.jsx("a",{children:"Click here"})})]})]})},l8=()=>X.jsxs(mC,{children:[X.jsx(pt,{path:"/dypatil",element:X.jsx(Kf,{})}),X.jsx(pt,{path:"/demo",element:X.jsx(Kf,{})}),X.jsx(pt,{path:"/acu",element:X.jsx(Kf,{})}),X.jsx(pt,{path:"/",element:X.jsx(Hv,{to:"404"})}),X.jsx(pt,{path:"404",element:X.jsx(a8,{})}),X.jsx(pt,{path:"*",element:X.jsx(Hv,{to:"404"})}),X.jsx(pt,{path:"register",element:X.jsx(i8,{})})]}),s8="modulepreload",u8=function(e){return"/"+e},Kb={},Dt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=u8(l),l in Kb)return;Kb[l]=!0;const s=l.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":s8,s||(d.as="script",d.crossOrigin=""),d.href=l,i&&d.setAttribute("nonce",i),document.head.appendChild(d),s)return new Promise((f,v)=>{d.addEventListener("load",f),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},c8={padding:50,background:"rgba(0, 0, 0, 0.05)",borderRadius:4},d8=X.jsx("div",{style:c8}),f8=()=>X.jsx($s,{theme:{components:{Spin:{colorPrimary:"#8231d3"}}},children:X.jsx(o6,{style:{height:"100vh",justifyContent:"center",alignItems:"center",position:"fixed",zIndex:1,backgroundColor:"#000",opacity:.8,width:"100%",textShadow:"none"},children:X.jsx(Wx,{tip:"Loading...",size:"large",children:d8})})}),v8=u.lazy(()=>Dt(()=>import("./Header-CJMGBqBK.js"),__vite__mapDeps([0,1]))),m8=u.lazy(()=>Dt(()=>import("./Dashboard-D9zt-W0M.js"),[])),p8=u.lazy(()=>Dt(()=>import("./GuideLines-Bm3shF3E.js"),__vite__mapDeps([2,3,4]))),g8=u.lazy(()=>Dt(()=>import("./BankDetails-DLNtSMv1.js"),__vite__mapDeps([5,3,4,6,7]))),h8=u.lazy(()=>Dt(()=>import("./QpPattern-BZtr4UQM.js"),__vite__mapDeps([8,9,10,11,3,12,13,14,4,6,7,15]))),y8=u.lazy(()=>Dt(()=>import("./AvailableQp-tO3doIMU.js"),__vite__mapDeps([16,9,10,11,3,17,15,13,7,18,4,6]))),b8=u.lazy(()=>Dt(()=>import("./EligibleQpSetter-CHu22kKr.js"),__vite__mapDeps([19,9,10,11,3,18,4,6,7,15,13]))),S8=u.lazy(()=>Dt(()=>import("./SelectQpSetter-BRbOhyIB.js"),__vite__mapDeps([20,21,10,9,11,3,18,4,6,7,15,13]))),C8=u.lazy(()=>Dt(()=>import("./AcceptQpRequest-B_ROQBRG.js"),__vite__mapDeps([22,3,4,15,13,7]))),w8=u.lazy(()=>Dt(()=>import("./UploadQuestionPaper-C-al33qm.js"),__vite__mapDeps([23,12,13,14,3,4,15,7]))),E8=u.lazy(()=>Dt(()=>import("./PrepareQuestionPaper-BSXEy8KX.js"),__vite__mapDeps([24,25,3,4,15,13,7,26,27]))),x8=u.lazy(()=>Dt(()=>import("./PrepareThQp-BgE6-OMC.js"),__vite__mapDeps([28,25,9,3,17,27,4,13,6,7,12,14,29]))),R8=u.lazy(()=>Dt(()=>import("./AssignModerator-BVOJihH_.js"),__vite__mapDeps([30,21,9,10,3,18,4,6,7,15,13]))),$8=u.lazy(()=>Dt(()=>import("./DisplayTempCode-DgVb9pUL.js"),__vite__mapDeps([31,32,11,3,4,15,13,7,26,27,14]))),O8=u.lazy(()=>Dt(()=>import("./CreateTempCode-DX8DvT8h.js"),__vite__mapDeps([33,32,15,13,3,7,14,17,4,6]))),P8=u.lazy(()=>Dt(()=>import("./QpSummary-CImxW5Dm.js"),__vite__mapDeps([34,10,9,11,3,27,4,6,7,15,13]))),I8=u.lazy(()=>Dt(()=>import("./SelectFinalQp-CLsTd2bp.js"),__vite__mapDeps([35,10,9,36,11,3,18,4,6,7,15,13]))),_8=u.lazy(()=>Dt(()=>import("./SelectFinalMCQQp-DVbEILey.js"),__vite__mapDeps([37,9,10,36,11,3,18,4,6,7,15,13,27]))),T8=u.lazy(()=>Dt(()=>import("./ModQpDetailsOnline-B5PAvXRt.js"),__vite__mapDeps([38,39,3,4,15,13,7,26,27]))),M8=u.lazy(()=>Dt(()=>import("./ModQpDetailsOffline-f0mRIfCH.js"),__vite__mapDeps([40,39,12,13,14,15,3,7,17,4]))),N8=u.lazy(()=>Dt(()=>import("./ViewMcqFinalPaper-BDdvpj8m.js"),__vite__mapDeps([41,9,10,25,3,6,7,15,13]))),L8=u.lazy(()=>Dt(()=>import("./GenerateBill-oB8XgtSV.js"),__vite__mapDeps([42,10,9,3,6,7]))),A8=u.lazy(()=>Dt(()=>import("./ChangePassword-BiM5qOWF.js"),__vite__mapDeps([43,3,6,7]))),F8=u.lazy(()=>Dt(()=>import("./ViewQPScr-BFyHvciD.js"),__vite__mapDeps([44,45,11,3,10,4,6,7,15,13]))),z8=u.lazy(()=>Dt(()=>import("./ViewFinalQP-DHSepqEW.js"),__vite__mapDeps([46,45,11,3,10,4,6,7,15,13,12,14,18]))),j8=e=>X.jsx("div",{children:X.jsxs(u.Suspense,{fallback:X.jsx("h2",{children:"Loading..."}),children:[X.jsx(v8,{}),e.loader&&X.jsx(f8,{}),X.jsxs(mC,{children:[X.jsx(pt,{path:"*",element:X.jsx(Hv,{to:"/dashboard",replace:!0})}),X.jsx(pt,{path:"dashboard",element:X.jsx(m8,{})}),X.jsx(pt,{path:"/qpsettings/guidelines",element:X.jsx(p8,{})}),X.jsx(pt,{path:"/qpsettings/bank-details",element:X.jsx(g8,{})}),X.jsx(pt,{path:"/qpsettings/upload-qp-pattern",element:X.jsx(h8,{})}),X.jsx(pt,{path:"/qpsettings/available-qp",element:X.jsx(y8,{})}),X.jsx(pt,{path:"/qpsettings/eligible-qp-setter",element:X.jsx(b8,{})}),X.jsx(pt,{path:"/qpsettings/select-qp-setter",element:X.jsx(S8,{})}),X.jsx(pt,{path:"/qpsettings/accept-qp-request",element:X.jsx(C8,{})}),X.jsx(pt,{path:"/qpsettings/upload-qp",element:X.jsx(w8,{})}),X.jsx(pt,{path:"/qpsettings/prepare-qp",element:X.jsx(E8,{})}),X.jsx(pt,{path:"/qpsettings/prepare-thqp/:qpcode/:year/:mode/:teachcode/:set/:tempcode/:type/:disabled",element:X.jsx(x8,{})}),X.jsx(pt,{path:"/qpsettings/assign-moderator",element:X.jsx(R8,{})}),X.jsx(pt,{path:"/qpsettings/qpsummary",element:X.jsx(P8,{})}),X.jsx(pt,{path:"/qpsettings/crttemp",element:X.jsx($8,{})}),X.jsx(pt,{path:"/qpsettings/edit/:type/:ftempcode",element:X.jsx(O8,{})}),X.jsx(pt,{path:"/qpsettings/select-final-qp",element:X.jsx(I8,{})}),X.jsx(pt,{path:"/qpsettings/select-final-mcq-qp",element:X.jsx(_8,{})}),X.jsx(pt,{path:"/qpsettings/mod-qp-det-online",element:X.jsx(T8,{})}),X.jsx(pt,{path:"/qpsettings/mod-qp-det-offline",element:X.jsx(M8,{})}),X.jsx(pt,{path:"/qpsettings/mcq-final-paper",element:X.jsx(N8,{})}),X.jsx(pt,{path:"/qpsettings/generatebill",element:X.jsx(L8,{})}),X.jsx(pt,{path:"/qpsettings/changepwd",element:X.jsx(A8,{})}),X.jsx(pt,{path:"/viewQPscr",element:X.jsx(F8,{})}),X.jsx(pt,{path:"/viewFinalQPScr",element:X.jsx(z8,{})})]})]})}),D8=e=>({loader:e.loader.appLoading}),B8=Zp(D8)(j8),pl={borderRadius:6,colorPrimary:"#8231d3",Button:{colorPrimary:"#8231d3"},borderColor:"#d9d9d9"},k8=e=>{var c,d;const[t,n]=u.useState(["demo","acu","dypatil"]),r=localStorage.getItem("uniclare-token"),o=Es(),a=Da();localStorage.getItem("dbname"),document.getElementById("univlogo").href=localStorage.getItem("univlogo");let i=a.pathname.split("/");console.log(i);let l=t.filter(f=>f===i[1]);i[1]==l[0]&&l.length!==0&&(localStorage.setItem("dbname",i[1]),localStorage.setItem("type",i[1]),localStorage.setItem("uniclare-rootpath",a.pathname)),u.useEffect(()=>{r!==null&&s()},[]);const s=async()=>{e.isUserLoggedIn(o)};return X.jsx($s,{theme:{token:{colorPrimary:pl.colorPrimary,borderRadius:pl.borderRadius,colorBorder:pl.borderColor},components:{Button:{colorPrimary:(c=pl.Button)==null?void 0:c.colorPrimary,algorithm:(d=pl.Button)==null?void 0:d.algorithm},Table:{borderColor:"#cedce5"}}},componentSize:"large",children:X.jsx("div",{children:r===null?X.jsx(l8,{}):X.jsx(B8,{})})})},H8=e=>({token:e.loginfo.userData}),V8=Zp(H8,{isUserLoggedIn:qB})(k8);Gf.createRoot(document.getElementById("root")).render(X.jsx(AO,{children:X.jsx(DP,{store:QI,children:X.jsx(V8,{})})}));export{ka as $,rk as A,wr as B,wo as C,gs as D,mn as E,Un as F,Wa as G,HP as H,cn as I,Hj as J,re as K,pC as L,Cn as M,Os as N,pR as O,wg as P,W8 as Q,I5 as R,Va as S,Jo as T,Ym as U,U8 as V,s3 as W,to as X,dF as Y,tk as Z,at as _,be as a,WM as a$,Q8 as a0,ye as a1,q8 as a2,wE as a3,a_ as a4,La as a5,Eo as a6,YT as a7,h4 as a8,yw as a9,m4 as aA,Lx as aB,Ub as aC,JB as aD,U5 as aE,Fn as aF,Ae as aG,G8 as aH,ht as aI,wn as aJ,ia as aK,la as aL,gn as aM,it as aN,hn as aO,K as aP,Ha as aQ,zn as aR,Gi as aS,Di as aT,X4 as aU,dm as aV,ar as aW,lx as aX,Sx as aY,Cd as aZ,K8 as a_,zi as aa,ek as ab,J8 as ac,Ts as ad,Zo as ae,bo as af,xt as ag,Ur as ah,Ow as ai,cd as aj,Na as ak,kN as al,qN as am,hg as an,Kw as ao,yg as ap,cr as aq,Z8 as ar,ki as as,xc as at,ji as au,SE as av,aa as aw,fs as ax,XT as ay,s4 as az,V as b,Rc as b0,wF as b1,mg as b2,Ls as b3,Fg as b4,tn as b5,As as b6,WD as b7,Cx as b8,$E as b9,Uj as bA,ma as bB,Sj as bC,Wx as bD,Rg as bE,rL as bF,X8 as bG,TL as bH,_b as bI,nk as bJ,PE as ba,OE as bb,IE as bc,zy as bd,lr as be,iD as bf,DF as bg,Zw as bh,OL as bi,md as bj,Bv as bk,Ex as bl,wx as bm,Ox as bn,Px as bo,xx as bp,zg as bq,JT as br,ls as bs,Rs as bt,Yr as bu,Dr as bv,ng as bw,Y8 as bx,dA as by,tx as bz,G as c,D as d,j as e,zt as f,ct as g,b4 as h,_y as i,Pr as j,J as k,dd as l,Ut as m,U4 as n,Xw as o,ea as p,Mm as q,u as r,Bi as s,X as t,Ba as u,vo as v,Tn as w,Zp as x,Es as y,Gw as z};