csvms 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,490 +0,0 @@
|
|
|
1
|
-
var t8=Object.defineProperty;var WC=e=>{throw TypeError(e)};var n8=(e,t,n)=>t in e?t8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zr=(e,t,n)=>n8(e,typeof t!="symbol"?t+"":t,n),Gg=(e,t,n)=>t.has(e)||WC("Cannot "+n);var qe=(e,t,n)=>(Gg(e,t,"read from private field"),n?n.call(e):t.get(e)),la=(e,t,n)=>t.has(e)?WC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Do=(e,t,n,r)=>(Gg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Kn=(e,t,n)=>(Gg(e,t,"access private method"),n);var KC=(e,t,n,r)=>({set _(o){Do(e,t,o,n)},get _(){return qe(e,t,r)}});function AE(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 Cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var HE={exports:{}},cv={},VE={exports:{}},Xt={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ad=Symbol.for("react.element"),r8=Symbol.for("react.portal"),o8=Symbol.for("react.fragment"),a8=Symbol.for("react.strict_mode"),i8=Symbol.for("react.profiler"),l8=Symbol.for("react.provider"),s8=Symbol.for("react.context"),c8=Symbol.for("react.forward_ref"),u8=Symbol.for("react.suspense"),d8=Symbol.for("react.memo"),f8=Symbol.for("react.lazy"),UC=Symbol.iterator;function m8(e){return e===null||typeof e!="object"?null:(e=UC&&e[UC]||e["@@iterator"],typeof e=="function"?e:null)}var WE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KE=Object.assign,UE={};function qs(e,t,n){this.props=e,this.context=t,this.refs=UE,this.updater=n||WE}qs.prototype.isReactComponent={};qs.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")};qs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qE(){}qE.prototype=qs.prototype;function sb(e,t,n){this.props=e,this.context=t,this.refs=UE,this.updater=n||WE}var cb=sb.prototype=new qE;cb.constructor=sb;KE(cb,qs.prototype);cb.isPureReactComponent=!0;var qC=Array.isArray,GE=Object.prototype.hasOwnProperty,ub={current:null},XE={key:!0,ref:!0,__self:!0,__source:!0};function YE(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)GE.call(t,r)&&!XE.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:ad,type:e,key:a,ref:i,props:o,_owner:ub.current}}function v8(e,t){return{$$typeof:ad,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function db(e){return typeof e=="object"&&e!==null&&e.$$typeof===ad}function g8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var GC=/\/+/g;function Xg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?g8(""+e.key):t.toString(36)}function Mf(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 ad:case r8:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Xg(i,0):r,qC(o)?(n="",e!=null&&(n=e.replace(GC,"$&/")+"/"),Mf(o,t,n,"",function(u){return u})):o!=null&&(db(o)&&(o=v8(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(GC,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",qC(e))for(var s=0;s<e.length;s++){a=e[s];var c=r+Xg(a,s);i+=Mf(a,t,n,c,o)}else if(c=m8(e),typeof c=="function")for(e=c.call(e),s=0;!(a=e.next()).done;)a=a.value,c=r+Xg(a,s++),i+=Mf(a,t,n,c,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 Ld(e,t,n){if(e==null)return e;var r=[],o=0;return Mf(e,r,"","",function(a){return t.call(n,a,o++)}),r}function h8(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 Ar={current:null},Nf={transition:null},p8={ReactCurrentDispatcher:Ar,ReactCurrentBatchConfig:Nf,ReactCurrentOwner:ub};function QE(){throw Error("act(...) is not supported in production builds of React.")}Xt.Children={map:Ld,forEach:function(e,t,n){Ld(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ld(e,function(){t++}),t},toArray:function(e){return Ld(e,function(t){return t})||[]},only:function(e){if(!db(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Xt.Component=qs;Xt.Fragment=o8;Xt.Profiler=i8;Xt.PureComponent=sb;Xt.StrictMode=a8;Xt.Suspense=u8;Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=p8;Xt.act=QE;Xt.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=KE({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=ub.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)GE.call(t,c)&&!XE.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:ad,type:e.type,key:o,ref:a,props:r,_owner:i}};Xt.createContext=function(e){return e={$$typeof:s8,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:l8,_context:e},e.Consumer=e};Xt.createElement=YE;Xt.createFactory=function(e){var t=YE.bind(null,e);return t.type=e,t};Xt.createRef=function(){return{current:null}};Xt.forwardRef=function(e){return{$$typeof:c8,render:e}};Xt.isValidElement=db;Xt.lazy=function(e){return{$$typeof:f8,_payload:{_status:-1,_result:e},_init:h8}};Xt.memo=function(e,t){return{$$typeof:d8,type:e,compare:t===void 0?null:t}};Xt.startTransition=function(e){var t=Nf.transition;Nf.transition={};try{e()}finally{Nf.transition=t}};Xt.unstable_act=QE;Xt.useCallback=function(e,t){return Ar.current.useCallback(e,t)};Xt.useContext=function(e){return Ar.current.useContext(e)};Xt.useDebugValue=function(){};Xt.useDeferredValue=function(e){return Ar.current.useDeferredValue(e)};Xt.useEffect=function(e,t){return Ar.current.useEffect(e,t)};Xt.useId=function(){return Ar.current.useId()};Xt.useImperativeHandle=function(e,t,n){return Ar.current.useImperativeHandle(e,t,n)};Xt.useInsertionEffect=function(e,t){return Ar.current.useInsertionEffect(e,t)};Xt.useLayoutEffect=function(e,t){return Ar.current.useLayoutEffect(e,t)};Xt.useMemo=function(e,t){return Ar.current.useMemo(e,t)};Xt.useReducer=function(e,t,n){return Ar.current.useReducer(e,t,n)};Xt.useRef=function(e){return Ar.current.useRef(e)};Xt.useState=function(e){return Ar.current.useState(e)};Xt.useSyncExternalStore=function(e,t,n){return Ar.current.useSyncExternalStore(e,t,n)};Xt.useTransition=function(){return Ar.current.useTransition()};Xt.version="18.3.1";VE.exports=Xt;var l=VE.exports;const ce=mo(l),id=AE({__proto__:null,default:ce},[l]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var y8=l,b8=Symbol.for("react.element"),C8=Symbol.for("react.fragment"),S8=Object.prototype.hasOwnProperty,x8=y8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w8={key:!0,ref:!0,__self:!0,__source:!0};function JE(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)S8.call(t,r)&&!w8.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:b8,type:e,key:a,ref:i,props:o,_owner:x8.current}}cv.Fragment=C8;cv.jsx=JE;cv.jsxs=JE;HE.exports=cv;var te=HE.exports,Dp={},ZE={exports:{}},vo={},e4={exports:{}},t4={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(D,z){var j=D.length;D.push(z);e:for(;0<j;){var L=j-1>>>1,F=D[L];if(0<o(F,z))D[L]=z,D[j]=F,j=L;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var z=D[0],j=D.pop();if(j!==z){D[0]=j;e:for(var L=0,F=D.length,B=F>>>1;L<B;){var V=2*(L+1)-1,W=D[V],q=V+1,J=D[q];if(0>o(W,j))q<F&&0>o(J,W)?(D[L]=J,D[q]=j,L=q):(D[L]=W,D[V]=j,L=V);else if(q<F&&0>o(J,j))D[L]=J,D[q]=j,L=q;else break e}}return z}function o(D,z){var j=D.sortIndex-z.sortIndex;return j!==0?j:D.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,m=3,v=!1,g=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(D){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=D)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function S(D){if(b=!1,C(D),!g)if(n(c)!==null)g=!0,P(x);else{var z=n(u);z!==null&&k(S,z.startTime-D)}}function x(D,z){g=!1,b&&(b=!1,h(O),O=-1),v=!0;var j=m;try{for(C(z),f=n(c);f!==null&&(!(f.expirationTime>z)||D&&!M());){var L=f.callback;if(typeof L=="function"){f.callback=null,m=f.priorityLevel;var F=L(f.expirationTime<=z);z=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(c)&&r(c),C(z)}else r(c);f=n(c)}if(f!==null)var B=!0;else{var V=n(u);V!==null&&k(S,V.startTime-z),B=!1}return B}finally{f=null,m=j,v=!1}}var $=!1,w=null,O=-1,E=5,R=-1;function M(){return!(e.unstable_now()-R<E)}function T(){if(w!==null){var D=e.unstable_now();R=D;var z=!0;try{z=w(!0,D)}finally{z?_():($=!1,w=null)}}else $=!1}var _;if(typeof p=="function")_=function(){p(T)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,N=I.port2;I.port1.onmessage=T,_=function(){N.postMessage(null)}}else _=function(){y(T,0)};function P(D){w=D,$||($=!0,_())}function k(D,z){O=y(function(){D(e.unstable_now())},z)}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(D){D.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,P(x))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var j=m;m=z;try{return D()}finally{m=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var j=m;m=D;try{return z()}finally{m=j}},e.unstable_scheduleCallback=function(D,z,j){var L=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?L+j:L):j=L,D){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=j+F,D={id:d++,callback:z,priorityLevel:D,startTime:j,expirationTime:F,sortIndex:-1},j>L?(D.sortIndex=j,t(u,D),n(c)===null&&D===n(u)&&(b?(h(O),O=-1):b=!0,k(S,j-L))):(D.sortIndex=F,t(c,D),g||v||(g=!0,P(x))),D},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(D){var z=m;return function(){var j=m;m=z;try{return D.apply(this,arguments)}finally{m=j}}}})(t4);e4.exports=t4;var $8=e4.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var E8=l,fo=$8;function et(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 n4=new Set,bu={};function Sl(e,t){Ps(e,t),Ps(e+"Capture",t)}function Ps(e,t){for(bu[e]=t,e=0;e<t.length;e++)n4.add(t[e])}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kp=Object.prototype.hasOwnProperty,O8=/^[: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]*$/,XC={},YC={};function R8(e){return kp.call(YC,e)?!0:kp.call(XC,e)?!1:O8.test(e)?YC[e]=!0:(XC[e]=!0,!1)}function I8(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 P8(e,t,n,r){if(t===null||typeof t>"u"||I8(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 Hr(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 pr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pr[e]=new Hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pr[t]=new Hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pr[e]=new Hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pr[e]=new Hr(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){pr[e]=new Hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pr[e]=new Hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pr[e]=new Hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pr[e]=new Hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pr[e]=new Hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var fb=/[\-:]([a-z])/g;function mb(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(fb,mb);pr[t]=new Hr(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(fb,mb);pr[t]=new Hr(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(fb,mb);pr[t]=new Hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!1,!1)});pr.xlinkHref=new Hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function vb(e,t,n,r){var o=pr.hasOwnProperty(t)?pr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P8(t,n,o,r)&&(n=null),r||o===null?R8(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 Aa=E8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fd=Symbol.for("react.element"),es=Symbol.for("react.portal"),ts=Symbol.for("react.fragment"),gb=Symbol.for("react.strict_mode"),jp=Symbol.for("react.profiler"),r4=Symbol.for("react.provider"),o4=Symbol.for("react.context"),hb=Symbol.for("react.forward_ref"),zp=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),pb=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),a4=Symbol.for("react.offscreen"),QC=Symbol.iterator;function Cc(e){return e===null||typeof e!="object"?null:(e=QC&&e[QC]||e["@@iterator"],typeof e=="function"?e:null)}var Pn=Object.assign,Yg;function Vc(e){if(Yg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yg=t&&t[1]||""}return`
|
|
34
|
-
`+Yg+e}var Qg=!1;function Jg(e,t){if(!e||Qg)return"";Qg=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
-
`),a=r.stack.split(`
|
|
36
|
-
`),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var c=`
|
|
37
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{Qg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vc(e):""}function M8(e){switch(e.tag){case 5:return Vc(e.type);case 16:return Vc("Lazy");case 13:return Vc("Suspense");case 19:return Vc("SuspenseList");case 0:case 2:case 15:return e=Jg(e.type,!1),e;case 11:return e=Jg(e.type.render,!1),e;case 1:return e=Jg(e.type,!0),e;default:return""}}function Fp(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 ts:return"Fragment";case es:return"Portal";case jp:return"Profiler";case gb:return"StrictMode";case zp:return"Suspense";case Lp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o4:return(e.displayName||"Context")+".Consumer";case r4:return(e._context.displayName||"Context")+".Provider";case hb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pb:return t=e.displayName||null,t!==null?t:Fp(e.type)||"Memo";case Ja:t=e._payload,e=e._init;try{return Fp(e(t))}catch{}}return null}function N8(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 Fp(t);case 8:return t===gb?"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 bi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T8(e){var t=i4(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 Bd(e){e._valueTracker||(e._valueTracker=T8(e))}function l4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function im(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 Bp(e,t){var n=t.checked;return Pn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function JC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bi(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 s4(e,t){t=t.checked,t!=null&&vb(e,"checked",t,!1)}function Ap(e,t){s4(e,t);var n=bi(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")?Hp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hp(e,t.type,bi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ZC(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 Hp(e,t,n){(t!=="number"||im(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wc=Array.isArray;function ps(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=""+bi(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 Vp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(et(91));return Pn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eS(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(et(92));if(Wc(n)){if(1<n.length)throw Error(et(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bi(n)}}function c4(e,t){var n=bi(t.value),r=bi(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 tS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function u4(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 Wp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?u4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ad,d4=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(Ad=Ad||document.createElement("div"),Ad.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ad.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eu={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},_8=["Webkit","ms","Moz","O"];Object.keys(eu).forEach(function(e){_8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eu[t]=eu[e]})});function f4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eu.hasOwnProperty(e)&&eu[e]?(""+t).trim():t+"px"}function m4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=f4(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var D8=Pn({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 Kp(e,t){if(t){if(D8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(et(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(et(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(et(61))}if(t.style!=null&&typeof t.style!="object")throw Error(et(62))}}function Up(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 qp=null;function yb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gp=null,ys=null,bs=null;function nS(e){if(e=cd(e)){if(typeof Gp!="function")throw Error(et(280));var t=e.stateNode;t&&(t=vv(t),Gp(e.stateNode,e.type,t))}}function v4(e){ys?bs?bs.push(e):bs=[e]:ys=e}function g4(){if(ys){var e=ys,t=bs;if(bs=ys=null,nS(e),t)for(e=0;e<t.length;e++)nS(t[e])}}function h4(e,t){return e(t)}function p4(){}var Zg=!1;function y4(e,t,n){if(Zg)return e(t,n);Zg=!0;try{return h4(e,t,n)}finally{Zg=!1,(ys!==null||bs!==null)&&(p4(),g4())}}function Su(e,t){var n=e.stateNode;if(n===null)return null;var r=vv(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(et(231,t,typeof n));return n}var Xp=!1;if(ka)try{var Sc={};Object.defineProperty(Sc,"passive",{get:function(){Xp=!0}}),window.addEventListener("test",Sc,Sc),window.removeEventListener("test",Sc,Sc)}catch{Xp=!1}function k8(e,t,n,r,o,a,i,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var tu=!1,lm=null,sm=!1,Yp=null,j8={onError:function(e){tu=!0,lm=e}};function z8(e,t,n,r,o,a,i,s,c){tu=!1,lm=null,k8.apply(j8,arguments)}function L8(e,t,n,r,o,a,i,s,c){if(z8.apply(this,arguments),tu){if(tu){var u=lm;tu=!1,lm=null}else throw Error(et(198));sm||(sm=!0,Yp=u)}}function xl(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 b4(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 rS(e){if(xl(e)!==e)throw Error(et(188))}function F8(e){var t=e.alternate;if(!t){if(t=xl(e),t===null)throw Error(et(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 rS(o),e;if(a===r)return rS(o),t;a=a.sibling}throw Error(et(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(et(189))}}if(n.alternate!==r)throw Error(et(190))}if(n.tag!==3)throw Error(et(188));return n.stateNode.current===n?e:t}function C4(e){return e=F8(e),e!==null?S4(e):null}function S4(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=S4(e);if(t!==null)return t;e=e.sibling}return null}var x4=fo.unstable_scheduleCallback,oS=fo.unstable_cancelCallback,B8=fo.unstable_shouldYield,A8=fo.unstable_requestPaint,Fn=fo.unstable_now,H8=fo.unstable_getCurrentPriorityLevel,bb=fo.unstable_ImmediatePriority,w4=fo.unstable_UserBlockingPriority,cm=fo.unstable_NormalPriority,V8=fo.unstable_LowPriority,$4=fo.unstable_IdlePriority,uv=null,ga=null;function W8(e){if(ga&&typeof ga.onCommitFiberRoot=="function")try{ga.onCommitFiberRoot(uv,e,void 0,(e.current.flags&128)===128)}catch{}}var Ko=Math.clz32?Math.clz32:q8,K8=Math.log,U8=Math.LN2;function q8(e){return e>>>=0,e===0?32:31-(K8(e)/U8|0)|0}var Hd=64,Vd=4194304;function Kc(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 um(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 s=i&~o;s!==0?r=Kc(s):(a&=i,a!==0&&(r=Kc(a)))}else i=n&~o,i!==0?r=Kc(i):a!==0&&(r=Kc(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-Ko(t),o=1<<n,r|=e[n],t&=~o;return r}function G8(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 X8(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Ko(a),s=1<<i,c=o[i];c===-1?(!(s&n)||s&r)&&(o[i]=G8(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Qp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function E4(){var e=Hd;return Hd<<=1,!(Hd&4194240)&&(Hd=64),e}function eh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ld(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ko(t),e[t]=n}function Y8(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-Ko(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function Cb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ko(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var sn=0;function O4(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var R4,Sb,I4,P4,M4,Jp=!1,Wd=[],ui=null,di=null,fi=null,xu=new Map,wu=new Map,ti=[],Q8="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 aS(e,t){switch(e){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":xu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wu.delete(t.pointerId)}}function xc(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=cd(t),t!==null&&Sb(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function J8(e,t,n,r,o){switch(t){case"focusin":return ui=xc(ui,e,t,n,r,o),!0;case"dragenter":return di=xc(di,e,t,n,r,o),!0;case"mouseover":return fi=xc(fi,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return xu.set(a,xc(xu.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,wu.set(a,xc(wu.get(a)||null,e,t,n,r,o)),!0}return!1}function N4(e){var t=Ui(e.target);if(t!==null){var n=xl(t);if(n!==null){if(t=n.tag,t===13){if(t=b4(n),t!==null){e.blockedOn=t,M4(e.priority,function(){I4(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 Tf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qp=r,n.target.dispatchEvent(r),qp=null}else return t=cd(n),t!==null&&Sb(t),e.blockedOn=n,!1;t.shift()}return!0}function iS(e,t,n){Tf(e)&&n.delete(t)}function Z8(){Jp=!1,ui!==null&&Tf(ui)&&(ui=null),di!==null&&Tf(di)&&(di=null),fi!==null&&Tf(fi)&&(fi=null),xu.forEach(iS),wu.forEach(iS)}function wc(e,t){e.blockedOn===t&&(e.blockedOn=null,Jp||(Jp=!0,fo.unstable_scheduleCallback(fo.unstable_NormalPriority,Z8)))}function $u(e){function t(o){return wc(o,e)}if(0<Wd.length){wc(Wd[0],e);for(var n=1;n<Wd.length;n++){var r=Wd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ui!==null&&wc(ui,e),di!==null&&wc(di,e),fi!==null&&wc(fi,e),xu.forEach(t),wu.forEach(t),n=0;n<ti.length;n++)r=ti[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ti.length&&(n=ti[0],n.blockedOn===null);)N4(n),n.blockedOn===null&&ti.shift()}var Cs=Aa.ReactCurrentBatchConfig,dm=!0;function e5(e,t,n,r){var o=sn,a=Cs.transition;Cs.transition=null;try{sn=1,xb(e,t,n,r)}finally{sn=o,Cs.transition=a}}function t5(e,t,n,r){var o=sn,a=Cs.transition;Cs.transition=null;try{sn=4,xb(e,t,n,r)}finally{sn=o,Cs.transition=a}}function xb(e,t,n,r){if(dm){var o=Zp(e,t,n,r);if(o===null)uh(e,t,r,fm,n),aS(e,r);else if(J8(o,e,t,n,r))r.stopPropagation();else if(aS(e,r),t&4&&-1<Q8.indexOf(e)){for(;o!==null;){var a=cd(o);if(a!==null&&R4(a),a=Zp(e,t,n,r),a===null&&uh(e,t,r,fm,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else uh(e,t,r,null,n)}}var fm=null;function Zp(e,t,n,r){if(fm=null,e=yb(r),e=Ui(e),e!==null)if(t=xl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=b4(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 fm=e,null}function T4(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(H8()){case bb:return 1;case w4:return 4;case cm:case V8:return 16;case $4:return 536870912;default:return 16}default:return 16}}var oi=null,wb=null,_f=null;function _4(){if(_f)return _f;var e,t=wb,n=t.length,r,o="value"in oi?oi.value:oi.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 _f=o.slice(e,1<r?1-r:void 0)}function Df(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 Kd(){return!0}function lS(){return!1}function go(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 s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Kd:lS,this.isPropagationStopped=lS,this}return Pn(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=Kd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Kd)},persist:function(){},isPersistent:Kd}),t}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$b=go(Gs),sd=Pn({},Gs,{view:0,detail:0}),n5=go(sd),th,nh,$c,dv=Pn({},sd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eb,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!==$c&&($c&&e.type==="mousemove"?(th=e.screenX-$c.screenX,nh=e.screenY-$c.screenY):nh=th=0,$c=e),th)},movementY:function(e){return"movementY"in e?e.movementY:nh}}),sS=go(dv),r5=Pn({},dv,{dataTransfer:0}),o5=go(r5),a5=Pn({},sd,{relatedTarget:0}),rh=go(a5),i5=Pn({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),l5=go(i5),s5=Pn({},Gs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),c5=go(s5),u5=Pn({},Gs,{data:0}),cS=go(u5),d5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f5={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"},m5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v5(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=m5[e])?!!t[e]:!1}function Eb(){return v5}var g5=Pn({},sd,{key:function(e){if(e.key){var t=d5[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f5[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eb,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),h5=go(g5),p5=Pn({},dv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uS=go(p5),y5=Pn({},sd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eb}),b5=go(y5),C5=Pn({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),S5=go(C5),x5=Pn({},dv,{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}),w5=go(x5),$5=[9,13,27,32],Ob=ka&&"CompositionEvent"in window,nu=null;ka&&"documentMode"in document&&(nu=document.documentMode);var E5=ka&&"TextEvent"in window&&!nu,D4=ka&&(!Ob||nu&&8<nu&&11>=nu),dS=" ",fS=!1;function k4(e,t){switch(e){case"keyup":return $5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ns=!1;function O5(e,t){switch(e){case"compositionend":return j4(t);case"keypress":return t.which!==32?null:(fS=!0,dS);case"textInput":return e=t.data,e===dS&&fS?null:e;default:return null}}function R5(e,t){if(ns)return e==="compositionend"||!Ob&&k4(e,t)?(e=_4(),_f=wb=oi=null,ns=!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 D4&&t.locale!=="ko"?null:t.data;default:return null}}var I5={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 mS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!I5[e.type]:t==="textarea"}function z4(e,t,n,r){v4(r),t=mm(t,"onChange"),0<t.length&&(n=new $b("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ru=null,Eu=null;function P5(e){G4(e,0)}function fv(e){var t=as(e);if(l4(t))return e}function M5(e,t){if(e==="change")return t}var L4=!1;if(ka){var oh;if(ka){var ah="oninput"in document;if(!ah){var vS=document.createElement("div");vS.setAttribute("oninput","return;"),ah=typeof vS.oninput=="function"}oh=ah}else oh=!1;L4=oh&&(!document.documentMode||9<document.documentMode)}function gS(){ru&&(ru.detachEvent("onpropertychange",F4),Eu=ru=null)}function F4(e){if(e.propertyName==="value"&&fv(Eu)){var t=[];z4(t,Eu,e,yb(e)),y4(P5,t)}}function N5(e,t,n){e==="focusin"?(gS(),ru=t,Eu=n,ru.attachEvent("onpropertychange",F4)):e==="focusout"&&gS()}function T5(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fv(Eu)}function _5(e,t){if(e==="click")return fv(t)}function D5(e,t){if(e==="input"||e==="change")return fv(t)}function k5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yo=typeof Object.is=="function"?Object.is:k5;function Ou(e,t){if(Yo(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(!kp.call(t,o)||!Yo(e[o],t[o]))return!1}return!0}function hS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pS(e,t){var n=hS(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=hS(n)}}function B4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?B4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function A4(){for(var e=window,t=im();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=im(e.document)}return t}function Rb(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 j5(e){var t=A4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&B4(n.ownerDocument.documentElement,n)){if(r!==null&&Rb(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=pS(n,a);var i=pS(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 z5=ka&&"documentMode"in document&&11>=document.documentMode,rs=null,e0=null,ou=null,t0=!1;function yS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;t0||rs==null||rs!==im(r)||(r=rs,"selectionStart"in r&&Rb(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}),ou&&Ou(ou,r)||(ou=r,r=mm(e0,"onSelect"),0<r.length&&(t=new $b("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rs)))}function Ud(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var os={animationend:Ud("Animation","AnimationEnd"),animationiteration:Ud("Animation","AnimationIteration"),animationstart:Ud("Animation","AnimationStart"),transitionend:Ud("Transition","TransitionEnd")},ih={},H4={};ka&&(H4=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function mv(e){if(ih[e])return ih[e];if(!os[e])return e;var t=os[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in H4)return ih[e]=t[n];return e}var V4=mv("animationend"),W4=mv("animationiteration"),K4=mv("animationstart"),U4=mv("transitionend"),q4=new Map,bS="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 Ri(e,t){q4.set(e,t),Sl(t,[e])}for(var lh=0;lh<bS.length;lh++){var sh=bS[lh],L5=sh.toLowerCase(),F5=sh[0].toUpperCase()+sh.slice(1);Ri(L5,"on"+F5)}Ri(V4,"onAnimationEnd");Ri(W4,"onAnimationIteration");Ri(K4,"onAnimationStart");Ri("dblclick","onDoubleClick");Ri("focusin","onFocus");Ri("focusout","onBlur");Ri(U4,"onTransitionEnd");Ps("onMouseEnter",["mouseout","mouseover"]);Ps("onMouseLeave",["mouseout","mouseover"]);Ps("onPointerEnter",["pointerout","pointerover"]);Ps("onPointerLeave",["pointerout","pointerover"]);Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uc="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(" "),B5=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uc));function CS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,L8(r,t,void 0,e),e.currentTarget=null}function G4(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 s=r[i],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==a&&o.isPropagationStopped())break e;CS(o,s,u),a=c}else for(i=0;i<r.length;i++){if(s=r[i],c=s.instance,u=s.currentTarget,s=s.listener,c!==a&&o.isPropagationStopped())break e;CS(o,s,u),a=c}}}if(sm)throw e=Yp,sm=!1,Yp=null,e}function yn(e,t){var n=t[i0];n===void 0&&(n=t[i0]=new Set);var r=e+"__bubble";n.has(r)||(X4(t,e,2,!1),n.add(r))}function ch(e,t,n){var r=0;t&&(r|=4),X4(n,e,r,t)}var qd="_reactListening"+Math.random().toString(36).slice(2);function Ru(e){if(!e[qd]){e[qd]=!0,n4.forEach(function(n){n!=="selectionchange"&&(B5.has(n)||ch(n,!1,e),ch(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qd]||(t[qd]=!0,ch("selectionchange",!1,t))}}function X4(e,t,n,r){switch(T4(t)){case 1:var o=e5;break;case 4:o=t5;break;default:o=xb}n=o.bind(null,t,n,e),o=void 0,!Xp||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 uh(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 s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;s!==null;){if(i=Ui(s),i===null)return;if(c=i.tag,c===5||c===6){r=a=i;continue e}s=s.parentNode}}r=r.return}y4(function(){var u=a,d=yb(n),f=[];e:{var m=q4.get(e);if(m!==void 0){var v=$b,g=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":v=h5;break;case"focusin":g="focus",v=rh;break;case"focusout":g="blur",v=rh;break;case"beforeblur":case"afterblur":v=rh;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":v=sS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=o5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=b5;break;case V4:case W4:case K4:v=l5;break;case U4:v=S5;break;case"scroll":v=n5;break;case"wheel":v=w5;break;case"copy":case"cut":case"paste":v=c5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=uS}var b=(t&4)!==0,y=!b&&e==="scroll",h=b?m!==null?m+"Capture":null:m;b=[];for(var p=u,C;p!==null;){C=p;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,h!==null&&(S=Su(p,h),S!=null&&b.push(Iu(p,S,C)))),y)break;p=p.return}0<b.length&&(m=new v(m,g,null,n,d),f.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==qp&&(g=n.relatedTarget||n.fromElement)&&(Ui(g)||g[ja]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?Ui(g):null,g!==null&&(y=xl(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(b=sS,S="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=uS,S="onPointerLeave",h="onPointerEnter",p="pointer"),y=v==null?m:as(v),C=g==null?m:as(g),m=new b(S,p+"leave",v,n,d),m.target=y,m.relatedTarget=C,S=null,Ui(d)===u&&(b=new b(h,p+"enter",g,n,d),b.target=C,b.relatedTarget=y,S=b),y=S,v&&g)t:{for(b=v,h=g,p=0,C=b;C;C=Ll(C))p++;for(C=0,S=h;S;S=Ll(S))C++;for(;0<p-C;)b=Ll(b),p--;for(;0<C-p;)h=Ll(h),C--;for(;p--;){if(b===h||h!==null&&b===h.alternate)break t;b=Ll(b),h=Ll(h)}b=null}else b=null;v!==null&&SS(f,m,v,b,!1),g!==null&&y!==null&&SS(f,y,g,b,!0)}}e:{if(m=u?as(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var x=M5;else if(mS(m))if(L4)x=D5;else{x=T5;var $=N5}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(x=_5);if(x&&(x=x(e,u))){z4(f,x,n,d);break e}$&&$(e,m,u),e==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&Hp(m,"number",m.value)}switch($=u?as(u):window,e){case"focusin":(mS($)||$.contentEditable==="true")&&(rs=$,e0=u,ou=null);break;case"focusout":ou=e0=rs=null;break;case"mousedown":t0=!0;break;case"contextmenu":case"mouseup":case"dragend":t0=!1,yS(f,n,d);break;case"selectionchange":if(z5)break;case"keydown":case"keyup":yS(f,n,d)}var w;if(Ob)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ns?k4(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(D4&&n.locale!=="ko"&&(ns||O!=="onCompositionStart"?O==="onCompositionEnd"&&ns&&(w=_4()):(oi=d,wb="value"in oi?oi.value:oi.textContent,ns=!0)),$=mm(u,O),0<$.length&&(O=new cS(O,e,null,n,d),f.push({event:O,listeners:$}),w?O.data=w:(w=j4(n),w!==null&&(O.data=w)))),(w=E5?O5(e,n):R5(e,n))&&(u=mm(u,"onBeforeInput"),0<u.length&&(d=new cS("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=w))}G4(f,t)})}function Iu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Su(e,n),a!=null&&r.unshift(Iu(e,a,o)),a=Su(e,t),a!=null&&r.push(Iu(e,a,o))),e=e.return}return r}function Ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function SS(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=Su(n,a),c!=null&&i.unshift(Iu(n,c,s))):o||(c=Su(n,a),c!=null&&i.push(Iu(n,c,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var A5=/\r\n?/g,H5=/\u0000|\uFFFD/g;function xS(e){return(typeof e=="string"?e:""+e).replace(A5,`
|
|
38
|
-
`).replace(H5,"")}function Gd(e,t,n){if(t=xS(t),xS(e)!==t&&n)throw Error(et(425))}function vm(){}var n0=null,r0=null;function o0(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 a0=typeof setTimeout=="function"?setTimeout:void 0,V5=typeof clearTimeout=="function"?clearTimeout:void 0,wS=typeof Promise=="function"?Promise:void 0,W5=typeof queueMicrotask=="function"?queueMicrotask:typeof wS<"u"?function(e){return wS.resolve(null).then(e).catch(K5)}:a0;function K5(e){setTimeout(function(){throw e})}function dh(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),$u(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);$u(t)}function mi(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 $S(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 Xs=Math.random().toString(36).slice(2),va="__reactFiber$"+Xs,Pu="__reactProps$"+Xs,ja="__reactContainer$"+Xs,i0="__reactEvents$"+Xs,U5="__reactListeners$"+Xs,q5="__reactHandles$"+Xs;function Ui(e){var t=e[va];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ja]||n[va]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$S(e);e!==null;){if(n=e[va])return n;e=$S(e)}return t}e=n,n=e.parentNode}return null}function cd(e){return e=e[va]||e[ja],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function as(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(et(33))}function vv(e){return e[Pu]||null}var l0=[],is=-1;function Ii(e){return{current:e}}function bn(e){0>is||(e.current=l0[is],l0[is]=null,is--)}function hn(e,t){is++,l0[is]=e.current,e.current=t}var Ci={},Mr=Ii(Ci),Yr=Ii(!1),ll=Ci;function Ms(e,t){var n=e.type.contextTypes;if(!n)return Ci;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 Qr(e){return e=e.childContextTypes,e!=null}function gm(){bn(Yr),bn(Mr)}function ES(e,t,n){if(Mr.current!==Ci)throw Error(et(168));hn(Mr,t),hn(Yr,n)}function Y4(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(et(108,N8(e)||"Unknown",o));return Pn({},n,r)}function hm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,ll=Mr.current,hn(Mr,e),hn(Yr,Yr.current),!0}function OS(e,t,n){var r=e.stateNode;if(!r)throw Error(et(169));n?(e=Y4(e,t,ll),r.__reactInternalMemoizedMergedChildContext=e,bn(Yr),bn(Mr),hn(Mr,e)):bn(Yr),hn(Yr,n)}var Pa=null,gv=!1,fh=!1;function Q4(e){Pa===null?Pa=[e]:Pa.push(e)}function G5(e){gv=!0,Q4(e)}function Pi(){if(!fh&&Pa!==null){fh=!0;var e=0,t=sn;try{var n=Pa;for(sn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pa=null,gv=!1}catch(o){throw Pa!==null&&(Pa=Pa.slice(e+1)),x4(bb,Pi),o}finally{sn=t,fh=!1}}return null}var ls=[],ss=0,pm=null,ym=0,wo=[],$o=0,sl=null,Ma=1,Na="";function Fi(e,t){ls[ss++]=ym,ls[ss++]=pm,pm=e,ym=t}function J4(e,t,n){wo[$o++]=Ma,wo[$o++]=Na,wo[$o++]=sl,sl=e;var r=Ma;e=Na;var o=32-Ko(r)-1;r&=~(1<<o),n+=1;var a=32-Ko(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ma=1<<32-Ko(t)+o|n<<o|r,Na=a+e}else Ma=1<<a|n<<o|r,Na=e}function Ib(e){e.return!==null&&(Fi(e,1),J4(e,1,0))}function Pb(e){for(;e===pm;)pm=ls[--ss],ls[ss]=null,ym=ls[--ss],ls[ss]=null;for(;e===sl;)sl=wo[--$o],wo[$o]=null,Na=wo[--$o],wo[$o]=null,Ma=wo[--$o],wo[$o]=null}var uo=null,so=null,$n=!1,Ho=null;function Z4(e,t){var n=Oo(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 RS(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,uo=e,so=mi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,uo=e,so=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sl!==null?{id:Ma,overflow:Na}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,uo=e,so=null,!0):!1;default:return!1}}function s0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function c0(e){if($n){var t=so;if(t){var n=t;if(!RS(e,t)){if(s0(e))throw Error(et(418));t=mi(n.nextSibling);var r=uo;t&&RS(e,t)?Z4(r,n):(e.flags=e.flags&-4097|2,$n=!1,uo=e)}}else{if(s0(e))throw Error(et(418));e.flags=e.flags&-4097|2,$n=!1,uo=e}}}function IS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;uo=e}function Xd(e){if(e!==uo)return!1;if(!$n)return IS(e),$n=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!o0(e.type,e.memoizedProps)),t&&(t=so)){if(s0(e))throw eO(),Error(et(418));for(;t;)Z4(e,t),t=mi(t.nextSibling)}if(IS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(et(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){so=mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}so=null}}else so=uo?mi(e.stateNode.nextSibling):null;return!0}function eO(){for(var e=so;e;)e=mi(e.nextSibling)}function Ns(){so=uo=null,$n=!1}function Mb(e){Ho===null?Ho=[e]:Ho.push(e)}var X5=Aa.ReactCurrentBatchConfig;function Ec(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(et(309));var r=n.stateNode}if(!r)throw Error(et(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 s=o.refs;i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(et(284));if(!n._owner)throw Error(et(290,e))}return e}function Yd(e,t){throw e=Object.prototype.toString.call(t),Error(et(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function PS(e){var t=e._init;return t(e._payload)}function tO(e){function t(h,p){if(e){var C=h.deletions;C===null?(h.deletions=[p],h.flags|=16):C.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function o(h,p){return h=pi(h,p),h.index=0,h.sibling=null,h}function a(h,p,C){return h.index=C,e?(C=h.alternate,C!==null?(C=C.index,C<p?(h.flags|=2,p):C):(h.flags|=2,p)):(h.flags|=1048576,p)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,C,S){return p===null||p.tag!==6?(p=bh(C,h.mode,S),p.return=h,p):(p=o(p,C),p.return=h,p)}function c(h,p,C,S){var x=C.type;return x===ts?d(h,p,C.props.children,S,C.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ja&&PS(x)===p.type)?(S=o(p,C.props),S.ref=Ec(h,p,C),S.return=h,S):(S=Af(C.type,C.key,C.props,null,h.mode,S),S.ref=Ec(h,p,C),S.return=h,S)}function u(h,p,C,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==C.containerInfo||p.stateNode.implementation!==C.implementation?(p=Ch(C,h.mode,S),p.return=h,p):(p=o(p,C.children||[]),p.return=h,p)}function d(h,p,C,S,x){return p===null||p.tag!==7?(p=rl(C,h.mode,S,x),p.return=h,p):(p=o(p,C),p.return=h,p)}function f(h,p,C){if(typeof p=="string"&&p!==""||typeof p=="number")return p=bh(""+p,h.mode,C),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Fd:return C=Af(p.type,p.key,p.props,null,h.mode,C),C.ref=Ec(h,null,p),C.return=h,C;case es:return p=Ch(p,h.mode,C),p.return=h,p;case Ja:var S=p._init;return f(h,S(p._payload),C)}if(Wc(p)||Cc(p))return p=rl(p,h.mode,C,null),p.return=h,p;Yd(h,p)}return null}function m(h,p,C,S){var x=p!==null?p.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return x!==null?null:s(h,p,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Fd:return C.key===x?c(h,p,C,S):null;case es:return C.key===x?u(h,p,C,S):null;case Ja:return x=C._init,m(h,p,x(C._payload),S)}if(Wc(C)||Cc(C))return x!==null?null:d(h,p,C,S,null);Yd(h,C)}return null}function v(h,p,C,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(C)||null,s(p,h,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Fd:return h=h.get(S.key===null?C:S.key)||null,c(p,h,S,x);case es:return h=h.get(S.key===null?C:S.key)||null,u(p,h,S,x);case Ja:var $=S._init;return v(h,p,C,$(S._payload),x)}if(Wc(S)||Cc(S))return h=h.get(C)||null,d(p,h,S,x,null);Yd(p,S)}return null}function g(h,p,C,S){for(var x=null,$=null,w=p,O=p=0,E=null;w!==null&&O<C.length;O++){w.index>O?(E=w,w=null):E=w.sibling;var R=m(h,w,C[O],S);if(R===null){w===null&&(w=E);break}e&&w&&R.alternate===null&&t(h,w),p=a(R,p,O),$===null?x=R:$.sibling=R,$=R,w=E}if(O===C.length)return n(h,w),$n&&Fi(h,O),x;if(w===null){for(;O<C.length;O++)w=f(h,C[O],S),w!==null&&(p=a(w,p,O),$===null?x=w:$.sibling=w,$=w);return $n&&Fi(h,O),x}for(w=r(h,w);O<C.length;O++)E=v(w,h,O,C[O],S),E!==null&&(e&&E.alternate!==null&&w.delete(E.key===null?O:E.key),p=a(E,p,O),$===null?x=E:$.sibling=E,$=E);return e&&w.forEach(function(M){return t(h,M)}),$n&&Fi(h,O),x}function b(h,p,C,S){var x=Cc(C);if(typeof x!="function")throw Error(et(150));if(C=x.call(C),C==null)throw Error(et(151));for(var $=x=null,w=p,O=p=0,E=null,R=C.next();w!==null&&!R.done;O++,R=C.next()){w.index>O?(E=w,w=null):E=w.sibling;var M=m(h,w,R.value,S);if(M===null){w===null&&(w=E);break}e&&w&&M.alternate===null&&t(h,w),p=a(M,p,O),$===null?x=M:$.sibling=M,$=M,w=E}if(R.done)return n(h,w),$n&&Fi(h,O),x;if(w===null){for(;!R.done;O++,R=C.next())R=f(h,R.value,S),R!==null&&(p=a(R,p,O),$===null?x=R:$.sibling=R,$=R);return $n&&Fi(h,O),x}for(w=r(h,w);!R.done;O++,R=C.next())R=v(w,h,O,R.value,S),R!==null&&(e&&R.alternate!==null&&w.delete(R.key===null?O:R.key),p=a(R,p,O),$===null?x=R:$.sibling=R,$=R);return e&&w.forEach(function(T){return t(h,T)}),$n&&Fi(h,O),x}function y(h,p,C,S){if(typeof C=="object"&&C!==null&&C.type===ts&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Fd:e:{for(var x=C.key,$=p;$!==null;){if($.key===x){if(x=C.type,x===ts){if($.tag===7){n(h,$.sibling),p=o($,C.props.children),p.return=h,h=p;break e}}else if($.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ja&&PS(x)===$.type){n(h,$.sibling),p=o($,C.props),p.ref=Ec(h,$,C),p.return=h,h=p;break e}n(h,$);break}else t(h,$);$=$.sibling}C.type===ts?(p=rl(C.props.children,h.mode,S,C.key),p.return=h,h=p):(S=Af(C.type,C.key,C.props,null,h.mode,S),S.ref=Ec(h,p,C),S.return=h,h=S)}return i(h);case es:e:{for($=C.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===C.containerInfo&&p.stateNode.implementation===C.implementation){n(h,p.sibling),p=o(p,C.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Ch(C,h.mode,S),p.return=h,h=p}return i(h);case Ja:return $=C._init,y(h,p,$(C._payload),S)}if(Wc(C))return g(h,p,C,S);if(Cc(C))return b(h,p,C,S);Yd(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,C),p.return=h,h=p):(n(h,p),p=bh(C,h.mode,S),p.return=h,h=p),i(h)):n(h,p)}return y}var Ts=tO(!0),nO=tO(!1),bm=Ii(null),Cm=null,cs=null,Nb=null;function Tb(){Nb=cs=Cm=null}function _b(e){var t=bm.current;bn(bm),e._currentValue=t}function u0(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 Ss(e,t){Cm=e,Nb=cs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xr=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(Nb!==e)if(e={context:e,memoizedValue:t,next:null},cs===null){if(Cm===null)throw Error(et(308));cs=e,Cm.dependencies={lanes:0,firstContext:e}}else cs=cs.next=e;return t}var qi=null;function Db(e){qi===null?qi=[e]:qi.push(e)}function rO(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Db(t)):(n.next=o.next,o.next=n),t.interleaved=n,za(e,r)}function za(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 Za=!1;function kb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oO(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 Ta(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,nn&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,za(e,n)}return o=r.interleaved,o===null?(t.next=t,Db(r)):(t.next=o.next,o.next=t),r.interleaved=t,za(e,n)}function kf(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,Cb(e,n)}}function MS(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 Sm(e,t,n,r){var o=e.updateQueue;Za=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;i=0,d=u=c=null,s=a;do{var m=s.lane,v=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,b=s;switch(m=t,v=n,b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(v,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,m=typeof g=="function"?g.call(v,f,m):g,m==null)break e;f=Pn({},f,m);break e;case 2:Za=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=v,c=f):d=d.next=v,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,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);ul|=i,e.lanes=i,e.memoizedState=f}}function NS(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(et(191,o));o.call(r)}}}var ud={},ha=Ii(ud),Mu=Ii(ud),Nu=Ii(ud);function Gi(e){if(e===ud)throw Error(et(174));return e}function jb(e,t){switch(hn(Nu,t),hn(Mu,e),hn(ha,ud),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wp(t,e)}bn(ha),hn(ha,t)}function _s(){bn(ha),bn(Mu),bn(Nu)}function aO(e){Gi(Nu.current);var t=Gi(ha.current),n=Wp(t,e.type);t!==n&&(hn(Mu,e),hn(ha,n))}function zb(e){Mu.current===e&&(bn(ha),bn(Mu))}var Rn=Ii(0);function xm(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 mh=[];function Lb(){for(var e=0;e<mh.length;e++)mh[e]._workInProgressVersionPrimary=null;mh.length=0}var jf=Aa.ReactCurrentDispatcher,vh=Aa.ReactCurrentBatchConfig,cl=0,In=null,er=null,sr=null,wm=!1,au=!1,Tu=0,Y5=0;function xr(){throw Error(et(321))}function Fb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yo(e[n],t[n]))return!1;return!0}function Bb(e,t,n,r,o,a){if(cl=a,In=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,jf.current=e===null||e.memoizedState===null?eT:tT,e=n(r,o),au){a=0;do{if(au=!1,Tu=0,25<=a)throw Error(et(301));a+=1,sr=er=null,t.updateQueue=null,jf.current=nT,e=n(r,o)}while(au)}if(jf.current=$m,t=er!==null&&er.next!==null,cl=0,sr=er=In=null,wm=!1,t)throw Error(et(300));return e}function Ab(){var e=Tu!==0;return Tu=0,e}function da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?In.memoizedState=sr=e:sr=sr.next=e,sr}function Po(){if(er===null){var e=In.alternate;e=e!==null?e.memoizedState:null}else e=er.next;var t=sr===null?In.memoizedState:sr.next;if(t!==null)sr=t,er=e;else{if(e===null)throw Error(et(310));er=e,e={memoizedState:er.memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},sr===null?In.memoizedState=sr=e:sr=sr.next=e}return sr}function _u(e,t){return typeof t=="function"?t(e):t}function gh(e){var t=Po(),n=t.queue;if(n===null)throw Error(et(311));n.lastRenderedReducer=e;var r=er,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 s=i=null,c=null,u=a;do{var d=u.lane;if((cl&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=f,i=r):c=c.next=f,In.lanes|=d,ul|=d}u=u.next}while(u!==null&&u!==a);c===null?i=r:c.next=s,Yo(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,In.lanes|=a,ul|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hh(e){var t=Po(),n=t.queue;if(n===null)throw Error(et(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);Yo(a,t.memoizedState)||(Xr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function iO(){}function lO(e,t){var n=In,r=Po(),o=t(),a=!Yo(r.memoizedState,o);if(a&&(r.memoizedState=o,Xr=!0),r=r.queue,Hb(uO.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||sr!==null&&sr.memoizedState.tag&1){if(n.flags|=2048,Du(9,cO.bind(null,n,r,o,t),void 0,null),cr===null)throw Error(et(349));cl&30||sO(n,t,o)}return o}function sO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=In.updateQueue,t===null?(t={lastEffect:null,stores:null},In.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cO(e,t,n,r){t.value=n,t.getSnapshot=r,dO(t)&&fO(e)}function uO(e,t,n){return n(function(){dO(t)&&fO(e)})}function dO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yo(e,n)}catch{return!0}}function fO(e){var t=za(e,1);t!==null&&Uo(t,e,1,-1)}function TS(e){var t=da();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_u,lastRenderedState:e},t.queue=e,e=e.dispatch=Z5.bind(null,In,e),[t.memoizedState,e]}function Du(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=In.updateQueue,t===null?(t={lastEffect:null,stores:null},In.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 mO(){return Po().memoizedState}function zf(e,t,n,r){var o=da();In.flags|=e,o.memoizedState=Du(1|t,n,void 0,r===void 0?null:r)}function hv(e,t,n,r){var o=Po();r=r===void 0?null:r;var a=void 0;if(er!==null){var i=er.memoizedState;if(a=i.destroy,r!==null&&Fb(r,i.deps)){o.memoizedState=Du(t,n,a,r);return}}In.flags|=e,o.memoizedState=Du(1|t,n,a,r)}function _S(e,t){return zf(8390656,8,e,t)}function Hb(e,t){return hv(2048,8,e,t)}function vO(e,t){return hv(4,2,e,t)}function gO(e,t){return hv(4,4,e,t)}function hO(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 pO(e,t,n){return n=n!=null?n.concat([e]):null,hv(4,4,hO.bind(null,t,e),n)}function Vb(){}function yO(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bO(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fb(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function CO(e,t,n){return cl&21?(Yo(n,t)||(n=E4(),In.lanes|=n,ul|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xr=!0),e.memoizedState=n)}function Q5(e,t){var n=sn;sn=n!==0&&4>n?n:4,e(!0);var r=vh.transition;vh.transition={};try{e(!1),t()}finally{sn=n,vh.transition=r}}function SO(){return Po().memoizedState}function J5(e,t,n){var r=hi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xO(e))wO(t,n);else if(n=rO(e,t,n,r),n!==null){var o=Fr();Uo(n,e,r,o),$O(n,t,r)}}function Z5(e,t,n){var r=hi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xO(e))wO(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,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Yo(s,i)){var c=t.interleaved;c===null?(o.next=o,Db(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=rO(e,t,o,r),n!==null&&(o=Fr(),Uo(n,e,r,o),$O(n,t,r))}}function xO(e){var t=e.alternate;return e===In||t!==null&&t===In}function wO(e,t){au=wm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $O(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cb(e,n)}}var $m={readContext:Io,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},eT={readContext:Io,useCallback:function(e,t){return da().memoizedState=[e,t===void 0?null:t],e},useContext:Io,useEffect:_S,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zf(4194308,4,hO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zf(4194308,4,e,t)},useInsertionEffect:function(e,t){return zf(4,2,e,t)},useMemo:function(e,t){var n=da();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=da();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=J5.bind(null,In,e),[r.memoizedState,e]},useRef:function(e){var t=da();return e={current:e},t.memoizedState=e},useState:TS,useDebugValue:Vb,useDeferredValue:function(e){return da().memoizedState=e},useTransition:function(){var e=TS(!1),t=e[0];return e=Q5.bind(null,e[1]),da().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=In,o=da();if($n){if(n===void 0)throw Error(et(407));n=n()}else{if(n=t(),cr===null)throw Error(et(349));cl&30||sO(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,_S(uO.bind(null,r,a,e),[e]),r.flags|=2048,Du(9,cO.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=da(),t=cr.identifierPrefix;if($n){var n=Na,r=Ma;n=(r&~(1<<32-Ko(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Y5++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tT={readContext:Io,useCallback:yO,useContext:Io,useEffect:Hb,useImperativeHandle:pO,useInsertionEffect:vO,useLayoutEffect:gO,useMemo:bO,useReducer:gh,useRef:mO,useState:function(){return gh(_u)},useDebugValue:Vb,useDeferredValue:function(e){var t=Po();return CO(t,er.memoizedState,e)},useTransition:function(){var e=gh(_u)[0],t=Po().memoizedState;return[e,t]},useMutableSource:iO,useSyncExternalStore:lO,useId:SO,unstable_isNewReconciler:!1},nT={readContext:Io,useCallback:yO,useContext:Io,useEffect:Hb,useImperativeHandle:pO,useInsertionEffect:vO,useLayoutEffect:gO,useMemo:bO,useReducer:hh,useRef:mO,useState:function(){return hh(_u)},useDebugValue:Vb,useDeferredValue:function(e){var t=Po();return er===null?t.memoizedState=e:CO(t,er.memoizedState,e)},useTransition:function(){var e=hh(_u)[0],t=Po().memoizedState;return[e,t]},useMutableSource:iO,useSyncExternalStore:lO,useId:SO,unstable_isNewReconciler:!1};function zo(e,t){if(e&&e.defaultProps){t=Pn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function d0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pv={isMounted:function(e){return(e=e._reactInternals)?xl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fr(),o=hi(e),a=Ta(r,o);a.payload=t,n!=null&&(a.callback=n),t=vi(e,a,o),t!==null&&(Uo(t,e,o,r),kf(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fr(),o=hi(e),a=Ta(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=vi(e,a,o),t!==null&&(Uo(t,e,o,r),kf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fr(),r=hi(e),o=Ta(n,r);o.tag=2,t!=null&&(o.callback=t),t=vi(e,o,r),t!==null&&(Uo(t,e,r,n),kf(t,e,r))}};function DS(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?!Ou(n,r)||!Ou(o,a):!0}function EO(e,t,n){var r=!1,o=Ci,a=t.contextType;return typeof a=="object"&&a!==null?a=Io(a):(o=Qr(t)?ll:Mr.current,r=t.contextTypes,a=(r=r!=null)?Ms(e,o):Ci),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function kS(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&&pv.enqueueReplaceState(t,t.state,null)}function f0(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},kb(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=Io(a):(a=Qr(t)?ll:Mr.current,o.context=Ms(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(d0(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&&pv.enqueueReplaceState(o,o.state,null),Sm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ds(e,t){try{var n="",r=t;do n+=M8(r),r=r.return;while(r);var o=n}catch(a){o=`
|
|
39
|
-
Error generating stack: `+a.message+`
|
|
40
|
-
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function ph(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function m0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rT=typeof WeakMap=="function"?WeakMap:Map;function OO(e,t,n){n=Ta(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Om||(Om=!0,w0=r),m0(e,t)},n}function RO(e,t,n){n=Ta(-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(){m0(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){m0(e,t),typeof r!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function jS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rT;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=pT.bind(null,e,t,n),t.then(e,e))}function zS(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 LS(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=Ta(-1,1),t.tag=2,vi(n,t,1))),n.lanes|=1),e)}var oT=Aa.ReactCurrentOwner,Xr=!1;function jr(e,t,n,r){t.child=e===null?nO(t,null,n,r):Ts(t,e.child,n,r)}function FS(e,t,n,r,o){n=n.render;var a=t.ref;return Ss(t,o),r=Bb(e,t,n,r,a,o),n=Ab(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,La(e,t,o)):($n&&n&&Ib(t),t.flags|=1,jr(e,t,r,o),t.child)}function BS(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Qb(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,IO(e,t,a,r,o)):(e=Af(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:Ou,n(i,r)&&e.ref===t.ref)return La(e,t,o)}return t.flags|=1,e=pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function IO(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(Ou(a,r)&&e.ref===t.ref)if(Xr=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Xr=!0);else return t.lanes=e.lanes,La(e,t,o)}return v0(e,t,n,r,o)}function PO(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},hn(ds,oo),oo|=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,hn(ds,oo),oo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,hn(ds,oo),oo|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,hn(ds,oo),oo|=r;return jr(e,t,o,n),t.child}function MO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function v0(e,t,n,r,o){var a=Qr(n)?ll:Mr.current;return a=Ms(t,a),Ss(t,o),n=Bb(e,t,n,r,a,o),r=Ab(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,La(e,t,o)):($n&&r&&Ib(t),t.flags|=1,jr(e,t,n,o),t.child)}function AS(e,t,n,r,o){if(Qr(n)){var a=!0;hm(t)}else a=!1;if(Ss(t,o),t.stateNode===null)Lf(e,t),EO(t,n,r),f0(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Io(u):(u=Qr(n)?ll:Mr.current,u=Ms(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&kS(t,i,r,u),Za=!1;var m=t.memoizedState;i.state=m,Sm(t,r,i,o),c=t.memoizedState,s!==r||m!==c||Yr.current||Za?(typeof d=="function"&&(d0(t,n,d,r),c=t.memoizedState),(s=Za||DS(t,n,s,r,m,c,u))?(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=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oO(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:zo(t.type,s),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Io(c):(c=Qr(n)?ll:Mr.current,c=Ms(t,c));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||m!==c)&&kS(t,i,r,c),Za=!1,m=t.memoizedState,i.state=m,Sm(t,r,i,o);var g=t.memoizedState;s!==f||m!==g||Yr.current||Za?(typeof v=="function"&&(d0(t,n,v,r),g=t.memoizedState),(u=Za||DS(t,n,u,r,m,g,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return g0(e,t,n,r,a,o)}function g0(e,t,n,r,o,a){MO(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&OS(t,n,!1),La(e,t,a);r=t.stateNode,oT.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ts(t,e.child,null,a),t.child=Ts(t,null,s,a)):jr(e,t,s,a),t.memoizedState=r.state,o&&OS(t,n,!0),t.child}function NO(e){var t=e.stateNode;t.pendingContext?ES(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ES(e,t.context,!1),jb(e,t.containerInfo)}function HS(e,t,n,r,o){return Ns(),Mb(o),t.flags|=256,jr(e,t,n,r),t.child}var h0={dehydrated:null,treeContext:null,retryLane:0};function p0(e){return{baseLanes:e,cachePool:null,transitions:null}}function TO(e,t,n){var r=t.pendingProps,o=Rn.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),hn(Rn,o&1),e===null)return c0(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=Cv(i,r,0,null),e=rl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=p0(n),t.memoizedState=h0,e):Wb(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return aT(e,t,i,r,s,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=pi(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=pi(s,a):(a=rl(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?p0(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=h0,r}return a=e.child,e=a.sibling,r=pi(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 Wb(e,t){return t=Cv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qd(e,t,n,r){return r!==null&&Mb(r),Ts(t,e.child,null,n),e=Wb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aT(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=ph(Error(et(422))),Qd(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Cv({mode:"visible",children:r.children},o,0,null),a=rl(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Ts(t,e.child,null,i),t.child.memoizedState=p0(i),t.memoizedState=h0,a);if(!(t.mode&1))return Qd(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(et(419)),r=ph(a,r,void 0),Qd(e,t,i,r)}if(s=(i&e.childLanes)!==0,Xr||s){if(r=cr,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,za(e,o),Uo(r,e,o,-1))}return Yb(),r=ph(Error(et(421))),Qd(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=yT.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,so=mi(o.nextSibling),uo=t,$n=!0,Ho=null,e!==null&&(wo[$o++]=Ma,wo[$o++]=Na,wo[$o++]=sl,Ma=e.id,Na=e.overflow,sl=t),t=Wb(t,r.children),t.flags|=4096,t)}function VS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),u0(e.return,t,n)}function yh(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 _O(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(jr(e,t,r.children,n),r=Rn.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&&VS(e,n,t);else if(e.tag===19)VS(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(hn(Rn,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&&xm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),yh(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&&xm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}yh(t,!0,n,null,a);break;case"together":yh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function La(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ul|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(et(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iT(e,t,n){switch(t.tag){case 3:NO(t),Ns();break;case 5:aO(t);break;case 1:Qr(t.type)&&hm(t);break;case 4:jb(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;hn(bm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(hn(Rn,Rn.current&1),t.flags|=128,null):n&t.child.childLanes?TO(e,t,n):(hn(Rn,Rn.current&1),e=La(e,t,n),e!==null?e.sibling:null);hn(Rn,Rn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _O(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),hn(Rn,Rn.current),r)break;return null;case 22:case 23:return t.lanes=0,PO(e,t,n)}return La(e,t,n)}var DO,y0,kO,jO;DO=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}};y0=function(){};kO=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(ha.current);var a=null;switch(n){case"input":o=Bp(e,o),r=Bp(e,r),a=[];break;case"select":o=Pn({},o,{value:void 0}),r=Pn({},r,{value:void 0}),a=[];break;case"textarea":o=Vp(e,o),r=Vp(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vm)}Kp(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(bu.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(bu.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&yn("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};jO=function(e,t,n,r){n!==r&&(t.flags|=4)};function Oc(e,t){if(!$n)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 wr(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 lT(e,t,n){var r=t.pendingProps;switch(Pb(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wr(t),null;case 1:return Qr(t.type)&&gm(),wr(t),null;case 3:return r=t.stateNode,_s(),bn(Yr),bn(Mr),Lb(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ho!==null&&(O0(Ho),Ho=null))),y0(e,t),wr(t),null;case 5:zb(t);var o=Gi(Nu.current);if(n=t.type,e!==null&&t.stateNode!=null)kO(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(et(166));return wr(t),null}if(e=Gi(ha.current),Xd(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[va]=t,r[Pu]=a,e=(t.mode&1)!==0,n){case"dialog":yn("cancel",r),yn("close",r);break;case"iframe":case"object":case"embed":yn("load",r);break;case"video":case"audio":for(o=0;o<Uc.length;o++)yn(Uc[o],r);break;case"source":yn("error",r);break;case"img":case"image":case"link":yn("error",r),yn("load",r);break;case"details":yn("toggle",r);break;case"input":JC(r,a),yn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},yn("invalid",r);break;case"textarea":eS(r,a),yn("invalid",r)}Kp(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&Gd(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Gd(r.textContent,s,e),o=["children",""+s]):bu.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&yn("scroll",r)}switch(n){case"input":Bd(r),ZC(r,a,!0);break;case"textarea":Bd(r),tS(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=vm)}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=u4(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[va]=t,e[Pu]=r,DO(e,t,!1,!1),t.stateNode=e;e:{switch(i=Up(n,r),n){case"dialog":yn("cancel",e),yn("close",e),o=r;break;case"iframe":case"object":case"embed":yn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Uc.length;o++)yn(Uc[o],e);o=r;break;case"source":yn("error",e),o=r;break;case"img":case"image":case"link":yn("error",e),yn("load",e),o=r;break;case"details":yn("toggle",e),o=r;break;case"input":JC(e,r),o=Bp(e,r),yn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Pn({},r,{value:void 0}),yn("invalid",e);break;case"textarea":eS(e,r),o=Vp(e,r),yn("invalid",e);break;default:o=r}Kp(n,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?m4(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&d4(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Cu(e,c):typeof c=="number"&&Cu(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(bu.hasOwnProperty(a)?c!=null&&a==="onScroll"&&yn("scroll",e):c!=null&&vb(e,a,c,i))}switch(n){case"input":Bd(e),ZC(e,r,!1);break;case"textarea":Bd(e),tS(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ps(e,!!r.multiple,a,!1):r.defaultValue!=null&&ps(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vm)}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 wr(t),null;case 6:if(e&&t.stateNode!=null)jO(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(et(166));if(n=Gi(Nu.current),Gi(ha.current),Xd(t)){if(r=t.stateNode,n=t.memoizedProps,r[va]=t,(a=r.nodeValue!==n)&&(e=uo,e!==null))switch(e.tag){case 3:Gd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gd(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[va]=t,t.stateNode=r}return wr(t),null;case 13:if(bn(Rn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($n&&so!==null&&t.mode&1&&!(t.flags&128))eO(),Ns(),t.flags|=98560,a=!1;else if(a=Xd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(et(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(et(317));a[va]=t}else Ns(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;wr(t),a=!1}else Ho!==null&&(O0(Ho),Ho=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||Rn.current&1?tr===0&&(tr=3):Yb())),t.updateQueue!==null&&(t.flags|=4),wr(t),null);case 4:return _s(),y0(e,t),e===null&&Ru(t.stateNode.containerInfo),wr(t),null;case 10:return _b(t.type._context),wr(t),null;case 17:return Qr(t.type)&&gm(),wr(t),null;case 19:if(bn(Rn),a=t.memoizedState,a===null)return wr(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Oc(a,!1);else{if(tr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xm(e),i!==null){for(t.flags|=128,Oc(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 hn(Rn,Rn.current&1|2),t.child}e=e.sibling}a.tail!==null&&Fn()>ks&&(t.flags|=128,r=!0,Oc(a,!1),t.lanes=4194304)}else{if(!r)if(e=xm(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!$n)return wr(t),null}else 2*Fn()-a.renderingStartTime>ks&&n!==1073741824&&(t.flags|=128,r=!0,Oc(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=Fn(),t.sibling=null,n=Rn.current,hn(Rn,r?n&1|2:n&1),t):(wr(t),null);case 22:case 23:return Xb(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?oo&1073741824&&(wr(t),t.subtreeFlags&6&&(t.flags|=8192)):wr(t),null;case 24:return null;case 25:return null}throw Error(et(156,t.tag))}function sT(e,t){switch(Pb(t),t.tag){case 1:return Qr(t.type)&&gm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _s(),bn(Yr),bn(Mr),Lb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zb(t),null;case 13:if(bn(Rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(et(340));Ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bn(Rn),null;case 4:return _s(),null;case 10:return _b(t.type._context),null;case 22:case 23:return Xb(),null;case 24:return null;default:return null}}var Jd=!1,Ir=!1,cT=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function us(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tn(e,t,r)}else n.current=null}function b0(e,t,n){try{n()}catch(r){Tn(e,t,r)}}var WS=!1;function uT(e,t){if(n0=dm,e=A4(),Rb(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,s=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++u===o&&(s=i),m===a&&++d===r&&(c=i),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(r0={focusedElem:e,selectionRange:n},dm=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){t=Nt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,y=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?b:zo(t.type,b),y);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(et(163))}}catch(S){Tn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}return g=WS,WS=!1,g}function iu(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&&b0(t,n,a)}o=o.next}while(o!==r)}}function yv(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 C0(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 zO(e){var t=e.alternate;t!==null&&(e.alternate=null,zO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[va],delete t[Pu],delete t[i0],delete t[U5],delete t[q5])),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 LO(e){return e.tag===5||e.tag===3||e.tag===4}function KS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||LO(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 S0(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=vm));else if(r!==4&&(e=e.child,e!==null))for(S0(e,t,n),e=e.sibling;e!==null;)S0(e,t,n),e=e.sibling}function x0(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(x0(e,t,n),e=e.sibling;e!==null;)x0(e,t,n),e=e.sibling}var mr=null,Fo=!1;function Ka(e,t,n){for(n=n.child;n!==null;)FO(e,t,n),n=n.sibling}function FO(e,t,n){if(ga&&typeof ga.onCommitFiberUnmount=="function")try{ga.onCommitFiberUnmount(uv,n)}catch{}switch(n.tag){case 5:Ir||us(n,t);case 6:var r=mr,o=Fo;mr=null,Ka(e,t,n),mr=r,Fo=o,mr!==null&&(Fo?(e=mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mr.removeChild(n.stateNode));break;case 18:mr!==null&&(Fo?(e=mr,n=n.stateNode,e.nodeType===8?dh(e.parentNode,n):e.nodeType===1&&dh(e,n),$u(e)):dh(mr,n.stateNode));break;case 4:r=mr,o=Fo,mr=n.stateNode.containerInfo,Fo=!0,Ka(e,t,n),mr=r,Fo=o;break;case 0:case 11:case 14:case 15:if(!Ir&&(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)&&b0(n,t,i),o=o.next}while(o!==r)}Ka(e,t,n);break;case 1:if(!Ir&&(us(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Tn(n,t,s)}Ka(e,t,n);break;case 21:Ka(e,t,n);break;case 22:n.mode&1?(Ir=(r=Ir)||n.memoizedState!==null,Ka(e,t,n),Ir=r):Ka(e,t,n);break;default:Ka(e,t,n)}}function US(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cT),t.forEach(function(r){var o=bT.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ko(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,s=i;e:for(;s!==null;){switch(s.tag){case 5:mr=s.stateNode,Fo=!1;break e;case 3:mr=s.stateNode.containerInfo,Fo=!0;break e;case 4:mr=s.stateNode.containerInfo,Fo=!0;break e}s=s.return}if(mr===null)throw Error(et(160));FO(a,i,o),mr=null,Fo=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Tn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)BO(t,e),t=t.sibling}function BO(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ko(t,e),sa(e),r&4){try{iu(3,e,e.return),yv(3,e)}catch(b){Tn(e,e.return,b)}try{iu(5,e,e.return)}catch(b){Tn(e,e.return,b)}}break;case 1:ko(t,e),sa(e),r&512&&n!==null&&us(n,n.return);break;case 5:if(ko(t,e),sa(e),r&512&&n!==null&&us(n,n.return),e.flags&32){var o=e.stateNode;try{Cu(o,"")}catch(b){Tn(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&s4(o,a),Up(s,i);var u=Up(s,a);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?m4(o,f):d==="dangerouslySetInnerHTML"?d4(o,f):d==="children"?Cu(o,f):vb(o,d,f,u)}switch(s){case"input":Ap(o,a);break;case"textarea":c4(o,a);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?ps(o,!!a.multiple,v,!1):m!==!!a.multiple&&(a.defaultValue!=null?ps(o,!!a.multiple,a.defaultValue,!0):ps(o,!!a.multiple,a.multiple?[]:"",!1))}o[Pu]=a}catch(b){Tn(e,e.return,b)}}break;case 6:if(ko(t,e),sa(e),r&4){if(e.stateNode===null)throw Error(et(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(b){Tn(e,e.return,b)}}break;case 3:if(ko(t,e),sa(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$u(t.containerInfo)}catch(b){Tn(e,e.return,b)}break;case 4:ko(t,e),sa(e);break;case 13:ko(t,e),sa(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(qb=Fn())),r&4&&US(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ir=(u=Ir)||d,ko(t,e),Ir=u):ko(t,e),sa(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Nt=e,d=e.child;d!==null;){for(f=Nt=d;Nt!==null;){switch(m=Nt,v=m.child,m.tag){case 0:case 11:case 14:case 15:iu(4,m,m.return);break;case 1:us(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(b){Tn(r,n,b)}}break;case 5:us(m,m.return);break;case 22:if(m.memoizedState!==null){GS(f);continue}}v!==null?(v.return=m,Nt=v):GS(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=f4("display",i))}catch(b){Tn(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(b){Tn(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:ko(t,e),sa(e),r&4&&US(e);break;case 21:break;default:ko(t,e),sa(e)}}function sa(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(LO(n)){var r=n;break e}n=n.return}throw Error(et(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Cu(o,""),r.flags&=-33);var a=KS(e);x0(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=KS(e);S0(e,s,i);break;default:throw Error(et(161))}}catch(c){Tn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dT(e,t,n){Nt=e,AO(e)}function AO(e,t,n){for(var r=(e.mode&1)!==0;Nt!==null;){var o=Nt,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Jd;if(!i){var s=o.alternate,c=s!==null&&s.memoizedState!==null||Ir;s=Jd;var u=Ir;if(Jd=i,(Ir=c)&&!u)for(Nt=o;Nt!==null;)i=Nt,c=i.child,i.tag===22&&i.memoizedState!==null?XS(o):c!==null?(c.return=i,Nt=c):XS(o);for(;a!==null;)Nt=a,AO(a),a=a.sibling;Nt=o,Jd=s,Ir=u}qS(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,Nt=a):qS(e)}}function qS(e){for(;Nt!==null;){var t=Nt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ir||yv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ir)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zo(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&NS(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}NS(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&$u(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(et(163))}Ir||t.flags&512&&C0(t)}catch(m){Tn(t,t.return,m)}}if(t===e){Nt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Nt=n;break}Nt=t.return}}function GS(e){for(;Nt!==null;){var t=Nt;if(t===e){Nt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Nt=n;break}Nt=t.return}}function XS(e){for(;Nt!==null;){var t=Nt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yv(4,t)}catch(c){Tn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Tn(t,o,c)}}var a=t.return;try{C0(t)}catch(c){Tn(t,a,c)}break;case 5:var i=t.return;try{C0(t)}catch(c){Tn(t,i,c)}}}catch(c){Tn(t,t.return,c)}if(t===e){Nt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Nt=s;break}Nt=t.return}}var fT=Math.ceil,Em=Aa.ReactCurrentDispatcher,Kb=Aa.ReactCurrentOwner,Ro=Aa.ReactCurrentBatchConfig,nn=0,cr=null,Yn=null,vr=0,oo=0,ds=Ii(0),tr=0,ku=null,ul=0,bv=0,Ub=0,lu=null,qr=null,qb=0,ks=1/0,Ia=null,Om=!1,w0=null,gi=null,Zd=!1,ai=null,Rm=0,su=0,$0=null,Ff=-1,Bf=0;function Fr(){return nn&6?Fn():Ff!==-1?Ff:Ff=Fn()}function hi(e){return e.mode&1?nn&2&&vr!==0?vr&-vr:X5.transition!==null?(Bf===0&&(Bf=E4()),Bf):(e=sn,e!==0||(e=window.event,e=e===void 0?16:T4(e.type)),e):1}function Uo(e,t,n,r){if(50<su)throw su=0,$0=null,Error(et(185));ld(e,n,r),(!(nn&2)||e!==cr)&&(e===cr&&(!(nn&2)&&(bv|=n),tr===4&&ni(e,vr)),Jr(e,r),n===1&&nn===0&&!(t.mode&1)&&(ks=Fn()+500,gv&&Pi()))}function Jr(e,t){var n=e.callbackNode;X8(e,t);var r=um(e,e===cr?vr:0);if(r===0)n!==null&&oS(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oS(n),t===1)e.tag===0?G5(YS.bind(null,e)):Q4(YS.bind(null,e)),W5(function(){!(nn&6)&&Pi()}),n=null;else{switch(O4(r)){case 1:n=bb;break;case 4:n=w4;break;case 16:n=cm;break;case 536870912:n=$4;break;default:n=cm}n=XO(n,HO.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function HO(e,t){if(Ff=-1,Bf=0,nn&6)throw Error(et(327));var n=e.callbackNode;if(xs()&&e.callbackNode!==n)return null;var r=um(e,e===cr?vr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Im(e,r);else{t=r;var o=nn;nn|=2;var a=WO();(cr!==e||vr!==t)&&(Ia=null,ks=Fn()+500,nl(e,t));do try{gT();break}catch(s){VO(e,s)}while(!0);Tb(),Em.current=a,nn=o,Yn!==null?t=0:(cr=null,vr=0,t=tr)}if(t!==0){if(t===2&&(o=Qp(e),o!==0&&(r=o,t=E0(e,o))),t===1)throw n=ku,nl(e,0),ni(e,r),Jr(e,Fn()),n;if(t===6)ni(e,r);else{if(o=e.current.alternate,!(r&30)&&!mT(o)&&(t=Im(e,r),t===2&&(a=Qp(e),a!==0&&(r=a,t=E0(e,a))),t===1))throw n=ku,nl(e,0),ni(e,r),Jr(e,Fn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(et(345));case 2:Bi(e,qr,Ia);break;case 3:if(ni(e,r),(r&130023424)===r&&(t=qb+500-Fn(),10<t)){if(um(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Fr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=a0(Bi.bind(null,e,qr,Ia),t);break}Bi(e,qr,Ia);break;case 4:if(ni(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Ko(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fT(r/1960))-r,10<r){e.timeoutHandle=a0(Bi.bind(null,e,qr,Ia),r);break}Bi(e,qr,Ia);break;case 5:Bi(e,qr,Ia);break;default:throw Error(et(329))}}}return Jr(e,Fn()),e.callbackNode===n?HO.bind(null,e):null}function E0(e,t){var n=lu;return e.current.memoizedState.isDehydrated&&(nl(e,t).flags|=256),e=Im(e,t),e!==2&&(t=qr,qr=n,t!==null&&O0(t)),e}function O0(e){qr===null?qr=e:qr.push.apply(qr,e)}function mT(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(!Yo(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 ni(e,t){for(t&=~Ub,t&=~bv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ko(t),r=1<<n;e[n]=-1,t&=~r}}function YS(e){if(nn&6)throw Error(et(327));xs();var t=um(e,0);if(!(t&1))return Jr(e,Fn()),null;var n=Im(e,t);if(e.tag!==0&&n===2){var r=Qp(e);r!==0&&(t=r,n=E0(e,r))}if(n===1)throw n=ku,nl(e,0),ni(e,t),Jr(e,Fn()),n;if(n===6)throw Error(et(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bi(e,qr,Ia),Jr(e,Fn()),null}function Gb(e,t){var n=nn;nn|=1;try{return e(t)}finally{nn=n,nn===0&&(ks=Fn()+500,gv&&Pi())}}function dl(e){ai!==null&&ai.tag===0&&!(nn&6)&&xs();var t=nn;nn|=1;var n=Ro.transition,r=sn;try{if(Ro.transition=null,sn=1,e)return e()}finally{sn=r,Ro.transition=n,nn=t,!(nn&6)&&Pi()}}function Xb(){oo=ds.current,bn(ds)}function nl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V5(n)),Yn!==null)for(n=Yn.return;n!==null;){var r=n;switch(Pb(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gm();break;case 3:_s(),bn(Yr),bn(Mr),Lb();break;case 5:zb(r);break;case 4:_s();break;case 13:bn(Rn);break;case 19:bn(Rn);break;case 10:_b(r.type._context);break;case 22:case 23:Xb()}n=n.return}if(cr=e,Yn=e=pi(e.current,null),vr=oo=t,tr=0,ku=null,Ub=bv=ul=0,qr=lu=null,qi!==null){for(t=0;t<qi.length;t++)if(n=qi[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}qi=null}return e}function VO(e,t){do{var n=Yn;try{if(Tb(),jf.current=$m,wm){for(var r=In.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}wm=!1}if(cl=0,sr=er=In=null,au=!1,Tu=0,Kb.current=null,n===null||n.return===null){tr=1,ku=t,Yn=null;break}e:{var a=e,i=n.return,s=n,c=t;if(t=vr,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=zS(i);if(v!==null){v.flags&=-257,LS(v,i,s,a,t),v.mode&1&&jS(a,u,t),t=v,c=u;var g=t.updateQueue;if(g===null){var b=new Set;b.add(c),t.updateQueue=b}else g.add(c);break e}else{if(!(t&1)){jS(a,u,t),Yb();break e}c=Error(et(426))}}else if($n&&s.mode&1){var y=zS(i);if(y!==null){!(y.flags&65536)&&(y.flags|=256),LS(y,i,s,a,t),Mb(Ds(c,s));break e}}a=c=Ds(c,s),tr!==4&&(tr=2),lu===null?lu=[a]:lu.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var h=OO(a,c,t);MS(a,h);break e;case 1:s=c;var p=a.type,C=a.stateNode;if(!(a.flags&128)&&(typeof p.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(gi===null||!gi.has(C)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=RO(a,s,t);MS(a,S);break e}}a=a.return}while(a!==null)}UO(n)}catch(x){t=x,Yn===n&&n!==null&&(Yn=n=n.return);continue}break}while(!0)}function WO(){var e=Em.current;return Em.current=$m,e===null?$m:e}function Yb(){(tr===0||tr===3||tr===2)&&(tr=4),cr===null||!(ul&268435455)&&!(bv&268435455)||ni(cr,vr)}function Im(e,t){var n=nn;nn|=2;var r=WO();(cr!==e||vr!==t)&&(Ia=null,nl(e,t));do try{vT();break}catch(o){VO(e,o)}while(!0);if(Tb(),nn=n,Em.current=r,Yn!==null)throw Error(et(261));return cr=null,vr=0,tr}function vT(){for(;Yn!==null;)KO(Yn)}function gT(){for(;Yn!==null&&!B8();)KO(Yn)}function KO(e){var t=GO(e.alternate,e,oo);e.memoizedProps=e.pendingProps,t===null?UO(e):Yn=t,Kb.current=null}function UO(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=sT(n,t),n!==null){n.flags&=32767,Yn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tr=6,Yn=null;return}}else if(n=lT(n,t,oo),n!==null){Yn=n;return}if(t=t.sibling,t!==null){Yn=t;return}Yn=t=e}while(t!==null);tr===0&&(tr=5)}function Bi(e,t,n){var r=sn,o=Ro.transition;try{Ro.transition=null,sn=1,hT(e,t,n,r)}finally{Ro.transition=o,sn=r}return null}function hT(e,t,n,r){do xs();while(ai!==null);if(nn&6)throw Error(et(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(et(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Y8(e,a),e===cr&&(Yn=cr=null,vr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zd||(Zd=!0,XO(cm,function(){return xs(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Ro.transition,Ro.transition=null;var i=sn;sn=1;var s=nn;nn|=4,Kb.current=null,uT(e,n),BO(n,e),j5(r0),dm=!!n0,r0=n0=null,e.current=n,dT(n),A8(),nn=s,sn=i,Ro.transition=a}else e.current=n;if(Zd&&(Zd=!1,ai=e,Rm=o),a=e.pendingLanes,a===0&&(gi=null),W8(n.stateNode),Jr(e,Fn()),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(Om)throw Om=!1,e=w0,w0=null,e;return Rm&1&&e.tag!==0&&xs(),a=e.pendingLanes,a&1?e===$0?su++:(su=0,$0=e):su=0,Pi(),null}function xs(){if(ai!==null){var e=O4(Rm),t=Ro.transition,n=sn;try{if(Ro.transition=null,sn=16>e?16:e,ai===null)var r=!1;else{if(e=ai,ai=null,Rm=0,nn&6)throw Error(et(331));var o=nn;for(nn|=4,Nt=e.current;Nt!==null;){var a=Nt,i=a.child;if(Nt.flags&16){var s=a.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(Nt=u;Nt!==null;){var d=Nt;switch(d.tag){case 0:case 11:case 15:iu(8,d,a)}var f=d.child;if(f!==null)f.return=d,Nt=f;else for(;Nt!==null;){d=Nt;var m=d.sibling,v=d.return;if(zO(d),d===u){Nt=null;break}if(m!==null){m.return=v,Nt=m;break}Nt=v}}}var g=a.alternate;if(g!==null){var b=g.child;if(b!==null){g.child=null;do{var y=b.sibling;b.sibling=null,b=y}while(b!==null)}}Nt=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,Nt=i;else e:for(;Nt!==null;){if(a=Nt,a.flags&2048)switch(a.tag){case 0:case 11:case 15:iu(9,a,a.return)}var h=a.sibling;if(h!==null){h.return=a.return,Nt=h;break e}Nt=a.return}}var p=e.current;for(Nt=p;Nt!==null;){i=Nt;var C=i.child;if(i.subtreeFlags&2064&&C!==null)C.return=i,Nt=C;else e:for(i=p;Nt!==null;){if(s=Nt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:yv(9,s)}}catch(x){Tn(s,s.return,x)}if(s===i){Nt=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Nt=S;break e}Nt=s.return}}if(nn=o,Pi(),ga&&typeof ga.onPostCommitFiberRoot=="function")try{ga.onPostCommitFiberRoot(uv,e)}catch{}r=!0}return r}finally{sn=n,Ro.transition=t}}return!1}function QS(e,t,n){t=Ds(n,t),t=OO(e,t,1),e=vi(e,t,1),t=Fr(),e!==null&&(ld(e,1,t),Jr(e,t))}function Tn(e,t,n){if(e.tag===3)QS(e,e,n);else for(;t!==null;){if(t.tag===3){QS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gi===null||!gi.has(r))){e=Ds(n,e),e=RO(t,e,1),t=vi(t,e,1),e=Fr(),t!==null&&(ld(t,1,e),Jr(t,e));break}}t=t.return}}function pT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Fr(),e.pingedLanes|=e.suspendedLanes&n,cr===e&&(vr&n)===n&&(tr===4||tr===3&&(vr&130023424)===vr&&500>Fn()-qb?nl(e,0):Ub|=n),Jr(e,t)}function qO(e,t){t===0&&(e.mode&1?(t=Vd,Vd<<=1,!(Vd&130023424)&&(Vd=4194304)):t=1);var n=Fr();e=za(e,t),e!==null&&(ld(e,t,n),Jr(e,n))}function yT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qO(e,n)}function bT(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(et(314))}r!==null&&r.delete(t),qO(e,n)}var GO;GO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yr.current)Xr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xr=!1,iT(e,t,n);Xr=!!(e.flags&131072)}else Xr=!1,$n&&t.flags&1048576&&J4(t,ym,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lf(e,t),e=t.pendingProps;var o=Ms(t,Mr.current);Ss(t,n),o=Bb(null,t,r,e,o,n);var a=Ab();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,Qr(r)?(a=!0,hm(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kb(t),o.updater=pv,t.stateNode=o,o._reactInternals=t,f0(t,r,e,n),t=g0(null,t,r,!0,a,n)):(t.tag=0,$n&&a&&Ib(t),jr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lf(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ST(r),e=zo(r,e),o){case 0:t=v0(null,t,r,e,n);break e;case 1:t=AS(null,t,r,e,n);break e;case 11:t=FS(null,t,r,e,n);break e;case 14:t=BS(null,t,r,zo(r.type,e),n);break e}throw Error(et(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zo(r,o),v0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zo(r,o),AS(e,t,r,o,n);case 3:e:{if(NO(t),e===null)throw Error(et(387));r=t.pendingProps,a=t.memoizedState,o=a.element,oO(e,t),Sm(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=Ds(Error(et(423)),t),t=HS(e,t,r,n,o);break e}else if(r!==o){o=Ds(Error(et(424)),t),t=HS(e,t,r,n,o);break e}else for(so=mi(t.stateNode.containerInfo.firstChild),uo=t,$n=!0,Ho=null,n=nO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ns(),r===o){t=La(e,t,n);break e}jr(e,t,r,n)}t=t.child}return t;case 5:return aO(t),e===null&&c0(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,o0(r,o)?i=null:a!==null&&o0(r,a)&&(t.flags|=32),MO(e,t),jr(e,t,i,n),t.child;case 6:return e===null&&c0(t),null;case 13:return TO(e,t,n);case 4:return jb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ts(t,null,r,n):jr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zo(r,o),FS(e,t,r,o,n);case 7:return jr(e,t,t.pendingProps,n),t.child;case 8:return jr(e,t,t.pendingProps.children,n),t.child;case 12:return jr(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,hn(bm,r._currentValue),r._currentValue=i,a!==null)if(Yo(a.value,i)){if(a.children===o.children&&!Yr.current){t=La(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Ta(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),u0(a.return,n,t),s.lanes|=n;break}c=c.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(et(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),u0(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}jr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ss(t,n),o=Io(o),r=r(o),t.flags|=1,jr(e,t,r,n),t.child;case 14:return r=t.type,o=zo(r,t.pendingProps),o=zo(r.type,o),BS(e,t,r,o,n);case 15:return IO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zo(r,o),Lf(e,t),t.tag=1,Qr(r)?(e=!0,hm(t)):e=!1,Ss(t,n),EO(t,r,o),f0(t,r,o,n),g0(null,t,r,!0,e,n);case 19:return _O(e,t,n);case 22:return PO(e,t,n)}throw Error(et(156,t.tag))};function XO(e,t){return x4(e,t)}function CT(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 Oo(e,t,n,r){return new CT(e,t,n,r)}function Qb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ST(e){if(typeof e=="function")return Qb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hb)return 11;if(e===pb)return 14}return 2}function pi(e,t){var n=e.alternate;return n===null?(n=Oo(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 Af(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Qb(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ts:return rl(n.children,o,a,t);case gb:i=8,o|=8;break;case jp:return e=Oo(12,n,t,o|2),e.elementType=jp,e.lanes=a,e;case zp:return e=Oo(13,n,t,o),e.elementType=zp,e.lanes=a,e;case Lp:return e=Oo(19,n,t,o),e.elementType=Lp,e.lanes=a,e;case a4:return Cv(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case r4:i=10;break e;case o4:i=9;break e;case hb:i=11;break e;case pb:i=14;break e;case Ja:i=16,r=null;break e}throw Error(et(130,e==null?e:typeof e,""))}return t=Oo(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function rl(e,t,n,r){return e=Oo(7,e,r,t),e.lanes=n,e}function Cv(e,t,n,r){return e=Oo(22,e,r,t),e.elementType=a4,e.lanes=n,e.stateNode={isHidden:!1},e}function bh(e,t,n){return e=Oo(6,e,null,t),e.lanes=n,e}function Ch(e,t,n){return t=Oo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xT(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=eh(0),this.expirationTimes=eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jb(e,t,n,r,o,a,i,s,c){return e=new xT(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Oo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kb(a),e}function wT(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:es,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function YO(e){if(!e)return Ci;e=e._reactInternals;e:{if(xl(e)!==e||e.tag!==1)throw Error(et(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(et(171))}if(e.tag===1){var n=e.type;if(Qr(n))return Y4(e,n,t)}return t}function QO(e,t,n,r,o,a,i,s,c){return e=Jb(n,r,!0,e,o,a,i,s,c),e.context=YO(null),n=e.current,r=Fr(),o=hi(n),a=Ta(r,o),a.callback=t??null,vi(n,a,o),e.current.lanes=o,ld(e,o,r),Jr(e,r),e}function Sv(e,t,n,r){var o=t.current,a=Fr(),i=hi(o);return n=YO(n),t.context===null?t.context=n:t.pendingContext=n,t=Ta(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=vi(o,t,i),e!==null&&(Uo(e,o,i,a),kf(e,o,i)),i}function Pm(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 JS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zb(e,t){JS(e,t),(e=e.alternate)&&JS(e,t)}function $T(){return null}var JO=typeof reportError=="function"?reportError:function(e){console.error(e)};function e1(e){this._internalRoot=e}xv.prototype.render=e1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(et(409));Sv(e,t,null,null)};xv.prototype.unmount=e1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dl(function(){Sv(null,e,null,null)}),t[ja]=null}};function xv(e){this._internalRoot=e}xv.prototype.unstable_scheduleHydration=function(e){if(e){var t=P4();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ti.length&&t!==0&&t<ti[n].priority;n++);ti.splice(n,0,e),n===0&&N4(e)}};function t1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ZS(){}function ET(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var u=Pm(i);a.call(u)}}var i=QO(t,r,e,0,null,!1,!1,"",ZS);return e._reactRootContainer=i,e[ja]=i.current,Ru(e.nodeType===8?e.parentNode:e),dl(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Pm(c);s.call(u)}}var c=Jb(e,0,!1,null,null,!1,!1,"",ZS);return e._reactRootContainer=c,e[ja]=c.current,Ru(e.nodeType===8?e.parentNode:e),dl(function(){Sv(t,c,n,r)}),c}function $v(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var c=Pm(i);s.call(c)}}Sv(t,i,e,o)}else i=ET(n,t,e,o,r);return Pm(i)}R4=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kc(t.pendingLanes);n!==0&&(Cb(t,n|1),Jr(t,Fn()),!(nn&6)&&(ks=Fn()+500,Pi()))}break;case 13:dl(function(){var r=za(e,1);if(r!==null){var o=Fr();Uo(r,e,1,o)}}),Zb(e,1)}};Sb=function(e){if(e.tag===13){var t=za(e,134217728);if(t!==null){var n=Fr();Uo(t,e,134217728,n)}Zb(e,134217728)}};I4=function(e){if(e.tag===13){var t=hi(e),n=za(e,t);if(n!==null){var r=Fr();Uo(n,e,t,r)}Zb(e,t)}};P4=function(){return sn};M4=function(e,t){var n=sn;try{return sn=e,t()}finally{sn=n}};Gp=function(e,t,n){switch(t){case"input":if(Ap(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=vv(r);if(!o)throw Error(et(90));l4(r),Ap(r,o)}}}break;case"textarea":c4(e,n);break;case"select":t=n.value,t!=null&&ps(e,!!n.multiple,t,!1)}};h4=Gb;p4=dl;var OT={usingClientEntryPoint:!1,Events:[cd,as,vv,v4,g4,Gb]},Rc={findFiberByHostInstance:Ui,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RT={bundleType:Rc.bundleType,version:Rc.version,rendererPackageName:Rc.rendererPackageName,rendererConfig:Rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Aa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=C4(e),e===null?null:e.stateNode},findFiberByHostInstance:Rc.findFiberByHostInstance||$T,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 ef=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ef.isDisabled&&ef.supportsFiber)try{uv=ef.inject(RT),ga=ef}catch{}}vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OT;vo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t1(t))throw Error(et(200));return wT(e,t,null,n)};vo.createRoot=function(e,t){if(!t1(e))throw Error(et(299));var n=!1,r="",o=JO;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jb(e,1,!1,null,null,n,!1,r,o),e[ja]=t.current,Ru(e.nodeType===8?e.parentNode:e),new e1(t)};vo.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(et(188)):(e=Object.keys(e).join(","),Error(et(268,e)));return e=C4(t),e=e===null?null:e.stateNode,e};vo.flushSync=function(e){return dl(e)};vo.hydrate=function(e,t,n){if(!wv(t))throw Error(et(200));return $v(null,e,t,!0,n)};vo.hydrateRoot=function(e,t,n){if(!t1(e))throw Error(et(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=JO;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=QO(t,null,e,1,n??null,o,!1,a,i),e[ja]=t.current,Ru(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 xv(t)};vo.render=function(e,t,n){if(!wv(t))throw Error(et(200));return $v(null,e,t,!1,n)};vo.unmountComponentAtNode=function(e){if(!wv(e))throw Error(et(40));return e._reactRootContainer?(dl(function(){$v(null,null,e,!1,function(){e._reactRootContainer=null,e[ja]=null})}),!0):!1};vo.unstable_batchedUpdates=Gb;vo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wv(n))throw Error(et(200));if(e==null||e._reactInternals===void 0)throw Error(et(38));return $v(e,t,n,!1,r)};vo.version="18.3.1-next-f1338f8080-20240426";function ZO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZO)}catch(e){console.error(e)}}ZO(),ZE.exports=vo;var Qo=ZE.exports;const ju=mo(Qo),eR=AE({__proto__:null,default:ju},[Qo]);var ex=Qo;Dp.createRoot=ex.createRoot,Dp.hydrateRoot=ex.hydrateRoot;var tR={exports:{}};/*!
|
|
41
|
-
Copyright (c) 2018 Jed Watson.
|
|
42
|
-
Licensed under the MIT License (MIT), see
|
|
43
|
-
http://jedwatson.github.io/classnames
|
|
44
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}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 s in a)t.call(a,s)&&a[s]&&(i=o(i,s));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})()})(tR);var IT=tR.exports;const Q=mo(IT);function Ce(){return Ce=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},Ce.apply(null,arguments)}function ft(e){"@babel/helpers - typeof";return ft=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},ft(e)}var PT=Symbol.for("react.element"),MT=Symbol.for("react.transitional.element"),NT=Symbol.for("react.fragment");function nR(e){return e&&ft(e)==="object"&&(e.$$typeof===PT||e.$$typeof===MT)&&e.type===NT}function yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(yr(r)):nR(r)&&r.props?n=n.concat(yr(r.props.children,t)):n.push(r))}),n}var R0={},TT=function(t){};function _T(e,t){}function DT(e,t){}function kT(){R0={}}function rR(e,t,n){!t&&!R0[n]&&(e(!1,n),R0[n]=!0)}function pn(e,t){rR(_T,e,t)}function jT(e,t){rR(DT,e,t)}pn.preMessage=TT;pn.resetWarned=kT;pn.noteOnce=jT;function zT(e,t){if(ft(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ft(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oR(e){var t=zT(e,"string");return ft(t)=="symbol"?t:t+""}function H(e,t,n){return(t=oR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tx(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 K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(n),!0).forEach(function(r){H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zu(e){return e instanceof HTMLElement||e instanceof SVGElement}function dd(e){return e&&ft(e)==="object"&&zu(e.nativeElement)?e.nativeElement:zu(e)?e:null}function Hf(e){var t=dd(e);if(t)return t;if(e instanceof ce.Component){var n;return(n=ju.findDOMNode)===null||n===void 0?void 0:n.call(ju,e)}return null}var aR={exports:{}},cn={};/**
|
|
45
|
-
* @license React
|
|
46
|
-
* react-is.production.min.js
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var n1=Symbol.for("react.element"),r1=Symbol.for("react.portal"),Ev=Symbol.for("react.fragment"),Ov=Symbol.for("react.strict_mode"),Rv=Symbol.for("react.profiler"),Iv=Symbol.for("react.provider"),Pv=Symbol.for("react.context"),LT=Symbol.for("react.server_context"),Mv=Symbol.for("react.forward_ref"),Nv=Symbol.for("react.suspense"),Tv=Symbol.for("react.suspense_list"),_v=Symbol.for("react.memo"),Dv=Symbol.for("react.lazy"),FT=Symbol.for("react.offscreen"),iR;iR=Symbol.for("react.module.reference");function No(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case n1:switch(e=e.type,e){case Ev:case Rv:case Ov:case Nv:case Tv:return e;default:switch(e=e&&e.$$typeof,e){case LT:case Pv:case Mv:case Dv:case _v:case Iv:return e;default:return t}}case r1:return t}}}cn.ContextConsumer=Pv;cn.ContextProvider=Iv;cn.Element=n1;cn.ForwardRef=Mv;cn.Fragment=Ev;cn.Lazy=Dv;cn.Memo=_v;cn.Portal=r1;cn.Profiler=Rv;cn.StrictMode=Ov;cn.Suspense=Nv;cn.SuspenseList=Tv;cn.isAsyncMode=function(){return!1};cn.isConcurrentMode=function(){return!1};cn.isContextConsumer=function(e){return No(e)===Pv};cn.isContextProvider=function(e){return No(e)===Iv};cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===n1};cn.isForwardRef=function(e){return No(e)===Mv};cn.isFragment=function(e){return No(e)===Ev};cn.isLazy=function(e){return No(e)===Dv};cn.isMemo=function(e){return No(e)===_v};cn.isPortal=function(e){return No(e)===r1};cn.isProfiler=function(e){return No(e)===Rv};cn.isStrictMode=function(e){return No(e)===Ov};cn.isSuspense=function(e){return No(e)===Nv};cn.isSuspenseList=function(e){return No(e)===Tv};cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ev||e===Rv||e===Ov||e===Nv||e===Tv||e===FT||typeof e=="object"&&e!==null&&(e.$$typeof===Dv||e.$$typeof===_v||e.$$typeof===Iv||e.$$typeof===Pv||e.$$typeof===Mv||e.$$typeof===iR||e.getModuleId!==void 0)};cn.typeOf=No;aR.exports=cn;var Sh=aR.exports;function wl(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var BT=Number(l.version.split(".")[0]),Lu=function(t,n){typeof t=="function"?t(n):ft(t)==="object"&&t&&"current"in t&&(t.current=n)},ar=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){Lu(i,a)})}},Ha=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wl(function(){return ar.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},Jo=function(t){var n,r;if(!t)return!1;if(o1(t)&&BT>=19)return!0;var o=Sh.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Sh.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Sh.ForwardRef)};function o1(e){return l.isValidElement(e)&&!nR(e)}var AT=function(t){return o1(t)&&Jo(t)},Mi=function(t){if(t&&o1(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},I0=l.createContext(null);function HT(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),a=l.useContext(I0),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,c,u)},[n,a]);return l.createElement(I0.Provider,{value:i},t)}var lR=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}()}(),P0=typeof window<"u"&&typeof document<"u"&&window.document===document,Mm=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")()}(),VT=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Mm):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),WT=2;function KT(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){VT(a)}function s(){var c=Date.now();if(n){if(c-o<WT)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=c}return s}var UT=20,qT=["top","right","bottom","left","width","height","size","weight"],GT=typeof MutationObserver<"u",XT=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=KT(this.refresh.bind(this),UT)}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(){!P0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),GT?(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(){!P0||!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=qT.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}(),sR=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},js=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Mm},cR=kv(0,0,0,0);function Nm(e){return parseFloat(e)||0}function nx(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+Nm(a)},0)}function YT(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]=Nm(i)}return n}function QT(e){var t=e.getBBox();return kv(0,0,t.width,t.height)}function JT(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return cR;var r=js(e).getComputedStyle(e),o=YT(r),a=o.left+o.right,i=o.top+o.bottom,s=Nm(r.width),c=Nm(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=nx(r,"left","right")+a),Math.round(c+i)!==n&&(c-=nx(r,"top","bottom")+i)),!e_(e)){var u=Math.round(s+a)-t,d=Math.round(c+i)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return kv(o.left,o.top,s,c)}var ZT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof js(e).SVGGraphicsElement}:function(e){return e instanceof js(e).SVGElement&&typeof e.getBBox=="function"}}();function e_(e){return e===js(e).document.documentElement}function t_(e){return P0?ZT(e)?QT(e):JT(e):cR}function n_(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 sR(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function kv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var r_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=t_(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}(),o_=function(){function e(t,n){var r=n_(n);sR(this,{target:t,contentRect:r})}return e}(),a_=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new lR,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 js(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new r_(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 js(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 o_(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}(),uR=typeof WeakMap<"u"?new WeakMap:new lR,dR=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=XT.getInstance(),r=new a_(t,n,this);uR.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){dR.prototype[e]=function(){var t;return(t=uR.get(this))[e].apply(t,arguments)}});var i_=function(){return typeof Mm.ResizeObserver<"u"?Mm.ResizeObserver:dR}(),ii=new Map;function l_(e){e.forEach(function(t){var n,r=t.target;(n=ii.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var fR=new i_(l_);function s_(e,t){ii.has(e)||(ii.set(e,new Set),fR.observe(e)),ii.get(e).add(t)}function c_(e,t){ii.has(e)&&(ii.get(e).delete(t),ii.get(e).size||(fR.unobserve(e),ii.delete(e)))}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rx(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,oR(r.key),r)}}function On(e,t,n){return t&&rx(e.prototype,t),n&&rx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fu(e,t)}function Sa(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&&Fu(e,t)}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bu(e)}function a1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a1=function(){return!!e})()}function pt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u_(e,t){if(t&&(ft(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pt(e)}function xa(e){var t=a1();return function(){var n,r=Bu(e);if(t){var o=Bu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u_(this,n)}}var d_=function(e){Sa(n,e);var t=xa(n);function n(){return En(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function f_(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),a=l.useRef(null),i=l.useContext(I0),s=typeof n=="function",c=s?n(o):n,u=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&l.isValidElement(c)&&Jo(c),f=d?Mi(c):null,m=Ha(f,o),v=function(){var h;return Hf(o.current)||(o.current&&ft(o.current)==="object"?Hf((h=o.current)===null||h===void 0?void 0:h.nativeElement):null)||Hf(a.current)};l.useImperativeHandle(t,function(){return v()});var g=l.useRef(e);g.current=e;var b=l.useCallback(function(y){var h=g.current,p=h.onResize,C=h.data,S=y.getBoundingClientRect(),x=S.width,$=S.height,w=y.offsetWidth,O=y.offsetHeight,E=Math.floor(x),R=Math.floor($);if(u.current.width!==E||u.current.height!==R||u.current.offsetWidth!==w||u.current.offsetHeight!==O){var M={width:E,height:R,offsetWidth:w,offsetHeight:O};u.current=M;var T=w===Math.round(x)?x:w,_=O===Math.round($)?$:O,I=K(K({},M),{},{offsetWidth:T,offsetHeight:_});i==null||i(I,y,C),p&&Promise.resolve().then(function(){p(I,y)})}},[]);return l.useEffect(function(){var y=v();return y&&!r&&s_(y,b),function(){return c_(y,b)}},[o.current,r]),l.createElement(d_,{ref:a},d?l.cloneElement(c,{ref:m}):c)}var m_=l.forwardRef(f_),v_="rc-observer-key";function g_(e,t){var n=e.children,r=typeof n=="function"?[n]:yr(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(v_,"-").concat(a);return l.createElement(m_,Ce({},e,{key:i,ref:a===0?t:void 0}),o)})}var gr=l.forwardRef(g_);gr.Collection=HT;function M0(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 h_(e){if(Array.isArray(e))return M0(e)}function mR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i1(e,t){if(e){if(typeof e=="string")return M0(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)?M0(e,t):void 0}}function p_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(e){return h_(e)||mR(e)||i1(e)||p_()}var vR=function(t){return+setTimeout(t,16)},gR=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(vR=function(t){return window.requestAnimationFrame(t)},gR=function(t){return window.cancelAnimationFrame(t)});var ox=0,l1=new Map;function hR(e){l1.delete(e)}var jt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ox+=1;var r=ox;function o(a){if(a===0)hR(r),t();else{var i=vR(function(){o(a-1)});l1.set(r,i)}}return o(n),r};jt.cancel=function(e){var t=l1.get(e);return hR(e),gR(t)};function pR(e){if(Array.isArray(e))return e}function y_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function yR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z(e,t){return pR(e)||y_(e,t)||i1(e,t)||yR()}function Au(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 br(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function N0(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 ax="data-rc-order",ix="data-rc-priority",b_="rc-util-key",T0=new Map;function bR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):b_}function jv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function C_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function s1(e){return Array.from((T0.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function CR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!br())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=C_(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(ax,i),s&&a&&c.setAttribute(ix,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=jv(t),d=u.firstChild;if(r){if(s){var f=(t.styles||s1(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(ax)))return!1;var v=Number(m.getAttribute(ix)||0);return a>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function SR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=jv(t);return(t.styles||s1(n)).find(function(r){return r.getAttribute(bR(t))===e})}function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=SR(e,t);if(n){var r=jv(t);r.removeChild(n)}}function S_(e,t){var n=T0.get(e);if(!n||!N0(document,n)){var r=CR("",t),o=r.parentNode;T0.set(e,o),e.removeChild(r)}}function _a(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=jv(n),o=s1(r),a=K(K({},n),{},{styles:o});S_(r,a);var i=SR(t,a);if(i){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=CR(e,a);return d.setAttribute(bR(a),t),d}function x_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Rt(e,t){if(e==null)return{};var n,r,o=x_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(pn(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var u=s+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],u))return!1;return!0}if(a&&i&&ft(a)==="object"&&ft(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(m){return o(a[m],i[m],u)})}return!1}return o(e,t)}var w_="%";function _0(e){return e.join(w_)}var $_=function(){function e(t){En(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return On(e,[{key:"get",value:function(n){return this.opGet(_0(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(_0(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}(),zs="data-token-hash",qo="data-css-hash",li="__cssinjs_instance__";function E_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(qo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[li]=o[li]||e,o[li]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(qo,"]"))).forEach(function(o){var a=o.getAttribute(qo);if(r[a]){if(o[li]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new $_(e)}var fd=l.createContext({hashPriority:"low",cache:E_(),defaultCache:!0});function O_(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 c1=function(){function e(){En(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return On(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(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(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(u,d){var f=Z(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=Z(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).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!O_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();H(c1,"MAX_CACHE_SIZE",20);H(c1,"MAX_CACHE_OFFSET",5);var lx=0,xR=function(){function e(t){En(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=lx,t.length===0&&(t.length>0,void 0),lx+=1}return On(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),xh=new c1;function D0(e){var t=Array.isArray(e)?e:[e];return xh.has(t)||xh.set(t,new xR(t)),xh.get(t)}var R_=new WeakMap,wh={};function I_(e,t){for(var n=R_,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(wh)||n.set(wh,e()),n.get(wh)}var sx=new WeakMap;function cu(e){var t=sx.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xR?t+=r.id:r&&ft(r)==="object"?t+=cu(r):t+=r}),t=Au(t),sx.set(e,t)),t}function cx(e,t){return Au("".concat(t,"_").concat(cu(e)))}var k0=br();function U(e){return typeof e=="number"?"".concat(e,"px"):e}function Tm(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=K(K({},r),{},H(H({},zs,t),qo,n)),i=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Vf=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()},P_=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=Z(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},wR=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,c,u=Z(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=Vf(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(v,")")}}),[a,P_(o,n,{scope:r==null?void 0:r.scope})]},ux=br()?l.useLayoutEffect:l.useEffect,Dt=function(t,n){var r=l.useRef(!0);ux(function(){return t(r.current)},n),ux(function(){return r.current=!1,function(){r.current=!0}},[])},ol=function(t,n){Dt(function(r){if(!r)return t()},n)},M_=K({},id),dx=M_.useInsertionEffect,N_=function(t,n,r){l.useMemo(t,r),Dt(function(){return n(!0)},r)},T_=dx?function(e,t,n){return dx(function(){return e(),t()},n)}:N_,__=K({},id),D_=__.useInsertionEffect,k_=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},j_=function(){return function(t){t()}},z_=typeof D_<"u"?k_:j_;function u1(e,t,n,r,o){var a=l.useContext(fd),i=a.cache,s=[e].concat(_e(t)),c=_0(s),u=z_([c]),d=function(g){i.opUpdate(c,function(b){var y=b||[void 0,void 0],h=Z(y,2),p=h[0],C=p===void 0?0:p,S=h[1],x=S,$=x||n(),w=[C,$];return g?g(w):w})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return T_(function(){o==null||o(m)},function(v){return d(function(g){var b=Z(g,2),y=b[0],h=b[1];return v&&y===0&&(o==null||o(m)),[y+1,h]}),function(){i.opUpdate(c,function(g){var b=g||[],y=Z(b,2),h=y[0],p=h===void 0?0:h,C=y[1],S=p-1;return S===0?(u(function(){(v||!i.opGet(c))&&(r==null||r(C,!1))}),null):[p-1,C]})}},[c]),m}var L_={},F_="css",Ai=new Map;function B_(e){Ai.set(e,(Ai.get(e)||0)+1)}function A_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(zs,'="').concat(e,'"]'));n.forEach(function(r){if(r[li]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var H_=0;function V_(e,t){Ai.set(e,(Ai.get(e)||0)-1);var n=new Set;Ai.forEach(function(r,o){r<=0&&n.add(o)}),Ai.size-n.size>H_&&n.forEach(function(r){A_(r,t),Ai.delete(r)})}var W_=function(t,n,r,o){var a=r.getDerivativeToken(t),i=K(K({},a),n);return o&&(i=o(i)),i},$R="token";function K_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(fd),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?L_:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=I_(function(){return Object.assign.apply(Object,[{}].concat(_e(t)))},t),g=cu(v),b=cu(u),y=m?cu(m):"",h=u1($R,[s,e.id,g,b,y],function(){var p,C=f?f(v,u,e):W_(v,u,e,d),S=K({},C),x="";if(m){var $=wR(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),w=Z($,2);C=w[0],x=w[1]}var O=cx(C,s);C._tokenKey=O,S._tokenKey=cx(S,s);var E=(p=m==null?void 0:m.key)!==null&&p!==void 0?p:O;C._themeKey=E,B_(E);var R="".concat(F_,"-").concat(Au(O));return C._hashId=R,[C,R,S,x,(m==null?void 0:m.key)||""]},function(p){V_(p[0]._themeKey,o)},function(p){var C=Z(p,4),S=C[0],x=C[3];if(m&&x){var $=_a(x,Au("css-variables-".concat(S._themeKey)),{mark:qo,prepend:"queue",attachTo:a,priority:-999});$[li]=o,$.setAttribute(zs,S._themeKey)}});return h}var U_=function(t,n,r){var o=Z(t,5),a=o[2],i=o[3],s=o[4],c=r||{},u=c.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Tm(i,s,d,m,u);return[f,d,v]},q_={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},ER="comm",OR="rule",RR="decl",G_="@import",X_="@namespace",Y_="@keyframes",Q_="@layer",IR=Math.abs,d1=String.fromCharCode;function PR(e){return e.trim()}function Wf(e,t,n){return e.replace(t,n)}function J_(e,t,n){return e.indexOf(t,n)}function ws(e,t){return e.charCodeAt(t)|0}function Ls(e,t,n){return e.slice(t,n)}function fa(e){return e.length}function Z_(e){return e.length}function tf(e,t){return t.push(e),e}var zv=1,Fs=1,MR=0,Mo=0,Xn=0,Ys="";function f1(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:zv,column:Fs,length:i,return:"",siblings:s}}function eD(){return Xn}function tD(){return Xn=Mo>0?ws(Ys,--Mo):0,Fs--,Xn===10&&(Fs=1,zv--),Xn}function Go(){return Xn=Mo<MR?ws(Ys,Mo++):0,Fs++,Xn===10&&(Fs=1,zv++),Xn}function si(){return ws(Ys,Mo)}function Kf(){return Mo}function Lv(e,t){return Ls(Ys,e,t)}function Vu(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 nD(e){return zv=Fs=1,MR=fa(Ys=e),Mo=0,[]}function rD(e){return Ys="",e}function $h(e){return PR(Lv(Mo-1,j0(e===91?e+2:e===40?e+1:e)))}function oD(e){for(;(Xn=si())&&Xn<33;)Go();return Vu(e)>2||Vu(Xn)>3?"":" "}function aD(e,t){for(;--t&&Go()&&!(Xn<48||Xn>102||Xn>57&&Xn<65||Xn>70&&Xn<97););return Lv(e,Kf()+(t<6&&si()==32&&Go()==32))}function j0(e){for(;Go();)switch(Xn){case e:return Mo;case 34:case 39:e!==34&&e!==39&&j0(Xn);break;case 40:e===41&&j0(e);break;case 92:Go();break}return Mo}function iD(e,t){for(;Go()&&e+Xn!==57;)if(e+Xn===84&&si()===47)break;return"/*"+Lv(t,Mo-1)+"*"+d1(e===47?e:Go())}function lD(e){for(;!Vu(si());)Go();return Lv(e,Mo)}function sD(e){return rD(Uf("",null,null,null,[""],e=nD(e),0,[0],e))}function Uf(e,t,n,r,o,a,i,s,c){for(var u=0,d=0,f=i,m=0,v=0,g=0,b=1,y=1,h=1,p=0,C="",S=o,x=a,$=r,w=C;y;)switch(g=p,p=Go()){case 40:if(g!=108&&ws(w,f-1)==58){J_(w+=Wf($h(p),"&","&\f"),"&\f",IR(u?s[u-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:w+=$h(p);break;case 9:case 10:case 13:case 32:w+=oD(g);break;case 92:w+=aD(Kf()-1,7);continue;case 47:switch(si()){case 42:case 47:tf(cD(iD(Go(),Kf()),t,n,c),c),(Vu(g||1)==5||Vu(si()||1)==5)&&fa(w)&&Ls(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*b:s[u++]=fa(w)*h;case 125*b:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+d:h==-1&&(w=Wf(w,/\f/g,"")),v>0&&(fa(w)-f||b===0&&g===47)&&tf(v>32?mx(w+";",r,n,f-1,c):mx(Wf(w," ","")+";",r,n,f-2,c),c);break;case 59:w+=";";default:if(tf($=fx(w,t,n,u,d,o,s,C,S=[],x=[],f,a),a),p===123)if(d===0)Uf(w,t,$,$,S,a,f,s,x);else{switch(m){case 99:if(ws(w,3)===110)break;case 108:if(ws(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Uf(e,$,$,r&&tf(fx(e,$,$,0,0,o,s,C,o,S=[],f,x),x),o,x,f,s,r?S:x):Uf(w,$,$,$,[""],x,0,s,x)}}u=d=v=0,b=h=1,C=w="",f=i;break;case 58:f=1+fa(w),v=g;default:if(b<1){if(p==123)--b;else if(p==125&&b++==0&&tD()==125)continue}switch(w+=d1(p),p*b){case 38:h=d>0?1:(w+="\f",-1);break;case 44:s[u++]=(fa(w)-1)*h,h=1;break;case 64:si()===45&&(w+=$h(Go())),m=si(),d=f=fa(C=w+=lD(Kf())),p++;break;case 45:g===45&&fa(w)==2&&(b=0)}}return a}function fx(e,t,n,r,o,a,i,s,c,u,d,f){for(var m=o-1,v=o===0?a:[""],g=Z_(v),b=0,y=0,h=0;b<r;++b)for(var p=0,C=Ls(e,m+1,m=IR(y=i[b])),S=e;p<g;++p)(S=PR(y>0?v[p]+" "+C:Wf(C,/&\f/g,v[p])))&&(c[h++]=S);return f1(e,t,n,o===0?OR:s,c,u,d,f)}function cD(e,t,n,r){return f1(e,t,n,ER,d1(eD()),Ls(e,2,-2),0,r)}function mx(e,t,n,r,o){return f1(e,t,n,RR,Ls(e,0,r),Ls(e,r+1,-1),r,o)}function z0(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function uD(e,t,n,r){switch(e.type){case Q_:if(e.children.length)break;case G_:case X_:case RR:return e.return=e.return||e.value;case ER:return"";case Y_:return e.return=e.value+"{"+z0(e.children,r)+"}";case OR:if(!fa(e.value=e.props.join(",")))return""}return fa(n=z0(e.children,r))?e.return=e.value+"{"+n+"}":""}var vx="data-ant-cssinjs-cache-path",NR="_FILE_STYLE__",al,TR=!0;function dD(){if(!al&&(al={},br())){var e=document.createElement("div");e.className=vx,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=Z(a,2),s=i[0],c=i[1];al[s]=c});var n=document.querySelector("style[".concat(vx,"]"));if(n){var r;TR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function fD(e){return dD(),!!al[e]}function mD(e){var t=al[e],n=null;if(t&&br())if(TR)n=NR;else{var r=document.querySelector("style[".concat(qo,'="').concat(al[e],'"]'));r?n=r.innerHTML:delete al[e]}return[n,t]}var vD="_skip_check_",_R="_multi_value_";function qf(e){var t=z0(sD(e),uD);return t.replace(/\{%%%\:[^;];}/g,";")}function gD(e){return ft(e)==="object"&&e&&(vD in e||_R in e)}function gx(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 s,c=i.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(_e(c.slice(1))).join(" ")});return a.join(",")}var hD=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,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",v={};function g(h){var p=h.getName(s);if(!v[p]){var C=e(h.style,n,{root:!1,parentSelectors:i}),S=Z(C,1),x=S[0];v[p]="@keyframes ".concat(h.getName(s)).concat(x)}}function b(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(C){Array.isArray(C)?b(C,p):C&&p.push(C)}),p}var y=b(Array.isArray(t)?t:[t]);return y.forEach(function(h){var p=typeof h=="string"&&!o?{}:h;if(typeof p=="string")m+="".concat(p,`
|
|
55
|
-
`);else if(p._keyframe)g(p);else{var C=f.reduce(function(S,x){var $;return(x==null||($=x.visit)===null||$===void 0?void 0:$.call(x,S))||S},p);Object.keys(C).forEach(function(S){var x=C[S];if(ft(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!gD(x)){var $=!1,w=S.trim(),O=!1;(o||a)&&s?w.startsWith("@")?$=!0:w==="&"?w=gx("",s,u):w=gx(S,s,u):o&&!s&&(w==="&"||w==="")&&(w="",O=!0);var E=e(x,n,{root:O,injectHash:$,parentSelectors:[].concat(_e(i),[w])}),R=Z(E,2),M=R[0],T=R[1];v=K(K({},v),T),m+="".concat(w).concat(M)}else{let N=function(P,k){var D=P.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),z=k;!q_[P]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),P==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(g(k),z=k.getName(s)),m+="".concat(D,":").concat(z,";")};var _,I=(_=x==null?void 0:x.value)!==null&&_!==void 0?_:x;ft(x)==="object"&&x!==null&&x!==void 0&&x[_R]&&Array.isArray(I)?I.forEach(function(P){N(S,P)}):N(S,I)}})}}),o?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(c.name,";")}).join(`
|
|
56
|
-
`))):m="{".concat(m,"}"),[m,v]};function DR(e,t){return Au("".concat(e.join("%")).concat(t))}function pD(){return null}var kR="style";function L0(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(fd),f=d.autoClear;d.mock;var m=d.defaultCache,v=d.hashPriority,g=d.container,b=d.ssrInline,y=d.transformers,h=d.linters,p=d.cache,C=d.layer,S=n._tokenKey,x=[S];C&&x.push("layer"),x.push.apply(x,_e(r));var $=k0,w=u1(kR,x,function(){var T=x.join("|");if(fD(T)){var _=mD(T),I=Z(_,2),N=I[0],P=I[1];if(N)return[N,S,P,{},s,u]}var k=t(),D=hD(k,{hashId:o,hashPriority:v,layer:C?a:void 0,path:r.join("-"),transformers:y,linters:h}),z=Z(D,2),j=z[0],L=z[1],F=qf(j),B=DR(x,F);return[F,S,B,L,s,u]},function(T,_){var I=Z(T,3),N=I[2];(_||f)&&k0&&Hu(N,{mark:qo,attachTo:g})},function(T){var _=Z(T,4),I=_[0];_[1];var N=_[2],P=_[3];if($&&I!==NR){var k={mark:qo,prepend:C?!1:"queue",attachTo:g,priority:u},D=typeof i=="function"?i():i;D&&(k.csp={nonce:D});var z=[],j=[];Object.keys(P).forEach(function(F){F.startsWith("@layer")?z.push(F):j.push(F)}),z.forEach(function(F){_a(qf(P[F]),"_layer-".concat(F),K(K({},k),{},{prepend:!0}))});var L=_a(I,N,k);L[li]=p.instanceId,L.setAttribute(zs,S),j.forEach(function(F){_a(qf(P[F]),"_effect-".concat(F),k)})}}),O=Z(w,3),E=O[0],R=O[1],M=O[2];return function(T){var _;return!b||$||!m?_=l.createElement(pD,null):_=l.createElement("style",Ce({},H(H({},zs,R),qo,M),{dangerouslySetInnerHTML:{__html:E}})),l.createElement(l.Fragment,null,_,T)}}var yD=function(t,n,r){var o=Z(t,6),a=o[0],i=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=Tm(a,i,s,g,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var y=qf(c[b]),h=Tm(y,i,"_effect-".concat(b),g,m);b.startsWith("@layer")?v=h+v:v+=h}}),[d,s,v]},jR="cssVar",bD=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(fd),f=d.cache.instanceId,m=d.container,v=s._tokenKey,g=[].concat(_e(t.path),[r,u,v]),b=u1(jR,g,function(){var y=n(),h=wR(y,r,{prefix:o,unitless:a,ignore:i,scope:u}),p=Z(h,2),C=p[0],S=p[1],x=DR(g,S);return[C,S,x,r]},function(y){var h=Z(y,3),p=h[2];k0&&Hu(p,{mark:qo,attachTo:m})},function(y){var h=Z(y,3),p=h[1],C=h[2];if(p){var S=_a(p,C,{mark:qo,prepend:"queue",attachTo:m,priority:-999});S[li]=f,S.setAttribute(zs,r)}});return b},CD=function(t,n,r){var o=Z(t,4),a=o[1],i=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Tm(a,s,i,f,u);return[d,i,m]};H(H(H({},kR,yD),$R,U_),jR,CD);var en=function(){function e(t,n){En(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return On(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 Fl(e){return e.notSplit=!0,e}Fl(["borderTop","borderBottom"]),Fl(["borderTop"]),Fl(["borderBottom"]),Fl(["borderLeft","borderRight"]),Fl(["borderLeft"]),Fl(["borderRight"]);var m1=l.createContext({});function zR(e){return pR(e)||mR(e)||i1(e)||yR()}function Lr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function LR(e,t,n,r){if(!t.length)return n;var o=zR(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=_e(e):s=K({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=LR(s[a],i,n,r),s}function xo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Lr(e,t.slice(0,-1))?e:LR(e,t,n,r)}function SD(e){return ft(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function hx(e){return Array.isArray(e)?[]:{}}var xD=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hx(t[0]);return t.forEach(function(o){function a(i,s){var c=new Set(s),u=Lr(o,i),d=Array.isArray(u);if(d||SD(u)){if(!c.has(u)){c.add(u);var f=Lr(r,i);d?r=xo(r,i,[]):(!f||ft(f)!=="object")&&(r=xo(r,i,hx(u))),xD(u).forEach(function(m){a([].concat(_e(i),[m]),c)})}}else r=xo(r,i,u)}a([])}),r}function wD(){}const $D=l.createContext({}),Ni=()=>{const e=()=>{};return e.deprecated=wD,e},FR=l.createContext(void 0);var BR={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"},ED={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},OD=K(K({},ED),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const AR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},_m={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"]},OD),timePickerLocale:Object.assign({},AR)},eo="${label} is not a valid ${type}",Zo={locale:"en",Pagination:BR,DatePicker:_m,TimePicker:AR,Calendar:_m,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Gf=Object.assign({},Zo.Modal),Xf=[];const px=()=>Xf.reduce((e,t)=>Object.assign(Object.assign({},e),t),Zo.Modal);function RD(e){if(e){const t=Object.assign({},e);return Xf.push(t),Gf=px(),()=>{Xf=Xf.filter(n=>n!==t),Gf=px()}}Gf=Object.assign({},Zo.Modal)}function HR(){return Gf}const v1=l.createContext(void 0),ho=(e,t)=>{const n=l.useContext(v1),r=l.useMemo(()=>{var a;const i=t||Zo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=l.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Zo.locale:a},[n]);return[r,o]},ID="internalMark",PD=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>RD(t==null?void 0:t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(v1.Provider,{value:o},n)},VR={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"},Wu=Object.assign(Object.assign({},VR),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
57
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
58
|
-
'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}),lr=Math.round;function Eh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const yx=(e,t,n)=>n===0?e:e/100;function Ic(e,t){const n=t||255;return e>n?n:e<0?0:e}class Wt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let a=function(i){return o.startsWith(i)};var r=a;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):a("rgb")?this.fromRgbString(o):a("hsl")?this.fromHslString(o):(a("hsv")||a("hsb"))&&this.fromHsvString(o)}else if(t instanceof Wt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ic(t.r),this.g=Ic(t.g),this.b=Ic(t.b),this.a=typeof t.a=="number"?Ic(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=s=>(r[s]-this[s])*o+this[s],i={r:lr(a("r")),g:lr(a("g")),b:lr(a("b")),a:lr(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>lr((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=lr(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=lr(this.getSaturation()*100),r=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Ic(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=lr(r*255);this.r=m,this.g=m,this.b=m}let a=0,i=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,i=d):c>=1&&c<2?(a=d,i=u):c>=2&&c<3?(i=u,s=d):c>=3&&c<4?(i=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=r-u/2;this.r=lr((a+f)*255),this.g=lr((i+f)*255),this.b=lr((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=lr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),c=i-s,u=lr(r*(1-n)*255),d=lr(r*(1-n*c)*255),f=lr(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=Eh(t,yx);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Eh(t,yx);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Eh(t,(r,o)=>o.includes("%")?lr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var nf=2,bx=.16,MD=.05,ND=.05,TD=.15,WR=5,KR=4,_D=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Cx(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-nf*t:Math.round(e.h)+nf*t:r=n?Math.round(e.h)+nf*t:Math.round(e.h)-nf*t,r<0?r+=360:r>=360&&(r-=360),r}function Sx(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-bx*t:t===KR?r=e.s+bx:r=e.s+MD*t,r>1&&(r=1),n&&t===WR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function xx(e,t,n){var r;return n?r=e.v+ND*t:r=e.v-TD*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ku(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Wt(e),o=r.toHsv(),a=WR;a>0;a-=1){var i=new Wt({h:Cx(o,a,!0),s:Sx(o,a,!0),v:xx(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=KR;s+=1){var c=new Wt({h:Cx(o,s),s:Sx(o,s),v:xx(o,s)});n.push(c)}return t.theme==="dark"?_D.map(function(u){var d=u.index,f=u.amount;return new Wt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Oh={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"},F0=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];F0.primary=F0[5];var B0=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];B0.primary=B0[5];var A0=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];A0.primary=A0[5];var Dm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Dm.primary=Dm[5];var H0=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];H0.primary=H0[5];var V0=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];V0.primary=V0[5];var W0=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];W0.primary=W0[5];var K0=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];K0.primary=K0[5];var km=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];km.primary=km[5];var U0=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];U0.primary=U0[5];var q0=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];q0.primary=q0[5];var G0=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];G0.primary=G0[5];var X0=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];X0.primary=X0[5];var Rh={red:F0,volcano:B0,orange:A0,gold:Dm,yellow:H0,lime:V0,green:W0,cyan:K0,blue:km,geekblue:U0,purple:q0,magenta:G0,grey:X0};function DD(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),v=t(a),g=t(i),b=n(c,u),y=e.colorLink||e.colorInfo,h=t(y),p=new Wt(v[1]).mix(new Wt(v[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:p,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Wt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const kD=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 jD(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},kD(r))}const zD=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Yf(e){return(e+8)/e}function LD(e){const t=Array.from({length:10}).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:Yf(n)}))}const FD=e=>{const t=LD(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],c=r[0],u=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:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function BD(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 po=(e,t)=>new Wt(e).setA(t).toRgbString(),Pc=(e,t)=>new Wt(e).darken(t).toHexString(),AD=e=>{const t=Ku(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]}},HD=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:po(r,.88),colorTextSecondary:po(r,.65),colorTextTertiary:po(r,.45),colorTextQuaternary:po(r,.25),colorFill:po(r,.15),colorFillSecondary:po(r,.06),colorFillTertiary:po(r,.04),colorFillQuaternary:po(r,.02),colorBgSolid:po(r,1),colorBgSolidHover:po(r,.75),colorBgSolidActive:po(r,.95),colorBgLayout:Pc(n,4),colorBgContainer:Pc(n,0),colorBgElevated:Pc(n,0),colorBgSpotlight:po(r,.85),colorBgBlur:"transparent",colorBorder:Pc(n,15),colorBorderSecondary:Pc(n,6)}};function VD(e){Oh.pink=Oh.magenta,Rh.pink=Rh.magenta;const t=Object.keys(VR).map(n=>{const r=e[n]===Oh[n]?Rh[n]:Ku(e[n]);return Array.from({length:10},()=>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),DD(e,{generateColorPalettes:AD,generateNeutralColorPalettes:HD})),FD(e.fontSize)),BD(e)),zD(e)),jD(e))}const UR=D0(VD),Y0={token:Wu,override:{override:Wu},hashed:!0},qR=ce.createContext(Y0),Uu="ant",Fv="anticon",WD=["outlined","borderless","filled","underlined"],KD=(e,t)=>t||(e?`${Uu}-${e}`:Uu),xt=l.createContext({getPrefixCls:KD,iconPrefixCls:Fv}),{Consumer:yie}=xt,wx={};function fr(e){const t=l.useContext(xt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:wx,styles:wx},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const UD=`-ant-${Date.now()}-${Math.random()}`;function qD(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new Wt(i),u=Ku(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Wt(t.primaryColor),s=Ku(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new Wt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.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"),`
|
|
59
|
-
:root {
|
|
60
|
-
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
61
|
-
`)}
|
|
62
|
-
}
|
|
63
|
-
`.trim()}function GD(e,t){const n=qD(e,t);br()&&_a(n,`${UD}-dynamic-theme`)}const Nr=l.createContext(!1),g1=({children:e,disabled:t})=>{const n=l.useContext(Nr);return l.createElement(Nr.Provider,{value:t??n},e)},fl=l.createContext(void 0),XD=({children:e,size:t})=>{const n=l.useContext(fl);return l.createElement(fl.Provider,{value:t||n},e)};function YD(){const e=l.useContext(Nr),t=l.useContext(fl);return{componentDisabled:e,componentSize:t}}var GR=On(function e(){En(this,e)}),XR="CALC_UNIT",QD=new RegExp(XR,"g");function Ih(e){return typeof e=="number"?"".concat(e).concat(XR):e}var JD=function(e){Sa(n,e);var t=xa(n);function n(r,o){var a;En(this,n),a=t.call(this),H(pt(a),"result",""),H(pt(a),"unitlessCssVar",void 0),H(pt(a),"lowPriority",void 0);var i=ft(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Ih(r):i==="string"&&(a.result=r),a}return On(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(Ih(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(Ih(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||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(QD,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(GR),ZD=function(e){Sa(n,e);var t=xa(n);function n(r){var o;return En(this,n),o=t.call(this),H(pt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return On(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}(GR),ek=function(t,n){var r=t==="css"?JD:ZD;return function(o){return new r(o,n)}},$x=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function zt(e){var t=l.useRef();t.current=e;var n=l.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 ml(e){var t=l.useRef(!1),n=l.useState(e),r=Z(n,2),o=r[0],a=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,c){c&&t.current||a(s)}return[o,i]}function Ph(e){return e!==void 0}function Jt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=ml(function(){return Ph(o)?o:Ph(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=Z(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=i?i(f):f,v=zt(a),g=ml([f]),b=Z(g,2),y=b[0],h=b[1];ol(function(){var C=y[0];u!==C&&v(u,C)},[y]),ol(function(){Ph(o)||d(o)},[o]);var p=zt(function(C,S){d(C,S),h([f],S)});return[m,p]}function Ex(e,t,n,r){var o=K({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var c=Z(s,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var i=K(K({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var YR=typeof CSSINJS_STATISTIC<"u",Q0=!0;function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!YR)return Object.assign.apply(Object,[{}].concat(t));Q0=!1;var r={};return t.forEach(function(o){if(ft(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Q0=!0,r}var Ox={};function tk(){}var nk=function(t){var n,r=t,o=tk;return YR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Q0){var c;(c=n)===null||c===void 0||c.add(s)}return i[s]}}),o=function(i,s){var c;Ox[i]={global:Array.from(n),component:K(K({},(c=Ox[i])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:o}};function Rx(e,t,n){if(typeof n=="function"){var r;return n(Bt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function rk(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return U(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return U(a)}).join(","),")")}}}var ok=1e3*60*10,ak=function(){function e(){En(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return On(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&ft(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(ft(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>ok&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),Ix=new ak;function ik(e,t){return ce.useMemo(function(){var n=Ix.get(t);if(n)return n;var r=e();return Ix.set(t,r),r},t)}var lk=function(){return{}};function sk(e){var t=e.useCSP,n=t===void 0?lk:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(m,v,g,b){var y=Array.isArray(m)?m[0]:m;function h(O){return"".concat(String(y)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var p=(b==null?void 0:b.unitless)||{},C=typeof s=="function"?s(m):{},S=K(K({},C),{},H({},h("zIndexPopup"),!0));Object.keys(p).forEach(function(O){S[h(O)]=p[O]});var x=K(K({},b),{},{unitless:S,prefixToken:h}),$=d(m,v,g,x),w=u(y,g,x);return function(O){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,R=$(O,E),M=Z(R,2),T=M[1],_=w(E),I=Z(_,2),N=I[0],P=I[1];return[N,T,P]}}function u(m,v,g){var b=g.unitless,y=g.injectStyle,h=y===void 0?!0:y,p=g.prefixToken,C=g.ignore,S=function(w){var O=w.rootCls,E=w.cssVar,R=E===void 0?{}:E,M=r(),T=M.realToken;return bD({path:[m],prefix:R.prefix,key:R.key,unitless:b,ignore:C,token:T,scope:O},function(){var _=Rx(m,T,v),I=Ex(m,T,_,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(_).forEach(function(N){I[p(N)]=I[N],delete I[N]}),I}),null},x=function(w){var O=r(),E=O.cssVar;return[function(R){return h&&E?ce.createElement(ce.Fragment,null,ce.createElement(S,{rootCls:w,cssVar:E,component:m}),R):R},E==null?void 0:E.key]};return x}function d(m,v,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(m)?m:[m,m],h=Z(y,1),p=h[0],C=y.join("-"),S=e.layer||{name:"antd"};return function(x){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,w=r(),O=w.theme,E=w.realToken,R=w.hashId,M=w.token,T=w.cssVar,_=o(),I=_.rootPrefixCls,N=_.iconPrefixCls,P=n(),k=T?"css":"js",D=ik(function(){var V=new Set;return T&&Object.keys(b.unitless||{}).forEach(function(W){V.add(Vf(W,T.prefix)),V.add(Vf(W,$x(p,T.prefix)))}),ek(k,V)},[k,p,T==null?void 0:T.prefix]),z=rk(k),j=z.max,L=z.min,F={theme:O,token:M,hashId:R,nonce:function(){return P.nonce},clientOnly:b.clientOnly,layer:S,order:b.order||-999};typeof a=="function"&&L0(K(K({},F),{},{clientOnly:!1,path:["Shared",I]}),function(){return a(M,{prefix:{rootPrefixCls:I,iconPrefixCls:N},csp:P})});var B=L0(K(K({},F),{},{path:[C,x,N]}),function(){if(b.injectStyle===!1)return[];var V=nk(M),W=V.token,q=V.flush,J=Rx(p,E,g),Y=".".concat(x),ne=Ex(p,E,J,{deprecatedTokens:b.deprecatedTokens});T&&J&&ft(J)==="object"&&Object.keys(J).forEach(function(ue){J[ue]="var(".concat(Vf(ue,$x(p,T.prefix)),")")});var fe=Bt(W,{componentCls:Y,prefixCls:x,iconCls:".".concat(N),antCls:".".concat(I),calc:D,max:j,min:L},T?J:ne),oe=v(fe,{hashId:R,prefixCls:x,rootPrefixCls:I,iconPrefixCls:N});q(p,ne);var G=typeof i=="function"?i(fe,x,$,b.resetFont):null;return[b.resetStyle===!1?null:G,oe]});return[B,R]}}function f(m,v,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(m,v,g,K({resetStyle:!1,order:-998},b)),h=function(C){var S=C.prefixCls,x=C.rootCls,$=x===void 0?S:x;return y(S,$),null};return h}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Si=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ck="5.29.3";function Mh(e){return e>=0&&e<=255}function qc(e,t){const{r:n,g:r,b:o,a}=new Wt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new Wt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Mh(d)&&Mh(f)&&Mh(m))return new Wt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var uk=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 QR(e){const{override:t}=e,n=uk(e,["override"]),r=Object.assign({},t);Object.keys(Wu).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:qc(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:qc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:qc(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:qc(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:`
|
|
64
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
65
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
66
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
67
|
-
`,boxShadowSecondary:`
|
|
68
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
69
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
70
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
71
|
-
`,boxShadowTertiary:`
|
|
72
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
73
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
74
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
75
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
76
|
-
0 1px 2px -2px ${new Wt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
77
|
-
0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
78
|
-
0 5px 12px 4px ${new Wt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
79
|
-
`,boxShadowDrawerRight:`
|
|
80
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
81
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
82
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
83
|
-
`,boxShadowDrawerLeft:`
|
|
84
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
85
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
86
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
87
|
-
`,boxShadowDrawerUp:`
|
|
88
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
89
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
90
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
91
|
-
`,boxShadowDrawerDown:`
|
|
92
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
93
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
94
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
95
|
-
`,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 Px=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 JR={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},dk={motionBase:!0,motionUnit:!0},fk={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},ZR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Px(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=QR(i),a&&Object.entries(a).forEach(([s,c])=>{const{theme:u}=c,d=Px(c,["theme"]);let f=d;u&&(f=ZR(Object.assign(Object.assign({},i),d),{override:d},u)),i[s]=f}),i};function Sr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ce.useContext(qR),a=`${ck}-${t||""}`,i=n||UR,[s,c,u]=K_(i,[Wu,e],{salt:a,override:r,getComputedToken:ZR,formatToken:QR,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:JR,ignore:dk,preserve:fk}});return[i,u,t?c:"",s,o]}const ea={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Qs=()=>({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"}}),xi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),mk=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"}}}),vk=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},ta=(e,t)=>({outline:`${U(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),na=(e,t)=>({"&:focus-visible":ta(e,t)}),eI=e=>({[`.${e}`]:Object.assign(Object.assign({},Qs()),{[`.${e} .${e}-icon`]:{display:"block"}})}),h1=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},na(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Ut,genComponentStyleHook:gk,genSubStyleComponent:Js}=sk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Sr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=l.useContext(xt);return e??{}},getResetStyles:(e,t)=>{var n;const r=mk(e);return[r,{"&":r},eI((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Fv)]},getCommonStyle:vk,getCompUnitless:()=>JR});function tI(e,t){return Si.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const hk=(e,t)=>{const[n,r]=Sr();return L0({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>eI(e))},pk=Object.assign({},id),{useId:Mx}=pk,yk=()=>"",bk=typeof Mx>"u"?yk:Mx;function Ck(e,t,n){var r;Ni();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Y0),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Y0.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=bk();return wl(()=>{var s,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s: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"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(s,c)=>s.some((u,d)=>{const f=c[d];return!pa(u,f,!0)}))}var Sk=["children"],nI=l.createContext({});function xk(e){var t=e.children,n=Rt(e,Sk);return l.createElement(nI.Provider,{value:n},t)}var wk=function(e){Sa(n,e);var t=xa(n);function n(){return En(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function $k(e){var t=l.useReducer(function(s){return s+1},0),n=Z(t,2),r=n[1],o=l.useRef(e),a=zt(function(){return o.current}),i=zt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var Ga="none",rf="appear",of="enter",af="leave",Nx="none",Bo="prepare",ms="start",vs="active",p1="end",rI="prepared";function Tx(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 Ek(e,t){var n={animationend:Tx("Animation","AnimationEnd"),transitionend:Tx("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Ok=Ek(br(),typeof window<"u"?window:{}),oI={};if(br()){var Rk=document.createElement("div");oI=Rk.style}var lf={};function aI(e){if(lf[e])return lf[e];var t=Ok[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 oI)return lf[e]=t[a],lf[e]}return""}var iI=aI("animationend"),lI=aI("transitionend"),sI=!!(iI&&lI),_x=iI||"animationend",Dx=lI||"transitionend";function kx(e,t){if(!e)return null;if(ft(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Ik=function(e){var t=l.useRef();function n(o){o&&(o.removeEventListener(Dx,e),o.removeEventListener(_x,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Dx,e),o.addEventListener(_x,e),t.current=o)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var cI=br()?l.useLayoutEffect:l.useEffect;const Pk=function(){var e=l.useRef(null);function t(){jt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=jt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Mk=[Bo,ms,vs,p1],Nk=[Bo,rI],uI=!1,Tk=!0;function dI(e){return e===vs||e===p1}const _k=function(e,t,n){var r=ml(Nx),o=Z(r,2),a=o[0],i=o[1],s=Pk(),c=Z(s,2),u=c[0],d=c[1];function f(){i(Bo,!0)}var m=t?Nk:Mk;return cI(function(){if(a!==Nx&&a!==p1){var v=m.indexOf(a),g=m[v+1],b=n(a);b===uI?i(g,!0):g&&u(function(y){function h(){y.isCanceled()||i(g,!0)}b===!0?h():Promise.resolve(b).then(h)})}},[e,a]),l.useEffect(function(){return function(){d()}},[]),[f,a]};function Dk(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,g=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,h=r.onLeaveStart,p=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,$=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,E=ml(),R=Z(E,2),M=R[0],T=R[1],_=$k(Ga),I=Z(_,2),N=I[0],P=I[1],k=ml(null),D=Z(k,2),z=D[0],j=D[1],L=N(),F=l.useRef(!1),B=l.useRef(null);function V(){return n()}var W=l.useRef(!1);function q(){P(Ga),j(null,!0)}var J=zt(function(A){var X=N();if(X!==Ga){var re=V();if(!(A&&!A.deadline&&A.target!==re)){var me=W.current,pe;X===rf&&me?pe=x==null?void 0:x(re,A):X===of&&me?pe=$==null?void 0:$(re,A):X===af&&me&&(pe=w==null?void 0:w(re,A)),me&&pe!==!1&&q()}}}),Y=Ik(J),ne=Z(Y,1),fe=ne[0],oe=function(X){switch(X){case rf:return H(H(H({},Bo,m),ms,b),vs,p);case of:return H(H(H({},Bo,v),ms,y),vs,C);case af:return H(H(H({},Bo,g),ms,h),vs,S);default:return{}}},G=l.useMemo(function(){return oe(L)},[L]),ue=_k(L,!e,function(A){if(A===Bo){var X=G[Bo];return X?X(V()):uI}if(ee in G){var re;j(((re=G[ee])===null||re===void 0?void 0:re.call(G,V(),null))||null)}return ee===vs&&L!==Ga&&(fe(V()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){J({deadline:!0})},d))),ee===rI&&q(),Tk}),le=Z(ue,2),ae=le[0],ee=le[1],ge=dI(ee);W.current=ge;var ye=l.useRef(null);cI(function(){if(!(F.current&&ye.current===t)){T(t);var A=F.current;F.current=!0;var X;!A&&t&&s&&(X=rf),A&&t&&a&&(X=of),(A&&!t&&u||!A&&f&&!t&&u)&&(X=af);var re=oe(X);X&&(e||re[Bo])?(P(X),ae()):P(Ga),ye.current=t}},[t]),l.useEffect(function(){(L===rf&&!s||L===of&&!a||L===af&&!u)&&P(Ga)},[s,a,u]),l.useEffect(function(){return function(){F.current=!1,clearTimeout(B.current)}},[]);var Ie=l.useRef(!1);l.useEffect(function(){M&&(Ie.current=!0),M!==void 0&&L===Ga&&((Ie.current||M)&&(O==null||O(M)),Ie.current=!0)},[M,L]);var Ee=z;return G[Bo]&&ee===ms&&(Ee=K({transition:"none"},Ee)),[L,ee,Ee,M??t]}function kk(e){var t=e;ft(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=l.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,g=o.eventProps,b=l.useContext(nI),y=b.motion,h=n(o,y),p=l.useRef(),C=l.useRef();function S(){try{return p.current instanceof HTMLElement?p.current:Hf(C.current)}catch{return null}}var x=Dk(h,s,S,o),$=Z(x,4),w=$[0],O=$[1],E=$[2],R=$[3],M=l.useRef(R);R&&(M.current=!0);var T=l.useCallback(function(D){p.current=D,Lu(a,D)},[a]),_,I=K(K({},g),{},{visible:s});if(!f)_=null;else if(w===Ga)R?_=f(K({},I),T):!u&&M.current&&v?_=f(K(K({},I),{},{className:v}),T):d||!u&&!v?_=f(K(K({},I),{},{style:{display:"none"}}),T):_=null;else{var N;O===Bo?N="prepare":dI(O)?N="active":O===ms&&(N="start");var P=kx(m,"".concat(w,"-").concat(N));_=f(K(K({},I),{},{className:Q(kx(m,w),H(H({},P,P&&N),m,typeof m=="string")),style:E}),T)}if(l.isValidElement(_)&&Jo(_)){var k=Mi(_);k||(_=l.cloneElement(_,{ref:T}))}return l.createElement(wk,{ref:C},_)});return r.displayName="CSSMotion",r}const To=kk(sI);var J0="add",Z0="keep",ey="remove",Nh="removed";function jk(e){var t;return e&&ft(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(jk)}function zk(){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=ty(e),i=ty(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=i[f];if(m.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return K(K({},v),{},{status:J0})})),r=f),n.push(K(K({},m),{},{status:Z0})),r+=1,d=!0;break}}d||n.push(K(K({},u),{},{status:ey}))}),r<o&&(n=n.concat(i.slice(r).map(function(u){return K(K({},u),{},{status:J0})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==ey}),n.forEach(function(d){d.key===u&&(d.status=Z0)})}),n}var Lk=["component","children","onVisibleChanged","onAllRemoved"],Fk=["status"],Bk=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,n=function(r){Sa(a,r);var o=xa(a);function a(){var i;En(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i=o.call.apply(o,[this].concat(c)),H(pt(i),"state",{keyEntities:[]}),H(pt(i),"removeKey",function(d){i.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==d?v:K(K({},v),{},{status:Nh})});return{keyEntities:m}},function(){var f=i.state.keyEntities,m=f.filter(function(v){var g=v.status;return g!==Nh}).length;m===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return On(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var v=Rt(u,Lk),g=d||l.Fragment,b={};return Bk.forEach(function(y){b[y]=v[y],delete v[y]}),delete v.keys,l.createElement(g,v,c.map(function(y,h){var p=y.status,C=Rt(y,Fk),S=p===J0||p===Z0;return l.createElement(t,Ce({},b,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function($){m==null||m($,{key:C.key}),$||s.removeKey(C.key)}}),function(x,$){return f(K(K({},x),{},{index:h}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=ty(u),m=zk(d,f);return{keyEntities:m.filter(function(v){var g=d.find(function(b){var y=b.key;return v.key===y});return!(g&&g.status===Nh&&v.status===ey)})}}}]),a}(l.Component);return H(n,"defaultProps",{component:"div"}),n}const fI=Ak(sI),jx=l.createContext(!0);function Hk(e){const t=l.useContext(jx),{children:n}=e,[,r]=Sr(),{motion:o}=r,a=l.useRef(!1);return a.current||(a.current=t!==o),a.current?l.createElement(jx.Provider,{value:o},l.createElement(xk,{motion:o},n)):n}const Vk=()=>null;var Wk=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 Kk=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let jm,mI,vI,gI;function Qf(){return jm||Uu}function Uk(){return mI||Fv}function qk(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Gk=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(jm=t),n!==void 0&&(mI=n),"holderRender"in e&&(gI=o),r&&(qk(r)?GD(Qf(),r):vI=r)},hI=()=>({getPrefixCls:(e,t)=>t||(e?`${Qf()}-${e}`:Qf()),getIconPrefixCls:Uk,getRootPrefixCls:()=>jm||Qf(),getTheme:()=>vI,holderRender:gI}),Xk=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,popupOverflow:b,legacyLocale:y,parentContext:h,iconPrefixCls:p,theme:C,componentDisabled:S,segmented:x,statistic:$,spin:w,calendar:O,carousel:E,cascader:R,collapse:M,typography:T,checkbox:_,descriptions:I,divider:N,drawer:P,skeleton:k,steps:D,image:z,layout:j,list:L,mentions:F,modal:B,progress:V,result:W,slider:q,breadcrumb:J,menu:Y,pagination:ne,input:fe,textArea:oe,empty:G,badge:ue,radio:le,rate:ae,switch:ee,transfer:ge,avatar:ye,message:Ie,tag:Ee,table:A,card:X,tabs:re,timeline:me,timePicker:pe,upload:ve,notification:Pe,tree:De,colorPicker:Me,datePicker:Le,rangePicker:Oe,flex:be,wave:ke,dropdown:Se,warning:Re,tour:we,tooltip:xe,popover:Te,popconfirm:Ae,floatButton:ct,floatButtonGroup:yt,variant:Ve,inputNumber:Xe,treeSelect:nt}=e,Ue=l.useCallback((Be,He)=>{const{prefixCls:je}=e;if(He)return He;const Ne=je||h.getPrefixCls("");return Be?`${Ne}-${Be}`:Ne},[h.getPrefixCls,e.prefixCls]),Qe=p||h.iconPrefixCls||Fv,wt=n||h.csp;hk(Qe,wt);const It=Ck(C,h.theme,{prefixCls:Ue("")}),Je={csp:wt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||y,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:g??v,popupOverflow:b,getPrefixCls:Ue,iconPrefixCls:Qe,theme:It,segmented:x,statistic:$,spin:w,calendar:O,carousel:E,cascader:R,collapse:M,typography:T,checkbox:_,descriptions:I,divider:N,drawer:P,skeleton:k,steps:D,image:z,input:fe,textArea:oe,layout:j,list:L,mentions:F,modal:B,progress:V,result:W,slider:q,breadcrumb:J,menu:Y,pagination:ne,empty:G,badge:ue,radio:le,rate:ae,switch:ee,transfer:ge,avatar:ye,message:Ie,tag:Ee,table:A,card:X,tabs:re,timeline:me,timePicker:pe,upload:ve,notification:Pe,tree:De,colorPicker:Me,datePicker:Le,rangePicker:Oe,flex:be,wave:ke,dropdown:Se,warning:Re,tour:we,tooltip:xe,popover:Te,popconfirm:Ae,floatButton:ct,floatButtonGroup:yt,variant:Ve,inputNumber:Xe,treeSelect:nt},at=Object.assign({},h);Object.keys(Je).forEach(Be=>{Je[Be]!==void 0&&(at[Be]=Je[Be])}),Kk.forEach(Be=>{const He=e[Be];He&&(at[Be]=He)}),typeof r<"u"&&(at.button=Object.assign({autoInsertSpace:r},at.button));const ie=wl(()=>at,at,(Be,He)=>{const je=Object.keys(Be),Ne=Object.keys(He);return je.length!==Ne.length||je.some(Fe=>Be[Fe]!==He[Fe])}),{layer:se}=l.useContext(fd),de=l.useMemo(()=>({prefixCls:Qe,csp:wt,layer:se?"antd":void 0}),[Qe,wt,se]);let he=l.createElement(l.Fragment,null,l.createElement(Vk,{dropdownMatchSelectWidth:v}),t);const $e=l.useMemo(()=>{var Be,He,je,Ne;return fs(((Be=Zo.Form)===null||Be===void 0?void 0:Be.defaultValidateMessages)||{},((je=(He=ie.locale)===null||He===void 0?void 0:He.Form)===null||je===void 0?void 0:je.defaultValidateMessages)||{},((Ne=ie.form)===null||Ne===void 0?void 0:Ne.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ie,i==null?void 0:i.validateMessages]);Object.keys($e).length>0&&(he=l.createElement(FR.Provider,{value:$e},he)),s&&(he=l.createElement(PD,{locale:s,_ANT_MARK__:ID},he)),he=l.createElement(m1.Provider,{value:de},he),c&&(he=l.createElement(XD,{size:c},he)),he=l.createElement(Hk,null,he);const ze=l.useMemo(()=>{const Be=It||{},{algorithm:He,token:je,components:Ne,cssVar:Fe}=Be,Ye=Wk(Be,["algorithm","token","components","cssVar"]),ut=He&&(!Array.isArray(He)||He.length>0)?D0(He):UR,$t={};Object.entries(Ne||{}).forEach(([lt,Tt])=>{const We=Object.assign({},Tt);"algorithm"in We&&(We.algorithm===!0?We.theme=ut:(Array.isArray(We.algorithm)||typeof We.algorithm=="function")&&(We.theme=D0(We.algorithm)),delete We.algorithm),$t[lt]=We});const Mt=Object.assign(Object.assign({},Wu),je);return Object.assign(Object.assign({},Ye),{theme:ut,token:Mt,components:$t,override:Object.assign({override:Mt},$t),cssVar:Fe})},[It]);return C&&(he=l.createElement(qR.Provider,{value:ze},he)),ie.warning&&(he=l.createElement($D.Provider,{value:ie.warning},he)),S!==void 0&&(he=l.createElement(g1,{disabled:S},he)),l.createElement(xt.Provider,{value:ie},he)},_o=e=>{const t=l.useContext(xt),n=l.useContext(v1);return l.createElement(Xk,Object.assign({parentContext:t,legacyLocale:n},e))};_o.ConfigContext=xt;_o.SizeContext=fl;_o.config=Gk;_o.useConfig=YD;Object.defineProperty(_o,"SizeContext",{get:()=>fl});var Yk={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 pI(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Qk(e){return pI(e)instanceof ShadowRoot}function zm(e){return Qk(e)?pI(e):null}function Jk(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Zk(e,t){pn(e,"[@ant-design/icons] ".concat(t))}function zx(e){return ft(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ft(e.icon)==="object"||typeof e.icon=="function")}function Lx(){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[Jk(n)]=r}return t},{})}function ny(e,t,n){return n?ce.createElement(e.tag,K(K({key:t},Lx(e.attrs)),n),(e.children||[]).map(function(r,o){return ny(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ce.createElement(e.tag,K({key:t},Lx(e.attrs)),(e.children||[]).map(function(r,o){return ny(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function yI(e){return Ku(e)[0]}function bI(e){return e?Array.isArray(e)?e:[e]:[]}var ej=`
|
|
96
|
-
.anticon {
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
color: inherit;
|
|
100
|
-
font-style: normal;
|
|
101
|
-
line-height: 0;
|
|
102
|
-
text-align: center;
|
|
103
|
-
text-transform: none;
|
|
104
|
-
vertical-align: -0.125em;
|
|
105
|
-
text-rendering: optimizeLegibility;
|
|
106
|
-
-webkit-font-smoothing: antialiased;
|
|
107
|
-
-moz-osx-font-smoothing: grayscale;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.anticon > * {
|
|
111
|
-
line-height: 1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.anticon svg {
|
|
115
|
-
display: inline-block;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.anticon::before {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.anticon .anticon-icon {
|
|
123
|
-
display: block;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.anticon[tabindex] {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.anticon-spin::before,
|
|
131
|
-
.anticon-spin {
|
|
132
|
-
display: inline-block;
|
|
133
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
134
|
-
animation: loadingCircle 1s infinite linear;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@-webkit-keyframes loadingCircle {
|
|
138
|
-
100% {
|
|
139
|
-
-webkit-transform: rotate(360deg);
|
|
140
|
-
transform: rotate(360deg);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@keyframes loadingCircle {
|
|
145
|
-
100% {
|
|
146
|
-
-webkit-transform: rotate(360deg);
|
|
147
|
-
transform: rotate(360deg);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
`,tj=function(t){var n=l.useContext(m1),r=n.csp,o=n.prefixCls,a=n.layer,i=ej;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
151
|
-
`).concat(i,`
|
|
152
|
-
}`)),l.useEffect(function(){var s=t.current,c=zm(s);_a(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:c})},[])},nj=["icon","className","onClick","style","primaryColor","secondaryColor"],uu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function rj(e){var t=e.primaryColor,n=e.secondaryColor;uu.primaryColor=t,uu.secondaryColor=n||yI(t),uu.calculated=!!n}function oj(){return K({},uu)}var Zs=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,c=Rt(t,nj),u=l.useRef(),d=uu;if(i&&(d={primaryColor:i,secondaryColor:s||yI(i)}),tj(u),Zk(zx(n),"icon should be icon definiton, but got ".concat(n)),!zx(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=K(K({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ny(f.icon,"svg-".concat(f.name),K(K({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Zs.displayName="IconReact";Zs.getTwoToneColors=oj;Zs.setTwoToneColors=rj;function CI(e){var t=bI(e),n=Z(t,2),r=n[0],o=n[1];return Zs.setTwoToneColors({primaryColor:r,secondaryColor:o})}function aj(){var e=Zs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ij=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];CI(km.primary);var Pt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=Rt(e,ij),d=l.useContext(m1),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,g=Q(v,m,H(H({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),b=i;b===void 0&&s&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,h=bI(c),p=Z(h,2),C=p[0],S=p[1];return l.createElement("span",Ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:g}),l.createElement(Zs,{icon:r,primaryColor:C,secondaryColor:S,style:y}))});Pt.displayName="AntdIcon";Pt.getTwoToneColor=aj;Pt.setTwoToneColor=CI;var lj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Yk}))},Bv=l.forwardRef(lj),sj={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"},cj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:sj}))},ec=l.forwardRef(cj),uj={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"},dj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:uj}))},tc=l.forwardRef(dj),fj={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"},mj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:fj}))},nc=l.forwardRef(mj),vj={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"},gj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:vj}))},SI=l.forwardRef(gj),hj=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
153
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
154
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
155
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
156
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
157
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
158
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
159
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
160
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
161
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
162
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
163
|
-
summary tabIndex target title type useMap value width wmode wrap`,pj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
164
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
165
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
166
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
167
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
168
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
169
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,yj="".concat(hj," ").concat(pj).split(/[\s\n]+/),bj="aria-",Cj="data-";function Fx(e,t){return e.indexOf(t)===0}function ur(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=K({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Fx(o,bj))||n.data&&Fx(o,Cj)||n.attr&&yj.includes(o))&&(r[o]=e[o])}),r}function xI(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const wI=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Br(e,t){return wI(e,e,t)}const Bx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ax=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",sf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ax(n.overflowY,t)||Ax(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},cf=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,Sj=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Hx=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:P=>P!==u;if(!Bx(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let g=e;for(;Bx(g)&&f(g);){if(g=Sj(g),g===m){v.push(g);break}g!=null&&g===document.body&&sf(g)&&!sf(document.documentElement)||g!=null&&sf(g,d)&&v.push(g)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:h,scrollY:p}=window,{height:C,width:S,top:x,right:$,bottom:w,left:O}=e.getBoundingClientRect(),{top:E,right:R,bottom:M,left:T}=(P=>{const k=window.getComputedStyle(P);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let _=s==="start"||s==="nearest"?x-E:s==="end"?w+M:x+C/2-E+M,I=c==="center"?O+S/2-T+R:c==="end"?$+R:O-T;const N=[];for(let P=0;P<v.length;P++){const k=v[P],{height:D,width:z,top:j,right:L,bottom:F,left:B}=k.getBoundingClientRect();if(i==="if-needed"&&x>=0&&O>=0&&w<=y&&$<=b&&(k===m&&!sf(k)||x>=j&&w<=F&&O>=B&&$<=L))return N;const V=getComputedStyle(k),W=parseInt(V.borderLeftWidth,10),q=parseInt(V.borderTopWidth,10),J=parseInt(V.borderRightWidth,10),Y=parseInt(V.borderBottomWidth,10);let ne=0,fe=0;const oe="offsetWidth"in k?k.offsetWidth-k.clientWidth-W-J:0,G="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-Y:0,ue="offsetWidth"in k?k.offsetWidth===0?0:z/k.offsetWidth:0,le="offsetHeight"in k?k.offsetHeight===0?0:D/k.offsetHeight:0;if(m===k)ne=s==="start"?_:s==="end"?_-y:s==="nearest"?cf(p,p+y,y,q,Y,p+_,p+_+C,C):_-y/2,fe=c==="start"?I:c==="center"?I-b/2:c==="end"?I-b:cf(h,h+b,b,W,J,h+I,h+I+S,S),ne=Math.max(0,ne+p),fe=Math.max(0,fe+h);else{ne=s==="start"?_-j-q:s==="end"?_-F+Y+G:s==="nearest"?cf(j,F,D,q,Y+G,_,_+C,C):_-(j+D/2)+G/2,fe=c==="start"?I-B-W:c==="center"?I-(B+z/2)+oe/2:c==="end"?I-L+J+oe:cf(B,L,z,W,J+oe,I,I+S,S);const{scrollLeft:ae,scrollTop:ee}=k;ne=le===0?0:Math.max(0,Math.min(ee+ne/le,k.scrollHeight-D/le+G)),fe=ue===0?0:Math.max(0,Math.min(ae+fe/ue,k.scrollWidth-z/ue+oe)),_+=ee-ne,I+=ae-fe}N.push({el:k,top:ne,left:fe})}return N},xj=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function wj(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Hx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Hx(e,xj(t))){const s=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function ry(e){return e!=null&&e===e.window}const $j=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ry(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ry(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function Ej(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Oj(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=$j(a),s=Date.now(),c=()=>{const d=Date.now()-s,f=Ej(d>o?o:d,i,e,o);ry(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d<o?jt(c):typeof r=="function"&&r()};jt(c)}const Bn=e=>{const[,,,,t]=Sr();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},$I=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,g=v===void 0?"x":v,b=e.props,y=e.onClick,h=e.onNoticeClose,p=e.times,C=e.hovering,S=l.useState(!1),x=Z(S,2),$=x[0],w=x[1],O=l.useState(0),E=Z(O,2),R=E[0],M=E[1],T=l.useState(0),_=Z(T,2),I=_[0],N=_[1],P=C||$,k=i>0&&s,D=function(){h(d)},z=function(W){(W.key==="Enter"||W.code==="Enter"||W.keyCode===ot.ENTER)&&D()};l.useEffect(function(){if(!P&&i>0){var V=Date.now()-I,W=setTimeout(function(){D()},i*1e3-I);return function(){u&&clearTimeout(W),N(Date.now()-V)}}},[i,P,p]),l.useEffect(function(){if(!P&&k&&(u||I===0)){var V=performance.now(),W,q=function J(){cancelAnimationFrame(W),W=requestAnimationFrame(function(Y){var ne=Y+I-V,fe=Math.min(ne/(i*1e3),1);M(fe*100),fe<1&&J()})};return q(),function(){u&&cancelAnimationFrame(W)}}},[i,I,P,k,p]);var j=l.useMemo(function(){return ft(m)==="object"&&m!==null?m:m?{closeIcon:g}:{}},[m,g]),L=ur(j,!0),F=100-(!R||R<0?0:R>100?100:R),B="".concat(n,"-notice");return l.createElement("div",Ce({},b,{ref:t,className:Q(B,o,H({},"".concat(B,"-closable"),m)),style:r,onMouseEnter:function(W){var q;w(!0),b==null||(q=b.onMouseEnter)===null||q===void 0||q.call(b,W)},onMouseLeave:function(W){var q;w(!1),b==null||(q=b.onMouseLeave)===null||q===void 0||q.call(b,W)},onClick:y}),l.createElement("div",{className:"".concat(B,"-content")},f),m&&l.createElement("a",Ce({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:z,"aria-label":"Close"},L,{onClick:function(W){W.preventDefault(),W.stopPropagation(),D()}}),j.closeIcon),k&&l.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:F},F+"%"))}),EI=ce.createContext({}),Rj=function(t){var n=t.children,r=t.classNames;return ce.createElement(EI.Provider,{value:{classNames:r}},n)},Vx=8,Wx=3,Kx=16,Ij=function(t){var n={offset:Vx,threshold:Wx,gap:Kx};if(t&&ft(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:Vx,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Wx,n.gap=(a=t.gap)!==null&&a!==void 0?a:Kx}return[!!t,n]},Pj=["className","style","classNames","styles"],Mj=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(EI),m=f.classNames,v=l.useRef({}),g=l.useState(null),b=Z(g,2),y=b[0],h=b[1],p=l.useState([]),C=Z(p,2),S=C[0],x=C[1],$=n.map(function(P){return{config:P,key:String(P.key)}}),w=Ij(d),O=Z(w,2),E=O[0],R=O[1],M=R.offset,T=R.threshold,_=R.gap,I=E&&(S.length>0||$.length<=T),N=typeof s=="function"?s(r):s;return l.useEffect(function(){E&&S.length>1&&x(function(P){return P.filter(function(k){return $.some(function(D){var z=D.key;return k===z})})})},[S,$,E]),l.useEffect(function(){var P;if(E&&v.current[(P=$[$.length-1])===null||P===void 0?void 0:P.key]){var k;h(v.current[(k=$[$.length-1])===null||k===void 0?void 0:k.key])}},[$,E]),ce.createElement(fI,Ce({key:r,className:Q(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,H(H({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),I)),style:i,keys:$,motionAppear:!0},N,{onAllRemoved:function(){c(r)}}),function(P,k){var D=P.config,z=P.className,j=P.style,L=P.index,F=D,B=F.key,V=F.times,W=String(B),q=D,J=q.className,Y=q.style,ne=q.classNames,fe=q.styles,oe=Rt(q,Pj),G=$.findIndex(function(me){return me.key===W}),ue={};if(E){var le=$.length-1-(G>-1?G:L-1),ae=r==="top"||r==="bottom"?"-50%":"0";if(le>0){var ee,ge,ye;ue.height=I?(ee=v.current[W])===null||ee===void 0?void 0:ee.offsetHeight:y==null?void 0:y.offsetHeight;for(var Ie=0,Ee=0;Ee<le;Ee++){var A;Ie+=((A=v.current[$[$.length-1-Ee].key])===null||A===void 0?void 0:A.offsetHeight)+_}var X=(I?Ie:le*M)*(r.startsWith("top")?1:-1),re=!I&&y!==null&&y!==void 0&&y.offsetWidth&&(ge=v.current[W])!==null&&ge!==void 0&&ge.offsetWidth?((y==null?void 0:y.offsetWidth)-M*2*(le<3?le:3))/((ye=v.current[W])===null||ye===void 0?void 0:ye.offsetWidth):1;ue.transform="translate3d(".concat(ae,", ").concat(X,"px, 0) scaleX(").concat(re,")")}else ue.transform="translate3d(".concat(ae,", 0, 0)")}return ce.createElement("div",{ref:k,className:Q("".concat(o,"-notice-wrapper"),z,ne==null?void 0:ne.wrapper),style:K(K(K({},j),ue),fe==null?void 0:fe.wrapper),onMouseEnter:function(){return x(function(pe){return pe.includes(W)?pe:[].concat(_e(pe),[W])})},onMouseLeave:function(){return x(function(pe){return pe.filter(function(ve){return ve!==W})})}},ce.createElement($I,Ce({},oe,{ref:function(pe){G>-1?v.current[W]=pe:delete v.current[W]},prefixCls:o,classNames:ne,styles:fe,className:Q(J,m==null?void 0:m.notice),style:Y,times:V,key:B,eventKey:B,onNoticeClose:u,hovering:E&&S.length>0})))})},Nj=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=l.useState([]),v=Z(m,2),g=v[0],b=v[1],y=function(E){var R,M=g.find(function(T){return T.key===E});M==null||(R=M.onClose)===null||R===void 0||R.call(M),b(function(T){return T.filter(function(_){return _.key!==E})})};l.useImperativeHandle(t,function(){return{open:function(E){b(function(R){var M=_e(R),T=M.findIndex(function(N){return N.key===E.key}),_=K({},E);if(T>=0){var I;_.times=(((I=R[T])===null||I===void 0?void 0:I.times)||0)+1,M[T]=_}else _.times=0,M.push(_);return i>0&&M.length>i&&(M=M.slice(-i)),M})},close:function(E){y(E)},destroy:function(){b([])}}});var h=l.useState({}),p=Z(h,2),C=p[0],S=p[1];l.useEffect(function(){var O={};g.forEach(function(E){var R=E.placement,M=R===void 0?"topRight":R;M&&(O[M]=O[M]||[],O[M].push(E))}),Object.keys(C).forEach(function(E){O[E]=O[E]||[]}),S(O)},[g]);var x=function(E){S(function(R){var M=K({},R),T=M[E]||[];return T.length||delete M[E],M})},$=l.useRef(!1);if(l.useEffect(function(){Object.keys(C).length>0?$.current=!0:$.current&&(u==null||u(),$.current=!1)},[C]),!o)return null;var w=Object.keys(C);return Qo.createPortal(l.createElement(l.Fragment,null,w.map(function(O){var E=C[O],R=l.createElement(Mj,{key:O,configList:E,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:c==null?void 0:c(O),motion:a,onNoticeClose:y,onAllNoticeRemoved:x,stack:d});return f?f(R,{prefixCls:r,key:O}):R})),o)}),Tj=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],_j=function(){return document.body},Ux=0;function Dj(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function kj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?_j:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Rt(e,Tj),m=l.useState(),v=Z(m,2),g=v[0],b=v[1],y=l.useRef(),h=l.createElement(Nj,{container:g,ref:y,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),p=l.useState([]),C=Z(p,2),S=C[0],x=C[1],$=zt(function(O){var E=Dj(f,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(Ux),Ux+=1),x(function(R){return[].concat(_e(R),[{type:"open",config:E}])})}),w=l.useMemo(function(){return{open:$,close:function(E){x(function(R){return[].concat(_e(R),[{type:"close",key:E}])})},destroy:function(){x(function(E){return[].concat(_e(E),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){b(n())}),l.useEffect(function(){if(y.current&&S.length){S.forEach(function(R){switch(R.type){case"open":y.current.open(R.config);break;case"close":y.current.close(R.key);break;case"destroy":y.current.destroy();break}});var O,E;x(function(R){return(O!==R||!E)&&(O=R,E=R.filter(function(M){return!S.includes(M)})),E})}},[S]),[w,h]}var jj={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"},zj=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:jj}))},$l=l.forwardRef(zj);function Lm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Fm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function qx(e){const{closable:t,closeIcon:n}=e||{};return ce.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])}const Lj={},OI=(e,t,n=Lj)=>{const r=qx(e),o=qx(t),[a]=ho("global",Zo.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=ce.useMemo(()=>Object.assign({closeIcon:ce.createElement(tc,null)},n),[n]),c=ce.useMemo(()=>r===!1?!1:r?Lm(s,o,r):o===!1?!1:o?Lm(s,o):s.closable?s:!1,[r,o,s]);return ce.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:m}=c;let v=m;const g=ur(c,!0);return v!=null&&(f&&(v=f(m)),v=ce.isValidElement(v)?ce.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(u=v.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:a.close}),g)):ce.createElement("span",Object.assign({"aria-label":a.close},g),v)),[!0,v,i,g]},[i,a.close,c,s])},RI=()=>ce.useReducer(e=>e+1,0);function II(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=II(i,r[a],s);else{const{_default:c}=i;c&&(r[a]=r[a]||{},r[a][c]=Q(r[a][c],s))}else r[a]=Q(r[a],s)}),r),{})}function Fj(e,...t){return l.useMemo(()=>II.apply(void 0,[e].concat(t)),[t,e])}function Bj(...e){return l.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function oy(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?oy(a,o):a}}),n}const Aj=(e,t,n)=>{const r=Fj.apply(void 0,[n].concat(_e(e))),o=Bj.apply(void 0,_e(t));return l.useMemo(()=>[oy(r,n),oy(o,n)],[r,o,n])},Hj=e=>{const[t,n]=l.useState(null);return[l.useCallback((o,a,i)=>{const s=t??o,c=Math.min(s||0,o),u=Math.max(s||0,o),d=a.slice(c,u+1).map(e),f=d.some(v=>!i.has(v)),m=[];return d.forEach(v=>{f?(i.has(v)||m.push(v),i.add(v)):(i.delete(v),m.push(v))}),n(f?u:null),m},[t]),n]},Vj=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(_e(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]};function Wj(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const Kj=(e,t)=>l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):Wj(r,n)}),Uj=e=>{const t=l.useRef(e),[,n]=RI();return[()=>t.current,r=>{t.current=r,n()}]},Av=ce.createContext(void 0),Xa=100,qj=10,PI=Xa*qj,MI={Modal:Xa,Drawer:Xa,Popover:Xa,Popconfirm:Xa,Tooltip:Xa,Tour:Xa,FloatButton:Xa},Gj={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Xj(e){return e in MI}const El=(e,t)=>{const[,n]=Sr(),r=ce.useContext(Av),o=Xj(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+MI[e]:i+=Gj[e],a=[r===void 0?t:i,i]}return a},Yj=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:g,zIndexPopup:b,contentPadding:y,contentBg:h}=e,p=`${t}-notice`,C=new en("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),S=new en("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${p}-content`]:{display:"inline-block",padding:y,background:h,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
170
|
-
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Zt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
171
|
-
${t}-move-up-appear,
|
|
172
|
-
${t}-move-up-enter
|
|
173
|
-
`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
174
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
175
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
176
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Qj=e=>({zIndexPopup:e.zIndexPopupBase+PI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),NI=Ut("Message",e=>{const t=Bt(e,{height:150});return Yj(t)},Qj);var Jj=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 Zj={info:l.createElement(SI,null),success:l.createElement(Bv,null),error:l.createElement(ec,null),warning:l.createElement(nc,null),loading:l.createElement($l,null)},TI=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:Q(`${e}-custom-content`,`${e}-${t}`)},n||Zj[t],l.createElement("span",null,r)),e7=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=Jj(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(xt),c=t||s("message"),u=Bn(c),[d,f,m]=NI(c,u);return d(l.createElement($I,Object.assign({},i,{prefixCls:c,className:Q(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:l.createElement(TI,{prefixCls:c,type:r,icon:o},a)})))};function t7(e,t){return{motionName:t??`${e}-move-up`}}function y1(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var n7=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 r7=8,o7=3,a7=({children:e,prefixCls:t})=>{const n=Bn(t),[r,o,a]=NI(t,n);return r(l.createElement(Rj,{classNames:{list:Q(o,a,n)}},e))},i7=(e,{prefixCls:t,key:n})=>l.createElement(a7,{prefixCls:t,key:n},e),l7=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=o7,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:v}=l.useContext(xt),g=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??r7}),y=()=>Q({[`${g}-rtl`]:s??v==="rtl"}),h=()=>t7(g,c),p=l.createElement("span",{className:`${g}-close-x`},l.createElement(tc,{className:`${g}-close-icon`})),[C,S]=kj({prefixCls:g,style:b,className:y,motion:h,closable:!1,closeIcon:p,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:i7});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:g,message:m})),S});let Gx=0;function _I(e){const t=l.useRef(null);return Ni(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const $=()=>{};return $.then=()=>{},$}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:v,icon:g,type:b,key:y,className:h,style:p,onClose:C}=c,S=n7(c,["content","icon","type","key","className","style","onClose"]);let x=y;return x==null&&(Gx+=1,x=`antd-message-${Gx}`),y1($=>(u(Object.assign(Object.assign({},S),{key:x,content:l.createElement(TI,{prefixCls:d,type:b,icon:g},v),placement:"top",className:Q(b&&`${m}-${b}`,h,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),p),onClose:()=>{C==null||C(),$()}})),()=>{r(x)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let v;d&&typeof d=="object"&&"content"in d?v=d:v={content:d};let g,b;typeof f=="function"?b=f:(g=f,b=m);const y=Object.assign(Object.assign({onClose:b,duration:g},v),{type:c});return o(y)};i[c]=u}),i},[]),l.createElement(l7,Object.assign({key:"message-holder"},e,{ref:t}))]}function s7(e){return _I(e)}function DI(e,t){this.v=e,this.k=t}function Er(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Er=function(i,s,c,u){function d(f,m){Er(i,f,function(v){return this._invoke(f,m,v)})}s?o?o(i,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[s]=c:(d("next",0),d("throw",1),d("return",2))},Er(e,t,n,r)}function b1(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,g,b,y){var h=g&&g.prototype instanceof s?g:s,p=Object.create(h.prototype);return Er(p,"_invoke",function(C,S,x){var $,w,O,E=0,R=x||[],M=!1,T={p:0,n:0,v:e,a:_,f:_.bind(e,4),d:function(N,P){return $=N,w=0,O=e,T.n=P,i}};function _(I,N){for(w=I,O=N,t=0;!M&&E&&!P&&t<R.length;t++){var P,k=R[t],D=T.p,z=k[2];I>3?(P=z===N)&&(O=k[(w=k[4])?5:(w=3,3)],k[4]=k[5]=e):k[0]<=D&&((P=I<2&&D<k[1])?(w=0,T.v=N,T.n=k[1]):D<z&&(P=I<3||k[0]>N||N>z)&&(k[4]=I,k[5]=N,T.n=z,w=0))}if(P||I>1)return i;throw M=!0,N}return function(I,N,P){if(E>1)throw TypeError("Generator is already running");for(M&&N===1&&_(N,P),w=N,O=P;(t=w<2?e:O)||!M;){$||(w?w<3?(w>1&&(T.n=-1),_(w,O)):T.n=O:T.v=O);try{if(E=2,$){if(w||(I="next"),t=$[I]){if(!(t=t.call($,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,w<2&&(w=0)}else w===1&&(t=$.return)&&t.call($),w<2&&(O=TypeError("The iterator does not provide a '"+I+"' method"),w=1);$=e}else if((t=(M=T.n<0)?O:C.call(S,T))!==i)break}catch(k){$=e,w=1,O=k}finally{E=1}}return{value:t,done:M}}}(v,b,y),!0),p}var i={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Er(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,u):(v.__proto__=u,Er(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return c.prototype=u,Er(f,"constructor",u),Er(u,"constructor",c),c.displayName="GeneratorFunction",Er(u,o,"GeneratorFunction"),Er(f),Er(f,o,"Generator"),Er(f,r,function(){return this}),Er(f,"toString",function(){return"[object Generator]"}),(b1=function(){return{w:a,m}})()}function Bm(e,t){function n(o,a,i,s){try{var c=e[o](a),u=c.value;return u instanceof DI?t.resolve(u.v).then(function(d){n("next",d,i,s)},function(d){n("throw",d,i,s)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,s)})}catch(d){s(d)}}var r;this.next||(Er(Bm.prototype),Er(Bm.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Er(this,"_invoke",function(o,a,i){function s(){return new t(function(c,u){n(o,i,c,u)})}return r=r?r.then(s,s):s()},!0)}function kI(e,t,n,r,o){return new Bm(b1().w(e,t,n,r),o||Promise)}function c7(e,t,n,r,o){var a=kI(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function u7(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Xx(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ft(e)+" is not iterable")}function Tr(){var e=b1(),t=e.m(Tr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,o[f],m)},delegateYield:function(f,m,v){return s.resultName=m,c(u.d,Xx(f),v)},finish:function(f){return c(u.f,f)}},c=function(f,m,v){u.p=s.prev,u.n=s.next;try{return f(m,v)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return i.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(Tr=function(){return{wrap:function(c,u,d,f){return e.w(a(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new DI(c,u)},AsyncIterator:Bm,async:function(c,u,d,f,m){return(r(u)?kI:c7)(a(c),u,d,f,m)},keys:u7,values:Xx}})()}function Yx(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ol(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){Yx(a,r,o,i,s,"next",c)}function s(c){Yx(a,r,o,i,s,"throw",c)}i(void 0)})}}var md=K({},eR),d7=md.version,Th=md.render,f7=md.unmountComponentAtNode,Hv;try{var m7=Number((d7||"").split(".")[0]);m7>=18&&(Hv=md.createRoot)}catch{}function Qx(e){var t=md.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ft(t)==="object"&&(t.usingClientEntryPoint=e)}var Am="__rc_react_root__";function v7(e,t){Qx(!0);var n=t[Am]||Hv(t);Qx(!1),n.render(e),t[Am]=n}function g7(e,t){Th==null||Th(e,t)}function h7(e,t){if(Hv){v7(e,t);return}g7(e,t)}function p7(e){return ay.apply(this,arguments)}function ay(){return ay=Ol(Tr().mark(function e(t){return Tr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Am])===null||o===void 0||o.unmount(),delete t[Am]}));case 1:case"end":return r.stop()}},e)})),ay.apply(this,arguments)}function y7(e){f7(e)}function b7(e){return iy.apply(this,arguments)}function iy(){return iy=Ol(Tr().mark(function e(t){return Tr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hv===void 0){r.next=2;break}return r.abrupt("return",p7(t));case 2:y7(t);case 3:case"end":return r.stop()}},e)})),iy.apply(this,arguments)}const C7=(e,t)=>(h7(e,t),()=>b7(t));let S7=C7;function C1(e){return S7}const _h=()=>({height:0,opacity:0}),Jx=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},x7=e=>({height:e?e.offsetHeight:0}),Dh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Hm=(e=Uu)=>({motionName:`${e}-motion-collapse`,onAppearStart:_h,onEnterStart:_h,onAppearActive:Jx,onEnterActive:Jx,onLeaveStart:x7,onLeaveActive:_h,onAppearEnd:Dh,onEnterEnd:Dh,onLeaveEnd:Dh,motionDeadline:500}),wi=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function on(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const rc=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},w7=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(",")}}}}},$7=gk("Wave",w7),Vv=`${Uu}-wave-target`;function E7(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function O7(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(E7))!==null&&t!==void 0?t:null}function kh(e){return Number.isNaN(e)?0:e}const R7=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=l.useRef(null),i=l.useRef(null);l.useEffect(()=>{i.current=o()},[]);const[s,c]=l.useState(null),[u,d]=l.useState([]),[f,m]=l.useState(0),[v,g]=l.useState(0),[b,y]=l.useState(0),[h,p]=l.useState(0),[C,S]=l.useState(!1),x={left:f,top:v,width:b,height:h,borderRadius:u.map(O=>`${O}px`).join(" ")};s&&(x["--wave-color"]=s);function $(){const O=getComputedStyle(n);c(O7(n));const E=O.position==="static",{borderLeftWidth:R,borderTopWidth:M}=O;m(E?n.offsetLeft:kh(-Number.parseFloat(R))),g(E?n.offsetTop:kh(-Number.parseFloat(M))),y(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:_,borderBottomLeftRadius:I,borderBottomRightRadius:N}=O;d([T,_,N,I].map(P=>kh(Number.parseFloat(P))))}if(l.useEffect(()=>{if(n){const O=jt(()=>{$(),S(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver($),E.observe(n)),()=>{jt.cancel(O),E==null||E.disconnect()}}},[n]),!C)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Vv));return l.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,E)=>{var R,M;if(E.deadline||E.propertyName==="opacity"){const T=(R=a.current)===null||R===void 0?void 0:R.parentElement;(M=i.current)===null||M===void 0||M.call(i).then(()=>{T==null||T.remove()})}return!1}},({className:O},E)=>l.createElement("div",{ref:ar(a,E),className:Q(t,O,{"wave-quick":w}),style:x}))},I7=(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);const a=C1();let i=null;function s(){return i}i=a(l.createElement(R7,Object.assign({},t,{target:e,registerUnmount:s})),o)},P7=(e,t,n)=>{const{wave:r}=l.useContext(xt),[,o,a]=Sr(),i=zt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Vv}`)||d,{showEffect:m}=r||{};(m||I7)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=l.useRef(null);return u=>{jt.cancel(s.current),s.current=jt(()=>{i(u)})}},vd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(xt),a=l.useRef(null),i=o("wave"),[,s]=$7(i),c=P7(a,Q(i,s),r);if(ce.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!rc(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ce.isValidElement(t))return t??null;const u=Jo(t)?ar(Mi(t),a):a;return Br(t,{ref:u})},ir=e=>{const t=ce.useContext(fl);return ce.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},M7=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},N7=Ut(["Space","Compact"],e=>[M7(e)],()=>({}),{resetStyle:!1});var jI=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 Wv=l.createContext(null),wa=(e,t)=>{const n=l.useContext(Wv),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return Q(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},T7=e=>{const{children:t}=e;return l.createElement(Wv.Provider,{value:null},t)},_7=e=>{const{children:t}=e,n=jI(e,["children"]);return l.createElement(Wv.Provider,{value:l.useMemo(()=>n,[n])},t)},D7=e=>{const{getPrefixCls:t,direction:n}=l.useContext(xt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=jI(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ir(C=>r??C),m=t("space-compact",i),[v,g]=N7(m),b=Q(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),y=l.useContext(Wv),h=yr(u),p=l.useMemo(()=>h.map((C,S)=>{const x=(C==null?void 0:C.key)||`${m}-item-${S}`;return l.createElement(_7,{key:x,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:S===h.length-1&&(!y||(y==null?void 0:y.isLastItem))},C)}),[h,y,o,f,m]);return h.length===0?null:v(l.createElement("div",Object.assign({className:b},d),p))};var k7=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 zI=l.createContext(void 0),j7=e=>{const{getPrefixCls:t,direction:n}=l.useContext(xt),{prefixCls:r,size:o,className:a}=e,i=k7(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Sr(),u=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=Q(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return l.createElement(zI.Provider,{value:o},l.createElement("div",Object.assign({},i,{className:d})))},Zx=/^[\u4E00-\u9FA5]{2}$/,ly=Zx.test.bind(Zx);function S1(e){return e==="danger"?{danger:!0}:{type:e}}function ew(e){return typeof e=="string"}function jh(e){return e==="text"||e==="link"}function z7(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ew(e.type)&&ly(e.props.children)?Br(e,{children:e.props.children.split("").join(n)}):ew(e)?ly(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):xI(e)?ce.createElement("span",null,e):e}function L7(e,t){let n=!1;const r=[];return ce.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=i}),ce.Children.map(r,o=>z7(o,t))}["default","primary","danger"].concat(_e(Si));const LI=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Q(`${a}-icon`,n);return ce.createElement("span",{ref:t,className:i,style:r},o)}),tw=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=Q(`${n}-loading-icon`,r);return ce.createElement(LI,{prefixCls:n,className:i,style:o,ref:t},ce.createElement($l,{className:a}))}),zh=()=>({width:0,opacity:0,transform:"scale(0)"}),Lh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),F7=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?ce.createElement(tw,{prefixCls:t,className:o,style:a}):ce.createElement(To,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:zh,onAppearActive:Lh,onEnterStart:zh,onEnterActive:Lh,onLeaveStart:Lh,onLeaveActive:zh},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},a),u);return ce.createElement(tw,{prefixCls:t,className:Q(o,c),style:f,ref:d})})},nw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),B7=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}},nw(`${t}-primary`,o),nw(`${t}-danger`,a)]}};var A7=["b"],H7=["v"],Fh=function(t){return Math.round(Number(t||0))},V7=function(t){if(t instanceof Wt)return t;if(t&&ft(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Rt(n,A7);return K(K({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},qu=function(e){Sa(n,e);var t=xa(n);function n(r){return En(this,n),t.call(this,V7(r))}return On(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Fh(o.s*100),i=Fh(o.b*100),s=Fh(o.h),c=o.a,u="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=Rt(o,H7);return K(K({},i),{},{b:a,a:this.a})}}]),n}(Wt),W7=function(t){return t instanceof qu?t:new qu(t)};W7("#1677ff");const K7=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",U7=(e,t)=>e?K7(e,t):"";let sy=function(){function e(t){En(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new qu(this.colors[0].color.metaColor)):this.metaColor=new qu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return On(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return U7(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var q7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},G7=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:q7}))},Bs=l.forwardRef(G7);const x1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
177
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
178
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),X7=e=>({animationDuration:e,animationFillMode:"both"}),Y7=e=>({animationDuration:e,animationFillMode:"both"}),Kv=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
179
|
-
${a}${e}-enter,
|
|
180
|
-
${a}${e}-appear
|
|
181
|
-
`]:Object.assign(Object.assign({},X7(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Y7(r)),{animationPlayState:"paused"}),[`
|
|
182
|
-
${a}${e}-enter${e}-enter-active,
|
|
183
|
-
${a}${e}-appear${e}-appear-active
|
|
184
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Q7=new en("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),J7=new en("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Z7=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Kv(r,Q7,J7,e.motionDurationMid,t),{[`
|
|
185
|
-
${o}${r}-enter,
|
|
186
|
-
${o}${r}-appear
|
|
187
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},ez=new en("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tz=new en("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),nz=new en("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rz=new en("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oz=new en("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),az=new en("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),iz=new en("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lz=new en("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),sz={"move-up":{inKeyframes:iz,outKeyframes:lz},"move-down":{inKeyframes:ez,outKeyframes:tz},"move-left":{inKeyframes:nz,outKeyframes:rz},"move-right":{inKeyframes:oz,outKeyframes:az}},As=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=sz[t];return[Kv(r,o,a,e.motionDurationMid),{[`
|
|
188
|
-
${r}-enter,
|
|
189
|
-
${r}-appear
|
|
190
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Uv=new en("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qv=new en("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gv=new en("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Xv=new en("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),cz=new en("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uz=new en("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),dz=new en("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),fz=new en("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mz={"slide-up":{inKeyframes:Uv,outKeyframes:qv},"slide-down":{inKeyframes:Gv,outKeyframes:Xv},"slide-left":{inKeyframes:cz,outKeyframes:uz},"slide-right":{inKeyframes:dz,outKeyframes:fz}},ya=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=mz[t];return[Kv(r,o,a,e.motionDurationMid),{[`
|
|
191
|
-
${r}-enter,
|
|
192
|
-
${r}-appear
|
|
193
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},w1=new en("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vz=new en("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rw=new en("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ow=new en("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),gz=new en("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),hz=new en("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pz=new en("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),yz=new en("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),bz=new en("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Cz=new en("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Sz=new en("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xz=new en("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wz={zoom:{inKeyframes:w1,outKeyframes:vz},"zoom-big":{inKeyframes:rw,outKeyframes:ow},"zoom-big-fast":{inKeyframes:rw,outKeyframes:ow},"zoom-left":{inKeyframes:pz,outKeyframes:yz},"zoom-right":{inKeyframes:bz,outKeyframes:Cz},"zoom-up":{inKeyframes:gz,outKeyframes:hz},"zoom-down":{inKeyframes:Sz,outKeyframes:xz}},gd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=wz[t];return[Kv(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
194
|
-
${r}-enter,
|
|
195
|
-
${r}-appear
|
|
196
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$z=e=>e instanceof sy?e:new sy(e),Ez=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new qu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},FI=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},BI=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Yf(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Yf(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Yf(u),v=Ez(new sy(e.colorBgSolid),"#fff")?"#000":"#fff",g=Si.reduce((b,y)=>Object.assign(Object.assign({},b),{[`${y}ShadowColor`]:`0 ${U(e.controlOutlineWidth)} 0 ${qc(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},Oz=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${U(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Qs(),"> a":{color:"currentColor"},"&:not(:disabled)":na(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},AI=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Rz=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Iz=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Yv=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},AI(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Pz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Iz(e))}),Mz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Qv=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?Mz:Pz;return Object.assign(Object.assign({},a(e)),AI(e.componentCls,t,n))},Jv=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Qv(e,r,o))}),Zv=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Qv(e,r,o))}),eg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),tg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Qv(e,n,r))}),ba=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Qv(e,r,o,n))}),Nz=e=>{const{componentCls:t}=e;return Si.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Jv(e,e.colorTextLightSolid,o,{background:i},{background:u})),Zv(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),eg(e)),tg(e,a,{color:o,background:s},{color:o,background:c})),ba(e,o,"link",{color:i},{color:u})),ba(e,o,"text",{color:i,background:a},{color:u,background:c}))})},{})},Tz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Jv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),eg(e)),tg(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Yv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ba(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),_z=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Zv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),eg(e)),tg(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),ba(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ba(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Yv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Dz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Jv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Zv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eg(e)),tg(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),ba(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ba(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Yv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),kz=e=>Object.assign(Object.assign({},ba(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Yv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),jz=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Tz(e),[`${t}-color-primary`]:_z(e),[`${t}-color-dangerous`]:Dz(e),[`${t}-color-link`]:kz(e)},Nz(e))},zz=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ba(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Jv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ba(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$1=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${U(c)} ${U(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:Rz(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Lz=e=>{const t=Bt(e,{fontSize:e.contentFontSize});return $1(t,e.componentCls)},Fz=e=>{const t=Bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $1(t,`${e.componentCls}-sm`)},Bz=e=>{const t=Bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $1(t,`${e.componentCls}-lg`)},Az=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Hz=Ut("Button",e=>{const t=FI(e);return[Oz(t),Lz(t),Fz(t),Bz(t),Az(t),jz(t),zz(t),B7(t)]},BI,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Vz(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Wz(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 oc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},Vz(e,a,t,o)),Wz(o,a,t))}}function Kz(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Uz(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 qz(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Kz(e,t,e.componentCls)),Uz(e.componentCls,t))}}const Gz=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const c=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},Xz=Js(["Button","compact"],e=>{const t=FI(e);return[oc(t),qz(t),Gz(t)]},BI);var Yz=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 Qz(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 Jz={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Zz=ce.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:v,className:g,rootClassName:b,children:y,icon:h,iconPosition:p="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:$,style:w={},autoInsertSpace:O,autoFocus:E}=e,R=Yz(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=c||"default",{button:T}=ce.useContext(xt),_=d||(T==null?void 0:T.shape)||"default",[I,N]=l.useMemo(()=>{if(i&&s)return[i,s];if(c||u){const Ae=Jz[M]||[];return u?["danger",Ae[1]]:Ae}return T!=null&&T.color&&(T!=null&&T.variant)?[T.color,T.variant]:["default","outlined"]},[i,s,c,u,T==null?void 0:T.color,T==null?void 0:T.variant,M]),k=I==="danger"?"dangerous":I,{getPrefixCls:D,direction:z,autoInsertSpace:j,className:L,style:F,classNames:B,styles:V}=fr("button"),W=(n=O??j)!==null&&n!==void 0?n:!0,q=D("btn",a),[J,Y,ne]=Hz(q),fe=l.useContext(Nr),oe=v??fe,G=l.useContext(zI),ue=l.useMemo(()=>Qz(o),[o]),[le,ae]=l.useState(ue.loading),[ee,ge]=l.useState(!1),ye=l.useRef(null),Ie=Ha(t,ye),Ee=l.Children.count(y)===1&&!h&&!jh(N),A=l.useRef(!0);ce.useEffect(()=>(A.current=!1,()=>{A.current=!0}),[]),Dt(()=>{let Ae=null;ue.delay>0?Ae=setTimeout(()=>{Ae=null,ae(!0)},ue.delay):ae(ue.loading);function ct(){Ae&&(clearTimeout(Ae),Ae=null)}return ct},[ue.delay,ue.loading]),l.useEffect(()=>{if(!ye.current||!W)return;const Ae=ye.current.textContent||"";Ee&&ly(Ae)?ee||ge(!0):ee&&ge(!1)}),l.useEffect(()=>{E&&ye.current&&ye.current.focus()},[]);const X=ce.useCallback(Ae=>{var ct;if(le||oe){Ae.preventDefault();return}(ct=e.onClick)===null||ct===void 0||ct.call(e,("href"in e,Ae))},[e.onClick,le,oe]),{compactSize:re,compactItemClassnames:me}=wa(q,z),pe={large:"lg",small:"sm",middle:void 0},ve=ir(Ae=>{var ct,yt;return(yt=(ct=f??re)!==null&&ct!==void 0?ct:G)!==null&&yt!==void 0?yt:Ae}),Pe=ve&&(r=pe[ve])!==null&&r!==void 0?r:"",De=le?"loading":h,Me=on(R,["navigate"]),Le=Q(q,Y,ne,{[`${q}-${_}`]:_!=="default"&&_,[`${q}-${M}`]:M,[`${q}-dangerous`]:u,[`${q}-color-${k}`]:k,[`${q}-variant-${N}`]:N,[`${q}-${Pe}`]:Pe,[`${q}-icon-only`]:!y&&y!==0&&!!De,[`${q}-background-ghost`]:C&&!jh(N),[`${q}-loading`]:le,[`${q}-two-chinese-chars`]:ee&&W&&!le,[`${q}-block`]:S,[`${q}-rtl`]:z==="rtl",[`${q}-icon-end`]:p==="end"},me,g,b,L),Oe=Object.assign(Object.assign({},F),w),be=Q($==null?void 0:$.icon,B.icon),ke=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),V.icon||{}),Se=Ae=>ce.createElement(LI,{prefixCls:q,className:be,style:ke},Ae),Re=()=>ce.createElement(F7,{existIcon:!!h,prefixCls:q,loading:le,mount:A.current});let we;h&&!le?we=Se(h):o&&typeof o=="object"&&o.icon?we=Se(o.icon):we=Re();const xe=y||y===0?L7(y,Ee&&W):null;if(Me.href!==void 0)return J(ce.createElement("a",Object.assign({},Me,{className:Q(Le,{[`${q}-disabled`]:oe}),href:oe?void 0:Me.href,style:Oe,onClick:X,ref:Ie,tabIndex:oe?-1:0,"aria-disabled":oe}),we,xe));let Te=ce.createElement("button",Object.assign({},R,{type:x,className:Le,style:Oe,onClick:X,disabled:oe,ref:Ie}),we,xe,me&&ce.createElement(Xz,{prefixCls:q}));return jh(N)||(Te=ce.createElement(vd,{component:"Button",disabled:le},Te)),J(Te)}),kn=Zz;kn.Group=j7;kn.__ANT_BUTTON=!0;const Bh=e=>typeof(e==null?void 0:e.then)=="function",E1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),m=l.useRef(null),[v,g]=ml(!1),b=(...p)=>{a==null||a.apply(void 0,p)};l.useEffect(()=>{let p=null;return i&&(p=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{p&&clearTimeout(p)}},[i]);const y=p=>{Bh(p)&&(g(!0),p.then((...C)=>{g(!1,!0),b.apply(void 0,C),f.current=!1},C=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(C)}))},h=p=>{if(f.current)return;if(f.current=!0,!d){b();return}let C;if(s){if(C=d(p),u&&!Bh(C)){f.current=!1,b(p);return}}else if(d.length)C=d(a),f.current=!1;else if(C=d(),!Bh(C)){b();return}y(C)};return l.createElement(kn,Object.assign({},S1(t),{onClick:h,loading:v,prefixCls:r},o,{ref:m}),n)},hd=ce.createContext({}),{Provider:HI}=hd,aw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:c}=l.useContext(hd);return o?ce.createElement(E1,{isSilent:r,actionFn:s,close:(...u)=>{i==null||i.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},iw=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:c}=l.useContext(hd);return ce.createElement(E1,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var VI=l.createContext(null),lw=[];function eL(e,t){var n=l.useState(function(){if(!br())return null;var g=document.createElement("div");return g}),r=Z(n,1),o=r[0],a=l.useRef(!1),i=l.useContext(VI),s=l.useState(lw),c=Z(s,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(g){d(function(b){var y=[g].concat(_e(b));return y})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Dt(function(){return e?i?i(m):m():v(),v},[e]),Dt(function(){u.length&&(u.forEach(function(g){return g()}),d(lw))},[u]),[o,f]}var Ah;function WI(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 s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";_a(`
|
|
197
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
198
|
-
`).concat(d,`
|
|
199
|
-
`).concat(f,`
|
|
200
|
-
}`),t)}catch(g){console.error(g),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Hu(t),{width:m,height:v}}function sw(e){return typeof document>"u"?0:(Ah===void 0&&(Ah=WI()),Ah.width)}function cy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:WI(e)}function tL(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var nL="rc-util-locker-".concat(Date.now()),cw=0;function rL(e){var t=!!e,n=l.useState(function(){return cw+=1,"".concat(nL,"_").concat(cw)}),r=Z(n,1),o=r[0];Dt(function(){if(t){var a=cy(document.body).width,i=tL();_a(`
|
|
201
|
-
html body {
|
|
202
|
-
overflow-y: hidden;
|
|
203
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
204
|
-
}`),o)}else Hu(o);return function(){Hu(o)}},[t,o])}var oL=!1;function aL(e){return oL}var uw=function(t){return t===!1?!1:!br()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},O1=l.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,s=e.children,c=l.useState(n),u=Z(c,2),d=u[0],f=u[1],m=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=l.useState(function(){return uw(o)}),g=Z(v,2),b=g[0],y=g[1];l.useEffect(function(){var M=uw(o);y(M??null)});var h=eL(m&&!b),p=Z(h,2),C=p[0],S=p[1],x=b??C;rL(r&&n&&br()&&(x===C||x===document.body));var $=null;if(s&&Jo(s)&&t){var w=s;$=w.ref}var O=Ha($,t);if(!m||!br()||b===void 0)return null;var E=x===!1||aL(),R=s;return t&&(R=l.cloneElement(s,{ref:O})),l.createElement(VI.Provider,{value:S},E?R:Qo.createPortal(R,x))}),KI=l.createContext({});function iL(){var e=K({},id);return e.useId}var dw=0,fw=iL();const pd=fw?function(t){var n=fw();return t||n}:function(t){var n=l.useState("ssr-id"),r=Z(n,2),o=r[0],a=r[1];return l.useEffect(function(){var i=dw;dw+=1,a("rc_unique_".concat(i))},[]),t||o};function mw(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function vw(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 lL(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=vw(o),n.top+=vw(o,!0),n}const sL=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var cL={width:0,height:0,overflow:"hidden",outline:"none"},uL={outline:"none"},UI=ce.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,g=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,h=e.holderRef,p=e.visible,C=e.forceRender,S=e.width,x=e.height,$=e.classNames,w=e.styles,O=ce.useContext(KI),E=O.panel,R=Ha(h,E),M=l.useRef(),T=l.useRef();ce.useImperativeHandle(t,function(){return{focus:function(){var F;(F=M.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var B=document,V=B.activeElement;F&&V===T.current?M.current.focus({preventScroll:!0}):!F&&V===M.current&&T.current.focus({preventScroll:!0})}}});var _={};S!==void 0&&(_.width=S),x!==void 0&&(_.height=x);var I=s?ce.createElement("div",{className:Q("".concat(n,"-footer"),$==null?void 0:$.footer),style:K({},w==null?void 0:w.footer)},s):null,N=a?ce.createElement("div",{className:Q("".concat(n,"-header"),$==null?void 0:$.header),style:K({},w==null?void 0:w.header)},ce.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,P=l.useMemo(function(){return ft(c)==="object"&&c!==null?c:c?{closeIcon:u??ce.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),k=ur(P,!0),D=ft(c)==="object"&&c.disabled,z=c?ce.createElement("button",Ce({type:"button",onClick:d,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:D}),P.closeIcon):null,j=ce.createElement("div",{className:Q("".concat(n,"-content"),$==null?void 0:$.content),style:w==null?void 0:w.content},z,N,ce.createElement("div",Ce({className:Q("".concat(n,"-body"),$==null?void 0:$.body),style:K(K({},m),w==null?void 0:w.body)},v),f),I);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:R,style:K(K({},o),_),className:Q(n,r),onMouseDown:b,onMouseUp:y},ce.createElement("div",{ref:M,tabIndex:0,style:uL},ce.createElement(sL,{shouldUpdate:p||C},g?g(j):j)),ce.createElement("div",{tabIndex:0,ref:T,style:cL}))}),qI=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=l.useRef(),g=l.useState(),b=Z(g,2),y=b[0],h=b[1],p={};y&&(p.transformOrigin=y);function C(){var S=lL(v.current);h(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return l.createElement(To,{visible:i,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:c,ref:v},function(S,x){var $=S.className,w=S.style;return l.createElement(UI,Ce({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:x,style:K(K(K({},w),o),p),className:Q(a,$)}))})});qI.displayName="Content";var dL=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return l.createElement(To,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",Ce({ref:u,style:K(K({},f),r),className:Q("".concat(n,"-mask"),d,s)},a))})},fL=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,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,v=t.wrapProps,g=t.onClose,b=t.afterOpenChange,y=t.afterClose,h=t.transitionName,p=t.animation,C=t.closable,S=C===void 0?!0:C,x=t.mask,$=x===void 0?!0:x,w=t.maskTransitionName,O=t.maskAnimation,E=t.maskClosable,R=E===void 0?!0:E,M=t.maskStyle,T=t.maskProps,_=t.rootClassName,I=t.classNames,N=t.styles,P=l.useRef(),k=l.useRef(),D=l.useRef(),z=l.useState(i),j=Z(z,2),L=j[0],F=j[1],B=pd();function V(){N0(k.current,document.activeElement)||(P.current=document.activeElement)}function W(){if(!N0(k.current,document.activeElement)){var ae;(ae=D.current)===null||ae===void 0||ae.focus()}}function q(ae){if(ae)W();else{if(F(!1),$&&P.current&&d){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}L&&(y==null||y())}b==null||b(ae)}function J(ae){g==null||g(ae)}var Y=l.useRef(!1),ne=l.useRef(),fe=function(){clearTimeout(ne.current),Y.current=!0},oe=function(){ne.current=setTimeout(function(){Y.current=!1})},G=null;R&&(G=function(ee){Y.current?Y.current=!1:k.current===ee.target&&J(ee)});function ue(ae){if(c&&ae.keyCode===ot.ESC){ae.stopPropagation(),J(ae);return}i&&ae.keyCode===ot.TAB&&D.current.changeActive(!ae.shiftKey)}l.useEffect(function(){i&&(F(!0),V())},[i]),l.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var le=K(K(K({zIndex:o},f),N==null?void 0:N.wrapper),{},{display:L?null:"none"});return l.createElement("div",Ce({className:Q("".concat(r,"-root"),_)},ur(t,{data:!0})),l.createElement(dL,{prefixCls:r,visible:$&&i,motionName:mw(r,w,O),style:K(K({zIndex:o},M),N==null?void 0:N.mask),maskProps:T,className:I==null?void 0:I.mask}),l.createElement("div",Ce({tabIndex:-1,onKeyDown:ue,className:Q("".concat(r,"-wrap"),m,I==null?void 0:I.wrapper),ref:k,onClick:G,style:le},v),l.createElement(qI,Ce({},t,{onMouseDown:fe,onMouseUp:oe,ref:D,closable:S,ariaId:B,prefixCls:r,visible:i&&L,onClose:J,onVisibleChanged:q,motionName:mw(r,h,p)}))))},GI=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=Z(u,2),f=d[0],m=d[1],v=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:l.createElement(KI.Provider,{value:v},l.createElement(O1,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(fL,Ce({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),m(!1)}}))))};GI.displayName="Dialog";var Xi="RC_FORM_INTERNAL_HOOKS",dn=function(){pn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vl=l.createContext({getFieldValue:dn,getFieldsValue:dn,getFieldError:dn,getFieldWarning:dn,getFieldsError:dn,isFieldsTouched:dn,isFieldTouched:dn,isFieldValidating:dn,isFieldsValidating:dn,resetFields:dn,setFields:dn,setFieldValue:dn,setFieldsValue:dn,validateFields:dn,submit:dn,getInternalHooks:function(){return dn(),{dispatch:dn,initEntityValue:dn,registerField:dn,useSubscribe:dn,setInitialValues:dn,destroyForm:dn,setCallbacks:dn,registerWatch:dn,getFields:dn,setValidateMessages:dn,setPreserve:dn,getInitialValue:dn}}}),Gu=l.createContext(null);function uy(e){return e==null?[]:Array.isArray(e)?e:[e]}function mL(e){return e&&!!e._init}function dy(){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 fy=dy();function vL(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function gL(e,t,n){if(a1())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Fu(o,n.prototype),o}function my(e){var t=typeof Map=="function"?new Map:void 0;return my=function(r){if(r===null||!vL(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 gL(r,arguments,Bu(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Fu(o,r)},my(e)}var hL=/%[sdj%]/g,pL=function(){};function vy(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 co(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(hL,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){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 s}});return i}return e}function yL(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yL(t)&&typeof e=="string"&&!e)}function bL(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,_e(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function gw(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function CL(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,_e(e[n]||[]))}),t}var hw=function(e){Sa(n,e);var t=xa(n);function n(r,o){var a;return En(this,n),a=t.call(this,"Async Validation Error"),H(pt(a),"errors",void 0),H(pt(a),"fields",void 0),a.errors=r,a.fields=o,a}return On(n)}(my(Error));function SL(e,t,n,r,o){if(t.first){var a=new Promise(function(m,v){var g=function(h){return r(h),h.length?v(new hw(h,vy(h))):m(o)},b=CL(e);gw(b,n,g)});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,v){var g=function(y){if(d.push.apply(d,y),u++,u===c)return r(d),d.length?v(new hw(d,vy(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(b){var y=e[b];i.indexOf(b)!==-1?gw(y,n,g):bL(y,n,g)})});return f.catch(function(m){return m}),f}function xL(e){return!!(e&&e.message!==void 0)}function wL(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function pw(e,t){return function(n){var r;return e.fullFields?r=wL(t,e.fullFields):r=t[n.field||e.fullField],xL(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 yw(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ft(r)==="object"&&ft(e[n])==="object"?e[n]=K(K({},e[n]),r):e[n]=r}}return e}var Bl="enum",$L=function(t,n,r,o,a){t[Bl]=Array.isArray(t[Bl])?t[Bl]:[],t[Bl].indexOf(n)===-1&&o.push(co(a.messages[Bl],t.fullField,t[Bl].join(", ")))},EL=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(co(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(co(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},OL=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",v=typeof n=="string",g=Array.isArray(n);if(m?f="number":v?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),v&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(co(a.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(co(a.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(co(a.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(co(a.messages[f].range,t.fullField,t.min,t.max))},XI=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||rr(n,i||t.type))&&o.push(co(a.messages.required,t.fullField))},uf;const RL=function(){if(uf)return uf;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function($){return $&&$.exact?s:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(i).concat(t($),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,g=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(g,"|").concat(b).concat(y).concat(h,")").concat(p).concat(C);return uf=new RegExp("(?:^".concat(S,"$)"),"i"),uf};var bw={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},Gc={integer:function(t){return Gc.number(t)&&parseInt(t,10)===t},float:function(t){return Gc.number(t)&&!Gc.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 ft(t)==="object"&&!Gc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(bw.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(RL())},hex:function(t){return typeof t=="string"&&!!t.match(bw.hex)}},IL=function(t,n,r,o,a){if(t.required&&n===void 0){XI(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Gc[s](n)||o.push(co(a.messages.types[s],t.fullField,t.type)):s&&ft(n)!==t.type&&o.push(co(a.messages.types[s],t.fullField,t.type))},PL=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(co(a.messages.whitespace,t.fullField))};const Qt={required:XI,whitespace:PL,type:IL,range:OL,enum:$L,pattern:EL};var ML=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a)}r(i)},NL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Qt.required(t,n,o,i,a,"array"),n!=null&&(Qt.type(t,n,o,i,a),Qt.range(t,n,o,i,a))}r(i)},TL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&Qt.type(t,n,o,i,a)}r(i)},_L=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n,"date")&&!t.required)return r();if(Qt.required(t,n,o,i,a),!rr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Qt.type(t,c,o,i,a),c&&Qt.range(t,c.getTime(),o,i,a)}}r(i)},DL="enum",kL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&Qt[DL](t,n,o,i,a)}r(i)},jL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&(Qt.type(t,n,o,i,a),Qt.range(t,n,o,i,a))}r(i)},zL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&(Qt.type(t,n,o,i,a),Qt.range(t,n,o,i,a))}r(i)},LL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&Qt.type(t,n,o,i,a)}r(i)},FL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&(Qt.type(t,n,o,i,a),Qt.range(t,n,o,i,a))}r(i)},BL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),n!==void 0&&Qt.type(t,n,o,i,a)}r(i)},AL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n,"string")&&!t.required)return r();Qt.required(t,n,o,i,a),rr(n,"string")||Qt.pattern(t,n,o,i,a)}r(i)},HL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n)&&!t.required)return r();Qt.required(t,n,o,i,a),rr(n)||Qt.type(t,n,o,i,a)}r(i)},VL=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":ft(n);Qt.required(t,n,o,i,a,s),r(i)},WL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rr(n,"string")&&!t.required)return r();Qt.required(t,n,o,i,a,"string"),rr(n,"string")||(Qt.type(t,n,o,i,a),Qt.range(t,n,o,i,a),Qt.pattern(t,n,o,i,a),t.whitespace===!0&&Qt.whitespace(t,n,o,i,a))}r(i)},Hh=function(t,n,r,o,a){var i=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n,i)&&!t.required)return r();Qt.required(t,n,o,s,a,i),rr(n,i)||Qt.type(t,n,o,s,a)}r(s)};const du={string:WL,method:LL,number:FL,boolean:TL,regexp:HL,integer:zL,float:jL,array:NL,object:BL,enum:kL,pattern:AL,date:_L,url:Hh,hex:Hh,email:Hh,required:VL,any:ML};var yd=function(){function e(t){En(this,e),H(this,"rules",null),H(this,"_messages",fy),this.define(t)}return On(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ft(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=yw(dy(),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,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(g){var b=[],y={};function h(C){if(Array.isArray(C)){var S;b=(S=b).concat.apply(S,_e(C))}else b.push(C)}for(var p=0;p<g.length;p++)h(g[p]);b.length?(y=vy(b),c(b,y)):c(null,i)}if(s.messages){var d=this.messages();d===fy&&(d=dy()),yw(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(g){var b=r.rules[g],y=i[g];b.forEach(function(h){var p=h;typeof p.transform=="function"&&(i===n&&(i=K({},i)),y=i[g]=p.transform(y),y!=null&&(p.type=p.type||(Array.isArray(y)?"array":ft(y)))),typeof p=="function"?p={validator:p}:p=K({},p),p.validator=r.getValidationMethod(p),p.validator&&(p.field=g,p.fullField=p.fullField||g,p.type=r.getType(p),f[g]=f[g]||[],f[g].push({rule:p,value:y,source:i,field:g}))})});var v={};return SL(f,s,function(g,b){var y=g.rule,h=(y.type==="object"||y.type==="array")&&(ft(y.fields)==="object"||ft(y.defaultField)==="object");h=h&&(y.required||!y.required&&g.value),y.field=g.field;function p(w,O){return K(K({},O),{},{fullField:"".concat(y.fullField,".").concat(w),fullFields:y.fullFields?[].concat(_e(y.fullFields),[w]):[w]})}function C(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(w)?w:[w];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&y.message!==void 0&&(O=[].concat(y.message));var E=O.map(pw(y,i));if(s.first&&E.length)return v[y.field]=1,b(E);if(!h)b(E);else{if(y.required&&!g.value)return y.message!==void 0?E=[].concat(y.message).map(pw(y,i)):s.error&&(E=[s.error(y,co(s.messages.required,y.field))]),b(E);var R={};y.defaultField&&Object.keys(g.value).map(function(_){R[_]=y.defaultField}),R=K(K({},R),g.rule.fields);var M={};Object.keys(R).forEach(function(_){var I=R[_],N=Array.isArray(I)?I:[I];M[_]=N.map(p.bind(null,_))});var T=new e(M);T.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),T.validate(g.value,g.rule.options||s,function(_){var I=[];E&&E.length&&I.push.apply(I,_e(E)),_&&_.length&&I.push.apply(I,_e(_)),b(I.length?I:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,g.value,C,g.source,s);else if(y.validator){try{S=y.validator(y,g.value,C,g.source,s)}catch(w){var x,$;(x=($=console).error)===null||x===void 0||x.call($,w),s.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}S===!0?C():S===!1?C(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function(w){return C(w)})},function(g){u(g)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!du.hasOwnProperty(n.type))throw new Error(co("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"?du.required:du[this.getType(n)]||void 0}}]),e}();H(yd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");du[t]=n});H(yd,"warning",pL);H(yd,"messages",fy);H(yd,"validators",du);var to="'${name}' is not a valid ${type}",YI={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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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}"}},Cw=yd;function KL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Sw="CODE_LOGIC_ERROR";function gy(e,t,n,r,o){return hy.apply(this,arguments)}function hy(){return hy=Ol(Tr().mark(function e(t,n,r,o,a){var i,s,c,u,d,f,m,v,g;return Tr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return i=K({},r),delete i.ruleIndex,Cw.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(Sw)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new Cw(H({},t,[i])),d=fs(YI,o.validateMessages),u.messages(d),f=[],y.prev=10,y.next=13,Promise.resolve(u.validate(H({},t,n),K({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(h,p){var C=h.message,S=C===Sw?d.default:C;return l.isValidElement(S)?l.cloneElement(S,{key:"error_".concat(p)}):S}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){y.next=23;break}return y.next=21,Promise.all(n.map(function(h,p){return gy("".concat(t,".").concat(p),h,c,o,a)}));case 21:return m=y.sent,y.abrupt("return",m.reduce(function(h,p){return[].concat(_e(h),_e(p))},[]));case 23:return v=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=f.map(function(h){return typeof h=="string"?KL(h,v):h}),y.abrupt("return",g);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),hy.apply(this,arguments)}function UL(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(d,f){var m=d.validator,v=K(K({},d),{},{ruleIndex:f});return m&&(v.validator=function(g,b,y){var h=!1,p=function(){for(var x=arguments.length,$=new Array(x),w=0;w<x;w++)$[w]=arguments[w];Promise.resolve().then(function(){pn(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||y.apply(void 0,$)})},C=m(g,b,p);h=C&&typeof C.then=="function"&&typeof C.catch=="function",pn(h,"`callback` is deprecated. Please return a promise instead."),h&&C.then(function(){y()}).catch(function(S){y(S||" ")})}),v}).sort(function(d,f){var m=d.warningOnly,v=d.ruleIndex,g=f.warningOnly,b=f.ruleIndex;return!!m==!!g?v-b:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=Ol(Tr().mark(function f(m,v){var g,b,y;return Tr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:g=0;case 1:if(!(g<s.length)){p.next=12;break}return b=s[g],p.next=5,gy(i,t,b,r,a);case 5:if(y=p.sent,!y.length){p.next=9;break}return v([{errors:y,rule:b}]),p.abrupt("return");case 9:g+=1,p.next=1;break;case 12:m([]);case 13:case"end":return p.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return gy(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});c=(o?GL(u):qL(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function qL(e){return py.apply(this,arguments)}function py(){return py=Ol(Tr().mark(function e(t){return Tr().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,_e(o));return i}));case 1:case"end":return r.stop()}},e)})),py.apply(this,arguments)}function GL(e){return yy.apply(this,arguments)}function yy(){return yy=Ol(Tr().mark(function e(t){var n;return Tr().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(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),yy.apply(this,arguments)}function Ln(e){return uy(e)}function xw(e,t){var n={};return t.forEach(function(r){var o=Lr(e,r);n=xo(n,r,o)}),n}function $s(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return QI(t,r,n)})}function QI(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 XL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ft(e)!=="object"||ft(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return _e(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function YL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ft(t.target)==="object"&&e in t.target?t.target[e]:t}function ww(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(_e(e.slice(0,n)),[o],_e(e.slice(n,t)),_e(e.slice(t+1,r))):a<0?[].concat(_e(e.slice(0,t)),_e(e.slice(t+1,n+1)),[o],_e(e.slice(n+1,r))):e}var QL=["name"],yo=[];function Vh(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var R1=function(e){Sa(n,e);var t=xa(n);function n(r){var o;if(En(this,n),o=t.call(this,r),H(pt(o),"state",{resetCount:0}),H(pt(o),"cancelRegisterFunc",null),H(pt(o),"mounted",!1),H(pt(o),"touched",!1),H(pt(o),"dirty",!1),H(pt(o),"validatePromise",void 0),H(pt(o),"prevValidating",void 0),H(pt(o),"errors",yo),H(pt(o),"warnings",yo),H(pt(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Ln(f)),o.cancelRegisterFunc=null}),H(pt(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(_e(m),_e(u)):[]}),H(pt(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),H(pt(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),H(pt(o),"metaCache",null),H(pt(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=K(K({},o.getMeta()),{},{destroy:c});pa(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),H(pt(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,g=v===void 0?[]:v,b=f.onReset,y=d.store,h=o.getNamePath(),p=o.getValue(c),C=o.getValue(y),S=u&&$s(u,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!pa(p,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=yo,o.warnings=yo,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=yo,o.warnings=yo,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(m&&Vh(m,c,y,p,C,d)){o.reRender();return}break}case"setField":{var x=d.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||yo),"warnings"in x&&(o.warnings=x.warnings||yo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&$s(u,h,!0)){o.reRender();return}if(m&&!h.length&&Vh(m,c,y,p,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var $=g.map(Ln);if($.some(function(w){return $s(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!g.length||h.length||m)&&Vh(m,c,y,p,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),H(pt(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,g=v===void 0?!1:v,b=Promise.resolve().then(Ol(Tr().mark(function y(){var h,p,C,S,x,$,w;return Tr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(h=o.props,p=h.validateFirst,C=p===void 0?!1:p,S=h.messageVariables,x=h.validateDebounce,$=o.getRules(),m&&($=$.filter(function(R){return R}).filter(function(R){var M=R.validateTrigger;if(!M)return!0;var T=uy(M);return T.includes(m)})),!(x&&m)){E.next=10;break}return E.next=8,new Promise(function(R){setTimeout(R,x)});case 8:if(o.validatePromise===b){E.next=10;break}return E.abrupt("return",[]);case 10:return w=UL(u,d,$,c,C,S),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yo;if(o.validatePromise===b){var M;o.validatePromise=null;var T=[],_=[];(M=R.forEach)===null||M===void 0||M.call(R,function(I){var N=I.rule.warningOnly,P=I.errors,k=P===void 0?yo:P;N?_.push.apply(_,_e(k)):T.push.apply(T,_e(k))}),o.errors=T,o.warnings=_,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",w);case 13:case"end":return E.stop()}},y)})));return g||(o.validatePromise=b,o.dirty=!0,o.errors=yo,o.warnings=yo,o.triggerMetaEvent(),o.reRender()),b}),H(pt(o),"isFieldValidating",function(){return!!o.validatePromise}),H(pt(o),"isFieldTouched",function(){return o.touched}),H(pt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(Xi),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),H(pt(o),"getErrors",function(){return o.errors}),H(pt(o),"getWarnings",function(){return o.warnings}),H(pt(o),"isListField",function(){return o.props.isListField}),H(pt(o),"isList",function(){return o.props.isList}),H(pt(o),"isPreserve",function(){return o.props.preserve}),H(pt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),H(pt(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return K(K({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=yr(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),H(pt(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Lr(c||u(!0),d)}),H(pt(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,g=u.normalize,b=u.valuePropName,y=u.getValueProps,h=u.fieldContext,p=m!==void 0?m:h.validateTrigger,C=o.getNamePath(),S=h.getInternalHooks,x=h.getFieldsValue,$=S(Xi),w=$.dispatch,O=o.getValue(),E=y||function(I){return H({},b,I)},R=c[f],M=d!==void 0?E(O):{},T=K(K({},c),M);T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,N=arguments.length,P=new Array(N),k=0;k<N;k++)P[k]=arguments[k];v?I=v.apply(void 0,P):I=YL.apply(void 0,[b].concat(P)),g&&(I=g(I,O,x(!0))),I!==O&&w({type:"updateValue",namePath:C,value:I}),R&&R.apply(void 0,P)};var _=uy(p||[]);return _.forEach(function(I){var N=T[I];T[I]=function(){N&&N.apply(void 0,arguments);var P=o.props.rules;P&&P.length&&w({type:"validateField",namePath:C,triggerName:I})}}),T}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Xi),s=i.initEntityValue;s(pt(o))}return o}return On(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,c=s(Xi),u=c.registerField;this.cancelRegisterFunc=u(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),s=i.child,c=i.isFunction,u;return c?u=s:l.isValidElement(s)?u=l.cloneElement(s,this.getControlled(s.props)):(pn(!s,"`children` of Field is not validate ReactElement."),u=s),l.createElement(l.Fragment,{key:o},u)}}]),n}(l.Component);H(R1,"contextType",vl);H(R1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function I1(e){var t,n=e.name,r=Rt(e,QL),o=l.useContext(vl),a=l.useContext(Gu),i=n!==void 0?Ln(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,c="keep";return s||(c="_".concat((i||[]).join("_"))),l.createElement(R1,Ce({key:c,name:i,isListField:s},r,{fieldContext:o}))}function JI(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=l.useContext(vl),c=l.useContext(Gu),u=l.useRef({keys:[],id:0}),d=u.current,f=l.useMemo(function(){var b=Ln(s.prefixName)||[];return[].concat(_e(b),_e(Ln(t)))},[s.prefixName,t]),m=l.useMemo(function(){return K(K({},s),{},{prefixName:f})},[s,f]),v=l.useMemo(function(){return{getKey:function(y){var h=f.length,p=y[h];return[d.keys[p],y.slice(h+1)]}}},[f]);if(typeof r!="function")return pn(!1,"Form.List only accepts function as children."),null;var g=function(y,h,p){var C=p.source;return C==="internal"?!1:y!==h};return l.createElement(Gu.Provider,{value:v},l.createElement(vl.Provider,{value:m},l.createElement(I1,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!c},function(b,y){var h=b.value,p=h===void 0?[]:h,C=b.onChange,S=s.getFieldValue,x=function(){var E=S(f||[]);return E||[]},$={add:function(E,R){var M=x();R>=0&&R<=M.length?(d.keys=[].concat(_e(d.keys.slice(0,R)),[d.id],_e(d.keys.slice(R))),C([].concat(_e(M.slice(0,R)),[E],_e(M.slice(R))))):(d.keys=[].concat(_e(d.keys),[d.id]),C([].concat(_e(M),[E]))),d.id+=1},remove:function(E){var R=x(),M=new Set(Array.isArray(E)?E:[E]);M.size<=0||(d.keys=d.keys.filter(function(T,_){return!M.has(_)}),C(R.filter(function(T,_){return!M.has(_)})))},move:function(E,R){if(E!==R){var M=x();E<0||E>=M.length||R<0||R>=M.length||(d.keys=ww(d.keys,E,R),C(ww(M,E,R)))}}},w=p||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,E){var R=d.keys[E];return R===void 0&&(d.keys[E]=d.id,R=d.keys[E],d.id+=1),{name:E,key:R,isListField:!0}}),$,y)})))}function JL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var ZI="__@field_split__";function Wh(e){return e.map(function(t){return"".concat(ft(t),":").concat(t)}).join(ZI)}var Al=function(){function e(){En(this,e),H(this,"kvs",new Map)}return On(e,[{key:"set",value:function(n,r){this.kvs.set(Wh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Wh(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(Wh(n))}},{key:"map",value:function(n){return _e(this.kvs.entries()).map(function(r){var o=Z(r,2),a=o[0],i=o[1],s=a.split(ZI);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=Z(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),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}(),ZL=["name"],eF=On(function e(t){var n=this;En(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(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}}),H(this,"getInternalHooks",function(r){return r===Xi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(pn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(r){n.subscribable=r}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=fs(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;i=xo(i,c,Lr(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),H(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Al;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),H(this,"getInitialValue",function(r){var o=Lr(n.initialValues,r);return r.length?fs(o):o}),H(this,"setCallbacks",function(r){n.callbacks=r}),H(this,"setValidateMessages",function(r){n.validateMessages=r}),H(this,"setPreserve",function(r){n.preserve=r}),H(this,"watchList",[]),H(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),H(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)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){}),H(this,"updateStore",function(r){n.store=r}),H(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}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Al;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Ln(a);return o.get(i)||{INVALIDATE_NAME_PATH:Ln(a)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ft(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var g,b;if((g=(b=d).isList)!==null&&g!==void 0&&g.call(b))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(v);else{var y="getMeta"in d?d.getMeta():null;i(y)&&u.push(v)}}),xw(n.store,u.map(Ln))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ln(r);return Lr(n.store,o)}),H(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:Ln(r[i]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=Ln(r),a=n.getFieldsError([o])[0];return a.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ln(r),a=n.getFieldsError([o])[0];return a.warnings}),H(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],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(i)?(c=i.map(Ln),u=!1):(c=null,u=i):(c=i.map(Ln),u=s);var d=n.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!c)return u?d.every(function(b){return f(b)||b.isList()}):d.some(f);var m=new Al;c.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var y=b.getNamePath();c.forEach(function(h){h.every(function(p,C){return y[C]===p})&&m.update(h,function(p){return[].concat(_e(p),[b])})})});var v=function(y){return y.some(f)},g=m.map(function(b){var y=b.value;return y});return u?g.every(v):g.some(v)}),H(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),H(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Ln);return o.some(function(i){var s=i.getNamePath();return $s(a,s)&&i.isFieldValidating()})}),H(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),H(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Al,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)pn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)pn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var b=n.getFieldValue(m),y=d.isListField();!y&&(!r.skipExist||b===void 0)&&n.updateStore(xo(n.store,m,_e(g)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,_e(_e(u).map(function(f){return f.entity})))}})):s=a,i(s)}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(fs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Ln);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(xo(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,c=Rt(i,ZL),u=Ln(s);a.push(u),"value"in c&&n.updateStore(xo(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),c=K(K({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Lr(n.store,a);i===void 0&&n.updateStore(xo(n.store,a,o))}}),H(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),H(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,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!QI(f.getNamePath(),o)})){var d=n.store;n.updateStore(xo(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),H(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,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),H(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=K(K({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),H(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(_e(a))}),a}),H(this,"updateValue",function(r,o){var a=Ln(r),i=n.store;n.updateStore(xo(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=xw(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(_e(s)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=fs(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Al;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Ln(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),H(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Al;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return $s(r,d)});c.length&&a(c,i)}}),H(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 s=!!a,c=s?a.map(Ln):[],u=[],d=String(Date.now()),f=new Set,m=i||{},v=m.recursive,g=m.dirty;n.getFieldEntities(!0).forEach(function(p){if(s||c.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(g&&!p.isFieldDirty())){var C=p.getNamePath();if(f.add(C.join(d)),!s||$s(c,C,v)){var S=p.validateRules(K({validateMessages:K(K({},YI),n.validateMessages)},i));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var $,w=[],O=[];return($=x.forEach)===null||$===void 0||$.call(x,function(E){var R=E.rule.warningOnly,M=E.errors;R?O.push.apply(O,_e(M)):w.push.apply(w,_e(M))}),w.length?Promise.reject({name:C,errors:w,warnings:O}):{name:C,errors:w,warnings:O}}))}}});var b=JL(u);n.lastValidatePromise=b,b.catch(function(p){return p}).then(function(p){var C=p.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,p)});var y=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(p){var C=p.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:C,outOfDate:n.lastValidatePromise!==b})});y.catch(function(p){return p});var h=c.filter(function(p){return f.has(p.join(d))});return n.triggerOnFieldsChange(h),y}),H(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 P1(e){var t=l.useRef(),n=l.useState({}),r=Z(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new eF(a);t.current=i.getForm()}return[t.current]}var by=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),e3=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=l.useContext(by),s=l.useRef({});return l.createElement(by.Provider,{value:K(K({},i),{},{validateMessages:K(K({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=K(K({},s.current),{},H({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=K({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},a)},tF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],nF=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,g=t.onValuesChange,b=t.onFieldsChange,y=t.onFinish,h=t.onFinishFailed,p=t.clearOnDestroy,C=Rt(t,tF),S=l.useRef(null),x=l.useContext(by),$=P1(i),w=Z($,1),O=w[0],E=O.getInternalHooks(Xi),R=E.useSubscribe,M=E.setInitialValues,T=E.setCallbacks,_=E.setValidateMessages,I=E.setPreserve,N=E.destroyForm;l.useImperativeHandle(n,function(){return K(K({},O),{},{nativeElement:S.current})}),l.useEffect(function(){return x.registerForm(r,O),function(){x.unregisterForm(r)}},[x,O,r]),_(K(K({},x.validateMessages),f)),T({onValuesChange:g,onFieldsChange:function(V){if(x.triggerFormChange(r,V),b){for(var W=arguments.length,q=new Array(W>1?W-1:0),J=1;J<W;J++)q[J-1]=arguments[J];b.apply(void 0,[V].concat(q))}},onFinish:function(V){x.triggerFormFinish(r,V),y&&y(V)},onFinishFailed:h}),I(s);var P=l.useRef(null);M(o,!P.current),P.current||(P.current=!0),l.useEffect(function(){return function(){return N(p)}},[]);var k,D=typeof c=="function";if(D){var z=O.getFieldsValue(!0);k=c(z,O)}else k=c;R(!D);var j=l.useRef();l.useEffect(function(){XL(j.current||[],a||[])||O.setFields(a||[]),j.current=a},[a,O]);var L=l.useMemo(function(){return K(K({},O),{},{validateTrigger:v})},[O,v]),F=l.createElement(Gu.Provider,{value:null},l.createElement(vl.Provider,{value:L},k));return d===!1?F:l.createElement(d,Ce({},C,{ref:S,onSubmit:function(V){V.preventDefault(),V.stopPropagation(),O.submit()},onReset:function(V){var W;V.preventDefault(),O.resetFields(),(W=C.onReset)===null||W===void 0||W.call(C,V)}}),F)};function $w(e){try{return JSON.stringify(e)}catch{return Math.random()}}function t3(){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=mL(a)?{form:a}:a,s=i.form,c=l.useState(),u=Z(c,2),d=u[0],f=u[1],m=l.useMemo(function(){return $w(d)},[d]),v=l.useRef(m);v.current=m;var g=l.useContext(vl),b=s||g,y=b&&b._init,h=Ln(r),p=l.useRef(h);return p.current=h,l.useEffect(function(){if(y){var C=b.getFieldsValue,S=b.getInternalHooks,x=S(Xi),$=x.registerWatch,w=function(M,T){var _=i.preserve?T:M;return typeof r=="function"?r(_):Lr(_,p.current)},O=$(function(R,M){var T=w(R,M),_=$w(T);v.current!==_&&(v.current=_,f(T))}),E=w(C(),C(!0));return d!==E&&f(E),O}},[y]),d}var rF=l.forwardRef(nF),ac=rF;ac.FormProvider=e3;ac.Field=I1;ac.List=JI;ac.useForm=P1;ac.useWatch=t3;const Fa=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),n3=l.createContext(null),r3=e=>{const t=on(e,["prefixCls"]);return l.createElement(e3,Object.assign({},t))},M1=l.createContext({prefixCls:""}),or=l.createContext({}),o3=({children:e,status:t,override:n})=>{const r=l.useContext(or),o=l.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return l.createElement(or.Provider,{value:o},e)},a3=l.createContext(void 0),Ca=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=ce.createElement(o3,{override:!0,status:!0},o)),t&&(o=ce.createElement(T7,null,o)),o};var i3=function(t){if(br()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},oF=function(t,n){if(!i3(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Cy(e,t){return!Array.isArray(e)&&t!==void 0?oF(e,t):i3(e)}const aF=()=>br()&&window.document.documentElement,ng=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Q({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=Q({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=l.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:Q(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},iF=new en("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),rg=e=>({height:e,lineHeight:U(e)}),Es=e=>Object.assign({width:e},rg(e)),lF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:iF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Kh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},rg(e)),sF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Es(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Es(o)),[`${t}${t}-sm`]:Object.assign({},Es(a))}},cF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Kh(t,s)),[`${r}-lg`]:Object.assign({},Kh(o,s)),[`${r}-sm`]:Object.assign({},Kh(a,s))}},Ew=e=>Object.assign({width:e},rg(e)),uF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Ew(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Ew(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%"}}},Uh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},rg(e)),dF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=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:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},qh(r,s))},Uh(e,r,n)),{[`${n}-lg`]:Object.assign({},qh(o,s))}),Uh(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qh(a,s))}),Uh(e,a,`${n}-sm`))},fF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:v,borderRadius:g,titleHeight:b,blockRadius:y,paragraphLiHeight:h,controlHeightXS:p,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Es(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Es(u)),[`${n}-sm`]:Object.assign({},Es(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:y,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:f,borderRadius:y,"+ li":{marginBlockStart:p}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},dF(e)),sF(e)),cF(e)),uF(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
205
|
-
${r},
|
|
206
|
-
${o} > li,
|
|
207
|
-
${n},
|
|
208
|
-
${a},
|
|
209
|
-
${i},
|
|
210
|
-
${s}
|
|
211
|
-
`]:Object.assign({},lF(e))}}},mF=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}},ic=Ut("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Bt(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 fF(r)},mF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),vF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(xt),c=s("skeleton",t),[u,d,f]=ic(c),m=on(e,["prefixCls","className"]),v=Q(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(ng,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:i},m))))},gF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(xt),c=s("skeleton",t),[u,d,f]=ic(c),m=on(e,["prefixCls"]),v=Q(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(ng,Object.assign({prefixCls:`${c}-button`,size:i},m))))},hF="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",pF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=l.useContext(xt),s=i("skeleton",t),[c,u,d]=ic(s),f=Q(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:Q(`${s}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:hF,className:`${s}-image-path`})))))},yF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=l.useContext(xt),c=s("skeleton",t),[u,d,f]=ic(c),m=on(e,["prefixCls"]),v=Q(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(ng,Object.assign({prefixCls:`${c}-input`,size:i},m))))},bF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=l.useContext(xt),c=s("skeleton",t),[u,d,f]=ic(c),m=Q(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f);return u(l.createElement("div",{className:m},l.createElement("div",{className:Q(`${c}-image`,n),style:o},i)))},CF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},SF=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,s)=>l.createElement("li",{key:s,style:{width:CF(s,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},a)},xF=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:Object.assign({width:n},r)});function Gh(e){return e&&typeof e=="object"?e:{}}function wF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $F(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EF(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Rl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:v,className:g,style:b}=fr("skeleton"),y=m("skeleton",t),[h,p,C]=ic(y);if(n||!("loading"in e)){const S=!!s,x=!!c,$=!!u;let w;if(S){const R=Object.assign(Object.assign({prefixCls:`${y}-avatar`},wF(x,$)),Gh(s));w=l.createElement("div",{className:`${y}-header`},l.createElement(ng,Object.assign({},R)))}let O;if(x||$){let R;if(x){const T=Object.assign(Object.assign({prefixCls:`${y}-title`},$F(S,$)),Gh(c));R=l.createElement(xF,Object.assign({},T))}let M;if($){const T=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},EF(S,x)),Gh(u));M=l.createElement(SF,Object.assign({},T))}O=l.createElement("div",{className:`${y}-content`},R,M)}const E=Q(y,{[`${y}-with-avatar`]:S,[`${y}-active`]:d,[`${y}-rtl`]:v==="rtl",[`${y}-round`]:f},g,r,o,p,C);return h(l.createElement("div",{className:E,style:Object.assign(Object.assign({},b),a)},w,O))}return i??null};Rl.Button=gF;Rl.Avatar=vF;Rl.Input=yF;Rl.Image=pF;Rl.Node=bF;function Ow(){}const OF=l.createContext({add:Ow,remove:Ow});function RF(e){const t=l.useContext(OF),n=l.useRef(null);return zt(o=>{if(o){const a=e?o.querySelector(e):o;a&&(t.add(a),n.current=a)}else t.remove(n.current)})}const Rw=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(hd);return ce.createElement(kn,Object.assign({onClick:n},e),t)},Iw=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=l.useContext(hd);return ce.createElement(kn,Object.assign({},S1(n),{loading:e,onClick:o},t),r)};function l3(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(tc,{className:`${e}-close-icon`}))}const s3=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=ho("Modal",HR()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),v=ce.useMemo(()=>({confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i}),[o,s,c,f,m,n,a,i]);let g;return typeof u=="function"||typeof u>"u"?(g=ce.createElement(ce.Fragment,null,ce.createElement(Rw,null),ce.createElement(Iw,null)),typeof u=="function"&&(g=u(g,{OkBtn:Iw,CancelBtn:Rw})),g=ce.createElement(HI,{value:v},g)):g=u,ce.createElement(g1,{disabled:!1},g)},IF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},PF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},MF=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Sy=(e,t)=>MF(e,t),NF=(e,t,n)=>({[`@media (min-width: ${U(t)})`]:Object.assign({},Sy(e,n))}),TF=()=>({}),_F=()=>({}),DF=Ut("Grid",IF,TF),c3=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),kF=Ut("Grid",e=>{const t=Bt(e,{gridColumns:24}),n=c3(t);return delete n.xs,[PF(t),Sy(t,""),Sy(t,"-xs"),Object.keys(n).map(r=>NF(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},_F);function Pw(e){return{position:e,inset:0}}const jF=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({},Pw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Pw("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Z7(e)}]},zF=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:`${U(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Zt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${U(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:U(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},na(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${U(e.borderRadiusLG)} ${U(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:`${U(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,
|
|
212
|
-
${t}-body,
|
|
213
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},LF=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},FF=e=>{const{componentCls:t}=e,n=c3(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,a=Object.keys(r).map(i=>({[`@media (min-width: ${U(r[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(_e(Object.keys(n).map((i,s)=>{const c=Object.keys(n)[s-1];return c?{[`${o}${i}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],_e(a))}}},u3=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Bt(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()})},d3=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${U(e.paddingMD)} ${U(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${U(e.padding)} ${U(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${U(e.paddingXS)} ${U(e.padding)}`:0,footerBorderTop:e.wireframe?`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${U(e.padding*2)} ${U(e.padding*2)} ${U(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),f3=Ut("Modal",e=>{const t=u3(e);return[zF(t),LF(t),jF(t),gd(t,"zoom"),FF(t)]},d3,{unitless:{titleLineHeight:!0}});var BF=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 xy;const AF=e=>{xy={x:e.pageX,y:e.pageY},setTimeout(()=>{xy=null},100)};aF()&&document.documentElement.addEventListener("click",AF,!0);const m3=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:a,centered:i,getContainer:s,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:v,styles:g,children:b,loading:y,confirmLoading:h,zIndex:p,mousePosition:C,onOk:S,onCancel:x,destroyOnHidden:$,destroyOnClose:w,panelRef:O=null,modalRender:E}=e,R=BF(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:M,getPrefixCls:T,direction:_,modal:I}=l.useContext(xt),N=ye=>{h||x==null||x(ye)},P=ye=>{S==null||S(ye)},k=T("modal",t),D=T(),z=Bn(k),[j,L,F]=f3(k,z),B=Q(a,{[`${k}-centered`]:i??(I==null?void 0:I.centered),[`${k}-wrap-rtl`]:_==="rtl"}),V=m!==null&&!y?l.createElement(s3,Object.assign({},e,{onOk:P,onCancel:N})):null,[W,q,J,Y]=OI(Fm(e),Fm(I),{closable:!0,closeIcon:l.createElement(tc,{className:`${k}-close-icon`}),closeIconRender:ye=>l3(k,ye)}),ne=E?ye=>l.createElement("div",{className:`${k}-render`},E(ye)):void 0,fe=`.${k}-${E?"render":"content"}`,oe=RF(fe),G=ar(O,oe),[ue,le]=El("Modal",p),[ae,ee]=l.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),ge=l.useMemo(()=>{const ye={};return ee&&Object.keys(ee).forEach(Ie=>{const Ee=ee[Ie];Ee!==void 0&&(ye[`--${k}-${Ie}-width`]=typeof Ee=="number"?`${Ee}px`:Ee)}),ye},[k,ee]);return j(l.createElement(Ca,{form:!0,space:!0},l.createElement(Av.Provider,{value:le},l.createElement(GI,Object.assign({width:ae},R,{zIndex:ue,getContainer:s===void 0?M:s,prefixCls:k,rootClassName:Q(L,r,F,z),footer:V,visible:o??d,mousePosition:C??xy,onClose:N,closable:W&&Object.assign({disabled:J,closeIcon:q},Y),closeIcon:q,focusTriggerAfterClose:c,transitionName:wi(D,"zoom",e.transitionName),maskTransitionName:wi(D,"fade",e.maskTransitionName),className:Q(L,n,I==null?void 0:I.className),style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),u),ge),classNames:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.classNames),v),{wrapper:Q(B,v==null?void 0:v.wrapper)}),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),g),panelRef:G,destroyOnClose:$??w,modalRender:ne}),y?l.createElement(Rl,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):b))))},HF=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},xi()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${U(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${U(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},
|
|
214
|
-
${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}}},VF=Js(["Modal","confirm"],e=>{const t=u3(e);return HF(t)},d3,{order:-1e3});var WF=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 v3=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:c,locale:u}=e,d=WF(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=l.createElement(SI,null);break;case"success":f=l.createElement(Bv,null);break;case"error":f=l.createElement(ec,null);break;default:f=l.createElement(nc,null)}const m=s??i==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=ho("Modal"),b=u||g,y=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),h=o||(b==null?void 0:b.cancelText),p=l.useMemo(()=>Object.assign({autoFocusButton:v,cancelTextLocale:h,okTextLocale:y,mergedOkCancel:m},d),[v,h,y,m,d]),C=l.createElement(l.Fragment,null,l.createElement(aw,null),l.createElement(iw,null)),S=e.title!==void 0&&e.title!==null,x=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:Q(x,{[`${x}-has-title`]:S})},f,l.createElement("div",{className:`${a}-paragraph`},S&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(HI,{value:p},l.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(C,{OkBtn:iw,CancelBtn:aw}):C)):c,l.createElement(VF,{prefixCls:t}))},KF=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,v=`${a}-confirm`,g=e.width||416,b=e.style||{},y=e.mask===void 0?!0:e.mask,h=e.maskClosable===void 0?!1:e.maskClosable,p=Q(v,`${v}-${e.type}`,{[`${v}-rtl`]:o==="rtl"},e.className),[,C]=Sr(),S=l.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+PI,[n,C]);return l.createElement(m3,Object.assign({},e,{className:p,wrapClassName:Q({[`${v}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:wi(s||"","zoom",e.transitionName),maskTransitionName:wi(s||"","fade",e.maskTransitionName),mask:y,maskClosable:h,style:b,styles:Object.assign({body:c,mask:r},f),width:g,zIndex:S,closable:u}),l.createElement(v3,Object.assign({},e,{confirmPrefixCls:v})))},g3=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(_o,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(KF,Object.assign({},e)))},Yi=[];let h3="";function p3(){return h3}const UF=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=HR(),s=l.useContext(xt),c=p3()||s.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),ce.createElement(g3,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function bd(e){const t=hI(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function i(...d){var f;if(d.some(g=>g==null?void 0:g.triggerCancel)){var v;(f=e.onCancel)===null||f===void 0||(v=f).call.apply(v,[e,()=>{}].concat(_e(d.slice(1))))}for(let g=0;g<Yi.length;g++)if(Yi[g]===c){Yi.splice(g,1);break}a()}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,p3()),m=t.getIconPrefixCls(),v=t.getTheme(),g=ce.createElement(UF,Object.assign({},d));a=C1()(ce.createElement(_o,{prefixCls:f,iconPrefixCls:m,theme:v},typeof t.holderRender=="function"?t.holderRender(g):g),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),Yi.push(c),{destroy:c,update:u}}function y3(e){return Object.assign(Object.assign({},e),{type:"warning"})}function b3(e){return Object.assign(Object.assign({},e),{type:"info"})}function C3(e){return Object.assign(Object.assign({},e),{type:"success"})}function S3(e){return Object.assign(Object.assign({},e),{type:"error"})}function x3(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qF({rootPrefixCls:e}){h3=e}var GF=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 XF=(e,t)=>{var n,{afterClose:r,config:o}=e,a=GF(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(xt),m=f("modal"),v=f(),g=()=>{var p;r(),(p=c.afterClose)===null||p===void 0||p.call(c)},b=(...p)=>{var C;if(s(!1),p.some($=>$==null?void 0:$.triggerCancel)){var x;(C=c.onCancel)===null||C===void 0||(x=C).call.apply(x,[c,()=>{}].concat(_e(p.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:b,update:p=>{u(C=>{const S=typeof p=="function"?p(C):p;return Object.assign(Object.assign({},C),S)})}}));const y=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[h]=ho("Modal",Zo.Modal);return l.createElement(g3,Object.assign({prefixCls:m,rootPrefixCls:v},c,{close:b,open:i,afterClose:g,okText:c.okText||(y?h==null?void 0:h.okText:h==null?void 0:h.justOkText),direction:c.direction||d,cancelText:c.cancelText||(h==null?void 0:h.cancelText)},a))},YF=l.forwardRef(XF);let Mw=0;const QF=l.memo(l.forwardRef((e,t)=>{const[n,r]=Vj();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function JF(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(_e(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(a=>function(s){var c;Mw+=1;const u=l.createRef();let d;const f=new Promise(y=>{d=y});let m=!1,v;const g=l.createElement(YF,{key:`modal-${Mw}`,config:a(s),ref:u,afterClose:()=>{v==null||v()},isSilent:()=>m,onConfirm:y=>{d(y)}});return v=(c=e.current)===null||c===void 0?void 0:c.patchElement(g),v&&Yi.push(v),{destroy:()=>{function y(){var h;(h=u.current)===null||h===void 0||h.destroy()}u.current?y():n(h=>[].concat(_e(h),[y]))},update:y=>{function h(){var p;(p=u.current)===null||p===void 0||p.update(y)}u.current?h():n(p=>[].concat(_e(p),[h]))},then:y=>(m=!0,f.then(y))}},[]);return[l.useMemo(()=>({info:r(b3),success:r(C3),error:r(S3),warning:r(y3),confirm:r(x3)}),[r]),l.createElement(QF,{key:"modal-holder",ref:e})]}const ZF=ce.createContext({});function w3(e){return t=>l.createElement(_o,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const og=(e,t,n,r,o)=>w3(i=>{const{prefixCls:s,style:c}=i,u=l.useRef(null),[d,f]=l.useState(0),[m,v]=l.useState(0),[g,b]=Jt(!1,{value:i.open}),{getPrefixCls:y}=l.useContext(xt),h=y(r||"select",s);l.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver($=>{const w=$[0].target;f(w.offsetHeight+8),v(w.offsetWidth)}),x=setInterval(()=>{var $;const w=o?`.${o(h)}`:`.${h}-dropdown`,O=($=u.current)===null||$===void 0?void 0:$.querySelector(w);O&&(clearInterval(x),S.observe(O))},10);return()=>{clearInterval(x),S.disconnect()}}},[h]);let p=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:d,position:"relative",minWidth:m};return l.createElement("div",{ref:u,style:C},l.createElement(e,Object.assign({},p)))}),ag=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 ig=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:Q(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},eB=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=ce.useMemo(function(){if(ft(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=ce.useMemo(function(){return!!(!i&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,i,r.length,s,c]);return{allowClear:d,clearIcon:ce.createElement(ig,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},$3=l.createContext(null);function tB(){return l.useContext($3)}function nB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=Z(t,2),r=n[0],o=n[1],a=l.useRef(null),i=function(){window.clearTimeout(a.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,i]}function E3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.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 rB(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function oB(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var aB=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Hl=void 0;function iB(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,g=e.order,b=e.component,y=b===void 0?"div":b,h=Rt(e,aB),p=i&&!v;function C(O){c(u,O)}l.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==Hl?a(o,{index:g}):m,x;r||(x={opacity:p?0:1,height:p?0:Hl,overflowY:p?"hidden":Hl,order:i?g:Hl,pointerEvents:p?"none":Hl,position:p?"absolute":Hl});var $={};p&&($["aria-hidden"]=!0);var w=l.createElement(y,Ce({className:Q(!r&&n,d),style:K(K({},x),f)},$,h,{ref:t}),S);return i&&(w=l.createElement(gr,{onResize:function(E){var R=E.offsetWidth;C(R)},disabled:s},w)),w}var gs=l.forwardRef(iB);gs.displayName="Item";function lB(e){if(typeof MessageChannel>"u")jt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function sB(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],lB(function(){Qo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Vl(e,t){var n=l.useState(t),r=Z(n,2),o=r[0],a=r[1],i=zt(function(s){e(function(){a(s)})});return[o,i]}var Vm=ce.createContext(null),cB=["component"],uB=["className"],dB=["className"],fB=function(t,n){var r=l.useContext(Vm);if(!r){var o=t.component,a=o===void 0?"div":o,i=Rt(t,cB);return l.createElement(a,Ce({},i,{ref:n}))}var s=r.className,c=Rt(r,uB),u=t.className,d=Rt(t,dB);return l.createElement(Vm.Provider,{value:null},l.createElement(gs,Ce({ref:n,className:Q(s,u)},c,d)))},O3=l.forwardRef(fB);O3.displayName="RawItem";var mB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],R3="responsive",I3="invalidate";function vB(e){return"+ ".concat(e.length," ...")}function gB(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,g=e.maxCount,b=e.renderRest,y=e.renderRawRest,h=e.prefix,p=e.suffix,C=e.component,S=C===void 0?"div":C,x=e.itemComponent,$=e.onVisibleChange,w=Rt(e,mB),O=f==="full",E=sB(),R=Vl(E,null),M=Z(R,2),T=M[0],_=M[1],I=T||0,N=Vl(E,new Map),P=Z(N,2),k=P[0],D=P[1],z=Vl(E,0),j=Z(z,2),L=j[0],F=j[1],B=Vl(E,0),V=Z(B,2),W=V[0],q=V[1],J=Vl(E,0),Y=Z(J,2),ne=Y[0],fe=Y[1],oe=Vl(E,0),G=Z(oe,2),ue=G[0],le=G[1],ae=l.useState(null),ee=Z(ae,2),ge=ee[0],ye=ee[1],Ie=l.useState(null),Ee=Z(Ie,2),A=Ee[0],X=Ee[1],re=l.useMemo(function(){return A===null&&O?Number.MAX_SAFE_INTEGER:A||0},[A,T]),me=l.useState(!1),pe=Z(me,2),ve=pe[0],Pe=pe[1],De="".concat(r,"-item"),Me=Math.max(L,W),Le=g===R3,Oe=a.length&&Le,be=g===I3,ke=Oe||typeof g=="number"&&a.length>g,Se=l.useMemo(function(){var de=a;return Oe?T===null&&O?de=a:de=a.slice(0,Math.min(a.length,I/d)):typeof g=="number"&&(de=a.slice(0,g)),de},[a,d,T,g,Oe]),Re=l.useMemo(function(){return Oe?a.slice(re+1):a.slice(Se.length)},[a,Se,Oe,re]),we=l.useCallback(function(de,he){var $e;return typeof c=="function"?c(de):($e=c&&(de==null?void 0:de[c]))!==null&&$e!==void 0?$e:he},[c]),xe=l.useCallback(i||function(de){return de},[i]);function Te(de,he,$e){A===de&&(he===void 0||he===ge)||(X(de),$e||(Pe(de<a.length-1),$==null||$(de)),he!==void 0&&ye(he))}function Ae(de,he){_(he.clientWidth)}function ct(de,he){D(function($e){var ze=new Map($e);return he===null?ze.delete(de):ze.set(de,he),ze})}function yt(de,he){q(he),F(W)}function Ve(de,he){fe(he)}function Xe(de,he){le(he)}function nt(de){return k.get(we(Se[de],de))}Dt(function(){if(I&&typeof Me=="number"&&Se){var de=ne+ue,he=Se.length,$e=he-1;if(!he){Te(0,null);return}for(var ze=0;ze<he;ze+=1){var Be=nt(ze);if(O&&(Be=Be||0),Be===void 0){Te(ze-1,void 0,!0);break}if(de+=Be,$e===0&&de<=I||ze===$e-1&&de+nt($e)<=I){Te($e,null);break}else if(de+Me>I){Te(ze-1,de-Be-ue+W);break}}p&&nt(0)+ue>I&&ye(null)}},[I,k,W,ne,ue,we,Se]);var Ue=ve&&!!Re.length,Qe={};ge!==null&&Oe&&(Qe={position:"absolute",left:ge,top:0});var wt={prefixCls:De,responsive:Oe,component:x,invalidate:be},It=s?function(de,he){var $e=we(de,he);return l.createElement(Vm.Provider,{key:$e,value:K(K({},wt),{},{order:he,item:de,itemKey:$e,registerSize:ct,display:he<=re})},s(de,he))}:function(de,he){var $e=we(de,he);return l.createElement(gs,Ce({},wt,{order:he,key:$e,item:de,renderItem:xe,itemKey:$e,registerSize:ct,display:he<=re}))},Je={order:Ue?re:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:yt,display:Ue},at=b||vB,ie=y?l.createElement(Vm.Provider,{value:K(K({},wt),Je)},y(Re)):l.createElement(gs,Ce({},wt,Je),typeof at=="function"?at(Re):at),se=l.createElement(S,Ce({className:Q(!be&&r,v),style:m,ref:t},w),h&&l.createElement(gs,Ce({},wt,{responsive:Le,responsiveDisabled:!Oe,order:-1,className:"".concat(De,"-prefix"),registerSize:Ve,display:!0}),h),Se.map(It),ke?ie:null,p&&l.createElement(gs,Ce({},wt,{responsive:Le,responsiveDisabled:!Oe,order:re,className:"".concat(De,"-suffix"),registerSize:Xe,display:!0,style:Qe}),p));return Le?l.createElement(gr,{onResize:Ae,disabled:!Oe},se):se}var Xo=l.forwardRef(gB);Xo.displayName="Overflow";Xo.Item=O3;Xo.RESPONSIVE=R3;Xo.INVALIDATE=I3;function hB(e,t,n){var r=K(K({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return a.apply(void 0,c),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(c))})}),r}var pB=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],yB=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,s=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,v=Rt(t,pB),g=a||l.createElement("input",null),b=g,y=b.ref,h=b.props;return"maxLength"in g.props,g=l.cloneElement(g,K(K(K({type:"search"},hB(v,h)),{},{id:o,ref:ar(n,y),autoComplete:s||"off",autoFocus:i,className:Q("".concat(r,"-selection-search-input"),h==null?void 0:h.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:K(K({},h.style),{},{opacity:c?null:0})})),g},P3=l.forwardRef(yB);function M3(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var bB=typeof window<"u"&&window.document&&window.document.documentElement,CB=bB;function SB(e){return e!=null}function xB(e){return!e&&e!==0}function Nw(e){return["string","number"].includes(ft(e))}function N3(e){var t=void 0;return e&&(Nw(e.title)?t=e.title.toString():Nw(e.label)&&(t=e.label.toString())),t}function wB(e,t){CB?l.useLayoutEffect(e,t):l.useEffect(e,t)}function $B(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Tw=function(t){t.preventDefault(),t.stopPropagation()},EB=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,g=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,h=t.removeIcon,p=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(le){return"+ ".concat(le.length," ...")}:S,$=t.tagRender,w=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,R=t.onInputPaste,M=t.onInputKeyDown,T=t.onInputMouseDown,_=t.onInputCompositionStart,I=t.onInputCompositionEnd,N=t.onInputBlur,P=l.useRef(null),k=l.useState(0),D=Z(k,2),z=D[0],j=D[1],L=l.useState(!1),F=Z(L,2),B=F[0],V=F[1],W="".concat(r,"-selection"),q=a||f==="multiple"&&s===!1||f==="tags"?i:"",J=f==="tags"||f==="multiple"&&s===!1||m&&(a||B);wB(function(){j(P.current.scrollWidth)},[q]);var Y=function(ae,ee,ge,ye,Ie){return l.createElement("span",{title:N3(ae),className:Q("".concat(W,"-item"),H({},"".concat(W,"-item-disabled"),ge))},l.createElement("span",{className:"".concat(W,"-item-content")},ee),ye&&l.createElement(ig,{className:"".concat(W,"-item-remove"),onMouseDown:Tw,onClick:Ie,customizeIcon:h},"×"))},ne=function(ae,ee,ge,ye,Ie,Ee){var A=function(re){Tw(re),w(!a)};return l.createElement("span",{onMouseDown:A},$({label:ee,value:ae,disabled:ge,closable:ye,onClose:Ie,isMaxTag:!!Ee}))},fe=function(ae){var ee=ae.disabled,ge=ae.label,ye=ae.value,Ie=!d&&!ee,Ee=ge;if(typeof C=="number"&&(typeof ge=="string"||typeof ge=="number")){var A=String(Ee);A.length>C&&(Ee="".concat(A.slice(0,C),"..."))}var X=function(me){me&&me.stopPropagation(),O(ae)};return typeof $=="function"?ne(ye,Ee,ee,Ie,X):Y(ae,Ee,ee,Ie,X)},oe=function(ae){if(!o.length)return null;var ee=typeof x=="function"?x(ae):x;return typeof $=="function"?ne(void 0,ee,!1,!1,void 0,!0):Y({title:ee},ee,!1)},G=l.createElement("div",{className:"".concat(W,"-search"),style:{width:z},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},l.createElement(P3,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:g,editable:J,activeDescendantId:b,value:q,onKeyDown:M,onMouseDown:T,onChange:E,onPaste:R,onCompositionStart:_,onCompositionEnd:I,onBlur:N,tabIndex:y,attrs:ur(t,!0)}),l.createElement("span",{ref:P,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},q," ")),ue=l.createElement(Xo,{prefixCls:"".concat(W,"-overflow"),data:o,renderItem:fe,renderRest:oe,suffix:G,itemKey:$B,maxCount:p});return l.createElement("span",{className:"".concat(W,"-wrap")},ue,!o.length&&!q&&l.createElement("span",{className:"".concat(W,"-placeholder")},u))},OB=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,g=t.tabIndex,b=t.showSearch,y=t.searchValue,h=t.activeValue,p=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,$=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.onInputBlur,R=t.title,M=l.useState(!1),T=Z(M,2),_=T[0],I=T[1],N=d==="combobox",P=N||b,k=m[0],D=y||"";N&&h&&!_&&(D=h),l.useEffect(function(){N&&I(!1)},[N,h]);var z=d!=="combobox"&&!f&&!b?!1:!!D,j=R===void 0?N3(k):R,L=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},v)},[k,z,v,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(P3,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:P,activeDescendantId:u,value:D,onKeyDown:C,onMouseDown:S,onChange:function(B){I(!0),x(B)},onPaste:$,onCompositionStart:w,onCompositionEnd:O,onBlur:E,tabIndex:g,attrs:ur(t,!0),maxLength:N?p:void 0})),!N&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:z?{visibility:"hidden"}:void 0},k.label):null,L)},RB=function(t,n){var r=l.useRef(null),o=l.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,v=t.onSearch,g=t.onSearchSubmit,b=t.onToggleOpen,y=t.onInputKeyDown,h=t.onInputBlur,p=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(j){r.current.focus(j)},blur:function(){r.current.blur()}}});var C=E3(0),S=Z(C,2),x=S[0],$=S[1],w=function(j){var L=j.which,F=r.current instanceof HTMLTextAreaElement;!F&&i&&(L===ot.UP||L===ot.DOWN)&&j.preventDefault(),y&&y(j),L===ot.ENTER&&s==="tags"&&!o.current&&!i&&(g==null||g(j.target.value)),!(F&&!i&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(L))&&oB(L)&&b(!0)},O=function(){$(!0)},E=l.useRef(null),R=function(j){v(j,!0,o.current)!==!1&&b(!0)},M=function(){o.current=!0},T=function(j){o.current=!1,s!=="combobox"&&R(j.target.value)},_=function(j){var L=j.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var F=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,E.current)}E.current=null,R(L)},I=function(j){var L=j.clipboardData,F=L==null?void 0:L.getData("text");E.current=F||""},N=function(j){var L=j.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},P=function(j){var L=x();j.target!==r.current&&!L&&!(s==="combobox"&&d)&&j.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&m!==!1&&v("",!0,!1),b())},k={inputRef:r,onInputKeyDown:w,onInputMouseDown:O,onInputChange:_,onInputPaste:I,onInputCompositionStart:M,onInputCompositionEnd:T,onInputBlur:h},D=s==="multiple"||s==="tags"?l.createElement(EB,Ce({},t,k)):l.createElement(OB,Ce({},t,k));return l.createElement("div",{ref:p,className:"".concat(a,"-selector"),onClick:N,onMouseDown:P},f&&l.createElement("div",{className:"".concat(a,"-prefix")},f),D)},IB=l.forwardRef(RB);function PB(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=l.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],b=n.points[1],y=g[0],h=g[1],p=b[0],C=b[1];y===p||!["t","b"].includes(y)?v.top=f:y==="t"?v.top=0:v.bottom=0,h===C||!["l","r"].includes(h)?v.left=u:h==="l"?v.left=0:v.right=0}return l.createElement("div",{ref:m,className:Q("".concat(t,"-arrow"),i),style:v},s)}function MB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?l.createElement(To,Ce({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:Q("".concat(t,"-mask"),s)})}):null}var NB=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),TB=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,g=e.arrowPos,b=e.align,y=e.motion,h=e.maskMotion,p=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,$=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,R=e.onPointerDownCapture,M=e.ready,T=e.offsetX,_=e.offsetY,I=e.offsetR,N=e.offsetB,P=e.onAlign,k=e.onPrepare,D=e.stretch,z=e.targetWidth,j=e.targetHeight,L=typeof n=="function"?n():n,F=c||u,B=(C==null?void 0:C.length)>0,V=l.useState(!C||!B),W=Z(V,2),q=W[0],J=W[1];if(Dt(function(){!q&&B&&i&&J(!0)},[q,B,i]),!q)return null;var Y="auto",ne={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(M||!c){var fe,oe=b.points,G=b.dynamicInset||((fe=b._experimental)===null||fe===void 0?void 0:fe.dynamicInset),ue=G&&oe[0][1]==="r",le=G&&oe[0][0]==="b";ue?(ne.right=I,ne.left=Y):(ne.left=T,ne.right=Y),le?(ne.bottom=N,ne.top=Y):(ne.top=_,ne.bottom=Y)}var ae={};return D&&(D.includes("height")&&j?ae.height=j:D.includes("minHeight")&&j&&(ae.minHeight=j),D.includes("width")&&z?ae.width=z:D.includes("minWidth")&&z&&(ae.minWidth=z)),c||(ae.pointerEvents="none"),l.createElement(x,{open:p||F,getContainer:C&&function(){return C(i)},autoDestroy:S},l.createElement(MB,{prefixCls:o,open:c,zIndex:$,mask:m,motion:h}),l.createElement(gr,{onResize:P,disabled:!c},function(ee){return l.createElement(To,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(ye){var Ie;y==null||(Ie=y.onVisibleChanged)===null||Ie===void 0||Ie.call(y,ye),s(ye)}}),function(ge,ye){var Ie=ge.className,Ee=ge.style,A=Q(o,Ie,r);return l.createElement("div",{ref:ar(ee,t,ye),className:A,style:K(K(K(K({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},ne),ae),Ee),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:E,onClick:f,onPointerDownCapture:R},v&&l.createElement(PB,{prefixCls:o,arrow:v,arrowPos:g,align:b}),l.createElement(NB,{cache:!c&&!d},L))})}))}),_B=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Jo(n),a=l.useCallback(function(s){Lu(t,r?r(s):s)},[r]),i=Ha(a,Mi(n));return o?l.cloneElement(n,{ref:i}):n}),_w=l.createContext(null);function Dw(e){return e?Array.isArray(e)?e:[e]:[]}function DB(e,t,n,r){return l.useMemo(function(){var o=Dw(n??t),a=Dw(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function kB(){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 jB(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,c=a[i];if(kB((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function kw(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Cd(e){return e.ownerDocument.defaultView}function wy(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Cd(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Mc(e){return Xu(parseFloat(e),0)}function jw(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Cd(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,g=r.offsetWidth,b=r.clientWidth,y=Mc(s),h=Mc(c),p=Mc(u),C=Mc(d),S=Xu(Math.round(f.width/g*1e3)/1e3),x=Xu(Math.round(f.height/m*1e3)/1e3),$=(g-b-p-C)*S,w=(m-v-y-h)*x,O=y*x,E=h*x,R=p*S,M=C*S,T=0,_=0;if(a==="clip"){var I=Mc(i);T=I*S,_=I*x}var N=f.x+R-T,P=f.y+O-_,k=N+f.width+2*T-R-M-$,D=P+f.height+2*_-O-E-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,P),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,D)}}),n}function zw(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 Lw(e,t){var n=t||[],r=Z(n,2),o=r[0],a=r[1];return[zw(e.width,o),zw(e.height,a)]}function Fw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Wl(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 Ua(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 zB(e,t,n,r,o,a,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=Z(s,2),u=c[0],d=c[1],f=l.useRef(0),m=l.useMemo(function(){return t?wy(t):[]},[t]),v=l.useRef({}),g=function(){v.current={}};e||g();var b=zt(function(){if(t&&n&&e){let jn=function(Vr,Wr){var ia=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,Dd=F.x+Vr,kd=F.y+Wr,Ug=Dd+le,_t=kd+ue,Lt=Math.max(Dd,ia.left),Sn=Math.max(kd,ia.top),zn=Math.min(Ug,ia.right),xn=Math.min(_t,ia.bottom);return Math.max(0,(zn-Lt)*(xn-Sn))},Dr=function(){ut=F.y+at,$t=ut+ue,Mt=F.x+Je,lt=Mt+le};var tn=jn,Cn=Dr,p,C,S,x,$=t,w=$.ownerDocument,O=Cd($),E=O.getComputedStyle($),R=E.position,M=$.style.left,T=$.style.top,_=$.style.right,I=$.style.bottom,N=$.style.overflow,P=K(K({},o[r]),a),k=w.createElement("div");(p=$.parentElement)===null||p===void 0||p.appendChild(k),k.style.left="".concat($.offsetLeft,"px"),k.style.top="".concat($.offsetTop,"px"),k.style.position=R,k.style.height="".concat($.offsetHeight,"px"),k.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var z,j,L=n.getBoundingClientRect();L.x=(z=L.x)!==null&&z!==void 0?z:L.left,L.y=(j=L.y)!==null&&j!==void 0?j:L.top,D={x:L.x,y:L.y,width:L.width,height:L.height}}var F=$.getBoundingClientRect(),B=O.getComputedStyle($),V=B.height,W=B.width;F.x=(C=F.x)!==null&&C!==void 0?C:F.left,F.y=(S=F.y)!==null&&S!==void 0?S:F.top;var q=w.documentElement,J=q.clientWidth,Y=q.clientHeight,ne=q.scrollWidth,fe=q.scrollHeight,oe=q.scrollTop,G=q.scrollLeft,ue=F.height,le=F.width,ae=D.height,ee=D.width,ge={left:0,top:0,right:J,bottom:Y},ye={left:-G,top:-oe,right:ne-G,bottom:fe-oe},Ie=P.htmlRegion,Ee="visible",A="visibleFirst";Ie!=="scroll"&&Ie!==A&&(Ie=Ee);var X=Ie===A,re=jw(ye,m),me=jw(ge,m),pe=Ie===Ee?me:re,ve=X?me:pe;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Pe=$.getBoundingClientRect();$.style.left=M,$.style.top=T,$.style.right=_,$.style.bottom=I,$.style.overflow=N,(x=$.parentElement)===null||x===void 0||x.removeChild(k);var De=Xu(Math.round(le/parseFloat(W)*1e3)/1e3),Me=Xu(Math.round(ue/parseFloat(V)*1e3)/1e3);if(De===0||Me===0||zu(n)&&!rc(n))return;var Le=P.offset,Oe=P.targetOffset,be=Lw(F,Le),ke=Z(be,2),Se=ke[0],Re=ke[1],we=Lw(D,Oe),xe=Z(we,2),Te=xe[0],Ae=xe[1];D.x-=Te,D.y-=Ae;var ct=P.points||[],yt=Z(ct,2),Ve=yt[0],Xe=yt[1],nt=Fw(Xe),Ue=Fw(Ve),Qe=Wl(D,nt),wt=Wl(F,Ue),It=K({},P),Je=Qe.x-wt.x+Se,at=Qe.y-wt.y+Re,ie=jn(Je,at),se=jn(Je,at,me),de=Wl(D,["t","l"]),he=Wl(F,["t","l"]),$e=Wl(D,["b","r"]),ze=Wl(F,["b","r"]),Be=P.overflow||{},He=Be.adjustX,je=Be.adjustY,Ne=Be.shiftX,Fe=Be.shiftY,Ye=function(Wr){return typeof Wr=="boolean"?Wr:Wr>=0},ut,$t,Mt,lt;Dr();var Tt=Ye(je),We=Ue[0]===nt[0];if(Tt&&Ue[0]==="t"&&($t>ve.bottom||v.current.bt)){var tt=at;We?tt-=ue-ae:tt=de.y-ze.y-Re;var bt=jn(Je,tt),it=jn(Je,tt,me);bt>ie||bt===ie&&(!X||it>=se)?(v.current.bt=!0,at=tt,Re=-Re,It.points=[Ua(Ue,0),Ua(nt,0)]):v.current.bt=!1}if(Tt&&Ue[0]==="b"&&(ut<ve.top||v.current.tb)){var st=at;We?st+=ue-ae:st=$e.y-he.y-Re;var rt=jn(Je,st),Et=jn(Je,st,me);rt>ie||rt===ie&&(!X||Et>=se)?(v.current.tb=!0,at=st,Re=-Re,It.points=[Ua(Ue,0),Ua(nt,0)]):v.current.tb=!1}var kt=Ye(He),Ze=Ue[1]===nt[1];if(kt&&Ue[1]==="l"&&(lt>ve.right||v.current.rl)){var Ke=Je;Ze?Ke-=le-ee:Ke=de.x-ze.x-Se;var vt=jn(Ke,at),Yt=jn(Ke,at,me);vt>ie||vt===ie&&(!X||Yt>=se)?(v.current.rl=!0,Je=Ke,Se=-Se,It.points=[Ua(Ue,1),Ua(nt,1)]):v.current.rl=!1}if(kt&&Ue[1]==="r"&&(Mt<ve.left||v.current.lr)){var rn=Je;Ze?rn+=le-ee:rn=$e.x-he.x-Se;var Ht=jn(rn,at),un=jn(rn,at,me);Ht>ie||Ht===ie&&(!X||un>=se)?(v.current.lr=!0,Je=rn,Se=-Se,It.points=[Ua(Ue,1),Ua(nt,1)]):v.current.lr=!1}Dr();var mn=Ne===!0?0:Ne;typeof mn=="number"&&(Mt<me.left&&(Je-=Mt-me.left-Se,D.x+ee<me.left+mn&&(Je+=D.x-me.left+ee-mn)),lt>me.right&&(Je-=lt-me.right-Se,D.x>me.right-mn&&(Je+=D.x-me.right+mn)));var Mn=Fe===!0?0:Fe;typeof Mn=="number"&&(ut<me.top&&(at-=ut-me.top-Re,D.y+ae<me.top+Mn&&(at+=D.y-me.top+ae-Mn)),$t>me.bottom&&(at-=$t-me.bottom-Re,D.y>me.bottom-Mn&&(at+=D.y-me.bottom+Mn)));var An=F.x+Je,Jn=An+le,Hn=F.y+at,qt=Hn+ue,Ct=D.x,ht=Ct+ee,Kt=D.y,mt=Kt+ae,gt=Math.max(An,Ct),Vt=Math.min(Jn,ht),an=(gt+Vt)/2,vn=an-An,Vn=Math.max(Hn,Kt),Nn=Math.min(qt,mt),Wn=(Vn+Nn)/2,Ft=Wn-Hn;i==null||i(t,It);var Ge=Pe.right-F.x-(Je+F.width),dt=Pe.bottom-F.y-(at+F.height);De===1&&(Je=Math.round(Je),Ge=Math.round(Ge)),Me===1&&(at=Math.round(at),dt=Math.round(dt));var At={ready:!0,offsetX:Je/De,offsetY:at/Me,offsetR:Ge/De,offsetB:dt/Me,arrowX:vn/De,arrowY:Ft/Me,scaleX:De,scaleY:Me,align:It};d(At)}}),y=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&b()})},h=function(){d(function(C){return K(K({},C),{},{ready:!1})})};return Dt(h,[r]),Dt(function(){e||h()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function LB(e,t,n,r,o){Dt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,a=t,i=n,s=wy(a),c=wy(i),u=Cd(i),d=new Set([u].concat(_e(s),_e(c)));return d.forEach(function(v){v.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function FB(e,t,n,r,o,a,i,s){var c=l.useRef(e);c.current=e;var u=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){u.current=!1},m=function(y){var h;c.current&&!i(((h=y.composedPath)===null||h===void 0||(h=h.call(y))===null||h===void 0?void 0:h[0])||y.target)&&!u.current&&s(!1)},v=Cd(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0);var g=zm(n);return g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,a]);function d(){u.current=!0}return d}var BB=["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 AB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O1,t=l.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,b=n.mouseEnterDelay,y=n.mouseLeaveDelay,h=y===void 0?.1:y,p=n.focusDelay,C=n.blurDelay,S=n.mask,x=n.maskClosable,$=x===void 0?!0:x,w=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,R=n.destroyPopupOnHide,M=n.popup,T=n.popupClassName,_=n.popupStyle,I=n.popupPlacement,N=n.builtinPlacements,P=N===void 0?{}:N,k=n.popupAlign,D=n.zIndex,z=n.stretch,j=n.getPopupClassNameFromAlign,L=n.fresh,F=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,W=n.arrow,q=n.popupMotion,J=n.maskMotion,Y=n.popupTransitionName,ne=n.popupAnimation,fe=n.maskTransitionName,oe=n.maskAnimation,G=n.className,ue=n.getTriggerDOMNode,le=Rt(n,BB),ae=E||R||!1,ee=l.useState(!1),ge=Z(ee,2),ye=ge[0],Ie=ge[1];Dt(function(){Ie(ag())},[]);var Ee=l.useRef({}),A=l.useContext(_w),X=l.useMemo(function(){return{registerSubPopup:function(Lt,Sn){Ee.current[Lt]=Sn,A==null||A.registerSubPopup(Lt,Sn)}}},[A]),re=pd(),me=l.useState(null),pe=Z(me,2),ve=pe[0],Pe=pe[1],De=l.useRef(null),Me=zt(function(_t){De.current=_t,zu(_t)&&ve!==_t&&Pe(_t),A==null||A.registerSubPopup(re,_t)}),Le=l.useState(null),Oe=Z(Le,2),be=Oe[0],ke=Oe[1],Se=l.useRef(null),Re=zt(function(_t){zu(_t)&&be!==_t&&(ke(_t),Se.current=_t)}),we=l.Children.only(i),xe=(we==null?void 0:we.props)||{},Te={},Ae=zt(function(_t){var Lt,Sn,zn=be;return(zn==null?void 0:zn.contains(_t))||((Lt=zm(zn))===null||Lt===void 0?void 0:Lt.host)===_t||_t===zn||(ve==null?void 0:ve.contains(_t))||((Sn=zm(ve))===null||Sn===void 0?void 0:Sn.host)===_t||_t===ve||Object.values(Ee.current).some(function(xn){return(xn==null?void 0:xn.contains(_t))||_t===xn})}),ct=kw(a,q,ne,Y),yt=kw(a,J,oe,fe),Ve=l.useState(m||!1),Xe=Z(Ve,2),nt=Xe[0],Ue=Xe[1],Qe=f??nt,wt=zt(function(_t){f===void 0&&Ue(_t)});Dt(function(){Ue(f||!1)},[f]);var It=l.useRef(Qe);It.current=Qe;var Je=l.useRef([]);Je.current=[];var at=zt(function(_t){var Lt;wt(_t),((Lt=Je.current[Je.current.length-1])!==null&&Lt!==void 0?Lt:Qe)!==_t&&(Je.current.push(_t),v==null||v(_t))}),ie=l.useRef(),se=function(){clearTimeout(ie.current)},de=function(Lt){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;se(),Sn===0?at(Lt):ie.current=setTimeout(function(){at(Lt)},Sn*1e3)};l.useEffect(function(){return se},[]);var he=l.useState(!1),$e=Z(he,2),ze=$e[0],Be=$e[1];Dt(function(_t){(!_t||Qe)&&Be(!0)},[Qe]);var He=l.useState(null),je=Z(He,2),Ne=je[0],Fe=je[1],Ye=l.useState(null),ut=Z(Ye,2),$t=ut[0],Mt=ut[1],lt=function(Lt){Mt([Lt.clientX,Lt.clientY])},Tt=zB(Qe,ve,F&&$t!==null?$t:be,I,P,k,V),We=Z(Tt,11),tt=We[0],bt=We[1],it=We[2],st=We[3],rt=We[4],Et=We[5],kt=We[6],Ze=We[7],Ke=We[8],vt=We[9],Yt=We[10],rn=DB(ye,c,u,d),Ht=Z(rn,2),un=Ht[0],mn=Ht[1],Mn=un.has("click"),An=mn.has("click")||mn.has("contextMenu"),Jn=zt(function(){ze||Yt()}),Hn=function(){It.current&&F&&An&&de(!1)};LB(Qe,be,ve,Jn,Hn),Dt(function(){Jn()},[$t,I]),Dt(function(){Qe&&!(P!=null&&P[I])&&Jn()},[JSON.stringify(k)]);var qt=l.useMemo(function(){var _t=jB(P,a,vt,F);return Q(_t,j==null?void 0:j(vt))},[vt,j,P,a,F]);l.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:De.current,forceAlign:Jn}});var Ct=l.useState(0),ht=Z(Ct,2),Kt=ht[0],mt=ht[1],gt=l.useState(0),Vt=Z(gt,2),an=Vt[0],vn=Vt[1],Vn=function(){if(z&&be){var Lt=be.getBoundingClientRect();mt(Lt.width),vn(Lt.height)}},Nn=function(){Vn(),Jn()},Wn=function(Lt){Be(!1),Yt(),g==null||g(Lt)},Ft=function(){return new Promise(function(Lt){Vn(),Fe(function(){return Lt})})};Dt(function(){Ne&&(Yt(),Ne(),Fe(null))},[Ne]);function Ge(_t,Lt,Sn,zn){Te[_t]=function(xn){var jd;zn==null||zn(xn),de(Lt,Sn);for(var qg=arguments.length,VC=new Array(qg>1?qg-1:0),zd=1;zd<qg;zd++)VC[zd-1]=arguments[zd];(jd=xe[_t])===null||jd===void 0||jd.call.apply(jd,[xe,xn].concat(VC))}}(Mn||An)&&(Te.onClick=function(_t){var Lt;It.current&&An?de(!1):!It.current&&Mn&&(lt(_t),de(!0));for(var Sn=arguments.length,zn=new Array(Sn>1?Sn-1:0),xn=1;xn<Sn;xn++)zn[xn-1]=arguments[xn];(Lt=xe.onClick)===null||Lt===void 0||Lt.call.apply(Lt,[xe,_t].concat(zn))});var dt=FB(Qe,An,be,ve,S,$,Ae,de),At=un.has("hover"),tn=mn.has("hover"),Cn,jn;At&&(Ge("onMouseEnter",!0,b,function(_t){lt(_t)}),Ge("onPointerEnter",!0,b,function(_t){lt(_t)}),Cn=function(Lt){(Qe||ze)&&ve!==null&&ve!==void 0&&ve.contains(Lt.target)&&de(!0,b)},F&&(Te.onMouseMove=function(_t){var Lt;(Lt=xe.onMouseMove)===null||Lt===void 0||Lt.call(xe,_t)})),tn&&(Ge("onMouseLeave",!1,h),Ge("onPointerLeave",!1,h),jn=function(){de(!1,h)}),un.has("focus")&&Ge("onFocus",!0,p),mn.has("focus")&&Ge("onBlur",!1,C),un.has("contextMenu")&&(Te.onContextMenu=function(_t){var Lt;It.current&&mn.has("contextMenu")?de(!1):(lt(_t),de(!0)),_t.preventDefault();for(var Sn=arguments.length,zn=new Array(Sn>1?Sn-1:0),xn=1;xn<Sn;xn++)zn[xn-1]=arguments[xn];(Lt=xe.onContextMenu)===null||Lt===void 0||Lt.call.apply(Lt,[xe,_t].concat(zn))}),G&&(Te.className=Q(xe.className,G));var Dr=l.useRef(!1);Dr.current||(Dr.current=O||Qe||ze);var Vr=K(K({},xe),Te),Wr={},ia=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ia.forEach(function(_t){le[_t]&&(Wr[_t]=function(){for(var Lt,Sn=arguments.length,zn=new Array(Sn),xn=0;xn<Sn;xn++)zn[xn]=arguments[xn];(Lt=Vr[_t])===null||Lt===void 0||Lt.call.apply(Lt,[Vr].concat(zn)),le[_t].apply(le,zn)})});var Dd=l.cloneElement(we,K(K({},Vr),Wr)),kd={x:Et,y:kt},Ug=W?K({},W!==!0?W:{}):null;return l.createElement(l.Fragment,null,l.createElement(gr,{disabled:!Qe,ref:Re,onResize:Nn},l.createElement(_B,{getTriggerDOMNode:ue},Dd)),Dr.current&&l.createElement(_w.Provider,{value:X},l.createElement(TB,{portal:e,ref:Me,prefixCls:a,popup:M,className:Q(T,qt),style:_,target:be,onMouseEnter:Cn,onMouseLeave:jn,onPointerEnter:Cn,zIndex:D,open:Qe,keepDom:ze,fresh:L,onClick:B,onPointerDownCapture:dt,mask:S,motion:ct,maskMotion:yt,onVisibleChanged:Wn,onPrepare:Ft,forceRender:O,autoDestroy:ae,getPopupContainer:w,align:vt,arrow:Ug,arrowPos:kd,ready:tt,offsetX:bt,offsetY:it,offsetR:st,offsetB:rt,onAlign:Jn,stretch:z,targetWidth:Kt/Ze,targetHeight:an/Ke})))});return t}const Sd=AB(O1);var HB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],VB=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"}}},WB=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,v=t.placement,g=t.builtinPlacements,b=t.dropdownMatchSelectWidth,y=t.dropdownRender,h=t.dropdownAlign,p=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,$=t.onPopupMouseEnter,w=Rt(t,HB),O="".concat(r,"-dropdown"),E=i;y&&(E=y(i));var R=l.useMemo(function(){return g||VB(b)},[g,b]),M=s?"".concat(O,"-").concat(s):c,T=typeof b=="number",_=l.useMemo(function(){return T?null:b===!1?"minWidth":"width"},[b,T]),I=u;T&&(I=K(K({},I),{},{width:b}));var N=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var k;return(k=N.current)===null||k===void 0?void 0:k.popupElement}}}),l.createElement(Sd,Ce({},w,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:v||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:O,popupTransitionName:M,popup:l.createElement("div",{onMouseEnter:$},E),ref:N,stretch:_,popupAlign:h,popupVisible:o,getPopupContainer:p,popupClassName:Q(d,H({},"".concat(O,"-empty"),C)),popupStyle:I,getTriggerDOMNode:S,onPopupVisibleChange:x}),a)},KB=l.forwardRef(WB);function Bw(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 $y(e){return typeof e<"u"&&!Number.isNaN(e)}function T3(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function UB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=T3(n,!1),i=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var g=v[s];o.push({key:Bw(v,o.length),groupOption:m,data:v,label:v[i],value:g})}else{var b=v[u];b===void 0&&r&&(b=v.label),o.push({key:Bw(v,o.length),group:!0,data:v,label:b}),d(v[c],!0)}})}return d(e,!1),o}function Ey(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var qB=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=zR(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(g,b){return[].concat(_e(g),_e(s(b,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},N1=l.createContext(null);function GB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.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(ft(a))?a:i}).join(", ")),n.length>r?", ...":null)}var XB=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],YB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Oy=function(t){return t==="tags"||t==="multiple"},QB=l.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,b=e.onClear,y=e.mode,h=e.disabled,p=e.loading,C=e.getInputElement,S=e.getRawInputElement,x=e.open,$=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,R=e.activeDescendantId,M=e.searchValue,T=e.autoClearSearchValue,_=e.onSearch,I=e.onSearchSplit,N=e.tokenSeparators,P=e.allowClear,k=e.prefix,D=e.suffixIcon,z=e.clearIcon,j=e.OptionList,L=e.animation,F=e.transitionName,B=e.dropdownStyle,V=e.dropdownClassName,W=e.dropdownMatchSelectWidth,q=e.dropdownRender,J=e.dropdownAlign,Y=e.placement,ne=e.builtinPlacements,fe=e.getPopupContainer,oe=e.showAction,G=oe===void 0?[]:oe,ue=e.onFocus,le=e.onBlur,ae=e.onKeyUp,ee=e.onKeyDown,ge=e.onMouseDown,ye=Rt(e,XB),Ie=Oy(y),Ee=(i!==void 0?i:Ie)||y==="combobox",A=K({},ye);YB.forEach(function(Ct){delete A[Ct]}),u==null||u.forEach(function(Ct){delete A[Ct]});var X=l.useState(!1),re=Z(X,2),me=re[0],pe=re[1];l.useEffect(function(){pe(ag())},[]);var ve=l.useRef(null),Pe=l.useRef(null),De=l.useRef(null),Me=l.useRef(null),Le=l.useRef(null),Oe=l.useRef(!1),be=nB(),ke=Z(be,3),Se=ke[0],Re=ke[1],we=ke[2];l.useImperativeHandle(t,function(){var Ct,ht;return{focus:(Ct=Me.current)===null||Ct===void 0?void 0:Ct.focus,blur:(ht=Me.current)===null||ht===void 0?void 0:ht.blur,scrollTo:function(mt){var gt;return(gt=Le.current)===null||gt===void 0?void 0:gt.scrollTo(mt)},nativeElement:ve.current||Pe.current}});var xe=l.useMemo(function(){var Ct;if(y!=="combobox")return M;var ht=(Ct=d[0])===null||Ct===void 0?void 0:Ct.value;return typeof ht=="string"||typeof ht=="number"?String(ht):""},[M,y,d]),Te=y==="combobox"&&typeof C=="function"&&C()||null,Ae=typeof S=="function"&&S(),ct=Ha(Pe,Ae==null||(n=Ae.props)===null||n===void 0?void 0:n.ref),yt=l.useState(!1),Ve=Z(yt,2),Xe=Ve[0],nt=Ve[1];Dt(function(){nt(!0)},[]);var Ue=Jt(!1,{defaultValue:$,value:x}),Qe=Z(Ue,2),wt=Qe[0],It=Qe[1],Je=Xe?wt:!1,at=!g&&m;(h||at&&Je&&y==="combobox")&&(Je=!1);var ie=at?!1:Je,se=l.useCallback(function(Ct){var ht=Ct!==void 0?Ct:!Je;h||(It(ht),Je!==ht&&(w==null||w(ht)))},[h,Je,It,w]),de=l.useMemo(function(){return(N||[]).some(function(Ct){return[`
|
|
215
|
-
`,`\r
|
|
216
|
-
`].includes(Ct)})},[N]),he=l.useContext(N1)||{},$e=he.maxCount,ze=he.rawValues,Be=function(ht,Kt,mt){if(!(Ie&&$y($e)&&(ze==null?void 0:ze.size)>=$e)){var gt=!0,Vt=ht;E==null||E(null);var an=qB(ht,N,$y($e)?$e-ze.size:void 0),vn=mt?null:an;return y!=="combobox"&&vn&&(Vt="",I==null||I(vn),se(!1),gt=!1),_&&xe!==Vt&&_(Vt,{source:Kt?"typing":"effect"}),gt}},He=function(ht){!ht||!ht.trim()||_(ht,{source:"submit"})};l.useEffect(function(){!Je&&!Ie&&y!=="combobox"&&Be("",!1,!1)},[Je]),l.useEffect(function(){wt&&h&&It(!1),h&&!Oe.current&&Re(!1)},[h]);var je=E3(),Ne=Z(je,2),Fe=Ne[0],Ye=Ne[1],ut=l.useRef(!1),$t=function(ht){var Kt=Fe(),mt=ht.key,gt=mt==="Enter";if(gt&&(y!=="combobox"&&ht.preventDefault(),Je||se(!0)),Ye(!!xe),mt==="Backspace"&&!Kt&&Ie&&!xe&&d.length){for(var Vt=_e(d),an=null,vn=Vt.length-1;vn>=0;vn-=1){var Vn=Vt[vn];if(!Vn.disabled){Vt.splice(vn,1),an=Vn;break}}an&&f(Vt,{type:"remove",values:[an]})}for(var Nn=arguments.length,Wn=new Array(Nn>1?Nn-1:0),Ft=1;Ft<Nn;Ft++)Wn[Ft-1]=arguments[Ft];if(Je&&(!gt||!ut.current)){var Ge;gt&&(ut.current=!0),(Ge=Le.current)===null||Ge===void 0||Ge.onKeyDown.apply(Ge,[ht].concat(Wn))}ee==null||ee.apply(void 0,[ht].concat(Wn))},Mt=function(ht){for(var Kt=arguments.length,mt=new Array(Kt>1?Kt-1:0),gt=1;gt<Kt;gt++)mt[gt-1]=arguments[gt];if(Je){var Vt;(Vt=Le.current)===null||Vt===void 0||Vt.onKeyUp.apply(Vt,[ht].concat(mt))}ht.key==="Enter"&&(ut.current=!1),ae==null||ae.apply(void 0,[ht].concat(mt))},lt=function(ht){var Kt=d.filter(function(mt){return mt!==ht});f(Kt,{type:"remove",values:[ht]})},Tt=function(){ut.current=!1},We=l.useRef(!1),tt=function(){Re(!0),h||(ue&&!We.current&&ue.apply(void 0,arguments),G.includes("focus")&&se(!0)),We.current=!0},bt=function(){Oe.current=!0,Re(!1,function(){We.current=!1,Oe.current=!1,se(!1)}),!h&&(xe&&(y==="tags"?_(xe,{source:"submit"}):y==="multiple"&&_("",{source:"blur"})),le&&le.apply(void 0,arguments))},it=[];l.useEffect(function(){return function(){it.forEach(function(Ct){return clearTimeout(Ct)}),it.splice(0,it.length)}},[]);var st=function(ht){var Kt,mt=ht.target,gt=(Kt=De.current)===null||Kt===void 0?void 0:Kt.getPopupElement();if(gt&>.contains(mt)){var Vt=setTimeout(function(){var Nn=it.indexOf(Vt);if(Nn!==-1&&it.splice(Nn,1),we(),!me&&!gt.contains(document.activeElement)){var Wn;(Wn=Me.current)===null||Wn===void 0||Wn.focus()}});it.push(Vt)}for(var an=arguments.length,vn=new Array(an>1?an-1:0),Vn=1;Vn<an;Vn++)vn[Vn-1]=arguments[Vn];ge==null||ge.apply(void 0,[ht].concat(vn))},rt=l.useState({}),Et=Z(rt,2),kt=Et[1];function Ze(){kt({})}var Ke;Ae&&(Ke=function(ht){se(ht)}),rB(function(){var Ct;return[ve.current,(Ct=De.current)===null||Ct===void 0?void 0:Ct.getPopupElement()]},ie,se,!!Ae);var vt=l.useMemo(function(){return K(K({},e),{},{notFoundContent:g,open:Je,triggerOpen:ie,id:r,showSearch:Ee,multiple:Ie,toggleOpen:se})},[e,g,ie,Je,r,Ee,Ie,se]),Yt=!!D||p,rn;Yt&&(rn=l.createElement(ig,{className:Q("".concat(o,"-arrow"),H({},"".concat(o,"-arrow-loading"),p)),customizeIcon:D,customizeIconProps:{loading:p,searchValue:xe,open:Je,focused:Se,showSearch:Ee}}));var Ht=function(){var ht;b==null||b(),(ht=Me.current)===null||ht===void 0||ht.focus(),f([],{type:"clear",values:d}),Be("",!1,!1)},un=eB(o,Ht,d,P,z,h,xe,y),mn=un.allowClear,Mn=un.clearIcon,An=l.createElement(j,{ref:Le}),Jn=Q(o,a,H(H(H(H(H(H(H(H(H(H({},"".concat(o,"-focused"),Se),"".concat(o,"-multiple"),Ie),"".concat(o,"-single"),!Ie),"".concat(o,"-allow-clear"),P),"".concat(o,"-show-arrow"),Yt),"".concat(o,"-disabled"),h),"".concat(o,"-loading"),p),"".concat(o,"-open"),Je),"".concat(o,"-customize-input"),Te),"".concat(o,"-show-search"),Ee)),Hn=l.createElement(KB,{ref:De,disabled:h,prefixCls:o,visible:ie,popupElement:An,animation:L,transitionName:F,dropdownStyle:B,dropdownClassName:V,direction:c,dropdownMatchSelectWidth:W,dropdownRender:q,dropdownAlign:J,placement:Y,builtinPlacements:ne,getPopupContainer:fe,empty:m,getTriggerDOMNode:function(ht){return Pe.current||ht},onPopupVisibleChange:Ke,onPopupMouseEnter:Ze},Ae?l.cloneElement(Ae,{ref:ct}):l.createElement(IB,Ce({},e,{domRef:Pe,prefixCls:o,inputElement:Te,ref:Me,id:r,prefix:k,showSearch:Ee,autoClearSearchValue:T,mode:y,activeDescendantId:R,tagRender:s,values:d,open:Je,onToggleOpen:se,activeValue:O,searchValue:xe,onSearch:Be,onSearchSubmit:He,onRemove:lt,tokenWithEnter:de,onInputBlur:Tt}))),qt;return Ae?qt=Hn:qt=l.createElement("div",Ce({className:Jn},A,{ref:ve,onMouseDown:st,onKeyDown:$t,onKeyUp:Mt,onFocus:tt,onBlur:bt}),l.createElement(GB,{visible:Se&&!Je,values:d}),Hn,rn,mn&&Mn),l.createElement($3.Provider,{value:vt},qt)}),T1=function(){return null};T1.isSelectOptGroup=!0;var _1=function(){return null};_1.isSelectOption=!0;var _3=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=K(K({},m),{},H(H(H(H(H({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:f},l.createElement(gr,{onResize:function(g){var b=g.offsetHeight;b&&s&&s()}},l.createElement("div",Ce({style:m,className:Q(H({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,d)))});_3.displayName="Filler";function JB(e){var t=e.children,n=e.setRef,r=l.useCallback(function(o){n(o)},[]);return l.cloneElement(t,{ref:r})}function ZB(e,t,n,r,o,a,i,s){var c=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=i(u,f,{style:{width:r},offsetX:o}),v=c(u);return l.createElement(JB,{key:v,setRef:function(b){return a(u,b)}},m)})}function eA(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 s={__EMPTY_ITEM__:!0};function c(g){return g!==void 0?n(g):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var m=c(a[f]),v=c(i[f]);if(m!==v){u=f,d=d||m!==c(i[f+1]);break}}return u===null?null:{index:u,multiple:d}}function tA(e,t,n){var r=l.useState(e),o=Z(r,2),a=o[0],i=o[1],s=l.useState(null),c=Z(s,2),u=c[0],d=c[1];return l.useEffect(function(){var f=eA(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[u]}var Aw=(typeof navigator>"u"?"undefined":ft(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const D3=function(e,t,n,r){var o=l.useRef(!1),a=l.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function nA(e,t,n,r,o,a,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=D3(t,n,r,o);function m(p,C){if(jt.cancel(c.current),!f(!1,C)){var S=p;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=C,u.current=C,Aw||S.preventDefault(),c.current=jt(function(){var x=d.current?10:1;i(s.current*x,!1),s.current=0})}}function v(p,C){i(C,!0),Aw||p.preventDefault()}var g=l.useRef(null),b=l.useRef(null);function y(p){if(e){jt.cancel(b.current),b.current=jt(function(){g.current=null},2);var C=p.deltaX,S=p.deltaY,x=p.shiftKey,$=C,w=S;(g.current==="sx"||!g.current&&x&&S&&!C)&&($=S,w=0,g.current="sx");var O=Math.abs($),E=Math.abs(w);g.current===null&&(g.current=a&&O>E?"x":"y"),g.current==="y"?m(p,w):v(p,$)}}function h(p){e&&(d.current=p.detail===u.current)}return[y,h]}function rA(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Z(o,2),i=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),v=i.get(f);if(m===void 0||v===void 0)for(var g=e.length,b=s.length;b<g;b+=1){var y,h=e[b],p=t(h);i.set(p,b);var C=(y=n.get(p))!==null&&y!==void 0?y:r;if(s[b]=(s[b-1]||0)+C,p===d&&(m=b),p===f&&(v=b),m!==void 0&&v!==void 0)break}return{top:s[m-1]||0,bottom:s[v]}};return c}var oA=function(){function e(){En(this,e),H(this,"maps",void 0),H(this,"id",0),H(this,"diffRecords",new Map),this.maps=Object.create(null)}return On(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Hw(e){var t=parseFloat(e);return isNaN(t)?0:t}function aA(e,t,n){var r=l.useState(0),o=Z(r,2),a=o[0],i=o[1],s=l.useRef(new Map),c=l.useRef(new oA),u=l.useRef(0);function d(){u.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){var h=!1;s.current.forEach(function(p,C){if(p&&p.offsetParent){var S=p.offsetHeight,x=getComputedStyle(p),$=x.marginTop,w=x.marginBottom,O=Hw($),E=Hw(w),R=S+O+E;c.current.get(C)!==R&&(c.current.set(C,R),h=!0)}}),h&&i(function(p){return p+1})};if(v)g();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&g()})}}function m(v,g){var b=e(v);s.current.get(b),g?(s.current.set(b,g),f()):s.current.delete(b)}return l.useEffect(function(){return d},[]),[m,f,c.current,a]}var Vw=14/15;function iA(e,t,n){var r=l.useRef(!1),o=l.useRef(0),a=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(v){if(r.current){var g=Math.ceil(v.touches[0].pageX),b=Math.ceil(v.touches[0].pageY),y=o.current-g,h=a.current-b,p=Math.abs(y)>Math.abs(h);p?o.current=g:a.current=b;var C=n(p,p?y:h,!1,v);C&&v.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){p?y*=Vw:h*=Vw;var S=Math.floor(p?y:h);(!n(p,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),a.current=Math.ceil(v.touches[0].pageY),i.current=v.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Dt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}function Ww(e){return Math.floor(Math.pow(e,.5))}function Ry(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function lA(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){jt.cancel(a)},c=function m(){s(),a=jt(function(){n(i),m()})},u=function(){o=!1,s()},d=function(v){if(!(v.target.draggable||v.button!==0)){var g=v;g._virtualHandled||(g._virtualHandled=!0,o=!0)}},f=function(v){if(o){var g=Ry(v,!1),b=r.getBoundingClientRect(),y=b.top,h=b.bottom;if(g<=y){var p=y-g;i=-Ww(p),c()}else if(g>=h){var C=g-h;i=Ww(C),c()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),s()}}},[e])}var sA=10;function cA(e,t,n,r,o,a,i,s){var c=l.useRef(),u=l.useState(null),d=Z(u,2),f=d[0],m=d[1];return Dt(function(){if(f&&f.times<sA){if(!e.current){m(function(z){return K({},z)});return}a();var v=f.targetAlign,g=f.originAlign,b=f.index,y=f.offset,h=e.current.clientHeight,p=!1,C=v,S=null;if(h){for(var x=v||g,$=0,w=0,O=0,E=Math.min(t.length-1,b),R=0;R<=E;R+=1){var M=o(t[R]);w=$;var T=n.get(M);O=w+(T===void 0?r:T),$=O}for(var _=x==="top"?y:h-y,I=E;I>=0;I-=1){var N=o(t[I]),P=n.get(N);if(P===void 0){p=!0;break}if(_-=P,_<=0)break}switch(x){case"top":S=w-y;break;case"bottom":S=O-h+y;break;default:{var k=e.current.scrollTop,D=k+h;w<k?C="top":O>D&&(C="bottom")}}S!==null&&i(S),S!==f.lastTop&&(p=!0)}p&&m(K(K({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(v){if(v==null){s();return}if(jt.cancel(c.current),typeof v=="number")i(v);else if(v&&ft(v)==="object"){var g,b=v.align;"index"in v?g=v.index:g=t.findIndex(function(p){return o(p)===v.key});var y=v.offset,h=y===void 0?0:y;m({times:0,index:g,offset:h,originAlign:b})}}}var Kw=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,g=e.showScrollBar,b=l.useState(!1),y=Z(b,2),h=y[0],p=y[1],C=l.useState(null),S=Z(C,2),x=S[0],$=S[1],w=l.useState(null),O=Z(w,2),E=O[0],R=O[1],M=!r,T=l.useRef(),_=l.useRef(),I=l.useState(g),N=Z(I,2),P=N[0],k=N[1],D=l.useRef(),z=function(){g===!0||g===!1||(clearTimeout(D.current),k(!0),D.current=setTimeout(function(){k(!1)},3e3))},j=a-f||0,L=f-d||0,F=l.useMemo(function(){if(o===0||j===0)return 0;var oe=o/j;return oe*L},[o,j,L]),B=function(G){G.stopPropagation(),G.preventDefault()},V=l.useRef({top:F,dragging:h,pageY:x,startTop:E});V.current={top:F,dragging:h,pageY:x,startTop:E};var W=function(G){p(!0),$(Ry(G,u)),R(V.current.top),i(),G.stopPropagation(),G.preventDefault()};l.useEffect(function(){var oe=function(ae){ae.preventDefault()},G=T.current,ue=_.current;return G.addEventListener("touchstart",oe,{passive:!1}),ue.addEventListener("touchstart",W,{passive:!1}),function(){G.removeEventListener("touchstart",oe),ue.removeEventListener("touchstart",W)}},[]);var q=l.useRef();q.current=j;var J=l.useRef();J.current=L,l.useEffect(function(){if(h){var oe,G=function(ae){var ee=V.current,ge=ee.dragging,ye=ee.pageY,Ie=ee.startTop;jt.cancel(oe);var Ee=T.current.getBoundingClientRect(),A=f/(u?Ee.width:Ee.height);if(ge){var X=(Ry(ae,u)-ye)*A,re=Ie;!M&&u?re-=X:re+=X;var me=q.current,pe=J.current,ve=pe?re/pe:0,Pe=Math.ceil(ve*me);Pe=Math.max(Pe,0),Pe=Math.min(Pe,me),oe=jt(function(){c(Pe,u)})}},ue=function(){p(!1),s()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",ue,{passive:!0}),window.addEventListener("touchend",ue,{passive:!0}),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ue),window.removeEventListener("touchend",ue),jt.cancel(oe)}}},[h]),l.useEffect(function(){return z(),function(){clearTimeout(D.current)}},[o]),l.useImperativeHandle(t,function(){return{delayHidden:z}});var Y="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:P?null:"hidden"},fe={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(ne,{height:8,left:0,right:0,bottom:0}),Object.assign(fe,H({height:"100%",width:d},M?"left":"right",F))):(Object.assign(ne,H({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(fe,{width:"100%",height:d,top:F})),l.createElement("div",{ref:T,className:Q(Y,H(H(H({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),P)),style:K(K({},ne),m),onMouseDown:B,onMouseMove:z},l.createElement("div",{ref:_,className:Q("".concat(Y,"-thumb"),H({},"".concat(Y,"-thumb-moving"),h)),style:K(K({},fe),v),onMouseDown:W}))}),uA=20;function Uw(){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,uA),Math.floor(n)}var dA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fA=[],mA={overflowY:"auto",overflowAnchor:"none"};function vA(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,g=e.direction,b=e.scrollWidth,y=e.component,h=y===void 0?"div":y,p=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,$=e.extraRender,w=e.styles,O=e.showScrollBar,E=O===void 0?"optional":O,R=Rt(e,dA),M=l.useCallback(function(We){return typeof m=="function"?m(We):We==null?void 0:We[m]},[m]),T=aA(M),_=Z(T,4),I=_[0],N=_[1],P=_[2],k=_[3],D=!!(v!==!1&&a&&i),z=l.useMemo(function(){return Object.values(P.maps).reduce(function(We,tt){return We+tt},0)},[P.id,P.maps]),j=D&&d&&(Math.max(i*d.length,z)>a||!!b),L=g==="rtl",F=Q(r,H({},"".concat(r,"-rtl"),L),o),B=d||fA,V=l.useRef(),W=l.useRef(),q=l.useRef(),J=l.useState(0),Y=Z(J,2),ne=Y[0],fe=Y[1],oe=l.useState(0),G=Z(oe,2),ue=G[0],le=G[1],ae=l.useState(!1),ee=Z(ae,2),ge=ee[0],ye=ee[1],Ie=function(){ye(!0)},Ee=function(){ye(!1)},A={getKey:M};function X(We){fe(function(tt){var bt;typeof We=="function"?bt=We(tt):bt=We;var it=nt(bt);return V.current.scrollTop=it,it})}var re=l.useRef({start:0,end:B.length}),me=l.useRef(),pe=tA(B,M),ve=Z(pe,1),Pe=ve[0];me.current=Pe;var De=l.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!j){var We;return{scrollHeight:((We=W.current)===null||We===void 0?void 0:We.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var tt=0,bt,it,st,rt=B.length,Et=0;Et<rt;Et+=1){var kt=B[Et],Ze=M(kt),Ke=P.get(Ze),vt=tt+(Ke===void 0?i:Ke);vt>=ne&&bt===void 0&&(bt=Et,it=tt),vt>ne+a&&st===void 0&&(st=Et),tt=vt}return bt===void 0&&(bt=0,it=0,st=Math.ceil(a/i)),st===void 0&&(st=B.length-1),st=Math.min(st+1,B.length-1),{scrollHeight:tt,start:bt,end:st,offset:it}},[j,D,ne,B,k,a]),Me=De.scrollHeight,Le=De.start,Oe=De.end,be=De.offset;re.current.start=Le,re.current.end=Oe,l.useLayoutEffect(function(){var We=P.getRecord();if(We.size===1){var tt=Array.from(We.keys())[0],bt=We.get(tt),it=B[Le];if(it&&bt===void 0){var st=M(it);if(st===tt){var rt=P.get(tt),Et=rt-i;X(function(kt){return kt+Et})}}}P.resetRecord()},[Me]);var ke=l.useState({width:0,height:a}),Se=Z(ke,2),Re=Se[0],we=Se[1],xe=function(tt){we({width:tt.offsetWidth,height:tt.offsetHeight})},Te=l.useRef(),Ae=l.useRef(),ct=l.useMemo(function(){return Uw(Re.width,b)},[Re.width,b]),yt=l.useMemo(function(){return Uw(Re.height,Me)},[Re.height,Me]),Ve=Me-a,Xe=l.useRef(Ve);Xe.current=Ve;function nt(We){var tt=We;return Number.isNaN(Xe.current)||(tt=Math.min(tt,Xe.current)),tt=Math.max(tt,0),tt}var Ue=ne<=0,Qe=ne>=Ve,wt=ue<=0,It=ue>=b,Je=D3(Ue,Qe,wt,It),at=function(){return{x:L?-ue:ue,y:ne}},ie=l.useRef(at()),se=zt(function(We){if(C){var tt=K(K({},at()),We);(ie.current.x!==tt.x||ie.current.y!==tt.y)&&(C(tt),ie.current=tt)}});function de(We,tt){var bt=We;tt?(Qo.flushSync(function(){le(bt)}),se()):X(bt)}function he(We){var tt=We.currentTarget.scrollTop;tt!==ne&&X(tt),p==null||p(We),se()}var $e=function(tt){var bt=tt,it=b?b-Re.width:0;return bt=Math.max(bt,0),bt=Math.min(bt,it),bt},ze=zt(function(We,tt){tt?(Qo.flushSync(function(){le(function(bt){var it=bt+(L?-We:We);return $e(it)})}),se()):X(function(bt){var it=bt+We;return it})}),Be=nA(D,Ue,Qe,wt,It,!!b,ze),He=Z(Be,2),je=He[0],Ne=He[1];iA(D,V,function(We,tt,bt,it){var st=it;return Je(We,tt,bt)?!1:!st||!st._virtualHandled?(st&&(st._virtualHandled=!0),je({preventDefault:function(){},deltaX:We?tt:0,deltaY:We?0:tt}),!0):!1}),lA(j,V,function(We){X(function(tt){return tt+We})}),Dt(function(){function We(bt){var it=Ue&&bt.detail<0,st=Qe&&bt.detail>0;D&&!it&&!st&&bt.preventDefault()}var tt=V.current;return tt.addEventListener("wheel",je,{passive:!1}),tt.addEventListener("DOMMouseScroll",Ne,{passive:!0}),tt.addEventListener("MozMousePixelScroll",We,{passive:!1}),function(){tt.removeEventListener("wheel",je),tt.removeEventListener("DOMMouseScroll",Ne),tt.removeEventListener("MozMousePixelScroll",We)}},[D,Ue,Qe]),Dt(function(){if(b){var We=$e(ue);le(We),se({x:We})}},[Re.width,b]);var Fe=function(){var tt,bt;(tt=Te.current)===null||tt===void 0||tt.delayHidden(),(bt=Ae.current)===null||bt===void 0||bt.delayHidden()},Ye=cA(V,B,P,i,M,function(){return N(!0)},X,Fe);l.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:at,scrollTo:function(tt){function bt(it){return it&&ft(it)==="object"&&("left"in it||"top"in it)}bt(tt)?(tt.left!==void 0&&le($e(tt.left)),Ye(tt.top)):Ye(tt)}}}),Dt(function(){if(S){var We=B.slice(Le,Oe+1);S(We,B)}},[Le,Oe,B]);var ut=rA(B,M,P,i),$t=$==null?void 0:$({start:Le,end:Oe,virtual:j,offsetX:ue,offsetY:be,rtl:L,getSize:ut}),Mt=ZB(B,Le,Oe,b,ue,I,f,A),lt=null;a&&(lt=K(H({},c?"height":"maxHeight",a),mA),D&&(lt.overflowY="hidden",b&&(lt.overflowX="hidden"),ge&&(lt.pointerEvents="none")));var Tt={};return L&&(Tt.dir="rtl"),l.createElement("div",Ce({ref:q,style:K(K({},u),{},{position:"relative"}),className:F},Tt,R),l.createElement(gr,{onResize:xe},l.createElement(h,{className:"".concat(r,"-holder"),style:lt,ref:V,onScroll:he,onMouseEnter:Fe},l.createElement(_3,{prefixCls:r,height:Me,offsetX:ue,offsetY:be,scrollWidth:b,onInnerResize:N,ref:W,innerProps:x,rtl:L,extra:$t},Mt))),j&&Me>a&&l.createElement(Kw,{ref:Te,prefixCls:r,scrollOffset:ne,scrollRange:Me,rtl:L,onScroll:de,onStartMove:Ie,onStopMove:Ee,spinSize:yt,containerSize:Re.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb,showScrollBar:E}),j&&b>Re.width&&l.createElement(Kw,{ref:Ae,prefixCls:r,scrollOffset:ue,scrollRange:b,rtl:L,onScroll:de,onStartMove:Ie,onStopMove:Ee,spinSize:ct,containerSize:Re.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb,showScrollBar:E}))}var lg=l.forwardRef(vA);lg.displayName="List";function gA(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var hA=["disabled","title","children","style","className"];function qw(e){return typeof e=="string"||typeof e=="number"}var pA=function(t,n){var r=tB(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=l.useContext(N1),g=v.maxCount,b=v.flattenOptions,y=v.onActiveValue,h=v.defaultActiveFirstOption,p=v.onSelect,C=v.menuItemSelectedIcon,S=v.rawValues,x=v.fieldNames,$=v.virtual,w=v.direction,O=v.listHeight,E=v.listItemHeight,R=v.optionRender,M="".concat(o,"-item"),T=wl(function(){return b},[i,b],function(oe,G){return G[0]&&oe[1]!==G[1]}),_=l.useRef(null),I=l.useMemo(function(){return s&&$y(g)&&(S==null?void 0:S.size)>=g},[s,g,S==null?void 0:S.size]),N=function(G){G.preventDefault()},P=function(G){var ue;(ue=_.current)===null||ue===void 0||ue.scrollTo(typeof G=="number"?{index:G}:G)},k=l.useCallback(function(oe){return c==="combobox"?!1:S.has(oe)},[c,_e(S).toString(),S.size]),D=function(G){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=T.length,ae=0;ae<le;ae+=1){var ee=(G+ae*ue+le)%le,ge=T[ee]||{},ye=ge.group,Ie=ge.data;if(!ye&&!(Ie!=null&&Ie.disabled)&&(k(Ie.value)||!I))return ee}return-1},z=l.useState(function(){return D(0)}),j=Z(z,2),L=j[0],F=j[1],B=function(G){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(G);var le={source:ue?"keyboard":"mouse"},ae=T[G];if(!ae){y(null,-1,le);return}y(ae.value,G,le)};l.useEffect(function(){B(h!==!1?D(0):-1)},[T.length,u]);var V=l.useCallback(function(oe){return c==="combobox"?String(oe).toLowerCase()===u.toLowerCase():S.has(oe)},[c,u,_e(S).toString(),S.size]);l.useEffect(function(){var oe=setTimeout(function(){if(!s&&i&&S.size===1){var ue=Array.from(S)[0],le=T.findIndex(function(ae){var ee=ae.data;return u?String(ee.value).startsWith(u):ee.value===ue});le!==-1&&(B(le),P(le))}});if(i){var G;(G=_.current)===null||G===void 0||G.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[i,u]);var W=function(G){G!==void 0&&p(G,{selected:!S.has(G)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(G){var ue=G.which,le=G.ctrlKey;switch(ue){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var ae=0;if(ue===ot.UP?ae=-1:ue===ot.DOWN?ae=1:gA()&&le&&(ue===ot.N?ae=1:ue===ot.P&&(ae=-1)),ae!==0){var ee=D(L+ae,ae);P(ee),B(ee,!0)}break}case ot.TAB:case ot.ENTER:{var ge,ye=T[L];ye&&!(ye!=null&&(ge=ye.data)!==null&&ge!==void 0&&ge.disabled)&&!I?W(ye.value):W(void 0),i&&G.preventDefault();break}case ot.ESC:d(!1),i&&G.stopPropagation()}},onKeyUp:function(){},scrollTo:function(G){P(G)}}}),T.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:N},f);var q=Object.keys(x).map(function(oe){return x[oe]}),J=function(G){return G.label};function Y(oe,G){var ue=oe.group;return{role:ue?"presentation":"option",id:"".concat(a,"_list_").concat(G)}}var ne=function(G){var ue=T[G];if(!ue)return null;var le=ue.data||{},ae=le.value,ee=ue.group,ge=ur(le,!0),ye=J(ue);return ue?l.createElement("div",Ce({"aria-label":typeof ye=="string"&&!ee?ye:null},ge,{key:G},Y(ue,G),{"aria-selected":V(ae)}),ae):null},fe={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,$&&l.createElement("div",Ce({},fe,{style:{height:0,width:0,overflow:"hidden"}}),ne(L-1),ne(L),ne(L+1)),l.createElement(lg,{itemKey:"key",ref:_,data:T,height:O,itemHeight:E,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:$,direction:w,innerProps:$?null:fe},function(oe,G){var ue=oe.group,le=oe.groupOption,ae=oe.data,ee=oe.label,ge=oe.value,ye=ae.key;if(ue){var Ie,Ee=(Ie=ae.title)!==null&&Ie!==void 0?Ie:qw(ee)?ee.toString():void 0;return l.createElement("div",{className:Q(M,"".concat(M,"-group"),ae.className),title:Ee},ee!==void 0?ee:ye)}var A=ae.disabled,X=ae.title;ae.children;var re=ae.style,me=ae.className,pe=Rt(ae,hA),ve=on(pe,q),Pe=k(ge),De=A||!Pe&&I,Me="".concat(M,"-option"),Le=Q(M,Me,me,H(H(H(H({},"".concat(Me,"-grouped"),le),"".concat(Me,"-active"),L===G&&!De),"".concat(Me,"-disabled"),De),"".concat(Me,"-selected"),Pe)),Oe=J(oe),be=!C||typeof C=="function"||Pe,ke=typeof Oe=="number"?Oe:Oe||ge,Se=qw(ke)?ke.toString():void 0;return X!==void 0&&(Se=X),l.createElement("div",Ce({},ur(ve),$?{}:Y(oe,G),{"aria-selected":V(ge),className:Le,title:Se,onMouseMove:function(){L===G||De||B(G)},onClick:function(){De||W(ge)},style:re}),l.createElement("div",{className:"".concat(Me,"-content")},typeof R=="function"?R(oe,{index:G}):ke),l.isValidElement(C)||Pe,be&&l.createElement(ig,{className:"".concat(M,"-option-state"),customizeIcon:C,customizeIconProps:{value:ge,disabled:De,isSelected:Pe}},Pe?"✓":null))}))},yA=l.forwardRef(pA);const bA=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return K(K({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Xh(e,t){return M3(e).join("").toUpperCase().includes(t)}const CA=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,g){return o?Xh(g[o],d):g[a]?Xh(g[i!=="children"?i:"label"],d):Xh(g[s],d)},m=u?function(v){return Ey(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var g=f(n,m(v));if(g)c.push(v);else{var b=v[a].filter(function(y){return f(n,m(y))});b.length&&c.push(K(K({},v),{},H({},a,b)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var Gw=0,SA=br();function xA(){var e;return SA?(e=Gw,Gw+=1):e="TEST_OR_SSR",e}function wA(e){var t=l.useState(),n=Z(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(xA()))},[]),e||r}var $A=["children","value"],EA=["children"];function OA(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Rt(r,$A);return K({key:n,value:a!==void 0?a:n,children:o},i)}function k3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return yr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,u=Rt(s,EA);return t||!a?OA(n):K(K({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:k3(c)})}).filter(function(n){return n})}var RA=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=k3(n));var c=new Map,u=new Map,d=function(v,g,b){b&&typeof b=="string"&&v.set(g[b],g)},f=function m(v){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<v.length;b+=1){var y=v[b];!y[r.options]||g?(c.set(y[r.value],y),d(u,y,r.label),d(u,y,o),d(u,y,a)):m(y[r.options],!0)}};return f(i),{options:i,valueOptions:c,labelOptions:u}},[t,n,r,o,a])};function Xw(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var IA=["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"],PA=["inputValue"];function MA(e){return!e||ft(e)!=="object"}var NA=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,g=e.onDeselect,b=e.dropdownMatchSelectWidth,y=b===void 0?!0:b,h=e.filterOption,p=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,x=e.options,$=e.optionRender,w=e.children,O=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,R=e.virtual,M=e.direction,T=e.listHeight,_=T===void 0?200:T,I=e.listItemHeight,N=I===void 0?20:I,P=e.labelRender,k=e.value,D=e.defaultValue,z=e.labelInValue,j=e.onChange,L=e.maxCount,F=Rt(e,IA),B=wA(n),V=Oy(r),W=!!(!x&&w),q=l.useMemo(function(){return h===void 0&&r==="combobox"?!1:h},[h,r]),J=l.useMemo(function(){return T3(s,W)},[JSON.stringify(s),W]),Y=Jt("",{value:u!==void 0?u:c,postState:function(de){return de||""}}),ne=Z(Y,2),fe=ne[0],oe=ne[1],G=RA(x,w,J,C,S),ue=G.valueOptions,le=G.labelOptions,ae=G.options,ee=l.useCallback(function(se){var de=M3(se);return de.map(function(he){var $e,ze,Be,He,je;if(MA(he))$e=he;else{var Ne;Be=he.key,ze=he.label,$e=(Ne=he.value)!==null&&Ne!==void 0?Ne:Be}var Fe=ue.get($e);if(Fe){var Ye;ze===void 0&&(ze=Fe==null?void 0:Fe[S||J.label]),Be===void 0&&(Be=(Ye=Fe==null?void 0:Fe.key)!==null&&Ye!==void 0?Ye:$e),He=Fe==null?void 0:Fe.disabled,je=Fe==null?void 0:Fe.title}return{label:ze,value:$e,key:Be,disabled:He,title:je}})},[J,S,ue]),ge=Jt(D,{value:k}),ye=Z(ge,2),Ie=ye[0],Ee=ye[1],A=l.useMemo(function(){var se,de=V&&Ie===null?[]:Ie,he=ee(de);return r==="combobox"&&xB((se=he[0])===null||se===void 0?void 0:se.value)?[]:he},[Ie,ee,r,V]),X=bA(A,ue),re=Z(X,2),me=re[0],pe=re[1],ve=l.useMemo(function(){if(!r&&me.length===1){var se=me[0];if(se.value===null&&(se.label===null||se.label===void 0))return[]}return me.map(function(de){var he;return K(K({},de),{},{label:(he=typeof P=="function"?P(de):de.label)!==null&&he!==void 0?he:de.value})})},[r,me,P]),Pe=l.useMemo(function(){return new Set(me.map(function(se){return se.value}))},[me]);l.useEffect(function(){if(r==="combobox"){var se,de=(se=me[0])===null||se===void 0?void 0:se.value;oe(SB(de)?String(de):"")}},[me]);var De=Xw(function(se,de){var he=de??se;return H(H({},J.value,se),J.label,he)}),Me=l.useMemo(function(){if(r!=="tags")return ae;var se=_e(ae),de=function($e){return ue.has($e)};return _e(me).sort(function(he,$e){return he.value<$e.value?-1:1}).forEach(function(he){var $e=he.value;de($e)||se.push(De($e,he.label))}),se},[De,ae,ue,me,r]),Le=CA(Me,J,fe,q,C),Oe=l.useMemo(function(){return r!=="tags"||!fe||Le.some(function(se){return se[C||"value"]===fe})||Le.some(function(se){return se[J.value]===fe})?Le:[De(fe)].concat(_e(Le))},[De,C,r,Le,fe,J]),be=function se(de){var he=_e(de).sort(function($e,ze){return p($e,ze,{searchValue:fe})});return he.map(function($e){return Array.isArray($e.options)?K(K({},$e),{},{options:$e.options.length>0?se($e.options):$e.options}):$e})},ke=l.useMemo(function(){return p?be(Oe):Oe},[Oe,p,fe]),Se=l.useMemo(function(){return UB(ke,{fieldNames:J,childrenAsData:W})},[ke,J,W]),Re=function(de){var he=ee(de);if(Ee(he),j&&(he.length!==me.length||he.some(function(Be,He){var je;return((je=me[He])===null||je===void 0?void 0:je.value)!==(Be==null?void 0:Be.value)}))){var $e=z?he:he.map(function(Be){return Be.value}),ze=he.map(function(Be){return Ey(pe(Be.value))});j(V?$e:$e[0],V?ze:ze[0])}},we=l.useState(null),xe=Z(we,2),Te=xe[0],Ae=xe[1],ct=l.useState(0),yt=Z(ct,2),Ve=yt[0],Xe=yt[1],nt=O!==void 0?O:r!=="combobox",Ue=l.useCallback(function(se,de){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=he.source,ze=$e===void 0?"keyboard":$e;Xe(de),i&&r==="combobox"&&se!==null&&ze==="keyboard"&&Ae(String(se))},[i,r]),Qe=function(de,he,$e){var ze=function(){var lt,Tt=pe(de);return[z?{label:Tt==null?void 0:Tt[J.label],value:de,key:(lt=Tt==null?void 0:Tt.key)!==null&<!==void 0?lt:de}:de,Ey(Tt)]};if(he&&v){var Be=ze(),He=Z(Be,2),je=He[0],Ne=He[1];v(je,Ne)}else if(!he&&g&&$e!=="clear"){var Fe=ze(),Ye=Z(Fe,2),ut=Ye[0],$t=Ye[1];g(ut,$t)}},wt=Xw(function(se,de){var he,$e=V?de.selected:!0;$e?he=V?[].concat(_e(me),[se]):[se]:he=me.filter(function(ze){return ze.value!==se}),Re(he),Qe(se,$e),r==="combobox"?Ae(""):(!Oy||m)&&(oe(""),Ae(""))}),It=function(de,he){Re(de);var $e=he.type,ze=he.values;($e==="remove"||$e==="clear")&&ze.forEach(function(Be){Qe(Be.value,!1,$e)})},Je=function(de,he){if(oe(de),Ae(null),he.source==="submit"){var $e=(de||"").trim();if($e){var ze=Array.from(new Set([].concat(_e(Pe),[$e])));Re(ze),Qe($e,!0),oe("")}return}he.source!=="blur"&&(r==="combobox"&&Re(de),d==null||d(de))},at=function(de){var he=de;r!=="tags"&&(he=de.map(function(ze){var Be=le.get(ze);return Be==null?void 0:Be.value}).filter(function(ze){return ze!==void 0}));var $e=Array.from(new Set([].concat(_e(Pe),_e(he))));Re($e),$e.forEach(function(ze){Qe(ze,!0)})},ie=l.useMemo(function(){var se=R!==!1&&y!==!1;return K(K({},G),{},{flattenOptions:Se,onActiveValue:Ue,defaultActiveFirstOption:nt,onSelect:wt,menuItemSelectedIcon:E,rawValues:Pe,fieldNames:J,virtual:se,direction:M,listHeight:_,listItemHeight:N,childrenAsData:W,maxCount:L,optionRender:$})},[L,G,Se,Ue,nt,wt,E,Pe,J,R,y,M,_,N,W,$]);return l.createElement(N1.Provider,{value:ie},l.createElement(QB,Ce({},F,{id:B,prefixCls:a,ref:t,omitDomProps:PA,mode:r,displayValues:ve,onDisplayValuesChange:It,direction:M,searchValue:fe,onSearch:Je,autoClearSearchValue:m,onSearchSplit:at,dropdownMatchSelectWidth:y,OptionList:yA,emptyOptions:!Se.length,activeValue:Te,activeDescendantId:"".concat(B,"_list_").concat(Ve)})))}),D1=NA;D1.Option=_1;D1.OptGroup=T1;function $i(e,t,n){return Q({[`${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 Il=(e,t)=>t||e,TA=()=>{const[,e]=Sr(),[t]=ho("Empty"),r=new Wt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},_A=()=>{const[,e]=Sr(),[t]=ho("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:c}=l.useMemo(()=>({borderColor:new Wt(n).onBackground(a).toHexString(),shadowColor:new Wt(r).onBackground(a).toHexString(),contentColor:new Wt(o).onBackground(a).toHexString()}),[n,r,o,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.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"}),l.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:c}))))},DA=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}}}}},kA=Ut("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return DA(o)});var jA=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 j3=l.createElement(TA,null),z3=l.createElement(_A,null),Eo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:c,style:u,classNames:d,styles:f}=e,m=jA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:g,className:b,style:y,classNames:h,styles:p,image:C}=fr("empty"),S=v("empty",o),[x,$,w]=kA(S),[O]=ho("Empty"),E=typeof i<"u"?i:O==null?void 0:O.description,R=typeof E=="string"?E:"empty",M=(t=a??C)!==null&&t!==void 0?t:j3;let T=null;return typeof M=="string"?T=l.createElement("img",{draggable:!1,alt:R,src:M}):T=M,x(l.createElement("div",Object.assign({className:Q($,w,S,b,{[`${S}-normal`]:M===z3,[`${S}-rtl`]:g==="rtl"},n,r,h.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},p.root),y),f==null?void 0:f.root),u)},m),l.createElement("div",{className:Q(`${S}-image`,h.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),p.image),f==null?void 0:f.image)},T),E&&l.createElement("div",{className:Q(`${S}-description`,h.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},p.description),f==null?void 0:f.description)},E),s&&l.createElement("div",{className:Q(`${S}-footer`,h.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},p.footer),f==null?void 0:f.footer)},s)))};Eo.PRESENTED_IMAGE_DEFAULT=j3;Eo.PRESENTED_IMAGE_SIMPLE=z3;const L3=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(xt),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Eo,{image:Eo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Eo,{image:Eo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Eo,null)}},Pl=(e,t,n)=>{var r,o;const{variant:a,[e]:i}=l.useContext(xt),s=l.useContext(a3),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??c)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=WD.includes(u);return[u,d]},zA=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 LA(e,t){return e||zA(t)}const Yw=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"}},FA=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`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Zt(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,[`
|
|
217
|
-
${o}${s}bottomLeft,
|
|
218
|
-
${a}${s}bottomLeft
|
|
219
|
-
`]:{animationName:Uv},[`
|
|
220
|
-
${o}${s}topLeft,
|
|
221
|
-
${a}${s}topLeft,
|
|
222
|
-
${o}${s}topRight,
|
|
223
|
-
${a}${s}topRight
|
|
224
|
-
`]:{animationName:Gv},[`${i}${s}bottomLeft`]:{animationName:qv},[`
|
|
225
|
-
${i}${s}topLeft,
|
|
226
|
-
${i}${s}topRight
|
|
227
|
-
`]:{animationName:Xv},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Yw(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"},ea),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Yw(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ya(e,"slide-up"),ya(e,"slide-down"),As(e,"move-up"),As(e,"move-down")]},F3=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:U(t),itemLineHeight:U(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},BA=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},B3=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,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:"calc(100% - 4px)",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:s,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({},Qs()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},AA=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=BA(e),s=t?`${n}-${t}`:"",c=F3(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},B3(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${U(r)} 0`,lineHeight:U(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:U(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:U(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
228
|
-
${n}-prefix + ${n}-selection-wrap
|
|
229
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${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:U(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.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Yh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
230
|
-
&${n}-show-arrow ${n}-selector,
|
|
231
|
-
&${n}-allow-clear ${n}-selector
|
|
232
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[AA(e,t),o]}const HA=e=>{const{componentCls:t}=e,n=Bt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Bt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Yh(e),Yh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Yh(r,"lg")]};function Qh(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({},Zt(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:U(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
233
|
-
${n}-selection-item,
|
|
234
|
-
${n}-selection-placeholder
|
|
235
|
-
`]:{display:"block",padding:0,lineHeight:U(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"'}}),[`
|
|
236
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
237
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
238
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
239
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${U(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:U(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 ${U(r)}`,"&:after":{display:"none"}}}}}}}function VA(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Qh(e),Qh(Bt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${U(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
240
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
241
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
242
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Qh(Bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const WA=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:g,colorFillSecondary:b,colorBgContainerDisabled:y,colorTextDisabled:h,colorPrimaryHover:p,colorPrimary:C,controlOutline:S}=e,x=s*2,$=r*2,w=Math.min(o-x,o-$),O=Math.min(a-x,a-$),E=Math.min(i-x,i-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:O,multipleItemHeightLG:E,multipleSelectorBgDisabled:y,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:s}},A3=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${U(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 ${U(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Qw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},A3(e,t))}),KA=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},A3(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Qw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Qw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),H3=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${U(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}}}},Jw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},H3(e,t))}),UA=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},H3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Jw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Jw(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:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),qA=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${U(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),V3=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${U(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Zw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},V3(e,t))}),GA=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},V3(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Zw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Zw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XA=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},KA(e)),UA(e)),qA(e)),GA(e))}),YA=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"}}}},QA=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},JA=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},YA(e)),QA(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ea),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ea),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Qs()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},ZA=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},JA(e),VA(e),HA(e),FA(e),{[`${t}-rtl`]:{direction:"rtl"}},oc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},e9=Ut("Select",(e,{rootPrefixCls:t})=>{const n=Bt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ZA(n),XA(n)]},WA,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var t9={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"},n9=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:t9}))},W3=l.forwardRef(n9),r9={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"},o9=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:r9}))},sg=l.forwardRef(o9),a9={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"},i9=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:a9}))},cg=l.forwardRef(i9);function K3({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??l.createElement(ec,null),v=h=>e===null&&!i&&!d?null:l.createElement(l.Fragment,null,c!==!1&&h,i&&u);let g=null;if(e!==void 0)g=v(e);else if(o)g=v(l.createElement($l,{spin:!0}));else{const h=`${s}-suffix`;g=({open:p,showSearch:C})=>v(p&&C?l.createElement(cg,{className:h}):l.createElement(sg,{className:h}))}let b=null;n!==void 0?b=n:a?b=l.createElement(W3,null):b=null;let y=null;return r!==void 0?y=r:y=l.createElement(tc,null),{clearIcon:m,suffixIcon:g,itemIcon:b,removeIcon:y}}function l9(e){return ce.useMemo(()=>{if(e)return(...t)=>ce.createElement(Ca,{space:!0},e.apply(void 0,t))},[e])}function s9(e,t){return t!==void 0?t:e!==null}var c9=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 U3="SECRET_COMBOBOX_MODE_DO_NOT_USE",u9=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:v,listHeight:g=256,placement:b,listItemHeight:y,size:h,disabled:p,notFoundContent:C,status:S,builtinPlacements:x,dropdownMatchSelectWidth:$,popupMatchSelectWidth:w,direction:O,style:E,allowClear:R,variant:M,dropdownStyle:T,transitionName:_,tagRender:I,maxCount:N,prefix:P,dropdownRender:k,popupRender:D,onDropdownVisibleChange:z,onOpenChange:j,styles:L,classNames:F}=e,B=c9(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:V,getPrefixCls:W,renderEmpty:q,direction:J,virtual:Y,popupMatchSelectWidth:ne,popupOverflow:fe}=l.useContext(xt),{showSearch:oe,style:G,styles:ue,className:le,classNames:ae}=fr("select"),[,ee]=Sr(),ge=y??(ee==null?void 0:ee.controlHeight),ye=W("select",s),Ie=W(),Ee=O??J,{compactSize:A,compactItemClassnames:X}=wa(ye,Ee),[re,me]=Pl("select",M,c),pe=Bn(ye),[ve,Pe,De]=e9(ye,pe),Me=l.useMemo(()=>{const{mode:$e}=e;if($e!=="combobox")return $e===U3?"combobox":$e},[e.mode]),Le=Me==="multiple"||Me==="tags",Oe=s9(e.suffixIcon,e.showArrow),be=(n=w??$)!==null&&n!==void 0?n:ne,ke=((r=L==null?void 0:L.popup)===null||r===void 0?void 0:r.root)||((o=ue.popup)===null||o===void 0?void 0:o.root)||T,Se=l9(D||k),Re=j||z,{status:we,hasFeedback:xe,isFormItemInput:Te,feedbackIcon:Ae}=l.useContext(or),ct=Il(we,S);let yt;C!==void 0?yt=C:Me==="combobox"?yt=null:yt=(q==null?void 0:q("Select"))||l.createElement(L3,{componentName:"Select"});const{suffixIcon:Ve,itemIcon:Xe,removeIcon:nt,clearIcon:Ue}=K3(Object.assign(Object.assign({},B),{multiple:Le,hasFeedback:xe,feedbackIcon:Ae,showSuffixIcon:Oe,prefixCls:ye,componentName:"Select"})),Qe=R===!0?{clearIcon:Ue}:R,wt=on(B,["suffixIcon","itemIcon"]),It=Q(((a=F==null?void 0:F.popup)===null||a===void 0?void 0:a.root)||((i=ae==null?void 0:ae.popup)===null||i===void 0?void 0:i.root)||m||v,{[`${ye}-dropdown-${Ee}`]:Ee==="rtl"},d,ae.root,F==null?void 0:F.root,De,pe,Pe),Je=ir($e=>{var ze;return(ze=h??A)!==null&&ze!==void 0?ze:$e}),at=l.useContext(Nr),ie=p??at,se=Q({[`${ye}-lg`]:Je==="large",[`${ye}-sm`]:Je==="small",[`${ye}-rtl`]:Ee==="rtl",[`${ye}-${re}`]:me,[`${ye}-in-form-item`]:Te},$i(ye,ct,xe),X,le,u,ae.root,F==null?void 0:F.root,d,De,pe,Pe),de=l.useMemo(()=>b!==void 0?b:Ee==="rtl"?"bottomRight":"bottomLeft",[b,Ee]),[he]=El("SelectLike",ke==null?void 0:ke.zIndex);return ve(l.createElement(D1,Object.assign({ref:t,virtual:Y,showSearch:oe},wt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ue.root),L==null?void 0:L.root),G),E),dropdownMatchSelectWidth:be,transitionName:wi(Ie,"slide-up",_),builtinPlacements:LA(x,fe),listHeight:g,listItemHeight:ge,mode:Me,prefixCls:ye,placement:de,direction:Ee,prefix:P,suffixIcon:Ve,menuItemSelectedIcon:Xe,removeIcon:nt,allowClear:Qe,notFoundContent:yt,className:se,getPopupContainer:f||V,dropdownClassName:It,disabled:ie,dropdownStyle:Object.assign(Object.assign({},ke),{zIndex:he}),maxCount:Le?N:void 0,tagRender:Le?I:void 0,dropdownRender:Se,onDropdownVisibleChange:Re})))},Ml=l.forwardRef(u9),d9=og(Ml,"dropdownAlign");Ml.SECRET_COMBOBOX_MODE_DO_NOT_USE=U3;Ml.Option=_1;Ml.OptGroup=T1;Ml._InternalPanelDoNotUseOrYouWillBeFired=d9;const q3=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},G3=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Hs=["xxl","xl","lg","md","sm","xs"],f9=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),m9=e=>{const t=e,n=[].concat(Hs).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},X3=(e,t)=>{if(t){for(const n of Hs)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},v9=()=>{const[,e]=Sr(),t=f9(m9(e));return ce.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:u}))},c=window.matchMedia(i);q3(c,s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];G3(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function ug(e=!0,t={}){const n=l.useRef(t),[,r]=RI(),o=v9();return Dt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}const Vs=e=>e?typeof e=="function"?e():e:null;function k1(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return l.createElement("div",{className:Q("".concat(n,"-content"),i),style:s},l.createElement("div",{className:Q("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Kl={shiftX:64,adjustY:1},Ul={adjustX:1,shiftY:!0},bo=[0,0],g9={left:{points:["cr","cl"],overflow:Ul,offset:[-4,0],targetOffset:bo},right:{points:["cl","cr"],overflow:Ul,offset:[4,0],targetOffset:bo},top:{points:["bc","tc"],overflow:Kl,offset:[0,-4],targetOffset:bo},bottom:{points:["tc","bc"],overflow:Kl,offset:[0,4],targetOffset:bo},topLeft:{points:["bl","tl"],overflow:Kl,offset:[0,-4],targetOffset:bo},leftTop:{points:["tr","tl"],overflow:Ul,offset:[-4,0],targetOffset:bo},topRight:{points:["br","tr"],overflow:Kl,offset:[0,-4],targetOffset:bo},rightTop:{points:["tl","tr"],overflow:Ul,offset:[4,0],targetOffset:bo},bottomRight:{points:["tr","br"],overflow:Kl,offset:[0,4],targetOffset:bo},rightBottom:{points:["bl","br"],overflow:Ul,offset:[4,0],targetOffset:bo},bottomLeft:{points:["tl","bl"],overflow:Kl,offset:[0,4],targetOffset:bo},leftBottom:{points:["br","bl"],overflow:Ul,offset:[-4,0],targetOffset:bo}},h9=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],p9=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,g=t.onVisibleChange,b=t.afterVisibleChange,y=t.transitionName,h=t.animation,p=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,$=x===void 0?{}:x,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,E=t.defaultVisible,R=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,_=t.id,I=t.showArrow,N=I===void 0?!0:I,P=t.classNames,k=t.styles,D=Rt(t,h9),z=pd(_),j=l.useRef(null);l.useImperativeHandle(n,function(){return j.current});var L=K({},D);"visible"in t&&(L.popupVisible=t.visible);var F=function(){return l.createElement(k1,{key:"content",prefixCls:m,id:z,bodyClassName:P==null?void 0:P.body,overlayInnerStyle:K(K({},M),k==null?void 0:k.body)},T)},B=function(){var W=l.Children.only(v),q=(W==null?void 0:W.props)||{},J=K(K({},q),{},{"aria-describedby":T?z:null});return l.cloneElement(v,J)};return l.createElement(Sd,Ce({popupClassName:Q(r,P==null?void 0:P.root),prefixCls:m,popup:F,action:a,builtinPlacements:g9,popupPlacement:S,ref:j,popupAlign:$,getPopupContainer:R,onPopupVisibleChange:g,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:h,popupMotion:p,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:u,popupStyle:K(K({},d),k==null?void 0:k.root),mouseEnterDelay:s,arrow:N},L),B())};const y9=l.forwardRef(p9);function dg(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,g=c,b=2*o-a,y=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),p=r*(Math.sqrt(2)-1),C=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${g} A ${r} ${r} 0 0 0 ${b} ${y} Z')`;return{arrowShadowWidth:h,arrowPath:S,arrowPolygon:C}}const Y3=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${U(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Q3=8;function fg(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Q3:r}}function df(e,t){return e?t:{}}function j1(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Y3(e,t,o)),{"&:before":{background:t}})]},df(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${U(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),df(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${U(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),df(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),df(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function b9(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const e2={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},C9={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},S9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function J3(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={},u=fg({contentRadius:a,limitVerticalRadius:!0});return Object.keys(e2).forEach(d=>{const f=r&&C9[d]||e2[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,S9.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-s;break}m.overflow=b9(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const x9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:v}=e,g=t(i).add(v).add(m).equal(),b=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${U(e.calc(d).div(2).equal())} ${U(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,Q3)}},[`${n}-content`]:{position:"relative"}}),tI(e,(y,{darkColor:h})=>({[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:h},[`${n}-arrow`]:{"--antd-arrow-background-color":h}}}))),{"&-rtl":{direction:"rtl"}})},j1(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},w9=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},fg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),dg(Bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Z3=(e,t=!0)=>Ut("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=Bt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[x9(s),gd(r,"zoom-big-fast")]},w9,{resetStyle:!1,injectStyle:t})(e),$9=Si.map(e=>`${e}-inverse`),E9=["success","processing","error","default","warning"];function eP(e,t=!0){return t?[].concat(_e($9),_e(Si)).includes(e):Si.includes(e)}function O9(e){return E9.includes(e)}function tP(e,t){const n=eP(t),r=Q({[`${e}-${t}`]:t&&n}),o={},a={},i=$z(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const R9=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(xt),c=s("tooltip",t),[u,d,f]=Z3(c),m=tP(c,a),v=m.arrowStyle,g=Object.assign(Object.assign({},i),m.overlayStyle),b=Q(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(l.createElement("div",{className:b,style:v},l.createElement("div",{className:`${c}-arrow`}),l.createElement(k1,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var I9=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 P9=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:v,arrow:g=!0,title:b,overlay:y,builtinPlacements:h,arrowPointAtCenter:p=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:$="top",mouseEnterDelay:w=.1,mouseLeaveDelay:O=.1,overlayStyle:E,rootClassName:R,overlayClassName:M,styles:T,classNames:_}=e,I=I9(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!g,[,P]=Sr(),{getPopupContainer:k,getPrefixCls:D,direction:z,className:j,style:L,classNames:F,styles:B}=fr("tooltip"),V=Ni(),W=l.useRef(null),q=()=>{var Oe;(Oe=W.current)===null||Oe===void 0||Oe.forceAlign()};l.useImperativeHandle(t,()=>{var Oe,be;return{forceAlign:q,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(Oe=W.current)===null||Oe===void 0?void 0:Oe.nativeElement,popupElement:(be=W.current)===null||be===void 0?void 0:be.popupElement}});const[J,Y]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ne=!b&&!y&&b!==0,fe=Oe=>{var be,ke;Y(ne?!1:Oe),ne||((be=e.onOpenChange)===null||be===void 0||be.call(e,Oe),(ke=e.onVisibleChange)===null||ke===void 0||ke.call(e,Oe))},oe=l.useMemo(()=>{var Oe,be;let ke=p;return typeof g=="object"&&(ke=(be=(Oe=g.pointAtCenter)!==null&&Oe!==void 0?Oe:g.arrowPointAtCenter)!==null&&be!==void 0?be:p),h||J3({arrowPointAtCenter:ke,autoAdjustOverflow:C,arrowWidth:N?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[p,g,h,P]),G=l.useMemo(()=>b===0?b:y||b||"",[y,b]),ue=l.createElement(Ca,{space:!0},typeof G=="function"?G():G),le=D("tooltip",o),ae=D(),ee=e["data-popover-inject"];let ge=J;!("open"in e)&&!("visible"in e)&&ne&&(ge=!1);const ye=l.isValidElement(u)&&!xI(u)?u:l.createElement("span",null,u),Ie=ye.props,Ee=!Ie.className||typeof Ie.className=="string"?Q(Ie.className,a||`${le}-open`):Ie.className,[A,X,re]=Z3(le,!ee),me=tP(le,s),pe=me.arrowStyle,ve=Q(M,{[`${le}-rtl`]:z==="rtl"},me.className,R,X,re,j,F.root,_==null?void 0:_.root),Pe=Q(F.body,_==null?void 0:_.body),[De,Me]=El("Tooltip",I.zIndex),Le=l.createElement(y9,Object.assign({},I,{zIndex:De,showArrow:N,placement:$,mouseEnterDelay:w,mouseLeaveDelay:O,prefixCls:le,classNames:{root:ve,body:Pe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),B.root),L),E),T==null?void 0:T.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),c),T==null?void 0:T.body),me.overlayStyle)},getTooltipContainer:x||i||k,ref:W,builtinPlacements:oe,overlay:ue,visible:ge,onVisibleChange:fe,afterVisibleChange:d??f,arrowContent:l.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:wi(ae,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!m}),ge?Br(ye,{className:Ee}):ye);return A(l.createElement(Av.Provider,{value:Me},Le))}),hr=P9;hr._InternalPanelDoNotUseOrYouWillBeFired=R9;const M9=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:g,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:v,padding:b},[`${t}-inner-content`]:{color:n,padding:g}})},j1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},N9=e=>{const{componentCls:t}=e;return{[t]:Si.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},T9=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,v=m/2,g=m/2-t,b=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},dg(e)),fg({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${v}px ${b}px ${g}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${b}px`:0})},nP=Ut("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Bt(e,{popoverBg:t,popoverColor:n});return[M9(r),N9(r),gd(r,"zoom-big")]},T9,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var _9=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 rP=({title:e,content:t,prefixCls:n})=>!e&&!t?null:l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${n}-title`},e),t&&l.createElement("div",{className:`${n}-inner-content`},t)),D9=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e,u=Vs(i),d=Vs(s),f=Q(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return l.createElement("div",{className:f,style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(k1,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(rP,{prefixCls:n,title:u,content:d})))},oP=e=>{const{prefixCls:t,className:n}=e,r=_9(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(xt),a=o("popover",t),[i,s,c]=nP(a);return i(l.createElement(D9,Object.assign({},r,{prefixCls:a,hashId:s,className:Q(n,c)})))};var k9=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 j9=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:g={},styles:b,classNames:y}=e,h=k9(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:p,className:C,style:S,classNames:x,styles:$}=fr("popover"),w=p("popover",o),[O,E,R]=nP(w),M=p(),T=Q(s,E,R,C,x.root,y==null?void 0:y.root),_=Q(x.body,y==null?void 0:y.body),[I,N]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(L,F)=>{N(L,!0),v==null||v(L,F)},k=L=>{L.keyCode===ot.ESC&&P(!1,L)},D=L=>{P(L)},z=Vs(a),j=Vs(i);return O(l.createElement(hr,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},h,{prefixCls:w,classNames:{root:T,body:_},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),g),b==null?void 0:b.root),body:Object.assign(Object.assign({},$.body),b==null?void 0:b.body)},ref:t,open:I,onOpenChange:D,overlay:z||j?l.createElement(rP,{prefixCls:w,title:z,content:j}):null,transitionName:wi(M,"zoom-big",h.transitionName),"data-popover-inject":!0}),Br(d,{onKeyDown:L=>{var F,B;l.isValidElement(d)&&((B=d==null?void 0:(F=d.props).onKeyDown)===null||B===void 0||B.call(F,L)),k(L)}})))}),aP=j9;aP._InternalPanelDoNotUseOrYouWillBeFired=oP;var z9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},L9=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:z9}))},F9=l.forwardRef(L9),B9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},A9=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:B9}))},Yu=l.forwardRef(A9),H9=ot.ESC,V9=ot.TAB;function W9(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case H9:s();break;case V9:{var m=!1;i.current||(m=c()),m?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&jt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var K9=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=ar(t,Mi(a));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:"".concat(o,"-arrow")}),ce.cloneElement(a,{ref:Jo(a)?i:void 0}))}),ql={adjustX:1,adjustY:1},Gl=[0,0],U9={topLeft:{points:["bl","tl"],overflow:ql,offset:[0,-4],targetOffset:Gl},top:{points:["bc","tc"],overflow:ql,offset:[0,-4],targetOffset:Gl},topRight:{points:["br","tr"],overflow:ql,offset:[0,-4],targetOffset:Gl},bottomLeft:{points:["tl","bl"],overflow:ql,offset:[0,4],targetOffset:Gl},bottom:{points:["tc","bc"],overflow:ql,offset:[0,4],targetOffset:Gl},bottomRight:{points:["tr","br"],overflow:ql,offset:[0,4],targetOffset:Gl}},q9=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function G9(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?U9:m,g=e.getPopupContainer,b=e.showAction,y=e.hideAction,h=e.overlayClassName,p=e.overlayStyle,C=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,$=e.autoFocus,w=e.overlay,O=e.children,E=e.onVisibleChange,R=Rt(e,q9),M=ce.useState(),T=Z(M,2),_=T[0],I=T[1],N="visible"in e?C:_,P=ce.useRef(null),k=ce.useRef(null),D=ce.useRef(null);ce.useImperativeHandle(t,function(){return P.current});var z=function(Y){I(Y),E==null||E(Y)};W9({visible:N,triggerRef:D,onVisibleChange:z,autoFocus:$,overlayRef:k});var j=function(Y){var ne=e.onOverlayClick;I(!1),ne&&ne(Y)},L=function(){return ce.createElement(K9,{ref:k,overlay:w,prefixCls:i,arrow:o})},F=function(){return typeof w=="function"?L:L()},B=function(){var Y=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!ne},V=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(i,"-open")},W=ce.cloneElement(O,{className:Q((n=O.props)===null||n===void 0?void 0:n.className,N&&V()),ref:Jo(O)?ar(D,Mi(O)):void 0}),q=y;return!q&&x.indexOf("contextMenu")!==-1&&(q=["click"]),ce.createElement(Sd,Ce({builtinPlacements:v},R,{prefixCls:i,ref:P,popupClassName:Q(h,H({},"".concat(i,"-show-arrow"),o)),popupStyle:p,action:x,showAction:b,hideAction:q,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:N,stretch:B()?"minWidth":"",popup:F(),onPopupVisibleChange:z,onPopupClick:j,getPopupContainer:g}),W)}const iP=ce.forwardRef(G9),X9=e=>typeof e!="object"&&typeof e!="function"||e===null;var lP=l.createContext(null);function sP(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function cP(e){var t=l.useContext(lP);return sP(t,e)}var Y9=["children","locked"],ra=l.createContext(null);function Q9(e,t){var n=K({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Qu(e){var t=e.children,n=e.locked,r=Rt(e,Y9),o=l.useContext(ra),a=wl(function(){return Q9(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!pa(i[1],s[1],!0))});return l.createElement(ra.Provider,{value:a},t)}var J9=[],uP=l.createContext(null);function mg(){return l.useContext(uP)}var dP=l.createContext(J9);function lc(e){var t=l.useContext(dP);return l.useMemo(function(){return e!==void 0?[].concat(_e(t),[e]):t},[t,e])}var fP=l.createContext(null),z1=l.createContext({});function t2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rc(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 Z9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_e(e.querySelectorAll("*")).filter(function(r){return t2(r,t)});return t2(e,t)&&n.unshift(e),n}var Iy=ot.LEFT,Py=ot.RIGHT,My=ot.UP,Jf=ot.DOWN,Zf=ot.ENTER,mP=ot.ESC,Nc=ot.HOME,Tc=ot.END,n2=[My,Jf,Iy,Py];function eH(e,t,n,r){var o,a="prev",i="next",s="children",c="parent";if(e==="inline"&&r===Zf)return{inlineTrigger:!0};var u=H(H({},My,a),Jf,i),d=H(H(H(H({},Iy,n?i:a),Py,n?a:i),Jf,s),Zf,s),f=H(H(H(H(H(H({},My,a),Jf,i),Zf,s),mP,c),Iy,n?s:c),Py,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function tH(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function nH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function L1(e,t){var n=Z9(e,!0);return n.filter(function(r){return t.has(r)})}function r2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=L1(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Ny=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(sP(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function rH(e,t,n,r,o,a,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var m=function(){jt.cancel(d.current)};return l.useEffect(function(){return function(){m()}},[]),function(v){var g=v.which;if([].concat(n2,[Zf,mP,Nc,Tc]).includes(g)){var b=a(),y=Ny(b,r),h=y,p=h.elements,C=h.key2element,S=h.element2key,x=C.get(t),$=nH(x,p),w=S.get($),O=eH(e,i(w,!0).length===1,n,g);if(!O&&g!==Nc&&g!==Tc)return;(n2.includes(g)||[Nc,Tc].includes(g))&&v.preventDefault();var E=function(k){if(k){var D=k,z=k.querySelector("a");z!=null&&z.getAttribute("href")&&(D=z);var j=S.get(k);s(j),m(),d.current=jt(function(){f.current===j&&D.focus()})}};if([Nc,Tc].includes(g)||O.sibling||!$){var R;!$||e==="inline"?R=o.current:R=tH($);var M,T=L1(R,p);g===Nc?M=T[0]:g===Tc?M=T[T.length-1]:M=r2(R,p,$,O.offset),E(M)}else if(O.inlineTrigger)c(w);else if(O.offset>0)c(w,!0),m(),d.current=jt(function(){y=Ny(b,r);var P=$.getAttribute("aria-controls"),k=document.getElementById(P),D=r2(k,y.elements);E(D)},5);else if(O.offset<0){var _=i(w,!0),I=_[_.length-2],N=C.get(I);c(I,!1),E(N)}}u==null||u(v)}}function oH(e){Promise.resolve().then(e)}var F1="__RC_UTIL_PATH_SPLIT__",o2=function(t){return t.join(F1)},aH=function(t){return t.split(F1)},Ty="rc-menu-more";function iH(){var e=l.useState({}),t=Z(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=Z(a,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},m=l.useCallback(function(C,S){var x=o2(S);o.current.set(x,C),r.current.set(C,x),u.current+=1;var $=u.current;oH(function(){$===u.current&&f()})},[]),v=l.useCallback(function(C,S){var x=o2(S);o.current.delete(x),r.current.delete(C)},[]),g=l.useCallback(function(C){c(C)},[]),b=l.useCallback(function(C,S){var x=r.current.get(C)||"",$=aH(x);return S&&s.includes($[0])&&$.unshift(Ty),$},[s]),y=l.useCallback(function(C,S){return C.filter(function(x){return x!==void 0}).some(function(x){var $=b(x,!0);return $.includes(S)})},[b]),h=function(){var S=_e(r.current.keys());return s.length&&S.push(Ty),S},p=l.useCallback(function(C){var S="".concat(r.current.get(C)).concat(F1),x=new Set;return _e(o.current.keys()).forEach(function($){$.startsWith(S)&&x.add(o.current.get($))}),x},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:b,getKeys:h,getSubPathKeys:p}}function Xc(e){var t=l.useRef(e);t.current=e;var n=l.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 lH=Math.random().toFixed(5).toString().slice(2),a2=0;function sH(e){var t=Jt(e,{value:e}),n=Z(t,2),r=n[0],o=n[1];return l.useEffect(function(){a2+=1;var a="".concat(lH,"-").concat(a2);o("rc-menu-uuid-".concat(a))},[]),r}function vP(e,t,n,r){var o=l.useContext(ra),a=o.activeKey,i=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function gP(e){var t=l.useContext(ra),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 hP(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=l.createElement(t,K({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var cH=["item"];function Wm(e){var t=e.item,n=Rt(e,cH);return Object.defineProperty(n,"item",{get:function(){return pn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var uH=["title","attribute","elementRef"],dH=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fH=["active"],mH=function(e){Sa(n,e);var t=xa(n);function n(){return En(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,c=Rt(o,uH),u=on(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Xo.Item,Ce({},i,{title:typeof a=="string"?a:void 0},u,{ref:s}))}}]),n}(l.Component),vH=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,i=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,v=e.onFocus,g=Rt(e,dH),b=cP(o),y=l.useContext(ra),h=y.prefixCls,p=y.onItemClick,C=y.disabled,S=y.overflowDisabled,x=y.itemIcon,$=y.selectedKeys,w=y.onActive,O=l.useContext(z1),E=O._internalRenderMenuItem,R="".concat(h,"-item"),M=l.useRef(),T=l.useRef(),_=C||a,I=Ha(t,T),N=lc(o),P=function(ne){return{key:o,keyPath:_e(N).reverse(),item:M.current,domEvent:ne}},k=i||x,D=vP(o,_,u,d),z=D.active,j=Rt(D,fH),L=$.includes(o),F=gP(N.length),B=function(ne){if(!_){var fe=P(ne);f==null||f(Wm(fe)),p(fe)}},V=function(ne){if(m==null||m(ne),ne.which===ot.ENTER){var fe=P(ne);f==null||f(Wm(fe)),p(fe)}},W=function(ne){w(o),v==null||v(ne)},q={};e.role==="option"&&(q["aria-selected"]=L);var J=l.createElement(mH,Ce({ref:M,elementRef:I,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&b?null:b},on(g,["extra"]),j,q,{component:"li","aria-disabled":a,style:K(K({},F),n),className:Q(R,H(H(H({},"".concat(R,"-active"),z),"".concat(R,"-selected"),L),"".concat(R,"-disabled"),_),r),onClick:B,onKeyDown:V,onFocus:W}),s,l.createElement(hP,{props:K(K({},e),{},{isSelected:L}),icon:k}));return E&&(J=E(J,e,{selected:L})),J});function gH(e,t){var n=e.eventKey,r=mg(),o=lc(n);return l.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:l.createElement(vH,Ce({},e,{ref:t}))}const xd=l.forwardRef(gH);var hH=["className","children"],pH=function(t,n){var r=t.className,o=t.children,a=Rt(t,hH),i=l.useContext(ra),s=i.prefixCls,c=i.mode,u=i.rtl;return l.createElement("ul",Ce({className:Q(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},B1=l.forwardRef(pH);B1.displayName="SubMenuList";function A1(e,t){return yr(e).map(function(n,r){if(l.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,c=s==null;c&&(s="tmp_key-".concat([].concat(_e(t),[r]).join("-")));var u={key:s,eventKey:s};return l.cloneElement(n,u)}return n})}var Or={adjustX:1,adjustY:1},yH={topLeft:{points:["bl","tl"],overflow:Or},topRight:{points:["br","tr"],overflow:Or},bottomLeft:{points:["tl","bl"],overflow:Or},bottomRight:{points:["tr","br"],overflow:Or},leftTop:{points:["tr","tl"],overflow:Or},leftBottom:{points:["br","bl"],overflow:Or},rightTop:{points:["tl","tr"],overflow:Or},rightBottom:{points:["bl","br"],overflow:Or}},bH={topLeft:{points:["bl","tl"],overflow:Or},topRight:{points:["br","tr"],overflow:Or},bottomLeft:{points:["tl","bl"],overflow:Or},bottomRight:{points:["tr","br"],overflow:Or},rightTop:{points:["tr","tl"],overflow:Or},rightBottom:{points:["br","bl"],overflow:Or},leftTop:{points:["tl","tr"],overflow:Or},leftBottom:{points:["bl","br"],overflow:Or}};function pP(e,t,n){if(t)return t;if(n)return n[e]||n.other}var CH={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function SH(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=l.useContext(ra),m=f.getPopupContainer,v=f.rtl,g=f.subMenuOpenDelay,b=f.subMenuCloseDelay,y=f.builtinPlacements,h=f.triggerSubMenuAction,p=f.forceSubMenuRender,C=f.rootClassName,S=f.motion,x=f.defaultMotions,$=l.useState(!1),w=Z($,2),O=w[0],E=w[1],R=K(v?K({},bH):K({},yH),y),M=CH[u],T=pP(u,S,x),_=l.useRef(T);u!=="inline"&&(_.current=T);var I=K(K({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=l.useRef();return l.useEffect(function(){return N.current=jt(function(){E(n)}),function(){jt.cancel(N.current)}},[n]),l.createElement(Sd,{prefixCls:t,popupClassName:Q("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),v),i,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:R,popupPlacement:M,popupVisible:O,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[h],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:p,popupMotion:I,fresh:!0},r)}function xH(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=l.useContext(ra),s=i.prefixCls,c=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,m=l.useRef(!1);m.current=f===a;var v=l.useState(!m.current),g=Z(v,2),b=g[0],y=g[1],h=m.current?n:!1;l.useEffect(function(){m.current&&y(!1)},[f]);var p=K({},pP(a,u,d));r.length>1&&(p.motionAppear=!1);var C=p.onVisibleChanged;return p.onVisibleChanged=function(S){return!m.current&&!S&&y(!0),C==null?void 0:C(S)},b?null:l.createElement(Qu,{mode:a,locked:!m.current},l.createElement(To,Ce({visible:h},p,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var x=S.className,$=S.style;return l.createElement(B1,{id:t,className:x,style:$},o)}))}var wH=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$H=["active"],EH=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,v=e.popupStyle,g=e.onClick,b=e.onMouseEnter,y=e.onMouseLeave,h=e.onTitleClick,p=e.onTitleMouseEnter,C=e.onTitleMouseLeave,S=Rt(e,wH),x=cP(a),$=l.useContext(ra),w=$.prefixCls,O=$.mode,E=$.openKeys,R=$.disabled,M=$.overflowDisabled,T=$.activeKey,_=$.selectedKeys,I=$.itemIcon,N=$.expandIcon,P=$.onItemClick,k=$.onOpenChange,D=$.onActive,z=l.useContext(z1),j=z._internalRenderSubMenuItem,L=l.useContext(fP),F=L.isSubPathKey,B=lc(),V="".concat(w,"-submenu"),W=R||i,q=l.useRef(),J=l.useRef(),Y=u??I,ne=d??N,fe=E.includes(a),oe=!M&&fe,G=F(_,a),ue=vP(a,W,p,C),le=ue.active,ae=Rt(ue,$H),ee=l.useState(!1),ge=Z(ee,2),ye=ge[0],Ie=ge[1],Ee=function(we){W||Ie(we)},A=function(we){Ee(!0),b==null||b({key:a,domEvent:we})},X=function(we){Ee(!1),y==null||y({key:a,domEvent:we})},re=l.useMemo(function(){return le||(O!=="inline"?ye||F([T],a):!1)},[O,le,T,ye,a,F]),me=gP(B.length),pe=function(we){W||(h==null||h({key:a,domEvent:we}),O==="inline"&&k(a,!fe))},ve=Xc(function(Re){g==null||g(Wm(Re)),P(Re)}),Pe=function(we){O!=="inline"&&k(a,we)},De=function(){D(a)},Me=x&&"".concat(x,"-popup"),Le=l.useMemo(function(){return l.createElement(hP,{icon:O!=="horizontal"?ne:void 0,props:K(K({},e),{},{isOpen:oe,isSubMenu:!0})},l.createElement("i",{className:"".concat(V,"-arrow")}))},[O,ne,e,oe,V]),Oe=l.createElement("div",Ce({role:"menuitem",style:me,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:q,title:typeof o=="string"?o:null,"data-menu-id":M&&x?null:x,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":Me,"aria-disabled":W,onClick:pe,onFocus:De},ae),o,Le),be=l.useRef(O);if(O!=="inline"&&B.length>1?be.current="vertical":be.current=O,!M){var ke=be.current;Oe=l.createElement(SH,{mode:ke,prefixCls:V,visible:!s&&oe&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:v,popup:l.createElement(Qu,{mode:ke==="horizontal"?"vertical":ke},l.createElement(B1,{id:Me,ref:J},c)),disabled:W,onVisibleChange:Pe},Oe)}var Se=l.createElement(Xo.Item,Ce({ref:t,role:"none"},S,{component:"li",style:n,className:Q(V,"".concat(V,"-").concat(O),r,H(H(H(H({},"".concat(V,"-open"),oe),"".concat(V,"-active"),re),"".concat(V,"-selected"),G),"".concat(V,"-disabled"),W)),onMouseEnter:A,onMouseLeave:X}),Oe,!M&&l.createElement(xH,{id:Me,open:oe,keyPath:B},c));return j&&(Se=j(Se,e,{selected:G,active:re,open:oe,disabled:W})),l.createElement(Qu,{onItemClick:ve,mode:O==="horizontal"?"vertical":O,itemIcon:Y,expandIcon:ne},Se)}),vg=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=lc(n),a=A1(r,o),i=mg();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(EH,Ce({ref:t},e),a),l.createElement(dP.Provider,{value:o},s)});function H1(e){var t=e.className,n=e.style,r=l.useContext(ra),o=r.prefixCls,a=mg();return a?null:l.createElement("li",{role:"separator",className:Q("".concat(o,"-item-divider"),t),style:n})}var OH=["className","title","eventKey","children"],RH=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=Rt(e,OH),i=l.useContext(ra),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",Ce({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Q(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),V1=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=lc(n),a=A1(r,o),i=mg();return i?a:l.createElement(RH,Ce({ref:t},on(e,["warnKey"])),a)}),IH=["label","children","key","type","extra"];function _y(e,t,n){var r=t.item,o=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(s,c){if(s&&ft(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,v=u.type,g=u.extra,b=Rt(u,IH),y=m??"tmp-".concat(c);return f||v==="group"?v==="group"?l.createElement(o,Ce({key:y},b,{title:d}),_y(f,t,n)):l.createElement(a,Ce({key:y},b,{title:d}),_y(f,t,n)):v==="divider"?l.createElement(i,Ce({key:y},b)):l.createElement(r,Ce({key:y},b,{extra:g}),d,(!!g||g===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null}).filter(function(s){return s})}function i2(e,t,n,r,o){var a=e,i=K({divider:H1,item:xd,group:V1,submenu:vg},r);return t&&(a=_y(t,i,o)),A1(a,n)}var PH=["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"],ki=[],MH=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,g=r.id,b=r.mode,y=b===void 0?"vertical":b,h=r.inlineCollapsed,p=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,x=S===void 0?.1:S,$=r.subMenuCloseDelay,w=$===void 0?.1:$,O=r.forceSubMenuRender,E=r.defaultOpenKeys,R=r.openKeys,M=r.activeKey,T=r.defaultActiveFirst,_=r.selectable,I=_===void 0?!0:_,N=r.multiple,P=N===void 0?!1:N,k=r.defaultSelectedKeys,D=r.selectedKeys,z=r.onSelect,j=r.onDeselect,L=r.inlineIndent,F=L===void 0?24:L,B=r.motion,V=r.defaultMotions,W=r.triggerSubMenuAction,q=W===void 0?"hover":W,J=r.builtinPlacements,Y=r.itemIcon,ne=r.expandIcon,fe=r.overflowedIndicator,oe=fe===void 0?"...":fe,G=r.overflowedIndicatorPopupClassName,ue=r.getPopupContainer,le=r.onClick,ae=r.onOpenChange,ee=r.onKeyDown;r.openAnimation,r.openTransitionName;var ge=r._internalRenderMenuItem,ye=r._internalRenderSubMenuItem,Ie=r._internalComponents,Ee=Rt(r,PH),A=l.useMemo(function(){return[i2(m,f,ki,Ie,a),i2(m,f,ki,{},a)]},[m,f,Ie]),X=Z(A,2),re=X[0],me=X[1],pe=l.useState(!1),ve=Z(pe,2),Pe=ve[0],De=ve[1],Me=l.useRef(),Le=sH(g),Oe=v==="rtl",be=Jt(E,{value:R,postState:function(Ct){return Ct||ki}}),ke=Z(be,2),Se=ke[0],Re=ke[1],we=function(Ct){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Kt(){Re(Ct),ae==null||ae(Ct)}ht?Qo.flushSync(Kt):Kt()},xe=l.useState(Se),Te=Z(xe,2),Ae=Te[0],ct=Te[1],yt=l.useRef(!1),Ve=l.useMemo(function(){return(y==="inline"||y==="vertical")&&h?["vertical",h]:[y,!1]},[y,h]),Xe=Z(Ve,2),nt=Xe[0],Ue=Xe[1],Qe=nt==="inline",wt=l.useState(nt),It=Z(wt,2),Je=It[0],at=It[1],ie=l.useState(Ue),se=Z(ie,2),de=se[0],he=se[1];l.useEffect(function(){at(nt),he(Ue),yt.current&&(Qe?Re(Ae):we(ki))},[nt,Ue]);var $e=l.useState(0),ze=Z($e,2),Be=ze[0],He=ze[1],je=Be>=re.length-1||Je!=="horizontal"||C;l.useEffect(function(){Qe&&ct(Se)},[Se]),l.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var Ne=iH(),Fe=Ne.registerPath,Ye=Ne.unregisterPath,ut=Ne.refreshOverflowKeys,$t=Ne.isSubPathKey,Mt=Ne.getKeyPath,lt=Ne.getKeys,Tt=Ne.getSubPathKeys,We=l.useMemo(function(){return{registerPath:Fe,unregisterPath:Ye}},[Fe,Ye]),tt=l.useMemo(function(){return{isSubPathKey:$t}},[$t]);l.useEffect(function(){ut(je?ki:re.slice(Be+1).map(function(qt){return qt.key}))},[Be,je]);var bt=Jt(M||T&&((n=re[0])===null||n===void 0?void 0:n.key),{value:M}),it=Z(bt,2),st=it[0],rt=it[1],Et=Xc(function(qt){rt(qt)}),kt=Xc(function(){rt(void 0)});l.useImperativeHandle(t,function(){return{list:Me.current,focus:function(Ct){var ht,Kt=lt(),mt=Ny(Kt,Le),gt=mt.elements,Vt=mt.key2element,an=mt.element2key,vn=L1(Me.current,gt),Vn=st??(vn[0]?an.get(vn[0]):(ht=re.find(function(Ft){return!Ft.props.disabled}))===null||ht===void 0?void 0:ht.key),Nn=Vt.get(Vn);if(Vn&&Nn){var Wn;Nn==null||(Wn=Nn.focus)===null||Wn===void 0||Wn.call(Nn,Ct)}}}});var Ze=Jt(k||[],{value:D,postState:function(Ct){return Array.isArray(Ct)?Ct:Ct==null?ki:[Ct]}}),Ke=Z(Ze,2),vt=Ke[0],Yt=Ke[1],rn=function(Ct){if(I){var ht=Ct.key,Kt=vt.includes(ht),mt;P?Kt?mt=vt.filter(function(Vt){return Vt!==ht}):mt=[].concat(_e(vt),[ht]):mt=[ht],Yt(mt);var gt=K(K({},Ct),{},{selectedKeys:mt});Kt?j==null||j(gt):z==null||z(gt)}!P&&Se.length&&Je!=="inline"&&we(ki)},Ht=Xc(function(qt){le==null||le(Wm(qt)),rn(qt)}),un=Xc(function(qt,Ct){var ht=Se.filter(function(mt){return mt!==qt});if(Ct)ht.push(qt);else if(Je!=="inline"){var Kt=Tt(qt);ht=ht.filter(function(mt){return!Kt.has(mt)})}pa(Se,ht,!0)||we(ht,!0)}),mn=function(Ct,ht){var Kt=ht??!Se.includes(Ct);un(Ct,Kt)},Mn=rH(Je,st,Oe,Le,Me,lt,Mt,rt,mn,ee);l.useEffect(function(){De(!0)},[]);var An=l.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:ye}},[ge,ye]),Jn=Je!=="horizontal"||C?re:re.map(function(qt,Ct){return l.createElement(Qu,{key:qt.key,overflowDisabled:Ct>Be},qt)}),Hn=l.createElement(Xo,Ce({id:g,ref:Me,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:xd,className:Q(a,"".concat(a,"-root"),"".concat(a,"-").concat(Je),c,H(H({},"".concat(a,"-inline-collapsed"),de),"".concat(a,"-rtl"),Oe),i),dir:v,style:s,role:"menu",tabIndex:d,data:Jn,renderRawItem:function(Ct){return Ct},renderRawRest:function(Ct){var ht=Ct.length,Kt=ht?re.slice(-ht):null;return l.createElement(vg,{eventKey:Ty,title:oe,disabled:je,internalPopupClose:ht===0,popupClassName:G},Kt)},maxCount:Je!=="horizontal"||C?Xo.INVALIDATE:Xo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ct){He(Ct)},onKeyDown:Mn},Ee));return l.createElement(z1.Provider,{value:An},l.createElement(lP.Provider,{value:Le},l.createElement(Qu,{prefixCls:a,rootClassName:i,mode:Je,openKeys:Se,rtl:Oe,disabled:p,motion:Pe?B:null,defaultMotions:Pe?V:null,activeKey:st,onActive:Et,onInactive:kt,selectedKeys:vt,inlineIndent:F,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:J,triggerSubMenuAction:q,getPopupContainer:ue,itemIcon:Y,expandIcon:ne,onItemClick:Ht,onOpenChange:un},l.createElement(fP.Provider,{value:tt},Hn),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(uP.Provider,{value:We},me)))))}),sc=MH;sc.Item=xd;sc.SubMenu=vg;sc.ItemGroup=V1;sc.Divider=H1;var NH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},TH=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:NH}))},_H=l.forwardRef(TH);const yP=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),DH=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:s,lineHeight:U(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},bP=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},CP=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],SP=Ut("Layout",DH,bP,{deprecatedTokens:CP}),kH=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:v,lightTriggerColor:g,lightTriggerBg:b,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:U(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${U(m)} ${U(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${U(m)} 0 0 ${U(m)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:g,background:b},[`${t}-zero-width-trigger`]:{color:g,background:b,border:`1px solid ${y}`,borderInlineStart:0}}}}},jH=Ut(["Layout","Sider"],kH,bP,{deprecatedTokens:CP});var zH=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 l2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},LH=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),gg=l.createContext({}),FH=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),xP=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:g,onCollapse:b,onBreakpoint:y}=e,h=zH(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:p}=l.useContext(yP),[C,S]=l.useState("collapsed"in e?e.collapsed:i),[x,$]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(Y,ne)=>{"collapsed"in e||S(Y),b==null||b(Y,ne)},{getPrefixCls:O,direction:E}=l.useContext(xt),R=O("layout-sider",n),[M,T,_]=jH(R),I=l.useRef(null);I.current=Y=>{$(Y.matches),y==null||y(Y.matches),C!==Y.matches&&w(Y.matches,"responsive")},l.useEffect(()=>{function Y(fe){var oe;return(oe=I.current)===null||oe===void 0?void 0:oe.call(I,fe)}let ne;return typeof(window==null?void 0:window.matchMedia)<"u"&&g&&g in l2&&(ne=window.matchMedia(`screen and (max-width: ${l2[g]})`),q3(ne,Y),Y(ne)),()=>{G3(ne,Y)}},[g]),l.useEffect(()=>{const Y=FH("ant-sider-");return p.addSider(Y),()=>p.removeSider(Y)},[]);const N=()=>{w(!C,"clickTrigger")},P=on(h,["collapsed"]),k=C?m:f,D=LH(k)?`${k}px`:String(k),z=Number.parseFloat(String(m||0))===0?l.createElement("span",{onClick:N,className:Q(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:v},o||l.createElement(_H,null)):null,j=E==="rtl"==!d,B={expanded:j?l.createElement(Bs,null):l.createElement(Yu,null),collapsed:j?l.createElement(Yu,null):l.createElement(Bs,null)}[C?"collapsed":"expanded"],V=o!==null?z||l.createElement("div",{className:`${R}-trigger`,onClick:N,style:{width:D}},o||B):null,W=Object.assign(Object.assign({},c),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),q=Q(R,`${R}-${s}`,{[`${R}-collapsed`]:!!C,[`${R}-has-trigger`]:u&&o!==null&&!z,[`${R}-below`]:!!x,[`${R}-zero-width`]:Number.parseFloat(D)===0},r,T,_),J=l.useMemo(()=>({siderCollapsed:C}),[C]);return M(l.createElement(gg.Provider,{value:J},l.createElement("aside",Object.assign({className:q},P,{style:W,ref:t}),l.createElement("div",{className:`${R}-children`},a),u||x&&z?V:null)))});var BH={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"},AH=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:BH}))},W1=l.forwardRef(AH);const Km=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var HH=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 wP=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=HH(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(xt),i=a("menu",t),s=Q({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(H1,Object.assign({className:s},o))},$P=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=l.useContext(Km),v=C=>{const S=r==null?void 0:r[0],x=l.createElement("span",{className:Q(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&C&&u&&typeof S=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},S.charAt(0)):x},{siderCollapsed:g}=l.useContext(gg);let b=a;typeof a>"u"?b=u?r:"":a===!1&&(b="");const y={title:b};!g&&!m&&(y.title=null,y.open=!1);const h=yr(r).length;let p=l.createElement(xd,Object.assign({},on(e,["title","icon","danger"]),{className:Q({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(o?h+1:h)===1},n),title:typeof a=="string"?a:void 0}),Br(o,{className:Q(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),v(m));return f||(p=l.createElement(hr,Object.assign({},y,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),p)),p};var VH=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 Um=l.createContext(null),EP=l.forwardRef((e,t)=>{const{children:n}=e,r=VH(e,["children"]),o=l.useContext(Um),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=AT(n),s=Ha(t,i?Mi(n):null);return l.createElement(Um.Provider,{value:a},l.createElement(Ca,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),WH=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${U(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
|
243
|
-
> ${t}-item-active,
|
|
244
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},KH=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
245
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${U(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${U(t)})`}}}}),s2=e=>ta(e),c2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:v,motionEaseInOut:g,motionEaseOut:b,itemPaddingInline:y,motionDurationMid:h,itemHoverColor:p,lineType:C,colorSplit:S,itemDisabledColor:x,dangerItemColor:$,dangerItemHoverColor:w,dangerItemSelectedColor:O,dangerItemActiveBg:E,dangerItemSelectedBg:R,popupBg:M,itemHoverBg:T,itemActiveBg:_,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:P,horizontalItemBorderRadius:k,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},s2(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},s2(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:p}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${U(d)} solid transparent`,transition:`border-color ${v} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:d,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${U(m)} ${C} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${U(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${b}`,`opacity ${h} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(",")}}}}}},u2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:U(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
|
246
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:U(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
247
|
-
${t}-submenu-title`]:{paddingInlineEnd:d}}},UH=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:y}=e,h={height:r,lineHeight:U(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},u2(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},u2(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${U(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
248
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
249
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
250
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${U(e.calc(y).div(2).equal())} - ${U(u)})`,textOverflow:"clip",[`
|
|
251
|
-
${t}-submenu-arrow,
|
|
252
|
-
${t}-submenu-expand-icon
|
|
253
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:U(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ea),{paddingInline:v})}}]},d2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Qs()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},f2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${U(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${U(i)})`}}}}},qH=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:g,menuArrowOffset:b,lineType:y,groupTitleLineHeight:h,groupTitleFontSize:p}=e;return[{"":{[n]:Object.assign(Object.assign({},xi()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),xi()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${U(s)} ${U(c)}`,fontSize:p,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),d2(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${U(e.calc(r).mul(2).equal())} ${U(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},d2(e)),f2(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),f2(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
254
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${U(b)})`},"&::after":{transform:`rotate(45deg) translateX(${U(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${U(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${U(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${U(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},GH=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:y,controlHeightLG:h,lineHeight:p,colorBgElevated:C,marginXXS:S,padding:x,fontSize:$,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:R}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,T=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,_=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,I=new Wt(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:v,activeBarBorderWidth:T,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:p,collapsedWidth:h*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${h*1.15}px`,iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:O,groupTitleFontSize:$,darkItemDisabledColor:new Wt(E).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:E,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${T}px)`:`calc(100% - ${_*2}px)`}},XH=(e,t=e,n=!0)=>Ut("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:g,darkItemHoverBg:b,darkGroupTitleColor:y,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:x,popupBg:$,darkPopupBg:w}=o,O=o.calc(s).div(7).mul(5).equal(),E=Bt(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:$}),R=Bt(E,{itemColor:c,itemHoverColor:h,groupTitleColor:y,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:p,dangerItemColor:u,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[qH(E),WH(E),UH(E),c2(E,"light"),c2(R,"dark"),KH(E),x1(E),ya(E,"slide-up"),ya(E,"slide-down"),gd(E,"zoom-big")]},GH,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),OP=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(Km),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=lc();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const g=l.isValidElement(o)&&o.type==="span";f=l.createElement(l.Fragment,null,Br(r,{className:Q(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),g?o:l.createElement("span",{className:`${s}-title-content`},o))}const m=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[v]=El("Menu");return l.createElement(Km.Provider,{value:m},l.createElement(vg,Object.assign({},on(e,["icon"]),{title:f,popupClassName:Q(s,n,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var YH=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 Jh(e){return e===null||e===!1}const QH={item:$P,submenu:OP,divider:wP},JH=l.forwardRef((e,t)=>{var n;const r=l.useContext(Um),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:c}=l.useContext(xt),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:y,siderCollapsed:h,rootClassName:p,mode:C,selectable:S,onClick:x,overflowedIndicatorPopupClassName:$}=e,w=YH(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=on(w,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:C});const E=zt((...F)=>{var B;x==null||x.apply(void 0,F),(B=o.onClick)===null||B===void 0||B.call(o)}),R=o.mode||C,M=S??o.selectable,T=y??h,_={horizontal:{motionName:`${u}-slide-up`},inline:Hm(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||o.prefixCls),N=Bn(I),[P,k,D]=XH(I,N,!r),z=Q(`${I}-${v}`,c==null?void 0:c.className,f),j=l.useMemo(()=>{var F,B;if(typeof g=="function"||Jh(g))return g||null;if(typeof o.expandIcon=="function"||Jh(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Jh(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const V=(F=g??(o==null?void 0:o.expandIcon))!==null&&F!==void 0?F:c==null?void 0:c.expandIcon;return Br(V,{className:Q(`${I}-submenu-expand-icon`,l.isValidElement(V)?(B=V.props)===null||B===void 0?void 0:B.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,I]),L=l.useMemo(()=>({prefixCls:I,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:v,mode:R,disableMenuItemTitleTooltip:b}),[I,T,s,b,v]);return P(l.createElement(Um.Provider,{value:null},l.createElement(Km.Provider,{value:L},l.createElement(sc,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(W1,null),overflowedIndicatorPopupClassName:Q(I,`${I}-${v}`,$),mode:R,selectable:M,onClick:E},O,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:z,prefixCls:I,direction:s,defaultMotions:_,expandIcon:j,ref:t,rootClassName:Q(p,k,o.rootClassName,D,N),_internalComponents:QH})))))}),Nl=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(gg);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(JH,Object.assign({ref:n},e,r))});Nl.Item=$P;Nl.SubMenu=OP;Nl.Divider=wP;Nl.ItemGroup=V1;const ZH=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},eV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:g,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
255
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
256
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
|
|
257
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
258
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
259
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Uv},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
260
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
261
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
|
|
262
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
263
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
264
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Gv},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
265
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
266
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:qv},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
267
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
268
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Xv}}},j1(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Zt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},na(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${U(u)} ${U(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${U(u)} ${U(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},na(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${U(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${U(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ya(e,"slide-up"),ya(e,"slide-down"),As(e,"move-up"),As(e,"move-down"),gd(e,"zoom-big")]]},tV=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},fg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),dg(e)),nV=Ut("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=Bt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[eV(a),ZH(a)]},tV,{resetStyle:!1}),hg=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:v,open:g,onOpenChange:b,visible:y,onVisibleChange:h,mouseEnterDelay:p=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:S=!0,placement:x="",overlay:$,transitionName:w,destroyOnHidden:O,destroyPopupOnHide:E}=e,{getPopupContainer:R,getPrefixCls:M,direction:T,dropdown:_}=l.useContext(xt),I=u||c;Ni();const N=l.useMemo(()=>{const ge=M();return w!==void 0?w:x.includes("top")?`${ge}-slide-down`:`${ge}-slide-up`},[M,x,w]),P=l.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:T==="rtl"?"bottomRight":"bottomLeft",[x,T]),k=M("dropdown",o),D=Bn(k),[z,j,L]=nV(k,D),[,F]=Sr(),B=l.Children.only(X9(a)?l.createElement("span",null,a):a),V=Br(B,{className:Q(`${k}-trigger`,{[`${k}-rtl`]:T==="rtl"},B.props.className),disabled:(t=B.props.disabled)!==null&&t!==void 0?t:s}),W=s?[]:i,q=!!(W!=null&&W.includes("contextMenu")),[J,Y]=Jt(!1,{value:g??y}),ne=zt(ge=>{b==null||b(ge,{source:"trigger"}),h==null||h(ge),Y(ge)}),fe=Q(f,m,j,L,D,_==null?void 0:_.className,{[`${k}-rtl`]:T==="rtl"}),oe=J3({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),G=zt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Y(!1))}),ue=()=>{let ge;return n!=null&&n.items?ge=l.createElement(Nl,Object.assign({},n)):typeof $=="function"?ge=$():ge=$,I&&(ge=I(ge)),ge=l.Children.only(typeof ge=="string"?l.createElement("span",null,ge):ge),l.createElement(EP,{prefixCls:`${k}-menu`,rootClassName:Q(L,D),expandIcon:l.createElement("span",{className:`${k}-menu-submenu-arrow`},T==="rtl"?l.createElement(Yu,{className:`${k}-menu-submenu-arrow-icon`}):l.createElement(Bs,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:({mode:ye})=>{}},ge)},[le,ae]=El("Dropdown",v==null?void 0:v.zIndex);let ee=l.createElement(iP,Object.assign({alignPoint:q},on(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:C,visible:J,builtinPlacements:oe,arrow:!!r,overlayClassName:fe,prefixCls:k,getPopupContainer:d||R,transitionName:N,trigger:W,overlay:ue,placement:P,onVisibleChange:ne,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),v),{zIndex:le}),autoDestroy:O??E}),V);return le&&(ee=l.createElement(Av.Provider,{value:ae},ee)),z(ee)},rV=og(hg,"align",void 0,"dropdown",e=>e),oV=e=>l.createElement(rV,Object.assign({},e),l.createElement("span",null));hg._InternalPanelDoNotUseOrYouWillBeFired=oV;var RP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",m="quarter",v="year",g="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var N=["th","st","nd","rd"],P=I%100;return"["+I+(N[(P-20)%10]||N[P]||N[0])+"]"}},C=function(I,N,P){var k=String(I);return!k||k.length>=N?I:""+Array(N+1-k.length).join(P)+I},S={s:C,z:function(I){var N=-I.utcOffset(),P=Math.abs(N),k=Math.floor(P/60),D=P%60;return(N<=0?"+":"-")+C(k,2,"0")+":"+C(D,2,"0")},m:function I(N,P){if(N.date()<P.date())return-I(P,N);var k=12*(P.year()-N.year())+(P.month()-N.month()),D=N.clone().add(k,f),z=P-D<0,j=N.clone().add(k+(z?-1:1),f);return+(-(k+(P-D)/(z?D-j:j-D))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:v,w:d,d:u,D:g,h:c,m:s,s:i,ms:a,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},x="en",$={};$[x]=p;var w="$isDayjsObject",O=function(I){return I instanceof T||!(!I||!I[w])},E=function I(N,P,k){var D;if(!N)return x;if(typeof N=="string"){var z=N.toLowerCase();$[z]&&(D=z),P&&($[z]=P,D=z);var j=N.split("-");if(!D&&j.length>1)return I(j[0])}else{var L=N.name;$[L]=N,D=L}return!k&&D&&(x=D),D||!k&&x},R=function(I,N){if(O(I))return I.clone();var P=typeof N=="object"?N:{};return P.date=I,P.args=arguments,new T(P)},M=S;M.l=E,M.i=O,M.w=function(I,N){return R(I,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var T=function(){function I(P){this.$L=E(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[w]=!0}var N=I.prototype;return N.parse=function(P){this.$d=function(k){var D=k.date,z=k.utc;if(D===null)return new Date(NaN);if(M.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var j=D.match(y);if(j){var L=j[2]-1||0,F=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],L,j[3]||1,j[4]||0,j[5]||0,j[6]||0,F)):new Date(j[1],L,j[3]||1,j[4]||0,j[5]||0,j[6]||0,F)}}return new Date(D)}(P),this.init()},N.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},N.$utils=function(){return M},N.isValid=function(){return this.$d.toString()!==b},N.isSame=function(P,k){var D=R(P);return this.startOf(k)<=D&&D<=this.endOf(k)},N.isAfter=function(P,k){return R(P)<this.startOf(k)},N.isBefore=function(P,k){return this.endOf(k)<R(P)},N.$g=function(P,k,D){return M.u(P)?this[k]:this.set(D,P)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(P,k){var D=this,z=!!M.u(k)||k,j=M.p(P),L=function(ne,fe){var oe=M.w(D.$u?Date.UTC(D.$y,fe,ne):new Date(D.$y,fe,ne),D);return z?oe:oe.endOf(u)},F=function(ne,fe){return M.w(D.toDate()[ne].apply(D.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(fe)),D)},B=this.$W,V=this.$M,W=this.$D,q="set"+(this.$u?"UTC":"");switch(j){case v:return z?L(1,0):L(31,11);case f:return z?L(1,V):L(0,V+1);case d:var J=this.$locale().weekStart||0,Y=(B<J?B+7:B)-J;return L(z?W-Y:W+(6-Y),V);case u:case g:return F(q+"Hours",0);case c:return F(q+"Minutes",1);case s:return F(q+"Seconds",2);case i:return F(q+"Milliseconds",3);default:return this.clone()}},N.endOf=function(P){return this.startOf(P,!1)},N.$set=function(P,k){var D,z=M.p(P),j="set"+(this.$u?"UTC":""),L=(D={},D[u]=j+"Date",D[g]=j+"Date",D[f]=j+"Month",D[v]=j+"FullYear",D[c]=j+"Hours",D[s]=j+"Minutes",D[i]=j+"Seconds",D[a]=j+"Milliseconds",D)[z],F=z===u?this.$D+(k-this.$W):k;if(z===f||z===v){var B=this.clone().set(g,1);B.$d[L](F),B.init(),this.$d=B.set(g,Math.min(this.$D,B.daysInMonth())).$d}else L&&this.$d[L](F);return this.init(),this},N.set=function(P,k){return this.clone().$set(P,k)},N.get=function(P){return this[M.p(P)]()},N.add=function(P,k){var D,z=this;P=Number(P);var j=M.p(k),L=function(V){var W=R(z);return M.w(W.date(W.date()+Math.round(V*P)),z)};if(j===f)return this.set(f,this.$M+P);if(j===v)return this.set(v,this.$y+P);if(j===u)return L(1);if(j===d)return L(7);var F=(D={},D[s]=r,D[c]=o,D[i]=n,D)[j]||1,B=this.$d.getTime()+P*F;return M.w(B,this)},N.subtract=function(P,k){return this.add(-1*P,k)},N.format=function(P){var k=this,D=this.$locale();if(!this.isValid())return D.invalidDate||b;var z=P||"YYYY-MM-DDTHH:mm:ssZ",j=M.z(this),L=this.$H,F=this.$m,B=this.$M,V=D.weekdays,W=D.months,q=D.meridiem,J=function(fe,oe,G,ue){return fe&&(fe[oe]||fe(k,z))||G[oe].slice(0,ue)},Y=function(fe){return M.s(L%12||12,fe,"0")},ne=q||function(fe,oe,G){var ue=fe<12?"AM":"PM";return G?ue.toLowerCase():ue};return z.replace(h,function(fe,oe){return oe||function(G){switch(G){case"YY":return String(k.$y).slice(-2);case"YYYY":return M.s(k.$y,4,"0");case"M":return B+1;case"MM":return M.s(B+1,2,"0");case"MMM":return J(D.monthsShort,B,W,3);case"MMMM":return J(W,B);case"D":return k.$D;case"DD":return M.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return J(D.weekdaysMin,k.$W,V,2);case"ddd":return J(D.weekdaysShort,k.$W,V,3);case"dddd":return V[k.$W];case"H":return String(L);case"HH":return M.s(L,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return ne(L,F,!0);case"A":return ne(L,F,!1);case"m":return String(F);case"mm":return M.s(F,2,"0");case"s":return String(k.$s);case"ss":return M.s(k.$s,2,"0");case"SSS":return M.s(k.$ms,3,"0");case"Z":return j}return null}(fe)||j.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(P,k,D){var z,j=this,L=M.p(k),F=R(P),B=(F.utcOffset()-this.utcOffset())*r,V=this-F,W=function(){return M.m(j,F)};switch(L){case v:z=W()/12;break;case f:z=W();break;case m:z=W()/3;break;case d:z=(V-B)/6048e5;break;case u:z=(V-B)/864e5;break;case c:z=V/o;break;case s:z=V/r;break;case i:z=V/n;break;default:z=V}return D?z:M.a(z)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return $[this.$L]},N.locale=function(P,k){if(!P)return this.$L;var D=this.clone(),z=E(P,k,!0);return z&&(D.$L=z),D},N.clone=function(){return M.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},I}(),_=T.prototype;return R.prototype=_,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",u],["$M",f],["$y",v],["$D",g]].forEach(function(I){_[I[1]]=function(N){return this.$g(N,I[0],I[1])}}),R.extend=function(I,N){return I.$i||(I(N,T,R),I.$i=!0),R},R.locale=E,R.isDayjs=O,R.unix=function(I){return R(1e3*I)},R.en=$[x],R.Ls=$,R.p={},R})})(RP);var aV=RP.exports;const Rr=mo(aV);var IP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}})})(IP);var iV=IP.exports;const lV=mo(iV);var PP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,m,v,g,b){var y=f.name?f:f.$locale(),h=i(y[m]),p=i(y[v]),C=h||p.map(function(x){return x.slice(0,g)});if(!b)return C;var S=y.weekStart;return C.map(function(x,$){return C[($+(S||0))%7]})},c=function(){return o.Ls[o.locale()]},u=function(f,m){return f.formats[m]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,y){return b||y.slice(1)})}(f.formats[m.toUpperCase()])},d=function(){var f=this;return{months:function(m){return m?m.format("MMMM"):s(f,"months")},monthsShort:function(m){return m?m.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):s(f,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return u(f.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(m){return u(f,m)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(c(),"months")},o.monthsShort=function(){return s(c(),"monthsShort","months",3)},o.weekdays=function(f){return s(c(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(c(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(c(),"weekdaysMin","weekdays",2,f)}}})})(PP);var sV=PP.exports;const cV=mo(sV);var MP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(m,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(MP);var uV=MP.exports;const dV=mo(uV);var NP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(NP);var fV=NP.exports;const mV=mo(fV);var TP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(TP);var vV=TP.exports;const gV=mo(vV);var _P={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Cl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(h){this[y]=+h}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var p=h.match(/([+-]|\d\d)/g),C=60*p[1]+(+p[2]||0);return C===0?0:p[0]==="+"?-C:C}(y)}],m=function(y){var h=c[y];return h&&(h.indexOf?h:h.s.concat(h.f))},v=function(y,h){var p,C=c.meridiem;if(C){for(var S=1;S<=24;S+=1)if(y.indexOf(C(S,0,h))>-1){p=S>12;break}}else p=y===(h?"pm":"PM");return p},g={A:[s,function(y){this.afternoon=v(y,!1)}],a:[s,function(y){this.afternoon=v(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[s,function(y){var h=c.ordinal,p=y.match(/\d+/);if(this.day=p[0],h)for(var C=1;C<=31;C+=1)h(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[s,function(y){var h=m("months"),p=(m("monthsShort")||h.map(function(C){return C.slice(0,3)})).indexOf(y)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(y){var h=m("months").indexOf(y)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(y){var h,p;h=y,p=c&&c.formats;for(var C=(y=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,M,T){var _=T&&T.toUpperCase();return M||p[T]||n[T]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,N,P){return N||P.slice(1)})})).match(r),S=C.length,x=0;x<S;x+=1){var $=C[x],w=g[$],O=w&&w[0],E=w&&w[1];C[x]=E?{regex:O,parser:E}:$.replace(/^\[|\]$/g,"")}return function(R){for(var M={},T=0,_=0;T<S;T+=1){var I=C[T];if(typeof I=="string")_+=I.length;else{var N=I.regex,P=I.parser,k=R.slice(_),D=N.exec(k)[0];P.call(M,D),R=R.replace(D,"")}}return function(z){var j=z.afternoon;if(j!==void 0){var L=z.hours;j?L<12&&(z.hours+=12):L===12&&(z.hours=0),delete z.afternoon}}(M),M}}return function(y,h,p){p.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var C=h.prototype,S=C.parse;C.parse=function(x){var $=x.date,w=x.utc,O=x.args;this.$u=w;var E=O[1];if(typeof E=="string"){var R=O[2]===!0,M=O[3]===!0,T=R||M,_=O[2];M&&(_=O[2]),c=this.$locale(),!R&&_&&(c=p.Ls[_]),this.$d=function(k,D,z,j){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*k);var L=b(D)(k),F=L.year,B=L.month,V=L.day,W=L.hours,q=L.minutes,J=L.seconds,Y=L.milliseconds,ne=L.zone,fe=L.week,oe=new Date,G=V||(F||B?1:oe.getDate()),ue=F||oe.getFullYear(),le=0;F&&!B||(le=B>0?B-1:oe.getMonth());var ae,ee=W||0,ge=q||0,ye=J||0,Ie=Y||0;return ne?new Date(Date.UTC(ue,le,G,ee,ge,ye,Ie+60*ne.offset*1e3)):z?new Date(Date.UTC(ue,le,G,ee,ge,ye,Ie)):(ae=new Date(ue,le,G,ee,ge,ye,Ie),fe&&(ae=j(ae).week(fe).toDate()),ae)}catch{return new Date("")}}($,E,w,p),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),T&&$!=this.format(E)&&(this.$d=new Date("")),c={}}else if(E instanceof Array)for(var I=E.length,N=1;N<=I;N+=1){O[1]=E[N-1];var P=p.apply(this,O);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}N===I&&(this.$d=new Date(""))}else S.call(this,x)}}})})(_P);var hV=_P.exports;const pV=mo(hV);Rr.extend(pV);Rr.extend(gV);Rr.extend(lV);Rr.extend(cV);Rr.extend(dV);Rr.extend(mV);Rr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var yV={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ji=function(t){var n=yV[t];return n||t.split("_")[0]},bV={getNow:function(){var t=Rr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Rr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Rr().locale(ji(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(ji(t)).weekday(0)},getWeek:function(t,n){return n.locale(ji(t)).week()},getShortWeekDays:function(t){return Rr().locale(ji(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Rr().locale(ji(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(ji(t)).format(r)},parse:function(t,n,r){for(var o=ji(t),a=0;a<r.length;a+=1){var i=r[a],s=n;if(i.includes("wo")||i.includes("Wo")){for(var c=s.split("-")[0],u=s.split("-")[1],d=Rr(c,"YYYY").startOf("year").locale(o),f=0;f<=52;f+=1){var m=d.add(f,"week");if(m.format("Wo")===u)return m}return null}var v=Rr(s,i,!0).locale(o);if(v.isValid())return v}return null}}};function CV(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var oa=l.createContext(null),SV={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function DP(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?SV:d,m=e.direction,v=e.visible,g=e.onClose,b=l.useContext(oa),y=b.prefixCls,h="".concat(y,"-dropdown"),p=CV(u,m==="rtl");return l.createElement(Sd,{showAction:[],hideAction:["click"],popupPlacement:p,builtinPlacements:f,prefixCls:h,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:Q(r,H(H({},"".concat(h,"-range"),c),"".concat(h,"-rtl"),m==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(S){S||g()}},s)}function K1(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function Tl(e){return e==null?[]:Array.isArray(e)?e:[e]}function fu(e,t,n){var r=_e(e);return r[t]=n,r}function pg(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function kP(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function jP(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function zP(e){return pg(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function U1(e,t,n,r){var o=l.useMemo(function(){return e||function(i,s){var c=i;return t&&s.type==="date"?t(c,s.today):n&&s.type==="month"?n(c,s.locale):s.originNode}},[e,n,t]),a=l.useCallback(function(i,s){return o(i,K(K({},s),{},{range:r}))},[o,r]);return a}function LP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),o=Z(r,2),a=o[0],i=o[1],s=function(d,f){i(function(m){return fu(m,f,d)})},c=l.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[c,s]}function FP(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function xV(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,v=e.yearFormat,g=e.cellYearFormat,b=e.cellQuarterFormat,y=e.dayFormat,h=e.cellDateFormat,p=FP(t,n,r,o,a);return K(K({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(p),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||p,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:h||y||"D"})}function BP(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return ce.useMemo(function(){return xV(e,n,r,o,a,i)},[e,n,r,o,a,i])}function _c(e,t,n){return n??t.some(function(r){return e.includes(r)})}var wV=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function $V(e){var t=pg(e,wV),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=ft(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function EV(e){return e&&typeof e=="string"}function AP(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function HP(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var c,u,d,f=[a,i,s].some(function(g){return g===!1}),m=[a,i,s].some(function(g){return g===!0}),v=f?!0:!m;a=(c=a)!==null&&c!==void 0?c:v,i=(u=i)!==null&&u!==void 0?u:v,s=(d=s)!==null&&d!==void 0?d:v}return[a,i,s,o]}function VP(e){var t=e.showTime,n=$V(e),r=Z(n,2),o=r[0],a=r[1],i=t&&ft(t)==="object"?t:{},s=K(K({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,m=AP(u,d,f,c),v=HP(m,u,d,f,c),g=Z(v,3);return u=g[0],d=g[1],f=g[2],[s,K(K({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,a]}function WP(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=kP(e,o,null),c=s,u=[t,n],d=0;d<u.length;d+=1){var f=Tl(u[d])[0];if(EV(f)){c=f;break}}var m=i.showHour,v=i.showMinute,g=i.showSecond,b=i.showMillisecond,y=i.use12Hours,h=_c(c,["a","A","LT","LLL","LTS"],y),p=AP(m,v,g,b);p||(m=_c(c,["H","h","k","LT","LLL"]),v=_c(c,["m","LT","LLL"]),g=_c(c,["s","LTS"]),b=_c(c,["SSS"]));var C=HP(p,m,v,g,b),S=Z(C,3);m=S[0],v=S[1],g=S[2];var x=t||FP(m,v,g,b,h);return K(K({},i),{},{format:x,showHour:m,showMinute:v,showSecond:g,showMillisecond:b,use12Hours:h})}return null}function OV(e,t,n){if(t===!1)return null;var r=t&&ft(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var Zh=7;function Ti(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Dy(e,t,n){return Ti(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function gl(e,t,n){return Ti(t,n,function(){return e.getYear(t)===e.getYear(n)})}function m2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function RV(e,t,n){return Ti(t,n,function(){return gl(e,t,n)&&m2(e,t)===m2(e,n)})}function q1(e,t,n){return Ti(t,n,function(){return gl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function G1(e,t,n){return Ti(t,n,function(){return gl(e,t,n)&&q1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function KP(e,t,n){return Ti(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function UP(e,t,n){return Ti(t,n,function(){return G1(e,t,n)&&KP(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Yc(e,t,n,r){return Ti(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return gl(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Pr(e,t,n,r,o){switch(o){case"date":return G1(e,n,r);case"week":return Yc(e,t.locale,n,r);case"month":return q1(e,n,r);case"quarter":return RV(e,n,r);case"year":return gl(e,n,r);case"decade":return Dy(e,n,r);case"time":return KP(e,n,r);default:return UP(e,n,r)}}function yg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function ff(e,t,n,r,o){return Pr(e,t,n,r,o)?!0:e.isAfter(n,r)}function IV(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function nr(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function qm(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function PV(e,t,n,r,o){var a=zt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Pr(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!Pr(e,t,o,i,s.type))});return a}function MV(e,t,n){return l.useMemo(function(){var r=kP(e,t,n),o=Tl(r),a=o[0],i=ft(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function NV(e,t,n){return typeof e[0]=="function"||n?!0:t}function TV(e,t,n,r){var o=zt(function(a,i){var s=K({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,a,u,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,v=d.disabledSeconds,g=d.disabledMilliseconds,b=r.disabledHours,y=r.disabledMinutes,h=r.disabledSeconds,p=f||b,C=m||y,S=v||h,x=e.getHour(a),$=e.getMinute(a),w=e.getSecond(a),O=e.getMillisecond(a);if(p&&p().includes(x)||C&&C(x).includes($)||S&&S(x,$).includes(w)||g&&g(x,$,w).includes(O))return!0}return!1});return o}function mf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&Tl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function qP(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,v=m===void 0?!0:m,g=e.components,b=g===void 0?{}:g,y=e.inputRender,h=e.allowClear,p=e.clearIcon,C=e.needConfirm,S=e.multiple,x=e.format,$=e.inputReadOnly,w=e.disabledDate,O=e.minDate,E=e.maxDate,R=e.showTime,M=e.value,T=e.defaultValue,_=e.pickerValue,I=e.defaultPickerValue,N=mf(M),P=mf(T),k=mf(_),D=mf(I),z=a==="date"&&R?"datetime":a,j=z==="time"||z==="datetime",L=j||S,F=C??j,B=VP(e),V=Z(B,4),W=V[0],q=V[1],J=V[2],Y=V[3],ne=BP(r,q),fe=l.useMemo(function(){return WP(z,J,Y,W,ne)},[z,J,Y,W,ne]),oe=l.useMemo(function(){return K(K({},e),{},{prefixCls:s,locale:ne,picker:a,styles:u,classNames:f,order:v,components:K({input:y},b),clearIcon:OV(s,h,p),showTime:fe,value:N,defaultValue:P,pickerValue:k,defaultPickerValue:D},t==null?void 0:t())},[e]),G=MV(z,ne,x),ue=Z(G,2),le=ue[0],ae=ue[1],ee=NV(le,$,S),ge=PV(n,r,w,O,E),ye=TV(n,a,ge,fe),Ie=l.useMemo(function(){return K(K({},oe),{},{needConfirm:F,inputReadOnly:ee,disabledDate:ge})},[oe,F,ee,ge]);return[Ie,z,L,le,ae,ye]}function _V(e,t,n){var r=Jt(t,{value:e}),o=Z(r,2),a=o[0],i=o[1],s=ce.useRef(e),c=ce.useRef(),u=function(){jt.cancel(c.current)},d=zt(function(){i(s.current),n&&a!==s.current&&n(s.current)}),f=zt(function(m,v){u(),s.current=m,m||v?d():c.current=jt(d)});return ce.useEffect(function(){return u},[]),[a,f]}function GP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=_V(o,t||!1,r),i=Z(a,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function XP(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function YP(e,t){return l.useMemo(function(){return e||(t?(pn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Z(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function X1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,ol(function(){if(e)r.current(e);else{var o=jt(function(){r.current(e)},n);return function(){jt.cancel(o)}}},[e])}function QP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),o=Z(r,2),a=o[0],i=o[1],s=l.useState(!1),c=Z(s,2),u=c[0],d=c[1],f=l.useRef([]),m=l.useRef(null),v=l.useRef(null),g=function(S){m.current=S},b=function(S){return m.current===S},y=function(S){d(S)},h=function(S){return S&&(v.current=S),v.current},p=function(S){var x=f.current,$=new Set(x.filter(function(O){return S[O]||t[O]})),w=x[x.length-1]===0?1:0;return $.size>=2||e[w]?null:w};return X1(u||n,function(){u||(f.current=[],g(null))}),l.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,y,h,a,i,p,f.current,g,b]}function DV(e,t,n,r,o,a){var i=n[n.length-1],s=function(u,d){var f=Z(e,2),m=f[0],v=f[1],g=K(K({},d),{},{from:jP(e,n)});return i===1&&t[0]&&m&&!Pr(r,o,m,u,g.type)&&r.isAfter(m,u)||i===0&&t[1]&&v&&!Pr(r,o,v,u,g.type)&&r.isAfter(u,v)?!0:a==null?void 0:a(u,g)};return s}function Qc(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var ep=[];function JP(e,t,n,r,o,a,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ep,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ep,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ep,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,g=i==="time",b=a||0,y=function(k){var D=e.getNow();return g&&(D=qm(e,D)),c[k]||n[k]||D},h=Z(u,2),p=h[0],C=h[1],S=Jt(function(){return y(0)},{value:p}),x=Z(S,2),$=x[0],w=x[1],O=Jt(function(){return y(1)},{value:C}),E=Z(O,2),R=E[0],M=E[1],T=l.useMemo(function(){var P=[$,R][b];return g?P:qm(e,P,d[b])},[g,$,R,b,e,d]),_=function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[w,M][b];z(k);var j=[$,R];j[b]=k,f&&(!Pr(e,t,$,j[0],i)||!Pr(e,t,R,j[1],i))&&f(j,{source:D,range:b===1?"end":"start",mode:r})},I=function(k,D){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},j=z[i];if(j&&!Pr(e,t,k,D,j))return Qc(e,i,D,-1);if(i==="year"&&k){var L=Math.floor(e.getYear(k)/10),F=Math.floor(e.getYear(D)/10);if(L!==F)return Qc(e,i,D,-1)}}return D},N=l.useRef(null);return Dt(function(){if(o&&!c[b]){var P=g?null:e.getNow();if(N.current!==null&&N.current!==b?P=[$,R][b^1]:n[b]?P=b===0?n[0]:I(n[0],n[1]):n[b^1]&&(P=n[b^1]),P){m&&e.isAfter(m,P)&&(P=m);var k=s?Qc(e,i,P,1):P;v&&e.isAfter(k,v)&&(P=s?Qc(e,i,v,-1):v),_(P,"reset")}}},[o,b,n[b]]),l.useEffect(function(){o?N.current=b:N.current=null},[o,b]),Dt(function(){o&&c&&c[b]&&_(c[b],"reset")},[o,b]),[T,_]}function ZP(e,t){var n=l.useRef(e),r=l.useState({}),o=Z(r,2),a=o[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,a({})};return[i,s,i(!0)]}var kV=[];function e6(e,t,n){var r=function(i){return i.map(function(s){return nr(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d<c;d+=1){var f=i[d]||null,m=s[d]||null;if(f!==m&&!UP(e,f,m)){u=d;break}}return[u<0,u!==0]};return[r,o]}function t6(e,t){return _e(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function jV(e){var t=ZP(e),n=Z(t,2),r=n[0],o=n[1],a=zt(function(){o(e)});return l.useEffect(function(){a()},[e]),[r,o]}function n6(e,t,n,r,o,a,i,s,c){var u=Jt(a,{value:i}),d=Z(u,2),f=d[0],m=d[1],v=f||kV,g=jV(v),b=Z(g,2),y=b[0],h=b[1],p=e6(e,t,n),C=Z(p,2),S=C[0],x=C[1],$=zt(function(O){var E=_e(O);if(r)for(var R=0;R<2;R+=1)E[R]=E[R]||null;else o&&(E=t6(E.filter(function(P){return P}),e));var M=x(y(),E),T=Z(M,2),_=T[0],I=T[1];if(!_&&(h(E),s)){var N=S(E);s(E,N,{range:I?"end":"start"})}}),w=function(){c&&c(y())};return[v,m,y,$,w]}function r6(e,t,n,r,o,a,i,s,c,u){var d=e.generateConfig,f=e.locale,m=e.picker,v=e.onChange,g=e.allowEmpty,b=e.order,y=a.some(function(_){return _})?!1:b,h=e6(d,f,i),p=Z(h,2),C=p[0],S=p[1],x=ZP(t),$=Z(x,2),w=$[0],O=$[1],E=zt(function(){O(t)});l.useEffect(function(){E()},[t]);var R=zt(function(_){var I=_===null,N=_e(_||w());if(I)for(var P=Math.max(a.length,N.length),k=0;k<P;k+=1)a[k]||(N[k]=null);y&&N[0]&&N[1]&&(N=t6(N,d)),o(N);var D=N,z=Z(D,2),j=z[0],L=z[1],F=!j,B=!L,V=g?(!F||g[0])&&(!B||g[1]):!0,W=!b||F||B||Pr(d,f,j,L,m)||d.isAfter(L,j),q=(a[0]||!j||!u(j,{activeIndex:0}))&&(a[1]||!L||!u(L,{from:j,activeIndex:1})),J=I||V&&W&&q;if(J){n(N);var Y=S(N,t),ne=Z(Y,1),fe=ne[0];v&&!fe&&v(I&&N.every(function(oe){return!oe})?null:N,C(N))}return J}),M=zt(function(_,I){var N=fu(w(),_,r()[_]);O(N),I&&R()}),T=!s&&!c;return X1(!T,function(){T&&(R(),o(t),E())},2),[M,R]}function o6(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function zV(e,t,n,r,o,a){var i=e;function s(f,m,v){var g=a[f](i),b=v.find(function(C){return C.value===g});if(!b||b.disabled){var y=v.filter(function(C){return!C.disabled}),h=_e(y).reverse(),p=h.find(function(C){return C.value<=g})||y[0];p&&(g=p.value,i=a[m](i,g))}return g}var c=s("getHour","setHour",t()),u=s("getMinute","setMinute",n(c)),d=s("getSecond","setSecond",r(c,u));return s("getMillisecond","setMillisecond",o(c,u,d)),i}function vf(){return[]}function gf(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=o.includes(c);(!u||!r)&&i.push({label:K1(c,a),value:c,disabled:u})}return i}function Y1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,v=r.hideDisabledOptions,g=r.disabledTime,b=r.disabledHours,y=r.disabledMinutes,h=r.disabledSeconds,p=l.useMemo(function(){return n||e.getNow()},[n,e]),C=l.useCallback(function(D){var z=(g==null?void 0:g(D))||{};return[z.disabledHours||b||vf,z.disabledMinutes||y||vf,z.disabledSeconds||h||vf,z.disabledMilliseconds||vf]},[g,b,y,h]),S=l.useMemo(function(){return C(p)},[p,C]),x=Z(S,4),$=x[0],w=x[1],O=x[2],E=x[3],R=l.useCallback(function(D,z,j,L){var F=gf(0,23,i,v,D()),B=o?F.map(function(J){return K(K({},J),{},{label:K1(J.value%12||12,2)})}):F,V=function(Y){return gf(0,59,c,v,z(Y))},W=function(Y,ne){return gf(0,59,d,v,j(Y,ne))},q=function(Y,ne,fe){return gf(0,999,m,v,L(Y,ne,fe),3)};return[B,V,W,q]},[v,i,o,m,c,d]),M=l.useMemo(function(){return R($,w,O,E)},[R,$,w,O,E]),T=Z(M,4),_=T[0],I=T[1],N=T[2],P=T[3],k=function(z,j){var L=function(){return _},F=I,B=N,V=P;if(j){var W=C(j),q=Z(W,4),J=q[0],Y=q[1],ne=q[2],fe=q[3],oe=R(J,Y,ne,fe),G=Z(oe,4),ue=G[0],le=G[1],ae=G[2],ee=G[3];L=function(){return ue},F=le,B=ae,V=ee}var ge=zV(z,L,F,B,V,e);return ge};return[k,_,I,N,P]}function LV(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=l.useContext(oa),v=m.prefixCls,g=m.locale,b=m.button,y=b===void 0?"button":b,h=d.getNow(),p=Y1(d,a,h),C=Z(p,1),S=C[0],x=r==null?void 0:r(t),$=f(h,{type:t}),w=function(){if(!$){var I=S(h);s(I)}},O="".concat(v,"-now"),E="".concat(O,"-btn"),R=o&&l.createElement("li",{className:O},l.createElement("a",{className:Q(E,$&&"".concat(E,"-disabled")),"aria-disabled":$,onClick:w},n==="date"?g.today:g.now)),M=u&&l.createElement("li",{className:"".concat(v,"-ok")},l.createElement(y,{disabled:c,onClick:i},g.ok)),T=(R||M)&&l.createElement("ul",{className:"".concat(v,"-ranges")},R,M);return!x&&!T?null:l.createElement("div",{className:"".concat(v,"-footer")},x&&l.createElement("div",{className:"".concat(v,"-footer-extra")},x),T)}function a6(e,t,n){function r(o,a){var i=o.findIndex(function(c){return Pr(e,t,c,a,n)});if(i===-1)return[].concat(_e(o),[a]);var s=_e(o);return s.splice(i,1),s}return r}var _l=l.createContext(null);function bg(){return l.useContext(_l)}function cc(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,v=e.pickerValue,g=e.onSelect,b=e.prevIcon,y=e.nextIcon,h=e.superPrevIcon,p=e.superNextIcon,C=r.getNow(),S={now:C,values:m,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:g,panelType:t,prevIcon:b,nextIcon:y,superPrevIcon:h,superNextIcon:p};return[S,C]}var yi=l.createContext({});function wd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,v=e.disabledDate,g=bg(),b=g.prefixCls,y=g.panelType,h=g.now,p=g.disabledDate,C=g.cellRender,S=g.onHover,x=g.hoverValue,$=g.hoverRangeValue,w=g.generateConfig,O=g.values,E=g.locale,R=g.onSelect,M=v||p,T="".concat(b,"-cell"),_=l.useContext(yi),I=_.onCellDblClick,N=function(B){return O.some(function(V){return V&&Pr(w,E,B,V,y)})},P=[],k=0;k<t;k+=1){for(var D=[],z=void 0,j=function(){var B=k*n+L,V=o(r,B),W=M==null?void 0:M(V,{type:y});L===0&&(z=V,a&&D.push(a(z)));var q=!1,J=!1,Y=!1;if(m&&$){var ne=Z($,2),fe=ne[0],oe=ne[1];q=yg(w,fe,oe,V),J=Pr(w,E,V,fe,y),Y=Pr(w,E,V,oe,y)}var G=s?nr(V,{locale:E,format:s,generateConfig:w}):void 0,ue=l.createElement("div",{className:"".concat(T,"-inner")},c(V));D.push(l.createElement("td",{key:L,title:G,className:Q(T,K(H(H(H(H(H(H({},"".concat(T,"-disabled"),W),"".concat(T,"-hover"),(x||[]).some(function(le){return Pr(w,E,V,le,y)})),"".concat(T,"-in-range"),q&&!J&&!Y),"".concat(T,"-range-start"),J),"".concat(T,"-range-end"),Y),"".concat(b,"-cell-selected"),!$&&y!=="week"&&N(V)),u(V))),onClick:function(){W||R(V)},onDoubleClick:function(){!W&&I&&I()},onMouseEnter:function(){W||S==null||S(V)},onMouseLeave:function(){W||S==null||S(null)}},C?C(V,{prefixCls:b,originNode:ue,today:h,type:y,locale:E}):ue))},L=0;L<n;L+=1)j();P.push(l.createElement("tr",{key:k,className:i==null?void 0:i(z)},D))}return l.createElement("div",{className:"".concat(b,"-body")},l.createElement("table",{className:"".concat(b,"-content")},d&&l.createElement("thead",null,l.createElement("tr",null,d)),l.createElement("tbody",null,P)))}var hf={visibility:"hidden"};function uc(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=bg(),c=s.prefixCls,u=s.prevIcon,d=u===void 0?"‹":u,f=s.nextIcon,m=f===void 0?"›":f,v=s.superPrevIcon,g=v===void 0?"«":v,b=s.superNextIcon,y=b===void 0?"»":b,h=s.minDate,p=s.maxDate,C=s.generateConfig,S=s.locale,x=s.pickerValue,$=s.panelType,w="".concat(c,"-header"),O=l.useContext(yi),E=O.hidePrev,R=O.hideNext,M=O.hideHeader,T=l.useMemo(function(){if(!h||!t||!a)return!1;var F=a(t(-1,x));return!ff(C,S,F,h,$)},[h,t,x,a,C,S,$]),_=l.useMemo(function(){if(!h||!n||!a)return!1;var F=a(n(-1,x));return!ff(C,S,F,h,$)},[h,n,x,a,C,S,$]),I=l.useMemo(function(){if(!p||!t||!o)return!1;var F=o(t(1,x));return!ff(C,S,p,F,$)},[p,t,x,o,C,S,$]),N=l.useMemo(function(){if(!p||!n||!o)return!1;var F=o(n(1,x));return!ff(C,S,p,F,$)},[p,n,x,o,C,S,$]),P=function(B){t&&r(t(B,x))},k=function(B){n&&r(n(B,x))};if(M)return null;var D="".concat(w,"-prev-btn"),z="".concat(w,"-next-btn"),j="".concat(w,"-super-prev-btn"),L="".concat(w,"-super-next-btn");return l.createElement("div",{className:w},n&&l.createElement("button",{type:"button","aria-label":S.previousYear,onClick:function(){return k(-1)},tabIndex:-1,className:Q(j,_&&"".concat(j,"-disabled")),disabled:_,style:E?hf:{}},g),t&&l.createElement("button",{type:"button","aria-label":S.previousMonth,onClick:function(){return P(-1)},tabIndex:-1,className:Q(D,T&&"".concat(D,"-disabled")),disabled:T,style:E?hf:{}},d),l.createElement("div",{className:"".concat(w,"-view")},i),t&&l.createElement("button",{type:"button","aria-label":S.nextMonth,onClick:function(){return P(1)},tabIndex:-1,className:Q(z,I&&"".concat(z,"-disabled")),disabled:I,style:R?hf:{}},m),n&&l.createElement("button",{type:"button","aria-label":S.nextYear,onClick:function(){return k(1)},tabIndex:-1,className:Q(L,N&&"".concat(L,"-disabled")),disabled:N,style:R?hf:{}},y))}function Cg(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,m=e.onSelect,v=e.onHover,g=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),h=d==="week",p=cc(e,d),C=Z(p,2),S=C[0],x=C[1],$=a.locale.getWeekFirstDay(o.locale),w=a.setDate(i,1),O=IV(o.locale,a,w),E=a.getMonth(i),R=g===void 0?h:g,M=R?function(F){var B=f==null?void 0:f(F,{type:"week"});return l.createElement("td",{key:"week",className:Q(y,"".concat(y,"-week"),H({},"".concat(y,"-disabled"),B)),onClick:function(){B||m(F)},onMouseEnter:function(){B||v==null||v(F)},onMouseLeave:function(){B||v==null||v(null)}},l.createElement("div",{className:"".concat(y,"-inner")},a.locale.getWeek(o.locale,F)))}:null,T=[],_=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);M&&T.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var I=0;I<Zh;I+=1)T.push(l.createElement("th",{key:I},_[(I+$)%Zh]));var N=function(B,V){return a.addDate(B,V)},P=function(B){return nr(B,{locale:o,format:o.cellDateFormat,generateConfig:a})},k=function(B){var V=H(H({},"".concat(t,"-cell-in-view"),q1(a,B,i)),"".concat(t,"-cell-today"),G1(a,B,x));return V},D=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),z=l.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){c("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(i,{locale:o,format:o.yearFormat,generateConfig:a})),j=l.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){c("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?nr(i,{locale:o,format:o.monthFormat,generateConfig:a}):D[E]),L=o.monthBeforeYear?[j,z]:[z,j];return l.createElement(_l.Provider,{value:S},l.createElement("div",{className:Q(b,g&&"".concat(b,"-show-week"))},l.createElement(uc,{offset:function(B){return a.addMonth(i,B)},superOffset:function(B){return a.addYear(i,B)},onChange:s,getStart:function(B){return a.setDate(B,1)},getEnd:function(B){var V=a.setDate(B,1);return V=a.addMonth(V,1),a.addDate(V,-1)}},L),l.createElement(wd,Ce({titleFormat:o.fieldDateFormat},e,{colNum:Zh,rowNum:6,baseDate:O,headerCells:T,getCellDate:N,getCellText:P,getCellClassName:k,prefixColumn:M,cellSelection:!h}))))}var FV=1/3;function BV(e,t){var n=l.useRef(!1),r=l.useRef(null),o=l.useRef(null),a=function(){return n.current},i=function(){jt.cancel(r.current),n.current=!1},s=l.useRef(),c=function(){var f=e.current;if(o.current=null,s.current=0,f){var m=f.querySelector('[data-value="'.concat(t,'"]')),v=f.querySelector("li"),g=function b(){i(),n.current=!0,s.current+=1;var y=f.scrollTop,h=v.offsetTop,p=m.offsetTop,C=p-h;if(p===0&&m!==v||!rc(f)){s.current<=5&&(r.current=jt(b));return}var S=y+(C-y)*FV,x=Math.abs(C-S);if(o.current!==null&&o.current<x){i();return}if(o.current=x,x<=1){f.scrollTop=C,i();return}f.scrollTop=S,r.current=jt(b)};m&&v&&g()}},u=zt(c);return[u,i,a]}var AV=300;function HV(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Dc(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,c=e.changeOnScroll,u=bg(),d=u.prefixCls,f=u.cellRender,m=u.now,v=u.locale,g="".concat(d,"-time-panel"),b="".concat(d,"-time-panel-cell"),y=l.useRef(null),h=l.useRef(),p=function(){clearTimeout(h.current)},C=BV(y,n??r),S=Z(C,3),x=S[0],$=S[1],w=S[2];Dt(function(){return x(),p(),function(){$(),p()}},[n,r,HV(t)]);var O=function(M){p();var T=M.target;!w()&&c&&(h.current=setTimeout(function(){var _=y.current,I=_.querySelector("li").offsetTop,N=Array.from(_.querySelectorAll("li")),P=N.map(function(L){return L.offsetTop-I}),k=P.map(function(L,F){return t[F].disabled?Number.MAX_SAFE_INTEGER:Math.abs(L-T.scrollTop)}),D=Math.min.apply(Math,_e(k)),z=k.findIndex(function(L){return L===D}),j=t[z];j&&!j.disabled&&a(j.value)},AV))},E="".concat(g,"-column");return l.createElement("ul",{className:E,ref:y,"data-type":o,onScroll:O},t.map(function(R){var M=R.label,T=R.value,_=R.disabled,I=l.createElement("div",{className:"".concat(b,"-inner")},M);return l.createElement("li",{key:T,className:Q(b,H(H({},"".concat(b,"-selected"),n===T),"".concat(b,"-disabled"),_)),onClick:function(){_||a(T)},onDoubleClick:function(){!_&&s&&s()},onMouseEnter:function(){i(T)},onMouseLeave:function(){i(null)},"data-value":T},f?f(T,{prefixCls:d,originNode:I,today:m,type:"time",subType:o,locale:v}):I)}))}function qa(e){return e<12}function VV(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=bg(),c=s.prefixCls,u=s.values,d=s.generateConfig,f=s.locale,m=s.onSelect,v=s.onHover,g=v===void 0?function(){}:v,b=s.pickerValue,y=(u==null?void 0:u[0])||null,h=l.useContext(yi),p=h.onCellDblClick,C=Y1(d,e,y),S=Z(C,5),x=S[0],$=S[1],w=S[2],O=S[3],E=S[4],R=function(Te){var Ae=y&&d[Te](y),ct=b&&d[Te](b);return[Ae,ct]},M=R("getHour"),T=Z(M,2),_=T[0],I=T[1],N=R("getMinute"),P=Z(N,2),k=P[0],D=P[1],z=R("getSecond"),j=Z(z,2),L=j[0],F=j[1],B=R("getMillisecond"),V=Z(B,2),W=V[0],q=V[1],J=_===null?null:qa(_)?"am":"pm",Y=l.useMemo(function(){return a?qa(_)?$.filter(function(xe){return qa(xe.value)}):$.filter(function(xe){return!qa(xe.value)}):$},[_,$,a]),ne=function(Te,Ae){var ct,yt=Te.filter(function(Ve){return!Ve.disabled});return Ae??(yt==null||(ct=yt[0])===null||ct===void 0?void 0:ct.value)},fe=ne($,_),oe=l.useMemo(function(){return w(fe)},[w,fe]),G=ne(oe,k),ue=l.useMemo(function(){return O(fe,G)},[O,fe,G]),le=ne(ue,L),ae=l.useMemo(function(){return E(fe,G,le)},[E,fe,G,le]),ee=ne(ae,W),ge=l.useMemo(function(){if(!a)return[];var xe=d.getNow(),Te=d.setHour(xe,6),Ae=d.setHour(xe,18),ct=function(Ve,Xe){var nt=f.cellMeridiemFormat;return nt?nr(Ve,{generateConfig:d,locale:f,format:nt}):Xe};return[{label:ct(Te,"AM"),value:"am",disabled:$.every(function(yt){return yt.disabled||!qa(yt.value)})},{label:ct(Ae,"PM"),value:"pm",disabled:$.every(function(yt){return yt.disabled||qa(yt.value)})}]},[$,a,d,f]),ye=function(Te){var Ae=x(Te);m(Ae)},Ie=l.useMemo(function(){var xe=y||b||d.getNow(),Te=function(ct){return ct!=null};return Te(_)?(xe=d.setHour(xe,_),xe=d.setMinute(xe,k),xe=d.setSecond(xe,L),xe=d.setMillisecond(xe,W)):Te(I)?(xe=d.setHour(xe,I),xe=d.setMinute(xe,D),xe=d.setSecond(xe,F),xe=d.setMillisecond(xe,q)):Te(fe)&&(xe=d.setHour(xe,fe),xe=d.setMinute(xe,G),xe=d.setSecond(xe,le),xe=d.setMillisecond(xe,ee)),xe},[y,b,_,k,L,W,fe,G,le,ee,I,D,F,q,d]),Ee=function(Te,Ae){return Te===null?null:d[Ae](Ie,Te)},A=function(Te){return Ee(Te,"setHour")},X=function(Te){return Ee(Te,"setMinute")},re=function(Te){return Ee(Te,"setSecond")},me=function(Te){return Ee(Te,"setMillisecond")},pe=function(Te){return Te===null?null:Te==="am"&&!qa(_)?d.setHour(Ie,_-12):Te==="pm"&&qa(_)?d.setHour(Ie,_+12):Ie},ve=function(Te){ye(A(Te))},Pe=function(Te){ye(X(Te))},De=function(Te){ye(re(Te))},Me=function(Te){ye(me(Te))},Le=function(Te){ye(pe(Te))},Oe=function(Te){g(A(Te))},be=function(Te){g(X(Te))},ke=function(Te){g(re(Te))},Se=function(Te){g(me(Te))},Re=function(Te){g(pe(Te))},we={onDblClick:p,changeOnScroll:i};return l.createElement("div",{className:"".concat(c,"-content")},t&&l.createElement(Dc,Ce({units:Y,value:_,optionalValue:I,type:"hour",onChange:ve,onHover:Oe},we)),n&&l.createElement(Dc,Ce({units:oe,value:k,optionalValue:D,type:"minute",onChange:Pe,onHover:be},we)),r&&l.createElement(Dc,Ce({units:ue,value:L,optionalValue:F,type:"second",onChange:De,onHover:ke},we)),o&&l.createElement(Dc,Ce({units:ae,value:W,optionalValue:q,type:"millisecond",onChange:Me,onHover:Se},we)),a&&l.createElement(Dc,Ce({units:ge,value:J,type:"meridiem",onChange:Le,onHover:Re},we)))}function i6(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,c="".concat(t,"-time-panel"),u=cc(e,"time"),d=Z(u,1),f=d[0];return l.createElement(_l.Provider,{value:f},l.createElement("div",{className:Q(c)},l.createElement(uc,null,n?nr(n,{locale:r,format:s,generateConfig:o}):" "),l.createElement(VV,a)))}function WV(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,c="".concat(t,"-datetime-panel"),u=Y1(n,r),d=Z(u,1),f=d[0],m=function(y){return a?qm(n,y,a):qm(n,y,i)},v=function(y){s==null||s(y&&m(y))},g=function(y){var h=m(y);o(f(h,h))};return l.createElement("div",{className:c},l.createElement(Cg,Ce({},e,{onSelect:g,onHover:v})),l.createElement(i6,e))}function KV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),c=cc(e,"decade"),u=Z(c,1),d=u[0],f=function($){var w=Math.floor(r.getYear($)/100)*100;return r.setYear($,w)},m=function($){var w=f($);return r.addYear(w,99)},v=f(o),g=m(o),b=r.addYear(v,-10),y=function($,w){return r.addYear($,w*10)},h=function($){var w=n.cellYearFormat,O=nr($,{locale:n,format:w,generateConfig:r}),E=nr(r.addYear($,9),{locale:n,format:w,generateConfig:r});return"".concat(O,"-").concat(E)},p=function($){return H({},"".concat(t,"-cell-in-view"),Dy(r,$,v)||Dy(r,$,g)||yg(r,v,g,$))},C=a?function(x,$){var w=r.setDate(x,1),O=r.setMonth(w,0),E=r.setYear(O,Math.floor(r.getYear(O)/10)*10),R=r.addYear(E,10),M=r.addDate(R,-1);return a(E,$)&&a(M,$)}:null,S="".concat(nr(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(nr(g,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(_l.Provider,{value:d},l.createElement("div",{className:s},l.createElement(uc,{superOffset:function($){return r.addYear(o,$*100)},onChange:i,getStart:f,getEnd:m},S),l.createElement(wd,Ce({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:b,getCellDate:y,getCellText:h,getCellClassName:p}))))}function UV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-month-panel"),u=cc(e,"month"),d=Z(u,1),f=d[0],m=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),g=function(S,x){return r.addMonth(S,x)},b=function(S){var x=r.getMonth(S);return n.monthFormat?nr(S,{locale:n,format:n.monthFormat,generateConfig:r}):v[x]},y=function(){return H({},"".concat(t,"-cell-in-view"),!0)},h=a?function(C,S){var x=r.setDate(C,1),$=r.setMonth(x,r.getMonth(x)+1),w=r.addDate($,-1);return a(x,S)&&a(w,S)}:null,p=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(_l.Provider,{value:f},l.createElement("div",{className:c},l.createElement(uc,{superOffset:function(S){return r.addYear(o,S)},onChange:i,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},p),l.createElement(wd,Ce({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:b,getCellClassName:y}))))}function qV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),c=cc(e,"quarter"),u=Z(c,1),d=u[0],f=r.setMonth(o,0),m=function(h,p){return r.addMonth(h,p*3)},v=function(h){return nr(h,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},g=function(){return H({},"".concat(t,"-cell-in-view"),!0)},b=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(_l.Provider,{value:d},l.createElement("div",{className:s},l.createElement(uc,{superOffset:function(h){return r.addYear(o,h)},onChange:a,getStart:function(h){return r.setMonth(h,0)},getEnd:function(h){return r.setMonth(h,11)}},b),l.createElement(wd,Ce({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:m,getCellText:v,getCellClassName:g}))))}function GV(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,c="".concat(t,"-week-panel-row"),u=function(f){var m={};if(i){var v=Z(i,2),g=v[0],b=v[1],y=Yc(n,s,g,f),h=Yc(n,s,b,f);m["".concat(c,"-range-start")]=y,m["".concat(c,"-range-end")]=h,m["".concat(c,"-range-hover")]=!y&&!h&&yg(n,g,b,f)}return a&&(m["".concat(c,"-hover")]=a.some(function(p){return Yc(n,s,f,p)})),Q(c,H({},"".concat(c,"-selected"),!i&&Yc(n,s,o,f)),m)};return l.createElement(Cg,Ce({},e,{mode:"week",panelName:"week",rowClassName:u}))}function XV(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-year-panel"),u=cc(e,"year"),d=Z(u,1),f=d[0],m=function(w){var O=Math.floor(r.getYear(w)/10)*10;return r.setYear(w,O)},v=function(w){var O=m(w);return r.addYear(O,9)},g=m(o),b=v(o),y=r.addYear(g,-1),h=function(w,O){return r.addYear(w,O)},p=function(w){return nr(w,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function(w){return H({},"".concat(t,"-cell-in-view"),gl(r,w,g)||gl(r,w,b)||yg(r,g,b,w))},S=a?function($,w){var O=r.setMonth($,0),E=r.setDate(O,1),R=r.addYear(E,1),M=r.addDate(R,-1);return a(E,w)&&a(M,w)}:null,x=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},nr(g,{locale:n,format:n.yearFormat,generateConfig:r}),"-",nr(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(_l.Provider,{value:f},l.createElement("div",{className:c},l.createElement(uc,{superOffset:function(w){return r.addYear(o,w*10)},onChange:i,getStart:m,getEnd:v},x),l.createElement(wd,Ce({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:h,getCellText:p,getCellClassName:C}))))}var YV={date:Cg,datetime:WV,week:GV,month:UV,quarter:qV,year:XV,decade:KV,time:i6};function QV(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,c=s===void 0?0:s,u=e.multiple,d=e.defaultValue,f=e.value,m=e.onChange,v=e.onSelect,g=e.defaultPickerValue,b=e.pickerValue,y=e.onPickerValueChange,h=e.mode,p=e.onPanelChange,C=e.picker,S=C===void 0?"date":C,x=e.showTime,$=e.hoverValue,w=e.hoverRangeValue,O=e.cellRender,E=e.dateRender,R=e.monthCellRender,M=e.components,T=M===void 0?{}:M,_=e.hideHeader,I=((n=l.useContext(oa))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",N=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:N.current}});var P=VP(e),k=Z(P,4),D=k[0],z=k[1],j=k[2],L=k[3],F=BP(r,z),B=S==="date"&&x?"datetime":S,V=l.useMemo(function(){return WP(B,j,L,D,F)},[B,j,L,D,F]),W=o.getNow(),q=Jt(S,{value:h,postState:function(Re){return Re||"date"}}),J=Z(q,2),Y=J[0],ne=J[1],fe=Y==="date"&&V?"datetime":Y,oe=a6(o,r,B),G=Jt(d,{value:f}),ue=Z(G,2),le=ue[0],ae=ue[1],ee=l.useMemo(function(){var Se=Tl(le).filter(function(Re){return Re});return u?Se:Se.slice(0,1)},[le,u]),ge=zt(function(Se){ae(Se),m&&(Se===null||ee.length!==Se.length||ee.some(function(Re,we){return!Pr(o,r,Re,Se[we],B)}))&&(m==null||m(u?Se:Se[0]))}),ye=zt(function(Se){if(v==null||v(Se),Y===S){var Re=u?oe(ee,Se):[Se];ge(Re)}}),Ie=Jt(g||ee[0]||W,{value:b}),Ee=Z(Ie,2),A=Ee[0],X=Ee[1];l.useEffect(function(){ee[0]&&!b&&X(ee[0])},[ee[0]]);var re=function(Re,we){p==null||p(Re||b,we||Y)},me=function(Re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;X(Re),y==null||y(Re),we&&re(Re)},pe=function(Re,we){ne(Re),we&&me(we),re(we,Re)},ve=function(Re){if(ye(Re),me(Re),Y!==S){var we=["decade","year"],xe=[].concat(we,["month"]),Te={quarter:[].concat(we,["quarter"]),week:[].concat(_e(xe),["week"]),date:[].concat(_e(xe),["date"])},Ae=Te[S]||xe,ct=Ae.indexOf(Y),yt=Ae[ct+1];yt&&pe(yt,Re)}},Pe=l.useMemo(function(){var Se,Re;if(Array.isArray(w)){var we=Z(w,2);Se=we[0],Re=we[1]}else Se=w;return!Se&&!Re?null:(Se=Se||Re,Re=Re||Se,o.isAfter(Se,Re)?[Re,Se]:[Se,Re])},[w,o]),De=U1(O,E,R),Me=T[fe]||YV[fe]||Cg,Le=l.useContext(yi),Oe=l.useMemo(function(){return K(K({},Le),{},{hideHeader:_})},[Le,_]),be="".concat(I,"-panel"),ke=pg(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(yi.Provider,{value:Oe},l.createElement("div",{ref:N,tabIndex:c,className:Q(be,H({},"".concat(be,"-rtl"),a==="rtl"))},l.createElement(Me,Ce({},ke,{showTime:V,prefixCls:I,locale:F,generateConfig:o,onModeChange:pe,pickerValue:A,onPickerValueChange:function(Re){me(Re,!0)},value:ee[0],onSelect:ve,values:ee,cellRender:De,hoverRangeValue:Pe,hoverValue:$}))))}var tp=l.memo(l.forwardRef(QV));function JV(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(oa),d=u.prefixCls,f=u.generateConfig,m=l.useCallback(function(p,C){return Qc(f,t,p,C)},[f,t]),v=l.useMemo(function(){return m(r,1)},[r,m]),g=function(C){o(m(C,-1))},b={onCellDblClick:function(){a&&i()}},y=t==="time",h=K(K({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return s?h.hoverRangeValue=c:h.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(yi.Provider,{value:K(K({},b),{},{hideNext:!0})},l.createElement(tp,h)),l.createElement(yi.Provider,{value:K(K({},b),{},{hidePrev:!0})},l.createElement(tp,Ce({},h,{pickerValue:v,onPickerValueChange:g})))):l.createElement(yi.Provider,{value:K({},b)},l.createElement(tp,h))}function v2(e){return typeof e=="function"?e():e}function ZV(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(a,i){var s=a.label,c=a.value;return l.createElement("li",{key:i,onClick:function(){r(v2(c))},onMouseEnter:function(){o(v2(c))},onMouseLeave:function(){o(null)}},s)}))):null}function l6(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,c=s===void 0?[0,0,0]:s,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,v=e.onBlur,g=e.onPanelMouseDown,b=e.direction,y=e.value,h=e.onSelect,p=e.isInvalid,C=e.defaultOpenValue,S=e.onOk,x=e.onSubmit,$=l.useContext(oa),w=$.prefixCls,O="".concat(w,"-panel"),E=b==="rtl",R=l.useRef(null),M=l.useRef(null),T=l.useState(0),_=Z(T,2),I=_[0],N=_[1],P=l.useState(0),k=Z(P,2),D=k[0],z=k[1],j=l.useState(0),L=Z(j,2),F=L[0],B=L[1],V=function(ve){ve.width&&N(ve.width)},W=Z(c,3),q=W[0],J=W[1],Y=W[2],ne=l.useState(0),fe=Z(ne,2),oe=fe[0],G=fe[1];l.useEffect(function(){G(10)},[q]),l.useEffect(function(){if(a&&M.current){var pe,ve=((pe=R.current)===null||pe===void 0?void 0:pe.offsetWidth)||0,Pe=M.current.getBoundingClientRect();if(!Pe.height||Pe.right<0){G(function(Oe){return Math.max(0,Oe-1)});return}var De=(E?J-ve:q)-Pe.left;if(B(De),I&&I<Y){var Me=E?Pe.right-(J-ve+I):q+ve-Pe.left-I,Le=Math.max(0,Me);z(Le)}else z(0)}},[oe,E,I,q,J,Y,a]);function ue(pe){return pe.filter(function(ve){return ve})}var le=l.useMemo(function(){return ue(Tl(y))},[y]),ae=r==="time"&&!le.length,ee=l.useMemo(function(){return ae?ue([C]):le},[ae,le,C]),ge=ae?C:le,ye=l.useMemo(function(){return ee.length?ee.some(function(pe){return p(pe)}):!0},[ee,p]),Ie=function(){ae&&h(C),S(),x()},Ee=l.createElement("div",{className:"".concat(w,"-panel-layout")},l.createElement(ZV,{prefixCls:w,presets:u,onClick:f,onHover:d}),l.createElement("div",null,l.createElement(JV,Ce({},e,{value:ge})),l.createElement(LV,Ce({},e,{showNow:i?!1:o,invalid:ye,onSubmit:Ie}))));t&&(Ee=t(Ee));var A="".concat(O,"-container"),X="marginLeft",re="marginRight",me=l.createElement("div",{onMouseDown:g,tabIndex:-1,className:Q(A,"".concat(w,"-").concat(n,"-panel-container")),style:H(H({},E?re:X,D),E?X:re,"auto"),onFocus:m,onBlur:v},Ee);return a&&(me=l.createElement("div",{onMouseDown:g,ref:M,className:Q("".concat(w,"-range-wrapper"),"".concat(w,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:R,className:"".concat(w,"-range-arrow"),style:{left:F}}),l.createElement(gr,{onResize:V},me))),me}function s6(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,v=e.onInputChange,g=e.onInvalid,b=e.open,y=e.onOpenChange,h=e.onKeyDown,p=e.onChange,C=e.activeHelp,S=e.name,x=e.autoComplete,$=e.id,w=e.value,O=e.invalid,E=e.placeholder,R=e.disabled,M=e.activeIndex,T=e.allHelp,_=e.picker,I=function(F,B){var V=o.locale.parse(a.locale,F,[B]);return V&&o.isValidate(V)?V:null},N=n[0],P=l.useCallback(function(L){return nr(L,{locale:a,format:N,generateConfig:o})},[a,o,N]),k=l.useMemo(function(){return w.map(P)},[w,P]),D=l.useMemo(function(){var L=_==="time"?8:10,F=typeof N=="function"?N(o.getNow()).length:N.length;return Math.max(L,F)+2},[N,_,o]),z=function(F){for(var B=0;B<n.length;B+=1){var V=n[B];if(typeof V=="string"){var W=I(F,V);if(W)return W}}return!1},j=function(F){function B(q){return F!==void 0?q[F]:q}var V=ur(e,{aria:!0,data:!0}),W=K(K({},V),{},{format:r,validateFormat:function(J){return!!z(J)},preserveInvalidOnBlur:i,readOnly:s,required:c,"aria-required":u,name:S,autoComplete:x,size:D,id:B($),value:B(k)||"",invalid:B(O),placeholder:B(E),active:M===F,helped:T||C&&M===F,disabled:B(R),onFocus:function(J){f(J,F)},onBlur:function(J){m(J,F)},onSubmit:d,onChange:function(J){v();var Y=z(J);if(Y){g(!1,F),p(Y,F);return}g(!!J,F)},onHelp:function(){y(!0,{index:F})},onKeyDown:function(J){var Y=!1;if(h==null||h(J,function(){Y=!0}),!J.defaultPrevented&&!Y)switch(J.key){case"Escape":y(!1,{index:F});break;case"Enter":b||y(!0);break}}},t==null?void 0:t({valueTexts:k}));return Object.keys(W).forEach(function(q){W[q]===void 0&&delete W[q]}),W};return[j,P]}var eW=["onMouseEnter","onMouseLeave"];function c6(e){return l.useMemo(function(){return pg(e,eW)},[e])}var tW=["icon","type"],nW=["onClear"];function Sg(e){var t=e.icon,n=e.type,r=Rt(e,tW),o=l.useContext(oa),a=o.prefixCls;return t?l.createElement("span",Ce({className:"".concat(a,"-").concat(n)},r),t):null}function ky(e){var t=e.onClear,n=Rt(e,nW);return l.createElement(Sg,Ce({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var np=["YYYY","MM","DD","HH","mm","ss","SSS"],g2="顧",rW=function(){function e(t){En(this,e),H(this,"format",void 0),H(this,"maskFormat",void 0),H(this,"cells",void 0),H(this,"maskCells",void 0),this.format=t;var n=np.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return g2.repeat(s.length)});var o=new RegExp("(".concat(np.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var c=np.includes(s),u=i,d=i+s.length;return i=d,{text:s,mask:c,start:u,end:d}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return On(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,a=r.end;return[o||0,a||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],a=n[r];if(!a||o!==g2&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var i=this.maskCells[a],s=i.start,c=i.end;if(n>=s&&n<=c)return a;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u<r&&(r=u,o=a)}return o}}]),e}();function oW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var aW=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],jy=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,m=e.onKeyDown,v=e.preserveInvalidOnBlur,g=v===void 0?!1:v,b=e.invalid,y=e.clearIcon,h=Rt(e,aW),p=e.value,C=e.onFocus,S=e.onBlur,x=e.onMouseUp,$=l.useContext(oa),w=$.prefixCls,O=$.input,E=O===void 0?"input":O,R="".concat(w,"-input"),M=l.useState(!1),T=Z(M,2),_=T[0],I=T[1],N=l.useState(p),P=Z(N,2),k=P[0],D=P[1],z=l.useState(""),j=Z(z,2),L=j[0],F=j[1],B=l.useState(null),V=Z(B,2),W=V[0],q=V[1],J=l.useState(null),Y=Z(J,2),ne=Y[0],fe=Y[1],oe=k||"";l.useEffect(function(){D(p)},[p]);var G=l.useRef(),ue=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:G.current,inputElement:ue.current,focus:function(Se){ue.current.focus(Se)},blur:function(){ue.current.blur()}}});var le=l.useMemo(function(){return new rW(i||"")},[i]),ae=l.useMemo(function(){return u?[0,0]:le.getSelection(W)},[le,W,u]),ee=Z(ae,2),ge=ee[0],ye=ee[1],Ie=function(Se){Se&&Se!==i&&Se!==p&&d()},Ee=zt(function(ke){s(ke)&&c(ke),D(ke),Ie(ke)}),A=function(Se){if(!i){var Re=Se.target.value;Ie(Re),D(Re),c(Re)}},X=function(Se){var Re=Se.clipboardData.getData("text");s(Re)&&Ee(Re)},re=l.useRef(!1),me=function(){re.current=!0},pe=function(Se){var Re=Se.target,we=Re.selectionStart,xe=le.getMaskCellIndex(we);q(xe),fe({}),x==null||x(Se),re.current=!1},ve=function(Se){I(!0),q(0),F(""),C(Se)},Pe=function(Se){S(Se)},De=function(Se){I(!1),Pe(Se)};X1(n,function(){!n&&!g&&D(p)});var Me=function(Se){Se.key==="Enter"&&s(oe)&&f(),m==null||m(Se)},Le=function(Se){Me(Se);var Re=Se.key,we=null,xe=null,Te=ye-ge,Ae=i.slice(ge,ye),ct=function(nt){q(function(Ue){var Qe=Ue+nt;return Qe=Math.max(Qe,0),Qe=Math.min(Qe,le.size()-1),Qe})},yt=function(nt){var Ue=oW(Ae),Qe=Z(Ue,3),wt=Qe[0],It=Qe[1],Je=Qe[2],at=oe.slice(ge,ye),ie=Number(at);if(isNaN(ie))return String(Je||(nt>0?wt:It));var se=ie+nt,de=It-wt+1;return String(wt+(de+se-wt)%de)};switch(Re){case"Backspace":case"Delete":we="",xe=Ae;break;case"ArrowLeft":we="",ct(-1);break;case"ArrowRight":we="",ct(1);break;case"ArrowUp":we="",xe=yt(1);break;case"ArrowDown":we="",xe=yt(-1);break;default:isNaN(Number(Re))||(we=L+Re,xe=we);break}if(we!==null&&(F(we),we.length>=Te&&(ct(1),F(""))),xe!==null){var Ve=oe.slice(0,ge)+K1(xe,Te)+oe.slice(ye);Ee(Ve.slice(0,i.length))}fe({})},Oe=l.useRef();Dt(function(){if(!(!_||!i||re.current)){if(!le.match(oe)){Ee(i);return}return ue.current.setSelectionRange(ge,ye),Oe.current=jt(function(){ue.current.setSelectionRange(ge,ye)}),function(){jt.cancel(Oe.current)}}},[le,i,_,oe,W,ge,ye,ne,Ee]);var be=i?{onFocus:ve,onBlur:De,onKeyDown:Le,onMouseDown:me,onMouseUp:pe,onPaste:X}:{};return l.createElement("div",{ref:G,className:Q(R,H(H({},"".concat(R,"-active"),n&&o),"".concat(R,"-placeholder"),u))},l.createElement(E,Ce({ref:ue,"aria-invalid":b,autoComplete:"off"},h,{onKeyDown:Me,onBlur:Pe},be,{value:oe,onChange:A})),l.createElement(Sg,{type:"suffix",icon:a}),y)}),iW=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],lW=["index"];function sW(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,v=e.onClick,g=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,h=e.invalid;e.inputReadOnly;var p=e.direction;e.onOpenChange;var C=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,$=e.tabIndex,w=Rt(e,iW),O=p==="rtl",E=l.useContext(oa),R=E.prefixCls,M=l.useMemo(function(){if(typeof n=="string")return[n];var ne=n||{};return[ne.start,ne.end]},[n]),T=l.useRef(),_=l.useRef(),I=l.useRef(),N=function(fe){var oe;return(oe=[_,I][fe])===null||oe===void 0?void 0:oe.current};l.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(fe){if(ft(fe)==="object"){var oe,G=fe||{},ue=G.index,le=ue===void 0?0:ue,ae=Rt(G,lW);(oe=N(le))===null||oe===void 0||oe.focus(ae)}else{var ee;(ee=N(fe??0))===null||ee===void 0||ee.focus()}},blur:function(){var fe,oe;(fe=N(0))===null||fe===void 0||fe.blur(),(oe=N(1))===null||oe===void 0||oe.blur()}}});var P=c6(w),k=l.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),D=s6(K(K({},e),{},{id:M,placeholder:k})),z=Z(D,1),j=z[0],L=l.useState({position:"absolute",width:0}),F=Z(L,2),B=F[0],V=F[1],W=zt(function(){var ne=N(c);if(ne){var fe=ne.nativeElement.getBoundingClientRect(),oe=T.current.getBoundingClientRect(),G=fe.left-oe.left;V(function(ue){return K(K({},ue),{},{width:fe.width,left:G})}),C([fe.left,fe.right,oe.width])}});l.useEffect(function(){W()},[c]);var q=o&&(b[0]&&!y[0]||b[1]&&!y[1]),J=x&&!y[0],Y=x&&!J&&!y[1];return l.createElement(gr,{onResize:W},l.createElement("div",Ce({},P,{className:Q(R,"".concat(R,"-range"),H(H(H(H({},"".concat(R,"-focused"),u),"".concat(R,"-disabled"),y.every(function(ne){return ne})),"".concat(R,"-invalid"),h.some(function(ne){return ne})),"".concat(R,"-rtl"),O),f),style:m,ref:T,onClick:v,onMouseDown:function(fe){var oe=fe.target;oe!==_.current.inputElement&&oe!==I.current.inputElement&&fe.preventDefault(),S==null||S(fe)}}),r&&l.createElement("div",{className:"".concat(R,"-prefix")},r),l.createElement(jy,Ce({ref:_},j(0),{autoFocus:J,tabIndex:$,"date-range":"start"})),l.createElement("div",{className:"".concat(R,"-range-separator")},s),l.createElement(jy,Ce({ref:I},j(1),{autoFocus:Y,tabIndex:$,"date-range":"end"})),l.createElement("div",{className:"".concat(R,"-active-bar"),style:B}),l.createElement(Sg,{type:"suffix",icon:a}),q&&l.createElement(ky,{icon:o,onClear:g})))}var cW=l.forwardRef(sW);function h2(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function pf(e){return e===1?"end":"start"}function uW(e,t){var n=qP(e,function(){var Ft=e.disabled,Ge=e.allowEmpty,dt=h2(Ft,!1),At=h2(Ge,!1);return{disabled:dt,allowEmpty:At}}),r=Z(n,6),o=r[0],a=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=o.prefixCls,f=o.styles,m=o.classNames,v=o.defaultValue,g=o.value,b=o.needConfirm,y=o.onKeyDown,h=o.disabled,p=o.allowEmpty,C=o.disabledDate,S=o.minDate,x=o.maxDate,$=o.defaultOpen,w=o.open,O=o.onOpenChange,E=o.locale,R=o.generateConfig,M=o.picker,T=o.showNow,_=o.showToday,I=o.showTime,N=o.mode,P=o.onPanelChange,k=o.onCalendarChange,D=o.onOk,z=o.defaultPickerValue,j=o.pickerValue,L=o.onPickerValueChange,F=o.inputReadOnly,B=o.suffixIcon,V=o.onFocus,W=o.onBlur,q=o.presets,J=o.ranges,Y=o.components,ne=o.cellRender,fe=o.dateRender,oe=o.monthCellRender,G=o.onClick,ue=XP(t),le=GP(w,$,h,O),ae=Z(le,2),ee=ae[0],ge=ae[1],ye=function(Ge,dt){(h.some(function(At){return!At})||!Ge)&&ge(Ge,dt)},Ie=n6(R,E,s,!0,!1,v,g,k,D),Ee=Z(Ie,5),A=Ee[0],X=Ee[1],re=Ee[2],me=Ee[3],pe=Ee[4],ve=re(),Pe=QP(h,p,ee),De=Z(Pe,9),Me=De[0],Le=De[1],Oe=De[2],be=De[3],ke=De[4],Se=De[5],Re=De[6],we=De[7],xe=De[8],Te=function(Ge,dt){Le(!0),V==null||V(Ge,{range:pf(dt??be)})},Ae=function(Ge,dt){Le(!1),W==null||W(Ge,{range:pf(dt??be)})},ct=l.useMemo(function(){if(!I)return null;var Ft=I.disabledTime,Ge=Ft?function(dt){var At=pf(be),tn=jP(ve,Re,be);return Ft(dt,At,{from:tn})}:void 0;return K(K({},I),{},{disabledTime:Ge})},[I,be,ve,Re]),yt=Jt([M,M],{value:N}),Ve=Z(yt,2),Xe=Ve[0],nt=Ve[1],Ue=Xe[be]||M,Qe=Ue==="date"&&ct?"datetime":Ue,wt=Qe===M&&Qe!=="time",It=o6(M,Ue,T,_,!0),Je=r6(o,A,X,re,me,h,s,Me,ee,u),at=Z(Je,2),ie=at[0],se=at[1],de=DV(ve,h,Re,R,E,C),he=LP(ve,u,p),$e=Z(he,2),ze=$e[0],Be=$e[1],He=JP(R,E,ve,Xe,ee,be,a,wt,z,j,ct==null?void 0:ct.defaultOpenValue,L,S,x),je=Z(He,2),Ne=je[0],Fe=je[1],Ye=zt(function(Ft,Ge,dt){var At=fu(Xe,be,Ge);if((At[0]!==Xe[0]||At[1]!==Xe[1])&&nt(At),P&&dt!==!1){var tn=_e(ve);Ft&&(tn[be]=Ft),P(tn,At)}}),ut=function(Ge,dt){return fu(ve,dt,Ge)},$t=function(Ge,dt){var At=ve;Ge&&(At=ut(Ge,be)),we(be);var tn=Se(At);me(At),ie(be,tn===null),tn===null?ye(!1,{force:!0}):dt||ue.current.focus({index:tn})},Mt=function(Ge){var dt,At=Ge.target.getRootNode();if(!ue.current.nativeElement.contains((dt=At.activeElement)!==null&&dt!==void 0?dt:document.activeElement)){var tn=h.findIndex(function(Cn){return!Cn});tn>=0&&ue.current.focus({index:tn})}ye(!0),G==null||G(Ge)},lt=function(){se(null),ye(!1,{force:!0})},Tt=l.useState(null),We=Z(Tt,2),tt=We[0],bt=We[1],it=l.useState(null),st=Z(it,2),rt=st[0],Et=st[1],kt=l.useMemo(function(){return rt||ve},[ve,rt]);l.useEffect(function(){ee||Et(null)},[ee]);var Ze=l.useState([0,0,0]),Ke=Z(Ze,2),vt=Ke[0],Yt=Ke[1],rn=YP(q,J),Ht=function(Ge){Et(Ge),bt("preset")},un=function(Ge){var dt=se(Ge);dt&&ye(!1,{force:!0})},mn=function(Ge){$t(Ge)},Mn=function(Ge){Et(Ge?ut(Ge,be):null),bt("cell")},An=function(Ge){ye(!0),Te(Ge)},Jn=function(){Oe("panel")},Hn=function(Ge){var dt=fu(ve,be,Ge);me(dt),!b&&!i&&a===Qe&&$t(Ge)},qt=function(){ye(!1)},Ct=U1(ne,fe,oe,pf(be)),ht=ve[be]||null,Kt=zt(function(Ft){return u(Ft,{activeIndex:be})}),mt=l.useMemo(function(){var Ft=ur(o,!1),Ge=on(o,[].concat(_e(Object.keys(Ft)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ge},[o]),gt=l.createElement(l6,Ce({},mt,{showNow:It,showTime:ct,range:!0,multiplePanel:wt,activeInfo:vt,disabledDate:de,onFocus:An,onBlur:Ae,onPanelMouseDown:Jn,picker:M,mode:Ue,internalMode:Qe,onPanelChange:Ye,format:c,value:ht,isInvalid:Kt,onChange:null,onSelect:Hn,pickerValue:Ne,defaultOpenValue:Tl(I==null?void 0:I.defaultOpenValue)[be],onPickerValueChange:Fe,hoverValue:kt,onHover:Mn,needConfirm:b,onSubmit:$t,onOk:pe,presets:rn,onPresetHover:Ht,onPresetSubmit:un,onNow:mn,cellRender:Ct})),Vt=function(Ge,dt){var At=ut(Ge,dt);me(At)},an=function(){Oe("input")},vn=function(Ge,dt){var At=Re.length,tn=Re[At-1];if(At&&tn!==dt&&b&&!p[tn]&&!xe(tn)&&ve[tn]){ue.current.focus({index:tn});return}Oe("input"),ye(!0,{inherit:!0}),be!==dt&&ee&&!b&&i&&$t(null,!0),ke(dt),Te(Ge,dt)},Vn=function(Ge,dt){if(ye(!1),!b&&Oe()==="input"){var At=Se(ve);ie(be,At===null)}Ae(Ge,dt)},Nn=function(Ge,dt){Ge.key==="Tab"&&$t(null,!0),y==null||y(Ge,dt)},Wn=l.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:R,button:Y.button,input:Y.input}},[d,E,R,Y.button,Y.input]);return Dt(function(){ee&&be!==void 0&&Ye(null,M,!1)},[ee,be,M]),Dt(function(){var Ft=Oe();!ee&&Ft==="input"&&(ye(!1),$t(null,!0)),!ee&&i&&!b&&Ft==="panel"&&(ye(!0),$t())},[ee]),l.createElement(oa.Provider,{value:Wn},l.createElement(DP,Ce({},zP(o),{popupElement:gt,popupStyle:f.popup,popupClassName:m.popup,visible:ee,onClose:qt,range:!0}),l.createElement(cW,Ce({},o,{ref:ue,suffixIcon:B,activeIndex:Me||ee?be:null,activeHelp:!!rt,allHelp:!!rt&&tt==="preset",focused:Me,onFocus:vn,onBlur:Vn,onKeyDown:Nn,onSubmit:$t,value:kt,maskFormat:c,onChange:Vt,onInputChange:an,format:s,inputReadOnly:F,disabled:h,open:ee,onOpenChange:ye,onClick:Mt,onClear:lt,invalid:ze,onInvalid:Be,onActiveInfo:Yt}))))}var dW=l.forwardRef(uW);function fW(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function v(y,h){return l.createElement("span",{className:Q("".concat(f,"-item")),title:typeof y=="string"?y:null},l.createElement("span",{className:"".concat(f,"-item-content")},y),!s&&h&&l.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:h,className:"".concat(f,"-item-remove")},a))}function g(y){var h=i(y),p=function(S){S&&S.stopPropagation(),r(y)};return v(h,p)}function b(y){var h="+ ".concat(y.length," ...");return v(h)}return l.createElement("div",{className:d},l.createElement(Xo,{prefixCls:m,data:n,renderItem:g,renderRest:b,itemKey:function(h){return i(h)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var mW=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function vW(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,v=e.onClear,g=e.internalPicker,b=e.value,y=e.onChange,h=e.onSubmit;e.onInputChange;var p=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,x=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var w=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,E=e.tabIndex,R=e.removeIcon,M=Rt(e,mW),T=$==="rtl",_=l.useContext(oa),I=_.prefixCls,N=l.useRef(),P=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(J){var Y;(Y=P.current)===null||Y===void 0||Y.focus(J)},blur:function(){var J;(J=P.current)===null||J===void 0||J.blur()}}});var k=c6(M),D=function(J){y([J])},z=function(J){var Y=b.filter(function(ne){return ne&&!Pr(c,s,ne,J,g)});y(Y),n||h()},j=s6(K(K({},e),{},{onChange:D}),function(q){var J=q.valueTexts;return{value:J[0]||"",active:i}}),L=Z(j,2),F=L[0],B=L[1],V=!!(o&&b.length&&!S),W=p?l.createElement(l.Fragment,null,l.createElement(fW,{prefixCls:I,value:b,onRemove:z,formatDate:B,maxTagCount:C,disabled:S,removeIcon:R,placeholder:u}),l.createElement("input",{className:"".concat(I,"-multiple-input"),value:b.map(B).join(","),ref:P,readOnly:!0,autoFocus:O,tabIndex:E}),l.createElement(Sg,{type:"suffix",icon:a}),V&&l.createElement(ky,{icon:o,onClear:v})):l.createElement(jy,Ce({ref:P},F(),{autoFocus:O,tabIndex:E,suffixIcon:a,clearIcon:V&&l.createElement(ky,{icon:o,onClear:v}),showActiveCls:!1}));return l.createElement("div",Ce({},k,{className:Q(I,H(H(H(H(H({},"".concat(I,"-multiple"),p),"".concat(I,"-focused"),i),"".concat(I,"-disabled"),S),"".concat(I,"-invalid"),x),"".concat(I,"-rtl"),T),d),style:f,ref:N,onClick:m,onMouseDown:function(J){var Y,ne=J.target;ne!==((Y=P.current)===null||Y===void 0?void 0:Y.inputElement)&&J.preventDefault(),w==null||w(J)}}),r&&l.createElement("div",{className:"".concat(I,"-prefix")},r),W)}var gW=l.forwardRef(vW);function hW(e,t){var n=qP(e),r=Z(n,6),o=r[0],a=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=o,f=d.prefixCls,m=d.styles,v=d.classNames,g=d.order,b=d.defaultValue,y=d.value,h=d.needConfirm,p=d.onChange,C=d.onKeyDown,S=d.disabled,x=d.disabledDate,$=d.minDate,w=d.maxDate,O=d.defaultOpen,E=d.open,R=d.onOpenChange,M=d.locale,T=d.generateConfig,_=d.picker,I=d.showNow,N=d.showToday,P=d.showTime,k=d.mode,D=d.onPanelChange,z=d.onCalendarChange,j=d.onOk,L=d.multiple,F=d.defaultPickerValue,B=d.pickerValue,V=d.onPickerValueChange,W=d.inputReadOnly,q=d.suffixIcon,J=d.removeIcon,Y=d.onFocus,ne=d.onBlur,fe=d.presets,oe=d.components,G=d.cellRender,ue=d.dateRender,le=d.monthCellRender,ae=d.onClick,ee=XP(t);function ge(mt){return mt===null?null:L?mt:mt[0]}var ye=a6(T,M,a),Ie=GP(E,O,[S],R),Ee=Z(Ie,2),A=Ee[0],X=Ee[1],re=function(gt,Vt,an){if(z){var vn=K({},an);delete vn.range,z(ge(gt),ge(Vt),vn)}},me=function(gt){j==null||j(ge(gt))},pe=n6(T,M,s,!1,g,b,y,re,me),ve=Z(pe,5),Pe=ve[0],De=ve[1],Me=ve[2],Le=ve[3],Oe=ve[4],be=Me(),ke=QP([S]),Se=Z(ke,4),Re=Se[0],we=Se[1],xe=Se[2],Te=Se[3],Ae=function(gt){we(!0),Y==null||Y(gt,{})},ct=function(gt){we(!1),ne==null||ne(gt,{})},yt=Jt(_,{value:k}),Ve=Z(yt,2),Xe=Ve[0],nt=Ve[1],Ue=Xe==="date"&&P?"datetime":Xe,Qe=o6(_,Xe,I,N),wt=p&&function(mt,gt){p(ge(mt),ge(gt))},It=r6(K(K({},o),{},{onChange:wt}),Pe,De,Me,Le,[],s,Re,A,u),Je=Z(It,2),at=Je[1],ie=LP(be,u),se=Z(ie,2),de=se[0],he=se[1],$e=l.useMemo(function(){return de.some(function(mt){return mt})},[de]),ze=function(gt,Vt){if(V){var an=K(K({},Vt),{},{mode:Vt.mode[0]});delete an.range,V(gt[0],an)}},Be=JP(T,M,be,[Xe],A,Te,a,!1,F,B,Tl(P==null?void 0:P.defaultOpenValue),ze,$,w),He=Z(Be,2),je=He[0],Ne=He[1],Fe=zt(function(mt,gt,Vt){if(nt(gt),D&&Vt!==!1){var an=mt||be[be.length-1];D(an,gt)}}),Ye=function(){at(Me()),X(!1,{force:!0})},ut=function(gt){!S&&!ee.current.nativeElement.contains(document.activeElement)&&ee.current.focus(),X(!0),ae==null||ae(gt)},$t=function(){at(null),X(!1,{force:!0})},Mt=l.useState(null),lt=Z(Mt,2),Tt=lt[0],We=lt[1],tt=l.useState(null),bt=Z(tt,2),it=bt[0],st=bt[1],rt=l.useMemo(function(){var mt=[it].concat(_e(be)).filter(function(gt){return gt});return L?mt:mt.slice(0,1)},[be,it,L]),Et=l.useMemo(function(){return!L&&it?[it]:be.filter(function(mt){return mt})},[be,it,L]);l.useEffect(function(){A||st(null)},[A]);var kt=YP(fe),Ze=function(gt){st(gt),We("preset")},Ke=function(gt){var Vt=L?ye(Me(),gt):[gt],an=at(Vt);an&&!L&&X(!1,{force:!0})},vt=function(gt){Ke(gt)},Yt=function(gt){st(gt),We("cell")},rn=function(gt){X(!0),Ae(gt)},Ht=function(gt){if(xe("panel"),!(L&&Ue!==_)){var Vt=L?ye(Me(),gt):[gt];Le(Vt),!h&&!i&&a===Ue&&Ye()}},un=function(){X(!1)},mn=U1(G,ue,le),Mn=l.useMemo(function(){var mt=ur(o,!1),gt=on(o,[].concat(_e(Object.keys(mt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return K(K({},gt),{},{multiple:o.multiple})},[o]),An=l.createElement(l6,Ce({},Mn,{showNow:Qe,showTime:P,disabledDate:x,onFocus:rn,onBlur:ct,picker:_,mode:Xe,internalMode:Ue,onPanelChange:Fe,format:c,value:be,isInvalid:u,onChange:null,onSelect:Ht,pickerValue:je,defaultOpenValue:P==null?void 0:P.defaultOpenValue,onPickerValueChange:Ne,hoverValue:rt,onHover:Yt,needConfirm:h,onSubmit:Ye,onOk:Oe,presets:kt,onPresetHover:Ze,onPresetSubmit:Ke,onNow:vt,cellRender:mn})),Jn=function(gt){Le(gt)},Hn=function(){xe("input")},qt=function(gt){xe("input"),X(!0,{inherit:!0}),Ae(gt)},Ct=function(gt){X(!1),ct(gt)},ht=function(gt,Vt){gt.key==="Tab"&&Ye(),C==null||C(gt,Vt)},Kt=l.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:T,button:oe.button,input:oe.input}},[f,M,T,oe.button,oe.input]);return Dt(function(){A&&Te!==void 0&&Fe(null,_,!1)},[A,Te,_]),Dt(function(){var mt=xe();!A&&mt==="input"&&(X(!1),Ye()),!A&&i&&!h&&mt==="panel"&&Ye()},[A]),l.createElement(oa.Provider,{value:Kt},l.createElement(DP,Ce({},zP(o),{popupElement:An,popupStyle:m.popup,popupClassName:v.popup,visible:A,onClose:un}),l.createElement(gW,Ce({},o,{ref:ee,suffixIcon:q,removeIcon:J,activeHelp:!!it,allHelp:!!it&&Tt==="preset",focused:Re,onFocus:qt,onBlur:Ct,onKeyDown:ht,onSubmit:Ye,value:Et,maskFormat:c,onChange:Jn,onInputChange:Hn,internalPicker:a,format:s,inputReadOnly:W,disabled:S,open:A,onOpenChange:X,onClick:ut,onClear:$t,invalid:$e,onInvalid:function(gt){he(gt,0)}}))))}var pW=l.forwardRef(hW);const u6=l.createContext(null),yW=u6.Provider,d6=l.createContext(null),bW=d6.Provider;var CW=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f6=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,g=Rt(e,CW),b=l.useRef(null),y=l.useRef(null),h=Jt(u,{value:i}),p=Z(h,2),C=p[0],S=p[1];l.useImperativeHandle(t,function(){return{focus:function(O){var E;(E=b.current)===null||E===void 0||E.focus(O)},blur:function(){var O;(O=b.current)===null||O===void 0||O.blur()},input:b.current,nativeElement:y.current}});var x=Q(r,o,H(H({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),s)),$=function(O){s||("checked"in e||S(O.target.checked),v==null||v({target:K(K({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return l.createElement("span",{className:x,title:m,style:a,ref:y},l.createElement("input",Ce({},g,{className:"".concat(r,"-input"),ref:b,onChange:$,disabled:s,checked:!!C,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});function m6(e){const t=ce.useRef(null),n=()=>{jt.cancel(t.current),t.current=null};return[()=>{n(),t.current=jt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const SW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},xW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:g,lineType:b,radioColor:y,radioBgColor:h,calc:p}=e,C=`${t}-inner`,x=p(o).sub(p(4).mul(2)),$=p(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${U(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
269
|
-
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:ta(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:p(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:p(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${p(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},wW=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:v,paddingXS:g,borderRadius:b,borderRadiusSM:y,borderRadiusLG:h,buttonCheckedBg:p,buttonSolidCheckedColor:C,colorTextDisabled:S,colorBgContainerDisabled:x,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:E,colorPrimaryActive:R,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:_,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:U(I(n).sub(I(o).mul(2)).equal()),background:d,border:`${U(o)} ${a} ${i}`,borderBlockStartWidth:I(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:I(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${U(o)} ${a} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:U(I(m).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},[`${r}-group-small &`]:{height:v,paddingInline:I(g).sub(o).equal(),paddingBlock:0,lineHeight:U(I(v).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":ta(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:p,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:M,borderColor:M,"&:hover":{color:C,background:T,borderColor:T},"&:active":{color:C,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:$,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},$W=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:g}=e,b=4,y=a,h=t?y-b*2:y-(b+o)*2;return{radioSize:y,dotSize:h,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:g,radioBgColor:t?s:f}},v6=Ut("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${U(n)} ${t}`,a=Bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[SW(a),xW(a),wW(a)]},$W,{unitless:{radioSize:!0,dotSize:!0}});var EW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OW=(e,t)=>{var n,r;const o=l.useContext(u6),a=l.useContext(d6),{getPrefixCls:i,direction:s,radio:c}=l.useContext(xt),u=l.useRef(null),d=ar(t,u),{isFormItemInput:f}=l.useContext(or),m=P=>{var k,D;(k=e.onChange)===null||k===void 0||k.call(e,P),(D=o==null?void 0:o.onChange)===null||D===void 0||D.call(o,P)},{prefixCls:v,className:g,rootClassName:b,children:y,style:h,title:p}=e,C=EW(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",v),x=((o==null?void 0:o.optionType)||a)==="button",$=x?`${S}-button`:S,w=Bn(S),[O,E,R]=v6(S,w),M=Object.assign({},C),T=l.useContext(Nr);o&&(M.name=o.name,M.onChange=m,M.checked=e.value===o.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:o.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:T;const _=Q(`${$}-wrapper`,{[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:M.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,g,b,E,R,w),[I,N]=m6(M.onClick);return O(l.createElement(vd,{component:"Radio",disabled:M.disabled},l.createElement("label",{className:_,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:p,onClick:I},l.createElement(f6,Object.assign({},M,{className:Q(M.className,{[Vv]:!x}),type:"radio",prefixCls:$,ref:d,onClick:N})),y!==void 0?l.createElement("span",{className:`${$}-label`},y):null)))},Gm=l.forwardRef(OW),RW=["parentNode"],IW="form_item";function mu(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function g6(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:RW.includes(n)?`${IW}_${n}`:n}function h6(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var PW=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 zy(e){return mu(e).join("_")}function p2(e,t){const n=t.getFieldInstance(e),r=dd(n);if(r)return r;const o=g6(mu(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function p6(e){const[t]=P1(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=zy(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=PW(a,["focus"]),c=p2(o,r);c&&(wj(c,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=p2(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=zy(o);return n.current[a]}}),[e,t]);return[r]}const MW=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(xt),{name:o}=l.useContext(or),a=pd(zy(o)),{prefixCls:i,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:v,style:g,id:b,optionType:y,name:h=a,defaultValue:p,value:C,block:S=!1,onChange:x,onMouseEnter:$,onMouseLeave:w,onFocus:O,onBlur:E}=e,[R,M]=Jt(p,{value:C}),T=l.useCallback(B=>{const V=R,W=B.target.value;"value"in e||M(W),W!==V&&(x==null||x(B))},[R,M,x]),_=n("radio",i),I=`${_}-group`,N=Bn(_),[P,k,D]=v6(_,N);let z=m;u&&u.length>0&&(z=u.map(B=>typeof B=="string"||typeof B=="number"?l.createElement(Gm,{key:B.toString(),prefixCls:_,disabled:f,value:B,checked:R===B},B):l.createElement(Gm,{key:`radio-group-value-options-${B.value}`,prefixCls:_,disabled:B.disabled||f,value:B.value,checked:R===B.value,title:B.title,style:B.style,className:B.className,id:B.id,required:B.required},B.label)));const j=ir(v),L=Q(I,`${I}-${d}`,{[`${I}-${j}`]:j,[`${I}-rtl`]:r==="rtl",[`${I}-block`]:S},s,c,k,D,N),F=l.useMemo(()=>({onChange:T,value:R,disabled:f,name:h,optionType:y,block:S}),[T,R,f,h,y,S]);return P(l.createElement("div",Object.assign({},ur(e,{aria:!0,data:!0}),{className:L,style:g,onMouseEnter:$,onMouseLeave:w,onFocus:O,onBlur:E,id:b,ref:t}),l.createElement(yW,{value:F},z)))}),NW=l.memo(MW);var TW=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 _W=(e,t)=>{const{getPrefixCls:n}=l.useContext(xt),{prefixCls:r}=e,o=TW(e,["prefixCls"]),a=n("radio",r);return l.createElement(bW,{value:"button"},l.createElement(Gm,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},DW=l.forwardRef(_W),$d=Gm;$d.Button=DW;$d.Group=NW;$d.__ANT_RADIO=!0;function Dl(e){return Bt(e,{inputAffixPadding:e.paddingXXS})}const kl=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:g,controlOutlineWidth:b,controlOutline:y,colorErrorOutline:h,colorWarningOutline:p,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:$}=e,w=S||n,O=$||w,E=x||s,R=Math.round((t-w*r)/2*10)/10-o,M=Math.round((a-O*r)/2*10)/10-o,T=Math.ceil((i-E*c)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(T,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:v,activeShadow:`0 0 0 ${b}px ${y}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${p}`,hoverBg:C,activeBg:C,inputFontSize:w,inputFontSizeLG:E,inputFontSizeSM:O}},kW=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),xg=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({},kW(Bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Q1=(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}}),y2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Q1(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),J1=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xg(e))}),y2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),y2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),b2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),y6=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},b2(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),b2(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},xg(e))}})}),Z1=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},b6=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},C2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},b6(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b6(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xg(e))}),C2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),C2(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),S2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),C6=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},S2(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),S2(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:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),S6=(e,t)=>({background:e.colorBgContainer,borderWidth:`${U(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),x2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},S6(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),tC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S6(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),x2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),x2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),x6=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${U(t)} ${U(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},rC=e=>({padding:`${U(e.paddingBlockSM)} ${U(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ed=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${U(e.paddingBlock)} ${U(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},nC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},x6(e)),"&-sm":Object.assign({},rC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),w6=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({},x6(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rC(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 ${U(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${U(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${U(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:`${U(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${U(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"},xi()),{[`${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},[`
|
|
270
|
-
& > ${t}-affix-wrapper,
|
|
271
|
-
& > ${t}-number-affix-wrapper,
|
|
272
|
-
& > ${n}-picker-range
|
|
273
|
-
`]:{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,
|
|
274
|
-
& > ${n}-select-auto-complete ${t},
|
|
275
|
-
& > ${n}-cascader-picker ${t},
|
|
276
|
-
& > ${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,
|
|
277
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
278
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
279
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
280
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
281
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
282
|
-
& > ${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}}}})}},jW=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(Object.assign({},Zt(e)),Ed(e)),J1(e)),eC(e)),Z1(e)),tC(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':{appearance:"none"}})}},zW=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${U(e.inputAffixPadding)}`}}}},LW=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Ed(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),zW(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},FW=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),w6(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}}},y6(e)),C6(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},BW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,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,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${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,
|
|
283
|
-
> ${t},
|
|
284
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},AW=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},$6=Ut(["Input","Shared"],e=>{const t=Bt(e,Dl(e));return[jW(t),LW(t)]},kl,{resetFont:!1}),E6=Ut(["Input","Component"],e=>{const t=Bt(e,Dl(e));return[FW(t),BW(t),AW(t),oc(t)]},kl,{resetFont:!1}),rp=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=F3(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:U(a.itemLineHeight)}}}]},HW=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Bt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Bt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[rp(o,"small"),rp(e),rp(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},B3(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},VW=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:v,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:U(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
285
|
-
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${U(s)} ${c} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
|
|
286
|
-
&-in-view${t}-range-start,
|
|
287
|
-
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
|
|
288
|
-
&-in-view${t}-range-start,
|
|
289
|
-
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:g}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},WW=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:v,colorPrimary:g,colorTextHeading:b,colorSplit:y,pickerControlIconBorderWidth:h,colorIcon:p,textHeight:C,motionDurationMid:S,colorIconHover:x,fontWeightStrong:$,cellHeight:w,pickerCellPaddingVertical:O,colorTextDisabled:E,colorText:R,fontSize:M,motionDurationSlow:T,withoutTimeCellHeight:_,pickerQuarterPanelContentHeight:I,borderRadiusSM:N,colorTextLightSolid:P,cellHoverBg:k,timeColumnHeight:D,timeColumnWidth:z,timeCellHeight:j,controlItemBgActive:L,marginXXS:F,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:V}=e,W=e.calc(i).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:v,outline:"none","&-focused":{borderColor:g},"&-rtl":{[`${t}-prev-icon,
|
|
290
|
-
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
291
|
-
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${U(c)}`,color:b,borderBottom:`${U(f)} ${m} ${y}`,"> *":{flex:"none"},button:{padding:0,color:p,lineHeight:U(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:U(C),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:h,borderInlineStartWidth:h,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:V,insetInlineStart:V,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:h,borderInlineStartWidth:h,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(O).mul(2)).equal(),color:R,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${U(O)} 0`,color:E,cursor:"pointer","&-in-view":{color:R}},VW(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(_).mul(4).equal()},[r]:{padding:`0 ${U(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${U(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${U(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${U(c)} ${U(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:g},[`&${t}-cell-week`]:{color:new Wt(P).setA(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${U(c)} ${U(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${U(f)} ${m} ${y}`},[`${t}-date-panel,
|
|
292
|
-
${t}-time-panel`]:{transition:`opacity ${T}`},"&-active":{[`${t}-date-panel,
|
|
293
|
-
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:z,margin:`${U(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${U(j)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${U(f)} ${m} ${y}`},"&-active":{background:new Wt(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(F).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(j).div(2).equal(),color:R,lineHeight:U(j),borderRadius:N,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},KW=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${U(r)} ${u} ${d}`,"&-extra":{padding:`0 ${U(o)}`,lineHeight:U(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${U(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:U(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:U(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},UW=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},qW=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(o-s,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Wt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Wt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},GW=e=>Object.assign(Object.assign(Object.assign(Object.assign({},kl(e)),qW(e)),dg(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),XW=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},J1(e)),tC(e)),eC(e)),Z1(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},op=(e,t)=>({padding:`${U(e)} ${U(t)}`}),YW=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},QW=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:v,inputFontSizeLG:g,fontSizeSM:b,inputFontSizeSM:y,controlHeightSM:h,paddingInlineSM:p,paddingXS:C,marginXS:S,colorIcon:x,lineWidthBold:$,colorPrimary:w,motionDurationSlow:O,zIndexPopup:E,paddingXXS:R,sizePopupArrow:M,colorBgElevated:T,borderRadiusLG:_,boxShadowSecondary:I,borderRadiusSM:N,colorSplit:P,cellHoverBg:k,presetsWidth:D,presetsMaxWidth:z,boxShadowPopoverArrow:j,fontHeight:L,lineHeightLG:F}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},Zt(e)),op(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},nC(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},op(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:g??v,lineHeight:F}}),"&-small":Object.assign(Object.assign({},op(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:y??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(C).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:x}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:m,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:x},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:$,background:w,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${U(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:p}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Zt(e)),WW(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
294
|
-
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
295
|
-
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
296
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
297
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
298
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Gv},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
299
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
300
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
301
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Uv},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
302
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Xv},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
303
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:qv},[`${n}-panel > ${n}-time-panel`]:{paddingTop:R},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`},Y3(e,T,j)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:_,boxShadow:I,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${U(a)} ${i} ${P}`,li:Object.assign(Object.assign({},ea),{borderRadius:N,paddingInline:C,paddingBlock:e.calc(h).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:S},"&:hover":{background:k}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${U(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},ya(e,"slide-up"),ya(e,"slide-down"),As(e,"move-up"),As(e,"move-down")]},O6=Ut("DatePicker",e=>{const t=Bt(Dl(e),UW(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[KW(t),QW(t),XW(t),YW(t),HW(t),oc(e,{focusElCls:`${e.componentCls}-focused`})]},GW);var JW={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"},ZW=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:JW}))},Xm=l.forwardRef(ZW);const wg=l.createContext(null);var eK=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=Z(d,2),m=f[0],v=f[1],g=l.useRef(),b=ce.useCallback(function(h){return typeof s=="function"?s(h):typeof s=="number"?s:h},[s]);function y(){jt.cancel(g.current)}return l.useEffect(function(){var h={};if(n)if(r){h.width=b(n.width);var p=o?"right":"left";u==="start"&&(h[p]=n[p]),u==="center"&&(h[p]=n[p]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(h[p]=n[p]+n.width,h.transform="translateX(-100%)")}else h.height=b(n.height),u==="start"&&(h.top=n.top),u==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),u==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return y(),g.current=jt(function(){var C=m&&h&&Object.keys(h).every(function(S){var x=h[S],$=m[S];return typeof x=="number"&&typeof $=="number"?Math.round(x)===Math.round($):x===$});C||v(h)}),y},[JSON.stringify(n),r,o,u,b]),{style:m}},w2={width:0,height:0,left:0,top:0};function tK(e,t,n){return l.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||w2,i=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||w2}var f=o.get(c)||K({},u);f.right=i-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function $2(e,t){var n=l.useRef(e),r=l.useState({}),o=Z(r,2),a=o[1];function i(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({})}return[n.current,i]}var nK=.1,E2=.01,em=20,O2=Math.pow(.995,em);function rK(e,t){var n=l.useState(),r=Z(n,2),o=r[0],a=r[1],i=l.useState(0),s=Z(i,2),c=s[0],u=s[1],d=l.useState(0),f=Z(d,2),m=f[0],v=f[1],g=l.useState(),b=Z(g,2),y=b[0],h=b[1],p=l.useRef();function C(E){var R=E.touches[0],M=R.screenX,T=R.screenY;a({x:M,y:T}),window.clearInterval(p.current)}function S(E){if(o){var R=E.touches[0],M=R.screenX,T=R.screenY;a({x:M,y:T});var _=M-o.x,I=T-o.y;t(_,I);var N=Date.now();u(N),v(N-c),h({x:_,y:I})}}function x(){if(o&&(a(null),h(null),y)){var E=y.x/m,R=y.y/m,M=Math.abs(E),T=Math.abs(R);if(Math.max(M,T)<nK)return;var _=E,I=R;p.current=window.setInterval(function(){if(Math.abs(_)<E2&&Math.abs(I)<E2){window.clearInterval(p.current);return}_*=O2,I*=O2,t(_*em,I*em)},em)}}var $=l.useRef();function w(E){var R=E.deltaX,M=E.deltaY,T=0,_=Math.abs(R),I=Math.abs(M);_===I?T=$.current==="x"?R:M:_>I?(T=R,$.current="x"):(T=M,$.current="y"),t(-T,-T)&&E.preventDefault()}var O=l.useRef(null);O.current={onTouchStart:C,onTouchMove:S,onTouchEnd:x,onWheel:w},l.useEffect(function(){function E(_){O.current.onTouchStart(_)}function R(_){O.current.onTouchMove(_)}function M(_){O.current.onTouchEnd(_)}function T(_){O.current.onWheel(_)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",E,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",M)}},[])}function R6(e){var t=l.useState(0),n=Z(t,2),r=n[0],o=n[1],a=l.useRef(0),i=l.useRef();return i.current=e,ol(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function oK(e){var t=l.useRef([]),n=l.useState({}),r=Z(n,2),o=r[1],a=l.useRef(typeof e=="function"?e():e),i=R6(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function s(c){t.current.push(c),i()}return[a.current,s]}var R2={width:0,height:0,left:0,top:0,right:0};function aK(e,t,n,r,o,a,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var v=s.length,g=v,b=0;b<v;b+=1){var y=e.get(s[b].key)||R2;if(Math.floor(y[f]+y[d])>Math.floor(m+t)){g=b-1;break}}for(var h=0,p=v-1;p>=0;p-=1){var C=e.get(s[p].key)||R2;if(C[f]<m){h=p+1;break}}return h>g?[0,-1]:[h,g]},[e,t,r,o,a,m,c,s.map(function(v){return v.key}).join("_"),u])}function I2(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iK="TABS_DQ";function I6(e){return String(e).replace(/"/g,iK)}function oC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var P6=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:l.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(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),P2=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return ft(o)==="object"&&!l.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),lK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,v=e.rtl,g=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,h=e.popupClassName,p=l.useState(!1),C=Z(p,2),S=C[0],x=C[1],$=l.useState(null),w=Z($,2),O=w[0],E=w[1],R=c.icon,M=R===void 0?"More":R,T="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),I=O!==null?"".concat(T,"-").concat(O):null,N=a==null?void 0:a.dropdownAriaLabel;function P(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B})}var k=l.createElement(sc,{onClick:function(V){var W=V.key,q=V.domEvent;b(W,q),x(!1)},prefixCls:"".concat(_,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[O],"aria-label":N!==void 0?N:"expanded dropdown"},o.map(function(B){var V=B.closable,W=B.disabled,q=B.closeIcon,J=B.key,Y=B.label,ne=oC(V,q,f,W);return l.createElement(xd,{key:J,id:"".concat(T,"-").concat(J),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(J),disabled:W},l.createElement("span",null,Y),ne&&l.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),P(oe,J)}},q||f.removeIcon||"×"))}));function D(B){for(var V=o.filter(function(ne){return!ne.disabled}),W=V.findIndex(function(ne){return ne.key===O})||0,q=V.length,J=0;J<q;J+=1){W=(W+B+q)%q;var Y=V[W];if(!Y.disabled){E(Y.key);return}}}function z(B){var V=B.which;if(!S){[ot.DOWN,ot.SPACE,ot.ENTER].includes(V)&&(x(!0),B.preventDefault());return}switch(V){case ot.UP:D(-1),B.preventDefault();break;case ot.DOWN:D(1),B.preventDefault();break;case ot.ESC:x(!1);break;case ot.SPACE:case ot.ENTER:O!==null&&b(O,B);break}}l.useEffect(function(){var B=document.getElementById(I);B&&B.scrollIntoView&&B.scrollIntoView(!1)},[O]),l.useEffect(function(){S||E(null)},[S]);var j=H({},v?"marginRight":"marginLeft",m);o.length||(j.visibility="hidden",j.order=1);var L=Q(H({},"".concat(_,"-rtl"),v)),F=i?null:l.createElement(iP,Ce({prefixCls:_,overlay:k,visible:o.length?S:!1,onVisibleChange:x,overlayClassName:Q(L,h),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},c),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:j,"aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:z},M));return l.createElement("div",{className:Q("".concat(n,"-nav-operations"),d),style:u,ref:t},F,l.createElement(P6,{prefixCls:n,locale:a,editable:f}))});const sK=l.memo(lK,function(e,t){return t.tabMoving});var cK=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.focus,i=t.tab,s=i.key,c=i.label,u=i.disabled,d=i.closeIcon,f=i.icon,m=t.closable,v=t.renderWrapper,g=t.removeAriaLabel,b=t.editable,y=t.onClick,h=t.onFocus,p=t.onBlur,C=t.onKeyDown,S=t.onMouseDown,x=t.onMouseUp,$=t.style,w=t.tabCount,O=t.currentPosition,E="".concat(n,"-tab"),R=oC(m,d,b,u);function M(P){u||y(P)}function T(P){P.preventDefault(),P.stopPropagation(),b.onEdit("remove",{key:s,event:P})}var _=l.useMemo(function(){return f&&typeof c=="string"?l.createElement("span",null,c):c},[c,f]),I=l.useRef(null);l.useEffect(function(){a&&I.current&&I.current.focus()},[a]);var N=l.createElement("div",{key:s,"data-node-key":I6(s),className:Q(E,H(H(H(H({},"".concat(E,"-with-remove"),R),"".concat(E,"-active"),o),"".concat(E,"-disabled"),u),"".concat(E,"-focus"),a)),style:$,onClick:M},l.createElement("div",{ref:I,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(E,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(k){k.stopPropagation(),M(k)},onKeyDown:C,onMouseDown:S,onMouseUp:x,onFocus:h,onBlur:p},a&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(O," of ").concat(w)),f&&l.createElement("span",{className:"".concat(E,"-icon")},f),c&&_),R&&l.createElement("button",{type:"button",role:"tab","aria-label":g||"remove",tabIndex:o?0:-1,className:"".concat(E,"-remove"),onClick:function(k){k.stopPropagation(),T(k)}},d||b.removeIcon||"×"));return v?v(N):N},uK=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,i,a]},Xl=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 s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,i]},yf=function(t,n){return t[n?0:1]},M2=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,v=e.children,g=e.onTabClick,b=e.onTabScroll,y=e.indicator,h=l.useContext(wg),p=h.prefixCls,C=h.tabs,S=l.useRef(null),x=l.useRef(null),$=l.useRef(null),w=l.useRef(null),O=l.useRef(null),E=l.useRef(null),R=l.useRef(null),M=f==="top"||f==="bottom",T=$2(0,function(st,rt){M&&b&&b({direction:st>rt?"left":"right"})}),_=Z(T,2),I=_[0],N=_[1],P=$2(0,function(st,rt){!M&&b&&b({direction:st>rt?"top":"bottom"})}),k=Z(P,2),D=k[0],z=k[1],j=l.useState([0,0]),L=Z(j,2),F=L[0],B=L[1],V=l.useState([0,0]),W=Z(V,2),q=W[0],J=W[1],Y=l.useState([0,0]),ne=Z(Y,2),fe=ne[0],oe=ne[1],G=l.useState([0,0]),ue=Z(G,2),le=ue[0],ae=ue[1],ee=oK(new Map),ge=Z(ee,2),ye=ge[0],Ie=ge[1],Ee=tK(C,ye,q[0]),A=yf(F,M),X=yf(q,M),re=yf(fe,M),me=yf(le,M),pe=Math.floor(A)<Math.floor(X+re),ve=pe?A-me:A-re,Pe="".concat(p,"-nav-operations-hidden"),De=0,Me=0;M&&s?(De=0,Me=Math.max(0,X-ve)):(De=Math.min(0,ve-X),Me=0);function Le(st){return st<De?De:st>Me?Me:st}var Oe=l.useRef(null),be=l.useState(),ke=Z(be,2),Se=ke[0],Re=ke[1];function we(){Re(Date.now())}function xe(){Oe.current&&clearTimeout(Oe.current)}rK(w,function(st,rt){function Et(kt,Ze){kt(function(Ke){var vt=Le(Ke+Ze);return vt})}return pe?(M?Et(N,st):Et(z,rt),xe(),we(),!0):!1}),l.useEffect(function(){return xe(),Se&&(Oe.current=setTimeout(function(){Re(0)},100)),xe},[Se]);var Te=aK(Ee,ve,M?I:D,X,re,me,K(K({},e),{},{tabs:C})),Ae=Z(Te,2),ct=Ae[0],yt=Ae[1],Ve=zt(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,rt=Ee.get(st)||{width:0,height:0,left:0,right:0,top:0};if(M){var Et=I;s?rt.right<I?Et=rt.right:rt.right+rt.width>I+ve&&(Et=rt.right+rt.width-ve):rt.left<-I?Et=-rt.left:rt.left+rt.width>-I+ve&&(Et=-(rt.left+rt.width-ve)),z(0),N(Le(Et))}else{var kt=D;rt.top<-D?kt=-rt.top:rt.top+rt.height>-D+ve&&(kt=-(rt.top+rt.height-ve)),N(0),z(Le(kt))}}),Xe=l.useState(),nt=Z(Xe,2),Ue=nt[0],Qe=nt[1],wt=l.useState(!1),It=Z(wt,2),Je=It[0],at=It[1],ie=C.filter(function(st){return!st.disabled}).map(function(st){return st.key}),se=function(rt){var Et=ie.indexOf(Ue||i),kt=ie.length,Ze=(Et+rt+kt)%kt,Ke=ie[Ze];Qe(Ke)},de=function(rt,Et){var kt=ie.indexOf(rt),Ze=C.find(function(vt){return vt.key===rt}),Ke=oC(Ze==null?void 0:Ze.closable,Ze==null?void 0:Ze.closeIcon,u,Ze==null?void 0:Ze.disabled);Ke&&(Et.preventDefault(),Et.stopPropagation(),u.onEdit("remove",{key:rt,event:Et}),kt===ie.length-1?se(-1):se(1))},he=function(rt,Et){at(!0),Et.button===1&&de(rt,Et)},$e=function(rt){var Et=rt.code,kt=s&&M,Ze=ie[0],Ke=ie[ie.length-1];switch(Et){case"ArrowLeft":{M&&se(kt?1:-1);break}case"ArrowRight":{M&&se(kt?-1:1);break}case"ArrowUp":{rt.preventDefault(),M||se(-1);break}case"ArrowDown":{rt.preventDefault(),M||se(1);break}case"Home":{rt.preventDefault(),Qe(Ze);break}case"End":{rt.preventDefault(),Qe(Ke);break}case"Enter":case"Space":{rt.preventDefault(),g(Ue??i,rt);break}case"Backspace":case"Delete":{de(Ue,rt);break}}},ze={};M?ze[s?"marginRight":"marginLeft"]=m:ze.marginTop=m;var Be=C.map(function(st,rt){var Et=st.key;return l.createElement(cK,{id:o,prefixCls:p,key:Et,tab:st,style:rt===0?void 0:ze,closable:st.closable,editable:u,active:Et===i,focus:Et===Ue,renderWrapper:v,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ie.length,currentPosition:rt+1,onClick:function(Ze){g(Et,Ze)},onKeyDown:$e,onFocus:function(){Je||Qe(Et),Ve(Et),we(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:function(){Qe(void 0)},onMouseDown:function(Ze){return he(Et,Ze)},onMouseUp:function(){at(!1)}})}),He=function(){return Ie(function(){var rt,Et=new Map,kt=(rt=O.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return C.forEach(function(Ze){var Ke,vt=Ze.key,Yt=(Ke=O.current)===null||Ke===void 0?void 0:Ke.querySelector('[data-node-key="'.concat(I6(vt),'"]'));if(Yt){var rn=uK(Yt,kt),Ht=Z(rn,4),un=Ht[0],mn=Ht[1],Mn=Ht[2],An=Ht[3];Et.set(vt,{width:un,height:mn,left:Mn,top:An})}}),Et})};l.useEffect(function(){He()},[C.map(function(st){return st.key}).join("_")]);var je=R6(function(){var st=Xl(S),rt=Xl(x),Et=Xl($);B([st[0]-rt[0]-Et[0],st[1]-rt[1]-Et[1]]);var kt=Xl(R);oe(kt);var Ze=Xl(E);ae(Ze);var Ke=Xl(O);J([Ke[0]-kt[0],Ke[1]-kt[1]]),He()}),Ne=C.slice(0,ct),Fe=C.slice(yt+1),Ye=[].concat(_e(Ne),_e(Fe)),ut=Ee.get(i),$t=eK({activeTabOffset:ut,horizontal:M,indicator:y,rtl:s}),Mt=$t.style;l.useEffect(function(){Ve()},[i,De,Me,I2(ut),I2(Ee),M]),l.useEffect(function(){je()},[s]);var lt=!!Ye.length,Tt="".concat(p,"-nav-wrap"),We,tt,bt,it;return M?s?(tt=I>0,We=I!==Me):(We=I<0,tt=I!==De):(bt=D<0,it=D!==De),l.createElement(gr,{onResize:je},l.createElement("div",{ref:Ha(t,S),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:Q("".concat(p,"-nav"),n),style:r,onKeyDown:function(){we()}},l.createElement(P2,{ref:x,position:"left",extra:c,prefixCls:p}),l.createElement(gr,{onResize:je},l.createElement("div",{className:Q(Tt,H(H(H(H({},"".concat(Tt,"-ping-left"),We),"".concat(Tt,"-ping-right"),tt),"".concat(Tt,"-ping-top"),bt),"".concat(Tt,"-ping-bottom"),it)),ref:w},l.createElement(gr,{onResize:je},l.createElement("div",{ref:O,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(D,"px)"),transition:Se?"none":void 0}},Be,l.createElement(P6,{ref:R,prefixCls:p,locale:d,editable:u,style:K(K({},Be.length===0?void 0:ze),{},{visibility:lt?"hidden":null})}),l.createElement("div",{className:Q("".concat(p,"-ink-bar"),H({},"".concat(p,"-ink-bar-animated"),a.inkBar)),style:Mt}))))),l.createElement(sK,Ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:p,tabs:Ye,className:!lt&&Pe,tabMoving:!!Se})),l.createElement(P2,{ref:$,position:"right",extra:c,prefixCls:p})))}),M6=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:Q(n,i&&"".concat(n,"-active"),r),ref:t},c)}),dK=["renderTabBar"],fK=["label","key"],mK=function(t){var n=t.renderTabBar,r=Rt(t,dK),o=l.useContext(wg),a=o.tabs;if(n){var i=K(K({},r),{},{panes:a.map(function(s){var c=s.label,u=s.key,d=Rt(s,fK);return l.createElement(M6,Ce({tab:c,key:u,tabKey:u},d))})});return n(i,M2)}return l.createElement(M2,r)},vK=["key","forceRender","style","className","destroyInactiveTabPane"],gK=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(wg),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:Q("".concat(c,"-content-holder"))},l.createElement("div",{className:Q("".concat(c,"-content"),"".concat(c,"-content-").concat(a),H({},"".concat(c,"-content-animated"),d))},u.map(function(m){var v=m.key,g=m.forceRender,b=m.style,y=m.className,h=m.destroyInactiveTabPane,p=Rt(m,vK),C=v===r;return l.createElement(To,Ce({key:v,visible:C,forceRender:g,removeOnLeave:!!(i||h),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,x){var $=S.style,w=S.className;return l.createElement(M6,Ce({},p,{prefixCls:f,id:n,tabKey:v,animated:d,active:C,style:K(K({},b),$),className:Q(y,w),ref:x}))})})))};function hK(){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=K({inkBar:!0},ft(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var pK=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],N2=0,yK=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,v=m===void 0?"top":m,g=e.tabBarGutter,b=e.tabBarStyle,y=e.tabBarExtraContent,h=e.locale,p=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,$=e.onTabClick,w=e.onTabScroll,O=e.getPopupContainer,E=e.popupClassName,R=e.indicator,M=Rt(e,pK),T=l.useMemo(function(){return(i||[]).filter(function(le){return le&&ft(le)==="object"&&"key"in le})},[i]),_=s==="rtl",I=hK(f),N=l.useState(!1),P=Z(N,2),k=P[0],D=P[1];l.useEffect(function(){D(ag())},[]);var z=Jt(function(){var le;return(le=T[0])===null||le===void 0?void 0:le.key},{value:c,defaultValue:u}),j=Z(z,2),L=j[0],F=j[1],B=l.useState(function(){return T.findIndex(function(le){return le.key===L})}),V=Z(B,2),W=V[0],q=V[1];l.useEffect(function(){var le=T.findIndex(function(ee){return ee.key===L});if(le===-1){var ae;le=Math.max(0,Math.min(W,T.length-1)),F((ae=T[le])===null||ae===void 0?void 0:ae.key)}q(le)},[T.map(function(le){return le.key}).join("_"),L,W]);var J=Jt(null,{value:n}),Y=Z(J,2),ne=Y[0],fe=Y[1];l.useEffect(function(){n||(fe("rc-tabs-".concat(N2)),N2+=1)},[]);function oe(le,ae){$==null||$(le,ae);var ee=le!==L;F(le),ee&&(x==null||x(le))}var G={id:ne,activeKey:L,animated:I,tabPosition:v,rtl:_,mobile:k},ue=K(K({},G),{},{editable:d,locale:h,more:p,tabBarGutter:g,onTabClick:oe,onTabScroll:w,extra:y,style:b,panes:null,getPopupContainer:O,popupClassName:E,indicator:R});return l.createElement(wg.Provider,{value:{tabs:T,prefixCls:o}},l.createElement("div",Ce({ref:t,id:n,className:Q(o,"".concat(o,"-").concat(v),H(H(H({},"".concat(o,"-mobile"),k),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),_),a)},M),l.createElement(mK,Ce({},ue,{renderTabBar:S})),l.createElement(gK,Ce({destroyInactiveTabPane:C},G,{animated:I}))))});const bK={motionAppear:!1,motionEnter:!0,motionLeave:!0};function CK(e,t={inkBar:!0,tabPane:!1}){let 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({},bK),{motionName:wi(e,"switch")})),n}var SK=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 xK(e){return e.filter(t=>t)}function wK(e,t){if(e)return e.map(r=>{var o;const a=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=yr(t).map(r=>{if(l.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,c=SK(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return xK(n)}const $K=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}`}}}}},[ya(e,"slide-up"),ya(e,"slide-down")]]},EK=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:`${U(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ta(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:U(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:U(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${U(e.borderRadiusLG)} 0 0 ${U(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 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},OK=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Zt(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:`${U(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({},ea),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${U(e.paddingXXS)} ${U(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.colorIcon,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"}}})}})}},RK=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:s}=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:`${U(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
304
|
-
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,
|
|
305
|
-
> 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:s(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:U(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${U(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},IK=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${U(e.borderRadius)} ${U(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${U(e.borderRadius)} ${U(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${U(e.borderRadius)} ${U(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${U(e.borderRadius)} 0 0 ${U(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},PK=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{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:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},na(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:ta(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},MK=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:U(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:U(e.marginXS)},marginLeft:{_skip_check_:!0,value:U(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"}}}}},NK=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(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},background:"transparent",border:`${U(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${U(e.borderRadiusLG)} ${U(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}},na(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),PK(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},na(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},TK=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,i=t||a,s=n||o,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}},_K=Ut("Tabs",e=>{const t=Bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${U(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${U(e.horizontalItemGutter)}`});return[IK(t),MK(t),RK(t),OK(t),EK(t),NK(t),$K(t)]},TK),DK=()=>null;var kK=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 jK=l.forwardRef((e,t)=>{var n,r,o,a,i,s,c,u,d,f,m;const{type:v,className:g,rootClassName:b,size:y,onEdit:h,hideAdd:p,centered:C,addIcon:S,removeIcon:x,moreIcon:$,more:w,popupClassName:O,children:E,items:R,animated:M,style:T,indicatorSize:_,indicator:I,destroyInactiveTabPane:N,destroyOnHidden:P}=e,k=kK(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:D}=k,{direction:z,tabs:j,getPrefixCls:L,getPopupContainer:F}=l.useContext(xt),B=L("tabs",D),V=Bn(B),[W,q,J]=_K(B,V),Y=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:Y.current}));let ne;v==="editable-card"&&(ne={onEdit:(ee,{key:ge,event:ye})=>{h==null||h(ee==="add"?ye:ge,ee)},removeIcon:(n=x??(j==null?void 0:j.removeIcon))!==null&&n!==void 0?n:l.createElement(tc,null),addIcon:(S??(j==null?void 0:j.addIcon))||l.createElement(Xm,null),showAdd:p!==!0});const fe=L(),oe=ir(y),G=wK(R,E),ue=CK(B,M),le=Object.assign(Object.assign({},j==null?void 0:j.style),T),ae={align:(r=I==null?void 0:I.align)!==null&&r!==void 0?r:(o=j==null?void 0:j.indicator)===null||o===void 0?void 0:o.align,size:(c=(i=(a=I==null?void 0:I.size)!==null&&a!==void 0?a:_)!==null&&i!==void 0?i:(s=j==null?void 0:j.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:j==null?void 0:j.indicatorSize};return W(l.createElement(yK,Object.assign({ref:Y,direction:z,getPopupContainer:F},k,{items:G,className:Q({[`${B}-${oe}`]:oe,[`${B}-card`]:["card","editable-card"].includes(v),[`${B}-editable-card`]:v==="editable-card",[`${B}-centered`]:C},j==null?void 0:j.className,g,b,q,J,V),popupClassName:Q(O,q,J,V),style:le,editable:ne,more:Object.assign({icon:(m=(f=(d=(u=j==null?void 0:j.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:j==null?void 0:j.moreIcon)!==null&&f!==void 0?f:$)!==null&&m!==void 0?m:l.createElement(W1,null),transitionName:`${fe}-slide-up`},w),prefixCls:B,animated:ue,indicator:ae,destroyInactiveTabPane:P??N})))}),N6=jK;N6.TabPane=DK;var zK=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 T6=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=zK(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=l.useContext(xt),i=a("card",t),s=Q(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},o,{className:s}))},LK=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${U(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`},xi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ea),{[`
|
|
306
|
-
> ${n}-typography,
|
|
307
|
-
> ${n}-typography-edit-content
|
|
308
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},FK=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
309
|
-
${U(o)} 0 0 0 ${n},
|
|
310
|
-
0 ${U(o)} 0 0 ${n},
|
|
311
|
-
${U(o)} ${U(o)} 0 0 ${n},
|
|
312
|
-
${U(o)} 0 0 0 ${n} inset,
|
|
313
|
-
0 ${U(o)} 0 0 ${n} inset;
|
|
314
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},BK=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:`${U(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},xi()),{"& > 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.colorIcon,lineHeight:U(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:U(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${a}`}}})},AK=e=>Object.assign(Object.assign({margin:`${U(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},xi()),{"&-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},ea),"&-description":{color:e.colorTextDescription}}),HK=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${U(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${U(e.padding)} ${U(o)}`}}},VK=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},WK=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:LK(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},[`${t}-grid`]:FK(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:BK(e),[`${t}-meta`]:AK(e)}),[`${t}-bordered`]:{border:`${U(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:HK(e),[`${t}-loading`]:VK(e),[`${t}-rtl`]:{direction:"rtl"}}},KK=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${U(r)}`,fontSize:a,[`> ${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"}}}}},UK=e=>{var t,n;return{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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},qK=Ut("Card",e=>{const t=Bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[WK(t),KK(t)]},UK);var T2=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 GK=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,o))}))},XK=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:v,type:g,cover:b,actions:y,tabList:h,children:p,activeTabKey:C,defaultActiveTabKey:S,tabBarExtraContent:x,hoverable:$,tabProps:w={},classNames:O,styles:E}=e,R=T2(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:T,card:_}=l.useContext(xt),[I]=Pl("card",m,f),N=Ee=>{var A;(A=e.onTabChange)===null||A===void 0||A.call(e,Ee)},P=Ee=>{var A;return Q((A=_==null?void 0:_.classNames)===null||A===void 0?void 0:A[Ee],O==null?void 0:O[Ee])},k=Ee=>{var A;return Object.assign(Object.assign({},(A=_==null?void 0:_.styles)===null||A===void 0?void 0:A[Ee]),E==null?void 0:E[Ee])},D=l.useMemo(()=>{let Ee=!1;return l.Children.forEach(p,A=>{(A==null?void 0:A.type)===T6&&(Ee=!0)}),Ee},[p]),z=M("card",n),[j,L,F]=qK(z),B=l.createElement(Rl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),V=C!==void 0,W=Object.assign(Object.assign({},w),{[V?"activeKey":"defaultActiveKey"]:V?C:S,tabBarExtraContent:x});let q;const J=ir(v),Y=!J||J==="default"?"large":J,ne=h?l.createElement(N6,Object.assign({size:Y},W,{className:`${z}-head-tabs`,onChange:N,items:h.map(Ee=>{var{tab:A}=Ee,X=T2(Ee,["tab"]);return Object.assign({label:A},X)})})):null;if(u||i||ne){const Ee=Q(`${z}-head`,P("header")),A=Q(`${z}-head-title`,P("title")),X=Q(`${z}-extra`,P("extra")),re=Object.assign(Object.assign({},s),k("header"));q=l.createElement("div",{className:Ee,style:re},l.createElement("div",{className:`${z}-head-wrapper`},u&&l.createElement("div",{className:A,style:k("title")},u),i&&l.createElement("div",{className:X,style:k("extra")},i)),ne)}const fe=Q(`${z}-cover`,P("cover")),oe=b?l.createElement("div",{className:fe,style:k("cover")},b):null,G=Q(`${z}-body`,P("body")),ue=Object.assign(Object.assign({},c),k("body")),le=l.createElement("div",{className:G,style:ue},d?B:p),ae=Q(`${z}-actions`,P("actions")),ee=y!=null&&y.length?l.createElement(GK,{actionClasses:ae,actionStyle:k("actions"),actions:y}):null,ge=on(R,["onTabChange"]),ye=Q(z,_==null?void 0:_.className,{[`${z}-loading`]:d,[`${z}-bordered`]:I!=="borderless",[`${z}-hoverable`]:$,[`${z}-contain-grid`]:D,[`${z}-contain-tabs`]:h==null?void 0:h.length,[`${z}-${J}`]:J,[`${z}-type-${g}`]:!!g,[`${z}-rtl`]:T==="rtl"},r,o,L,F),Ie=Object.assign(Object.assign({},_==null?void 0:_.style),a);return j(l.createElement("div",Object.assign({ref:t},ge,{className:ye,style:Ie}),q,oe,le,ee))});var YK=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 QK=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=YK(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(xt),c=s("card",t),u=Q(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?l.createElement("div",{className:`${c}-meta-title`},o):null,m=a?l.createElement("div",{className:`${c}-meta-description`},a):null,v=f||m?l.createElement("div",{className:`${c}-meta-detail`},f,m):null;return l.createElement("div",Object.assign({},i,{className:u}),d,v)},Ws=XK;Ws.Grid=T6;Ws.Meta=QK;function JK(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function g(y){var h=y||{},p=h.upcomingOnly,C=p===void 0?!1:p;v(),f=!C}function b(){for(var y=arguments.length,h=new Array(y),p=0;p<y;p++)h[p]=arguments[p];var C=this,S=Date.now()-m;if(f)return;function x(){m=Date.now(),t.apply(C,h)}function $(){d=void 0}!s&&u&&!d&&x(),v(),u===void 0&&S>e?s?(m=Date.now(),a||(d=setTimeout(u?$:x,e))):x():a!==!0&&(d=setTimeout(u?$:x,u===void 0?e-S:e))}return b.cancel=g,b}function ZK(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return JK(e,t,{debounceMode:a!==!1})}function Gr(e,t){return e[t]}var eU=["children"];function _6(e,t){return"".concat(e,"-").concat(t)}function tU(e){return e&&e.type&&e.type.isTreeNode}function Od(e,t){return e??t}function Ks(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function D6(e){function t(n){var r=yr(n);return r.map(function(o){if(!tU(o))return pn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,c=Rt(i,eU),u=K({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function ap(e,t,n){var r=Ks(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var g=_6(f?f.pos:"0",v),b=Od(m[a],g),y,h=0;h<o.length;h+=1){var p=o[h];if(m[p]!==void 0){y=m[p];break}}var C=Object.assign(on(m,[].concat(_e(o),[a,i])),{title:y,key:b,parent:f,pos:g,children:null,data:m,isStart:[].concat(_e(f?f.isStart:[]),[v===0]),isEnd:[].concat(_e(f?f.isEnd:[]),[v===d.length-1])});return c.push(C),t===!0||s.has(b)?C.children=u(m[i]||[],C):C.children=[],C})}return u(e),c}function nU(e,t,n){var r={};ft(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,i=o.externalGetKey,s=o.fieldNames,c=Ks(s),u=c.key,d=c.children,f=a||d,m;i?typeof i=="string"?m=function(b){return b[i]}:typeof i=="function"&&(m=function(b){return i(b)}):m=function(b,y){return Od(b[u],y)};function v(g,b,y,h){var p=g?g[f]:e,C=g?_6(y.pos,b):"0",S=g?[].concat(_e(h),[g]):[];if(g){var x=m(g,C),$={node:g,index:b,pos:C,key:x,parentPos:y.node?y.pos:null,level:y.level+1,nodes:S};t($)}p&&p.forEach(function(w,O){v(w,O,{node:g,pos:C,level:y?y.level+1:-1},S)})}v(null)}function aC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),nU(e,function(v){var g=v.node,b=v.index,y=v.pos,h=v.key,p=v.parentPos,C=v.level,S=v.nodes,x={node:g,nodes:S,index:b,key:h,pos:y,level:C},$=Od(h,y);d[y]=x,f[$]=x,x.parent=d[p],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,m)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),o&&o(m),m}function vu(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Gr(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Gn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,g=K(K({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return pn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function k6(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function rU(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function oU(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var m=f.key,v=f.node,g=f.children,b=g===void 0?[]:g;o.has(m)&&!r(v)&&b.filter(function(y){return!r(y.node)}).forEach(function(y){o.add(y.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var g=!0,b=!1;(m.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var h=y.key,p=o.has(h);g&&!p&&(g=!1),!b&&(p||a.has(h))&&(b=!0)}),g&&o.add(m.key),b&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(k6(a,o))}}function aU(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,g=m.node,b=m.children,y=b===void 0?[]:b;!a.has(v)&&!i.has(v)&&!o(g)&&y.filter(function(h){return!o(h.node)}).forEach(function(h){a.delete(h.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,g=m.node;if(!(o(g)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var b=!0,y=!1;(v.children||[]).filter(function(h){return!o(h.node)}).forEach(function(h){var p=h.key,C=a.has(p);b&&!C&&(b=!1),!y&&(C||i.has(p))&&(y=!0)}),b||a.delete(v.key),y&&i.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(k6(i,a))}}function Os(e,t,n,r){var o=[],a;r?a=r:a=rU;var i=new Set(e.filter(function(d){var f=!!Gr(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),pn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=oU(i,s,c,a):u=aU(i,t.halfCheckedKeys,s,c,a),u}const iU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Zt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Zt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:ta(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${U(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
315
|
-
${n}:not(${n}-disabled),
|
|
316
|
-
${t}:not(${t}-disabled)
|
|
317
|
-
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
318
|
-
${n}-checked:not(${n}-disabled),
|
|
319
|
-
${t}-checked:not(${t}-disabled)
|
|
320
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function j6(e,t){const n=Bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return iU(n)}const z6=Ut("Checkbox",(e,{prefixCls:t})=>[j6(t,e)]),L6=ce.createContext(null);var lU=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 sU=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=lU(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:b,checkbox:y}=l.useContext(xt),h=l.useContext(L6),{isFormItemInput:p}=l.useContext(or),C=l.useContext(Nr),S=(n=(h==null?void 0:h.disabled)||m)!==null&&n!==void 0?n:C,x=l.useRef(v.value),$=l.useRef(null),w=ar(t,$);l.useEffect(()=>{h==null||h.registerValue(v.value)},[]),l.useEffect(()=>{if(!f)return v.value!==x.current&&(h==null||h.cancelValue(x.current),h==null||h.registerValue(v.value),x.current=v.value),()=>h==null?void 0:h.cancelValue(v.value)},[v.value]),l.useEffect(()=>{var D;!((D=$.current)===null||D===void 0)&&D.input&&($.current.input.indeterminate=s)},[s]);const O=g("checkbox",r),E=Bn(O),[R,M,T]=z6(O,E),_=Object.assign({},v);h&&!f&&(_.onChange=(...D)=>{v.onChange&&v.onChange.apply(v,D),h.toggleOption&&h.toggleOption({label:i,value:v.value})},_.name=h.name,_.checked=h.value.includes(v.value));const I=Q(`${O}-wrapper`,{[`${O}-rtl`]:b==="rtl",[`${O}-wrapper-checked`]:_.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:p},y==null?void 0:y.className,o,a,T,E,M),N=Q({[`${O}-indeterminate`]:s},Vv,M),[P,k]=m6(_.onClick);return R(l.createElement(vd,{component:"Checkbox",disabled:S},l.createElement("label",{className:I,style:Object.assign(Object.assign({},y==null?void 0:y.style),c),onMouseEnter:u,onMouseLeave:d,onClick:P},l.createElement(f6,Object.assign({},_,{onClick:k,prefixCls:O,className:N,disabled:S,ref:w})),i!=null&&l.createElement("span",{className:`${O}-label`},i))))},F6=l.forwardRef(sU);var cU=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 uU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:c,onChange:u}=e,d=cU(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=l.useContext(xt),[v,g]=l.useState(d.value||n||[]),[b,y]=l.useState([]);l.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const h=l.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),p=N=>{y(P=>P.filter(k=>k!==N))},C=N=>{y(P=>[].concat(_e(P),[N]))},S=N=>{const P=v.indexOf(N.value),k=_e(v);P===-1?k.push(N.value):k.splice(P,1),"value"in d||g(k),u==null||u(k.filter(D=>b.includes(D)).sort((D,z)=>{const j=h.findIndex(F=>F.value===D),L=h.findIndex(F=>F.value===z);return j-L}))},x=f("checkbox",a),$=`${x}-group`,w=Bn(x),[O,E,R]=z6(x,w),M=on(d,["value","disabled"]),T=o.length?h.map(N=>l.createElement(F6,{prefixCls:x,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:v.includes(N.value),onChange:N.onChange,className:Q(`${$}-item`,N.className),style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,_=l.useMemo(()=>({toggleOption:S,value:v,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:p}),[S,v,d.disabled,d.name,C,p]),I=Q($,{[`${$}-rtl`]:m==="rtl"},i,s,R,w,E);return O(l.createElement("div",Object.assign({className:I,style:c},M,{ref:t}),l.createElement(L6.Provider,{value:_},T)))}),hl=F6;hl.Group=uU;hl.__ANT_CHECKBOX=!0;const B6=l.createContext({});var dU=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 _2(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fU=["xs","sm","md","lg","xl","xxl"],A6=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(xt),{gutter:o,wrap:a}=l.useContext(B6),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:g,style:b}=e,y=dU(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),h=n("col",i),[p,C,S]=kF(h),x={};let $={};fU.forEach(E=>{let R={};const M=e[E];typeof M=="number"?R.span=M:typeof M=="object"&&(R=M||{}),delete y[E],$=Object.assign(Object.assign({},$),{[`${h}-${E}-${R.span}`]:R.span!==void 0,[`${h}-${E}-order-${R.order}`]:R.order||R.order===0,[`${h}-${E}-offset-${R.offset}`]:R.offset||R.offset===0,[`${h}-${E}-push-${R.push}`]:R.push||R.push===0,[`${h}-${E}-pull-${R.pull}`]:R.pull||R.pull===0,[`${h}-rtl`]:r==="rtl"}),R.flex&&($[`${h}-${E}-flex`]=!0,x[`--${h}-${E}-flex`]=_2(R.flex))});const w=Q(h,{[`${h}-${s}`]:s!==void 0,[`${h}-order-${c}`]:c,[`${h}-offset-${u}`]:u,[`${h}-push-${d}`]:d,[`${h}-pull-${f}`]:f},m,$,C,S),O={};if(o!=null&&o[0]){const E=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;O.paddingLeft=E,O.paddingRight=E}return g&&(O.flex=_2(g),a===!1&&!O.minWidth&&(O.minWidth=0)),p(l.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},O),b),x),className:w,ref:t}),v))});function mU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Hs.length;s++){const c=Hs[s];if(o[c]&&a[c]!==void 0){n[i]=a[c];break}}else n[i]=a}),n}var vU=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 D2(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Hs.length;a++){const i=Hs[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return l.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const gU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:c=0,wrap:u}=e,d=vU(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=l.useContext(xt),v=ug(!0,null),g=D2(o,v),b=D2(r,v),y=f("row",n),[h,p,C]=DF(y),S=mU(c,v),x=Q(y,{[`${y}-no-wrap`]:u===!1,[`${y}-${b}`]:b,[`${y}-${g}`]:g,[`${y}-rtl`]:m==="rtl"},a,p,C),$={};if(S!=null&&S[0]){const R=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;$.marginLeft=R,$.marginRight=R}const[w,O]=S;$.rowGap=O;const E=l.useMemo(()=>({gutter:[w,O],wrap:u}),[w,O,u]);return h(l.createElement(B6.Provider,{value:E},l.createElement("div",Object.assign({},d,{className:x,style:Object.assign(Object.assign({},$),i),ref:t}),s)))});var k2=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},ca=function(t){return t!==void 0?"".concat(t,"px"):void 0};function hU(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,s=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=l.useRef(null),m=l.useState(r),v=Z(m,2),g=v[0],b=v[1],y=function(N){var P,k=o(N),D=(P=n.current)===null||P===void 0?void 0:P.querySelectorAll(".".concat(t,"-item"))[k];return(D==null?void 0:D.offsetParent)&&D},h=l.useState(null),p=Z(h,2),C=p[0],S=p[1],x=l.useState(null),$=Z(x,2),w=$[0],O=$[1];Dt(function(){if(g!==r){var I=y(g),N=y(r),P=k2(I,d),k=k2(N,d);b(r),S(P),O(k),I&&N?i():s()}},[r]);var E=l.useMemo(function(){if(d){var I;return ca((I=C==null?void 0:C.top)!==null&&I!==void 0?I:0)}return ca(c==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[d,c,C]),R=l.useMemo(function(){if(d){var I;return ca((I=w==null?void 0:w.top)!==null&&I!==void 0?I:0)}return ca(c==="rtl"?-(w==null?void 0:w.right):w==null?void 0:w.left)},[d,c,w]),M=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},T=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},_=function(){S(null),O(null),s()};return!C||!w?null:l.createElement(To,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:M,onAppearActive:T,onVisibleChanged:_},function(I,N){var P=I.className,k=I.style,D=K(K({},k),{},{"--thumb-start-left":E,"--thumb-start-width":ca(C==null?void 0:C.width),"--thumb-active-left":R,"--thumb-active-width":ca(w==null?void 0:w.width),"--thumb-start-top":E,"--thumb-start-height":ca(C==null?void 0:C.height),"--thumb-active-top":R,"--thumb-active-height":ca(w==null?void 0:w.height)}),z={ref:ar(f,N),style:D,className:Q("".concat(t,"-thumb"),P)};return l.createElement("div",z)})}var pU=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function yU(e){if(typeof e.title<"u")return e.title;if(ft(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function bU(e){return e.map(function(t){if(ft(t)==="object"&&t!==null){var n=yU(t);return K(K({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var CU=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,a=t.checked,i=t.label,s=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,v=t.onKeyDown,g=t.onKeyUp,b=t.onMouseDown,y=function(p){o||d(p,c)};return l.createElement("label",{className:Q(r,H({},"".concat(n,"-item-disabled"),o)),onMouseDown:b},l.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:a,onChange:y,onFocus:f,onBlur:m,onKeyDown:v,onKeyUp:g}),l.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},i))},SU=l.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=o===void 0?"rc-segmented":o,i=e.direction,s=e.vertical,c=e.options,u=c===void 0?[]:c,d=e.disabled,f=e.defaultValue,m=e.value,v=e.name,g=e.onChange,b=e.className,y=b===void 0?"":b,h=e.motionName,p=h===void 0?"thumb-motion":h,C=Rt(e,pU),S=l.useRef(null),x=l.useMemo(function(){return ar(S,t)},[S,t]),$=l.useMemo(function(){return bU(u)},[u]),w=Jt((n=$[0])===null||n===void 0?void 0:n.value,{value:m,defaultValue:f}),O=Z(w,2),E=O[0],R=O[1],M=l.useState(!1),T=Z(M,2),_=T[0],I=T[1],N=function(G,ue){R(ue),g==null||g(ue)},P=on(C,["children"]),k=l.useState(!1),D=Z(k,2),z=D[0],j=D[1],L=l.useState(!1),F=Z(L,2),B=F[0],V=F[1],W=function(){V(!0)},q=function(){V(!1)},J=function(){j(!1)},Y=function(G){G.key==="Tab"&&j(!0)},ne=function(G){var ue=$.findIndex(function(ge){return ge.value===E}),le=$.length,ae=(ue+G+le)%le,ee=$[ae];ee&&(R(ee.value),g==null||g(ee.value))},fe=function(G){switch(G.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return l.createElement("div",Ce({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},P,{className:Q(a,(r={},H(r,"".concat(a,"-rtl"),i==="rtl"),H(r,"".concat(a,"-disabled"),d),H(r,"".concat(a,"-vertical"),s),r),y),ref:x}),l.createElement("div",{className:"".concat(a,"-group")},l.createElement(hU,{vertical:s,prefixCls:a,value:E,containerRef:S,motionName:"".concat(a,"-").concat(p),direction:i,getValueIndex:function(G){return $.findIndex(function(ue){return ue.value===G})},onMotionStart:function(){I(!0)},onMotionEnd:function(){I(!1)}}),$.map(function(oe){var G;return l.createElement(CU,Ce({},oe,{name:v,key:oe.value,prefixCls:a,className:Q(oe.className,"".concat(a,"-item"),(G={},H(G,"".concat(a,"-item-selected"),oe.value===E&&!_),H(G,"".concat(a,"-item-focused"),B&&z&&oe.value===E),G)),checked:oe.value===E,onChange:N,onFocus:W,onBlur:q,onKeyDown:fe,onKeyUp:Y,onMouseDown:J,disabled:!!d||!!oe.disabled}))})))}),xU=SU;function j2(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function z2(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const wU=Object.assign({overflow:"hidden"},ea),$U=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),na(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${U(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},z2(e)),{color:e.itemSelectedColor}),"&-focused":ta(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:U(n),padding:`0 ${U(e.segmentedPaddingHorizontal)}`},wU),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},z2(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${U(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:U(r),padding:`0 ${U(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:U(o),padding:`0 ${U(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),j2(`&-disabled ${t}-item`,e)),j2(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},EU=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a,lineWidthBold:i,colorBgLayout:s}=e;return{trackPadding:i,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}},OU=Ut("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Bt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return $U(r)},EU);var L2=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 RU(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const IU=l.forwardRef((e,t)=>{const n=pd(),{prefixCls:r,className:o,rootClassName:a,block:i,options:s=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,v=L2(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:g,direction:b,className:y,style:h}=fr("segmented"),p=g("segmented",r),[C,S,x]=OU(p),$=ir(c),w=l.useMemo(()=>s.map(R=>{if(RU(R)){const{icon:M,label:T}=R,_=L2(R,["icon","label"]);return Object.assign(Object.assign({},_),{label:l.createElement(l.Fragment,null,l.createElement("span",{className:`${p}-item-icon`},M),T&&l.createElement("span",null,T))})}return R}),[s,p]),O=Q(o,a,y,{[`${p}-block`]:i,[`${p}-sm`]:$==="small",[`${p}-lg`]:$==="large",[`${p}-vertical`]:d,[`${p}-shape-${f}`]:f==="round"},S,x),E=Object.assign(Object.assign({},h),u);return C(l.createElement(xU,Object.assign({},v,{name:m,className:O,style:E,options:w,ref:t,prefixCls:p,direction:b,vertical:d})))}),PU=IU;var MU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},NU=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:MU}))},TU=l.forwardRef(NU);function Ly(){return typeof BigInt=="function"}function H6(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function il(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function iC(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Qi(e){var t=String(e);if(iC(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&lC(t)?t.length-t.indexOf(".")-1:0}function $g(e){var t=String(e);if(iC(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ly()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ly()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Qi(t))}return il(t).fullStr}function lC(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var _U=function(){function e(t){if(En(this,e),H(this,"origin",""),H(this,"negative",void 0),H(this,"integer",void 0),H(this,"decimal",void 0),H(this,"decimalLen",void 0),H(this,"empty",void 0),H(this,"nan",void 0),H6(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(iC(n)&&(n=Number(n)),n=typeof n=="string"?n:$g(n),lC(n)){var r=il(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return On(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),s=n.alignDecimal(a),c=r(i,s).toString(),u=o(a),d=il(c),f=d.negativeStr,m=d.trimStr,v="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(v.slice(0,-u),".").concat(v.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,a){return o*a},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":il("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),DU=function(){function e(t){if(En(this,e),H(this,"origin",""),H(this,"number",void 0),H(this,"empty",void 0),H6(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return On(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Qi(this.number),Qi(r));return new e(o.toFixed(a))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Qi(this.number),Qi(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":$g(this.number):this.origin}}]),e}();function jo(e){return Ly()?new _U(e):new DU(e)}function tm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=il(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=jo(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return tm(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function kU(e){return!!(e.addonBefore||e.addonAfter)}function jU(e){return!!(e.prefix||e.suffix||e.allowClear)}function F2(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 Ym(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=F2(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=F2(t,e,r),n(o);return}n(o)}}function sC(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 cC=ce.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,v=e.style,g=e.disabled,b=e.readOnly,y=e.focused,h=e.triggerFocus,p=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,$=e.classes,w=e.classNames,O=e.dataAttrs,E=e.styles,R=e.components,M=e.onClear,T=i??a,_=(R==null?void 0:R.affixWrapper)||"span",I=(R==null?void 0:R.groupWrapper)||"span",N=(R==null?void 0:R.wrapper)||"span",P=(R==null?void 0:R.groupAddon)||"span",k=l.useRef(null),D=function(ae){var ee;(ee=k.current)!==null&&ee!==void 0&&ee.contains(ae.target)&&(h==null||h())},z=jU(e),j=l.cloneElement(T,{value:C,className:Q((n=T.props)===null||n===void 0?void 0:n.className,!z&&(w==null?void 0:w.variant))||null}),L=l.useRef(null);if(ce.useImperativeHandle(t,function(){return{nativeElement:L.current||k.current}}),z){var F=null;if(p){var B=!g&&!b&&C,V="".concat(s,"-clear-icon"),W=ft(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";F=ce.createElement("button",{type:"button",tabIndex:-1,onClick:function(ae){S==null||S(ae),M==null||M()},onMouseDown:function(ae){return ae.preventDefault()},className:Q(V,H(H({},"".concat(V,"-hidden"),!B),"".concat(V,"-has-suffix"),!!u))},W)}var q="".concat(s,"-affix-wrapper"),J=Q(q,H(H(H(H(H({},"".concat(s,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),y),"".concat(q,"-readonly"),b),"".concat(q,"-input-with-clear-btn"),u&&p&&C),$==null?void 0:$.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),Y=(u||p)&&ce.createElement("span",{className:Q("".concat(s,"-suffix"),w==null?void 0:w.suffix),style:E==null?void 0:E.suffix},F,u);j=ce.createElement(_,Ce({className:J,style:E==null?void 0:E.affixWrapper,onClick:D},O==null?void 0:O.affixWrapper,{ref:k}),c&&ce.createElement("span",{className:Q("".concat(s,"-prefix"),w==null?void 0:w.prefix),style:E==null?void 0:E.prefix},c),j,Y)}if(kU(e)){var ne="".concat(s,"-group"),fe="".concat(ne,"-addon"),oe="".concat(ne,"-wrapper"),G=Q("".concat(s,"-wrapper"),ne,$==null?void 0:$.wrapper,w==null?void 0:w.wrapper),ue=Q(oe,H({},"".concat(oe,"-disabled"),g),$==null?void 0:$.group,w==null?void 0:w.groupWrapper);j=ce.createElement(I,{className:ue,ref:L},ce.createElement(N,{className:G},d&&ce.createElement(P,{className:fe},d),j,f&&ce.createElement(P,{className:fe},f)))}return ce.cloneElement(j,{className:Q((r=j.props)===null||r===void 0?void 0:r.className,m)||null,style:K(K({},(o=j.props)===null||o===void 0?void 0:o.style),v),hidden:x})}),zU=["show"];function V6(e,t){return l.useMemo(function(){var n={};t&&(n.show=ft(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,o=r.show,a=Rt(r,zU);return K(K({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var LU=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],FU=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,v=e.className,g=e.maxLength,b=e.suffix,y=e.showCount,h=e.count,p=e.type,C=p===void 0?"text":p,S=e.classes,x=e.classNames,$=e.styles,w=e.onCompositionStart,O=e.onCompositionEnd,E=Rt(e,LU),R=l.useState(!1),M=Z(R,2),T=M[0],_=M[1],I=l.useRef(!1),N=l.useRef(!1),P=l.useRef(null),k=l.useRef(null),D=function(me){P.current&&sC(P.current,me)},z=Jt(e.defaultValue,{value:e.value}),j=Z(z,2),L=j[0],F=j[1],B=L==null?"":String(L),V=l.useState(null),W=Z(V,2),q=W[0],J=W[1],Y=V6(h,y),ne=Y.max||g,fe=Y.strategy(B),oe=!!ne&&fe>ne;l.useImperativeHandle(t,function(){var re;return{focus:D,blur:function(){var pe;(pe=P.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,ve,Pe){var De;(De=P.current)===null||De===void 0||De.setSelectionRange(pe,ve,Pe)},select:function(){var pe;(pe=P.current)===null||pe===void 0||pe.select()},input:P.current,nativeElement:((re=k.current)===null||re===void 0?void 0:re.nativeElement)||P.current}}),l.useEffect(function(){N.current&&(N.current=!1),_(function(re){return re&&f?!1:re})},[f]);var G=function(me,pe,ve){var Pe=pe;if(!I.current&&Y.exceedFormatter&&Y.max&&Y.strategy(pe)>Y.max){if(Pe=Y.exceedFormatter(pe,{max:Y.max}),pe!==Pe){var De,Me;J([((De=P.current)===null||De===void 0?void 0:De.selectionStart)||0,((Me=P.current)===null||Me===void 0?void 0:Me.selectionEnd)||0])}}else if(ve.source==="compositionEnd")return;F(Pe),P.current&&Ym(P.current,me,r,Pe)};l.useEffect(function(){if(q){var re;(re=P.current)===null||re===void 0||re.setSelectionRange.apply(re,_e(q))}},[q]);var ue=function(me){G(me,me.target.value,{source:"change"})},le=function(me){I.current=!1,G(me,me.currentTarget.value,{source:"compositionEnd"}),O==null||O(me)},ae=function(me){i&&me.key==="Enter"&&!N.current&&(N.current=!0,i(me)),s==null||s(me)},ee=function(me){me.key==="Enter"&&(N.current=!1),c==null||c(me)},ge=function(me){_(!0),o==null||o(me)},ye=function(me){N.current&&(N.current=!1),_(!1),a==null||a(me)},Ie=function(me){F(""),D(),P.current&&Ym(P.current,me,r)},Ee=oe&&"".concat(d,"-out-of-range"),A=function(){var me=on(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",Ce({autoComplete:n},me,{onChange:ue,onFocus:ge,onBlur:ye,onKeyDown:ae,onKeyUp:ee,className:Q(d,H({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:$==null?void 0:$.input,ref:P,size:m,type:C,onCompositionStart:function(ve){I.current=!0,w==null||w(ve)},onCompositionEnd:le}))},X=function(){var me=Number(ne)>0;if(b||Y.show){var pe=Y.showFormatter?Y.showFormatter({value:B,count:fe,maxLength:ne}):"".concat(fe).concat(me?" / ".concat(ne):"");return ce.createElement(ce.Fragment,null,Y.show&&ce.createElement("span",{className:Q("".concat(d,"-show-count-suffix"),H({},"".concat(d,"-show-count-has-suffix"),!!b),x==null?void 0:x.count),style:K({},$==null?void 0:$.count)},pe),b)}return null};return ce.createElement(cC,Ce({},E,{prefixCls:d,className:Q(v,Ee),handleReset:Ie,value:B,focused:T,triggerFocus:D,suffix:X(),disabled:f,classes:S,classNames:x,styles:$,ref:k}),A())});function BU(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function AU(e,t){var n=l.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),u=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=a.length;if(a.startsWith(s))d=s.length;else if(a.endsWith(c))d=a.length-n.current.afterTxt.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(v){pn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var HU=function(){var t=l.useState(!1),n=Z(t,2),r=n[0],o=n[1];return Dt(function(){o(ag())},[]),r},VU=200,WU=600;function KU(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function x(){u.current(S),s.current=setTimeout(x,VU)}s.current=setTimeout(x,WU)};l.useEffect(function(){return function(){d(),c.current.forEach(function(p){return jt.cancel(p)})}},[]);var m=HU();if(m)return null;var v="".concat(t,"-handler"),g=Q(v,"".concat(v,"-up"),H({},"".concat(v,"-up-disabled"),o)),b=Q(v,"".concat(v,"-down"),H({},"".concat(v,"-down-disabled"),a)),y=function(){return c.current.push(jt(d))},h={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return l.createElement("div",{className:"".concat(v,"-wrap")},l.createElement("span",Ce({},h,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",Ce({},h,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:b}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function B2(e){var t=typeof e=="number"?$g(e):il(e).fullStr,n=t.includes(".");return n?il(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const UU=function(){var e=l.useRef(0),t=function(){jt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=jt(function(){n()})}};var qU=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],GU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],A2=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},H2=function(t){var n=jo(t);return n.isInvalidate()?null:n},XU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,g=e.downHandler,b=e.keyboard,y=e.changeOnWheel,h=y===void 0?!1:y,p=e.controls,C=p===void 0?!0:p;e.classNames;var S=e.stringMode,x=e.parser,$=e.formatter,w=e.precision,O=e.decimalSeparator,E=e.onChange,R=e.onInput,M=e.onPressEnter,T=e.onStep,_=e.changeOnBlur,I=_===void 0?!0:_,N=e.domRef,P=Rt(e,qU),k="".concat(n,"-input"),D=l.useRef(null),z=l.useState(!1),j=Z(z,2),L=j[0],F=j[1],B=l.useRef(!1),V=l.useRef(!1),W=l.useRef(!1),q=l.useState(function(){return jo(d??u)}),J=Z(q,2),Y=J[0],ne=J[1];function fe(Ve){d===void 0&&ne(Ve)}var oe=l.useCallback(function(Ve,Xe){if(!Xe)return w>=0?w:Math.max(Qi(Ve),Qi(c))},[w,c]),G=l.useCallback(function(Ve){var Xe=String(Ve);if(x)return x(Xe);var nt=Xe;return O&&(nt=nt.replace(O,".")),nt.replace(/[^\w.-]+/g,"")},[x,O]),ue=l.useRef(""),le=l.useCallback(function(Ve,Xe){if($)return $(Ve,{userTyping:Xe,input:String(ue.current)});var nt=typeof Ve=="number"?$g(Ve):Ve;if(!Xe){var Ue=oe(nt,Xe);if(lC(nt)&&(O||Ue>=0)){var Qe=O||".";nt=tm(nt,Qe,Ue)}}return nt},[$,oe,O]),ae=l.useState(function(){var Ve=u??d;return Y.isInvalidate()&&["string","number"].includes(ft(Ve))?Number.isNaN(Ve)?"":Ve:le(Y.toString(),!1)}),ee=Z(ae,2),ge=ee[0],ye=ee[1];ue.current=ge;function Ie(Ve,Xe){ye(le(Ve.isInvalidate()?Ve.toString(!1):Ve.toString(!Xe),Xe))}var Ee=l.useMemo(function(){return H2(i)},[i,w]),A=l.useMemo(function(){return H2(a)},[a,w]),X=l.useMemo(function(){return!Ee||!Y||Y.isInvalidate()?!1:Ee.lessEquals(Y)},[Ee,Y]),re=l.useMemo(function(){return!A||!Y||Y.isInvalidate()?!1:Y.lessEquals(A)},[A,Y]),me=AU(D.current,L),pe=Z(me,2),ve=pe[0],Pe=pe[1],De=function(Xe){return Ee&&!Xe.lessEquals(Ee)?Ee:A&&!A.lessEquals(Xe)?A:null},Me=function(Xe){return!De(Xe)},Le=function(Xe,nt){var Ue=Xe,Qe=Me(Ue)||Ue.isEmpty();if(!Ue.isEmpty()&&!nt&&(Ue=De(Ue)||Ue,Qe=!0),!m&&!f&&Qe){var wt=Ue.toString(),It=oe(wt,nt);return It>=0&&(Ue=jo(tm(wt,".",It)),Me(Ue)||(Ue=jo(tm(wt,".",It,!0)))),Ue.equals(Y)||(fe(Ue),E==null||E(Ue.isEmpty()?null:A2(S,Ue)),d===void 0&&Ie(Ue,nt)),Ue}return Y},Oe=UU(),be=function Ve(Xe){if(ve(),ue.current=Xe,ye(Xe),!V.current){var nt=G(Xe),Ue=jo(nt);Ue.isNaN()||Le(Ue,!0)}R==null||R(Xe),Oe(function(){var Qe=Xe;x||(Qe=Xe.replace(/。/g,".")),Qe!==Xe&&Ve(Qe)})},ke=function(){V.current=!0},Se=function(){V.current=!1,be(D.current.value)},Re=function(Xe){be(Xe.target.value)},we=function(Xe){var nt;if(!(Xe&&X||!Xe&&re)){B.current=!1;var Ue=jo(W.current?B2(c):c);Xe||(Ue=Ue.negate());var Qe=(Y||jo(0)).add(Ue.toString()),wt=Le(Qe,!1);T==null||T(A2(S,wt),{offset:W.current?B2(c):c,type:Xe?"up":"down"}),(nt=D.current)===null||nt===void 0||nt.focus()}},xe=function(Xe){var nt=jo(G(ge)),Ue;nt.isNaN()?Ue=Le(Y,Xe):Ue=Le(nt,Xe),d!==void 0?Ie(Y,!1):Ue.isNaN()||Ie(Ue,!1)},Te=function(){B.current=!0},Ae=function(Xe){var nt=Xe.key,Ue=Xe.shiftKey;B.current=!0,W.current=Ue,nt==="Enter"&&(V.current||(B.current=!1),xe(!1),M==null||M(Xe)),b!==!1&&!V.current&&["Up","ArrowUp","Down","ArrowDown"].includes(nt)&&(we(nt==="Up"||nt==="ArrowUp"),Xe.preventDefault())},ct=function(){B.current=!1,W.current=!1};l.useEffect(function(){if(h&&L){var Ve=function(Ue){we(Ue.deltaY<0),Ue.preventDefault()},Xe=D.current;if(Xe)return Xe.addEventListener("wheel",Ve,{passive:!1}),function(){return Xe.removeEventListener("wheel",Ve)}}});var yt=function(){I&&xe(!1),F(!1),B.current=!1};return ol(function(){Y.isInvalidate()||Ie(Y,!1)},[w,$]),ol(function(){var Ve=jo(d);ne(Ve);var Xe=jo(G(ge));(!Ve.equals(Xe)||!B.current||$)&&Ie(Ve,B.current)},[d]),ol(function(){$&&Pe()},[ge]),l.createElement("div",{ref:N,className:Q(n,r,H(H(H(H(H({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!Me(Y))),style:o,onFocus:function(){F(!0)},onBlur:yt,onKeyDown:Ae,onKeyUp:ct,onCompositionStart:ke,onCompositionEnd:Se,onBeforeInput:Te},C&&l.createElement(KU,{prefixCls:n,upNode:v,downNode:g,upDisabled:X,downDisabled:re,onStep:we}),l.createElement("div",{className:"".concat(k,"-wrap")},l.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:c},P,{ref:ar(D,t),className:k,value:ge,onChange:Re,disabled:f,readOnly:m}))))}),YU=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,v=Rt(e,GU),g=l.useRef(null),b=l.useRef(null),y=l.useRef(null),h=function(C){y.current&&sC(y.current,C)};return l.useImperativeHandle(t,function(){return BU(y.current,{focus:h,nativeElement:g.current.nativeElement||b.current})}),l.createElement(cC,{className:f,triggerFocus:h,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},l.createElement(XU,Ce({prefixCls:a,disabled:n,ref:y,domRef:b,className:m==null?void 0:m.input},v)))});const QU=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},kl(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Wt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},V2=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},JU=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:v,colorIcon:g,motionDurationMid:b,handleHoverColor:y,handleOpacity:h,paddingInline:p,paddingBlock:C,handleBg:S,handleActiveBg:x,colorTextDisabled:$,borderRadiusSM:w,borderRadiusLG:O,controlWidth:E,handleBorderColor:R,filledHandleBg:M,lineHeightLG:T,calc:_}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),Ed(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),J1(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${U(n)} ${r} ${R}`}}})),eC(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${U(n)} ${r} ${R}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),tC(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${U(n)} ${r} ${R}`}}})),Z1(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:T,borderRadius:O,[`input${t}-input`]:{height:_(s).sub(_(n).mul(2)).equal(),padding:`${U(m)} ${U(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:_(c).sub(_(n).mul(2)).equal(),padding:`${U(f)} ${U(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Zt(e)),w6(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},y6(e)),C6(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{width:"100%",padding:`${U(C)} ${U(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),nC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
321
|
-
${t}-handler-up-inner,
|
|
322
|
-
${t}-handler-down-inner
|
|
323
|
-
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${U(n)} ${r} ${R}`,transition:`all ${b} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
|
|
324
|
-
${t}-handler-up-inner,
|
|
325
|
-
${t}-handler-down-inner
|
|
326
|
-
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Qs()),{color:g,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},V2(e,"lg")),V2(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
327
|
-
${t}-handler-up-disabled,
|
|
328
|
-
${t}-handler-down-disabled
|
|
329
|
-
`]:{cursor:"not-allowed"},[`
|
|
330
|
-
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
331
|
-
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
332
|
-
`]:{color:$}})}]},ZU=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${U(n)} 0`}},Ed(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${U(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${U(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},eq=Ut("InputNumber",e=>{const t=Bt(e,Dl(e));return[JU(t),ZU(t),oc(t)]},QU,{unitless:{handleOpacity:!0},resetFont:!1});var tq=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 W6=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(xt),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:v,bordered:g,readOnly:b,status:y,controls:h,variant:p}=e,C=tq(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),x=Bn(S),[$,w,O]=eq(S,x),{compactSize:E,compactItemClassnames:R}=wa(S,r);let M=l.createElement(TU,{className:`${S}-handler-up-inner`}),T=l.createElement(sg,{className:`${S}-handler-down-inner`});const _=typeof h=="boolean"?h:void 0;typeof h=="object"&&(M=typeof h.upIcon>"u"?M:l.createElement("span",{className:`${S}-handler-up-inner`},h.upIcon),T=typeof h.downIcon>"u"?T:l.createElement("span",{className:`${S}-handler-down-inner`},h.downIcon));const{hasFeedback:I,status:N,isFormItemInput:P,feedbackIcon:k}=l.useContext(or),D=Il(N,y),z=ir(Y=>{var ne;return(ne=s??E)!==null&&ne!==void 0?ne:Y}),j=l.useContext(Nr),L=c??j,[F,B]=Pl("inputNumber",p,g),V=I&&l.createElement(l.Fragment,null,k),W=Q({[`${S}-lg`]:z==="large",[`${S}-sm`]:z==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:P},w),q=`${S}-group`,J=l.createElement(YU,Object.assign({ref:o,disabled:L,className:Q(O,x,a,i,R),upHandler:M,downHandler:T,prefixCls:S,readOnly:b,controls:_,prefix:m,suffix:V||v,addonBefore:d&&l.createElement(Ca,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Ca,{form:!0,space:!0},f),classNames:{input:W,variant:Q({[`${S}-${F}`]:B},$i(S,D,I)),affixWrapper:Q({[`${S}-affix-wrapper-sm`]:z==="small",[`${S}-affix-wrapper-lg`]:z==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:h===!1||L||b},w),wrapper:Q({[`${q}-rtl`]:r==="rtl"},w),groupWrapper:Q({[`${S}-group-wrapper-sm`]:z==="small",[`${S}-group-wrapper-lg`]:z==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${F}`]:B},$i(`${S}-group-wrapper`,D,I),w)}},C));return $(J)}),K6=W6,nq=e=>l.createElement(_o,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(W6,Object.assign({},e)));K6._InternalPanelDoNotUseOrYouWillBeFired=nq;const U6=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ce.createElement(ec,null)}),t};function q6(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function rq(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var oq=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 Rd=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:v,style:g,styles:b,rootClassName:y,onChange:h,classNames:p,variant:C,_skipAddonWarning:S}=e,x=oq(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:$,direction:w,allowClear:O,autoComplete:E,className:R,style:M,classNames:T,styles:_}=fr("input"),I=$("input",n),N=l.useRef(null),P=Bn(I),[k,D,z]=$6(I,y),[j]=E6(I,P),{compactSize:L,compactItemClassnames:F}=wa(I,w),B=ir(Ie=>{var Ee;return(Ee=a??L)!==null&&Ee!==void 0?Ee:Ie}),V=ce.useContext(Nr),W=i??V,{status:q,hasFeedback:J,feedbackIcon:Y}=l.useContext(or),ne=Il(q,o),fe=rq(e)||!!J;l.useRef(fe);const oe=q6(N,!0),G=Ie=>{oe(),s==null||s(Ie)},ue=Ie=>{oe(),c==null||c(Ie)},le=Ie=>{oe(),h==null||h(Ie)},ae=(J||u)&&ce.createElement(ce.Fragment,null,u,J&&Y),ee=U6(d??O),[ge,ye]=Pl("input",C,r);return k(j(ce.createElement(FU,Object.assign({ref:ar(t,N),prefixCls:I,autoComplete:E},x,{disabled:W,onBlur:G,onFocus:ue,style:Object.assign(Object.assign({},M),g),styles:Object.assign(Object.assign({},_),b),suffix:ae,allowClear:ee,className:Q(v,y,z,P,F,R),onChange:le,addonBefore:m&&ce.createElement(Ca,{form:!0,space:!0},m),addonAfter:f&&ce.createElement(Ca,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),T),{input:Q({[`${I}-sm`]:B==="small",[`${I}-lg`]:B==="large",[`${I}-rtl`]:w==="rtl"},p==null?void 0:p.input,T.input,D),variant:Q({[`${I}-${ge}`]:ye},$i(I,ne)),affixWrapper:Q({[`${I}-affix-wrapper-sm`]:B==="small",[`${I}-affix-wrapper-lg`]:B==="large",[`${I}-affix-wrapper-rtl`]:w==="rtl"},D),wrapper:Q({[`${I}-group-rtl`]:w==="rtl"},D),groupWrapper:Q({[`${I}-group-wrapper-sm`]:B==="small",[`${I}-group-wrapper-lg`]:B==="large",[`${I}-group-wrapper-rtl`]:w==="rtl",[`${I}-group-wrapper-${ge}`]:ye},$i(`${I}-group-wrapper`,ne,J),D)})}))))});var aq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},iq=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:aq}))},lq=l.forwardRef(iq);const G6=(e,t,n,r,o)=>{const{classNames:a,styles:i}=fr(e),[s,c]=Aj([a,t],[i,n],{popup:{_default:"root"}});return l.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Q((u=s.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},(d=c.popup)===null||d===void 0?void 0:d.root),o)})});return[f,m]},[s,c,r,o])};function sq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function cq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function X6(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=K3(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[uq,dq]=["week","WeekPicker"],[fq,mq]=["month","MonthPicker"],[vq,gq]=["year","YearPicker"],[hq,pq]=["quarter","QuarterPicker"],[uC,W2]=["time","TimePicker"];var yq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},bq=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:yq}))},Cq=l.forwardRef(bq),Sq={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},xq=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Sq}))},wq=l.forwardRef(xq);const Y6=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ce.createElement(ce.Fragment,null,e===uC?ce.createElement(wq,null):ce.createElement(Cq,null),t&&n):r,$q=e=>l.createElement(kn,Object.assign({size:"small",type:"primary"},e));function Q6(e){return l.useMemo(()=>Object.assign({button:$q},e),[e])}var Eq=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 Oq=e=>l.forwardRef((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:m,bordered:v=!0,placeholder:g,popupStyle:b,popupClassName:y,dropdownClassName:h,status:p,rootClassName:C,variant:S,picker:x,styles:$,classNames:w,suffixIcon:O}=n,E=Eq(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),R=x===uC?"timePicker":"datePicker",M=l.useRef(null),{getPrefixCls:T,direction:_,getPopupContainer:I,rangePicker:N}=l.useContext(xt),P=T("picker",a),{compactSize:k,compactItemClassnames:D}=wa(P,_),z=T(),[j,L]=Pl("rangePicker",S,v),F=Bn(P),[B,V,W]=O6(P,F),[q,J]=G6(R,w,$,y||h,b),[Y]=X6(n,P),ne=Q6(s),fe=ir(A=>{var X;return(X=f??k)!==null&&X!==void 0?X:A}),oe=l.useContext(Nr),G=m??oe,ue=l.useContext(or),{hasFeedback:le,status:ae,feedbackIcon:ee}=ue,ge=l.createElement(Y6,{picker:x,hasFeedback:le,feedbackIcon:ee,suffixIcon:O});l.useImperativeHandle(r,()=>M.current);const[ye]=ho("Calendar",_m),Ie=Object.assign(Object.assign({},ye),n.locale),[Ee]=El("DatePicker",(o=J.popup.root)===null||o===void 0?void 0:o.zIndex);return B(l.createElement(Ca,{space:!0},l.createElement(dW,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${P}-separator`},l.createElement(lq,null)),disabled:G,ref:M,placement:d,placeholder:cq(Ie,x,g),suffixIcon:ge,prevIcon:l.createElement("span",{className:`${P}-prev-icon`}),nextIcon:l.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:x},E,{className:Q({[`${P}-${fe}`]:fe,[`${P}-${j}`]:L},$i(P,Il(ae,p),le),V,D,c,N==null?void 0:N.className,W,F,C,q.root),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),u),J.root),locale:Ie.lang,prefixCls:P,getPopupContainer:i||I,generateConfig:e,components:ne,direction:_,classNames:{popup:Q(V,W,F,C,q.popup.root)},styles:{popup:Object.assign(Object.assign({},J.popup.root),{zIndex:Ee})},allowClear:Y}))))});var Rq=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 Iq=e=>{const t=(c,u)=>{const d=u===W2?"timePicker":"datePicker";return l.forwardRef((m,v)=>{var g;const{prefixCls:b,getPopupContainer:y,components:h,style:p,className:C,rootClassName:S,size:x,bordered:$,placement:w,placeholder:O,popupStyle:E,popupClassName:R,dropdownClassName:M,disabled:T,status:_,variant:I,onCalendarChange:N,styles:P,classNames:k,suffixIcon:D}=m,z=Rq(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:j,direction:L,getPopupContainer:F,[d]:B}=l.useContext(xt),V=j("picker",b),{compactSize:W,compactItemClassnames:q}=wa(V,L),J=l.useRef(null),[Y,ne]=Pl("datePicker",I,$),fe=Bn(V),[oe,G,ue]=O6(V,fe);l.useImperativeHandle(v,()=>J.current);const le={showToday:!0},ae=c||m.picker,ee=j(),{onSelect:ge,multiple:ye}=z,Ie=ge&&c==="time"&&!ye,Ee=(xe,Te,Ae)=>{N==null||N(xe,Te,Ae),Ie&&ge(xe)},[A,X]=G6(d,k,P,R||M,E),[re,me]=X6(m,V),pe=Q6(h),ve=ir(xe=>{var Te;return(Te=x??W)!==null&&Te!==void 0?Te:xe}),Pe=l.useContext(Nr),De=T??Pe,Me=l.useContext(or),{hasFeedback:Le,status:Oe,feedbackIcon:be}=Me,ke=l.createElement(Y6,{picker:ae,hasFeedback:Le,feedbackIcon:be,suffixIcon:D}),[Se]=ho("DatePicker",_m),Re=Object.assign(Object.assign({},Se),m.locale),[we]=El("DatePicker",(g=X.popup.root)===null||g===void 0?void 0:g.zIndex);return oe(l.createElement(Ca,{space:!0},l.createElement(pW,Object.assign({ref:J,placeholder:sq(Re,ae,O),suffixIcon:ke,placement:w,prevIcon:l.createElement("span",{className:`${V}-prev-icon`}),nextIcon:l.createElement("span",{className:`${V}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${V}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${V}-super-next-icon`}),transitionName:`${ee}-slide-up`,picker:c,onCalendarChange:Ee},le,z,{locale:Re.lang,className:Q({[`${V}-${ve}`]:ve,[`${V}-${Y}`]:ne},$i(V,Il(Oe,_),Le),G,q,B==null?void 0:B.className,C,ue,fe,S,A.root),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),p),X.root),prefixCls:V,getPopupContainer:y||F,generateConfig:e,components:pe,direction:L,disabled:De,classNames:{popup:Q(G,ue,fe,S,A.popup.root)},styles:{popup:Object.assign(Object.assign({},X.popup.root),{zIndex:we})},allowClear:re,removeIcon:me}))))})},n=t(),r=t(uq,dq),o=t(fq,mq),a=t(vq,gq),i=t(hq,pq),s=t(uC,W2);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},J6=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=Iq(e),s=Oq(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=i,c},jl=J6(bV),Pq=og(jl,"popupAlign",void 0,"picker");jl._InternalPanelDoNotUseOrYouWillBeFired=Pq;const Mq=og(jl.RangePicker,"popupAlign",void 0,"picker");jl._InternalRangePanelDoNotUseOrYouWillBeFired=Mq;jl.generatePicker=J6;const Nq={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},dC=ce.createContext({});var Tq=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 _q=e=>yr(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Dq(e,t,n){const r=l.useMemo(()=>t||_q(n),[t,n]);return l.useMemo(()=>r.map(a=>{var{span:i}=a,s=Tq(a,["span"]);return i==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof i=="number"?i:X3(e,i)})}),[r,e])}var kq=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 jq(e,t){let n=[],r=[],o=!1,a=0;return e.filter(i=>i).forEach(i=>{const{filled:s}=i,c=kq(i,["filled"]);if(s){r.push(c),n.push(r),r=[],a=0;return}const u=t-a;a+=i.span||1,a>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],a=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const s=i.reduce((c,u)=>c+(u.span||1),0);if(s<t){const c=i[i.length-1];return c.span=t-(s-(c.span||1)),i}return i}),[n,o]}const zq=(e,t)=>{const[n,r]=l.useMemo(()=>jq(t,e),[t,e]);return n},Lq=({children:e})=>e,bf=e=>e!=null,ip=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:a,labelStyle:i,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m,styles:v}=e,g=n,{classNames:b}=l.useContext(dC),y=Object.assign(Object.assign({},i),v==null?void 0:v.label),h=Object.assign(Object.assign({},s),v==null?void 0:v.content);return c?l.createElement(g,{colSpan:r,style:a,className:Q(o,{[`${t}-item-${m}`]:m==="label"||m==="content",[b==null?void 0:b.label]:(b==null?void 0:b.label)&&m==="label",[b==null?void 0:b.content]:(b==null?void 0:b.content)&&m==="content"})},bf(u)&&l.createElement("span",{style:y},u),bf(d)&&l.createElement("span",{style:h},d)):l.createElement(g,{colSpan:r,style:a,className:Q(`${t}-item`,o)},l.createElement("div",{className:`${t}-item-container`},bf(u)&&l.createElement("span",{style:y,className:Q(`${t}-item-label`,b==null?void 0:b.label,{[`${t}-item-no-colon`]:!f})},u),bf(d)&&l.createElement("span",{style:h,className:Q(`${t}-item-content`,b==null?void 0:b.content)},d)))};function lp(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:a,showLabel:i,showContent:s,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:v=n,className:g,style:b,labelStyle:y,contentStyle:h,span:p=1,key:C,styles:S},x)=>typeof o=="string"?l.createElement(ip,{key:`${a}-${C||x}`,className:g,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),y),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),h),S==null?void 0:S.content)},span:p,colon:t,component:o,itemPrefixCls:v,bordered:r,label:i?f:null,content:s?m:null,type:a}):[l.createElement(ip,{key:`label-${C||x}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),b),y),S==null?void 0:S.label),span:1,colon:t,component:o[0],itemPrefixCls:v,bordered:r,label:f,type:"label"}),l.createElement(ip,{key:`content-${C||x}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),b),h),S==null?void 0:S.content),span:p*2-1,component:o[1],itemPrefixCls:v,bordered:r,content:m,type:"content"})])}const Fq=e=>{const t=l.useContext(dC),{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${a}`,className:`${n}-row`},lp(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),l.createElement("tr",{key:`content-${a}`,className:`${n}-row`},lp(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):l.createElement("tr",{key:a,className:`${n}-row`},lp(o,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Bq=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${U(e.padding)} ${U(e.paddingLG)}`,borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${U(e.paddingSM)} ${U(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${U(e.paddingXS)} ${U(e.padding)}`}}}}}},Aq=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:i,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Zt(e)),Bq(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},ea),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${U(i)} ${U(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Hq=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),Vq=Ut("Descriptions",e=>{const t=Bt(e,{});return Aq(t)},Hq);var Wq=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 Oa=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:a=!0,bordered:i,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:v,contentStyle:g,styles:b,items:y,classNames:h}=e,p=Wq(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:C,direction:S,className:x,style:$,classNames:w,styles:O}=fr("descriptions"),E=C("descriptions",t),R=ug(),M=l.useMemo(()=>{var z;return typeof o=="number"?o:(z=X3(R,Object.assign(Object.assign({},Nq),o)))!==null&&z!==void 0?z:3},[R,o]),T=Dq(R,y,c),_=ir(m),I=zq(M,T),[N,P,k]=Vq(E),D=l.useMemo(()=>({labelStyle:v,contentStyle:g,styles:{content:Object.assign(Object.assign({},O.content),b==null?void 0:b.content),label:Object.assign(Object.assign({},O.label),b==null?void 0:b.label)},classNames:{label:Q(w.label,h==null?void 0:h.label),content:Q(w.content,h==null?void 0:h.content)}}),[v,g,b,h,w,O]);return N(l.createElement(dC.Provider,{value:D},l.createElement("div",Object.assign({className:Q(E,x,w.root,h==null?void 0:h.root,{[`${E}-${_}`]:_&&_!=="default",[`${E}-bordered`]:!!i,[`${E}-rtl`]:S==="rtl"},u,d,P,k),style:Object.assign(Object.assign(Object.assign(Object.assign({},$),O.root),b==null?void 0:b.root),f)},p),(n||r)&&l.createElement("div",{className:Q(`${E}-header`,w.header,h==null?void 0:h.header),style:Object.assign(Object.assign({},O.header),b==null?void 0:b.header)},n&&l.createElement("div",{className:Q(`${E}-title`,w.title,h==null?void 0:h.title),style:Object.assign(Object.assign({},O.title),b==null?void 0:b.title)},n),r&&l.createElement("div",{className:Q(`${E}-extra`,w.extra,h==null?void 0:h.extra),style:Object.assign(Object.assign({},O.extra),b==null?void 0:b.extra)},r)),l.createElement("div",{className:`${E}-view`},l.createElement("table",null,l.createElement("tbody",null,I.map((z,j)=>l.createElement(Fq,{key:j,index:j,colon:a,prefixCls:E,vertical:s==="vertical",bordered:i,row:z}))))))))};Oa.Item=Lq;function K2(e){return["small","middle","large"].includes(e)}function U2(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Kq=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:a,fontSizeLG:i,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},oc(e,{focus:!1})]}},Uq=Ut(["Space","Addon"],e=>[Kq(e)]);var qq=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 Gq=ce.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:a}=e,i=qq(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=ce.useContext(xt),u=s("space-addon",a),[d,f,m]=Uq(u),{compactItemClassnames:v,compactSize:g}=wa(u,c),b=Q(u,f,v,m,{[`${u}-${g}`]:g},n);return d(ce.createElement("div",Object.assign({ref:t,className:b,style:o},i),r))}),Z6=ce.createContext({latestIndex:0}),Xq=Z6.Provider,Yq=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=l.useContext(Z6);return n==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},n),t<a&&r&&l.createElement("span",{className:`${e}-split`},r))},Qq=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"}}}},Jq=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}}}},Zq=Ut("Space",e=>{const t=Bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Qq(t),Jq(t)]},()=>({}),{resetStyle:!1});var eG=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 tG=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:i,style:s,classNames:c,styles:u}=fr("space"),{size:d=a??"small",align:f,className:m,rootClassName:v,children:g,direction:b="horizontal",prefixCls:y,split:h,style:p,wrap:C=!1,classNames:S,styles:x}=e,$=eG(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,O]=Array.isArray(d)?d:[d,d],E=K2(O),R=K2(w),M=U2(O),T=U2(w),_=yr(g,{keepEmpty:!0}),I=f===void 0&&b==="horizontal"?"center":f,N=r("space",y),[P,k,D]=Zq(N),z=Q(N,i,k,`${N}-${b}`,{[`${N}-rtl`]:o==="rtl",[`${N}-align-${I}`]:I,[`${N}-gap-row-${O}`]:E,[`${N}-gap-col-${w}`]:R},m,v,D),j=Q(`${N}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:c.item),L=Object.assign(Object.assign({},u.item),x==null?void 0:x.item),F=_.map((W,q)=>{const J=(W==null?void 0:W.key)||`${j}-${q}`;return l.createElement(Yq,{className:j,key:J,index:q,split:h,style:L},W)}),B=l.useMemo(()=>({latestIndex:_.reduce((q,J,Y)=>J!=null?Y:q,0)}),[_]);if(_.length===0)return null;const V={};return C&&(V.flexWrap="wrap"),!R&&T&&(V.columnGap=w),!E&&M&&(V.rowGap=O),P(l.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),s),p)},$),l.createElement(Xq,{value:B},F)))}),Ei=tG;Ei.Compact=D7;Ei.Addon=Gq;var nG=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 eM=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(xt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:g,autoFocus:b,overlay:y,trigger:h,align:p,open:C,onOpenChange:S,placement:x,getPopupContainer:$,href:w,icon:O=l.createElement(W1,null),title:E,buttonsRender:R=oe=>oe,mouseEnterDelay:M,mouseLeaveDelay:T,overlayClassName:_,overlayStyle:I,destroyOnHidden:N,destroyPopupOnHide:P,dropdownRender:k,popupRender:D}=e,z=nG(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),j=n("dropdown",o),L=`${j}-button`,B={menu:v,arrow:g,autoFocus:b,align:p,disabled:s,trigger:s?[]:h,onOpenChange:S,getPopupContainer:$||t,mouseEnterDelay:M,mouseLeaveDelay:T,overlayClassName:_,overlayStyle:I,destroyOnHidden:N,popupRender:D||k},{compactSize:V,compactItemClassnames:W}=wa(j,r),q=Q(L,W,m);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=P),"overlay"in e&&(B.overlay=y),"open"in e&&(B.open=C),"placement"in e?B.placement=x:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=l.createElement(kn,{type:a,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:w,title:E},f),Y=l.createElement(kn,{type:a,danger:i,icon:O}),[ne,fe]=R([J,Y]);return l.createElement(Ei.Compact,Object.assign({className:q,size:V,block:!0},z),ne,l.createElement(hg,Object.assign({},B),fe))};eM.__ANT_BUTTON=!0;const dc=hg;dc.Button=eM;function rG(e){return e==null?null:typeof e=="object"&&!l.isValidElement(e)?e:{title:e}}var oG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},aG=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:oG}))},iG=l.forwardRef(aG);function Qm(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const lG=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
333
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
334
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},sG=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${U(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),q2=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},cG=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Zt(e)),sG(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},q2(e,e.controlHeightSM)),"&-large":Object.assign({},q2(e,e.controlHeightLG))})}},uG=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
335
|
-
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:w1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Hi=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),dG=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
336
|
-
${t}-col-xl-24${n}-label`]:Hi(e)}}},fG=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
337
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},mG=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Hi(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},vG=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
338
|
-
${r}-col-24${n}-label,
|
|
339
|
-
${r}-col-xl-24${n}-label`]:Hi(e)},[`@media (max-width: ${U(e.screenXSMax)})`]:[mG(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Hi(e)}}}],[`@media (max-width: ${U(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Hi(e)}}},[`@media (max-width: ${U(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Hi(e)}}},[`@media (max-width: ${U(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Hi(e)}}}}},gG=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),tM=(e,t)=>Bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),fC=Ut("Form",(e,{rootPrefixCls:t})=>{const n=tM(e,t);return[cG(n),uG(n),lG(n),dG(n),fG(n),vG(n),x1(n),w1]},gG,{order:-1e3}),G2=[];function sp(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const nM=({help:e,helpStatus:t,errors:n=G2,warnings:r=G2,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=l.useContext(M1),c=`${s}-item-explain`,u=Bn(s),[d,f,m]=fC(s,u),v=l.useMemo(()=>Hm(s),[s]),g=Qm(n),b=Qm(r),y=l.useMemo(()=>e!=null?[sp(e,"help",t)]:[].concat(_e(g.map((C,S)=>sp(C,"error","error",S))),_e(b.map((C,S)=>sp(C,"warning","warning",S)))),[e,t,g,b]),h=l.useMemo(()=>{const C={};return y.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),y.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[y]),p={};return a&&(p.id=`${a}_help`),d(l.createElement(To,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!h.length,onVisibleChanged:i},C=>{const{className:S,style:x}=C;return l.createElement("div",Object.assign({},p,{className:Q(c,S,m,u,o,f),style:x}),l.createElement(fI,Object.assign({keys:h},Hm(s),{motionName:`${s}-show-help-item`,component:!1}),$=>{const{key:w,error:O,errorStatus:E,className:R,style:M}=$;return l.createElement("div",{key:w,className:Q(R,{[`${c}-${E}`]:E}),style:M},O)}))}))};var hG=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 pG=(e,t)=>{const n=l.useContext(Nr),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:c,style:u}=fr("form"),{prefixCls:d,className:f,rootClassName:m,size:v,disabled:g=n,form:b,colon:y,labelAlign:h,labelWrap:p,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:$="horizontal",scrollToFirstError:w,requiredMark:O,onFinishFailed:E,name:R,style:M,feedbackIcons:T,variant:_}=e,I=hG(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=ir(v),P=l.useContext(FR),k=l.useMemo(()=>O!==void 0?O:x?!1:a!==void 0?a:!0,[x,O,a]),D=y??i,z=r("form",d),j=Bn(z),[L,F,B]=fC(z,j),V=Q(z,`${z}-${$}`,{[`${z}-hide-required-mark`]:k===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${N}`]:N},B,j,F,c,f,m),[W]=p6(b),{__INTERNAL__:q}=W;q.name=R;const J=l.useMemo(()=>({name:R,labelAlign:h,labelCol:C,labelWrap:p,wrapperCol:S,layout:$,colon:D,requiredMark:k,itemRef:q.itemRef,form:W,feedbackIcons:T}),[R,h,C,S,$,D,k,W,T]),Y=l.useRef(null);l.useImperativeHandle(t,()=>{var oe;return Object.assign(Object.assign({},W),{nativeElement:(oe=Y.current)===null||oe===void 0?void 0:oe.nativeElement})});const ne=(oe,G)=>{if(oe){let ue={block:"nearest"};typeof oe=="object"&&(ue=Object.assign(Object.assign({},ue),oe)),W.scrollToField(G,ue)}},fe=oe=>{if(E==null||E(oe),oe.errorFields.length){const G=oe.errorFields[0].name;if(w!==void 0){ne(w,G);return}s!==void 0&&ne(s,G)}};return L(l.createElement(a3.Provider,{value:_},l.createElement(g1,{disabled:g},l.createElement(fl.Provider,{value:N},l.createElement(r3,{validateMessages:P},l.createElement(Fa.Provider,{value:J},l.createElement(o3,{status:!0},l.createElement(ac,Object.assign({id:R},I,{name:R,onFinishFailed:fe,form:W,ref:Y,style:Object.assign(Object.assign({},u),M),className:V})))))))))},yG=l.forwardRef(pG);function bG(e){if(typeof e=="function")return e;const t=yr(e);return t.length<=1?t[0]:t}const rM=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(or);return{status:e,errors:t,warnings:n}};rM.Context=or;function CG(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,jt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=jt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,i]}function SG(){const{itemRef:e}=l.useContext(Fa),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&Mi(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=ar(e(r),a)),t.current.ref}return n}const xG=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},wG=Js(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=tM(e,t);return xG(n)});var $G=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 EG=24,OG=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:v,label:g}=e,b=`${t}-item`,y=l.useContext(Fa),h=l.useMemo(()=>{let I=Object.assign({},o||y.wrapperCol||{});return g===null&&!r&&!o&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(P=>{const k=P?[P]:[],D=Lr(y.labelCol,k),z=typeof D=="object"?D:{},j=Lr(I,k),L=typeof j=="object"?j:{};"span"in z&&!("offset"in L)&&z.span<EG&&(I=xo(I,[].concat(k,["offset"]),z.span))}),I},[o,y.wrapperCol,y.labelCol,g,r]),p=Q(`${b}-control`,h.className),C=l.useMemo(()=>{const{labelCol:I,wrapperCol:N}=y;return $G(y,["labelCol","wrapperCol"])},[y]),S=l.useRef(null),[x,$]=l.useState(0);Dt(()=>{u&&S.current?$(S.current.clientHeight):$(0)},[u]);const w=l.createElement("div",{className:`${b}-control-input`},l.createElement("div",{className:`${b}-control-input-content`},a)),O=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=m!==null||i.length||s.length?l.createElement(M1.Provider,{value:O},l.createElement(nM,{fieldId:f,errors:i,warnings:s,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:v})):null,R={};f&&(R.id=`${f}_extra`);const M=u?l.createElement("div",Object.assign({},R,{className:`${b}-extra`,ref:S}),u):null,T=E||M?l.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+x}:{}},E,M):null,_=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:w,errorList:E,extra:M}):l.createElement(l.Fragment,null,w,T);return l.createElement(Fa.Provider,{value:C},l.createElement(A6,Object.assign({},h,{className:p}),_),l.createElement(wG,{prefixCls:t}))};var RG={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},IG=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:RG}))},PG=l.forwardRef(IG),MG=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 NG=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=ho("Form"),{labelAlign:m,labelCol:v,labelWrap:g,colon:b}=l.useContext(Fa);if(!t)return null;const y=r||v||{},h=o||m,p=`${e}-item-label`,C=Q(p,h==="left"&&`${p}-left`,y.className,{[`${p}-wrap`]:!!g});let S=t;const x=a===!0||b!==!1&&a!==!1;x&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const w=rG(c);if(w){const{icon:_=l.createElement(PG,null)}=w,I=MG(w,["icon"]),N=l.createElement(hr,Object.assign({},I),l.cloneElement(_,{className:`${e}-item-tooltip`,title:"",onClick:P=>{P.preventDefault()},tabIndex:null}));S=l.createElement(l.Fragment,null,S,N)}const O=s==="optional",E=typeof s=="function",R=s===!1;E?S=s(S,{required:!!i}):O&&!i&&(S=l.createElement(l.Fragment,null,S,l.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Zo.Form)===null||d===void 0?void 0:d.optional))));let M;R?M="hidden":(O||E)&&(M="optional");const T=Q({[`${e}-item-required`]:i,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!x});return l.createElement(A6,Object.assign({},y,{className:C}),l.createElement("label",{htmlFor:n,className:T,title:typeof t=="string"?t:""},S))},TG={success:Bv,warning:nc,error:ec,validating:$l};function oM({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:c}){const u=`${a}-item`,{feedbackIcons:d}=l.useContext(Fa),f=h6(t,n,i,null,!!r,o),{isFormItemInput:m,status:v,hasFeedback:g,feedbackIcon:b,name:y}=l.useContext(or),h=l.useMemo(()=>{var p;let C;if(r){const x=r!==!0&&r.icons||d,$=f&&((p=x==null?void 0:x({status:f,errors:t,warnings:n}))===null||p===void 0?void 0:p[f]),w=f?TG[f]:null;C=$!==!1&&w?l.createElement("span",{className:Q(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||l.createElement(w,null)):null}const S={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:!0,name:c};return s&&(S.status=(f??v)||"",S.isFormItemInput=m,S.hasFeedback=!!(r??g),S.feedbackIcon=r!==void 0?S.feedbackIcon:b,S.name=c??y),S},[f,r,s,m,v]);return l.createElement(or.Provider,{value:h},e)}var _G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function DG(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:v,required:g,isRequired:b,onSubItemMetaChange:y,layout:h,name:p}=e,C=_G(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:x,layout:$}=l.useContext(Fa),w=h||$,O=w==="vertical",E=l.useRef(null),R=Qm(i),M=Qm(s),T=a!=null,_=!!(T||i.length||s.length),I=!!E.current&&rc(E.current),[N,P]=l.useState(null);Dt(()=>{if(_&&E.current){const L=getComputedStyle(E.current);P(Number.parseInt(L.marginBottom,10))}},[_,I]);const k=L=>{L||P(null)},z=((L=!1)=>{const F=L?R:u.errors,B=L?M:u.warnings;return h6(F,B,u,"",!!d,c)})(),j=Q(S,n,r,{[`${S}-with-help`]:T||R.length||M.length,[`${S}-has-feedback`]:z&&d,[`${S}-has-success`]:z==="success",[`${S}-has-warning`]:z==="warning",[`${S}-has-error`]:z==="error",[`${S}-is-validating`]:z==="validating",[`${S}-hidden`]:f,[`${S}-${w}`]:w});return l.createElement("div",{className:j,style:o,ref:E},l.createElement(gU,Object.assign({className:`${S}-row`},on(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(NG,Object.assign({htmlFor:v},e,{requiredMark:x,required:g??b,prefixCls:t,vertical:O})),l.createElement(OG,Object.assign({},e,u,{errors:R,warnings:M,prefixCls:t,status:z,help:a,marginBottom:N,onErrorVisibleChanged:k}),l.createElement(n3.Provider,{value:y},l.createElement(oM,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:z,name:p},m)))),!!N&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-N}}))}const kG="__SPLIT__";function jG(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const zG=l.memo(({children:e})=>e,(e,t)=>jG(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function X2(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function LG(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:g,help:b,layout:y}=e,{getPrefixCls:h}=l.useContext(xt),{name:p}=l.useContext(Fa),C=bG(c),S=typeof C=="function",x=l.useContext(n3),{validateTrigger:$}=l.useContext(vl),w=v!==void 0?v:$,O=t!=null,E=h("form",a),R=Bn(E),[M,T,_]=fC(E,R);Ni();const I=l.useContext(Gu),N=l.useRef(null),[P,k]=CG({}),[D,z]=ml(()=>X2()),j=J=>{const Y=I==null?void 0:I.getKey(J.name);if(z(J.destroy?X2():J,!0),n&&b!==!1&&x){let ne=J.name;if(J.destroy)ne=N.current||ne;else if(Y!==void 0){const[fe,oe]=Y;ne=[fe].concat(_e(oe)),N.current=ne}x(J,ne)}},L=(J,Y)=>{k(ne=>{const fe=Object.assign({},ne),G=[].concat(_e(J.name.slice(0,-1)),_e(Y)).join(kG);return J.destroy?delete fe[G]:fe[G]=J,fe})},[F,B]=l.useMemo(()=>{const J=_e(D.errors),Y=_e(D.warnings);return Object.values(P).forEach(ne=>{J.push.apply(J,_e(ne.errors||[])),Y.push.apply(Y,_e(ne.warnings||[]))}),[J,Y]},[P,D.errors,D.warnings]),V=SG();function W(J,Y,ne){return n&&!g?l.createElement(oM,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:F,warnings:B,noStyle:!0,name:t},J):l.createElement(DG,Object.assign({key:"row"},e,{className:Q(r,_,R,T),prefixCls:E,fieldId:Y,isRequired:ne,errors:F,warnings:B,meta:D,onSubItemMetaChange:L,layout:y,name:t}),J)}if(!O&&!S&&!o)return M(W(C));let q={};return typeof d=="string"?q.label=d:t&&(q.label=String(t)),f&&(q=Object.assign(Object.assign({},q),f)),M(l.createElement(I1,Object.assign({},e,{messageVariables:q,trigger:m,validateTrigger:w,onMetaChange:j}),(J,Y,ne)=>{const fe=mu(t).length&&Y?Y.name:[],oe=g6(fe,p),G=u!==void 0?u:!!(s!=null&&s.some(ae=>{if(ae&&typeof ae=="object"&&ae.required&&!ae.warningOnly)return!0;if(typeof ae=="function"){const ee=ae(ne);return(ee==null?void 0:ee.required)&&!(ee!=null&&ee.warningOnly)}return!1})),ue=Object.assign({},J);let le=null;if(Array.isArray(C)&&O)le=C;else if(!(S&&(!(i||o)||O))){if(!(o&&!S&&!O))if(l.isValidElement(C)){const ae=Object.assign(Object.assign({},C.props),ue);if(ae.id||(ae.id=oe),b||F.length>0||B.length>0||e.extra){const ye=[];(b||F.length>0)&&ye.push(`${oe}_help`),e.extra&&ye.push(`${oe}_extra`),ae["aria-describedby"]=ye.join(" ")}F.length>0&&(ae["aria-invalid"]="true"),G&&(ae["aria-required"]="true"),Jo(C)&&(ae.ref=V(fe,C)),new Set([].concat(_e(mu(m)),_e(mu(w)))).forEach(ye=>{ae[ye]=(...Ie)=>{var Ee,A,X,re,me;(X=ue[ye])===null||X===void 0||(Ee=X).call.apply(Ee,[ue].concat(Ie)),(me=(re=C.props)[ye])===null||me===void 0||(A=me).call.apply(A,[re].concat(Ie))}});const ge=[ae["aria-required"],ae["aria-invalid"],ae["aria-describedby"]];le=l.createElement(zG,{control:ue,update:C,childProps:ge},Br(C,ae))}else S&&(i||o)&&!O?le=C(ne):le=C}return W(le,oe,G)}))}const aM=LG;aM.useStatus=rM;var FG=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 BG=e=>{var{prefixCls:t,children:n}=e,r=FG(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(xt),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(JI,Object.assign({},r),(s,c,u)=>l.createElement(M1.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function AG(){const{form:e}=l.useContext(Fa);return e}const Cr=yG;Cr.Item=aM;Cr.List=BG;Cr.ErrorList=nM;Cr.useForm=p6;Cr.useFormInstance=AG;Cr.useWatch=t3;Cr.Provider=r3;Cr.create=()=>{};var HG={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"},VG=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:HG}))},WG=l.forwardRef(VG);function Y2(e,t,n,r){var o=ju.unstable_batchedUpdates?function(i){ju.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const KG=e=>{const{getPrefixCls:t,direction:n}=l.useContext(xt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c,u]=E6(i),d=Q(a,u,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),f=l.useContext(or),m=l.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(l.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(or.Provider,{value:m},e.children)))},UG=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}},qG=Ut(["Input","OTP"],e=>{const t=Bt(e,Dl(e));return UG(t)},kl);var GG=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 XG=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,c=GG(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=l.useContext(xt),d=u("otp"),f=typeof s=="string"?s:r,m=l.useRef(null);l.useImperativeHandle(t,()=>m.current);const v=y=>{o(i,y.target.value)},g=()=>{jt(()=>{var y;const h=(y=m.current)===null||y===void 0?void 0:y.input;document.activeElement===h&&h&&h.select()})},b=y=>{const{key:h,ctrlKey:p,metaKey:C}=y;h==="ArrowLeft"?a(i-1):h==="ArrowRight"?a(i+1):h==="z"&&(p||C)?y.preventDefault():h==="Backspace"&&!r&&a(i-1),g()};return l.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&l.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),l.createElement(Rd,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},c,{ref:m,value:r,onInput:v,onFocus:g,onKeyDown:b,onMouseDown:g,onMouseUp:g,className:Q(n,{[`${d}-mask-input`]:s})})))});var YG=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 Cf(e){return(e||"").split("")}const QG=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?l.createElement("span",{className:`${n}-separator`},o):null},JG=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:v,mask:g,type:b,onInput:y,inputMode:h}=e,p=YG(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:S}=l.useContext(xt),x=C("otp",n),$=ur(p,{aria:!0,data:!0,attr:!0}),[w,O,E]=qG(x),R=ir(V=>o??V),M=l.useContext(or),T=Il(M.status,m),_=l.useMemo(()=>Object.assign(Object.assign({},M),{status:T,hasFeedback:!1,feedbackIcon:null}),[M,T]),I=l.useRef(null),N=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var V;(V=N.current[0])===null||V===void 0||V.focus()},blur:()=>{var V;for(let W=0;W<r;W+=1)(V=N.current[W])===null||V===void 0||V.blur()},nativeElement:I.current}));const P=V=>c?c(V):V,[k,D]=l.useState(()=>Cf(P(a||"")));l.useEffect(()=>{i!==void 0&&D(Cf(i))},[i]);const z=zt(V=>{D(V),y&&y(V),s&&V.length===r&&V.every(W=>W)&&V.some((W,q)=>k[q]!==W)&&s(V.join(""))}),j=zt((V,W)=>{let q=_e(k);for(let Y=0;Y<V;Y+=1)q[Y]||(q[Y]="");W.length<=1?q[V]=W:q=q.slice(0,V).concat(Cf(W)),q=q.slice(0,r);for(let Y=q.length-1;Y>=0&&!q[Y];Y-=1)q.pop();const J=P(q.map(Y=>Y||" ").join(""));return q=Cf(J).map((Y,ne)=>Y===" "&&!q[ne]?q[ne]:Y),q}),L=(V,W)=>{var q;const J=j(V,W),Y=Math.min(V+W.length,r-1);Y!==V&&J[V]!==void 0&&((q=N.current[Y])===null||q===void 0||q.focus()),z(J)},F=V=>{var W;(W=N.current[V])===null||W===void 0||W.focus()},B={variant:d,disabled:f,status:T,mask:g,type:b,inputMode:h};return w(l.createElement("div",Object.assign({},$,{ref:I,className:Q(x,{[`${x}-sm`]:R==="small",[`${x}-lg`]:R==="large",[`${x}-rtl`]:S==="rtl"},E,O),role:"group"}),l.createElement(or.Provider,{value:_},Array.from({length:r}).map((V,W)=>{const q=`otp-${W}`,J=k[W]||"";return l.createElement(l.Fragment,{key:q},l.createElement(XG,Object.assign({ref:Y=>{N.current[W]=Y},index:W,size:R,htmlSize:1,className:`${x}-input`,onChange:L,value:J,onActiveChange:F,autoFocus:W===0&&v},B)),W<r-1&&l.createElement(QG,{separator:u,index:W,prefixCls:x}))}))))});var ZG={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"},eX=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:ZG}))},tX=l.forwardRef(eX),nX=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=e=>e?l.createElement(WG,null):l.createElement(tX,null),oX={click:"onClick",hover:"onMouseOver"},aX=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=rX,suffix:i}=e,s=l.useContext(Nr),c=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=l.useState(()=>u?o.visible:!1),m=l.useRef(null);l.useEffect(()=>{u&&f(o.visible)},[u,o]);const v=q6(m),g=()=>{var M;if(c)return;d&&v();const T=!d;f(T),typeof o=="object"&&((M=o.onVisibleChange)===null||M===void 0||M.call(o,T))},b=M=>{const T=oX[r]||"",_=a(d),I={[T]:g,className:`${M}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return l.cloneElement(l.isValidElement(_)?_:l.createElement("span",null,_),I)},{className:y,prefixCls:h,inputPrefixCls:p,size:C}=e,S=nX(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=l.useContext(xt),$=x("input",p),w=x("input-password",h),O=o&&b(w),E=Q(w,y,{[`${w}-${C}`]:!!C}),R=Object.assign(Object.assign({},on(S,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:$,suffix:l.createElement(l.Fragment,null,O,i)});return C&&(R.size=C),l.createElement(Rd,Object.assign({ref:ar(t,m)},R))});var iX=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=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:g,variant:b,onPressEnter:y}=e,h=iX(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:C}=l.useContext(xt),S=l.useRef(!1),x=p("input-search",n),$=p("input",r),{compactSize:w}=wa(x,C),O=ir(B=>{var V;return(V=a??w)!==null&&V!==void 0?V:B}),E=l.useRef(null),R=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},M=B=>{var V;document.activeElement===((V=E.current)===null||V===void 0?void 0:V.input)&&B.preventDefault()},T=B=>{var V,W;f&&f((W=(V=E.current)===null||V===void 0?void 0:V.input)===null||W===void 0?void 0:W.value,B,{source:"input"})},_=B=>{S.current||u||(y==null||y(B),T(B))},I=typeof s=="boolean"?l.createElement(cg,null):null,N=`${x}-button`;let P;const k=s||{},D=k.type&&k.type.__ANT_BUTTON===!0;D||k.type==="button"?P=Br(k,Object.assign({onMouseDown:M,onClick:B=>{var V,W;(W=(V=k==null?void 0:k.props)===null||V===void 0?void 0:V.onClick)===null||W===void 0||W.call(V,B),T(B)},key:"enterButton"},D?{className:N,size:O}:{})):P=l.createElement(kn,{className:N,color:s?"primary":"default",size:O,disabled:d,key:"enterButton",onMouseDown:M,onClick:T,loading:u,icon:I,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":s?"solid":void 0},s),c&&(P=[P,Br(c,{key:"addonAfter"})]);const z=Q(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${O}`]:!!O,[`${x}-with-button`]:!!s},o),j=B=>{S.current=!0,v==null||v(B)},L=B=>{S.current=!1,g==null||g(B)},F=Object.assign(Object.assign({},h),{className:z,prefixCls:$,type:"search",size:O,variant:b,onPressEnter:_,onCompositionStart:j,onCompositionEnd:L,addonAfter:P,suffix:i,onChange:R,disabled:d,_skipAddonWarning:!0});return l.createElement(Rd,Object.assign({ref:ar(E,t)},F))});var sX=`
|
|
340
|
-
min-height:0 !important;
|
|
341
|
-
max-height:none !important;
|
|
342
|
-
height:0 !important;
|
|
343
|
-
visibility:hidden !important;
|
|
344
|
-
overflow:hidden !important;
|
|
345
|
-
position:absolute !important;
|
|
346
|
-
z-index:-1000 !important;
|
|
347
|
-
top:0 !important;
|
|
348
|
-
right:0 !important;
|
|
349
|
-
pointer-events: none !important;
|
|
350
|
-
`,cX=["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"],cp={},no;function uX(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&&cp[n])return cp[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")),s=cX.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(cp[n]=c),c}function dX(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;no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");var o=uX(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;no.setAttribute("style","".concat(c,";").concat(sX)),no.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=no.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){no.value=" ";var v=no.scrollHeight-a;n!==null&&(u=v*n,s==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var g={height:m,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var fX=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],up=0,dp=1,fp=2,mX=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Rt(n,fX),v=Jt(o,{value:a,postState:function(B){return B??""}}),g=Z(v,2),b=g[0],y=g[1],h=function(B){y(B.target.value),f==null||f(B)},p=l.useRef();l.useImperativeHandle(t,function(){return{textArea:p.current}});var C=l.useMemo(function(){return i&&ft(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=Z(C,2),x=S[0],$=S[1],w=!!i,O=l.useState(fp),E=Z(O,2),R=E[0],M=E[1],T=l.useState(),_=Z(T,2),I=_[0],N=_[1],P=function(){M(up)};Dt(function(){w&&P()},[a,x,$,w]),Dt(function(){if(R===up)M(dp);else if(R===dp){var F=dX(p.current,!1,x,$);M(fp),N(F)}},[R]);var k=l.useRef(),D=function(){jt.cancel(k.current)},z=function(B){R===fp&&(s==null||s(B),i&&(D(),k.current=jt(function(){P()})))};l.useEffect(function(){return D},[]);var j=w?I:null,L=K(K({},u),j);return(R===up||R===dp)&&(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(gr,{onResize:z,disabled:!(i||s)},l.createElement("textarea",Ce({},m,{ref:p,style:L,className:Q(r,c,H({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:h})))}),vX=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],gX=ce.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,g=v===void 0?"rc-textarea":v,b=e.showCount,y=e.count,h=e.className,p=e.style,C=e.disabled,S=e.hidden,x=e.classNames,$=e.styles,w=e.onResize,O=e.onClear,E=e.onPressEnter,R=e.readOnly,M=e.autoSize,T=e.onKeyDown,_=Rt(e,vX),I=Jt(r,{value:o,defaultValue:r}),N=Z(I,2),P=N[0],k=N[1],D=P==null?"":String(P),z=ce.useState(!1),j=Z(z,2),L=j[0],F=j[1],B=ce.useRef(!1),V=ce.useState(null),W=Z(V,2),q=W[0],J=W[1],Y=l.useRef(null),ne=l.useRef(null),fe=function(){var Se;return(Se=ne.current)===null||Se===void 0?void 0:Se.textArea},oe=function(){fe().focus()};l.useImperativeHandle(t,function(){var ke;return{resizableTextArea:ne.current,focus:oe,blur:function(){fe().blur()},nativeElement:((ke=Y.current)===null||ke===void 0?void 0:ke.nativeElement)||fe()}}),l.useEffect(function(){F(function(ke){return!C&&ke})},[C]);var G=ce.useState(null),ue=Z(G,2),le=ue[0],ae=ue[1];ce.useEffect(function(){if(le){var ke;(ke=fe()).setSelectionRange.apply(ke,_e(le))}},[le]);var ee=V6(y,b),ge=(n=ee.max)!==null&&n!==void 0?n:u,ye=Number(ge)>0,Ie=ee.strategy(D),Ee=!!ge&&Ie>ge,A=function(Se,Re){var we=Re;!B.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Re)>ee.max&&(we=ee.exceedFormatter(Re,{max:ee.max}),Re!==we&&ae([fe().selectionStart||0,fe().selectionEnd||0])),k(we),Ym(Se.currentTarget,Se,s,we)},X=function(Se){B.current=!0,d==null||d(Se)},re=function(Se){B.current=!1,A(Se,Se.currentTarget.value),f==null||f(Se)},me=function(Se){A(Se,Se.target.value)},pe=function(Se){Se.key==="Enter"&&E&&E(Se),T==null||T(Se)},ve=function(Se){F(!0),a==null||a(Se)},Pe=function(Se){F(!1),i==null||i(Se)},De=function(Se){k(""),oe(),Ym(fe(),Se,s)},Me=m,Le;ee.show&&(ee.showFormatter?Le=ee.showFormatter({value:D,count:Ie,maxLength:ge}):Le="".concat(Ie).concat(ye?" / ".concat(ge):""),Me=ce.createElement(ce.Fragment,null,Me,ce.createElement("span",{className:Q("".concat(g,"-data-count"),x==null?void 0:x.count),style:$==null?void 0:$.count},Le)));var Oe=function(Se){var Re;w==null||w(Se),(Re=fe())!==null&&Re!==void 0&&Re.style.height&&J(!0)},be=!M&&!b&&!c;return ce.createElement(cC,{ref:Y,value:D,allowClear:c,handleReset:De,suffix:Me,prefixCls:g,classNames:K(K({},x),{},{affixWrapper:Q(x==null?void 0:x.affixWrapper,H(H({},"".concat(g,"-show-count"),b),"".concat(g,"-textarea-allow-clear"),c))}),disabled:C,focused:L,className:Q(h,Ee&&"".concat(g,"-out-of-range")),style:K(K({},p),q&&!be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:S,readOnly:R,onClear:O},ce.createElement(mX,Ce({},_,{autoSize:M,maxLength:u,onKeyDown:pe,onChange:me,onFocus:ve,onBlur:Pe,onCompositionStart:X,onCompositionEnd:re,className:Q(x==null?void 0:x.textarea),style:K(K({},$==null?void 0:$.textarea),{},{resize:p==null?void 0:p.resize}),disabled:C,prefixCls:g,onResize:Oe,ref:ne,readOnly:R})))});const hX=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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"}},[`
|
|
351
|
-
&-allow-clear > ${t},
|
|
352
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
353
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,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"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},pX=Ut(["Input","TextArea"],e=>{const t=Bt(e,Dl(e));return hX(t)},kl,{resetFont:!1});var yX=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 iM=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:v,variant:g,showCount:b,onMouseDown:y,onResize:h}=e,p=yX(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:S,allowClear:x,autoComplete:$,className:w,style:O,classNames:E,styles:R}=fr("textArea"),M=l.useContext(Nr),T=i??M,{status:_,hasFeedback:I,feedbackIcon:N}=l.useContext(or),P=Il(_,s),k=l.useRef(null);l.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=k.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:ge=>{var ye,Ie;sC((Ie=(ye=k.current)===null||ye===void 0?void 0:ye.resizableTextArea)===null||Ie===void 0?void 0:Ie.textArea,ge)},blur:()=>{var ge;return(ge=k.current)===null||ge===void 0?void 0:ge.blur()}}});const D=C("input",r),z=Bn(D),[j,L,F]=$6(D,d),[B]=pX(D,z),{compactSize:V,compactItemClassnames:W}=wa(D,S),q=ir(ee=>{var ge;return(ge=a??V)!==null&&ge!==void 0?ge:ee}),[J,Y]=Pl("textArea",g,o),ne=U6(c??x),[fe,oe]=l.useState(!1),[G,ue]=l.useState(!1),le=ee=>{oe(!0),y==null||y(ee);const ge=()=>{oe(!1),document.removeEventListener("mouseup",ge)};document.addEventListener("mouseup",ge)},ae=ee=>{var ge,ye;if(h==null||h(ee),fe&&typeof getComputedStyle=="function"){const Ie=(ye=(ge=k.current)===null||ge===void 0?void 0:ge.nativeElement)===null||ye===void 0?void 0:ye.querySelector("textarea");Ie&&getComputedStyle(Ie).resize==="both"&&ue(!0)}};return j(B(l.createElement(gX,Object.assign({autoComplete:$},p,{style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},R),v),disabled:T,allowClear:ne,className:Q(F,z,f,d,W,w,G&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),E),{textarea:Q({[`${D}-sm`]:q==="small",[`${D}-lg`]:q==="large"},L,u==null?void 0:u.textarea,E.textarea,fe&&`${D}-mouse-active`),variant:Q({[`${D}-${J}`]:Y},$i(D,P)),affixWrapper:Q(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:S==="rtl",[`${D}-affix-wrapper-sm`]:q==="small",[`${D}-affix-wrapper-lg`]:q==="large",[`${D}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:D,suffix:I&&l.createElement("span",{className:`${D}-textarea-suffix`},N),showCount:b,ref:k,onResize:ae,onMouseDown:le}))))}),Va=Rd;Va.Group=KG;Va.Search=lX;Va.TextArea=iM;Va.Password=aX;Va.OTP=JG;function bX(e,t,n){return typeof n=="boolean"?n:e.length?!0:yr(t).some(o=>o.type===xP)}var lM=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 Eg({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((a,i)=>l.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},a)))}const mC=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=lM(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(xt),c=s("layout",n),[u,d,f]=SP(c),m=r?`${c}-${r}`:c;return u(l.createElement(a,Object.assign({className:Q(n||m,o,d,f),ref:t},i)))}),CX=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(xt),[r,o]=l.useState([]),{prefixCls:a,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=lM(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=on(m,["suffixCls"]),{getPrefixCls:g,className:b,style:y}=fr("layout"),h=g("layout",a),p=bX(r,c,u),[C,S,x]=SP(h),$=Q(h,{[`${h}-has-sider`]:p,[`${h}-rtl`]:n==="rtl"},b,i,s,S,x),w=l.useMemo(()=>({siderHook:{addSider:O=>{o(E=>[].concat(_e(E),[O]))},removeSider:O=>{o(E=>E.filter(R=>R!==O))}}}),[]);return C(l.createElement(yP.Provider,{value:w},l.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},y),f)},v),c)))}),SX=Eg({tagName:"div",displayName:"Layout"})(CX),xX=Eg({suffixCls:"header",tagName:"header",displayName:"Header"})(mC),wX=Eg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(mC),$X=Eg({suffixCls:"content",tagName:"main",displayName:"Content"})(mC),Ba=SX;Ba.Header=xX;Ba.Footer=wX;Ba.Content=$X;Ba.Sider=xP;Ba._InternalSiderContext=gg;var EX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},OX=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:EX}))},Q2=l.forwardRef(OX),RX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},IX=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:RX}))},J2=l.forwardRef(IX),PX={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},MX=[10,20,50,100],NX=function(t){var n=t.pageSizeOptions,r=n===void 0?MX:n,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,v=t.sizeChangerRender,g=ce.useState(""),b=Z(g,2),y=b[0],h=b[1],p=function(){return!y||Number.isNaN(y)?void 0:Number(y)},C=typeof f=="function"?f:function(T){return"".concat(T," ").concat(o.items_per_page)},S=function(_){h(_.target.value)},x=function(_){s||y===""||(h(""),!(_.relatedTarget&&(_.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||_.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(p())))},$=function(_){y!==""&&(_.keyCode===ot.ENTER||_.type==="click")&&(h(""),c==null||c(p()))},w=function(){return r.some(function(_){return _.toString()===i.toString()})?r:r.concat([i]).sort(function(_,I){var N=Number.isNaN(Number(_))?0:Number(_),P=Number.isNaN(Number(I))?0:Number(I);return N-P})},O="".concat(u,"-options");if(!m&&!c)return null;var E=null,R=null,M=null;return m&&v&&(E=v({disabled:d,size:i,onSizeChange:function(_){a==null||a(Number(_))},"aria-label":o.page_size,className:"".concat(O,"-size-changer"),options:w().map(function(T){return{label:C(T),value:T}})})),c&&(s&&(M=typeof s=="boolean"?ce.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:d,className:"".concat(O,"-quick-jumper-button")},o.jump_to_confirm):ce.createElement("span",{onClick:$,onKeyUp:$},s)),R=ce.createElement("div",{className:"".concat(O,"-quick-jumper")},o.jump_to,ce.createElement("input",{disabled:d,type:"text",value:y,onChange:S,onKeyUp:$,onBlur:x,"aria-label":o.page}),o.page,M)),ce.createElement("li",{className:O},E,R)},kc=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,i=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=Q(d,"".concat(d,"-").concat(r),H(H({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),a),m=function(){s(r)},v=function(y){c(y,s,r)},g=u(r,"page",ce.createElement("a",{rel:"nofollow"},r));return g?ce.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:v,tabIndex:0},g):null},TX=function(t,n,r){return r};function Z2(){}function e$(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function zi(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var _X=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,i=t.className,s=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,v=t.defaultPageSize,g=v===void 0?10:v,b=t.onChange,y=b===void 0?Z2:b,h=t.hideOnSinglePage,p=t.align,C=t.showPrevNextJumpers,S=C===void 0?!0:C,x=t.showQuickJumper,$=t.showLessItems,w=t.showTitle,O=w===void 0?!0:w,E=t.onShowSizeChange,R=E===void 0?Z2:E,M=t.locale,T=M===void 0?PX:M,_=t.style,I=t.totalBoundaryShowSizeChanger,N=I===void 0?50:I,P=t.disabled,k=t.simple,D=t.showTotal,z=t.showSizeChanger,j=z===void 0?f>N:z,L=t.sizeChangerRender,F=t.pageSizeOptions,B=t.itemRender,V=B===void 0?TX:B,W=t.jumpPrevIcon,q=t.jumpNextIcon,J=t.prevIcon,Y=t.nextIcon,ne=ce.useRef(null),fe=Jt(10,{value:m,defaultValue:g}),oe=Z(fe,2),G=oe[0],ue=oe[1],le=Jt(1,{value:s,defaultValue:u,postState:function(Ke){return Math.max(1,Math.min(Ke,zi(void 0,G,f)))}}),ae=Z(le,2),ee=ae[0],ge=ae[1],ye=ce.useState(ee),Ie=Z(ye,2),Ee=Ie[0],A=Ie[1];l.useEffect(function(){A(ee)},[ee]);var X=Math.max(1,ee-($?3:5)),re=Math.min(zi(void 0,G,f),ee+($?3:5));function me(Ze,Ke){var vt=Ze||ce.createElement("button",{type:"button","aria-label":Ke,className:"".concat(r,"-item-link")});return typeof Ze=="function"&&(vt=ce.createElement(Ze,K({},t))),vt}function pe(Ze){var Ke=Ze.target.value,vt=zi(void 0,G,f),Yt;return Ke===""?Yt=Ke:Number.isNaN(Number(Ke))?Yt=Ee:Ke>=vt?Yt=vt:Yt=Number(Ke),Yt}function ve(Ze){return e$(Ze)&&Ze!==ee&&e$(f)&&f>0}var Pe=f>G?x:!1;function De(Ze){(Ze.keyCode===ot.UP||Ze.keyCode===ot.DOWN)&&Ze.preventDefault()}function Me(Ze){var Ke=pe(Ze);switch(Ke!==Ee&&A(Ke),Ze.keyCode){case ot.ENTER:be(Ke);break;case ot.UP:be(Ke-1);break;case ot.DOWN:be(Ke+1);break}}function Le(Ze){be(pe(Ze))}function Oe(Ze){var Ke=zi(Ze,G,f),vt=ee>Ke&&Ke!==0?Ke:ee;ue(Ze),A(vt),R==null||R(ee,Ze),ge(vt),y==null||y(vt,Ze)}function be(Ze){if(ve(Ze)&&!P){var Ke=zi(void 0,G,f),vt=Ze;return Ze>Ke?vt=Ke:Ze<1&&(vt=1),vt!==Ee&&A(vt),ge(vt),y==null||y(vt,G),vt}return ee}var ke=ee>1,Se=ee<zi(void 0,G,f);function Re(){ke&&be(ee-1)}function we(){Se&&be(ee+1)}function xe(){be(X)}function Te(){be(re)}function Ae(Ze,Ke){if(Ze.key==="Enter"||Ze.charCode===ot.ENTER||Ze.keyCode===ot.ENTER){for(var vt=arguments.length,Yt=new Array(vt>2?vt-2:0),rn=2;rn<vt;rn++)Yt[rn-2]=arguments[rn];Ke.apply(void 0,Yt)}}function ct(Ze){Ae(Ze,Re)}function yt(Ze){Ae(Ze,we)}function Ve(Ze){Ae(Ze,xe)}function Xe(Ze){Ae(Ze,Te)}function nt(Ze){var Ke=V(Ze,"prev",me(J,"prev page"));return ce.isValidElement(Ke)?ce.cloneElement(Ke,{disabled:!ke}):Ke}function Ue(Ze){var Ke=V(Ze,"next",me(Y,"next page"));return ce.isValidElement(Ke)?ce.cloneElement(Ke,{disabled:!Se}):Ke}function Qe(Ze){(Ze.type==="click"||Ze.keyCode===ot.ENTER)&&be(Ee)}var wt=null,It=ur(t,{aria:!0,data:!0}),Je=D&&ce.createElement("li",{className:"".concat(r,"-total-text")},D(f,[f===0?0:(ee-1)*G+1,ee*G>f?f:ee*G])),at=null,ie=zi(void 0,G,f);if(h&&f<=G)return null;var se=[],de={rootPrefixCls:r,onClick:be,onKeyPress:Ae,showTitle:O,itemRender:V,page:-1},he=ee-1>0?ee-1:0,$e=ee+1<ie?ee+1:ie,ze=x&&x.goButton,Be=ft(k)==="object"?k.readOnly:!k,He=ze,je=null;k&&(ze&&(typeof ze=="boolean"?He=ce.createElement("button",{type:"button",onClick:Qe,onKeyUp:Qe},T.jump_to_confirm):He=ce.createElement("span",{onClick:Qe,onKeyUp:Qe},ze),He=ce.createElement("li",{title:O?"".concat(T.jump_to).concat(ee,"/").concat(ie):null,className:"".concat(r,"-simple-pager")},He)),je=ce.createElement("li",{title:O?"".concat(ee,"/").concat(ie):null,className:"".concat(r,"-simple-pager")},Be?Ee:ce.createElement("input",{type:"text","aria-label":T.jump_to,value:Ee,disabled:P,onKeyDown:De,onKeyUp:Me,onChange:Me,onBlur:Le,size:3}),ce.createElement("span",{className:"".concat(r,"-slash")},"/"),ie));var Ne=$?1:2;if(ie<=3+Ne*2){ie||se.push(ce.createElement(kc,Ce({},de,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Fe=1;Fe<=ie;Fe+=1)se.push(ce.createElement(kc,Ce({},de,{key:Fe,page:Fe,active:ee===Fe})))}else{var Ye=$?T.prev_3:T.prev_5,ut=$?T.next_3:T.next_5,$t=V(X,"jump-prev",me(W,"prev page")),Mt=V(re,"jump-next",me(q,"next page"));S&&(wt=$t?ce.createElement("li",{title:O?Ye:null,key:"prev",onClick:xe,tabIndex:0,onKeyDown:Ve,className:Q("".concat(r,"-jump-prev"),H({},"".concat(r,"-jump-prev-custom-icon"),!!W))},$t):null,at=Mt?ce.createElement("li",{title:O?ut:null,key:"next",onClick:Te,tabIndex:0,onKeyDown:Xe,className:Q("".concat(r,"-jump-next"),H({},"".concat(r,"-jump-next-custom-icon"),!!q))},Mt):null);var lt=Math.max(1,ee-Ne),Tt=Math.min(ee+Ne,ie);ee-1<=Ne&&(Tt=1+Ne*2),ie-ee<=Ne&&(lt=ie-Ne*2);for(var We=lt;We<=Tt;We+=1)se.push(ce.createElement(kc,Ce({},de,{key:We,page:We,active:ee===We})));if(ee-1>=Ne*2&&ee!==3&&(se[0]=ce.cloneElement(se[0],{className:Q("".concat(r,"-item-after-jump-prev"),se[0].props.className)}),se.unshift(wt)),ie-ee>=Ne*2&&ee!==ie-2){var tt=se[se.length-1];se[se.length-1]=ce.cloneElement(tt,{className:Q("".concat(r,"-item-before-jump-next"),tt.props.className)}),se.push(at)}lt!==1&&se.unshift(ce.createElement(kc,Ce({},de,{key:1,page:1}))),Tt!==ie&&se.push(ce.createElement(kc,Ce({},de,{key:ie,page:ie})))}var bt=nt(he);if(bt){var it=!ke||!ie;bt=ce.createElement("li",{title:O?T.prev_page:null,onClick:Re,tabIndex:it?null:0,onKeyDown:ct,className:Q("".concat(r,"-prev"),H({},"".concat(r,"-disabled"),it)),"aria-disabled":it},bt)}var st=Ue($e);if(st){var rt,Et;k?(rt=!Se,Et=ke?0:null):(rt=!Se||!ie,Et=rt?null:0),st=ce.createElement("li",{title:O?T.next_page:null,onClick:we,tabIndex:Et,onKeyDown:yt,className:Q("".concat(r,"-next"),H({},"".concat(r,"-disabled"),rt)),"aria-disabled":rt},st)}var kt=Q(r,i,H(H(H(H(H({},"".concat(r,"-start"),p==="start"),"".concat(r,"-center"),p==="center"),"".concat(r,"-end"),p==="end"),"".concat(r,"-simple"),k),"".concat(r,"-disabled"),P));return ce.createElement("ul",Ce({className:kt,style:_,ref:ne},It),Je,bt,k?je:se,st,ce.createElement(NX,{locale:T,rootPrefixCls:r,disabled:P,selectPrefixCls:a,changeSize:Oe,pageSize:G,pageSizeOptions:F,quickGo:Pe?be:null,goButton:He,showSizeChanger:j,sizeChangerRender:L}))};const DX=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},kX=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:U(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:U(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
354
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
355
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
356
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:U(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM),input:Object.assign(Object.assign({},rC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},jX=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:U(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:U(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${U(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${U(e.inputOutlineOffset)} 0 ${U(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},zX=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
357
|
-
${t}-prev,
|
|
358
|
-
${t}-jump-prev,
|
|
359
|
-
${t}-jump-next
|
|
360
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
361
|
-
${t}-prev,
|
|
362
|
-
${t}-next,
|
|
363
|
-
${t}-jump-prev,
|
|
364
|
-
${t}-jump-next
|
|
365
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:U(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${U(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:U(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Ed(e)),Q1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},xg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},LX=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:U(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${U(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${U(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},FX=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:U(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),LX(e)),zX(e)),jX(e)),kX(e)),DX(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},BX=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},na(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ta(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ta(e)}}}},sM=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},kl(e)),cM=e=>Bt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Dl(e)),AX=Ut("Pagination",e=>{const t=cM(e);return[FX(t),BX(t)]},sM),HX=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},VX=Js(["Pagination","bordered"],e=>{const t=cM(e);return HX(t)},sM);function t$(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var WX=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 KX=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:i,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,v=WX(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:g}=ug(u),[,b]=Sr(),{getPrefixCls:y,direction:h,showSizeChanger:p,className:C,style:S}=fr("pagination"),x=y("pagination",n),[$,w,O]=AX(x),E=ir(s),R=E==="small"||!!(g&&!E&&u),[M]=ho("Pagination",BR),T=Object.assign(Object.assign({},M),c),[_,I]=t$(d),[N,P]=t$(p),k=_??N,D=I??P,z=f||Ml,j=l.useMemo(()=>m?m.map(q=>Number(q)):void 0,[m]),L=q=>{var J;const{disabled:Y,size:ne,onSizeChange:fe,"aria-label":oe,className:G,options:ue}=q,{className:le,onChange:ae}=D||{},ee=(J=ue.find(ge=>String(ge.value)===String(ne)))===null||J===void 0?void 0:J.value;return l.createElement(z,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ge=>ge.parentNode,"aria-label":oe,options:ue},D,{value:ee,onChange:(ge,ye)=>{fe==null||fe(ge),ae==null||ae(ge,ye)},size:R?"small":"middle",className:Q(G,le)}))},F=l.useMemo(()=>{const q=l.createElement("span",{className:`${x}-item-ellipsis`},"•••"),J=l.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(Bs,null):l.createElement(Yu,null)),Y=l.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(Yu,null):l.createElement(Bs,null)),ne=l.createElement("a",{className:`${x}-item-link`},l.createElement("div",{className:`${x}-item-container`},h==="rtl"?l.createElement(J2,{className:`${x}-item-link-icon`}):l.createElement(Q2,{className:`${x}-item-link-icon`}),q)),fe=l.createElement("a",{className:`${x}-item-link`},l.createElement("div",{className:`${x}-item-container`},h==="rtl"?l.createElement(Q2,{className:`${x}-item-link-icon`}):l.createElement(J2,{className:`${x}-item-link-icon`}),q));return{prevIcon:J,nextIcon:Y,jumpPrevIcon:ne,jumpNextIcon:fe}},[h,x]),B=y("select",r),V=Q({[`${x}-${t}`]:!!t,[`${x}-mini`]:R,[`${x}-rtl`]:h==="rtl",[`${x}-bordered`]:b.wireframe},C,o,a,w,O),W=Object.assign(Object.assign({},S),i);return $(l.createElement(l.Fragment,null,b.wireframe&&l.createElement(VX,{prefixCls:x}),l.createElement(_X,Object.assign({},F,v,{style:W,prefixCls:x,selectPrefixCls:B,className:V,locale:T,pageSizeOptions:j,showSizeChanger:k,sizeChangerRender:L}))))},Jm=100,uM=Jm/5,dM=Jm/2-uM/2,mp=dM*2*Math.PI,n$=50,r$=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:dM,cx:n$,cy:n$,strokeWidth:uM,style:n})},UX=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,i]=l.useState(!1);Dt(()=>{e!==0&&i(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const c={strokeDashoffset:`${mp/4}`,strokeDasharray:`${mp*s/100} ${mp*(100-s)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,s<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${Jm} ${Jm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},l.createElement(r$,{dotClassName:n,hasCircleCls:!0}),l.createElement(r$,{dotClassName:n,style:c})))};function qX(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Q(o,n>0&&a)},l.createElement("span",{className:Q(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(UX,{prefixCls:t,percent:n}))}function GX(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,a=`${n}-dot`;return r&&l.isValidElement(r)?Br(r,{className:Q((t=r.props)===null||t===void 0?void 0:t.className,a),percent:o}):l.createElement(qX,{prefixCls:n,percent:o})}const XX=new en("antSpinMove",{to:{opacity:1}}),YX=new en("antRotate",{to:{transform:"rotate(405deg)"}}),QX=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Zt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:XX,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:YX,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},JX=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},ZX=Ut("Spin",e=>{const t=Bt(e,{spinDotDefault:e.colorTextDescription});return QX(t)},JX),eY=200,o$=[[30,.05],[70,.03],[96,.01]];function tY(e,t){const[n,r]=l.useState(0),o=l.useRef(null),a=t==="auto";return l.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c<o$.length;c+=1){const[u,d]=o$[c];if(i<=u)return i+s*d}return i})},eY)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?n:t}var nY=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 fM;function rY(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Id=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:v,percent:g}=e,b=nY(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:h,className:p,style:C,indicator:S}=fr("spin"),x=y("spin",n),[$,w,O]=ZX(x),[E,R]=l.useState(()=>r&&!rY(r,o)),M=tY(E,g);l.useEffect(()=>{if(r){const D=ZK(o,()=>{R(!0)});return D(),()=>{var z;(z=D==null?void 0:D.cancel)===null||z===void 0||z.call(D)}}R(!1)},[o,r]);const T=l.useMemo(()=>typeof f<"u"&&!m,[f,m]),_=Q(x,p,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:E,[`${x}-show-text`]:!!c,[`${x}-rtl`]:h==="rtl"},a,!m&&i,w,O),I=Q(`${x}-container`,{[`${x}-blur`]:E}),N=(t=v??S)!==null&&t!==void 0?t:fM,P=Object.assign(Object.assign({},C),d),k=l.createElement("div",Object.assign({},b,{style:P,className:_,"aria-live":"polite","aria-busy":E}),l.createElement(GX,{prefixCls:x,indicator:N,percent:M}),c&&(T||m)?l.createElement("div",{className:`${x}-text`},c):null);return $(T?l.createElement("div",Object.assign({},b,{className:Q(`${x}-nested-loading`,u,w,O)}),E&&l.createElement("div",{key:"loading"},k),l.createElement("div",{className:I,key:"container"},f)):m?l.createElement("div",{className:Q(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:E},i,w,O)},k):k)};Id.setDefaultIndicator=e=>{fM=e};const oY=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let So=null,Ji=e=>e(),Ju=[],Zu={};function a$(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Zu,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const aY=ce.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(xt),a=Zu.prefixCls||o("message"),i=l.useContext(ZF),[s,c]=_I(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return ce.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),s[d].apply(s,f))}),{instance:u,sync:r}}),c}),iY=ce.forwardRef((e,t)=>{const[n,r]=ce.useState(a$),o=()=>{r(a$)};ce.useEffect(o,[]);const a=hI(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=ce.createElement(aY,{ref:t,sync:o,messageConfig:n});return ce.createElement(_o,{prefixCls:i,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),Og=()=>{if(!So){const e=document.createDocumentFragment(),t={fragment:e};So=t,Ji(()=>{C1()(ce.createElement(iY,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,Og())})}}),e)});return}So.instance&&(Ju.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ji(()=>{const r=So.instance.open(Object.assign(Object.assign({},Zu),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ji(()=>{So==null||So.instance.destroy(e.key)});break;default:Ji(()=>{var r;const o=(r=So.instance)[t].apply(r,_e(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ju=[])};function lY(e){Zu=Object.assign(Object.assign({},Zu),e),Ji(()=>{var t;(t=So==null?void 0:So.sync)===null||t===void 0||t.call(So)})}function sY(e){const t=y1(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Ju.push(o),()=>{r?Ji(()=>{r()}):o.skipped=!0}});return Og(),t}function cY(e,t){const n=y1(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Ju.push(a),()=>{o?Ji(()=>{o()}):a.skipped=!0}});return Og(),n}const uY=e=>{Ju.push({type:"destroy",key:e}),Og()},dY=["success","info","warning","error","loading"],fY={open:sY,destroy:uY,config:lY,useMessage:s7,_InternalPanelDoNotUseOrYouWillBeFired:e7},Rs=fY;dY.forEach(e=>{Rs[e]=(...t)=>cY(e,t)});var mY=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 vY=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:c}=e,u=mY(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(xt),f=d(),m=t||d("modal"),v=Bn(f),[g,b,y]=f3(m,v),h=`${m}-confirm`;let p={};return a?p={closable:o??!1,title:"",footer:"",children:l.createElement(v3,Object.assign({},e,{prefixCls:m,confirmPrefixCls:h,rootPrefixCls:f,content:s}))}:p={closable:o??!0,title:i,footer:c!==null&&l.createElement(s3,Object.assign({},e)),children:s},g(l.createElement(UI,Object.assign({prefixCls:m,className:Q(b,`${m}-pure-panel`,a&&h,a&&`${h}-${a}`,n,y,v)},u,{closeIcon:l3(m,r),closable:o},p)))},gY=w3(vY);function mM(e){return bd(y3(e))}const aa=m3;aa.useModal=JF;aa.info=function(t){return bd(b3(t))};aa.success=function(t){return bd(C3(t))};aa.error=function(t){return bd(S3(t))};aa.warning=mM;aa.warn=mM;aa.confirm=function(t){return bd(x3(t))};aa.destroyAll=function(){for(;Yi.length;){const t=Yi.pop();t&&t()}};aa.config=qF;aa._InternalPanelDoNotUseOrYouWillBeFired=gY;const hY=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},pY=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},vM=Ut("Popconfirm",e=>hY(e),pY,{resetStyle:!1});var yY=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 gM=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:c="primary",icon:u=l.createElement(nc,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:v,onPopupClick:g}=e,{getPrefixCls:b}=l.useContext(xt),[y]=ho("Popconfirm",Zo.Popconfirm),h=Vs(o),p=Vs(a);return l.createElement("div",{className:`${t}-inner-content`,onClick:g},l.createElement("div",{className:`${t}-message`},u&&l.createElement("span",{className:`${t}-message-icon`},u),l.createElement("div",{className:`${t}-message-text`},h&&l.createElement("div",{className:`${t}-title`},h),p&&l.createElement("div",{className:`${t}-description`},p))),l.createElement("div",{className:`${t}-buttons`},d&&l.createElement(kn,Object.assign({onClick:v,size:"small"},r),i||(y==null?void 0:y.cancelText)),l.createElement(E1,{buttonProps:Object.assign(Object.assign({size:"small"},S1(c)),n),actionFn:m,close:f,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(y==null?void 0:y.okText))))},bY=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=yY(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=l.useContext(xt),s=i("popconfirm",t),[c]=vM(s);return c(l.createElement(oP,{placement:n,className:Q(s,r),style:o,content:l.createElement(gM,Object.assign({prefixCls:s},a))}))};var CY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const SY=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:c=l.createElement(nc,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:v,styles:g,classNames:b}=e,y=CY(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:h,className:p,style:C,classNames:S,styles:x}=fr("popconfirm"),[$,w]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(k,D)=>{w(k,!0),m==null||m(k),f==null||f(k,D)},E=k=>{O(!1,k)},R=k=>{var D;return(D=e.onConfirm)===null||D===void 0?void 0:D.call(void 0,k)},M=k=>{var D;O(!1,k),(D=e.onCancel)===null||D===void 0||D.call(void 0,k)},T=(k,D)=>{const{disabled:z=!1}=e;z||O(k,D)},_=h("popconfirm",o),I=Q(_,p,d,S.root,b==null?void 0:b.root),N=Q(S.body,b==null?void 0:b.body),[P]=vM(_);return P(l.createElement(aP,Object.assign({},on(y,["title"]),{trigger:i,placement:a,onOpenChange:T,open:$,ref:t,classNames:{root:I,body:N},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),C),v),g==null?void 0:g.root),body:Object.assign(Object.assign({},x.body),g==null?void 0:g.body)},content:l.createElement(gM,Object.assign({okType:s,icon:c},e,{prefixCls:_,close:E,onConfirm:R,onCancel:M})),"data-popover-inject":!0}),u))}),hM=SY;hM._InternalPanelDoNotUseOrYouWillBeFired=bY;var xY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},wY=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:xY}))},$Y=l.forwardRef(wY),EY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},OY=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:EY}))},RY=l.forwardRef(OY);const IY=()=>l.createElement("svg",{width:"252",height:"294"},l.createElement("title",null,"No Found"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),l.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),l.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),l.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),l.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),l.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),l.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),l.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),l.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),l.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),l.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),l.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),l.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),l.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),l.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),l.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),l.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),l.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),l.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),l.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),l.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),l.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),l.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),l.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),l.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),l.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),l.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),l.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),l.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),l.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),l.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),l.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),PY=()=>l.createElement("svg",{width:"254",height:"294"},l.createElement("title",null,"Server Error"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),l.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),l.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),l.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),l.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),l.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),l.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),l.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),l.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),l.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),l.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),l.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),l.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),l.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),l.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),l.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),l.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),l.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),l.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),l.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),l.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),l.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),l.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),l.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),l.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),l.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),l.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),l.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),l.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),l.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),l.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),l.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),l.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),l.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),l.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),l.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),l.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),l.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),MY=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:s,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${U(e.calc(s).mul(2).equal())} ${U(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${U(s)} ${U(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},NY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},TY=e=>[MY(e),NY(e)],_Y=e=>TY(e),DY=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),kY=Ut("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,a=Bt(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[_Y(a)]},DY),jY=()=>l.createElement("svg",{width:"251",height:"294"},l.createElement("title",null,"Unauthorized"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),l.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),l.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),l.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),l.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),l.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),l.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),l.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),l.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),l.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),l.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),l.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),l.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),l.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),l.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),l.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),l.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),l.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),l.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),l.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),l.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),l.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),l.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),l.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),l.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),l.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),l.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),l.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),l.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),l.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),l.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),l.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),l.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),l.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),zY={success:Bv,error:ec,info:nc,warning:RY},Pd={404:IY,500:PY,403:jY},LY=Object.keys(Pd),FY=({prefixCls:e,icon:t,status:n})=>{const r=Q(`${e}-icon`);if(LY.includes(`${n}`)){const a=Pd[n];return l.createElement("div",{className:`${r} ${e}-image`},l.createElement(a,null))}const o=l.createElement(zY[n]);return t===null||t===!1?null:l.createElement("div",{className:r},t||o)},BY=({prefixCls:e,extra:t})=>t?l.createElement("div",{className:`${e}-extra`},t):null,Rg=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:o,style:a,children:i,status:s="info",icon:c,extra:u})=>{const{getPrefixCls:d,direction:f,result:m}=l.useContext(xt),v=d("result",e),[g,b,y]=kY(v),h=Q(v,`${v}-${s}`,t,m==null?void 0:m.className,n,{[`${v}-rtl`]:f==="rtl"},b,y),p=Object.assign(Object.assign({},m==null?void 0:m.style),a);return g(l.createElement("div",{className:h,style:p},l.createElement(FY,{prefixCls:v,status:s,icon:c}),l.createElement("div",{className:`${v}-title`},o),r&&l.createElement("div",{className:`${v}-subtitle`},r),l.createElement(BY,{prefixCls:v,extra:u}),i&&l.createElement("div",{className:`${v}-content`},i)))};Rg.PRESENTED_IMAGE_403=Pd[403];Rg.PRESENTED_IMAGE_404=Pd[404];Rg.PRESENTED_IMAGE_500=Pd[500];var AY=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],pM=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,g=e.onKeyDown,b=Rt(e,AY),y=Jt(!1,{value:i,defaultValue:s}),h=Z(y,2),p=h[0],C=h[1];function S(O,E){var R=p;return c||(R=O,C(R),v==null||v(R,E)),R}function x(O){O.which===ot.LEFT?S(!1,O):O.which===ot.RIGHT&&S(!0,O),g==null||g(O)}function $(O){var E=S(!p,O);m==null||m(E,O)}var w=Q(o,a,(n={},H(n,"".concat(o,"-checked"),p),H(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",Ce({},b,{type:"button",role:"switch","aria-checked":p,disabled:c,className:w,ref:t,onKeyDown:x,onClick:$}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});pM.displayName="Switch";const HY=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=U(c(s).add(c(r).mul(2)).equal()),f=U(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:U(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${U(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},VY=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},WY=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${U(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},KY=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,c=`${t}-inner`,u=U(s(i).add(s(r).mul(2)).equal()),d=U(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},UY=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:U(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),na(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},qY=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,u=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Wt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},GY=Ut("Switch",e=>{const t=Bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[UY(t),KY(t),WY(t),VY(t),HY(t)]},qY);var XY=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 YY=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:v}=e,g=XY(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,y]=Jt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:h,direction:p,switch:C}=l.useContext(xt),S=l.useContext(Nr),x=(o??S)||a,$=h("switch",n),w=l.createElement("div",{className:`${$}-handle`},a&&l.createElement($l,{className:`${$}-loading-icon`})),[O,E,R]=GY($),M=ir(r),T=Q(C==null?void 0:C.className,{[`${$}-small`]:M==="small",[`${$}-loading`]:a,[`${$}-rtl`]:p==="rtl"},i,s,E,R),_=Object.assign(Object.assign({},C==null?void 0:C.style),c),I=(...N)=>{y(N[0]),v==null||v.apply(void 0,N)};return O(l.createElement(vd,{component:"Switch",disabled:x},l.createElement(pM,Object.assign({},g,{checked:b,onChange:I,prefixCls:$,className:T,style:_,disabled:x,ref:t,loadingIcon:w}))))}),yM=YY;yM.__ANT_SWITCH=!0;var ei={},Md="rc-table-internal-hook";function vC(e){var t=l.createContext(void 0),n=function(o){var a=o.value,i=o.children,s=l.useRef(a);s.current=a;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=Z(c,1),d=u[0];return Dt(function(){Qo.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function dr(e,t){var n=zt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(v){m[v]=f[v]}),m}),r=l.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=Z(c,2),d=u[1];return Dt(function(){if(!r)return;function f(m){var v=n(m);pa(s.current,v,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function QY(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(o,a){var i=Jo(o),s=function(u,d){var f=i?{ref:d}:{},m=l.useRef(0),v=l.useRef(u),g=t();return g!==null?l.createElement(o,Ce({},u,f)):((!a||a(v.current,u))&&(m.current+=1),v.current=u,l.createElement(e.Provider,{value:m.current},l.createElement(o,Ce({},u,f))))};return i?l.forwardRef(s):s}function r(o,a){var i=Jo(o),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(o,Ce({},u,f))};return i?l.memo(l.forwardRef(s),a):l.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var gC=QY(),bM=gC.makeImmutable,fc=gC.responseImmutable,JY=gC.useImmutableMark,_r=vC(),CM=l.createContext({renderWithProps:!1}),ZY="RC_TABLE_KEY";function eQ(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ig(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,s=a||eQ(i).join("-")||ZY;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function Fy(e){return e!=null}function tQ(e){return typeof e=="number"&&!Number.isNaN(e)}function nQ(e){return e&&ft(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function rQ(e,t,n,r,o,a){var i=l.useContext(CM),s=JY(),c=wl(function(){if(Fy(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Lr(e,u),f=d,m=void 0;if(o){var v=o(d,e,n);nQ(v)?(f=v.children,m=v.props,i.renderWithProps=!0):f=v}return[f,m]},[s,e,r,t,o,n],function(u,d){if(a){var f=Z(u,2),m=f[1],v=Z(d,2),g=v[1];return a(g,m)}return i.renderWithProps?!0:!pa(u,d,!0)});return c}function oQ(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function aQ(e,t){return dr(_r,function(n){var r=oQ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var iQ=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():l.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function lQ(e){var t,n,r,o,a,i,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,v=e.prefixCls,g=e.className,b=e.align,y=e.record,h=e.render,p=e.dataIndex,C=e.renderIndex,S=e.shouldCellUpdate,x=e.index,$=e.rowType,w=e.colSpan,O=e.rowSpan,E=e.fixLeft,R=e.fixRight,M=e.firstFixLeft,T=e.lastFixLeft,_=e.firstFixRight,I=e.lastFixRight,N=e.appendNode,P=e.additionalProps,k=P===void 0?{}:P,D=e.isSticky,z="".concat(v,"-cell"),j=dr(_r,["supportSticky","allColumnsFixedLeft","rowHoverable"]),L=j.supportSticky,F=j.allColumnsFixedLeft,B=j.rowHoverable,V=rQ(y,p,C,d,h,S),W=Z(V,2),q=W[0],J=W[1],Y={},ne=typeof E=="number"&&L,fe=typeof R=="number"&&L;ne&&(Y.position="sticky",Y.left=E),fe&&(Y.position="sticky",Y.right=R);var oe=(t=(n=(r=J==null?void 0:J.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:w)!==null&&t!==void 0?t:1,G=(o=(a=(i=J==null?void 0:J.rowSpan)!==null&&i!==void 0?i:k.rowSpan)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:1,ue=aQ(x,G),le=Z(ue,2),ae=le[0],ee=le[1],ge=zt(function(me){var pe;y&&ee(x,x+G-1),k==null||(pe=k.onMouseEnter)===null||pe===void 0||pe.call(k,me)}),ye=zt(function(me){var pe;y&&ee(-1,-1),k==null||(pe=k.onMouseLeave)===null||pe===void 0||pe.call(k,me)});if(oe===0||G===0)return null;var Ie=(s=k.title)!==null&&s!==void 0?s:iQ({rowType:$,ellipsis:f,children:q}),Ee=Q(z,g,(c={},H(H(H(H(H(H(H(H(H(H(c,"".concat(z,"-fix-left"),ne&&L),"".concat(z,"-fix-left-first"),M&&L),"".concat(z,"-fix-left-last"),T&&L),"".concat(z,"-fix-left-all"),T&&F&&L),"".concat(z,"-fix-right"),fe&&L),"".concat(z,"-fix-right-first"),_&&L),"".concat(z,"-fix-right-last"),I&&L),"".concat(z,"-ellipsis"),f),"".concat(z,"-with-append"),N),"".concat(z,"-fix-sticky"),(ne||fe)&&D&&L),H(c,"".concat(z,"-row-hover"),!J&&ae)),k.className,J==null?void 0:J.className),A={};b&&(A.textAlign=b);var X=K(K(K(K({},J==null?void 0:J.style),Y),A),k.style),re=q;return ft(re)==="object"&&!Array.isArray(re)&&!l.isValidElement(re)&&(re=null),f&&(T||_)&&(re=l.createElement("span",{className:"".concat(z,"-content")},re)),l.createElement(u,Ce({},J,k,{className:Ee,style:X,title:Ie,scope:m,onMouseEnter:B?ge:void 0,onMouseLeave:B?ye:void 0,colSpan:oe!==1?oe:null,rowSpan:G!==1?G:null}),N,re)}const mc=l.memo(lQ);function hC(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},s,c;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,v=n[t+1],g=n[e-1],b=v&&!v.fixed||g&&!g.fixed||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(s!==void 0){var y=g&&g.fixed==="left";m=!y&&b}else if(c!==void 0){var h=v&&v.fixed==="right";f=!h&&b}}else if(s!==void 0){var p=v&&v.fixed==="left";u=!p&&b}else if(c!==void 0){var C=g&&g.fixed==="right";d=!C&&b}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var SM=l.createContext({});function sQ(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,s=e.align,c=dr(_r,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(SM),m=f.scrollColumnIndex,v=f.stickyOffsets,g=f.flattenColumns,b=n+a-1,y=b+1===m?a+1:a,h=hC(n,n+y-1,g,v,d);return l.createElement(mc,Ce({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:i,render:function(){return r}},h))}var cQ=["children"];function uQ(e){var t=e.children,n=Rt(e,cQ);return l.createElement("tr",n,t)}function Pg(e){var t=e.children;return t}Pg.Row=uQ;Pg.Cell=sQ;function dQ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=dr(_r,"prefixCls"),a=r.length-1,i=r[a],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return l.createElement(SM.Provider,{value:s},l.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Sf=fc(dQ);var xM=Pg;function fQ(e){return null}function mQ(e){return null}function wM(e,t,n,r,o,a,i){var s=a(t,i);e.push({record:t,indent:n,index:i,rowKey:s});var c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)wM(e,t[r][u],n+1,r,o,a,u)}function $M(e,t,n,r){var o=l.useMemo(function(){if(n!=null&&n.size){for(var a=[],i=0;i<(e==null?void 0:e.length);i+=1){var s=e[i];wM(a,s,0,t,n,r,i)}return a}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u,rowKey:r(c,u)}})},[e,t,n,r]);return o}function EM(e,t,n,r){var o=dr(_r,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,i=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,v=o.rowClassName,g=i==="nest",b=i==="row"&&(!d||d(e)),y=b||g,h=s&&s.has(t),p=c&&e&&e[c],C=zt(u),S=f==null?void 0:f(e,n),x=S==null?void 0:S.onClick,$=function(R){m&&y&&u(e,R);for(var M=arguments.length,T=new Array(M>1?M-1:0),_=1;_<M;_++)T[_-1]=arguments[_];x==null||x.apply(void 0,[R].concat(T))},w;typeof v=="string"?w=v:typeof v=="function"&&(w=v(e,n,r));var O=Ig(a);return K(K({},o),{},{columnsKey:O,nestExpandable:g,expanded:h,hasNestChildren:p,record:e,onTriggerExpand:C,rowSupportExpand:b,expandable:y,rowProps:K(K({},S),{},{className:Q(w,S==null?void 0:S.className),onClick:$})})}function OM(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=dr(_r,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,v=f.fixHeader,g=f.fixColumn,b=f.componentWidth,y=f.horizonScroll,h=n;return(c?y&&b:g)&&(h=l.createElement("div",{style:{width:b-d-(v&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h)),l.createElement(r,{className:a,style:{display:i?null:"none"}},l.createElement(mc,{component:o,prefixCls:t,colSpan:s},h))}function vQ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(t,"-row-expand-icon");if(!a)return l.createElement("span",{className:Q(i,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return l.createElement("span",{className:Q(i,H(H({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function gQ(e,t,n){var r=[];function o(a){(a||[]).forEach(function(i,s){r.push(t(i,s)),o(i[n])})}return o(e),r}function RM(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function IM(e,t,n,r,o){var a,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,v=e.nestExpandable,g=e.indentSize,b=e.expandIcon,y=e.expanded,h=e.hasNestChildren,p=e.onTriggerExpand,C=e.expandable,S=e.expandedKeys,x=d[n],$=f[n],w;n===(m||0)&&v&&(w=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(g*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),b({prefixCls:u,expanded:y,expandable:h,record:c,onExpand:p})));var O=((a=t.onCell)===null||a===void 0?void 0:a.call(t,c,o))||{};if(s){var E=O.rowSpan,R=E===void 0?1:E;if(C&&R&&n<s){for(var M=R,T=o;T<o+R;T+=1){var _=i[T];S.has(_)&&(M+=1)}O.rowSpan=M}}return{key:x,fixedInfo:$,appendCellNode:w,additionalCellProps:O}}function hQ(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,i=e.rowKey,s=e.rowKeys,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,v=e.expandedRowInfo,g=EM(r,i,o,u),b=g.prefixCls,y=g.flattenColumns,h=g.expandedRowClassName,p=g.expandedRowRender,C=g.rowProps,S=g.expanded,x=g.rowSupportExpand,$=l.useRef(!1);$.current||($.current=S);var w=RM(h,r,o,u),O=l.createElement(d,Ce({},C,{"data-row-key":i,className:Q(t,"".concat(b,"-row"),"".concat(b,"-row-level-").concat(u),C==null?void 0:C.className,H({},w,u>=1)),style:K(K({},n),C==null?void 0:C.style)}),y.map(function(M,T){var _=M.render,I=M.dataIndex,N=M.className,P=IM(g,M,T,u,o,s,v==null?void 0:v.offset),k=P.key,D=P.fixedInfo,z=P.appendCellNode,j=P.additionalCellProps;return l.createElement(mc,Ce({className:N,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?m:f,prefixCls:b,key:k,record:r,index:o,renderIndex:a,dataIndex:I,render:_,shouldCellUpdate:M.shouldCellUpdate},D,{appendNode:z,additionalProps:j}))})),E;if(x&&($.current||S)){var R=p(r,o,u+1,S);E=l.createElement(OM,{expanded:S,className:Q("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),w),prefixCls:b,component:d,cellComponent:f,colSpan:v?v.colSpan:y.length,stickyOffset:v==null?void 0:v.sticky,isEmpty:!1},R)}return l.createElement(l.Fragment,null,O,E)}const pQ=fc(hQ);function yQ(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,a=l.useRef();return Dt(function(){a.current&&n(t,a.current.offsetWidth)},[]),l.createElement(gr,{data:t},l.createElement("th",{ref:a,className:"".concat(r,"-measure-cell")},l.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function bQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,a=l.useRef(null),i=dr(_r,["measureRowRender"]),s=i.measureRowRender,c=l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},l.createElement(gr.Collection,{onBatchResize:function(d){rc(a.current)&&d.forEach(function(f){var m=f.data,v=f.size;r(m,v.offsetWidth)})}},n.map(function(u){var d=o.find(function(v){return v.key===u}),f=d==null?void 0:d.title,m=l.isValidElement(f)?l.cloneElement(f,{ref:null}):f;return l.createElement(yQ,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(c):c}function CQ(e){var t=e.data,n=e.measureColumnWidth,r=dr(_r,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,v=m===void 0?0:m,g=r.colWidths,b=$M(t,d,u,c),y=l.useMemo(function(){return b.map(function(E){return E.rowKey})},[b]),h=l.useRef({renderWithProps:!1}),p=l.useMemo(function(){for(var E=s.length-v,R=0,M=0;M<v;M+=1)R+=g[M]||0;return{offset:v,colSpan:E,sticky:R}},[s.length,v,g]),C=a(["body","wrapper"],"tbody"),S=a(["body","row"],"tr"),x=a(["body","cell"],"td"),$=a(["body","cell"],"th"),w;t.length?w=b.map(function(E,R){var M=E.record,T=E.indent,_=E.index,I=E.rowKey;return l.createElement(pQ,{key:I,rowKey:I,rowKeys:y,record:M,index:R,renderIndex:_,rowComponent:S,cellComponent:x,scopeCellComponent:$,indent:T,expandedRowInfo:p})}):w=l.createElement(OM,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:S,cellComponent:x,colSpan:s.length,isEmpty:!0},f);var O=Ig(s);return l.createElement(CM.Provider,{value:h.current},l.createElement(C,{className:"".concat(o,"-tbody")},n&&l.createElement(bQ,{prefixCls:o,columnsKey:O,onColumnResize:i,columns:s}),w))}const SQ=fc(CQ);var xQ=["expandable"],gu="RC_TABLE_INTERNAL_COL_DEFINE";function wQ(e){var t=e.expandable,n=Rt(e,xQ),r;return"expandable"in e?r=K(K({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var $Q=["columnType"];function PM(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=dr(_r,["tableLayout"]),a=o.tableLayout,i=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,v=void 0;if(f&&(m=f[gu],a==="auto"&&(v=f.minWidth)),d||v||m||c){var g=m||{};g.columnType;var b=Rt(g,$Q);i.unshift(l.createElement("col",Ce({key:u,style:{width:d,minWidth:v}},b))),c=!0}}return i.length>0?l.createElement("colgroup",null,i):null}var EQ=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function OQ(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var RQ=l.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,s=e.colGroup,c=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,v=e.stickyBottomOffset,g=e.stickyClassName,b=e.scrollX,y=e.tableLayout,h=y===void 0?"fixed":y,p=e.onScroll,C=e.children,S=Rt(e,EQ),x=dr(_r,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=x.prefixCls,w=x.scrollbarSize,O=x.isSticky,E=x.getComponent,R=E(["header","table"],"table"),M=O&&!f?0:w,T=l.useRef(null),_=l.useCallback(function(L){Lu(t,L),Lu(T,L)},[]);l.useEffect(function(){function L(B){var V=B,W=V.currentTarget,q=V.deltaX;q&&(p({currentTarget:W,scrollLeft:W.scrollLeft+q}),B.preventDefault())}var F=T.current;return F==null||F.addEventListener("wheel",L,{passive:!1}),function(){F==null||F.removeEventListener("wheel",L)}},[]);var I=a[a.length-1],N={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},P=l.useMemo(function(){return M?[].concat(_e(o),[N]):o},[M,o]),k=l.useMemo(function(){return M?[].concat(_e(a),[N]):a},[M,a]),D=l.useMemo(function(){var L=u.right,F=u.left;return K(K({},u),{},{left:d==="rtl"?[].concat(_e(F.map(function(B){return B+M})),[0]):F,right:d==="rtl"?L:[].concat(_e(L.map(function(B){return B+M})),[0]),isSticky:O})},[M,u,O]),z=OQ(i,c),j=l.useMemo(function(){var L=!z||!z.length||z.every(function(F){return!F});return r||L},[r,z]);return l.createElement("div",{style:K({overflow:"hidden"},O?{top:m,bottom:v}:{}),ref:_,className:Q(n,H({},g,!!g))},l.createElement(R,{style:{tableLayout:h,minWidth:"100%",width:b}},j?s:l.createElement(PM,{colWidths:[].concat(_e(z),[M]),columCount:c+1,columns:k}),C(K(K({},S),{},{stickyOffsets:D,columns:P,flattenColumns:k}))))});const i$=l.memo(RQ);var IQ=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,a=t.rowComponent,i=t.cellComponent,s=t.onHeaderRow,c=t.index,u=dr(_r,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(g){return g.column}),c));var v=Ig(n.map(function(g){return g.column}));return l.createElement(a,m,n.map(function(g,b){var y=g.column,h=hC(g.colStart,g.colEnd,o,r,f),p;return y&&y.onHeaderCell&&(p=g.column.onHeaderCell(y)),l.createElement(mc,Ce({},g,{scope:y.title?g.colSpan>1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:i,prefixCls:d,key:v[b]},h,{additionalProps:p,rowType:"header"}))}))};function PQ(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},v=1,g=f.children;return g&&g.length>0&&(v=n(g,u,c+1).reduce(function(b,y){return b+y},0),m.hasSubColumns=!0),"colSpan"in f&&(v=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=v,m.colEnd=m.colStart+v-1,t[c].push(m),u+=v,v});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}var MQ=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,i=dr(_r,["prefixCls","getComponent"]),s=i.prefixCls,c=i.getComponent,u=l.useMemo(function(){return PQ(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return l.createElement(d,{className:"".concat(s,"-thead")},u.map(function(v,g){var b=l.createElement(IQ,{key:g,flattenColumns:o,cells:v,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:a,index:g});return b}))};const l$=fc(MQ);function s$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function NQ(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var v=s$(t,m.width);v?r+=v:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),s=o,c=i/o,u=0,d=e.map(function(m){var v=K({},m),g=s$(t,v.width);if(g)v.width=g;else{var b=Math.floor(c);v.width=s===1?i:b,i-=b,s-=1}return u+=v.width,v});if(u<a){var f=a/u;i=a,d.forEach(function(m,v){var g=Math.floor(m.width*f);m.width=v===d.length-1?i:g,i-=g})}return[d,Math.max(u,a)]}return[e,t]},[e,t,n])}var TQ=["children"],_Q=["fixed"];function pC(e){return yr(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=Rt(r,TQ),i=K({key:n},a);return o&&(i.children=pC(o)),i})}function MM(e){return e.filter(function(t){return t&&ft(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?K(K({},t),{},{children:MM(n)}):t})}function By(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ft(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(_e(n),_e(By(c,s).map(function(u){var d;return K(K({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(_e(n),[K(K({key:s},r),{},{fixed:i})])},[])}function DQ(e){return e.map(function(t){var n=t.fixed,r=Rt(t,_Q),o=n;return n==="left"?o="right":n==="right"&&(o="left"),K({fixed:o},r)})}function kQ(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,v=e.expandedRowOffset,g=v===void 0?0:v,b=e.direction,y=e.expandRowByClick,h=e.columnWidth,p=e.fixed,C=e.scrollWidth,S=e.clientWidth,x=l.useMemo(function(){var I=r||pC(o)||[];return MM(I.slice())},[r,o]),$=l.useMemo(function(){if(a){var I=x.slice();if(!I.includes(ei)){var N=m||0,P=N===0&&p==="right"?x.length:N;P>=0&&I.splice(P,0,ei)}var k=I.indexOf(ei);I=I.filter(function(L,F){return L!==ei||F===k});var D=x[k],z;p?z=p:z=D?D.fixed:null;var j=H(H(H(H(H(H({},gu,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(F,B,V){var W=c(B,V),q=i.has(W),J=f?f(B):!0,Y=d({prefixCls:n,expanded:q,expandable:J,record:B,onExpand:u});return y?l.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},Y):Y});return I.map(function(L,F){var B=L===ei?j:L;return F<g?K(K({},B),{},{fixed:B.fixed||"left"}):B})}return x.filter(function(L){return L!==ei})},[a,x,c,i,d,b,g]),w=l.useMemo(function(){var I=$;return t&&(I=t(I)),I.length||(I=[{render:function(){return null}}]),I},[t,$,b]),O=l.useMemo(function(){return b==="rtl"?DQ(By(w)):By(w)},[w,b,C]),E=l.useMemo(function(){for(var I=-1,N=O.length-1;N>=0;N-=1){var P=O[N].fixed;if(P==="left"||P===!0){I=N;break}}if(I>=0)for(var k=0;k<=I;k+=1){var D=O[k].fixed;if(D!=="left"&&D!==!0)return!0}var z=O.findIndex(function(F){var B=F.fixed;return B==="right"});if(z>=0)for(var j=z;j<O.length;j+=1){var L=O[j].fixed;if(L!=="right")return!0}return!1},[O]),R=NQ(O,C,S),M=Z(R,2),T=M[0],_=M[1];return[w,T,_,E]}function jQ(e,t,n){var r=wQ(e),o=r.expandIcon,a=r.expandedRowKeys,i=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||vQ,v=f||"children",g=l.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Md&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&ft(x)==="object"&&x[v]})?"nest":!1},[!!c,t]),b=l.useState(function(){return i||(s?gQ(t,n,v):[])}),y=Z(b,2),h=y[0],p=y[1],C=l.useMemo(function(){return new Set(a||h||[])},[a,h]),S=l.useCallback(function(x){var $=n(x,t.indexOf(x)),w,O=C.has($);O?(C.delete($),w=_e(C)):w=[].concat(_e(C),[$]),p(w),u&&u(!O,x),d&&d(w)},[n,C,t,u,d]);return[r,g,C,m,v,S]}function zQ(e,t,n){var r=e.map(function(o,a){return hC(a,a,e,t,n)});return wl(function(){return r},[r],function(o,a){return!pa(o,a)})}function LQ(e){var t=l.useRef(e),n=l.useState({}),r=Z(n,2),o=r[1],a=l.useRef(null),i=l.useRef([]);function s(c){i.current.push(c);var u=Promise.resolve();a.current=u,u.then(function(){if(a.current===u){var d=i.current,f=t.current;i.current=[],d.forEach(function(m){t.current=m(t.current)}),a.current=null,f!==t.current&&o({})}})}return l.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function FQ(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return l.useEffect(function(){return r},[]),[o,a]}function BQ(){var e=l.useState(-1),t=Z(e,2),n=t[0],r=t[1],o=l.useState(-1),a=Z(o,2),i=a[0],s=a[1],c=l.useCallback(function(u,d){r(u),s(d)},[]);return[n,i,c]}var c$=br()?window:null;function AQ(e,t){var n=ft(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,i=a===void 0?0:a,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return c$}:u,f=d()||c$,m=!!e;return l.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:i,offsetScroll:c,container:f}},[m,c,o,i,t,f])}function HQ(e,t,n){var r=l.useMemo(function(){var o=t.length,a=function(u,d,f){for(var m=[],v=0,g=u;g!==d;g+=f)m.push(v),t[g].fixed&&(v+=e[g]||0);return m},i=a(0,o,1),s=a(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:i}:{left:i,right:s}},[e,t,n]);return r}function u$(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function d$(e){var t=dd(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var VQ=function(t,n){var r,o,a=t.scrollBodyRef,i=t.onScroll,s=t.offsetScroll,c=t.container,u=t.direction,d=dr(_r,"prefixCls"),f=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,v=f&&m*(m/f),g=l.useRef(),b=LQ({scrollLeft:0,isHiddenScrollBar:!0}),y=Z(b,2),h=y[0],p=y[1],C=l.useRef({delta:0,x:0}),S=l.useState(!1),x=Z(S,2),$=x[0],w=x[1],O=l.useRef(null);l.useEffect(function(){return function(){jt.cancel(O.current)}},[]);var E=function(){w(!1)},R=function(N){N.persist(),C.current.delta=N.pageX-h.scrollLeft,C.current.x=0,w(!0),N.preventDefault()},M=function(N){var P,k=N||((P=window)===null||P===void 0?void 0:P.event),D=k.buttons;if(!$||D===0){$&&w(!1);return}var z=C.current.x+N.pageX-C.current.x-C.current.delta,j=u==="rtl";z=Math.max(j?v-m:0,Math.min(j?0:m-v,z));var L=!j||Math.abs(z)+Math.abs(v)<m;L&&(i({scrollLeft:z/m*(f+2)}),C.current.x=N.pageX)},T=function(){jt.cancel(O.current),O.current=jt(function(){if(a.current){var N=d$(a.current).top,P=N+a.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:d$(c).top+c.clientHeight;p(function(D){return K(K({},D),{},{isHiddenScrollBar:P-sw()<=k||N>=k-s})})}})},_=function(N){p(function(P){return K(K({},P),{},{scrollLeft:f?N/f*m:0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:_,checkScrollBarVisible:T}}),l.useEffect(function(){var I=Y2(document.body,"mouseup",E,!1),N=Y2(document.body,"mousemove",M,!1);return T(),function(){I.remove(),N.remove()}},[v,$]),l.useEffect(function(){if(a.current){for(var I=[],N=dd(a.current);N;)I.push(N),N=N.parentElement;return I.forEach(function(P){return P.addEventListener("scroll",T,!1)}),window.addEventListener("resize",T,!1),window.addEventListener("scroll",T,!1),c.addEventListener("scroll",T,!1),function(){I.forEach(function(P){return P.removeEventListener("scroll",T)}),window.removeEventListener("resize",T),window.removeEventListener("scroll",T),c.removeEventListener("scroll",T)}}},[c]),l.useEffect(function(){h.isHiddenScrollBar||p(function(I){var N=a.current;return N?K(K({},I),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):I})},[h.isHiddenScrollBar]),f<=m||!v||h.isHiddenScrollBar?null:l.createElement("div",{style:{height:sw(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},l.createElement("div",{onMouseDown:R,ref:g,className:Q("".concat(d,"-sticky-scroll-bar"),H({},"".concat(d,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const WQ=l.forwardRef(VQ);var NM="rc-table",KQ=[],UQ={};function qQ(){return"No Data"}function GQ(e,t){var n=K({rowKey:"key",prefixCls:NM,emptyText:qQ},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,v=n.footer,g=n.summary,b=n.caption,y=n.id,h=n.showHeader,p=n.components,C=n.emptyText,S=n.onRow,x=n.onHeaderRow,$=n.measureRowRender,w=n.onScroll,O=n.internalHooks,E=n.transformColumns,R=n.internalRefs,M=n.tailor,T=n.getContainerWidth,_=n.sticky,I=n.rowHoverable,N=I===void 0?!0:I,P=s||KQ,k=!!P.length,D=O===Md,z=l.useCallback(function(Ge,dt){return Lr(p,Ge)||dt},[p]),j=l.useMemo(function(){return typeof c=="function"?c:function(Ge){var dt=Ge&&Ge[c];return dt}},[c]),L=z(["body"]),F=BQ(),B=Z(F,3),V=B[0],W=B[1],q=B[2],J=jQ(n,P,j),Y=Z(J,6),ne=Y[0],fe=Y[1],oe=Y[2],G=Y[3],ue=Y[4],le=Y[5],ae=u==null?void 0:u.x,ee=l.useState(0),ge=Z(ee,2),ye=ge[0],Ie=ge[1],Ee=kQ(K(K(K({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:oe,getRowKey:j,onTriggerExpand:le,expandIcon:G,expandIconColumnIndex:ne.expandIconColumnIndex,direction:f,scrollWidth:D&&M&&typeof ae=="number"?ae:null,clientWidth:ye}),D?E:null),A=Z(Ee,4),X=A[0],re=A[1],me=A[2],pe=A[3],ve=me??ae,Pe=l.useMemo(function(){return{columns:X,flattenColumns:re}},[X,re]),De=l.useRef(),Me=l.useRef(),Le=l.useRef(),Oe=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:De.current,scrollTo:function(dt){var At;if(Le.current instanceof HTMLElement){var tn=dt.index,Cn=dt.top,jn=dt.key;if(tQ(Cn)){var Dr;(Dr=Le.current)===null||Dr===void 0||Dr.scrollTo({top:Cn})}else{var Vr,Wr=jn??j(P[tn]);(Vr=Le.current.querySelector('[data-row-key="'.concat(Wr,'"]')))===null||Vr===void 0||Vr.scrollIntoView()}}else(At=Le.current)!==null&&At!==void 0&&At.scrollTo&&Le.current.scrollTo(dt)}}});var be=l.useRef(),ke=l.useState(!1),Se=Z(ke,2),Re=Se[0],we=Se[1],xe=l.useState(!1),Te=Z(xe,2),Ae=Te[0],ct=Te[1],yt=l.useState(new Map),Ve=Z(yt,2),Xe=Ve[0],nt=Ve[1],Ue=Ig(re),Qe=Ue.map(function(Ge){return Xe.get(Ge)}),wt=l.useMemo(function(){return Qe},[Qe.join("_")]),It=HQ(wt,re,f),Je=u&&Fy(u.y),at=u&&Fy(ve)||!!ne.fixed,ie=at&&re.some(function(Ge){var dt=Ge.fixed;return dt}),se=l.useRef(),de=AQ(_,r),he=de.isSticky,$e=de.offsetHeader,ze=de.offsetSummary,Be=de.offsetScroll,He=de.stickyClassName,je=de.container,Ne=l.useMemo(function(){return g==null?void 0:g(P)},[g,P]),Fe=(Je||he)&&l.isValidElement(Ne)&&Ne.type===Pg&&Ne.props.fixed,Ye,ut,$t;Je&&(ut={overflowY:k?"scroll":"auto",maxHeight:u.y}),at&&(Ye={overflowX:"auto"},Je||(ut={overflowY:"hidden"}),$t={width:ve===!0?"auto":ve,minWidth:"100%"});var Mt=l.useCallback(function(Ge,dt){nt(function(At){if(At.get(Ge)!==dt){var tn=new Map(At);return tn.set(Ge,dt),tn}return At})},[]),lt=FQ(),Tt=Z(lt,2),We=Tt[0],tt=Tt[1];function bt(Ge,dt){dt&&(typeof dt=="function"?dt(Ge):dt.scrollLeft!==Ge&&(dt.scrollLeft=Ge,dt.scrollLeft!==Ge&&setTimeout(function(){dt.scrollLeft=Ge},0)))}var it=zt(function(Ge){var dt=Ge.currentTarget,At=Ge.scrollLeft,tn=f==="rtl",Cn=typeof At=="number"?At:dt.scrollLeft,jn=dt||UQ;if(!tt()||tt()===jn){var Dr;We(jn),bt(Cn,Me.current),bt(Cn,Le.current),bt(Cn,be.current),bt(Cn,(Dr=se.current)===null||Dr===void 0?void 0:Dr.setScrollLeft)}var Vr=dt||Me.current;if(Vr){var Wr=D&&M&&typeof ve=="number"?ve:Vr.scrollWidth,ia=Vr.clientWidth;if(Wr===ia){we(!1),ct(!1);return}tn?(we(-Cn<Wr-ia),ct(-Cn>0)):(we(Cn>0),ct(Cn<Wr-ia))}}),st=zt(function(Ge){it(Ge),w==null||w(Ge)}),rt=function(){if(at&&Le.current){var dt;it({currentTarget:dd(Le.current),scrollLeft:(dt=Le.current)===null||dt===void 0?void 0:dt.scrollLeft})}else we(!1),ct(!1)},Et=function(dt){var At,tn=dt.width;(At=se.current)===null||At===void 0||At.checkScrollBarVisible();var Cn=De.current?De.current.offsetWidth:tn;D&&T&&De.current&&(Cn=T(De.current,Cn)||Cn),Cn!==ye&&(rt(),Ie(Cn))},kt=l.useRef(!1);l.useEffect(function(){kt.current&&rt()},[at,s,X.length]),l.useEffect(function(){kt.current=!0},[]);var Ze=l.useState(0),Ke=Z(Ze,2),vt=Ke[0],Yt=Ke[1],rn=l.useState(!0),Ht=Z(rn,2),un=Ht[0],mn=Ht[1];Dt(function(){(!M||!D)&&(Le.current instanceof Element?Yt(cy(Le.current).width):Yt(cy(Oe.current).width)),mn(Cy("position","sticky"))},[]),l.useEffect(function(){D&&R&&(R.body.current=Le.current)});var Mn=l.useCallback(function(Ge){return l.createElement(l.Fragment,null,l.createElement(l$,Ge),Fe==="top"&&l.createElement(Sf,Ge,Ne))},[Fe,Ne]),An=l.useCallback(function(Ge){return l.createElement(Sf,Ge,Ne)},[Ne]),Jn=z(["table"],"table"),Hn=l.useMemo(function(){return d||(ie?ve==="max-content"?"auto":"fixed":Je||he||re.some(function(Ge){var dt=Ge.ellipsis;return dt})?"fixed":"auto")},[Je,ie,re,d,he]),qt,Ct={colWidths:wt,columCount:re.length,stickyOffsets:It,onHeaderRow:x,fixHeader:Je,scroll:u},ht=l.useMemo(function(){return k?null:typeof C=="function"?C():C},[k,C]),Kt=l.createElement(SQ,{data:P,measureColumnWidth:Je||at||he}),mt=l.createElement(PM,{colWidths:re.map(function(Ge){var dt=Ge.width;return dt}),columns:re}),gt=b!=null?l.createElement("caption",{className:"".concat(r,"-caption")},b):void 0,Vt=ur(n,{data:!0}),an=ur(n,{aria:!0});if(Je||he){var vn;typeof L=="function"?(vn=L(P,{scrollbarSize:vt,ref:Le,onScroll:it}),Ct.colWidths=re.map(function(Ge,dt){var At=Ge.width,tn=dt===re.length-1?At-vt:At;return typeof tn=="number"&&!Number.isNaN(tn)?tn:0})):vn=l.createElement("div",{style:K(K({},Ye),ut),onScroll:st,ref:Le,className:Q("".concat(r,"-body"))},l.createElement(Jn,Ce({style:K(K({},$t),{},{tableLayout:Hn})},an),gt,mt,Kt,!Fe&&Ne&&l.createElement(Sf,{stickyOffsets:It,flattenColumns:re},Ne)));var Vn=K(K(K({noData:!P.length},Ct),Pe),{},{direction:f,stickyClassName:He,scrollX:ve,tableLayout:Hn,onScroll:it});qt=l.createElement(l.Fragment,null,h!==!1&&l.createElement(i$,Ce({},Vn,{stickyTopOffset:$e,className:"".concat(r,"-header"),ref:Me,colGroup:mt}),Mn),vn,Fe&&Fe!=="top"&&l.createElement(i$,Ce({},Vn,{stickyBottomOffset:ze,className:"".concat(r,"-summary"),ref:be,colGroup:mt}),An),he&&Le.current&&Le.current instanceof Element&&l.createElement(WQ,{ref:se,offsetScroll:Be,scrollBodyRef:Le,onScroll:it,container:je,direction:f}))}else qt=l.createElement("div",{style:K(K({},Ye),ut),className:Q("".concat(r,"-content")),onScroll:it,ref:Le},l.createElement(Jn,Ce({style:K(K({},$t),{},{tableLayout:Hn})},an),gt,mt,h!==!1&&l.createElement(l$,Ce({},Ct,Pe)),Kt,Ne&&l.createElement(Sf,{stickyOffsets:It,flattenColumns:re},Ne)));var Nn=l.createElement("div",Ce({className:Q(r,o,H(H(H(H(H(H(H(H(H(H({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Re),"".concat(r,"-ping-right"),Ae),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Je),"".concat(r,"-fixed-column"),ie),"".concat(r,"-fixed-column-gapped"),ie&&pe),"".concat(r,"-scroll-horizontal"),at),"".concat(r,"-has-fix-left"),re[0]&&re[0].fixed),"".concat(r,"-has-fix-right"),re[re.length-1]&&re[re.length-1].fixed==="right")),style:i,id:y,ref:De},Vt),m&&l.createElement(u$,{className:"".concat(r,"-title")},m(P)),l.createElement("div",{ref:Oe,className:"".concat(r,"-container")},qt),v&&l.createElement(u$,{className:"".concat(r,"-footer")},v(P)));at&&(Nn=l.createElement(gr,{onResize:Et},Nn));var Wn=zQ(re,It,f),Ft=l.useMemo(function(){return{scrollX:ve,prefixCls:r,getComponent:z,scrollbarSize:vt,direction:f,fixedInfoList:Wn,isSticky:he,supportSticky:un,componentWidth:ye,fixHeader:Je,fixColumn:ie,horizonScroll:at,tableLayout:Hn,rowClassName:a,expandedRowClassName:ne.expandedRowClassName,expandIcon:G,expandableType:fe,expandRowByClick:ne.expandRowByClick,expandedRowRender:ne.expandedRowRender,expandedRowOffset:ne.expandedRowOffset,onTriggerExpand:le,expandIconColumnIndex:ne.expandIconColumnIndex,indentSize:ne.indentSize,allColumnsFixedLeft:re.every(function(Ge){return Ge.fixed==="left"}),emptyNode:ht,columns:X,flattenColumns:re,onColumnResize:Mt,colWidths:wt,hoverStartRow:V,hoverEndRow:W,onHover:q,rowExpandable:ne.rowExpandable,onRow:S,getRowKey:j,expandedKeys:oe,childrenColumnName:ue,rowHoverable:N,measureRowRender:$}},[ve,r,z,vt,f,Wn,he,un,ye,Je,ie,at,Hn,a,ne.expandedRowClassName,G,fe,ne.expandRowByClick,ne.expandedRowRender,ne.expandedRowOffset,le,ne.expandIconColumnIndex,ne.indentSize,ht,X,re,Mt,wt,V,W,q,ne.rowExpandable,S,j,oe,ue,N,$]);return l.createElement(_r.Provider,{value:Ft},Nn)}var XQ=l.forwardRef(GQ);function TM(e){return bM(XQ,e)}var vc=TM();vc.EXPAND_COLUMN=ei;vc.INTERNAL_HOOKS=Md;vc.Column=fQ;vc.ColumnGroup=mQ;vc.Summary=xM;var yC=vC(null),_M=vC(null);function YQ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function QQ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,i=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,v=n.render,g=n.dataIndex,b=n.className,y=n.width,h=dr(_M,["columnsOffset"]),p=h.columnsOffset,C=IM(t,n,r,o,a),S=C.key,x=C.fixedInfo,$=C.appendCellNode,w=C.additionalCellProps,O=w.style,E=w.colSpan,R=E===void 0?1:E,M=w.rowSpan,T=M===void 0?1:M,_=r-1,I=YQ(_,R,p),N=R>1?y-I:0,P=K(K(K({},O),u),{},{flex:"0 0 ".concat(I,"px"),width:"".concat(I,"px"),marginRight:N,pointerEvents:"auto"}),k=l.useMemo(function(){return f?T<=1:R===0||T===0||T>1},[T,R,f]);k?P.visibility="hidden":f&&(P.height=m==null?void 0:m(T));var D=k?function(){return null}:v,z={};return(T===0||R===0)&&(z.rowSpan=1,z.colSpan=1),l.createElement(mc,Ce({className:Q(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:s,dataIndex:g,render:D,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:$,additionalProps:K(K({},w),{},{style:P},z)}))}var JQ=["data","index","className","rowKey","style","extra","getHeight"],ZQ=l.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=Rt(e,JQ),d=n.record,f=n.indent,m=n.index,v=dr(_r,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=v.scrollX,b=v.flattenColumns,y=v.prefixCls,h=v.fixColumn,p=v.componentWidth,C=dr(yC,["getComponent"]),S=C.getComponent,x=EM(d,a,r,f),$=S(["body","row"],"div"),w=S(["body","cell"],"div"),O=x.rowSupportExpand,E=x.expanded,R=x.rowProps,M=x.expandedRowRender,T=x.expandedRowClassName,_;if(O&&E){var I=M(d,r,f+1,E),N=RM(T,d,r,f),P={};h&&(P={style:H({},"--virtual-width","".concat(p,"px"))});var k="".concat(y,"-expanded-row-cell");_=l.createElement($,{className:Q("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),N)},l.createElement(mc,{component:w,prefixCls:y,className:Q(k,H({},"".concat(k,"-fixed"),h)),additionalProps:P},I))}var D=K(K({},i),{},{width:g});s&&(D.position="absolute",D.pointerEvents="none");var z=l.createElement($,Ce({},R,u,{"data-row-key":a,ref:O?null:t,className:Q(o,"".concat(y,"-row"),R==null?void 0:R.className,H({},"".concat(y,"-row-extra"),s)),style:K(K({},D),R==null?void 0:R.style)}),b.map(function(j,L){return l.createElement(QQ,{key:L,component:w,rowInfo:x,column:j,colIndex:L,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return O?l.createElement("div",{ref:t},z,_):z}),f$=fc(ZQ),eJ=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=dr(_r,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,i=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,v=dr(yC),g=v.sticky,b=v.scrollY,y=v.listItemHeight,h=v.getComponent,p=v.onScroll,C=l.useRef(),S=$M(n,d,c,s),x=l.useMemo(function(){var _=0;return a.map(function(I){var N=I.width,P=I.minWidth,k=I.key,D=Math.max(N||0,P||0);return _+=D,[k,D,_]})},[a]),$=l.useMemo(function(){return x.map(function(_){return _[2]})},[x]);l.useEffect(function(){x.forEach(function(_){var I=Z(_,2),N=I[0],P=I[1];i(N,P)})},[x]),l.useImperativeHandle(t,function(){var _,I={scrollTo:function(P){var k;(k=C.current)===null||k===void 0||k.scrollTo(P)},nativeElement:(_=C.current)===null||_===void 0?void 0:_.nativeElement};return Object.defineProperty(I,"scrollLeft",{get:function(){var P;return((P=C.current)===null||P===void 0?void 0:P.getScrollInfo().x)||0},set:function(P){var k;(k=C.current)===null||k===void 0||k.scrollTo({left:P})}}),Object.defineProperty(I,"scrollTop",{get:function(){var P;return((P=C.current)===null||P===void 0?void 0:P.getScrollInfo().y)||0},set:function(P){var k;(k=C.current)===null||k===void 0||k.scrollTo({top:P})}}),I});var w=function(I,N){var P,k=(P=S[N])===null||P===void 0?void 0:P.record,D=I.onCell;if(D){var z,j=D(k,N);return(z=j==null?void 0:j.rowSpan)!==null&&z!==void 0?z:1}return 1},O=function(I){var N=I.start,P=I.end,k=I.getSize,D=I.offsetY;if(P<0)return null;for(var z=a.filter(function(oe){return w(oe,N)===0}),j=N,L=function(G){if(z=z.filter(function(ue){return w(ue,G)===0}),!z.length)return j=G,1},F=N;F>=0&&!L(F);F-=1);for(var B=a.filter(function(oe){return w(oe,P)!==1}),V=P,W=function(G){if(B=B.filter(function(ue){return w(ue,G)!==1}),!B.length)return V=Math.max(G-1,P),1},q=P;q<S.length&&!W(q);q+=1);for(var J=[],Y=function(G){var ue=S[G];if(!ue)return 1;a.some(function(le){return w(le,G)>1})&&J.push(G)},ne=j;ne<=V;ne+=1)Y(ne);var fe=J.map(function(oe){var G=S[oe],ue=s(G.record,oe),le=function(ge){var ye=oe+ge-1,Ie=s(S[ye].record,ye),Ee=k(ue,Ie);return Ee.bottom-Ee.top},ae=k(ue);return l.createElement(f$,{key:oe,data:G,rowKey:ue,index:oe,style:{top:-D+ae.top},extra:!0,getHeight:le})});return fe},E=l.useMemo(function(){return{columnsOffset:$}},[$]),R="".concat(u,"-tbody"),M=h(["body","wrapper"]),T={};return g&&(T.position="sticky",T.bottom=0,ft(g)==="object"&&g.offsetScroll&&(T.bottom=g.offsetScroll)),l.createElement(_M.Provider,{value:E},l.createElement(lg,{fullHeight:!1,ref:C,prefixCls:"".concat(R,"-virtual"),styles:{horizontalScrollBar:T},className:R,height:b,itemHeight:y||24,data:S,itemKey:function(I){return s(I.record)},component:M,scrollWidth:f,direction:m,onVirtualScroll:function(I){var N,P=I.x;r({currentTarget:(N=C.current)===null||N===void 0?void 0:N.nativeElement,scrollLeft:P})},onScroll:p,extraRender:O},function(_,I,N){var P=s(_.record,I);return l.createElement(f$,{data:_,rowKey:P,index:I,style:N.style})}))}),tJ=fc(eJ),nJ=function(t,n){var r=n.ref,o=n.onScroll;return l.createElement(tJ,{ref:r,data:t,onScroll:o})};function rJ(e,t){var n=e.data,r=e.columns,o=e.scroll,a=e.sticky,i=e.prefixCls,s=i===void 0?NM:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},v=m.x,g=m.y;typeof v!="number"&&(v=1),typeof g!="number"&&(g=500);var b=zt(function(p,C){return Lr(d,p)||C}),y=zt(f),h=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:u,getComponent:b,onScroll:y}},[a,g,u,b,y]);return l.createElement(yC.Provider,{value:h},l.createElement(vc,Ce({},e,{className:Q(c,"".concat(s,"-virtual")),scroll:K(K({},o),{},{x:v}),components:K(K({},d),{},{body:n!=null&&n.length?nJ:void 0}),columns:r,internalHooks:Md,tailor:!0,ref:t})))}var oJ=l.forwardRef(rJ);function DM(e){return bM(oJ,e)}DM();const aJ=e=>null,iJ=e=>null;var bC=l.createContext(null),lJ=l.createContext({}),sJ=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1)s.push(l.createElement("span",{key:c,className:Q(i,H(H({},"".concat(i,"-start"),o[c]),"".concat(i,"-end"),a[c]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const cJ=l.memo(sJ);var uJ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],m$="open",v$="close",dJ="---",ed=function(t){var n,r,o,a=t.eventKey,i=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,v=t.isEnd,g=t.expanded,b=t.selected,y=t.checked,h=t.halfChecked,p=t.loading,C=t.domRef,S=t.active,x=t.data,$=t.onMouseMove,w=t.selectable,O=Rt(t,uJ),E=ce.useContext(bC),R=ce.useContext(lJ),M=ce.useRef(null),T=ce.useState(!1),_=Z(T,2),I=_[0],N=_[1],P=!!(E.disabled||t.disabled||(n=R.nodeDisabled)!==null&&n!==void 0&&n.call(R,x)),k=ce.useMemo(function(){return!E.checkable||t.checkable===!1?!1:E.checkable},[E.checkable,t.checkable]),D=function(be){P||E.onNodeSelect(be,Gn(t))},z=function(be){P||!k||t.disableCheckbox||E.onNodeCheck(be,Gn(t),!y)},j=ce.useMemo(function(){return typeof w=="boolean"?w:E.selectable},[w,E.selectable]),L=function(be){E.onNodeClick(be,Gn(t)),j?D(be):z(be)},F=function(be){E.onNodeDoubleClick(be,Gn(t))},B=function(be){E.onNodeMouseEnter(be,Gn(t))},V=function(be){E.onNodeMouseLeave(be,Gn(t))},W=function(be){E.onNodeContextMenu(be,Gn(t))},q=ce.useMemo(function(){return!!(E.draggable&&(!E.draggable.nodeDraggable||E.draggable.nodeDraggable(x)))},[E.draggable,x]),J=function(be){be.stopPropagation(),N(!0),E.onNodeDragStart(be,t);try{be.dataTransfer.setData("text/plain","")}catch{}},Y=function(be){be.preventDefault(),be.stopPropagation(),E.onNodeDragEnter(be,t)},ne=function(be){be.preventDefault(),be.stopPropagation(),E.onNodeDragOver(be,t)},fe=function(be){be.stopPropagation(),E.onNodeDragLeave(be,t)},oe=function(be){be.stopPropagation(),N(!1),E.onNodeDragEnd(be,t)},G=function(be){be.preventDefault(),be.stopPropagation(),N(!1),E.onNodeDrop(be,t)},ue=function(be){p||E.onNodeExpand(be,Gn(t))},le=ce.useMemo(function(){var Oe=Gr(E.keyEntities,a)||{},be=Oe.children;return!!(be||[]).length},[E.keyEntities,a]),ae=ce.useMemo(function(){return f===!1?!1:f||!E.loadData&&!le||E.loadData&&t.loaded&&!le},[f,E.loadData,le,t.loaded]);ce.useEffect(function(){p||typeof E.loadData=="function"&&g&&!ae&&!t.loaded&&E.onNodeLoad(Gn(t))},[p,E.loadData,E.onNodeLoad,g,ae,t]);var ee=ce.useMemo(function(){var Oe;return(Oe=E.draggable)!==null&&Oe!==void 0&&Oe.icon?ce.createElement("span",{className:"".concat(E.prefixCls,"-draggable-icon")},E.draggable.icon):null},[E.draggable]),ge=function(be){var ke=t.switcherIcon||E.switcherIcon;return typeof ke=="function"?ke(K(K({},t),{},{isLeaf:be})):ke},ye=function(){if(ae){var be=ge(!0);return be!==!1?ce.createElement("span",{className:Q("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher-noop"))},be):null}var ke=ge(!1);return ke!==!1?ce.createElement("span",{onClick:ue,className:Q("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher_").concat(g?m$:v$))},ke):null},Ie=ce.useMemo(function(){if(!k)return null;var Oe=typeof k!="boolean"?k:null;return ce.createElement("span",{className:Q("".concat(E.prefixCls,"-checkbox"),H(H(H({},"".concat(E.prefixCls,"-checkbox-checked"),y),"".concat(E.prefixCls,"-checkbox-indeterminate"),!y&&h),"".concat(E.prefixCls,"-checkbox-disabled"),P||t.disableCheckbox)),onClick:z,role:"checkbox","aria-checked":h?"mixed":y,"aria-disabled":P||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Oe)},[k,y,h,P,t.disableCheckbox,t.title]),Ee=ce.useMemo(function(){return ae?null:g?m$:v$},[ae,g]),A=ce.useMemo(function(){return ce.createElement("span",{className:Q("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__").concat(Ee||"docu"),H({},"".concat(E.prefixCls,"-icon_loading"),p))})},[E.prefixCls,Ee,p]),X=ce.useMemo(function(){var Oe=!!E.draggable,be=!t.disabled&&Oe&&E.dragOverNodeKey===a;return be?E.dropIndicatorRender({dropPosition:E.dropPosition,dropLevelOffset:E.dropLevelOffset,indent:E.indent,prefixCls:E.prefixCls,direction:E.direction}):null},[E.dropPosition,E.dropLevelOffset,E.indent,E.prefixCls,E.direction,E.draggable,E.dragOverNodeKey,E.dropIndicatorRender]),re=ce.useMemo(function(){var Oe=t.title,be=Oe===void 0?dJ:Oe,ke="".concat(E.prefixCls,"-node-content-wrapper"),Se;if(E.showIcon){var Re=t.icon||E.icon;Se=Re?ce.createElement("span",{className:Q("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__customize"))},typeof Re=="function"?Re(t):Re):A}else E.loadData&&p&&(Se=A);var we;return typeof be=="function"?we=be(x):E.titleRender?we=E.titleRender(x):we=be,ce.createElement("span",{ref:M,title:typeof be=="string"?be:"",className:Q(ke,"".concat(ke,"-").concat(Ee||"normal"),H({},"".concat(E.prefixCls,"-node-selected"),!P&&(b||I))),onMouseEnter:B,onMouseLeave:V,onContextMenu:W,onClick:L,onDoubleClick:F},Se,ce.createElement("span",{className:"".concat(E.prefixCls,"-title")},we),X)},[E.prefixCls,E.showIcon,t,E.icon,A,E.titleRender,x,Ee,B,V,W,L,F]),me=ur(O,{aria:!0,data:!0}),pe=Gr(E.keyEntities,a)||{},ve=pe.level,Pe=v[v.length-1],De=!P&&q,Me=E.draggingNodeKey===a,Le=w!==void 0?{"aria-selected":!!w}:void 0;return ce.createElement("div",Ce({ref:C,role:"treeitem","aria-expanded":f?void 0:g,className:Q(i,"".concat(E.prefixCls,"-treenode"),(o={},H(H(H(H(H(H(H(H(H(H(o,"".concat(E.prefixCls,"-treenode-disabled"),P),"".concat(E.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!f),"".concat(E.prefixCls,"-treenode-checkbox-checked"),y),"".concat(E.prefixCls,"-treenode-checkbox-indeterminate"),h),"".concat(E.prefixCls,"-treenode-selected"),b),"".concat(E.prefixCls,"-treenode-loading"),p),"".concat(E.prefixCls,"-treenode-active"),S),"".concat(E.prefixCls,"-treenode-leaf-last"),Pe),"".concat(E.prefixCls,"-treenode-draggable"),q),"dragging",Me),H(H(H(H(H(H(H(o,"drop-target",E.dropTargetKey===a),"drop-container",E.dropContainerKey===a),"drag-over",!P&&c),"drag-over-gap-top",!P&&u),"drag-over-gap-bottom",!P&&d),"filter-node",(r=E.filterTreeNode)===null||r===void 0?void 0:r.call(E,Gn(t))),"".concat(E.prefixCls,"-treenode-leaf"),ae))),style:s,draggable:De,onDragStart:De?J:void 0,onDragEnter:q?Y:void 0,onDragOver:q?ne:void 0,onDragLeave:q?fe:void 0,onDrop:q?G:void 0,onDragEnd:q?oe:void 0,onMouseMove:$},Le,me),ce.createElement(cJ,{prefixCls:E.prefixCls,level:ve,isStart:m,isEnd:v}),ee,ye(),Ie,re)};ed.isTreeNode=1;function ua(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Ra(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function CC(e){return e.split("-")}function fJ(e,t){var n=[],r=Gr(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,c=i.children;n.push(s),o(c)})}return o(r.children),n}function mJ(e){if(e.parent){var t=CC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function vJ(e){var t=CC(e.pos);return Number(t[t.length-1])===0}function g$(e,t,n,r,o,a,i,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),g=v.top,b=v.height,y=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),h=(y-12)/r,p=c.filter(function(P){var k;return(k=s[P])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),C=Gr(s,n.eventKey);if(m<g+b/2){var S=i.findIndex(function(P){return P.key===C.key}),x=S<=0?0:S-1,$=i[x].key;C=Gr(s,$)}var w=C.key,O=C,E=C.key,R=0,M=0;if(!p.includes(w))for(var T=0;T<h&&mJ(C);T+=1)C=C.parent,M+=1;var _=t.data,I=C.node,N=!0;return vJ(C)&&C.level===0&&m<g+b/2&&a({dragNode:_,dropNode:I,dropPosition:-1})&&C.key===n.eventKey?R=-1:(O.children||[]).length&&p.includes(E)?a({dragNode:_,dropNode:I,dropPosition:0})?R=0:N=!1:M===0?h>-1.5?a({dragNode:_,dropNode:I,dropPosition:1})?R=1:N=!1:a({dragNode:_,dropNode:I,dropPosition:0})?R=0:a({dragNode:_,dropNode:I,dropPosition:1})?R=1:N=!1:a({dragNode:_,dropNode:I,dropPosition:1})?R=1:N=!1,{dropPosition:R,dropLevelOffset:M,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:E,dropContainerKey:R===0?null:((d=C.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:N}}function h$(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function vp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ft(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return pn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Ay(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=Gr(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),_e(n)}const Ya={},Hy="SELECT_ALL",Vy="SELECT_INVERT",Wy="SELECT_NONE",p$=[],kM=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&kM(e,r[e],n)}),n),gJ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:i,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:v,type:g,selections:b,fixed:y,renderCell:h,hideSelectAll:p,checkStrictly:C=!0}=t||{},{prefixCls:S,data:x,pageData:$,getRecordByKey:w,getRowKey:O,expandType:E,childrenColumnName:R,locale:M,getPopupContainer:T}=e,_=Ni(),[I,N]=Hj(G=>G),[P,k]=Jt(r||o||p$,{value:r}),D=l.useRef(new Map),z=l.useCallback(G=>{if(n){const ue=new Map;G.forEach(le=>{let ae=w(le);!ae&&D.current.has(le)&&(ae=D.current.get(le)),ue.set(le,ae)}),D.current=ue}},[w,n]);l.useEffect(()=>{z(P)},[P]);const j=l.useMemo(()=>kM(R,$),[R,$]),{keyEntities:L}=l.useMemo(()=>{if(C)return{keyEntities:null};let G=x;if(n){const ue=new Set(j.map((ae,ee)=>O(ae,ee))),le=Array.from(D.current).reduce((ae,[ee,ge])=>ue.has(ee)?ae:ae.concat(ge),[]);G=[].concat(_e(G),_e(le))}return aC(G,{externalGetKey:O,childrenPropName:R})},[x,O,C,R,n,j]),F=l.useMemo(()=>{const G=new Map;return j.forEach((ue,le)=>{const ae=O(ue,le),ee=(a?a(ue):null)||{};G.set(ae,ee)}),G},[j,O,a]),B=l.useCallback(G=>{const ue=O(G);let le;return F.has(ue)?le=F.get(O(G)):le=a?a(G):void 0,!!(le!=null&&le.disabled)},[F,O]),[V,W]=l.useMemo(()=>{if(C)return[P||[],[]];const{checkedKeys:G,halfCheckedKeys:ue}=Os(P,!0,L,B);return[G||[],ue]},[P,C,L,B]),q=l.useMemo(()=>{const G=g==="radio"?V.slice(0,1):V;return new Set(G)},[V,g]),J=l.useMemo(()=>g==="radio"?new Set:new Set(W),[W,g]);l.useEffect(()=>{t||k(p$)},[!!t]);const Y=l.useCallback((G,ue)=>{let le,ae;z(G),n?(le=G,ae=G.map(ee=>D.current.get(ee))):(le=[],ae=[],G.forEach(ee=>{const ge=w(ee);ge!==void 0&&(le.push(ee),ae.push(ge))})),k(le),s==null||s(le,ae,{type:ue})},[k,w,s,n]),ne=l.useCallback((G,ue,le,ae)=>{if(c){const ee=le.map(ge=>w(ge));c(w(G),ue,ee,ae)}Y(le,"single")},[c,w,Y]),fe=l.useMemo(()=>!b||p?null:(b===!0?[Hy,Vy,Wy]:b).map(ue=>ue===Hy?{key:"all",text:M.selectionAll,onSelect(){Y(x.map((le,ae)=>O(le,ae)).filter(le=>{const ae=F.get(le);return!(ae!=null&&ae.disabled)||q.has(le)}),"all")}}:ue===Vy?{key:"invert",text:M.selectInvert,onSelect(){const le=new Set(q);$.forEach((ee,ge)=>{const ye=O(ee,ge),Ie=F.get(ye);Ie!=null&&Ie.disabled||(le.has(ye)?le.delete(ye):le.add(ye))});const ae=Array.from(le);d&&(_.deprecated(!1,"onSelectInvert","onChange"),d(ae)),Y(ae,"invert")}}:ue===Wy?{key:"none",text:M.selectNone,onSelect(){f==null||f(),Y(Array.from(q).filter(le=>{const ae=F.get(le);return ae==null?void 0:ae.disabled}),"none")}}:ue).map(ue=>Object.assign(Object.assign({},ue),{onSelect:(...le)=>{var ae,ee;(ee=ue.onSelect)===null||ee===void 0||(ae=ee).call.apply(ae,[ue].concat(le)),N(null)}})),[b,q,$,O,d,Y]);return[l.useCallback(G=>{var ue;if(!t)return G.filter(Oe=>Oe!==Ya);let le=_e(G);const ae=new Set(q),ee=j.map(O).filter(Oe=>!F.get(Oe).disabled),ge=ee.every(Oe=>ae.has(Oe)),ye=ee.some(Oe=>ae.has(Oe)),Ie=()=>{const Oe=[];ge?ee.forEach(ke=>{ae.delete(ke),Oe.push(ke)}):ee.forEach(ke=>{ae.has(ke)||(ae.add(ke),Oe.push(ke))});const be=Array.from(ae);u==null||u(!ge,be.map(ke=>w(ke)),Oe.map(ke=>w(ke))),Y(be,"all"),N(null)};let Ee,A;if(g!=="radio"){let Oe;if(fe){const Ae={getPopupContainer:T,items:fe.map((ct,yt)=>{const{key:Ve,text:Xe,onSelect:nt}=ct;return{key:Ve??yt,onClick:()=>{nt==null||nt(ee)},label:Xe}})};Oe=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(dc,{menu:Ae,getPopupContainer:T},l.createElement("span",null,l.createElement(sg,null))))}const be=j.map((Ae,ct)=>{const yt=O(Ae,ct),Ve=F.get(yt)||{};return Object.assign({checked:ae.has(yt)},Ve)}).filter(({disabled:Ae})=>Ae),ke=!!be.length&&be.length===j.length,Se=ke&&be.every(({checked:Ae})=>Ae),Re=ke&&be.some(({checked:Ae})=>Ae),we=(i==null?void 0:i())||{},{onChange:xe,disabled:Te}=we;A=l.createElement(hl,Object.assign({"aria-label":Oe?"Custom selection":"Select all"},we,{checked:ke?Se:!!j.length&&ge,indeterminate:ke?!Se&&Re:!ge&&ye,onChange:Ae=>{Ie(),xe==null||xe(Ae)},disabled:Te??(j.length===0||ke),skipGroup:!0})),Ee=!p&&l.createElement("div",{className:`${S}-selection`},A,Oe)}let X;g==="radio"?X=(Oe,be,ke)=>{const Se=O(be,ke),Re=ae.has(Se),we=F.get(Se);return{node:l.createElement($d,Object.assign({},we,{checked:Re,onClick:xe=>{var Te;xe.stopPropagation(),(Te=we==null?void 0:we.onClick)===null||Te===void 0||Te.call(we,xe)},onChange:xe=>{var Te;ae.has(Se)||ne(Se,!0,[Se],xe.nativeEvent),(Te=we==null?void 0:we.onChange)===null||Te===void 0||Te.call(we,xe)}})),checked:Re}}:X=(Oe,be,ke)=>{var Se;const Re=O(be,ke),we=ae.has(Re),xe=J.has(Re),Te=F.get(Re);let Ae;return E==="nest"?Ae=xe:Ae=(Se=Te==null?void 0:Te.indeterminate)!==null&&Se!==void 0?Se:xe,{node:l.createElement(hl,Object.assign({},Te,{indeterminate:Ae,checked:we,skipGroup:!0,onClick:ct=>{var yt;ct.stopPropagation(),(yt=Te==null?void 0:Te.onClick)===null||yt===void 0||yt.call(Te,ct)},onChange:ct=>{var yt;const{nativeEvent:Ve}=ct,{shiftKey:Xe}=Ve,nt=ee.indexOf(Re),Ue=V.some(Qe=>ee.includes(Qe));if(Xe&&C&&Ue){const Qe=I(nt,ee,ae),wt=Array.from(ae);m==null||m(!we,wt.map(It=>w(It)),Qe.map(It=>w(It))),Y(wt,"multiple")}else{const Qe=V;if(C){const wt=we?ua(Qe,Re):Ra(Qe,Re);ne(Re,!we,wt,Ve)}else{const wt=Os([].concat(_e(Qe),[Re]),!0,L,B),{checkedKeys:It,halfCheckedKeys:Je}=wt;let at=It;if(we){const ie=new Set(It);ie.delete(Re),at=Os(Array.from(ie),{halfCheckedKeys:Je},L,B).checkedKeys}ne(Re,!we,at,Ve)}}N(we?null:nt),(yt=Te==null?void 0:Te.onChange)===null||yt===void 0||yt.call(Te,ct)}})),checked:we}};const re=(Oe,be,ke)=>{const{node:Se,checked:Re}=X(Oe,be,ke);return h?h(Re,be,ke,Se):Se};if(!le.includes(Ya))if(le.findIndex(Oe=>{var be;return((be=Oe[gu])===null||be===void 0?void 0:be.columnType)==="EXPAND_COLUMN"})===0){const[Oe,...be]=le;le=[Oe,Ya].concat(_e(be))}else le=[Ya].concat(_e(le));const me=le.indexOf(Ya);le=le.filter((Oe,be)=>Oe!==Ya||be===me);const pe=le[me-1],ve=le[me+1];let Pe=y;Pe===void 0&&((ve==null?void 0:ve.fixed)!==void 0?Pe=ve.fixed:(pe==null?void 0:pe.fixed)!==void 0&&(Pe=pe.fixed)),Pe&&pe&&((ue=pe[gu])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"&&pe.fixed===void 0&&(pe.fixed=Pe);const De=Q(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:b&&g==="checkbox"}),Me=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(A):t.columnTitle:Ee,Le={fixed:Pe,width:v,className:`${S}-selection-column`,title:Me(),render:re,onCell:t.onCell,align:t.align,[gu]:{className:De}};return le.map(Oe=>Oe===Ya?Le:Oe)},[O,j,t,V,q,J,v,fe,E,F,m,ne,B]),q]};function hJ(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:Q(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&a,[`${s}-collapsed`]:i&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function pJ(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),s=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);a=r-s-c}return a}}const Oi=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function gc(e,t){return t?`${t}-${e}`:`${e}`}const Mg=(e,t)=>typeof e=="function"?e(t):e,yJ=(e,t)=>{const n=Mg(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var bJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},CJ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:bJ}))},SJ=l.forwardRef(CJ),xJ=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return ce.createElement("div",{style:a})};function jM(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function wJ(e,t){var n=l.useState(!1),r=Z(n,2),o=r[0],a=r[1];Dt(function(){if(o)return e(),function(){t()}},[o]),Dt(function(){return a(!0),function(){a(!1)}},[])}var $J=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],EJ=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Rt(e,$J),m=l.useState(!0),v=Z(m,2),g=v[0],b=v[1],y=l.useContext(bC),h=y.prefixCls,p=a&&i!=="hide";Dt(function(){a&&p!==g&&b(p)},[a]);var C=function(){a&&s()},S=l.useRef(!1),x=function(){a&&!S.current&&(S.current=!0,c())};wJ(C,x);var $=function(O){p===O&&x()};return a?l.createElement(To,Ce({ref:t,visible:g},o,{motionAppear:i==="show",onVisibleChanged:$}),function(w,O){var E=w.className,R=w.style;return l.createElement("div",{ref:O,className:Q("".concat(h,"-treenode-motion"),E),style:R},a.map(function(M){var T=Object.assign({},(jM(M.data),M.data)),_=M.title,I=M.key,N=M.isStart,P=M.isEnd;delete T.children;var k=vu(I,d);return l.createElement(ed,Ce({},T,k,{title:_,active:u,data:M.data,key:I,isStart:N,isEnd:P}))}))}):l.createElement(ed,Ce({domRef:t,className:n,style:r},f,{active:u}))});function OJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function y$(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var i=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var RJ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],b$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},IJ=function(){},pl="RC_TREE_MOTION_".concat(Math.random()),Ky={key:pl},zM={key:pl,level:0,index:0,pos:"0",node:Ky,nodes:[Ky]},C$={parent:null,children:[],pos:zM.pos,data:Ky,title:null,key:pl,isStart:[],isEnd:[]};function S$(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function x$(e){var t=e.key,n=e.pos;return Od(t,n)}function PJ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var MJ=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,g=e.dropPosition,b=e.motion,y=e.height,h=e.itemHeight,p=e.virtual,C=e.scrollWidth,S=e.focusable,x=e.activeItem,$=e.focused,w=e.tabIndex,O=e.onKeyDown,E=e.onFocus,R=e.onBlur,M=e.onActiveChange,T=e.onListChangeStart,_=e.onListChangeEnd,I=Rt(e,RJ),N=l.useRef(null),P=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(X){N.current.scrollTo(X)},getIndentWidth:function(){return P.current.offsetWidth}}});var k=l.useState(o),D=Z(k,2),z=D[0],j=D[1],L=l.useState(r),F=Z(L,2),B=F[0],V=F[1],W=l.useState(r),q=Z(W,2),J=q[0],Y=q[1],ne=l.useState([]),fe=Z(ne,2),oe=fe[0],G=fe[1],ue=l.useState(null),le=Z(ue,2),ae=le[0],ee=le[1],ge=l.useRef(r);ge.current=r;function ye(){var A=ge.current;V(A),Y(A),G([]),ee(null),_()}Dt(function(){j(o);var A=OJ(z,o);if(A.key!==null)if(A.add){var X=B.findIndex(function(De){var Me=De.key;return Me===A.key}),re=S$(y$(B,r,A.key),p,y,h),me=B.slice();me.splice(X+1,0,C$),Y(me),G(re),ee("show")}else{var pe=r.findIndex(function(De){var Me=De.key;return Me===A.key}),ve=S$(y$(r,B,A.key),p,y,h),Pe=r.slice();Pe.splice(pe+1,0,C$),Y(Pe),G(ve),ee("hide")}else B!==r&&(V(r),Y(r))},[o,r]),l.useEffect(function(){m||ye()},[m]);var Ie=b?J:r,Ee={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:g,keyEntities:d};return l.createElement(l.Fragment,null,$&&x&&l.createElement("span",{style:b$,"aria-live":"assertive"},PJ(x)),l.createElement("div",null,l.createElement("input",{style:b$,disabled:S===!1||f,tabIndex:S!==!1?w:null,onKeyDown:O,onFocus:E,onBlur:R,value:"",onChange:IJ,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),l.createElement(lg,Ce({},I,{data:Ie,itemKey:x$,height:y,fullHeight:!1,virtual:p,itemHeight:h,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function(X){X.every(function(re){return x$(re)!==pl})&&ye()}}),function(A){var X=A.pos,re=Object.assign({},(jM(A.data),A.data)),me=A.title,pe=A.key,ve=A.isStart,Pe=A.isEnd,De=Od(pe,X);delete re.key,delete re.children;var Me=vu(De,Ee);return l.createElement(EJ,Ce({},re,Me,{title:me,active:!!x&&pe===x.key,pos:X,data:A.data,isStart:ve,isEnd:Pe,motion:b,motionNodes:pe===pl?oe:null,motionType:ae,onMotionStart:T,onMotionEnd:ye,treeNodeRequiredProps:Ee,onMouseMove:function(){M(null)}}))}))}),NJ=10,SC=function(e){Sa(n,e);var t=xa(n);function n(){var r;En(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),H(pt(r),"destroyed",!1),H(pt(r),"delayedDragEnterLogic",void 0),H(pt(r),"loadingRetryTimes",{}),H(pt(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Ks()}),H(pt(r),"dragStartMousePosition",null),H(pt(r),"dragNodeProps",null),H(pt(r),"currentMouseOverDroppableNodeKey",null),H(pt(r),"listRef",l.createRef()),H(pt(r),"onNodeDragStart",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,v=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var g=ua(d,v);r.setState({draggingNodeKey:v,dragChildrenKeys:fJ(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(g),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:Gn(c)})}),H(pt(r),"onNodeDragEnter",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,v=u.flattenNodes,g=u.indent,b=r.props,y=b.onDragEnter,h=b.onExpand,p=b.allowDrop,C=b.direction,S=c.pos,x=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==x&&(r.currentMouseOverDroppableNodeKey=x),!r.dragNodeProps){r.resetDragState();return}var $=g$(s,r.dragNodeProps,c,g,r.dragStartMousePosition,p,v,f,d,C),w=$.dropPosition,O=$.dropLevelOffset,E=$.dropTargetKey,R=$.dropContainerKey,M=$.dropTargetPos,T=$.dropAllowed,_=$.dragOverNodeKey;if(m.includes(E)||!T){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(I){clearTimeout(r.delayedDragEnterLogic[I])}),r.dragNodeProps.eventKey!==c.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var I=_e(d),N=Gr(f,c.eventKey);N&&(N.children||[]).length&&(I=Ra(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(I),h==null||h(I,{node:Gn(c),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===E&&O===0){r.resetDragState();return}r.setState({dragOverNodeKey:_,dropPosition:w,dropLevelOffset:O,dropTargetKey:E,dropContainerKey:R,dropTargetPos:M,dropAllowed:T}),y==null||y({event:s,node:Gn(c),expandedKeys:d})}),H(pt(r),"onNodeDragOver",function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,v=u.expandedKeys,g=u.indent,b=r.props,y=b.onDragOver,h=b.allowDrop,p=b.direction;if(r.dragNodeProps){var C=g$(s,r.dragNodeProps,c,g,r.dragStartMousePosition,h,f,m,v,p),S=C.dropPosition,x=C.dropLevelOffset,$=C.dropTargetKey,w=C.dropContainerKey,O=C.dropTargetPos,E=C.dropAllowed,R=C.dragOverNodeKey;d.includes($)||!E||(r.dragNodeProps.eventKey===$&&x===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&x===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&w===r.state.dropContainerKey&&O===r.state.dropTargetPos&&E===r.state.dropAllowed&&R===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:x,dropTargetKey:$,dropContainerKey:w,dropTargetPos:O,dropAllowed:E,dragOverNodeKey:R}),y==null||y({event:s,node:Gn(c)}))}}),H(pt(r),"onNodeDragLeave",function(s,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:Gn(c)})}),H(pt(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),H(pt(r),"onNodeDragEnd",function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:Gn(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),H(pt(r),"onNodeDrop",function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,g=f.dropTargetKey,b=f.dropTargetPos,y=f.dropAllowed;if(y){var h=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),g!==null){var p=K(K({},vu(g,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:Gr(r.state.keyEntities,g).node}),C=m.includes(g);pn(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=CC(b),x={event:s,node:Gn(p),dragNode:r.dragNodeProps?Gn(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};d||h==null||h(x),r.dragNodeProps=null}}}),H(pt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),H(pt(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,g=c.isLeaf;if(!(g||s.shiftKey||s.metaKey||s.ctrlKey)){var b=f.filter(function(h){return h.key===v})[0],y=Gn(K(K({},vu(v,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?ua(d,v):Ra(d,v)),r.onNodeExpand(s,y)}}),H(pt(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),H(pt(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),H(pt(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,g=v.onSelect,b=v.multiple,y=c.selected,h=c[m.key],p=!y;p?b?u=Ra(u,h):u=[h]:u=ua(u,h);var C=u.map(function(S){var x=Gr(f,S);return x?x.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:p,node:c,selectedNodes:C,nativeEvent:s.nativeEvent})}),H(pt(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,g=r.props,b=g.checkStrictly,y=g.onCheck,h=c.key,p,C={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(b){var S=u?Ra(m,h):ua(m,h),x=ua(v,h);p={checked:S,halfChecked:x},C.checkedNodes=S.map(function(M){return Gr(f,M)}).filter(Boolean).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var $=Os([].concat(_e(m),[h]),!0,f),w=$.checkedKeys,O=$.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(h);var R=Os(Array.from(E),{halfCheckedKeys:O},f);w=R.checkedKeys,O=R.halfCheckedKeys}p=w,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,w.forEach(function(M){var T=Gr(f,M);if(T){var _=T.node,I=T.pos;C.checkedNodes.push(_),C.checkedNodesPositions.push({node:_,pos:I})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}y==null||y(p,C)}),H(pt(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Gr(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,g){r.setState(function(b){var y=b.loadedKeys,h=y===void 0?[]:y,p=b.loadingKeys,C=p===void 0?[]:p,S=r.props,x=S.loadData,$=S.onLoad;if(!x||h.includes(u)||C.includes(u))return null;var w=x(s);return w.then(function(){var O=r.state.loadedKeys,E=Ra(O,u);$==null||$(E,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:E}),r.setState(function(R){return{loadingKeys:ua(R.loadingKeys,u)}}),v()}).catch(function(O){if(r.setState(function(R){return{loadingKeys:ua(R.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=NJ){var E=r.state.loadedKeys;pn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ra(E,u)}),v()}g(O)}),{loadingKeys:Ra(C,u)}})});return m.catch(function(){}),m}}),H(pt(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),H(pt(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),H(pt(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),H(pt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),H(pt(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),H(pt(r),"getTreeNodeRequiredProps",function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,v=s.halfCheckedKeys,g=s.dragOverNodeKey,b=s.dropPosition,y=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:v||[],dragOverNodeKey:g,dropPosition:b,keyEntities:y}}),H(pt(r),"setExpandedKeys",function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=ap(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),H(pt(r),"onNodeExpand",function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,v=r.props,g=v.onExpand,b=v.loadData,y=c.expanded,h=c[m.key];if(!f){var p=u.includes(h),C=!y;if(pn(y&&p||!y&&!p,"Expand state not sync with index check"),u=C?Ra(u,h):ua(u,h),r.setExpandedKeys(u),g==null||g(u,{node:c,expanded:C,nativeEvent:s.nativeEvent}),C&&b){var S=r.onNodeLoad(c);S&&S.then(function(){var x=ap(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:x})}).catch(function(){var x=r.state.expandedKeys,$=ua(x,h);r.setExpandedKeys($)})}}}),H(pt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),H(pt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),H(pt(r),"onActiveChange",function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),H(pt(r),"getActiveItem",function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),H(pt(r),"offsetActiveKey",function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(g){var b=g.key;return b===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var v=m.key;r.onActiveChange(v)}else r.onActiveChange(null)}),H(pt(r),"onKeyDown",function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,v=r.props,g=v.onKeyDown,b=v.checkable,y=v.selectable;switch(s.which){case ot.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case ot.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var h=r.getActiveItem();if(h&&h.data){var p=r.getTreeNodeRequiredProps(),C=h.data.isLeaf===!1||!!(h.data[m.children]||[]).length,S=Gn(K(K({},vu(u,p)),{},{data:h.data,active:!0}));switch(s.which){case ot.LEFT:{C&&d.includes(u)?r.onNodeExpand({},S):h.parent&&r.onActiveChange(h.parent.key),s.preventDefault();break}case ot.RIGHT:{C&&!d.includes(u)?r.onNodeExpand({},S):h.children&&h.children.length&&r.onActiveChange(h.children[0].key),s.preventDefault();break}case ot.ENTER:case ot.SPACE:{b&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(u)):!b&&y&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}g==null||g(s)}),H(pt(r),"setUncontrolledState",function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}d=!0,m[v]=s[v]}),d&&(!c||f)&&r.setState(K(K({},m),u))}}),H(pt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return On(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,s=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,g=o.dragOverNodeKey,b=o.indent,y=this.props,h=y.prefixCls,p=y.className,C=y.style,S=y.showLine,x=y.focusable,$=y.tabIndex,w=$===void 0?0:$,O=y.selectable,E=y.showIcon,R=y.icon,M=y.switcherIcon,T=y.draggable,_=y.checkable,I=y.checkStrictly,N=y.disabled,P=y.motion,k=y.loadData,D=y.filterTreeNode,z=y.height,j=y.itemHeight,L=y.scrollWidth,F=y.virtual,B=y.titleRender,V=y.dropIndicatorRender,W=y.onContextMenu,q=y.onScroll,J=y.direction,Y=y.rootClassName,ne=y.rootStyle,fe=ur(this.props,{aria:!0,data:!0}),oe;T&&(ft(T)==="object"?oe=T:typeof T=="function"?oe={nodeDraggable:T}:oe={});var G={prefixCls:h,selectable:O,showIcon:E,icon:R,switcherIcon:M,draggable:oe,draggingNodeKey:c,checkable:_,checkStrictly:I,disabled:N,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:g,indent:b,direction:J,dropIndicatorRender:V,loadData:k,filterTreeNode:D,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return l.createElement(bC.Provider,{value:G},l.createElement("div",{className:Q(h,p,Y,H(H(H({},"".concat(h,"-show-line"),S),"".concat(h,"-focused"),a),"".concat(h,"-active-focused"),u!==null)),style:ne},l.createElement(MJ,Ce({ref:this.listRef,prefixCls:h,style:C,data:i,disabled:N,selectable:O,checkable:!!_,motion:P,dragging:c!==null,height:z,itemHeight:j,virtual:F,focusable:x,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:q,scrollWidth:L},this.getTreeNodeRequiredProps(),fe))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s={prevProps:o};function c(w){return!i&&o.hasOwnProperty(w)||i&&i[w]!==o[w]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=Ks(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(pn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=D6(o.children)),u){s.treeData=u;var f=aC(u,{fieldNames:d});s.keyEntities=K(H({},pl,zM),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?Ay(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var v=K({},m);delete v[pl];var g=[];Object.keys(v).forEach(function(w){var O=v[w];O.children&&O.children.length&&g.push(O.key)}),s.expandedKeys=g}else!i&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Ay(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=ap(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=b}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=h$(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(s.selectedKeys=h$(o.defaultSelectedKeys,o))),o.checkable){var y;if(c("checkedKeys")?y=vp(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?y=vp(o.defaultCheckedKeys)||{}:u&&(y=vp(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),y){var h=y,p=h.checkedKeys,C=p===void 0?[]:p,S=h.halfCheckedKeys,x=S===void 0?[]:S;if(!o.checkStrictly){var $=Os(C,!0,m);C=$.checkedKeys,x=$.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=x}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);H(SC,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:xJ,allowDrop:function(){return!0},expandAction:!1});H(SC,"TreeNode",ed);var TJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},_J=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:TJ}))},LM=l.forwardRef(_J),DJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},kJ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:DJ}))},jJ=l.forwardRef(kJ),zJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},LJ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:zJ}))},FM=l.forwardRef(LJ),FJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},BJ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:FJ}))},BM=l.forwardRef(BJ);const AJ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),HJ=new en("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),VJ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),WJ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${U(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),KJ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:i,nodeSelectedBg:s,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Zt(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ta(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:HJ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:U(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},VJ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},WJ(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${U(t.calc(a).div(2).equal())} !important`}})}},UJ=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=Bt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[KJ(e,i),n&&AJ(i)].filter(Boolean)},qJ=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},GJ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},qJ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},XJ=Ut("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:j6(`${t}-checkbox`,e)},UJ(t,e),x1(e)],GJ),w$=4;function YJ(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[i]:-n*o+w$,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+w$;break}return ce.createElement("div",{style:c,className:`${r}-drop-indicator`})}var QJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},JJ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:QJ}))},ZJ=l.forwardRef(JJ),eZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tZ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:eZ}))},nZ=l.forwardRef(tZ),rZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},oZ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:rZ}))},aZ=l.forwardRef(oZ);const iZ=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=a;if(d)return l.isValidElement(s)?s:l.createElement($l,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const g=typeof f=="function"?f(a):f,b=`${r}-switcher-line-custom-icon`;return l.isValidElement(g)?Br(g,{className:Q((t=g.props)===null||t===void 0?void 0:t.className,b)}):g}return f?l.createElement(LM,{className:`${r}-switcher-line-icon`}):l.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,v=typeof o=="function"?o(a):o;return l.isValidElement(v)?Br(v,{className:Q((n=v.props)===null||n===void 0?void 0:n.className,m)}):v!==void 0?v:i?u?l.createElement(nZ,{className:`${r}-switcher-line-icon`}):l.createElement(aZ,{className:`${r}-switcher-line-icon`}):l.createElement(ZJ,{className:m})},AM=ce.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=ce.useContext(xt),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:g,checkable:b=!1,selectable:y=!0,draggable:h,disabled:p,motion:C,style:S}=e,x=r("tree",s),$=r(),w=ce.useContext(Nr),O=p??w,E=C??Object.assign(Object.assign({},Hm($)),{motionAppear:!1}),R=Object.assign(Object.assign({},e),{checkable:b,selectable:y,showIcon:u,motion:E,blockNode:v,disabled:O,showLine:!!d,dropIndicatorRender:YJ}),[M,T,_]=XJ(x),[,I]=Sr(),N=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),P=ce.useMemo(()=>{if(!h)return!1;let D={};switch(typeof h){case"function":D.nodeDraggable=h;break;case"object":D=Object.assign({},h);break}return D.icon!==!1&&(D.icon=D.icon||ce.createElement(BM,null)),D},[h]),k=D=>ce.createElement(iZ,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:D,showLine:d});return M(ce.createElement(SC,Object.assign({itemHeight:N,ref:t,virtual:a},R,{style:Object.assign(Object.assign({},i==null?void 0:i.style),S),prefixCls:x,className:Q({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:v,[`${x}-unselectable`]:!y,[`${x}-rtl`]:o==="rtl",[`${x}-disabled`]:O},i==null?void 0:i.className,c,T,_),direction:o,checkable:b&&ce.createElement("span",{className:`${x}-checkbox-inner`}),selectable:y,switcherIcon:k,draggable:P}),g))}),$$=0,gp=1,E$=2;function xC(e,t,n){const{key:r,children:o}=n;function a(i){const s=i[r],c=i[o];t(s,i)!==!1&&xC(c||[],t,n)}e.forEach(a)}function lZ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let i=$$;if(n&&n===r)return[n];if(!n||!r)return[];function s(c){return c===n||c===r}return xC(e,c=>{if(i===E$)return!1;if(s(c)){if(a.push(c),i===$$)i=gp;else if(i===gp)return i=E$,!1}else i===gp&&a.push(c);return t.includes(c)},Ks(o)),a}function hp(e,t,n){const r=_e(t),o=[];return xC(e,(a,i)=>{const s=r.indexOf(a);return s!==-1&&(o.push(i),r.splice(s,1)),!!r.length},Ks(n)),o}var O$=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 sZ(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(LM,null):n?l.createElement(jJ,null):l.createElement(FM,null)}function R$({treeData:e,children:t}){return e||D6(t)}const cZ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=O$(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(null),s=l.useRef(null),c=()=>{const{keyEntities:O}=aC(R$(a),{fieldNames:a.fieldNames});let E;return n?E=Object.keys(O):r?E=Ay(a.expandedKeys||o||[],O):E=a.expandedKeys||o||[],E},[u,d]=l.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),l.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const v=(O,E)=>{var R;return"expandedKeys"in a||m(O),(R=a.onExpand)===null||R===void 0?void 0:R.call(a,O,E)},g=(O,E)=>{var R;const{multiple:M,fieldNames:T}=a,{node:_,nativeEvent:I}=E,{key:N=""}=_,P=R$(a),k=Object.assign(Object.assign({},E),{selected:!0}),D=(I==null?void 0:I.ctrlKey)||(I==null?void 0:I.metaKey),z=I==null?void 0:I.shiftKey;let j;M&&D?(j=O,i.current=N,s.current=j,k.selectedNodes=hp(P,j,T)):M&&z?(j=Array.from(new Set([].concat(_e(s.current||[]),_e(lZ({treeData:P,expandedKeys:f,startKey:N,endKey:i.current,fieldNames:T}))))),k.selectedNodes=hp(P,j,T)):(j=[N],i.current=N,s.current=j,k.selectedNodes=hp(P,j,T)),(R=a.onSelect)===null||R===void 0||R.call(a,j,k),"selectedKeys"in a||d(j)},{getPrefixCls:b,direction:y}=l.useContext(xt),{prefixCls:h,className:p,showIcon:C=!0,expandAction:S="click"}=a,x=O$(a,["prefixCls","className","showIcon","expandAction"]),$=b("tree",h),w=Q(`${$}-directory`,{[`${$}-directory-rtl`]:y==="rtl"},p);return l.createElement(AM,Object.assign({icon:sZ,ref:t,blockNode:!0},x,{showIcon:C,expandAction:S,prefixCls:$,className:w,expandedKeys:f,selectedKeys:u,onSelect:g,onExpand:v}))},uZ=l.forwardRef(cZ),wC=AM;wC.DirectoryTree=uZ;wC.TreeNode=ed;const I$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Rd,{prefix:l.createElement(cg,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},dZ=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},fZ=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:dZ,ref:t},e.children));function Is(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(_e(t),_e(Is(r))))}),t}function mZ(e){return e.some(({children:t})=>t)}function HM(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function VM({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a}){return e.map((i,s)=>{const c=String(i.value);if(i.children)return{key:c||s,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:VM({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a})};const u=r?hl:$d,d={key:i.value!==void 0?c:s,label:l.createElement(l.Fragment,null,l.createElement(u,{checked:n.includes(c)}),l.createElement("span",null,i.text))};return o.trim()?typeof a=="function"?a(o,i)?d:null:HM(o,i.text)?d:null:d})}function pp(e){return e||[]}const vZ=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:i,column:s,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:v=!1,filterState:g,triggerFilter:b,locale:y,children:h,getPopupContainer:p,rootClassName:C}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:x,filterDropdownProps:$={},filterDropdownOpen:w,filterDropdownVisible:O,onFilterDropdownVisibleChange:E,onFilterDropdownOpenChange:R}=s,[M,T]=l.useState(!1),_=!!(g&&(!((t=g.filteredKeys)===null||t===void 0)&&t.length||g.forceFiltered)),I=A=>{var X;T(A),(X=$.onOpenChange)===null||X===void 0||X.call($,A),R==null||R(A),E==null||E(A)},N=(o=(r=(n=$.open)!==null&&n!==void 0?n:w)!==null&&r!==void 0?r:O)!==null&&o!==void 0?o:M,P=g==null?void 0:g.filteredKeys,[k,D]=Uj(pp(P)),z=({selectedKeys:A})=>{D(A)},j=(A,{node:X,checked:re})=>{z(f?{selectedKeys:A}:{selectedKeys:re&&X.key?[X.key]:[]})};l.useEffect(()=>{M&&z({selectedKeys:pp(P)})},[P]);const[L,F]=l.useState([]),B=A=>{F(A)},[V,W]=l.useState(""),q=A=>{const{value:X}=A.target;W(X)};l.useEffect(()=>{M||W("")},[M]);const J=A=>{const X=A!=null&&A.length?A:null;if(X===null&&(!g||!g.filteredKeys)||pa(X,g==null?void 0:g.filteredKeys,!0))return null;b({column:s,key:u,filteredKeys:X})},Y=()=>{I(!1),J(k())},ne=({confirm:A,closeDropdown:X}={confirm:!1,closeDropdown:!1})=>{A&&J([]),X&&I(!1),W(""),D(S?(x||[]).map(re=>String(re)):[])},fe=({closeDropdown:A}={closeDropdown:!0})=>{A&&I(!1),J(k())},oe=(A,X)=>{X.source==="trigger"&&(A&&P!==void 0&&D(pp(P)),I(A),!A&&!s.filterDropdown&&d&&Y())},G=Q({[`${c}-menu-without-submenu`]:!mZ(s.filters||[])}),ue=A=>{if(A.target.checked){const X=Is(s==null?void 0:s.filters).map(re=>String(re));D(X)}else D([])},le=({filters:A})=>(A||[]).map((X,re)=>{const me=String(X.value),pe={title:X.text,key:X.value!==void 0?me:String(re)};return X.children&&(pe.children=le({filters:X.children})),pe}),ae=A=>{var X;return Object.assign(Object.assign({},A),{text:A.title,value:A.key,children:((X=A.children)===null||X===void 0?void 0:X.map(re=>ae(re)))||[]})};let ee;const{direction:ge,renderEmpty:ye}=l.useContext(xt);if(typeof s.filterDropdown=="function")ee=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:A=>z({selectedKeys:A}),selectedKeys:k(),confirm:fe,clearFilters:ne,filters:s.filters,visible:N,close:()=>{I(!1)}});else if(s.filterDropdown)ee=s.filterDropdown;else{const A=k()||[],X=()=>{var me,pe;const ve=(me=ye==null?void 0:ye("Table.filter"))!==null&&me!==void 0?me:l.createElement(Eo,{image:Eo.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return ve;if(m==="tree")return l.createElement(l.Fragment,null,l.createElement(I$,{filterSearch:v,value:V,onChange:q,tablePrefixCls:a,locale:y}),l.createElement("div",{className:`${a}-filter-dropdown-tree`},f?l.createElement(hl,{checked:A.length===Is(s.filters).length,indeterminate:A.length>0&&A.length<Is(s.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:ue},(pe=y==null?void 0:y.filterCheckall)!==null&&pe!==void 0?pe:y==null?void 0:y.filterCheckAll):null,l.createElement(wC,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:j,checkedKeys:A,selectedKeys:A,showIcon:!1,treeData:le({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:V.trim()?Me=>typeof v=="function"?v(V,ae(Me)):HM(V,Me.title):void 0})));const Pe=VM({filters:s.filters||[],filterSearch:v,prefixCls:i,filteredKeys:k(),filterMultiple:f,searchValue:V}),De=Pe.every(Me=>Me===null);return l.createElement(l.Fragment,null,l.createElement(I$,{filterSearch:v,value:V,onChange:q,tablePrefixCls:a,locale:y}),De?ve:l.createElement(Nl,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:G,onSelect:z,onDeselect:z,selectedKeys:A,getPopupContainer:p,openKeys:L,onOpenChange:B,items:Pe}))},re=()=>S?pa((x||[]).map(me=>String(me)),A,!0):A.length===0;ee=l.createElement(l.Fragment,null,X(),l.createElement("div",{className:`${i}-dropdown-btns`},l.createElement(kn,{type:"link",size:"small",disabled:re(),onClick:()=>ne()},y.filterReset),l.createElement(kn,{type:"primary",size:"small",onClick:Y},y.filterConfirm)))}s.filterDropdown&&(ee=l.createElement(EP,{selectable:void 0},ee)),ee=l.createElement(fZ,{className:`${i}-dropdown`},ee);const Ee=Lm({trigger:["click"],placement:ge==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let A;return typeof s.filterIcon=="function"?A=s.filterIcon(_):s.filterIcon?A=s.filterIcon:A=l.createElement(SJ,null),l.createElement("span",{role:"button",tabIndex:-1,className:Q(`${i}-trigger`,{active:_}),onClick:X=>{X.stopPropagation()}},A)})(),getPopupContainer:p},Object.assign(Object.assign({},$),{rootClassName:Q(C,$.rootClassName),open:N,onOpenChange:oe,popupRender:()=>typeof($==null?void 0:$.dropdownRender)=="function"?$.dropdownRender(ee):ee}));return l.createElement("div",{className:`${i}-column`},l.createElement("span",{className:`${a}-column-title`},h),l.createElement(dc,Object.assign({},Ee)))},Uy=(e,t,n)=>{let r=[];return(e||[]).forEach((o,a)=>{var i;const s=gc(a,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(i=u==null?void 0:u.map(String))!==null&&i!==void 0?i:u),r.push({column:o,key:Oi(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Oi(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(_e(r),_e(Uy(o.children,t,s))))}),r};function WM(e,t,n,r,o,a,i,s,c){return n.map((u,d)=>{const f=gc(d,s),{filterOnClose:m=!0,filterMultiple:v=!0,filterMode:g,filterSearch:b}=u;let y=u;if(y.filters||y.filterDropdown){const h=Oi(y,f),p=r.find(({key:C})=>h===C);y=Object.assign(Object.assign({},y),{title:C=>l.createElement(vZ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:h,filterState:p,filterOnClose:m,filterMultiple:v,filterMode:g,filterSearch:b,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:c},Mg(u.title,C))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:WM(e,t,y.children,r,o,a,i,f,c)})),y})}const P$=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const a=n,{filters:i,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const c=Is(i);t[a]=c.filter(u=>r.includes(String(u)))}else t[a]=null}),t},qy=(e,t,n)=>t.reduce((o,a)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=a;return i&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Is(s),m=f.findIndex(g=>String(g)===String(d)),v=m!==-1?f[m]:d;return u[n]&&(u[n]=qy(u[n],t,n)),i(v,u)})):o},e),KM=e=>e.flatMap(t=>"children"in t?[t].concat(_e(KM(t.children||[]))):[t]),gZ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:s}=e;Ni();const c=l.useMemo(()=>KM(r||[]),[r]),[u,d]=l.useState(()=>Uy(c,!0)),f=l.useMemo(()=>{const b=Uy(c,!1);if(b.length===0)return b;let y=!0;if(b.forEach(({filteredKeys:h})=>{h!==void 0&&(y=!1)}),y){const h=(c||[]).map((p,C)=>Oi(p,gc(C)));return u.filter(({key:p})=>h.includes(p)).map(p=>{const C=c[h.indexOf(p.key)];return Object.assign(Object.assign({},p),{column:Object.assign(Object.assign({},p.column),C),forceFiltered:C.filtered})})}return b},[c,u]),m=l.useMemo(()=>P$(f),[f]),v=b=>{const y=f.filter(({key:h})=>h!==b.key);y.push(b),d(y),o(P$(y),y)};return[b=>WM(t,n,b,f,i,v,a,void 0,s),f,m]},hZ=(e,t,n)=>{const r=l.useRef({});function o(a){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const v=n(f,m);c.set(v,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(a)}return[o]};var pZ=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 UM=10;function yZ(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function bZ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=pZ(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:UM})),c=Lm(i,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,v)=>{s({current:m??1,pageSize:v||c.pageSize})},f=(m,v)=>{var g;n&&((g=n.onChange)===null||g===void 0||g.call(n,m,v)),d(m,v),t(m,v||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var CZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},SZ=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:CZ}))},xZ=l.forwardRef(SZ),wZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},$Z=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:wZ}))},EZ=l.forwardRef($Z);const nm="ascend",yp="descend",Zm=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,M$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,OZ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Gy=(e,t,n)=>{let r=[];const o=(a,i)=>{r.push({column:a,key:Oi(a,i),multiplePriority:Zm(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,i)=>{const s=gc(i,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(_e(r),_e(Gy(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Oi(a,s),multiplePriority:Zm(a),sortOrder:a.defaultSortOrder}))}),r},qM=(e,t,n,r,o,a,i,s)=>(t||[]).map((u,d)=>{const f=gc(d,s);let m=u;if(m.sorter){const v=m.sortDirections||o,g=m.showSorterTooltip===void 0?i:m.showSorterTooltip,b=Oi(m,f),y=n.find(({key:E})=>E===b),h=y?y.sortOrder:null,p=OZ(v,h);let C;if(u.sortIcon)C=u.sortIcon({sortOrder:h});else{const E=v.includes(nm)&&l.createElement(EZ,{className:Q(`${e}-column-sorter-up`,{active:h===nm})}),R=v.includes(yp)&&l.createElement(xZ,{className:Q(`${e}-column-sorter-down`,{active:h===yp})});C=l.createElement("span",{className:Q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(E&&R)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},E,R))}const{cancelSort:S,triggerAsc:x,triggerDesc:$}=a||{};let w=S;p===yp?w=$:p===nm&&(w=x);const O=typeof g=="object"?Object.assign({title:w},g):{title:w};m=Object.assign(Object.assign({},m),{className:Q(m.className,{[`${e}-column-sort`]:h}),title:E=>{const R=`${e}-column-sorters`,M=l.createElement("span",{className:`${e}-column-title`},Mg(u.title,E)),T=l.createElement("div",{className:R},M,C);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?l.createElement("div",{className:Q(R,`${R}-tooltip-target-sorter`)},M,l.createElement(hr,Object.assign({},O),C)):l.createElement(hr,Object.assign({},O),T):T},onHeaderCell:E=>{var R;const M=((R=u.onHeaderCell)===null||R===void 0?void 0:R.call(u,E))||{},T=M.onClick,_=M.onKeyDown;M.onClick=P=>{r({column:u,key:b,sortOrder:p,multiplePriority:Zm(u)}),T==null||T(P)},M.onKeyDown=P=>{P.keyCode===ot.ENTER&&(r({column:u,key:b,sortOrder:p,multiplePriority:Zm(u)}),_==null||_(P))};const I=yJ(u.title,{}),N=I==null?void 0:I.toString();return h&&(M["aria-sort"]=h==="ascend"?"ascending":"descending"),M["aria-label"]=N||"",M.className=Q(M.className,`${e}-column-has-sorters`),M.tabIndex=0,u.ellipsis&&(M.title=(I??"").toString()),M}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:qM(e,m.children,n,r,o,a,i,f)})),m}),N$=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},T$=e=>{const t=e.filter(({sortOrder:n})=>n).map(N$);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},N$(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Xy=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(({column:{sorter:i},sortOrder:s})=>M$(i)&&s);return a.length?o.sort((i,s)=>{for(let c=0;c<a.length;c+=1){const u=a[c],{column:{sorter:d},sortOrder:f}=u,m=M$(d);if(m&&f){const v=m(i,s,f);if(v!==0)return f===nm?v:-v}}return 0}).map(i=>{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:Xy(s,t,n)}):i}):o},RZ=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[s,c]=l.useState(()=>Gy(n,!0)),u=(b,y)=>{const h=[];return b.forEach((p,C)=>{const S=gc(C,y);if(h.push(Oi(p,S)),Array.isArray(p.children)){const x=u(p.children,S);h.push.apply(h,_e(x))}}),h},d=l.useMemo(()=>{let b=!0;const y=Gy(n,!1);if(!y.length){const S=u(n);return s.filter(({key:x})=>S.includes(x))}const h=[];function p(S){b?h.push(S):h.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let C=null;return y.forEach(S=>{C===null?(p(S),S.sortOrder&&(S.multiplePriority===!1?b=!1:C=!0)):(C&&S.multiplePriority!==!1||(b=!1),p(S))}),h},[n,s]),f=l.useMemo(()=>{var b,y;const h=d.map(({column:p,sortOrder:C})=>({column:p,order:C}));return{sortColumns:h,sortColumn:(b=h[0])===null||b===void 0?void 0:b.column,sortOrder:(y=h[0])===null||y===void 0?void 0:y.order}},[d]),m=b=>{let y;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?y=[b]:y=[].concat(_e(d.filter(({key:h})=>h!==b.key)),[b]),c(y),i(T$(y),y)};return[b=>qM(t,b,d,m,r,o,a),d,f,()=>T$(d)]},GM=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=Mg(r.title,t),"children"in o&&(o.children=GM(o.children,t)),o}),IZ=e=>[l.useCallback(n=>GM(n,e),[e])],PZ=TM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),MZ=DM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),NZ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${U(n)} ${r} ${o}`,d=(f,m,v)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${U(c(m).mul(-1).equal())}
|
|
366
|
-
${U(c(c(v).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
|
|
367
|
-
> ${t}-content,
|
|
368
|
-
> ${t}-header,
|
|
369
|
-
> ${t}-body,
|
|
370
|
-
> ${t}-summary
|
|
371
|
-
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${U(c(i).mul(-1).equal())} ${U(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
372
|
-
> tr${t}-expanded-row,
|
|
373
|
-
> tr${t}-placeholder
|
|
374
|
-
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${U(n)} 0 ${U(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},TZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ea),{wordBreak:"keep-all",[`
|
|
375
|
-
&${t}-cell-fix-left-last,
|
|
376
|
-
&${t}-cell-fix-right-first
|
|
377
|
-
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},_Z=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},DZ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:g,expandIconMarginTop:b,expandIconSize:y,expandIconHalfInner:h,expandIconScale:p,calc:C}=e,S=`${U(o)} ${i} ${s}`,x=C(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},h1(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:U(y),background:c,border:S,borderRadius:d,transform:`scale(${p})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:h,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${U(C(f).mul(-1).equal())} ${U(C(m).mul(-1).equal())}`,padding:`${U(f)} ${U(m)}`}}}},kZ=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:v,tablePaddingHorizontal:g,borderRadius:b,motionDurationSlow:y,colorIcon:h,colorPrimary:p,tableHeaderFilterActiveBg:C,colorTextDisabled:S,tableFilterDropdownBg:x,tableFilterDropdownHeight:$,controlItemBgHover:w,controlItemBgActive:O,boxShadowSecondary:E,filterDropdownMenuBg:R,calc:M}=e,T=`${n}-dropdown`,_=`${t}-filter-dropdown`,I=`${n}-tree`,N=`${U(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(i).mul(-1).equal(),marginInline:`${U(i)} ${U(M(g).div(2).mul(-1).equal())}`,padding:`0 ${U(i)}`,color:m,fontSize:v,borderRadius:b,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:h,background:C},"&.active":{color:p}}}},{[`${n}-dropdown`]:{[_]:Object.assign(Object.assign({},Zt(e)),{minWidth:o,backgroundColor:x,borderRadius:b,boxShadow:E,overflow:"hidden",[`${T}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:R,"&:empty::after":{display:"block",padding:`${U(s)} 0`,color:S,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${_}-tree`]:{paddingBlock:`${U(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:w},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${_}-search`]:{padding:s,borderBottom:N,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${_}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${_}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${U(M(s).sub(u).equal())} ${U(s)}`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${_}, ${_}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},jZ=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
|
|
378
|
-
${t}-cell-fix-left,
|
|
379
|
-
${t}-cell-fix-right
|
|
380
|
-
`]:{position:"sticky !important",zIndex:a,background:i},[`
|
|
381
|
-
${t}-cell-fix-left-first::after,
|
|
382
|
-
${t}-cell-fix-left-last::after
|
|
383
|
-
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
384
|
-
${t}-cell-fix-right-first::after,
|
|
385
|
-
${t}-cell-fix-right-last::after
|
|
386
|
-
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
|
|
387
|
-
${t}-cell-fix-left-first::after,
|
|
388
|
-
${t}-cell-fix-left-last::after
|
|
389
|
-
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
|
|
390
|
-
${t}-cell-fix-right-first::after,
|
|
391
|
-
${t}-cell-fix-right-last::after
|
|
392
|
-
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
393
|
-
${t}-cell-fix-left-first::after,
|
|
394
|
-
${t}-cell-fix-left-last::after,
|
|
395
|
-
${t}-cell-fix-right-first::after,
|
|
396
|
-
${t}-cell-fix-right-last::after
|
|
397
|
-
`]:{boxShadow:"none"}}}}},zZ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${U(r)} 0`}}},LZ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${U(n)} ${U(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${U(n)} ${U(n)}`}}}}},FZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},BZ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:v,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(o).add(g(a).div(4)).add(g(i).mul(2)).equal()}},[`
|
|
398
|
-
table tr th${t}-selection-column,
|
|
399
|
-
table tr td${t}-selection-column,
|
|
400
|
-
${t}-selection-column
|
|
401
|
-
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:g(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:U(g(v).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},AZ=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,s,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[`
|
|
402
|
-
${t}-title,
|
|
403
|
-
${t}-footer,
|
|
404
|
-
${t}-cell,
|
|
405
|
-
${t}-thead > tr > th,
|
|
406
|
-
${t}-tbody > tr > th,
|
|
407
|
-
${t}-tbody > tr > td,
|
|
408
|
-
tfoot > tr > th,
|
|
409
|
-
tfoot > tr > td
|
|
410
|
-
`]:{padding:`${U(i)} ${U(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:U(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${U(r(i).mul(-1).equal())} ${U(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:U(r(i).mul(-1).equal()),marginInline:`${U(r(n).sub(s).equal())} ${U(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:U(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},HZ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
411
|
-
&${t}-cell-fix-left:hover,
|
|
412
|
-
&${t}-cell-fix-right:hover
|
|
413
|
-
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},VZ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${U(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${U(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},_$=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${U(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${U(o(n).mul(-1).equal())} 0 ${r}`}}}},WZ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,s=`${U(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
414
|
-
& > ${t}-row,
|
|
415
|
-
& > div:not(${t}-row) > ${t}-row
|
|
416
|
-
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},KZ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:v,tableHeaderBg:g,tableHeaderCellSplitColor:b,tableFooterTextColor:y,tableFooterBg:h,calc:p}=e,C=`${U(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},xi()),{[t]:Object.assign(Object.assign({},Zt(e)),{fontSize:u,background:d,borderRadius:`${U(f)} ${U(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${U(f)} ${U(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
417
|
-
${t}-cell,
|
|
418
|
-
${t}-thead > tr > th,
|
|
419
|
-
${t}-tbody > tr > th,
|
|
420
|
-
${t}-tbody > tr > td,
|
|
421
|
-
tfoot > tr > th,
|
|
422
|
-
tfoot > tr > td
|
|
423
|
-
`]:{position:"relative",padding:`${U(r)} ${U(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${U(r)} ${U(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${v} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:b,transform:"translateY(-50%)",transition:`background-color ${v}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${v}, border-color ${v}`,borderBottom:C,[`
|
|
424
|
-
> ${t}-wrapper:only-child,
|
|
425
|
-
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
426
|
-
`]:{[t]:{marginBlock:U(p(r).mul(-1).equal()),marginInline:`${U(p(a).sub(o).equal())}
|
|
427
|
-
${U(p(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${v} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${U(r)} ${U(o)}`,color:y,background:h}})}},UZ=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:v,colorTextPlaceholder:g,fontSize:b,fontSizeSM:y,lineHeight:h,lineWidth:p,colorIcon:C,colorIconHover:S,opacityLoading:x,controlInteractiveSize:$}=e,w=new Wt(o).onBackground(n).toHexString(),O=new Wt(a).onBackground(n).toHexString(),E=new Wt(t).onBackground(n).toHexString(),R=new Wt(C),M=new Wt(S),T=$/2-p,_=T*2+p*3;return{headerBg:E,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:O,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:E,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:v,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*h-p*3)/2-Math.ceil((y*1.4-p*3)/2),headerIconColor:R.clone().setA(R.a*x).toRgbString(),headerIconHoverColor:M.clone().setA(M.a*x).toRgbString(),expandIconHalfInner:T,expandIconSize:_,expandIconScale:$/_}},D$=2,qZ=Ut("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:v,cellPaddingBlock:g,cellPaddingInline:b,cellPaddingBlockMD:y,cellPaddingInlineMD:h,cellPaddingBlockSM:p,cellPaddingInlineSM:C,borderColor:S,footerBg:x,footerColor:$,headerBorderRadius:w,cellFontSize:O,cellFontSizeMD:E,cellFontSizeSM:R,headerSplitColor:M,fixedHeaderSortActiveBg:T,headerFilterHoverBg:_,filterDropdownBg:I,expandIconBg:N,selectionColumnWidth:P,stickyScrollBarBg:k,calc:D}=e,z=Bt(e,{tableFontSize:O,tableBg:r,tableRadius:w,tablePaddingVertical:g,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:p,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:$,tableFooterBg:x,tableHeaderCellSplitColor:M,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:_,tableFilterDropdownBg:I,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:D$,zIndexTableSticky:D(D$).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:R,tableSelectionColumnWidth:P,tableExpandIconBg:N,tableExpandColumnWidth:D(o).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:v,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[KZ(z),zZ(z),_$(z),HZ(z),kZ(z),NZ(z),LZ(z),DZ(z),_$(z),_Z(z),BZ(z),jZ(z),VZ(z),TZ(z),AZ(z),FZ(z),WZ(z)]},UZ,{unitless:{expandIconScale:!0}}),k$=[],GZ=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:v,rowKey:g="key",rowClassName:b,columns:y,children:h,childrenColumnName:p,onChange:C,getPopupContainer:S,loading:x,expandIcon:$,expandable:w,expandedRowRender:O,expandIconColumnIndex:E,indentSize:R,scroll:M,sortDirections:T,locale:_,showSorterTooltip:I={target:"full-header"},virtual:N}=e;Ni();const P=l.useMemo(()=>y||pC(h),[y,h]),k=l.useMemo(()=>P.some(je=>je.responsive),[P]),D=ug(k),z=l.useMemo(()=>{const je=new Set(Object.keys(D).filter(Ne=>D[Ne]));return P.filter(Ne=>!Ne.responsive||Ne.responsive.some(Fe=>je.has(Fe)))},[P,D]),j=on(e,["className","style","columns"]),{locale:L=Zo,direction:F,table:B,renderEmpty:V,getPrefixCls:W,getPopupContainer:q}=l.useContext(xt),J=ir(c),Y=Object.assign(Object.assign({},L.Table),_),ne=f||k$,fe=W("table",o),oe=W("dropdown",d),[,G]=Sr(),ue=Bn(fe),[le,ae,ee]=qZ(fe,ue),ge=Object.assign(Object.assign({childrenColumnName:p,expandIconColumnIndex:E},w),{expandIcon:(n=w==null?void 0:w.expandIcon)!==null&&n!==void 0?n:(r=B==null?void 0:B.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ye="children"}=ge,Ie=l.useMemo(()=>ne.some(je=>je==null?void 0:je[ye])?"nest":O||w!=null&&w.expandedRowRender?"row":null,[ne]),Ee={body:l.useRef(null)},A=pJ(fe),X=l.useRef(null),re=l.useRef(null);Kj(t,()=>Object.assign(Object.assign({},re.current),{nativeElement:X.current}));const me=l.useMemo(()=>typeof g=="function"?g:je=>je==null?void 0:je[g],[g]),[pe]=hZ(ne,ye,me),ve={},Pe=(je,Ne,Fe=!1)=>{var Ye,ut,$t,Mt;const lt=Object.assign(Object.assign({},ve),je);Fe&&((Ye=ve.resetPagination)===null||Ye===void 0||Ye.call(ve),!((ut=lt.pagination)===null||ut===void 0)&&ut.current&&(lt.pagination.current=1),m&&(($t=m.onChange)===null||$t===void 0||$t.call(m,1,(Mt=lt.pagination)===null||Mt===void 0?void 0:Mt.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&Ee.body.current&&Oj(0,{getContainer:()=>Ee.body.current}),C==null||C(lt.pagination,lt.filters,lt.sorter,{currentDataSource:qy(Xy(ne,lt.sorterStates,ye),lt.filterStates,ye),action:Ne})},De=(je,Ne)=>{Pe({sorter:je,sorterStates:Ne},"sort",!1)},[Me,Le,Oe,be]=RZ({prefixCls:fe,mergedColumns:z,onSorterChange:De,sortDirections:T||["ascend","descend"],tableLocale:Y,showSorterTooltip:I}),ke=l.useMemo(()=>Xy(ne,Le,ye),[ne,Le]);ve.sorter=be(),ve.sorterStates=Le;const Se=(je,Ne)=>{Pe({filters:je,filterStates:Ne},"filter",!0)},[Re,we,xe]=gZ({prefixCls:fe,locale:Y,dropdownPrefixCls:oe,mergedColumns:z,onFilterChange:Se,getPopupContainer:S||q,rootClassName:Q(i,ue)}),Te=qy(ke,we,ye);ve.filters=xe,ve.filterStates=we;const Ae=l.useMemo(()=>{const je={};return Object.keys(xe).forEach(Ne=>{xe[Ne]!==null&&(je[Ne]=xe[Ne])}),Object.assign(Object.assign({},Oe),{filters:je})},[Oe,xe]),[ct]=IZ(Ae),yt=(je,Ne)=>{Pe({pagination:Object.assign(Object.assign({},ve.pagination),{current:je,pageSize:Ne})},"paginate")},[Ve,Xe]=bZ(Te.length,yt,m);ve.pagination=m===!1?{}:yZ(Ve,m),ve.resetPagination=Xe;const nt=l.useMemo(()=>{if(m===!1||!Ve.pageSize)return Te;const{current:je=1,total:Ne,pageSize:Fe=UM}=Ve;return Te.length<Ne?Te.length>Fe?Te.slice((je-1)*Fe,je*Fe):Te:Te.slice((je-1)*Fe,je*Fe)},[!!m,Te,Ve==null?void 0:Ve.current,Ve==null?void 0:Ve.pageSize,Ve==null?void 0:Ve.total]),[Ue,Qe]=gJ({prefixCls:fe,data:Te,pageData:nt,getRowKey:me,getRecordByKey:pe,expandType:Ie,childrenColumnName:ye,locale:Y,getPopupContainer:S||q},v),wt=(je,Ne,Fe)=>{let Ye;return typeof b=="function"?Ye=Q(b(je,Ne,Fe)):Ye=Q(b),Q({[`${fe}-row-selected`]:Qe.has(me(je,Ne))},Ye)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||$||hJ(Y),Ie==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=v?1:0:ge.expandIconColumnIndex>0&&v&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof R=="number"?R:15);const It=l.useCallback(je=>ct(Ue(Re(Me(je)))),[Me,Re,Ue]),Je=()=>{if(m===!1||!(Ve!=null&&Ve.total))return{};const je=()=>Ve.size||(J==="small"||J==="middle"?"small":void 0),Ne=it=>{const st=it==="left"?"start":it==="right"?"end":it;return l.createElement(KX,Object.assign({},Ve,{align:Ve.align||st,className:Q(`${fe}-pagination`,Ve.className),size:je()}))},Fe=F==="rtl"?"left":"right",Ye=Ve.position;if(Ye===null||!Array.isArray(Ye))return{bottom:Ne(Fe)};const ut=Ye.find(it=>typeof it=="string"&&it.toLowerCase().includes("top")),$t=Ye.find(it=>typeof it=="string"&&it.toLowerCase().includes("bottom")),Mt=Ye.every(it=>`${it}`=="none"),lt=ut?ut.toLowerCase().replace("top",""):"",Tt=$t?$t.toLowerCase().replace("bottom",""):"",We=!ut&&!$t&&!Mt,tt=()=>lt?Ne(lt):void 0,bt=()=>{if(Tt)return Ne(Tt);if(We)return Ne(Fe)};return{top:tt(),bottom:bt()}},at=l.useMemo(()=>typeof x=="boolean"?{spinning:x}:typeof x=="object"&&x!==null?Object.assign({spinning:!0},x):void 0,[x]),ie=Q(ee,ue,`${fe}-wrapper`,B==null?void 0:B.className,{[`${fe}-wrapper-rtl`]:F==="rtl"},a,i,ae),se=Object.assign(Object.assign({},B==null?void 0:B.style),s),de=l.useMemo(()=>at!=null&&at.spinning&&ne===k$?null:typeof(_==null?void 0:_.emptyText)<"u"?_.emptyText:(V==null?void 0:V("Table"))||l.createElement(L3,{componentName:"Table"}),[at==null?void 0:at.spinning,ne,_==null?void 0:_.emptyText,V]),he=N?MZ:PZ,$e={},ze=l.useMemo(()=>{const{fontSize:je,lineHeight:Ne,lineWidth:Fe,padding:Ye,paddingXS:ut,paddingSM:$t}=G,Mt=Math.floor(je*Ne);switch(J){case"middle":return $t*2+Mt+Fe;case"small":return ut*2+Mt+Fe;default:return Ye*2+Mt+Fe}},[G,J]);N&&($e.listItemHeight=ze);const{top:Be,bottom:He}=Je();return le(l.createElement("div",{ref:X,className:ie,style:se},l.createElement(Id,Object.assign({spinning:!1},at),Be,l.createElement(he,Object.assign({},$e,j,{ref:re,columns:z,direction:F,expandable:ge,prefixCls:fe,className:Q({[`${fe}-middle`]:J==="middle",[`${fe}-small`]:J==="small",[`${fe}-bordered`]:u,[`${fe}-empty`]:ne.length===0},ee,ue,ae),data:nt,rowKey:me,rowClassName:wt,emptyText:de,internalHooks:Md,internalRefs:Ee,transformColumns:It,getContainerWidth:A,measureRowRender:je=>l.createElement(_o,{getPopupContainer:Ne=>Ne},je)})),He)))},XZ=l.forwardRef(GZ),YZ=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(XZ,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Wa=l.forwardRef(YZ);Wa.SELECTION_COLUMN=Ya;Wa.EXPAND_COLUMN=ei;Wa.SELECTION_ALL=Hy;Wa.SELECTION_INVERT=Vy;Wa.SELECTION_NONE=Wy;Wa.Column=aJ;Wa.ColumnGroup=iJ;Wa.Summary=xM;const QZ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},$C=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Bt(e,{tagFontSize:o,tagLineHeight:U(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},EC=e=>({defaultBg:new Wt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),XM=Ut("Tag",e=>{const t=$C(e);return QZ(t)},EC);var JZ=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 ZZ=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:c,onClick:u}=e,d=JZ(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=l.useContext(xt),v=C=>{c==null||c(!a),u==null||u(C)},g=f("tag",n),[b,y,h]=XM(g),p=Q(g,`${g}-checkable`,{[`${g}-checkable-checked`]:a},m==null?void 0:m.className,o,y,h);return b(l.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:p,onClick:v}),s,l.createElement("span",null,i)))}),eee=e=>tI(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),tee=Js(["Tag","preset"],e=>{const t=$C(e);return eee(t)},EC);function nee(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const xf=(e,t,n)=>{const r=nee(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},ree=Js(["Tag","status"],e=>{const t=$C(e);return[xf(t,"success","Success"),xf(t,"processing","Info"),xf(t,"error","Error"),xf(t,"warning","Warning")]},EC);var oee=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 aee=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=oee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:g,tag:b}=l.useContext(xt),[y,h]=l.useState(!0),p=on(m,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&h(f)},[f]);const C=eP(c),S=O9(c),x=C||S,$=Object.assign(Object.assign({backgroundColor:c&&!x?c:void 0},b==null?void 0:b.style),a),w=v("tag",n),[O,E,R]=XM(w),M=Q(w,b==null?void 0:b.className,{[`${w}-${c}`]:x,[`${w}-has-color`]:c&&!x,[`${w}-hidden`]:!y,[`${w}-rtl`]:g==="rtl",[`${w}-borderless`]:!d},r,o,E,R),T=D=>{D.stopPropagation(),u==null||u(D),!D.defaultPrevented&&h(!1)},[,_]=OI(Fm(e),Fm(b),{closable:!1,closeIconRender:D=>{const z=l.createElement("span",{className:`${w}-close-icon`,onClick:T},D);return wI(D,z,j=>({onClick:L=>{var F;(F=j==null?void 0:j.onClick)===null||F===void 0||F.call(j,L),T(L)},className:Q(j==null?void 0:j.className,`${w}-close-icon`)}))}}),I=typeof m.onClick=="function"||i&&i.type==="a",N=s||null,P=N?l.createElement(l.Fragment,null,N,i&&l.createElement("span",null,i)):i,k=l.createElement("span",Object.assign({},p,{ref:t,className:M,style:$}),P,_,C&&l.createElement(tee,{key:"preset",prefixCls:w}),S&&l.createElement(ree,{key:"status",prefixCls:w}));return O(I?l.createElement(vd,{component:"Tag"},k):k)}),Dn=aee;Dn.CheckableTag=ZZ;var iee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},lee=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:iee}))},OC=l.forwardRef(lee),see={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},cee=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:see}))},ev=l.forwardRef(cee),uee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},dee=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:uee}))},fee=l.forwardRef(dee);const mee=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},vee=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
428
|
-
h${r}&,
|
|
429
|
-
div&-h${r},
|
|
430
|
-
div&-h${r} > textarea,
|
|
431
|
-
h${r}
|
|
432
|
-
`]=mee(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},gee=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},h1(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},hee=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Dm[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),pee=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yee=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),bee=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Cee=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},vee(e)),{[`
|
|
433
|
-
& + h1${t},
|
|
434
|
-
& + h2${t},
|
|
435
|
-
& + h3${t},
|
|
436
|
-
& + h4${t},
|
|
437
|
-
& + h5${t}
|
|
438
|
-
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),hee(e)),gee(e)),{[`
|
|
439
|
-
${t}-expand,
|
|
440
|
-
${t}-collapse,
|
|
441
|
-
${t}-edit,
|
|
442
|
-
${t}-copy
|
|
443
|
-
`]:Object.assign(Object.assign({},h1(e)),{marginInlineStart:e.marginXXS})}),pee(e)),yee(e)),bee()),{"&-rtl":{direction:"rtl"}})}},See=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),YM=Ut("Typography",Cee,See),xee=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:a,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:v=l.createElement(fee,null)}=e,g=l.useRef(null),b=l.useRef(!1),y=l.useRef(null),[h,p]=l.useState(c);l.useEffect(()=>{p(c)},[c]),l.useEffect(()=>{var I;if(!((I=g.current)===null||I===void 0)&&I.resizableTextArea){const{textArea:N}=g.current.resizableTextArea;N.focus();const{length:P}=N.value;N.setSelectionRange(P,P)}},[]);const C=({target:I})=>{p(I.value.replace(/[\n\r]/g,""))},S=()=>{b.current=!0},x=()=>{b.current=!1},$=({keyCode:I})=>{b.current||(y.current=I)},w=()=>{u(h.trim())},O=({keyCode:I,ctrlKey:N,altKey:P,metaKey:k,shiftKey:D})=>{y.current!==I||b.current||N||P||k||D||(I===ot.ENTER?(w(),f==null||f()):I===ot.ESC&&d())},E=()=>{w()},[R,M,T]=YM(t),_=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${m}`]:!!m},r,M,T);return R(l.createElement("div",{className:_,style:o},l.createElement(iM,{ref:g,maxLength:i,value:h,onChange:C,onKeyDown:$,onKeyUp:O,onCompositionStart:S,onCompositionEnd:x,onBlur:E,"aria-label":n,rows:1,autoSize:s}),v!==null?Br(v,{className:`${t}-edit-content-confirm`}):null))};var wee=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},$ee=wee,j$={"text/plain":"Text","text/html":"Url",default:"Text"},Eee="Copy to clipboard: #{key}, Enter";function Oee(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Ree(e,t){var n,r,o,a,i,s,c=!1;t||(t={}),n=t.debug||!1;try{o=$ee(),a=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=j$[t.format]||j$.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Oee("message"in t?t.message:Eee),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var Iee=Ree;const Pee=mo(Iee);var Mee=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?a(d.value):o(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const Nee=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[o,a]=l.useState(!1),i=l.useRef(null),s=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),l.useEffect(()=>s,[]);const u=zt(d=>Mee(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;Pee(m||oY(t,!0).join("")||"",c),a(!1),r(!0),s(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw a(!1),m}}));return{copied:n,copyLoading:o,onClick:u}};function bp(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Tee=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},_ee=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Dee=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 QM=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:a,setContentRef:i,children:s,direction:c,style:u}=e,d=Dee(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:v,style:g}=fr("typography"),b=c??m,y=i?ar(t,i):t,h=f("typography",n),[p,C,S]=YM(h),x=Q(h,v,{[`${h}-rtl`]:b==="rtl"},o,a,C,S),$=Object.assign(Object.assign({},g),u);return p(l.createElement(r,Object.assign({className:x,style:$,ref:y},d),s))});var kee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},jee=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:kee}))},Ng=l.forwardRef(jee);function z$(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Cp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function zee(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const RC=e=>["string","number"].includes(typeof e),Lee=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:a,tabIndex:i,onCopy:s,loading:c})=>{const u=z$(o),d=z$(a),{copied:f,copy:m}=n??{},v=t?f:m,g=Cp(u[t?1:0],v),b=typeof g=="string"?g:v;return l.createElement(hr,{title:g},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":b,tabIndex:i},t?Cp(d[1],l.createElement(W3,null),!0):Cp(d[0],c?l.createElement($l,null):l.createElement(Ng,null),!0)))},wf=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),Fee=e=>e.reduce((t,n)=>t+(RC(n)?String(n).length:1),0);function L$(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],s=RC(a)?String(a).length:1,c=n+s;if(c>t){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=c}return e}const Sp=0,xp=1,wp=2,$p=3,F$=4,$f={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Bee(e){const{enableMeasure:t,width:n,text:r,children:o,rows:a,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>yr(r),[r]),d=l.useMemo(()=>Fee(u),[r]),f=l.useMemo(()=>o(u,!1),[r]),[m,v]=l.useState(null),g=l.useRef(null),b=l.useRef(null),y=l.useRef(null),h=l.useRef(null),p=l.useRef(null),[C,S]=l.useState(!1),[x,$]=l.useState(Sp),[w,O]=l.useState(0),[E,R]=l.useState(null);Dt(()=>{$(t&&n&&d?xp:Sp)},[n,r,a,t,u]),Dt(()=>{var I,N,P,k;if(x===xp){$(wp);const D=b.current&&getComputedStyle(b.current).whiteSpace;R(D)}else if(x===wp){const D=!!(!((I=y.current)===null||I===void 0)&&I.isExceed());$(D?$p:F$),v(D?[0,d]:null),S(D);const z=((N=y.current)===null||N===void 0?void 0:N.getHeight())||0,j=a===1?0:((P=h.current)===null||P===void 0?void 0:P.getHeight())||0,L=((k=p.current)===null||k===void 0?void 0:k.getHeight())||0,F=Math.max(z,j+L);O(F+1),c(D)}},[x]);const M=m?Math.ceil((m[0]+m[1])/2):0;Dt(()=>{var I;const[N,P]=m||[0,0];if(N!==P){const D=(((I=g.current)===null||I===void 0?void 0:I.getHeight())||0)>w;let z=M;P-N===1&&(z=D?N:P),v(D?[N,z]:[z,P])}},[m,M]);const T=l.useMemo(()=>{if(!t)return o(u,!1);if(x!==$p||!m||m[0]!==m[1]){const I=o(u,!1);return[F$,Sp].includes(x)?I:l.createElement("span",{style:Object.assign(Object.assign({},$f),{WebkitLineClamp:a})},I)}return o(i?u:L$(u,m[0]),C)},[i,x,m,u].concat(_e(s))),_={width:n,margin:0,padding:0,whiteSpace:E==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,T,x===wp&&l.createElement(l.Fragment,null,l.createElement(wf,{style:Object.assign(Object.assign(Object.assign({},_),$f),{WebkitLineClamp:a}),ref:y},f),l.createElement(wf,{style:Object.assign(Object.assign(Object.assign({},_),$f),{WebkitLineClamp:a-1}),ref:h},f),l.createElement(wf,{style:Object.assign(Object.assign(Object.assign({},_),$f),{WebkitLineClamp:1}),ref:p},o([],!0))),x===$p&&m&&m[0]!==m[1]&&l.createElement(wf,{style:Object.assign(Object.assign({},_),{top:400}),ref:g},o(L$(u,M),!0)),x===xp&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const Aee=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:l.createElement(hr,Object.assign({open:t?void 0:!1},r),n);var Hee=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 Vee({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:a,italic:i},s){let c=s;function u(d,f){f&&(c=l.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",a),u("i",i),c}const Wee="...",B$=["delete","mark","code","underline","strong","keyboard","italic"],Tg=l.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:a,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:v}=e,g=Hee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=l.useContext(xt),[h]=ho("Text"),p=l.useRef(null),C=l.useRef(null),S=b("typography",r),x=on(g,B$),[$,w]=bp(d),[O,E]=Jt(!1,{value:w.editing}),{triggerType:R=["icon"]}=w,M=we=>{var xe;we&&((xe=w.onStart)===null||xe===void 0||xe.call(w)),E(we)},T=Tee(O);Dt(()=>{var we;!O&&T&&((we=C.current)===null||we===void 0||we.focus())},[O]);const _=we=>{we==null||we.preventDefault(),M(!0)},I=we=>{var xe;(xe=w.onChange)===null||xe===void 0||xe.call(w,we),M(!1)},N=()=>{var we;(we=w.onCancel)===null||we===void 0||we.call(w),M(!1)},[P,k]=bp(f),{copied:D,copyLoading:z,onClick:j}=Nee({copyConfig:k,children:c}),[L,F]=l.useState(!1),[B,V]=l.useState(!1),[W,q]=l.useState(!1),[J,Y]=l.useState(!1),[ne,fe]=l.useState(!0),[oe,G]=bp(u,{expandable:!1,symbol:we=>we?h==null?void 0:h.collapse:h==null?void 0:h.expand}),[ue,le]=Jt(G.defaultExpanded||!1,{value:G.expanded}),ae=oe&&(!ue||G.expandable==="collapsible"),{rows:ee=1}=G,ge=l.useMemo(()=>ae&&(G.suffix!==void 0||G.onEllipsis||G.expandable||$||P),[ae,G,$,P]);Dt(()=>{oe&&!ge&&(F(Cy("webkitLineClamp")),V(Cy("textOverflow")))},[ge,oe]);const[ye,Ie]=l.useState(ae),Ee=l.useMemo(()=>ge?!1:ee===1?B:L,[ge,B,L]);Dt(()=>{Ie(Ee&&ae)},[Ee,ae]);const A=ae&&(ye?J:W),X=ae&&ee===1&&ye,re=ae&&ee>1&&ye,me=(we,xe)=>{var Te;le(xe.expanded),(Te=G.onExpand)===null||Te===void 0||Te.call(G,we,xe)},[pe,ve]=l.useState(0),Pe=({offsetWidth:we})=>{ve(we)},De=we=>{var xe;q(we),W!==we&&((xe=G.onEllipsis)===null||xe===void 0||xe.call(G,we))};l.useEffect(()=>{const we=p.current;if(oe&&ye&&we){const xe=zee(we);J!==xe&&Y(xe)}},[oe,ye,c,re,ne,pe]),l.useEffect(()=>{const we=p.current;if(typeof IntersectionObserver>"u"||!we||!ye||!ae)return;const xe=new IntersectionObserver(()=>{fe(!!we.offsetParent)});return xe.observe(we),()=>{xe.disconnect()}},[ye,ae]);const Me=_ee(G.tooltip,w.text,c),Le=l.useMemo(()=>{if(!(!oe||ye))return[w.text,c,v,Me.title].find(RC)},[oe,ye,v,Me.title,A]);if(O)return l.createElement(xee,{value:(n=w.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:I,onCancel:N,onEnd:w.onEnd,prefixCls:S,className:o,style:a,direction:y,component:m,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const Oe=()=>{const{expandable:we,symbol:xe}=G;return we?l.createElement("button",{type:"button",key:"expand",className:`${S}-${ue?"collapse":"expand"}`,onClick:Te=>me(Te,{expanded:!ue}),"aria-label":ue?h.collapse:h==null?void 0:h.expand},typeof xe=="function"?xe(ue):xe):null},be=()=>{if(!$)return;const{icon:we,tooltip:xe,tabIndex:Te}=w,Ae=yr(xe)[0]||(h==null?void 0:h.edit),ct=typeof Ae=="string"?Ae:"";return R.includes("icon")?l.createElement(hr,{key:"edit",title:xe===!1?"":Ae},l.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:_,"aria-label":ct,tabIndex:Te},we||l.createElement(ev,{role:"button"}))):null},ke=()=>P?l.createElement(Lee,Object.assign({key:"copy"},k,{prefixCls:S,copied:D,locale:h,onCopy:j,loading:z,iconOnly:c==null})):null,Se=we=>[we&&Oe(),be(),ke()],Re=we=>[we&&!ue&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Wee),G.suffix,Se(we)];return l.createElement(gr,{onResize:Pe,disabled:!ae},we=>l.createElement(Aee,{tooltipProps:Me,enableEllipsis:ae,isEllipsis:A},l.createElement(QM,Object.assign({className:Q({[`${S}-${i}`]:i,[`${S}-disabled`]:s,[`${S}-ellipsis`]:oe,[`${S}-ellipsis-single-line`]:X,[`${S}-ellipsis-multiple-line`]:re},o),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:re?ee:void 0}),component:m,ref:ar(we,p,t),direction:y,onClick:R.includes("text")?_:void 0,"aria-label":Le==null?void 0:Le.toString(),title:v},x),l.createElement(Bee,{enableMeasure:ae&&!ye,text:c,rows:ee,width:pe,onEllipsis:De,expanded:ue,miscDeps:[D,ue,z,$,P,h].concat(_e(B$.map(xe=>e[xe])))},(xe,Te)=>Vee(e,l.createElement(l.Fragment,null,xe.length>0&&Te&&!ue&&Le?l.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,Re(Te)))))))});var Kee=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 Uee=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:a}=e,i=Kee(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return l.createElement(Tg,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)});var qee=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 Gee=l.forwardRef((e,t)=>{const{children:n}=e,r=qee(e,["children"]);return l.createElement(Tg,Object.assign({ref:t},r,{component:"div"}),n)});var Xee=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 Yee=(e,t)=>{const{ellipsis:n,children:r}=e,o=Xee(e,["ellipsis","children"]),a=l.useMemo(()=>n&&typeof n=="object"?on(n,["expandable","rows"]):n,[n]);return l.createElement(Tg,Object.assign({ref:t},o,{ellipsis:a,component:"span"}),r)},Qee=l.forwardRef(Yee);var Jee=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 Zee=[1,2,3,4,5],ete=l.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Jee(e,["level","children"]),a=Zee.includes(n)?`h${n}`:"h1";return l.createElement(Tg,Object.assign({ref:t},o,{component:a}),r)}),hc=QM;hc.Text=Qee;hc.Link=Uee;hc.Title=ete;hc.Paragraph=Gee;var _g={},JM={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(JM);var Dg=JM.exports,kg={};Object.defineProperty(kg,"__esModule",{value:!0});kg.default=void 0;var tte={items_per_page:"件 / ページ",jump_to:"移動",jump_to_confirm:"確認する",page:"ページ",prev_page:"前のページ",next_page:"次のページ",prev_5:"前 5ページ",next_5:"次 5ページ",prev_3:"前 3ページ",next_3:"次 3ページ",page_size:"ページサイズ"};kg.default=tte;var jg={},Nd={},zg={},ZM={exports:{}},eN={exports:{}},tN={exports:{}},nN={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nN);var rN=nN.exports,oN={exports:{}};(function(e){var t=rN.default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(oN);var nte=oN.exports;(function(e){var t=rN.default,n=nte;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(tN);var rte=tN.exports;(function(e){var t=rte;function n(r,o,a){return(o=t(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(eN);var ote=eN.exports;(function(e){var t=ote;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),i.push.apply(i,s)}return i}function r(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?n(Object(i),!0).forEach(function(s){t(o,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ZM);var ate=ZM.exports,Lg={};Object.defineProperty(Lg,"__esModule",{value:!0});Lg.commonLocale=void 0;Lg.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var ite=Dg.default;Object.defineProperty(zg,"__esModule",{value:!0});zg.default=void 0;var A$=ite(ate),lte=Lg,ste=(0,A$.default)((0,A$.default)({},lte.commonLocale),{},{locale:"ja_JP",today:"今日",now:"現在時刻",backToToday:"今日に戻る",ok:"確定",timeSelect:"時間を選択",dateSelect:"日時を選択",weekSelect:"週を選択",clear:"クリア",week:"週",month:"月",year:"年",previousMonth:"前月 (ページアップキー)",nextMonth:"翌月 (ページダウンキー)",monthSelect:"月を選択",yearSelect:"年を選択",decadeSelect:"年代を選択",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"前年 (Controlを押しながら左キー)",nextYear:"翌年 (Controlを押しながら右キー)",previousDecade:"前の年代",nextDecade:"次の年代",previousCentury:"前の世紀",nextCentury:"次の世紀",monthBeforeYear:!1});zg.default=ste;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});Td.default=void 0;const cte={placeholder:"時間を選択",rangePlaceholder:["開始時間","終了時間"]};Td.default=cte;var aN=Dg.default;Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var ute=aN(zg),dte=aN(Td);const fte={lang:Object.assign({placeholder:"日付を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",monthPlaceholder:"月を選択",weekPlaceholder:"週を選択",rangePlaceholder:["開始日付","終了日付"],rangeYearPlaceholder:["開始年","終了年"],rangeMonthPlaceholder:["開始月","終了月"],rangeQuarterPlaceholder:["開始四半期","終了四半期"],rangeWeekPlaceholder:["開始週","終了週"],shortWeekDays:["日","月","火","水","木","金","土"],shortMonths:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},ute.default),timePickerLocale:Object.assign({},dte.default)};Nd.default=fte;var mte=Dg.default;Object.defineProperty(jg,"__esModule",{value:!0});jg.default=void 0;var vte=mte(Nd);jg.default=vte.default;var Fg=Dg.default;Object.defineProperty(_g,"__esModule",{value:!0});_g.default=void 0;var gte=Fg(kg),hte=Fg(jg),pte=Fg(Nd),yte=Fg(Td);const ro="${label}は有効な${type}ではありません",bte={locale:"ja",Pagination:gte.default,DatePicker:pte.default,TimePicker:yte.default,Calendar:hte.default,global:{placeholder:"選んでください",close:"閉じる"},Table:{filterTitle:"フィルター",filterConfirm:"OK",filterReset:"リセット",filterEmptyText:"フィルターなし",filterCheckAll:"すべてを選択",filterSearchPlaceholder:"フィルターで検索",emptyText:"データなし",selectAll:"ページ単位で選択",selectInvert:"ページ単位で反転",selectNone:"クリア",selectionAll:"すべてを選択",sortTitle:"ソート",expand:"展開する",collapse:"折り畳む",triggerDesc:"クリックで降順にソート",triggerAsc:"クリックで昇順にソート",cancelSort:"ソートをキャンセル"},Tour:{Next:"次",Previous:"前の",Finish:"仕上げる"},Modal:{okText:"OK",cancelText:"キャンセル",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"キャンセル"},Transfer:{titles:["",""],searchPlaceholder:"ここを検索",itemUnit:"アイテム",itemsUnit:"アイテム",remove:"削除",selectCurrent:"現在のページを選択",removeCurrent:"現在のページを削除",selectAll:"ページ単位で選択",deselectAll:"すべてのデータの選択を解除する",removeAll:"ページ単位で削除",selectInvert:"ページ単位で反転"},Upload:{uploading:"アップロード中...",removeFile:"ファイルを削除",uploadError:"アップロードエラー",previewFile:"ファイルをプレビュー",downloadFile:"ダウンロードファイル"},Empty:{description:"データがありません"},Icon:{icon:"アイコン"},Text:{edit:"編集",copy:"コピー",copied:"コピーされました",expand:"拡大する",collapse:"崩壊"},Form:{optional:"(オプション)",defaultValidateMessages:{default:"${label}のフィールド検証エラー",required:"${label}を入力してください",enum:"${label}は[${enum}]のいずれかである必要があります",whitespace:"${label}は空白文字にすることはできません",date:{format:"${label}の日付形式は不正です",parse:"${label}は日付に変換できません",invalid:"${label}は不正な日付です"},types:{string:ro,method:ro,array:ro,object:ro,number:ro,date:ro,boolean:ro,integer:ro,float:ro,regexp:ro,email:ro,url:ro,hex:ro},string:{len:"${label}は${len}文字である必要があります",min:"${label}は${min}文字以上である必要があります",max:"${label}は${max}文字以下である必要があります",range:"${label}は${min}-${max}文字の範囲である必要があります"},number:{len:"${label}は${len}と等しい必要があります",min:"${label}の最小値は${min}です",max:"${label}の最大値は${max}です",range:"${label}は${min}-${max}の範囲である必要があります"},array:{len:"${label}は${len}である必要があります",min:"${label}の最小は${min}です",max:"${label}の最大は${max}です",range:"${label}の合計は${min}-${max}の範囲である必要があります"},pattern:{mismatch:"${label}はパターン${pattern}と一致しません"}}},Image:{preview:"プレビュー"},QRCode:{expired:"QRコードの有効期限が切れました",refresh:"リフレッシュ",scanned:"スキャン済み"},ColorPicker:{presetEmpty:"空の",transparent:"透明",singleColor:"単色",gradientColor:"グラデーション"}};_g.default=bte;var Cte=_g;const Ste=mo(Cte),xte={token:{colorPrimary:"#1677ff",borderRadius:6,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"},components:{Layout:{siderBg:"#001529",headerBg:"#fff",headerHeight:56},Table:{headerBg:"#fafafa",rowHoverBg:"#f5f5f5"},Menu:{darkItemBg:"transparent",darkItemSelectedBg:"rgba(255, 255, 255, 0.1)",darkItemHoverBg:"rgba(255, 255, 255, 0.05)"},Card:{borderRadiusLG:8}}};/**
|
|
444
|
-
* @remix-run/router v1.23.1
|
|
445
|
-
*
|
|
446
|
-
* Copyright (c) Remix Software Inc.
|
|
447
|
-
*
|
|
448
|
-
* This source code is licensed under the MIT license found in the
|
|
449
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
450
|
-
*
|
|
451
|
-
* @license MIT
|
|
452
|
-
*/function wn(){return wn=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},wn.apply(this,arguments)}var qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qn||(qn={}));const H$="popstate";function wte(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return td("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:bl(o)}return Ete(t,n,null,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $te(){return Math.random().toString(36).substr(2,8)}function V$(e,t){return{usr:e.state,key:e.key,idx:t}}function td(e,t,n,r){return n===void 0&&(n=null),wn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_i(t):t,{state:n,key:t&&t.key||r||$te()})}function bl(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 _i(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 Ete(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=qn.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(wn({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=qn.Pop;let y=d(),h=y==null?null:y-u;u=y,c&&c({action:s,location:b.location,delta:h})}function m(y,h){s=qn.Push;let p=td(b.location,y,h);u=d()+1;let C=V$(p,u),S=b.createHref(p);try{i.pushState(C,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(S)}a&&c&&c({action:s,location:b.location,delta:1})}function v(y,h){s=qn.Replace;let p=td(b.location,y,h);u=d();let C=V$(p,u),S=b.createHref(p);i.replaceState(C,"",S),a&&c&&c({action:s,location:b.location,delta:0})}function g(y){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof y=="string"?y:bl(y);return p=p.replace(/ $/,"%20"),Gt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let b={get action(){return s},get location(){return e(o,i)},listen(y){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(H$,f),c=y,()=>{o.removeEventListener(H$,f),c=null}},createHref(y){return t(o,y)},createURL:g,encodeLocation(y){let h=g(y);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:v,go(y){return i.go(y)}};return b}var ln;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ln||(ln={}));const Ote=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rte(e){return e.index===!0}function tv(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(Gt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Gt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Rte(o)){let c=wn({},o,t(o),{id:s});return r[s]=c,c}else{let c=wn({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=tv(o.children,t,i,r)),c}})}function Vi(e,t,n){return n===void 0&&(n="/"),rm(e,t,n,!1)}function rm(e,t,n,r){let o=typeof t=="string"?_i(t):t,a=pc(o.pathname||"/",n);if(a==null)return null;let i=iN(e);Pte(i);let s=null;for(let c=0;s==null&&c<i.length;++c){let u=Bte(a);s=Lte(i[c],u,r)}return s}function Ite(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function iN(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(Gt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Da([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(Gt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),iN(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:jte(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of lN(a.path))o(a,i,c)}),t}function lN(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=lN(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Pte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zte(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Mte=/^:[\w-]+$/,Nte=3,Tte=2,_te=1,Dte=10,kte=-2,W$=e=>e==="*";function jte(e,t){let n=e.split("/"),r=n.length;return n.some(W$)&&(r+=kte),t&&(r+=Tte),n.filter(o=>!W$(o)).reduce((o,a)=>o+(Mte.test(a)?Nte:a===""?_te:Dte),r)}function zte(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 Lte(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=K$({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=K$({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Da([a,f.pathname]),pathnameBase:Wte(Da([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=Da([a,f.pathnameBase]))}return i}function K$(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Fte(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:v}=d;if(m==="*"){let b=s[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function Fte(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yl(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,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Bte(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yl(!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 pc(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)||"/"}const Ate=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hte=e=>Ate.test(e);function Vte(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_i(e):e,a;if(n)if(Hte(n))a=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),yl(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?a=U$(n.substring(1),"/"):a=U$(n,t)}else a=t;return{pathname:a,search:Kte(r),hash:Ute(o)}}function U$(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 Ep(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 sN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bg(e,t){let n=sN(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ag(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=_i(e):(o=wn({},e),Gt(!o.pathname||!o.pathname.includes("?"),Ep("?","pathname","search",o)),Gt(!o.pathname||!o.pathname.includes("#"),Ep("#","pathname","hash",o)),Gt(!o.search||!o.search.includes("#"),Ep("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let c=Vte(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Da=e=>e.join("/").replace(/\/\/+/g,"/"),Wte=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Kte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ute=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class nv{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function nd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cN=["post","put","patch","delete"],qte=new Set(cN),Gte=["get",...cN],Xte=new Set(Gte),Yte=new Set([301,302,303,307,308]),Qte=new Set([307,308]),Op={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jte={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},IC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zte=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),uN="remix-router-transitions";function ene(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Gt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ie=e.detectErrorBoundary;o=se=>({hasErrorBoundary:ie(se)})}else o=Zte;let a={},i=tv(e.routes,o,void 0,a),s,c=e.basename||"/",u=e.dataStrategy||one,d=e.patchRoutesOnNavigation,f=wn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,v=new Set,g=null,b=null,y=null,h=e.hydrationData!=null,p=Vi(i,e.history.location,c),C=!1,S=null;if(p==null&&!d){let ie=Kr(404,{pathname:e.history.location.pathname}),{matches:se,route:de}=rE(i);p=se,S={[de.id]:ie}}p&&!e.hydrationData&&wt(p,i,e.history.location.pathname).active&&(p=null);let x;if(p)if(p.some(ie=>ie.route.lazy))x=!1;else if(!p.some(ie=>ie.route.loader))x=!0;else if(f.v7_partialHydration){let ie=e.hydrationData?e.hydrationData.loaderData:null,se=e.hydrationData?e.hydrationData.errors:null;if(se){let de=p.findIndex(he=>se[he.route.id]!==void 0);x=p.slice(0,de+1).every(he=>!Qy(he.route,ie,se))}else x=p.every(de=>!Qy(de.route,ie,se))}else x=e.hydrationData!=null;else if(x=!1,p=[],f.v7_partialHydration){let ie=wt(null,i,e.history.location.pathname);ie.active&&ie.matches&&(C=!0,p=ie.matches)}let $,w={historyAction:e.history.action,location:e.history.location,matches:p,initialized:x,navigation:Op,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},O=qn.Pop,E=!1,R,M=!1,T=new Map,_=null,I=!1,N=!1,P=[],k=new Set,D=new Map,z=0,j=-1,L=new Map,F=new Set,B=new Map,V=new Map,W=new Set,q=new Map,J=new Map,Y;function ne(){if(m=e.history.listen(ie=>{let{action:se,location:de,delta:he}=ie;if(Y){Y(),Y=void 0;return}yl(J.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $e=ct({currentLocation:w.location,nextLocation:de,historyAction:se});if($e&&he!=null){let ze=new Promise(Be=>{Y=Be});e.history.go(he*-1),Ae($e,{state:"blocked",location:de,proceed(){Ae($e,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),ze.then(()=>e.history.go(he))},reset(){let Be=new Map(w.blockers);Be.set($e,jc),G({blockers:Be})}});return}return ee(se,de)}),n){yne(t,T);let ie=()=>bne(t,T);t.addEventListener("pagehide",ie),_=()=>t.removeEventListener("pagehide",ie)}return w.initialized||ee(qn.Pop,w.location,{initialHydration:!0}),$}function fe(){m&&m(),_&&_(),v.clear(),R&&R.abort(),w.fetchers.forEach((ie,se)=>Oe(se)),w.blockers.forEach((ie,se)=>Te(se))}function oe(ie){return v.add(ie),()=>v.delete(ie)}function G(ie,se){se===void 0&&(se={}),w=wn({},w,ie);let de=[],he=[];f.v7_fetcherPersist&&w.fetchers.forEach(($e,ze)=>{$e.state==="idle"&&(W.has(ze)?he.push(ze):de.push(ze))}),W.forEach($e=>{!w.fetchers.has($e)&&!D.has($e)&&he.push($e)}),[...v].forEach($e=>$e(w,{deletedFetchers:he,viewTransitionOpts:se.viewTransitionOpts,flushSync:se.flushSync===!0})),f.v7_fetcherPersist?(de.forEach($e=>w.fetchers.delete($e)),he.forEach($e=>Oe($e))):he.forEach($e=>W.delete($e))}function ue(ie,se,de){var he,$e;let{flushSync:ze}=de===void 0?{}:de,Be=w.actionData!=null&&w.navigation.formMethod!=null&&Ao(w.navigation.formMethod)&&w.navigation.state==="loading"&&((he=ie.state)==null?void 0:he._isRedirect)!==!0,He;se.actionData?Object.keys(se.actionData).length>0?He=se.actionData:He=null:Be?He=w.actionData:He=null;let je=se.loaderData?tE(w.loaderData,se.loaderData,se.matches||[],se.errors):w.loaderData,Ne=w.blockers;Ne.size>0&&(Ne=new Map(Ne),Ne.forEach((ut,$t)=>Ne.set($t,jc)));let Fe=E===!0||w.navigation.formMethod!=null&&Ao(w.navigation.formMethod)&&(($e=ie.state)==null?void 0:$e._isRedirect)!==!0;s&&(i=s,s=void 0),I||O===qn.Pop||(O===qn.Push?e.history.push(ie,ie.state):O===qn.Replace&&e.history.replace(ie,ie.state));let Ye;if(O===qn.Pop){let ut=T.get(w.location.pathname);ut&&ut.has(ie.pathname)?Ye={currentLocation:w.location,nextLocation:ie}:T.has(ie.pathname)&&(Ye={currentLocation:ie,nextLocation:w.location})}else if(M){let ut=T.get(w.location.pathname);ut?ut.add(ie.pathname):(ut=new Set([ie.pathname]),T.set(w.location.pathname,ut)),Ye={currentLocation:w.location,nextLocation:ie}}G(wn({},se,{actionData:He,loaderData:je,historyAction:O,location:ie,initialized:!0,navigation:Op,revalidation:"idle",restoreScrollPosition:Qe(ie,se.matches||w.matches),preventScrollReset:Fe,blockers:Ne}),{viewTransitionOpts:Ye,flushSync:ze===!0}),O=qn.Pop,E=!1,M=!1,I=!1,N=!1,P=[]}async function le(ie,se){if(typeof ie=="number"){e.history.go(ie);return}let de=Yy(w.location,w.matches,c,f.v7_prependBasename,ie,f.v7_relativeSplatPath,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:he,submission:$e,error:ze}=q$(f.v7_normalizeFormMethod,!1,de,se),Be=w.location,He=td(w.location,he,se&&se.state);He=wn({},He,e.history.encodeLocation(He));let je=se&&se.replace!=null?se.replace:void 0,Ne=qn.Push;je===!0?Ne=qn.Replace:je===!1||$e!=null&&Ao($e.formMethod)&&$e.formAction===w.location.pathname+w.location.search&&(Ne=qn.Replace);let Fe=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,Ye=(se&&se.flushSync)===!0,ut=ct({currentLocation:Be,nextLocation:He,historyAction:Ne});if(ut){Ae(ut,{state:"blocked",location:He,proceed(){Ae(ut,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),le(ie,se)},reset(){let $t=new Map(w.blockers);$t.set(ut,jc),G({blockers:$t})}});return}return await ee(Ne,He,{submission:$e,pendingError:ze,preventScrollReset:Fe,replace:se&&se.replace,enableViewTransition:se&&se.viewTransition,flushSync:Ye})}function ae(){if(Pe(),G({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){ee(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}ee(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:M===!0})}}async function ee(ie,se,de){R&&R.abort(),R=null,O=ie,I=(de&&de.startUninterruptedRevalidation)===!0,Ue(w.location,w.matches),E=(de&&de.preventScrollReset)===!0,M=(de&&de.enableViewTransition)===!0;let he=s||i,$e=de&&de.overrideNavigation,ze=de!=null&&de.initialHydration&&w.matches&&w.matches.length>0&&!C?w.matches:Vi(he,se,c),Be=(de&&de.flushSync)===!0;if(ze&&w.initialized&&!N&&une(w.location,se)&&!(de&&de.submission&&Ao(de.submission.formMethod))){ue(se,{matches:ze},{flushSync:Be});return}let He=wt(ze,he,se.pathname);if(He.active&&He.matches&&(ze=He.matches),!ze){let{error:Mt,notFoundMatches:lt,route:Tt}=yt(se.pathname);ue(se,{matches:lt,loaderData:{},errors:{[Tt.id]:Mt}},{flushSync:Be});return}R=new AbortController;let je=Yl(e.history,se,R.signal,de&&de.submission),Ne;if(de&&de.pendingError)Ne=[Wi(ze).route.id,{type:ln.error,error:de.pendingError}];else if(de&&de.submission&&Ao(de.submission.formMethod)){let Mt=await ge(je,se,de.submission,ze,He.active,{replace:de.replace,flushSync:Be});if(Mt.shortCircuited)return;if(Mt.pendingActionResult){let[lt,Tt]=Mt.pendingActionResult;if(ao(Tt)&&nd(Tt.error)&&Tt.error.status===404){R=null,ue(se,{matches:Mt.matches,loaderData:{},errors:{[lt]:Tt.error}});return}}ze=Mt.matches||ze,Ne=Mt.pendingActionResult,$e=Rp(se,de.submission),Be=!1,He.active=!1,je=Yl(e.history,je.url,je.signal)}let{shortCircuited:Fe,matches:Ye,loaderData:ut,errors:$t}=await ye(je,se,ze,He.active,$e,de&&de.submission,de&&de.fetcherSubmission,de&&de.replace,de&&de.initialHydration===!0,Be,Ne);Fe||(R=null,ue(se,wn({matches:Ye||ze},nE(Ne),{loaderData:ut,errors:$t})))}async function ge(ie,se,de,he,$e,ze){ze===void 0&&(ze={}),Pe();let Be=hne(se,de);if(G({navigation:Be},{flushSync:ze.flushSync===!0}),$e){let Ne=await It(he,se.pathname,ie.signal);if(Ne.type==="aborted")return{shortCircuited:!0};if(Ne.type==="error"){let Fe=Wi(Ne.partialMatches).route.id;return{matches:Ne.partialMatches,pendingActionResult:[Fe,{type:ln.error,error:Ne.error}]}}else if(Ne.matches)he=Ne.matches;else{let{notFoundMatches:Fe,error:Ye,route:ut}=yt(se.pathname);return{matches:Fe,pendingActionResult:[ut.id,{type:ln.error,error:Ye}]}}}let He,je=Jc(he,se);if(!je.route.action&&!je.route.lazy)He={type:ln.error,error:Kr(405,{method:ie.method,pathname:se.pathname,routeId:je.route.id})};else if(He=(await pe("action",w,ie,[je],he,null))[je.route.id],ie.signal.aborted)return{shortCircuited:!0};if(Zi(He)){let Ne;return ze&&ze.replace!=null?Ne=ze.replace:Ne=J$(He.response.headers.get("Location"),new URL(ie.url),c)===w.location.pathname+w.location.search,await me(ie,He,!0,{submission:de,replace:Ne}),{shortCircuited:!0}}if(ci(He))throw Kr(400,{type:"defer-action"});if(ao(He)){let Ne=Wi(he,je.route.id);return(ze&&ze.replace)!==!0&&(O=qn.Push),{matches:he,pendingActionResult:[Ne.route.id,He]}}return{matches:he,pendingActionResult:[je.route.id,He]}}async function ye(ie,se,de,he,$e,ze,Be,He,je,Ne,Fe){let Ye=$e||Rp(se,ze),ut=ze||Be||aE(Ye),$t=!I&&(!f.v7_partialHydration||!je);if(he){if($t){let vt=Ie(Fe);G(wn({navigation:Ye},vt!==void 0?{actionData:vt}:{}),{flushSync:Ne})}let Ke=await It(de,se.pathname,ie.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){let vt=Wi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[vt]:Ke.error}}}else if(Ke.matches)de=Ke.matches;else{let{error:vt,notFoundMatches:Yt,route:rn}=yt(se.pathname);return{matches:Yt,loaderData:{},errors:{[rn.id]:vt}}}}let Mt=s||i,[lt,Tt]=X$(e.history,w,de,ut,se,f.v7_partialHydration&&je===!0,f.v7_skipActionErrorRevalidation,N,P,k,W,B,F,Mt,c,Fe);if(Ve(Ke=>!(de&&de.some(vt=>vt.route.id===Ke))||lt&<.some(vt=>vt.route.id===Ke)),j=++z,lt.length===0&&Tt.length===0){let Ke=Re();return ue(se,wn({matches:de,loaderData:{},errors:Fe&&ao(Fe[1])?{[Fe[0]]:Fe[1].error}:null},nE(Fe),Ke?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ne}),{shortCircuited:!0}}if($t){let Ke={};if(!he){Ke.navigation=Ye;let vt=Ie(Fe);vt!==void 0&&(Ke.actionData=vt)}Tt.length>0&&(Ke.fetchers=Ee(Tt)),G(Ke,{flushSync:Ne})}Tt.forEach(Ke=>{ke(Ke.key),Ke.controller&&D.set(Ke.key,Ke.controller)});let We=()=>Tt.forEach(Ke=>ke(Ke.key));R&&R.signal.addEventListener("abort",We);let{loaderResults:tt,fetcherResults:bt}=await ve(w,de,lt,Tt,ie);if(ie.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",We),Tt.forEach(Ke=>D.delete(Ke.key));let it=Ef(tt);if(it)return await me(ie,it.result,!0,{replace:He}),{shortCircuited:!0};if(it=Ef(bt),it)return F.add(it.key),await me(ie,it.result,!0,{replace:He}),{shortCircuited:!0};let{loaderData:st,errors:rt}=eE(w,de,tt,Fe,Tt,bt,q);q.forEach((Ke,vt)=>{Ke.subscribe(Yt=>{(Yt||Ke.done)&&q.delete(vt)})}),f.v7_partialHydration&&je&&w.errors&&(rt=wn({},w.errors,rt));let Et=Re(),kt=we(j),Ze=Et||kt||Tt.length>0;return wn({matches:de,loaderData:st,errors:rt},Ze?{fetchers:new Map(w.fetchers)}:{})}function Ie(ie){if(ie&&!ao(ie[1]))return{[ie[0]]:ie[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Ee(ie){return ie.forEach(se=>{let de=w.fetchers.get(se.key),he=zc(void 0,de?de.data:void 0);w.fetchers.set(se.key,he)}),new Map(w.fetchers)}function A(ie,se,de,he){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ke(ie);let $e=(he&&he.flushSync)===!0,ze=s||i,Be=Yy(w.location,w.matches,c,f.v7_prependBasename,de,f.v7_relativeSplatPath,se,he==null?void 0:he.relative),He=Vi(ze,Be,c),je=wt(He,ze,Be);if(je.active&&je.matches&&(He=je.matches),!He){Me(ie,se,Kr(404,{pathname:Be}),{flushSync:$e});return}let{path:Ne,submission:Fe,error:Ye}=q$(f.v7_normalizeFormMethod,!0,Be,he);if(Ye){Me(ie,se,Ye,{flushSync:$e});return}let ut=Jc(He,Ne),$t=(he&&he.preventScrollReset)===!0;if(Fe&&Ao(Fe.formMethod)){X(ie,se,Ne,ut,He,je.active,$e,$t,Fe);return}B.set(ie,{routeId:se,path:Ne}),re(ie,se,Ne,ut,He,je.active,$e,$t,Fe)}async function X(ie,se,de,he,$e,ze,Be,He,je){Pe(),B.delete(ie);function Ne(Ht){if(!Ht.route.action&&!Ht.route.lazy){let un=Kr(405,{method:je.formMethod,pathname:de,routeId:se});return Me(ie,se,un,{flushSync:Be}),!0}return!1}if(!ze&&Ne(he))return;let Fe=w.fetchers.get(ie);De(ie,pne(je,Fe),{flushSync:Be});let Ye=new AbortController,ut=Yl(e.history,de,Ye.signal,je);if(ze){let Ht=await It($e,new URL(ut.url).pathname,ut.signal,ie);if(Ht.type==="aborted")return;if(Ht.type==="error"){Me(ie,se,Ht.error,{flushSync:Be});return}else if(Ht.matches){if($e=Ht.matches,he=Jc($e,de),Ne(he))return}else{Me(ie,se,Kr(404,{pathname:de}),{flushSync:Be});return}}D.set(ie,Ye);let $t=z,lt=(await pe("action",w,ut,[he],$e,ie))[he.route.id];if(ut.signal.aborted){D.get(ie)===Ye&&D.delete(ie);return}if(f.v7_fetcherPersist&&W.has(ie)){if(Zi(lt)||ao(lt)){De(ie,Qa(void 0));return}}else{if(Zi(lt))if(D.delete(ie),j>$t){De(ie,Qa(void 0));return}else return F.add(ie),De(ie,zc(je)),me(ut,lt,!1,{fetcherSubmission:je,preventScrollReset:He});if(ao(lt)){Me(ie,se,lt.error);return}}if(ci(lt))throw Kr(400,{type:"defer-action"});let Tt=w.navigation.location||w.location,We=Yl(e.history,Tt,Ye.signal),tt=s||i,bt=w.navigation.state!=="idle"?Vi(tt,w.navigation.location,c):w.matches;Gt(bt,"Didn't find any matches after fetcher action");let it=++z;L.set(ie,it);let st=zc(je,lt.data);w.fetchers.set(ie,st);let[rt,Et]=X$(e.history,w,bt,je,Tt,!1,f.v7_skipActionErrorRevalidation,N,P,k,W,B,F,tt,c,[he.route.id,lt]);Et.filter(Ht=>Ht.key!==ie).forEach(Ht=>{let un=Ht.key,mn=w.fetchers.get(un),Mn=zc(void 0,mn?mn.data:void 0);w.fetchers.set(un,Mn),ke(un),Ht.controller&&D.set(un,Ht.controller)}),G({fetchers:new Map(w.fetchers)});let kt=()=>Et.forEach(Ht=>ke(Ht.key));Ye.signal.addEventListener("abort",kt);let{loaderResults:Ze,fetcherResults:Ke}=await ve(w,bt,rt,Et,We);if(Ye.signal.aborted)return;Ye.signal.removeEventListener("abort",kt),L.delete(ie),D.delete(ie),Et.forEach(Ht=>D.delete(Ht.key));let vt=Ef(Ze);if(vt)return me(We,vt.result,!1,{preventScrollReset:He});if(vt=Ef(Ke),vt)return F.add(vt.key),me(We,vt.result,!1,{preventScrollReset:He});let{loaderData:Yt,errors:rn}=eE(w,bt,Ze,void 0,Et,Ke,q);if(w.fetchers.has(ie)){let Ht=Qa(lt.data);w.fetchers.set(ie,Ht)}we(it),w.navigation.state==="loading"&&it>j?(Gt(O,"Expected pending action"),R&&R.abort(),ue(w.navigation.location,{matches:bt,loaderData:Yt,errors:rn,fetchers:new Map(w.fetchers)})):(G({errors:rn,loaderData:tE(w.loaderData,Yt,bt,rn),fetchers:new Map(w.fetchers)}),N=!1)}async function re(ie,se,de,he,$e,ze,Be,He,je){let Ne=w.fetchers.get(ie);De(ie,zc(je,Ne?Ne.data:void 0),{flushSync:Be});let Fe=new AbortController,Ye=Yl(e.history,de,Fe.signal);if(ze){let lt=await It($e,new URL(Ye.url).pathname,Ye.signal,ie);if(lt.type==="aborted")return;if(lt.type==="error"){Me(ie,se,lt.error,{flushSync:Be});return}else if(lt.matches)$e=lt.matches,he=Jc($e,de);else{Me(ie,se,Kr(404,{pathname:de}),{flushSync:Be});return}}D.set(ie,Fe);let ut=z,Mt=(await pe("loader",w,Ye,[he],$e,ie))[he.route.id];if(ci(Mt)&&(Mt=await PC(Mt,Ye.signal,!0)||Mt),D.get(ie)===Fe&&D.delete(ie),!Ye.signal.aborted){if(W.has(ie)){De(ie,Qa(void 0));return}if(Zi(Mt))if(j>ut){De(ie,Qa(void 0));return}else{F.add(ie),await me(Ye,Mt,!1,{preventScrollReset:He});return}if(ao(Mt)){Me(ie,se,Mt.error);return}Gt(!ci(Mt),"Unhandled fetcher deferred data"),De(ie,Qa(Mt.data))}}async function me(ie,se,de,he){let{submission:$e,fetcherSubmission:ze,preventScrollReset:Be,replace:He}=he===void 0?{}:he;se.response.headers.has("X-Remix-Revalidate")&&(N=!0);let je=se.response.headers.get("Location");Gt(je,"Expected a Location header on the redirect Response"),je=J$(je,new URL(ie.url),c);let Ne=td(w.location,je,{_isRedirect:!0});if(n){let lt=!1;if(se.response.headers.has("X-Remix-Reload-Document"))lt=!0;else if(IC.test(je)){const Tt=e.history.createURL(je);lt=Tt.origin!==t.location.origin||pc(Tt.pathname,c)==null}if(lt){He?t.location.replace(je):t.location.assign(je);return}}R=null;let Fe=He===!0||se.response.headers.has("X-Remix-Replace")?qn.Replace:qn.Push,{formMethod:Ye,formAction:ut,formEncType:$t}=w.navigation;!$e&&!ze&&Ye&&ut&&$t&&($e=aE(w.navigation));let Mt=$e||ze;if(Qte.has(se.response.status)&&Mt&&Ao(Mt.formMethod))await ee(Fe,Ne,{submission:wn({},Mt,{formAction:je}),preventScrollReset:Be||E,enableViewTransition:de?M:void 0});else{let lt=Rp(Ne,$e);await ee(Fe,Ne,{overrideNavigation:lt,fetcherSubmission:ze,preventScrollReset:Be||E,enableViewTransition:de?M:void 0})}}async function pe(ie,se,de,he,$e,ze){let Be,He={};try{Be=await ane(u,ie,se,de,he,$e,ze,a,o)}catch(je){return he.forEach(Ne=>{He[Ne.route.id]={type:ln.error,error:je}}),He}for(let[je,Ne]of Object.entries(Be))if(dne(Ne)){let Fe=Ne.result;He[je]={type:ln.redirect,response:sne(Fe,de,je,$e,c,f.v7_relativeSplatPath)}}else He[je]=await lne(Ne);return He}async function ve(ie,se,de,he,$e){let ze=ie.matches,Be=pe("loader",ie,$e,de,se,null),He=Promise.all(he.map(async Fe=>{if(Fe.matches&&Fe.match&&Fe.controller){let ut=(await pe("loader",ie,Yl(e.history,Fe.path,Fe.controller.signal),[Fe.match],Fe.matches,Fe.key))[Fe.match.route.id];return{[Fe.key]:ut}}else return Promise.resolve({[Fe.key]:{type:ln.error,error:Kr(404,{pathname:Fe.path})}})})),je=await Be,Ne=(await He).reduce((Fe,Ye)=>Object.assign(Fe,Ye),{});return await Promise.all([vne(se,je,$e.signal,ze,ie.loaderData),gne(se,Ne,he)]),{loaderResults:je,fetcherResults:Ne}}function Pe(){N=!0,P.push(...Ve()),B.forEach((ie,se)=>{D.has(se)&&k.add(se),ke(se)})}function De(ie,se,de){de===void 0&&(de={}),w.fetchers.set(ie,se),G({fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function Me(ie,se,de,he){he===void 0&&(he={});let $e=Wi(w.matches,se);Oe(ie),G({errors:{[$e.route.id]:de},fetchers:new Map(w.fetchers)},{flushSync:(he&&he.flushSync)===!0})}function Le(ie){return V.set(ie,(V.get(ie)||0)+1),W.has(ie)&&W.delete(ie),w.fetchers.get(ie)||Jte}function Oe(ie){let se=w.fetchers.get(ie);D.has(ie)&&!(se&&se.state==="loading"&&L.has(ie))&&ke(ie),B.delete(ie),L.delete(ie),F.delete(ie),f.v7_fetcherPersist&&W.delete(ie),k.delete(ie),w.fetchers.delete(ie)}function be(ie){let se=(V.get(ie)||0)-1;se<=0?(V.delete(ie),W.add(ie),f.v7_fetcherPersist||Oe(ie)):V.set(ie,se),G({fetchers:new Map(w.fetchers)})}function ke(ie){let se=D.get(ie);se&&(se.abort(),D.delete(ie))}function Se(ie){for(let se of ie){let de=Le(se),he=Qa(de.data);w.fetchers.set(se,he)}}function Re(){let ie=[],se=!1;for(let de of F){let he=w.fetchers.get(de);Gt(he,"Expected fetcher: "+de),he.state==="loading"&&(F.delete(de),ie.push(de),se=!0)}return Se(ie),se}function we(ie){let se=[];for(let[de,he]of L)if(he<ie){let $e=w.fetchers.get(de);Gt($e,"Expected fetcher: "+de),$e.state==="loading"&&(ke(de),L.delete(de),se.push(de))}return Se(se),se.length>0}function xe(ie,se){let de=w.blockers.get(ie)||jc;return J.get(ie)!==se&&J.set(ie,se),de}function Te(ie){w.blockers.delete(ie),J.delete(ie)}function Ae(ie,se){let de=w.blockers.get(ie)||jc;Gt(de.state==="unblocked"&&se.state==="blocked"||de.state==="blocked"&&se.state==="blocked"||de.state==="blocked"&&se.state==="proceeding"||de.state==="blocked"&&se.state==="unblocked"||de.state==="proceeding"&&se.state==="unblocked","Invalid blocker state transition: "+de.state+" -> "+se.state);let he=new Map(w.blockers);he.set(ie,se),G({blockers:he})}function ct(ie){let{currentLocation:se,nextLocation:de,historyAction:he}=ie;if(J.size===0)return;J.size>1&&yl(!1,"A router only supports one blocker at a time");let $e=Array.from(J.entries()),[ze,Be]=$e[$e.length-1],He=w.blockers.get(ze);if(!(He&&He.state==="proceeding")&&Be({currentLocation:se,nextLocation:de,historyAction:he}))return ze}function yt(ie){let se=Kr(404,{pathname:ie}),de=s||i,{matches:he,route:$e}=rE(de);return Ve(),{notFoundMatches:he,route:$e,error:se}}function Ve(ie){let se=[];return q.forEach((de,he)=>{(!ie||ie(he))&&(de.cancel(),se.push(he),q.delete(he))}),se}function Xe(ie,se,de){if(g=ie,y=se,b=de||null,!h&&w.navigation===Op){h=!0;let he=Qe(w.location,w.matches);he!=null&&G({restoreScrollPosition:he})}return()=>{g=null,y=null,b=null}}function nt(ie,se){return b&&b(ie,se.map(he=>Ite(he,w.loaderData)))||ie.key}function Ue(ie,se){if(g&&y){let de=nt(ie,se);g[de]=y()}}function Qe(ie,se){if(g){let de=nt(ie,se),he=g[de];if(typeof he=="number")return he}return null}function wt(ie,se,de){if(d)if(ie){if(Object.keys(ie[0].params).length>0)return{active:!0,matches:rm(se,de,c,!0)}}else return{active:!0,matches:rm(se,de,c,!0)||[]};return{active:!1,matches:null}}async function It(ie,se,de,he){if(!d)return{type:"success",matches:ie};let $e=ie;for(;;){let ze=s==null,Be=s||i,He=a;try{await d({signal:de,path:se,matches:$e,fetcherKey:he,patch:(Fe,Ye)=>{de.aborted||Q$(Fe,Ye,Be,He,o)}})}catch(Fe){return{type:"error",error:Fe,partialMatches:$e}}finally{ze&&!de.aborted&&(i=[...i])}if(de.aborted)return{type:"aborted"};let je=Vi(Be,se,c);if(je)return{type:"success",matches:je};let Ne=rm(Be,se,c,!0);if(!Ne||$e.length===Ne.length&&$e.every((Fe,Ye)=>Fe.route.id===Ne[Ye].route.id))return{type:"success",matches:null};$e=Ne}}function Je(ie){a={},s=tv(ie,o,void 0,a)}function at(ie,se){let de=s==null;Q$(ie,se,s||i,a,o),de&&(i=[...i],G({}))}return $={get basename(){return c},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:ne,subscribe:oe,enableScrollRestoration:Xe,navigate:le,fetch:A,revalidate:ae,createHref:ie=>e.history.createHref(ie),encodeLocation:ie=>e.history.encodeLocation(ie),getFetcher:Le,deleteFetcher:be,dispose:fe,getBlocker:xe,deleteBlocker:Te,patchRoutes:at,_internalFetchControllers:D,_internalActiveDeferreds:q,_internalSetRoutes:Je},$}function tne(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Yy(e,t,n,r,o,a,i,s){let c,u;if(i){c=[];for(let f of t)if(c.push(f),f.route.id===i){u=f;break}}else c=t,u=t[t.length-1];let d=Ag(o||".",Bg(c,a),pc(e.pathname,n)||e.pathname,s==="path");if(o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u){let f=MC(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let m=new URLSearchParams(d.search),v=m.getAll("index");m.delete("index"),v.filter(b=>b).forEach(b=>m.append("index",b));let g=m.toString();d.search=g?"?"+g:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Da([n,d.pathname])),bl(d)}function q$(e,t,n,r){if(!r||!tne(r))return{path:n};if(r.formMethod&&!mne(r.formMethod))return{path:n,error:Kr(405,{method:r.formMethod})};let o=()=>({path:n,error:Kr(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=mN(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ao(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,g)=>{let[b,y]=g;return""+v+b+"="+y+`
|
|
453
|
-
`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ao(i))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}Gt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=Jy(r.formData),u=r.formData;else if(r.body instanceof FormData)c=Jy(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=Z$(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=Z$(c)}catch{return o()}let d={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ao(d.formMethod))return{path:n,submission:d};let f=_i(n);return t&&f.search&&MC(f.search)&&c.append("index",""),f.search="?"+c,{path:bl(f),submission:d}}function G$(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function X$(e,t,n,r,o,a,i,s,c,u,d,f,m,v,g,b){let y=b?ao(b[1])?b[1].error:b[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),C=n;a&&t.errors?C=G$(n,Object.keys(t.errors)[0],!0):b&&ao(b[1])&&(C=G$(n,b[0]));let S=b?b[1].statusCode:void 0,x=i&&S&&S>=400,$=C.filter((O,E)=>{let{route:R}=O;if(R.lazy)return!0;if(R.loader==null)return!1;if(a)return Qy(R,t.loaderData,t.errors);if(nne(t.loaderData,t.matches[E],O)||c.some(_=>_===O.route.id))return!0;let M=t.matches[E],T=O;return Y$(O,wn({currentUrl:h,currentParams:M.params,nextUrl:p,nextParams:T.params},r,{actionResult:y,actionStatus:S,defaultShouldRevalidate:x?!1:s||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||dN(M,T)}))}),w=[];return f.forEach((O,E)=>{if(a||!n.some(I=>I.route.id===O.routeId)||d.has(E))return;let R=Vi(v,O.path,g);if(!R){w.push({key:E,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(E),T=Jc(R,O.path),_=!1;m.has(E)?_=!1:u.has(E)?(u.delete(E),_=!0):M&&M.state!=="idle"&&M.data===void 0?_=s:_=Y$(T,wn({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:S,defaultShouldRevalidate:x?!1:s})),_&&w.push({key:E,routeId:O.routeId,path:O.path,matches:R,match:T,controller:new AbortController})}),[$,w]}function Qy(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function nne(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function dN(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Y$(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Q$(e,t,n,r,o){var a;let i;if(e){let u=r[e];Gt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=n;let s=t.filter(u=>!i.some(d=>fN(u,d))),c=tv(s,o,[e||"_","patch",String(((a=i)==null?void 0:a.length)||"0")],r);i.push(...c)}function fN(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(a=>fN(n,a))}):!1}async function rne(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Gt(o,"No route found in manifest");let a={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";yl(!c,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Ote.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,wn({},t(o),{lazy:void 0}))}async function one(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,a,i)=>Object.assign(o,{[n[i].route.id]:a}),{})}async function ane(e,t,n,r,o,a,i,s,c,u){let d=a.map(v=>v.route.lazy?rne(v.route,c,s):void 0),f=a.map((v,g)=>{let b=d[g],y=o.some(p=>p.route.id===v.route.id);return wn({},v,{shouldLoad:y,resolve:async p=>(p&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(y=!0),y?ine(t,r,v,b,p,u):Promise.resolve({type:ln.data,result:void 0}))})}),m=await e({matches:f,request:r,params:a[0].params,fetcherKey:i,context:u});try{await Promise.all(d)}catch{}return m}async function ine(e,t,n,r,o,a){let i,s,c=u=>{let d,f=new Promise((g,b)=>d=b);s=()=>d(),t.signal.addEventListener("abort",s);let m=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:a},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(o?o(b=>m(b)):m())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let u=n.route[e];if(r)if(u){let d,[f]=await Promise.all([c(u).catch(m=>{d=m}),r]);if(d!==void 0)throw d;i=f}else if(await r,u=n.route[e],u)i=await c(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Kr(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:ln.data,result:void 0};else if(u)i=await c(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Kr(404,{pathname:f})}Gt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:ln.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function lne(e){let{result:t,type:n}=e;if(vN(t)){let f;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(m){return{type:ln.error,error:m}}return n===ln.error?{type:ln.error,error:new nv(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:ln.data,data:f,statusCode:t.status,headers:t.headers}}if(n===ln.error){if(oE(t)){var r,o;if(t.data instanceof Error){var a,i;return{type:ln.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:ln.error,error:new nv(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:nd(t)?t.status:void 0,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:ln.error,error:t,statusCode:nd(t)?t.status:void 0}}if(fne(t)){var s,c;return{type:ln.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((c=t.init)==null?void 0:c.headers)&&new Headers(t.init.headers)}}if(oE(t)){var u,d;return{type:ln.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:ln.data,data:t}}function sne(e,t,n,r,o,a){let i=e.headers.get("Location");if(Gt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!IC.test(i)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=Yy(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function J$(e,t,n){if(IC.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=pc(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Yl(e,t,n,r){let o=e.createURL(mN(t)).toString(),a={signal:n};if(r&&Ao(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=Jy(r.formData):a.body=r.formData}return new Request(o,a)}function Jy(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Z$(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function cne(e,t,n,r,o){let a={},i=null,s,c=!1,u={},d=n&&ao(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let m=f.route.id,v=t[m];if(Gt(!Zi(v),"Cannot handle redirect results in processLoaderData"),ao(v)){let g=v.error;d!==void 0&&(g=d,d=void 0),i=i||{};{let b=Wi(e,m);i[b.route.id]==null&&(i[b.route.id]=g)}a[m]=void 0,c||(c=!0,s=nd(v.error)?v.error.status:500),v.headers&&(u[m]=v.headers)}else ci(v)?(r.set(m,v.deferredData),a[m]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!c&&(s=v.statusCode),v.headers&&(u[m]=v.headers)):(a[m]=v.data,v.statusCode&&v.statusCode!==200&&!c&&(s=v.statusCode),v.headers&&(u[m]=v.headers))}),d!==void 0&&n&&(i={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:u}}function eE(e,t,n,r,o,a,i){let{loaderData:s,errors:c}=cne(t,n,r,i);return o.forEach(u=>{let{key:d,match:f,controller:m}=u,v=a[d];if(Gt(v,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(ao(v)){let g=Wi(e.matches,f==null?void 0:f.route.id);c&&c[g.route.id]||(c=wn({},c,{[g.route.id]:v.error})),e.fetchers.delete(d)}else if(Zi(v))Gt(!1,"Unhandled fetcher revalidation redirect");else if(ci(v))Gt(!1,"Unhandled fetcher deferred data");else{let g=Qa(v.data);e.fetchers.set(d,g)}}),{loaderData:s,errors:c}}function tE(e,t,n,r){let o=wn({},t);for(let a of n){let i=a.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function nE(e){return e?ao(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Wi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Kr(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new nv(e||500,s,new Error(c),!0)}function Ef(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Zi(o))return{key:r,result:o}}}function mN(e){let t=typeof e=="string"?_i(e):e;return bl(wn({},t,{hash:""}))}function une(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function dne(e){return vN(e.result)&&Yte.has(e.result.status)}function ci(e){return e.type===ln.deferred}function ao(e){return e.type===ln.error}function Zi(e){return(e&&e.type)===ln.redirect}function oE(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function fne(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function vN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mne(e){return Xte.has(e.toLowerCase())}function Ao(e){return qte.has(e.toLowerCase())}async function vne(e,t,n,r,o){let a=Object.entries(t);for(let i=0;i<a.length;i++){let[s,c]=a[i],u=e.find(m=>(m==null?void 0:m.route.id)===s);if(!u)continue;let d=r.find(m=>m.route.id===u.route.id),f=d!=null&&!dN(d,u)&&(o&&o[u.route.id])!==void 0;ci(c)&&f&&await PC(c,n,!1).then(m=>{m&&(t[s]=m)})}}async function gne(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:a,controller:i}=n[r],s=t[o];e.find(u=>(u==null?void 0:u.route.id)===a)&&ci(s)&&(Gt(i,"Expected an AbortController for revalidating fetcher deferred result"),await PC(s,i.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function PC(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ln.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ln.error,error:o}}return{type:ln.data,data:e.deferredData.data}}}function MC(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Jc(e,t){let n=typeof t=="string"?_i(t).search:t.search;if(e[e.length-1].route.index&&MC(n||""))return e[e.length-1];let r=sN(e);return r[r.length-1]}function aE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Rp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hne(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function zc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pne(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Qa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function yne(e,t){try{let n=e.sessionStorage.getItem(uN);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function bne(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(uN,JSON.stringify(n))}catch(r){yl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
|
454
|
-
* React Router v6.30.2
|
|
455
|
-
*
|
|
456
|
-
* Copyright (c) Remix Software Inc.
|
|
457
|
-
*
|
|
458
|
-
* This source code is licensed under the MIT license found in the
|
|
459
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
460
|
-
*
|
|
461
|
-
* @license MIT
|
|
462
|
-
*/function rv(){return rv=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},rv.apply(this,arguments)}const Hg=l.createContext(null),gN=l.createContext(null),Di=l.createContext(null),NC=l.createContext(null),$a=l.createContext({outlet:null,matches:[],isDataRoute:!1}),hN=l.createContext(null);function Cne(e,t){let{relative:n}=t===void 0?{}:t;yc()||Gt(!1);let{basename:r,navigator:o}=l.useContext(Di),{hash:a,pathname:i,search:s}=bN(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Da([r,i])),o.createHref({pathname:c,search:s,hash:a})}function yc(){return l.useContext(NC)!=null}function bc(){return yc()||Gt(!1),l.useContext(NC).location}function pN(e){l.useContext(Di).static||l.useLayoutEffect(e)}function Vg(){let{isDataRoute:e}=l.useContext($a);return e?Dne():Sne()}function Sne(){yc()||Gt(!1);let e=l.useContext(Hg),{basename:t,future:n,navigator:r}=l.useContext(Di),{matches:o}=l.useContext($a),{pathname:a}=bc(),i=JSON.stringify(Bg(o,n.v7_relativeSplatPath)),s=l.useRef(!1);return pN(()=>{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=Ag(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Da([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}const xne=l.createContext(null);function wne(e){let t=l.useContext($a).outlet;return t&&l.createElement(xne.Provider,{value:e},t)}function yN(){let{matches:e}=l.useContext($a),t=e[e.length-1];return t?t.params:{}}function bN(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(Di),{matches:o}=l.useContext($a),{pathname:a}=bc(),i=JSON.stringify(Bg(o,r.v7_relativeSplatPath));return l.useMemo(()=>Ag(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function $ne(e,t,n,r){yc()||Gt(!1);let{navigator:o}=l.useContext(Di),{matches:a}=l.useContext($a),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=bc(),d;d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=Vi(e,{pathname:m});return Pne(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:Da([c,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Da([c,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r)}function Ene(){let e=_ne(),t=nd(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 l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,null)}const One=l.createElement(Ene,null);class Rne extends l.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?l.createElement($a.Provider,{value:this.props.routeContext},l.createElement(hN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ine(e){let{routeContext:t,match:n,children:r}=e,o=l.useContext(Hg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement($a.Provider,{value:t},r)}function Pne(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(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Gt(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-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)&&(u=d),f.route.id){let{loaderData:m,errors:v}=n,g=f.route.loader&&m[f.route.id]===void 0&&(!v||v[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let v,g=!1,b=null,y=null;n&&(v=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||One,c&&(u<0&&m===0?(kne("route-fallback"),g=!0,y=null):u===m&&(g=!0,y=f.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,m+1)),p=()=>{let C;return v?C=b:g?C=y:f.route.Component?C=l.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,l.createElement(Ine,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?l.createElement(Rne,{location:n.location,revalidation:n.revalidation,component:b,error:v,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var CN=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CN||{}),SN=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}(SN||{});function Mne(e){let t=l.useContext(Hg);return t||Gt(!1),t}function Nne(e){let t=l.useContext(gN);return t||Gt(!1),t}function Tne(e){let t=l.useContext($a);return t||Gt(!1),t}function xN(e){let t=Tne(),n=t.matches[t.matches.length-1];return n.route.id||Gt(!1),n.route.id}function _ne(){var e;let t=l.useContext(hN),n=Nne(SN.UseRouteError),r=xN();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Dne(){let{router:e}=Mne(CN.UseNavigateStable),t=xN(),n=l.useRef(!1);return pN(()=>{n.current=!0}),l.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,rv({fromRouteId:t},a)))},[e,t])}const iE={};function kne(e,t,n){iE[e]||(iE[e]=!0)}function jne(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function zne(e){let{to:t,replace:n,state:r,relative:o}=e;yc()||Gt(!1);let{future:a,static:i}=l.useContext(Di),{matches:s}=l.useContext($a),{pathname:c}=bc(),u=Vg(),d=Ag(t,Bg(s,a.v7_relativeSplatPath),c,o==="path"),f=JSON.stringify(d);return l.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function Lne(e){return wne(e.context)}function Fne(e){let{basename:t="/",children:n=null,location:r,navigationType:o=qn.Pop,navigator:a,static:i=!1,future:s}=e;yc()&&Gt(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:a,static:i,future:rv({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=_i(r));let{pathname:d="/",search:f="",hash:m="",state:v=null,key:g="default"}=r,b=l.useMemo(()=>{let y=pc(d,c);return y==null?null:{location:{pathname:y,search:f,hash:m,state:v,key:g},navigationType:o}},[c,d,f,m,v,g,o]);return b==null?null:l.createElement(Di.Provider,{value:u},l.createElement(NC.Provider,{children:n,value:b}))}new Promise(()=>{});function Bne(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
|
463
|
-
* React Router DOM v6.30.2
|
|
464
|
-
*
|
|
465
|
-
* Copyright (c) Remix Software Inc.
|
|
466
|
-
*
|
|
467
|
-
* This source code is licensed under the MIT license found in the
|
|
468
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
469
|
-
*
|
|
470
|
-
* @license MIT
|
|
471
|
-
*/function rd(){return rd=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},rd.apply(this,arguments)}function Ane(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 Hne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vne(e,t){return e.button===0&&(!t||t==="_self")&&!Hne(e)}const Wne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Kne="6";try{window.__reactRouterVersion=Kne}catch{}function Une(e,t){return ene({basename:void 0,future:rd({},void 0,{v7_prependBasename:!0}),history:wte({window:void 0}),hydrationData:qne(),routes:e,mapRouteProperties:Bne,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function qne(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=rd({},t,{errors:Gne(t.errors)})),t}function Gne(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new nv(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const Xne=l.createContext({isTransitioning:!1}),Yne=l.createContext(new Map),Qne="startTransition",lE=id[Qne],Jne="flushSync",sE=eR[Jne];function Zne(e){lE?lE(e):e()}function Lc(e){sE?sE(e):e()}class ere{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function tre(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=l.useState(n.state),[i,s]=l.useState(),[c,u]=l.useState({isTransitioning:!1}),[d,f]=l.useState(),[m,v]=l.useState(),[g,b]=l.useState(),y=l.useRef(new Map),{v7_startTransition:h}=r||{},p=l.useCallback(O=>{h?Zne(O):O()},[h]),C=l.useCallback((O,E)=>{let{deletedFetchers:R,flushSync:M,viewTransitionOpts:T}=E;O.fetchers.forEach((I,N)=>{I.data!==void 0&&y.current.set(N,I.data)}),R.forEach(I=>y.current.delete(I));let _=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!T||_){M?Lc(()=>a(O)):p(()=>a(O));return}if(M){Lc(()=>{m&&(d&&d.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let I=n.window.document.startViewTransition(()=>{Lc(()=>a(O))});I.finished.finally(()=>{Lc(()=>{f(void 0),v(void 0),s(void 0),u({isTransitioning:!1})})}),Lc(()=>v(I));return}m?(d&&d.resolve(),m.skipTransition(),b({state:O,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(s(O),u({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[n.window,m,d,y,p]);l.useLayoutEffect(()=>n.subscribe(C),[n,C]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new ere)},[c]),l.useEffect(()=>{if(d&&i&&n.window){let O=i,E=d.promise,R=n.window.document.startViewTransition(async()=>{p(()=>a(O)),await E});R.finished.finally(()=>{f(void 0),v(void 0),s(void 0),u({isTransitioning:!1})}),v(R)}},[p,i,d,n.window]),l.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,m,o.location,i]),l.useEffect(()=>{!c.isTransitioning&&g&&(s(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),b(void 0))},[c.isTransitioning,g]),l.useEffect(()=>{},[]);let S=l.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:O=>n.navigate(O),push:(O,E,R)=>n.navigate(O,{state:E,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(O,E,R)=>n.navigate(O,{replace:!0,state:E,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[n]),x=n.basename||"/",$=l.useMemo(()=>({router:n,navigator:S,static:!1,basename:x}),[n,S,x]),w=l.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return l.useEffect(()=>jne(r,n.future),[r,n.future]),l.createElement(l.Fragment,null,l.createElement(Hg.Provider,{value:$},l.createElement(gN.Provider,{value:o},l.createElement(Yne.Provider,{value:y.current},l.createElement(Xne.Provider,{value:c},l.createElement(Fne,{basename:x,location:o.location,navigationType:o.historyAction,navigator:S,future:w},o.initialized||n.future.v7_partialHydration?l.createElement(nre,{routes:n.routes,future:n.future,state:o}):t))))),null)}const nre=l.memo(rre);function rre(e){let{routes:t,future:n,state:r}=e;return $ne(t,void 0,r,n)}const ore=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",are=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cE=l.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,m=Ane(t,Wne),{basename:v}=l.useContext(Di),g,b=!1;if(typeof u=="string"&&are.test(u)&&(g=u,ore))try{let C=new URL(window.location.href),S=u.startsWith("//")?new URL(C.protocol+u):new URL(u),x=pc(S.pathname,v);S.origin===C.origin&&x!=null?u=x+S.search+S.hash:b=!0}catch{}let y=Cne(u,{relative:o}),h=ire(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:o,viewTransition:f});function p(C){r&&r(C),C.defaultPrevented||h(C)}return l.createElement("a",rd({},m,{href:g||y,onClick:b||a?r:p,ref:n,target:c}))});var uE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uE||(uE={}));var dE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dE||(dE={}));function ire(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,viewTransition:s}=t===void 0?{}:t,c=Vg(),u=bc(),d=bN(e,{relative:i});return l.useCallback(f=>{if(Vne(f,n)){f.preventDefault();let m=r!==void 0?r:bl(u)===bl(d);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[u,c,d,r,o,n,e,a,i,s])}var lre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},sre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:lre}))},cre=l.forwardRef(sre),ure={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},dre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:ure}))},TC=l.forwardRef(dre),fre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},mre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:fre}))},_C=l.forwardRef(mre),vre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},gre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:vre}))},hre=l.forwardRef(gre),pre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},yre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:pre}))},bre=l.forwardRef(yre),Cre={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Sre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Cre}))},xre=l.forwardRef(Sre),wre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},$re=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:wre}))},wN=l.forwardRef($re),Ere={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"}}]},name:"diff",theme:"outlined"},Ore=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Ere}))},Rre=l.forwardRef(Ore),Ire={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Pre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Ire}))},$N=l.forwardRef(Pre),Mre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},Nre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Mre}))},Tre=l.forwardRef(Nre),_re={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Dre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:_re}))},kre=l.forwardRef(Dre),jre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},zre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:jre}))},fE=l.forwardRef(zre),Lre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"left-square",theme:"outlined"},Fre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Lre}))},Bre=l.forwardRef(Fre),Are={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"},Hre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Are}))},Vre=l.forwardRef(Hre),Wre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Kre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Wre}))},mE=l.forwardRef(Kre),Ure={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z"}}]},name:"number",theme:"outlined"},qre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Ure}))},Gre=l.forwardRef(qre),Xre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"},Yre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Xre}))},Qre=l.forwardRef(Yre),Jre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Zre=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:Jre}))},eoe=l.forwardRef(Zre),toe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},noe=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:toe}))},roe=l.forwardRef(noe),ooe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"},aoe=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:ooe}))},vE=l.forwardRef(aoe),ioe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM310.3 167.1a8 8 0 00-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z"}}]},name:"sort-descending",theme:"outlined"},loe=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:ioe}))},gE=l.forwardRef(loe),soe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},coe=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:soe}))},od=l.forwardRef(coe),uoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},doe=function(t,n){return l.createElement(Pt,Ce({},t,{ref:n,icon:uoe}))},foe=l.forwardRef(doe);const moe=({isDirty:e,isReadOnly:t,isSaving:n,onSave:r,onShowDiff:o,detailPanelVisible:a,onToggleDetailPanel:i,singleMode:s=!1,singleDataset:c=null})=>{const d=bc().pathname==="/",f=s||!d;return te.jsxs("header",{className:"app-header",children:[te.jsx("div",{className:"app-header-left",children:s?te.jsxs("div",{className:"logo single-mode-title",children:[te.jsx(od,{}),te.jsx("span",{children:(c==null?void 0:c.title)||"Dataset"})]}):te.jsxs(te.Fragment,{children:[te.jsxs(cE,{to:"/",className:"logo",children:[te.jsx(wN,{}),te.jsx("span",{children:"CSVMS"})]}),!d&&te.jsx(hr,{title:"ホームに戻る",children:te.jsx(cE,{to:"/",children:te.jsx(kn,{type:"text",icon:te.jsx(Tre,{}),children:"Home"})})})]})}),te.jsx("div",{className:"app-header-right",children:te.jsxs(Ei,{size:"middle",children:[e&&te.jsx(Dn,{color:"warning",icon:te.jsx($N,{}),children:"未保存の変更があります"}),t&&te.jsx(Dn,{color:"default",icon:te.jsx(Vre,{}),children:"読み取り専用"}),f&&te.jsxs(te.Fragment,{children:[te.jsx(hr,{title:"変更内容を確認",children:te.jsx(kn,{icon:te.jsx(Rre,{}),onClick:o,disabled:!e,children:"差分確認"})}),te.jsx(kn,{type:"primary",icon:te.jsx(eoe,{}),onClick:r,disabled:t||!e,loading:n,children:"保存"}),te.jsx(hr,{title:a?"詳細パネルを閉じる":"詳細パネルを開く",children:te.jsx(kn,{icon:a?te.jsx(Qre,{}):te.jsx(Bre,{}),onClick:i})})]})]})})]})},{Sider:voe}=Ba,goe=({collapsed:e,onCollapse:t,datasets:n,currentId:r})=>{const o=Vg(),a=n.map(i=>({key:i.id,icon:te.jsx(od,{}),label:e?te.jsx(hr,{title:`${i.title} (${i.rowCount})`,placement:"right",children:te.jsx("span",{children:i.title})}):te.jsx("div",{className:"sidebar-item-content",children:te.jsxs("span",{children:[i.title,te.jsxs("span",{style:{color:"rgba(255,255,255,0.45)",marginLeft:4},children:["(",i.rowCount,")"]})]})})}));return te.jsxs(voe,{className:"app-sider",collapsible:!0,collapsed:e,onCollapse:t,width:220,collapsedWidth:60,theme:"dark",children:[te.jsx("div",{style:{padding:"16px 8px",textAlign:"center"},children:!e&&te.jsx("span",{style:{color:"rgba(255,255,255,0.65)",fontSize:12},children:"Datasets"})}),te.jsx(Nl,{theme:"dark",mode:"inline",selectedKeys:r?[r]:[],onClick:({key:i})=>o(`/datasets/${i}`),items:a})]})},{Text:hE}=hc,pE=(e,t,n)=>n.every(r=>{const o=e[r.key],a=t[r.key];return(o===""||o===void 0||o===null)&&(a===""||a===void 0||a===null)?!0:String(o)===String(a)}),yE=(e,t,n)=>n.filter(r=>{const o=e[r.key],a=t[r.key];return(o===""||o===void 0||o===null)&&(a===""||a===void 0||a===null)?!1:String(o)!==String(a)}).map(r=>r.key),hoe=(e,t,n,r)=>{const o=[];if(r){const a=new Map;e.forEach((s,c)=>{const u=String(s[r]??"");u&&a.set(u,{row:s,index:c})});const i=new Map;t.forEach((s,c)=>{const u=String(s[r]??"");u&&i.set(u,{row:s,index:c})}),a.forEach((s,c)=>{i.has(c)||o.push({type:"removed",rowIndex:s.index,originalRow:s.row})}),t.forEach((s,c)=>{const u=String(s[r]??""),d=u?a.get(u):null;!d||!u?o.push({type:"added",rowIndex:c,currentRow:s}):pE(d.row,s,n)||o.push({type:"modified",rowIndex:c,originalRow:d.row,currentRow:s,changedColumns:yE(d.row,s,n)})})}else{const a=Math.max(e.length,t.length);for(let i=0;i<a;i++){const s=e[i],c=t[i];!s&&c?o.push({type:"added",rowIndex:i,currentRow:c}):s&&!c?o.push({type:"removed",rowIndex:i,originalRow:s}):s&&c&&!pE(s,c,n)&&o.push({type:"modified",rowIndex:i,originalRow:s,currentRow:c,changedColumns:yE(s,c,n)})}}return o.sort((a,i)=>a.rowIndex-i.rowIndex)},Of=e=>e==null||e===""?"(空)":typeof e=="boolean"?e?"true":"false":String(e),poe=({open:e,onClose:t,columns:n,originalRows:r,currentRows:o,primaryKey:a})=>{const i=l.useMemo(()=>hoe(r,o,n,a),[r,o,n,a]),s=l.useMemo(()=>({added:i.filter(f=>f.type==="added").length,removed:i.filter(f=>f.type==="removed").length,modified:i.filter(f=>f.type==="modified").length}),[i]),c=s.added>0||s.removed>0||s.modified>0,u=l.useMemo(()=>{const f=n.find(v=>v.key===a),m=n.filter(v=>v.key!==a).slice(0,4);return f?[f,...m]:n.slice(0,5)},[n,a]),d=f=>{const{type:m,rowIndex:v,originalRow:g,currentRow:b,changedColumns:y}=f,p={added:{color:"#52c41a",bg:"#f6ffed",label:"追加",icon:te.jsx(Xm,{})},removed:{color:"#ff4d4f",bg:"#fff2f0",label:"削除",icon:te.jsx(mE,{})},modified:{color:"#faad14",bg:"#fffbe6",label:"変更",icon:te.jsx(ev,{})}}[m],C=b||g;return te.jsxs("div",{style:{marginBottom:12,border:`1px solid ${p.color}`,borderRadius:8,overflow:"hidden"},children:[te.jsxs("div",{style:{background:p.bg,padding:"8px 12px",borderBottom:`1px solid ${p.color}`,display:"flex",alignItems:"center",gap:8},children:[te.jsx(Dn,{color:m==="added"?"success":m==="removed"?"error":"warning",icon:p.icon,children:p.label}),te.jsxs(hE,{type:"secondary",children:["行 ",v+1]}),a&&C&&te.jsxs(hE,{strong:!0,style:{marginLeft:8},children:[a,": ",Of(C[a])]})]}),te.jsx("div",{style:{padding:12},children:m==="modified"&&g&&b&&y?te.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[te.jsx("thead",{children:te.jsxs("tr",{children:[te.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",width:120},children:"カラム"}),te.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#fff2f0"},children:"変更前"}),te.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#f6ffed"},children:"変更後"})]})}),te.jsx("tbody",{children:y.map(S=>{const x=n.find($=>$.key===S);return te.jsxs("tr",{children:[te.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",fontWeight:500},children:(x==null?void 0:x.label)||S}),te.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#fff2f0",color:"#ff4d4f"},children:Of(g[S])}),te.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#f6ffed",color:"#52c41a"},children:Of(b[S])})]},S)})})]}):te.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:te.jsxs("tbody",{children:[u.map(S=>te.jsxs("tr",{children:[te.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",fontWeight:500,width:120},children:S.label}),te.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0"},children:Of(C==null?void 0:C[S.key])})]},S.key)),n.length>u.length&&te.jsx("tr",{children:te.jsxs("td",{colSpan:2,style:{padding:"4px 8px",color:"#999",fontStyle:"italic"},children:["...他 ",n.length-u.length," カラム"]})})]})})})]},`${m}-${v}`)};return te.jsxs(aa,{title:"変更内容の確認",open:e,onCancel:t,footer:null,width:700,styles:{body:{maxHeight:"70vh",overflow:"auto"}},children:[te.jsx("div",{style:{marginBottom:16},children:te.jsxs(Ei,{size:"middle",children:[s.added>0&&te.jsxs(Dn,{icon:te.jsx(Xm,{}),color:"success",children:["追加: ",s.added,"行"]}),s.removed>0&&te.jsxs(Dn,{icon:te.jsx(mE,{}),color:"error",children:["削除: ",s.removed,"行"]}),s.modified>0&&te.jsxs(Dn,{icon:te.jsx(ev,{}),color:"warning",children:["変更: ",s.modified,"行"]}),!c&&te.jsx(Dn,{color:"default",children:"変更なし"})]})}),c?te.jsx("div",{children:i.map(d)}):te.jsx(Eo,{description:"変更はありません",style:{padding:40}})]})},yoe={},bE=e=>{let t;const n=new Set,r=(d,f)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const v=t;t=f??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(g=>g(t,v))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(yoe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},boe=e=>e?bE(e):bE;var EN={exports:{}},ON={},RN={exports:{}},IN={};/**
|
|
472
|
-
* @license React
|
|
473
|
-
* use-sync-external-store-shim.production.js
|
|
474
|
-
*
|
|
475
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
476
|
-
*
|
|
477
|
-
* This source code is licensed under the MIT license found in the
|
|
478
|
-
* LICENSE file in the root directory of this source tree.
|
|
479
|
-
*/var Us=l;function Coe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Soe=typeof Object.is=="function"?Object.is:Coe,xoe=Us.useState,woe=Us.useEffect,$oe=Us.useLayoutEffect,Eoe=Us.useDebugValue;function Ooe(e,t){var n=t(),r=xoe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return $oe(function(){o.value=n,o.getSnapshot=t,Ip(o)&&a({inst:o})},[e,n,t]),woe(function(){return Ip(o)&&a({inst:o}),e(function(){Ip(o)&&a({inst:o})})},[e]),Eoe(n),n}function Ip(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Soe(e,n)}catch{return!0}}function Roe(e,t){return t()}var Ioe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Roe:Ooe;IN.useSyncExternalStore=Us.useSyncExternalStore!==void 0?Us.useSyncExternalStore:Ioe;RN.exports=IN;var Poe=RN.exports;/**
|
|
480
|
-
* @license React
|
|
481
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
482
|
-
*
|
|
483
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
484
|
-
*
|
|
485
|
-
* This source code is licensed under the MIT license found in the
|
|
486
|
-
* LICENSE file in the root directory of this source tree.
|
|
487
|
-
*/var Wg=l,Moe=Poe;function Noe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Toe=typeof Object.is=="function"?Object.is:Noe,_oe=Moe.useSyncExternalStore,Doe=Wg.useRef,koe=Wg.useEffect,joe=Wg.useMemo,zoe=Wg.useDebugValue;ON.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=Doe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=joe(function(){function c(v){if(!u){if(u=!0,d=v,v=r(v),o!==void 0&&i.hasValue){var g=i.value;if(o(g,v))return f=g}return f=v}if(g=f,Toe(d,v))return g;var b=r(v);return o!==void 0&&o(g,b)?(d=v,g):(d=v,f=b)}var u=!1,d,f,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var s=_oe(e,a[0],a[1]);return koe(function(){i.hasValue=!0,i.value=s},[s]),zoe(s),s};EN.exports=ON;var Loe=EN.exports;const Foe=mo(Loe),PN={},{useDebugValue:Boe}=ce,{useSyncExternalStoreWithSelector:Aoe}=Foe;let CE=!1;const Hoe=e=>e;function Voe(e,t=Hoe,n){(PN?"production":void 0)!=="production"&&n&&!CE&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),CE=!0);const r=Aoe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Boe(r),r}const SE=e=>{(PN?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?boe(e):e,n=(r,o)=>Voe(t,r,o);return Object.assign(n,t),n},MN=e=>e?SE(e):SE;class Zy extends Error{constructor(n,r,o){const a=n.status||n.status===0?n.status:"",i=n.statusText??"",s=`${a} ${i}`.trim(),c=s?`status code ${s}`:"an unknown error";super(`Request failed with ${c}: ${r.method} ${r.url}`);Zr(this,"response");Zr(this,"request");Zr(this,"options");this.name="HTTPError",this.response=n,this.request=r,this.options=o}}class NN extends Error{constructor(n){let r="Non-error value was thrown";try{typeof n=="string"?r=n:n&&typeof n=="object"&&"message"in n&&typeof n.message=="string"&&(r=n.message)}catch{}super(r);Zr(this,"name","NonError");Zr(this,"value");this.value=n}}class Pp extends Error{constructor(n){const r=n!=null&&n.cause?n.cause instanceof Error?n.cause:new NN(n.cause):void 0;super(n!=null&&n.code?`Forced retry: ${n.code}`:"Forced retry",r?{cause:r}:void 0);Zr(this,"name","ForceRetryError");Zr(this,"customDelay");Zr(this,"code");Zr(this,"customRequest");this.customDelay=n==null?void 0:n.delay,this.code=n==null?void 0:n.code,this.customRequest=n==null?void 0:n.request}}const xE=(()=>{let e=!1,t=!1;const n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&o.message==="unsupported BodyInit type")return!1;throw o}return e&&!t})(),Woe=typeof globalThis.AbortController=="function",TN=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Koe=typeof globalThis.ReadableStream=="function",Uoe=typeof globalThis.FormData=="function",_N=["get","post","put","patch","head","delete"],qoe={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Mp=2147483647,Goe=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,DN=Symbol("stop");class kN{constructor(t){Zr(this,"options");this.options=t}}const Xoe=e=>new kN(e),Yoe={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Qoe={next:!0},Joe={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Zoe=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[n,r]of e)t+=Goe,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,t+=typeof r=="string"?new TextEncoder().encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},jN=(e,t,n)=>{let r,o=0;return e.pipeThrough(new TransformStream({transform(a,i){if(i.enqueue(a),r){o+=r.byteLength;let s=t===0?0:o/t;s>=1&&(s=1-Number.EPSILON),n==null||n({percent:s,totalBytes:Math.max(t,o),transferredBytes:o},r)}r=a},flush(){r&&(o+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},r))}}))},eae=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(jN(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})},tae=(e,t,n)=>{if(!e.body)return e;const r=Zoe(n??e.body);return new Request(e,{duplex:"half",body:jN(e.body,r,t)})},Ki=e=>e!==null&&typeof e=="object",Rf=(...e)=>{for(const t of e)if((!Ki(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return DC({},...e)},zN=(e={},t={})=>{const n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[a,i]of o.entries())r&&i==="undefined"||i===void 0?n.delete(a):n.set(a,i);return n};function If(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:DC(e[n]??[],t[n]??[])}const LN=(e={},t={})=>({beforeRequest:If(e,t,"beforeRequest"),beforeRetry:If(e,t,"beforeRetry"),afterResponse:If(e,t,"afterResponse"),beforeError:If(e,t,"beforeError")}),nae=(e,t)=>{const n=new URLSearchParams;for(const r of[e,t])if(r!==void 0)if(r instanceof URLSearchParams)for(const[o,a]of r.entries())n.append(o,a);else if(Array.isArray(r))for(const o of r){if(!Array.isArray(o)||o.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(o[0]),String(o[1]))}else if(Ki(r))for(const[o,a]of Object.entries(r))a!==void 0&&n.append(o,String(a));else{const o=new URLSearchParams(r);for(const[a,i]of o.entries())n.append(a,i)}return n},DC=(...e)=>{let t={},n={},r={},o;const a=[];for(const i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(Ki(i)){for(let[s,c]of Object.entries(i)){if(s==="signal"&&c instanceof globalThis.AbortSignal){a.push(c);continue}if(s==="context"){if(c!=null&&(!Ki(c)||Array.isArray(c)))throw new TypeError("The `context` option must be an object");t={...t,context:c==null?{}:{...t.context,...c}};continue}if(s==="searchParams"){c==null?o=void 0:o=o===void 0?c:nae(o,c);continue}Ki(c)&&s in t&&(c=DC(t[s],c)),t={...t,[s]:c}}Ki(i.hooks)&&(r=LN(r,i.hooks),t.hooks=r),Ki(i.headers)&&(n=zN(n,i.headers),t.headers=n)}return o!==void 0&&(t.searchParams=o),a.length>0&&(a.length===1?t.signal=a[0]:TN?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t.context===void 0&&(t.context={}),t},rae=e=>_N.includes(e)?e.toUpperCase():e,oae=["get","put","head","delete","options","trace"],aae=[408,413,429,500,502,503,504],iae=[413,429,503],wE={limit:2,methods:oae,statusCodes:aae,afterStatusCodes:iae,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},lae=(e={})=>{if(typeof e=="number")return{...wE,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!==void 0));return{...wE,...t}};class eb extends Error{constructor(n){super(`Request timed out: ${n.method} ${n.url}`);Zr(this,"request");this.name="TimeoutError",this.request=n}}async function sae(e,t,n,r){return new Promise((o,a)=>{const i=setTimeout(()=>{n&&n.abort(),a(new eb(e))},r.timeout);r.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(i)})})}async function cae(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));function o(){clearTimeout(a),r(t.reason)}const a=setTimeout(()=>{t==null||t.removeEventListener("abort",o),n()},e)})}const uae=(e,t)=>{const n={};for(const r in t)Object.hasOwn(t,r)&&!(r in Joe)&&!(r in Yoe)&&(!(r in e)||r in Qoe)&&(n[r]=t[r]);return n},dae=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function fae(e){return e instanceof Zy||(e==null?void 0:e.name)===Zy.name}function mae(e){return e instanceof eb||(e==null?void 0:e.name)===eb.name}var sv,FN,Lo,Co,$r,Ot,ri,ma,tl,fn,om,BN,tb,nb,AN,Zc,am,rb;const yu=class yu{constructor(t,n={}){la(this,fn);Zr(this,"request");la(this,Lo);la(this,Co,0);la(this,$r);la(this,Ot);la(this,ri);la(this,ma);la(this,tl);var o,a,i;if(Do(this,$r,t),Do(this,Ot,{...n,headers:zN(qe(this,$r).headers,n.headers),hooks:LN({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:rae(n.method??qe(this,$r).method??"GET"),prefixUrl:String(n.prefixUrl||""),retry:lae(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}}),typeof qe(this,$r)!="string"&&!(qe(this,$r)instanceof URL||qe(this,$r)instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(qe(this,Ot).prefixUrl&&typeof qe(this,$r)=="string"){if(qe(this,$r).startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");qe(this,Ot).prefixUrl.endsWith("/")||(qe(this,Ot).prefixUrl+="/"),Do(this,$r,qe(this,Ot).prefixUrl+qe(this,$r))}Woe&&TN&&(Do(this,ma,qe(this,Ot).signal??qe(this,$r).signal),Do(this,Lo,new globalThis.AbortController),qe(this,Ot).signal=qe(this,ma)?AbortSignal.any([qe(this,ma),qe(this,Lo).signal]):qe(this,Lo).signal),xE&&(qe(this,Ot).duplex="half"),qe(this,Ot).json!==void 0&&(qe(this,Ot).body=((a=(o=qe(this,Ot)).stringifyJson)==null?void 0:a.call(o,qe(this,Ot).json))??JSON.stringify(qe(this,Ot).json),qe(this,Ot).headers.set("content-type",qe(this,Ot).headers.get("content-type")??"application/json"));const r=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(qe(this,$r)instanceof globalThis.Request&&(Uoe&&qe(this,Ot).body instanceof globalThis.FormData||qe(this,Ot).body instanceof URLSearchParams)&&!r&&qe(this,Ot).headers.delete("content-type"),this.request=new globalThis.Request(qe(this,$r),qe(this,Ot)),dae(qe(this,Ot).searchParams)){const c="?"+(typeof qe(this,Ot).searchParams=="string"?qe(this,Ot).searchParams.replace(/^\?/,""):new URLSearchParams(Kn(i=yu,sv,FN).call(i,qe(this,Ot).searchParams)).toString()),u=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,c);this.request=new globalThis.Request(u,qe(this,Ot))}if(qe(this,Ot).onUploadProgress){if(typeof qe(this,Ot).onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!xE)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=Kn(this,fn,rb).call(this,this.request,qe(this,Ot).body??void 0)}}static create(t,n){var i,s,c;const r=new yu(t,n),o=async()=>{var d,f,m,v,g,b,y;if(typeof qe(r,Ot).timeout=="number"&&qe(r,Ot).timeout>Mp)throw new RangeError(`The \`timeout\` option cannot be greater than ${Mp}`);await Promise.resolve();let u=await Kn(d=r,fn,AN).call(d);for(const h of qe(r,Ot).hooks.afterResponse){const p=Kn(f=r,fn,tb).call(f,u.clone()),C=await h(r.request,Kn(m=r,fn,Zc).call(m),p,{retryCount:qe(r,Co)});if(C instanceof globalThis.Response&&(u=C),C instanceof kN)throw await Promise.all([(v=p.body)==null?void 0:v.cancel(),(g=u.body)==null?void 0:g.cancel()]),new Pp(C.options)}if(Kn(b=r,fn,tb).call(b,u),!u.ok&&(typeof qe(r,Ot).throwHttpErrors=="function"?qe(r,Ot).throwHttpErrors(u.status):qe(r,Ot).throwHttpErrors)){let h=new Zy(u,r.request,Kn(y=r,fn,Zc).call(y));for(const p of qe(r,Ot).hooks.beforeError)h=await p(h,{retryCount:qe(r,Co)});throw h}if(qe(r,Ot).onDownloadProgress){if(typeof qe(r,Ot).onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Koe)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return eae(u.clone(),qe(r,Ot).onDownloadProgress)}return u},a=Kn(i=r,fn,nb).call(i,o).finally(async()=>{var f,m;const u=qe(r,ri),d=[];u&&!u.bodyUsed&&d.push((f=u.body)==null?void 0:f.cancel()),r.request.bodyUsed||d.push((m=r.request.body)==null?void 0:m.cancel()),await Promise.all(d)});for(const[u,d]of Object.entries(qoe))u==="bytes"&&typeof((c=(s=globalThis.Response)==null?void 0:s.prototype)==null?void 0:c.bytes)!="function"||(a[u]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||d);const f=await a;if(u==="json"){if(f.status===204)return"";const m=await f.text();return m===""?"":n.parseJson?n.parseJson(m):JSON.parse(m)}return f[u]()});return a}};sv=new WeakSet,FN=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0)):t},Lo=new WeakMap,Co=new WeakMap,$r=new WeakMap,Ot=new WeakMap,ri=new WeakMap,ma=new WeakMap,tl=new WeakMap,fn=new WeakSet,om=function(){const t=qe(this,Ot).retry.delay(qe(this,Co));let n=t;qe(this,Ot).retry.jitter===!0?n=Math.random()*t:typeof qe(this,Ot).retry.jitter=="function"&&(n=qe(this,Ot).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));const r=qe(this,Ot).retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(r,n)},BN=async function(t){if(KC(this,Co)._++,qe(this,Co)>qe(this,Ot).retry.limit)throw t;const n=t instanceof Error?t:new NN(t);if(n instanceof Pp)return n.customDelay??Kn(this,fn,om).call(this);if(!qe(this,Ot).retry.methods.includes(this.request.method.toLowerCase()))throw t;if(qe(this,Ot).retry.shouldRetry!==void 0){const r=await qe(this,Ot).retry.shouldRetry({error:n,retryCount:qe(this,Co)});if(r===!1)throw t;if(r===!0)return Kn(this,fn,om).call(this)}if(mae(t)&&!qe(this,Ot).retry.retryOnTimeout)throw t;if(fae(t)){if(!qe(this,Ot).retry.statusCodes.includes(t.response.status))throw t;const r=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(r&&qe(this,Ot).retry.afterStatusCodes.includes(t.response.status)){let o=Number(r)*1e3;Number.isNaN(o)?o=Date.parse(r)-Date.now():o>=Date.parse("2024-01-01")&&(o-=Date.now());const a=qe(this,Ot).retry.maxRetryAfter??o;return o<a?o:a}if(t.response.status===413)throw t}return Kn(this,fn,om).call(this)},tb=function(t){return qe(this,Ot).parseJson&&(t.json=async()=>qe(this,Ot).parseJson(await t.text())),t},nb=async function(t){try{return await t()}catch(n){const r=Math.min(await Kn(this,fn,BN).call(this,n),Mp);if(qe(this,Co)<1)throw n;if(await cae(r,qe(this,ma)?{signal:qe(this,ma)}:{}),n instanceof Pp&&n.customRequest){const o=qe(this,Ot).signal?new globalThis.Request(n.customRequest,{signal:qe(this,Ot).signal}):new globalThis.Request(n.customRequest);Kn(this,fn,am).call(this,o)}for(const o of qe(this,Ot).hooks.beforeRetry){const a=await o({request:this.request,options:Kn(this,fn,Zc).call(this),error:n,retryCount:qe(this,Co)});if(a instanceof globalThis.Request){Kn(this,fn,am).call(this,a);break}if(a instanceof globalThis.Response)return a;if(a===DN)return}return Kn(this,fn,nb).call(this,t)}},AN=async function(){var n;(n=qe(this,Lo))!=null&&n.signal.aborted&&(Do(this,Lo,new globalThis.AbortController),qe(this,Ot).signal=qe(this,ma)?AbortSignal.any([qe(this,ma),qe(this,Lo).signal]):qe(this,Lo).signal,this.request=new globalThis.Request(this.request,{signal:qe(this,Ot).signal}));for(const r of qe(this,Ot).hooks.beforeRequest){const o=await r(this.request,Kn(this,fn,Zc).call(this),{retryCount:qe(this,Co)});if(o instanceof Response)return o;if(o instanceof globalThis.Request){Kn(this,fn,am).call(this,o);break}}const t=uae(this.request,qe(this,Ot));return Do(this,ri,this.request),this.request=qe(this,ri).clone(),qe(this,Ot).timeout===!1?qe(this,Ot).fetch(qe(this,ri),t):sae(qe(this,ri),t,qe(this,Lo),qe(this,Ot))},Zc=function(){if(!qe(this,tl)){const{hooks:t,...n}=qe(this,Ot);Do(this,tl,Object.freeze(n))}return qe(this,tl)},am=function(t){Do(this,tl,void 0),this.request=Kn(this,fn,rb).call(this,t)},rb=function(t,n){return!qe(this,Ot).onUploadProgress||!t.body?t:tae(t,qe(this,Ot).onUploadProgress,n??qe(this,Ot).body??void 0)},la(yu,sv);let ov=yu;/*! MIT License © Sindre Sorhus */const ob=e=>{const t=(n,r)=>ov.create(n,Rf(e,r));for(const n of _N)t[n]=(r,o)=>ov.create(r,Rf(e,o,{method:n}));return t.create=n=>ob(Rf(n)),t.extend=n=>(typeof n=="function"&&(n=n(e??{})),ob(Rf(e,n))),t.stop=DN,t.retry=Xoe,t},vae=ob(),Li=vae.create({prefixUrl:"/api",timeout:3e4,hooks:{beforeError:[async e=>{var n;const{response:t}=e;if(t)try{const r=await t.json();(n=r.error)!=null&&n.message&&(e.message=r.error.message)}catch{}return e}]}}),hs={getConfig:()=>Li.get("config").json(),getDatasets:()=>Li.get("datasets").json(),getMeta:e=>Li.get(`datasets/${e}/meta`).json(),getRows:(e,t,n)=>{const r={};return t!==void 0&&(r.offset=String(t)),n!==void 0&&(r.limit=String(n)),Li.get(`datasets/${e}/rows`,{searchParams:r}).json()},validate:(e,t)=>Li.post(`datasets/${e}/validate`,{json:{rows:t}}).json(),save:(e,t,n)=>Li.post(`datasets/${e}/save`,{json:{rows:t,expectedFileHash:n}}).json(),getDiff:(e,t)=>Li.post(`datasets/${e}/diff`,{json:{rows:t}}).json()},kC=MN(e=>({config:null,datasets:[],isReadOnly:!1,isLoading:!1,error:null,sidebarCollapsed:!1,singleMode:!1,singleDataset:null,loadConfig:async()=>{e({isLoading:!0,error:null});try{const t=await hs.getConfig();t.ok&&e({config:t.data,isReadOnly:!t.data.workspace.allowWrite,singleMode:t.data.singleMode,singleDataset:t.data.singleDataset||null,isLoading:!1})}catch(t){e({error:t,isLoading:!1})}},loadDatasets:async()=>{try{const t=await hs.getDatasets();t.ok&&e({datasets:t.data.datasets})}catch(t){console.error("Failed to load datasets:",t)}},setSidebarCollapsed:t=>e({sidebarCollapsed:t}),setReadOnly:t=>e({isReadOnly:t})})),Pf=e=>e.map(t=>({...t})),Fc=(e,t,n)=>e.length!==t.length?!0:e.some((r,o)=>{const a=t[o];return a?n.columns.some(i=>r[i.key]!==a[i.key]):!0}),HN=MN((e,t)=>({currentDatasetId:null,meta:null,originalRows:[],rows:[],selectedRowIndex:null,validationErrors:[],isDirty:!1,fileHash:null,isSaving:!1,viewMode:"table",searchQuery:"",sortColumn:null,sortOrder:"asc",detailPanelVisible:!0,detailPanelWidth:400,loadDataset:async n=>{var c,u;const r=await hs.getMeta(n);if(!r.ok)throw new Error("Failed to load dataset meta");const o=r.data,a=await hs.getRows(n);if(!a.ok)throw new Error("Failed to load dataset rows");const i=a.data.rows.map(d=>({...d,_isNew:!1,_isDirty:!1})),s=((u=(c=o.schema.ui)==null?void 0:c.list)==null?void 0:u.viewMode)==="tile"?"tile":"table";e({currentDatasetId:n,meta:o,originalRows:Pf(i),rows:Pf(i),selectedRowIndex:null,validationErrors:[],isDirty:!1,fileHash:a.data.fileHash,viewMode:s,searchQuery:"",sortColumn:null,sortOrder:"asc"})},updateRow:(n,r)=>{const{rows:o,originalRows:a,meta:i}=t();if(!i)return;const s=[...o];s[n]={...s[n],...r,_isDirty:!0},e({rows:s,isDirty:Fc(s,a,i.schema)})},insertRow:n=>{const{rows:r,originalRows:o,meta:a}=t();if(!a)return;const i={_rowIndex:-1,_isNew:!0,_isDirty:!0};a.schema.columns.forEach(u=>{u.default!==void 0?i[u.key]=u.default:u.type==="boolean"?i[u.key]=!1:u.type==="integer"||u.type==="number"?i[u.key]=0:i[u.key]=""});const s=[...r];let c;switch(n.type){case"head":c=0,s.unshift(i);break;case"last":c=s.length,s.push(i);break;case"before":c=n.index,s.splice(n.index,0,i);break;case"after":c=n.index+1,s.splice(n.index+1,0,i);break}e({rows:s,selectedRowIndex:c,isDirty:Fc(s,o,a.schema),sortColumn:null,sortOrder:"asc"})},duplicateRow:n=>{var d;const{rows:r,originalRows:o,meta:a}=t();if(!a)return;const s={...r[n],_rowIndex:-1,_isNew:!0,_isDirty:!0},c=(d=a.schema.csv)==null?void 0:d.primaryKey;c&&(s[c]="");const u=[...r];u.splice(n+1,0,s),e({rows:u,selectedRowIndex:n+1,isDirty:Fc(u,o,a.schema),sortColumn:null,sortOrder:"asc"})},deleteRow:n=>{const{rows:r,originalRows:o,selectedRowIndex:a,meta:i}=t();if(!i)return;const s=r.filter((u,d)=>d!==n);let c=a;a===n?c=null:a!==null&&a>n&&(c=a-1),e({rows:s,selectedRowIndex:c,isDirty:Fc(s,o,i.schema)})},moveRow:(n,r)=>{const{rows:o,originalRows:a,meta:i,selectedRowIndex:s}=t();if(!i||n===r)return;const c=[...o],[u]=c.splice(n,1);u._isDirty=!0,c.splice(r,0,u);let d=s;s===n?d=r:s!==null&&(n<s&&r>=s?d=s-1:n>s&&r<=s&&(d=s+1)),e({rows:c,selectedRowIndex:d,isDirty:Fc(c,a,i.schema),sortColumn:null,sortOrder:"asc"})},selectRow:n=>{e({selectedRowIndex:n})},selectNextRow:()=>{const{rows:n,selectedRowIndex:r}=t();n.length!==0&&(r===null?e({selectedRowIndex:0}):r<n.length-1&&e({selectedRowIndex:r+1}))},selectPrevRow:()=>{const{rows:n,selectedRowIndex:r}=t();n.length!==0&&(r===null?e({selectedRowIndex:n.length-1}):r>0&&e({selectedRowIndex:r-1}))},validate:async()=>{const{currentDatasetId:n,rows:r}=t();if(!n)return[];try{const o=r.map(i=>{const s={_rowIndex:i._rowIndex};return Object.keys(i).forEach(c=>{(!c.startsWith("_")||c==="_rowIndex")&&(s[c]=i[c])}),s}),a=await hs.validate(n,o);if(a.ok){const i=a.data.errors.map(s=>({...s,column:s.columnKey,type:"error"}));return e({validationErrors:i}),i}}catch(o){console.error("Validation failed:",o)}return[]},save:async()=>{const{currentDatasetId:n,rows:r,fileHash:o}=t();if(!n||!o)return{success:!1,error:"No dataset loaded"};e({isSaving:!0});try{const a=r.map(s=>{const c={_rowIndex:s._rowIndex};return Object.keys(s).forEach(u=>{(!u.startsWith("_")||u==="_rowIndex")&&(c[u]=s[u])}),c}),i=await hs.save(n,a,o);if(i.ok){const s=r.map(c=>({...c,_isNew:!1,_isDirty:!1}));return e({rows:s,originalRows:Pf(s),isDirty:!1,isSaving:!1,fileHash:i.data.fileHash}),{success:!0}}else return e({isSaving:!1}),{success:!1,error:"Save failed"}}catch(a){return e({isSaving:!1}),{success:!1,error:a instanceof Error?a.message:"Save failed"}}},reload:async()=>{const{currentDatasetId:n}=t();n&&await t().loadDataset(n)},resetChanges:()=>{const{originalRows:n}=t();e({rows:Pf(n),isDirty:!1,selectedRowIndex:null})},resetSort:()=>{e({sortColumn:null,sortOrder:"asc"})},setViewMode:n=>e({viewMode:n}),setSearchQuery:n=>e({searchQuery:n}),setSortColumn:(n,r)=>e({sortColumn:n,sortOrder:r}),setDetailPanelVisible:n=>e({detailPanelVisible:n}),setDetailPanelWidth:n=>e({detailPanelWidth:Math.max(300,Math.min(600,n))}),toggleDetailPanel:()=>e(n=>({detailPanelVisible:!n.detailPanelVisible}))})),{Content:gae}=Ba,hae=()=>{var O;const{id:e}=yN(),{config:t,datasets:n,isReadOnly:r,isLoading:o,sidebarCollapsed:a,singleMode:i,singleDataset:s,loadConfig:c,loadDatasets:u,setSidebarCollapsed:d}=kC(),{isDirty:f,isSaving:m,detailPanelVisible:v,rows:g,originalRows:b,meta:y,save:h,toggleDetailPanel:p}=HN(),[C,S]=l.useState(!1);l.useEffect(()=>{c(),u()},[c,u]);const x=async()=>{const E=await h();E.success?(Rs.success("保存しました"),u()):Rs.error(E.error||"保存に失敗しました")},$=l.useCallback(()=>{f&&S(!0)},[f]),w=l.useCallback(()=>{S(!1)},[]);return l.useEffect(()=>{const E=R=>{f&&(R.preventDefault(),R.returnValue="")};return window.addEventListener("beforeunload",E),()=>window.removeEventListener("beforeunload",E)},[f]),o||!t?te.jsx("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:te.jsx(Id,{size:"large",children:te.jsx("div",{style:{padding:50,textAlign:"center"},children:"読み込み中..."})})}):te.jsxs(Ba,{className:"app-layout",children:[te.jsx(moe,{isDirty:f,isReadOnly:r,isSaving:m,onSave:x,onShowDiff:$,detailPanelVisible:v,onToggleDetailPanel:p,singleMode:i,singleDataset:s}),te.jsxs(Ba,{children:[!i&&te.jsx(goe,{collapsed:a,onCollapse:d,datasets:n,currentId:e}),te.jsx(gae,{className:"app-content",children:te.jsx(Lne,{})})]}),te.jsx(poe,{open:C,onClose:w,columns:(y==null?void 0:y.schema.columns)??[],originalRows:b,currentRows:g,primaryKey:(O=y==null?void 0:y.schema.csv)==null?void 0:O.primaryKey})]})},pae=({onResize:e,onResizeEnd:t})=>{const[n,r]=l.useState(!1),[o,a]=l.useState(0),i=l.useCallback(u=>{u.preventDefault(),r(!0),a(u.clientX)},[]),s=l.useCallback(u=>{if(!n)return;const d=o-u.clientX;e(d),a(u.clientX)},[n,o,e]),c=l.useCallback(()=>{n&&(r(!1),t==null||t())},[n,t]);return l.useEffect(()=>(n&&(document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""}),[n,s,c]),te.jsx("div",{className:`resizer ${n?"resizing":""}`,onMouseDown:i})},yae=()=>{const e=Vg(),{config:t,datasets:n,isLoading:r,singleMode:o,singleDataset:a}=kC();return r||!t?te.jsx("div",{style:{padding:48,textAlign:"center"},children:te.jsx(Id,{size:"large",children:te.jsx("div",{style:{padding:50},children:"読み込み中..."})})}):o&&a?te.jsx(zne,{to:`/datasets/${a.id}`,replace:!0}):te.jsxs("div",{className:"home-page",style:{padding:"24px 16px"},children:[te.jsxs("div",{style:{marginBottom:32},children:[te.jsxs("h2",{style:{fontSize:16,fontWeight:600,marginBottom:16,display:"flex",alignItems:"center",gap:8},children:[te.jsx(roe,{})," Configuration"]}),te.jsx(Ws,{size:"small",style:{maxWidth:600},children:te.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[te.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[te.jsx(FM,{style:{color:"#faad14"}}),te.jsx("span",{style:{fontWeight:500},children:"Workspace:"}),te.jsx("code",{style:{background:"#f5f5f5",padding:"2px 6px",borderRadius:4,fontSize:12},children:t.workspace.root})]}),te.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[te.jsx(ev,{style:{color:t.workspace.allowWrite?"#52c41a":"#ff4d4f"}}),te.jsx("span",{style:{fontWeight:500},children:"Allow Write:"}),te.jsx(Dn,{color:t.workspace.allowWrite?"success":"error",children:t.workspace.allowWrite?"Yes":"No"})]}),te.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[te.jsx(wN,{style:{color:"#1677ff"}}),te.jsx("span",{style:{fontWeight:500},children:"Datasets:"}),te.jsx("span",{children:n.length})]})]})})]}),te.jsxs("div",{children:[te.jsxs("h2",{style:{fontSize:16,fontWeight:600,marginBottom:16,display:"flex",alignItems:"center",gap:8},children:[te.jsx(od,{})," Datasets"]}),n.length===0?te.jsx(Eo,{description:"データセットがありません"}):te.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 320px))",gap:16},children:n.map(i=>te.jsx(Ws,{hoverable:!0,onClick:()=>e(`/datasets/${i.id}`),size:"small",style:{cursor:"pointer"},children:te.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[te.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[te.jsx(od,{style:{fontSize:18,color:"#1677ff"}}),te.jsx("span",{style:{fontWeight:600,fontSize:15},children:i.title})]}),te.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,color:"#8c8c8c"},children:[te.jsx(iG,{}),te.jsxs("span",{children:[i.rowCount.toLocaleString()," 行"]})]}),te.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:4},children:[te.jsx("span",{style:{color:"#8c8c8c",fontSize:12},children:i.csvPath}),te.jsxs("span",{style:{color:"#1677ff",fontSize:13},children:["開く ",te.jsx(Bs,{})]})]})]})},i.id))})]})]})},bae=({selectedRowIndex:e,onInsert:t,disabled:n=!1})=>{const r=({key:a})=>{switch(a){case"head":t({type:"head"});break;case"last":t({type:"last"});break;case"before":e!==null&&t({type:"before",index:e});break;case"after":e!==null&&t({type:"after",index:e});break}},o=e!==null?[{key:"before",label:"前に挿入",icon:te.jsx(_C,{})},{key:"after",label:"後に挿入",icon:te.jsx(TC,{})}]:[{key:"head",label:"先頭に追加",icon:te.jsx(F9,{})},{key:"last",label:"末尾に追加",icon:te.jsx(foe,{})}];return te.jsx(dc,{menu:{items:o,onClick:r},disabled:n,children:te.jsxs(kn,{icon:te.jsx(Xm,{}),disabled:n,children:["追加 ",te.jsx(sg,{})]})})},Cae=({value:e,onChange:t,placeholder:n="検索..."})=>{const[r,o]=l.useState(e);return l.useEffect(()=>{o(e)},[e]),l.useEffect(()=>{const a=setTimeout(()=>{r!==e&&t(r)},300);return()=>clearTimeout(a)},[r,e,t]),te.jsx(Va,{prefix:te.jsx(cg,{style:{color:"#bfbfbf"}}),placeholder:n,value:r,onChange:a=>o(a.target.value),allowClear:!0,style:{width:200}})};function Ql(e,t,n){let r=n.initialDeps??[],o,a=!0;function i(){var s,c,u;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const f=e();if(!(f.length!==r.length||f.some((g,b)=>r[b]!==g)))return o;r=f;let v;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(v=Date.now()),o=t(...f),n.key&&((u=n.debug)!=null&&u.call(n))){const g=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-v)*100)/100,y=b/16,h=(p,C)=>{for(p=String(p);p.length<C;)p=" "+p;return p};console.info(`%c⏱ ${h(b,5)} /${h(g,5)} ms`,`
|
|
488
|
-
font-size: .6rem;
|
|
489
|
-
font-weight: bold;
|
|
490
|
-
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(o),a=!1,o}return i.updateDeps=s=>{r=s},i}function $E(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Sae=(e,t)=>Math.abs(e-t)<1.01,xae=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},EE=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},wae=e=>e,$ae=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},Eae=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=i=>{const{width:s,height:c}=i;t({width:Math.round(s),height:Math.round(c)})};if(o(EE(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(i=>{const s=()=>{const c=i[0];if(c!=null&&c.borderBoxSize){const u=c.borderBoxSize[0];if(u){o({width:u.inlineSize,height:u.blockSize});return}}o(EE(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},OE={passive:!0},RE=typeof window>"u"?!0:"onscrollend"in window,Oae=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const a=e.options.useScrollendEvent&&RE?()=>{}:xae(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),i=d=>()=>{const{horizontal:f,isRtl:m}=e.options;o=f?n.scrollLeft*(m&&-1||1):n.scrollTop,a(),t(o,d)},s=i(!0),c=i(!1);c(),n.addEventListener("scroll",s,OE);const u=e.options.useScrollendEvent&&RE;return u&&n.addEventListener("scrollend",c,OE),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",c)}},Rae=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Iae=(e,{adjustments:t=0,behavior:n},r)=>{var o,a;const i=e+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:i,behavior:n})};class Pae{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{const i=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),n=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wae,rangeExtractor:$ae,onChange:()=>{},measureElement:Rae,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=Ql(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,a=new Map;for(let i=r-1;i>=0;i--){const s=n[i];if(o.has(s.lane))continue;const c=a.get(s.lane);if(c==null||s.end>c.end?a.set(s.lane,s):s.end<c.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((i,s)=>i.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=Ql(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,o,a,i,s)=>(this.prevLanes!==void 0&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:i,lanes:s}),{key:!1,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=Ql(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:i,lanes:s},c)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const m of this.laneAssignments.keys())m>=n&&this.laneAssignments.delete(m);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const u=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,u),f=new Array(s).fill(void 0);for(let m=0;m<u;m++){const v=d[m];v&&(f[v.lane]=m)}for(let m=u;m<n;m++){const v=a(m),g=this.laneAssignments.get(m);let b,y;if(g!==void 0&&this.options.lanes>1){b=g;const S=f[b],x=S!==void 0?d[S]:void 0;y=x?x.end+this.options.gap:r+o}else{const S=this.options.lanes===1?d[m-1]:this.getFurthestMeasurement(d,m);y=S?S.end+this.options.gap:r+o,b=S?S.lane:m%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(m,b)}const h=c.get(v),p=typeof h=="number"?h:this.options.estimateSize(m),C=y+p;d[m]={index:m,start:y,size:p,end:C,key:v,lane:b},f[b]=m}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ql(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,o,a)=>this.range=n.length>0&&r>0?Mae({measurements:n,outerSize:r,scrollOffset:o,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ql(()=>{let n=null,r=null;const o=this.calculateRange();return o&&(n=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,o,a,i)=>a===null||i===null?[]:n({startIndex:a,endIndex:i,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),a=this.measurementsCache[o];if(!a)return;const i=a.key,s=this.elementsCache.get(i);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(i,n)),n.isConnected&&this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.measurementsCache[n];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,i=r-a;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(n,void 0)},this.getVirtualItems=Ql(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let a=0,i=n.length;a<i;a++){const s=n[a],c=r[s];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return $E(r[VN(0,r.length-1,o=>$E(r[o]).start,n)])},this.getOffsetForAlignment=(n,r,o=0)=>{const a=this.getSize(),i=this.getScrollOffset();r==="auto"&&(r=n>=i+a?"end":"start"),r==="center"?n+=(o-a)/2:r==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.measurementsCache[n];if(!o)return;const a=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(o.end>=i+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,o.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const i=10,s=u=>{if(!this.targetWindow)return;const d=this.getOffsetForIndex(n,u);if(!d){console.warn("Failed to get offset for index:",n);return}const[f,m]=d;this._scrollToOffset(f,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const v=this.getScrollOffset(),g=this.getOffsetForIndex(n,m);if(!g){console.warn("Failed to get offset for index:",n);return}Sae(g[0],v)||c(m)})},c=u=>{this.targetWindow&&(a++,a<i?this.targetWindow.requestAnimationFrame(()=>s(u)):console.warn(`Failed to scroll to index ${n} after ${i} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let i=r.length-1;for(;i>=0&&a.some(s=>s===null);){const s=r[i];a[s.lane]===null&&(a[s.lane]=s.end),i--}o=Math.max(...a.filter(s=>s!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}}const VN=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,a=n(o);if(a<r)e=o+1;else if(a>r)t=o-1;else return o}return e>0?e-1:0};function Mae({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,a=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:o};let i=VN(0,o,a,n),s=i;if(r===1)for(;s<o&&e[s].end<n+t;)s++;else if(r>1){const c=Array(r).fill(0);for(;s<o&&c.some(d=>d<n+t);){const d=e[s];c[d.lane]=d.end,s++}const u=Array(r).fill(n+t);for(;i>=0&&u.some(d=>d>=n);){const d=e[i];u[d.lane]=d.start,i--}i=Math.max(0,i-i%r),s=Math.min(o,s+(r-1-s%r))}return{startIndex:i,endIndex:s}}const IE=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Nae(e){const t=l.useReducer(()=>({}),{})[1],n={...e,onChange:(o,a)=>{var i;a?Qo.flushSync(t):t(),(i=e.onChange)==null||i.call(e,o,a)}},[r]=l.useState(()=>new Pae(n));return r.setOptions(n),IE(()=>r._didMount(),[]),IE(()=>r._willUpdate()),r}function Tae(e){return Nae({observeElementRect:Eae,observeElementOffset:Oae,scrollToFn:Iae,...e})}const PE=44,Bc=60,Ac=32,_ae=({schema:e,rows:t,selectedRowIndex:n,errors:r,onRowSelect:o,onSort:a,sortColumn:i,sortOrder:s,onDuplicate:c,onDelete:u,onInsert:d,onMoveRow:f,onSelectNext:m,onSelectPrev:v})=>{const g=l.useRef(null),b=l.useRef(null),[y,h]=l.useState(null),[p,C]=l.useState(null),S=l.useMemo(()=>{var L,F;const j=(F=(L=e.ui)==null?void 0:L.list)==null?void 0:F.columns;return j&&j.length>0?j.map(B=>({...e.columns.find(W=>W.key===B.key),width:B.width||150,pinned:B.pinned})):e.columns.map(B=>({...B,width:150,pinned:!1}))},[e]),x=l.useMemo(()=>(f?Ac:0)+Bc+S.reduce((L,F)=>L+F.width,0),[S,f]),$=l.useMemo(()=>{const j=new Map;return r.forEach(L=>{const F=j.get(L.rowIndex)||[];F.push(L),j.set(L.rowIndex,F)}),j},[r]),w=Tae({count:t.length,getScrollElement:()=>g.current,estimateSize:()=>PE,overscan:20}),O=w.getVirtualItems();l.useEffect(()=>{const j=L=>{const F=L.target;F.tagName==="INPUT"||F.tagName==="TEXTAREA"||F.isContentEditable||(L.key==="ArrowDown"?(L.preventDefault(),m==null||m()):L.key==="ArrowUp"&&(L.preventDefault(),v==null||v()))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[m,v]),l.useEffect(()=>{n!==null&&g.current&&w.scrollToIndex(n,{align:"auto"})},[n,w]);const E=l.useCallback((j,L)=>{h(L),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData("text/plain",String(L));const F=document.createElement("div");F.className="drag-image",F.textContent=`行 ${L+1}`,F.style.cssText="position: absolute; top: -1000px; padding: 8px 16px; background: #1677ff; color: white; border-radius: 4px; font-size: 12px;",document.body.appendChild(F),j.dataTransfer.setDragImage(F,0,0),setTimeout(()=>document.body.removeChild(F),0)},[]),R=l.useCallback((j,L)=>{j.preventDefault(),j.dataTransfer.dropEffect="move",y!==null&&L!==y&&C(L)},[y]),M=l.useCallback(()=>{C(null)},[]),T=l.useCallback((j,L)=>{j.preventDefault(),y!==null&&y!==L&&f&&f(y,L),h(null),C(null)},[y,f]),_=l.useCallback(()=>{h(null),C(null)},[]),I=l.useCallback((j,L)=>{o(n===j?null:L)},[n,o]),N=l.useCallback(j=>{a(j,i===j&&s==="asc"?"desc":"asc")},[i,s,a]),P=(j,L,F)=>{var B;if(j==null||j==="")return te.jsx("span",{style:{color:"#bfbfbf"},children:"-"});if(L==="boolean")return j?te.jsx(Dn,{color:"green",children:"Yes"}):te.jsx(Dn,{color:"default",children:"No"});if(L==="enum"){const V=e.columns.find(q=>q.key===F),W=(B=V==null?void 0:V.enum)==null?void 0:B.find(q=>q.value===j);return te.jsx(Dn,{children:(W==null?void 0:W.label)||String(j)})}return String(j)},k=(j,L)=>{const F=["table-row"];return L===n&&F.push("row-selected"),j._isNew?F.push("row-is-new"):j._isDirty&&F.push("row-is-dirty"),$.has(L)&&F.push("row-has-error"),F.join(" ")},D=j=>[{key:"insertBefore",label:"前に挿入",icon:te.jsx(_C,{}),onClick:()=>d({type:"before",index:j})},{key:"insertAfter",label:"後に挿入",icon:te.jsx(TC,{}),onClick:()=>d({type:"after",index:j})},{type:"divider"},{key:"duplicate",label:"複製",icon:te.jsx(Ng,{}),onClick:()=>c(j)},{key:"delete",label:"削除",icon:te.jsx(OC,{}),danger:!0,onClick:()=>u(j)}],z=l.useCallback(()=>{a("_index",i==="_index"&&s==="asc"?"desc":"asc")},[i,s,a]);return te.jsxs("div",{className:"data-table-wrapper",ref:b,tabIndex:0,children:[te.jsxs("div",{className:"data-table-header",style:{minWidth:x},children:[f&&te.jsx("div",{className:"table-cell header-cell",style:{width:Ac,minWidth:Ac}}),te.jsxs("div",{className:"table-cell header-cell sortable",style:{width:Bc,minWidth:Bc},onClick:z,children:[te.jsx("span",{children:"#"}),i==="_index"&&(s==="asc"?te.jsx(vE,{style:{color:"#1677ff",marginLeft:4}}):te.jsx(gE,{style:{color:"#1677ff",marginLeft:4}}))]}),S.map(j=>te.jsxs("div",{className:"table-cell header-cell sortable",style:{width:j.width,minWidth:j.width},onClick:()=>N(j.key),children:[te.jsx("span",{children:j.label}),i===j.key&&(s==="asc"?te.jsx(vE,{style:{color:"#1677ff",marginLeft:4}}):te.jsx(gE,{style:{color:"#1677ff",marginLeft:4}}))]},j.key))]}),te.jsx("div",{className:"data-table-body",ref:g,children:te.jsx("div",{style:{height:w.getTotalSize(),width:x,position:"relative"},children:O.map(j=>{const L=t[j.index],F=j.index,B=y===F,V=p===F;return te.jsx(dc,{menu:{items:D(F)},trigger:["contextMenu"],children:te.jsxs("div",{className:`${k(L,F)}${B?" row-dragging":""}${V?" row-drag-over":""}`,style:{position:"absolute",top:0,left:0,width:"100%",height:PE,transform:`translateY(${j.start}px)`,opacity:B?.5:1},onClick:()=>I(F,L._arrayIndex),onDragOver:W=>R(W,F),onDragLeave:M,onDrop:W=>T(W,F),children:[f&&te.jsx("div",{className:"table-cell drag-handle",style:{width:Ac,minWidth:Ac,cursor:"grab"},draggable:!0,onDragStart:W=>E(W,F),onDragEnd:_,children:te.jsx(BM,{style:{color:"#bfbfbf"}})}),te.jsx("div",{className:"table-cell",style:{width:Bc,minWidth:Bc,color:"#8c8c8c",fontSize:12},children:L._isNew?"NEW":L._rowIndex}),S.map(W=>te.jsx("div",{className:"table-cell",style:{width:W.width,minWidth:W.width},children:P(L[W.key],W.type,W.key)},W.key))]})},j.index)})})})]})},Dae=({schema:e,rows:t,selectedRowIndex:n,errors:r,onRowSelect:o,onDuplicate:a,onDelete:i,onInsert:s})=>{var g,b,y,h,p;const c=((b=(g=e.ui)==null?void 0:g.list)==null?void 0:b.tile)||{columns:3,titleField:((y=e.columns[0])==null?void 0:y.key)||"",subtitleField:(h=e.columns[1])==null?void 0:h.key},u=l.useMemo(()=>{const C=new Map;return r.forEach(S=>{const x=C.get(S.rowIndex)||[];x.push(S),C.set(S.rowIndex,x)}),C},[r]),d=(C,S)=>{const x=["tile-card"];return S===n&&x.push("selected"),C._isNew?x.push("is-new"):C._isDirty&&x.push("is-dirty"),u.has(S)&&x.push("has-error"),x.join(" ")},f=C=>[{key:"insertBefore",label:"前に挿入",icon:te.jsx(_C,{}),onClick:()=>s({type:"before",index:C})},{key:"insertAfter",label:"後に挿入",icon:te.jsx(TC,{}),onClick:()=>s({type:"after",index:C})},{type:"divider"},{key:"duplicate",label:"複製",icon:te.jsx(Ng,{}),onClick:()=>a(C)},{key:"delete",label:"削除",icon:te.jsx(OC,{}),danger:!0,onClick:()=>i(C)}],m=(p=e.csv)==null?void 0:p.primaryKey,v=m?e.columns.find(C=>C.key===m):e.columns[0];return t.length===0?te.jsx("div",{style:{padding:48,flex:1},children:te.jsx(Eo,{description:"データがありません"})}):te.jsx("div",{className:`tile-grid columns-${c.columns}`,style:{alignContent:"flex-start"},children:t.map((C,S)=>{var E;const x=c.titleField||((E=e.columns[0])==null?void 0:E.key),$=x?C[x]:C._rowIndex,w=c.subtitleField?C[c.subtitleField]:void 0,O=v?C[v.key]:C._rowIndex;return te.jsx(dc,{menu:{items:f(S)},trigger:["contextMenu"],children:te.jsx(Ws,{className:d(C,S),onClick:()=>o(n===S?null:C._arrayIndex),size:"small",children:te.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[te.jsx("div",{style:{fontWeight:600,fontSize:15},children:String($||"-")}),w!==void 0&&te.jsx("div",{children:typeof w=="boolean"?te.jsx(Dn,{color:w?"green":"default",children:w?"Yes":"No"}):te.jsx(Dn,{children:String(w)})}),te.jsxs("div",{style:{borderTop:"1px solid #f0f0f0",paddingTop:8,marginTop:4,color:"#8c8c8c",fontSize:12},children:[v?`${v.label}: `:"ID: ",String(O)]}),C._isNew&&te.jsx(Dn,{color:"green",style:{alignSelf:"flex-start"},children:"NEW"}),C._isDirty&&!C._isNew&&te.jsx(Dn,{color:"orange",style:{alignSelf:"flex-start"},children:"変更あり"})]})})},S)})})},kae=({schema:e,rows:t,viewMode:n,selectedRowIndex:r,errors:o,searchQuery:a,sortColumn:i,sortOrder:s,isDirty:c,readOnly:u=!1,onRowSelect:d,onInsert:f,onDuplicate:m,onDelete:v,onMoveRow:g,onSort:b,onResetSort:y,onQuickSearch:h,onViewModeChange:p,onResetChanges:C,onReload:S})=>{var _,I;const x=((I=(_=e.ui)==null?void 0:_.list)==null?void 0:I.viewMode)==="both",$=l.useMemo(()=>{var P,k,D;let N=t.map((z,j)=>({...z,_arrayIndex:j}));if(a){const z=a.toLowerCase(),j=(D=(k=(P=e.ui)==null?void 0:P.list)==null?void 0:k.quickSearch)==null?void 0:D.columns,L=j&&j.length>0?e.columns.filter(F=>j.includes(F.key)):e.columns;N=N.filter(F=>L.some(B=>{const V=F[B.key];return V!==void 0&&String(V).toLowerCase().includes(z)}))}return i&&(i==="_index"?N.sort((z,j)=>{const L=z._arrayIndex-j._arrayIndex;return s==="asc"?L:-L}):N.sort((z,j)=>{const L=z[i],F=j[i];if(L===F)return 0;if(L==null)return 1;if(F==null)return-1;const B=String(L).localeCompare(String(F),"ja",{numeric:!0});return s==="asc"?B:-B})),N},[t,a,i,s,e.columns]),w=!i&&!a,O=l.useMemo(()=>{var k,D,z;const N=(z=(D=(k=e.ui)==null?void 0:k.list)==null?void 0:D.quickSearch)==null?void 0:z.columns;return!N||N.length===0?"検索...":`検索 (${N.map(j=>{var L;return((L=e.columns.find(F=>F.key===j))==null?void 0:L.label)||j}).join(", ")})`},[e]),E=l.useMemo(()=>{if(r===null)return null;const N=$.findIndex(P=>P._arrayIndex===r);return N>=0?N:null},[$,r]),R=(N,P)=>{const k=$[N],D=$[P];k&&D&&g(k._arrayIndex,D._arrayIndex)},M=()=>{$.length!==0&&(E===null?d($[0]._arrayIndex):E<$.length-1&&d($[E+1]._arrayIndex))},T=()=>{$.length!==0&&(E===null?d($[$.length-1]._arrayIndex):E>0&&d($[E-1]._arrayIndex))};return te.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[te.jsxs("div",{className:"data-list-toolbar",children:[te.jsxs("div",{className:"data-list-toolbar-left",children:[te.jsx(Cae,{value:a,onChange:h,placeholder:O}),i?te.jsx(kn,{icon:te.jsx(xre,{}),onClick:y,type:"primary",ghost:!0,children:"ソート解除"}):te.jsx(bae,{selectedRowIndex:r,onInsert:f,disabled:u})]}),te.jsxs("div",{className:"data-list-toolbar-right",children:[te.jsxs(Ei,{size:"middle",children:[te.jsxs("span",{style:{color:"#8c8c8c",fontSize:13},children:[$.length.toLocaleString()," 件"]}),o.length>0&&te.jsxs("span",{style:{color:"#ff4d4f",fontSize:13},children:[o.length," エラー"]})]}),te.jsx(hr,{title:"変更を取り消す",children:te.jsx(kn,{icon:te.jsx(bre,{}),onClick:C,disabled:!c})}),te.jsx(hr,{title:"リロード",children:te.jsx(kn,{icon:te.jsx($Y,{}),onClick:S})}),x&&te.jsx(PU,{value:n,onChange:N=>p(N),options:[{value:"table",icon:te.jsx(od,{})},{value:"tile",icon:te.jsx(cre,{})}]})]})]}),te.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:n==="table"?te.jsx(_ae,{schema:e,rows:$,selectedRowIndex:E,errors:o,onRowSelect:d,onSort:b,sortColumn:i,sortOrder:s,onDuplicate:m,onDelete:v,onInsert:f,onMoveRow:!u&&w?R:void 0,onSelectNext:M,onSelectPrev:T}):te.jsx(Dae,{schema:e,rows:$,selectedRowIndex:E,errors:o,onRowSelect:d,onDuplicate:m,onDelete:v,onInsert:f})})]})};var _d=e=>e.type==="checkbox",el=e=>e instanceof Date,Ur=e=>e==null;const WN=e=>typeof e=="object";var Qn=e=>!Ur(e)&&!Array.isArray(e)&&WN(e)&&!el(e),KN=e=>Qn(e)&&e.target?_d(e.target)?e.target.checked:e.target.value:e,jae=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,UN=(e,t)=>e.has(jae(t)),zae=e=>{const t=e.constructor&&e.constructor.prototype;return Qn(t)&&t.hasOwnProperty("isPrototypeOf")},jC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(jC&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Qn(e)&&zae(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Zn(e[o]));return r}var Kg=e=>/^\w*$/.test(e),_n=e=>e===void 0,zC=e=>Array.isArray(e)?e.filter(Boolean):[],LC=e=>zC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),St=(e,t,n)=>{if(!t||!Qn(e))return n;const r=(Kg(t)?[t]:LC(t)).reduce((o,a)=>Ur(o)?o:o[a],e);return _n(r)||r===e?_n(e[t])?n:e[t]:r},io=e=>typeof e=="boolean",zr=e=>typeof e=="function",gn=(e,t,n)=>{let r=-1;const o=Kg(t)?[t]:LC(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=n;if(r!==i){const u=e[s];c=Qn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const av={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Vo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ea={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},qN=ce.createContext(null);qN.displayName="HookFormContext";const FC=()=>ce.useContext(qN);var GN=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Vo.all&&(t._proxyFormState[i]=!r||Vo.all),n&&(n[i]=!0),e[i]}});return o};const BC=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function Lae(e){const t=FC(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=ce.useState(n._formState),c=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return BC(()=>n._subscribe({name:o,formState:c.current,exact:a,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,a]),ce.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),ce.useMemo(()=>GN(i,n,c.current,!1),[i,n])}var lo=e=>typeof e=="string",ab=(e,t,n,r,o)=>lo(e)?(r&&t.watch.add(e),St(n,e,o)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),St(n,a))):(r&&(t.watchAll=!0),n),ib=e=>Ur(e)||!WN(e);function Wo(e,t,n=new WeakSet){if(ib(e)||ib(t))return Object.is(e,t);if(el(e)&&el(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(el(i)&&el(s)||Qn(i)&&Qn(s)||Array.isArray(i)&&Array.isArray(s)?!Wo(i,s,n):!Object.is(i,s))return!1}}return!0}function Fae(e){const t=FC(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=ce.useRef(o),u=ce.useRef(s),d=ce.useRef(void 0),f=ce.useRef(n),m=ce.useRef(r);u.current=s;const[v,g]=ce.useState(()=>{const S=n._getWatch(r,c.current);return u.current?u.current(S):S}),b=ce.useCallback(S=>{const x=ab(r,n._names,S||n._formValues,!1,c.current);return u.current?u.current(x):x},[n._formValues,n._names,r]),y=ce.useCallback(S=>{if(!a){const x=ab(r,n._names,S||n._formValues,!1,c.current);if(u.current){const $=u.current(x);Wo($,d.current)||(g($),d.current=$)}else g(x)}},[n._formValues,n._names,a,r]);BC(()=>((f.current!==n||!Wo(m.current,r))&&(f.current=n,m.current=r,y()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:S=>{y(S.values)}})),[n,i,r,y]),ce.useEffect(()=>n._removeUnmounted());const h=f.current!==n,p=m.current,C=ce.useMemo(()=>{if(a)return null;const S=!h&&!Wo(p,r);return h||S?b():null},[a,h,r,p,b]);return C!==null?C:v}function zl(e){const t=FC(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,c=UN(o._names.array,n),u=ce.useMemo(()=>St(o._formValues,n,St(o._defaultValues,n,i)),[o,n,i]),d=Fae({control:o,name:n,defaultValue:u,exact:s}),f=Lae({control:o,name:n,exact:s}),m=ce.useRef(e),v=ce.useRef(void 0),g=ce.useRef(o.register(n,{...e.rules,value:d,...io(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const b=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!St(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!St(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!St(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!St(f.validatingFields,n)},error:{enumerable:!0,get:()=>St(f.errors,n)}}),[f,n]),y=ce.useCallback(S=>g.current.onChange({target:{value:KN(S),name:n},type:av.CHANGE}),[n]),h=ce.useCallback(()=>g.current.onBlur({target:{value:St(o._formValues,n),name:n},type:av.BLUR}),[n,o._formValues]),p=ce.useCallback(S=>{const x=St(o._fields,n);x&&x._f&&S&&(x._f.ref={focus:()=>zr(S.focus)&&S.focus(),select:()=>zr(S.select)&&S.select(),setCustomValidity:$=>zr(S.setCustomValidity)&&S.setCustomValidity($),reportValidity:()=>zr(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),C=ce.useMemo(()=>({name:n,value:d,...io(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:y,onBlur:h,ref:p}),[n,r,f.disabled,y,h,p,d]);return ce.useEffect(()=>{const S=o._options.shouldUnregister||a,x=v.current;x&&x!==n&&!c&&o.unregister(x),o.register(n,{...m.current.rules,...io(m.current.disabled)?{disabled:m.current.disabled}:{}});const $=(w,O)=>{const E=St(o._fields,w);E&&E._f&&(E._f.mount=O)};if($(n,!0),S){const w=Zn(St(o._options.defaultValues,n,m.current.defaultValue));gn(o._defaultValues,n,w),_n(St(o._formValues,n))&&gn(o._formValues,n,w)}return!c&&o.register(n),v.current=n,()=>{(c?S&&!o._state.action:S)?o.unregister(n):$(n,!1)}},[n,o,c,a]),ce.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),ce.useMemo(()=>({field:C,formState:f,fieldState:b}),[C,f,b])}var Bae=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},hu=e=>Array.isArray(e)?e:[e],ME=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}};function XN(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],a=t[r];if(o&&Qn(o)&&a){const i=XN(o,a);Qn(i)&&(n[r]=i)}else e[r]&&(n[r]=a)}return n}var kr=e=>Qn(e)&&!Object.keys(e).length,AC=e=>e.type==="file",iv=e=>{if(!jC)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},YN=e=>e.type==="select-multiple",HC=e=>e.type==="radio",Aae=e=>HC(e)||_d(e),Np=e=>iv(e)&&e.isConnected;function Hae(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=_n(e)?r++:e[t[r++]];return e}function Vae(e){for(const t in e)if(e.hasOwnProperty(t)&&!_n(e[t]))return!1;return!0}function Un(e,t){const n=Array.isArray(t)?t:Kg(t)?[t]:LC(t),r=n.length===1?e:Hae(e,n),o=n.length-1,a=n[o];return r&&delete r[a],o!==0&&(Qn(r)&&kr(r)||Array.isArray(r)&&Vae(r))&&Un(e,n.slice(0,-1)),e}var Wae=e=>{for(const t in e)if(zr(e[t]))return!0;return!1};function QN(e){return Array.isArray(e)||Qn(e)&&!Wae(e)}function lb(e,t={}){for(const n in e){const r=e[n];QN(r)?(t[n]=Array.isArray(r)?[]:{},lb(r,t[n])):_n(r)||(t[n]=!0)}return t}function Zl(e,t,n){n||(n=lb(t));for(const r in e){const o=e[r];if(QN(o))_n(t)||ib(n[r])?n[r]=lb(o,Array.isArray(o)?[]:{}):Zl(o,Ur(t)?{}:t[r],n[r]);else{const a=t[r];n[r]=!Wo(o,a)}}return n}const NE={value:!1,isValid:!1},TE={value:!0,isValid:!0};var JN=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_n(e[0].attributes.value)?_n(e[0].value)||e[0].value===""?TE:{value:e[0].value,isValid:!0}:TE:NE}return NE},ZN=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_n(e)?e:t?e===""?NaN:e&&+e:n&&lo(e)?new Date(e):r?r(e):e;const _E={isValid:!1,value:null};var e8=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,_E):_E;function DE(e){const t=e.ref;return AC(t)?t.files:HC(t)?e8(e.refs).value:YN(t)?[...t.selectedOptions].map(({value:n})=>n):_d(t)?JN(e.refs).value:ZN(_n(t.value)?e.ref.value:t.value,e)}var Kae=(e,t,n,r)=>{const o={};for(const a of e){const i=St(t,a);i&&gn(o,a,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},lv=e=>e instanceof RegExp,Hc=e=>_n(e)?e:lv(e)?e.source:Qn(e)?lv(e.value)?e.value.source:e.value:e,kE=e=>({isOnSubmit:!e||e===Vo.onSubmit,isOnBlur:e===Vo.onBlur,isOnChange:e===Vo.onChange,isOnAll:e===Vo.all,isOnTouch:e===Vo.onTouched});const jE="AsyncFunction";var Uae=e=>!!e&&!!e.validate&&!!(zr(e.validate)&&e.validate.constructor.name===jE||Qn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===jE)),qae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),zE=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const pu=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const a=St(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(pu(s,t))break}else if(Qn(s)&&pu(s,t))break}}};function LE(e,t,n){const r=St(e,n);if(r||Kg(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),i=St(t,a),s=St(e,a);if(i&&!Array.isArray(i)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};o.pop()}return{name:n}}var Gae=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return kr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!r||Vo.all))},Xae=(e,t,n)=>!e||!t||e===t||hu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Yae=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Qae=(e,t)=>!zC(St(e,t)).length&&Un(e,t),Jae=(e,t,n)=>{const r=hu(St(e,n));return gn(r,"root",t[n]),gn(e,n,r),e};function FE(e,t,n="validate"){if(lo(e)||Array.isArray(e)&&e.every(lo)||io(e)&&!e)return{type:n,message:lo(e)?e:"",ref:t}}var Jl=e=>Qn(e)&&!lv(e)?e:{value:e,message:""},BE=async(e,t,n,r,o,a)=>{const{ref:i,refs:s,required:c,maxLength:u,minLength:d,min:f,max:m,pattern:v,validate:g,name:b,valueAsNumber:y,mount:h}=e._f,p=St(n,b);if(!h||t.has(b))return{};const C=s?s[0]:i,S=T=>{o&&C.reportValidity&&(C.setCustomValidity(io(T)?"":T||""),C.reportValidity())},x={},$=HC(i),w=_d(i),O=$||w,E=(y||AC(i))&&_n(i.value)&&_n(p)||iv(i)&&i.value===""||p===""||Array.isArray(p)&&!p.length,R=Bae.bind(null,b,r,x),M=(T,_,I,N=Ea.maxLength,P=Ea.minLength)=>{const k=T?_:I;x[b]={type:T?N:P,message:k,ref:i,...R(T?N:P,k)}};if(a?!Array.isArray(p)||!p.length:c&&(!O&&(E||Ur(p))||io(p)&&!p||w&&!JN(s).isValid||$&&!e8(s).isValid)){const{value:T,message:_}=lo(c)?{value:!!c,message:c}:Jl(c);if(T&&(x[b]={type:Ea.required,message:_,ref:C,...R(Ea.required,_)},!r))return S(_),x}if(!E&&(!Ur(f)||!Ur(m))){let T,_;const I=Jl(m),N=Jl(f);if(!Ur(p)&&!isNaN(p)){const P=i.valueAsNumber||p&&+p;Ur(I.value)||(T=P>I.value),Ur(N.value)||(_=P<N.value)}else{const P=i.valueAsDate||new Date(p),k=j=>new Date(new Date().toDateString()+" "+j),D=i.type=="time",z=i.type=="week";lo(I.value)&&p&&(T=D?k(p)>k(I.value):z?p>I.value:P>new Date(I.value)),lo(N.value)&&p&&(_=D?k(p)<k(N.value):z?p<N.value:P<new Date(N.value))}if((T||_)&&(M(!!T,I.message,N.message,Ea.max,Ea.min),!r))return S(x[b].message),x}if((u||d)&&!E&&(lo(p)||a&&Array.isArray(p))){const T=Jl(u),_=Jl(d),I=!Ur(T.value)&&p.length>+T.value,N=!Ur(_.value)&&p.length<+_.value;if((I||N)&&(M(I,T.message,_.message),!r))return S(x[b].message),x}if(v&&!E&&lo(p)){const{value:T,message:_}=Jl(v);if(lv(T)&&!p.match(T)&&(x[b]={type:Ea.pattern,message:_,ref:i,...R(Ea.pattern,_)},!r))return S(_),x}if(g){if(zr(g)){const T=await g(p,n),_=FE(T,C);if(_&&(x[b]={..._,...R(Ea.validate,_.message)},!r))return S(_.message),x}else if(Qn(g)){let T={};for(const _ in g){if(!kr(T)&&!r)break;const I=FE(await g[_](p,n),C,_);I&&(T={...I,...R(_,I.message)},S(I.message),r&&(x[b]=T))}if(!kr(T)&&(x[b]={ref:C,...T},!r))return x}}return S(!0),x};const Zae={mode:Vo.onSubmit,reValidateMode:Vo.onChange,shouldFocusError:!0};function eie(e={}){let t={...Zae,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:zr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Qn(t.defaultValues)||Qn(t.values)?Zn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Zn(o),i={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={...d};let m={...f};const v={array:ME(),state:ME()},g=t.criteriaMode===Vo.all,b=A=>X=>{clearTimeout(u),u=setTimeout(A,X)},y=async A=>{if(!i.keepIsValid&&!t.disabled&&(f.isValid||m.isValid||A)){let X;t.resolver?(X=kr((await O()).errors),h()):X=await R(r,!0),X!==n.isValid&&v.state.next({isValid:X})}},h=(A,X)=>{!t.disabled&&(f.isValidating||f.validatingFields||m.isValidating||m.validatingFields)&&((A||Array.from(s.mount)).forEach(re=>{re&&(X?gn(n.validatingFields,re,X):Un(n.validatingFields,re))}),v.state.next({validatingFields:n.validatingFields,isValidating:!kr(n.validatingFields)}))},p=(A,X=[],re,me,pe=!0,ve=!0)=>{if(me&&re&&!t.disabled){if(i.action=!0,ve&&Array.isArray(St(r,A))){const Pe=re(St(r,A),me.argA,me.argB);pe&&gn(r,A,Pe)}if(ve&&Array.isArray(St(n.errors,A))){const Pe=re(St(n.errors,A),me.argA,me.argB);pe&&gn(n.errors,A,Pe),Qae(n.errors,A)}if((f.touchedFields||m.touchedFields)&&ve&&Array.isArray(St(n.touchedFields,A))){const Pe=re(St(n.touchedFields,A),me.argA,me.argB);pe&&gn(n.touchedFields,A,Pe)}(f.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Zl(o,a)),v.state.next({name:A,isDirty:T(A,X),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gn(a,A,X)},C=(A,X)=>{gn(n.errors,A,X),v.state.next({errors:n.errors})},S=A=>{n.errors=A,v.state.next({errors:n.errors,isValid:!1})},x=(A,X,re,me)=>{const pe=St(r,A);if(pe){const ve=St(a,A,_n(re)?St(o,A):re);_n(ve)||me&&me.defaultChecked||X?gn(a,A,X?ve:DE(pe._f)):N(A,ve),i.mount&&!i.action&&y()}},$=(A,X,re,me,pe)=>{let ve=!1,Pe=!1;const De={name:A};if(!t.disabled){if(!re||me){(f.isDirty||m.isDirty)&&(Pe=n.isDirty,n.isDirty=De.isDirty=T(),ve=Pe!==De.isDirty);const Me=Wo(St(o,A),X);Pe=!!St(n.dirtyFields,A),Me?Un(n.dirtyFields,A):gn(n.dirtyFields,A,!0),De.dirtyFields=n.dirtyFields,ve=ve||(f.dirtyFields||m.dirtyFields)&&Pe!==!Me}if(re){const Me=St(n.touchedFields,A);Me||(gn(n.touchedFields,A,re),De.touchedFields=n.touchedFields,ve=ve||(f.touchedFields||m.touchedFields)&&Me!==re)}ve&&pe&&v.state.next(De)}return ve?De:{}},w=(A,X,re,me)=>{const pe=St(n.errors,A),ve=(f.isValid||m.isValid)&&io(X)&&n.isValid!==X;if(t.delayError&&re?(c=b(()=>C(A,re)),c(t.delayError)):(clearTimeout(u),c=null,re?gn(n.errors,A,re):Un(n.errors,A)),(re?!Wo(pe,re):pe)||!kr(me)||ve){const Pe={...me,...ve&&io(X)?{isValid:X}:{},errors:n.errors,name:A};n={...n,...Pe},v.state.next(Pe)}},O=async A=>(h(A,!0),await t.resolver(a,t.context,Kae(A||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),E=async A=>{const{errors:X}=await O(A);if(h(A),A)for(const re of A){const me=St(X,re);me?gn(n.errors,re,me):Un(n.errors,re)}else n.errors=X;return X},R=async(A,X,re={valid:!0})=>{for(const me in A){const pe=A[me];if(pe){const{_f:ve,...Pe}=pe;if(ve){const De=s.array.has(ve.name),Me=pe._f&&Uae(pe._f);Me&&f.validatingFields&&h([ve.name],!0);const Le=await BE(pe,s.disabled,a,g,t.shouldUseNativeValidation&&!X,De);if(Me&&f.validatingFields&&h([ve.name]),Le[ve.name]&&(re.valid=!1,X))break;!X&&(St(Le,ve.name)?De?Jae(n.errors,Le,ve.name):gn(n.errors,ve.name,Le[ve.name]):Un(n.errors,ve.name))}!kr(Pe)&&await R(Pe,X,re)}}return re.valid},M=()=>{for(const A of s.unMount){const X=St(r,A);X&&(X._f.refs?X._f.refs.every(re=>!Np(re)):!Np(X._f.ref))&&Y(A)}s.unMount=new Set},T=(A,X)=>!t.disabled&&(A&&X&&gn(a,A,X),!Wo(L(),o)),_=(A,X,re)=>ab(A,s,{...i.mount?a:_n(X)?o:lo(A)?{[A]:X}:X},re,X),I=A=>zC(St(i.mount?a:o,A,t.shouldUnregister?St(o,A,[]):[])),N=(A,X,re={})=>{const me=St(r,A);let pe=X;if(me){const ve=me._f;ve&&(!ve.disabled&&gn(a,A,ZN(X,ve)),pe=iv(ve.ref)&&Ur(X)?"":X,YN(ve.ref)?[...ve.ref.options].forEach(Pe=>Pe.selected=pe.includes(Pe.value)):ve.refs?_d(ve.ref)?ve.refs.forEach(Pe=>{(!Pe.defaultChecked||!Pe.disabled)&&(Array.isArray(pe)?Pe.checked=!!pe.find(De=>De===Pe.value):Pe.checked=pe===Pe.value||!!pe)}):ve.refs.forEach(Pe=>Pe.checked=Pe.value===pe):AC(ve.ref)?ve.ref.value="":(ve.ref.value=pe,ve.ref.type||v.state.next({name:A,values:Zn(a)})))}(re.shouldDirty||re.shouldTouch)&&$(A,pe,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&j(A)},P=(A,X,re)=>{for(const me in X){if(!X.hasOwnProperty(me))return;const pe=X[me],ve=A+"."+me,Pe=St(r,ve);(s.array.has(A)||Qn(pe)||Pe&&!Pe._f)&&!el(pe)?P(ve,pe,re):N(ve,pe,re)}},k=(A,X,re={})=>{const me=St(r,A),pe=s.array.has(A),ve=Zn(X);gn(a,A,ve),pe?(v.array.next({name:A,values:Zn(a)}),(f.isDirty||f.dirtyFields||m.isDirty||m.dirtyFields)&&re.shouldDirty&&v.state.next({name:A,dirtyFields:Zl(o,a),isDirty:T(A,ve)})):me&&!me._f&&!Ur(ve)?P(A,ve,re):N(A,ve,re),zE(A,s)&&v.state.next({...n,name:A}),v.state.next({name:i.mount?A:void 0,values:Zn(a)})},D=async A=>{i.mount=!0;const X=A.target;let re=X.name,me=!0;const pe=St(r,re),ve=Me=>{me=Number.isNaN(Me)||el(Me)&&isNaN(Me.getTime())||Wo(Me,St(a,re,Me))},Pe=kE(t.mode),De=kE(t.reValidateMode);if(pe){let Me,Le;const Oe=X.type?DE(pe._f):KN(A),be=A.type===av.BLUR||A.type===av.FOCUS_OUT,ke=!qae(pe._f)&&!t.resolver&&!St(n.errors,re)&&!pe._f.deps||Yae(be,St(n.touchedFields,re),n.isSubmitted,De,Pe),Se=zE(re,s,be);gn(a,re,Oe),be?(!X||!X.readOnly)&&(pe._f.onBlur&&pe._f.onBlur(A),c&&c(0)):pe._f.onChange&&pe._f.onChange(A);const Re=$(re,Oe,be),we=!kr(Re)||Se;if(!be&&v.state.next({name:re,type:A.type,values:Zn(a)}),ke)return(f.isValid||m.isValid)&&(t.mode==="onBlur"?be&&y():be||y()),we&&v.state.next({name:re,...Se?{}:Re});if(!be&&Se&&v.state.next({...n}),t.resolver){const{errors:xe}=await O([re]);if(h([re]),ve(Oe),me){const Te=LE(n.errors,r,re),Ae=LE(xe,r,Te.name||re);Me=Ae.error,re=Ae.name,Le=kr(xe)}}else h([re],!0),Me=(await BE(pe,s.disabled,a,g,t.shouldUseNativeValidation))[re],h([re]),ve(Oe),me&&(Me?Le=!1:(f.isValid||m.isValid)&&(Le=await R(r,!0)));me&&(pe._f.deps&&(!Array.isArray(pe._f.deps)||pe._f.deps.length>0)&&j(pe._f.deps),w(re,Le,Me,Re))}},z=(A,X)=>{if(St(n.errors,X)&&A.focus)return A.focus(),1},j=async(A,X={})=>{let re,me;const pe=hu(A);if(t.resolver){const ve=await E(_n(A)?A:pe);re=kr(ve),me=A?!pe.some(Pe=>St(ve,Pe)):re}else A?(me=(await Promise.all(pe.map(async ve=>{const Pe=St(r,ve);return await R(Pe&&Pe._f?{[ve]:Pe}:Pe)}))).every(Boolean),!(!me&&!n.isValid)&&y()):me=re=await R(r);return v.state.next({...!lo(A)||(f.isValid||m.isValid)&&re!==n.isValid?{}:{name:A},...t.resolver||!A?{isValid:re}:{},errors:n.errors}),X.shouldFocus&&!me&&pu(r,z,A?pe:s.mount),me},L=(A,X)=>{let re={...i.mount?a:o};return X&&(re=XN(X.dirtyFields?n.dirtyFields:n.touchedFields,re)),_n(A)?re:lo(A)?St(re,A):A.map(me=>St(re,me))},F=(A,X)=>({invalid:!!St((X||n).errors,A),isDirty:!!St((X||n).dirtyFields,A),error:St((X||n).errors,A),isValidating:!!St(n.validatingFields,A),isTouched:!!St((X||n).touchedFields,A)}),B=A=>{A&&hu(A).forEach(X=>Un(n.errors,X)),v.state.next({errors:A?n.errors:{}})},V=(A,X,re)=>{const me=(St(r,A,{_f:{}})._f||{}).ref,pe=St(n.errors,A)||{},{ref:ve,message:Pe,type:De,...Me}=pe;gn(n.errors,A,{...Me,...X,ref:me}),v.state.next({name:A,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&me&&me.focus&&me.focus()},W=(A,X)=>zr(A)?v.state.subscribe({next:re=>"values"in re&&A(_(void 0,X),re)}):_(A,X,!0),q=A=>v.state.subscribe({next:X=>{Xae(A.name,X.name,A.exact)&&Gae(X,A.formState||f,ye,A.reRenderRoot)&&A.callback({values:{...a},...n,...X,defaultValues:o})}}).unsubscribe,J=A=>(i.mount=!0,m={...m,...A.formState},q({...A,formState:{...d,...A.formState}})),Y=(A,X={})=>{for(const re of A?hu(A):s.mount)s.mount.delete(re),s.array.delete(re),X.keepValue||(Un(r,re),Un(a,re)),!X.keepError&&Un(n.errors,re),!X.keepDirty&&Un(n.dirtyFields,re),!X.keepTouched&&Un(n.touchedFields,re),!X.keepIsValidating&&Un(n.validatingFields,re),!t.shouldUnregister&&!X.keepDefaultValue&&Un(o,re);v.state.next({values:Zn(a)}),v.state.next({...n,...X.keepDirty?{isDirty:T()}:{}}),!X.keepIsValid&&y()},ne=({disabled:A,name:X})=>{(io(A)&&i.mount||A||s.disabled.has(X))&&(A?s.disabled.add(X):s.disabled.delete(X))},fe=(A,X={})=>{let re=St(r,A);const me=io(X.disabled)||io(t.disabled);return gn(r,A,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:A}},name:A,mount:!0,...X}}),s.mount.add(A),re?ne({disabled:io(X.disabled)?X.disabled:t.disabled,name:A}):x(A,!0,X.value),{...me?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Hc(X.min),max:Hc(X.max),minLength:Hc(X.minLength),maxLength:Hc(X.maxLength),pattern:Hc(X.pattern)}:{},name:A,onChange:D,onBlur:D,ref:pe=>{if(pe){fe(A,X),re=St(r,A);const ve=_n(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,Pe=Aae(ve),De=re._f.refs||[];if(Pe?De.find(Me=>Me===ve):ve===re._f.ref)return;gn(r,A,{_f:{...re._f,...Pe?{refs:[...De.filter(Np),ve,...Array.isArray(St(o,A))?[{}]:[]],ref:{type:ve.type,name:A}}:{ref:ve}}}),x(A,!1,void 0,ve)}else re=St(r,A,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(UN(s.array,A)&&i.action)&&s.unMount.add(A)}}},oe=()=>t.shouldFocusError&&pu(r,z,s.mount),G=A=>{io(A)&&(v.state.next({disabled:A}),pu(r,(X,re)=>{const me=St(r,re);me&&(X.disabled=me._f.disabled||A,Array.isArray(me._f.refs)&&me._f.refs.forEach(pe=>{pe.disabled=me._f.disabled||A}))},0,!1))},ue=(A,X)=>async re=>{let me;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let pe=Zn(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:Pe}=await O();h(),n.errors=ve,pe=Zn(Pe)}else await R(r);if(s.disabled.size)for(const ve of s.disabled)Un(pe,ve);if(Un(n.errors,"root"),kr(n.errors)){v.state.next({errors:{}});try{await A(pe,re)}catch(ve){me=ve}}else X&&await X({...n.errors},re),oe(),setTimeout(oe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:kr(n.errors)&&!me,submitCount:n.submitCount+1,errors:n.errors}),me)throw me},le=(A,X={})=>{St(r,A)&&(_n(X.defaultValue)?k(A,Zn(St(o,A))):(k(A,X.defaultValue),gn(o,A,Zn(X.defaultValue))),X.keepTouched||Un(n.touchedFields,A),X.keepDirty||(Un(n.dirtyFields,A),n.isDirty=X.defaultValue?T(A,Zn(St(o,A))):T()),X.keepError||(Un(n.errors,A),f.isValid&&y()),v.state.next({...n}))},ae=(A,X={})=>{const re=A?Zn(A):o,me=Zn(re),pe=kr(A),ve=pe?o:me;if(X.keepDefaultValues||(o=re),!X.keepValues){if(X.keepDirtyValues){const Pe=new Set([...s.mount,...Object.keys(Zl(o,a))]);for(const De of Array.from(Pe))St(n.dirtyFields,De)?gn(ve,De,St(a,De)):k(De,St(ve,De))}else{if(jC&&_n(A))for(const Pe of s.mount){const De=St(r,Pe);if(De&&De._f){const Me=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(iv(Me)){const Le=Me.closest("form");if(Le){Le.reset();break}}}}if(X.keepFieldsRef)for(const Pe of s.mount)k(Pe,St(ve,Pe));else r={}}a=t.shouldUnregister?X.keepDefaultValues?Zn(o):{}:Zn(ve),v.array.next({values:{...ve}}),v.state.next({values:{...ve}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!X.keepIsValid||!!X.keepDirtyValues||!t.shouldUnregister&&!kr(ve),i.watch=!!t.shouldUnregister,i.keepIsValid=!!X.keepIsValid,i.action=!1,X.keepErrors||(n.errors={}),v.state.next({submitCount:X.keepSubmitCount?n.submitCount:0,isDirty:pe?!1:X.keepDirty?n.isDirty:!!(X.keepDefaultValues&&!Wo(A,o)),isSubmitted:X.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:pe?{}:X.keepDirtyValues?X.keepDefaultValues&&a?Zl(o,a):n.dirtyFields:X.keepDefaultValues&&A?Zl(o,A):X.keepDirty?n.dirtyFields:{},touchedFields:X.keepTouched?n.touchedFields:{},errors:X.keepErrors?n.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ee=(A,X)=>ae(zr(A)?A(a):A,{...t.resetOptions,...X}),ge=(A,X={})=>{const re=St(r,A),me=re&&re._f;if(me){const pe=me.refs?me.refs[0]:me.ref;pe.focus&&setTimeout(()=>{pe.focus(),X.shouldSelect&&zr(pe.select)&&pe.select()})}},ye=A=>{n={...n,...A}},Ee={control:{register:fe,unregister:Y,getFieldState:F,handleSubmit:ue,setError:V,_subscribe:q,_runSchema:O,_updateIsValidating:h,_focusError:oe,_getWatch:_,_getDirty:T,_setValid:y,_setFieldArray:p,_setDisabledField:ne,_setErrors:S,_getFieldArray:I,_reset:ae,_resetDefaultValues:()=>zr(t.defaultValues)&&t.defaultValues().then(A=>{ee(A,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:G,_subjects:v,_proxyFormState:f,get _fields(){return r},get _formValues(){return a},get _state(){return i},set _state(A){i=A},get _defaultValues(){return o},get _names(){return s},set _names(A){s=A},get _formState(){return n},get _options(){return t},set _options(A){t={...t,...A}}},subscribe:J,trigger:j,register:fe,handleSubmit:ue,watch:W,setValue:k,getValues:L,reset:ee,resetField:le,clearErrors:B,unregister:Y,setError:V,setFocus:ge,getFieldState:F};return{...Ee,formControl:Ee}}function tie(e={}){const t=ce.useRef(void 0),n=ce.useRef(void 0),[r,o]=ce.useState({isDirty:!1,isValidating:!1,isLoading:zr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:zr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!zr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...s}=eie(e);t.current={...s,formState:r}}const a=t.current.control;return a._options=e,BC(()=>{const i=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),a._formState.isReady=!0,i},[a]),ce.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ce.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),ce.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),ce.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==r.isDirty&&a._subjects.state.next({isDirty:i})}},[a,r.isDirty]),ce.useEffect(()=>{var i;e.values&&!Wo(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((i=a._options.resetOptions)===null||i===void 0)&&i.keepIsValid||a._setValid(),n.current=e.values,o(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),ce.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=GN(r,a),t.current}const{TextArea:nie}=Va;function Tp({name:e,label:t,required:n=!1,readOnly:r=!1,placeholder:o,helpText:a,multiline:i=!1,control:s}){const{field:c,fieldState:{error:u}}=zl({name:e,control:s});return te.jsx(Cr.Item,{label:t,required:n,validateStatus:u?"error":void 0,help:(u==null?void 0:u.message)||a,children:i?te.jsx(nie,{...c,value:c.value??"",placeholder:o,disabled:r,rows:4}):te.jsx(Va,{...c,value:c.value??"",placeholder:o,disabled:r})})}function rie({name:e,label:t,required:n=!1,readOnly:r=!1,min:o,max:a,step:i=1,helpText:s,control:c}){const{field:u,fieldState:{error:d}}=zl({name:e,control:c});return te.jsx(Cr.Item,{label:t,required:n,validateStatus:d?"error":void 0,help:(d==null?void 0:d.message)||s,children:te.jsx(K6,{...u,value:u.value??void 0,onChange:f=>u.onChange(f),min:o,max:a,step:i,disabled:r,style:{width:"100%"}})})}function oie({name:e,label:t,required:n=!1,readOnly:r=!1,options:o,helpText:a,control:i}){const{field:s,fieldState:{error:c}}=zl({name:e,control:i});return te.jsx(Cr.Item,{label:t,required:n,validateStatus:c?"error":void 0,help:(c==null?void 0:c.message)||a,children:te.jsx(Ml,{...s,value:s.value??void 0,onChange:u=>s.onChange(u),options:o,disabled:r,allowClear:!n,placeholder:"選択してください"})})}function aie({name:e,label:t,readOnly:n=!1,helpText:r,useSwitch:o=!1,control:a}){const{field:i,fieldState:{error:s}}=zl({name:e,control:a});return te.jsx(Cr.Item,{label:t,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||r,children:o?te.jsx(yM,{checked:!!i.value,onChange:c=>i.onChange(c),disabled:n}):te.jsx(hl,{checked:!!i.value,onChange:c=>i.onChange(c.target.checked),disabled:n,children:t})})}function iie({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=zl({name:e,control:a}),c=i.value?Rr(i.value):null;return te.jsx(Cr.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o,children:te.jsx(jl,{value:c,onChange:u=>{i.onChange(u?u.format("YYYY-MM-DD"):"")},disabled:r,format:"YYYY-MM-DD",style:{width:"100%"}})})}function lie({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=zl({name:e,control:a}),c=i.value?Rr(i.value):null;return te.jsx(Cr.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o,children:te.jsx(jl,{showTime:!0,value:c,onChange:u=>{i.onChange(u?u.format("YYYY-MM-DDTHH:mm:ss"):"")},disabled:r,format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}})})}const{TextArea:sie}=Va;function cie({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=zl({name:e,control:a});return te.jsx(Cr.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o||"Markdown形式で入力できます",children:te.jsx(sie,{...i,value:i.value??"",placeholder:"# 見出し\\n\\n本文...",disabled:r,rows:8,style:{fontFamily:"monospace"}})})}const uie=({schema:e,row:t,isNew:n,errors:r,onChange:o,readOnly:a=!1})=>{var b,y;const i=l.useRef(t._rowIndex),s=l.useRef(!1),c=l.useCallback(()=>{const h={};return e.columns.forEach(p=>{h[p.key]=t[p.key]??p.default??""}),h},[e.columns,t]),{control:u,watch:d,reset:f}=tie({defaultValues:c(),mode:"onChange"});l.useEffect(()=>{i.current!==t._rowIndex&&(i.current=t._rowIndex,s.current=!1,f(c()))},[t._rowIndex,f,c]),l.useEffect(()=>{const h=setTimeout(()=>{s.current=!0},100);return()=>clearTimeout(h)},[t._rowIndex]),l.useEffect(()=>{const h=d(p=>{s.current&&i.current===t._rowIndex&&o(p)});return()=>h.unsubscribe()},[d,o,t._rowIndex]);const m=h=>{const p=r.find(C=>C.columnKey===h);return p==null?void 0:p.message},v=h=>{var $,w,O,E,R,M;const p=e.columns.find(T=>T.key===h);if(!p)return null;const C=a||!n&&(($=p.ui)==null?void 0:$.readonlyOnEdit),S={name:p.key,label:p.label,required:p.required,readOnly:C,helpText:((w=p.ui)==null?void 0:w.helpText)||m(p.key),control:u},x=(O=p.ui)==null?void 0:O.widget;if(x==="markdown")return te.jsx(cie,{...S},p.key);if(x==="textarea")return te.jsx(Tp,{...S,multiline:!0,placeholder:(E=p.ui)==null?void 0:E.placeholder},p.key);switch(p.type){case"string":return te.jsx(Tp,{...S,placeholder:(R=p.ui)==null?void 0:R.placeholder},p.key);case"integer":case"number":return te.jsx(rie,{...S,min:p.min,max:p.max},p.key);case"boolean":return te.jsx(aie,{...S,useSwitch:x==="switch"},p.key);case"enum":return te.jsx(oie,{...S,options:p.enum||[]},p.key);case"date":return te.jsx(iie,{...S},p.key);case"datetime":return te.jsx(lie,{...S},p.key);default:return te.jsx(Tp,{...S,placeholder:(M=p.ui)==null?void 0:M.placeholder},p.key)}},g=(y=(b=e.ui)==null?void 0:b.form)==null?void 0:y.layout;return(g==null?void 0:g.type)==="sections"&&g.sections?te.jsx(Cr,{layout:"vertical",children:g.sections.map((h,p)=>te.jsx(Ws,{size:"small",title:h.title||void 0,style:{marginBottom:16},styles:h.title?void 0:{body:{paddingTop:16}},children:te.jsx("div",{className:`form-grid columns-${h.columns||g.columns||1}`,children:h.fields.map(C=>v(C))})},p))}):te.jsx(Cr,{layout:"vertical",children:te.jsx("div",{className:`form-grid columns-${(g==null?void 0:g.columns)||1}`,children:e.columns.map(h=>v(h.key))})})},{Text:_p}=hc,die=({schema:e})=>{var a,i,s;const t=(a=e.csv)==null?void 0:a.primaryKey,n=e.columns.map((c,u)=>({tableKey:u,...c,isPrimaryKey:c.key===t})),r=[{title:"カラム名",dataIndex:"key",key:"key",render:(c,u)=>te.jsxs("span",{children:[u.isPrimaryKey&&te.jsx(fE,{style:{color:"#faad14",marginRight:4}}),te.jsx(_p,{code:!0,children:c})]})},{title:"型",dataIndex:"type",key:"type",render:c=>te.jsx(Dn,{children:c})},{title:"必須",dataIndex:"required",key:"required",render:c=>c?te.jsx(hre,{style:{color:"#52c41a"}}):te.jsx("span",{style:{color:"#d9d9d9"},children:"-"})},{title:"制約",key:"constraints",render:(c,u)=>{const d=[];return u.unique&&d.push("ユニーク"),u.min!==void 0&&d.push(`min: ${u.min}`),u.max!==void 0&&d.push(`max: ${u.max}`),u.pattern&&d.push(`pattern: ${u.pattern}`),d.length>0?te.jsx("span",{style:{fontSize:12},children:d.join(", ")}):te.jsx("span",{style:{color:"#d9d9d9"},children:"-"})}}],o=(i=e.csv)==null?void 0:i.normalize;return te.jsxs("div",{className:"schema-viewer",children:[te.jsxs("div",{className:"schema-viewer-section",children:[te.jsx("h4",{children:"基本情報"}),te.jsxs(Oa,{column:1,size:"small",bordered:!0,children:[te.jsx(Oa.Item,{label:"ID",children:e.id}),te.jsx(Oa.Item,{label:"タイトル",children:e.title}),t&&te.jsx(Oa.Item,{label:"Primary Key",children:te.jsx(Dn,{icon:te.jsx(fE,{}),color:"gold",children:t})})]})]}),te.jsxs("div",{className:"schema-viewer-section",children:[te.jsxs("h4",{children:[te.jsx(Gre,{})," カラム定義(",e.columns.length,")"]}),te.jsx(Wa,{dataSource:n,columns:r,rowKey:"tableKey",pagination:!1,size:"small",bordered:!0})]}),((s=e.validation)==null?void 0:s.rowRules)&&e.validation.rowRules.length>0&&te.jsxs("div",{className:"schema-viewer-section",children:[te.jsxs("h4",{children:[te.jsx($N,{})," バリデーションルール"]}),te.jsx("ul",{style:{paddingLeft:20,margin:0},children:e.validation.rowRules.map((c,u)=>te.jsxs("li",{style:{marginBottom:8},children:[te.jsx(_p,{children:c.message}),te.jsx("br",{}),te.jsx(_p,{code:!0,style:{fontSize:11},children:c.expr})]},u))})]}),o&&te.jsxs("div",{className:"schema-viewer-section",children:[te.jsx("h4",{children:"正規化設定"}),te.jsxs(Oa,{column:1,size:"small",children:[o.sortKeys&&o.sortKeys.length>0&&te.jsx(Oa.Item,{label:"ソート",children:o.sortKeys.map((c,u)=>te.jsxs(Dn,{children:[c.column," (",c.order,")"]},u))}),o.quotePolicy&&te.jsx(Oa.Item,{label:"クォート",children:o.quotePolicy}),o.newline&&te.jsx(Oa.Item,{label:"改行コード",children:o.newline.toUpperCase()})]})]})]})},fie=({schema:e,row:t,rowIndex:n,errors:r,onChange:o,onDuplicate:a,onDelete:i,readOnly:s=!1})=>{var m;const c=r.filter(v=>v.rowIndex===n),u=(m=e.csv)==null?void 0:m.primaryKey,d=u?e.columns.find(v=>v.key===u):null,f=t&&d?t[d.key]:null;return!t||n===null?te.jsxs("div",{className:"detail-panel",children:[te.jsx("div",{className:"detail-panel-header",children:te.jsxs("h3",{children:[te.jsx(kre,{style:{marginRight:8}}),"スキーマ情報"]})}),te.jsx("div",{className:"detail-panel-content",children:te.jsx(die,{schema:e})})]}):te.jsxs("div",{className:"detail-panel",children:[te.jsxs("div",{className:"detail-panel-header",children:[te.jsxs("div",{children:[te.jsxs("h3",{style:{marginBottom:4},children:["編集: ",f?String(f):`行 ${n+1}`]}),te.jsxs(Ei,{size:"small",children:[t._isNew&&te.jsx(Dn,{color:"green",children:"新規"}),t._isDirty&&!t._isNew&&te.jsx(Dn,{color:"orange",children:"変更あり"}),c.length>0&&te.jsxs(Dn,{color:"red",children:[c.length,"件のエラー"]})]})]}),te.jsxs(Ei,{children:[te.jsx(hr,{title:"複製",children:te.jsx(kn,{icon:te.jsx(Ng,{}),onClick:a,disabled:s})}),te.jsx(hM,{title:"この行を削除しますか?",description:"この操作は取り消せません",onConfirm:i,okText:"削除",cancelText:"キャンセル",okButtonProps:{danger:!0},children:te.jsx(hr,{title:"削除",children:te.jsx(kn,{icon:te.jsx(OC,{}),danger:!0,disabled:s})})})]})]}),te.jsx("div",{className:"detail-panel-content",children:te.jsx(uie,{schema:e,row:t,isNew:t._isNew??!1,errors:c,onChange:o,readOnly:s})})]})},mie=()=>{const{id:e}=yN(),{isReadOnly:t}=kC(),{meta:n,rows:r,selectedRowIndex:o,validationErrors:a,isDirty:i,viewMode:s,searchQuery:c,sortColumn:u,sortOrder:d,detailPanelVisible:f,detailPanelWidth:m,loadDataset:v,updateRow:g,insertRow:b,duplicateRow:y,deleteRow:h,moveRow:p,selectRow:C,setViewMode:S,setSearchQuery:x,setSortColumn:$,resetSort:w,resetChanges:O,reload:E,setDetailPanelWidth:R}=HN();l.useEffect(()=>{e&&v(e).catch(P=>{Rs.error(`データセットの読み込みに失敗しました: ${P.message}`)})},[e,v]);const M=o!==null?r[o]:null,T=P=>{o!==null&&g(o,P)},_=()=>{o!==null&&(y(o),Rs.success("行を複製しました"))},I=()=>{o!==null&&(h(o),Rs.success("行を削除しました"))},N=l.useCallback(P=>{R(m+P)},[m,R]);return n?e?te.jsxs("div",{style:{height:"100%",display:"flex",overflow:"hidden"},children:[te.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0},children:te.jsx(kae,{schema:n.schema,rows:r,viewMode:s,selectedRowIndex:o,errors:a,searchQuery:c,sortColumn:u,sortOrder:d,isDirty:i,readOnly:t,onRowSelect:C,onInsert:b,onDuplicate:y,onDelete:h,onMoveRow:p,onSort:$,onResetSort:w,onQuickSearch:x,onViewModeChange:S,onResetChanges:O,onReload:E})}),f&&te.jsxs(te.Fragment,{children:[te.jsx(pae,{onResize:N}),te.jsx("div",{style:{width:m,flexShrink:0,overflow:"hidden",background:"#fff"},children:te.jsx(fie,{schema:n.schema,row:M,rowIndex:o,errors:a,onChange:T,onDuplicate:_,onDelete:I,readOnly:t})})]})]}):te.jsx(Rg,{status:"404",title:"Dataset not found",subTitle:"指定されたデータセットは存在しません"}):te.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:te.jsx(Id,{size:"large",tip:"データセットを読み込み中..."})})},vie=Une([{path:"/",element:te.jsx(hae,{}),children:[{index:!0,element:te.jsx(yae,{})},{path:"datasets/:id",element:te.jsx(mie,{})}]}]),gie=()=>te.jsx(tre,{router:vie}),hie=()=>te.jsx(_o,{theme:xte,locale:Ste,children:te.jsx(gie,{})});Dp.createRoot(document.getElementById("root")).render(te.jsx(ce.StrictMode,{children:te.jsx(hie,{})}));
|