cc-viewer 0.1.2 → 0.1.3

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.
@@ -0,0 +1,401 @@
1
+ var c$=Object.defineProperty;var u$=(e,t,n)=>t in e?c$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>u$(e,typeof t!="symbol"?t+"":t,n);function Kb(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 l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{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 l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},Il={},If={exports:{}},Ft={};/**
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 Gh;function d$(){if(Gh)return Ft;Gh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function h(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function S(k,F,Y){this.props=k,this.context=F,this.refs=C,this.updater=Y||b}S.prototype.isReactComponent={},S.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,F,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function $(k,F,Y){this.props=k,this.context=F,this.refs=C,this.updater=Y||b}var R=$.prototype=new E;R.constructor=$,x(R,S.prototype),R.isPureReactComponent=!0;var P=Array.isArray,O=Object.prototype.hasOwnProperty,I={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function M(k,F,Y){var ne,Z={},ee=null,me=null;if(F!=null)for(ne in F.ref!==void 0&&(me=F.ref),F.key!==void 0&&(ee=""+F.key),F)O.call(F,ne)&&!T.hasOwnProperty(ne)&&(Z[ne]=F[ne]);var pe=arguments.length-2;if(pe===1)Z.children=Y;else if(1<pe){for(var ue=Array(pe),Se=0;Se<pe;Se++)ue[Se]=arguments[Se+2];Z.children=ue}if(k&&k.defaultProps)for(ne in pe=k.defaultProps,pe)Z[ne]===void 0&&(Z[ne]=pe[ne]);return{$$typeof:e,type:k,key:ee,ref:me,props:Z,_owner:I.current}}function _(k,F){return{$$typeof:e,type:k.type,key:F,ref:k.ref,props:k.props,_owner:k._owner}}function z(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function L(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Y){return F[Y]})}var j=/\/+/g;function A(k,F){return typeof k=="object"&&k!==null&&k.key!=null?L(""+k.key):F.toString(36)}function B(k,F,Y,ne,Z){var ee=typeof k;(ee==="undefined"||ee==="boolean")&&(k=null);var me=!1;if(k===null)me=!0;else switch(ee){case"string":case"number":me=!0;break;case"object":switch(k.$$typeof){case e:case t:me=!0}}if(me)return me=k,Z=Z(me),k=ne===""?"."+A(me,0):ne,P(Z)?(Y="",k!=null&&(Y=k.replace(j,"$&/")+"/"),B(Z,F,Y,"",function(Se){return Se})):Z!=null&&(z(Z)&&(Z=_(Z,Y+(!Z.key||me&&me.key===Z.key?"":(""+Z.key).replace(j,"$&/")+"/")+k)),F.push(Z)),1;if(me=0,ne=ne===""?".":ne+":",P(k))for(var pe=0;pe<k.length;pe++){ee=k[pe];var ue=ne+A(ee,pe);me+=B(ee,F,Y,ue,Z)}else if(ue=h(k),typeof ue=="function")for(k=ue.call(k),pe=0;!(ee=k.next()).done;)ee=ee.value,ue=ne+A(ee,pe++),me+=B(ee,F,Y,ue,Z);else if(ee==="object")throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return me}function K(k,F,Y){if(k==null)return k;var ne=[],Z=0;return B(k,ne,"","",function(ee){return F.call(Y,ee,Z++)}),ne}function V(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(Y){(k._status===0||k._status===-1)&&(k._status=1,k._result=Y)},function(Y){(k._status===0||k._status===-1)&&(k._status=2,k._result=Y)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var U={current:null},D={transition:null},X={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:D,ReactCurrentOwner:I};function W(){throw Error("act(...) is not supported in production builds of React.")}return Ft.Children={map:K,forEach:function(k,F,Y){K(k,function(){F.apply(this,arguments)},Y)},count:function(k){var F=0;return K(k,function(){F++}),F},toArray:function(k){return K(k,function(F){return F})||[]},only:function(k){if(!z(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Ft.Component=S,Ft.Fragment=n,Ft.Profiler=o,Ft.PureComponent=$,Ft.StrictMode=r,Ft.Suspense=f,Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Ft.act=W,Ft.cloneElement=function(k,F,Y){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ne=x({},k.props),Z=k.key,ee=k.ref,me=k._owner;if(F!=null){if(F.ref!==void 0&&(ee=F.ref,me=I.current),F.key!==void 0&&(Z=""+F.key),k.type&&k.type.defaultProps)var pe=k.type.defaultProps;for(ue in F)O.call(F,ue)&&!T.hasOwnProperty(ue)&&(ne[ue]=F[ue]===void 0&&pe!==void 0?pe[ue]:F[ue])}var ue=arguments.length-2;if(ue===1)ne.children=Y;else if(1<ue){pe=Array(ue);for(var Se=0;Se<ue;Se++)pe[Se]=arguments[Se+2];ne.children=pe}return{$$typeof:e,type:k.type,key:Z,ref:ee,props:ne,_owner:me}},Ft.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:l,_context:k},k.Consumer=k},Ft.createElement=M,Ft.createFactory=function(k){var F=M.bind(null,k);return F.type=k,F},Ft.createRef=function(){return{current:null}},Ft.forwardRef=function(k){return{$$typeof:u,render:k}},Ft.isValidElement=z,Ft.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:V}},Ft.memo=function(k,F){return{$$typeof:m,type:k,compare:F===void 0?null:F}},Ft.startTransition=function(k){var F=D.transition;D.transition={};try{k()}finally{D.transition=F}},Ft.unstable_act=W,Ft.useCallback=function(k,F){return U.current.useCallback(k,F)},Ft.useContext=function(k){return U.current.useContext(k)},Ft.useDebugValue=function(){},Ft.useDeferredValue=function(k){return U.current.useDeferredValue(k)},Ft.useEffect=function(k,F){return U.current.useEffect(k,F)},Ft.useId=function(){return U.current.useId()},Ft.useImperativeHandle=function(k,F,Y){return U.current.useImperativeHandle(k,F,Y)},Ft.useInsertionEffect=function(k,F){return U.current.useInsertionEffect(k,F)},Ft.useLayoutEffect=function(k,F){return U.current.useLayoutEffect(k,F)},Ft.useMemo=function(k,F){return U.current.useMemo(k,F)},Ft.useReducer=function(k,F,Y){return U.current.useReducer(k,F,Y)},Ft.useRef=function(k){return U.current.useRef(k)},Ft.useState=function(k){return U.current.useState(k)},Ft.useSyncExternalStore=function(k,F,Y){return U.current.useSyncExternalStore(k,F,Y)},Ft.useTransition=function(){return U.current.useTransition()},Ft.version="18.3.1",Ft}var Kh;function Mp(){return Kh||(Kh=1,If.exports=d$()),If.exports}/**
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 qh;function f$(){if(qh)return Il;qh=1;var e=Mp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(u,f,m){var v,g={},h=null,b=null;m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),f.ref!==void 0&&(b=f.ref);for(v in f)r.call(f,v)&&!l.hasOwnProperty(v)&&(g[v]=f[v]);if(u&&u.defaultProps)for(v in f=u.defaultProps,f)g[v]===void 0&&(g[v]=f[v]);return{$$typeof:t,type:u,key:h,ref:b,props:g,_owner:o.current}}return Il.Fragment=n,Il.jsx=s,Il.jsxs=s,Il}var Xh;function m$(){return Xh||(Xh=1,Of.exports=f$()),Of.exports}var ie=m$(),d=Mp();const J=us(d),hu=Kb({__proto__:null,default:J},[d]);var Sc={},Pf={exports:{}},_r={},Tf={exports:{}},_f={};/**
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
+ */var Qh;function p$(){return Qh||(Qh=1,(function(e){function t(D,X){var W=D.length;D.push(X);e:for(;0<W;){var k=W-1>>>1,F=D[k];if(0<o(F,X))D[k]=X,D[W]=F,W=k;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var X=D[0],W=D.pop();if(W!==X){D[0]=W;e:for(var k=0,F=D.length,Y=F>>>1;k<Y;){var ne=2*(k+1)-1,Z=D[ne],ee=ne+1,me=D[ee];if(0>o(Z,W))ee<F&&0>o(me,Z)?(D[k]=me,D[ee]=W,k=ee):(D[k]=Z,D[ne]=W,k=ne);else if(ee<F&&0>o(me,W))D[k]=me,D[ee]=W,k=ee;else break e}}return X}function o(D,X){var W=D.sortIndex-X.sortIndex;return W!==0?W:D.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],m=[],v=1,g=null,h=3,b=!1,x=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(D){for(var X=n(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=D)r(m),X.sortIndex=X.expirationTime,t(f,X);else break;X=n(m)}}function P(D){if(C=!1,R(D),!x)if(n(f)!==null)x=!0,V(O);else{var X=n(m);X!==null&&U(P,X.startTime-D)}}function O(D,X){x=!1,C&&(C=!1,E(M),M=-1),b=!0;var W=h;try{for(R(X),g=n(f);g!==null&&(!(g.expirationTime>X)||D&&!L());){var k=g.callback;if(typeof k=="function"){g.callback=null,h=g.priorityLevel;var F=k(g.expirationTime<=X);X=e.unstable_now(),typeof F=="function"?g.callback=F:g===n(f)&&r(f),R(X)}else r(f);g=n(f)}if(g!==null)var Y=!0;else{var ne=n(m);ne!==null&&U(P,ne.startTime-X),Y=!1}return Y}finally{g=null,h=W,b=!1}}var I=!1,T=null,M=-1,_=5,z=-1;function L(){return!(e.unstable_now()-z<_)}function j(){if(T!==null){var D=e.unstable_now();z=D;var X=!0;try{X=T(!0,D)}finally{X?A():(I=!1,T=null)}}else I=!1}var A;if(typeof $=="function")A=function(){$(j)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,K=B.port2;B.port1.onmessage=j,A=function(){K.postMessage(null)}}else A=function(){S(j,0)};function V(D){T=D,I||(I=!0,A())}function U(D,X){M=S(function(){D(e.unstable_now())},X)}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(){x||b||(x=!0,V(O))},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"):_=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(D){switch(h){case 1:case 2:case 3:var X=3;break;default:X=h}var W=h;h=X;try{return D()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=h;h=D;try{return X()}finally{h=W}},e.unstable_scheduleCallback=function(D,X,W){var k=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,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=W+F,D={id:v++,callback:X,priorityLevel:D,startTime:W,expirationTime:F,sortIndex:-1},W>k?(D.sortIndex=W,t(m,D),n(f)===null&&D===n(m)&&(C?(E(M),M=-1):C=!0,U(P,W-k))):(D.sortIndex=F,t(f,D),x||b||(x=!0,V(O))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var X=h;return function(){var W=h;h=X;try{return D.apply(this,arguments)}finally{h=W}}}})(_f)),_f}var Yh;function v$(){return Yh||(Yh=1,Tf.exports=p$()),Tf.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 Zh;function g$(){if(Zh)return _r;Zh=1;var e=Mp(),t=v$();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(i,a){s(i,a),s(i+"Capture",a)}function s(i,a){for(o[i]=a,i=0;i<a.length;i++)r.add(a[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,v={},g={};function h(i){return f.call(g,i)?!0:f.call(v,i)?!1:m.test(i)?g[i]=!0:(v[i]=!0,!1)}function b(i,a,c,p){if(c!==null&&c.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:c!==null?!c.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function x(i,a,c,p){if(a===null||typeof a>"u"||b(i,a,c,p))return!0;if(p)return!1;if(c!==null)switch(c.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(i,a,c,p,y,w,N){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=i,this.type=a,this.sanitizeURL=w,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){S[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];S[a]=new C(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){S[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){S[i]=new C(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){S[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){S[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){S[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){S[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){S[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function $(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace(E,$);S[a]=new C(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(E,$);S[a]=new C(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(E,$);S[a]=new C(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){S[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){S[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,a,c,p){var y=S.hasOwnProperty(a)?S[a]:null;(y!==null?y.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(x(a,c,y,p)&&(c=null),p||y===null?h(a)&&(c===null?i.removeAttribute(a):i.setAttribute(a,""+c)):y.mustUseProperty?i[y.propertyName]=c===null?y.type===3?!1:"":c:(a=y.attributeName,p=y.attributeNamespace,c===null?i.removeAttribute(a):(y=y.type,c=y===3||y===4&&c===!0?"":""+c,p?i.setAttributeNS(p,a,c):i.setAttribute(a,c))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),I=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),L=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),D=Symbol.iterator;function X(i){return i===null||typeof i!="object"?null:(i=D&&i[D]||i["@@iterator"],typeof i=="function"?i:null)}var W=Object.assign,k;function F(i){if(k===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);k=a&&a[1]||""}return`
34
+ `+k+i}var Y=!1;function ne(i,a){if(!i||Y)return"";Y=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(ge){var p=ge}Reflect.construct(i,[],a)}else{try{a.call()}catch(ge){p=ge}i.call(a.prototype)}else{try{throw Error()}catch(ge){p=ge}i()}}catch(ge){if(ge&&p&&typeof ge.stack=="string"){for(var y=ge.stack.split(`
35
+ `),w=p.stack.split(`
36
+ `),N=y.length-1,G=w.length-1;1<=N&&0<=G&&y[N]!==w[G];)G--;for(;1<=N&&0<=G;N--,G--)if(y[N]!==w[G]){if(N!==1||G!==1)do if(N--,G--,0>G||y[N]!==w[G]){var Q=`
37
+ `+y[N].replace(" at new "," at ");return i.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",i.displayName)),Q}while(1<=N&&0<=G);break}}}finally{Y=!1,Error.prepareStackTrace=c}return(i=i?i.displayName||i.name:"")?F(i):""}function Z(i){switch(i.tag){case 5:return F(i.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return i=ne(i.type,!1),i;case 11:return i=ne(i.type.render,!1),i;case 1:return i=ne(i.type,!0),i;default:return""}}function ee(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case I:return"Portal";case _:return"Profiler";case M:return"StrictMode";case A:return"Suspense";case B:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case z:return(i._context.displayName||"Context")+".Provider";case j:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case K:return a=i.displayName||null,a!==null?a:ee(i.type)||"Memo";case V:a=i._payload,i=i._init;try{return ee(i(a))}catch{}}return null}function me(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(a);case 8:return a===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function pe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ue(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Se(i){var a=ue(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),p=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,w=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return y.call(this)},set:function(N){p=""+N,w.call(this,N)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return p},setValue:function(N){p=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function fe(i){i._valueTracker||(i._valueTracker=Se(i))}function ae(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),p="";return i&&(p=ue(i)?i.checked?"true":"false":i.value),i=p,i!==c?(a.setValue(i),!0):!1}function ye(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function he(i,a){var c=a.checked;return W({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??i._wrapperState.initialChecked})}function ve(i,a){var c=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;c=pe(a.value!=null?a.value:c),i._wrapperState={initialChecked:p,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function oe(i,a){a=a.checked,a!=null&&R(i,"checked",a,!1)}function be(i,a){oe(i,a);var c=pe(a.value),p=a.type;if(c!=null)p==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+c):i.value!==""+c&&(i.value=""+c);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?$e(i,a.type,c):a.hasOwnProperty("defaultValue")&&$e(i,a.type,pe(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function we(i,a,c){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,c||a===i.value||(i.value=a),i.defaultValue=a}c=i.name,c!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,c!==""&&(i.name=c)}function $e(i,a,c){(a!=="number"||ye(i.ownerDocument)!==i)&&(c==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+c&&(i.defaultValue=""+c))}var Ae=Array.isArray;function je(i,a,c,p){if(i=i.options,a){a={};for(var y=0;y<c.length;y++)a["$"+c[y]]=!0;for(c=0;c<i.length;c++)y=a.hasOwnProperty("$"+i[c].value),i[c].selected!==y&&(i[c].selected=y),y&&p&&(i[c].defaultSelected=!0)}else{for(c=""+pe(c),a=null,y=0;y<i.length;y++){if(i[y].value===c){i[y].selected=!0,p&&(i[y].defaultSelected=!0);return}a!==null||i[y].disabled||(a=i[y])}a!==null&&(a.selected=!0)}}function Ie(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return W({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Le(i,a){var c=a.value;if(c==null){if(c=a.children,a=a.defaultValue,c!=null){if(a!=null)throw Error(n(92));if(Ae(c)){if(1<c.length)throw Error(n(93));c=c[0]}a=c}a==null&&(a=""),c=a}i._wrapperState={initialValue:pe(c)}}function Ee(i,a){var c=pe(a.value),p=pe(a.defaultValue);c!=null&&(c=""+c,c!==i.value&&(i.value=c),a.defaultValue==null&&i.defaultValue!==c&&(i.defaultValue=c)),p!=null&&(i.defaultValue=""+p)}function tt(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function lt(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bt(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?lt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var st,Ue=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,p,y){MSApp.execUnsafeLocalFunction(function(){return i(a,c,p,y)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=st.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function it(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var Ve={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},dt=["Webkit","ms","Moz","O"];Object.keys(Ve).forEach(function(i){dt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ve[a]=Ve[i]})});function Xe(i,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||Ve.hasOwnProperty(i)&&Ve[i]?(""+a).trim():a+"px"}function _e(i,a){i=i.style;for(var c in a)if(a.hasOwnProperty(c)){var p=c.indexOf("--")===0,y=Xe(c,a[c],p);c==="float"&&(c="cssFloat"),p?i.setProperty(c,y):i[c]=y}}var Ye=W({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 Pe(i,a){if(a){if(Ye[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Fe(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function mt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Bt=null,At=null,nn=null;function vn(i){if(i=ml(i)){if(typeof Bt!="function")throw Error(n(280));var a=i.stateNode;a&&(a=js(a),Bt(i.stateNode,i.type,a))}}function Vt(i){At?nn?nn.push(i):nn=[i]:At=i}function Tt(){if(At){var i=At,a=nn;if(nn=At=null,vn(i),a)for(i=0;i<a.length;i++)vn(a[i])}}function St(i,a){return i(a)}function Wt(){}var Lt=!1;function Ze(i,a,c){if(Lt)return i(a,c);Lt=!0;try{return St(i,a,c)}finally{Lt=!1,(At!==null||nn!==null)&&(Wt(),Tt())}}function yt(i,a){var c=i.stateNode;if(c===null)return null;var p=js(c);if(p===null)return null;c=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(n(231,a,typeof c));return c}var at=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){at=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{at=!1}function Ce(i,a,c,p,y,w,N,G,Q){var ge=Array.prototype.slice.call(arguments,3);try{a.apply(c,ge)}catch(Te){this.onError(Te)}}var xe=!1,Me=null,Ke=!1,Qe=null,Mt={onError:function(i){xe=!0,Me=i}};function jt(i,a,c,p,y,w,N,G,Q){xe=!1,Me=null,Ce.apply(Mt,arguments)}function Ot(i,a,c,p,y,w,N,G,Q){if(jt.apply(this,arguments),xe){if(xe){var ge=Me;xe=!1,Me=null}else throw Error(n(198));Ke||(Ke=!0,Qe=ge)}}function It(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function mn(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function sn(i){if(It(i)!==i)throw Error(n(188))}function gn(i){var a=i.alternate;if(!a){if(a=It(i),a===null)throw Error(n(188));return a!==i?null:i}for(var c=i,p=a;;){var y=c.return;if(y===null)break;var w=y.alternate;if(w===null){if(p=y.return,p!==null){c=p;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===c)return sn(y),i;if(w===p)return sn(y),a;w=w.sibling}throw Error(n(188))}if(c.return!==p.return)c=y,p=w;else{for(var N=!1,G=y.child;G;){if(G===c){N=!0,c=y,p=w;break}if(G===p){N=!0,p=y,c=w;break}G=G.sibling}if(!N){for(G=w.child;G;){if(G===c){N=!0,c=w,p=y;break}if(G===p){N=!0,p=w,c=y;break}G=G.sibling}if(!N)throw Error(n(189))}}if(c.alternate!==p)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?i:a}function $n(i){return i=gn(i),i!==null?Kt(i):null}function Kt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Kt(i);if(a!==null)return a;i=i.sibling}return null}var Yt=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,We=t.unstable_shouldYield,Ct=t.unstable_requestPaint,ct=t.unstable_now,et=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,xt=t.unstable_UserBlockingPriority,kt=t.unstable_NormalPriority,He=t.unstable_LowPriority,ut=t.unstable_IdlePriority,$t=null,Jt=null;function zn(i){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot($t,i,void 0,(i.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:cr,sr=Math.log,Hn=Math.LN2;function cr(i){return i>>>=0,i===0?32:31-(sr(i)/Hn|0)|0}var Vn=64,nr=4194304;function ur(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Xt(i,a){var c=i.pendingLanes;if(c===0)return 0;var p=0,y=i.suspendedLanes,w=i.pingedLanes,N=c&268435455;if(N!==0){var G=N&~y;G!==0?p=ur(G):(w&=N,w!==0&&(p=ur(w)))}else N=c&~y,N!==0?p=ur(N):w!==0&&(p=ur(w));if(p===0)return 0;if(a!==0&&a!==p&&(a&y)===0&&(y=p&-p,w=a&-a,y>=w||y===16&&(w&4194240)!==0))return a;if((p&4)!==0&&(p|=c&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=p;0<a;)c=31-xn(a),y=1<<c,p|=i[c],a&=~y;return p}function nt(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(i,a){for(var c=i.suspendedLanes,p=i.pingedLanes,y=i.expirationTimes,w=i.pendingLanes;0<w;){var N=31-xn(w),G=1<<N,Q=y[N];Q===-1?((G&c)===0||(G&p)!==0)&&(y[N]=nt(G,a)):Q<=a&&(i.expiredLanes|=G),w&=~G}}function Ut(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Qt(){var i=Vn;return Vn<<=1,(Vn&4194240)===0&&(Vn=64),i}function rn(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function ln(i,a,c){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-xn(a),i[a]=c}function rr(i,a){var c=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0<c;){var y=31-xn(c),w=1<<y;a[y]=0,p[y]=-1,i[y]=-1,c&=~w}}function jn(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var p=31-xn(c),y=1<<p;y&a|i[p]&a&&(i[p]|=a),c&=~y}}var zt=0;function Wn(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Xn,$r,Qn,Qo,Zi,Ji=!1,_o=[],Tn=null,dr=null,br=null,Er=new Map,Ur=new Map,Nr=[],ea="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 ta(i,a){switch(i){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":br=null;break;case"pointerover":case"pointerout":Er.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(a.pointerId)}}function rt(i,a,c,p,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:a,domEventName:c,eventSystemFlags:p,nativeEvent:w,targetContainers:[y]},a!==null&&(a=ml(a),a!==null&&$r(a)),i):(i.eventSystemFlags|=p,a=i.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),i)}function Pt(i,a,c,p,y){switch(a){case"focusin":return Tn=rt(Tn,i,a,c,p,y),!0;case"dragenter":return dr=rt(dr,i,a,c,p,y),!0;case"mouseover":return br=rt(br,i,a,c,p,y),!0;case"pointerover":var w=y.pointerId;return Er.set(w,rt(Er.get(w)||null,i,a,c,p,y)),!0;case"gotpointercapture":return w=y.pointerId,Ur.set(w,rt(Ur.get(w)||null,i,a,c,p,y)),!0}return!1}function bn(i){var a=wi(i.target);if(a!==null){var c=It(a);if(c!==null){if(a=c.tag,a===13){if(a=mn(c),a!==null){i.blockedOn=a,Zi(i.priority,function(){Qn(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Cn(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=Ju(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(c===null){c=i.nativeEvent;var p=new c.constructor(c.type,c);wt=p,c.target.dispatchEvent(p),wt=null}else return a=ml(c),a!==null&&$r(a),i.blockedOn=c,!1;a.shift()}return!0}function Sn(i,a,c){Cn(i)&&c.delete(a)}function na(){Ji=!1,Tn!==null&&Cn(Tn)&&(Tn=null),dr!==null&&Cn(dr)&&(dr=null),br!==null&&Cn(br)&&(br=null),Er.forEach(Sn),Ur.forEach(Sn)}function Mo(i,a){i.blockedOn===a&&(i.blockedOn=null,Ji||(Ji=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,na)))}function Yo(i){function a(y){return Mo(y,i)}if(0<_o.length){Mo(_o[0],i);for(var c=1;c<_o.length;c++){var p=_o[c];p.blockedOn===i&&(p.blockedOn=null)}}for(Tn!==null&&Mo(Tn,i),dr!==null&&Mo(dr,i),br!==null&&Mo(br,i),Er.forEach(a),Ur.forEach(a),c=0;c<Nr.length;c++)p=Nr[c],p.blockedOn===i&&(p.blockedOn=null);for(;0<Nr.length&&(c=Nr[0],c.blockedOn===null);)bn(c),c.blockedOn===null&&Nr.shift()}var io=P.ReactCurrentBatchConfig,Cs=!0;function zC(i,a,c,p){var y=zt,w=io.transition;io.transition=null;try{zt=1,Zu(i,a,c,p)}finally{zt=y,io.transition=w}}function jC(i,a,c,p){var y=zt,w=io.transition;io.transition=null;try{zt=4,Zu(i,a,c,p)}finally{zt=y,io.transition=w}}function Zu(i,a,c,p){if(Cs){var y=Ju(i,a,c,p);if(y===null)gd(i,a,p,ws,c),ta(i,p);else if(Pt(y,i,a,c,p))p.stopPropagation();else if(ta(i,p),a&4&&-1<ea.indexOf(i)){for(;y!==null;){var w=ml(y);if(w!==null&&Xn(w),w=Ju(i,a,c,p),w===null&&gd(i,a,p,ws,c),w===y)break;y=w}y!==null&&p.stopPropagation()}else gd(i,a,p,null,c)}}var ws=null;function Ju(i,a,c,p){if(ws=null,i=mt(p),i=wi(i),i!==null)if(a=It(i),a===null)i=null;else if(c=a.tag,c===13){if(i=mn(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return ws=i,null}function Mv(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(et()){case Ge:return 1;case xt:return 4;case kt:case He:return 16;case ut:return 536870912;default:return 16}default:return 16}}var Zo=null,ed=null,$s=null;function Nv(){if($s)return $s;var i,a=ed,c=a.length,p,y="value"in Zo?Zo.value:Zo.textContent,w=y.length;for(i=0;i<c&&a[i]===y[i];i++);var N=c-i;for(p=1;p<=N&&a[c-p]===y[w-p];p++);return $s=y.slice(i,1<p?1-p:void 0)}function Es(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Rs(){return!0}function zv(){return!1}function zr(i){function a(c,p,y,w,N){this._reactName=c,this._targetInst=y,this.type=p,this.nativeEvent=w,this.target=N,this.currentTarget=null;for(var G in i)i.hasOwnProperty(G)&&(c=i[G],this[G]=c?c(w):w[G]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Rs:zv,this.isPropagationStopped=zv,this}return W(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),a}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=zr(ra),nl=W({},ra,{view:0,detail:0}),kC=zr(nl),nd,rd,rl,Os=W({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==rl&&(rl&&i.type==="mousemove"?(nd=i.screenX-rl.screenX,rd=i.screenY-rl.screenY):rd=nd=0,rl=i),nd)},movementY:function(i){return"movementY"in i?i.movementY:rd}}),jv=zr(Os),LC=W({},Os,{dataTransfer:0}),AC=zr(LC),DC=W({},nl,{relatedTarget:0}),od=zr(DC),BC=W({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),FC=zr(BC),HC=W({},ra,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),VC=zr(HC),WC=W({},ra,{data:0}),kv=zr(WC),UC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GC={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"},KC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qC(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=KC[i])?!!a[i]:!1}function id(){return qC}var XC=W({},nl,{key:function(i){if(i.key){var a=UC[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Es(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?GC[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(i){return i.type==="keypress"?Es(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Es(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),QC=zr(XC),YC=W({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lv=zr(YC),ZC=W({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),JC=zr(ZC),ew=W({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),tw=zr(ew),nw=W({},Os,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),rw=zr(nw),ow=[9,13,27,32],ad=u&&"CompositionEvent"in window,ol=null;u&&"documentMode"in document&&(ol=document.documentMode);var iw=u&&"TextEvent"in window&&!ol,Av=u&&(!ad||ol&&8<ol&&11>=ol),Dv=" ",Bv=!1;function Fv(i,a){switch(i){case"keyup":return ow.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var oa=!1;function aw(i,a){switch(i){case"compositionend":return Hv(a);case"keypress":return a.which!==32?null:(Bv=!0,Dv);case"textInput":return i=a.data,i===Dv&&Bv?null:i;default:return null}}function lw(i,a){if(oa)return i==="compositionend"||!ad&&Fv(i,a)?(i=Nv(),$s=ed=Zo=null,oa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Av&&a.locale!=="ko"?null:a.data;default:return null}}var sw={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 Vv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!sw[i.type]:a==="textarea"}function Wv(i,a,c,p){Vt(p),a=Ms(a,"onChange"),0<a.length&&(c=new td("onChange","change",null,c,p),i.push({event:c,listeners:a}))}var il=null,al=null;function cw(i){sg(i,0)}function Is(i){var a=ca(i);if(ae(a))return i}function uw(i,a){if(i==="change")return a}var Uv=!1;if(u){var ld;if(u){var sd="oninput"in document;if(!sd){var Gv=document.createElement("div");Gv.setAttribute("oninput","return;"),sd=typeof Gv.oninput=="function"}ld=sd}else ld=!1;Uv=ld&&(!document.documentMode||9<document.documentMode)}function Kv(){il&&(il.detachEvent("onpropertychange",qv),al=il=null)}function qv(i){if(i.propertyName==="value"&&Is(al)){var a=[];Wv(a,al,i,mt(i)),Ze(cw,a)}}function dw(i,a,c){i==="focusin"?(Kv(),il=a,al=c,il.attachEvent("onpropertychange",qv)):i==="focusout"&&Kv()}function fw(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Is(al)}function mw(i,a){if(i==="click")return Is(a)}function pw(i,a){if(i==="input"||i==="change")return Is(a)}function vw(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var ao=typeof Object.is=="function"?Object.is:vw;function ll(i,a){if(ao(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),p=Object.keys(a);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var y=c[p];if(!f.call(a,y)||!ao(i[y],a[y]))return!1}return!0}function Xv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Qv(i,a){var c=Xv(i);i=0;for(var p;c;){if(c.nodeType===3){if(p=i+c.textContent.length,i<=a&&p>=a)return{node:c,offset:a-i};i=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Xv(c)}}function Yv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?Yv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Zv(){for(var i=window,a=ye();a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=ye(i.document)}return a}function cd(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function gw(i){var a=Zv(),c=i.focusedElem,p=i.selectionRange;if(a!==c&&c&&c.ownerDocument&&Yv(c.ownerDocument.documentElement,c)){if(p!==null&&cd(c)){if(a=p.start,i=p.end,i===void 0&&(i=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(i,c.value.length);else if(i=(a=c.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var y=c.textContent.length,w=Math.min(p.start,y);p=p.end===void 0?w:Math.min(p.end,y),!i.extend&&w>p&&(y=p,p=w,w=y),y=Qv(c,w);var N=Qv(c,p);y&&N&&(i.rangeCount!==1||i.anchorNode!==y.node||i.anchorOffset!==y.offset||i.focusNode!==N.node||i.focusOffset!==N.offset)&&(a=a.createRange(),a.setStart(y.node,y.offset),i.removeAllRanges(),w>p?(i.addRange(a),i.extend(N.node,N.offset)):(a.setEnd(N.node,N.offset),i.addRange(a)))}}for(a=[],i=c;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)i=a[c],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var hw=u&&"documentMode"in document&&11>=document.documentMode,ia=null,ud=null,sl=null,dd=!1;function Jv(i,a,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;dd||ia==null||ia!==ye(p)||(p=ia,"selectionStart"in p&&cd(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),sl&&ll(sl,p)||(sl=p,p=Ms(ud,"onSelect"),0<p.length&&(a=new td("onSelect","select",null,a,c),i.push({event:a,listeners:p}),a.target=ia)))}function Ps(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var aa={animationend:Ps("Animation","AnimationEnd"),animationiteration:Ps("Animation","AnimationIteration"),animationstart:Ps("Animation","AnimationStart"),transitionend:Ps("Transition","TransitionEnd")},fd={},eg={};u&&(eg=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function Ts(i){if(fd[i])return fd[i];if(!aa[i])return i;var a=aa[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in eg)return fd[i]=a[c];return i}var tg=Ts("animationend"),ng=Ts("animationiteration"),rg=Ts("animationstart"),og=Ts("transitionend"),ig=new Map,ag="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 Jo(i,a){ig.set(i,a),l(a,[i])}for(var md=0;md<ag.length;md++){var pd=ag[md],yw=pd.toLowerCase(),bw=pd[0].toUpperCase()+pd.slice(1);Jo(yw,"on"+bw)}Jo(tg,"onAnimationEnd"),Jo(ng,"onAnimationIteration"),Jo(rg,"onAnimationStart"),Jo("dblclick","onDoubleClick"),Jo("focusin","onFocus"),Jo("focusout","onBlur"),Jo(og,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cl="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(" "),Sw=new Set("cancel close invalid load scroll toggle".split(" ").concat(cl));function lg(i,a,c){var p=i.type||"unknown-event";i.currentTarget=c,Ot(p,a,void 0,i),i.currentTarget=null}function sg(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var p=i[c],y=p.event;p=p.listeners;e:{var w=void 0;if(a)for(var N=p.length-1;0<=N;N--){var G=p[N],Q=G.instance,ge=G.currentTarget;if(G=G.listener,Q!==w&&y.isPropagationStopped())break e;lg(y,G,ge),w=Q}else for(N=0;N<p.length;N++){if(G=p[N],Q=G.instance,ge=G.currentTarget,G=G.listener,Q!==w&&y.isPropagationStopped())break e;lg(y,G,ge),w=Q}}}if(Ke)throw i=Qe,Ke=!1,Qe=null,i}function En(i,a){var c=a[Cd];c===void 0&&(c=a[Cd]=new Set);var p=i+"__bubble";c.has(p)||(cg(a,i,2,!1),c.add(p))}function vd(i,a,c){var p=0;a&&(p|=4),cg(c,i,p,a)}var _s="_reactListening"+Math.random().toString(36).slice(2);function ul(i){if(!i[_s]){i[_s]=!0,r.forEach(function(c){c!=="selectionchange"&&(Sw.has(c)||vd(c,!1,i),vd(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[_s]||(a[_s]=!0,vd("selectionchange",!1,a))}}function cg(i,a,c,p){switch(Mv(a)){case 1:var y=zC;break;case 4:y=jC;break;default:y=Zu}c=y.bind(null,a,c,i),y=void 0,!at||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),p?y!==void 0?i.addEventListener(a,c,{capture:!0,passive:y}):i.addEventListener(a,c,!0):y!==void 0?i.addEventListener(a,c,{passive:y}):i.addEventListener(a,c,!1)}function gd(i,a,c,p,y){var w=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var N=p.tag;if(N===3||N===4){var G=p.stateNode.containerInfo;if(G===y||G.nodeType===8&&G.parentNode===y)break;if(N===4)for(N=p.return;N!==null;){var Q=N.tag;if((Q===3||Q===4)&&(Q=N.stateNode.containerInfo,Q===y||Q.nodeType===8&&Q.parentNode===y))return;N=N.return}for(;G!==null;){if(N=wi(G),N===null)return;if(Q=N.tag,Q===5||Q===6){p=w=N;continue e}G=G.parentNode}}p=p.return}Ze(function(){var ge=w,Te=mt(c),ze=[];e:{var Oe=ig.get(i);if(Oe!==void 0){var ot=td,pt=i;switch(i){case"keypress":if(Es(c)===0)break e;case"keydown":case"keyup":ot=QC;break;case"focusin":pt="focus",ot=od;break;case"focusout":pt="blur",ot=od;break;case"beforeblur":case"afterblur":ot=od;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ot=jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=AC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=JC;break;case tg:case ng:case rg:ot=FC;break;case og:ot=tw;break;case"scroll":ot=kC;break;case"wheel":ot=rw;break;case"copy":case"cut":case"paste":ot=VC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=Lv}var gt=(a&4)!==0,kn=!gt&&i==="scroll",le=gt?Oe!==null?Oe+"Capture":null:Oe;gt=[];for(var te=ge,de;te!==null;){de=te;var De=de.stateNode;if(de.tag===5&&De!==null&&(de=De,le!==null&&(De=yt(te,le),De!=null&&gt.push(dl(te,De,de)))),kn)break;te=te.return}0<gt.length&&(Oe=new ot(Oe,pt,null,c,Te),ze.push({event:Oe,listeners:gt}))}}if((a&7)===0){e:{if(Oe=i==="mouseover"||i==="pointerover",ot=i==="mouseout"||i==="pointerout",Oe&&c!==wt&&(pt=c.relatedTarget||c.fromElement)&&(wi(pt)||pt[No]))break e;if((ot||Oe)&&(Oe=Te.window===Te?Te:(Oe=Te.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,ot?(pt=c.relatedTarget||c.toElement,ot=ge,pt=pt?wi(pt):null,pt!==null&&(kn=It(pt),pt!==kn||pt.tag!==5&&pt.tag!==6)&&(pt=null)):(ot=null,pt=ge),ot!==pt)){if(gt=jv,De="onMouseLeave",le="onMouseEnter",te="mouse",(i==="pointerout"||i==="pointerover")&&(gt=Lv,De="onPointerLeave",le="onPointerEnter",te="pointer"),kn=ot==null?Oe:ca(ot),de=pt==null?Oe:ca(pt),Oe=new gt(De,te+"leave",ot,c,Te),Oe.target=kn,Oe.relatedTarget=de,De=null,wi(Te)===ge&&(gt=new gt(le,te+"enter",pt,c,Te),gt.target=de,gt.relatedTarget=kn,De=gt),kn=De,ot&&pt)t:{for(gt=ot,le=pt,te=0,de=gt;de;de=la(de))te++;for(de=0,De=le;De;De=la(De))de++;for(;0<te-de;)gt=la(gt),te--;for(;0<de-te;)le=la(le),de--;for(;te--;){if(gt===le||le!==null&&gt===le.alternate)break t;gt=la(gt),le=la(le)}gt=null}else gt=null;ot!==null&&ug(ze,Oe,ot,gt,!1),pt!==null&&kn!==null&&ug(ze,kn,pt,gt,!0)}}e:{if(Oe=ge?ca(ge):window,ot=Oe.nodeName&&Oe.nodeName.toLowerCase(),ot==="select"||ot==="input"&&Oe.type==="file")var ht=uw;else if(Vv(Oe))if(Uv)ht=pw;else{ht=fw;var Et=dw}else(ot=Oe.nodeName)&&ot.toLowerCase()==="input"&&(Oe.type==="checkbox"||Oe.type==="radio")&&(ht=mw);if(ht&&(ht=ht(i,ge))){Wv(ze,ht,c,Te);break e}Et&&Et(i,Oe,ge),i==="focusout"&&(Et=Oe._wrapperState)&&Et.controlled&&Oe.type==="number"&&$e(Oe,"number",Oe.value)}switch(Et=ge?ca(ge):window,i){case"focusin":(Vv(Et)||Et.contentEditable==="true")&&(ia=Et,ud=ge,sl=null);break;case"focusout":sl=ud=ia=null;break;case"mousedown":dd=!0;break;case"contextmenu":case"mouseup":case"dragend":dd=!1,Jv(ze,c,Te);break;case"selectionchange":if(hw)break;case"keydown":case"keyup":Jv(ze,c,Te)}var Rt;if(ad)e:{switch(i){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else oa?Fv(i,c)&&(Nt="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Nt="onCompositionStart");Nt&&(Av&&c.locale!=="ko"&&(oa||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&oa&&(Rt=Nv()):(Zo=Te,ed="value"in Zo?Zo.value:Zo.textContent,oa=!0)),Et=Ms(ge,Nt),0<Et.length&&(Nt=new kv(Nt,i,null,c,Te),ze.push({event:Nt,listeners:Et}),Rt?Nt.data=Rt:(Rt=Hv(c),Rt!==null&&(Nt.data=Rt)))),(Rt=iw?aw(i,c):lw(i,c))&&(ge=Ms(ge,"onBeforeInput"),0<ge.length&&(Te=new kv("onBeforeInput","beforeinput",null,c,Te),ze.push({event:Te,listeners:ge}),Te.data=Rt))}sg(ze,a)})}function dl(i,a,c){return{instance:i,listener:a,currentTarget:c}}function Ms(i,a){for(var c=a+"Capture",p=[];i!==null;){var y=i,w=y.stateNode;y.tag===5&&w!==null&&(y=w,w=yt(i,c),w!=null&&p.unshift(dl(i,w,y)),w=yt(i,a),w!=null&&p.push(dl(i,w,y))),i=i.return}return p}function la(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function ug(i,a,c,p,y){for(var w=a._reactName,N=[];c!==null&&c!==p;){var G=c,Q=G.alternate,ge=G.stateNode;if(Q!==null&&Q===p)break;G.tag===5&&ge!==null&&(G=ge,y?(Q=yt(c,w),Q!=null&&N.unshift(dl(c,Q,G))):y||(Q=yt(c,w),Q!=null&&N.push(dl(c,Q,G)))),c=c.return}N.length!==0&&i.push({event:a,listeners:N})}var xw=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function dg(i){return(typeof i=="string"?i:""+i).replace(xw,`
38
+ `).replace(Cw,"")}function Ns(i,a,c){if(a=dg(a),dg(i)!==a&&c)throw Error(n(425))}function zs(){}var hd=null,yd=null;function bd(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Sd=typeof setTimeout=="function"?setTimeout:void 0,ww=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,$w=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(i){return fg.resolve(null).then(i).catch(Ew)}:Sd;function Ew(i){setTimeout(function(){throw i})}function xd(i,a){var c=a,p=0;do{var y=c.nextSibling;if(i.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(p===0){i.removeChild(y),Yo(a);return}p--}else c!=="$"&&c!=="$?"&&c!=="$!"||p++;c=y}while(c);Yo(a)}function ei(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function mg(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return i;a--}else c==="/$"&&a++}i=i.previousSibling}return null}var sa=Math.random().toString(36).slice(2),Co="__reactFiber$"+sa,fl="__reactProps$"+sa,No="__reactContainer$"+sa,Cd="__reactEvents$"+sa,Rw="__reactListeners$"+sa,Ow="__reactHandles$"+sa;function wi(i){var a=i[Co];if(a)return a;for(var c=i.parentNode;c;){if(a=c[No]||c[Co]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=mg(i);i!==null;){if(c=i[Co])return c;i=mg(i)}return a}i=c,c=i.parentNode}return null}function ml(i){return i=i[Co]||i[No],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ca(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function js(i){return i[fl]||null}var wd=[],ua=-1;function ti(i){return{current:i}}function Rn(i){0>ua||(i.current=wd[ua],wd[ua]=null,ua--)}function wn(i,a){ua++,wd[ua]=i.current,i.current=a}var ni={},fr=ti(ni),Rr=ti(!1),$i=ni;function da(i,a){var c=i.type.contextTypes;if(!c)return ni;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={},w;for(w in c)y[w]=a[w];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=y),y}function Or(i){return i=i.childContextTypes,i!=null}function ks(){Rn(Rr),Rn(fr)}function pg(i,a,c){if(fr.current!==ni)throw Error(n(168));wn(fr,a),wn(Rr,c)}function vg(i,a,c){var p=i.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return c;p=p.getChildContext();for(var y in p)if(!(y in a))throw Error(n(108,me(i)||"Unknown",y));return W({},c,p)}function Ls(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ni,$i=fr.current,wn(fr,i),wn(Rr,Rr.current),!0}function gg(i,a,c){var p=i.stateNode;if(!p)throw Error(n(169));c?(i=vg(i,a,$i),p.__reactInternalMemoizedMergedChildContext=i,Rn(Rr),Rn(fr),wn(fr,i)):Rn(Rr),wn(Rr,c)}var zo=null,As=!1,$d=!1;function hg(i){zo===null?zo=[i]:zo.push(i)}function Iw(i){As=!0,hg(i)}function ri(){if(!$d&&zo!==null){$d=!0;var i=0,a=zt;try{var c=zo;for(zt=1;i<c.length;i++){var p=c[i];do p=p(!0);while(p!==null)}zo=null,As=!1}catch(y){throw zo!==null&&(zo=zo.slice(i+1)),Yt(Ge,ri),y}finally{zt=a,$d=!1}}return null}var fa=[],ma=0,Ds=null,Bs=0,Gr=[],Kr=0,Ei=null,jo=1,ko="";function Ri(i,a){fa[ma++]=Bs,fa[ma++]=Ds,Ds=i,Bs=a}function yg(i,a,c){Gr[Kr++]=jo,Gr[Kr++]=ko,Gr[Kr++]=Ei,Ei=i;var p=jo;i=ko;var y=32-xn(p)-1;p&=~(1<<y),c+=1;var w=32-xn(a)+y;if(30<w){var N=y-y%5;w=(p&(1<<N)-1).toString(32),p>>=N,y-=N,jo=1<<32-xn(a)+y|c<<y|p,ko=w+i}else jo=1<<w|c<<y|p,ko=i}function Ed(i){i.return!==null&&(Ri(i,1),yg(i,1,0))}function Rd(i){for(;i===Ds;)Ds=fa[--ma],fa[ma]=null,Bs=fa[--ma],fa[ma]=null;for(;i===Ei;)Ei=Gr[--Kr],Gr[Kr]=null,ko=Gr[--Kr],Gr[Kr]=null,jo=Gr[--Kr],Gr[Kr]=null}var jr=null,kr=null,Pn=!1,lo=null;function bg(i,a){var c=Yr(5,null,null,0);c.elementType="DELETED",c.stateNode=a,c.return=i,a=i.deletions,a===null?(i.deletions=[c],i.flags|=16):a.push(c)}function Sg(i,a){switch(i.tag){case 5:var c=i.type;return a=a.nodeType!==1||c.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,jr=i,kr=ei(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,jr=i,kr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(c=Ei!==null?{id:jo,overflow:ko}:null,i.memoizedState={dehydrated:a,treeContext:c,retryLane:1073741824},c=Yr(18,null,null,0),c.stateNode=a,c.return=i,i.child=c,jr=i,kr=null,!0):!1;default:return!1}}function Od(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Id(i){if(Pn){var a=kr;if(a){var c=a;if(!Sg(i,a)){if(Od(i))throw Error(n(418));a=ei(c.nextSibling);var p=jr;a&&Sg(i,a)?bg(p,c):(i.flags=i.flags&-4097|2,Pn=!1,jr=i)}}else{if(Od(i))throw Error(n(418));i.flags=i.flags&-4097|2,Pn=!1,jr=i}}}function xg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;jr=i}function Fs(i){if(i!==jr)return!1;if(!Pn)return xg(i),Pn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!bd(i.type,i.memoizedProps)),a&&(a=kr)){if(Od(i))throw Cg(),Error(n(418));for(;a;)bg(i,a),a=ei(a.nextSibling)}if(xg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="/$"){if(a===0){kr=ei(i.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++}i=i.nextSibling}kr=null}}else kr=jr?ei(i.stateNode.nextSibling):null;return!0}function Cg(){for(var i=kr;i;)i=ei(i.nextSibling)}function pa(){kr=jr=null,Pn=!1}function Pd(i){lo===null?lo=[i]:lo.push(i)}var Pw=P.ReactCurrentBatchConfig;function pl(i,a,c){if(i=c.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var p=c.stateNode}if(!p)throw Error(n(147,i));var y=p,w=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===w?a.ref:(a=function(N){var G=y.refs;N===null?delete G[w]:G[w]=N},a._stringRef=w,a)}if(typeof i!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,i))}return i}function Hs(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function wg(i){var a=i._init;return a(i._payload)}function $g(i){function a(le,te){if(i){var de=le.deletions;de===null?(le.deletions=[te],le.flags|=16):de.push(te)}}function c(le,te){if(!i)return null;for(;te!==null;)a(le,te),te=te.sibling;return null}function p(le,te){for(le=new Map;te!==null;)te.key!==null?le.set(te.key,te):le.set(te.index,te),te=te.sibling;return le}function y(le,te){return le=di(le,te),le.index=0,le.sibling=null,le}function w(le,te,de){return le.index=de,i?(de=le.alternate,de!==null?(de=de.index,de<te?(le.flags|=2,te):de):(le.flags|=2,te)):(le.flags|=1048576,te)}function N(le){return i&&le.alternate===null&&(le.flags|=2),le}function G(le,te,de,De){return te===null||te.tag!==6?(te=xf(de,le.mode,De),te.return=le,te):(te=y(te,de),te.return=le,te)}function Q(le,te,de,De){var ht=de.type;return ht===T?Te(le,te,de.props.children,De,de.key):te!==null&&(te.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&wg(ht)===te.type)?(De=y(te,de.props),De.ref=pl(le,te,de),De.return=le,De):(De=fc(de.type,de.key,de.props,null,le.mode,De),De.ref=pl(le,te,de),De.return=le,De)}function ge(le,te,de,De){return te===null||te.tag!==4||te.stateNode.containerInfo!==de.containerInfo||te.stateNode.implementation!==de.implementation?(te=Cf(de,le.mode,De),te.return=le,te):(te=y(te,de.children||[]),te.return=le,te)}function Te(le,te,de,De,ht){return te===null||te.tag!==7?(te=zi(de,le.mode,De,ht),te.return=le,te):(te=y(te,de),te.return=le,te)}function ze(le,te,de){if(typeof te=="string"&&te!==""||typeof te=="number")return te=xf(""+te,le.mode,de),te.return=le,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case O:return de=fc(te.type,te.key,te.props,null,le.mode,de),de.ref=pl(le,null,te),de.return=le,de;case I:return te=Cf(te,le.mode,de),te.return=le,te;case V:var De=te._init;return ze(le,De(te._payload),de)}if(Ae(te)||X(te))return te=zi(te,le.mode,de,null),te.return=le,te;Hs(le,te)}return null}function Oe(le,te,de,De){var ht=te!==null?te.key:null;if(typeof de=="string"&&de!==""||typeof de=="number")return ht!==null?null:G(le,te,""+de,De);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case O:return de.key===ht?Q(le,te,de,De):null;case I:return de.key===ht?ge(le,te,de,De):null;case V:return ht=de._init,Oe(le,te,ht(de._payload),De)}if(Ae(de)||X(de))return ht!==null?null:Te(le,te,de,De,null);Hs(le,de)}return null}function ot(le,te,de,De,ht){if(typeof De=="string"&&De!==""||typeof De=="number")return le=le.get(de)||null,G(te,le,""+De,ht);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case O:return le=le.get(De.key===null?de:De.key)||null,Q(te,le,De,ht);case I:return le=le.get(De.key===null?de:De.key)||null,ge(te,le,De,ht);case V:var Et=De._init;return ot(le,te,de,Et(De._payload),ht)}if(Ae(De)||X(De))return le=le.get(de)||null,Te(te,le,De,ht,null);Hs(te,De)}return null}function pt(le,te,de,De){for(var ht=null,Et=null,Rt=te,Nt=te=0,Jn=null;Rt!==null&&Nt<de.length;Nt++){Rt.index>Nt?(Jn=Rt,Rt=null):Jn=Rt.sibling;var on=Oe(le,Rt,de[Nt],De);if(on===null){Rt===null&&(Rt=Jn);break}i&&Rt&&on.alternate===null&&a(le,Rt),te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on,Rt=Jn}if(Nt===de.length)return c(le,Rt),Pn&&Ri(le,Nt),ht;if(Rt===null){for(;Nt<de.length;Nt++)Rt=ze(le,de[Nt],De),Rt!==null&&(te=w(Rt,te,Nt),Et===null?ht=Rt:Et.sibling=Rt,Et=Rt);return Pn&&Ri(le,Nt),ht}for(Rt=p(le,Rt);Nt<de.length;Nt++)Jn=ot(Rt,le,Nt,de[Nt],De),Jn!==null&&(i&&Jn.alternate!==null&&Rt.delete(Jn.key===null?Nt:Jn.key),te=w(Jn,te,Nt),Et===null?ht=Jn:Et.sibling=Jn,Et=Jn);return i&&Rt.forEach(function(fi){return a(le,fi)}),Pn&&Ri(le,Nt),ht}function gt(le,te,de,De){var ht=X(de);if(typeof ht!="function")throw Error(n(150));if(de=ht.call(de),de==null)throw Error(n(151));for(var Et=ht=null,Rt=te,Nt=te=0,Jn=null,on=de.next();Rt!==null&&!on.done;Nt++,on=de.next()){Rt.index>Nt?(Jn=Rt,Rt=null):Jn=Rt.sibling;var fi=Oe(le,Rt,on.value,De);if(fi===null){Rt===null&&(Rt=Jn);break}i&&Rt&&fi.alternate===null&&a(le,Rt),te=w(fi,te,Nt),Et===null?ht=fi:Et.sibling=fi,Et=fi,Rt=Jn}if(on.done)return c(le,Rt),Pn&&Ri(le,Nt),ht;if(Rt===null){for(;!on.done;Nt++,on=de.next())on=ze(le,on.value,De),on!==null&&(te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on);return Pn&&Ri(le,Nt),ht}for(Rt=p(le,Rt);!on.done;Nt++,on=de.next())on=ot(Rt,le,Nt,on.value,De),on!==null&&(i&&on.alternate!==null&&Rt.delete(on.key===null?Nt:on.key),te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on);return i&&Rt.forEach(function(s$){return a(le,s$)}),Pn&&Ri(le,Nt),ht}function kn(le,te,de,De){if(typeof de=="object"&&de!==null&&de.type===T&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case O:e:{for(var ht=de.key,Et=te;Et!==null;){if(Et.key===ht){if(ht=de.type,ht===T){if(Et.tag===7){c(le,Et.sibling),te=y(Et,de.props.children),te.return=le,le=te;break e}}else if(Et.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&wg(ht)===Et.type){c(le,Et.sibling),te=y(Et,de.props),te.ref=pl(le,Et,de),te.return=le,le=te;break e}c(le,Et);break}else a(le,Et);Et=Et.sibling}de.type===T?(te=zi(de.props.children,le.mode,De,de.key),te.return=le,le=te):(De=fc(de.type,de.key,de.props,null,le.mode,De),De.ref=pl(le,te,de),De.return=le,le=De)}return N(le);case I:e:{for(Et=de.key;te!==null;){if(te.key===Et)if(te.tag===4&&te.stateNode.containerInfo===de.containerInfo&&te.stateNode.implementation===de.implementation){c(le,te.sibling),te=y(te,de.children||[]),te.return=le,le=te;break e}else{c(le,te);break}else a(le,te);te=te.sibling}te=Cf(de,le.mode,De),te.return=le,le=te}return N(le);case V:return Et=de._init,kn(le,te,Et(de._payload),De)}if(Ae(de))return pt(le,te,de,De);if(X(de))return gt(le,te,de,De);Hs(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"?(de=""+de,te!==null&&te.tag===6?(c(le,te.sibling),te=y(te,de),te.return=le,le=te):(c(le,te),te=xf(de,le.mode,De),te.return=le,le=te),N(le)):c(le,te)}return kn}var va=$g(!0),Eg=$g(!1),Vs=ti(null),Ws=null,ga=null,Td=null;function _d(){Td=ga=Ws=null}function Md(i){var a=Vs.current;Rn(Vs),i._currentValue=a}function Nd(i,a,c){for(;i!==null;){var p=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),i===c)break;i=i.return}}function ha(i,a){Ws=i,Td=ga=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Ir=!0),i.firstContext=null)}function qr(i){var a=i._currentValue;if(Td!==i)if(i={context:i,memoizedValue:a,next:null},ga===null){if(Ws===null)throw Error(n(308));ga=i,Ws.dependencies={lanes:0,firstContext:i}}else ga=ga.next=i;return a}var Oi=null;function zd(i){Oi===null?Oi=[i]:Oi.push(i)}function Rg(i,a,c,p){var y=a.interleaved;return y===null?(c.next=c,zd(a)):(c.next=y.next,y.next=c),a.interleaved=c,Lo(i,p)}function Lo(i,a){i.lanes|=a;var c=i.alternate;for(c!==null&&(c.lanes|=a),c=i,i=i.return;i!==null;)i.childLanes|=a,c=i.alternate,c!==null&&(c.childLanes|=a),c=i,i=i.return;return c.tag===3?c.stateNode:null}var oi=!1;function jd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Og(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ao(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function ii(i,a,c){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(en&2)!==0){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,Lo(i,c)}return y=p.interleaved,y===null?(a.next=a,zd(p)):(a.next=y.next,y.next=a),p.interleaved=a,Lo(i,c)}function Us(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194240)!==0)){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,jn(i,c)}}function Ig(i,a){var c=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var y=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var N={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};w===null?y=w=N:w=w.next=N,c=c.next}while(c!==null);w===null?y=w=a:w=w.next=a}else y=w=a;c={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}function Gs(i,a,c,p){var y=i.updateQueue;oi=!1;var w=y.firstBaseUpdate,N=y.lastBaseUpdate,G=y.shared.pending;if(G!==null){y.shared.pending=null;var Q=G,ge=Q.next;Q.next=null,N===null?w=ge:N.next=ge,N=Q;var Te=i.alternate;Te!==null&&(Te=Te.updateQueue,G=Te.lastBaseUpdate,G!==N&&(G===null?Te.firstBaseUpdate=ge:G.next=ge,Te.lastBaseUpdate=Q))}if(w!==null){var ze=y.baseState;N=0,Te=ge=Q=null,G=w;do{var Oe=G.lane,ot=G.eventTime;if((p&Oe)===Oe){Te!==null&&(Te=Te.next={eventTime:ot,lane:0,tag:G.tag,payload:G.payload,callback:G.callback,next:null});e:{var pt=i,gt=G;switch(Oe=a,ot=c,gt.tag){case 1:if(pt=gt.payload,typeof pt=="function"){ze=pt.call(ot,ze,Oe);break e}ze=pt;break e;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=gt.payload,Oe=typeof pt=="function"?pt.call(ot,ze,Oe):pt,Oe==null)break e;ze=W({},ze,Oe);break e;case 2:oi=!0}}G.callback!==null&&G.lane!==0&&(i.flags|=64,Oe=y.effects,Oe===null?y.effects=[G]:Oe.push(G))}else ot={eventTime:ot,lane:Oe,tag:G.tag,payload:G.payload,callback:G.callback,next:null},Te===null?(ge=Te=ot,Q=ze):Te=Te.next=ot,N|=Oe;if(G=G.next,G===null){if(G=y.shared.pending,G===null)break;Oe=G,G=Oe.next,Oe.next=null,y.lastBaseUpdate=Oe,y.shared.pending=null}}while(!0);if(Te===null&&(Q=ze),y.baseState=Q,y.firstBaseUpdate=ge,y.lastBaseUpdate=Te,a=y.shared.interleaved,a!==null){y=a;do N|=y.lane,y=y.next;while(y!==a)}else w===null&&(y.shared.lanes=0);Ti|=N,i.lanes=N,i.memoizedState=ze}}function Pg(i,a,c){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var p=i[a],y=p.callback;if(y!==null){if(p.callback=null,p=c,typeof y!="function")throw Error(n(191,y));y.call(p)}}}var vl={},wo=ti(vl),gl=ti(vl),hl=ti(vl);function Ii(i){if(i===vl)throw Error(n(174));return i}function kd(i,a){switch(wn(hl,a),wn(gl,i),wn(wo,vl),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:bt(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=bt(a,i)}Rn(wo),wn(wo,a)}function ya(){Rn(wo),Rn(gl),Rn(hl)}function Tg(i){Ii(hl.current);var a=Ii(wo.current),c=bt(a,i.type);a!==c&&(wn(gl,i),wn(wo,c))}function Ld(i){gl.current===i&&(Rn(wo),Rn(gl))}var _n=ti(0);function Ks(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ad=[];function Dd(){for(var i=0;i<Ad.length;i++)Ad[i]._workInProgressVersionPrimary=null;Ad.length=0}var qs=P.ReactCurrentDispatcher,Bd=P.ReactCurrentBatchConfig,Pi=0,Mn=null,Un=null,Yn=null,Xs=!1,yl=!1,bl=0,Tw=0;function mr(){throw Error(n(321))}function Fd(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!ao(i[c],a[c]))return!1;return!0}function Hd(i,a,c,p,y,w){if(Pi=w,Mn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,qs.current=i===null||i.memoizedState===null?zw:jw,i=c(p,y),yl){w=0;do{if(yl=!1,bl=0,25<=w)throw Error(n(301));w+=1,Yn=Un=null,a.updateQueue=null,qs.current=kw,i=c(p,y)}while(yl)}if(qs.current=Zs,a=Un!==null&&Un.next!==null,Pi=0,Yn=Un=Mn=null,Xs=!1,a)throw Error(n(300));return i}function Vd(){var i=bl!==0;return bl=0,i}function $o(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?Mn.memoizedState=Yn=i:Yn=Yn.next=i,Yn}function Xr(){if(Un===null){var i=Mn.alternate;i=i!==null?i.memoizedState:null}else i=Un.next;var a=Yn===null?Mn.memoizedState:Yn.next;if(a!==null)Yn=a,Un=i;else{if(i===null)throw Error(n(310));Un=i,i={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},Yn===null?Mn.memoizedState=Yn=i:Yn=Yn.next=i}return Yn}function Sl(i,a){return typeof a=="function"?a(i):a}function Wd(i){var a=Xr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=Un,y=p.baseQueue,w=c.pending;if(w!==null){if(y!==null){var N=y.next;y.next=w.next,w.next=N}p.baseQueue=y=w,c.pending=null}if(y!==null){w=y.next,p=p.baseState;var G=N=null,Q=null,ge=w;do{var Te=ge.lane;if((Pi&Te)===Te)Q!==null&&(Q=Q.next={lane:0,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),p=ge.hasEagerState?ge.eagerState:i(p,ge.action);else{var ze={lane:Te,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null};Q===null?(G=Q=ze,N=p):Q=Q.next=ze,Mn.lanes|=Te,Ti|=Te}ge=ge.next}while(ge!==null&&ge!==w);Q===null?N=p:Q.next=G,ao(p,a.memoizedState)||(Ir=!0),a.memoizedState=p,a.baseState=N,a.baseQueue=Q,c.lastRenderedState=p}if(i=c.interleaved,i!==null){y=i;do w=y.lane,Mn.lanes|=w,Ti|=w,y=y.next;while(y!==i)}else y===null&&(c.lanes=0);return[a.memoizedState,c.dispatch]}function Ud(i){var a=Xr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=i;var p=c.dispatch,y=c.pending,w=a.memoizedState;if(y!==null){c.pending=null;var N=y=y.next;do w=i(w,N.action),N=N.next;while(N!==y);ao(w,a.memoizedState)||(Ir=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),c.lastRenderedState=w}return[w,p]}function _g(){}function Mg(i,a){var c=Mn,p=Xr(),y=a(),w=!ao(p.memoizedState,y);if(w&&(p.memoizedState=y,Ir=!0),p=p.queue,Gd(jg.bind(null,c,p,i),[i]),p.getSnapshot!==a||w||Yn!==null&&Yn.memoizedState.tag&1){if(c.flags|=2048,xl(9,zg.bind(null,c,p,y,a),void 0,null),Zn===null)throw Error(n(349));(Pi&30)!==0||Ng(c,a,y)}return y}function Ng(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=Mn.updateQueue,a===null?(a={lastEffect:null,stores:null},Mn.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function zg(i,a,c,p){a.value=c,a.getSnapshot=p,kg(a)&&Lg(i)}function jg(i,a,c){return c(function(){kg(a)&&Lg(i)})}function kg(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!ao(i,c)}catch{return!0}}function Lg(i){var a=Lo(i,1);a!==null&&fo(a,i,1,-1)}function Ag(i){var a=$o();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:i},a.queue=i,i=i.dispatch=Nw.bind(null,Mn,i),[a.memoizedState,i]}function xl(i,a,c,p){return i={tag:i,create:a,destroy:c,deps:p,next:null},a=Mn.updateQueue,a===null?(a={lastEffect:null,stores:null},Mn.updateQueue=a,a.lastEffect=i.next=i):(c=a.lastEffect,c===null?a.lastEffect=i.next=i:(p=c.next,c.next=i,i.next=p,a.lastEffect=i)),i}function Dg(){return Xr().memoizedState}function Qs(i,a,c,p){var y=$o();Mn.flags|=i,y.memoizedState=xl(1|a,c,void 0,p===void 0?null:p)}function Ys(i,a,c,p){var y=Xr();p=p===void 0?null:p;var w=void 0;if(Un!==null){var N=Un.memoizedState;if(w=N.destroy,p!==null&&Fd(p,N.deps)){y.memoizedState=xl(a,c,w,p);return}}Mn.flags|=i,y.memoizedState=xl(1|a,c,w,p)}function Bg(i,a){return Qs(8390656,8,i,a)}function Gd(i,a){return Ys(2048,8,i,a)}function Fg(i,a){return Ys(4,2,i,a)}function Hg(i,a){return Ys(4,4,i,a)}function Vg(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function Wg(i,a,c){return c=c!=null?c.concat([i]):null,Ys(4,4,Vg.bind(null,a,i),c)}function Kd(){}function Ug(i,a){var c=Xr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Fd(a,p[1])?p[0]:(c.memoizedState=[i,a],i)}function Gg(i,a){var c=Xr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Fd(a,p[1])?p[0]:(i=i(),c.memoizedState=[i,a],i)}function Kg(i,a,c){return(Pi&21)===0?(i.baseState&&(i.baseState=!1,Ir=!0),i.memoizedState=c):(ao(c,a)||(c=Qt(),Mn.lanes|=c,Ti|=c,i.baseState=!0),a)}function _w(i,a){var c=zt;zt=c!==0&&4>c?c:4,i(!0);var p=Bd.transition;Bd.transition={};try{i(!1),a()}finally{zt=c,Bd.transition=p}}function qg(){return Xr().memoizedState}function Mw(i,a,c){var p=ci(i);if(c={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null},Xg(i))Qg(a,c);else if(c=Rg(i,a,c,p),c!==null){var y=xr();fo(c,i,p,y),Yg(c,a,p)}}function Nw(i,a,c){var p=ci(i),y={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null};if(Xg(i))Qg(a,y);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var N=a.lastRenderedState,G=w(N,c);if(y.hasEagerState=!0,y.eagerState=G,ao(G,N)){var Q=a.interleaved;Q===null?(y.next=y,zd(a)):(y.next=Q.next,Q.next=y),a.interleaved=y;return}}catch{}finally{}c=Rg(i,a,y,p),c!==null&&(y=xr(),fo(c,i,p,y),Yg(c,a,p))}}function Xg(i){var a=i.alternate;return i===Mn||a!==null&&a===Mn}function Qg(i,a){yl=Xs=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function Yg(i,a,c){if((c&4194240)!==0){var p=a.lanes;p&=i.pendingLanes,c|=p,a.lanes=c,jn(i,c)}}var Zs={readContext:qr,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useInsertionEffect:mr,useLayoutEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useMutableSource:mr,useSyncExternalStore:mr,useId:mr,unstable_isNewReconciler:!1},zw={readContext:qr,useCallback:function(i,a){return $o().memoizedState=[i,a===void 0?null:a],i},useContext:qr,useEffect:Bg,useImperativeHandle:function(i,a,c){return c=c!=null?c.concat([i]):null,Qs(4194308,4,Vg.bind(null,a,i),c)},useLayoutEffect:function(i,a){return Qs(4194308,4,i,a)},useInsertionEffect:function(i,a){return Qs(4,2,i,a)},useMemo:function(i,a){var c=$o();return a=a===void 0?null:a,i=i(),c.memoizedState=[i,a],i},useReducer:function(i,a,c){var p=$o();return a=c!==void 0?c(a):a,p.memoizedState=p.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},p.queue=i,i=i.dispatch=Mw.bind(null,Mn,i),[p.memoizedState,i]},useRef:function(i){var a=$o();return i={current:i},a.memoizedState=i},useState:Ag,useDebugValue:Kd,useDeferredValue:function(i){return $o().memoizedState=i},useTransition:function(){var i=Ag(!1),a=i[0];return i=_w.bind(null,i[1]),$o().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,c){var p=Mn,y=$o();if(Pn){if(c===void 0)throw Error(n(407));c=c()}else{if(c=a(),Zn===null)throw Error(n(349));(Pi&30)!==0||Ng(p,a,c)}y.memoizedState=c;var w={value:c,getSnapshot:a};return y.queue=w,Bg(jg.bind(null,p,w,i),[i]),p.flags|=2048,xl(9,zg.bind(null,p,w,c,a),void 0,null),c},useId:function(){var i=$o(),a=Zn.identifierPrefix;if(Pn){var c=ko,p=jo;c=(p&~(1<<32-xn(p)-1)).toString(32)+c,a=":"+a+"R"+c,c=bl++,0<c&&(a+="H"+c.toString(32)),a+=":"}else c=Tw++,a=":"+a+"r"+c.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},jw={readContext:qr,useCallback:Ug,useContext:qr,useEffect:Gd,useImperativeHandle:Wg,useInsertionEffect:Fg,useLayoutEffect:Hg,useMemo:Gg,useReducer:Wd,useRef:Dg,useState:function(){return Wd(Sl)},useDebugValue:Kd,useDeferredValue:function(i){var a=Xr();return Kg(a,Un.memoizedState,i)},useTransition:function(){var i=Wd(Sl)[0],a=Xr().memoizedState;return[i,a]},useMutableSource:_g,useSyncExternalStore:Mg,useId:qg,unstable_isNewReconciler:!1},kw={readContext:qr,useCallback:Ug,useContext:qr,useEffect:Gd,useImperativeHandle:Wg,useInsertionEffect:Fg,useLayoutEffect:Hg,useMemo:Gg,useReducer:Ud,useRef:Dg,useState:function(){return Ud(Sl)},useDebugValue:Kd,useDeferredValue:function(i){var a=Xr();return Un===null?a.memoizedState=i:Kg(a,Un.memoizedState,i)},useTransition:function(){var i=Ud(Sl)[0],a=Xr().memoizedState;return[i,a]},useMutableSource:_g,useSyncExternalStore:Mg,useId:qg,unstable_isNewReconciler:!1};function so(i,a){if(i&&i.defaultProps){a=W({},a),i=i.defaultProps;for(var c in i)a[c]===void 0&&(a[c]=i[c]);return a}return a}function qd(i,a,c,p){a=i.memoizedState,c=c(p,a),c=c==null?a:W({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var Js={isMounted:function(i){return(i=i._reactInternals)?It(i)===i:!1},enqueueSetState:function(i,a,c){i=i._reactInternals;var p=xr(),y=ci(i),w=Ao(p,y);w.payload=a,c!=null&&(w.callback=c),a=ii(i,w,y),a!==null&&(fo(a,i,y,p),Us(a,i,y))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var p=xr(),y=ci(i),w=Ao(p,y);w.tag=1,w.payload=a,c!=null&&(w.callback=c),a=ii(i,w,y),a!==null&&(fo(a,i,y,p),Us(a,i,y))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=xr(),p=ci(i),y=Ao(c,p);y.tag=2,a!=null&&(y.callback=a),a=ii(i,y,p),a!==null&&(fo(a,i,p,c),Us(a,i,p))}};function Zg(i,a,c,p,y,w,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,w,N):a.prototype&&a.prototype.isPureReactComponent?!ll(c,p)||!ll(y,w):!0}function Jg(i,a,c){var p=!1,y=ni,w=a.contextType;return typeof w=="object"&&w!==null?w=qr(w):(y=Or(a)?$i:fr.current,p=a.contextTypes,w=(p=p!=null)?da(i,y):ni),a=new a(c,w),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Js,i.stateNode=a,a._reactInternals=i,p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=y,i.__reactInternalMemoizedMaskedChildContext=w),a}function eh(i,a,c,p){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,p),a.state!==i&&Js.enqueueReplaceState(a,a.state,null)}function Xd(i,a,c,p){var y=i.stateNode;y.props=c,y.state=i.memoizedState,y.refs={},jd(i);var w=a.contextType;typeof w=="object"&&w!==null?y.context=qr(w):(w=Or(a)?$i:fr.current,y.context=da(i,w)),y.state=i.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(qd(i,a,w,c),y.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(a=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),a!==y.state&&Js.enqueueReplaceState(y,y.state,null),Gs(i,c,y,p),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308)}function ba(i,a){try{var c="",p=a;do c+=Z(p),p=p.return;while(p);var y=c}catch(w){y=`
39
+ Error generating stack: `+w.message+`
40
+ `+w.stack}return{value:i,source:a,stack:y,digest:null}}function Qd(i,a,c){return{value:i,source:null,stack:c??null,digest:a??null}}function Yd(i,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var Lw=typeof WeakMap=="function"?WeakMap:Map;function th(i,a,c){c=Ao(-1,c),c.tag=3,c.payload={element:null};var p=a.value;return c.callback=function(){ac||(ac=!0,mf=p),Yd(i,a)},c}function nh(i,a,c){c=Ao(-1,c),c.tag=3;var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;c.payload=function(){return p(y)},c.callback=function(){Yd(i,a)}}var w=i.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(c.callback=function(){Yd(i,a),typeof p!="function"&&(li===null?li=new Set([this]):li.add(this));var N=a.stack;this.componentDidCatch(a.value,{componentStack:N!==null?N:""})}),c}function rh(i,a,c){var p=i.pingCache;if(p===null){p=i.pingCache=new Lw;var y=new Set;p.set(a,y)}else y=p.get(a),y===void 0&&(y=new Set,p.set(a,y));y.has(c)||(y.add(c),i=Yw.bind(null,i,a,c),a.then(i,i))}function oh(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function ih(i,a,c,p,y){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=Ao(-1,1),a.tag=2,ii(c,a,1))),c.lanes|=1),i):(i.flags|=65536,i.lanes=y,i)}var Aw=P.ReactCurrentOwner,Ir=!1;function Sr(i,a,c,p){a.child=i===null?Eg(a,null,c,p):va(a,i.child,c,p)}function ah(i,a,c,p,y){c=c.render;var w=a.ref;return ha(a,y),p=Hd(i,a,c,p,w,y),c=Vd(),i!==null&&!Ir?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~y,Do(i,a,y)):(Pn&&c&&Ed(a),a.flags|=1,Sr(i,a,p,y),a.child)}function lh(i,a,c,p,y){if(i===null){var w=c.type;return typeof w=="function"&&!Sf(w)&&w.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=w,sh(i,a,w,p,y)):(i=fc(c.type,null,p,a,a.mode,y),i.ref=a.ref,i.return=a,a.child=i)}if(w=i.child,(i.lanes&y)===0){var N=w.memoizedProps;if(c=c.compare,c=c!==null?c:ll,c(N,p)&&i.ref===a.ref)return Do(i,a,y)}return a.flags|=1,i=di(w,p),i.ref=a.ref,i.return=a,a.child=i}function sh(i,a,c,p,y){if(i!==null){var w=i.memoizedProps;if(ll(w,p)&&i.ref===a.ref)if(Ir=!1,a.pendingProps=p=w,(i.lanes&y)!==0)(i.flags&131072)!==0&&(Ir=!0);else return a.lanes=i.lanes,Do(i,a,y)}return Zd(i,a,c,p,y)}function ch(i,a,c){var p=a.pendingProps,y=p.children,w=i!==null?i.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},wn(xa,Lr),Lr|=c;else{if((c&1073741824)===0)return i=w!==null?w.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,wn(xa,Lr),Lr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=w!==null?w.baseLanes:c,wn(xa,Lr),Lr|=p}else w!==null?(p=w.baseLanes|c,a.memoizedState=null):p=c,wn(xa,Lr),Lr|=p;return Sr(i,a,y,c),a.child}function uh(i,a){var c=a.ref;(i===null&&c!==null||i!==null&&i.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Zd(i,a,c,p,y){var w=Or(c)?$i:fr.current;return w=da(a,w),ha(a,y),c=Hd(i,a,c,p,w,y),p=Vd(),i!==null&&!Ir?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~y,Do(i,a,y)):(Pn&&p&&Ed(a),a.flags|=1,Sr(i,a,c,y),a.child)}function dh(i,a,c,p,y){if(Or(c)){var w=!0;Ls(a)}else w=!1;if(ha(a,y),a.stateNode===null)tc(i,a),Jg(a,c,p),Xd(a,c,p,y),p=!0;else if(i===null){var N=a.stateNode,G=a.memoizedProps;N.props=G;var Q=N.context,ge=c.contextType;typeof ge=="object"&&ge!==null?ge=qr(ge):(ge=Or(c)?$i:fr.current,ge=da(a,ge));var Te=c.getDerivedStateFromProps,ze=typeof Te=="function"||typeof N.getSnapshotBeforeUpdate=="function";ze||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(G!==p||Q!==ge)&&eh(a,N,p,ge),oi=!1;var Oe=a.memoizedState;N.state=Oe,Gs(a,p,N,y),Q=a.memoizedState,G!==p||Oe!==Q||Rr.current||oi?(typeof Te=="function"&&(qd(a,c,Te,p),Q=a.memoizedState),(G=oi||Zg(a,c,G,p,Oe,Q,ge))?(ze||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(a.flags|=4194308)):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=Q),N.props=p,N.state=Q,N.context=ge,p=G):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{N=a.stateNode,Og(i,a),G=a.memoizedProps,ge=a.type===a.elementType?G:so(a.type,G),N.props=ge,ze=a.pendingProps,Oe=N.context,Q=c.contextType,typeof Q=="object"&&Q!==null?Q=qr(Q):(Q=Or(c)?$i:fr.current,Q=da(a,Q));var ot=c.getDerivedStateFromProps;(Te=typeof ot=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(G!==ze||Oe!==Q)&&eh(a,N,p,Q),oi=!1,Oe=a.memoizedState,N.state=Oe,Gs(a,p,N,y);var pt=a.memoizedState;G!==ze||Oe!==pt||Rr.current||oi?(typeof ot=="function"&&(qd(a,c,ot,p),pt=a.memoizedState),(ge=oi||Zg(a,c,ge,p,Oe,pt,Q)||!1)?(Te||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(p,pt,Q),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(p,pt,Q)),typeof N.componentDidUpdate=="function"&&(a.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof N.componentDidUpdate!="function"||G===i.memoizedProps&&Oe===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||G===i.memoizedProps&&Oe===i.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=pt),N.props=p,N.state=pt,N.context=Q,p=ge):(typeof N.componentDidUpdate!="function"||G===i.memoizedProps&&Oe===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||G===i.memoizedProps&&Oe===i.memoizedState||(a.flags|=1024),p=!1)}return Jd(i,a,c,p,w,y)}function Jd(i,a,c,p,y,w){uh(i,a);var N=(a.flags&128)!==0;if(!p&&!N)return y&&gg(a,c,!1),Do(i,a,w);p=a.stateNode,Aw.current=a;var G=N&&typeof c.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,i!==null&&N?(a.child=va(a,i.child,null,w),a.child=va(a,null,G,w)):Sr(i,a,G,w),a.memoizedState=p.state,y&&gg(a,c,!0),a.child}function fh(i){var a=i.stateNode;a.pendingContext?pg(i,a.pendingContext,a.pendingContext!==a.context):a.context&&pg(i,a.context,!1),kd(i,a.containerInfo)}function mh(i,a,c,p,y){return pa(),Pd(y),a.flags|=256,Sr(i,a,c,p),a.child}var ef={dehydrated:null,treeContext:null,retryLane:0};function tf(i){return{baseLanes:i,cachePool:null,transitions:null}}function ph(i,a,c){var p=a.pendingProps,y=_n.current,w=!1,N=(a.flags&128)!==0,G;if((G=N)||(G=i!==null&&i.memoizedState===null?!1:(y&2)!==0),G?(w=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(y|=1),wn(_n,y&1),i===null)return Id(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(N=p.children,i=p.fallback,w?(p=a.mode,w=a.child,N={mode:"hidden",children:N},(p&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=N):w=mc(N,p,0,null),i=zi(i,p,c,null),w.return=a,i.return=a,w.sibling=i,a.child=w,a.child.memoizedState=tf(c),a.memoizedState=ef,i):nf(a,N));if(y=i.memoizedState,y!==null&&(G=y.dehydrated,G!==null))return Dw(i,a,N,p,G,y,c);if(w){w=p.fallback,N=a.mode,y=i.child,G=y.sibling;var Q={mode:"hidden",children:p.children};return(N&1)===0&&a.child!==y?(p=a.child,p.childLanes=0,p.pendingProps=Q,a.deletions=null):(p=di(y,Q),p.subtreeFlags=y.subtreeFlags&14680064),G!==null?w=di(G,w):(w=zi(w,N,c,null),w.flags|=2),w.return=a,p.return=a,p.sibling=w,a.child=p,p=w,w=a.child,N=i.child.memoizedState,N=N===null?tf(c):{baseLanes:N.baseLanes|c,cachePool:null,transitions:N.transitions},w.memoizedState=N,w.childLanes=i.childLanes&~c,a.memoizedState=ef,p}return w=i.child,i=w.sibling,p=di(w,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=c),p.return=a,p.sibling=null,i!==null&&(c=a.deletions,c===null?(a.deletions=[i],a.flags|=16):c.push(i)),a.child=p,a.memoizedState=null,p}function nf(i,a){return a=mc({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function ec(i,a,c,p){return p!==null&&Pd(p),va(a,i.child,null,c),i=nf(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function Dw(i,a,c,p,y,w,N){if(c)return a.flags&256?(a.flags&=-257,p=Qd(Error(n(422))),ec(i,a,N,p)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(w=p.fallback,y=a.mode,p=mc({mode:"visible",children:p.children},y,0,null),w=zi(w,y,N,null),w.flags|=2,p.return=a,w.return=a,p.sibling=w,a.child=p,(a.mode&1)!==0&&va(a,i.child,null,N),a.child.memoizedState=tf(N),a.memoizedState=ef,w);if((a.mode&1)===0)return ec(i,a,N,null);if(y.data==="$!"){if(p=y.nextSibling&&y.nextSibling.dataset,p)var G=p.dgst;return p=G,w=Error(n(419)),p=Qd(w,p,void 0),ec(i,a,N,p)}if(G=(N&i.childLanes)!==0,Ir||G){if(p=Zn,p!==null){switch(N&-N){case 4:y=2;break;case 16:y=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:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(p.suspendedLanes|N))!==0?0:y,y!==0&&y!==w.retryLane&&(w.retryLane=y,Lo(i,y),fo(p,i,y,-1))}return bf(),p=Qd(Error(n(421))),ec(i,a,N,p)}return y.data==="$?"?(a.flags|=128,a.child=i.child,a=Zw.bind(null,i),y._reactRetry=a,null):(i=w.treeContext,kr=ei(y.nextSibling),jr=a,Pn=!0,lo=null,i!==null&&(Gr[Kr++]=jo,Gr[Kr++]=ko,Gr[Kr++]=Ei,jo=i.id,ko=i.overflow,Ei=a),a=nf(a,p.children),a.flags|=4096,a)}function vh(i,a,c){i.lanes|=a;var p=i.alternate;p!==null&&(p.lanes|=a),Nd(i.return,a,c)}function rf(i,a,c,p,y){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:y}:(w.isBackwards=a,w.rendering=null,w.renderingStartTime=0,w.last=p,w.tail=c,w.tailMode=y)}function gh(i,a,c){var p=a.pendingProps,y=p.revealOrder,w=p.tail;if(Sr(i,a,p.children,c),p=_n.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&vh(i,c,a);else if(i.tag===19)vh(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}if(wn(_n,p),(a.mode&1)===0)a.memoizedState=null;else switch(y){case"forwards":for(c=a.child,y=null;c!==null;)i=c.alternate,i!==null&&Ks(i)===null&&(y=c),c=c.sibling;c=y,c===null?(y=a.child,a.child=null):(y=c.sibling,c.sibling=null),rf(a,!1,y,c,w);break;case"backwards":for(c=null,y=a.child,a.child=null;y!==null;){if(i=y.alternate,i!==null&&Ks(i)===null){a.child=y;break}i=y.sibling,y.sibling=c,c=y,y=i}rf(a,!0,c,null,w);break;case"together":rf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function tc(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Do(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),Ti|=a.lanes,(c&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,c=di(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=di(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function Bw(i,a,c){switch(a.tag){case 3:fh(a),pa();break;case 5:Tg(a);break;case 1:Or(a.type)&&Ls(a);break;case 4:kd(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,y=a.memoizedProps.value;wn(Vs,p._currentValue),p._currentValue=y;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(wn(_n,_n.current&1),a.flags|=128,null):(c&a.child.childLanes)!==0?ph(i,a,c):(wn(_n,_n.current&1),i=Do(i,a,c),i!==null?i.sibling:null);wn(_n,_n.current&1);break;case 19:if(p=(c&a.childLanes)!==0,(i.flags&128)!==0){if(p)return gh(i,a,c);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),wn(_n,_n.current),p)break;return null;case 22:case 23:return a.lanes=0,ch(i,a,c)}return Do(i,a,c)}var hh,of,yh,bh;hh=function(i,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},of=function(){},yh=function(i,a,c,p){var y=i.memoizedProps;if(y!==p){i=a.stateNode,Ii(wo.current);var w=null;switch(c){case"input":y=he(i,y),p=he(i,p),w=[];break;case"select":y=W({},y,{value:void 0}),p=W({},p,{value:void 0}),w=[];break;case"textarea":y=Ie(i,y),p=Ie(i,p),w=[];break;default:typeof y.onClick!="function"&&typeof p.onClick=="function"&&(i.onclick=zs)}Pe(c,p);var N;c=null;for(ge in y)if(!p.hasOwnProperty(ge)&&y.hasOwnProperty(ge)&&y[ge]!=null)if(ge==="style"){var G=y[ge];for(N in G)G.hasOwnProperty(N)&&(c||(c={}),c[N]="")}else ge!=="dangerouslySetInnerHTML"&&ge!=="children"&&ge!=="suppressContentEditableWarning"&&ge!=="suppressHydrationWarning"&&ge!=="autoFocus"&&(o.hasOwnProperty(ge)?w||(w=[]):(w=w||[]).push(ge,null));for(ge in p){var Q=p[ge];if(G=y!=null?y[ge]:void 0,p.hasOwnProperty(ge)&&Q!==G&&(Q!=null||G!=null))if(ge==="style")if(G){for(N in G)!G.hasOwnProperty(N)||Q&&Q.hasOwnProperty(N)||(c||(c={}),c[N]="");for(N in Q)Q.hasOwnProperty(N)&&G[N]!==Q[N]&&(c||(c={}),c[N]=Q[N])}else c||(w||(w=[]),w.push(ge,c)),c=Q;else ge==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,G=G?G.__html:void 0,Q!=null&&G!==Q&&(w=w||[]).push(ge,Q)):ge==="children"?typeof Q!="string"&&typeof Q!="number"||(w=w||[]).push(ge,""+Q):ge!=="suppressContentEditableWarning"&&ge!=="suppressHydrationWarning"&&(o.hasOwnProperty(ge)?(Q!=null&&ge==="onScroll"&&En("scroll",i),w||G===Q||(w=[])):(w=w||[]).push(ge,Q))}c&&(w=w||[]).push("style",c);var ge=w;(a.updateQueue=ge)&&(a.flags|=4)}},bh=function(i,a,c,p){c!==p&&(a.flags|=4)};function Cl(i,a){if(!Pn)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function pr(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,p=0;if(a)for(var y=i.child;y!==null;)c|=y.lanes|y.childLanes,p|=y.subtreeFlags&14680064,p|=y.flags&14680064,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)c|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=p,i.childLanes=c,a}function Fw(i,a,c){var p=a.pendingProps;switch(Rd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(a),null;case 1:return Or(a.type)&&ks(),pr(a),null;case 3:return p=a.stateNode,ya(),Rn(Rr),Rn(fr),Dd(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Fs(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,lo!==null&&(gf(lo),lo=null))),of(i,a),pr(a),null;case 5:Ld(a);var y=Ii(hl.current);if(c=a.type,i!==null&&a.stateNode!=null)yh(i,a,c,p,y),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(n(166));return pr(a),null}if(i=Ii(wo.current),Fs(a)){p=a.stateNode,c=a.type;var w=a.memoizedProps;switch(p[Co]=a,p[fl]=w,i=(a.mode&1)!==0,c){case"dialog":En("cancel",p),En("close",p);break;case"iframe":case"object":case"embed":En("load",p);break;case"video":case"audio":for(y=0;y<cl.length;y++)En(cl[y],p);break;case"source":En("error",p);break;case"img":case"image":case"link":En("error",p),En("load",p);break;case"details":En("toggle",p);break;case"input":ve(p,w),En("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!w.multiple},En("invalid",p);break;case"textarea":Le(p,w),En("invalid",p)}Pe(c,w),y=null;for(var N in w)if(w.hasOwnProperty(N)){var G=w[N];N==="children"?typeof G=="string"?p.textContent!==G&&(w.suppressHydrationWarning!==!0&&Ns(p.textContent,G,i),y=["children",G]):typeof G=="number"&&p.textContent!==""+G&&(w.suppressHydrationWarning!==!0&&Ns(p.textContent,G,i),y=["children",""+G]):o.hasOwnProperty(N)&&G!=null&&N==="onScroll"&&En("scroll",p)}switch(c){case"input":fe(p),we(p,w,!0);break;case"textarea":fe(p),tt(p);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(p.onclick=zs)}p=y,a.updateQueue=p,p!==null&&(a.flags|=4)}else{N=y.nodeType===9?y:y.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=lt(c)),i==="http://www.w3.org/1999/xhtml"?c==="script"?(i=N.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=N.createElement(c,{is:p.is}):(i=N.createElement(c),c==="select"&&(N=i,p.multiple?N.multiple=!0:p.size&&(N.size=p.size))):i=N.createElementNS(i,c),i[Co]=a,i[fl]=p,hh(i,a,!1,!1),a.stateNode=i;e:{switch(N=Fe(c,p),c){case"dialog":En("cancel",i),En("close",i),y=p;break;case"iframe":case"object":case"embed":En("load",i),y=p;break;case"video":case"audio":for(y=0;y<cl.length;y++)En(cl[y],i);y=p;break;case"source":En("error",i),y=p;break;case"img":case"image":case"link":En("error",i),En("load",i),y=p;break;case"details":En("toggle",i),y=p;break;case"input":ve(i,p),y=he(i,p),En("invalid",i);break;case"option":y=p;break;case"select":i._wrapperState={wasMultiple:!!p.multiple},y=W({},p,{value:void 0}),En("invalid",i);break;case"textarea":Le(i,p),y=Ie(i,p),En("invalid",i);break;default:y=p}Pe(c,y),G=y;for(w in G)if(G.hasOwnProperty(w)){var Q=G[w];w==="style"?_e(i,Q):w==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ue(i,Q)):w==="children"?typeof Q=="string"?(c!=="textarea"||Q!=="")&&it(i,Q):typeof Q=="number"&&it(i,""+Q):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(o.hasOwnProperty(w)?Q!=null&&w==="onScroll"&&En("scroll",i):Q!=null&&R(i,w,Q,N))}switch(c){case"input":fe(i),we(i,p,!1);break;case"textarea":fe(i),tt(i);break;case"option":p.value!=null&&i.setAttribute("value",""+pe(p.value));break;case"select":i.multiple=!!p.multiple,w=p.value,w!=null?je(i,!!p.multiple,w,!1):p.defaultValue!=null&&je(i,!!p.multiple,p.defaultValue,!0);break;default:typeof y.onClick=="function"&&(i.onclick=zs)}switch(c){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return pr(a),null;case 6:if(i&&a.stateNode!=null)bh(i,a,i.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(c=Ii(hl.current),Ii(wo.current),Fs(a)){if(p=a.stateNode,c=a.memoizedProps,p[Co]=a,(w=p.nodeValue!==c)&&(i=jr,i!==null))switch(i.tag){case 3:Ns(p.nodeValue,c,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Ns(p.nodeValue,c,(i.mode&1)!==0)}w&&(a.flags|=4)}else p=(c.nodeType===9?c:c.ownerDocument).createTextNode(p),p[Co]=a,a.stateNode=p}return pr(a),null;case 13:if(Rn(_n),p=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Pn&&kr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Cg(),pa(),a.flags|=98560,w=!1;else if(w=Fs(a),p!==null&&p.dehydrated!==null){if(i===null){if(!w)throw Error(n(318));if(w=a.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[Co]=a}else pa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pr(a),w=!1}else lo!==null&&(gf(lo),lo=null),w=!0;if(!w)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=c,a):(p=p!==null,p!==(i!==null&&i.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(_n.current&1)!==0?Gn===0&&(Gn=3):bf())),a.updateQueue!==null&&(a.flags|=4),pr(a),null);case 4:return ya(),of(i,a),i===null&&ul(a.stateNode.containerInfo),pr(a),null;case 10:return Md(a.type._context),pr(a),null;case 17:return Or(a.type)&&ks(),pr(a),null;case 19:if(Rn(_n),w=a.memoizedState,w===null)return pr(a),null;if(p=(a.flags&128)!==0,N=w.rendering,N===null)if(p)Cl(w,!1);else{if(Gn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(N=Ks(i),N!==null){for(a.flags|=128,Cl(w,!1),p=N.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=c,c=a.child;c!==null;)w=c,i=p,w.flags&=14680066,N=w.alternate,N===null?(w.childLanes=0,w.lanes=i,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=N.childLanes,w.lanes=N.lanes,w.child=N.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=N.memoizedProps,w.memoizedState=N.memoizedState,w.updateQueue=N.updateQueue,w.type=N.type,i=N.dependencies,w.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),c=c.sibling;return wn(_n,_n.current&1|2),a.child}i=i.sibling}w.tail!==null&&ct()>Ca&&(a.flags|=128,p=!0,Cl(w,!1),a.lanes=4194304)}else{if(!p)if(i=Ks(N),i!==null){if(a.flags|=128,p=!0,c=i.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),Cl(w,!0),w.tail===null&&w.tailMode==="hidden"&&!N.alternate&&!Pn)return pr(a),null}else 2*ct()-w.renderingStartTime>Ca&&c!==1073741824&&(a.flags|=128,p=!0,Cl(w,!1),a.lanes=4194304);w.isBackwards?(N.sibling=a.child,a.child=N):(c=w.last,c!==null?c.sibling=N:a.child=N,w.last=N)}return w.tail!==null?(a=w.tail,w.rendering=a,w.tail=a.sibling,w.renderingStartTime=ct(),a.sibling=null,c=_n.current,wn(_n,p?c&1|2:c&1),a):(pr(a),null);case 22:case 23:return yf(),p=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(Lr&1073741824)!==0&&(pr(a),a.subtreeFlags&6&&(a.flags|=8192)):pr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function Hw(i,a){switch(Rd(a),a.tag){case 1:return Or(a.type)&&ks(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return ya(),Rn(Rr),Rn(fr),Dd(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Ld(a),null;case 13:if(Rn(_n),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));pa()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Rn(_n),null;case 4:return ya(),null;case 10:return Md(a.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var nc=!1,vr=!1,Vw=typeof WeakSet=="function"?WeakSet:Set,ft=null;function Sa(i,a){var c=i.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(p){Nn(i,a,p)}else c.current=null}function af(i,a,c){try{c()}catch(p){Nn(i,a,p)}}var Sh=!1;function Ww(i,a){if(hd=Cs,i=Zv(),cd(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var y=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var N=0,G=-1,Q=-1,ge=0,Te=0,ze=i,Oe=null;t:for(;;){for(var ot;ze!==c||y!==0&&ze.nodeType!==3||(G=N+y),ze!==w||p!==0&&ze.nodeType!==3||(Q=N+p),ze.nodeType===3&&(N+=ze.nodeValue.length),(ot=ze.firstChild)!==null;)Oe=ze,ze=ot;for(;;){if(ze===i)break t;if(Oe===c&&++ge===y&&(G=N),Oe===w&&++Te===p&&(Q=N),(ot=ze.nextSibling)!==null)break;ze=Oe,Oe=ze.parentNode}ze=ot}c=G===-1||Q===-1?null:{start:G,end:Q}}else c=null}c=c||{start:0,end:0}}else c=null;for(yd={focusedElem:i,selectionRange:c},Cs=!1,ft=a;ft!==null;)if(a=ft,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,ft=i;else for(;ft!==null;){a=ft;try{var pt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var gt=pt.memoizedProps,kn=pt.memoizedState,le=a.stateNode,te=le.getSnapshotBeforeUpdate(a.elementType===a.type?gt:so(a.type,gt),kn);le.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var de=a.stateNode.containerInfo;de.nodeType===1?de.textContent="":de.nodeType===9&&de.documentElement&&de.removeChild(de.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(De){Nn(a,a.return,De)}if(i=a.sibling,i!==null){i.return=a.return,ft=i;break}ft=a.return}return pt=Sh,Sh=!1,pt}function wl(i,a,c){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var y=p=p.next;do{if((y.tag&i)===i){var w=y.destroy;y.destroy=void 0,w!==void 0&&af(a,c,w)}y=y.next}while(y!==p)}}function rc(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&i)===i){var p=c.create;c.destroy=p()}c=c.next}while(c!==a)}}function lf(i){var a=i.ref;if(a!==null){var c=i.stateNode;switch(i.tag){case 5:i=c;break;default:i=c}typeof a=="function"?a(i):a.current=i}}function xh(i){var a=i.alternate;a!==null&&(i.alternate=null,xh(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Co],delete a[fl],delete a[Cd],delete a[Rw],delete a[Ow])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Ch(i){return i.tag===5||i.tag===3||i.tag===4}function wh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Ch(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function sf(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(i,a):c.insertBefore(i,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(i,c)):(a=c,a.appendChild(i)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=zs));else if(p!==4&&(i=i.child,i!==null))for(sf(i,a,c),i=i.sibling;i!==null;)sf(i,a,c),i=i.sibling}function cf(i,a,c){var p=i.tag;if(p===5||p===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(cf(i,a,c),i=i.sibling;i!==null;)cf(i,a,c),i=i.sibling}var or=null,co=!1;function ai(i,a,c){for(c=c.child;c!==null;)$h(i,a,c),c=c.sibling}function $h(i,a,c){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount($t,c)}catch{}switch(c.tag){case 5:vr||Sa(c,a);case 6:var p=or,y=co;or=null,ai(i,a,c),or=p,co=y,or!==null&&(co?(i=or,c=c.stateNode,i.nodeType===8?i.parentNode.removeChild(c):i.removeChild(c)):or.removeChild(c.stateNode));break;case 18:or!==null&&(co?(i=or,c=c.stateNode,i.nodeType===8?xd(i.parentNode,c):i.nodeType===1&&xd(i,c),Yo(i)):xd(or,c.stateNode));break;case 4:p=or,y=co,or=c.stateNode.containerInfo,co=!0,ai(i,a,c),or=p,co=y;break;case 0:case 11:case 14:case 15:if(!vr&&(p=c.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){y=p=p.next;do{var w=y,N=w.destroy;w=w.tag,N!==void 0&&((w&2)!==0||(w&4)!==0)&&af(c,a,N),y=y.next}while(y!==p)}ai(i,a,c);break;case 1:if(!vr&&(Sa(c,a),p=c.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=c.memoizedProps,p.state=c.memoizedState,p.componentWillUnmount()}catch(G){Nn(c,a,G)}ai(i,a,c);break;case 21:ai(i,a,c);break;case 22:c.mode&1?(vr=(p=vr)||c.memoizedState!==null,ai(i,a,c),vr=p):ai(i,a,c);break;default:ai(i,a,c)}}function Eh(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var c=i.stateNode;c===null&&(c=i.stateNode=new Vw),a.forEach(function(p){var y=Jw.bind(null,i,p);c.has(p)||(c.add(p),p.then(y,y))})}}function uo(i,a){var c=a.deletions;if(c!==null)for(var p=0;p<c.length;p++){var y=c[p];try{var w=i,N=a,G=N;e:for(;G!==null;){switch(G.tag){case 5:or=G.stateNode,co=!1;break e;case 3:or=G.stateNode.containerInfo,co=!0;break e;case 4:or=G.stateNode.containerInfo,co=!0;break e}G=G.return}if(or===null)throw Error(n(160));$h(w,N,y),or=null,co=!1;var Q=y.alternate;Q!==null&&(Q.return=null),y.return=null}catch(ge){Nn(y,a,ge)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)Rh(a,i),a=a.sibling}function Rh(i,a){var c=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(uo(a,i),Eo(i),p&4){try{wl(3,i,i.return),rc(3,i)}catch(gt){Nn(i,i.return,gt)}try{wl(5,i,i.return)}catch(gt){Nn(i,i.return,gt)}}break;case 1:uo(a,i),Eo(i),p&512&&c!==null&&Sa(c,c.return);break;case 5:if(uo(a,i),Eo(i),p&512&&c!==null&&Sa(c,c.return),i.flags&32){var y=i.stateNode;try{it(y,"")}catch(gt){Nn(i,i.return,gt)}}if(p&4&&(y=i.stateNode,y!=null)){var w=i.memoizedProps,N=c!==null?c.memoizedProps:w,G=i.type,Q=i.updateQueue;if(i.updateQueue=null,Q!==null)try{G==="input"&&w.type==="radio"&&w.name!=null&&oe(y,w),Fe(G,N);var ge=Fe(G,w);for(N=0;N<Q.length;N+=2){var Te=Q[N],ze=Q[N+1];Te==="style"?_e(y,ze):Te==="dangerouslySetInnerHTML"?Ue(y,ze):Te==="children"?it(y,ze):R(y,Te,ze,ge)}switch(G){case"input":be(y,w);break;case"textarea":Ee(y,w);break;case"select":var Oe=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!w.multiple;var ot=w.value;ot!=null?je(y,!!w.multiple,ot,!1):Oe!==!!w.multiple&&(w.defaultValue!=null?je(y,!!w.multiple,w.defaultValue,!0):je(y,!!w.multiple,w.multiple?[]:"",!1))}y[fl]=w}catch(gt){Nn(i,i.return,gt)}}break;case 6:if(uo(a,i),Eo(i),p&4){if(i.stateNode===null)throw Error(n(162));y=i.stateNode,w=i.memoizedProps;try{y.nodeValue=w}catch(gt){Nn(i,i.return,gt)}}break;case 3:if(uo(a,i),Eo(i),p&4&&c!==null&&c.memoizedState.isDehydrated)try{Yo(a.containerInfo)}catch(gt){Nn(i,i.return,gt)}break;case 4:uo(a,i),Eo(i);break;case 13:uo(a,i),Eo(i),y=i.child,y.flags&8192&&(w=y.memoizedState!==null,y.stateNode.isHidden=w,!w||y.alternate!==null&&y.alternate.memoizedState!==null||(ff=ct())),p&4&&Eh(i);break;case 22:if(Te=c!==null&&c.memoizedState!==null,i.mode&1?(vr=(ge=vr)||Te,uo(a,i),vr=ge):uo(a,i),Eo(i),p&8192){if(ge=i.memoizedState!==null,(i.stateNode.isHidden=ge)&&!Te&&(i.mode&1)!==0)for(ft=i,Te=i.child;Te!==null;){for(ze=ft=Te;ft!==null;){switch(Oe=ft,ot=Oe.child,Oe.tag){case 0:case 11:case 14:case 15:wl(4,Oe,Oe.return);break;case 1:Sa(Oe,Oe.return);var pt=Oe.stateNode;if(typeof pt.componentWillUnmount=="function"){p=Oe,c=Oe.return;try{a=p,pt.props=a.memoizedProps,pt.state=a.memoizedState,pt.componentWillUnmount()}catch(gt){Nn(p,c,gt)}}break;case 5:Sa(Oe,Oe.return);break;case 22:if(Oe.memoizedState!==null){Ph(ze);continue}}ot!==null?(ot.return=Oe,ft=ot):Ph(ze)}Te=Te.sibling}e:for(Te=null,ze=i;;){if(ze.tag===5){if(Te===null){Te=ze;try{y=ze.stateNode,ge?(w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(G=ze.stateNode,Q=ze.memoizedProps.style,N=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,G.style.display=Xe("display",N))}catch(gt){Nn(i,i.return,gt)}}}else if(ze.tag===6){if(Te===null)try{ze.stateNode.nodeValue=ge?"":ze.memoizedProps}catch(gt){Nn(i,i.return,gt)}}else if((ze.tag!==22&&ze.tag!==23||ze.memoizedState===null||ze===i)&&ze.child!==null){ze.child.return=ze,ze=ze.child;continue}if(ze===i)break e;for(;ze.sibling===null;){if(ze.return===null||ze.return===i)break e;Te===ze&&(Te=null),ze=ze.return}Te===ze&&(Te=null),ze.sibling.return=ze.return,ze=ze.sibling}}break;case 19:uo(a,i),Eo(i),p&4&&Eh(i);break;case 21:break;default:uo(a,i),Eo(i)}}function Eo(i){var a=i.flags;if(a&2){try{e:{for(var c=i.return;c!==null;){if(Ch(c)){var p=c;break e}c=c.return}throw Error(n(160))}switch(p.tag){case 5:var y=p.stateNode;p.flags&32&&(it(y,""),p.flags&=-33);var w=wh(i);cf(i,w,y);break;case 3:case 4:var N=p.stateNode.containerInfo,G=wh(i);sf(i,G,N);break;default:throw Error(n(161))}}catch(Q){Nn(i,i.return,Q)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function Uw(i,a,c){ft=i,Oh(i)}function Oh(i,a,c){for(var p=(i.mode&1)!==0;ft!==null;){var y=ft,w=y.child;if(y.tag===22&&p){var N=y.memoizedState!==null||nc;if(!N){var G=y.alternate,Q=G!==null&&G.memoizedState!==null||vr;G=nc;var ge=vr;if(nc=N,(vr=Q)&&!ge)for(ft=y;ft!==null;)N=ft,Q=N.child,N.tag===22&&N.memoizedState!==null?Th(y):Q!==null?(Q.return=N,ft=Q):Th(y);for(;w!==null;)ft=w,Oh(w),w=w.sibling;ft=y,nc=G,vr=ge}Ih(i)}else(y.subtreeFlags&8772)!==0&&w!==null?(w.return=y,ft=w):Ih(i)}}function Ih(i){for(;ft!==null;){var a=ft;if((a.flags&8772)!==0){var c=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:vr||rc(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!vr)if(c===null)p.componentDidMount();else{var y=a.elementType===a.type?c.memoizedProps:so(a.type,c.memoizedProps);p.componentDidUpdate(y,c.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var w=a.updateQueue;w!==null&&Pg(a,w,p);break;case 3:var N=a.updateQueue;if(N!==null){if(c=null,a.child!==null)switch(a.child.tag){case 5:c=a.child.stateNode;break;case 1:c=a.child.stateNode}Pg(a,N,c)}break;case 5:var G=a.stateNode;if(c===null&&a.flags&4){c=G;var Q=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&c.focus();break;case"img":Q.src&&(c.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ge=a.alternate;if(ge!==null){var Te=ge.memoizedState;if(Te!==null){var ze=Te.dehydrated;ze!==null&&Yo(ze)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}vr||a.flags&512&&lf(a)}catch(Oe){Nn(a,a.return,Oe)}}if(a===i){ft=null;break}if(c=a.sibling,c!==null){c.return=a.return,ft=c;break}ft=a.return}}function Ph(i){for(;ft!==null;){var a=ft;if(a===i){ft=null;break}var c=a.sibling;if(c!==null){c.return=a.return,ft=c;break}ft=a.return}}function Th(i){for(;ft!==null;){var a=ft;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{rc(4,a)}catch(Q){Nn(a,c,Q)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var y=a.return;try{p.componentDidMount()}catch(Q){Nn(a,y,Q)}}var w=a.return;try{lf(a)}catch(Q){Nn(a,w,Q)}break;case 5:var N=a.return;try{lf(a)}catch(Q){Nn(a,N,Q)}}}catch(Q){Nn(a,a.return,Q)}if(a===i){ft=null;break}var G=a.sibling;if(G!==null){G.return=a.return,ft=G;break}ft=a.return}}var Gw=Math.ceil,oc=P.ReactCurrentDispatcher,uf=P.ReactCurrentOwner,Qr=P.ReactCurrentBatchConfig,en=0,Zn=null,An=null,ir=0,Lr=0,xa=ti(0),Gn=0,$l=null,Ti=0,ic=0,df=0,El=null,Pr=null,ff=0,Ca=1/0,Bo=null,ac=!1,mf=null,li=null,lc=!1,si=null,sc=0,Rl=0,pf=null,cc=-1,uc=0;function xr(){return(en&6)!==0?ct():cc!==-1?cc:cc=ct()}function ci(i){return(i.mode&1)===0?1:(en&2)!==0&&ir!==0?ir&-ir:Pw.transition!==null?(uc===0&&(uc=Qt()),uc):(i=zt,i!==0||(i=window.event,i=i===void 0?16:Mv(i.type)),i)}function fo(i,a,c,p){if(50<Rl)throw Rl=0,pf=null,Error(n(185));ln(i,c,p),((en&2)===0||i!==Zn)&&(i===Zn&&((en&2)===0&&(ic|=c),Gn===4&&ui(i,ir)),Tr(i,p),c===1&&en===0&&(a.mode&1)===0&&(Ca=ct()+500,As&&ri()))}function Tr(i,a){var c=i.callbackNode;Je(i,a);var p=Xt(i,i===Zn?ir:0);if(p===0)c!==null&&Ne(c),i.callbackNode=null,i.callbackPriority=0;else if(a=p&-p,i.callbackPriority!==a){if(c!=null&&Ne(c),a===1)i.tag===0?Iw(Mh.bind(null,i)):hg(Mh.bind(null,i)),$w(function(){(en&6)===0&&ri()}),c=null;else{switch(Wn(p)){case 1:c=Ge;break;case 4:c=xt;break;case 16:c=kt;break;case 536870912:c=ut;break;default:c=kt}c=Bh(c,_h.bind(null,i))}i.callbackPriority=a,i.callbackNode=c}}function _h(i,a){if(cc=-1,uc=0,(en&6)!==0)throw Error(n(327));var c=i.callbackNode;if(wa()&&i.callbackNode!==c)return null;var p=Xt(i,i===Zn?ir:0);if(p===0)return null;if((p&30)!==0||(p&i.expiredLanes)!==0||a)a=dc(i,p);else{a=p;var y=en;en|=2;var w=zh();(Zn!==i||ir!==a)&&(Bo=null,Ca=ct()+500,Mi(i,a));do try{Xw();break}catch(G){Nh(i,G)}while(!0);_d(),oc.current=w,en=y,An!==null?a=0:(Zn=null,ir=0,a=Gn)}if(a!==0){if(a===2&&(y=Ut(i),y!==0&&(p=y,a=vf(i,y))),a===1)throw c=$l,Mi(i,0),ui(i,p),Tr(i,ct()),c;if(a===6)ui(i,p);else{if(y=i.current.alternate,(p&30)===0&&!Kw(y)&&(a=dc(i,p),a===2&&(w=Ut(i),w!==0&&(p=w,a=vf(i,w))),a===1))throw c=$l,Mi(i,0),ui(i,p),Tr(i,ct()),c;switch(i.finishedWork=y,i.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:Ni(i,Pr,Bo);break;case 3:if(ui(i,p),(p&130023424)===p&&(a=ff+500-ct(),10<a)){if(Xt(i,0)!==0)break;if(y=i.suspendedLanes,(y&p)!==p){xr(),i.pingedLanes|=i.suspendedLanes&y;break}i.timeoutHandle=Sd(Ni.bind(null,i,Pr,Bo),a);break}Ni(i,Pr,Bo);break;case 4:if(ui(i,p),(p&4194240)===p)break;for(a=i.eventTimes,y=-1;0<p;){var N=31-xn(p);w=1<<N,N=a[N],N>y&&(y=N),p&=~w}if(p=y,p=ct()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*Gw(p/1960))-p,10<p){i.timeoutHandle=Sd(Ni.bind(null,i,Pr,Bo),p);break}Ni(i,Pr,Bo);break;case 5:Ni(i,Pr,Bo);break;default:throw Error(n(329))}}}return Tr(i,ct()),i.callbackNode===c?_h.bind(null,i):null}function vf(i,a){var c=El;return i.current.memoizedState.isDehydrated&&(Mi(i,a).flags|=256),i=dc(i,a),i!==2&&(a=Pr,Pr=c,a!==null&&gf(a)),i}function gf(i){Pr===null?Pr=i:Pr.push.apply(Pr,i)}function Kw(i){for(var a=i;;){if(a.flags&16384){var c=a.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var p=0;p<c.length;p++){var y=c[p],w=y.getSnapshot;y=y.value;try{if(!ao(w(),y))return!1}catch{return!1}}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ui(i,a){for(a&=~df,a&=~ic,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var c=31-xn(a),p=1<<c;i[c]=-1,a&=~p}}function Mh(i){if((en&6)!==0)throw Error(n(327));wa();var a=Xt(i,0);if((a&1)===0)return Tr(i,ct()),null;var c=dc(i,a);if(i.tag!==0&&c===2){var p=Ut(i);p!==0&&(a=p,c=vf(i,p))}if(c===1)throw c=$l,Mi(i,0),ui(i,a),Tr(i,ct()),c;if(c===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Ni(i,Pr,Bo),Tr(i,ct()),null}function hf(i,a){var c=en;en|=1;try{return i(a)}finally{en=c,en===0&&(Ca=ct()+500,As&&ri())}}function _i(i){si!==null&&si.tag===0&&(en&6)===0&&wa();var a=en;en|=1;var c=Qr.transition,p=zt;try{if(Qr.transition=null,zt=1,i)return i()}finally{zt=p,Qr.transition=c,en=a,(en&6)===0&&ri()}}function yf(){Lr=xa.current,Rn(xa)}function Mi(i,a){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;if(c!==-1&&(i.timeoutHandle=-1,ww(c)),An!==null)for(c=An.return;c!==null;){var p=c;switch(Rd(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&ks();break;case 3:ya(),Rn(Rr),Rn(fr),Dd();break;case 5:Ld(p);break;case 4:ya();break;case 13:Rn(_n);break;case 19:Rn(_n);break;case 10:Md(p.type._context);break;case 22:case 23:yf()}c=c.return}if(Zn=i,An=i=di(i.current,null),ir=Lr=a,Gn=0,$l=null,df=ic=Ti=0,Pr=El=null,Oi!==null){for(a=0;a<Oi.length;a++)if(c=Oi[a],p=c.interleaved,p!==null){c.interleaved=null;var y=p.next,w=c.pending;if(w!==null){var N=w.next;w.next=y,p.next=N}c.pending=p}Oi=null}return i}function Nh(i,a){do{var c=An;try{if(_d(),qs.current=Zs,Xs){for(var p=Mn.memoizedState;p!==null;){var y=p.queue;y!==null&&(y.pending=null),p=p.next}Xs=!1}if(Pi=0,Yn=Un=Mn=null,yl=!1,bl=0,uf.current=null,c===null||c.return===null){Gn=1,$l=a,An=null;break}e:{var w=i,N=c.return,G=c,Q=a;if(a=ir,G.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ge=Q,Te=G,ze=Te.tag;if((Te.mode&1)===0&&(ze===0||ze===11||ze===15)){var Oe=Te.alternate;Oe?(Te.updateQueue=Oe.updateQueue,Te.memoizedState=Oe.memoizedState,Te.lanes=Oe.lanes):(Te.updateQueue=null,Te.memoizedState=null)}var ot=oh(N);if(ot!==null){ot.flags&=-257,ih(ot,N,G,w,a),ot.mode&1&&rh(w,ge,a),a=ot,Q=ge;var pt=a.updateQueue;if(pt===null){var gt=new Set;gt.add(Q),a.updateQueue=gt}else pt.add(Q);break e}else{if((a&1)===0){rh(w,ge,a),bf();break e}Q=Error(n(426))}}else if(Pn&&G.mode&1){var kn=oh(N);if(kn!==null){(kn.flags&65536)===0&&(kn.flags|=256),ih(kn,N,G,w,a),Pd(ba(Q,G));break e}}w=Q=ba(Q,G),Gn!==4&&(Gn=2),El===null?El=[w]:El.push(w),w=N;do{switch(w.tag){case 3:w.flags|=65536,a&=-a,w.lanes|=a;var le=th(w,Q,a);Ig(w,le);break e;case 1:G=Q;var te=w.type,de=w.stateNode;if((w.flags&128)===0&&(typeof te.getDerivedStateFromError=="function"||de!==null&&typeof de.componentDidCatch=="function"&&(li===null||!li.has(de)))){w.flags|=65536,a&=-a,w.lanes|=a;var De=nh(w,G,a);Ig(w,De);break e}}w=w.return}while(w!==null)}kh(c)}catch(ht){a=ht,An===c&&c!==null&&(An=c=c.return);continue}break}while(!0)}function zh(){var i=oc.current;return oc.current=Zs,i===null?Zs:i}function bf(){(Gn===0||Gn===3||Gn===2)&&(Gn=4),Zn===null||(Ti&268435455)===0&&(ic&268435455)===0||ui(Zn,ir)}function dc(i,a){var c=en;en|=2;var p=zh();(Zn!==i||ir!==a)&&(Bo=null,Mi(i,a));do try{qw();break}catch(y){Nh(i,y)}while(!0);if(_d(),en=c,oc.current=p,An!==null)throw Error(n(261));return Zn=null,ir=0,Gn}function qw(){for(;An!==null;)jh(An)}function Xw(){for(;An!==null&&!We();)jh(An)}function jh(i){var a=Dh(i.alternate,i,Lr);i.memoizedProps=i.pendingProps,a===null?kh(i):An=a,uf.current=null}function kh(i){var a=i;do{var c=a.alternate;if(i=a.return,(a.flags&32768)===0){if(c=Fw(c,a,Lr),c!==null){An=c;return}}else{if(c=Hw(c,a),c!==null){c.flags&=32767,An=c;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Gn=6,An=null;return}}if(a=a.sibling,a!==null){An=a;return}An=a=i}while(a!==null);Gn===0&&(Gn=5)}function Ni(i,a,c){var p=zt,y=Qr.transition;try{Qr.transition=null,zt=1,Qw(i,a,c,p)}finally{Qr.transition=y,zt=p}return null}function Qw(i,a,c,p){do wa();while(si!==null);if((en&6)!==0)throw Error(n(327));c=i.finishedWork;var y=i.finishedLanes;if(c===null)return null;if(i.finishedWork=null,i.finishedLanes=0,c===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var w=c.lanes|c.childLanes;if(rr(i,w),i===Zn&&(An=Zn=null,ir=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||lc||(lc=!0,Bh(kt,function(){return wa(),null})),w=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||w){w=Qr.transition,Qr.transition=null;var N=zt;zt=1;var G=en;en|=4,uf.current=null,Ww(i,c),Rh(c,i),gw(yd),Cs=!!hd,yd=hd=null,i.current=c,Uw(c),Ct(),en=G,zt=N,Qr.transition=w}else i.current=c;if(lc&&(lc=!1,si=i,sc=y),w=i.pendingLanes,w===0&&(li=null),zn(c.stateNode),Tr(i,ct()),a!==null)for(p=i.onRecoverableError,c=0;c<a.length;c++)y=a[c],p(y.value,{componentStack:y.stack,digest:y.digest});if(ac)throw ac=!1,i=mf,mf=null,i;return(sc&1)!==0&&i.tag!==0&&wa(),w=i.pendingLanes,(w&1)!==0?i===pf?Rl++:(Rl=0,pf=i):Rl=0,ri(),null}function wa(){if(si!==null){var i=Wn(sc),a=Qr.transition,c=zt;try{if(Qr.transition=null,zt=16>i?16:i,si===null)var p=!1;else{if(i=si,si=null,sc=0,(en&6)!==0)throw Error(n(331));var y=en;for(en|=4,ft=i.current;ft!==null;){var w=ft,N=w.child;if((ft.flags&16)!==0){var G=w.deletions;if(G!==null){for(var Q=0;Q<G.length;Q++){var ge=G[Q];for(ft=ge;ft!==null;){var Te=ft;switch(Te.tag){case 0:case 11:case 15:wl(8,Te,w)}var ze=Te.child;if(ze!==null)ze.return=Te,ft=ze;else for(;ft!==null;){Te=ft;var Oe=Te.sibling,ot=Te.return;if(xh(Te),Te===ge){ft=null;break}if(Oe!==null){Oe.return=ot,ft=Oe;break}ft=ot}}}var pt=w.alternate;if(pt!==null){var gt=pt.child;if(gt!==null){pt.child=null;do{var kn=gt.sibling;gt.sibling=null,gt=kn}while(gt!==null)}}ft=w}}if((w.subtreeFlags&2064)!==0&&N!==null)N.return=w,ft=N;else e:for(;ft!==null;){if(w=ft,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:wl(9,w,w.return)}var le=w.sibling;if(le!==null){le.return=w.return,ft=le;break e}ft=w.return}}var te=i.current;for(ft=te;ft!==null;){N=ft;var de=N.child;if((N.subtreeFlags&2064)!==0&&de!==null)de.return=N,ft=de;else e:for(N=te;ft!==null;){if(G=ft,(G.flags&2048)!==0)try{switch(G.tag){case 0:case 11:case 15:rc(9,G)}}catch(ht){Nn(G,G.return,ht)}if(G===N){ft=null;break e}var De=G.sibling;if(De!==null){De.return=G.return,ft=De;break e}ft=G.return}}if(en=y,ri(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot($t,i)}catch{}p=!0}return p}finally{zt=c,Qr.transition=a}}return!1}function Lh(i,a,c){a=ba(c,a),a=th(i,a,1),i=ii(i,a,1),a=xr(),i!==null&&(ln(i,1,a),Tr(i,a))}function Nn(i,a,c){if(i.tag===3)Lh(i,i,c);else for(;a!==null;){if(a.tag===3){Lh(a,i,c);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(li===null||!li.has(p))){i=ba(c,i),i=nh(a,i,1),a=ii(a,i,1),i=xr(),a!==null&&(ln(a,1,i),Tr(a,i));break}}a=a.return}}function Yw(i,a,c){var p=i.pingCache;p!==null&&p.delete(a),a=xr(),i.pingedLanes|=i.suspendedLanes&c,Zn===i&&(ir&c)===c&&(Gn===4||Gn===3&&(ir&130023424)===ir&&500>ct()-ff?Mi(i,0):df|=c),Tr(i,a)}function Ah(i,a){a===0&&((i.mode&1)===0?a=1:(a=nr,nr<<=1,(nr&130023424)===0&&(nr=4194304)));var c=xr();i=Lo(i,a),i!==null&&(ln(i,a,c),Tr(i,c))}function Zw(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),Ah(i,c)}function Jw(i,a){var c=0;switch(i.tag){case 13:var p=i.stateNode,y=i.memoizedState;y!==null&&(c=y.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),Ah(i,c)}var Dh;Dh=function(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps||Rr.current)Ir=!0;else{if((i.lanes&c)===0&&(a.flags&128)===0)return Ir=!1,Bw(i,a,c);Ir=(i.flags&131072)!==0}else Ir=!1,Pn&&(a.flags&1048576)!==0&&yg(a,Bs,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;tc(i,a),i=a.pendingProps;var y=da(a,fr.current);ha(a,c),y=Hd(null,a,p,i,y,c);var w=Vd();return a.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Or(p)?(w=!0,Ls(a)):w=!1,a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,jd(a),y.updater=Js,a.stateNode=y,y._reactInternals=a,Xd(a,p,i,c),a=Jd(null,a,p,!0,w,c)):(a.tag=0,Pn&&w&&Ed(a),Sr(null,a,y,c),a=a.child),a;case 16:p=a.elementType;e:{switch(tc(i,a),i=a.pendingProps,y=p._init,p=y(p._payload),a.type=p,y=a.tag=t$(p),i=so(p,i),y){case 0:a=Zd(null,a,p,i,c);break e;case 1:a=dh(null,a,p,i,c);break e;case 11:a=ah(null,a,p,i,c);break e;case 14:a=lh(null,a,p,so(p.type,i),c);break e}throw Error(n(306,p,""))}return a;case 0:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),Zd(i,a,p,y,c);case 1:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),dh(i,a,p,y,c);case 3:e:{if(fh(a),i===null)throw Error(n(387));p=a.pendingProps,w=a.memoizedState,y=w.element,Og(i,a),Gs(a,p,null,c);var N=a.memoizedState;if(p=N.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){y=ba(Error(n(423)),a),a=mh(i,a,p,c,y);break e}else if(p!==y){y=ba(Error(n(424)),a),a=mh(i,a,p,c,y);break e}else for(kr=ei(a.stateNode.containerInfo.firstChild),jr=a,Pn=!0,lo=null,c=Eg(a,null,p,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(pa(),p===y){a=Do(i,a,c);break e}Sr(i,a,p,c)}a=a.child}return a;case 5:return Tg(a),i===null&&Id(a),p=a.type,y=a.pendingProps,w=i!==null?i.memoizedProps:null,N=y.children,bd(p,y)?N=null:w!==null&&bd(p,w)&&(a.flags|=32),uh(i,a),Sr(i,a,N,c),a.child;case 6:return i===null&&Id(a),null;case 13:return ph(i,a,c);case 4:return kd(a,a.stateNode.containerInfo),p=a.pendingProps,i===null?a.child=va(a,null,p,c):Sr(i,a,p,c),a.child;case 11:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),ah(i,a,p,y,c);case 7:return Sr(i,a,a.pendingProps,c),a.child;case 8:return Sr(i,a,a.pendingProps.children,c),a.child;case 12:return Sr(i,a,a.pendingProps.children,c),a.child;case 10:e:{if(p=a.type._context,y=a.pendingProps,w=a.memoizedProps,N=y.value,wn(Vs,p._currentValue),p._currentValue=N,w!==null)if(ao(w.value,N)){if(w.children===y.children&&!Rr.current){a=Do(i,a,c);break e}}else for(w=a.child,w!==null&&(w.return=a);w!==null;){var G=w.dependencies;if(G!==null){N=w.child;for(var Q=G.firstContext;Q!==null;){if(Q.context===p){if(w.tag===1){Q=Ao(-1,c&-c),Q.tag=2;var ge=w.updateQueue;if(ge!==null){ge=ge.shared;var Te=ge.pending;Te===null?Q.next=Q:(Q.next=Te.next,Te.next=Q),ge.pending=Q}}w.lanes|=c,Q=w.alternate,Q!==null&&(Q.lanes|=c),Nd(w.return,c,a),G.lanes|=c;break}Q=Q.next}}else if(w.tag===10)N=w.type===a.type?null:w.child;else if(w.tag===18){if(N=w.return,N===null)throw Error(n(341));N.lanes|=c,G=N.alternate,G!==null&&(G.lanes|=c),Nd(N,c,a),N=w.sibling}else N=w.child;if(N!==null)N.return=w;else for(N=w;N!==null;){if(N===a){N=null;break}if(w=N.sibling,w!==null){w.return=N.return,N=w;break}N=N.return}w=N}Sr(i,a,y.children,c),a=a.child}return a;case 9:return y=a.type,p=a.pendingProps.children,ha(a,c),y=qr(y),p=p(y),a.flags|=1,Sr(i,a,p,c),a.child;case 14:return p=a.type,y=so(p,a.pendingProps),y=so(p.type,y),lh(i,a,p,y,c);case 15:return sh(i,a,a.type,a.pendingProps,c);case 17:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),tc(i,a),a.tag=1,Or(p)?(i=!0,Ls(a)):i=!1,ha(a,c),Jg(a,p,y),Xd(a,p,y,c),Jd(null,a,p,!0,i,c);case 19:return gh(i,a,c);case 22:return ch(i,a,c)}throw Error(n(156,a.tag))};function Bh(i,a){return Yt(i,a)}function e$(i,a,c,p){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(i,a,c,p){return new e$(i,a,c,p)}function Sf(i){return i=i.prototype,!(!i||!i.isReactComponent)}function t$(i){if(typeof i=="function")return Sf(i)?1:0;if(i!=null){if(i=i.$$typeof,i===j)return 11;if(i===K)return 14}return 2}function di(i,a){var c=i.alternate;return c===null?(c=Yr(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&14680064,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c}function fc(i,a,c,p,y,w){var N=2;if(p=i,typeof i=="function")Sf(i)&&(N=1);else if(typeof i=="string")N=5;else e:switch(i){case T:return zi(c.children,y,w,a);case M:N=8,y|=8;break;case _:return i=Yr(12,c,a,y|2),i.elementType=_,i.lanes=w,i;case A:return i=Yr(13,c,a,y),i.elementType=A,i.lanes=w,i;case B:return i=Yr(19,c,a,y),i.elementType=B,i.lanes=w,i;case U:return mc(c,y,w,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case z:N=10;break e;case L:N=9;break e;case j:N=11;break e;case K:N=14;break e;case V:N=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=Yr(N,c,a,y),a.elementType=i,a.type=p,a.lanes=w,a}function zi(i,a,c,p){return i=Yr(7,i,p,a),i.lanes=c,i}function mc(i,a,c,p){return i=Yr(22,i,p,a),i.elementType=U,i.lanes=c,i.stateNode={isHidden:!1},i}function xf(i,a,c){return i=Yr(6,i,null,a),i.lanes=c,i}function Cf(i,a,c){return a=Yr(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function n$(i,a,c,p,y){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rn(0),this.expirationTimes=rn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rn(0),this.identifierPrefix=p,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function wf(i,a,c,p,y,w,N,G,Q){return i=new n$(i,a,c,G,Q),a===1?(a=1,w===!0&&(a|=8)):a=0,w=Yr(3,null,null,a),i.current=w,w.stateNode=i,w.memoizedState={element:p,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},jd(w),i}function r$(i,a,c){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:p==null?null:""+p,children:i,containerInfo:a,implementation:c}}function Fh(i){if(!i)return ni;i=i._reactInternals;e:{if(It(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Or(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var c=i.type;if(Or(c))return vg(i,c,a)}return a}function Hh(i,a,c,p,y,w,N,G,Q){return i=wf(c,p,!0,i,y,w,N,G,Q),i.context=Fh(null),c=i.current,p=xr(),y=ci(c),w=Ao(p,y),w.callback=a??null,ii(c,w,y),i.current.lanes=y,ln(i,y,p),Tr(i,p),i}function pc(i,a,c,p){var y=a.current,w=xr(),N=ci(y);return c=Fh(c),a.context===null?a.context=c:a.pendingContext=c,a=Ao(w,N),a.payload={element:i},p=p===void 0?null:p,p!==null&&(a.callback=p),i=ii(y,a,N),i!==null&&(fo(i,y,N,w),Us(i,y,N)),N}function vc(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Vh(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function $f(i,a){Vh(i,a),(i=i.alternate)&&Vh(i,a)}function o$(){return null}var Wh=typeof reportError=="function"?reportError:function(i){console.error(i)};function Ef(i){this._internalRoot=i}gc.prototype.render=Ef.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));pc(i,a,null,null)},gc.prototype.unmount=Ef.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;_i(function(){pc(null,i,null,null)}),a[No]=null}};function gc(i){this._internalRoot=i}gc.prototype.unstable_scheduleHydration=function(i){if(i){var a=Qo();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Nr.length&&a!==0&&a<Nr[c].priority;c++);Nr.splice(c,0,i),c===0&&bn(i)}};function Rf(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function hc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Uh(){}function i$(i,a,c,p,y){if(y){if(typeof p=="function"){var w=p;p=function(){var ge=vc(N);w.call(ge)}}var N=Hh(a,p,i,0,null,!1,!1,"",Uh);return i._reactRootContainer=N,i[No]=N.current,ul(i.nodeType===8?i.parentNode:i),_i(),N}for(;y=i.lastChild;)i.removeChild(y);if(typeof p=="function"){var G=p;p=function(){var ge=vc(Q);G.call(ge)}}var Q=wf(i,0,!1,null,null,!1,!1,"",Uh);return i._reactRootContainer=Q,i[No]=Q.current,ul(i.nodeType===8?i.parentNode:i),_i(function(){pc(a,Q,c,p)}),Q}function yc(i,a,c,p,y){var w=c._reactRootContainer;if(w){var N=w;if(typeof y=="function"){var G=y;y=function(){var Q=vc(N);G.call(Q)}}pc(a,N,i,y)}else N=i$(c,a,i,y,p);return vc(N)}Xn=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var c=ur(a.pendingLanes);c!==0&&(jn(a,c|1),Tr(a,ct()),(en&6)===0&&(Ca=ct()+500,ri()))}break;case 13:_i(function(){var p=Lo(i,1);if(p!==null){var y=xr();fo(p,i,1,y)}}),$f(i,1)}},$r=function(i){if(i.tag===13){var a=Lo(i,134217728);if(a!==null){var c=xr();fo(a,i,134217728,c)}$f(i,134217728)}},Qn=function(i){if(i.tag===13){var a=ci(i),c=Lo(i,a);if(c!==null){var p=xr();fo(c,i,a,p)}$f(i,a)}},Qo=function(){return zt},Zi=function(i,a){var c=zt;try{return zt=i,a()}finally{zt=c}},Bt=function(i,a,c){switch(a){case"input":if(be(i,c),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<c.length;a++){var p=c[a];if(p!==i&&p.form===i.form){var y=js(p);if(!y)throw Error(n(90));ae(p),be(p,y)}}}break;case"textarea":Ee(i,c);break;case"select":a=c.value,a!=null&&je(i,!!c.multiple,a,!1)}},St=hf,Wt=_i;var a$={usingClientEntryPoint:!1,Events:[ml,ca,js,Vt,Tt,hf]},Ol={findFiberByHostInstance:wi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},l$={bundleType:Ol.bundleType,version:Ol.version,rendererPackageName:Ol.rendererPackageName,rendererConfig:Ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=$n(i),i===null?null:i.stateNode},findFiberByHostInstance:Ol.findFiberByHostInstance||o$,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 bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bc.isDisabled&&bc.supportsFiber)try{$t=bc.inject(l$),Jt=bc}catch{}}return _r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a$,_r.createPortal=function(i,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rf(a))throw Error(n(200));return r$(i,a,null,c)},_r.createRoot=function(i,a){if(!Rf(i))throw Error(n(299));var c=!1,p="",y=Wh;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=wf(i,1,!1,null,null,c,!1,p,y),i[No]=a.current,ul(i.nodeType===8?i.parentNode:i),new Ef(a)},_r.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=$n(a),i=i===null?null:i.stateNode,i},_r.flushSync=function(i){return _i(i)},_r.hydrate=function(i,a,c){if(!hc(a))throw Error(n(200));return yc(null,i,a,!0,c)},_r.hydrateRoot=function(i,a,c){if(!Rf(i))throw Error(n(405));var p=c!=null&&c.hydratedSources||null,y=!1,w="",N=Wh;if(c!=null&&(c.unstable_strictMode===!0&&(y=!0),c.identifierPrefix!==void 0&&(w=c.identifierPrefix),c.onRecoverableError!==void 0&&(N=c.onRecoverableError)),a=Hh(a,null,i,1,c??null,y,!1,w,N),i[No]=a.current,ul(i),p)for(i=0;i<p.length;i++)c=p[i],y=c._getVersion,y=y(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,y]:a.mutableSourceEagerHydrationData.push(c,y);return new gc(a)},_r.render=function(i,a,c){if(!hc(a))throw Error(n(200));return yc(null,i,a,!1,c)},_r.unmountComponentAtNode=function(i){if(!hc(i))throw Error(n(40));return i._reactRootContainer?(_i(function(){yc(null,null,i,!1,function(){i._reactRootContainer=null,i[No]=null})}),!0):!1},_r.unstable_batchedUpdates=hf,_r.unstable_renderSubtreeIntoContainer=function(i,a,c,p){if(!hc(c))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return yc(i,a,c,!1,p)},_r.version="18.3.1-next-f1338f8080-20240426",_r}var Jh;function qb(){if(Jh)return Pf.exports;Jh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pf.exports=g$(),Pf.exports}var e0;function h$(){if(e0)return Sc;e0=1;var e=qb();return Sc.createRoot=e.createRoot,Sc.hydrateRoot=e.hydrateRoot,Sc}var y$=h$();const b$=us(y$);var Mf={exports:{}};/*!
41
+ Copyright (c) 2018 Jed Watson.
42
+ Licensed under the MIT License (MIT), see
43
+ http://jedwatson.github.io/classnames
44
+ */var t0;function S$(){return t0||(t0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(l=o(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var u in l)t.call(l,u)&&l[u]&&(s=o(s,u));return s}function o(l,s){return s?l?l+" "+s:l+s:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Mf)),Mf.exports}var x$=S$();const ce=us(x$);function ke(){return ke=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},ke.apply(null,arguments)}function vt(e){"@babel/helpers - typeof";return vt=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},vt(e)}var C$=Symbol.for("react.element"),w$=Symbol.for("react.transitional.element"),$$=Symbol.for("react.fragment");function Xb(e){return e&&vt(e)==="object"&&(e.$$typeof===C$||e.$$typeof===w$)&&e.type===$$}function Mr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return J.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Mr(r)):Xb(r)&&r.props?n=n.concat(Mr(r.props.children,t)):n.push(r))}),n}var $m={},E$=function(t){};function R$(e,t){}function O$(e,t){}function I$(){$m={}}function Qb(e,t,n){!t&&!$m[n]&&(e(!1,n),$m[n]=!0)}function ar(e,t){Qb(R$,e,t)}function P$(e,t){Qb(O$,e,t)}ar.preMessage=E$;ar.resetWarned=I$;ar.noteOnce=P$;function T$(e,t){if(vt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yb(e){var t=T$(e,"string");return vt(t)=="symbol"?t:t+""}function H(e,t,n){return(t=Yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Si=qb();const Em=us(Si),_$=Kb({__proto__:null,default:Em},[Si]);function Ul(e){return e instanceof HTMLElement||e instanceof SVGElement}function M$(e){return e&&vt(e)==="object"&&Ul(e.nativeElement)?e.nativeElement:Ul(e)?e:null}function kc(e){var t=M$(e);if(t)return t;if(e instanceof J.Component){var n;return(n=Em.findDOMNode)===null||n===void 0?void 0:n.call(Em,e)}return null}var Nf={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 r0;function N$(){if(r0)return cn;r0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function C(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case o:case r:case m:case v:return S;default:switch(S=S&&S.$$typeof,S){case u:case s:case f:case h:case g:case l:return S;default:return E}}case t:return E}}}return cn.ContextConsumer=s,cn.ContextProvider=l,cn.Element=e,cn.ForwardRef=f,cn.Fragment=n,cn.Lazy=h,cn.Memo=g,cn.Portal=t,cn.Profiler=o,cn.StrictMode=r,cn.Suspense=m,cn.SuspenseList=v,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(S){return C(S)===s},cn.isContextProvider=function(S){return C(S)===l},cn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},cn.isForwardRef=function(S){return C(S)===f},cn.isFragment=function(S){return C(S)===n},cn.isLazy=function(S){return C(S)===h},cn.isMemo=function(S){return C(S)===g},cn.isPortal=function(S){return C(S)===t},cn.isProfiler=function(S){return C(S)===o},cn.isStrictMode=function(S){return C(S)===r},cn.isSuspense=function(S){return C(S)===m},cn.isSuspenseList=function(S){return C(S)===v},cn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===m||S===v||S===b||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===g||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.getModuleId!==void 0)},cn.typeOf=C,cn}var o0;function z$(){return o0||(o0=1,Nf.exports=N$()),Nf.exports}var zf=z$();function ds(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var j$=Number(d.version.split(".")[0]),Np=function(t,n){typeof t=="function"?t(n):vt(t)==="object"&&t&&"current"in t&&(t.current=n)},Uo=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(l){n.forEach(function(s){Np(s,l)})}},qi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ds(function(){return Uo.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,u){return s!==l[u]})})},Xi=function(t){var n,r;if(!t)return!1;if(Zb(t)&&j$>=19)return!0;var o=zf.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==zf.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==zf.ForwardRef)};function Zb(e){return d.isValidElement(e)&&!Xb(e)}var Ya=function(t){if(t&&Zb(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Rm=d.createContext(null);function k$(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),l=d.useContext(Rm),s=d.useCallback(function(u,f,m){r.current+=1;var v=r.current;o.current.push({size:u,element:f,data:m}),Promise.resolve().then(function(){v===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(u,f,m)},[n,l]);return d.createElement(Rm.Provider,{value:s},t)}var Jb=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,l){return o[0]===n?(r=l,!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,l=this.__entries__;o<l.length;o++){var s=l[o];n.call(r,s[1],s[0])}},t})()})(),Om=typeof window<"u"&&typeof document<"u"&&window.document===document,qc=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),L$=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),A$=2;function D$(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&u()}function s(){L$(l)}function u(){var f=Date.now();if(n){if(f-o<A$)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=f}return u}var B$=20,F$=["top","right","bottom","left","width","height","size","weight"],H$=typeof MutationObserver<"u",V$=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=D$(this.refresh.bind(this),B$)}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(){!Om||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H$?(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(){!Om||!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=F$.some(function(l){return!!~r.indexOf(l)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),eS=(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}),Wa=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||qc}),tS=yu(0,0,0,0);function Xc(e){return parseFloat(e)||0}function i0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var l=e["border-"+o+"-width"];return r+Xc(l)},0)}function W$(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var l=o[r],s=e["padding-"+l];n[l]=Xc(s)}return n}function U$(e){var t=e.getBBox();return yu(0,0,t.width,t.height)}function G$(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return tS;var r=Wa(e).getComputedStyle(e),o=W$(r),l=o.left+o.right,s=o.top+o.bottom,u=Xc(r.width),f=Xc(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=i0(r,"left","right")+l),Math.round(f+s)!==n&&(f-=i0(r,"top","bottom")+s)),!q$(e)){var m=Math.round(u+l)-t,v=Math.round(f+s)-n;Math.abs(m)!==1&&(u-=m),Math.abs(v)!==1&&(f-=v)}return yu(o.left,o.top,u,f)}var K$=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Wa(e).SVGGraphicsElement}:function(e){return e instanceof Wa(e).SVGElement&&typeof e.getBBox=="function"}})();function q$(e){return e===Wa(e).document.documentElement}function X$(e){return Om?K$(e)?U$(e):G$(e):tS}function Q$(e){var t=e.x,n=e.y,r=e.width,o=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return eS(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function yu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Y$=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=X$(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})(),Z$=(function(){function e(t,n){var r=Q$(n);eS(this,{target:t,contentRect:r})}return e})(),J$=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Jb,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 Wa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Y$(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 Wa(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 Z$(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})(),nS=typeof WeakMap<"u"?new WeakMap:new Jb,rS=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=V$.getInstance(),r=new J$(t,n,this);nS.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){rS.prototype[e]=function(){var t;return(t=nS.get(this))[e].apply(t,arguments)}});var eE=(function(){return typeof qc.ResizeObserver<"u"?qc.ResizeObserver:rS})(),gi=new Map;function tE(e){e.forEach(function(t){var n,r=t.target;(n=gi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var oS=new eE(tE);function nE(e,t){gi.has(e)||(gi.set(e,new Set),oS.observe(e)),gi.get(e).add(t)}function rE(e,t){gi.has(e)&&(gi.get(e).delete(t),gi.get(e).size||(oS.unobserve(e),gi.delete(e)))}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a0(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,Yb(r.key),r)}}function Fn(e,t,n){return t&&a0(e.prototype,t),n&&a0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gl(e,t)}function Go(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&&Gl(e,t)}function Kl(e){return Kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kl(e)}function zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zp=function(){return!!e})()}function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oE(e,t){if(t&&(vt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Ko(e){var t=zp();return function(){var n,r=Kl(e);if(t){var o=Kl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oE(this,n)}}var iE=(function(e){Go(n,e);var t=Ko(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function aE(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),l=d.useRef(null),s=d.useContext(Rm),u=typeof n=="function",f=u?n(o):n,m=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!u&&d.isValidElement(f)&&Xi(f),g=v?Ya(f):null,h=qi(g,o),b=function(){var E;return kc(o.current)||(o.current&&vt(o.current)==="object"?kc((E=o.current)===null||E===void 0?void 0:E.nativeElement):null)||kc(l.current)};d.useImperativeHandle(t,function(){return b()});var x=d.useRef(e);x.current=e;var C=d.useCallback(function(S){var E=x.current,$=E.onResize,R=E.data,P=S.getBoundingClientRect(),O=P.width,I=P.height,T=S.offsetWidth,M=S.offsetHeight,_=Math.floor(O),z=Math.floor(I);if(m.current.width!==_||m.current.height!==z||m.current.offsetWidth!==T||m.current.offsetHeight!==M){var L={width:_,height:z,offsetWidth:T,offsetHeight:M};m.current=L;var j=T===Math.round(O)?O:T,A=M===Math.round(I)?I:M,B=q(q({},L),{},{offsetWidth:j,offsetHeight:A});s==null||s(B,S,R),$&&Promise.resolve().then(function(){$(B,S)})}},[]);return d.useEffect(function(){var S=b();return S&&!r&&nE(S,C),function(){return rE(S,C)}},[o.current,r]),d.createElement(iE,{ref:l},v?d.cloneElement(f,{ref:h}):f)}var lE=d.forwardRef(aE),sE="rc-observer-key";function cE(e,t){var n=e.children,r=typeof n=="function"?[n]:Mr(n);return r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(sE,"-").concat(l);return d.createElement(lE,ke({},e,{key:s,ref:l===0?t:void 0}),o)})}var ro=d.forwardRef(cE);ro.Collection=k$;function Im(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 uE(e){if(Array.isArray(e))return Im(e)}function iS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jp(e,t){if(e){if(typeof e=="string")return Im(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)?Im(e,t):void 0}}function dE(){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 Be(e){return uE(e)||iS(e)||jp(e)||dE()}var aS=function(t){return+setTimeout(t,16)},lS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(aS=function(t){return window.requestAnimationFrame(t)},lS=function(t){return window.cancelAnimationFrame(t)});var l0=0,kp=new Map;function sS(e){kp.delete(e)}var yn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;l0+=1;var r=l0;function o(l){if(l===0)sS(r),t();else{var s=aS(function(){o(l-1)});kp.set(r,s)}}return o(n),r};yn.cancel=function(e){var t=kp.get(e);return sS(e),lS(t)};function cS(e){if(Array.isArray(e))return e}function fE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,u=[],f=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(v){m=!0,o=v}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw o}}return u}}function uS(){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 re(e,t){return cS(e)||fE(e,t)||jp(e,t)||uS()}function ql(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 wr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function mE(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 s0="data-rc-order",c0="data-rc-priority",pE="rc-util-key",Pm=new Map;function dS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):pE}function bu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function vE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lp(e){return Array.from((Pm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wr())return null;var n=t.csp,r=t.prepend,o=t.priority,l=o===void 0?0:o,s=vE(r),u=s==="prependQueue",f=document.createElement("style");f.setAttribute(s0,s),u&&l&&f.setAttribute(c0,"".concat(l)),n!=null&&n.nonce&&(f.nonce=n==null?void 0:n.nonce),f.innerHTML=e;var m=bu(t),v=m.firstChild;if(r){if(u){var g=(t.styles||Lp(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(s0)))return!1;var b=Number(h.getAttribute(c0)||0);return l>=b});if(g.length)return m.insertBefore(f,g[g.length-1].nextSibling),f}m.insertBefore(f,v)}else m.appendChild(f);return f}function mS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bu(t);return(t.styles||Lp(n)).find(function(r){return r.getAttribute(dS(t))===e})}function Xl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mS(e,t);if(n){var r=bu(t);r.removeChild(n)}}function gE(e,t){var n=Pm.get(e);if(!n||!mE(document,n)){var r=fS("",t),o=r.parentNode;Pm.set(e,o),e.removeChild(r)}}function Vo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bu(n),o=Lp(r),l=q(q({},n),{},{styles:o});gE(r,l);var s=mS(t,l);if(s){var u,f;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var m;s.nonce=(m=l.csp)===null||m===void 0?void 0:m.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var v=fS(e,l);return v.setAttribute(dS(l),t),v}function hE(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 _t(e,t){if(e==null)return{};var n,r,o=hE(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ql(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(l,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(l);if(ar(!f,"Warning: There may be circular references"),f)return!1;if(l===s)return!0;if(n&&u>1)return!1;r.add(l);var m=u+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var v=0;v<l.length;v++)if(!o(l[v],s[v],m))return!1;return!0}if(l&&s&&vt(l)==="object"&&vt(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(h){return o(l[h],s[h],m)})}return!1}return o(e,t)}var yE="%";function Tm(e){return e.join(yE)}var bE=(function(){function e(t){Bn(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return Fn(e,[{key:"get",value:function(n){return this.opGet(Tm(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Tm(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),l=r(o);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Ua="data-token-hash",yo="data-css-hash",hi="__cssinjs_instance__";function SE(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(yo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[hi]=o[hi]||e,o[hi]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(yo,"]"))).forEach(function(o){var l=o.getAttribute(yo);if(r[l]){if(o[hi]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new bE(e)}var fs=d.createContext({hashPriority:"low",cache:SE(),defaultCache:!0});function xE(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 Ap=(function(){function e(){Bn(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 Fn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(u){if(!s)s=void 0;else{var f;s=(f=s)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(o=s)===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 l=this.keys.reduce(function(m,v){var g=re(m,2),h=g[1];return o.internalGet(v)[1]<h?[v,o.internalGet(v)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=re(l,1),u=s[0];this.delete(u)}this.keys.push(n)}var f=this.cache;n.forEach(function(m,v){if(v===n.length-1)f.set(m,{value:[r,o.cacheCallTimes++]});else{var g=f.get(m);g?g.map||(g.map=new Map):f.set(m,{map:new Map}),f=f.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var l;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!xE(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();H(Ap,"MAX_CACHE_SIZE",20);H(Ap,"MAX_CACHE_OFFSET",5);var u0=0,pS=(function(){function e(t){Bn(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=u0,t.length===0&&(t.length>0,void 0),u0+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),jf=new Ap;function _m(e){var t=Array.isArray(e)?e:[e];return jf.has(t)||jf.set(t,new pS(t)),jf.get(t)}var CE=new WeakMap,kf={};function wE(e,t){for(var n=CE,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(kf)||n.set(kf,e()),n.get(kf)}var d0=new WeakMap;function Hl(e){var t=d0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof pS?t+=r.id:r&&vt(r)==="object"?t+=Hl(r):t+=r}),t=ql(t),d0.set(e,t)),t}function f0(e,t){return ql("".concat(t,"_").concat(Hl(e)))}var Mm=wr();function se(e){return typeof e=="number"?"".concat(e,"px"):e}function Qc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var l=q(q({},r),{},H(H({},Ua,t),yo,n)),s=Object.keys(l).map(function(u){var f=l[u];return f?"".concat(u,'="').concat(f,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Lc=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()},$E=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 l=re(o,2),s=l[0],u=l[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},vS=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var u,f,m=re(s,2),v=m[0],g=m[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[v])l[v]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[v])){var h,b=Lc(v,r==null?void 0:r.prefix);o[b]=typeof g=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[v])?"".concat(g,"px"):String(g),l[v]="var(".concat(b,")")}}),[l,$E(o,n,{scope:r==null?void 0:r.scope})]},m0=wr()?d.useLayoutEffect:d.useEffect,tn=function(t,n){var r=d.useRef(!0);m0(function(){return t(r.current)},n),m0(function(){return r.current=!1,function(){r.current=!0}},[])},Nm=function(t,n){tn(function(r){if(!r)return t()},n)},EE=q({},hu),p0=EE.useInsertionEffect,RE=function(t,n,r){d.useMemo(t,r),tn(function(){return n(!0)},r)},OE=p0?function(e,t,n){return p0(function(){return e(),t()},n)}:RE,IE=q({},hu),PE=IE.useInsertionEffect,TE=function(t){var n=[],r=!1;function o(l){r||n.push(l)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),o},_E=function(){return function(t){t()}},ME=typeof PE<"u"?TE:_E;function Dp(e,t,n,r,o){var l=d.useContext(fs),s=l.cache,u=[e].concat(Be(t)),f=Tm(u),m=ME([f]),v=function(x){s.opUpdate(f,function(C){var S=C||[void 0,void 0],E=re(S,2),$=E[0],R=$===void 0?0:$,P=E[1],O=P,I=O||n(),T=[R,I];return x?x(T):T})};d.useMemo(function(){v()},[f]);var g=s.opGet(f),h=g[1];return OE(function(){o==null||o(h)},function(b){return v(function(x){var C=re(x,2),S=C[0],E=C[1];return b&&S===0&&(o==null||o(h)),[S+1,E]}),function(){s.opUpdate(f,function(x){var C=x||[],S=re(C,2),E=S[0],$=E===void 0?0:E,R=S[1],P=$-1;return P===0?(m(function(){(b||!s.opGet(f))&&(r==null||r(R,!1))}),null):[$-1,R]})}},[f]),h}var NE={},zE="css",Li=new Map;function jE(e){Li.set(e,(Li.get(e)||0)+1)}function kE(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ua,'="').concat(e,'"]'));n.forEach(function(r){if(r[hi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var LE=0;function AE(e,t){Li.set(e,(Li.get(e)||0)-1);var n=new Set;Li.forEach(function(r,o){r<=0&&n.add(o)}),Li.size-n.size>LE&&n.forEach(function(r){kE(r,t),Li.delete(r)})}var DE=function(t,n,r,o){var l=r.getDerivativeToken(t),s=q(q({},l),n);return o&&(s=o(s)),s},gS="token";function BE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(fs),o=r.cache.instanceId,l=r.container,s=n.salt,u=s===void 0?"":s,f=n.override,m=f===void 0?NE:f,v=n.formatToken,g=n.getComputedToken,h=n.cssVar,b=wE(function(){return Object.assign.apply(Object,[{}].concat(Be(t)))},t),x=Hl(b),C=Hl(m),S=h?Hl(h):"",E=Dp(gS,[u,e.id,x,C,S],function(){var $,R=g?g(b,m,e):DE(b,m,e,v),P=q({},R),O="";if(h){var I=vS(R,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),T=re(I,2);R=T[0],O=T[1]}var M=f0(R,u);R._tokenKey=M,P._tokenKey=f0(P,u);var _=($=h==null?void 0:h.key)!==null&&$!==void 0?$:M;R._themeKey=_,jE(_);var z="".concat(zE,"-").concat(ql(M));return R._hashId=z,[R,z,P,O,(h==null?void 0:h.key)||""]},function($){AE($[0]._themeKey,o)},function($){var R=re($,4),P=R[0],O=R[3];if(h&&O){var I=Vo(O,ql("css-variables-".concat(P._themeKey)),{mark:yo,prepend:"queue",attachTo:l,priority:-999});I[hi]=o,I.setAttribute(Ua,P._themeKey)}});return E}var FE=function(t,n,r){var o=re(t,5),l=o[2],s=o[3],u=o[4],f=r||{},m=f.plain;if(!s)return null;var v=l._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=Qc(s,u,v,h,m);return[g,v,b]},HE={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},hS="comm",yS="rule",bS="decl",VE="@import",WE="@namespace",UE="@keyframes",GE="@layer",SS=Math.abs,Bp=String.fromCharCode;function xS(e){return e.trim()}function Ac(e,t,n){return e.replace(t,n)}function KE(e,t,n){return e.indexOf(t,n)}function Ha(e,t){return e.charCodeAt(t)|0}function Ga(e,t,n){return e.slice(t,n)}function Ro(e){return e.length}function qE(e){return e.length}function xc(e,t){return t.push(e),e}var Su=1,Ka=1,CS=0,oo=0,Dn=0,Za="";function Fp(e,t,n,r,o,l,s,u){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:Su,column:Ka,length:s,return:"",siblings:u}}function XE(){return Dn}function QE(){return Dn=oo>0?Ha(Za,--oo):0,Ka--,Dn===10&&(Ka=1,Su--),Dn}function bo(){return Dn=oo<CS?Ha(Za,oo++):0,Ka++,Dn===10&&(Ka=1,Su++),Dn}function yi(){return Ha(Za,oo)}function Dc(){return oo}function xu(e,t){return Ga(Za,e,t)}function Yl(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 YE(e){return Su=Ka=1,CS=Ro(Za=e),oo=0,[]}function ZE(e){return Za="",e}function Lf(e){return xS(xu(oo-1,zm(e===91?e+2:e===40?e+1:e)))}function JE(e){for(;(Dn=yi())&&Dn<33;)bo();return Yl(e)>2||Yl(Dn)>3?"":" "}function e2(e,t){for(;--t&&bo()&&!(Dn<48||Dn>102||Dn>57&&Dn<65||Dn>70&&Dn<97););return xu(e,Dc()+(t<6&&yi()==32&&bo()==32))}function zm(e){for(;bo();)switch(Dn){case e:return oo;case 34:case 39:e!==34&&e!==39&&zm(Dn);break;case 40:e===41&&zm(e);break;case 92:bo();break}return oo}function t2(e,t){for(;bo()&&e+Dn!==57;)if(e+Dn===84&&yi()===47)break;return"/*"+xu(t,oo-1)+"*"+Bp(e===47?e:bo())}function n2(e){for(;!Yl(yi());)bo();return xu(e,oo)}function r2(e){return ZE(Bc("",null,null,null,[""],e=YE(e),0,[0],e))}function Bc(e,t,n,r,o,l,s,u,f){for(var m=0,v=0,g=s,h=0,b=0,x=0,C=1,S=1,E=1,$=0,R="",P=o,O=l,I=r,T=R;S;)switch(x=$,$=bo()){case 40:if(x!=108&&Ha(T,g-1)==58){KE(T+=Ac(Lf($),"&","&\f"),"&\f",SS(m?u[m-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:T+=Lf($);break;case 9:case 10:case 13:case 32:T+=JE(x);break;case 92:T+=e2(Dc()-1,7);continue;case 47:switch(yi()){case 42:case 47:xc(o2(t2(bo(),Dc()),t,n,f),f),(Yl(x||1)==5||Yl(yi()||1)==5)&&Ro(T)&&Ga(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*C:u[m++]=Ro(T)*E;case 125*C:case 59:case 0:switch($){case 0:case 125:S=0;case 59+v:E==-1&&(T=Ac(T,/\f/g,"")),b>0&&(Ro(T)-g||C===0&&x===47)&&xc(b>32?g0(T+";",r,n,g-1,f):g0(Ac(T," ","")+";",r,n,g-2,f),f);break;case 59:T+=";";default:if(xc(I=v0(T,t,n,m,v,o,u,R,P=[],O=[],g,l),l),$===123)if(v===0)Bc(T,t,I,I,P,l,g,u,O);else{switch(h){case 99:if(Ha(T,3)===110)break;case 108:if(Ha(T,2)===97)break;default:v=0;case 100:case 109:case 115:}v?Bc(e,I,I,r&&xc(v0(e,I,I,0,0,o,u,R,o,P=[],g,O),O),o,O,g,u,r?P:O):Bc(T,I,I,I,[""],O,0,u,O)}}m=v=b=0,C=E=1,R=T="",g=s;break;case 58:g=1+Ro(T),b=x;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&QE()==125)continue}switch(T+=Bp($),$*C){case 38:E=v>0?1:(T+="\f",-1);break;case 44:u[m++]=(Ro(T)-1)*E,E=1;break;case 64:yi()===45&&(T+=Lf(bo())),h=yi(),v=g=Ro(R=T+=n2(Dc())),$++;break;case 45:x===45&&Ro(T)==2&&(C=0)}}return l}function v0(e,t,n,r,o,l,s,u,f,m,v,g){for(var h=o-1,b=o===0?l:[""],x=qE(b),C=0,S=0,E=0;C<r;++C)for(var $=0,R=Ga(e,h+1,h=SS(S=s[C])),P=e;$<x;++$)(P=xS(S>0?b[$]+" "+R:Ac(R,/&\f/g,b[$])))&&(f[E++]=P);return Fp(e,t,n,o===0?yS:u,f,m,v,g)}function o2(e,t,n,r){return Fp(e,t,n,hS,Bp(XE()),Ga(e,2,-2),0,r)}function g0(e,t,n,r,o){return Fp(e,t,n,bS,Ga(e,0,r),Ga(e,r+1,-1),r,o)}function jm(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function i2(e,t,n,r){switch(e.type){case GE:if(e.children.length)break;case VE:case WE:case bS:return e.return=e.return||e.value;case hS:return"";case UE:return e.return=e.value+"{"+jm(e.children,r)+"}";case yS:if(!Ro(e.value=e.props.join(",")))return""}return Ro(n=jm(e.children,r))?e.return=e.value+"{"+n+"}":""}var h0="data-ant-cssinjs-cache-path",wS="_FILE_STYLE__",Fi,$S=!0;function a2(){if(!Fi&&(Fi={},wr())){var e=document.createElement("div");e.className=h0,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 l=o.split(":"),s=re(l,2),u=s[0],f=s[1];Fi[u]=f});var n=document.querySelector("style[".concat(h0,"]"));if(n){var r;$S=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function l2(e){return a2(),!!Fi[e]}function s2(e){var t=Fi[e],n=null;if(t&&wr())if($S)n=wS;else{var r=document.querySelector("style[".concat(yo,'="').concat(Fi[e],'"]'));r?n=r.innerHTML:delete Fi[e]}return[n,t]}var c2="_skip_check_",ES="_multi_value_";function Fc(e){var t=jm(r2(e),i2);return t.replace(/\{%%%\:[^;];}/g,";")}function u2(e){return vt(e)==="object"&&e&&(c2 in e||ES in e)}function y0(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(s){var u,f=s.trim().split(/\s+/),m=f[0]||"",v=((u=m.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return m="".concat(v).concat(o).concat(m.slice(v.length)),[m].concat(Be(f.slice(1))).join(" ")});return l.join(",")}var d2=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,l=r.injectHash,s=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var m=n.hashPriority,v=n.transformers,g=v===void 0?[]:v;n.linters;var h="",b={};function x(E){var $=E.getName(u);if(!b[$]){var R=e(E.style,n,{root:!1,parentSelectors:s}),P=re(R,1),O=P[0];b[$]="@keyframes ".concat(E.getName(u)).concat(O)}}function C(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(R){Array.isArray(R)?C(R,$):R&&$.push(R)}),$}var S=C(Array.isArray(t)?t:[t]);return S.forEach(function(E){var $=typeof E=="string"&&!o?{}:E;if(typeof $=="string")h+="".concat($,`
55
+ `);else if($._keyframe)x($);else{var R=g.reduce(function(P,O){var I;return(O==null||(I=O.visit)===null||I===void 0?void 0:I.call(O,P))||P},$);Object.keys(R).forEach(function(P){var O=R[P];if(vt(O)==="object"&&O&&(P!=="animationName"||!O._keyframe)&&!u2(O)){var I=!1,T=P.trim(),M=!1;(o||l)&&u?T.startsWith("@")?I=!0:T==="&"?T=y0("",u,m):T=y0(P,u,m):o&&!u&&(T==="&"||T==="")&&(T="",M=!0);var _=e(O,n,{root:M,injectHash:I,parentSelectors:[].concat(Be(s),[T])}),z=re(_,2),L=z[0],j=z[1];b=q(q({},b),j),h+="".concat(T).concat(L)}else{let K=function(V,U){var D=V.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),X=U;!HE[V]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),V==="animationName"&&U!==null&&U!==void 0&&U._keyframe&&(x(U),X=U.getName(u)),h+="".concat(D,":").concat(X,";")};var A,B=(A=O==null?void 0:O.value)!==null&&A!==void 0?A:O;vt(O)==="object"&&O!==null&&O!==void 0&&O[ES]&&Array.isArray(B)?B.forEach(function(V){K(P,V)}):K(P,B)}})}}),o?f&&(h&&(h="@layer ".concat(f.name," {").concat(h,"}")),f.dependencies&&(b["@layer ".concat(f.name)]=f.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(f.name,";")}).join(`
56
+ `))):h="{".concat(h,"}"),[h,b]};function RS(e,t){return ql("".concat(e.join("%")).concat(t))}function f2(){return null}var OS="style";function km(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,s=e.nonce,u=e.clientOnly,f=e.order,m=f===void 0?0:f,v=d.useContext(fs),g=v.autoClear;v.mock;var h=v.defaultCache,b=v.hashPriority,x=v.container,C=v.ssrInline,S=v.transformers,E=v.linters,$=v.cache,R=v.layer,P=n._tokenKey,O=[P];R&&O.push("layer"),O.push.apply(O,Be(r));var I=Mm,T=Dp(OS,O,function(){var j=O.join("|");if(l2(j)){var A=s2(j),B=re(A,2),K=B[0],V=B[1];if(K)return[K,P,V,{},u,m]}var U=t(),D=d2(U,{hashId:o,hashPriority:b,layer:R?l:void 0,path:r.join("-"),transformers:S,linters:E}),X=re(D,2),W=X[0],k=X[1],F=Fc(W),Y=RS(O,F);return[F,P,Y,k,u,m]},function(j,A){var B=re(j,3),K=B[2];(A||g)&&Mm&&Xl(K,{mark:yo,attachTo:x})},function(j){var A=re(j,4),B=A[0];A[1];var K=A[2],V=A[3];if(I&&B!==wS){var U={mark:yo,prepend:R?!1:"queue",attachTo:x,priority:m},D=typeof s=="function"?s():s;D&&(U.csp={nonce:D});var X=[],W=[];Object.keys(V).forEach(function(F){F.startsWith("@layer")?X.push(F):W.push(F)}),X.forEach(function(F){Vo(Fc(V[F]),"_layer-".concat(F),q(q({},U),{},{prepend:!0}))});var k=Vo(B,K,U);k[hi]=$.instanceId,k.setAttribute(Ua,P),W.forEach(function(F){Vo(Fc(V[F]),"_effect-".concat(F),U)})}}),M=re(T,3),_=M[0],z=M[1],L=M[2];return function(j){var A;return!C||I||!h?A=d.createElement(f2,null):A=d.createElement("style",ke({},H(H({},Ua,z),yo,L),{dangerouslySetInnerHTML:{__html:_}})),d.createElement(d.Fragment,null,A,j)}}var m2=function(t,n,r){var o=re(t,6),l=o[0],s=o[1],u=o[2],f=o[3],m=o[4],v=o[5],g=r||{},h=g.plain;if(m)return null;var b=l,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=Qc(l,s,u,x,h),f&&Object.keys(f).forEach(function(C){if(!n[C]){n[C]=!0;var S=Fc(f[C]),E=Qc(S,s,"_effect-".concat(C),x,h);C.startsWith("@layer")?b=E+b:b+=E}}),[v,u,b]},IS="cssVar",p2=function(t,n){var r=t.key,o=t.prefix,l=t.unitless,s=t.ignore,u=t.token,f=t.scope,m=f===void 0?"":f,v=d.useContext(fs),g=v.cache.instanceId,h=v.container,b=u._tokenKey,x=[].concat(Be(t.path),[r,m,b]),C=Dp(IS,x,function(){var S=n(),E=vS(S,r,{prefix:o,unitless:l,ignore:s,scope:m}),$=re(E,2),R=$[0],P=$[1],O=RS(x,P);return[R,P,O,r]},function(S){var E=re(S,3),$=E[2];Mm&&Xl($,{mark:yo,attachTo:h})},function(S){var E=re(S,3),$=E[1],R=E[2];if($){var P=Vo($,R,{mark:yo,prepend:"queue",attachTo:h,priority:-999});P[hi]=g,P.setAttribute(Ua,r)}});return C},v2=function(t,n,r){var o=re(t,4),l=o[1],s=o[2],u=o[3],f=r||{},m=f.plain;if(!l)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},h=Qc(l,u,s,g,m);return[v,s,h]};H(H(H({},OS,m2),gS,FE),IS,v2);var Ht=(function(){function e(t,n){Bn(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return Fn(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 $a(e){return e.notSplit=!0,e}$a(["borderTop","borderBottom"]),$a(["borderTop"]),$a(["borderBottom"]),$a(["borderLeft","borderRight"]),$a(["borderLeft"]),$a(["borderRight"]);var Hp=d.createContext({});function PS(e){return cS(e)||iS(e)||jp(e)||uS()}function Oo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function TS(e,t,n,r){if(!t.length)return n;var o=PS(t),l=o[0],s=o.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Be(e):u=q({},e),r&&n===void 0&&s.length===1?delete u[l][s[0]]:u[l]=TS(u[l],s,n,r),u}function mo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Oo(e,t.slice(0,-1))?e:TS(e,t,n,r)}function g2(e){return vt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function b0(e){return Array.isArray(e)?[]:{}}var h2=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=b0(t[0]);return t.forEach(function(o){function l(s,u){var f=new Set(u),m=Oo(o,s),v=Array.isArray(m);if(v||g2(m)){if(!f.has(m)){f.add(m);var g=Oo(r,s);v?r=mo(r,s,[]):(!g||vt(g)!=="object")&&(r=mo(r,s,b0(m))),h2(m).forEach(function(h){l([].concat(Be(s),[h]),f)})}}else r=mo(r,s,m)}l([])}),r}function y2(){}const b2=d.createContext({}),Vp=()=>{const e=()=>{};return e.deprecated=y2,e},S2=d.createContext(void 0);var _S={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"},x2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},C2=q(q({},x2),{},{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 MS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},S0={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"]},C2),timePickerLocale:Object.assign({},MS)},Ar="${label} is not a valid ${type}",Hi={locale:"en",Pagination:_S,DatePicker:S0,TimePicker:MS,Calendar:S0,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:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},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"}};Object.assign({},Hi.Modal);let Hc=[];const x0=()=>Hc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Hi.Modal);function w2(e){if(e){const t=Object.assign({},e);return Hc.push(t),x0(),()=>{Hc=Hc.filter(n=>n!==t),x0()}}Object.assign({},Hi.Modal)}const Wp=d.createContext(void 0),Ja=(e,t)=>{const n=d.useContext(Wp),r=d.useMemo(()=>{var l;const s=t||Hi[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,n]),o=d.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Hi.locale:l},[n]);return[r,o]},$2="internalMark",E2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>w2(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Wp.Provider,{value:o},n)},Up={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"},Zl=Object.assign(Object.assign({},Up),{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}),er=Math.round;function Af(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 C0=(e,t,n)=>n===0?e:e/100;function Pl(e,t){const n=t||255;return e>n?n:e<0?0:e}class dn{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 l=function(s){return o.startsWith(s)};var r=l;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):l("rgb")?this.fromRgbString(o):l("hsl")?this.fromHslString(o):(l("hsv")||l("hsb"))&&this.fromHsvString(o)}else if(t instanceof dn)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=Pl(t.r),this.g=Pl(t.g),this.b=Pl(t.b),this.a=typeof t.a=="number"?Pl(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(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.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=er(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,l=u=>(r[u]-this[u])*o+this[u],s={r:er(l("r")),g:er(l("g")),b:er(l("b")),a:er(l("a")*100)/100};return this._c(s)}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=l=>er((this[l]*this.a+n[l]*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 l=er(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=er(this.getSaturation()*100),r=er(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]=Pl(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,l){return parseInt(n[o]+n[l||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 h=er(r*255);this.r=h,this.g=h,this.b=h}let l=0,s=0,u=0;const f=t/60,m=(1-Math.abs(2*r-1))*n,v=m*(1-Math.abs(f%2-1));f>=0&&f<1?(l=m,s=v):f>=1&&f<2?(l=v,s=m):f>=2&&f<3?(s=m,u=v):f>=3&&f<4?(s=v,u=m):f>=4&&f<5?(l=v,u=m):f>=5&&f<6&&(l=m,u=v);const g=r-m/2;this.r=er((l+g)*255),this.g=er((s+g)*255),this.b=er((u+g)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const l=er(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,u=Math.floor(s),f=s-u,m=er(r*(1-n)*255),v=er(r*(1-n*f)*255),g=er(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=m;break;case 1:this.r=v,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=v;break;case 4:this.r=g,this.g=m;break;case 5:default:this.g=m,this.b=v;break}}fromHsvString(t){const n=Af(t,C0);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Af(t,C0);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Af(t,(r,o)=>o.includes("%")?er(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Cc=2,w0=.16,R2=.05,O2=.05,I2=.15,NS=5,zS=4,P2=[{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 $0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Cc*t:Math.round(e.h)+Cc*t:r=n?Math.round(e.h)+Cc*t:Math.round(e.h)-Cc*t,r<0?r+=360:r>=360&&(r-=360),r}function E0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-w0*t:t===zS?r=e.s+w0:r=e.s+R2*t,r>1&&(r=1),n&&t===NS&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function R0(e,t,n){var r;return n?r=e.v+O2*t:r=e.v-I2*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Vi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new dn(e),o=r.toHsv(),l=NS;l>0;l-=1){var s=new dn({h:$0(o,l,!0),s:E0(o,l,!0),v:R0(o,l,!0)});n.push(s)}n.push(r);for(var u=1;u<=zS;u+=1){var f=new dn({h:$0(o,u),s:E0(o,u),v:R0(o,u)});n.push(f)}return t.theme==="dark"?P2.map(function(m){var v=m.index,g=m.amount;return new dn(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Df={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"},Lm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Lm.primary=Lm[5];var Am=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Am.primary=Am[5];var Dm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Dm.primary=Dm[5];var Yc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Yc.primary=Yc[5];var Bm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Bm.primary=Bm[5];var Fm=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fm.primary=Fm[5];var Hm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hm.primary=Hm[5];var Vm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Vm.primary=Vm[5];var Zc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Zc.primary=Zc[5];var Wm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Wm.primary=Wm[5];var Um=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Um.primary=Um[5];var Gm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Gm.primary=Gm[5];var Km=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Km.primary=Km[5];var Bf={red:Lm,volcano:Am,orange:Dm,gold:Yc,yellow:Bm,lime:Fm,green:Hm,cyan:Vm,blue:Zc,geekblue:Wm,purple:Um,magenta:Gm,grey:Km};function jS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:u,colorBgBase:f,colorTextBase:m}=e,v=t(u),g=t(r),h=t(o),b=t(l),x=t(s),C=n(f,m),S=e.colorLink||e.colorInfo,E=t(S),$=new dn(b[1]).mix(new dn(b[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:$,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new dn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const T2=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 _2(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},T2(r))}const M2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Vc(e){return(e+8)/e}function N2(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,l=e*Math.pow(Math.E,o/5),s=r>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Vc(n)}))}const z2=e=>{const t=N2(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),o=n[1],l=n[0],s=n[2],u=r[1],f=r[0],m=r[2];return{fontSizeSM:l,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(u*o),fontHeightLG:Math.round(m*s),fontHeightSM:Math.round(f*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function j2(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 Zr=(e,t)=>new dn(e).setA(t).toRgbString(),Tl=(e,t)=>new dn(e).darken(t).toHexString(),k2=e=>{const t=Vi(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]}},L2=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zr(r,.88),colorTextSecondary:Zr(r,.65),colorTextTertiary:Zr(r,.45),colorTextQuaternary:Zr(r,.25),colorFill:Zr(r,.15),colorFillSecondary:Zr(r,.06),colorFillTertiary:Zr(r,.04),colorFillQuaternary:Zr(r,.02),colorBgSolid:Zr(r,1),colorBgSolidHover:Zr(r,.75),colorBgSolidActive:Zr(r,.95),colorBgLayout:Tl(n,4),colorBgContainer:Tl(n,0),colorBgElevated:Tl(n,0),colorBgSpotlight:Zr(r,.85),colorBgBlur:"transparent",colorBorder:Tl(n,15),colorBorderSecondary:Tl(n,6)}};function kS(e){Df.pink=Df.magenta,Bf.pink=Bf.magenta;const t=Object.keys(Up).map(n=>{const r=e[n]===Df[n]?Bf[n]:Vi(e[n]);return Array.from({length:10},()=>1).reduce((o,l,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],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),jS(e,{generateColorPalettes:k2,generateNeutralColorPalettes:L2})),z2(e.fontSize)),j2(e)),M2(e)),_2(e))}const LS=_m(kS),Jc={token:Zl,override:{override:Zl},hashed:!0},AS=J.createContext(Jc),Jl="ant",Cu="anticon",A2=["outlined","borderless","filled","underlined"],D2=(e,t)=>t||(e?`${Jl}-${e}`:Jl),Gt=d.createContext({getPrefixCls:D2,iconPrefixCls:Cu}),{Consumer:v6}=Gt,O0={};function Vr(e){const t=d.useContext(Gt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:O0,styles:O0},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const B2=`-ant-${Date.now()}-${Math.random()}`;function F2(e,t){const n={},r=(s,u)=>{let f=s.clone();return f=(u==null?void 0:u(f))||f,f.toRgbString()},o=(s,u)=>{const f=new dn(s),m=Vi(f.toRgbString());n[`${u}-color`]=r(f),n[`${u}-color-disabled`]=m[1],n[`${u}-color-hover`]=m[4],n[`${u}-color-active`]=m[6],n[`${u}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=m[0],n[`${u}-color-deprecated-border`]=m[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new dn(t.primaryColor),u=Vi(s.toRgbString());u.forEach((m,v)=>{n[`primary-${v+1}`]=m}),n["primary-color-deprecated-l-35"]=r(s,m=>m.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,m=>m.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,m=>m.tint(20)),n["primary-color-deprecated-t-50"]=r(s,m=>m.tint(50)),n["primary-color-deprecated-f-12"]=r(s,m=>m.setA(m.a*.12));const f=new dn(u[0]);n["primary-color-active-deprecated-f-30"]=r(f,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(f,m=>m.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(s=>`--${e}-${s}: ${n[s]};`).join(`
61
+ `)}
62
+ }
63
+ `.trim()}function H2(e,t){const n=F2(e,t);wr()&&Vo(n,`${B2}-dynamic-theme`)}const qa=d.createContext(!1),V2=({children:e,disabled:t})=>{const n=d.useContext(qa);return d.createElement(qa.Provider,{value:t??n},e)},Xa=d.createContext(void 0),W2=({children:e,size:t})=>{const n=d.useContext(Xa);return d.createElement(Xa.Provider,{value:t||n},e)};function U2(){const e=d.useContext(qa),t=d.useContext(Xa);return{componentDisabled:e,componentSize:t}}var DS=Fn(function e(){Bn(this,e)}),BS="CALC_UNIT",G2=new RegExp(BS,"g");function Ff(e){return typeof e=="number"?"".concat(e).concat(BS):e}var K2=(function(e){Go(n,e);var t=Ko(n);function n(r,o){var l;Bn(this,n),l=t.call(this),H(Dt(l),"result",""),H(Dt(l),"unitlessCssVar",void 0),H(Dt(l),"lowPriority",void 0);var s=vt(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=Ff(r):s==="string"&&(l.result=r),l}return Fn(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(Ff(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(Ff(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 l=this,s=o||{},u=s.unit,f=!0;return typeof u=="boolean"?f=u:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(f=!1),this.result=this.result.replace(G2,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(DS),q2=(function(e){Go(n,e);var t=Ko(n);function n(r){var o;return Bn(this,n),o=t.call(this),H(Dt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Fn(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})(DS),X2=function(t,n){var r=t==="css"?K2:q2;return function(o){return new r(o,n)}},I0=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 Kn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function es(e){var t=d.useRef(!1),n=d.useState(e),r=re(n,2),o=r[0],l=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,f){f&&t.current||l(u)}return[o,s]}function Hf(e){return e!==void 0}function tr(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,u=es(function(){return Hf(o)?o:Hf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=re(u,2),m=f[0],v=f[1],g=o!==void 0?o:m,h=s?s(g):g,b=Kn(l),x=es([g]),C=re(x,2),S=C[0],E=C[1];Nm(function(){var R=S[0];m!==R&&b(m,R)},[S]),Nm(function(){Hf(o)||v(o)},[o]);var $=Kn(function(R,P){v(R,P),E([g],P)});return[h,$]}function P0(e,t,n,r){var o=q({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var f=re(u,2),m=f[0],v=f[1];if(o!=null&&o[m]||o!=null&&o[v]){var g;(g=o[v])!==null&&g!==void 0||(o[v]=o==null?void 0:o[m])}})}var s=q(q({},n),o);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var FS=typeof CSSINJS_STATISTIC<"u",qm=!0;function fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!FS)return Object.assign.apply(Object,[{}].concat(t));qm=!1;var r={};return t.forEach(function(o){if(vt(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),qm=!0,r}var T0={};function Q2(){}var Y2=function(t){var n,r=t,o=Q2;return FS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,u){if(qm){var f;(f=n)===null||f===void 0||f.add(u)}return s[u]}}),o=function(s,u){var f;T0[s]={global:Array.from(n),component:q(q({},(f=T0[s])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:o}};function _0(e,t,n){if(typeof n=="function"){var r;return n(fn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Z2(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(l){return se(l)}).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(l){return se(l)}).join(","),")")}}}var J2=1e3*60*10,eR=(function(){function e(){Bn(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 Fn(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(l){return l&&vt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(vt(l),"_").concat(l)});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,l){r-o>J2&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),M0=new eR;function tR(e,t){return J.useMemo(function(){var n=M0.get(t);if(n)return n;var r=e();return M0.set(t,r),r},t)}var nR=function(){return{}};function rR(e){var t=e.useCSP,n=t===void 0?nR:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function f(h,b,x,C){var S=Array.isArray(h)?h[0]:h;function E(M){return"".concat(String(S)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var $=(C==null?void 0:C.unitless)||{},R=typeof u=="function"?u(h):{},P=q(q({},R),{},H({},E("zIndexPopup"),!0));Object.keys($).forEach(function(M){P[E(M)]=$[M]});var O=q(q({},C),{},{unitless:P,prefixToken:E}),I=v(h,b,x,O),T=m(S,x,O);return function(M){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,z=I(M,_),L=re(z,2),j=L[1],A=T(_),B=re(A,2),K=B[0],V=B[1];return[K,j,V]}}function m(h,b,x){var C=x.unitless,S=x.injectStyle,E=S===void 0?!0:S,$=x.prefixToken,R=x.ignore,P=function(T){var M=T.rootCls,_=T.cssVar,z=_===void 0?{}:_,L=r(),j=L.realToken;return p2({path:[h],prefix:z.prefix,key:z.key,unitless:C,ignore:R,token:j,scope:M},function(){var A=_0(h,j,b),B=P0(h,j,A,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(A).forEach(function(K){B[$(K)]=B[K],delete B[K]}),B}),null},O=function(T){var M=r(),_=M.cssVar;return[function(z){return E&&_?J.createElement(J.Fragment,null,J.createElement(P,{rootCls:T,cssVar:_,component:h}),z):z},_==null?void 0:_.key]};return O}function v(h,b,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(h)?h:[h,h],E=re(S,1),$=E[0],R=S.join("-"),P=e.layer||{name:"antd"};return function(O){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,T=r(),M=T.theme,_=T.realToken,z=T.hashId,L=T.token,j=T.cssVar,A=o(),B=A.rootPrefixCls,K=A.iconPrefixCls,V=n(),U=j?"css":"js",D=tR(function(){var ne=new Set;return j&&Object.keys(C.unitless||{}).forEach(function(Z){ne.add(Lc(Z,j.prefix)),ne.add(Lc(Z,I0($,j.prefix)))}),X2(U,ne)},[U,$,j==null?void 0:j.prefix]),X=Z2(U),W=X.max,k=X.min,F={theme:M,token:L,hashId:z,nonce:function(){return V.nonce},clientOnly:C.clientOnly,layer:P,order:C.order||-999};typeof l=="function"&&km(q(q({},F),{},{clientOnly:!1,path:["Shared",B]}),function(){return l(L,{prefix:{rootPrefixCls:B,iconPrefixCls:K},csp:V})});var Y=km(q(q({},F),{},{path:[R,O,K]}),function(){if(C.injectStyle===!1)return[];var ne=Y2(L),Z=ne.token,ee=ne.flush,me=_0($,_,x),pe=".".concat(O),ue=P0($,_,me,{deprecatedTokens:C.deprecatedTokens});j&&me&&vt(me)==="object"&&Object.keys(me).forEach(function(ye){me[ye]="var(".concat(Lc(ye,I0($,j.prefix)),")")});var Se=fn(Z,{componentCls:pe,prefixCls:O,iconCls:".".concat(K),antCls:".".concat(B),calc:D,max:W,min:k},j?me:ue),fe=b(Se,{hashId:z,prefixCls:O,rootPrefixCls:B,iconPrefixCls:K});ee($,ue);var ae=typeof s=="function"?s(Se,O,I,C.resetFont):null;return[C.resetStyle===!1?null:ae,fe]});return[Y,z]}}function g(h,b,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=v(h,b,x,q({resetStyle:!1,order:-998},C)),E=function(R){var P=R.prefixCls,O=R.rootCls,I=O===void 0?P:O;return S(P,I),null};return E}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:v}}const Wi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],oR="5.29.3";function Vf(e){return e>=0&&e<=255}function Al(e,t){const{r:n,g:r,b:o,a:l}=new dn(e).toRgb();if(l<1)return e;const{r:s,g:u,b:f}=new dn(t).toRgb();for(let m=.01;m<=1;m+=.01){const v=Math.round((n-s*(1-m))/m),g=Math.round((r-u*(1-m))/m),h=Math.round((o-f*(1-m))/m);if(Vf(v)&&Vf(g)&&Vf(h))return new dn({r:v,g,b:h,a:Math.round(m*100)/100}).toRgbString()}return new dn({r:n,g:r,b:o,a:1}).toRgbString()}var iR=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 HS(e){const{override:t}=e,n=iR(e,["override"]),r=Object.assign({},t);Object.keys(Zl).forEach(h=>{delete r[h]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,u=768,f=992,m=1200,v=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Al(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:Al(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Al(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:Al(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:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
76
+ 0 1px 2px -2px ${new dn("rgba(0, 0, 0, 0.16)").toRgbString()},
77
+ 0 3px 6px 0 ${new dn("rgba(0, 0, 0, 0.12)").toRgbString()},
78
+ 0 5px 12px 4px ${new dn("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 N0=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 VS={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},aR={motionBase:!0,motionUnit:!0},lR={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},WS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=N0(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=HS(s),l&&Object.entries(l).forEach(([u,f])=>{const{theme:m}=f,v=N0(f,["theme"]);let g=v;m&&(g=WS(Object.assign(Object.assign({},s),v),{override:v},m)),s[u]=g}),s};function Wr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=J.useContext(AS),l=`${oR}-${t||""}`,s=n||LS,[u,f,m]=BE(s,[Zl,e],{salt:l,override:r,getComputedToken:WS,formatToken:HS,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:VS,ignore:aR,preserve:lR}});return[s,m,t?f:"",u,o]}const eu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},lr=(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}),ms=()=>({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"}}),sR=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),cR=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"}}}),uR=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),s),{[o]:s})}},ts=(e,t)=>({outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ui=(e,t)=>({"&:focus-visible":ts(e,t)}),US=e=>({[`.${e}`]:Object.assign(Object.assign({},ms()),{[`.${e} .${e}-icon`]:{display:"block"}})}),GS=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"},Ui(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:On,genComponentStyleHook:dR,genSubStyleComponent:wu}=rR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Gt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Wr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=d.useContext(Gt);return e??{}},getResetStyles:(e,t)=>{var n;const r=cR(e);return[r,{"&":r},US((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Cu)]},getCommonStyle:uR,getCompUnitless:()=>VS});function $u(e,t){return Wi.reduce((n,r)=>{const o=e[`${r}1`],l=e[`${r}3`],s=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:l,darkColor:s,textColor:u}))},{})}const fR=(e,t)=>{const[n,r]=Wr();return km({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>US(e))},mR=Object.assign({},hu),{useId:z0}=mR,pR=()=>"",vR=typeof z0>"u"?pR:z0;function gR(e,t,n){var r;Vp();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},Jc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Jc.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=vR();return ds(()=>{var u,f;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{m[h]=Object.assign(Object.assign({},m[h]),e.components[h])});const v=`css-var-${s.replace(/:/g,"")}`,g=((u=o.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((f=o.cssVar)===null||f===void 0?void 0:f.key)||v});return Object.assign(Object.assign(Object.assign({},l),o),{token:Object.assign(Object.assign({},l.token),o.token),components:m,cssVar:g})},[o,l],(u,f)=>u.some((m,v)=>{const g=f[v];return!Ql(m,g,!0)}))}var hR=["children"],KS=d.createContext({});function yR(e){var t=e.children,n=_t(e,hR);return d.createElement(KS.Provider,{value:n},t)}var bR=(function(e){Go(n,e);var t=Ko(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function SR(e){var t=d.useReducer(function(u){return u+1},0),n=re(t,2),r=n[1],o=d.useRef(e),l=Kn(function(){return o.current}),s=Kn(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[l,s]}var pi="none",wc="appear",$c="enter",Ec="leave",j0="none",po="prepare",Da="start",Ba="active",Gp="end",qS="prepared";function k0(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 xR(e,t){var n={animationend:k0("Animation","AnimationEnd"),transitionend:k0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var CR=xR(wr(),typeof window<"u"?window:{}),XS={};if(wr()){var wR=document.createElement("div");XS=wR.style}var Rc={};function QS(e){if(Rc[e])return Rc[e];var t=CR[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var l=n[o];if(Object.prototype.hasOwnProperty.call(t,l)&&l in XS)return Rc[e]=t[l],Rc[e]}return""}var YS=QS("animationend"),ZS=QS("transitionend"),JS=!!(YS&&ZS),L0=YS||"animationend",A0=ZS||"transitionend";function D0(e,t){if(!e)return null;if(vt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const $R=(function(e){var t=d.useRef();function n(o){o&&(o.removeEventListener(A0,e),o.removeEventListener(L0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(A0,e),o.addEventListener(L0,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var e1=wr()?d.useLayoutEffect:d.useEffect;const ER=(function(){var e=d.useRef(null);function t(){yn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=yn(function(){o<=1?r({isCanceled:function(){return l!==e.current}}):n(r,o-1)});e.current=l}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var RR=[po,Da,Ba,Gp],OR=[po,qS],t1=!1,IR=!0;function n1(e){return e===Ba||e===Gp}const PR=(function(e,t,n){var r=es(j0),o=re(r,2),l=o[0],s=o[1],u=ER(),f=re(u,2),m=f[0],v=f[1];function g(){s(po,!0)}var h=t?OR:RR;return e1(function(){if(l!==j0&&l!==Gp){var b=h.indexOf(l),x=h[b+1],C=n(l);C===t1?s(x,!0):x&&m(function(S){function E(){S.isCanceled()||s(x,!0)}C===!0?E():Promise.resolve(C).then(E)})}},[e,l]),d.useEffect(function(){return function(){v()}},[]),[g,l]});function TR(e,t,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,u=s===void 0?!0:s,f=r.motionLeave,m=f===void 0?!0:f,v=r.motionDeadline,g=r.motionLeaveImmediately,h=r.onAppearPrepare,b=r.onEnterPrepare,x=r.onLeavePrepare,C=r.onAppearStart,S=r.onEnterStart,E=r.onLeaveStart,$=r.onAppearActive,R=r.onEnterActive,P=r.onLeaveActive,O=r.onAppearEnd,I=r.onEnterEnd,T=r.onLeaveEnd,M=r.onVisibleChanged,_=es(),z=re(_,2),L=z[0],j=z[1],A=SR(pi),B=re(A,2),K=B[0],V=B[1],U=es(null),D=re(U,2),X=D[0],W=D[1],k=K(),F=d.useRef(!1),Y=d.useRef(null);function ne(){return n()}var Z=d.useRef(!1);function ee(){V(pi),W(null,!0)}var me=Kn(function(je){var Ie=K();if(Ie!==pi){var Le=ne();if(!(je&&!je.deadline&&je.target!==Le)){var Ee=Z.current,tt;Ie===wc&&Ee?tt=O==null?void 0:O(Le,je):Ie===$c&&Ee?tt=I==null?void 0:I(Le,je):Ie===Ec&&Ee&&(tt=T==null?void 0:T(Le,je)),Ee&&tt!==!1&&ee()}}}),pe=$R(me),ue=re(pe,1),Se=ue[0],fe=function(Ie){switch(Ie){case wc:return H(H(H({},po,h),Da,C),Ba,$);case $c:return H(H(H({},po,b),Da,S),Ba,R);case Ec:return H(H(H({},po,x),Da,E),Ba,P);default:return{}}},ae=d.useMemo(function(){return fe(k)},[k]),ye=PR(k,!e,function(je){if(je===po){var Ie=ae[po];return Ie?Ie(ne()):t1}if(oe in ae){var Le;W(((Le=ae[oe])===null||Le===void 0?void 0:Le.call(ae,ne(),null))||null)}return oe===Ba&&k!==pi&&(Se(ne()),v>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){me({deadline:!0})},v))),oe===qS&&ee(),IR}),he=re(ye,2),ve=he[0],oe=he[1],be=n1(oe);Z.current=be;var we=d.useRef(null);e1(function(){if(!(F.current&&we.current===t)){j(t);var je=F.current;F.current=!0;var Ie;!je&&t&&u&&(Ie=wc),je&&t&&l&&(Ie=$c),(je&&!t&&m||!je&&g&&!t&&m)&&(Ie=Ec);var Le=fe(Ie);Ie&&(e||Le[po])?(V(Ie),ve()):V(pi),we.current=t}},[t]),d.useEffect(function(){(k===wc&&!u||k===$c&&!l||k===Ec&&!m)&&V(pi)},[u,l,m]),d.useEffect(function(){return function(){F.current=!1,clearTimeout(Y.current)}},[]);var $e=d.useRef(!1);d.useEffect(function(){L&&($e.current=!0),L!==void 0&&k===pi&&(($e.current||L)&&(M==null||M(L)),$e.current=!0)},[L,k]);var Ae=X;return ae[po]&&oe===Da&&(Ae=q({transition:"none"},Ae)),[k,oe,Ae,L??t]}function _R(e){var t=e;vt(e)==="object"&&(t=e.transitionSupport);function n(o,l){return!!(o.motionName&&t&&l!==!1)}var r=d.forwardRef(function(o,l){var s=o.visible,u=s===void 0?!0:s,f=o.removeOnLeave,m=f===void 0?!0:f,v=o.forceRender,g=o.children,h=o.motionName,b=o.leavedClassName,x=o.eventProps,C=d.useContext(KS),S=C.motion,E=n(o,S),$=d.useRef(),R=d.useRef();function P(){try{return $.current instanceof HTMLElement?$.current:kc(R.current)}catch{return null}}var O=TR(E,u,P,o),I=re(O,4),T=I[0],M=I[1],_=I[2],z=I[3],L=d.useRef(z);z&&(L.current=!0);var j=d.useCallback(function(D){$.current=D,Np(l,D)},[l]),A,B=q(q({},x),{},{visible:u});if(!g)A=null;else if(T===pi)z?A=g(q({},B),j):!m&&L.current&&b?A=g(q(q({},B),{},{className:b}),j):v||!m&&!b?A=g(q(q({},B),{},{style:{display:"none"}}),j):A=null;else{var K;M===po?K="prepare":n1(M)?K="active":M===Da&&(K="start");var V=D0(h,"".concat(T,"-").concat(K));A=g(q(q({},B),{},{className:ce(D0(h,T),H(H({},V,V&&K),h,typeof h=="string")),style:_}),j)}if(d.isValidElement(A)&&Xi(A)){var U=Ya(A);U||(A=d.cloneElement(A,{ref:j}))}return d.createElement(bR,{ref:R},A)});return r.displayName="CSSMotion",r}const qo=_R(JS);var Xm="add",Qm="keep",Ym="remove",Wf="removed";function MR(e){var t;return e&&vt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Zm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(MR)}function NR(){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,l=Zm(e),s=Zm(t);l.forEach(function(m){for(var v=!1,g=r;g<o;g+=1){var h=s[g];if(h.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(b){return q(q({},b),{},{status:Xm})})),r=g),n.push(q(q({},h),{},{status:Qm})),r+=1,v=!0;break}}v||n.push(q(q({},m),{},{status:Ym}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return q(q({},m),{},{status:Xm})})));var u={};n.forEach(function(m){var v=m.key;u[v]=(u[v]||0)+1});var f=Object.keys(u).filter(function(m){return u[m]>1});return f.forEach(function(m){n=n.filter(function(v){var g=v.key,h=v.status;return g!==m||h!==Ym}),n.forEach(function(v){v.key===m&&(v.status=Qm)})}),n}var zR=["component","children","onVisibleChanged","onAllRemoved"],jR=["status"],kR=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function LR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo,n=(function(r){Go(l,r);var o=Ko(l);function l(){var s;Bn(this,l);for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return s=o.call.apply(o,[this].concat(f)),H(Dt(s),"state",{keyEntities:[]}),H(Dt(s),"removeKey",function(v){s.setState(function(g){var h=g.keyEntities.map(function(b){return b.key!==v?b:q(q({},b),{},{status:Wf})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(b){var x=b.status;return x!==Wf}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Fn(l,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,m=this.props,v=m.component,g=m.children,h=m.onVisibleChanged;m.onAllRemoved;var b=_t(m,zR),x=v||d.Fragment,C={};return kR.forEach(function(S){C[S]=b[S],delete b[S]}),delete b.keys,d.createElement(x,b,f.map(function(S,E){var $=S.status,R=_t(S,jR),P=$===Xm||$===Qm;return d.createElement(t,ke({},C,{key:R.key,visible:P,eventProps:R,onVisibleChanged:function(I){h==null||h(I,{key:R.key}),I||u.removeKey(R.key)}}),function(O,I){return g(q(q({},O),{},{index:E}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var m=u.keys,v=f.keyEntities,g=Zm(m),h=NR(v,g);return{keyEntities:h.filter(function(b){var x=v.find(function(C){var S=C.key;return b.key===S});return!(x&&x.status===Wf&&b.status===Ym)})}}}]),l})(d.Component);return H(n,"defaultProps",{component:"div"}),n}const AR=LR(JS),B0=d.createContext(!0);function DR(e){const t=d.useContext(B0),{children:n}=e,[,r]=Wr(),{motion:o}=r,l=d.useRef(!1);return l.current||(l.current=t!==o),l.current?d.createElement(B0.Provider,{value:o},d.createElement(yR,{motion:o},n)):n}const BR=()=>null;var FR=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 HR=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let tu,r1,o1,i1;function Wc(){return tu||Jl}function VR(){return r1||Cu}function WR(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const UR=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(tu=t),n!==void 0&&(r1=n),"holderRender"in e&&(i1=o),r&&(WR(r)?H2(Wc(),r):o1=r)},GR=()=>({getPrefixCls:(e,t)=>t||(e?`${Wc()}-${e}`:Wc()),getIconPrefixCls:VR,getRootPrefixCls:()=>tu||Wc(),getTheme:()=>o1,holderRender:i1}),KR=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:u,componentSize:f,direction:m,space:v,splitter:g,virtual:h,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,popupOverflow:C,legacyLocale:S,parentContext:E,iconPrefixCls:$,theme:R,componentDisabled:P,segmented:O,statistic:I,spin:T,calendar:M,carousel:_,cascader:z,collapse:L,typography:j,checkbox:A,descriptions:B,divider:K,drawer:V,skeleton:U,steps:D,image:X,layout:W,list:k,mentions:F,modal:Y,progress:ne,result:Z,slider:ee,breadcrumb:me,menu:pe,pagination:ue,input:Se,textArea:fe,empty:ae,badge:ye,radio:he,rate:ve,switch:oe,transfer:be,avatar:we,message:$e,tag:Ae,table:je,card:Ie,tabs:Le,timeline:Ee,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:Ue,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:_e,warning:Ye,tour:Pe,tooltip:Fe,popover:wt,popconfirm:mt,floatButton:Bt,floatButtonGroup:At,variant:nn,inputNumber:vn,treeSelect:Vt}=e,Tt=d.useCallback((Qe,Mt)=>{const{prefixCls:jt}=e;if(Mt)return Mt;const Ot=jt||E.getPrefixCls("");return Qe?`${Ot}-${Qe}`:Ot},[E.getPrefixCls,e.prefixCls]),St=$||E.iconPrefixCls||Cu,Wt=n||E.csp;fR(St,Wt);const Lt=gR(R,E.theme,{prefixCls:Tt("")}),Ze={csp:Wt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:u||S,direction:m,space:v,splitter:g,virtual:h,popupMatchSelectWidth:x??b,popupOverflow:C,getPrefixCls:Tt,iconPrefixCls:St,theme:Lt,segmented:O,statistic:I,spin:T,calendar:M,carousel:_,cascader:z,collapse:L,typography:j,checkbox:A,descriptions:B,divider:K,drawer:V,skeleton:U,steps:D,image:X,input:Se,textArea:fe,layout:W,list:k,mentions:F,modal:Y,progress:ne,result:Z,slider:ee,breadcrumb:me,menu:pe,pagination:ue,empty:ae,badge:ye,radio:he,rate:ve,switch:oe,transfer:be,avatar:we,message:$e,tag:Ae,table:je,card:Ie,tabs:Le,timeline:Ee,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:Ue,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:_e,warning:Ye,tour:Pe,tooltip:Fe,popover:wt,popconfirm:mt,floatButton:Bt,floatButtonGroup:At,variant:nn,inputNumber:vn,treeSelect:Vt},yt=Object.assign({},E);Object.keys(Ze).forEach(Qe=>{Ze[Qe]!==void 0&&(yt[Qe]=Ze[Qe])}),HR.forEach(Qe=>{const Mt=e[Qe];Mt&&(yt[Qe]=Mt)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const at=ds(()=>yt,yt,(Qe,Mt)=>{const jt=Object.keys(Qe),Ot=Object.keys(Mt);return jt.length!==Ot.length||jt.some(It=>Qe[It]!==Mt[It])}),{layer:Re}=d.useContext(fs),Ce=d.useMemo(()=>({prefixCls:St,csp:Wt,layer:Re?"antd":void 0}),[St,Wt,Re]);let xe=d.createElement(d.Fragment,null,d.createElement(BR,{dropdownMatchSelectWidth:b}),t);const Me=d.useMemo(()=>{var Qe,Mt,jt,Ot;return Aa(((Qe=Hi.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((jt=(Mt=at.locale)===null||Mt===void 0?void 0:Mt.Form)===null||jt===void 0?void 0:jt.defaultValidateMessages)||{},((Ot=at.form)===null||Ot===void 0?void 0:Ot.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[at,s==null?void 0:s.validateMessages]);Object.keys(Me).length>0&&(xe=d.createElement(S2.Provider,{value:Me},xe)),u&&(xe=d.createElement(E2,{locale:u,_ANT_MARK__:$2},xe)),xe=d.createElement(Hp.Provider,{value:Ce},xe),f&&(xe=d.createElement(W2,{size:f},xe)),xe=d.createElement(DR,null,xe);const Ke=d.useMemo(()=>{const Qe=Lt||{},{algorithm:Mt,token:jt,components:Ot,cssVar:It}=Qe,mn=FR(Qe,["algorithm","token","components","cssVar"]),sn=Mt&&(!Array.isArray(Mt)||Mt.length>0)?_m(Mt):LS,gn={};Object.entries(Ot||{}).forEach(([Kt,Yt])=>{const Ne=Object.assign({},Yt);"algorithm"in Ne&&(Ne.algorithm===!0?Ne.theme=sn:(Array.isArray(Ne.algorithm)||typeof Ne.algorithm=="function")&&(Ne.theme=_m(Ne.algorithm)),delete Ne.algorithm),gn[Kt]=Ne});const $n=Object.assign(Object.assign({},Zl),jt);return Object.assign(Object.assign({},mn),{theme:sn,token:$n,components:gn,override:Object.assign({override:$n},gn),cssVar:It})},[Lt]);return R&&(xe=d.createElement(AS.Provider,{value:Ke},xe)),at.warning&&(xe=d.createElement(b2.Provider,{value:at.warning},xe)),P!==void 0&&(xe=d.createElement(V2,{disabled:P},xe)),d.createElement(Gt.Provider,{value:at},xe)},Ci=e=>{const t=d.useContext(Gt),n=d.useContext(Wp);return d.createElement(KR,Object.assign({parentContext:t,legacyLocale:n},e))};Ci.ConfigContext=Gt;Ci.SizeContext=Xa;Ci.config=UR;Ci.useConfig=U2;Object.defineProperty(Ci,"SizeContext",{get:()=>Xa});var qR={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 a1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function XR(e){return a1(e)instanceof ShadowRoot}function nu(e){return XR(e)?a1(e):null}function QR(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function YR(e,t){ar(e,"[@ant-design/icons] ".concat(t))}function F0(e){return vt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(vt(e.icon)==="object"||typeof e.icon=="function")}function H0(){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[QR(n)]=r}return t},{})}function Jm(e,t,n){return n?J.createElement(e.tag,q(q({key:t},H0(e.attrs)),n),(e.children||[]).map(function(r,o){return Jm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):J.createElement(e.tag,q({key:t},H0(e.attrs)),(e.children||[]).map(function(r,o){return Jm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function l1(e){return Vi(e)[0]}function s1(e){return e?Array.isArray(e)?e:[e]:[]}var ZR=`
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
+ `,JR=function(t){var n=d.useContext(Hp),r=n.csp,o=n.prefixCls,l=n.layer,s=ZR;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
151
+ `).concat(s,`
152
+ }`)),d.useEffect(function(){var u=t.current,f=nu(u);Vo(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:f})},[])},eO=["icon","className","onClick","style","primaryColor","secondaryColor"],Vl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function tO(e){var t=e.primaryColor,n=e.secondaryColor;Vl.primaryColor=t,Vl.secondaryColor=n||l1(t),Vl.calculated=!!n}function nO(){return q({},Vl)}var el=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,u=t.secondaryColor,f=_t(t,eO),m=d.useRef(),v=Vl;if(s&&(v={primaryColor:s,secondaryColor:u||l1(s)}),JR(m),YR(F0(n),"icon should be icon definiton, but got ".concat(n)),!F0(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=q(q({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),Jm(g.icon,"svg-".concat(g.name),q(q({className:r,onClick:o,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};el.displayName="IconReact";el.getTwoToneColors=nO;el.setTwoToneColors=tO;function c1(e){var t=s1(e),n=re(t,2),r=n[0],o=n[1];return el.setTwoToneColors({primaryColor:r,secondaryColor:o})}function rO(){var e=el.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var oO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];c1(Zc.primary);var In=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,l=e.rotate,s=e.tabIndex,u=e.onClick,f=e.twoToneColor,m=_t(e,oO),v=d.useContext(Hp),g=v.prefixCls,h=g===void 0?"anticon":g,b=v.rootClassName,x=ce(b,h,H(H({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),C=s;C===void 0&&u&&(C=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=s1(f),$=re(E,2),R=$[0],P=$[1];return d.createElement("span",ke({role:"img","aria-label":r.name},m,{ref:t,tabIndex:C,onClick:u,className:x}),d.createElement(el,{icon:r,primaryColor:R,secondaryColor:P,style:S}))});In.displayName="AntdIcon";In.getTwoToneColor=rO;In.setTwoToneColor=c1;var iO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:qR}))},aO=d.forwardRef(iO),lO={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"},sO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:lO}))},Kp=d.forwardRef(sO),cO={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"},uO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:cO}))},Eu=d.forwardRef(uO),dO={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"},fO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:dO}))},mO=d.forwardRef(fO),pO={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"},vO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:pO}))},gO=d.forwardRef(vO),hO=`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`,yO=`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`,bO="".concat(hO," ").concat(yO).split(/[\s\n]+/),SO="aria-",xO="data-";function V0(e,t){return e.indexOf(t)===0}function xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||V0(o,SO))||n.data&&V0(o,xO)||n.attr&&bO.includes(o))&&(r[o]=e[o])}),r}function u1(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}const d1=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Po(e,t){return d1(e,e,t)}const ps=e=>{const[,,,,t]=Wr();return t?`${e}-css-var`:""};var qe={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},f1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,l=e.duration,s=l===void 0?4.5:l,u=e.showProgress,f=e.pauseOnHover,m=f===void 0?!0:f,v=e.eventKey,g=e.content,h=e.closable,b=e.closeIcon,x=b===void 0?"x":b,C=e.props,S=e.onClick,E=e.onNoticeClose,$=e.times,R=e.hovering,P=d.useState(!1),O=re(P,2),I=O[0],T=O[1],M=d.useState(0),_=re(M,2),z=_[0],L=_[1],j=d.useState(0),A=re(j,2),B=A[0],K=A[1],V=R||I,U=s>0&&u,D=function(){E(v)},X=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===qe.ENTER)&&D()};d.useEffect(function(){if(!V&&s>0){var ne=Date.now()-B,Z=setTimeout(function(){D()},s*1e3-B);return function(){m&&clearTimeout(Z),K(Date.now()-ne)}}},[s,V,$]),d.useEffect(function(){if(!V&&U&&(m||B===0)){var ne=performance.now(),Z,ee=function me(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(pe){var ue=pe+B-ne,Se=Math.min(ue/(s*1e3),1);L(Se*100),Se<1&&me()})};return ee(),function(){m&&cancelAnimationFrame(Z)}}},[s,B,V,U,$]);var W=d.useMemo(function(){return vt(h)==="object"&&h!==null?h:h?{closeIcon:x}:{}},[h,x]),k=xi(W,!0),F=100-(!z||z<0?0:z>100?100:z),Y="".concat(n,"-notice");return d.createElement("div",ke({},C,{ref:t,className:ce(Y,o,H({},"".concat(Y,"-closable"),h)),style:r,onMouseEnter:function(Z){var ee;T(!0),C==null||(ee=C.onMouseEnter)===null||ee===void 0||ee.call(C,Z)},onMouseLeave:function(Z){var ee;T(!1),C==null||(ee=C.onMouseLeave)===null||ee===void 0||ee.call(C,Z)},onClick:S}),d.createElement("div",{className:"".concat(Y,"-content")},g),h&&d.createElement("a",ke({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:X,"aria-label":"Close"},k,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),D()}}),W.closeIcon),U&&d.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:F},F+"%"))}),m1=J.createContext({}),CO=function(t){var n=t.children,r=t.classNames;return J.createElement(m1.Provider,{value:{classNames:r}},n)},W0=8,U0=3,G0=16,wO=function(t){var n={offset:W0,threshold:U0,gap:G0};if(t&&vt(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:W0,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:U0,n.gap=(l=t.gap)!==null&&l!==void 0?l:G0}return[!!t,n]},$O=["className","style","classNames","styles"],EO=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,l=t.className,s=t.style,u=t.motion,f=t.onAllNoticeRemoved,m=t.onNoticeClose,v=t.stack,g=d.useContext(m1),h=g.classNames,b=d.useRef({}),x=d.useState(null),C=re(x,2),S=C[0],E=C[1],$=d.useState([]),R=re($,2),P=R[0],O=R[1],I=n.map(function(V){return{config:V,key:String(V.key)}}),T=wO(v),M=re(T,2),_=M[0],z=M[1],L=z.offset,j=z.threshold,A=z.gap,B=_&&(P.length>0||I.length<=j),K=typeof u=="function"?u(r):u;return d.useEffect(function(){_&&P.length>1&&O(function(V){return V.filter(function(U){return I.some(function(D){var X=D.key;return U===X})})})},[P,I,_]),d.useEffect(function(){var V;if(_&&b.current[(V=I[I.length-1])===null||V===void 0?void 0:V.key]){var U;E(b.current[(U=I[I.length-1])===null||U===void 0?void 0:U.key])}},[I,_]),J.createElement(AR,ke({key:r,className:ce(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,l,H(H({},"".concat(o,"-stack"),!!_),"".concat(o,"-stack-expanded"),B)),style:s,keys:I,motionAppear:!0},K,{onAllRemoved:function(){f(r)}}),function(V,U){var D=V.config,X=V.className,W=V.style,k=V.index,F=D,Y=F.key,ne=F.times,Z=String(Y),ee=D,me=ee.className,pe=ee.style,ue=ee.classNames,Se=ee.styles,fe=_t(ee,$O),ae=I.findIndex(function(Ee){return Ee.key===Z}),ye={};if(_){var he=I.length-1-(ae>-1?ae:k-1),ve=r==="top"||r==="bottom"?"-50%":"0";if(he>0){var oe,be,we;ye.height=B?(oe=b.current[Z])===null||oe===void 0?void 0:oe.offsetHeight:S==null?void 0:S.offsetHeight;for(var $e=0,Ae=0;Ae<he;Ae++){var je;$e+=((je=b.current[I[I.length-1-Ae].key])===null||je===void 0?void 0:je.offsetHeight)+A}var Ie=(B?$e:he*L)*(r.startsWith("top")?1:-1),Le=!B&&S!==null&&S!==void 0&&S.offsetWidth&&(be=b.current[Z])!==null&&be!==void 0&&be.offsetWidth?((S==null?void 0:S.offsetWidth)-L*2*(he<3?he:3))/((we=b.current[Z])===null||we===void 0?void 0:we.offsetWidth):1;ye.transform="translate3d(".concat(ve,", ").concat(Ie,"px, 0) scaleX(").concat(Le,")")}else ye.transform="translate3d(".concat(ve,", 0, 0)")}return J.createElement("div",{ref:U,className:ce("".concat(o,"-notice-wrapper"),X,ue==null?void 0:ue.wrapper),style:q(q(q({},W),ye),Se==null?void 0:Se.wrapper),onMouseEnter:function(){return O(function(tt){return tt.includes(Z)?tt:[].concat(Be(tt),[Z])})},onMouseLeave:function(){return O(function(tt){return tt.filter(function(lt){return lt!==Z})})}},J.createElement(f1,ke({},fe,{ref:function(tt){ae>-1?b.current[Z]=tt:delete b.current[Z]},prefixCls:o,classNames:ue,styles:Se,className:ce(me,h==null?void 0:h.notice),style:pe,times:ne,key:Y,eventKey:Y,onNoticeClose:m,hovering:_&&P.length>0})))})},RO=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,l=e.motion,s=e.maxCount,u=e.className,f=e.style,m=e.onAllRemoved,v=e.stack,g=e.renderNotifications,h=d.useState([]),b=re(h,2),x=b[0],C=b[1],S=function(_){var z,L=x.find(function(j){return j.key===_});L==null||(z=L.onClose)===null||z===void 0||z.call(L),C(function(j){return j.filter(function(A){return A.key!==_})})};d.useImperativeHandle(t,function(){return{open:function(_){C(function(z){var L=Be(z),j=L.findIndex(function(K){return K.key===_.key}),A=q({},_);if(j>=0){var B;A.times=(((B=z[j])===null||B===void 0?void 0:B.times)||0)+1,L[j]=A}else A.times=0,L.push(A);return s>0&&L.length>s&&(L=L.slice(-s)),L})},close:function(_){S(_)},destroy:function(){C([])}}});var E=d.useState({}),$=re(E,2),R=$[0],P=$[1];d.useEffect(function(){var M={};x.forEach(function(_){var z=_.placement,L=z===void 0?"topRight":z;L&&(M[L]=M[L]||[],M[L].push(_))}),Object.keys(R).forEach(function(_){M[_]=M[_]||[]}),P(M)},[x]);var O=function(_){P(function(z){var L=q({},z),j=L[_]||[];return j.length||delete L[_],L})},I=d.useRef(!1);if(d.useEffect(function(){Object.keys(R).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[R]),!o)return null;var T=Object.keys(R);return Si.createPortal(d.createElement(d.Fragment,null,T.map(function(M){var _=R[M],z=d.createElement(EO,{key:M,configList:_,placement:M,prefixCls:r,className:u==null?void 0:u(M),style:f==null?void 0:f(M),motion:l,onNoticeClose:S,onAllNoticeRemoved:O,stack:v});return g?g(z,{prefixCls:r,key:M}):z})),o)}),OO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],IO=function(){return document.body},K0=0;function PO(){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(l){var s=o[l];s!==void 0&&(e[l]=s)})}),e}function TO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?IO:t,r=e.motion,o=e.prefixCls,l=e.maxCount,s=e.className,u=e.style,f=e.onAllRemoved,m=e.stack,v=e.renderNotifications,g=_t(e,OO),h=d.useState(),b=re(h,2),x=b[0],C=b[1],S=d.useRef(),E=d.createElement(RO,{container:x,ref:S,prefixCls:o,motion:r,maxCount:l,className:s,style:u,onAllRemoved:f,stack:m,renderNotifications:v}),$=d.useState([]),R=re($,2),P=R[0],O=R[1],I=Kn(function(M){var _=PO(g,M);(_.key===null||_.key===void 0)&&(_.key="rc-notification-".concat(K0),K0+=1),O(function(z){return[].concat(Be(z),[{type:"open",config:_}])})}),T=d.useMemo(function(){return{open:I,close:function(_){O(function(z){return[].concat(Be(z),[{type:"close",key:_}])})},destroy:function(){O(function(_){return[].concat(Be(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){C(n())}),d.useEffect(function(){if(S.current&&P.length){P.forEach(function(z){switch(z.type){case"open":S.current.open(z.config);break;case"close":S.current.close(z.key);break;case"destroy":S.current.destroy();break}});var M,_;O(function(z){return(M!==z||!_)&&(M=z,_=z.filter(function(L){return!P.includes(L)})),_})}},[P]),[T,E]}var _O={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"},MO=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:_O}))},Ru=d.forwardRef(MO);function ep(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function q0(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function X0(e){const{closable:t,closeIcon:n}=e||{};return J.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 NO={},zO=(e,t,n=NO)=>{const r=X0(e),o=X0(t),[l]=Ja("global",Hi.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=J.useMemo(()=>Object.assign({closeIcon:J.createElement(Eu,null)},n),[n]),f=J.useMemo(()=>r===!1?!1:r?ep(u,o,r):o===!1?!1:o?ep(u,o):u.closable?u:!1,[r,o,u]);return J.useMemo(()=>{var m,v;if(f===!1)return[!1,null,s,{}];const{closeIconRender:g}=u,{closeIcon:h}=f;let b=h;const x=xi(f,!0);return b!=null&&(g&&(b=g(h)),b=J.isValidElement(b)?J.cloneElement(b,Object.assign(Object.assign(Object.assign({},b.props),{"aria-label":(v=(m=b.props)===null||m===void 0?void 0:m["aria-label"])!==null&&v!==void 0?v:l.close}),x)):J.createElement("span",Object.assign({"aria-label":l.close},x),b)),[!0,b,s,x]},[s,l.close,f,u])},jO=()=>J.useReducer(e=>e+1,0),p1=J.createContext(void 0),vi=100,kO=10,LO=vi*kO,v1={Modal:vi,Drawer:vi,Popover:vi,Popconfirm:vi,Tooltip:vi,Tour:vi,FloatButton:vi},AO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function DO(e){return e in v1}const g1=(e,t)=>{const[,n]=Wr(),r=J.useContext(p1),o=DO(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+v1[e]:s+=AO[e],l=[r===void 0?t:s,s]}return l},BO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:l,colorError:s,colorWarning:u,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:v,motionDurationSlow:g,marginXS:h,paddingXS:b,borderRadiusLG:x,zIndexPopup:C,contentPadding:S,contentBg:E}=e,$=`${t}-notice`,R=new Ht("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),P=new Ht("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:m},[`${$}-content`]:{display:"inline-block",padding:S,background:E,borderRadius:x,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
170
+ ${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},lr(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
171
+ ${t}-move-up-appear,
172
+ ${t}-move-up-enter
173
+ `]:{animationName:R,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`
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:P,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},O)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]},FO=e=>({zIndexPopup:e.zIndexPopupBase+LO+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),h1=On("Message",e=>{const t=fn(e,{height:150});return BO(t)},FO);var HO=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 VO={info:d.createElement(gO,null),success:d.createElement(aO,null),error:d.createElement(Kp,null),warning:d.createElement(mO,null),loading:d.createElement(Ru,null)},y1=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},n||VO[t],d.createElement("span",null,r)),WO=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=HO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=d.useContext(Gt),f=t||u("message"),m=ps(f),[v,g,h]=h1(f,m);return v(d.createElement(f1,Object.assign({},s,{prefixCls:f,className:ce(n,g,`${f}-notice-pure-panel`,h,m),eventKey:"pure",duration:null,content:d.createElement(y1,{prefixCls:f,type:r,icon:o},l)})))};function UO(e,t){return{motionName:t??`${e}-move-up`}}function qp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,l)=>n.then(o,l),r.promise=n,r}var GO=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 KO=8,qO=3,XO=({children:e,prefixCls:t})=>{const n=ps(t),[r,o,l]=h1(t,n);return r(d.createElement(CO,{classNames:{list:ce(o,l,n)}},e))},QO=(e,{prefixCls:t,key:n})=>d.createElement(XO,{prefixCls:t,key:n},e),YO=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=qO,rtl:u,transitionName:f,onAllRemoved:m}=e,{getPrefixCls:v,getPopupContainer:g,message:h,direction:b}=d.useContext(Gt),x=r||v("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??KO}),S=()=>ce({[`${x}-rtl`]:u??b==="rtl"}),E=()=>UO(x,f),$=d.createElement("span",{className:`${x}-close-x`},d.createElement(Eu,{className:`${x}-close-icon`})),[R,P]=TO({prefixCls:x,style:C,className:S,motion:E,closable:!1,closeIcon:$,duration:s,getContainer:()=>(o==null?void 0:o())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:QO});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:x,message:h})),P});let Q0=0;function b1(e){const t=d.useRef(null);return Vp(),[d.useMemo(()=>{const r=f=>{var m;(m=t.current)===null||m===void 0||m.close(f)},o=f=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:m,prefixCls:v,message:g}=t.current,h=`${v}-notice`,{content:b,icon:x,type:C,key:S,className:E,style:$,onClose:R}=f,P=GO(f,["content","icon","type","key","className","style","onClose"]);let O=S;return O==null&&(Q0+=1,O=`antd-message-${Q0}`),qp(I=>(m(Object.assign(Object.assign({},P),{key:O,content:d.createElement(y1,{prefixCls:v,type:C,icon:x},b),placement:"top",className:ce(C&&`${h}-${C}`,E,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),$),onClose:()=>{R==null||R(),I()}})),()=>{r(O)}))},s={open:o,destroy:f=>{var m;f!==void 0?r(f):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const m=(v,g,h)=>{let b;v&&typeof v=="object"&&"content"in v?b=v:b={content:v};let x,C;typeof g=="function"?C=g:(x=g,C=h);const S=Object.assign(Object.assign({onClose:C,duration:x},b),{type:f});return o(S)};s[f]=m}),s},[]),d.createElement(YO,Object.assign({key:"message-holder"},e,{ref:t}))]}function ZO(e){return b1(e)}function S1(e,t){this.v=e,this.k=t}function gr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}gr=function(s,u,f,m){function v(g,h){gr(s,g,function(b){return this._invoke(g,h,b)})}u?o?o(s,u,{value:f,enumerable:!m,configurable:!m,writable:!m}):s[u]=f:(v("next",0),v("throw",1),v("return",2))},gr(e,t,n,r)}function Xp(){/*! 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 l(b,x,C,S){var E=x&&x.prototype instanceof u?x:u,$=Object.create(E.prototype);return gr($,"_invoke",(function(R,P,O){var I,T,M,_=0,z=O||[],L=!1,j={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(K,V){return I=K,T=0,M=e,j.n=V,s}};function A(B,K){for(T=B,M=K,t=0;!L&&_&&!V&&t<z.length;t++){var V,U=z[t],D=j.p,X=U[2];B>3?(V=X===K)&&(M=U[(T=U[4])?5:(T=3,3)],U[4]=U[5]=e):U[0]<=D&&((V=B<2&&D<U[1])?(T=0,j.v=K,j.n=U[1]):D<X&&(V=B<3||U[0]>K||K>X)&&(U[4]=B,U[5]=K,j.n=X,T=0))}if(V||B>1)return s;throw L=!0,K}return function(B,K,V){if(_>1)throw TypeError("Generator is already running");for(L&&K===1&&A(K,V),T=K,M=V;(t=T<2?e:M)||!L;){I||(T?T<3?(T>1&&(j.n=-1),A(T,M)):j.n=M:j.v=M);try{if(_=2,I){if(T||(B="next"),t=I[B]){if(!(t=t.call(I,M)))throw TypeError("iterator result is not an object");if(!t.done)return t;M=t.value,T<2&&(T=0)}else T===1&&(t=I.return)&&t.call(I),T<2&&(M=TypeError("The iterator does not provide a '"+B+"' method"),T=1);I=e}else if((t=(L=j.n<0)?M:R.call(P,j))!==s)break}catch(U){I=e,T=1,M=U}finally{_=1}}return{value:t,done:L}}})(b,C,S),!0),$}var s={};function u(){}function f(){}function m(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(gr(t={},r,function(){return this}),t),g=m.prototype=u.prototype=Object.create(v);function h(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,m):(b.__proto__=m,gr(b,o,"GeneratorFunction")),b.prototype=Object.create(g),b}return f.prototype=m,gr(g,"constructor",m),gr(m,"constructor",f),f.displayName="GeneratorFunction",gr(m,o,"GeneratorFunction"),gr(g),gr(g,o,"Generator"),gr(g,r,function(){return this}),gr(g,"toString",function(){return"[object Generator]"}),(Xp=function(){return{w:l,m:h}})()}function ru(e,t){function n(o,l,s,u){try{var f=e[o](l),m=f.value;return m instanceof S1?t.resolve(m.v).then(function(v){n("next",v,s,u)},function(v){n("throw",v,s,u)}):t.resolve(m).then(function(v){f.value=v,s(f)},function(v){return n("throw",v,s,u)})}catch(v){u(v)}}var r;this.next||(gr(ru.prototype),gr(ru.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),gr(this,"_invoke",function(o,l,s){function u(){return new t(function(f,m){n(o,s,f,m)})}return r=r?r.then(u,u):u()},!0)}function x1(e,t,n,r,o){return new ru(Xp().w(e,t,n,r),o||Promise)}function JO(e,t,n,r,o){var l=x1(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function eI(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 Y0(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(vt(e)+" is not iterable")}function yr(){var e=Xp(),t=e.m(yr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function l(s){var u,f;return function(m){u||(u={stop:function(){return f(m.a,2)},catch:function(){return m.v},abrupt:function(g,h){return f(m.a,o[g],h)},delegateYield:function(g,h,b){return u.resultName=h,f(m.d,Y0(g),b)},finish:function(g){return f(m.f,g)}},f=function(g,h,b){m.p=u.prev,m.n=u.next;try{return g(h,b)}finally{u.next=m.n}}),u.resultName&&(u[u.resultName]=m.v,u.resultName=void 0),u.sent=m.v,u.next=m.n;try{return s.call(this,u)}finally{m.p=u.prev,m.n=u.next}}}return(yr=function(){return{wrap:function(f,m,v,g){return e.w(l(f),m,v,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(f,m){return new S1(f,m)},AsyncIterator:ru,async:function(f,m,v,g,h){return(r(m)?x1:JO)(l(f),m,v,g,h)},keys:eI,values:Y0}})()}function Z0(e,t,n,r,o,l,s){try{var u=e[l](s),f=u.value}catch(m){return void n(m)}u.done?t(f):Promise.resolve(f).then(r,o)}function Qi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(f){Z0(l,r,o,s,u,"next",f)}function u(f){Z0(l,r,o,s,u,"throw",f)}s(void 0)})}}var vs=q({},_$),tI=vs.version,Uf=vs.render,nI=vs.unmountComponentAtNode,Ou;try{var rI=Number((tI||"").split(".")[0]);rI>=18&&(Ou=vs.createRoot)}catch{}function J0(e){var t=vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&vt(t)==="object"&&(t.usingClientEntryPoint=e)}var ou="__rc_react_root__";function oI(e,t){J0(!0);var n=t[ou]||Ou(t);J0(!1),n.render(e),t[ou]=n}function iI(e,t){Uf==null||Uf(e,t)}function aI(e,t){if(Ou){oI(e,t);return}iI(e,t)}function lI(e){return tp.apply(this,arguments)}function tp(){return tp=Qi(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ou])===null||o===void 0||o.unmount(),delete t[ou]}));case 1:case"end":return r.stop()}},e)})),tp.apply(this,arguments)}function sI(e){nI(e)}function cI(e){return np.apply(this,arguments)}function np(){return np=Qi(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ou===void 0){r.next=2;break}return r.abrupt("return",lI(t));case 2:sI(t);case 3:case"end":return r.stop()}},e)})),np.apply(this,arguments)}const uI=(e,t)=>(aI(e,t),()=>cI(t));let dI=uI;function C1(e){return dI}const Gf=()=>({height:0,opacity:0}),ey=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},fI=e=>({height:e?e.offsetHeight:0}),Kf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",mI=(e=Jl)=>({motionName:`${e}-motion-collapse`,onAppearStart:Gf,onEnterStart:Gf,onAppearActive:ey,onEnterActive:ey,onLeaveStart:fI,onLeaveActive:Gf,onAppearEnd:Kf,onEnterEnd:Kf,onLeaveEnd:Kf,motionDeadline:500}),Qp=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Hr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Yp=(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(),l=o.width,s=o.height;if(l||s)return!0}}return!1}),pI=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(",")}}}}},vI=dR("Wave",pI),w1=`${Jl}-wave-target`;function gI(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 hI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(gI))!==null&&t!==void 0?t:null}function qf(e){return Number.isNaN(e)?0:e}const yI=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,l=d.useRef(null),s=d.useRef(null);d.useEffect(()=>{s.current=o()},[]);const[u,f]=d.useState(null),[m,v]=d.useState([]),[g,h]=d.useState(0),[b,x]=d.useState(0),[C,S]=d.useState(0),[E,$]=d.useState(0),[R,P]=d.useState(!1),O={left:g,top:b,width:C,height:E,borderRadius:m.map(M=>`${M}px`).join(" ")};u&&(O["--wave-color"]=u);function I(){const M=getComputedStyle(n);f(hI(n));const _=M.position==="static",{borderLeftWidth:z,borderTopWidth:L}=M;h(_?n.offsetLeft:qf(-Number.parseFloat(z))),x(_?n.offsetTop:qf(-Number.parseFloat(L))),S(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:j,borderTopRightRadius:A,borderBottomLeftRadius:B,borderBottomRightRadius:K}=M;v([j,A,K,B].map(V=>qf(Number.parseFloat(V))))}if(d.useEffect(()=>{if(n){const M=yn(()=>{I(),P(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(I),_.observe(n)),()=>{yn.cancel(M),_==null||_.disconnect()}}},[n]),!R)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(w1));return d.createElement(qo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,_)=>{var z,L;if(_.deadline||_.propertyName==="opacity"){const j=(z=l.current)===null||z===void 0?void 0:z.parentElement;(L=s.current)===null||L===void 0||L.call(s).then(()=>{j==null||j.remove()})}return!1}},({className:M},_)=>d.createElement("div",{ref:Uo(l,_),className:ce(t,M,{"wave-quick":T}),style:O}))},bI=(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 l=C1();let s=null;function u(){return s}s=l(d.createElement(yI,Object.assign({},t,{target:e,registerUnmount:u})),o)},SI=(e,t,n)=>{const{wave:r}=d.useContext(Gt),[,o,l]=Wr(),s=Kn(m=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${w1}`)||v,{showEffect:h}=r||{};(h||bI)(g,{className:t,token:o,component:n,event:m,hashId:l})}),u=d.useRef(null);return m=>{yn.cancel(u.current),u.current=yn(()=>{s(m)})}},$1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(Gt),l=d.useRef(null),s=o("wave"),[,u]=vI(s),f=SI(l,ce(s,u),r);if(J.useEffect(()=>{const v=l.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=h=>{!Yp(h.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||f(h)};return v.addEventListener("click",g,!0),()=>{v.removeEventListener("click",g,!0)}},[n]),!J.isValidElement(t))return t??null;const m=Xi(t)?Uo(Ya(t),l):l;return Po(t,{ref:m})},Xo=e=>{const t=J.useContext(Xa);return J.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},xI=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},CI=On(["Space","Compact"],e=>[xI(e)],()=>({}),{resetStyle:!1});var E1=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 Iu=d.createContext(null),Pu=(e,t)=>{const n=d.useContext(Iu),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,u=o==="vertical"?"-vertical-":"-";return ce(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:s,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},wI=e=>{const{children:t}=e;return d.createElement(Iu.Provider,{value:null},t)},$I=e=>{const{children:t}=e,n=E1(e,["children"]);return d.createElement(Iu.Provider,{value:d.useMemo(()=>n,[n])},t)},EI=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Gt),{size:r,direction:o,block:l,prefixCls:s,className:u,rootClassName:f,children:m}=e,v=E1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Xo(R=>r??R),h=t("space-compact",s),[b,x]=CI(h),C=ce(h,x,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:o==="vertical"},u,f),S=d.useContext(Iu),E=Mr(m),$=d.useMemo(()=>E.map((R,P)=>{const O=(R==null?void 0:R.key)||`${h}-item-${P}`;return d.createElement($I,{key:O,compactSize:g,compactDirection:o,isFirstItem:P===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:P===E.length-1&&(!S||(S==null?void 0:S.isLastItem))},R)}),[E,S,o,g,h]);return E.length===0?null:b(d.createElement("div",Object.assign({className:C},v),$))};var RI=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 R1=d.createContext(void 0),OI=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Gt),{prefixCls:r,size:o,className:l}=e,s=RI(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=Wr(),m=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),v=ce(u,{[`${u}-${m}`]:m,[`${u}-rtl`]:n==="rtl"},l,f);return d.createElement(R1.Provider,{value:o},d.createElement("div",Object.assign({},s,{className:v})))},ty=/^[\u4E00-\u9FA5]{2}$/,rp=ty.test.bind(ty);function ny(e){return typeof e=="string"}function Xf(e){return e==="text"||e==="link"}function II(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ny(e.type)&&rp(e.props.children)?Po(e,{children:e.props.children.split("").join(n)}):ny(e)?rp(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):u1(e)?J.createElement("span",null,e):e}function PI(e,t){let n=!1;const r=[];return J.Children.forEach(e,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const u=r.length-1,f=r[u];r[u]=`${f}${o}`}else r.push(o);n=s}),J.Children.map(r,o=>II(o,t))}["default","primary","danger"].concat(Be(Wi));const O1=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:l}=e,s=ce(`${l}-icon`,n);return J.createElement("span",{ref:t,className:s,style:r},o)}),ry=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=ce(`${n}-loading-icon`,r);return J.createElement(O1,{prefixCls:n,className:s,style:o,ref:t},J.createElement(Ru,{className:l}))}),Qf=()=>({width:0,opacity:0,transform:"scale(0)"}),Yf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),TI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,u=!!n;return r?J.createElement(ry,{prefixCls:t,className:o,style:l}):J.createElement(qo,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Qf,onAppearActive:Yf,onEnterStart:Qf,onEnterActive:Yf,onLeaveStart:Yf,onLeaveActive:Qf},({className:f,style:m},v)=>{const g=Object.assign(Object.assign({},l),m);return J.createElement(ry,{prefixCls:t,className:ce(o,f),style:g,ref:v})})},oy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),_I=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:l}=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}},oy(`${t}-primary`,o),oy(`${t}-danger`,l)]}};var MI=["b"],NI=["v"],Zf=function(t){return Math.round(Number(t||0))},zI=function(t){if(t instanceof dn)return t;if(t&&vt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=_t(n,MI);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ns=(function(e){Go(n,e);var t=Ko(n);function n(r){return Bn(this,n),t.call(this,zI(r))}return Fn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=Zf(o.s*100),s=Zf(o.b*100),u=Zf(o.h),f=o.a,m="hsb(".concat(u,", ").concat(l,"%, ").concat(s,"%)"),v="hsba(".concat(u,", ").concat(l,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?m:v}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=_t(o,NI);return q(q({},s),{},{b:l,a:this.a})}}]),n})(dn),jI=function(t){return t instanceof ns?t:new ns(t)};jI("#1677ff");const kI=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",LI=(e,t)=>e?kI(e,t):"";let op=(function(){function e(t){Bn(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:l})=>({color:new e(o),percent:l})),this.metaColor=new ns(this.colors[0].color.metaColor)):this.metaColor=new ns(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Fn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return LI(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 l=n.colors[o];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var AI={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"},DI=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:AI}))},rs=d.forwardRef(DI),I1=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,s=e.children,u=e.isActive,f=e.role,m=e.classNames,v=e.styles,g=J.useState(u||r),h=re(g,2),b=h[0],x=h[1];return J.useEffect(function(){(r||u)&&x(!0)},[r,u]),b?J.createElement("div",{ref:t,className:ce("".concat(n,"-content"),H(H({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),o),style:l,role:f},J.createElement("div",{className:ce("".concat(n,"-content-box"),m==null?void 0:m.body),style:v==null?void 0:v.body},s)):null});I1.displayName="PanelContent";var BI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],P1=J.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,l=e.isActive,s=e.onItemClick,u=e.forceRender,f=e.className,m=e.classNames,v=m===void 0?{}:m,g=e.styles,h=g===void 0?{}:g,b=e.prefixCls,x=e.collapsible,C=e.accordion,S=e.panelKey,E=e.extra,$=e.header,R=e.expandIcon,P=e.openMotion,O=e.destroyInactivePanel,I=e.children,T=_t(e,BI),M=x==="disabled",_=E!=null&&typeof E!="boolean",z=H(H(H({onClick:function(){s==null||s(S)},onKeyDown:function(U){(U.key==="Enter"||U.keyCode===qe.ENTER||U.which===qe.ENTER)&&(s==null||s(S))},role:C?"tab":"button"},"aria-expanded",l),"aria-disabled",M),"tabIndex",M?-1:0),L=typeof R=="function"?R(e):J.createElement("i",{className:"arrow"}),j=L&&J.createElement("div",ke({className:"".concat(b,"-expand-icon")},["header","icon"].includes(x)?z:{}),L),A=ce("".concat(b,"-item"),H(H({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),M),f),B=ce(o,"".concat(b,"-header"),H({},"".concat(b,"-collapsible-").concat(x),!!x),v.header),K=q({className:B,style:h.header},["header","icon"].includes(x)?{}:z);return J.createElement("div",ke({},T,{ref:t,className:A}),J.createElement("div",K,r&&j,J.createElement("span",ke({className:"".concat(b,"-header-text")},x==="header"?z:{}),$),_&&J.createElement("div",{className:"".concat(b,"-extra")},E)),J.createElement(qo,ke({visible:l,leavedClassName:"".concat(b,"-content-hidden")},P,{forceRender:u,removeOnLeave:O}),function(V,U){var D=V.className,X=V.style;return J.createElement(I1,{ref:U,prefixCls:b,className:D,classNames:v,style:X,styles:h,isActive:l,forceRender:u,role:C?"tabpanel":void 0},I)}))}),FI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],HI=function(t,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,f=n.activeKey,m=n.openMotion,v=n.expandIcon;return t.map(function(g,h){var b=g.children,x=g.label,C=g.key,S=g.collapsible,E=g.onItemClick,$=g.destroyInactivePanel,R=_t(g,FI),P=String(C??h),O=S??l,I=$??s,T=function(z){O!=="disabled"&&(u(z),E==null||E(z))},M=!1;return o?M=f[0]===P:M=f.indexOf(P)>-1,J.createElement(P1,ke({},R,{prefixCls:r,key:P,panelKey:P,isActive:M,accordion:o,openMotion:m,expandIcon:v,header:x,collapsible:O,onItemClick:T,destroyInactivePanel:I}),b)})},VI=function(t,n,r){if(!t)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,u=r.destroyInactivePanel,f=r.onItemClick,m=r.activeKey,v=r.openMotion,g=r.expandIcon,h=t.key||String(n),b=t.props,x=b.header,C=b.headerClass,S=b.destroyInactivePanel,E=b.collapsible,$=b.onItemClick,R=!1;l?R=m[0]===h:R=m.indexOf(h)>-1;var P=E??s,O=function(M){P!=="disabled"&&(f(M),$==null||$(M))},I={key:h,panelKey:h,header:x,headerClass:C,isActive:R,prefixCls:o,destroyInactivePanel:S??u,openMotion:v,accordion:l,children:t.props.children,onItemClick:O,expandIcon:g,collapsible:P};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(T){typeof I[T]>"u"&&delete I[T]}),J.cloneElement(t,I))};function WI(e,t,n){return Array.isArray(e)?HI(e,n):Mr(t).map(function(r,o){return VI(r,o,n)})}function UI(e){var t=e;if(!Array.isArray(t)){var n=vt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var GI=J.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,l=o===void 0?!1:o,s=e.style,u=e.accordion,f=e.className,m=e.children,v=e.collapsible,g=e.openMotion,h=e.expandIcon,b=e.activeKey,x=e.defaultActiveKey,C=e.onChange,S=e.items,E=ce(r,f),$=tr([],{value:b,onChange:function(_){return C==null?void 0:C(_)},defaultValue:x,postState:UI}),R=re($,2),P=R[0],O=R[1],I=function(_){return O(function(){if(u)return P[0]===_?[]:[_];var z=P.indexOf(_),L=z>-1;return L?P.filter(function(j){return j!==_}):[].concat(Be(P),[_])})};ar(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=WI(S,m,{prefixCls:r,accordion:u,openMotion:g,expandIcon:h,collapsible:v,destroyInactivePanel:l,onItemClick:I,activeKey:P});return J.createElement("div",ke({ref:t,className:E,style:s,role:u?"tablist":void 0},xi(e,{aria:!0,data:!0})),T)});const Zp=Object.assign(GI,{Panel:P1});Zp.Panel;const KI=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Gt),{prefixCls:r,className:o,showArrow:l=!0}=e,s=n("collapse",r),u=ce({[`${s}-no-arrow`]:!l},o);return d.createElement(Zp.Panel,Object.assign({ref:t},e,{prefixCls:s,className:u}))}),qI=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`}}}),XI=e=>({animationDuration:e,animationFillMode:"both"}),QI=e=>({animationDuration:e,animationFillMode:"both"}),Jp=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
179
+ ${l}${e}-enter,
180
+ ${l}${e}-appear
181
+ `]:Object.assign(Object.assign({},XI(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},QI(r)),{animationPlayState:"paused"}),[`
182
+ ${l}${e}-enter${e}-enter-active,
183
+ ${l}${e}-appear${e}-appear-active
184
+ `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},YI=new Ht("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ZI=new Ht("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),JI=new Ht("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eP=new Ht("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tP=new Ht("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nP=new Ht("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rP=new Ht("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oP=new Ht("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),iP={"move-up":{inKeyframes:rP,outKeyframes:oP},"move-down":{inKeyframes:YI,outKeyframes:ZI},"move-left":{inKeyframes:JI,outKeyframes:eP},"move-right":{inKeyframes:tP,outKeyframes:nP}},iy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=iP[t];return[Jp(r,o,l,e.motionDurationMid),{[`
185
+ ${r}-enter,
186
+ ${r}-appear
187
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},T1=new Ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_1=new Ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),M1=new Ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N1=new Ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),aP=new Ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lP=new Ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),sP=new Ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cP=new Ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),uP={"slide-up":{inKeyframes:T1,outKeyframes:_1},"slide-down":{inKeyframes:M1,outKeyframes:N1},"slide-left":{inKeyframes:aP,outKeyframes:lP},"slide-right":{inKeyframes:sP,outKeyframes:cP}},iu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=uP[t];return[Jp(r,o,l,e.motionDurationMid),{[`
188
+ ${r}-enter,
189
+ ${r}-appear
190
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},dP=new Ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fP=new Ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ay=new Ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ly=new Ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mP=new Ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pP=new Ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),vP=new Ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gP=new Ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hP=new Ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),yP=new Ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bP=new Ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),SP=new Ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),xP={zoom:{inKeyframes:dP,outKeyframes:fP},"zoom-big":{inKeyframes:ay,outKeyframes:ly},"zoom-big-fast":{inKeyframes:ay,outKeyframes:ly},"zoom-left":{inKeyframes:vP,outKeyframes:gP},"zoom-right":{inKeyframes:hP,outKeyframes:yP},"zoom-up":{inKeyframes:mP,outKeyframes:pP},"zoom-down":{inKeyframes:bP,outKeyframes:SP}},CP=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=xP[t];return[Jp(r,o,l,e.motionDurationFast),{[`
191
+ ${r}-enter,
192
+ ${r}-appear
193
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wP=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:f,lineWidth:m,lineType:v,colorBorder:g,colorText:h,colorTextHeading:b,colorTextDisabled:x,fontSizeLG:C,lineHeight:S,lineHeightLG:E,marginSM:$,paddingSM:R,paddingLG:P,paddingXS:O,motionDurationSlow:I,fontSizeIcon:T,contentPadding:M,fontHeight:_,fontHeightLG:z}=e,L=`${se(m)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},lr(e)),{backgroundColor:o,border:L,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
194
+ &,
195
+ & > ${t}-header`]:{borderRadius:`${se(f)} ${se(f)} 0 0`}},"&:last-child":{[`
196
+ &,
197
+ & > ${t}-header`]:{borderRadius:`0 0 ${se(f)} ${se(f)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:b,lineHeight:S,cursor:"pointer",transition:`all ${I}, visibility 0s`},Ui(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:_,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},ms()),{fontSize:T,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:L,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(R).sub(O).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},"&-large":{[`> ${t}-item`]:{fontSize:C,lineHeight:E,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:z,marginInlineStart:e.calc(P).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:P}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${se(f)} ${se(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:x,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},$P=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},EP=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
198
+ > ${t}-item:last-child,
199
+ > ${t}-item:last-child ${t}-header
200
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},RP=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},OP=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),IP=On("Collapse",e=>{const t=fn(e,{collapseHeaderPaddingSM:`${se(e.paddingXS)} ${se(e.paddingSM)}`,collapseHeaderPaddingLG:`${se(e.padding)} ${se(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[wP(t),EP(t),RP(t),$P(t),qI(t)]},OP),PP=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=Vr("collapse"),{prefixCls:u,className:f,rootClassName:m,style:v,bordered:g=!0,ghost:h,size:b,expandIconPosition:x="start",children:C,destroyInactivePanel:S,destroyOnHidden:E,expandIcon:$}=e,R=Xo(K=>{var V;return(V=b??K)!==null&&V!==void 0?V:"middle"}),P=n("collapse",u),O=n(),[I,T,M]=IP(P),_=d.useMemo(()=>x==="left"?"start":x==="right"?"end":x,[x]),z=$??o,L=d.useCallback((K={})=>{const V=typeof z=="function"?z(K):d.createElement(rs,{rotate:K.isActive?r==="rtl"?-90:90:void 0,"aria-label":K.isActive?"expanded":"collapsed"});return Po(V,()=>{var U;return{className:ce((U=V.props)===null||U===void 0?void 0:U.className,`${P}-arrow`)}})},[z,P,r]),j=ce(`${P}-icon-position-${_}`,{[`${P}-borderless`]:!g,[`${P}-rtl`]:r==="rtl",[`${P}-ghost`]:!!h,[`${P}-${R}`]:R!=="middle"},l,f,m,T,M),A=d.useMemo(()=>Object.assign(Object.assign({},mI(O)),{motionAppear:!1,leavedClassName:`${P}-content-hidden`}),[O,P]),B=d.useMemo(()=>C?Mr(C).map((K,V)=>{var U,D;const X=K.props;if(X!=null&&X.disabled){const W=(U=K.key)!==null&&U!==void 0?U:String(V),k=Object.assign(Object.assign({},Hr(K.props,["disabled"])),{key:W,collapsible:(D=X.collapsible)!==null&&D!==void 0?D:"disabled"});return Po(K,k)}return K}):null,[C]);return I(d.createElement(Zp,Object.assign({ref:t,openMotion:A},Hr(e,["rootClassName"]),{expandIcon:L,prefixCls:P,className:j,style:Object.assign(Object.assign({},s),v),destroyInactivePanel:E??S}),B))}),au=Object.assign(PP,{Panel:KI}),TP=e=>e instanceof op?e:new op(e),_P=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new ns(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},z1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return fn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},j1=e=>{var t,n,r,o,l,s;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,v=(o=e.contentLineHeight)!==null&&o!==void 0?o:Vc(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:Vc(f),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:Vc(m),b=_P(new op(e.colorBgSolid),"#fff")?"#000":"#fff",x=Wi.reduce((C,S)=>Object.assign(Object.assign({},C),{[`${S}ShadowColor`]:`0 ${se(e.controlOutlineWidth)} 0 ${Al(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},x),{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:b,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:m,contentLineHeight:v,contentLineHeightSM:g,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-u*v)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*h)/2-e.lineWidth,0)})},MP=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,iconGap:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${se(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`]:ms(),"> a":{color:"currentColor"},"&:not(:disabled)":Ui(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(m=>`${m} ${l} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(u).mul(-1).equal()}}}}}},k1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),NP=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),zP=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Tu=(e,t,n,r,o,l,s,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},k1(e,Object.assign({background:t},s),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),jP=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},zP(e))}),kP=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),_u=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?kP:jP;return Object.assign(Object.assign({},l(e)),k1(e.componentCls,t,n))},Mu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},_u(e,r,o))}),Nu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},_u(e,r,o))}),zu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ju=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},_u(e,n,r))}),To=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},_u(e,r,o,n))}),LP=e=>{const{componentCls:t}=e;return Wi.reduce((n,r)=>{const o=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],u=e[`${r}2`],f=e[`${r}3`],m=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`]},Mu(e,e.colorTextLightSolid,o,{background:s},{background:m})),Nu(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),zu(e)),ju(e,l,{color:o,background:u},{color:o,background:f})),To(e,o,"link",{color:s},{color:m})),To(e,o,"text",{color:s,background:l},{color:m,background:f}))})},{})},AP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Mu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),zu(e)),ju(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Tu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),To(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),DP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Nu(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),zu(e)),ju(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),To(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),To(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Tu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),BP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Mu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Nu(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zu(e)),ju(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),To(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),To(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Tu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),FP=e=>Object.assign(Object.assign({},To(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Tu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),HP=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:AP(e),[`${t}-color-primary`]:DP(e),[`${t}-color-dangerous`]:BP(e),[`${t}-color-link`]:FP(e)},LP(e))},VP=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Nu(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),To(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Mu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),To(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ev=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${se(f)} ${se(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:NP(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},WP=e=>{const t=fn(e,{fontSize:e.contentFontSize});return ev(t,e.componentCls)},UP=e=>{const t=fn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ev(t,`${e.componentCls}-sm`)},GP=e=>{const t=fn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ev(t,`${e.componentCls}-lg`)},KP=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},qP=On("Button",e=>{const t=z1(e);return[MP(t),WP(t),UP(t),GP(t),KP(t),HP(t),VP(t),_I(t)]},j1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function XP(e,t,n,r){const{focusElCls:o,focus:l,borderElCls:s}=n,u=s?"> *":"",f=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function QP(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 ku(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},XP(e,l,t,o)),QP(o,l,t))}}function YP(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 ZP(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 JP(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},YP(e,t,e.componentCls)),ZP(e.componentCls,t))}}const eT=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,l=o(r).mul(-1).equal(),s=u=>{const f=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},tT=wu(["Button","compact"],e=>{const t=z1(e);return[ku(t),JP(t),eT(t)]},j1);var nT=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 rT(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 oT={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},iT=J.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:u,type:f,danger:m=!1,shape:v,size:g,styles:h,disabled:b,className:x,rootClassName:C,children:S,icon:E,iconPosition:$="start",ghost:R=!1,block:P=!1,htmlType:O="button",classNames:I,style:T={},autoInsertSpace:M,autoFocus:_}=e,z=nT(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=f||"default",{button:j}=J.useContext(Gt),A=v||(j==null?void 0:j.shape)||"default",[B,K]=d.useMemo(()=>{if(s&&u)return[s,u];if(f||m){const mt=oT[L]||[];return m?["danger",mt[1]]:mt}return j!=null&&j.color&&(j!=null&&j.variant)?[j.color,j.variant]:["default","outlined"]},[s,u,f,m,j==null?void 0:j.color,j==null?void 0:j.variant,L]),U=B==="danger"?"dangerous":B,{getPrefixCls:D,direction:X,autoInsertSpace:W,className:k,style:F,classNames:Y,styles:ne}=Vr("button"),Z=(n=M??W)!==null&&n!==void 0?n:!0,ee=D("btn",l),[me,pe,ue]=qP(ee),Se=d.useContext(qa),fe=b??Se,ae=d.useContext(R1),ye=d.useMemo(()=>rT(o),[o]),[he,ve]=d.useState(ye.loading),[oe,be]=d.useState(!1),we=d.useRef(null),$e=qi(t,we),Ae=d.Children.count(S)===1&&!E&&!Xf(K),je=d.useRef(!0);J.useEffect(()=>(je.current=!1,()=>{je.current=!0}),[]),tn(()=>{let mt=null;ye.delay>0?mt=setTimeout(()=>{mt=null,ve(!0)},ye.delay):ve(ye.loading);function Bt(){mt&&(clearTimeout(mt),mt=null)}return Bt},[ye.delay,ye.loading]),d.useEffect(()=>{if(!we.current||!Z)return;const mt=we.current.textContent||"";Ae&&rp(mt)?oe||be(!0):oe&&be(!1)}),d.useEffect(()=>{_&&we.current&&we.current.focus()},[]);const Ie=J.useCallback(mt=>{var Bt;if(he||fe){mt.preventDefault();return}(Bt=e.onClick)===null||Bt===void 0||Bt.call(e,("href"in e,mt))},[e.onClick,he,fe]),{compactSize:Le,compactItemClassnames:Ee}=Pu(ee,X),tt={large:"lg",small:"sm",middle:void 0},lt=Xo(mt=>{var Bt,At;return(At=(Bt=g??Le)!==null&&Bt!==void 0?Bt:ae)!==null&&At!==void 0?At:mt}),bt=lt&&(r=tt[lt])!==null&&r!==void 0?r:"",st=he?"loading":E,Ue=Hr(z,["navigate"]),it=ce(ee,pe,ue,{[`${ee}-${A}`]:A!=="default"&&A,[`${ee}-${L}`]:L,[`${ee}-dangerous`]:m,[`${ee}-color-${U}`]:U,[`${ee}-variant-${K}`]:K,[`${ee}-${bt}`]:bt,[`${ee}-icon-only`]:!S&&S!==0&&!!st,[`${ee}-background-ghost`]:R&&!Xf(K),[`${ee}-loading`]:he,[`${ee}-two-chinese-chars`]:oe&&Z&&!he,[`${ee}-block`]:P,[`${ee}-rtl`]:X==="rtl",[`${ee}-icon-end`]:$==="end"},Ee,x,C,k),Ve=Object.assign(Object.assign({},F),T),dt=ce(I==null?void 0:I.icon,Y.icon),Xe=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),ne.icon||{}),_e=mt=>J.createElement(O1,{prefixCls:ee,className:dt,style:Xe},mt),Ye=()=>J.createElement(TI,{existIcon:!!E,prefixCls:ee,loading:he,mount:je.current});let Pe;E&&!he?Pe=_e(E):o&&typeof o=="object"&&o.icon?Pe=_e(o.icon):Pe=Ye();const Fe=S||S===0?PI(S,Ae&&Z):null;if(Ue.href!==void 0)return me(J.createElement("a",Object.assign({},Ue,{className:ce(it,{[`${ee}-disabled`]:fe}),href:fe?void 0:Ue.href,style:Ve,onClick:Ie,ref:$e,tabIndex:fe?-1:0,"aria-disabled":fe}),Pe,Fe));let wt=J.createElement("button",Object.assign({},z,{type:O,className:it,style:Ve,onClick:Ie,disabled:fe,ref:$e}),Pe,Fe,Ee&&J.createElement(tT,{prefixCls:ee}));return Xf(K)||(wt=J.createElement($1,{component:"Button",disabled:he},wt)),me(wt)}),os=iT;os.Group=OI;os.__ANT_BUTTON=!0;var L1=d.createContext(null),sy=[];function aT(e,t){var n=d.useState(function(){if(!wr())return null;var x=document.createElement("div");return x}),r=re(n,1),o=r[0],l=d.useRef(!1),s=d.useContext(L1),u=d.useState(sy),f=re(u,2),m=f[0],v=f[1],g=s||(l.current?void 0:function(x){v(function(C){var S=[x].concat(Be(C));return S})});function h(){o.parentElement||document.body.appendChild(o),l.current=!0}function b(){var x;(x=o.parentElement)===null||x===void 0||x.removeChild(o),l.current=!1}return tn(function(){return e?s?s(h):h():b(),b},[e]),tn(function(){m.length&&(m.forEach(function(x){return x()}),v(sy))},[m]),[o,g]}function lT(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,l;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(u.width,10),m=parseInt(u.height,10);try{var v=f?"width: ".concat(u.width,";"):"",g=m?"height: ".concat(u.height,";"):"";Vo(`
201
+ #`.concat(t,`::-webkit-scrollbar {
202
+ `).concat(v,`
203
+ `).concat(g,`
204
+ }`),t)}catch(x){console.error(x),o=f,l=m}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,b=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Xl(t),{width:h,height:b}}function sT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:lT(e)}function cT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var uT="rc-util-locker-".concat(Date.now()),cy=0;function dT(e){var t=!!e,n=d.useState(function(){return cy+=1,"".concat(uT,"_").concat(cy)}),r=re(n,1),o=r[0];tn(function(){if(t){var l=sT(document.body).width,s=cT();Vo(`
205
+ html body {
206
+ overflow-y: hidden;
207
+ `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
208
+ }`),o)}else Xl(o);return function(){Xl(o)}},[t,o])}var fT=!1;function mT(e){return fT}var uy=function(t){return t===!1?!1:!wr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},A1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,u=e.children,f=d.useState(n),m=re(f,2),v=m[0],g=m[1],h=v||n;d.useEffect(function(){(s||n)&&g(n)},[n,s]);var b=d.useState(function(){return uy(o)}),x=re(b,2),C=x[0],S=x[1];d.useEffect(function(){var L=uy(o);S(L??null)});var E=aT(h&&!C),$=re(E,2),R=$[0],P=$[1],O=C??R;dT(r&&n&&wr()&&(O===R||O===document.body));var I=null;if(u&&Xi(u)&&t){var T=u;I=T.ref}var M=qi(I,t);if(!h||!wr()||C===void 0)return null;var _=O===!1||mT(),z=u;return t&&(z=d.cloneElement(u,{ref:M})),d.createElement(L1.Provider,{value:P},_?z:Si.createPortal(z,O))});function pT(){var e=q({},hu);return e.useId}var dy=0,fy=pT();const D1=fy?(function(t){var n=fy();return t||n}):(function(t){var n=d.useState("ssr-id"),r=re(n,2),o=r[0],l=r[1];return d.useEffect(function(){var s=dy;dy+=1,l("rc_unique_".concat(s))},[]),t||o});var Di="RC_FORM_INTERNAL_HOOKS",hn=function(){ar(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Qa=d.createContext({getFieldValue:hn,getFieldsValue:hn,getFieldError:hn,getFieldWarning:hn,getFieldsError:hn,isFieldsTouched:hn,isFieldTouched:hn,isFieldValidating:hn,isFieldsValidating:hn,resetFields:hn,setFields:hn,setFieldValue:hn,setFieldsValue:hn,validateFields:hn,submit:hn,getInternalHooks:function(){return hn(),{dispatch:hn,initEntityValue:hn,registerField:hn,useSubscribe:hn,setInitialValues:hn,destroyForm:hn,setCallbacks:hn,registerWatch:hn,getFields:hn,setValidateMessages:hn,setPreserve:hn,getInitialValue:hn}}}),lu=d.createContext(null);function ip(e){return e==null?[]:Array.isArray(e)?e:[e]}function vT(e){return e&&!!e._init}function ap(){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",tel:"%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 lp=ap();function gT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function hT(e,t,n){if(zp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Gl(o,n.prototype),o}function sp(e){var t=typeof Map=="function"?new Map:void 0;return sp=function(r){if(r===null||!gT(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 hT(r,arguments,Kl(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Gl(o,r)},sp(e)}var yT=/%[sdj%]/g,bT=function(){};function cp(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 Fr(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,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(yT,function(u){if(u==="%%")return"%";if(o>=l)return u;switch(u){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function ST(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function qn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ST(t)&&typeof e=="string"&&!e)}function xT(e,t,n){var r=[],o=0,l=e.length;function s(u){r.push.apply(r,Be(u||[])),o++,o===l&&n(r)}e.forEach(function(u){t(u,s)})}function my(e,t,n){var r=0,o=e.length;function l(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<o?t(e[u],l):n([])}l([])}function CT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Be(e[n]||[]))}),t}var py=(function(e){Go(n,e);var t=Ko(n);function n(r,o){var l;return Bn(this,n),l=t.call(this,"Async Validation Error"),H(Dt(l),"errors",void 0),H(Dt(l),"fields",void 0),l.errors=r,l.fields=o,l}return Fn(n)})(sp(Error));function wT(e,t,n,r,o){if(t.first){var l=new Promise(function(h,b){var x=function(E){return r(E),E.length?b(new py(E,cp(E))):h(o)},C=CT(e);my(C,n,x)});return l.catch(function(h){return h}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,m=0,v=[],g=new Promise(function(h,b){var x=function(S){if(v.push.apply(v,S),m++,m===f)return r(v),v.length?b(new py(v,cp(v))):h(o)};u.length||(r(v),h(o)),u.forEach(function(C){var S=e[C];s.indexOf(C)!==-1?my(S,n,x):xT(S,n,x)})});return g.catch(function(h){return h}),g}function $T(e){return!!(e&&e.message!==void 0)}function ET(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function vy(e,t){return function(n){var r;return e.fullFields?r=ET(t,e.fullFields):r=t[n.field||e.fullField],$T(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function gy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];vt(r)==="object"&&vt(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var Ea="enum",RT=function(t,n,r,o,l){t[Ea]=Array.isArray(t[Ea])?t[Ea]:[],t[Ea].indexOf(n)===-1&&o.push(Fr(l.messages[Ea],t.fullField,t[Ea].join(", ")))},OT=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Fr(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(Fr(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},IT=function(t,n,r,o,l){var s=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,g=null,h=typeof n=="number",b=typeof n=="string",x=Array.isArray(n);if(h?g="number":b?g="string":x&&(g="array"),!g)return!1;x&&(v=n.length),b&&(v=n.replace(m,"_").length),s?v!==t.len&&o.push(Fr(l.messages[g].len,t.fullField,t.len)):u&&!f&&v<t.min?o.push(Fr(l.messages[g].min,t.fullField,t.min)):f&&!u&&v>t.max?o.push(Fr(l.messages[g].max,t.fullField,t.max)):u&&f&&(v<t.min||v>t.max)&&o.push(Fr(l.messages[g].range,t.fullField,t.min,t.max))},B1=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||qn(n,s||t.type))&&o.push(Fr(l.messages.required,t.fullField))},Oc;const PT=(function(){if(Oc)return Oc;var e="[a-fA-F\\d:]",t=function(I){return I&&I.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}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),v=function(I){return I&&I.exact?u:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(s).concat(t(I),")"),"g")};v.v4=function(O){return O&&O.exact?f:new RegExp("".concat(t(O)).concat(n).concat(t(O)),"g")},v.v6=function(O){return O&&O.exact?m:new RegExp("".concat(t(O)).concat(s).concat(t(O)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",b=v.v4().source,x=v.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",R='(?:[/?#][^\\s"]*)?',P="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(b,"|").concat(x,"|").concat(C).concat(S).concat(E,")").concat($).concat(R);return Oc=new RegExp("(?:^".concat(P,"$)"),"i"),Oc});var Jf={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Dl={integer:function(t){return Dl.number(t)&&parseInt(t,10)===t},float:function(t){return Dl.number(t)&&!Dl.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 vt(t)==="object"&&!Dl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Jf.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Jf.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(PT())},hex:function(t){return typeof t=="string"&&!!t.match(Jf.hex)}},TT=function(t,n,r,o,l){if(t.required&&n===void 0){B1(t,n,r,o,l);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?Dl[u](n)||o.push(Fr(l.messages.types[u],t.fullField,t.type)):u&&vt(n)!==t.type&&o.push(Fr(l.messages.types[u],t.fullField,t.type))},_T=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(Fr(l.messages.whitespace,t.fullField))};const qt={required:B1,whitespace:_T,type:TT,range:IT,enum:RT,pattern:OT};var MT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l)}r(s)},NT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();qt.required(t,n,o,s,l,"array"),n!=null&&(qt.type(t,n,o,s,l),qt.range(t,n,o,s,l))}r(s)},zT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&qt.type(t,n,o,s,l)}r(s)},jT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n,"date")&&!t.required)return r();if(qt.required(t,n,o,s,l),!qn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),qt.type(t,f,o,s,l),f&&qt.range(t,f.getTime(),o,s,l)}}r(s)},kT="enum",LT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&qt[kT](t,n,o,s,l)}r(s)},AT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&(qt.type(t,n,o,s,l),qt.range(t,n,o,s,l))}r(s)},DT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&(qt.type(t,n,o,s,l),qt.range(t,n,o,s,l))}r(s)},BT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&qt.type(t,n,o,s,l)}r(s)},FT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&(qt.type(t,n,o,s,l),qt.range(t,n,o,s,l))}r(s)},HT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),n!==void 0&&qt.type(t,n,o,s,l)}r(s)},VT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n,"string")&&!t.required)return r();qt.required(t,n,o,s,l),qn(n,"string")||qt.pattern(t,n,o,s,l)}r(s)},WT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n)&&!t.required)return r();qt.required(t,n,o,s,l),qn(n)||qt.type(t,n,o,s,l)}r(s)},UT=function(t,n,r,o,l){var s=[],u=Array.isArray(n)?"array":vt(n);qt.required(t,n,o,s,l,u),r(s)},GT=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(qn(n,"string")&&!t.required)return r();qt.required(t,n,o,s,l,"string"),qn(n,"string")||(qt.type(t,n,o,s,l),qt.range(t,n,o,s,l),qt.pattern(t,n,o,s,l),t.whitespace===!0&&qt.whitespace(t,n,o,s,l))}r(s)},Ic=function(t,n,r,o,l){var s=t.type,u=[],f=t.required||!t.required&&o.hasOwnProperty(t.field);if(f){if(qn(n,s)&&!t.required)return r();qt.required(t,n,o,u,l,s),qn(n,s)||qt.type(t,n,o,u,l)}r(u)};const Wl={string:GT,method:BT,number:FT,boolean:zT,regexp:WT,integer:DT,float:AT,array:NT,object:HT,enum:LT,pattern:VT,date:jT,url:Ic,hex:Ic,email:Ic,tel:Ic,required:UT,any:MT};var gs=(function(){function e(t){Bn(this,e),H(this,"rules",null),H(this,"_messages",lp),this.define(t)}return Fn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(vt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var l=n[o];r.rules[o]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=gy(ap(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,u=o,f=l;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function m(x){var C=[],S={};function E(R){if(Array.isArray(R)){var P;C=(P=C).concat.apply(P,Be(R))}else C.push(R)}for(var $=0;$<x.length;$++)E(x[$]);C.length?(S=cp(C),f(C,S)):f(null,s)}if(u.messages){var v=this.messages();v===lp&&(v=ap()),gy(v,u.messages),u.messages=v}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(x){var C=r.rules[x],S=s[x];C.forEach(function(E){var $=E;typeof $.transform=="function"&&(s===n&&(s=q({},s)),S=s[x]=$.transform(S),S!=null&&($.type=$.type||(Array.isArray(S)?"array":vt(S)))),typeof $=="function"?$={validator:$}:$=q({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=x,$.fullField=$.fullField||x,$.type=r.getType($),g[x]=g[x]||[],g[x].push({rule:$,value:S,source:s,field:x}))})});var b={};return wT(g,u,function(x,C){var S=x.rule,E=(S.type==="object"||S.type==="array")&&(vt(S.fields)==="object"||vt(S.defaultField)==="object");E=E&&(S.required||!S.required&&x.value),S.field=x.field;function $(T,M){return q(q({},M),{},{fullField:"".concat(S.fullField,".").concat(T),fullFields:S.fullFields?[].concat(Be(S.fullFields),[T]):[T]})}function R(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(T)?T:[T];!u.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&S.message!==void 0&&S.message!==null&&(M=[].concat(S.message));var _=M.map(vy(S,s));if(u.first&&_.length)return b[S.field]=1,C(_);if(!E)C(_);else{if(S.required&&!x.value)return S.message!==void 0?_=[].concat(S.message).map(vy(S,s)):u.error&&(_=[u.error(S,Fr(u.messages.required,S.field))]),C(_);var z={};S.defaultField&&Object.keys(x.value).map(function(A){z[A]=S.defaultField}),z=q(q({},z),x.rule.fields);var L={};Object.keys(z).forEach(function(A){var B=z[A],K=Array.isArray(B)?B:[B];L[A]=K.map($.bind(null,A))});var j=new e(L);j.messages(u.messages),x.rule.options&&(x.rule.options.messages=u.messages,x.rule.options.error=u.error),j.validate(x.value,x.rule.options||u,function(A){var B=[];_&&_.length&&B.push.apply(B,Be(_)),A&&A.length&&B.push.apply(B,Be(A)),C(B.length?B:null)})}}var P;if(S.asyncValidator)P=S.asyncValidator(S,x.value,R,x.source,u);else if(S.validator){try{P=S.validator(S,x.value,R,x.source,u)}catch(T){var O,I;(O=(I=console).error)===null||O===void 0||O.call(I,T),u.suppressValidatorError||setTimeout(function(){throw T},0),R(T.message)}P===!0?R():P===!1?R(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):P instanceof Array?R(P):P instanceof Error&&R(P.message)}P&&P.then&&P.then(function(){return R()},function(T){return R(T)})},function(x){m(x)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Wl.hasOwnProperty(n.type))throw new Error(Fr("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"?Wl.required:Wl[this.getType(n)]||void 0}}]),e})();H(gs,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Wl[t]=n});H(gs,"warning",bT);H(gs,"messages",lp);H(gs,"validators",Wl);var Dr="'${name}' is not a valid ${type}",F1={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:Dr,method:Dr,array:Dr,object:Dr,number:Dr,date:Dr,boolean:Dr,integer:Dr,float:Dr,regexp:Dr,email:Dr,url:Dr,hex:Dr},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}"}},hy=gs;function KT(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 yy="CODE_LOGIC_ERROR";function up(e,t,n,r,o){return dp.apply(this,arguments)}function dp(){return dp=Qi(yr().mark(function e(t,n,r,o,l){var s,u,f,m,v,g,h,b,x;return yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return s=q({},r),delete s.ruleIndex,hy.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(yy)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),m=new hy(H({},t,[s])),v=Aa(F1,o.validateMessages),m.messages(v),g=[],S.prev=10,S.next=13,Promise.resolve(m.validate(H({},t,n),q({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(g=S.t0.errors.map(function(E,$){var R=E.message,P=R===yy?v.default:R;return d.isValidElement(P)?d.cloneElement(P,{key:"error_".concat($)}):P}));case 18:if(!(!g.length&&f&&Array.isArray(n)&&n.length>0)){S.next=23;break}return S.next=21,Promise.all(n.map(function(E,$){return up("".concat(t,".").concat($),E,f,o,l)}));case 21:return h=S.sent,S.abrupt("return",h.reduce(function(E,$){return[].concat(Be(E),Be($))},[]));case 23:return b=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),x=g.map(function(E){return typeof E=="string"?KT(E,b):E}),S.abrupt("return",x);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),dp.apply(this,arguments)}function qT(e,t,n,r,o,l){var s=e.join("."),u=n.map(function(v,g){var h=v.validator,b=q(q({},v),{},{ruleIndex:g});return h&&(b.validator=function(x,C,S){var E=!1,$=function(){for(var O=arguments.length,I=new Array(O),T=0;T<O;T++)I[T]=arguments[T];Promise.resolve().then(function(){ar(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||S.apply(void 0,I)})},R=h(x,C,$);E=R&&typeof R.then=="function"&&typeof R.catch=="function",ar(E,"`callback` is deprecated. Please return a promise instead."),E&&R.then(function(){S()}).catch(function(P){S(P||" ")})}),b}).sort(function(v,g){var h=v.warningOnly,b=v.ruleIndex,x=g.warningOnly,C=g.ruleIndex;return!!h==!!x?b-C:h?1:-1}),f;if(o===!0)f=new Promise((function(){var v=Qi(yr().mark(function g(h,b){var x,C,S;return yr().wrap(function($){for(;;)switch($.prev=$.next){case 0:x=0;case 1:if(!(x<u.length)){$.next=12;break}return C=u[x],$.next=5,up(s,t,C,r,l);case 5:if(S=$.sent,!S.length){$.next=9;break}return b([{errors:S,rule:C}]),$.abrupt("return");case 9:x+=1,$.next=1;break;case 12:h([]);case 13:case"end":return $.stop()}},g)}));return function(g,h){return v.apply(this,arguments)}})());else{var m=u.map(function(v){return up(s,t,v,r,l).then(function(g){return{errors:g,rule:v}})});f=(o?QT(m):XT(m)).then(function(v){return Promise.reject(v)})}return f.catch(function(v){return v}),f}function XT(e){return fp.apply(this,arguments)}function fp(){return fp=Qi(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var l,s=(l=[]).concat.apply(l,Be(o));return s}));case 1:case"end":return r.stop()}},e)})),fp.apply(this,arguments)}function QT(e){return mp.apply(this,arguments)}function mp(){return mp=Qi(yr().mark(function e(t){var n;return yr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return o.stop()}},e)})),mp.apply(this,arguments)}function Ln(e){return ip(e)}function by(e,t){var n={};return t.forEach(function(r){var o=Oo(e,r);n=mo(n,r,o)}),n}function Va(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return H1(t,r,n)})}function H1(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 YT(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||vt(e)!=="object"||vt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Be(o).every(function(l){var s=e[l],u=t[l];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function ZT(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&vt(t.target)==="object"&&e in t.target?t.target[e]:t}function Sy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],l=t-n;return l>0?[].concat(Be(e.slice(0,n)),[o],Be(e.slice(n,t)),Be(e.slice(t+1,r))):l<0?[].concat(Be(e.slice(0,t)),Be(e.slice(t+1,n+1)),[o],Be(e.slice(n+1,r))):e}var JT=["name"],Jr=[];function em(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var tv=(function(e){Go(n,e);var t=Ko(n);function n(r){var o;if(Bn(this,n),o=t.call(this,r),H(Dt(o),"state",{resetCount:0}),H(Dt(o),"cancelRegisterFunc",null),H(Dt(o),"mounted",!1),H(Dt(o),"touched",!1),H(Dt(o),"dirty",!1),H(Dt(o),"validatePromise",void 0),H(Dt(o),"prevValidating",void 0),H(Dt(o),"errors",Jr),H(Dt(o),"warnings",Jr),H(Dt(o),"cancelRegister",function(){var f=o.props,m=f.preserve,v=f.isListField,g=f.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(v,m,Ln(g)),o.cancelRegisterFunc=null}),H(Dt(o),"getNamePath",function(){var f=o.props,m=f.name,v=f.fieldContext,g=v.prefixName,h=g===void 0?[]:g;return m!==void 0?[].concat(Be(h),Be(m)):[]}),H(Dt(o),"getRules",function(){var f=o.props,m=f.rules,v=m===void 0?[]:m,g=f.fieldContext;return v.map(function(h){return typeof h=="function"?h(g):h})}),H(Dt(o),"refresh",function(){o.mounted&&o.setState(function(f){var m=f.resetCount;return{resetCount:m+1}})}),H(Dt(o),"metaCache",null),H(Dt(o),"triggerMetaEvent",function(f){var m=o.props.onMetaChange;if(m){var v=q(q({},o.getMeta()),{},{destroy:f});Ql(o.metaCache,v)||m(v),o.metaCache=v}else o.metaCache=null}),H(Dt(o),"onStoreChange",function(f,m,v){var g=o.props,h=g.shouldUpdate,b=g.dependencies,x=b===void 0?[]:b,C=g.onReset,S=v.store,E=o.getNamePath(),$=o.getValue(f),R=o.getValue(S),P=m&&Va(m,E);switch(v.type==="valueUpdate"&&v.source==="external"&&!Ql($,R)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent()),v.type){case"reset":if(!m||P){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent(),C==null||C(),o.refresh();return}break;case"remove":{if(h&&em(h,f,S,$,R,v)){o.reRender();return}break}case"setField":{var O=v.data;if(P){"touched"in O&&(o.touched=O.touched),"validating"in O&&!("originRCField"in O)&&(o.validatePromise=O.validating?Promise.resolve([]):null),"errors"in O&&(o.errors=O.errors||Jr),"warnings"in O&&(o.warnings=O.warnings||Jr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in O&&Va(m,E,!0)){o.reRender();return}if(h&&!E.length&&em(h,f,S,$,R,v)){o.reRender();return}break}case"dependenciesUpdate":{var I=x.map(Ln);if(I.some(function(T){return Va(v.relatedFields,T)})){o.reRender();return}break}default:if(P||(!x.length||E.length||h)&&em(h,f,S,$,R,v)){o.reRender();return}break}h===!0&&o.reRender()}),H(Dt(o),"validateRules",function(f){var m=o.getNamePath(),v=o.getValue(),g=f||{},h=g.triggerName,b=g.validateOnly,x=b===void 0?!1:b,C=Promise.resolve().then(Qi(yr().mark(function S(){var E,$,R,P,O,I,T;return yr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(E=o.props,$=E.validateFirst,R=$===void 0?!1:$,P=E.messageVariables,O=E.validateDebounce,I=o.getRules(),h&&(I=I.filter(function(z){return z}).filter(function(z){var L=z.validateTrigger;if(!L)return!0;var j=ip(L);return j.includes(h)})),!(O&&h)){_.next=10;break}return _.next=8,new Promise(function(z){setTimeout(z,O)});case 8:if(o.validatePromise===C){_.next=10;break}return _.abrupt("return",[]);case 10:return T=qT(m,v,I,f,R,P),T.catch(function(z){return z}).then(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jr;if(o.validatePromise===C){var L;o.validatePromise=null;var j=[],A=[];(L=z.forEach)===null||L===void 0||L.call(z,function(B){var K=B.rule.warningOnly,V=B.errors,U=V===void 0?Jr:V;K?A.push.apply(A,Be(U)):j.push.apply(j,Be(U))}),o.errors=j,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),_.abrupt("return",T);case 13:case"end":return _.stop()}},S)})));return x||(o.validatePromise=C,o.dirty=!0,o.errors=Jr,o.warnings=Jr,o.triggerMetaEvent(),o.reRender()),C}),H(Dt(o),"isFieldValidating",function(){return!!o.validatePromise}),H(Dt(o),"isFieldTouched",function(){return o.touched}),H(Dt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var f=o.props.fieldContext,m=f.getInternalHooks(Di),v=m.getInitialValue;return v(o.getNamePath())!==void 0}),H(Dt(o),"getErrors",function(){return o.errors}),H(Dt(o),"getWarnings",function(){return o.warnings}),H(Dt(o),"isListField",function(){return o.props.isListField}),H(Dt(o),"isList",function(){return o.props.isList}),H(Dt(o),"isPreserve",function(){return o.props.preserve}),H(Dt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var f={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return f}),H(Dt(o),"getOnlyChild",function(f){if(typeof f=="function"){var m=o.getMeta();return q(q({},o.getOnlyChild(f(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var v=Mr(f);return v.length!==1||!d.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),H(Dt(o),"getValue",function(f){var m=o.props.fieldContext.getFieldsValue,v=o.getNamePath();return Oo(f||m(!0),v)}),H(Dt(o),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,v=m.name,g=m.trigger,h=m.validateTrigger,b=m.getValueFromEvent,x=m.normalize,C=m.valuePropName,S=m.getValueProps,E=m.fieldContext,$=h!==void 0?h:E.validateTrigger,R=o.getNamePath(),P=E.getInternalHooks,O=E.getFieldsValue,I=P(Di),T=I.dispatch,M=o.getValue(),_=S||function(B){return H({},C,B)},z=f[g],L=v!==void 0?_(M):{},j=q(q({},f),L);j[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var B,K=arguments.length,V=new Array(K),U=0;U<K;U++)V[U]=arguments[U];b?B=b.apply(void 0,V):B=ZT.apply(void 0,[C].concat(V)),x&&(B=x(B,M,O(!0))),B!==M&&T({type:"updateValue",namePath:R,value:B}),z&&z.apply(void 0,V)};var A=ip($||[]);return A.forEach(function(B){var K=j[B];j[B]=function(){K&&K.apply(void 0,arguments);var V=o.props.rules;V&&V.length&&T({type:"validateField",namePath:R,triggerName:B})}}),j}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(Di),u=s.initEntityValue;u(Dt(o))}return o}return Fn(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,f=u(Di),m=f.registerField;this.cancelRegisterFunc=m(this)}l===!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,l=this.props.children,s=this.getOnlyChild(l),u=s.child,f=s.isFunction,m;return f?m=u:d.isValidElement(u)?m=d.cloneElement(u,this.getControlled(u.props)):(ar(!u,"`children` of Field is not validate ReactElement."),m=u),d.createElement(d.Fragment,{key:o},m)}}]),n})(d.Component);H(tv,"contextType",Qa);H(tv,"defaultProps",{trigger:"onChange",valuePropName:"value"});function V1(e){var t,n=e.name,r=_t(e,JT),o=d.useContext(Qa),l=d.useContext(lu),s=n!==void 0?Ln(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,f="keep";return u||(f="_".concat((s||[]).join("_"))),d.createElement(tv,ke({key:f,name:s,isListField:u},r,{fieldContext:o}))}function e_(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,u=d.useContext(Qa),f=d.useContext(lu),m=d.useRef({keys:[],id:0}),v=m.current,g=d.useMemo(function(){var C=Ln(u.prefixName)||[];return[].concat(Be(C),Be(Ln(t)))},[u.prefixName,t]),h=d.useMemo(function(){return q(q({},u),{},{prefixName:g})},[u,g]),b=d.useMemo(function(){return{getKey:function(S){var E=g.length,$=S[E];return[v.keys[$],S.slice(E+1)]}}},[g]);if(typeof r!="function")return ar(!1,"Form.List only accepts function as children."),null;var x=function(S,E,$){var R=$.source;return R==="internal"?!1:S!==E};return d.createElement(lu.Provider,{value:b},d.createElement(Qa.Provider,{value:h},d.createElement(V1,{name:[],shouldUpdate:x,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!f},function(C,S){var E=C.value,$=E===void 0?[]:E,R=C.onChange,P=u.getFieldValue,O=function(){var _=P(g||[]);return _||[]},I={add:function(_,z){var L=O();z>=0&&z<=L.length?(v.keys=[].concat(Be(v.keys.slice(0,z)),[v.id],Be(v.keys.slice(z))),R([].concat(Be(L.slice(0,z)),[_],Be(L.slice(z))))):(v.keys=[].concat(Be(v.keys),[v.id]),R([].concat(Be(L),[_]))),v.id+=1},remove:function(_){var z=O(),L=new Set(Array.isArray(_)?_:[_]);L.size<=0||(v.keys=v.keys.filter(function(j,A){return!L.has(A)}),R(z.filter(function(j,A){return!L.has(A)})))},move:function(_,z){if(_!==z){var L=O();_<0||_>=L.length||z<0||z>=L.length||(v.keys=Sy(v.keys,_,z),R(Sy(L,_,z)))}}},T=$||[];return Array.isArray(T)||(T=[]),r(T.map(function(M,_){var z=v.keys[_];return z===void 0&&(v.keys[_]=v.id,z=v.keys[_],v.id+=1),{name:_,key:z,isListField:!0}}),I,S)})))}function t_(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,l){e.forEach(function(s,u){s.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[u]=f,!(n>0)&&(t&&l(r),o(r))})})}):Promise.resolve([])}var W1="__@field_split__";function tm(e){return e.map(function(t){return"".concat(vt(t),":").concat(t)}).join(W1)}var Ra=(function(){function e(){Bn(this,e),H(this,"kvs",new Map)}return Fn(e,[{key:"set",value:function(n,r){this.kvs.set(tm(n),r)}},{key:"get",value:function(n){return this.kvs.get(tm(n))}},{key:"update",value:function(n,r){var o=this.get(n),l=r(o);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(tm(n))}},{key:"map",value:function(n){return Be(this.kvs.entries()).map(function(r){var o=re(r,2),l=o[0],s=o[1],u=l.split(W1);return n({key:u.map(function(f){var m=f.match(/^([^:]*):(.*)$/),v=re(m,3),g=v[1],h=v[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,l=r.value;return n[o.join(".")]=l,null}),n}}]),e})(),n_=["name"],r_=Fn(function e(t){var n=this;Bn(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===Di?(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}):(ar(!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 l,s=Aa(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var f=u.key;s=mo(s,f,Oo(r,f))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),H(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ra;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),H(this,"getInitialValue",function(r){var o=Oo(n.initialValues,r);return r.length?Aa(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(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(o,l,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 Ra;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=Ln(l);return o.get(s)||{INVALIDATE_NAME_PATH:Ln(l)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,u;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&vt(r)==="object"&&(u=r.strict,s=r.filter),l===!0&&!s)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return f.forEach(function(v){var g,h,b="INVALIDATE_NAME_PATH"in v?v.INVALIDATE_NAME_PATH:v.getNamePath();if(u){var x,C;if((x=(C=v).isList)!==null&&x!==void 0&&x.call(C))return}else if(!l&&(g=(h=v).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)m.push(b);else{var S="getMeta"in v?v.getMeta():null;s(S)&&m.push(b)}}),by(n.store,m.map(Ln))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ln(r);return Oo(n.store,o)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Ln(r[s]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=Ln(r),l=n.getFieldsError([o])[0];return l.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ln(r),l=n.getFieldsError([o])[0];return l.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o[0],u=o[1],f,m=!1;o.length===0?f=null:o.length===1?Array.isArray(s)?(f=s.map(Ln),m=!1):(f=null,m=s):(f=s.map(Ln),m=u);var v=n.getFieldEntities(!0),g=function(S){return S.isFieldTouched()};if(!f)return m?v.every(function(C){return g(C)||C.isList()}):v.some(g);var h=new Ra;f.forEach(function(C){h.set(C,[])}),v.forEach(function(C){var S=C.getNamePath();f.forEach(function(E){E.every(function($,R){return S[R]===$})&&h.update(E,function($){return[].concat(Be($),[C])})})});var b=function(S){return S.some(g)},x=h.map(function(C){var S=C.value;return S});return m?x.every(b):x.some(b)}),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(s){return s.isFieldValidating()});var l=r.map(Ln);return o.some(function(s){var u=s.getNamePath();return Va(l,u)&&s.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 Ra,l=n.getFieldEntities(!0);l.forEach(function(f){var m=f.props.initialValue,v=f.getNamePath();if(m!==void 0){var g=o.get(v)||new Set;g.add({entity:f,value:m}),o.set(v,g)}});var s=function(m){m.forEach(function(v){var g=v.props.initialValue;if(g!==void 0){var h=v.getNamePath(),b=n.getInitialValue(h);if(b!==void 0)ar(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var x=o.get(h);if(x&&x.size>1)ar(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var C=n.getFieldValue(h),S=v.isListField();!S&&(!r.skipExist||C===void 0)&&n.updateStore(mo(n.store,h,Be(x)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(f){var m=o.get(f);if(m){var v;(v=u).push.apply(v,Be(Be(m).map(function(g){return g.entity})))}})):u=l,s(u)}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Aa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Ln);l.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(mo(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var u=s.name,f=_t(s,n_),m=Ln(u);l.push(m),"value"in f&&n.updateStore(mo(n.store,m,f.value)),n.notifyObservers(o,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),u=l.getMeta(),f=q(q({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=Oo(n.store,l);s===void 0&&n.updateStore(mo(n.store,l,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 l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!s||f.length>1)){var m=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(g){return!H1(g.getNamePath(),o)})){var v=n.store;n.updateStore(mo(v,o,m,!0)),n.notifyObservers(v,[o],{type:"remove"}),n.triggerDependenciesUpdate(v,o)}}n.notifyWatch([o])}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,l=r.value;n.updateValue(o,l);break}case"validateField":{var s=r.namePath,u=r.triggerName;n.validateFields([s],{triggerName:u});break}}}),H(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=q(q({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,o,s)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(r,o){var l=n.getDependencyChildrenFields(o);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[o].concat(Be(l))}),l}),H(this,"updateValue",function(r,o){var l=Ln(r),s=n.store;n.updateStore(mo(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(s,l),f=n.callbacks.onValuesChange;if(f){var m=by(n.store,[l]);f(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Be(u)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=Aa(n.store,r);n.updateStore(l)}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,l=[],s=new Ra;n.getFieldEntities().forEach(function(f){var m=f.props.dependencies;(m||[]).forEach(function(v){var g=Ln(v);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(f),h})})});var u=function f(m){var v=s.get(m)||new Set;v.forEach(function(g){if(!o.has(g)){o.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(l.push(h),f(h))}})};return u(r),l}),H(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var u=new Ra;o.forEach(function(m){var v=m.name,g=m.errors;u.set(v,g)}),s.forEach(function(m){m.errors=u.get(m.name)||m.errors})}var f=s.filter(function(m){var v=m.name;return Va(r,v)});f.length&&l(f,s)}}),H(this,"validateFields",function(r,o){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(l=r,s=o):s=r;var u=!!l,f=u?l.map(Ln):[],m=[],v=String(Date.now()),g=new Set,h=s||{},b=h.recursive,x=h.dirty;n.getFieldEntities(!0).forEach(function($){if(u||f.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(x&&!$.isFieldDirty())){var R=$.getNamePath();if(g.add(R.join(v)),!u||Va(f,R,b)){var P=$.validateRules(q({validateMessages:q(q({},F1),n.validateMessages)},s));m.push(P.then(function(){return{name:R,errors:[],warnings:[]}}).catch(function(O){var I,T=[],M=[];return(I=O.forEach)===null||I===void 0||I.call(O,function(_){var z=_.rule.warningOnly,L=_.errors;z?M.push.apply(M,Be(L)):T.push.apply(T,Be(L))}),T.length?Promise.reject({name:R,errors:T,warnings:M}):{name:R,errors:T,warnings:M}}))}}});var C=t_(m);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var R=$.map(function(P){var O=P.name;return O});n.notifyObservers(n.store,R,{type:"validateFinish"}),n.triggerOnFieldsChange(R,$)});var S=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function($){var R=$.filter(function(P){return P&&P.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:R,outOfDate:n.lastValidatePromise!==C})});S.catch(function($){return $});var E=f.filter(function($){return g.has($.join(v))});return n.triggerOnFieldsChange(E),S}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(l){console.error(l)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function U1(e){var t=d.useRef(),n=d.useState({}),r=re(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){o({})},s=new r_(l);t.current=s.getForm()}return[t.current]}var pp=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),o_=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=d.useContext(pp),u=d.useRef({});return d.createElement(pp.Provider,{value:q(q({},s),{},{validateMessages:q(q({},s.validateMessages),n),triggerFormChange:function(m,v){r&&r(m,{changedFields:v,forms:u.current}),s.triggerFormChange(m,v)},triggerFormFinish:function(m,v){o&&o(m,{values:v,forms:u.current}),s.triggerFormFinish(m,v)},registerForm:function(m,v){m&&(u.current=q(q({},u.current),{},H({},m,v))),s.registerForm(m,v)},unregisterForm:function(m){var v=q({},u.current);delete v[m],u.current=v,s.unregisterForm(m)}})},l)},i_=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],a_=function(t,n){var r=t.name,o=t.initialValues,l=t.fields,s=t.form,u=t.preserve,f=t.children,m=t.component,v=m===void 0?"form":m,g=t.validateMessages,h=t.validateTrigger,b=h===void 0?"onChange":h,x=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,E=t.onFinishFailed,$=t.clearOnDestroy,R=_t(t,i_),P=d.useRef(null),O=d.useContext(pp),I=U1(s),T=re(I,1),M=T[0],_=M.getInternalHooks(Di),z=_.useSubscribe,L=_.setInitialValues,j=_.setCallbacks,A=_.setValidateMessages,B=_.setPreserve,K=_.destroyForm;d.useImperativeHandle(n,function(){return q(q({},M),{},{nativeElement:P.current})}),d.useEffect(function(){return O.registerForm(r,M),function(){O.unregisterForm(r)}},[O,M,r]),A(q(q({},O.validateMessages),g)),j({onValuesChange:x,onFieldsChange:function(ne){if(O.triggerFormChange(r,ne),C){for(var Z=arguments.length,ee=new Array(Z>1?Z-1:0),me=1;me<Z;me++)ee[me-1]=arguments[me];C.apply(void 0,[ne].concat(ee))}},onFinish:function(ne){O.triggerFormFinish(r,ne),S&&S(ne)},onFinishFailed:E}),B(u);var V=d.useRef(null);L(o,!V.current),V.current||(V.current=!0),d.useEffect(function(){return function(){return K($)}},[]);var U,D=typeof f=="function";if(D){var X=M.getFieldsValue(!0);U=f(X,M)}else U=f;z(!D);var W=d.useRef();d.useEffect(function(){YT(W.current||[],l||[])||M.setFields(l||[]),W.current=l},[l,M]);var k=d.useMemo(function(){return q(q({},M),{},{validateTrigger:b})},[M,b]),F=d.createElement(lu.Provider,{value:null},d.createElement(Qa.Provider,{value:k},U));return v===!1?F:d.createElement(v,ke({},R,{ref:P,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),M.submit()},onReset:function(ne){var Z;ne.preventDefault(),M.resetFields(),(Z=R.onReset)===null||Z===void 0||Z.call(R,ne)}}),F)};function xy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function l_(){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],l=o===void 0?{}:o,s=vT(l)?{form:l}:l,u=s.form,f=d.useState(),m=re(f,2),v=m[0],g=m[1],h=d.useMemo(function(){return xy(v)},[v]),b=d.useRef(h);b.current=h;var x=d.useContext(Qa),C=u||x,S=C&&C._init,E=Ln(r),$=d.useRef(E);return $.current=E,d.useEffect(function(){if(S){var R=C.getFieldsValue,P=C.getInternalHooks,O=P(Di),I=O.registerWatch,T=function(L,j){var A=s.preserve?j:L;return typeof r=="function"?r(A):Oo(A,$.current)},M=I(function(z,L){var j=T(z,L),A=xy(j);b.current!==A&&(b.current=A,g(j))}),_=T(R(),R(!0));return v!==_&&g(_),M}},[S]),v}var s_=d.forwardRef(a_),hs=s_;hs.FormProvider=o_;hs.Field=V1;hs.List=e_;hs.useForm=U1;hs.useWatch=l_;const su=d.createContext({}),c_=({children:e,status:t,override:n})=>{const r=d.useContext(su),o=d.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return d.createElement(su.Provider,{value:o},e)},u_=d.createContext(void 0),G1=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=J.createElement(c_,{override:!0,status:!0},o)),t&&(o=J.createElement(wI,null,o)),o};var d_=function(t){if(wr()&&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};function Cy(e,t){return d_(e)}const f_=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"}}}},m_=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},p_=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,l={};for(let s=o;s>=0;s--)s===0?(l[`${r}${t}-${s}`]={display:"none"},l[`${r}-push-${s}`]={insetInlineStart:"auto"},l[`${r}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${s}`]={marginInlineStart:0},l[`${r}${t}-order-${s}`]={order:0}):(l[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],l[`${r}${t}-push-${s}`]={insetInlineStart:`${s/o*100}%`},l[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},l[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},l[`${r}${t}-order-${s}`]={order:s});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},vp=(e,t)=>p_(e,t),v_=(e,t,n)=>({[`@media (min-width: ${se(t)})`]:Object.assign({},vp(e,n))}),g_=()=>({}),h_=()=>({}),y_=On("Grid",f_,g_),b_=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),S_=On("Grid",e=>{const t=fn(e,{gridColumns:24}),n=b_(t);return delete n.xs,[m_(t),vp(t,""),vp(t,"-xs"),Object.keys(n).map(r=>v_(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},h_),x_=J.createContext({});function C_(e){return t=>d.createElement(Ci,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const w_=(e,t,n,r,o)=>C_(s=>{const{prefixCls:u,style:f}=s,m=d.useRef(null),[v,g]=d.useState(0),[h,b]=d.useState(0),[x,C]=tr(!1,{value:s.open}),{getPrefixCls:S}=d.useContext(Gt),E=S("select",u);d.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const P=new ResizeObserver(I=>{const T=I[0].target;g(T.offsetHeight+8),b(T.offsetWidth)}),O=setInterval(()=>{var I;const T=`.${E}-dropdown`,M=(I=m.current)===null||I===void 0?void 0:I.querySelector(T);M&&(clearInterval(O),P.observe(M))},10);return()=>{clearInterval(O),P.disconnect()}}},[E]);let $=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},f),{margin:0}),open:x,visible:x,getPopupContainer:()=>m.current});Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const R={paddingBottom:v,position:"relative",minWidth:h};return d.createElement("div",{ref:m,style:R},d.createElement(e,Object.assign({},$)))}),nv=(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 Lu=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,l=t.children,s=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(o):r;return d.createElement("span",{className:n,onMouseDown:function(v){v.preventDefault(),s==null||s(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:d.createElement("span",{className:ce(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},$_=function(t,n,r,o,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,m=J.useMemo(function(){if(vt(o)==="object")return o.clearIcon;if(l)return l},[o,l]),v=J.useMemo(function(){return!!(!s&&o&&(r.length||u)&&!(f==="combobox"&&u===""))},[o,s,r.length,u,f]);return{allowClear:v,clearIcon:J.createElement(Lu,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},K1=d.createContext(null);function E_(){return d.useContext(K1)}function R_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=re(t,2),r=n[0],o=n[1],l=d.useRef(null),s=function(){window.clearTimeout(l.current)};d.useEffect(function(){return s},[]);var u=function(m,v){s(),l.current=window.setTimeout(function(){o(m),v&&v()},e)};return[r,u,s]}function q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function O_(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function l(s){var u;if(!((u=o.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=s.target;f.shadowRoot&&s.composed&&(f=s.composedPath()[0]||f),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(f)&&m!==f})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function I_(e){return e&&![qe.ESC,qe.SHIFT,qe.BACKSPACE,qe.TAB,qe.WIN_KEY,qe.ALT,qe.META,qe.WIN_KEY_RIGHT,qe.CTRL,qe.SEMICOLON,qe.EQUALS,qe.CAPS_LOCK,qe.CONTEXT_MENU,qe.F1,qe.F2,qe.F3,qe.F4,qe.F5,qe.F6,qe.F7,qe.F8,qe.F9,qe.F10,qe.F11,qe.F12].includes(e)}var P_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Oa=void 0;function T_(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,l=e.renderItem,s=e.responsive,u=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,v=e.className,g=e.style,h=e.children,b=e.display,x=e.order,C=e.component,S=C===void 0?"div":C,E=_t(e,P_),$=s&&!b;function R(M){f(m,M)}d.useEffect(function(){return function(){R(null)}},[]);var P=l&&o!==Oa?l(o,{index:x}):h,O;r||(O={opacity:$?0:1,height:$?0:Oa,overflowY:$?"hidden":Oa,order:s?x:Oa,pointerEvents:$?"none":Oa,position:$?"absolute":Oa});var I={};$&&(I["aria-hidden"]=!0);var T=d.createElement(S,ke({className:ce(!r&&n,v),style:q(q({},O),g)},I,E,{ref:t}),P);return s&&(T=d.createElement(ro,{onResize:function(_){var z=_.offsetWidth;R(z)},disabled:u},T)),T}var Fa=d.forwardRef(T_);Fa.displayName="Item";function __(e){if(typeof MessageChannel>"u")yn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function M_(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],__(function(){Si.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ia(e,t){var n=d.useState(t),r=re(n,2),o=r[0],l=r[1],s=Kn(function(u){e(function(){l(u)})});return[o,s]}var cu=J.createContext(null),N_=["component"],z_=["className"],j_=["className"],k_=function(t,n){var r=d.useContext(cu);if(!r){var o=t.component,l=o===void 0?"div":o,s=_t(t,N_);return d.createElement(l,ke({},s,{ref:n}))}var u=r.className,f=_t(r,z_),m=t.className,v=_t(t,j_);return d.createElement(cu.Provider,{value:null},d.createElement(Fa,ke({ref:n,className:ce(u,m)},f,v)))},X1=d.forwardRef(k_);X1.displayName="RawItem";var L_=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Q1="responsive",Y1="invalidate";function A_(e){return"+ ".concat(e.length," ...")}function D_(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,l=o===void 0?[]:o,s=e.renderItem,u=e.renderRawItem,f=e.itemKey,m=e.itemWidth,v=m===void 0?10:m,g=e.ssr,h=e.style,b=e.className,x=e.maxCount,C=e.renderRest,S=e.renderRawRest,E=e.prefix,$=e.suffix,R=e.component,P=R===void 0?"div":R,O=e.itemComponent,I=e.onVisibleChange,T=_t(e,L_),M=g==="full",_=M_(),z=Ia(_,null),L=re(z,2),j=L[0],A=L[1],B=j||0,K=Ia(_,new Map),V=re(K,2),U=V[0],D=V[1],X=Ia(_,0),W=re(X,2),k=W[0],F=W[1],Y=Ia(_,0),ne=re(Y,2),Z=ne[0],ee=ne[1],me=Ia(_,0),pe=re(me,2),ue=pe[0],Se=pe[1],fe=Ia(_,0),ae=re(fe,2),ye=ae[0],he=ae[1],ve=d.useState(null),oe=re(ve,2),be=oe[0],we=oe[1],$e=d.useState(null),Ae=re($e,2),je=Ae[0],Ie=Ae[1],Le=d.useMemo(function(){return je===null&&M?Number.MAX_SAFE_INTEGER:je||0},[je,j]),Ee=d.useState(!1),tt=re(Ee,2),lt=tt[0],bt=tt[1],st="".concat(r,"-item"),Ue=Math.max(k,Z),it=x===Q1,Ve=l.length&&it,dt=x===Y1,Xe=Ve||typeof x=="number"&&l.length>x,_e=d.useMemo(function(){var Ce=l;return Ve?j===null&&M?Ce=l:Ce=l.slice(0,Math.min(l.length,B/v)):typeof x=="number"&&(Ce=l.slice(0,x)),Ce},[l,v,j,x,Ve]),Ye=d.useMemo(function(){return Ve?l.slice(Le+1):l.slice(_e.length)},[l,_e,Ve,Le]),Pe=d.useCallback(function(Ce,xe){var Me;return typeof f=="function"?f(Ce):(Me=f&&(Ce==null?void 0:Ce[f]))!==null&&Me!==void 0?Me:xe},[f]),Fe=d.useCallback(s||function(Ce){return Ce},[s]);function wt(Ce,xe,Me){je===Ce&&(xe===void 0||xe===be)||(Ie(Ce),Me||(bt(Ce<l.length-1),I==null||I(Ce)),xe!==void 0&&we(xe))}function mt(Ce,xe){A(xe.clientWidth)}function Bt(Ce,xe){D(function(Me){var Ke=new Map(Me);return xe===null?Ke.delete(Ce):Ke.set(Ce,xe),Ke})}function At(Ce,xe){ee(xe),F(Z)}function nn(Ce,xe){Se(xe)}function vn(Ce,xe){he(xe)}function Vt(Ce){return U.get(Pe(_e[Ce],Ce))}tn(function(){if(B&&typeof Ue=="number"&&_e){var Ce=ue+ye,xe=_e.length,Me=xe-1;if(!xe){wt(0,null);return}for(var Ke=0;Ke<xe;Ke+=1){var Qe=Vt(Ke);if(M&&(Qe=Qe||0),Qe===void 0){wt(Ke-1,void 0,!0);break}if(Ce+=Qe,Me===0&&Ce<=B||Ke===Me-1&&Ce+Vt(Me)<=B){wt(Me,null);break}else if(Ce+Ue>B){wt(Ke-1,Ce-Qe-ye+Z);break}}$&&Vt(0)+ye>B&&we(null)}},[B,U,Z,ue,ye,Pe,_e]);var Tt=lt&&!!Ye.length,St={};be!==null&&Ve&&(St={position:"absolute",left:be,top:0});var Wt={prefixCls:st,responsive:Ve,component:O,invalidate:dt},Lt=u?function(Ce,xe){var Me=Pe(Ce,xe);return d.createElement(cu.Provider,{key:Me,value:q(q({},Wt),{},{order:xe,item:Ce,itemKey:Me,registerSize:Bt,display:xe<=Le})},u(Ce,xe))}:function(Ce,xe){var Me=Pe(Ce,xe);return d.createElement(Fa,ke({},Wt,{order:xe,key:Me,item:Ce,renderItem:Fe,itemKey:Me,registerSize:Bt,display:xe<=Le}))},Ze={order:Tt?Le:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:At,display:Tt},yt=C||A_,at=S?d.createElement(cu.Provider,{value:q(q({},Wt),Ze)},S(Ye)):d.createElement(Fa,ke({},Wt,Ze),typeof yt=="function"?yt(Ye):yt),Re=d.createElement(P,ke({className:ce(!dt&&r,b),style:h,ref:t},T),E&&d.createElement(Fa,ke({},Wt,{responsive:it,responsiveDisabled:!Ve,order:-1,className:"".concat(st,"-prefix"),registerSize:nn,display:!0}),E),_e.map(Lt),Xe?at:null,$&&d.createElement(Fa,ke({},Wt,{responsive:it,responsiveDisabled:!Ve,order:Le,className:"".concat(st,"-suffix"),registerSize:vn,display:!0,style:St}),$));return it?d.createElement(ro,{onResize:mt,disabled:!Ve},Re):Re}var Io=d.forwardRef(D_);Io.displayName="Overflow";Io.Item=X1;Io.RESPONSIVE=Q1;Io.INVALIDATE=Y1;function B_(e,t,n){var r=q(q({},e),t);return Object.keys(t).forEach(function(o){var l=t[o];typeof l=="function"&&(r[o]=function(){for(var s,u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return l.apply(void 0,f),(s=e[o])===null||s===void 0?void 0:s.call.apply(s,[e].concat(f))})}),r}var F_=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],H_=function(t,n){var r=t.prefixCls,o=t.id,l=t.inputElement,s=t.autoFocus,u=t.autoComplete,f=t.editable,m=t.activeDescendantId,v=t.value,g=t.open,h=t.attrs,b=_t(t,F_),x=l||d.createElement("input",null),C=x,S=C.ref,E=C.props;return"maxLength"in x.props,x=d.cloneElement(x,q(q(q({type:"search"},B_(b,E)),{},{id:o,ref:Uo(n,S),autoComplete:u||"off",autoFocus:s,className:ce("".concat(r,"-selection-search-input"),E==null?void 0:E.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":g?m:void 0},h),{},{value:f?v:"",readOnly:!f,unselectable:f?null:"on",style:q(q({},E.style),{},{opacity:f?null:0})})),x},Z1=d.forwardRef(H_);function J1(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var V_=typeof window<"u"&&window.document&&window.document.documentElement,W_=V_;function U_(e){return e!=null}function G_(e){return!e&&e!==0}function wy(e){return["string","number"].includes(vt(e))}function ex(e){var t=void 0;return e&&(wy(e.title)?t=e.title.toString():wy(e.label)&&(t=e.label.toString())),t}function K_(e,t){W_?d.useLayoutEffect(e,t):d.useEffect(e,t)}function q_(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var $y=function(t){t.preventDefault(),t.stopPropagation()},X_=function(t){var n=t.id,r=t.prefixCls,o=t.values,l=t.open,s=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,m=t.placeholder,v=t.disabled,g=t.mode,h=t.showSearch,b=t.autoFocus,x=t.autoComplete,C=t.activeDescendantId,S=t.tabIndex,E=t.removeIcon,$=t.maxTagCount,R=t.maxTagTextLength,P=t.maxTagPlaceholder,O=P===void 0?function(he){return"+ ".concat(he.length," ...")}:P,I=t.tagRender,T=t.onToggleOpen,M=t.onRemove,_=t.onInputChange,z=t.onInputPaste,L=t.onInputKeyDown,j=t.onInputMouseDown,A=t.onInputCompositionStart,B=t.onInputCompositionEnd,K=t.onInputBlur,V=d.useRef(null),U=d.useState(0),D=re(U,2),X=D[0],W=D[1],k=d.useState(!1),F=re(k,2),Y=F[0],ne=F[1],Z="".concat(r,"-selection"),ee=l||g==="multiple"&&u===!1||g==="tags"?s:"",me=g==="tags"||g==="multiple"&&u===!1||h&&(l||Y);K_(function(){W(V.current.scrollWidth)},[ee]);var pe=function(ve,oe,be,we,$e){return d.createElement("span",{title:ex(ve),className:ce("".concat(Z,"-item"),H({},"".concat(Z,"-item-disabled"),be))},d.createElement("span",{className:"".concat(Z,"-item-content")},oe),we&&d.createElement(Lu,{className:"".concat(Z,"-item-remove"),onMouseDown:$y,onClick:$e,customizeIcon:E},"×"))},ue=function(ve,oe,be,we,$e,Ae){var je=function(Le){$y(Le),T(!l)};return d.createElement("span",{onMouseDown:je},I({label:oe,value:ve,disabled:be,closable:we,onClose:$e,isMaxTag:!!Ae}))},Se=function(ve){var oe=ve.disabled,be=ve.label,we=ve.value,$e=!v&&!oe,Ae=be;if(typeof R=="number"&&(typeof be=="string"||typeof be=="number")){var je=String(Ae);je.length>R&&(Ae="".concat(je.slice(0,R),"..."))}var Ie=function(Ee){Ee&&Ee.stopPropagation(),M(ve)};return typeof I=="function"?ue(we,Ae,oe,$e,Ie):pe(ve,Ae,oe,$e,Ie)},fe=function(ve){if(!o.length)return null;var oe=typeof O=="function"?O(ve):O;return typeof I=="function"?ue(void 0,oe,!1,!1,void 0,!0):pe({title:oe},oe,!1)},ae=d.createElement("div",{className:"".concat(Z,"-search"),style:{width:X},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},d.createElement(Z1,{ref:f,open:l,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:b,autoComplete:x,editable:me,activeDescendantId:C,value:ee,onKeyDown:L,onMouseDown:j,onChange:_,onPaste:z,onCompositionStart:A,onCompositionEnd:B,onBlur:K,tabIndex:S,attrs:xi(t,!0)}),d.createElement("span",{ref:V,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee," ")),ye=d.createElement(Io,{prefixCls:"".concat(Z,"-overflow"),data:o,renderItem:Se,renderRest:fe,suffix:ae,itemKey:q_,maxCount:$});return d.createElement("span",{className:"".concat(Z,"-wrap")},ye,!o.length&&!ee&&d.createElement("span",{className:"".concat(Z,"-placeholder")},m))},Q_=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,l=t.inputRef,s=t.disabled,u=t.autoFocus,f=t.autoComplete,m=t.activeDescendantId,v=t.mode,g=t.open,h=t.values,b=t.placeholder,x=t.tabIndex,C=t.showSearch,S=t.searchValue,E=t.activeValue,$=t.maxLength,R=t.onInputKeyDown,P=t.onInputMouseDown,O=t.onInputChange,I=t.onInputPaste,T=t.onInputCompositionStart,M=t.onInputCompositionEnd,_=t.onInputBlur,z=t.title,L=d.useState(!1),j=re(L,2),A=j[0],B=j[1],K=v==="combobox",V=K||C,U=h[0],D=S||"";K&&E&&!A&&(D=E),d.useEffect(function(){K&&B(!1)},[K,E]);var X=v!=="combobox"&&!g&&!C?!1:!!D,W=z===void 0?ex(U):z,k=d.useMemo(function(){return U?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:X?{visibility:"hidden"}:void 0},b)},[U,X,b,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(Z1,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:u,autoComplete:f,editable:V,activeDescendantId:m,value:D,onKeyDown:R,onMouseDown:P,onChange:function(Y){B(!0),O(Y)},onPaste:I,onCompositionStart:T,onCompositionEnd:M,onBlur:_,tabIndex:x,attrs:xi(t,!0),maxLength:K?$:void 0})),!K&&U?d.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:X?{visibility:"hidden"}:void 0},U.label):null,k)},Y_=function(t,n){var r=d.useRef(null),o=d.useRef(!1),l=t.prefixCls,s=t.open,u=t.mode,f=t.showSearch,m=t.tokenWithEnter,v=t.disabled,g=t.prefix,h=t.autoClearSearchValue,b=t.onSearch,x=t.onSearchSubmit,C=t.onToggleOpen,S=t.onInputKeyDown,E=t.onInputBlur,$=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var R=q1(0),P=re(R,2),O=P[0],I=P[1],T=function(W){var k=W.which,F=r.current instanceof HTMLTextAreaElement;!F&&s&&(k===qe.UP||k===qe.DOWN)&&W.preventDefault(),S&&S(W),k===qe.ENTER&&u==="tags"&&!o.current&&!s&&(x==null||x(W.target.value)),!(F&&!s&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(k))&&I_(k)&&C(!0)},M=function(){I(!0)},_=d.useRef(null),z=function(W){b(W,!0,o.current)!==!1&&C(!0)},L=function(){o.current=!0},j=function(W){o.current=!1,u!=="combobox"&&z(W.target.value)},A=function(W){var k=W.target.value;if(m&&_.current&&/[\r\n]/.test(_.current)){var F=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(F,_.current)}_.current=null,z(k)},B=function(W){var k=W.clipboardData,F=k==null?void 0:k.getData("text");_.current=F||""},K=function(W){var k=W.target;if(k!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},V=function(W){var k=O();W.target!==r.current&&!k&&!(u==="combobox"&&v)&&W.preventDefault(),(u!=="combobox"&&(!f||!k)||!s)&&(s&&h!==!1&&b("",!0,!1),C())},U={inputRef:r,onInputKeyDown:T,onInputMouseDown:M,onInputChange:A,onInputPaste:B,onInputCompositionStart:L,onInputCompositionEnd:j,onInputBlur:E},D=u==="multiple"||u==="tags"?d.createElement(X_,ke({},t,U)):d.createElement(Q_,ke({},t,U));return d.createElement("div",{ref:$,className:"".concat(l,"-selector"),onClick:K,onMouseDown:V},g&&d.createElement("div",{className:"".concat(l,"-prefix")},g),D)},Z_=d.forwardRef(Y_);function J_(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,l=r||{},s=l.className,u=l.content,f=o.x,m=f===void 0?0:f,v=o.y,g=v===void 0?0:v,h=d.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],C=n.points[1],S=x[0],E=x[1],$=C[0],R=C[1];S===$||!["t","b"].includes(S)?b.top=g:S==="t"?b.top=0:b.bottom=0,E===R||!["l","r"].includes(E)?b.left=m:E==="l"?b.left=0:b.right=0}return d.createElement("div",{ref:h,className:ce("".concat(t,"-arrow"),s),style:b},u)}function eM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?d.createElement(qo,ke({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return d.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),u)})}):null}var tM=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),nM=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,l=e.style,s=e.target,u=e.onVisibleChanged,f=e.open,m=e.keepDom,v=e.fresh,g=e.onClick,h=e.mask,b=e.arrow,x=e.arrowPos,C=e.align,S=e.motion,E=e.maskMotion,$=e.forceRender,R=e.getPopupContainer,P=e.autoDestroy,O=e.portal,I=e.zIndex,T=e.onMouseEnter,M=e.onMouseLeave,_=e.onPointerEnter,z=e.onPointerDownCapture,L=e.ready,j=e.offsetX,A=e.offsetY,B=e.offsetR,K=e.offsetB,V=e.onAlign,U=e.onPrepare,D=e.stretch,X=e.targetWidth,W=e.targetHeight,k=typeof n=="function"?n():n,F=f||m,Y=(R==null?void 0:R.length)>0,ne=d.useState(!R||!Y),Z=re(ne,2),ee=Z[0],me=Z[1];if(tn(function(){!ee&&Y&&s&&me(!0)},[ee,Y,s]),!ee)return null;var pe="auto",ue={left:"-1000vw",top:"-1000vh",right:pe,bottom:pe};if(L||!f){var Se,fe=C.points,ae=C.dynamicInset||((Se=C._experimental)===null||Se===void 0?void 0:Se.dynamicInset),ye=ae&&fe[0][1]==="r",he=ae&&fe[0][0]==="b";ye?(ue.right=B,ue.left=pe):(ue.left=j,ue.right=pe),he?(ue.bottom=K,ue.top=pe):(ue.top=A,ue.bottom=pe)}var ve={};return D&&(D.includes("height")&&W?ve.height=W:D.includes("minHeight")&&W&&(ve.minHeight=W),D.includes("width")&&X?ve.width=X:D.includes("minWidth")&&X&&(ve.minWidth=X)),f||(ve.pointerEvents="none"),d.createElement(O,{open:$||F,getContainer:R&&function(){return R(s)},autoDestroy:P},d.createElement(eM,{prefixCls:o,open:f,zIndex:I,mask:h,motion:E}),d.createElement(ro,{onResize:V,disabled:!f},function(oe){return d.createElement(qo,ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(we){var $e;S==null||($e=S.onVisibleChanged)===null||$e===void 0||$e.call(S,we),u(we)}}),function(be,we){var $e=be.className,Ae=be.style,je=ce(o,$e,r);return d.createElement("div",{ref:Uo(oe,t,we),className:je,style:q(q(q(q({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},ue),ve),Ae),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:T,onMouseLeave:M,onPointerEnter:_,onClick:g,onPointerDownCapture:z},b&&d.createElement(J_,{prefixCls:o,arrow:b,arrowPos:x,align:C}),d.createElement(tM,{cache:!f&&!v},k))})}))}),rM=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Xi(n),l=d.useCallback(function(u){Np(t,r?r(u):u)},[r]),s=qi(l,Ya(n));return o?d.cloneElement(n,{ref:s}):n}),Ey=d.createContext(null);function Ry(e){return e?Array.isArray(e)?e:[e]:[]}function oM(e,t,n,r){return d.useMemo(function(){var o=Ry(n??t),l=Ry(r??t),s=new Set(o),u=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,n,r])}function iM(){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 aM(e,t,n,r){for(var o=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var u,f=l[s];if(iM((u=e[f])===null||u===void 0?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(f)}return""}function Oy(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ys(e){return e.ownerDocument.defaultView}function gp(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ys(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,u=o.overflow;[l,s,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function _l(e){return is(parseFloat(e),0)}function Iy(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ys(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,u=o.borderTopWidth,f=o.borderBottomWidth,m=o.borderLeftWidth,v=o.borderRightWidth,g=r.getBoundingClientRect(),h=r.offsetHeight,b=r.clientHeight,x=r.offsetWidth,C=r.clientWidth,S=_l(u),E=_l(f),$=_l(m),R=_l(v),P=is(Math.round(g.width/x*1e3)/1e3),O=is(Math.round(g.height/h*1e3)/1e3),I=(x-C-$-R)*P,T=(h-b-S-E)*O,M=S*O,_=E*O,z=$*P,L=R*P,j=0,A=0;if(l==="clip"){var B=_l(s);j=B*P,A=B*O}var K=g.x+z-j,V=g.y+M-A,U=K+g.width+2*j-z-L-I,D=V+g.height+2*A-M-_-T;n.left=Math.max(n.left,K),n.top=Math.max(n.top,V),n.right=Math.min(n.right,U),n.bottom=Math.min(n.bottom,D)}}),n}function Py(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 Ty(e,t){var n=t||[],r=re(n,2),o=r[0],l=r[1];return[Py(e.width,o),Py(e.height,l)]}function _y(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Pa(e,t){var n=t[0],r=t[1],o,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=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:l}}function mi(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 lM(e,t,n,r,o,l,s){var u=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=re(u,2),m=f[0],v=f[1],g=d.useRef(0),h=d.useMemo(function(){return t?gp(t):[]},[t]),b=d.useRef({}),x=function(){b.current={}};e||x();var C=Kn(function(){if(t&&n&&e){let Tn=function(br,Er){var Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt,Nr=F.x+br,ea=F.y+Er,ta=Nr+he,rt=ea+ye,Pt=Math.max(Nr,Ur.left),bn=Math.max(ea,Ur.top),Cn=Math.min(ta,Ur.right),Sn=Math.min(rt,Ur.bottom);return Math.max(0,(Cn-Pt)*(Sn-bn))},dr=function(){sn=F.y+yt,gn=sn+ye,$n=F.x+Ze,Kt=$n+he};var Ji=Tn,_o=dr,$,R,P,O,I=t,T=I.ownerDocument,M=ys(I),_=M.getComputedStyle(I),z=_.position,L=I.style.left,j=I.style.top,A=I.style.right,B=I.style.bottom,K=I.style.overflow,V=q(q({},o[r]),l),U=T.createElement("div");($=I.parentElement)===null||$===void 0||$.appendChild(U),U.style.left="".concat(I.offsetLeft,"px"),U.style.top="".concat(I.offsetTop,"px"),U.style.position=z,U.style.height="".concat(I.offsetHeight,"px"),U.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var X,W,k=n.getBoundingClientRect();k.x=(X=k.x)!==null&&X!==void 0?X:k.left,k.y=(W=k.y)!==null&&W!==void 0?W:k.top,D={x:k.x,y:k.y,width:k.width,height:k.height}}var F=I.getBoundingClientRect(),Y=M.getComputedStyle(I),ne=Y.height,Z=Y.width;F.x=(R=F.x)!==null&&R!==void 0?R:F.left,F.y=(P=F.y)!==null&&P!==void 0?P:F.top;var ee=T.documentElement,me=ee.clientWidth,pe=ee.clientHeight,ue=ee.scrollWidth,Se=ee.scrollHeight,fe=ee.scrollTop,ae=ee.scrollLeft,ye=F.height,he=F.width,ve=D.height,oe=D.width,be={left:0,top:0,right:me,bottom:pe},we={left:-ae,top:-fe,right:ue-ae,bottom:Se-fe},$e=V.htmlRegion,Ae="visible",je="visibleFirst";$e!=="scroll"&&$e!==je&&($e=Ae);var Ie=$e===je,Le=Iy(we,h),Ee=Iy(be,h),tt=$e===Ae?Ee:Le,lt=Ie?Ee:tt;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var bt=I.getBoundingClientRect();I.style.left=L,I.style.top=j,I.style.right=A,I.style.bottom=B,I.style.overflow=K,(O=I.parentElement)===null||O===void 0||O.removeChild(U);var st=is(Math.round(he/parseFloat(Z)*1e3)/1e3),Ue=is(Math.round(ye/parseFloat(ne)*1e3)/1e3);if(st===0||Ue===0||Ul(n)&&!Yp(n))return;var it=V.offset,Ve=V.targetOffset,dt=Ty(F,it),Xe=re(dt,2),_e=Xe[0],Ye=Xe[1],Pe=Ty(D,Ve),Fe=re(Pe,2),wt=Fe[0],mt=Fe[1];D.x-=wt,D.y-=mt;var Bt=V.points||[],At=re(Bt,2),nn=At[0],vn=At[1],Vt=_y(vn),Tt=_y(nn),St=Pa(D,Vt),Wt=Pa(F,Tt),Lt=q({},V),Ze=St.x-Wt.x+_e,yt=St.y-Wt.y+Ye,at=Tn(Ze,yt),Re=Tn(Ze,yt,Ee),Ce=Pa(D,["t","l"]),xe=Pa(F,["t","l"]),Me=Pa(D,["b","r"]),Ke=Pa(F,["b","r"]),Qe=V.overflow||{},Mt=Qe.adjustX,jt=Qe.adjustY,Ot=Qe.shiftX,It=Qe.shiftY,mn=function(Er){return typeof Er=="boolean"?Er:Er>=0},sn,gn,$n,Kt;dr();var Yt=mn(jt),Ne=Tt[0]===Vt[0];if(Yt&&Tt[0]==="t"&&(gn>lt.bottom||b.current.bt)){var We=yt;Ne?We-=ye-ve:We=Ce.y-Ke.y-Ye;var Ct=Tn(Ze,We),ct=Tn(Ze,We,Ee);Ct>at||Ct===at&&(!Ie||ct>=Re)?(b.current.bt=!0,yt=We,Ye=-Ye,Lt.points=[mi(Tt,0),mi(Vt,0)]):b.current.bt=!1}if(Yt&&Tt[0]==="b"&&(sn<lt.top||b.current.tb)){var et=yt;Ne?et+=ye-ve:et=Me.y-xe.y-Ye;var Ge=Tn(Ze,et),xt=Tn(Ze,et,Ee);Ge>at||Ge===at&&(!Ie||xt>=Re)?(b.current.tb=!0,yt=et,Ye=-Ye,Lt.points=[mi(Tt,0),mi(Vt,0)]):b.current.tb=!1}var kt=mn(Mt),He=Tt[1]===Vt[1];if(kt&&Tt[1]==="l"&&(Kt>lt.right||b.current.rl)){var ut=Ze;He?ut-=he-oe:ut=Ce.x-Ke.x-_e;var $t=Tn(ut,yt),Jt=Tn(ut,yt,Ee);$t>at||$t===at&&(!Ie||Jt>=Re)?(b.current.rl=!0,Ze=ut,_e=-_e,Lt.points=[mi(Tt,1),mi(Vt,1)]):b.current.rl=!1}if(kt&&Tt[1]==="r"&&($n<lt.left||b.current.lr)){var zn=Ze;He?zn+=he-oe:zn=Me.x-xe.x-_e;var xn=Tn(zn,yt),sr=Tn(zn,yt,Ee);xn>at||xn===at&&(!Ie||sr>=Re)?(b.current.lr=!0,Ze=zn,_e=-_e,Lt.points=[mi(Tt,1),mi(Vt,1)]):b.current.lr=!1}dr();var Hn=Ot===!0?0:Ot;typeof Hn=="number"&&($n<Ee.left&&(Ze-=$n-Ee.left-_e,D.x+oe<Ee.left+Hn&&(Ze+=D.x-Ee.left+oe-Hn)),Kt>Ee.right&&(Ze-=Kt-Ee.right-_e,D.x>Ee.right-Hn&&(Ze+=D.x-Ee.right+Hn)));var cr=It===!0?0:It;typeof cr=="number"&&(sn<Ee.top&&(yt-=sn-Ee.top-Ye,D.y+ve<Ee.top+cr&&(yt+=D.y-Ee.top+ve-cr)),gn>Ee.bottom&&(yt-=gn-Ee.bottom-Ye,D.y>Ee.bottom-cr&&(yt+=D.y-Ee.bottom+cr)));var Vn=F.x+Ze,nr=Vn+he,ur=F.y+yt,Xt=ur+ye,nt=D.x,Je=nt+oe,Ut=D.y,Qt=Ut+ve,rn=Math.max(Vn,nt),ln=Math.min(nr,Je),rr=(rn+ln)/2,jn=rr-Vn,zt=Math.max(ur,Ut),Wn=Math.min(Xt,Qt),Xn=(zt+Wn)/2,$r=Xn-ur;s==null||s(t,Lt);var Qn=bt.right-F.x-(Ze+F.width),Qo=bt.bottom-F.y-(yt+F.height);st===1&&(Ze=Math.floor(Ze),Qn=Math.floor(Qn)),Ue===1&&(yt=Math.floor(yt),Qo=Math.floor(Qo));var Zi={ready:!0,offsetX:Ze/st,offsetY:yt/Ue,offsetR:Qn/st,offsetB:Qo/Ue,arrowX:jn/st,arrowY:$r/Ue,scaleX:st,scaleY:Ue,align:Lt};v(Zi)}}),S=function(){g.current+=1;var R=g.current;Promise.resolve().then(function(){g.current===R&&C()})},E=function(){v(function(R){return q(q({},R),{},{ready:!1})})};return tn(E,[r]),tn(function(){e||E()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,S]}function sM(e,t,n,r,o){tn(function(){if(e&&t&&n){let h=function(){r(),o()};var g=h,l=t,s=n,u=gp(l),f=gp(s),m=ys(s),v=new Set([m].concat(Be(u),Be(f)));return v.forEach(function(b){b.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),function(){v.forEach(function(b){b.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function cM(e,t,n,r,o,l,s,u){var f=d.useRef(e);f.current=e;var m=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||l)){var g=function(){m.current=!1},h=function(S){var E;f.current&&!s(((E=S.composedPath)===null||E===void 0||(E=E.call(S))===null||E===void 0?void 0:E[0])||S.target)&&!m.current&&u(!1)},b=ys(r);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0);var x=nu(n);return x&&(x.addEventListener("mousedown",h,!0),x.addEventListener("contextmenu",h,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0),x&&(x.removeEventListener("mousedown",h,!0),x.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,l]);function v(){m.current=!0}return v}var uM=["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 dM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A1,t=d.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,u=n.action,f=u===void 0?"hover":u,m=n.showAction,v=n.hideAction,g=n.popupVisible,h=n.defaultPopupVisible,b=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,C=n.mouseEnterDelay,S=n.mouseLeaveDelay,E=S===void 0?.1:S,$=n.focusDelay,R=n.blurDelay,P=n.mask,O=n.maskClosable,I=O===void 0?!0:O,T=n.getPopupContainer,M=n.forceRender,_=n.autoDestroy,z=n.destroyPopupOnHide,L=n.popup,j=n.popupClassName,A=n.popupStyle,B=n.popupPlacement,K=n.builtinPlacements,V=K===void 0?{}:K,U=n.popupAlign,D=n.zIndex,X=n.stretch,W=n.getPopupClassNameFromAlign,k=n.fresh,F=n.alignPoint,Y=n.onPopupClick,ne=n.onPopupAlign,Z=n.arrow,ee=n.popupMotion,me=n.maskMotion,pe=n.popupTransitionName,ue=n.popupAnimation,Se=n.maskTransitionName,fe=n.maskAnimation,ae=n.className,ye=n.getTriggerDOMNode,he=_t(n,uM),ve=_||z||!1,oe=d.useState(!1),be=re(oe,2),we=be[0],$e=be[1];tn(function(){$e(nv())},[]);var Ae=d.useRef({}),je=d.useContext(Ey),Ie=d.useMemo(function(){return{registerSubPopup:function(Pt,bn){Ae.current[Pt]=bn,je==null||je.registerSubPopup(Pt,bn)}}},[je]),Le=D1(),Ee=d.useState(null),tt=re(Ee,2),lt=tt[0],bt=tt[1],st=d.useRef(null),Ue=Kn(function(rt){st.current=rt,Ul(rt)&&lt!==rt&&bt(rt),je==null||je.registerSubPopup(Le,rt)}),it=d.useState(null),Ve=re(it,2),dt=Ve[0],Xe=Ve[1],_e=d.useRef(null),Ye=Kn(function(rt){Ul(rt)&&dt!==rt&&(Xe(rt),_e.current=rt)}),Pe=d.Children.only(s),Fe=(Pe==null?void 0:Pe.props)||{},wt={},mt=Kn(function(rt){var Pt,bn,Cn=dt;return(Cn==null?void 0:Cn.contains(rt))||((Pt=nu(Cn))===null||Pt===void 0?void 0:Pt.host)===rt||rt===Cn||(lt==null?void 0:lt.contains(rt))||((bn=nu(lt))===null||bn===void 0?void 0:bn.host)===rt||rt===lt||Object.values(Ae.current).some(function(Sn){return(Sn==null?void 0:Sn.contains(rt))||rt===Sn})}),Bt=Oy(l,ee,ue,pe),At=Oy(l,me,fe,Se),nn=d.useState(h||!1),vn=re(nn,2),Vt=vn[0],Tt=vn[1],St=g??Vt,Wt=Kn(function(rt){g===void 0&&Tt(rt)});tn(function(){Tt(g||!1)},[g]);var Lt=d.useRef(St);Lt.current=St;var Ze=d.useRef([]);Ze.current=[];var yt=Kn(function(rt){var Pt;Wt(rt),((Pt=Ze.current[Ze.current.length-1])!==null&&Pt!==void 0?Pt:St)!==rt&&(Ze.current.push(rt),b==null||b(rt))}),at=d.useRef(),Re=function(){clearTimeout(at.current)},Ce=function(Pt){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Re(),bn===0?yt(Pt):at.current=setTimeout(function(){yt(Pt)},bn*1e3)};d.useEffect(function(){return Re},[]);var xe=d.useState(!1),Me=re(xe,2),Ke=Me[0],Qe=Me[1];tn(function(rt){(!rt||St)&&Qe(!0)},[St]);var Mt=d.useState(null),jt=re(Mt,2),Ot=jt[0],It=jt[1],mn=d.useState(null),sn=re(mn,2),gn=sn[0],$n=sn[1],Kt=function(Pt){$n([Pt.clientX,Pt.clientY])},Yt=lM(St,lt,F&&gn!==null?gn:dt,B,V,U,ne),Ne=re(Yt,11),We=Ne[0],Ct=Ne[1],ct=Ne[2],et=Ne[3],Ge=Ne[4],xt=Ne[5],kt=Ne[6],He=Ne[7],ut=Ne[8],$t=Ne[9],Jt=Ne[10],zn=oM(we,f,m,v),xn=re(zn,2),sr=xn[0],Hn=xn[1],cr=sr.has("click"),Vn=Hn.has("click")||Hn.has("contextMenu"),nr=Kn(function(){Ke||Jt()}),ur=function(){Lt.current&&F&&Vn&&Ce(!1)};sM(St,dt,lt,nr,ur),tn(function(){nr()},[gn,B]),tn(function(){St&&!(V!=null&&V[B])&&nr()},[JSON.stringify(U)]);var Xt=d.useMemo(function(){var rt=aM(V,l,$t,F);return ce(rt,W==null?void 0:W($t))},[$t,W,V,l,F]);d.useImperativeHandle(r,function(){return{nativeElement:_e.current,popupElement:st.current,forceAlign:nr}});var nt=d.useState(0),Je=re(nt,2),Ut=Je[0],Qt=Je[1],rn=d.useState(0),ln=re(rn,2),rr=ln[0],jn=ln[1],zt=function(){if(X&&dt){var Pt=dt.getBoundingClientRect();Qt(Pt.width),jn(Pt.height)}},Wn=function(){zt(),nr()},Xn=function(Pt){Qe(!1),Jt(),x==null||x(Pt)},$r=function(){return new Promise(function(Pt){zt(),It(function(){return Pt})})};tn(function(){Ot&&(Jt(),Ot(),It(null))},[Ot]);function Qn(rt,Pt,bn,Cn){wt[rt]=function(Sn){var na;Cn==null||Cn(Sn),Ce(Pt,bn);for(var Mo=arguments.length,Yo=new Array(Mo>1?Mo-1:0),io=1;io<Mo;io++)Yo[io-1]=arguments[io];(na=Fe[rt])===null||na===void 0||na.call.apply(na,[Fe,Sn].concat(Yo))}}(cr||Vn)&&(wt.onClick=function(rt){var Pt;Lt.current&&Vn?Ce(!1):!Lt.current&&cr&&(Kt(rt),Ce(!0));for(var bn=arguments.length,Cn=new Array(bn>1?bn-1:0),Sn=1;Sn<bn;Sn++)Cn[Sn-1]=arguments[Sn];(Pt=Fe.onClick)===null||Pt===void 0||Pt.call.apply(Pt,[Fe,rt].concat(Cn))});var Qo=cM(St,Vn,dt,lt,P,I,mt,Ce),Zi=sr.has("hover"),Ji=Hn.has("hover"),_o,Tn;Zi&&(Qn("onMouseEnter",!0,C,function(rt){Kt(rt)}),Qn("onPointerEnter",!0,C,function(rt){Kt(rt)}),_o=function(Pt){(St||Ke)&&lt!==null&&lt!==void 0&&lt.contains(Pt.target)&&Ce(!0,C)},F&&(wt.onMouseMove=function(rt){var Pt;(Pt=Fe.onMouseMove)===null||Pt===void 0||Pt.call(Fe,rt)})),Ji&&(Qn("onMouseLeave",!1,E),Qn("onPointerLeave",!1,E),Tn=function(){Ce(!1,E)}),sr.has("focus")&&Qn("onFocus",!0,$),Hn.has("focus")&&Qn("onBlur",!1,R),sr.has("contextMenu")&&(wt.onContextMenu=function(rt){var Pt;Lt.current&&Hn.has("contextMenu")?Ce(!1):(Kt(rt),Ce(!0)),rt.preventDefault();for(var bn=arguments.length,Cn=new Array(bn>1?bn-1:0),Sn=1;Sn<bn;Sn++)Cn[Sn-1]=arguments[Sn];(Pt=Fe.onContextMenu)===null||Pt===void 0||Pt.call.apply(Pt,[Fe,rt].concat(Cn))}),ae&&(wt.className=ce(Fe.className,ae));var dr=d.useRef(!1);dr.current||(dr.current=M||St||Ke);var br=q(q({},Fe),wt),Er={},Ur=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ur.forEach(function(rt){he[rt]&&(Er[rt]=function(){for(var Pt,bn=arguments.length,Cn=new Array(bn),Sn=0;Sn<bn;Sn++)Cn[Sn]=arguments[Sn];(Pt=br[rt])===null||Pt===void 0||Pt.call.apply(Pt,[br].concat(Cn)),he[rt].apply(he,Cn)})});var Nr=d.cloneElement(Pe,q(q({},br),Er)),ea={x:xt,y:kt},ta=Z?q({},Z!==!0?Z:{}):null;return d.createElement(d.Fragment,null,d.createElement(ro,{disabled:!St,ref:Ye,onResize:Wn},d.createElement(rM,{getTriggerDOMNode:ye},Nr)),dr.current&&d.createElement(Ey.Provider,{value:Ie},d.createElement(nM,{portal:e,ref:Ue,prefixCls:l,popup:L,className:ce(j,Xt),style:A,target:dt,onMouseEnter:_o,onMouseLeave:Tn,onPointerEnter:_o,zIndex:D,open:St,keepDom:Ke,fresh:k,onClick:Y,onPointerDownCapture:Qo,mask:P,motion:Bt,maskMotion:At,onVisibleChanged:Xn,onPrepare:$r,forceRender:M,autoDestroy:ve,getPopupContainer:T,align:$t,arrow:ta,arrowPos:ea,ready:We,offsetX:Ct,offsetY:ct,offsetR:et,offsetB:Ge,onAlign:nr,stretch:X,targetWidth:Ut/He,targetHeight:rr/ut})))});return t}const Au=dM(A1);var fM=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],mM=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"}}},pM=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,l=t.children,s=t.popupElement,u=t.animation,f=t.transitionName,m=t.dropdownStyle,v=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,b=t.placement,x=t.builtinPlacements,C=t.dropdownMatchSelectWidth,S=t.dropdownRender,E=t.dropdownAlign,$=t.getPopupContainer,R=t.empty,P=t.getTriggerDOMNode,O=t.onPopupVisibleChange,I=t.onPopupMouseEnter,T=_t(t,fM),M="".concat(r,"-dropdown"),_=s;S&&(_=S(s));var z=d.useMemo(function(){return x||mM(C)},[x,C]),L=u?"".concat(M,"-").concat(u):f,j=typeof C=="number",A=d.useMemo(function(){return j?null:C===!1?"minWidth":"width"},[C,j]),B=m;j&&(B=q(q({},B),{},{width:C}));var K=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var U;return(U=K.current)===null||U===void 0?void 0:U.popupElement}}}),d.createElement(Au,ke({},T,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:M,popupTransitionName:L,popup:d.createElement("div",{onMouseEnter:I},_),ref:K,stretch:A,popupAlign:E,popupVisible:o,getPopupContainer:$,popupClassName:ce(v,H({},"".concat(M,"-empty"),R)),popupStyle:B,getTriggerDOMNode:P,onPopupVisibleChange:O}),l)},vM=d.forwardRef(pM);function My(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 hp(e){return typeof e<"u"&&!Number.isNaN(e)}function tx(e,t){var n=e||{},r=n.label,o=n.value,l=n.options,s=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:o||"value",options:l||"options",groupLabel:s||u}}function gM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=tx(n,!1),s=l.label,u=l.value,f=l.options,m=l.groupLabel;function v(g,h){Array.isArray(g)&&g.forEach(function(b){if(h||!(f in b)){var x=b[u];o.push({key:My(b,o.length),groupOption:h,data:b,label:b[s],value:x})}else{var C=b[m];C===void 0&&r&&(C=b.label),o.push({key:My(b,o.length),group:!0,data:b,label:C}),v(b[f],!0)}})}return v(e,!1),o}function yp(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ar(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var hM=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function u(f,m){var v=PS(m),g=v[0],h=v.slice(1);if(!g)return[f];var b=f.split(g);return o=o||b.length>1,b.reduce(function(x,C){return[].concat(Be(x),Be(u(C,h)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},rv=d.createContext(null);function yM(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var l=o.label,s=o.value;return["number","string"].includes(vt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var bM=["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"],SM=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bp=function(t){return t==="tags"||t==="multiple"},xM=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,l=e.className,s=e.showSearch,u=e.tagRender,f=e.direction,m=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,b=e.notFoundContent,x=b===void 0?"Not Found":b,C=e.onClear,S=e.mode,E=e.disabled,$=e.loading,R=e.getInputElement,P=e.getRawInputElement,O=e.open,I=e.defaultOpen,T=e.onDropdownVisibleChange,M=e.activeValue,_=e.onActiveValueChange,z=e.activeDescendantId,L=e.searchValue,j=e.autoClearSearchValue,A=e.onSearch,B=e.onSearchSplit,K=e.tokenSeparators,V=e.allowClear,U=e.prefix,D=e.suffixIcon,X=e.clearIcon,W=e.OptionList,k=e.animation,F=e.transitionName,Y=e.dropdownStyle,ne=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,ee=e.dropdownRender,me=e.dropdownAlign,pe=e.placement,ue=e.builtinPlacements,Se=e.getPopupContainer,fe=e.showAction,ae=fe===void 0?[]:fe,ye=e.onFocus,he=e.onBlur,ve=e.onKeyUp,oe=e.onKeyDown,be=e.onMouseDown,we=_t(e,bM),$e=bp(S),Ae=(s!==void 0?s:$e)||S==="combobox",je=q({},we);SM.forEach(function(nt){delete je[nt]}),m==null||m.forEach(function(nt){delete je[nt]});var Ie=d.useState(!1),Le=re(Ie,2),Ee=Le[0],tt=Le[1];d.useEffect(function(){tt(nv())},[]);var lt=d.useRef(null),bt=d.useRef(null),st=d.useRef(null),Ue=d.useRef(null),it=d.useRef(null),Ve=d.useRef(!1),dt=R_(),Xe=re(dt,3),_e=Xe[0],Ye=Xe[1],Pe=Xe[2];d.useImperativeHandle(t,function(){var nt,Je;return{focus:(nt=Ue.current)===null||nt===void 0?void 0:nt.focus,blur:(Je=Ue.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(Qt){var rn;return(rn=it.current)===null||rn===void 0?void 0:rn.scrollTo(Qt)},nativeElement:lt.current||bt.current}});var Fe=d.useMemo(function(){var nt;if(S!=="combobox")return L;var Je=(nt=v[0])===null||nt===void 0?void 0:nt.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[L,S,v]),wt=S==="combobox"&&typeof R=="function"&&R()||null,mt=typeof P=="function"&&P(),Bt=qi(bt,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),At=d.useState(!1),nn=re(At,2),vn=nn[0],Vt=nn[1];tn(function(){Vt(!0)},[]);var Tt=tr(!1,{defaultValue:I,value:O}),St=re(Tt,2),Wt=St[0],Lt=St[1],Ze=vn?Wt:!1,yt=!x&&h;(E||yt&&Ze&&S==="combobox")&&(Ze=!1);var at=yt?!1:Ze,Re=d.useCallback(function(nt){var Je=nt!==void 0?nt:!Ze;E||(Lt(Je),Ze!==Je&&(T==null||T(Je)))},[E,Ze,Lt,T]),Ce=d.useMemo(function(){return(K||[]).some(function(nt){return[`
209
+ `,`\r
210
+ `].includes(nt)})},[K]),xe=d.useContext(rv)||{},Me=xe.maxCount,Ke=xe.rawValues,Qe=function(Je,Ut,Qt){if(!($e&&hp(Me)&&(Ke==null?void 0:Ke.size)>=Me)){var rn=!0,ln=Je;_==null||_(null);var rr=hM(Je,K,hp(Me)?Me-Ke.size:void 0),jn=Qt?null:rr;return S!=="combobox"&&jn&&(ln="",B==null||B(jn),Re(!1),rn=!1),A&&Fe!==ln&&A(ln,{source:Ut?"typing":"effect"}),rn}},Mt=function(Je){!Je||!Je.trim()||A(Je,{source:"submit"})};d.useEffect(function(){!Ze&&!$e&&S!=="combobox"&&Qe("",!1,!1)},[Ze]),d.useEffect(function(){Wt&&E&&Lt(!1),E&&!Ve.current&&Ye(!1)},[E]);var jt=q1(),Ot=re(jt,2),It=Ot[0],mn=Ot[1],sn=d.useRef(!1),gn=function(Je){var Ut=It(),Qt=Je.key,rn=Qt==="Enter";if(rn&&(S!=="combobox"&&Je.preventDefault(),Ze||Re(!0)),mn(!!Fe),Qt==="Backspace"&&!Ut&&$e&&!Fe&&v.length){for(var ln=Be(v),rr=null,jn=ln.length-1;jn>=0;jn-=1){var zt=ln[jn];if(!zt.disabled){ln.splice(jn,1),rr=zt;break}}rr&&g(ln,{type:"remove",values:[rr]})}for(var Wn=arguments.length,Xn=new Array(Wn>1?Wn-1:0),$r=1;$r<Wn;$r++)Xn[$r-1]=arguments[$r];if(Ze&&(!rn||!sn.current)){var Qn;rn&&(sn.current=!0),(Qn=it.current)===null||Qn===void 0||Qn.onKeyDown.apply(Qn,[Je].concat(Xn))}oe==null||oe.apply(void 0,[Je].concat(Xn))},$n=function(Je){for(var Ut=arguments.length,Qt=new Array(Ut>1?Ut-1:0),rn=1;rn<Ut;rn++)Qt[rn-1]=arguments[rn];if(Ze){var ln;(ln=it.current)===null||ln===void 0||ln.onKeyUp.apply(ln,[Je].concat(Qt))}Je.key==="Enter"&&(sn.current=!1),ve==null||ve.apply(void 0,[Je].concat(Qt))},Kt=function(Je){var Ut=v.filter(function(Qt){return Qt!==Je});g(Ut,{type:"remove",values:[Je]})},Yt=function(){sn.current=!1},Ne=d.useRef(!1),We=function(){Ye(!0),E||(ye&&!Ne.current&&ye.apply(void 0,arguments),ae.includes("focus")&&Re(!0)),Ne.current=!0},Ct=function(){Ve.current=!0,Ye(!1,function(){Ne.current=!1,Ve.current=!1,Re(!1)}),!E&&(Fe&&(S==="tags"?A(Fe,{source:"submit"}):S==="multiple"&&A("",{source:"blur"})),he&&he.apply(void 0,arguments))},ct=[];d.useEffect(function(){return function(){ct.forEach(function(nt){return clearTimeout(nt)}),ct.splice(0,ct.length)}},[]);var et=function(Je){var Ut,Qt=Je.target,rn=(Ut=st.current)===null||Ut===void 0?void 0:Ut.getPopupElement();if(rn&&rn.contains(Qt)){var ln=setTimeout(function(){var Wn=ct.indexOf(ln);if(Wn!==-1&&ct.splice(Wn,1),Pe(),!Ee&&!rn.contains(document.activeElement)){var Xn;(Xn=Ue.current)===null||Xn===void 0||Xn.focus()}});ct.push(ln)}for(var rr=arguments.length,jn=new Array(rr>1?rr-1:0),zt=1;zt<rr;zt++)jn[zt-1]=arguments[zt];be==null||be.apply(void 0,[Je].concat(jn))},Ge=d.useState({}),xt=re(Ge,2),kt=xt[1];function He(){kt({})}var ut;mt&&(ut=function(Je){Re(Je)}),O_(function(){var nt;return[lt.current,(nt=st.current)===null||nt===void 0?void 0:nt.getPopupElement()]},at,Re,!!mt);var $t=d.useMemo(function(){return q(q({},e),{},{notFoundContent:x,open:Ze,triggerOpen:at,id:r,showSearch:Ae,multiple:$e,toggleOpen:Re})},[e,x,at,Ze,r,Ae,$e,Re]),Jt=!!D||$,zn;Jt&&(zn=d.createElement(Lu,{className:ce("".concat(o,"-arrow"),H({},"".concat(o,"-arrow-loading"),$)),customizeIcon:D,customizeIconProps:{loading:$,searchValue:Fe,open:Ze,focused:_e,showSearch:Ae}}));var xn=function(){var Je;C==null||C(),(Je=Ue.current)===null||Je===void 0||Je.focus(),g([],{type:"clear",values:v}),Qe("",!1,!1)},sr=$_(o,xn,v,V,X,E,Fe,S),Hn=sr.allowClear,cr=sr.clearIcon,Vn=d.createElement(W,{ref:it}),nr=ce(o,l,H(H(H(H(H(H(H(H(H(H({},"".concat(o,"-focused"),_e),"".concat(o,"-multiple"),$e),"".concat(o,"-single"),!$e),"".concat(o,"-allow-clear"),V),"".concat(o,"-show-arrow"),Jt),"".concat(o,"-disabled"),E),"".concat(o,"-loading"),$),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),wt),"".concat(o,"-show-search"),Ae)),ur=d.createElement(vM,{ref:st,disabled:E,prefixCls:o,visible:at,popupElement:Vn,animation:k,transitionName:F,dropdownStyle:Y,dropdownClassName:ne,direction:f,dropdownMatchSelectWidth:Z,dropdownRender:ee,dropdownAlign:me,placement:pe,builtinPlacements:ue,getPopupContainer:Se,empty:h,getTriggerDOMNode:function(Je){return bt.current||Je},onPopupVisibleChange:ut,onPopupMouseEnter:He},mt?d.cloneElement(mt,{ref:Bt}):d.createElement(Z_,ke({},e,{domRef:bt,prefixCls:o,inputElement:wt,ref:Ue,id:r,prefix:U,showSearch:Ae,autoClearSearchValue:j,mode:S,activeDescendantId:z,tagRender:u,values:v,open:Ze,onToggleOpen:Re,activeValue:M,searchValue:Fe,onSearch:Qe,onSearchSubmit:Mt,onRemove:Kt,tokenWithEnter:Ce,onInputBlur:Yt}))),Xt;return mt?Xt=ur:Xt=d.createElement("div",ke({className:nr},je,{ref:lt,onMouseDown:et,onKeyDown:gn,onKeyUp:$n,onFocus:We,onBlur:Ct}),d.createElement(yM,{visible:_e&&!Ze,values:v}),ur,zn,Hn&&cr),d.createElement(K1.Provider,{value:$t},Xt)}),ov=function(){return null};ov.isSelectOptGroup=!0;var iv=function(){return null};iv.isSelectOption=!0;var nx=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,s=e.prefixCls,u=e.onInnerResize,f=e.innerProps,m=e.rtl,v=e.extra,g={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},h=q(q({},h),{},H(H(H(H(H({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:g},d.createElement(ro,{onResize:function(x){var C=x.offsetHeight;C&&u&&u()}},d.createElement("div",ke({style:h,className:ce(H({},"".concat(s,"-holder-inner"),s)),ref:t},f),l,v)))});nx.displayName="Filler";function CM(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function wM(e,t,n,r,o,l,s,u){var f=u.getKey;return e.slice(t,n+1).map(function(m,v){var g=t+v,h=s(m,g,{style:{width:r},offsetX:o}),b=f(m);return d.createElement(CM,{key:b,setRef:function(C){return l(m,C)}},h)})}function $M(e,t,n){var r=e.length,o=t.length,l,s;if(r===0&&o===0)return null;r<o?(l=e,s=t):(l=t,s=e);var u={__EMPTY_ITEM__:!0};function f(x){return x!==void 0?n(x):u}for(var m=null,v=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var h=f(l[g]),b=f(s[g]);if(h!==b){m=g,v=v||h!==f(s[g+1]);break}}return m===null?null:{index:m,multiple:v}}function EM(e,t,n){var r=d.useState(e),o=re(r,2),l=o[0],s=o[1],u=d.useState(null),f=re(u,2),m=f[0],v=f[1];return d.useEffect(function(){var g=$M(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),s(e)},[e]),[m]}var Ny=(typeof navigator>"u"?"undefined":vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const rx=(function(e,t,n,r){var o=d.useRef(!1),l=d.useRef(null);function s(){clearTimeout(l.current),o.current=!0,l.current=setTimeout(function(){o.current=!1},50)}var u=d.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(f,m){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?m<0&&u.current.left||m>0&&u.current.right:m<0&&u.current.top||m>0&&u.current.bottom;return v&&g?(clearTimeout(l.current),o.current=!1):(!g||o.current)&&s(),!o.current&&g}});function RM(e,t,n,r,o,l,s){var u=d.useRef(0),f=d.useRef(null),m=d.useRef(null),v=d.useRef(!1),g=rx(t,n,r,o);function h($,R){if(yn.cancel(f.current),!g(!1,R)){var P=$;if(!P._virtualHandled)P._virtualHandled=!0;else return;u.current+=R,m.current=R,Ny||P.preventDefault(),f.current=yn(function(){var O=v.current?10:1;s(u.current*O,!1),u.current=0})}}function b($,R){s(R,!0),Ny||$.preventDefault()}var x=d.useRef(null),C=d.useRef(null);function S($){if(e){yn.cancel(C.current),C.current=yn(function(){x.current=null},2);var R=$.deltaX,P=$.deltaY,O=$.shiftKey,I=R,T=P;(x.current==="sx"||!x.current&&O&&P&&!R)&&(I=P,T=0,x.current="sx");var M=Math.abs(I),_=Math.abs(T);x.current===null&&(x.current=l&&M>_?"x":"y"),x.current==="y"?h($,T):b($,I)}}function E($){e&&(v.current=$.detail===m.current)}return[S,E]}function OM(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=re(o,2),s=l[0],u=l[1],f=function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,h=s.get(v),b=s.get(g);if(h===void 0||b===void 0)for(var x=e.length,C=u.length;C<x;C+=1){var S,E=e[C],$=t(E);s.set($,C);var R=(S=n.get($))!==null&&S!==void 0?S:r;if(u[C]=(u[C-1]||0)+R,$===v&&(h=C),$===g&&(b=C),h!==void 0&&b!==void 0)break}return{top:u[h-1]||0,bottom:u[b]}};return f}var IM=(function(){function e(){Bn(this,e),H(this,"maps",void 0),H(this,"id",0),H(this,"diffRecords",new Map),this.maps=Object.create(null)}return Fn(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 zy(e){var t=parseFloat(e);return isNaN(t)?0:t}function PM(e,t,n){var r=d.useState(0),o=re(r,2),l=o[0],s=o[1],u=d.useRef(new Map),f=d.useRef(new IM),m=d.useRef(0);function v(){m.current+=1}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var x=function(){var E=!1;u.current.forEach(function($,R){if($&&$.offsetParent){var P=$.offsetHeight,O=getComputedStyle($),I=O.marginTop,T=O.marginBottom,M=zy(I),_=zy(T),z=P+M+_;f.current.get(R)!==z&&(f.current.set(R,z),E=!0)}}),E&&s(function($){return $+1})};if(b)x();else{m.current+=1;var C=m.current;Promise.resolve().then(function(){C===m.current&&x()})}}function h(b,x){var C=e(b);u.current.get(C),x?(u.current.set(C,x),g()):u.current.delete(C)}return d.useEffect(function(){return v},[]),[h,g,f.current,l]}var jy=14/15;function TM(e,t,n){var r=d.useRef(!1),o=d.useRef(0),l=d.useRef(0),s=d.useRef(null),u=d.useRef(null),f,m=function(b){if(r.current){var x=Math.ceil(b.touches[0].pageX),C=Math.ceil(b.touches[0].pageY),S=o.current-x,E=l.current-C,$=Math.abs(S)>Math.abs(E);$?o.current=x:l.current=C;var R=n($,$?S:E,!1,b);R&&b.preventDefault(),clearInterval(u.current),R&&(u.current=setInterval(function(){$?S*=jy:E*=jy;var P=Math.floor($?S:E);(!n($,P,!0)||Math.abs(P)<=.1)&&clearInterval(u.current)},16))}},v=function(){r.current=!1,f()},g=function(b){f(),b.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(b.touches[0].pageX),l.current=Math.ceil(b.touches[0].pageY),s.current=b.target,s.current.addEventListener("touchmove",m,{passive:!1}),s.current.addEventListener("touchend",v,{passive:!0}))};f=function(){s.current&&(s.current.removeEventListener("touchmove",m),s.current.removeEventListener("touchend",v))},tn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",g),f(),clearInterval(u.current)}},[e])}function ky(e){return Math.floor(Math.pow(e,.5))}function Sp(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function _M(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,u=function(){yn.cancel(l)},f=function h(){u(),l=yn(function(){n(s),h()})},m=function(){o=!1,u()},v=function(b){if(!(b.target.draggable||b.button!==0)){var x=b;x._virtualHandled||(x._virtualHandled=!0,o=!0)}},g=function(b){if(o){var x=Sp(b,!1),C=r.getBoundingClientRect(),S=C.top,E=C.bottom;if(x<=S){var $=S-x;s=-ky($),f()}else if(x>=E){var R=x-E;s=ky(R),f()}else u()}};return r.addEventListener("mousedown",v),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",m),function(){r.removeEventListener("mousedown",v),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",m),u()}}},[e])}var MM=10;function NM(e,t,n,r,o,l,s,u){var f=d.useRef(),m=d.useState(null),v=re(m,2),g=v[0],h=v[1];return tn(function(){if(g&&g.times<MM){if(!e.current){h(function(X){return q({},X)});return}l();var b=g.targetAlign,x=g.originAlign,C=g.index,S=g.offset,E=e.current.clientHeight,$=!1,R=b,P=null;if(E){for(var O=b||x,I=0,T=0,M=0,_=Math.min(t.length-1,C),z=0;z<=_;z+=1){var L=o(t[z]);T=I;var j=n.get(L);M=T+(j===void 0?r:j),I=M}for(var A=O==="top"?S:E-S,B=_;B>=0;B-=1){var K=o(t[B]),V=n.get(K);if(V===void 0){$=!0;break}if(A-=V,A<=0)break}switch(O){case"top":P=T-S;break;case"bottom":P=M-E+S;break;default:{var U=e.current.scrollTop,D=U+E;T<U?R="top":M>D&&(R="bottom")}}P!==null&&s(P),P!==g.lastTop&&($=!0)}$&&h(q(q({},g),{},{times:g.times+1,targetAlign:R,lastTop:P}))}},[g,e.current]),function(b){if(b==null){u();return}if(yn.cancel(f.current),typeof b=="number")s(b);else if(b&&vt(b)==="object"){var x,C=b.align;"index"in b?x=b.index:x=t.findIndex(function($){return o($)===b.key});var S=b.offset,E=S===void 0?0:S;h({times:0,index:x,offset:E,originAlign:C})}}}var Ly=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,u=e.onStopMove,f=e.onScroll,m=e.horizontal,v=e.spinSize,g=e.containerSize,h=e.style,b=e.thumbStyle,x=e.showScrollBar,C=d.useState(!1),S=re(C,2),E=S[0],$=S[1],R=d.useState(null),P=re(R,2),O=P[0],I=P[1],T=d.useState(null),M=re(T,2),_=M[0],z=M[1],L=!r,j=d.useRef(),A=d.useRef(),B=d.useState(x),K=re(B,2),V=K[0],U=K[1],D=d.useRef(),X=function(){x===!0||x===!1||(clearTimeout(D.current),U(!0),D.current=setTimeout(function(){U(!1)},3e3))},W=l-g||0,k=g-v||0,F=d.useMemo(function(){if(o===0||W===0)return 0;var fe=o/W;return fe*k},[o,W,k]),Y=function(ae){ae.stopPropagation(),ae.preventDefault()},ne=d.useRef({top:F,dragging:E,pageY:O,startTop:_});ne.current={top:F,dragging:E,pageY:O,startTop:_};var Z=function(ae){$(!0),I(Sp(ae,m)),z(ne.current.top),s(),ae.stopPropagation(),ae.preventDefault()};d.useEffect(function(){var fe=function(ve){ve.preventDefault()},ae=j.current,ye=A.current;return ae.addEventListener("touchstart",fe,{passive:!1}),ye.addEventListener("touchstart",Z,{passive:!1}),function(){ae.removeEventListener("touchstart",fe),ye.removeEventListener("touchstart",Z)}},[]);var ee=d.useRef();ee.current=W;var me=d.useRef();me.current=k,d.useEffect(function(){if(E){var fe,ae=function(ve){var oe=ne.current,be=oe.dragging,we=oe.pageY,$e=oe.startTop;yn.cancel(fe);var Ae=j.current.getBoundingClientRect(),je=g/(m?Ae.width:Ae.height);if(be){var Ie=(Sp(ve,m)-we)*je,Le=$e;!L&&m?Le-=Ie:Le+=Ie;var Ee=ee.current,tt=me.current,lt=tt?Le/tt:0,bt=Math.ceil(lt*Ee);bt=Math.max(bt,0),bt=Math.min(bt,Ee),fe=yn(function(){f(bt,m)})}},ye=function(){$(!1),u()};return window.addEventListener("mousemove",ae,{passive:!0}),window.addEventListener("touchmove",ae,{passive:!0}),window.addEventListener("mouseup",ye,{passive:!0}),window.addEventListener("touchend",ye,{passive:!0}),function(){window.removeEventListener("mousemove",ae),window.removeEventListener("touchmove",ae),window.removeEventListener("mouseup",ye),window.removeEventListener("touchend",ye),yn.cancel(fe)}}},[E]),d.useEffect(function(){return X(),function(){clearTimeout(D.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:X}});var pe="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:V?null:"hidden"},Se={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(ue,{height:8,left:0,right:0,bottom:0}),Object.assign(Se,H({height:"100%",width:v},L?"left":"right",F))):(Object.assign(ue,H({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Se,{width:"100%",height:v,top:F})),d.createElement("div",{ref:j,className:ce(pe,H(H(H({},"".concat(pe,"-horizontal"),m),"".concat(pe,"-vertical"),!m),"".concat(pe,"-visible"),V)),style:q(q({},ue),h),onMouseDown:Y,onMouseMove:X},d.createElement("div",{ref:A,className:ce("".concat(pe,"-thumb"),H({},"".concat(pe,"-thumb-moving"),E)),style:q(q({},Se),b),onMouseDown:Z}))}),zM=20;function Ay(){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,zM),Math.floor(n)}var jM=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kM=[],LM={overflowY:"auto",overflowAnchor:"none"};function AM(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,l=e.height,s=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,m=e.style,v=e.data,g=e.children,h=e.itemKey,b=e.virtual,x=e.direction,C=e.scrollWidth,S=e.component,E=S===void 0?"div":S,$=e.onScroll,R=e.onVirtualScroll,P=e.onVisibleChange,O=e.innerProps,I=e.extraRender,T=e.styles,M=e.showScrollBar,_=M===void 0?"optional":M,z=_t(e,jM),L=d.useCallback(function(Ne){return typeof h=="function"?h(Ne):Ne==null?void 0:Ne[h]},[h]),j=PM(L),A=re(j,4),B=A[0],K=A[1],V=A[2],U=A[3],D=!!(b!==!1&&l&&s),X=d.useMemo(function(){return Object.values(V.maps).reduce(function(Ne,We){return Ne+We},0)},[V.id,V.maps]),W=D&&v&&(Math.max(s*v.length,X)>l||!!C),k=x==="rtl",F=ce(r,H({},"".concat(r,"-rtl"),k),o),Y=v||kM,ne=d.useRef(),Z=d.useRef(),ee=d.useRef(),me=d.useState(0),pe=re(me,2),ue=pe[0],Se=pe[1],fe=d.useState(0),ae=re(fe,2),ye=ae[0],he=ae[1],ve=d.useState(!1),oe=re(ve,2),be=oe[0],we=oe[1],$e=function(){we(!0)},Ae=function(){we(!1)},je={getKey:L};function Ie(Ne){Se(function(We){var Ct;typeof Ne=="function"?Ct=Ne(We):Ct=Ne;var ct=Vt(Ct);return ne.current.scrollTop=ct,ct})}var Le=d.useRef({start:0,end:Y.length}),Ee=d.useRef(),tt=EM(Y,L),lt=re(tt,1),bt=lt[0];Ee.current=bt;var st=d.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!W){var Ne;return{scrollHeight:((Ne=Z.current)===null||Ne===void 0?void 0:Ne.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var We=0,Ct,ct,et,Ge=Y.length,xt=0;xt<Ge;xt+=1){var kt=Y[xt],He=L(kt),ut=V.get(He),$t=We+(ut===void 0?s:ut);$t>=ue&&Ct===void 0&&(Ct=xt,ct=We),$t>ue+l&&et===void 0&&(et=xt),We=$t}return Ct===void 0&&(Ct=0,ct=0,et=Math.ceil(l/s)),et===void 0&&(et=Y.length-1),et=Math.min(et+1,Y.length-1),{scrollHeight:We,start:Ct,end:et,offset:ct}},[W,D,ue,Y,U,l]),Ue=st.scrollHeight,it=st.start,Ve=st.end,dt=st.offset;Le.current.start=it,Le.current.end=Ve,d.useLayoutEffect(function(){var Ne=V.getRecord();if(Ne.size===1){var We=Array.from(Ne.keys())[0],Ct=Ne.get(We),ct=Y[it];if(ct&&Ct===void 0){var et=L(ct);if(et===We){var Ge=V.get(We),xt=Ge-s;Ie(function(kt){return kt+xt})}}}V.resetRecord()},[Ue]);var Xe=d.useState({width:0,height:l}),_e=re(Xe,2),Ye=_e[0],Pe=_e[1],Fe=function(We){Pe({width:We.offsetWidth,height:We.offsetHeight})},wt=d.useRef(),mt=d.useRef(),Bt=d.useMemo(function(){return Ay(Ye.width,C)},[Ye.width,C]),At=d.useMemo(function(){return Ay(Ye.height,Ue)},[Ye.height,Ue]),nn=Ue-l,vn=d.useRef(nn);vn.current=nn;function Vt(Ne){var We=Ne;return Number.isNaN(vn.current)||(We=Math.min(We,vn.current)),We=Math.max(We,0),We}var Tt=ue<=0,St=ue>=nn,Wt=ye<=0,Lt=ye>=C,Ze=rx(Tt,St,Wt,Lt),yt=function(){return{x:k?-ye:ye,y:ue}},at=d.useRef(yt()),Re=Kn(function(Ne){if(R){var We=q(q({},yt()),Ne);(at.current.x!==We.x||at.current.y!==We.y)&&(R(We),at.current=We)}});function Ce(Ne,We){var Ct=Ne;We?(Si.flushSync(function(){he(Ct)}),Re()):Ie(Ct)}function xe(Ne){var We=Ne.currentTarget.scrollTop;We!==ue&&Ie(We),$==null||$(Ne),Re()}var Me=function(We){var Ct=We,ct=C?C-Ye.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,ct),Ct},Ke=Kn(function(Ne,We){We?(Si.flushSync(function(){he(function(Ct){var ct=Ct+(k?-Ne:Ne);return Me(ct)})}),Re()):Ie(function(Ct){var ct=Ct+Ne;return ct})}),Qe=RM(D,Tt,St,Wt,Lt,!!C,Ke),Mt=re(Qe,2),jt=Mt[0],Ot=Mt[1];TM(D,ne,function(Ne,We,Ct,ct){var et=ct;return Ze(Ne,We,Ct)?!1:!et||!et._virtualHandled?(et&&(et._virtualHandled=!0),jt({preventDefault:function(){},deltaX:Ne?We:0,deltaY:Ne?0:We}),!0):!1}),_M(W,ne,function(Ne){Ie(function(We){return We+Ne})}),tn(function(){function Ne(Ct){var ct=Tt&&Ct.detail<0,et=St&&Ct.detail>0;D&&!ct&&!et&&Ct.preventDefault()}var We=ne.current;return We.addEventListener("wheel",jt,{passive:!1}),We.addEventListener("DOMMouseScroll",Ot,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ne,{passive:!1}),function(){We.removeEventListener("wheel",jt),We.removeEventListener("DOMMouseScroll",Ot),We.removeEventListener("MozMousePixelScroll",Ne)}},[D,Tt,St]),tn(function(){if(C){var Ne=Me(ye);he(Ne),Re({x:Ne})}},[Ye.width,C]);var It=function(){var We,Ct;(We=wt.current)===null||We===void 0||We.delayHidden(),(Ct=mt.current)===null||Ct===void 0||Ct.delayHidden()},mn=NM(ne,Y,V,s,L,function(){return K(!0)},Ie,It);d.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:yt,scrollTo:function(We){function Ct(ct){return ct&&vt(ct)==="object"&&("left"in ct||"top"in ct)}Ct(We)?(We.left!==void 0&&he(Me(We.left)),mn(We.top)):mn(We)}}}),tn(function(){if(P){var Ne=Y.slice(it,Ve+1);P(Ne,Y)}},[it,Ve,Y]);var sn=OM(Y,L,V,s),gn=I==null?void 0:I({start:it,end:Ve,virtual:W,offsetX:ye,offsetY:dt,rtl:k,getSize:sn}),$n=wM(Y,it,Ve,C,ye,B,g,je),Kt=null;l&&(Kt=q(H({},f?"height":"maxHeight",l),LM),D&&(Kt.overflowY="hidden",C&&(Kt.overflowX="hidden"),be&&(Kt.pointerEvents="none")));var Yt={};return k&&(Yt.dir="rtl"),d.createElement("div",ke({ref:ee,style:q(q({},m),{},{position:"relative"}),className:F},Yt,z),d.createElement(ro,{onResize:Fe},d.createElement(E,{className:"".concat(r,"-holder"),style:Kt,ref:ne,onScroll:xe,onMouseEnter:It},d.createElement(nx,{prefixCls:r,height:Ue,offsetX:ye,offsetY:dt,scrollWidth:C,onInnerResize:K,ref:Z,innerProps:O,rtl:k,extra:gn},$n))),W&&Ue>l&&d.createElement(Ly,{ref:wt,prefixCls:r,scrollOffset:ue,scrollRange:Ue,rtl:k,onScroll:Ce,onStartMove:$e,onStopMove:Ae,spinSize:At,containerSize:Ye.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:_}),W&&C>Ye.width&&d.createElement(Ly,{ref:mt,prefixCls:r,scrollOffset:ye,scrollRange:C,rtl:k,onScroll:Ce,onStartMove:$e,onStopMove:Ae,spinSize:Bt,containerSize:Ye.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:_}))}var ox=d.forwardRef(AM);ox.displayName="List";function DM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var BM=["disabled","title","children","style","className"];function Dy(e){return typeof e=="string"||typeof e=="number"}var FM=function(t,n){var r=E_(),o=r.prefixCls,l=r.id,s=r.open,u=r.multiple,f=r.mode,m=r.searchValue,v=r.toggleOpen,g=r.notFoundContent,h=r.onPopupScroll,b=d.useContext(rv),x=b.maxCount,C=b.flattenOptions,S=b.onActiveValue,E=b.defaultActiveFirstOption,$=b.onSelect,R=b.menuItemSelectedIcon,P=b.rawValues,O=b.fieldNames,I=b.virtual,T=b.direction,M=b.listHeight,_=b.listItemHeight,z=b.optionRender,L="".concat(o,"-item"),j=ds(function(){return C},[s,C],function(fe,ae){return ae[0]&&fe[1]!==ae[1]}),A=d.useRef(null),B=d.useMemo(function(){return u&&hp(x)&&(P==null?void 0:P.size)>=x},[u,x,P==null?void 0:P.size]),K=function(ae){ae.preventDefault()},V=function(ae){var ye;(ye=A.current)===null||ye===void 0||ye.scrollTo(typeof ae=="number"?{index:ae}:ae)},U=d.useCallback(function(fe){return f==="combobox"?!1:P.has(fe)},[f,Be(P).toString(),P.size]),D=function(ae){for(var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,he=j.length,ve=0;ve<he;ve+=1){var oe=(ae+ve*ye+he)%he,be=j[oe]||{},we=be.group,$e=be.data;if(!we&&!($e!=null&&$e.disabled)&&(U($e.value)||!B))return oe}return-1},X=d.useState(function(){return D(0)}),W=re(X,2),k=W[0],F=W[1],Y=function(ae){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(ae);var he={source:ye?"keyboard":"mouse"},ve=j[ae];if(!ve){S(null,-1,he);return}S(ve.value,ae,he)};d.useEffect(function(){Y(E!==!1?D(0):-1)},[j.length,m]);var ne=d.useCallback(function(fe){return f==="combobox"?String(fe).toLowerCase()===m.toLowerCase():P.has(fe)},[f,m,Be(P).toString(),P.size]);d.useEffect(function(){var fe=setTimeout(function(){if(!u&&s&&P.size===1){var ye=Array.from(P)[0],he=j.findIndex(function(ve){var oe=ve.data;return m?String(oe.value).startsWith(m):oe.value===ye});he!==-1&&(Y(he),V(he))}});if(s){var ae;(ae=A.current)===null||ae===void 0||ae.scrollTo(void 0)}return function(){return clearTimeout(fe)}},[s,m]);var Z=function(ae){ae!==void 0&&$(ae,{selected:!P.has(ae)}),u||v(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ae){var ye=ae.which,he=ae.ctrlKey;switch(ye){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{var ve=0;if(ye===qe.UP?ve=-1:ye===qe.DOWN?ve=1:DM()&&he&&(ye===qe.N?ve=1:ye===qe.P&&(ve=-1)),ve!==0){var oe=D(k+ve,ve);V(oe),Y(oe,!0)}break}case qe.TAB:case qe.ENTER:{var be,we=j[k];we&&!(we!=null&&(be=we.data)!==null&&be!==void 0&&be.disabled)&&!B?Z(we.value):Z(void 0),s&&ae.preventDefault();break}case qe.ESC:v(!1),s&&ae.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ae){V(ae)}}}),j.length===0)return d.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:K},g);var ee=Object.keys(O).map(function(fe){return O[fe]}),me=function(ae){return ae.label};function pe(fe,ae){var ye=fe.group;return{role:ye?"presentation":"option",id:"".concat(l,"_list_").concat(ae)}}var ue=function(ae){var ye=j[ae];if(!ye)return null;var he=ye.data||{},ve=he.value,oe=ye.group,be=xi(he,!0),we=me(ye);return ye?d.createElement("div",ke({"aria-label":typeof we=="string"&&!oe?we:null},be,{key:ae},pe(ye,ae),{"aria-selected":ne(ve)}),ve):null},Se={role:"listbox",id:"".concat(l,"_list")};return d.createElement(d.Fragment,null,I&&d.createElement("div",ke({},Se,{style:{height:0,width:0,overflow:"hidden"}}),ue(k-1),ue(k),ue(k+1)),d.createElement(ox,{itemKey:"key",ref:A,data:j,height:M,itemHeight:_,fullHeight:!1,onMouseDown:K,onScroll:h,virtual:I,direction:T,innerProps:I?null:Se},function(fe,ae){var ye=fe.group,he=fe.groupOption,ve=fe.data,oe=fe.label,be=fe.value,we=ve.key;if(ye){var $e,Ae=($e=ve.title)!==null&&$e!==void 0?$e:Dy(oe)?oe.toString():void 0;return d.createElement("div",{className:ce(L,"".concat(L,"-group"),ve.className),title:Ae},oe!==void 0?oe:we)}var je=ve.disabled,Ie=ve.title;ve.children;var Le=ve.style,Ee=ve.className,tt=_t(ve,BM),lt=Hr(tt,ee),bt=U(be),st=je||!bt&&B,Ue="".concat(L,"-option"),it=ce(L,Ue,Ee,H(H(H(H({},"".concat(Ue,"-grouped"),he),"".concat(Ue,"-active"),k===ae&&!st),"".concat(Ue,"-disabled"),st),"".concat(Ue,"-selected"),bt)),Ve=me(fe),dt=!R||typeof R=="function"||bt,Xe=typeof Ve=="number"?Ve:Ve||be,_e=Dy(Xe)?Xe.toString():void 0;return Ie!==void 0&&(_e=Ie),d.createElement("div",ke({},xi(lt),I?{}:pe(fe,ae),{"aria-selected":ne(be),className:it,title:_e,onMouseMove:function(){k===ae||st||Y(ae)},onClick:function(){st||Z(be)},style:Le}),d.createElement("div",{className:"".concat(Ue,"-content")},typeof z=="function"?z(fe,{index:ae}):Xe),d.isValidElement(R)||bt,dt&&d.createElement(Lu,{className:"".concat(L,"-option-state"),customizeIcon:R,customizeIconProps:{value:be,disabled:st,isSelected:bt}},bt?"✓":null))}))},HM=d.forwardRef(FM);const VM=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var l=n.current,s=l.values,u=l.options,f=e.map(function(g){if(g.label===void 0){var h;return q(q({},g),{},{label:(h=s.get(g.value))===null||h===void 0?void 0:h.label})}return g}),m=new Map,v=new Map;return f.forEach(function(g){m.set(g.value,g),v.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=m,n.current.options=v,f},[e,t]),o=d.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,o]});function nm(e,t){return J1(e).join("").toUpperCase().includes(t)}const WM=(function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var l=t.options,s=t.label,u=t.value,f=[],m=typeof r=="function",v=n.toUpperCase(),g=m?r:function(b,x){return o?nm(x[o],v):x[l]?nm(x[s!=="children"?s:"label"],v):nm(x[u],v)},h=m?function(b){return yp(b)}:function(b){return b};return e.forEach(function(b){if(b[l]){var x=g(n,h(b));if(x)f.push(b);else{var C=b[l].filter(function(S){return g(n,h(S))});C.length&&f.push(q(q({},b),{},H({},l,C)))}return}g(n,h(b))&&f.push(b)}),f},[e,r,o,n,t])});var By=0,UM=wr();function GM(){var e;return UM?(e=By,By+=1):e="TEST_OR_SSR",e}function KM(e){var t=d.useState(),n=re(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(GM()))},[]),e||r}var qM=["children","value"],XM=["children"];function QM(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=_t(r,qM);return q({key:n,value:l!==void 0?l:n,children:o},s)}function ix(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mr(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,l=o.type.isSelectOptGroup,s=o.key,u=o.props,f=u.children,m=_t(u,XM);return t||!l?QM(n):q(q({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:ix(f)})}).filter(function(n){return n})}var YM=function(t,n,r,o,l){return d.useMemo(function(){var s=t,u=!t;u&&(s=ix(n));var f=new Map,m=new Map,v=function(b,x,C){C&&typeof C=="string"&&b.set(x[C],x)},g=function h(b){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<b.length;C+=1){var S=b[C];!S[r.options]||x?(f.set(S[r.value],S),v(m,S,r.label),v(m,S,o),v(m,S,l)):h(S[r.options],!0)}};return g(s),{options:s,valueOptions:f,labelOptions:m}},[t,n,r,o,l])};function Fy(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var ZM=["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"],JM=["inputValue"];function eN(e){return!e||vt(e)!=="object"}var tN=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,l=o===void 0?"rc-select":o,s=e.backfill,u=e.fieldNames,f=e.inputValue,m=e.searchValue,v=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.onSelect,x=e.onDeselect,C=e.dropdownMatchSelectWidth,S=C===void 0?!0:C,E=e.filterOption,$=e.filterSort,R=e.optionFilterProp,P=e.optionLabelProp,O=e.options,I=e.optionRender,T=e.children,M=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,z=e.virtual,L=e.direction,j=e.listHeight,A=j===void 0?200:j,B=e.listItemHeight,K=B===void 0?20:B,V=e.labelRender,U=e.value,D=e.defaultValue,X=e.labelInValue,W=e.onChange,k=e.maxCount,F=_t(e,ZM),Y=KM(n),ne=bp(r),Z=!!(!O&&T),ee=d.useMemo(function(){return E===void 0&&r==="combobox"?!1:E},[E,r]),me=d.useMemo(function(){return tx(u,Z)},[JSON.stringify(u),Z]),pe=tr("",{value:m!==void 0?m:f,postState:function(Ce){return Ce||""}}),ue=re(pe,2),Se=ue[0],fe=ue[1],ae=YM(O,T,me,R,P),ye=ae.valueOptions,he=ae.labelOptions,ve=ae.options,oe=d.useCallback(function(Re){var Ce=J1(Re);return Ce.map(function(xe){var Me,Ke,Qe,Mt,jt;if(eN(xe))Me=xe;else{var Ot;Qe=xe.key,Ke=xe.label,Me=(Ot=xe.value)!==null&&Ot!==void 0?Ot:Qe}var It=ye.get(Me);if(It){var mn;Ke===void 0&&(Ke=It==null?void 0:It[P||me.label]),Qe===void 0&&(Qe=(mn=It==null?void 0:It.key)!==null&&mn!==void 0?mn:Me),Mt=It==null?void 0:It.disabled,jt=It==null?void 0:It.title}return{label:Ke,value:Me,key:Qe,disabled:Mt,title:jt}})},[me,P,ye]),be=tr(D,{value:U}),we=re(be,2),$e=we[0],Ae=we[1],je=d.useMemo(function(){var Re,Ce=ne&&$e===null?[]:$e,xe=oe(Ce);return r==="combobox"&&G_((Re=xe[0])===null||Re===void 0?void 0:Re.value)?[]:xe},[$e,oe,r,ne]),Ie=VM(je,ye),Le=re(Ie,2),Ee=Le[0],tt=Le[1],lt=d.useMemo(function(){if(!r&&Ee.length===1){var Re=Ee[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Ee.map(function(Ce){var xe;return q(q({},Ce),{},{label:(xe=typeof V=="function"?V(Ce):Ce.label)!==null&&xe!==void 0?xe:Ce.value})})},[r,Ee,V]),bt=d.useMemo(function(){return new Set(Ee.map(function(Re){return Re.value}))},[Ee]);d.useEffect(function(){if(r==="combobox"){var Re,Ce=(Re=Ee[0])===null||Re===void 0?void 0:Re.value;fe(U_(Ce)?String(Ce):"")}},[Ee]);var st=Fy(function(Re,Ce){var xe=Ce??Re;return H(H({},me.value,Re),me.label,xe)}),Ue=d.useMemo(function(){if(r!=="tags")return ve;var Re=Be(ve),Ce=function(Me){return ye.has(Me)};return Be(Ee).sort(function(xe,Me){return xe.value<Me.value?-1:1}).forEach(function(xe){var Me=xe.value;Ce(Me)||Re.push(st(Me,xe.label))}),Re},[st,ve,ye,Ee,r]),it=WM(Ue,me,Se,ee,R),Ve=d.useMemo(function(){return r!=="tags"||!Se||it.some(function(Re){return Re[R||"value"]===Se})||it.some(function(Re){return Re[me.value]===Se})?it:[st(Se)].concat(Be(it))},[st,R,r,it,Se,me]),dt=function Re(Ce){var xe=Be(Ce).sort(function(Me,Ke){return $(Me,Ke,{searchValue:Se})});return xe.map(function(Me){return Array.isArray(Me.options)?q(q({},Me),{},{options:Me.options.length>0?Re(Me.options):Me.options}):Me})},Xe=d.useMemo(function(){return $?dt(Ve):Ve},[Ve,$,Se]),_e=d.useMemo(function(){return gM(Xe,{fieldNames:me,childrenAsData:Z})},[Xe,me,Z]),Ye=function(Ce){var xe=oe(Ce);if(Ae(xe),W&&(xe.length!==Ee.length||xe.some(function(Qe,Mt){var jt;return((jt=Ee[Mt])===null||jt===void 0?void 0:jt.value)!==(Qe==null?void 0:Qe.value)}))){var Me=X?xe:xe.map(function(Qe){return Qe.value}),Ke=xe.map(function(Qe){return yp(tt(Qe.value))});W(ne?Me:Me[0],ne?Ke:Ke[0])}},Pe=d.useState(null),Fe=re(Pe,2),wt=Fe[0],mt=Fe[1],Bt=d.useState(0),At=re(Bt,2),nn=At[0],vn=At[1],Vt=M!==void 0?M:r!=="combobox",Tt=d.useCallback(function(Re,Ce){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=xe.source,Ke=Me===void 0?"keyboard":Me;vn(Ce),s&&r==="combobox"&&Re!==null&&Ke==="keyboard"&&mt(String(Re))},[s,r]),St=function(Ce,xe,Me){var Ke=function(){var Kt,Yt=tt(Ce);return[X?{label:Yt==null?void 0:Yt[me.label],value:Ce,key:(Kt=Yt==null?void 0:Yt.key)!==null&&Kt!==void 0?Kt:Ce}:Ce,yp(Yt)]};if(xe&&b){var Qe=Ke(),Mt=re(Qe,2),jt=Mt[0],Ot=Mt[1];b(jt,Ot)}else if(!xe&&x&&Me!=="clear"){var It=Ke(),mn=re(It,2),sn=mn[0],gn=mn[1];x(sn,gn)}},Wt=Fy(function(Re,Ce){var xe,Me=ne?Ce.selected:!0;Me?xe=ne?[].concat(Be(Ee),[Re]):[Re]:xe=Ee.filter(function(Ke){return Ke.value!==Re}),Ye(xe),St(Re,Me),r==="combobox"?mt(""):(!bp||h)&&(fe(""),mt(""))}),Lt=function(Ce,xe){Ye(Ce);var Me=xe.type,Ke=xe.values;(Me==="remove"||Me==="clear")&&Ke.forEach(function(Qe){St(Qe.value,!1,Me)})},Ze=function(Ce,xe){if(fe(Ce),mt(null),xe.source==="submit"){var Me=(Ce||"").trim();if(Me){var Ke=Array.from(new Set([].concat(Be(bt),[Me])));Ye(Ke),St(Me,!0),fe("")}return}xe.source!=="blur"&&(r==="combobox"&&Ye(Ce),v==null||v(Ce))},yt=function(Ce){var xe=Ce;r!=="tags"&&(xe=Ce.map(function(Ke){var Qe=he.get(Ke);return Qe==null?void 0:Qe.value}).filter(function(Ke){return Ke!==void 0}));var Me=Array.from(new Set([].concat(Be(bt),Be(xe))));Ye(Me),Me.forEach(function(Ke){St(Ke,!0)})},at=d.useMemo(function(){var Re=z!==!1&&S!==!1;return q(q({},ae),{},{flattenOptions:_e,onActiveValue:Tt,defaultActiveFirstOption:Vt,onSelect:Wt,menuItemSelectedIcon:_,rawValues:bt,fieldNames:me,virtual:Re,direction:L,listHeight:A,listItemHeight:K,childrenAsData:Z,maxCount:k,optionRender:I})},[k,ae,_e,Tt,Vt,Wt,_,bt,me,z,S,L,A,K,Z,I]);return d.createElement(rv.Provider,{value:at},d.createElement(xM,ke({},F,{id:Y,prefixCls:l,ref:t,omitDomProps:JM,mode:r,displayValues:lt,onDisplayValuesChange:Lt,direction:L,searchValue:Se,onSearch:Ze,autoClearSearchValue:h,onSearchSplit:yt,dropdownMatchSelectWidth:S,OptionList:HM,emptyOptions:!_e.length,activeValue:wt,activeDescendantId:"".concat(Y,"_list_").concat(nn)})))}),av=tN;av.Option=iv;av.OptGroup=ov;function ax(e,t,n){return ce({[`${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 lx=(e,t)=>t||e,nN=()=>{const[,e]=Wr(),[t]=Ja("Empty"),r=new dn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rN=()=>{const[,e]=Wr(),[t]=Ja("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:u,contentColor:f}=d.useMemo(()=>({borderColor:new dn(n).onBackground(l).toHexString(),shadowColor:new dn(r).onBackground(l).toHexString(),contentColor:new dn(o).onBackground(l).toHexString()}),[n,r,o,l]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:s},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},oN=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:l,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:s,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}}}}},iN=On("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=fn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return oN(o)});var aN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sx=d.createElement(nN,null),cx=d.createElement(rN,null),ho=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:l,description:s,children:u,imageStyle:f,style:m,classNames:v,styles:g}=e,h=aN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:x,className:C,style:S,classNames:E,styles:$,image:R}=Vr("empty"),P=b("empty",o),[O,I,T]=iN(P),[M]=Ja("Empty"),_=typeof s<"u"?s:M==null?void 0:M.description,z=typeof _=="string"?_:"empty",L=(t=l??R)!==null&&t!==void 0?t:sx;let j=null;return typeof L=="string"?j=d.createElement("img",{draggable:!1,alt:z,src:L}):j=L,O(d.createElement("div",Object.assign({className:ce(I,T,P,C,{[`${P}-normal`]:L===cx,[`${P}-rtl`]:x==="rtl"},n,r,E.root,v==null?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),g==null?void 0:g.root),m)},h),d.createElement("div",{className:ce(`${P}-image`,E.image,v==null?void 0:v.image),style:Object.assign(Object.assign(Object.assign({},f),$.image),g==null?void 0:g.image)},j),_&&d.createElement("div",{className:ce(`${P}-description`,E.description,v==null?void 0:v.description),style:Object.assign(Object.assign({},$.description),g==null?void 0:g.description)},_),u&&d.createElement("div",{className:ce(`${P}-footer`,E.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},$.footer),g==null?void 0:g.footer)},u)))};ho.PRESENTED_IMAGE_DEFAULT=sx;ho.PRESENTED_IMAGE_SIMPLE=cx;const ux=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Gt),r=n("empty");switch(t){case"Table":case"List":return J.createElement(ho,{image:ho.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return J.createElement(ho,{image:ho.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return J.createElement(ho,null)}},dx=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=d.useContext(Gt),u=d.useContext(u_),f=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=u??f)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const v=A2.includes(m);return[m,v]},lN=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 sN(e,t){return e||lN(t)}const Hy=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"}},cN=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},lr(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,[`
211
+ ${o}${u}bottomLeft,
212
+ ${l}${u}bottomLeft
213
+ `]:{animationName:T1},[`
214
+ ${o}${u}topLeft,
215
+ ${l}${u}topLeft,
216
+ ${o}${u}topRight,
217
+ ${l}${u}topRight
218
+ `]:{animationName:M1},[`${s}${u}bottomLeft`]:{animationName:_1},[`
219
+ ${s}${u}topLeft,
220
+ ${s}${u}topRight
221
+ `]:{animationName:N1},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Hy(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"},eu),"&-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({},Hy(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},iu(e,"slide-up"),iu(e,"slide-down"),iy(e,"move-up"),iy(e,"move-down")]},uN=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,l=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(l).sub(o).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:se(t),itemLineHeight:se(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},dN=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fN=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:f,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:v}=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:v,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(v).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ms()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},mN=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=dN(e),u=t?`${n}-${t}`:"",f=uN(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},fN(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:f.basePadding,paddingBlock:f.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se(r)} 0`,lineHeight:se(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:se(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:se(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${o}-item + ${o}-item,
222
+ ${n}-prefix + ${n}-selection-wrap
223
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:se(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function rm(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
224
+ &${n}-show-arrow ${n}-selector,
225
+ &${n}-allow-clear ${n}-selector
226
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[mN(e,t),o]}const pN=e=>{const{componentCls:t}=e,n=fn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=fn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[rm(e),rm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},rm(r,"lg")]};function om(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},lr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:se(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
227
+ ${n}-selection-item,
228
+ ${n}-selection-placeholder
229
+ `]:{display:"block",padding:0,lineHeight:se(l),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"'}}),[`
230
+ &${n}-show-arrow ${n}-selection-item,
231
+ &${n}-show-arrow ${n}-selection-search,
232
+ &${n}-show-arrow ${n}-selection-placeholder
233
+ `]:{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 ${se(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:se(l)}}},[`&${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 ${se(r)}`,"&:after":{display:"none"}}}}}}}function vN(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[om(e),om(fn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${se(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
234
+ &${t}-show-arrow ${t}-selection-item,
235
+ &${t}-show-arrow ${t}-selection-placeholder
236
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},om(fn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const gN=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:v,fontWeightStrong:g,controlItemBgActive:h,controlItemBgHover:b,colorBgContainer:x,colorFillSecondary:C,colorBgContainerDisabled:S,colorTextDisabled:E,colorPrimaryHover:$,colorPrimary:R,controlOutline:P}=e,O=u*2,I=r*2,T=Math.min(o-O,o-I),M=Math.min(l-O,l-I),_=Math.min(s-O,s-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:m+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:h,optionActiveBg:b,optionPadding:`${(o-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:x,clearBg:x,singleItemHeightLG:s,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:M,multipleItemHeightLG:_,multipleSelectorBgDisabled:S,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:R,activeOutlineColor:P,selectAffixPadding:u}},fx=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${se(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 ${se(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Vy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fx(e,t))}),hN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Vy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Vy(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:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${se(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}}}},Wy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mx(e,t))}),yN=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Wy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Wy(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:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),bN=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${se(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:`${se(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}}}}),px=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${se(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}}}},Uy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},px(e,t))}),SN=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},px(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Uy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Uy(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:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),xN=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},hN(e)),yN(e)),bN(e)),SN(e))}),CN=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"}}}},wN=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"}}}},$N=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},CN(e)),wN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},eu),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},eu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ms()),{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)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},EN=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$N(e),vN(e),pN(e),cN(e),{[`${t}-rtl`]:{direction:"rtl"}},ku(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RN=On("Select",(e,{rootPrefixCls:t})=>{const n=fn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[EN(n),xN(n)]},gN,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ON={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"},IN=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:ON}))},vx=d.forwardRef(IN),PN={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"},TN=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:PN}))},_N=d.forwardRef(TN),MN={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"},NN=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:MN}))},zN=d.forwardRef(NN);function jN({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:l,hasFeedback:s,prefixCls:u,showSuffixIcon:f,feedbackIcon:m,showArrow:v,componentName:g}){const h=t??d.createElement(Kp,null),b=E=>e===null&&!s&&!v?null:d.createElement(d.Fragment,null,f!==!1&&E,s&&m);let x=null;if(e!==void 0)x=b(e);else if(o)x=b(d.createElement(Ru,{spin:!0}));else{const E=`${u}-suffix`;x=({open:$,showSearch:R})=>b($&&R?d.createElement(zN,{className:E}):d.createElement(_N,{className:E}))}let C=null;n!==void 0?C=n:l?C=d.createElement(vx,null):C=null;let S=null;return r!==void 0?S=r:S=d.createElement(Eu,null),{clearIcon:h,suffixIcon:x,itemIcon:C,removeIcon:S}}function kN(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(G1,{space:!0},e.apply(void 0,t))},[e])}function LN(e,t){return t!==void 0?t:e!==null}var AN=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 gx="SECRET_COMBOBOX_MODE_DO_NOT_USE",DN=(e,t)=>{var n,r,o,l,s;const{prefixCls:u,bordered:f,className:m,rootClassName:v,getPopupContainer:g,popupClassName:h,dropdownClassName:b,listHeight:x=256,placement:C,listItemHeight:S,size:E,disabled:$,notFoundContent:R,status:P,builtinPlacements:O,dropdownMatchSelectWidth:I,popupMatchSelectWidth:T,direction:M,style:_,allowClear:z,variant:L,dropdownStyle:j,transitionName:A,tagRender:B,maxCount:K,prefix:V,dropdownRender:U,popupRender:D,onDropdownVisibleChange:X,onOpenChange:W,styles:k,classNames:F}=e,Y=AN(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:ne,getPrefixCls:Z,renderEmpty:ee,direction:me,virtual:pe,popupMatchSelectWidth:ue,popupOverflow:Se}=d.useContext(Gt),{showSearch:fe,style:ae,styles:ye,className:he,classNames:ve}=Vr("select"),[,oe]=Wr(),be=S??(oe==null?void 0:oe.controlHeight),we=Z("select",u),$e=Z(),Ae=M??me,{compactSize:je,compactItemClassnames:Ie}=Pu(we,Ae),[Le,Ee]=dx("select",L,f),tt=ps(we),[lt,bt,st]=RN(we,tt),Ue=d.useMemo(()=>{const{mode:Me}=e;if(Me!=="combobox")return Me===gx?"combobox":Me},[e.mode]),it=Ue==="multiple"||Ue==="tags",Ve=LN(e.suffixIcon,e.showArrow),dt=(n=T??I)!==null&&n!==void 0?n:ue,Xe=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((o=ye.popup)===null||o===void 0?void 0:o.root)||j,_e=kN(D||U),Ye=W||X,{status:Pe,hasFeedback:Fe,isFormItemInput:wt,feedbackIcon:mt}=d.useContext(su),Bt=lx(Pe,P);let At;R!==void 0?At=R:Ue==="combobox"?At=null:At=(ee==null?void 0:ee("Select"))||d.createElement(ux,{componentName:"Select"});const{suffixIcon:nn,itemIcon:vn,removeIcon:Vt,clearIcon:Tt}=jN(Object.assign(Object.assign({},Y),{multiple:it,hasFeedback:Fe,feedbackIcon:mt,showSuffixIcon:Ve,prefixCls:we,componentName:"Select"})),St=z===!0?{clearIcon:Tt}:z,Wt=Hr(Y,["suffixIcon","itemIcon"]),Lt=ce(((l=F==null?void 0:F.popup)===null||l===void 0?void 0:l.root)||((s=ve==null?void 0:ve.popup)===null||s===void 0?void 0:s.root)||h||b,{[`${we}-dropdown-${Ae}`]:Ae==="rtl"},v,ve.root,F==null?void 0:F.root,st,tt,bt),Ze=Xo(Me=>{var Ke;return(Ke=E??je)!==null&&Ke!==void 0?Ke:Me}),yt=d.useContext(qa),at=$??yt,Re=ce({[`${we}-lg`]:Ze==="large",[`${we}-sm`]:Ze==="small",[`${we}-rtl`]:Ae==="rtl",[`${we}-${Le}`]:Ee,[`${we}-in-form-item`]:wt},ax(we,Bt,Fe),Ie,he,m,ve.root,F==null?void 0:F.root,v,st,tt,bt),Ce=d.useMemo(()=>C!==void 0?C:Ae==="rtl"?"bottomRight":"bottomLeft",[C,Ae]),[xe]=g1("SelectLike",Xe==null?void 0:Xe.zIndex);return lt(d.createElement(av,Object.assign({ref:t,virtual:pe,showSearch:fe},Wt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),k==null?void 0:k.root),ae),_),dropdownMatchSelectWidth:dt,transitionName:Qp($e,"slide-up",A),builtinPlacements:sN(O,Se),listHeight:x,listItemHeight:be,mode:Ue,prefixCls:we,placement:Ce,direction:Ae,prefix:V,suffixIcon:nn,menuItemSelectedIcon:vn,removeIcon:Vt,allowClear:St,notFoundContent:At,className:Re,getPopupContainer:g||ne,dropdownClassName:Lt,disabled:at,dropdownStyle:Object.assign(Object.assign({},Xe),{zIndex:xe}),maxCount:it?K:void 0,tagRender:it?B:void 0,dropdownRender:_e,onDropdownVisibleChange:Ye})))},tl=d.forwardRef(DN),BN=w_(tl,"dropdownAlign");tl.SECRET_COMBOBOX_MODE_DO_NOT_USE=gx;tl.Option=iv;tl.OptGroup=ov;tl._InternalPanelDoNotUseOrYouWillBeFired=BN;const hx=(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)},yx=(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)},Gi=["xxl","xl","lg","md","sm","xs"],FN=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)`}),HN=e=>{const t=e,n=[].concat(Gi).reverse();return n.forEach((r,o)=>{const l=r.toUpperCase(),s=`screen${l}Min`,u=`screen${l}`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);if(o<n.length-1){const f=`screen${l}Max`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);const v=`screen${n[o+1].toUpperCase()}Min`;if(!(t[f]<=t[v]))throw new Error(`${f}<=${v} fails : !(${t[f]}<=${t[v]})`)}}),e},VN=()=>{const[,e]=Wr(),t=FN(HN(e));return J.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return o=l,n.forEach(s=>s(o)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(o),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,s])=>{const u=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},o),{[l]:m}))},f=window.matchMedia(s);hx(f,u),this.matchHandlers[s]={mql:f,listener:u},u(f)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];yx(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function lv(e=!0,t={}){const n=d.useRef(t),[,r]=jO(),o=VN();return tn(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}function bx(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,l=e.bodyClassName,s=e.className,u=e.style;return d.createElement("div",{className:ce("".concat(n,"-content"),s),style:u},d.createElement("div",{className:ce("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ta={shiftX:64,adjustY:1},_a={adjustX:1,shiftY:!0},eo=[0,0],WN={left:{points:["cr","cl"],overflow:_a,offset:[-4,0],targetOffset:eo},right:{points:["cl","cr"],overflow:_a,offset:[4,0],targetOffset:eo},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:eo},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:eo},topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:eo},leftTop:{points:["tr","tl"],overflow:_a,offset:[-4,0],targetOffset:eo},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:eo},rightTop:{points:["tl","tr"],overflow:_a,offset:[4,0],targetOffset:eo},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:eo},rightBottom:{points:["bl","br"],overflow:_a,offset:[4,0],targetOffset:eo},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:eo},leftBottom:{points:["br","bl"],overflow:_a,offset:[-4,0],targetOffset:eo}},UN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],GN=function(t,n){var r=t.overlayClassName,o=t.trigger,l=o===void 0?["hover"]:o,s=t.mouseEnterDelay,u=s===void 0?0:s,f=t.mouseLeaveDelay,m=f===void 0?.1:f,v=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,b=t.children,x=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,E=t.animation,$=t.motion,R=t.placement,P=R===void 0?"right":R,O=t.align,I=O===void 0?{}:O,T=t.destroyTooltipOnHide,M=T===void 0?!1:T,_=t.defaultVisible,z=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,B=t.showArrow,K=B===void 0?!0:B,V=t.classNames,U=t.styles,D=_t(t,UN),X=D1(A),W=d.useRef(null);d.useImperativeHandle(n,function(){return W.current});var k=q({},D);"visible"in t&&(k.popupVisible=t.visible);var F=function(){return d.createElement(bx,{key:"content",prefixCls:h,id:X,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:q(q({},L),U==null?void 0:U.body)},j)},Y=function(){var Z=d.Children.only(b),ee=(Z==null?void 0:Z.props)||{},me=q(q({},ee),{},{"aria-describedby":j?X:null});return d.cloneElement(b,me)};return d.createElement(Au,ke({popupClassName:ce(r,V==null?void 0:V.root),prefixCls:h,popup:F,action:l,builtinPlacements:WN,popupPlacement:P,ref:W,popupAlign:I,getPopupContainer:z,onPopupVisibleChange:x,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:E,popupMotion:$,defaultPopupVisible:_,autoDestroy:M,mouseLeaveDelay:m,popupStyle:q(q({},v),U==null?void 0:U.root),mouseEnterDelay:u,arrow:K},k),Y())};const KN=d.forwardRef(GN);function qN(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,l=0,s=o,u=r*1/Math.sqrt(2),f=o-r*(1-1/Math.sqrt(2)),m=o-n*(1/Math.sqrt(2)),v=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-m,h=v,b=2*o-u,x=f,C=2*o-l,S=s,E=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),R=`polygon(${$}px 100%, 50% ${$}px, ${2*o-$}px 100%, ${$}px 100%)`,P=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${u} ${f} L ${m} ${v} A ${n} ${n} 0 0 1 ${g} ${h} L ${b} ${x} A ${r} ${r} 0 0 0 ${C} ${S} Z')`;return{arrowShadowWidth:E,arrowPath:P,arrowPolygon:R}}const XN=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:u,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sx=8;function xx(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sx:r}}function Pc(e,t){return e?t:{}}function QN(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},XN(e,t,o)),{"&:before":{background:t}})]},Pc(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${se(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Pc(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${se(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Pc(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Pc(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function YN(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Gy={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"]}},ZN={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"]}},JN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ez(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l}=e,s=t/2,u={},f=xx({contentRadius:l,limitVerticalRadius:!0});return Object.keys(Gy).forEach(m=>{const v=r&&ZN[m]||Gy[m],g=Object.assign(Object.assign({},v),{offset:[0,0],dynamicInset:!0});switch(u[m]=g,JN.has(m)&&(g.autoArrow=!1),m){case"top":case"topLeft":case"topRight":g.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=s+o;break}if(r)switch(m){case"topLeft":case"bottomLeft":g.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":g.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":g.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":g.offset[1]=f.arrowOffsetHorizontal*2-s;break}g.overflow=YN(m,f,t,n),g.htmlRegion="visibleFirst"}),u}const tz=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:f,boxShadowSecondary:m,paddingSM:v,paddingXS:g,arrowOffsetHorizontal:h,sizePopupArrow:b}=e,x=t(s).add(b).add(h).equal(),C=t(s).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:C,minHeight:f,padding:`${se(e.calc(v).div(2).equal())} ${se(g)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:s,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,Sx)}},[`${n}-content`]:{position:"relative"}}),$u(e,(S,{darkColor:E})=>({[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:E},[`${n}-arrow`]:{"--antd-arrow-background-color":E}}}))),{"&-rtl":{direction:"rtl"}})},QN(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nz=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},xx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),qN(fn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Cx=(e,t=!0)=>On("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,u=fn(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[tz(u),CP(r,"zoom-big-fast")]},nz,{resetStyle:!1,injectStyle:t})(e),rz=Wi.map(e=>`${e}-inverse`),oz=["success","processing","error","default","warning"];function Du(e,t=!0){return t?[].concat(Be(rz),Be(Wi)).includes(e):Wi.includes(e)}function iz(e){return oz.includes(e)}function wx(e,t){const n=Du(t),r=ce({[`${e}-${t}`]:t&&n}),o={},l={},s=TP(t).toRgb(),f=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=f,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:l}}const az=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:u}=d.useContext(Gt),f=u("tooltip",t),[m,v,g]=Cx(f),h=wx(f,l),b=h.arrowStyle,x=Object.assign(Object.assign({},s),h.overlayStyle),C=ce(v,g,f,`${f}-pure`,`${f}-placement-${r}`,n,h.className);return m(d.createElement("div",{className:C,style:b},d.createElement("div",{className:`${f}-arrow`}),d.createElement(bx,Object.assign({},e,{className:v,prefixCls:f,overlayInnerStyle:x}),o)))};var lz=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 sz=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:u,overlayInnerStyle:f,children:m,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:h,destroyOnHidden:b,arrow:x=!0,title:C,overlay:S,builtinPlacements:E,arrowPointAtCenter:$=!1,autoAdjustOverflow:R=!0,motion:P,getPopupContainer:O,placement:I="top",mouseEnterDelay:T=.1,mouseLeaveDelay:M=.1,overlayStyle:_,rootClassName:z,overlayClassName:L,styles:j,classNames:A}=e,B=lz(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"]),K=!!x,[,V]=Wr(),{getPopupContainer:U,getPrefixCls:D,direction:X,className:W,style:k,classNames:F,styles:Y}=Vr("tooltip"),ne=Vp(),Z=d.useRef(null),ee=()=>{var Ve;(Ve=Z.current)===null||Ve===void 0||Ve.forceAlign()};d.useImperativeHandle(t,()=>{var Ve,dt;return{forceAlign:ee,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),ee()},nativeElement:(Ve=Z.current)===null||Ve===void 0?void 0:Ve.nativeElement,popupElement:(dt=Z.current)===null||dt===void 0?void 0:dt.popupElement}});const[me,pe]=tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ue=!C&&!S&&C!==0,Se=Ve=>{var dt,Xe;pe(ue?!1:Ve),ue||((dt=e.onOpenChange)===null||dt===void 0||dt.call(e,Ve),(Xe=e.onVisibleChange)===null||Xe===void 0||Xe.call(e,Ve))},fe=d.useMemo(()=>{var Ve,dt;let Xe=$;return typeof x=="object"&&(Xe=(dt=(Ve=x.pointAtCenter)!==null&&Ve!==void 0?Ve:x.arrowPointAtCenter)!==null&&dt!==void 0?dt:$),E||ez({arrowPointAtCenter:Xe,autoAdjustOverflow:R,arrowWidth:K?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS})},[$,x,E,V]),ae=d.useMemo(()=>C===0?C:S||C||"",[S,C]),ye=d.createElement(G1,{space:!0},typeof ae=="function"?ae():ae),he=D("tooltip",o),ve=D(),oe=e["data-popover-inject"];let be=me;!("open"in e)&&!("visible"in e)&&ue&&(be=!1);const we=d.isValidElement(m)&&!u1(m)?m:d.createElement("span",null,m),$e=we.props,Ae=!$e.className||typeof $e.className=="string"?ce($e.className,l||`${he}-open`):$e.className,[je,Ie,Le]=Cx(he,!oe),Ee=wx(he,u),tt=Ee.arrowStyle,lt=ce(L,{[`${he}-rtl`]:X==="rtl"},Ee.className,z,Ie,Le,W,F.root,A==null?void 0:A.root),bt=ce(F.body,A==null?void 0:A.body),[st,Ue]=g1("Tooltip",B.zIndex),it=d.createElement(KN,Object.assign({},B,{zIndex:st,showArrow:K,placement:I,mouseEnterDelay:T,mouseLeaveDelay:M,prefixCls:he,classNames:{root:lt,body:bt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),Y.root),k),_),j==null?void 0:j.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),f),j==null?void 0:j.body),Ee.overlayStyle)},getTooltipContainer:O||s||U,ref:Z,builtinPlacements:fe,overlay:ye,visible:be,onVisibleChange:Se,afterVisibleChange:v??g,arrowContent:d.createElement("span",{className:`${he}-arrow-content`}),motion:{motionName:Qp(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!h}),be?Po(we,{className:Ae}):we);return je(d.createElement(p1.Provider,{value:Ue},it))}),Bu=sz;Bu._InternalPanelDoNotUseOrYouWillBeFired=az;const cz=new Ht("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),uz=new Ht("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),dz=new Ht("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),fz=new Ht("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),mz=new Ht("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),pz=new Ht("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),vz=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:l,textFontSizeSM:s,statusSize:u,dotSize:f,textFontWeight:m,indicatorHeight:v,indicatorHeightSM:g,marginXS:h,calc:b}=e,x=`${r}-scroll-number`,C=$u(e,(S,{darkColor:E})=>({[`&${t} ${t}-color-${S}`]:{background:E,[`&:not(${t}-count)`]:{color:E},"a:hover &":{background:E}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:v,height:v,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:se(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(v).div(2).equal(),boxShadow:`0 0 0 ${se(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:s,lineHeight:se(g),borderRadius:b(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${se(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${se(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${x}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:pz,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:cz,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),C),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:dz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:fz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:mz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${x}-custom-component, ${t}-count`]:{transform:"none"},[`${x}-custom-component, ${x}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[x]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${x}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${x}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${x}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${x}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},$x=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,l=t,s=n,u=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return fn(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:u,badgeColor:f,badgeColorHover:m,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ex=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},gz=On("Badge",e=>{const t=$x(e);return vz(t)},Ex),hz=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,f=$u(e,(m,{darkColor:v})=>({[`&${s}-color-${m}`]:{background:v,color:v}}));return{[u]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",top:r,padding:`0 ${se(e.paddingXS)}`,color:e.colorPrimary,lineHeight:se(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${se(l(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${s}-placement-end`]:{insetInlineEnd:l(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:l(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},yz=On(["Badge","Ribbon"],e=>{const t=$x(e);return hz(t)},Ex),bz=e=>{const{className:t,prefixCls:n,style:r,color:o,children:l,text:s,placement:u="end",rootClassName:f}=e,{getPrefixCls:m,direction:v}=d.useContext(Gt),g=m("ribbon",n),h=`${g}-wrapper`,[b,x,C]=yz(g,h),S=Du(o,!1),E=ce(g,`${g}-placement-${u}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${o}`]:S},t),$={},R={};return o&&!S&&($.background=o,R.color=o),b(d.createElement("div",{className:ce(h,f,x,C)},l,d.createElement("div",{className:ce(E,x),style:Object.assign(Object.assign({},$),r)},d.createElement("span",{className:`${g}-text`},s),d.createElement("div",{className:`${g}-corner`,style:R}))))},Ky=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let l;return o&&(l={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:l,className:ce(`${t}-only-unit`,{current:r})},n)};function Sz(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const xz=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),l=Math.abs(n),[s,u]=d.useState(o),[f,m]=d.useState(l),v=()=>{u(o),m(l)};d.useEffect(()=>{const b=setTimeout(v,1e3);return()=>clearTimeout(b)},[o]);let g,h;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[d.createElement(Ky,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{g=[];const b=o+10,x=[];for(let $=o;$<=b;$+=1)x.push($);const C=f<l?1:-1,S=x.findIndex($=>$%10===s);g=(C<0?x.slice(0,S+1):x.slice(S)).map(($,R)=>{const P=$%10;return d.createElement(Ky,Object.assign({},e,{key:$,value:P,offset:C<0?R-S:R,current:R===S}))}),h={transform:`translateY(${-Sz(s,o,C)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:v},g)};var Cz=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 wz=d.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:l,style:s,title:u,show:f,component:m="sup",children:v}=e,g=Cz(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=d.useContext(Gt),b=h("scroll-number",n),x=Object.assign(Object.assign({},g),{"data-show":f,style:s,className:ce(b,o,l),title:u});let C=r;if(r&&Number(r)%1===0){const S=String(r).split("");C=d.createElement("bdi",null,S.map((E,$)=>d.createElement(xz,{prefixCls:b,count:Number(r),value:E,key:S.length-$})))}return s!=null&&s.borderColor&&(x.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),v?Po(v,S=>({className:ce(`${b}-custom-component`,S==null?void 0:S.className,l)})):d.createElement(m,Object.assign({},x,{ref:t}),C)});var $z=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 Ez=d.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:u,scrollNumberPrefixCls:f,children:m,status:v,text:g,color:h,count:b=null,overflowCount:x=99,dot:C=!1,size:S="default",title:E,offset:$,style:R,className:P,rootClassName:O,classNames:I,styles:T,showZero:M=!1}=e,_=$z(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:z,direction:L,badge:j}=d.useContext(Gt),A=z("badge",u),[B,K,V]=gz(A),U=b>x?`${x}+`:b,D=U==="0"||U===0||g==="0"||g===0,X=b===null||D&&!M,W=(v!=null||h!=null)&&X,k=v!=null||!D,F=C&&!D,Y=F?"":U,ne=d.useMemo(()=>((Y==null||Y==="")&&(g==null||g==="")||D&&!M)&&!F,[Y,D,M,F,g]),Z=d.useRef(b);ne||(Z.current=b);const ee=Z.current,me=d.useRef(Y);ne||(me.current=Y);const pe=me.current,ue=d.useRef(F);ne||(ue.current=F);const Se=d.useMemo(()=>{if(!$)return Object.assign(Object.assign({},j==null?void 0:j.style),R);const $e={marginTop:$[1]};return L==="rtl"?$e.left=Number.parseInt($[0],10):$e.right=-Number.parseInt($[0],10),Object.assign(Object.assign(Object.assign({},$e),j==null?void 0:j.style),R)},[L,$,R,j==null?void 0:j.style]),fe=E??(typeof ee=="string"||typeof ee=="number"?ee:void 0),ae=!ne&&(g===0?M:!!g&&g!==!0),ye=ae?d.createElement("span",{className:`${A}-status-text`},g):null,he=!ee||typeof ee!="object"?void 0:Po(ee,$e=>({style:Object.assign(Object.assign({},Se),$e.style)})),ve=Du(h,!1),oe=ce(I==null?void 0:I.indicator,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:W,[`${A}-status-${v}`]:!!v,[`${A}-color-${h}`]:ve}),be={};h&&!ve&&(be.color=h,be.background=h);const we=ce(A,{[`${A}-status`]:W,[`${A}-not-a-wrapper`]:!m,[`${A}-rtl`]:L==="rtl"},P,O,j==null?void 0:j.className,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,K,V);if(!m&&W&&(g||k||!X)){const $e=Se.color;return B(d.createElement("span",Object.assign({},_,{className:we,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.root),Se)}),d.createElement("span",{className:oe,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(l=j==null?void 0:j.styles)===null||l===void 0?void 0:l.indicator),be)}),ae&&d.createElement("span",{style:{color:$e},className:`${A}-status-text`},g)))}return B(d.createElement("span",Object.assign({ref:t},_,{className:we,style:Object.assign(Object.assign({},(s=j==null?void 0:j.styles)===null||s===void 0?void 0:s.root),T==null?void 0:T.root)}),m,d.createElement(qo,{visible:!ne,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:$e})=>{var Ae,je;const Ie=z("scroll-number",f),Le=ue.current,Ee=ce(I==null?void 0:I.indicator,(Ae=j==null?void 0:j.classNames)===null||Ae===void 0?void 0:Ae.indicator,{[`${A}-dot`]:Le,[`${A}-count`]:!Le,[`${A}-count-sm`]:S==="small",[`${A}-multiple-words`]:!Le&&pe&&pe.toString().length>1,[`${A}-status-${v}`]:!!v,[`${A}-color-${h}`]:ve});let tt=Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(je=j==null?void 0:j.styles)===null||je===void 0?void 0:je.indicator),Se);return h&&!ve&&(tt=tt||{},tt.background=h),d.createElement(wz,{prefixCls:Ie,show:!ne,motionClassName:$e,className:Ee,count:pe,title:fe,style:tt,key:"scrollNumber"},he)}),ye))}),Rx=Ez;Rx.Ribbon=bz;var Rz={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"},Oz=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:Rz}))},uu=d.forwardRef(Oz),Iz=qe.ESC,Pz=qe.TAB;function Tz(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,l=e.overlayRef,s=d.useRef(!1),u=function(){if(t){var g,h;(g=n.current)===null||g===void 0||(h=g.focus)===null||h===void 0||h.call(g),r==null||r(!1)}},f=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),s.current=!0,!0):!1},m=function(g){switch(g.keyCode){case Iz:u();break;case Pz:{var h=!1;s.current||(h=f()),h?g.preventDefault():u();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&yn(f,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var _z=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,l=d.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),s=Uo(t,Ya(l));return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(o,"-arrow")}),J.cloneElement(l,{ref:Xi(l)?s:void 0}))}),Ma={adjustX:1,adjustY:1},Na=[0,0],Mz={topLeft:{points:["bl","tl"],overflow:Ma,offset:[0,-4],targetOffset:Na},top:{points:["bc","tc"],overflow:Ma,offset:[0,-4],targetOffset:Na},topRight:{points:["br","tr"],overflow:Ma,offset:[0,-4],targetOffset:Na},bottomLeft:{points:["tl","bl"],overflow:Ma,offset:[0,4],targetOffset:Na},bottom:{points:["tc","bc"],overflow:Ma,offset:[0,4],targetOffset:Na},bottomRight:{points:["tr","br"],overflow:Ma,offset:[0,4],targetOffset:Na}},Nz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zz(e,t){var n,r=e.arrow,o=r===void 0?!1:r,l=e.prefixCls,s=l===void 0?"rc-dropdown":l,u=e.transitionName,f=e.animation,m=e.align,v=e.placement,g=v===void 0?"bottomLeft":v,h=e.placements,b=h===void 0?Mz:h,x=e.getPopupContainer,C=e.showAction,S=e.hideAction,E=e.overlayClassName,$=e.overlayStyle,R=e.visible,P=e.trigger,O=P===void 0?["hover"]:P,I=e.autoFocus,T=e.overlay,M=e.children,_=e.onVisibleChange,z=_t(e,Nz),L=J.useState(),j=re(L,2),A=j[0],B=j[1],K="visible"in e?R:A,V=J.useRef(null),U=J.useRef(null),D=J.useRef(null);J.useImperativeHandle(t,function(){return V.current});var X=function(pe){B(pe),_==null||_(pe)};Tz({visible:K,triggerRef:D,onVisibleChange:X,autoFocus:I,overlayRef:U});var W=function(pe){var ue=e.onOverlayClick;B(!1),ue&&ue(pe)},k=function(){return J.createElement(_z,{ref:U,overlay:T,prefixCls:s,arrow:o})},F=function(){return typeof T=="function"?k:k()},Y=function(){var pe=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?pe:!ue},ne=function(){var pe=e.openClassName;return pe!==void 0?pe:"".concat(s,"-open")},Z=J.cloneElement(M,{className:ce((n=M.props)===null||n===void 0?void 0:n.className,K&&ne()),ref:Xi(M)?Uo(D,Ya(M)):void 0}),ee=S;return!ee&&O.indexOf("contextMenu")!==-1&&(ee=["click"]),J.createElement(Au,ke({builtinPlacements:b},z,{prefixCls:s,ref:V,popupClassName:ce(E,H({},"".concat(s,"-show-arrow"),o)),popupStyle:$,action:O,showAction:C,hideAction:ee,popupPlacement:g,popupAlign:m,popupTransitionName:u,popupAnimation:f,popupVisible:K,stretch:Y()?"minWidth":"",popup:F(),onPopupVisibleChange:X,onPopupClick:W,getPopupContainer:x}),Z)}const jz=J.forwardRef(zz);var Ox=d.createContext(null);function Ix(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Px(e){var t=d.useContext(Ox);return Ix(t,e)}var kz=["children","locked"],So=d.createContext(null);function Lz(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function as(e){var t=e.children,n=e.locked,r=_t(e,kz),o=d.useContext(So),l=ds(function(){return Lz(o,r)},[o,r],function(s,u){return!n&&(s[0]!==u[0]||!Ql(s[1],u[1],!0))});return d.createElement(So.Provider,{value:l},t)}var Az=[],Tx=d.createContext(null);function Fu(){return d.useContext(Tx)}var _x=d.createContext(Az);function bs(e){var t=d.useContext(_x);return d.useMemo(function(){return e!==void 0?[].concat(Be(t),[e]):t},[t,e])}var Mx=d.createContext(null),sv=d.createContext({});function qy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Yp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),l=Number(o),s=null;return o&&!Number.isNaN(l)?s=l:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Dz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Be(e.querySelectorAll("*")).filter(function(r){return qy(r,t)});return qy(e,t)&&n.unshift(e),n}var xp=qe.LEFT,Cp=qe.RIGHT,wp=qe.UP,Uc=qe.DOWN,Gc=qe.ENTER,Nx=qe.ESC,Ml=qe.HOME,Nl=qe.END,Xy=[wp,Uc,xp,Cp];function Bz(e,t,n,r){var o,l="prev",s="next",u="children",f="parent";if(e==="inline"&&r===Gc)return{inlineTrigger:!0};var m=H(H({},wp,l),Uc,s),v=H(H(H(H({},xp,n?s:l),Cp,n?l:s),Uc,u),Gc,u),g=H(H(H(H(H(H({},wp,l),Uc,s),Gc,u),Nx,f),xp,n?u:f),Cp,n?f:u),h={inline:m,horizontal:v,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},b=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(b){case l:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Fz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Hz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function cv(e,t){var n=Dz(e,!0);return n.filter(function(r){return t.has(r)})}function Qy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=cv(e,t),l=o.length,s=o.findIndex(function(u){return n===u});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,o[s]}var $p=function(t,n){var r=new Set,o=new Map,l=new Map;return t.forEach(function(s){var u=document.querySelector("[data-menu-id='".concat(Ix(n,s),"']"));u&&(r.add(u),l.set(u,s),o.set(s,u))}),{elements:r,key2element:o,element2key:l}};function Vz(e,t,n,r,o,l,s,u,f,m){var v=d.useRef(),g=d.useRef();g.current=t;var h=function(){yn.cancel(v.current)};return d.useEffect(function(){return function(){h()}},[]),function(b){var x=b.which;if([].concat(Xy,[Gc,Nx,Ml,Nl]).includes(x)){var C=l(),S=$p(C,r),E=S,$=E.elements,R=E.key2element,P=E.element2key,O=R.get(t),I=Hz(O,$),T=P.get(I),M=Bz(e,s(T,!0).length===1,n,x);if(!M&&x!==Ml&&x!==Nl)return;(Xy.includes(x)||[Ml,Nl].includes(x))&&b.preventDefault();var _=function(U){if(U){var D=U,X=U.querySelector("a");X!=null&&X.getAttribute("href")&&(D=X);var W=P.get(U);u(W),h(),v.current=yn(function(){g.current===W&&D.focus()})}};if([Ml,Nl].includes(x)||M.sibling||!I){var z;!I||e==="inline"?z=o.current:z=Fz(I);var L,j=cv(z,$);x===Ml?L=j[0]:x===Nl?L=j[j.length-1]:L=Qy(z,$,I,M.offset),_(L)}else if(M.inlineTrigger)f(T);else if(M.offset>0)f(T,!0),h(),v.current=yn(function(){S=$p(C,r);var V=I.getAttribute("aria-controls"),U=document.getElementById(V),D=Qy(U,S.elements);_(D)},5);else if(M.offset<0){var A=s(T,!0),B=A[A.length-2],K=R.get(B);f(B,!1),_(K)}}m==null||m(b)}}function Wz(e){Promise.resolve().then(e)}var uv="__RC_UTIL_PATH_SPLIT__",Yy=function(t){return t.join(uv)},Uz=function(t){return t.split(uv)},Ep="rc-menu-more";function Gz(){var e=d.useState({}),t=re(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),l=d.useState([]),s=re(l,2),u=s[0],f=s[1],m=d.useRef(0),v=d.useRef(!1),g=function(){v.current||n({})},h=d.useCallback(function(R,P){var O=Yy(P);o.current.set(O,R),r.current.set(R,O),m.current+=1;var I=m.current;Wz(function(){I===m.current&&g()})},[]),b=d.useCallback(function(R,P){var O=Yy(P);o.current.delete(O),r.current.delete(R)},[]),x=d.useCallback(function(R){f(R)},[]),C=d.useCallback(function(R,P){var O=r.current.get(R)||"",I=Uz(O);return P&&u.includes(I[0])&&I.unshift(Ep),I},[u]),S=d.useCallback(function(R,P){return R.filter(function(O){return O!==void 0}).some(function(O){var I=C(O,!0);return I.includes(P)})},[C]),E=function(){var P=Be(r.current.keys());return u.length&&P.push(Ep),P},$=d.useCallback(function(R){var P="".concat(r.current.get(R)).concat(uv),O=new Set;return Be(o.current.keys()).forEach(function(I){I.startsWith(P)&&O.add(o.current.get(I))}),O},[]);return d.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:h,unregisterPath:b,refreshOverflowKeys:x,isSubPathKey:S,getKeyPath:C,getKeys:E,getSubPathKeys:$}}function Bl(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var Kz=Math.random().toFixed(5).toString().slice(2),Zy=0;function qz(e){var t=tr(e,{value:e}),n=re(t,2),r=n[0],o=n[1];return d.useEffect(function(){Zy+=1;var l="".concat(Kz,"-").concat(Zy);o("rc-menu-uuid-".concat(l))},[]),r}function zx(e,t,n,r){var o=d.useContext(So),l=o.activeKey,s=o.onActive,u=o.onInactive,f={active:l===e};return t||(f.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),s(e)},f.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),u(e)}),f}function jx(e){var t=d.useContext(So),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*o}:{paddingLeft:l*o}}function kx(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=d.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Xz=["item"];function du(e){var t=e.item,n=_t(e,Xz);return Object.defineProperty(n,"item",{get:function(){return ar(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Qz=["title","attribute","elementRef"],Yz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Zz=["active"],Jz=(function(e){Go(n,e);var t=Ko(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,u=o.elementRef,f=_t(o,Qz),m=Hr(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ar(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(Io.Item,ke({},s,{title:typeof l=="string"?l:void 0},m,{ref:u}))}}]),n})(d.Component),ej=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,u=e.children,f=e.role,m=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,b=e.onFocus,x=_t(e,Yz),C=Px(o),S=d.useContext(So),E=S.prefixCls,$=S.onItemClick,R=S.disabled,P=S.overflowDisabled,O=S.itemIcon,I=S.selectedKeys,T=S.onActive,M=d.useContext(sv),_=M._internalRenderMenuItem,z="".concat(E,"-item"),L=d.useRef(),j=d.useRef(),A=R||l,B=qi(t,j),K=bs(o),V=function(ue){return{key:o,keyPath:Be(K).reverse(),item:L.current,domEvent:ue}},U=s||O,D=zx(o,A,m,v),X=D.active,W=_t(D,Zz),k=I.includes(o),F=jx(K.length),Y=function(ue){if(!A){var Se=V(ue);g==null||g(du(Se)),$(Se)}},ne=function(ue){if(h==null||h(ue),ue.which===qe.ENTER){var Se=V(ue);g==null||g(du(Se)),$(Se)}},Z=function(ue){T(o),b==null||b(ue)},ee={};e.role==="option"&&(ee["aria-selected"]=k);var me=d.createElement(Jz,ke({ref:L,elementRef:B,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":P&&C?null:C},Hr(x,["extra"]),W,ee,{component:"li","aria-disabled":l,style:q(q({},F),n),className:ce(z,H(H(H({},"".concat(z,"-active"),X),"".concat(z,"-selected"),k),"".concat(z,"-disabled"),A),r),onClick:Y,onKeyDown:ne,onFocus:Z}),u,d.createElement(kx,{props:q(q({},e),{},{isSelected:k}),icon:U}));return _&&(me=_(me,e,{selected:k})),me});function tj(e,t){var n=e.eventKey,r=Fu(),o=bs(n);return d.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:d.createElement(ej,ke({},e,{ref:t}))}const Hu=d.forwardRef(tj);var nj=["className","children"],rj=function(t,n){var r=t.className,o=t.children,l=_t(t,nj),s=d.useContext(So),u=s.prefixCls,f=s.mode,m=s.rtl;return d.createElement("ul",ke({className:ce(u,m&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},dv=d.forwardRef(rj);dv.displayName="SubMenuList";function fv(e,t){return Mr(e).map(function(n,r){if(d.isValidElement(n)){var o,l,s=n.key,u=(o=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&o!==void 0?o:s,f=u==null;f&&(u="tmp_key-".concat([].concat(Be(t),[r]).join("-")));var m={key:u,eventKey:u};return d.cloneElement(n,m)}return n})}var hr={adjustX:1,adjustY:1},oj={topLeft:{points:["bl","tl"],overflow:hr},topRight:{points:["br","tr"],overflow:hr},bottomLeft:{points:["tl","bl"],overflow:hr},bottomRight:{points:["tr","br"],overflow:hr},leftTop:{points:["tr","tl"],overflow:hr},leftBottom:{points:["br","bl"],overflow:hr},rightTop:{points:["tl","tr"],overflow:hr},rightBottom:{points:["bl","br"],overflow:hr}},ij={topLeft:{points:["bl","tl"],overflow:hr},topRight:{points:["br","tr"],overflow:hr},bottomLeft:{points:["tl","bl"],overflow:hr},bottomRight:{points:["tr","br"],overflow:hr},rightTop:{points:["tr","tl"],overflow:hr},rightBottom:{points:["br","bl"],overflow:hr},leftTop:{points:["tl","tr"],overflow:hr},leftBottom:{points:["bl","br"],overflow:hr}};function Lx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var aj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function lj(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,f=e.disabled,m=e.mode,v=e.onVisibleChange,g=d.useContext(So),h=g.getPopupContainer,b=g.rtl,x=g.subMenuOpenDelay,C=g.subMenuCloseDelay,S=g.builtinPlacements,E=g.triggerSubMenuAction,$=g.forceSubMenuRender,R=g.rootClassName,P=g.motion,O=g.defaultMotions,I=d.useState(!1),T=re(I,2),M=T[0],_=T[1],z=q(b?q({},ij):q({},oj),S),L=aj[m],j=Lx(m,P,O),A=d.useRef(j);m!=="inline"&&(A.current=j);var B=q(q({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),K=d.useRef();return d.useEffect(function(){return K.current=yn(function(){_(n)}),function(){yn.cancel(K.current)}},[n]),d.createElement(Au,{prefixCls:t,popupClassName:ce("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),b),s,R),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:z,popupPlacement:L,popupVisible:M,popup:o,popupStyle:l,popupAlign:u&&{offset:u},action:f?[]:[E],mouseEnterDelay:x,mouseLeaveDelay:C,onPopupVisibleChange:v,forceRender:$,popupMotion:B,fresh:!0},r)}function sj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=d.useContext(So),u=s.prefixCls,f=s.forceSubMenuRender,m=s.motion,v=s.defaultMotions,g=s.mode,h=d.useRef(!1);h.current=g===l;var b=d.useState(!h.current),x=re(b,2),C=x[0],S=x[1],E=h.current?n:!1;d.useEffect(function(){h.current&&S(!1)},[g]);var $=q({},Lx(l,m,v));r.length>1&&($.motionAppear=!1);var R=$.onVisibleChanged;return $.onVisibleChanged=function(P){return!h.current&&!P&&S(!0),R==null?void 0:R(P)},C?null:d.createElement(as,{mode:l,locked:!h.current},d.createElement(qo,ke({visible:E},$,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(P){var O=P.className,I=P.style;return d.createElement(dv,{id:t,className:O,style:I},o)}))}var cj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],uj=["active"],dj=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,u=e.internalPopupClose,f=e.children,m=e.itemIcon,v=e.expandIcon,g=e.popupClassName,h=e.popupOffset,b=e.popupStyle,x=e.onClick,C=e.onMouseEnter,S=e.onMouseLeave,E=e.onTitleClick,$=e.onTitleMouseEnter,R=e.onTitleMouseLeave,P=_t(e,cj),O=Px(l),I=d.useContext(So),T=I.prefixCls,M=I.mode,_=I.openKeys,z=I.disabled,L=I.overflowDisabled,j=I.activeKey,A=I.selectedKeys,B=I.itemIcon,K=I.expandIcon,V=I.onItemClick,U=I.onOpenChange,D=I.onActive,X=d.useContext(sv),W=X._internalRenderSubMenuItem,k=d.useContext(Mx),F=k.isSubPathKey,Y=bs(),ne="".concat(T,"-submenu"),Z=z||s,ee=d.useRef(),me=d.useRef(),pe=m??B,ue=v??K,Se=_.includes(l),fe=!L&&Se,ae=F(A,l),ye=zx(l,Z,$,R),he=ye.active,ve=_t(ye,uj),oe=d.useState(!1),be=re(oe,2),we=be[0],$e=be[1],Ae=function(Pe){Z||$e(Pe)},je=function(Pe){Ae(!0),C==null||C({key:l,domEvent:Pe})},Ie=function(Pe){Ae(!1),S==null||S({key:l,domEvent:Pe})},Le=d.useMemo(function(){return he||(M!=="inline"?we||F([j],l):!1)},[M,he,j,we,l,F]),Ee=jx(Y.length),tt=function(Pe){Z||(E==null||E({key:l,domEvent:Pe}),M==="inline"&&U(l,!Se))},lt=Bl(function(Ye){x==null||x(du(Ye)),V(Ye)}),bt=function(Pe){M!=="inline"&&U(l,Pe)},st=function(){D(l)},Ue=O&&"".concat(O,"-popup"),it=d.useMemo(function(){return d.createElement(kx,{icon:M!=="horizontal"?ue:void 0,props:q(q({},e),{},{isOpen:fe,isSubMenu:!0})},d.createElement("i",{className:"".concat(ne,"-arrow")}))},[M,ue,e,fe,ne]),Ve=d.createElement("div",ke({role:"menuitem",style:Ee,className:"".concat(ne,"-title"),tabIndex:Z?null:-1,ref:ee,title:typeof o=="string"?o:null,"data-menu-id":L&&O?null:O,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":Z,onClick:tt,onFocus:st},ve),o,it),dt=d.useRef(M);if(M!=="inline"&&Y.length>1?dt.current="vertical":dt.current=M,!L){var Xe=dt.current;Ve=d.createElement(lj,{mode:Xe,prefixCls:ne,visible:!u&&fe&&M!=="inline",popupClassName:g,popupOffset:h,popupStyle:b,popup:d.createElement(as,{mode:Xe==="horizontal"?"vertical":Xe},d.createElement(dv,{id:Ue,ref:me},f)),disabled:Z,onVisibleChange:bt},Ve)}var _e=d.createElement(Io.Item,ke({ref:t,role:"none"},P,{component:"li",style:n,className:ce(ne,"".concat(ne,"-").concat(M),r,H(H(H(H({},"".concat(ne,"-open"),fe),"".concat(ne,"-active"),Le),"".concat(ne,"-selected"),ae),"".concat(ne,"-disabled"),Z)),onMouseEnter:je,onMouseLeave:Ie}),Ve,!L&&d.createElement(sj,{id:Ue,open:fe,keyPath:Y},f));return W&&(_e=W(_e,e,{selected:ae,active:Le,open:fe,disabled:Z})),d.createElement(as,{onItemClick:lt,mode:M==="horizontal"?"vertical":M,itemIcon:pe,expandIcon:ue},_e)}),mv=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=bs(n),l=fv(r,o),s=Fu();d.useEffect(function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}},[o]);var u;return s?u=l:u=d.createElement(dj,ke({ref:t},e),l),d.createElement(_x.Provider,{value:o},u)});function Ax(e){var t=e.className,n=e.style,r=d.useContext(So),o=r.prefixCls,l=Fu();return l?null:d.createElement("li",{role:"separator",className:ce("".concat(o,"-item-divider"),t),style:n})}var fj=["className","title","eventKey","children"],mj=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=_t(e,fj),s=d.useContext(So),u=s.prefixCls,f="".concat(u,"-item-group");return d.createElement("li",ke({ref:t,role:"presentation"},l,{onClick:function(v){return v.stopPropagation()},className:ce(f,n)}),d.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(f,"-list")},o))}),Dx=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=bs(n),l=fv(r,o),s=Fu();return s?l:d.createElement(mj,ke({ref:t},Hr(e,["warnKey"])),l)}),pj=["label","children","key","type","extra"];function Rp(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(u,f){if(u&&vt(u)==="object"){var m=u,v=m.label,g=m.children,h=m.key,b=m.type,x=m.extra,C=_t(m,pj),S=h??"tmp-".concat(f);return g||b==="group"?b==="group"?d.createElement(o,ke({key:S},C,{title:v}),Rp(g,t,n)):d.createElement(l,ke({key:S},C,{title:v}),Rp(g,t,n)):b==="divider"?d.createElement(s,ke({key:S},C)):d.createElement(r,ke({key:S},C,{extra:x}),v,(!!x||x===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},x))}return null}).filter(function(u){return u})}function Jy(e,t,n,r,o){var l=e,s=q({divider:Ax,item:Hu,group:Dx,submenu:mv},r);return t&&(l=Rp(t,s,o)),fv(l,n)}var vj=["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"],ji=[],gj=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,l=o===void 0?"rc-menu":o,s=r.rootClassName,u=r.style,f=r.className,m=r.tabIndex,v=m===void 0?0:m,g=r.items,h=r.children,b=r.direction,x=r.id,C=r.mode,S=C===void 0?"vertical":C,E=r.inlineCollapsed,$=r.disabled,R=r.disabledOverflow,P=r.subMenuOpenDelay,O=P===void 0?.1:P,I=r.subMenuCloseDelay,T=I===void 0?.1:I,M=r.forceSubMenuRender,_=r.defaultOpenKeys,z=r.openKeys,L=r.activeKey,j=r.defaultActiveFirst,A=r.selectable,B=A===void 0?!0:A,K=r.multiple,V=K===void 0?!1:K,U=r.defaultSelectedKeys,D=r.selectedKeys,X=r.onSelect,W=r.onDeselect,k=r.inlineIndent,F=k===void 0?24:k,Y=r.motion,ne=r.defaultMotions,Z=r.triggerSubMenuAction,ee=Z===void 0?"hover":Z,me=r.builtinPlacements,pe=r.itemIcon,ue=r.expandIcon,Se=r.overflowedIndicator,fe=Se===void 0?"...":Se,ae=r.overflowedIndicatorPopupClassName,ye=r.getPopupContainer,he=r.onClick,ve=r.onOpenChange,oe=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,we=r._internalRenderSubMenuItem,$e=r._internalComponents,Ae=_t(r,vj),je=d.useMemo(function(){return[Jy(h,g,ji,$e,l),Jy(h,g,ji,{},l)]},[h,g,$e]),Ie=re(je,2),Le=Ie[0],Ee=Ie[1],tt=d.useState(!1),lt=re(tt,2),bt=lt[0],st=lt[1],Ue=d.useRef(),it=qz(x),Ve=b==="rtl",dt=tr(_,{value:z,postState:function(nt){return nt||ji}}),Xe=re(dt,2),_e=Xe[0],Ye=Xe[1],Pe=function(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ut(){Ye(nt),ve==null||ve(nt)}Je?Si.flushSync(Ut):Ut()},Fe=d.useState(_e),wt=re(Fe,2),mt=wt[0],Bt=wt[1],At=d.useRef(!1),nn=d.useMemo(function(){return(S==="inline"||S==="vertical")&&E?["vertical",E]:[S,!1]},[S,E]),vn=re(nn,2),Vt=vn[0],Tt=vn[1],St=Vt==="inline",Wt=d.useState(Vt),Lt=re(Wt,2),Ze=Lt[0],yt=Lt[1],at=d.useState(Tt),Re=re(at,2),Ce=Re[0],xe=Re[1];d.useEffect(function(){yt(Vt),xe(Tt),At.current&&(St?Ye(mt):Pe(ji))},[Vt,Tt]);var Me=d.useState(0),Ke=re(Me,2),Qe=Ke[0],Mt=Ke[1],jt=Qe>=Le.length-1||Ze!=="horizontal"||R;d.useEffect(function(){St&&Bt(_e)},[_e]),d.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var Ot=Gz(),It=Ot.registerPath,mn=Ot.unregisterPath,sn=Ot.refreshOverflowKeys,gn=Ot.isSubPathKey,$n=Ot.getKeyPath,Kt=Ot.getKeys,Yt=Ot.getSubPathKeys,Ne=d.useMemo(function(){return{registerPath:It,unregisterPath:mn}},[It,mn]),We=d.useMemo(function(){return{isSubPathKey:gn}},[gn]);d.useEffect(function(){sn(jt?ji:Le.slice(Qe+1).map(function(Xt){return Xt.key}))},[Qe,jt]);var Ct=tr(L||j&&((n=Le[0])===null||n===void 0?void 0:n.key),{value:L}),ct=re(Ct,2),et=ct[0],Ge=ct[1],xt=Bl(function(Xt){Ge(Xt)}),kt=Bl(function(){Ge(void 0)});d.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(nt){var Je,Ut=Kt(),Qt=$p(Ut,it),rn=Qt.elements,ln=Qt.key2element,rr=Qt.element2key,jn=cv(Ue.current,rn),zt=et??(jn[0]?rr.get(jn[0]):(Je=Le.find(function($r){return!$r.props.disabled}))===null||Je===void 0?void 0:Je.key),Wn=ln.get(zt);if(zt&&Wn){var Xn;Wn==null||(Xn=Wn.focus)===null||Xn===void 0||Xn.call(Wn,nt)}}}});var He=tr(U||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?ji:[nt]}}),ut=re(He,2),$t=ut[0],Jt=ut[1],zn=function(nt){if(B){var Je=nt.key,Ut=$t.includes(Je),Qt;V?Ut?Qt=$t.filter(function(ln){return ln!==Je}):Qt=[].concat(Be($t),[Je]):Qt=[Je],Jt(Qt);var rn=q(q({},nt),{},{selectedKeys:Qt});Ut?W==null||W(rn):X==null||X(rn)}!V&&_e.length&&Ze!=="inline"&&Pe(ji)},xn=Bl(function(Xt){he==null||he(du(Xt)),zn(Xt)}),sr=Bl(function(Xt,nt){var Je=_e.filter(function(Qt){return Qt!==Xt});if(nt)Je.push(Xt);else if(Ze!=="inline"){var Ut=Yt(Xt);Je=Je.filter(function(Qt){return!Ut.has(Qt)})}Ql(_e,Je,!0)||Pe(Je,!0)}),Hn=function(nt,Je){var Ut=Je??!_e.includes(nt);sr(nt,Ut)},cr=Vz(Ze,et,Ve,it,Ue,Kt,$n,Ge,Hn,oe);d.useEffect(function(){st(!0)},[]);var Vn=d.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:we}},[be,we]),nr=Ze!=="horizontal"||R?Le:Le.map(function(Xt,nt){return d.createElement(as,{key:Xt.key,overflowDisabled:nt>Qe},Xt)}),ur=d.createElement(Io,ke({id:x,ref:Ue,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Hu,className:ce(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),f,H(H({},"".concat(l,"-inline-collapsed"),Ce),"".concat(l,"-rtl"),Ve),s),dir:b,style:u,role:"menu",tabIndex:v,data:nr,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var Je=nt.length,Ut=Je?Le.slice(-Je):null;return d.createElement(mv,{eventKey:Ep,title:fe,disabled:jt,internalPopupClose:Je===0,popupClassName:ae},Ut)},maxCount:Ze!=="horizontal"||R?Io.INVALIDATE:Io.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){Mt(nt)},onKeyDown:cr},Ae));return d.createElement(sv.Provider,{value:Vn},d.createElement(Ox.Provider,{value:it},d.createElement(as,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:_e,rtl:Ve,disabled:$,motion:bt?Y:null,defaultMotions:bt?ne:null,activeKey:et,onActive:xt,onInactive:kt,selectedKeys:$t,inlineIndent:F,subMenuOpenDelay:O,subMenuCloseDelay:T,forceSubMenuRender:M,builtinPlacements:me,triggerSubMenuAction:ee,getPopupContainer:ye,itemIcon:pe,expandIcon:ue,onItemClick:xn,onOpenChange:sr},d.createElement(Mx.Provider,{value:We},ur),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Tx.Provider,{value:Ne},Ee)))))}),Ss=gj;Ss.Item=Hu;Ss.SubMenu=mv;Ss.ItemGroup=Dx;Ss.Divider=Ax;var hj={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"},yj=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:hj}))},bj=d.forwardRef(yj);const Bx=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Sj=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:f,fontSize:m,bodyBg:v,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{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:l,padding:s,color:u,lineHeight:se(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:m,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Fx=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:u,colorBgContainer:f}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:o,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:o}},Hx=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Vx=On("Layout",Sj,Fx,{deprecatedTokens:Hx}),xj=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:u,triggerBg:f,headerHeight:m,zeroTriggerWidth:v,zeroTriggerHeight:g,borderRadiusLG:h,lightSiderBg:b,lightTriggerColor:x,lightTriggerBg:C,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:u,lineHeight:se(s),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(v).mul(-1).equal(),zIndex:1,width:v,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${se(h)} ${se(h)} 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(v).mul(-1).equal(),borderRadius:`${se(h)} 0 0 ${se(h)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:x,background:C},[`${t}-zero-width-trigger`]:{color:x,background:C,border:`1px solid ${S}`,borderInlineStart:0}}}}},Cj=On(["Layout","Sider"],xj,Fx,{deprecatedTokens:Hx});var wj=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 eb={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},$j=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Wx=d.createContext({}),Ej=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Ux=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:u="dark",style:f={},collapsible:m=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:x,onCollapse:C,onBreakpoint:S}=e,E=wj(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=d.useContext(Bx),[R,P]=d.useState("collapsed"in e?e.collapsed:s),[O,I]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);const T=(pe,ue)=>{"collapsed"in e||P(pe),C==null||C(pe,ue)},{getPrefixCls:M,direction:_}=d.useContext(Gt),z=M("layout-sider",n),[L,j,A]=Cj(z),B=d.useRef(null);B.current=pe=>{I(pe.matches),S==null||S(pe.matches),R!==pe.matches&&T(pe.matches,"responsive")},d.useEffect(()=>{function pe(Se){var fe;return(fe=B.current)===null||fe===void 0?void 0:fe.call(B,Se)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&x&&x in eb&&(ue=window.matchMedia(`screen and (max-width: ${eb[x]})`),hx(ue,pe),pe(ue)),()=>{yx(ue,pe)}},[x]),d.useEffect(()=>{const pe=Ej("ant-sider-");return $.addSider(pe),()=>$.removeSider(pe)},[]);const K=()=>{T(!R,"clickTrigger")},V=Hr(E,["collapsed"]),U=R?h:g,D=$j(U)?`${U}px`:String(U),X=Number.parseFloat(String(h||0))===0?d.createElement("span",{onClick:K,className:ce(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${v?"right":"left"}`),style:b},o||d.createElement(bj,null)):null,W=_==="rtl"==!v,Y={expanded:W?d.createElement(rs,null):d.createElement(uu,null),collapsed:W?d.createElement(uu,null):d.createElement(rs,null)}[R?"collapsed":"expanded"],ne=o!==null?X||d.createElement("div",{className:`${z}-trigger`,onClick:K,style:{width:D}},o||Y):null,Z=Object.assign(Object.assign({},f),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),ee=ce(z,`${z}-${u}`,{[`${z}-collapsed`]:!!R,[`${z}-has-trigger`]:m&&o!==null&&!X,[`${z}-below`]:!!O,[`${z}-zero-width`]:Number.parseFloat(D)===0},r,j,A),me=d.useMemo(()=>({siderCollapsed:R}),[R]);return L(d.createElement(Wx.Provider,{value:me},d.createElement("aside",Object.assign({className:ee},V,{style:Z,ref:t}),d.createElement("div",{className:`${z}-children`},l),m||O&&X?ne:null)))});var Rj={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"},Oj=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:Rj}))},Ij=d.forwardRef(Oj);function Vu(e){return fn(e,{inputAffixPadding:e.paddingXXS})}const Wu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:u,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:v,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:b,colorPrimary:x,controlOutlineWidth:C,controlOutline:S,colorErrorOutline:E,colorWarningOutline:$,colorBgContainer:R,inputFontSize:P,inputFontSizeLG:O,inputFontSizeSM:I}=e,T=P||n,M=I||T,_=O||u,z=Math.round((t-T*r)/2*10)/10-o,L=Math.round((l-M*r)/2*10)/10-o,j=Math.ceil((s-_*f)/2*10)/10-o;return{paddingBlock:Math.max(z,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(j,0),paddingInline:m-o,paddingInlineSM:v-o,paddingInlineLG:g-o,addonBg:h,activeBorderColor:x,hoverBorderColor:b,activeShadow:`0 0 0 ${C}px ${S}`,errorActiveShadow:`0 0 0 ${C}px ${E}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:R,activeBg:R,inputFontSize:T,inputFontSizeLG:_,inputFontSizeSM:M}},Pj=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Uu=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({},Pj(fn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),pv=(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}}),tb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},pv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Tj=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Uu(e))}),tb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_j=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Uu(e))}})}),Mj=(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)}},Gx=(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}}},rb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Nj=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Uu(e))}),rb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ob=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),zj=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ob(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ob(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:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Kx=(e,t)=>({background:e.colorBgContainer,borderWidth:`${se(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}}),ib=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Kx(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`}}),jj=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kx(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"}}),ib(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ib(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kj=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),qx=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${se(t)} ${se(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vv=e=>({padding:`${se(e.paddingBlockSM)} ${se(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${se(e.paddingBlock)} ${se(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kj(e.colorTextPlaceholder)),{"&-lg":Object.assign({},qx(e)),"&-sm":Object.assign({},vv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Lj=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({},qx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vv(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 ${se(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${se(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${se(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:`${se(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${se(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"},sR()),{[`${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},[`
237
+ & > ${t}-affix-wrapper,
238
+ & > ${t}-number-affix-wrapper,
239
+ & > ${n}-picker-range
240
+ `]:{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,
241
+ & > ${n}-select-auto-complete ${t},
242
+ & > ${n}-cascader-picker ${t},
243
+ & > ${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,
244
+ & > ${n}-select:first-child > ${n}-select-selector,
245
+ & > ${n}-select-auto-complete:first-child ${t},
246
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
247
+ & > ${n}-select:last-child > ${n}-select-selector,
248
+ & > ${n}-cascader-picker:last-child ${t},
249
+ & > ${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}}}})}},Aj=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,s=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({},lr(e)),gv(e)),Tj(e)),Nj(e)),Mj(e)),jj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Dj=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 ${se(e.inputAffixPadding)}`}}}},Bj=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:u}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},gv(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}}}),Dj(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Fj=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},lr(e)),Lj(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}}},_j(e)),zj(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}}})})}},Hj=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,
250
+ > ${t},
251
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Vj=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Wj=On(["Input","Shared"],e=>{const t=fn(e,Vu(e));return[Aj(t),Bj(t)]},Wu,{resetFont:!1});On(["Input","Component"],e=>{const t=fn(e,Vu(e));return[Fj(t),Hj(t),Vj(t),ku(t)]},Wu,{resetFont:!1});var Uj={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"},Gj=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:Uj}))},Kj=d.forwardRef(Gj);const Gu=d.createContext(null);var qj=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,l=t.indicator,s=l===void 0?{}:l,u=s.size,f=s.align,m=f===void 0?"center":f,v=d.useState(),g=re(v,2),h=g[0],b=g[1],x=d.useRef(),C=J.useCallback(function(E){return typeof u=="function"?u(E):typeof u=="number"?u:E},[u]);function S(){yn.cancel(x.current)}return d.useEffect(function(){var E={};if(n)if(r){E.width=C(n.width);var $=o?"right":"left";m==="start"&&(E[$]=n[$]),m==="center"&&(E[$]=n[$]+n.width/2,E.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&(E[$]=n[$]+n.width,E.transform="translateX(-100%)")}else E.height=C(n.height),m==="start"&&(E.top=n.top),m==="center"&&(E.top=n.top+n.height/2,E.transform="translateY(-50%)"),m==="end"&&(E.top=n.top+n.height,E.transform="translateY(-100%)");return S(),x.current=yn(function(){var R=h&&E&&Object.keys(E).every(function(P){var O=E[P],I=h[P];return typeof O=="number"&&typeof I=="number"?Math.round(O)===Math.round(I):O===I});R||b(E)}),S},[JSON.stringify(n),r,o,m,C]),{style:h}},ab={width:0,height:0,left:0,top:0};function Xj(e,t,n){return d.useMemo(function(){for(var r,o=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||ab,s=l.left+l.width,u=0;u<e.length;u+=1){var f=e[u].key,m=t.get(f);if(!m){var v;m=t.get((v=e[u-1])===null||v===void 0?void 0:v.key)||ab}var g=o.get(f)||q({},m);g.right=s-g.left-g.width,o.set(f,g)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function lb(e,t){var n=d.useRef(e),r=d.useState({}),o=re(r,2),l=o[1];function s(u){var f=typeof u=="function"?u(n.current):u;f!==n.current&&t(f,n.current),n.current=f,l({})}return[n.current,s]}var Qj=.1,sb=.01,Kc=20,cb=Math.pow(.995,Kc);function Yj(e,t){var n=d.useState(),r=re(n,2),o=r[0],l=r[1],s=d.useState(0),u=re(s,2),f=u[0],m=u[1],v=d.useState(0),g=re(v,2),h=g[0],b=g[1],x=d.useState(),C=re(x,2),S=C[0],E=C[1],$=d.useRef();function R(_){var z=_.touches[0],L=z.screenX,j=z.screenY;l({x:L,y:j}),window.clearInterval($.current)}function P(_){if(o){var z=_.touches[0],L=z.screenX,j=z.screenY;l({x:L,y:j});var A=L-o.x,B=j-o.y;t(A,B);var K=Date.now();m(K),b(K-f),E({x:A,y:B})}}function O(){if(o&&(l(null),E(null),S)){var _=S.x/h,z=S.y/h,L=Math.abs(_),j=Math.abs(z);if(Math.max(L,j)<Qj)return;var A=_,B=z;$.current=window.setInterval(function(){if(Math.abs(A)<sb&&Math.abs(B)<sb){window.clearInterval($.current);return}A*=cb,B*=cb,t(A*Kc,B*Kc)},Kc)}}var I=d.useRef();function T(_){var z=_.deltaX,L=_.deltaY,j=0,A=Math.abs(z),B=Math.abs(L);A===B?j=I.current==="x"?z:L:A>B?(j=z,I.current="x"):(j=L,I.current="y"),t(-j,-j)&&_.preventDefault()}var M=d.useRef(null);M.current={onTouchStart:R,onTouchMove:P,onTouchEnd:O,onWheel:T},d.useEffect(function(){function _(A){M.current.onTouchStart(A)}function z(A){M.current.onTouchMove(A)}function L(A){M.current.onTouchEnd(A)}function j(A){M.current.onWheel(A)}return document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",_,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",z),document.removeEventListener("touchend",L)}},[])}function Xx(e){var t=d.useState(0),n=re(t,2),r=n[0],o=n[1],l=d.useRef(0),s=d.useRef();return s.current=e,Nm(function(){var u;(u=s.current)===null||u===void 0||u.call(s)},[r]),function(){l.current===r&&(l.current+=1,o(l.current))}}function Zj(e){var t=d.useRef([]),n=d.useState({}),r=re(n,2),o=r[1],l=d.useRef(typeof e=="function"?e():e),s=Xx(function(){var f=l.current;t.current.forEach(function(m){f=m(f)}),t.current=[],l.current=f,o({})});function u(f){t.current.push(f),s()}return[l.current,u]}var ub={width:0,height:0,left:0,top:0,right:0};function Jj(e,t,n,r,o,l,s){var u=s.tabs,f=s.tabPosition,m=s.rtl,v,g,h;return["top","bottom"].includes(f)?(v="width",g=m?"right":"left",h=Math.abs(n)):(v="height",g="top",h=-n),d.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,x=b,C=0;C<b;C+=1){var S=e.get(u[C].key)||ub;if(Math.floor(S[g]+S[v])>Math.floor(h+t)){x=C-1;break}}for(var E=0,$=b-1;$>=0;$-=1){var R=e.get(u[$].key)||ub;if(R[g]<h){E=$+1;break}}return E>x?[0,-1]:[E,x]},[e,t,r,o,l,h,f,u.map(function(b){return b.key}).join("_"),m])}function db(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var e4="TABS_DQ";function Qx(e){return String(e).replace(/"/g,e4)}function hv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Yx=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,l=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),fb=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return vt(o)==="object"&&!d.isValidElement(o)?s=o:s.right=o,n==="right"&&(l=s.right),n==="left"&&(l=s.left),l?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),t4=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,l=e.locale,s=e.mobile,u=e.more,f=u===void 0?{}:u,m=e.style,v=e.className,g=e.editable,h=e.tabBarGutter,b=e.rtl,x=e.removeAriaLabel,C=e.onTabClick,S=e.getPopupContainer,E=e.popupClassName,$=d.useState(!1),R=re($,2),P=R[0],O=R[1],I=d.useState(null),T=re(I,2),M=T[0],_=T[1],z=f.icon,L=z===void 0?"More":z,j="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),B=M!==null?"".concat(j,"-").concat(M):null,K=l==null?void 0:l.dropdownAriaLabel;function V(Y,ne){Y.preventDefault(),Y.stopPropagation(),g.onEdit("remove",{key:ne,event:Y})}var U=d.createElement(Ss,{onClick:function(ne){var Z=ne.key,ee=ne.domEvent;C(Z,ee),O(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[M],"aria-label":K!==void 0?K:"expanded dropdown"},o.map(function(Y){var ne=Y.closable,Z=Y.disabled,ee=Y.closeIcon,me=Y.key,pe=Y.label,ue=hv(ne,ee,g,Z);return d.createElement(Hu,{key:me,id:"".concat(j,"-").concat(me),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(me),disabled:Z},d.createElement("span",null,pe),ue&&d.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),V(fe,me)}},ee||g.removeIcon||"×"))}));function D(Y){for(var ne=o.filter(function(ue){return!ue.disabled}),Z=ne.findIndex(function(ue){return ue.key===M})||0,ee=ne.length,me=0;me<ee;me+=1){Z=(Z+Y+ee)%ee;var pe=ne[Z];if(!pe.disabled){_(pe.key);return}}}function X(Y){var ne=Y.which;if(!P){[qe.DOWN,qe.SPACE,qe.ENTER].includes(ne)&&(O(!0),Y.preventDefault());return}switch(ne){case qe.UP:D(-1),Y.preventDefault();break;case qe.DOWN:D(1),Y.preventDefault();break;case qe.ESC:O(!1);break;case qe.SPACE:case qe.ENTER:M!==null&&C(M,Y);break}}d.useEffect(function(){var Y=document.getElementById(B);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[M]),d.useEffect(function(){P||_(null)},[P]);var W=H({},b?"marginRight":"marginLeft",h);o.length||(W.visibility="hidden",W.order=1);var k=ce(H({},"".concat(A,"-rtl"),b)),F=s?null:d.createElement(jz,ke({prefixCls:A,overlay:U,visible:o.length?P:!1,onVisibleChange:O,overlayClassName:ce(k,E),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},f),d.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,"aria-haspopup":"listbox","aria-controls":j,id:"".concat(r,"-more"),"aria-expanded":P,onKeyDown:X},L));return d.createElement("div",{className:ce("".concat(n,"-nav-operations"),v),style:m,ref:t},F,d.createElement(Yx,{prefixCls:n,locale:l,editable:g}))});const n4=d.memo(t4,function(e,t){return t.tabMoving});var r4=function(t){var n=t.prefixCls,r=t.id,o=t.active,l=t.focus,s=t.tab,u=s.key,f=s.label,m=s.disabled,v=s.closeIcon,g=s.icon,h=t.closable,b=t.renderWrapper,x=t.removeAriaLabel,C=t.editable,S=t.onClick,E=t.onFocus,$=t.onBlur,R=t.onKeyDown,P=t.onMouseDown,O=t.onMouseUp,I=t.style,T=t.tabCount,M=t.currentPosition,_="".concat(n,"-tab"),z=hv(h,v,C,m);function L(V){m||S(V)}function j(V){V.preventDefault(),V.stopPropagation(),C.onEdit("remove",{key:u,event:V})}var A=d.useMemo(function(){return g&&typeof f=="string"?d.createElement("span",null,f):f},[f,g]),B=d.useRef(null);d.useEffect(function(){l&&B.current&&B.current.focus()},[l]);var K=d.createElement("div",{key:u,"data-node-key":Qx(u),className:ce(_,H(H(H(H({},"".concat(_,"-with-remove"),z),"".concat(_,"-active"),o),"".concat(_,"-disabled"),m),"".concat(_,"-focus"),l)),style:I,onClick:L},d.createElement("div",{ref:B,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(_,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(U){U.stopPropagation(),L(U)},onKeyDown:R,onMouseDown:P,onMouseUp:O,onFocus:E,onBlur:$},l&&d.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(M," of ").concat(T)),g&&d.createElement("span",{className:"".concat(_,"-icon")},g),f&&A),z&&d.createElement("button",{type:"button",role:"tab","aria-label":x||"remove",tabIndex:o?0:-1,className:"".concat(_,"-remove"),onClick:function(U){U.stopPropagation(),j(U)}},v||C.removeIcon||"×"));return b?b(K):K},o4=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,u=t.getBoundingClientRect(),f=u.width,m=u.height,v=u.left,g=u.top;return Math.abs(f-r)<1?[f,m,v-n.left,g-n.top]:[r,o,s,l]},za=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,l=n.offsetHeight,s=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),f=u.width,m=u.height;if(Math.abs(f-o)<1)return[f,m]}return[o,s]},Tc=function(t,n){return t[n?0:1]},mb=d.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,l=e.animated,s=e.activeKey,u=e.rtl,f=e.extra,m=e.editable,v=e.locale,g=e.tabPosition,h=e.tabBarGutter,b=e.children,x=e.onTabClick,C=e.onTabScroll,S=e.indicator,E=d.useContext(Gu),$=E.prefixCls,R=E.tabs,P=d.useRef(null),O=d.useRef(null),I=d.useRef(null),T=d.useRef(null),M=d.useRef(null),_=d.useRef(null),z=d.useRef(null),L=g==="top"||g==="bottom",j=lb(0,function(et,Ge){L&&C&&C({direction:et>Ge?"left":"right"})}),A=re(j,2),B=A[0],K=A[1],V=lb(0,function(et,Ge){!L&&C&&C({direction:et>Ge?"top":"bottom"})}),U=re(V,2),D=U[0],X=U[1],W=d.useState([0,0]),k=re(W,2),F=k[0],Y=k[1],ne=d.useState([0,0]),Z=re(ne,2),ee=Z[0],me=Z[1],pe=d.useState([0,0]),ue=re(pe,2),Se=ue[0],fe=ue[1],ae=d.useState([0,0]),ye=re(ae,2),he=ye[0],ve=ye[1],oe=Zj(new Map),be=re(oe,2),we=be[0],$e=be[1],Ae=Xj(R,we,ee[0]),je=Tc(F,L),Ie=Tc(ee,L),Le=Tc(Se,L),Ee=Tc(he,L),tt=Math.floor(je)<Math.floor(Ie+Le),lt=tt?je-Ee:je-Le,bt="".concat($,"-nav-operations-hidden"),st=0,Ue=0;L&&u?(st=0,Ue=Math.max(0,Ie-lt)):(st=Math.min(0,lt-Ie),Ue=0);function it(et){return et<st?st:et>Ue?Ue:et}var Ve=d.useRef(null),dt=d.useState(),Xe=re(dt,2),_e=Xe[0],Ye=Xe[1];function Pe(){Ye(Date.now())}function Fe(){Ve.current&&clearTimeout(Ve.current)}Yj(T,function(et,Ge){function xt(kt,He){kt(function(ut){var $t=it(ut+He);return $t})}return tt?(L?xt(K,et):xt(X,Ge),Fe(),Pe(),!0):!1}),d.useEffect(function(){return Fe(),_e&&(Ve.current=setTimeout(function(){Ye(0)},100)),Fe},[_e]);var wt=Jj(Ae,lt,L?B:D,Ie,Le,Ee,q(q({},e),{},{tabs:R})),mt=re(wt,2),Bt=mt[0],At=mt[1],nn=Kn(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Ge=Ae.get(et)||{width:0,height:0,left:0,right:0,top:0};if(L){var xt=B;u?Ge.right<B?xt=Ge.right:Ge.right+Ge.width>B+lt&&(xt=Ge.right+Ge.width-lt):Ge.left<-B?xt=-Ge.left:Ge.left+Ge.width>-B+lt&&(xt=-(Ge.left+Ge.width-lt)),X(0),K(it(xt))}else{var kt=D;Ge.top<-D?kt=-Ge.top:Ge.top+Ge.height>-D+lt&&(kt=-(Ge.top+Ge.height-lt)),K(0),X(it(kt))}}),vn=d.useState(),Vt=re(vn,2),Tt=Vt[0],St=Vt[1],Wt=d.useState(!1),Lt=re(Wt,2),Ze=Lt[0],yt=Lt[1],at=R.filter(function(et){return!et.disabled}).map(function(et){return et.key}),Re=function(Ge){var xt=at.indexOf(Tt||s),kt=at.length,He=(xt+Ge+kt)%kt,ut=at[He];St(ut)},Ce=function(Ge,xt){var kt=at.indexOf(Ge),He=R.find(function($t){return $t.key===Ge}),ut=hv(He==null?void 0:He.closable,He==null?void 0:He.closeIcon,m,He==null?void 0:He.disabled);ut&&(xt.preventDefault(),xt.stopPropagation(),m.onEdit("remove",{key:Ge,event:xt}),kt===at.length-1?Re(-1):Re(1))},xe=function(Ge,xt){yt(!0),xt.button===1&&Ce(Ge,xt)},Me=function(Ge){var xt=Ge.code,kt=u&&L,He=at[0],ut=at[at.length-1];switch(xt){case"ArrowLeft":{L&&Re(kt?1:-1);break}case"ArrowRight":{L&&Re(kt?-1:1);break}case"ArrowUp":{Ge.preventDefault(),L||Re(-1);break}case"ArrowDown":{Ge.preventDefault(),L||Re(1);break}case"Home":{Ge.preventDefault(),St(He);break}case"End":{Ge.preventDefault(),St(ut);break}case"Enter":case"Space":{Ge.preventDefault(),x(Tt??s,Ge);break}case"Backspace":case"Delete":{Ce(Tt,Ge);break}}},Ke={};L?Ke[u?"marginRight":"marginLeft"]=h:Ke.marginTop=h;var Qe=R.map(function(et,Ge){var xt=et.key;return d.createElement(r4,{id:o,prefixCls:$,key:xt,tab:et,style:Ge===0?void 0:Ke,closable:et.closable,editable:m,active:xt===s,focus:xt===Tt,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,tabCount:at.length,currentPosition:Ge+1,onClick:function(He){x(xt,He)},onKeyDown:Me,onFocus:function(){Ze||St(xt),nn(xt),Pe(),T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){St(void 0)},onMouseDown:function(He){return xe(xt,He)},onMouseUp:function(){yt(!1)}})}),Mt=function(){return $e(function(){var Ge,xt=new Map,kt=(Ge=M.current)===null||Ge===void 0?void 0:Ge.getBoundingClientRect();return R.forEach(function(He){var ut,$t=He.key,Jt=(ut=M.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(Qx($t),'"]'));if(Jt){var zn=o4(Jt,kt),xn=re(zn,4),sr=xn[0],Hn=xn[1],cr=xn[2],Vn=xn[3];xt.set($t,{width:sr,height:Hn,left:cr,top:Vn})}}),xt})};d.useEffect(function(){Mt()},[R.map(function(et){return et.key}).join("_")]);var jt=Xx(function(){var et=za(P),Ge=za(O),xt=za(I);Y([et[0]-Ge[0]-xt[0],et[1]-Ge[1]-xt[1]]);var kt=za(z);fe(kt);var He=za(_);ve(He);var ut=za(M);me([ut[0]-kt[0],ut[1]-kt[1]]),Mt()}),Ot=R.slice(0,Bt),It=R.slice(At+1),mn=[].concat(Be(Ot),Be(It)),sn=Ae.get(s),gn=qj({activeTabOffset:sn,horizontal:L,indicator:S,rtl:u}),$n=gn.style;d.useEffect(function(){nn()},[s,st,Ue,db(sn),db(Ae),L]),d.useEffect(function(){jt()},[u]);var Kt=!!mn.length,Yt="".concat($,"-nav-wrap"),Ne,We,Ct,ct;return L?u?(We=B>0,Ne=B!==Ue):(Ne=B<0,We=B!==st):(Ct=D<0,ct=D!==st),d.createElement(ro,{onResize:jt},d.createElement("div",{ref:qi(t,P),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:ce("".concat($,"-nav"),n),style:r,onKeyDown:function(){Pe()}},d.createElement(fb,{ref:O,position:"left",extra:f,prefixCls:$}),d.createElement(ro,{onResize:jt},d.createElement("div",{className:ce(Yt,H(H(H(H({},"".concat(Yt,"-ping-left"),Ne),"".concat(Yt,"-ping-right"),We),"".concat(Yt,"-ping-top"),Ct),"".concat(Yt,"-ping-bottom"),ct)),ref:T},d.createElement(ro,{onResize:jt},d.createElement("div",{ref:M,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(D,"px)"),transition:_e?"none":void 0}},Qe,d.createElement(Yx,{ref:z,prefixCls:$,locale:v,editable:m,style:q(q({},Qe.length===0?void 0:Ke),{},{visibility:Kt?"hidden":null})}),d.createElement("div",{className:ce("".concat($,"-ink-bar"),H({},"".concat($,"-ink-bar-animated"),l.inkBar)),style:$n}))))),d.createElement(n4,ke({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:_,prefixCls:$,tabs:mn,className:!Kt&&bt,tabMoving:!!_e})),d.createElement(fb,{ref:I,position:"right",extra:f,prefixCls:$})))}),Zx=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.id,s=e.active,u=e.tabKey,f=e.children;return d.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!s,style:o,className:ce(n,s&&"".concat(n,"-active"),r),ref:t},f)}),i4=["renderTabBar"],a4=["label","key"],l4=function(t){var n=t.renderTabBar,r=_t(t,i4),o=d.useContext(Gu),l=o.tabs;if(n){var s=q(q({},r),{},{panes:l.map(function(u){var f=u.label,m=u.key,v=_t(u,a4);return d.createElement(Zx,ke({tab:f,key:m,tabKey:m},v))})});return n(s,mb)}return d.createElement(mb,r)},s4=["key","forceRender","style","className","destroyInactiveTabPane"],c4=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,u=d.useContext(Gu),f=u.prefixCls,m=u.tabs,v=o.tabPane,g="".concat(f,"-tabpane");return d.createElement("div",{className:ce("".concat(f,"-content-holder"))},d.createElement("div",{className:ce("".concat(f,"-content"),"".concat(f,"-content-").concat(l),H({},"".concat(f,"-content-animated"),v))},m.map(function(h){var b=h.key,x=h.forceRender,C=h.style,S=h.className,E=h.destroyInactiveTabPane,$=_t(h,s4),R=b===r;return d.createElement(qo,ke({key:b,visible:R,forceRender:x,removeOnLeave:!!(s||E),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(P,O){var I=P.style,T=P.className;return d.createElement(Zx,ke({},$,{prefixCls:g,id:n,tabKey:b,animated:v,active:R,style:q(q({},C),I),className:ce(S,T),ref:O}))})})))};function u4(){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=q({inkBar:!0},vt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var d4=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],pb=0,f4=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,l=e.className,s=e.items,u=e.direction,f=e.activeKey,m=e.defaultActiveKey,v=e.editable,g=e.animated,h=e.tabPosition,b=h===void 0?"top":h,x=e.tabBarGutter,C=e.tabBarStyle,S=e.tabBarExtraContent,E=e.locale,$=e.more,R=e.destroyInactiveTabPane,P=e.renderTabBar,O=e.onChange,I=e.onTabClick,T=e.onTabScroll,M=e.getPopupContainer,_=e.popupClassName,z=e.indicator,L=_t(e,d4),j=d.useMemo(function(){return(s||[]).filter(function(he){return he&&vt(he)==="object"&&"key"in he})},[s]),A=u==="rtl",B=u4(g),K=d.useState(!1),V=re(K,2),U=V[0],D=V[1];d.useEffect(function(){D(nv())},[]);var X=tr(function(){var he;return(he=j[0])===null||he===void 0?void 0:he.key},{value:f,defaultValue:m}),W=re(X,2),k=W[0],F=W[1],Y=d.useState(function(){return j.findIndex(function(he){return he.key===k})}),ne=re(Y,2),Z=ne[0],ee=ne[1];d.useEffect(function(){var he=j.findIndex(function(oe){return oe.key===k});if(he===-1){var ve;he=Math.max(0,Math.min(Z,j.length-1)),F((ve=j[he])===null||ve===void 0?void 0:ve.key)}ee(he)},[j.map(function(he){return he.key}).join("_"),k,Z]);var me=tr(null,{value:n}),pe=re(me,2),ue=pe[0],Se=pe[1];d.useEffect(function(){n||(Se("rc-tabs-".concat(pb)),pb+=1)},[]);function fe(he,ve){I==null||I(he,ve);var oe=he!==k;F(he),oe&&(O==null||O(he))}var ae={id:ue,activeKey:k,animated:B,tabPosition:b,rtl:A,mobile:U},ye=q(q({},ae),{},{editable:v,locale:E,more:$,tabBarGutter:x,onTabClick:fe,onTabScroll:T,extra:S,style:C,panes:null,getPopupContainer:M,popupClassName:_,indicator:z});return d.createElement(Gu.Provider,{value:{tabs:j,prefixCls:o}},d.createElement("div",ke({ref:t,id:n,className:ce(o,"".concat(o,"-").concat(b),H(H(H({},"".concat(o,"-mobile"),U),"".concat(o,"-editable"),v),"".concat(o,"-rtl"),A),l)},L),d.createElement(l4,ke({},ye,{renderTabBar:P})),d.createElement(c4,ke({destroyInactiveTabPane:R},ae,{animated:B}))))});const m4={motionAppear:!1,motionEnter:!0,motionLeave:!0};function p4(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({},m4),{motionName:Qp(e,"switch")})),n}var v4=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 g4(e){return e.filter(t=>t)}function h4(e,t){if(e)return e.map(r=>{var o;const l=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Mr(t).map(r=>{if(d.isValidElement(r)){const{key:o,props:l}=r,s=l||{},{tab:u}=s,f=v4(s,["tab"]);return Object.assign(Object.assign({key:String(o)},f),{label:u})}return null});return g4(n)}const y4=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}`}}}}},[iu(e,"slide-up"),iu(e,"slide-down")]]},b4=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:l,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${se(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ts(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:se(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:se(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadiusLG)} 0 0 ${se(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 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},S4=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},lr(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:`${se(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({},eu),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${se(e.paddingXXS)} ${se(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"}}})}})}},x4=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:l,verticalItemMargin:s,calc:u}=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:`${se(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
252
+ 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,
253
+ > 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:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${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:se(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${se(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:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},C4=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:l,horizontalItemPaddingSM:s,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,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 ${se(e.borderRadius)} ${se(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${se(e.borderRadius)} ${se(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${se(e.borderRadius)} ${se(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadius)} 0 0 ${se(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},w4=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:u,itemColor:f}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-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}},Ui(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:ts(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},$4=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:l}=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:se(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:se(e.marginXS)},marginLeft:{_skip_check_:!0,value:se(l(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"}}}}},E4=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:l,itemActiveColor:s,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(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:`${se(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:s}},Ui(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),w4(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ui(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"}}}}}},R4=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:l}=e,s=t||l,u=n||o,f=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:u,cardHeightLG:f,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-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}},O4=On("Tabs",e=>{const t=fn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${se(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${se(e.horizontalItemGutter)}`});return[C4(t),$4(t),x4(t),S4(t),b4(t),E4(t),y4(t)]},R4),I4=()=>null;var P4=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 T4=d.forwardRef((e,t)=>{var n,r,o,l,s,u,f,m,v,g,h;const{type:b,className:x,rootClassName:C,size:S,onEdit:E,hideAdd:$,centered:R,addIcon:P,removeIcon:O,moreIcon:I,more:T,popupClassName:M,children:_,items:z,animated:L,style:j,indicatorSize:A,indicator:B,destroyInactiveTabPane:K,destroyOnHidden:V}=e,U=P4(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:D}=U,{direction:X,tabs:W,getPrefixCls:k,getPopupContainer:F}=d.useContext(Gt),Y=k("tabs",D),ne=ps(Y),[Z,ee,me]=O4(Y,ne),pe=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:pe.current}));let ue;b==="editable-card"&&(ue={onEdit:(oe,{key:be,event:we})=>{E==null||E(oe==="add"?we:be,oe)},removeIcon:(n=O??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:d.createElement(Eu,null),addIcon:(P??(W==null?void 0:W.addIcon))||d.createElement(Kj,null),showAdd:$!==!0});const Se=k(),fe=Xo(S),ae=h4(z,_),ye=p4(Y,L),he=Object.assign(Object.assign({},W==null?void 0:W.style),j),ve={align:(r=B==null?void 0:B.align)!==null&&r!==void 0?r:(o=W==null?void 0:W.indicator)===null||o===void 0?void 0:o.align,size:(f=(s=(l=B==null?void 0:B.size)!==null&&l!==void 0?l:A)!==null&&s!==void 0?s:(u=W==null?void 0:W.indicator)===null||u===void 0?void 0:u.size)!==null&&f!==void 0?f:W==null?void 0:W.indicatorSize};return Z(d.createElement(f4,Object.assign({ref:pe,direction:X,getPopupContainer:F},U,{items:ae,className:ce({[`${Y}-${fe}`]:fe,[`${Y}-card`]:["card","editable-card"].includes(b),[`${Y}-editable-card`]:b==="editable-card",[`${Y}-centered`]:R},W==null?void 0:W.className,x,C,ee,me,ne),popupClassName:ce(M,ee,me,ne),style:he,editable:ue,more:Object.assign({icon:(h=(g=(v=(m=W==null?void 0:W.more)===null||m===void 0?void 0:m.icon)!==null&&v!==void 0?v:W==null?void 0:W.moreIcon)!==null&&g!==void 0?g:I)!==null&&h!==void 0?h:d.createElement(Ij,null),transitionName:`${Se}-slide-up`},T),prefixCls:Y,animated:ye,indicator:ve,destroyInactiveTabPane:V??K})))}),Jx=T4;Jx.TabPane=I4;function _4(e,t,n){var r=n||{},o=r.noTrailing,l=o===void 0?!1:o,s=r.noLeading,u=s===void 0?!1:s,f=r.debounceMode,m=f===void 0?void 0:f,v,g=!1,h=0;function b(){v&&clearTimeout(v)}function x(S){var E=S||{},$=E.upcomingOnly,R=$===void 0?!1:$;b(),g=!R}function C(){for(var S=arguments.length,E=new Array(S),$=0;$<S;$++)E[$]=arguments[$];var R=this,P=Date.now()-h;if(g)return;function O(){h=Date.now(),t.apply(R,E)}function I(){v=void 0}!u&&m&&!v&&O(),b(),m===void 0&&P>e?u?(h=Date.now(),l||(v=setTimeout(m?I:O,e))):O():l!==!0&&(v=setTimeout(m?I:O,m===void 0?e-P:e))}return C.cancel=x,C}function M4(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return _4(e,t,{debounceMode:l!==!1})}const eC=d.createContext({});var N4=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 vb(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 z4=["xs","sm","md","lg","xl","xxl"],j4=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Gt),{gutter:o,wrap:l}=d.useContext(eC),{prefixCls:s,span:u,order:f,offset:m,push:v,pull:g,className:h,children:b,flex:x,style:C}=e,S=N4(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=n("col",s),[$,R,P]=S_(E),O={};let I={};z4.forEach(_=>{let z={};const L=e[_];typeof L=="number"?z.span=L:typeof L=="object"&&(z=L||{}),delete S[_],I=Object.assign(Object.assign({},I),{[`${E}-${_}-${z.span}`]:z.span!==void 0,[`${E}-${_}-order-${z.order}`]:z.order||z.order===0,[`${E}-${_}-offset-${z.offset}`]:z.offset||z.offset===0,[`${E}-${_}-push-${z.push}`]:z.push||z.push===0,[`${E}-${_}-pull-${z.pull}`]:z.pull||z.pull===0,[`${E}-rtl`]:r==="rtl"}),z.flex&&(I[`${E}-${_}-flex`]=!0,O[`--${E}-${_}-flex`]=vb(z.flex))});const T=ce(E,{[`${E}-${u}`]:u!==void 0,[`${E}-order-${f}`]:f,[`${E}-offset-${m}`]:m,[`${E}-push-${v}`]:v,[`${E}-pull-${g}`]:g},h,I,R,P),M={};if(o!=null&&o[0]){const _=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;M.paddingLeft=_,M.paddingRight=_}return x&&(M.flex=vb(x),l===!1&&!M.minWidth&&(M.minWidth=0)),$(d.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},M),C),O),className:T,ref:t}),b))});function k4(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((l,s)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<Gi.length;u++){const f=Gi[u];if(o[f]&&l[f]!==void 0){n[s]=l[f];break}}else n[s]=l}),n}var L4=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 gb(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<Gi.length;l++){const s=Gi[l];if(!t||!t[s])continue;const u=e[s];if(u!==void 0){r(u);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const A4=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:u,gutter:f=0,wrap:m}=e,v=L4(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:h}=d.useContext(Gt),b=lv(!0,null),x=gb(o,b),C=gb(r,b),S=g("row",n),[E,$,R]=y_(S),P=k4(f,b),O=ce(S,{[`${S}-no-wrap`]:m===!1,[`${S}-${C}`]:C,[`${S}-${x}`]:x,[`${S}-rtl`]:h==="rtl"},l,$,R),I={};if(P!=null&&P[0]){const z=typeof P[0]=="number"?`${P[0]/-2}px`:`calc(${P[0]} / -2)`;I.marginLeft=z,I.marginRight=z}const[T,M]=P;I.rowGap=M;const _=d.useMemo(()=>({gutter:[T,M],wrap:m}),[T,M,m]);return E(d.createElement(eC.Provider,{value:_},d.createElement("div",Object.assign({},v,{className:O,style:Object.assign(Object.assign({},I),s),ref:t}),u)))}),D4=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},B4=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{borderBlockStart:`${se(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${se(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${se(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${se(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${se(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${se(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${se(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},F4=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),H4=On("Divider",e=>{const t=fn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[B4(t),D4(t)]},F4,{unitless:{orientationMargin:!0}});var V4=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 W4={small:"sm",middle:"md"},hb=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Vr("divider"),{prefixCls:l,type:s="horizontal",orientation:u="center",orientationMargin:f,className:m,rootClassName:v,children:g,dashed:h,variant:b="solid",plain:x,style:C,size:S}=e,E=V4(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",l),[R,P,O]=H4($),I=Xo(S),T=W4[I],M=!!g,_=d.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),z=_==="start"&&f!=null,L=_==="end"&&f!=null,j=ce($,r,P,O,`${$}-${s}`,{[`${$}-with-text`]:M,[`${$}-with-text-${_}`]:M,[`${$}-dashed`]:!!h,[`${$}-${b}`]:b!=="solid",[`${$}-plain`]:!!x,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:z,[`${$}-no-default-orientation-margin-end`]:L,[`${$}-${T}`]:!!T},m,v),A=d.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),B={marginInlineStart:z?A:void 0,marginInlineEnd:L?A:void 0};return R(d.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},o),C)},E,{role:"separator"}),g&&s!=="vertical"&&d.createElement("span",{className:`${$}-inner-text`,style:B},g)))};function U4(e){return!!(e.addonBefore||e.addonAfter)}function G4(e){return!!(e.prefix||e.suffix||e.allowClear)}function yb(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 bb(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=yb(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=yb(t,e,r),n(o);return}n(o)}}function K4(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 q4=J.forwardRef(function(e,t){var n,r,o,l=e.inputElement,s=e.children,u=e.prefixCls,f=e.prefix,m=e.suffix,v=e.addonBefore,g=e.addonAfter,h=e.className,b=e.style,x=e.disabled,C=e.readOnly,S=e.focused,E=e.triggerFocus,$=e.allowClear,R=e.value,P=e.handleReset,O=e.hidden,I=e.classes,T=e.classNames,M=e.dataAttrs,_=e.styles,z=e.components,L=e.onClear,j=s??l,A=(z==null?void 0:z.affixWrapper)||"span",B=(z==null?void 0:z.groupWrapper)||"span",K=(z==null?void 0:z.wrapper)||"span",V=(z==null?void 0:z.groupAddon)||"span",U=d.useRef(null),D=function(ve){var oe;(oe=U.current)!==null&&oe!==void 0&&oe.contains(ve.target)&&(E==null||E())},X=G4(e),W=d.cloneElement(j,{value:R,className:ce((n=j.props)===null||n===void 0?void 0:n.className,!X&&(T==null?void 0:T.variant))||null}),k=d.useRef(null);if(J.useImperativeHandle(t,function(){return{nativeElement:k.current||U.current}}),X){var F=null;if($){var Y=!x&&!C&&R,ne="".concat(u,"-clear-icon"),Z=vt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";F=J.createElement("button",{type:"button",tabIndex:-1,onClick:function(ve){P==null||P(ve),L==null||L()},onMouseDown:function(ve){return ve.preventDefault()},className:ce(ne,H(H({},"".concat(ne,"-hidden"),!Y),"".concat(ne,"-has-suffix"),!!m))},Z)}var ee="".concat(u,"-affix-wrapper"),me=ce(ee,H(H(H(H(H({},"".concat(u,"-disabled"),x),"".concat(ee,"-disabled"),x),"".concat(ee,"-focused"),S),"".concat(ee,"-readonly"),C),"".concat(ee,"-input-with-clear-btn"),m&&$&&R),I==null?void 0:I.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),pe=(m||$)&&J.createElement("span",{className:ce("".concat(u,"-suffix"),T==null?void 0:T.suffix),style:_==null?void 0:_.suffix},F,m);W=J.createElement(A,ke({className:me,style:_==null?void 0:_.affixWrapper,onClick:D},M==null?void 0:M.affixWrapper,{ref:U}),f&&J.createElement("span",{className:ce("".concat(u,"-prefix"),T==null?void 0:T.prefix),style:_==null?void 0:_.prefix},f),W,pe)}if(U4(e)){var ue="".concat(u,"-group"),Se="".concat(ue,"-addon"),fe="".concat(ue,"-wrapper"),ae=ce("".concat(u,"-wrapper"),ue,I==null?void 0:I.wrapper,T==null?void 0:T.wrapper),ye=ce(fe,H({},"".concat(fe,"-disabled"),x),I==null?void 0:I.group,T==null?void 0:T.groupWrapper);W=J.createElement(B,{className:ye,ref:k},J.createElement(K,{className:ae},v&&J.createElement(V,{className:Se},v),W,g&&J.createElement(V,{className:Se},g)))}return J.cloneElement(W,{className:ce((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:q(q({},(o=W.props)===null||o===void 0?void 0:o.style),b),hidden:O})}),X4=["show"];function Q4(e,t){return d.useMemo(function(){var n={};t&&(n.show=vt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,o=r.show,l=_t(r,X4);return q(q({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const Y4=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:J.createElement(Kp,null)}),t};function Sb(e){return["small","middle","large"].includes(e)}function xb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Z4=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:l,fontSizeLG:s,fontSizeSM:u,borderRadiusLG:f,borderRadiusSM:m,colorBgContainerDisabled:v,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:v,borderWidth:g,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:s,borderRadius:f},"&-small":{paddingInline:l,borderRadius:m,fontSize:u},"&-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}},ku(e,{focus:!1})]}},J4=On(["Space","Addon"],e=>[Z4(e)]);var e3=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 t3=J.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=e3(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:f}=J.useContext(Gt),m=u("space-addon",l),[v,g,h]=J4(m),{compactItemClassnames:b,compactSize:x}=Pu(m,f),C=ce(m,g,b,h,{[`${m}-${x}`]:x},n);return v(J.createElement("div",Object.assign({ref:t,className:C,style:o},s),r))}),tC=J.createContext({latestIndex:0}),n3=tC.Provider,r3=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=d.useContext(tC);return n==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:e,style:o},n),t<l&&r&&d.createElement("span",{className:`${e}-split`},r))},o3=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"}}}},i3=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}}}},a3=On("Space",e=>{const t=fn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[o3(t),i3(t)]},()=>({}),{resetStyle:!1});var l3=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 s3=d.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:u,classNames:f,styles:m}=Vr("space"),{size:v=l??"small",align:g,className:h,rootClassName:b,children:x,direction:C="horizontal",prefixCls:S,split:E,style:$,wrap:R=!1,classNames:P,styles:O}=e,I=l3(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,M]=Array.isArray(v)?v:[v,v],_=Sb(M),z=Sb(T),L=xb(M),j=xb(T),A=Mr(x,{keepEmpty:!0}),B=g===void 0&&C==="horizontal"?"center":g,K=r("space",S),[V,U,D]=a3(K),X=ce(K,s,U,`${K}-${C}`,{[`${K}-rtl`]:o==="rtl",[`${K}-align-${B}`]:B,[`${K}-gap-row-${M}`]:_,[`${K}-gap-col-${T}`]:z},h,b,D),W=ce(`${K}-item`,(n=P==null?void 0:P.item)!==null&&n!==void 0?n:f.item),k=Object.assign(Object.assign({},m.item),O==null?void 0:O.item),F=A.map((Z,ee)=>{const me=(Z==null?void 0:Z.key)||`${W}-${ee}`;return d.createElement(r3,{className:W,key:me,index:ee,split:E,style:k},Z)}),Y=d.useMemo(()=>({latestIndex:A.reduce((ee,me,pe)=>me!=null?pe:ee,0)}),[A]);if(A.length===0)return null;const ne={};return R&&(ne.flexWrap="wrap"),!z&&j&&(ne.columnGap=T),!_&&L&&(ne.rowGap=M),V(d.createElement("div",Object.assign({ref:t,className:X,style:Object.assign(Object.assign(Object.assign({},ne),u),$)},I),d.createElement(n3,{value:Y},F)))}),ls=s3;ls.Compact=EI;ls.Addon=t3;var c3={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"},u3=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:c3}))},nC=d.forwardRef(u3),d3=`
254
+ min-height:0 !important;
255
+ max-height:none !important;
256
+ height:0 !important;
257
+ visibility:hidden !important;
258
+ overflow:hidden !important;
259
+ position:absolute !important;
260
+ z-index:-1000 !important;
261
+ top:0 !important;
262
+ right:0 !important;
263
+ pointer-events: none !important;
264
+ `,f3=["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"],im={},Br;function m3(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&&im[n])return im[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=f3.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),f={sizingStyle:u,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(im[n]=f),f}function p3(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;Br||(Br=document.createElement("textarea"),Br.setAttribute("tab-index","-1"),Br.setAttribute("aria-hidden","true"),Br.setAttribute("name","hiddenTextarea"),document.body.appendChild(Br)),e.getAttribute("wrap")?Br.setAttribute("wrap",e.getAttribute("wrap")):Br.removeAttribute("wrap");var o=m3(e,t),l=o.paddingSize,s=o.borderSize,u=o.boxSizing,f=o.sizingStyle;Br.setAttribute("style","".concat(f,";").concat(d3)),Br.value=e.value||e.placeholder||"";var m=void 0,v=void 0,g,h=Br.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=l),n!==null||r!==null){Br.value=" ";var b=Br.scrollHeight-l;n!==null&&(m=b*n,u==="border-box"&&(m=m+l+s),h=Math.max(m,h)),r!==null&&(v=b*r,u==="border-box"&&(v=v+l+s),g=h>v?"":"hidden",h=Math.min(v,h))}var x={height:h,overflowY:g,resize:"none"};return m&&(x.minHeight=m),v&&(x.maxHeight=v),x}var v3=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],am=0,lm=1,sm=2,g3=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,u=n.onResize,f=n.className,m=n.style,v=n.disabled,g=n.onChange;n.onInternalAutoSize;var h=_t(n,v3),b=tr(o,{value:l,postState:function(Y){return Y??""}}),x=re(b,2),C=x[0],S=x[1],E=function(Y){S(Y.target.value),g==null||g(Y)},$=d.useRef();d.useImperativeHandle(t,function(){return{textArea:$.current}});var R=d.useMemo(function(){return s&&vt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),P=re(R,2),O=P[0],I=P[1],T=!!s,M=d.useState(sm),_=re(M,2),z=_[0],L=_[1],j=d.useState(),A=re(j,2),B=A[0],K=A[1],V=function(){L(am)};tn(function(){T&&V()},[l,O,I,T]),tn(function(){if(z===am)L(lm);else if(z===lm){var F=p3($.current,!1,O,I);L(sm),K(F)}},[z]);var U=d.useRef(),D=function(){yn.cancel(U.current)},X=function(Y){z===sm&&(u==null||u(Y),s&&(D(),U.current=yn(function(){V()})))};d.useEffect(function(){return D},[]);var W=T?B:null,k=q(q({},m),W);return(z===am||z===lm)&&(k.overflowY="hidden",k.overflowX="hidden"),d.createElement(ro,{onResize:X,disabled:!(s||u)},d.createElement("textarea",ke({},h,{ref:$,style:k,className:ce(r,f,H({},"".concat(r,"-disabled"),v)),disabled:v,value:C,onChange:E})))}),h3=["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"],y3=J.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,b=e.prefixCls,x=b===void 0?"rc-textarea":b,C=e.showCount,S=e.count,E=e.className,$=e.style,R=e.disabled,P=e.hidden,O=e.classNames,I=e.styles,T=e.onResize,M=e.onClear,_=e.onPressEnter,z=e.readOnly,L=e.autoSize,j=e.onKeyDown,A=_t(e,h3),B=tr(r,{value:o,defaultValue:r}),K=re(B,2),V=K[0],U=K[1],D=V==null?"":String(V),X=J.useState(!1),W=re(X,2),k=W[0],F=W[1],Y=J.useRef(!1),ne=J.useState(null),Z=re(ne,2),ee=Z[0],me=Z[1],pe=d.useRef(null),ue=d.useRef(null),Se=function(){var _e;return(_e=ue.current)===null||_e===void 0?void 0:_e.textArea},fe=function(){Se().focus()};d.useImperativeHandle(t,function(){var Xe;return{resizableTextArea:ue.current,focus:fe,blur:function(){Se().blur()},nativeElement:((Xe=pe.current)===null||Xe===void 0?void 0:Xe.nativeElement)||Se()}}),d.useEffect(function(){F(function(Xe){return!R&&Xe})},[R]);var ae=J.useState(null),ye=re(ae,2),he=ye[0],ve=ye[1];J.useEffect(function(){if(he){var Xe;(Xe=Se()).setSelectionRange.apply(Xe,Be(he))}},[he]);var oe=Q4(S,C),be=(n=oe.max)!==null&&n!==void 0?n:m,we=Number(be)>0,$e=oe.strategy(D),Ae=!!be&&$e>be,je=function(_e,Ye){var Pe=Ye;!Y.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ye)>oe.max&&(Pe=oe.exceedFormatter(Ye,{max:oe.max}),Ye!==Pe&&ve([Se().selectionStart||0,Se().selectionEnd||0])),U(Pe),bb(_e.currentTarget,_e,u,Pe)},Ie=function(_e){Y.current=!0,v==null||v(_e)},Le=function(_e){Y.current=!1,je(_e,_e.currentTarget.value),g==null||g(_e)},Ee=function(_e){je(_e,_e.target.value)},tt=function(_e){_e.key==="Enter"&&_&&_(_e),j==null||j(_e)},lt=function(_e){F(!0),l==null||l(_e)},bt=function(_e){F(!1),s==null||s(_e)},st=function(_e){U(""),fe(),bb(Se(),_e,u)},Ue=h,it;oe.show&&(oe.showFormatter?it=oe.showFormatter({value:D,count:$e,maxLength:be}):it="".concat($e).concat(we?" / ".concat(be):""),Ue=J.createElement(J.Fragment,null,Ue,J.createElement("span",{className:ce("".concat(x,"-data-count"),O==null?void 0:O.count),style:I==null?void 0:I.count},it)));var Ve=function(_e){var Ye;T==null||T(_e),(Ye=Se())!==null&&Ye!==void 0&&Ye.style.height&&me(!0)},dt=!L&&!C&&!f;return J.createElement(q4,{ref:pe,value:D,allowClear:f,handleReset:st,suffix:Ue,prefixCls:x,classNames:q(q({},O),{},{affixWrapper:ce(O==null?void 0:O.affixWrapper,H(H({},"".concat(x,"-show-count"),C),"".concat(x,"-textarea-allow-clear"),f))}),disabled:R,focused:k,className:ce(E,Ae&&"".concat(x,"-out-of-range")),style:q(q({},$),ee&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof it=="string"?it:void 0}},hidden:P,readOnly:z,onClear:M},J.createElement(g3,ke({},A,{autoSize:L,maxLength:m,onKeyDown:tt,onChange:Ee,onFocus:lt,onBlur:bt,onCompositionStart:Ie,onCompositionEnd:Le,className:ce(O==null?void 0:O.textarea),style:q(q({},I==null?void 0:I.textarea),{},{resize:$==null?void 0:$.resize}),disabled:R,prefixCls:x,onResize:Ve,ref:ue,readOnly:z})))});const b3=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"}},[`
265
+ &-allow-clear > ${t},
266
+ &-affix-wrapper${r}-has-feedback ${t}
267
+ `]:{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}}}}}},S3=On(["Input","TextArea"],e=>{const t=fn(e,Vu(e));return b3(t)},Wu,{resetFont:!1});var x3=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 C3=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:u,allowClear:f,classNames:m,rootClassName:v,className:g,style:h,styles:b,variant:x,showCount:C,onMouseDown:S,onResize:E}=e,$=x3(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:R,direction:P,allowClear:O,autoComplete:I,className:T,style:M,classNames:_,styles:z}=Vr("textArea"),L=d.useContext(qa),j=s??L,{status:A,hasFeedback:B,feedbackIcon:K}=d.useContext(su),V=lx(A,u),U=d.useRef(null);d.useImperativeHandle(t,()=>{var oe;return{resizableTextArea:(oe=U.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:be=>{var we,$e;K4(($e=(we=U.current)===null||we===void 0?void 0:we.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,be)},blur:()=>{var be;return(be=U.current)===null||be===void 0?void 0:be.blur()}}});const D=R("input",r),X=ps(D),[W,k,F]=Wj(D,v),[Y]=S3(D,X),{compactSize:ne,compactItemClassnames:Z}=Pu(D,P),ee=Xo(oe=>{var be;return(be=l??ne)!==null&&be!==void 0?be:oe}),[me,pe]=dx("textArea",x,o),ue=Y4(f??O),[Se,fe]=d.useState(!1),[ae,ye]=d.useState(!1),he=oe=>{fe(!0),S==null||S(oe);const be=()=>{fe(!1),document.removeEventListener("mouseup",be)};document.addEventListener("mouseup",be)},ve=oe=>{var be,we;if(E==null||E(oe),Se&&typeof getComputedStyle=="function"){const $e=(we=(be=U.current)===null||be===void 0?void 0:be.nativeElement)===null||we===void 0?void 0:we.querySelector("textarea");$e&&getComputedStyle($e).resize==="both"&&ye(!0)}};return W(Y(d.createElement(y3,Object.assign({autoComplete:I},$,{style:Object.assign(Object.assign({},M),h),styles:Object.assign(Object.assign({},z),b),disabled:j,allowClear:ue,className:ce(F,X,g,v,Z,T,ae&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),_),{textarea:ce({[`${D}-sm`]:ee==="small",[`${D}-lg`]:ee==="large"},k,m==null?void 0:m.textarea,_.textarea,Se&&`${D}-mouse-active`),variant:ce({[`${D}-${me}`]:pe},ax(D,V)),affixWrapper:ce(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:P==="rtl",[`${D}-affix-wrapper-sm`]:ee==="small",[`${D}-affix-wrapper-lg`]:ee==="large",[`${D}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:D,suffix:B&&d.createElement("span",{className:`${D}-textarea-suffix`},K),showCount:C,ref:U,onResize:ve,onMouseDown:he}))))});function w3(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mr(t).some(o=>o.type===Ux)}var rC=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 Ku({suffixCls:e,tagName:t,displayName:n}){return r=>d.forwardRef((l,s)=>d.createElement(r,Object.assign({ref:s,suffixCls:e,tagName:t},l)))}const yv=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=rC(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=d.useContext(Gt),f=u("layout",n),[m,v,g]=Vx(f),h=r?`${f}-${r}`:f;return m(d.createElement(l,Object.assign({className:ce(n||h,o,v,g),ref:t},s)))}),$3=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Gt),[r,o]=d.useState([]),{prefixCls:l,className:s,rootClassName:u,children:f,hasSider:m,tagName:v,style:g}=e,h=rC(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=Hr(h,["suffixCls"]),{getPrefixCls:x,className:C,style:S}=Vr("layout"),E=x("layout",l),$=w3(r,f,m),[R,P,O]=Vx(E),I=ce(E,{[`${E}-has-sider`]:$,[`${E}-rtl`]:n==="rtl"},C,s,u,P,O),T=d.useMemo(()=>({siderHook:{addSider:M=>{o(_=>[].concat(Be(_),[M]))},removeSider:M=>{o(_=>_.filter(z=>z!==M))}}}),[]);return R(d.createElement(Bx.Provider,{value:T},d.createElement(v,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},S),g)},b),f)))}),E3=Ku({tagName:"div",displayName:"Layout"})($3),R3=Ku({suffixCls:"header",tagName:"header",displayName:"Header"})(yv),O3=Ku({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(yv),I3=Ku({suffixCls:"content",tagName:"main",displayName:"Content"})(yv),bi=E3;bi.Header=R3;bi.Footer=O3;bi.Content=I3;bi.Sider=Ux;bi._InternalSiderContext=Wx;var P3={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"},T3=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:P3}))},Cb=d.forwardRef(T3),_3={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"},M3=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:_3}))},wb=d.forwardRef(M3),N3={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:"页码"},z3=[10,20,50,100],j3=function(t){var n=t.pageSizeOptions,r=n===void 0?z3:n,o=t.locale,l=t.changeSize,s=t.pageSize,u=t.goButton,f=t.quickGo,m=t.rootPrefixCls,v=t.disabled,g=t.buildOptionText,h=t.showSizeChanger,b=t.sizeChangerRender,x=J.useState(""),C=re(x,2),S=C[0],E=C[1],$=function(){return!S||Number.isNaN(S)?void 0:Number(S)},R=typeof g=="function"?g:function(j){return"".concat(j," ").concat(o.items_per_page)},P=function(A){E(A.target.value)},O=function(A){u||S===""||(E(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(f==null||f($())))},I=function(A){S!==""&&(A.keyCode===qe.ENTER||A.type==="click")&&(E(""),f==null||f($()))},T=function(){return r.some(function(A){return A.toString()===s.toString()})?r:r.concat([s]).sort(function(A,B){var K=Number.isNaN(Number(A))?0:Number(A),V=Number.isNaN(Number(B))?0:Number(B);return K-V})},M="".concat(m,"-options");if(!h&&!f)return null;var _=null,z=null,L=null;return h&&b&&(_=b({disabled:v,size:s,onSizeChange:function(A){l==null||l(Number(A))},"aria-label":o.page_size,className:"".concat(M,"-size-changer"),options:T().map(function(j){return{label:R(j),value:j}})})),f&&(u&&(L=typeof u=="boolean"?J.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:v,className:"".concat(M,"-quick-jumper-button")},o.jump_to_confirm):J.createElement("span",{onClick:I,onKeyUp:I},u)),z=J.createElement("div",{className:"".concat(M,"-quick-jumper")},o.jump_to,J.createElement("input",{disabled:v,type:"text",value:S,onChange:P,onKeyUp:I,onBlur:O,"aria-label":o.page}),o.page,L)),J.createElement("li",{className:M},_,z)},zl=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,l=t.className,s=t.showTitle,u=t.onClick,f=t.onKeyPress,m=t.itemRender,v="".concat(n,"-item"),g=ce(v,"".concat(v,"-").concat(r),H(H({},"".concat(v,"-active"),o),"".concat(v,"-disabled"),!r),l),h=function(){u(r)},b=function(S){f(S,u,r)},x=m(r,"page",J.createElement("a",{rel:"nofollow"},r));return x?J.createElement("li",{title:s?String(r):null,className:g,onClick:h,onKeyDown:b,tabIndex:0},x):null},k3=function(t,n,r){return r};function $b(){}function Eb(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ki(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var L3=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,l=o===void 0?"rc-select":o,s=t.className,u=t.current,f=t.defaultCurrent,m=f===void 0?1:f,v=t.total,g=v===void 0?0:v,h=t.pageSize,b=t.defaultPageSize,x=b===void 0?10:b,C=t.onChange,S=C===void 0?$b:C,E=t.hideOnSinglePage,$=t.align,R=t.showPrevNextJumpers,P=R===void 0?!0:R,O=t.showQuickJumper,I=t.showLessItems,T=t.showTitle,M=T===void 0?!0:T,_=t.onShowSizeChange,z=_===void 0?$b:_,L=t.locale,j=L===void 0?N3:L,A=t.style,B=t.totalBoundaryShowSizeChanger,K=B===void 0?50:B,V=t.disabled,U=t.simple,D=t.showTotal,X=t.showSizeChanger,W=X===void 0?g>K:X,k=t.sizeChangerRender,F=t.pageSizeOptions,Y=t.itemRender,ne=Y===void 0?k3:Y,Z=t.jumpPrevIcon,ee=t.jumpNextIcon,me=t.prevIcon,pe=t.nextIcon,ue=J.useRef(null),Se=tr(10,{value:h,defaultValue:x}),fe=re(Se,2),ae=fe[0],ye=fe[1],he=tr(1,{value:u,defaultValue:m,postState:function(ut){return Math.max(1,Math.min(ut,ki(void 0,ae,g)))}}),ve=re(he,2),oe=ve[0],be=ve[1],we=J.useState(oe),$e=re(we,2),Ae=$e[0],je=$e[1];d.useEffect(function(){je(oe)},[oe]);var Ie=Math.max(1,oe-(I?3:5)),Le=Math.min(ki(void 0,ae,g),oe+(I?3:5));function Ee(He,ut){var $t=He||J.createElement("button",{type:"button","aria-label":ut,className:"".concat(r,"-item-link")});return typeof He=="function"&&($t=J.createElement(He,q({},t))),$t}function tt(He){var ut=He.target.value,$t=ki(void 0,ae,g),Jt;return ut===""?Jt=ut:Number.isNaN(Number(ut))?Jt=Ae:ut>=$t?Jt=$t:Jt=Number(ut),Jt}function lt(He){return Eb(He)&&He!==oe&&Eb(g)&&g>0}var bt=g>ae?O:!1;function st(He){(He.keyCode===qe.UP||He.keyCode===qe.DOWN)&&He.preventDefault()}function Ue(He){var ut=tt(He);switch(ut!==Ae&&je(ut),He.keyCode){case qe.ENTER:dt(ut);break;case qe.UP:dt(ut-1);break;case qe.DOWN:dt(ut+1);break}}function it(He){dt(tt(He))}function Ve(He){var ut=ki(He,ae,g),$t=oe>ut&&ut!==0?ut:oe;ye(He),je($t),z==null||z(oe,He),be($t),S==null||S($t,He)}function dt(He){if(lt(He)&&!V){var ut=ki(void 0,ae,g),$t=He;return He>ut?$t=ut:He<1&&($t=1),$t!==Ae&&je($t),be($t),S==null||S($t,ae),$t}return oe}var Xe=oe>1,_e=oe<ki(void 0,ae,g);function Ye(){Xe&&dt(oe-1)}function Pe(){_e&&dt(oe+1)}function Fe(){dt(Ie)}function wt(){dt(Le)}function mt(He,ut){if(He.key==="Enter"||He.charCode===qe.ENTER||He.keyCode===qe.ENTER){for(var $t=arguments.length,Jt=new Array($t>2?$t-2:0),zn=2;zn<$t;zn++)Jt[zn-2]=arguments[zn];ut.apply(void 0,Jt)}}function Bt(He){mt(He,Ye)}function At(He){mt(He,Pe)}function nn(He){mt(He,Fe)}function vn(He){mt(He,wt)}function Vt(He){var ut=ne(He,"prev",Ee(me,"prev page"));return J.isValidElement(ut)?J.cloneElement(ut,{disabled:!Xe}):ut}function Tt(He){var ut=ne(He,"next",Ee(pe,"next page"));return J.isValidElement(ut)?J.cloneElement(ut,{disabled:!_e}):ut}function St(He){(He.type==="click"||He.keyCode===qe.ENTER)&&dt(Ae)}var Wt=null,Lt=xi(t,{aria:!0,data:!0}),Ze=D&&J.createElement("li",{className:"".concat(r,"-total-text")},D(g,[g===0?0:(oe-1)*ae+1,oe*ae>g?g:oe*ae])),yt=null,at=ki(void 0,ae,g);if(E&&g<=ae)return null;var Re=[],Ce={rootPrefixCls:r,onClick:dt,onKeyPress:mt,showTitle:M,itemRender:ne,page:-1},xe=oe-1>0?oe-1:0,Me=oe+1<at?oe+1:at,Ke=O&&O.goButton,Qe=vt(U)==="object"?U.readOnly:!U,Mt=Ke,jt=null;U&&(Ke&&(typeof Ke=="boolean"?Mt=J.createElement("button",{type:"button",onClick:St,onKeyUp:St},j.jump_to_confirm):Mt=J.createElement("span",{onClick:St,onKeyUp:St},Ke),Mt=J.createElement("li",{title:M?"".concat(j.jump_to).concat(oe,"/").concat(at):null,className:"".concat(r,"-simple-pager")},Mt)),jt=J.createElement("li",{title:M?"".concat(oe,"/").concat(at):null,className:"".concat(r,"-simple-pager")},Qe?Ae:J.createElement("input",{type:"text","aria-label":j.jump_to,value:Ae,disabled:V,onKeyDown:st,onKeyUp:Ue,onChange:Ue,onBlur:it,size:3}),J.createElement("span",{className:"".concat(r,"-slash")},"/"),at));var Ot=I?1:2;if(at<=3+Ot*2){at||Re.push(J.createElement(zl,ke({},Ce,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var It=1;It<=at;It+=1)Re.push(J.createElement(zl,ke({},Ce,{key:It,page:It,active:oe===It})))}else{var mn=I?j.prev_3:j.prev_5,sn=I?j.next_3:j.next_5,gn=ne(Ie,"jump-prev",Ee(Z,"prev page")),$n=ne(Le,"jump-next",Ee(ee,"next page"));P&&(Wt=gn?J.createElement("li",{title:M?mn:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:nn,className:ce("".concat(r,"-jump-prev"),H({},"".concat(r,"-jump-prev-custom-icon"),!!Z))},gn):null,yt=$n?J.createElement("li",{title:M?sn:null,key:"next",onClick:wt,tabIndex:0,onKeyDown:vn,className:ce("".concat(r,"-jump-next"),H({},"".concat(r,"-jump-next-custom-icon"),!!ee))},$n):null);var Kt=Math.max(1,oe-Ot),Yt=Math.min(oe+Ot,at);oe-1<=Ot&&(Yt=1+Ot*2),at-oe<=Ot&&(Kt=at-Ot*2);for(var Ne=Kt;Ne<=Yt;Ne+=1)Re.push(J.createElement(zl,ke({},Ce,{key:Ne,page:Ne,active:oe===Ne})));if(oe-1>=Ot*2&&oe!==3&&(Re[0]=J.cloneElement(Re[0],{className:ce("".concat(r,"-item-after-jump-prev"),Re[0].props.className)}),Re.unshift(Wt)),at-oe>=Ot*2&&oe!==at-2){var We=Re[Re.length-1];Re[Re.length-1]=J.cloneElement(We,{className:ce("".concat(r,"-item-before-jump-next"),We.props.className)}),Re.push(yt)}Kt!==1&&Re.unshift(J.createElement(zl,ke({},Ce,{key:1,page:1}))),Yt!==at&&Re.push(J.createElement(zl,ke({},Ce,{key:at,page:at})))}var Ct=Vt(xe);if(Ct){var ct=!Xe||!at;Ct=J.createElement("li",{title:M?j.prev_page:null,onClick:Ye,tabIndex:ct?null:0,onKeyDown:Bt,className:ce("".concat(r,"-prev"),H({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},Ct)}var et=Tt(Me);if(et){var Ge,xt;U?(Ge=!_e,xt=Xe?0:null):(Ge=!_e||!at,xt=Ge?null:0),et=J.createElement("li",{title:M?j.next_page:null,onClick:Pe,tabIndex:xt,onKeyDown:At,className:ce("".concat(r,"-next"),H({},"".concat(r,"-disabled"),Ge)),"aria-disabled":Ge},et)}var kt=ce(r,s,H(H(H(H(H({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),U),"".concat(r,"-disabled"),V));return J.createElement("ul",ke({className:kt,style:A,ref:ue},Lt),Ze,Ct,U?jt:Re,et,J.createElement(j3,{locale:j,rootPrefixCls:r,disabled:V,selectPrefixCls:l,changeSize:Ve,pageSize:ae,pageSizeOptions:F,quickGo:bt?dt:null,goButton:Mt,showSizeChanger:W,sizeChangerRender:k}))};const A3=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}}}}},D3=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(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"}}},[`
268
+ &${t}-mini ${t}-prev ${t}-item-link,
269
+ &${t}-mini ${t}-next ${t}-item-link
270
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM),input:Object.assign(Object.assign({},vv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},B3=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:se(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:se(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 ${se(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${se(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:`${se(e.inputOutlineOffset)} 0 ${se(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:se(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},F3=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}}},[`
271
+ ${t}-prev,
272
+ ${t}-jump-prev,
273
+ ${t}-jump-next
274
+ `]:{marginInlineEnd:e.marginXS},[`
275
+ ${t}-prev,
276
+ ${t}-next,
277
+ ${t}-jump-prev,
278
+ ${t}-jump-next
279
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:se(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:`${se(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:se(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},gv(e)),pv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Uu(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},H3=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:se(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${se(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se(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}}}}},V3=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(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:se(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),H3(e)),F3(e)),B3(e)),D3(e)),A3(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"}}},W3=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ui(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ts(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ts(e)}}}},oC=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},Wu(e)),iC=e=>fn(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"},Vu(e)),U3=On("Pagination",e=>{const t=iC(e);return[V3(t),W3(t)]},oC),G3=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:`${se(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}}}}},K3=wu(["Pagination","bordered"],e=>{const t=iC(e);return G3(t)},oC);function Rb(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var q3=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 X3=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:l,style:s,size:u,locale:f,responsive:m,showSizeChanger:v,selectComponentClass:g,pageSizeOptions:h}=e,b=q3(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=lv(m),[,C]=Wr(),{getPrefixCls:S,direction:E,showSizeChanger:$,className:R,style:P}=Vr("pagination"),O=S("pagination",n),[I,T,M]=U3(O),_=Xo(u),z=_==="small"||!!(x&&!_&&m),[L]=Ja("Pagination",_S),j=Object.assign(Object.assign({},L),f),[A,B]=Rb(v),[K,V]=Rb($),U=A??K,D=B??V,X=g||tl,W=d.useMemo(()=>h?h.map(ee=>Number(ee)):void 0,[h]),k=ee=>{var me;const{disabled:pe,size:ue,onSizeChange:Se,"aria-label":fe,className:ae,options:ye}=ee,{className:he,onChange:ve}=D||{},oe=(me=ye.find(be=>String(be.value)===String(ue)))===null||me===void 0?void 0:me.value;return d.createElement(X,Object.assign({disabled:pe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:be=>be.parentNode,"aria-label":fe,options:ye},D,{value:oe,onChange:(be,we)=>{Se==null||Se(be),ve==null||ve(be,we)},size:z?"small":"middle",className:ce(ae,he)}))},F=d.useMemo(()=>{const ee=d.createElement("span",{className:`${O}-item-ellipsis`},"•••"),me=d.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},E==="rtl"?d.createElement(rs,null):d.createElement(uu,null)),pe=d.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},E==="rtl"?d.createElement(uu,null):d.createElement(rs,null)),ue=d.createElement("a",{className:`${O}-item-link`},d.createElement("div",{className:`${O}-item-container`},E==="rtl"?d.createElement(wb,{className:`${O}-item-link-icon`}):d.createElement(Cb,{className:`${O}-item-link-icon`}),ee)),Se=d.createElement("a",{className:`${O}-item-link`},d.createElement("div",{className:`${O}-item-container`},E==="rtl"?d.createElement(Cb,{className:`${O}-item-link-icon`}):d.createElement(wb,{className:`${O}-item-link-icon`}),ee));return{prevIcon:me,nextIcon:pe,jumpPrevIcon:ue,jumpNextIcon:Se}},[E,O]),Y=S("select",r),ne=ce({[`${O}-${t}`]:!!t,[`${O}-mini`]:z,[`${O}-rtl`]:E==="rtl",[`${O}-bordered`]:C.wireframe},R,o,l,T,M),Z=Object.assign(Object.assign({},P),s);return I(d.createElement(d.Fragment,null,C.wireframe&&d.createElement(K3,{prefixCls:O}),d.createElement(L3,Object.assign({},F,b,{style:Z,prefixCls:O,selectPrefixCls:Y,className:ne,locale:j,pageSizeOptions:W,showSizeChanger:U,sizeChangerRender:k}))))},fu=100,aC=fu/5,lC=fu/2-aC/2,cm=lC*2*Math.PI,Ob=50,Ib=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:lC,cx:Ob,cy:Ob,strokeWidth:aC,style:n})},Q3=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[l,s]=d.useState(!1);tn(()=>{e!==0&&s(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const f={strokeDashoffset:`${cm/4}`,strokeDasharray:`${cm*u/100} ${cm*(100-u)/100}`};return d.createElement("span",{className:ce(r,`${n}-progress`,u<=0&&o)},d.createElement("svg",{viewBox:`0 0 ${fu} ${fu}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},d.createElement(Ib,{dotClassName:n,hasCircleCls:!0}),d.createElement(Ib,{dotClassName:n,style:f})))};function Y3(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,l=`${o}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:ce(o,n>0&&l)},d.createElement("span",{className:ce(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>d.createElement("i",{className:`${t}-dot-item`,key:s})))),d.createElement(Q3,{prefixCls:t,percent:n}))}function Z3(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,l=`${n}-dot`;return r&&d.isValidElement(r)?Po(r,{className:ce((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):d.createElement(Y3,{prefixCls:n,percent:o})}const J3=new Ht("antSpinMove",{to:{opacity:1}}),ek=new Ht("antRotate",{to:{transform:"rotate(405deg)"}}),tk=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},lr(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:J3,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:ek,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"}})}},nk=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},rk=On("Spin",e=>{const t=fn(e,{spinDotDefault:e.colorTextDescription});return tk(t)},nk),ok=200,Pb=[[30,.05],[70,.03],[96,.01]];function ik(e,t){const[n,r]=d.useState(0),o=d.useRef(null),l=t==="auto";return d.useEffect(()=>(l&&e&&(r(0),o.current=setInterval(()=>{r(s=>{const u=100-s;for(let f=0;f<Pb.length;f+=1){const[m,v]=Pb[f];if(s<=m)return s+u*v}return s})},ok)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}var ak=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 sC;function lk(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const cC=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:l,rootClassName:s,size:u="default",tip:f,wrapperClassName:m,style:v,children:g,fullscreen:h=!1,indicator:b,percent:x}=e,C=ak(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:S,direction:E,className:$,style:R,indicator:P}=Vr("spin"),O=S("spin",n),[I,T,M]=rk(O),[_,z]=d.useState(()=>r&&!lk(r,o)),L=ik(_,x);d.useEffect(()=>{if(r){const D=M4(o,()=>{z(!0)});return D(),()=>{var X;(X=D==null?void 0:D.cancel)===null||X===void 0||X.call(D)}}z(!1)},[o,r]);const j=d.useMemo(()=>typeof g<"u"&&!h,[g,h]),A=ce(O,$,{[`${O}-sm`]:u==="small",[`${O}-lg`]:u==="large",[`${O}-spinning`]:_,[`${O}-show-text`]:!!f,[`${O}-rtl`]:E==="rtl"},l,!h&&s,T,M),B=ce(`${O}-container`,{[`${O}-blur`]:_}),K=(t=b??P)!==null&&t!==void 0?t:sC,V=Object.assign(Object.assign({},R),v),U=d.createElement("div",Object.assign({},C,{style:V,className:A,"aria-live":"polite","aria-busy":_}),d.createElement(Z3,{prefixCls:O,indicator:K,percent:L}),f&&(j||h)?d.createElement("div",{className:`${O}-text`},f):null);return I(j?d.createElement("div",Object.assign({},C,{className:ce(`${O}-nested-loading`,m,T,M)}),_&&d.createElement("div",{key:"loading"},U),d.createElement("div",{className:B,key:"container"},g)):h?d.createElement("div",{className:ce(`${O}-fullscreen`,{[`${O}-fullscreen-show`]:_},s,T,M)},U):U)};cC.setDefaultIndicator=e=>{sC=e};const bv=J.createContext({});bv.Consumer;var uC=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 sk=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=uC(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=d.useContext(Gt),f=u("list",t),m=ce(`${f}-item-meta`,n),v=J.createElement("div",{className:`${f}-item-meta-content`},o&&J.createElement("h4",{className:`${f}-item-meta-title`},o),l&&J.createElement("div",{className:`${f}-item-meta-description`},l));return J.createElement("div",Object.assign({},s,{className:m}),r&&J.createElement("div",{className:`${f}-item-meta-avatar`},r),(o||l)&&v)},ck=J.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:u,classNames:f,colStyle:m}=e,v=uC(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:h}=d.useContext(bv),{getPrefixCls:b,list:x}=d.useContext(Gt),C=T=>{var M,_;return ce((_=(M=x==null?void 0:x.item)===null||M===void 0?void 0:M.classNames)===null||_===void 0?void 0:_[T],f==null?void 0:f[T])},S=T=>{var M,_;return Object.assign(Object.assign({},(_=(M=x==null?void 0:x.item)===null||M===void 0?void 0:M.styles)===null||_===void 0?void 0:_[T]),s==null?void 0:s[T])},E=()=>{let T=!1;return d.Children.forEach(r,M=>{typeof M=="string"&&(T=!0)}),T&&d.Children.count(r)>1},$=()=>h==="vertical"?!!l:!E(),R=b("list",n),P=o&&o.length>0&&J.createElement("ul",{className:ce(`${R}-item-action`,C("actions")),key:"actions",style:S("actions")},o.map((T,M)=>J.createElement("li",{key:`${R}-item-action-${M}`},T,M!==o.length-1&&J.createElement("em",{className:`${R}-item-action-split`})))),O=g?"div":"li",I=J.createElement(O,Object.assign({},v,g?{}:{ref:t},{className:ce(`${R}-item`,{[`${R}-item-no-flex`]:!$()},u)}),h==="vertical"&&l?[J.createElement("div",{className:`${R}-item-main`,key:"content"},r,P),J.createElement("div",{className:ce(`${R}-item-extra`,C("extra")),key:"extra",style:S("extra")},l)]:[r,P,Po(l,{key:"extra"})]);return g?J.createElement(j4,{ref:t,flex:1,style:m},I):I}),dC=ck;dC.Meta=sk;const uk=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:l,itemPaddingLG:s,marginLG:u,borderRadiusLG:f}=e,m=se(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${m} ${m} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${m} ${m}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${se(o)} ${se(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},dk=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:l,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${se(s)}`}}}}}},fk=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:l,marginLG:s,padding:u,itemPadding:f,colorPrimary:m,itemPaddingSM:v,itemPaddingLG:g,paddingXS:h,margin:b,colorText:x,colorTextDescription:C,motionDurationSlow:S,lineWidth:E,headerBg:$,footerBg:R,emptyTextPadding:P,metaMarginBottom:O,avatarMarginRight:I,titleMarginBottom:T,descriptionFontSize:M}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:$},[`${t}-footer`]:{background:R},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:x,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:I},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:x},[`${t}-item-meta-title`]:{margin:`0 0 ${se(e.marginXXS)} 0`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:x,transition:`all ${S}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:C,fontSize:M,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${se(h)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:E,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${se(u)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:P,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:b,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:O,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:x,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${se(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:v},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},mk=e=>({contentWidth:220,itemPadding:`${se(e.paddingContentVertical)} 0`,itemPaddingSM:`${se(e.paddingContentVerticalSM)} ${se(e.paddingContentHorizontal)}`,itemPaddingLG:`${se(e.paddingContentVerticalLG)} ${se(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),pk=On("List",e=>{const t=fn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[fk(t),uk(t),dk(t)]},mk);var vk=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 gk(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:l=!0,className:s,rootClassName:u,style:f,children:m,itemLayout:v,loadMore:g,grid:h,dataSource:b=[],size:x,header:C,footer:S,loading:E=!1,rowKey:$,renderItem:R,locale:P}=e,O=vk(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),I=n&&typeof n=="object"?n:{},[T,M]=d.useState(I.defaultCurrent||1),[_,z]=d.useState(I.defaultPageSize||10),{getPrefixCls:L,direction:j,className:A,style:B}=Vr("list"),{renderEmpty:K}=d.useContext(Gt),V={current:1,total:0,position:"bottom"},U=Ie=>(Le,Ee)=>{var tt;M(Le),z(Ee),n&&((tt=n==null?void 0:n[Ie])===null||tt===void 0||tt.call(n,Le,Ee))},D=U("onChange"),X=U("onShowSizeChange"),W=(Ie,Le)=>{if(!R)return null;let Ee;return typeof $=="function"?Ee=$(Ie):$?Ee=Ie[$]:Ee=Ie.key,Ee||(Ee=`list-item-${Le}`),d.createElement(d.Fragment,{key:Ee},R(Ie,Le))},k=!!(g||n||S),F=L("list",r),[Y,ne,Z]=pk(F);let ee=E;typeof ee=="boolean"&&(ee={spinning:ee});const me=!!(ee!=null&&ee.spinning),pe=Xo(x);let ue="";switch(pe){case"large":ue="lg";break;case"small":ue="sm";break}const Se=ce(F,{[`${F}-vertical`]:v==="vertical",[`${F}-${ue}`]:ue,[`${F}-split`]:l,[`${F}-bordered`]:o,[`${F}-loading`]:me,[`${F}-grid`]:!!h,[`${F}-something-after-last-item`]:k,[`${F}-rtl`]:j==="rtl"},A,s,u,ne,Z),fe=ep(V,{total:b.length,current:T,pageSize:_},n||{}),ae=Math.ceil(fe.total/fe.pageSize);fe.current=Math.min(fe.current,ae);const ye=n&&d.createElement("div",{className:ce(`${F}-pagination`)},d.createElement(X3,Object.assign({align:"end"},fe,{onChange:D,onShowSizeChange:X})));let he=Be(b);n&&b.length>(fe.current-1)*fe.pageSize&&(he=Be(b).splice((fe.current-1)*fe.pageSize,fe.pageSize));const ve=Object.keys(h||{}).some(Ie=>["xs","sm","md","lg","xl","xxl"].includes(Ie)),oe=lv(ve),be=d.useMemo(()=>{for(let Ie=0;Ie<Gi.length;Ie+=1){const Le=Gi[Ie];if(oe[Le])return Le}},[oe]),we=d.useMemo(()=>{if(!h)return;const Ie=be&&h[be]?h[be]:h.column;if(Ie)return{width:`${100/Ie}%`,maxWidth:`${100/Ie}%`}},[JSON.stringify(h),be]);let $e=me&&d.createElement("div",{style:{minHeight:53}});if(he.length>0){const Ie=he.map(W);$e=h?d.createElement(A4,{gutter:h.gutter},d.Children.map(Ie,Le=>d.createElement("div",{key:Le==null?void 0:Le.key,style:we},Le))):d.createElement("ul",{className:`${F}-items`},Ie)}else!m&&!me&&($e=d.createElement("div",{className:`${F}-empty-text`},(P==null?void 0:P.emptyText)||(K==null?void 0:K("List"))||d.createElement(ux,{componentName:"List"})));const Ae=fe.position,je=d.useMemo(()=>({grid:h,itemLayout:v}),[JSON.stringify(h),v]);return Y(d.createElement(bv.Provider,{value:je},d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},B),f),className:Se},O),(Ae==="top"||Ae==="both")&&ye,C&&d.createElement("div",{className:`${F}-header`},C),d.createElement(cC,Object.assign({},ee),$e,m),S&&d.createElement("div",{className:`${F}-footer`},S),g||(Ae==="bottom"||Ae==="both")&&ye)))}const hk=d.forwardRef(gk),Op=hk;Op.Item=dC;const yk=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let no=null,Bi=e=>e(),ss=[],cs={};function Tb(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=cs,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const bk=J.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=d.useContext(Gt),l=cs.prefixCls||o("message"),s=d.useContext(x_),[u,f]=b1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return J.useImperativeHandle(t,()=>{const m=Object.assign({},u);return Object.keys(m).forEach(v=>{m[v]=(...g)=>(r(),u[v].apply(u,g))}),{instance:m,sync:r}}),f}),Sk=J.forwardRef((e,t)=>{const[n,r]=J.useState(Tb),o=()=>{r(Tb)};J.useEffect(o,[]);const l=GR(),s=l.getRootPrefixCls(),u=l.getIconPrefixCls(),f=l.getTheme(),m=J.createElement(bk,{ref:t,sync:o,messageConfig:n});return J.createElement(Ci,{prefixCls:s,iconPrefixCls:u,theme:f},l.holderRender?l.holderRender(m):m)}),qu=()=>{if(!no){const e=document.createDocumentFragment(),t={fragment:e};no=t,Bi(()=>{C1()(J.createElement(Sk,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,qu())})}}),e)});return}no.instance&&(ss.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Bi(()=>{const r=no.instance.open(Object.assign(Object.assign({},cs),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Bi(()=>{no==null||no.instance.destroy(e.key)});break;default:Bi(()=>{var r;const o=(r=no.instance)[t].apply(r,Be(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ss=[])};function xk(e){cs=Object.assign(Object.assign({},cs),e),Bi(()=>{var t;(t=no==null?void 0:no.sync)===null||t===void 0||t.call(no)})}function Ck(e){const t=qp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return ss.push(o),()=>{r?Bi(()=>{r()}):o.skipped=!0}});return qu(),t}function wk(e,t){const n=qp(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return ss.push(l),()=>{o?Bi(()=>{o()}):l.skipped=!0}});return qu(),n}const $k=e=>{ss.push({type:"destroy",key:e}),qu()},Ek=["success","info","warning","error","loading"],Rk={open:Ck,destroy:$k,config:xk,useMessage:ZO,_InternalPanelDoNotUseOrYouWillBeFired:WO},fC=Rk;Ek.forEach(e=>{fC[e]=(...t)=>wk(e,t)});const Ok=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:l}=e,s=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},lr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${se(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:u,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:s}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Sv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return fn(e,{tagFontSize:o,tagLineHeight:se(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},xv=e=>({defaultBg:new dn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),mC=On("Tag",e=>{const t=Sv(e);return Ok(t)},xv);var Ik=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 Pk=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:u,onChange:f,onClick:m}=e,v=Ik(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:h}=d.useContext(Gt),b=R=>{f==null||f(!l),m==null||m(R)},x=g("tag",n),[C,S,E]=mC(x),$=ce(x,`${x}-checkable`,{[`${x}-checkable-checked`]:l},h==null?void 0:h.className,o,S,E);return C(d.createElement("span",Object.assign({},v,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:$,onClick:b}),u,d.createElement("span",null,s)))}),Tk=e=>$u(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),_k=wu(["Tag","preset"],e=>{const t=Sv(e);return Tk(t)},xv);function Mk(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _c=(e,t,n)=>{const r=Mk(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"}}}},Nk=wu(["Tag","status"],e=>{const t=Sv(e);return[_c(t,"success","Success"),_c(t,"processing","Info"),_c(t,"error","Error"),_c(t,"warning","Warning")]},xv);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 jk=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:l,children:s,icon:u,color:f,onClose:m,bordered:v=!0,visible:g}=e,h=zk(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:x,tag:C}=d.useContext(Gt),[S,E]=d.useState(!0),$=Hr(h,["closeIcon","closable"]);d.useEffect(()=>{g!==void 0&&E(g)},[g]);const R=Du(f),P=iz(f),O=R||P,I=Object.assign(Object.assign({backgroundColor:f&&!O?f:void 0},C==null?void 0:C.style),l),T=b("tag",n),[M,_,z]=mC(T),L=ce(T,C==null?void 0:C.className,{[`${T}-${f}`]:O,[`${T}-has-color`]:f&&!O,[`${T}-hidden`]:!S,[`${T}-rtl`]:x==="rtl",[`${T}-borderless`]:!v},r,o,_,z),j=D=>{D.stopPropagation(),m==null||m(D),!D.defaultPrevented&&E(!1)},[,A]=zO(q0(e),q0(C),{closable:!1,closeIconRender:D=>{const X=d.createElement("span",{className:`${T}-close-icon`,onClick:j},D);return d1(D,X,W=>({onClick:k=>{var F;(F=W==null?void 0:W.onClick)===null||F===void 0||F.call(W,k),j(k)},className:ce(W==null?void 0:W.className,`${T}-close-icon`)}))}}),B=typeof h.onClick=="function"||s&&s.type==="a",K=u||null,V=K?d.createElement(d.Fragment,null,K,s&&d.createElement("span",null,s)):s,U=d.createElement("span",Object.assign({},$,{ref:t,className:L,style:I}),V,A,R&&d.createElement(_k,{key:"preset",prefixCls:T}),P&&d.createElement(Nk,{key:"status",prefixCls:T}));return M(B?d.createElement($1,{component:"Tag"},U):U)}),Wo=jk;Wo.CheckableTag=Pk;const to=(e,t)=>new dn(e).setA(t).toRgbString(),ja=(e,t)=>new dn(e).lighten(t).toHexString(),kk=e=>{const t=Vi(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Lk=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:to(r,.85),colorTextSecondary:to(r,.65),colorTextTertiary:to(r,.45),colorTextQuaternary:to(r,.25),colorFill:to(r,.18),colorFillSecondary:to(r,.12),colorFillTertiary:to(r,.08),colorFillQuaternary:to(r,.04),colorBgSolid:to(r,.95),colorBgSolidHover:to(r,1),colorBgSolidActive:to(r,.9),colorBgElevated:ja(n,12),colorBgContainer:ja(n,8),colorBgLayout:ja(n,0),colorBgSpotlight:ja(n,26),colorBgBlur:to(r,.04),colorBorder:ja(n,26),colorBorderSecondary:ja(n,19)}},Ak=(e,t)=>{const n=Object.keys(Up).map(l=>{const s=Vi(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,f,m)=>(u[`${l}-${m+1}`]=s[m],u[`${l}${m+1}`]=s[m],u),{})}).reduce((l,s)=>(l=Object.assign(Object.assign({},l),s),l),{}),r=t??kS(e),o=jS(e,{generateColorPalettes:kk,generateNeutralColorPalettes:Lk});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},Dk={defaultSeed:Jc.token,darkAlgorithm:Ak};var Bk={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"},Fk=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:Bk}))},Hk=d.forwardRef(Fk),Vk={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"},Wk=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:Vk}))},Uk=d.forwardRef(Wk);const Gk=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Kk=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
280
+ h${r}&,
281
+ div&-h${r},
282
+ div&-h${r} > textarea,
283
+ h${r}
284
+ `]=Gk(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},qk=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},GS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Xk=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:Yc[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}}),Qk=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"}}}},Yk=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Zk=()=>({"\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"}}),Jk=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"}},Kk(e)),{[`
285
+ & + h1${t},
286
+ & + h2${t},
287
+ & + h3${t},
288
+ & + h4${t},
289
+ & + h5${t}
290
+ `]:{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}}}),Xk(e)),qk(e)),{[`
291
+ ${t}-expand,
292
+ ${t}-collapse,
293
+ ${t}-edit,
294
+ ${t}-copy
295
+ `]:Object.assign(Object.assign({},GS(e)),{marginInlineStart:e.marginXXS})}),Qk(e)),Yk(e)),Zk()),{"&-rtl":{direction:"rtl"}})}},eL=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),pC=On("Typography",Jk,eL),tL=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:s,autoSize:u=!0,value:f,onSave:m,onCancel:v,onEnd:g,component:h,enterIcon:b=d.createElement(Uk,null)}=e,x=d.useRef(null),C=d.useRef(!1),S=d.useRef(null),[E,$]=d.useState(f);d.useEffect(()=>{$(f)},[f]),d.useEffect(()=>{var B;if(!((B=x.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:K}=x.current.resizableTextArea;K.focus();const{length:V}=K.value;K.setSelectionRange(V,V)}},[]);const R=({target:B})=>{$(B.value.replace(/[\n\r]/g,""))},P=()=>{C.current=!0},O=()=>{C.current=!1},I=({keyCode:B})=>{C.current||(S.current=B)},T=()=>{m(E.trim())},M=({keyCode:B,ctrlKey:K,altKey:V,metaKey:U,shiftKey:D})=>{S.current!==B||C.current||K||V||U||D||(B===qe.ENTER?(T(),g==null||g()):B===qe.ESC&&v())},_=()=>{T()},[z,L,j]=pC(t),A=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,L,j);return z(d.createElement("div",{className:A,style:o},d.createElement(C3,{ref:x,maxLength:s,value:E,onChange:R,onKeyDown:I,onKeyUp:M,onCompositionStart:P,onCompositionEnd:O,onBlur:_,"aria-label":n,rows:1,autoSize:u}),b!==null?Po(b,{className:`${t}-edit-content-confirm`}):null))};var um,_b;function nL(){return _b||(_b=1,um=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()}}),um}var dm,Mb;function rL(){if(Mb)return dm;Mb=1;var e=nL(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function o(l,s){var u,f,m,v,g,h,b=!1;s||(s={}),u=s.debug||!1;try{m=e(),v=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=l,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(C){if(C.stopPropagation(),s.format)if(C.preventDefault(),typeof C.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[s.format]||t.default;window.clipboardData.setData(S,l)}else C.clipboardData.clearData(),C.clipboardData.setData(s.format,l);s.onCopy&&(C.preventDefault(),s.onCopy(C.clipboardData))}),document.body.appendChild(h),v.selectNodeContents(h),g.addRange(v);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");b=!0}catch(C){u&&console.error("unable to copy using execCommand: ",C),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(S){u&&console.error("unable to copy using clipboardData: ",S),u&&console.error("falling back to prompt"),f=r("message"in s?s.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(v):g.removeAllRanges()),h&&document.body.removeChild(h),m()}return b}return dm=o,dm}var oL=rL();const iL=us(oL);var aL=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function u(v){try{m(r.next(v))}catch(g){s(g)}}function f(v){try{m(r.throw(v))}catch(g){s(g)}}function m(v){v.done?l(v.value):o(v.value).then(u,f)}m((r=r.apply(e,t||[])).next())})};const lL=({copyConfig:e,children:t})=>{const[n,r]=d.useState(!1),[o,l]=d.useState(!1),s=d.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},f={};e.format&&(f.format=e.format),d.useEffect(()=>u,[]);const m=Kn(v=>aL(void 0,void 0,void 0,function*(){var g;v==null||v.preventDefault(),v==null||v.stopPropagation(),l(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;iL(h||yk(t,!0).join("")||"",f),l(!1),r(!0),u(),s.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,v)}catch(h){throw l(!1),h}}));return{copied:n,copyLoading:o,onClick:m}};function fm(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const sL=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},cL=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var uL=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 vC=d.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:u,direction:f,style:m}=e,v=uL(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,className:b,style:x}=Vr("typography"),C=f??h,S=s?Uo(t,s):t,E=g("typography",n),[$,R,P]=pC(E),O=ce(E,b,{[`${E}-rtl`]:C==="rtl"},o,l,R,P),I=Object.assign(Object.assign({},x),m);return $(d.createElement(r,Object.assign({className:O,style:I,ref:S},v),u))});var dL={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"},fL=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:dL}))},gC=d.forwardRef(fL);function Nb(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function mm(e,t,n){return e===!0||e===void 0?t:e||n&&t}function mL(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 Cv=e=>["string","number"].includes(typeof e),pL=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:u,loading:f})=>{const m=Nb(o),v=Nb(l),{copied:g,copy:h}=n??{},b=t?g:h,x=mm(m[t?1:0],b),C=typeof x=="string"?x:b;return d.createElement(Bu,{title:x},d.createElement("button",{type:"button",className:ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":C,tabIndex:s},t?mm(v[1],d.createElement(vx,null),!0):mm(v[0],f?d.createElement(Ru,null):d.createElement(gC,null),!0)))},Mc=d.forwardRef(({style:e,children:t},n)=>{const r=d.useRef(null);return d.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),d.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)}),vL=e=>e.reduce((t,n)=>t+(Cv(n)?String(n).length:1),0);function zb(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],u=Cv(l)?String(l).length:1,f=n+u;if(f>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=f}return e}const pm=0,vm=1,gm=2,hm=3,jb=4,Nc={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function gL(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:s,miscDeps:u,onEllipsis:f}=e,m=d.useMemo(()=>Mr(r),[r]),v=d.useMemo(()=>vL(m),[r]),g=d.useMemo(()=>o(m,!1),[r]),[h,b]=d.useState(null),x=d.useRef(null),C=d.useRef(null),S=d.useRef(null),E=d.useRef(null),$=d.useRef(null),[R,P]=d.useState(!1),[O,I]=d.useState(pm),[T,M]=d.useState(0),[_,z]=d.useState(null);tn(()=>{I(t&&n&&v?vm:pm)},[n,r,l,t,m]),tn(()=>{var B,K,V,U;if(O===vm){I(gm);const D=C.current&&getComputedStyle(C.current).whiteSpace;z(D)}else if(O===gm){const D=!!(!((B=S.current)===null||B===void 0)&&B.isExceed());I(D?hm:jb),b(D?[0,v]:null),P(D);const X=((K=S.current)===null||K===void 0?void 0:K.getHeight())||0,W=l===1?0:((V=E.current)===null||V===void 0?void 0:V.getHeight())||0,k=((U=$.current)===null||U===void 0?void 0:U.getHeight())||0,F=Math.max(X,W+k);M(F+1),f(D)}},[O]);const L=h?Math.ceil((h[0]+h[1])/2):0;tn(()=>{var B;const[K,V]=h||[0,0];if(K!==V){const D=(((B=x.current)===null||B===void 0?void 0:B.getHeight())||0)>T;let X=L;V-K===1&&(X=D?K:V),b(D?[K,X]:[X,V])}},[h,L]);const j=d.useMemo(()=>{if(!t)return o(m,!1);if(O!==hm||!h||h[0]!==h[1]){const B=o(m,!1);return[jb,pm].includes(O)?B:d.createElement("span",{style:Object.assign(Object.assign({},Nc),{WebkitLineClamp:l})},B)}return o(s?m:zb(m,h[0]),R)},[s,O,h,m].concat(Be(u))),A={width:n,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,j,O===gm&&d.createElement(d.Fragment,null,d.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),Nc),{WebkitLineClamp:l}),ref:S},g),d.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),Nc),{WebkitLineClamp:l-1}),ref:E},g),d.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),Nc),{WebkitLineClamp:1}),ref:$},o([],!0))),O===hm&&h&&h[0]!==h[1]&&d.createElement(Mc,{style:Object.assign(Object.assign({},A),{top:400}),ref:x},o(zb(m,L),!0)),O===vm&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const hL=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:d.createElement(Bu,Object.assign({open:t?void 0:!1},r),n);var yL=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 bL({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:s},u){let f=u;function m(v,g){g&&(f=d.createElement(v,{},f))}return m("strong",o),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),f}const SL="...",kb=["delete","mark","code","underline","strong","keyboard","italic"],Xu=d.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:s,disabled:u,children:f,ellipsis:m,editable:v,copyable:g,component:h,title:b}=e,x=yL(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:S}=d.useContext(Gt),[E]=Ja("Text"),$=d.useRef(null),R=d.useRef(null),P=C("typography",r),O=Hr(x,kb),[I,T]=fm(v),[M,_]=tr(!1,{value:T.editing}),{triggerType:z=["icon"]}=T,L=Pe=>{var Fe;Pe&&((Fe=T.onStart)===null||Fe===void 0||Fe.call(T)),_(Pe)},j=sL(M);tn(()=>{var Pe;!M&&j&&((Pe=R.current)===null||Pe===void 0||Pe.focus())},[M]);const A=Pe=>{Pe==null||Pe.preventDefault(),L(!0)},B=Pe=>{var Fe;(Fe=T.onChange)===null||Fe===void 0||Fe.call(T,Pe),L(!1)},K=()=>{var Pe;(Pe=T.onCancel)===null||Pe===void 0||Pe.call(T),L(!1)},[V,U]=fm(g),{copied:D,copyLoading:X,onClick:W}=lL({copyConfig:U,children:f}),[k,F]=d.useState(!1),[Y,ne]=d.useState(!1),[Z,ee]=d.useState(!1),[me,pe]=d.useState(!1),[ue,Se]=d.useState(!0),[fe,ae]=fm(m,{expandable:!1,symbol:Pe=>Pe?E==null?void 0:E.collapse:E==null?void 0:E.expand}),[ye,he]=tr(ae.defaultExpanded||!1,{value:ae.expanded}),ve=fe&&(!ye||ae.expandable==="collapsible"),{rows:oe=1}=ae,be=d.useMemo(()=>ve&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||I||V),[ve,ae,I,V]);tn(()=>{fe&&!be&&(F(Cy("webkitLineClamp")),ne(Cy("textOverflow")))},[be,fe]);const[we,$e]=d.useState(ve),Ae=d.useMemo(()=>be?!1:oe===1?Y:k,[be,Y,k]);tn(()=>{$e(Ae&&ve)},[Ae,ve]);const je=ve&&(we?me:Z),Ie=ve&&oe===1&&we,Le=ve&&oe>1&&we,Ee=(Pe,Fe)=>{var wt;he(Fe.expanded),(wt=ae.onExpand)===null||wt===void 0||wt.call(ae,Pe,Fe)},[tt,lt]=d.useState(0),bt=({offsetWidth:Pe})=>{lt(Pe)},st=Pe=>{var Fe;ee(Pe),Z!==Pe&&((Fe=ae.onEllipsis)===null||Fe===void 0||Fe.call(ae,Pe))};d.useEffect(()=>{const Pe=$.current;if(fe&&we&&Pe){const Fe=mL(Pe);me!==Fe&&pe(Fe)}},[fe,we,f,Le,ue,tt]),d.useEffect(()=>{const Pe=$.current;if(typeof IntersectionObserver>"u"||!Pe||!we||!ve)return;const Fe=new IntersectionObserver(()=>{Se(!!Pe.offsetParent)});return Fe.observe(Pe),()=>{Fe.disconnect()}},[we,ve]);const Ue=cL(ae.tooltip,T.text,f),it=d.useMemo(()=>{if(!(!fe||we))return[T.text,f,b,Ue.title].find(Cv)},[fe,we,b,Ue.title,je]);if(M)return d.createElement(tL,{value:(n=T.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:B,onCancel:K,onEnd:T.onEnd,prefixCls:P,className:o,style:l,direction:S,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ve=()=>{const{expandable:Pe,symbol:Fe}=ae;return Pe?d.createElement("button",{type:"button",key:"expand",className:`${P}-${ye?"collapse":"expand"}`,onClick:wt=>Ee(wt,{expanded:!ye}),"aria-label":ye?E.collapse:E==null?void 0:E.expand},typeof Fe=="function"?Fe(ye):Fe):null},dt=()=>{if(!I)return;const{icon:Pe,tooltip:Fe,tabIndex:wt}=T,mt=Mr(Fe)[0]||(E==null?void 0:E.edit),Bt=typeof mt=="string"?mt:"";return z.includes("icon")?d.createElement(Bu,{key:"edit",title:Fe===!1?"":mt},d.createElement("button",{type:"button",ref:R,className:`${P}-edit`,onClick:A,"aria-label":Bt,tabIndex:wt},Pe||d.createElement(Hk,{role:"button"}))):null},Xe=()=>V?d.createElement(pL,Object.assign({key:"copy"},U,{prefixCls:P,copied:D,locale:E,onCopy:W,loading:X,iconOnly:f==null})):null,_e=Pe=>[Pe&&Ve(),dt(),Xe()],Ye=Pe=>[Pe&&!ye&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},SL),ae.suffix,_e(Pe)];return d.createElement(ro,{onResize:bt,disabled:!ve},Pe=>d.createElement(hL,{tooltipProps:Ue,enableEllipsis:ve,isEllipsis:je},d.createElement(vC,Object.assign({className:ce({[`${P}-${s}`]:s,[`${P}-disabled`]:u,[`${P}-ellipsis`]:fe,[`${P}-ellipsis-single-line`]:Ie,[`${P}-ellipsis-multiple-line`]:Le},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Le?oe:void 0}),component:h,ref:Uo(Pe,$,t),direction:S,onClick:z.includes("text")?A:void 0,"aria-label":it==null?void 0:it.toString(),title:b},O),d.createElement(gL,{enableMeasure:ve&&!we,text:f,rows:oe,width:tt,onEllipsis:st,expanded:ye,miscDeps:[D,ye,X,I,V,E].concat(Be(kb.map(Fe=>e[Fe])))},(Fe,wt)=>bL(e,d.createElement(d.Fragment,null,Fe.length>0&&wt&&!ye&&it?d.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,Ye(wt)))))))});var xL=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 CL=d.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,s=xL(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return d.createElement(Xu,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),o)});var wL=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 $L=d.forwardRef((e,t)=>{const{children:n}=e,r=wL(e,["children"]);return d.createElement(Xu,Object.assign({ref:t},r,{component:"div"}),n)});var EL=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 RL=(e,t)=>{const{ellipsis:n,children:r}=e,o=EL(e,["ellipsis","children"]),l=d.useMemo(()=>n&&typeof n=="object"?Hr(n,["expandable","rows"]):n,[n]);return d.createElement(Xu,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},OL=d.forwardRef(RL);var IL=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 PL=[1,2,3,4,5],TL=d.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=IL(e,["level","children"]),l=PL.includes(n)?`h${n}`:"h1";return d.createElement(Xu,Object.assign({ref:t},o,{component:l}),r)}),xo=vC;xo.Text=OL;xo.Link=CL;xo.Title=TL;xo.Paragraph=$L;var _L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},ML=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:_L}))},NL=d.forwardRef(ML),zL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},jL=function(t,n){return d.createElement(In,ke({},t,{ref:n,icon:zL}))},kL=d.forwardRef(jL);const{Text:LL}=xo;class AL extends J.Component{constructor(t){super(t),this.state={countdownText:""},this._rafId=null,this._expiredTimer=null,this.updateCountdown=this.updateCountdown.bind(this)}componentDidMount(){this.startCountdown()}componentDidUpdate(t){t.cacheExpireAt!==this.props.cacheExpireAt&&this.startCountdown()}componentWillUnmount(){this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer)}startCountdown(){if(this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer),!this.props.cacheExpireAt){this.setState({countdownText:""});return}this._rafId=requestAnimationFrame(this.updateCountdown)}updateCountdown(){const{cacheExpireAt:t}=this.props;if(!t){this.setState({countdownText:""});return}const n=Math.max(0,t-Date.now());if(n<=0){this.setState({countdownText:"已失效"}),this._expiredTimer=setTimeout(()=>{this.setState({countdownText:""})},5e3);return}const r=Math.ceil(n/1e3);let o;if(r>=60){const l=Math.floor(r/60),s=r%60;o=`${l}分${String(s).padStart(2,"0")}秒`}else o=`${r}秒`;this.setState({countdownText:o}),this._rafId=requestAnimationFrame(this.updateCountdown)}render(){const{requestCount:t,viewMode:n,cacheType:r,onToggleViewMode:o}=this.props,{countdownText:l}=this.state;return ie.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%"},children:[ie.jsxs(ls,{size:"middle",children:[ie.jsx(LL,{strong:!0,style:{color:"#fff",fontSize:18},children:"Claude Code Viewer"}),ie.jsxs(Wo,{color:"green",style:{borderRadius:12},children:[ie.jsx(Rx,{status:"processing",color:"green"}),ie.jsx("span",{style:{marginLeft:4},children:"实时监控中"})]})]}),ie.jsxs(ls,{size:"middle",children:[l&&ie.jsxs(Wo,{color:l==="已失效"?"red":"green",children:["MainAgent缓存",r?`(${r})`:"","失效倒计时:",ie.jsx("strong",{style:{fontVariantNumeric:"tabular-nums"},children:l})]}),ie.jsxs(Wo,{children:["总请求数: ",ie.jsx("strong",{style:{color:"#fff"},children:t})]}),ie.jsx(os,{size:"small",icon:n==="raw"?ie.jsx(kL,{}):ie.jsx(nC,{}),onClick:o,children:n==="raw"?"对话模式":"原文模式"})]})]})}}const{Text:ym}=xo;class DL extends J.Component{render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?ie.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ie.jsx(ho,{description:"等待请求..."})}):ie.jsx("div",{style:{overflow:"auto",height:"100%"},children:ie.jsx(Op,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{const s=new Date(o.timestamp).toLocaleTimeString("zh-CN");let u=o.url;try{const g=new URL(o.url);u=g.pathname+g.search}catch{}const f=l===n,m=o.response&&o.response.status<400,v=o.response&&o.response.status>=400;return ie.jsx(Op.Item,{onClick:()=>r(l),style:{cursor:"pointer",padding:"8px 12px",background:f?"#1a2332":"transparent",borderLeft:f?"3px solid #3b82f6":"3px solid transparent",borderBottom:"1px solid #1f1f1f",transition:"background 0.15s"},onMouseEnter:g=>{f||(g.currentTarget.style.background="#151515")},onMouseLeave:g=>{f||(g.currentTarget.style.background="transparent")},children:ie.jsxs("div",{style:{width:"100%",minWidth:0},children:[ie.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[ie.jsx(Wo,{color:o.method==="POST"?"blue":"green",style:{margin:0,fontSize:11},children:o.method}),o.mainAgent?ie.jsx(Wo,{color:"orange",style:{margin:0,fontSize:11},children:"MainAgent"}):ie.jsx(Wo,{style:{margin:0,fontSize:11},children:"SubAgent"}),ie.jsx(ym,{type:"secondary",style:{fontSize:11,marginLeft:"auto"},children:s})]}),ie.jsx("div",{style:{fontSize:12,color:"#d1d5db",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:o.url,children:u}),(o.duration||o.response)&&ie.jsxs("div",{style:{display:"flex",gap:8,marginTop:4,fontSize:11},children:[o.duration&&ie.jsxs(ym,{type:"secondary",children:["⏱️ ",o.duration,"ms"]}),o.response&&ie.jsxs(ym,{style:{color:m?"#10b981":v?"#ef4444":"#9ca3af"},children:["HTTP ",o.response.status]})]})]})})}})})}}const BL=e=>typeof e=="boolean"||e instanceof Boolean,FL=e=>typeof e=="number"||e instanceof Number,HL=e=>typeof e=="bigint"||e instanceof BigInt,hC=e=>!!e&&e instanceof Date,VL=e=>typeof e=="string"||e instanceof String,WL=e=>Array.isArray(e),yC=e=>typeof e=="object"&&e!==null,bC=e=>!!e&&e instanceof Object&&typeof e=="function";function mu(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function UL(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function SC(e){let{field:t,value:n,data:r,lastElement:o,openBracket:l,closeBracket:s,level:u,style:f,shouldExpandNode:m,clickToExpandNode:v,outerRef:g,beforeExpandChange:h}=e;const b=d.useRef(!1),[x,C]=d.useState(()=>m(u,n,t)),S=d.useRef(null);d.useEffect(()=>{b.current?C(m(u,n,t)):b.current=!0},[m]);const E=d.useId();if(r.length===0)return GL({field:t,openBracket:l,closeBracket:s,lastElement:o,style:f});const $=x?f.collapseIcon:f.expandIcon,R=x?f.ariaLables.collapseJson:f.ariaLables.expandJson,P=u+1,O=r.length-1,I=_=>{x!==_&&(!h||h({level:u,value:n,field:t,newExpandValue:_}))&&C(_)},T=_=>{if(_.key==="ArrowRight"||_.key==="ArrowLeft")_.preventDefault(),I(_.key==="ArrowRight");else if(_.key==="ArrowUp"||_.key==="ArrowDown"){_.preventDefault();const z=_.key==="ArrowUp"?-1:1;if(!g.current)return;const L=g.current.querySelectorAll("[role=button]");let j=-1;for(let B=0;B<L.length;B++)if(L[B].tabIndex===0){j=B;break}if(j<0)return;const A=(j+z+L.length)%L.length;L[j].tabIndex=-1,L[A].tabIndex=0,L[A].focus()}},M=()=>{var _;I(!x);const z=S.current;if(!z)return;const L=(_=g.current)===null||_===void 0?void 0:_.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),z.tabIndex=0,z.focus()};return d.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":x,"aria-selected":void 0},d.createElement("span",{className:$,onClick:M,onKeyDown:T,role:"button","aria-label":R,"aria-expanded":x,"aria-controls":x?E:void 0,ref:S,tabIndex:u===0?0:-1}),(t||t==="")&&(v?d.createElement("span",{className:f.clickableLabel,onClick:M,onKeyDown:T},mu(t,f.quotesForFieldNames),":"):d.createElement("span",{className:f.label},mu(t,f.quotesForFieldNames),":")),d.createElement("span",{className:f.punctuation},l),x?d.createElement("ul",{id:E,role:"group",className:f.childFieldsContainer},r.map((_,z)=>d.createElement(Ip,{key:_[0]||z,field:_[0],value:_[1],style:f,lastElement:z===O,level:P,shouldExpandNode:m,clickToExpandNode:v,beforeExpandChange:h,outerRef:g}))):d.createElement("span",{className:f.collapsedContent,onClick:M,onKeyDown:T}),d.createElement("span",{className:f.punctuation},s),!o&&d.createElement("span",{className:f.punctuation},","))}function GL(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:l}=e;return d.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&d.createElement("span",{className:l.label},mu(t,l.quotesForFieldNames),":"),d.createElement("span",{className:l.punctuation},n),d.createElement("span",{className:l.punctuation},r),!o&&d.createElement("span",{className:l.punctuation},","))}function KL(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:m}=e;return SC({field:t,value:n,lastElement:o||!1,level:u,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:s,data:Object.keys(n).map(v=>[v,n[v]]),outerRef:f,beforeExpandChange:m})}function qL(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:m}=e;return SC({field:t,value:n,lastElement:o||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:u,data:n.map(v=>[void 0,v]),outerRef:f,beforeExpandChange:m})}function XL(e){let{field:t,value:n,style:r,lastElement:o}=e,l,s=r.otherValue;return n===null?(l="null",s=r.nullValue):n===void 0?(l="undefined",s=r.undefinedValue):VL(n)?(l=UL(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):BL(n)?(l=n?"true":"false",s=r.booleanValue):FL(n)?(l=n.toString(),s=r.numberValue):HL(n)?(l=`${n.toString()}n`,s=r.numberValue):hC(n)?l=n.toISOString():bC(n)?l="function() { }":l=n.toString(),d.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&d.createElement("span",{className:r.label},mu(t,r.quotesForFieldNames),":"),d.createElement("span",{className:s},l),!o&&d.createElement("span",{className:r.punctuation},","))}function Ip(e){const t=e.value;return WL(t)?d.createElement(qL,Object.assign({},e)):yC(t)&&!hC(t)&&!bC(t)?d.createElement(KL,Object.assign({},e)):d.createElement(XL,Object.assign({},e))}var un={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const xC={collapseJson:"collapse JSON",expandJson:"expand JSON"},bm={container:un["container-light"],basicChildStyle:un["basic-element-style"],childFieldsContainer:un["child-fields-container"],label:un["label-light"],clickableLabel:un["clickable-label-light"],nullValue:un["value-null-light"],undefinedValue:un["value-undefined-light"],stringValue:un["value-string-light"],booleanValue:un["value-boolean-light"],numberValue:un["value-number-light"],otherValue:un["value-other-light"],punctuation:un["punctuation-light"],collapseIcon:un["collapse-icon-light"],expandIcon:un["expand-icon-light"],collapsedContent:un["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:xC,stringifyStringValues:!1},QL={container:un["container-dark"],basicChildStyle:un["basic-element-style"],childFieldsContainer:un["child-fields-container"],label:un["label-dark"],clickableLabel:un["clickable-label-dark"],nullValue:un["value-null-dark"],undefinedValue:un["value-undefined-dark"],stringValue:un["value-string-dark"],booleanValue:un["value-boolean-dark"],numberValue:un["value-number-dark"],otherValue:un["value-other-dark"],punctuation:un["punctuation-dark"],collapseIcon:un["collapse-icon-dark"],expandIcon:un["expand-icon-dark"],collapsedContent:un["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:xC,stringifyStringValues:!1},YL=()=>!0,ZL=e=>{let{data:t,style:n=bm,shouldExpandNode:r=YL,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...u}=e;const f=d.useRef(null);return d.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:f,role:"tree"}),s&&yC(t)?Object.entries(t).map(m=>{let[v,g]=m;return d.createElement(Ip,{key:v,field:v,value:g,style:{...bm,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:f})}):d.createElement(Ip,{value:t,style:{...bm,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:l}))},JL={...QL,container:"rjv-container"};class eA extends J.Component{render(){const{data:t,defaultExpand:n}=this.props;if(t==null)return null;const r=n==="all"?()=>!0:n==="root"?o=>o<2:o=>o<1;return ie.jsx("div",{style:{background:"#0d1117",borderRadius:6,border:"1px solid #2a2a2a",padding:"12px",fontSize:13,fontFamily:"monospace",overflow:"auto"},children:ie.jsx(ZL,{data:t,shouldExpandNode:r,style:JL})})}}const{Text:Fo,Paragraph:tA}=xo;class nA extends J.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"}}}shouldComponentUpdate(t,n){return t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||n.bodyViewMode!==this.state.bodyViewMode}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var l;const{request:n}=this.props;if(!n)return;const r=t==="request"?n.body:(l=n.response)==null?void 0:l.body;if(r==null)return;const o=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(o).then(()=>fC.success("复制成功"))}renderHeaders(t){return!t||Object.keys(t).length===0?ie.jsx(Fo,{type:"secondary",children:"无 Headers"}):ie.jsx("div",{style:{fontSize:12},children:Object.entries(t).map(([n,r])=>ie.jsxs("div",{style:{display:"flex",padding:"4px 0",borderBottom:"1px solid #1f1f1f"},children:[ie.jsx(Fo,{code:!0,style:{minWidth:200,flexShrink:0},children:n}),ie.jsx(Fo,{type:"secondary",style:{wordBreak:"break-all",marginLeft:8},children:String(r)})]},n))})}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return ie.jsx(Fo,{type:"secondary",children:"无 Body"});if(typeof t=="string"&&t.includes("Streaming Response"))return ie.jsx("div",{style:{padding:20,background:"#1a1a1a",borderRadius:6,border:"1px solid #2a2a2a"},children:ie.jsx(Fo,{type:"secondary",children:"⚡ 流式响应 — 此请求使用了流式传输(SSE),响应内容无法完整捕获。"})});const o=r[n]==="json";return ie.jsxs("div",{children:[ie.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[ie.jsx(os,{size:"small",icon:o?ie.jsx(nC,{}):ie.jsx(NL,{}),onClick:()=>this.toggleBodyViewMode(n),children:o?"Text":"JSON"}),ie.jsx(os,{size:"small",icon:ie.jsx(gC,{}),onClick:()=>this.copyBody(n),children:"复制"})]}),o?ie.jsx(eA,{data:t,defaultExpand:n==="response"?"all":"root"}):ie.jsx("pre",{style:{background:"#0d1117",border:"1px solid #2a2a2a",borderRadius:6,padding:12,fontSize:12,color:"#e5e7eb",overflow:"auto",maxHeight:600,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:typeof t=="string"?t:JSON.stringify(t,null,2)})]})}render(){const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return ie.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ie.jsx(ho,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400,s=[{key:"request",label:"Request",children:ie.jsxs("div",{style:{padding:"12px 0"},children:[ie.jsx(au,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.headers)}],style:{marginBottom:16}}),ie.jsxs("div",{children:[ie.jsx(Fo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:ie.jsx("div",{style:{padding:"12px 0"},children:t.response?ie.jsxs(ie.Fragment,{children:[ie.jsx(au,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.response.headers)}],style:{marginBottom:16}}),ie.jsxs("div",{children:[ie.jsx(Fo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.response.body,"response")]})]}):ie.jsx(ho,{description:"响应数据未捕获"})})}];return ie.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 16px"},children:[ie.jsxs("div",{style:{padding:"12px 0",borderBottom:"1px solid #1f1f1f"},children:[ie.jsx(tA,{style:{color:"#d1d5db",fontSize:13,marginBottom:8,wordBreak:"break-all"},ellipsis:{rows:2,expandable:!0},children:t.url}),ie.jsxs(ls,{size:"small",wrap:!0,children:[ie.jsx(Wo,{color:t.method==="POST"?"blue":"green",children:t.method}),ie.jsxs(Fo,{type:"secondary",style:{fontSize:12},children:["🕐 ",o]}),t.duration&&ie.jsxs(Fo,{type:"secondary",style:{fontSize:12},children:["⏱️ ",t.duration,"ms"]}),t.response&&ie.jsxs(Wo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),ie.jsx(Jx,{activeKey:n,onChange:r,items:s,size:"small"})]})}}function wv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Yi=wv();function CC(e){Yi=e}var Ai={exec:()=>null};function Zt(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Cr.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var rA=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Cr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},oA=/^(?:[ \t]*(?:\n|$))+/,iA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,aA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,$v=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,wC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$C=Zt(wC).replace(/bull/g,$v).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),sA=Zt(wC).replace(/bull/g,$v).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ev=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cA=/^[^\n]+/,Rv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,uA=Zt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Rv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dA=Zt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$v).getRegex(),Qu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ov=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fA=Zt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ov).replace("tag",Qu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),EC=Zt(Ev).replace("hr",xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qu).getRegex(),mA=Zt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",EC).getRegex(),Iv={blockquote:mA,code:iA,def:uA,fences:aA,heading:lA,hr:xs,html:fA,lheading:$C,list:dA,newline:oA,paragraph:EC,table:Ai,text:cA},Lb=Zt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qu).getRegex(),pA={...Iv,lheading:sA,table:Lb,paragraph:Zt(Ev).replace("hr",xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Lb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qu).getRegex()},vA={...Iv,html:Zt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ov).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ai,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Zt(Ev).replace("hr",xs).replace("heading",` *#{1,6} *[^
296
+ ]`).replace("lheading",$C).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hA=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,RC=/^( {2,}|\\)\n(?!\s*$)/,yA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Yu=/[\p{P}\p{S}]/u,Pv=/[\s\p{P}\p{S}]/u,OC=/[^\s\p{P}\p{S}]/u,bA=Zt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pv).getRegex(),IC=/(?!~)[\p{P}\p{S}]/u,SA=/(?!~)[\s\p{P}\p{S}]/u,xA=/(?:[^\s\p{P}\p{S}]|~)/u,PC=/(?![*_])[\p{P}\p{S}]/u,CA=/(?![*_])[\s\p{P}\p{S}]/u,wA=/(?:[^\s\p{P}\p{S}]|[*_])/u,$A=Zt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",rA?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),TC=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,EA=Zt(TC,"u").replace(/punct/g,Yu).getRegex(),RA=Zt(TC,"u").replace(/punct/g,IC).getRegex(),_C="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",OA=Zt(_C,"gu").replace(/notPunctSpace/g,OC).replace(/punctSpace/g,Pv).replace(/punct/g,Yu).getRegex(),IA=Zt(_C,"gu").replace(/notPunctSpace/g,xA).replace(/punctSpace/g,SA).replace(/punct/g,IC).getRegex(),PA=Zt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,OC).replace(/punctSpace/g,Pv).replace(/punct/g,Yu).getRegex(),TA=Zt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,PC).getRegex(),_A="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",MA=Zt(_A,"gu").replace(/notPunctSpace/g,wA).replace(/punctSpace/g,CA).replace(/punct/g,PC).getRegex(),NA=Zt(/\\(punct)/,"gu").replace(/punct/g,Yu).getRegex(),zA=Zt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),jA=Zt(Ov).replace("(?:-->|$)","-->").getRegex(),kA=Zt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",jA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,LA=Zt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",pu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),MC=Zt(/^!?\[(label)\]\[(ref)\]/).replace("label",pu).replace("ref",Rv).getRegex(),NC=Zt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Rv).getRegex(),AA=Zt("reflink|nolink(?!\\()","g").replace("reflink",MC).replace("nolink",NC).getRegex(),Ab=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Tv={_backpedal:Ai,anyPunctuation:NA,autolink:zA,blockSkip:$A,br:RC,code:hA,del:Ai,delLDelim:Ai,delRDelim:Ai,emStrongLDelim:EA,emStrongRDelimAst:OA,emStrongRDelimUnd:PA,escape:gA,link:LA,nolink:NC,punctuation:bA,reflink:MC,reflinkSearch:AA,tag:kA,text:yA,url:Ai},DA={...Tv,link:Zt(/^!?\[(label)\]\((.*?)\)/).replace("label",pu).getRegex(),reflink:Zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pu).getRegex()},Pp={...Tv,emStrongRDelimAst:IA,emStrongLDelim:RA,delLDelim:TA,delRDelim:MA,url:Zt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ab).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Zt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ab).getRegex()},BA={...Pp,br:Zt(RC).replace("{2,}","*").getRegex(),text:Zt(Pp.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zc={normal:Iv,gfm:pA,pedantic:vA},jl={normal:Tv,gfm:Pp,breaks:BA,pedantic:DA},FA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Db=e=>FA[e];function Ho(e,t){if(t){if(Cr.escapeTest.test(e))return e.replace(Cr.escapeReplace,Db)}else if(Cr.escapeTestNoEncode.test(e))return e.replace(Cr.escapeReplaceNoEncode,Db);return e}function Bb(e){try{e=encodeURI(e).replace(Cr.percentDecode,"%")}catch{return null}return e}function Fb(e,t){var l;let n=e.replace(Cr.findPipe,(s,u,f)=>{let m=!1,v=u;for(;--v>=0&&f[v]==="\\";)m=!m;return m?"|":" |"}),r=n.split(Cr.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((l=r.at(-1))!=null&&l.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Cr.slashPipe,"|");return r}function kl(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function HA(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function VA(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let l=4-n%4;r+=" ".repeat(l),n+=l}else r+=o,n++;return r}function Hb(e,t,n,r,o){let l=t.href,s=t.title||null,u=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,f}function WA(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
297
+ `).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[u]=s;return u.length>=o.length?l.slice(o.length):l}).join(`
298
+ `)}var vu=class{constructor(e){an(this,"options");an(this,"rules");an(this,"lexer");this.options=e||Yi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:kl(n,`
299
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=WA(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=kl(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:kl(t[0],`
300
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=kl(t[0],`
301
+ `).split(`
302
+ `),r="",o="",l=[];for(;n.length>0;){let s=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),s=!0;else if(!s)u.push(n[f]);else break;n=n.slice(f);let m=u.join(`
303
+ `),v=m.replace(this.rules.other.blockquoteSetextReplace,`
304
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
305
+ ${m}`:m,o=o?`${o}
306
+ ${v}`:v;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,l,!0),this.lexer.state.top=g,n.length===0)break;let h=l.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let b=h,x=b.raw+`
307
+ `+n.join(`
308
+ `),C=this.blockquote(x);l[l.length-1]=C,r=r.substring(0,r.length-b.raw.length)+C.raw,o=o.substring(0,o.length-b.text.length)+C.text;break}else if((h==null?void 0:h.type)==="list"){let b=h,x=b.raw+`
309
+ `+n.join(`
310
+ `),C=this.list(x);l[l.length-1]=C,r=r.substring(0,r.length-h.raw.length)+C.raw,o=o.substring(0,o.length-b.raw.length)+C.raw,n=x.substring(l.at(-1).raw.length).split(`
311
+ `);continue}}return{type:"blockquote",raw:r,tokens:l,text:o}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),l=o.length>1,s={type:"list",raw:"",ordered:l,start:l?+o.slice(0,-1):"",loose:!1,items:[]};o=l?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=l?o:"[*+-]");let u=this.rules.other.listItemRegex(o),f=!1;for(;e;){let v=!1,g="",h="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let b=VA(t[2].split(`
312
+ `,1)[0],t[1].length),x=e.split(`
313
+ `,1)[0],C=!b.trim(),S=0;if(this.options.pedantic?(S=2,h=b.trimStart()):C?S=t[1].length+1:(S=b.search(this.rules.other.nonSpaceChar),S=S>4?1:S,h=b.slice(S),S+=t[1].length),C&&this.rules.other.blankLine.test(x)&&(g+=x+`
314
+ `,e=e.substring(x.length+1),v=!0),!v){let E=this.rules.other.nextBulletRegex(S),$=this.rules.other.hrRegex(S),R=this.rules.other.fencesBeginRegex(S),P=this.rules.other.headingBeginRegex(S),O=this.rules.other.htmlBeginRegex(S),I=this.rules.other.blockquoteBeginRegex(S);for(;e;){let T=e.split(`
315
+ `,1)[0],M;if(x=T,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),M=x):M=x.replace(this.rules.other.tabCharGlobal," "),R.test(x)||P.test(x)||O.test(x)||I.test(x)||E.test(x)||$.test(x))break;if(M.search(this.rules.other.nonSpaceChar)>=S||!x.trim())h+=`
316
+ `+M.slice(S);else{if(C||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(b)||P.test(b)||$.test(b))break;h+=`
317
+ `+x}C=!x.trim(),g+=T+`
318
+ `,e=e.substring(T.length+1),b=M.slice(S)}}s.loose||(f?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(f=!0)),s.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),s.raw+=g}let m=s.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v of s.items){if(this.lexer.state.top=!1,v.tokens=this.lexer.blockTokens(v.text,[]),v.task){if(v.text=v.text.replace(this.rules.other.listReplaceTask,""),((n=v.tokens[0])==null?void 0:n.type)==="text"||((r=v.tokens[0])==null?void 0:r.type)==="paragraph"){v.tokens[0].raw=v.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),v.tokens[0].text=v.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(v.raw);if(g){let h={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};v.checked=h.checked,s.loose?v.tokens[0]&&["paragraph","text"].includes(v.tokens[0].type)&&"tokens"in v.tokens[0]&&v.tokens[0].tokens?(v.tokens[0].raw=h.raw+v.tokens[0].raw,v.tokens[0].text=h.raw+v.tokens[0].text,v.tokens[0].tokens.unshift(h)):v.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):v.tokens.unshift(h)}}if(!s.loose){let g=v.tokens.filter(b=>b.type==="space"),h=g.length>0&&g.some(b=>this.rules.other.anyLine.test(b.raw));s.loose=h}}if(s.loose)for(let v of s.items){v.loose=!0;for(let g of v.tokens)g.type==="text"&&(g.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fb(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
319
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of o)l.rows.push(Fb(u,l.header.length).map((f,m)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[m]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
320
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=kl(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=HA(t[2],"()");if(l===-2)return;if(l>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Hb(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Hb(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(r=m.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(s=[...l].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&o%3&&!((o+s)%3)){f+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+f);let v=[...r[0]][0].length,g=e.slice(0,o+r.index+v+s);if(Math.min(o,s)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let h=g.slice(2,-2);return{type:"strong",raw:g,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=this.rules.inline.delRDelim;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==o))continue;if(r[3]||r[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let m=[...r[0]][0].length,v=e.slice(0,o+r.index+m+s),g=v.slice(o,-o);return{type:"del",raw:v,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},vo=class Tp{constructor(t){an(this,"tokens");an(this,"options");an(this,"state");an(this,"inlineQueue");an(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Yi,this.options.tokenizer=this.options.tokenizer||new vu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Cr,block:zc.normal,inline:jl.normal};this.options.pedantic?(n.block=zc.pedantic,n.inline=jl.pedantic):this.options.gfm&&(n.block=zc.gfm,this.options.breaks?n.inline=jl.breaks:n.inline=jl.gfm),this.tokenizer.rules=n}static get rules(){return{block:zc,inline:jl}}static lex(t,n){return new Tp(n).lex(t)}static lexInline(t,n){return new Tp(n).inlineTokens(t)}lex(t){t=t.replace(Cr.carriageReturn,`
321
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,l,s;for(this.options.pedantic&&(t=t.replace(Cr.tabCharGlobal," ").replace(Cr.spaceLine,""));t;){let u;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(m=>(u=m.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let m=n.at(-1);u.raw.length===1&&m!==void 0?m.raw+=`
322
+ `:n.push(u);continue}if(u=this.tokenizer.code(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
323
+ `)?"":`
324
+ `)+u.raw,m.text+=`
325
+ `+u.text,this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(u=this.tokenizer.fences(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.heading(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.hr(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.blockquote(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.list(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.html(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.def(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
326
+ `)?"":`
327
+ `)+u.raw,m.text+=`
328
+ `+u.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},n.push(u));continue}if(u=this.tokenizer.table(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.lheading(t)){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((s=this.options.extensions)!=null&&s.startBlock){let m=1/0,v=t.slice(1),g;this.options.extensions.startBlock.forEach(h=>{g=h.call({lexer:this},v),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(u=this.tokenizer.paragraph(f))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
329
+ `)?"":`
330
+ `)+u.raw,m.text+=`
331
+ `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u),r=f.length!==t.length,t=t.substring(u.raw.length);continue}if(u=this.tokenizer.text(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
332
+ `)?"":`
333
+ `)+u.raw,m.text+=`
334
+ `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var f,m,v,g,h;let r=t,o=null;if(this.tokens.links){let b=Object.keys(this.tokens.links);if(b.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)b.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=o[2]?o[2].length:0,r=r.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},r))??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let b;if((g=(v=this.options.extensions)==null?void 0:v.inline)!=null&&g.some(C=>(b=C.call({lexer:this},t,n))?(t=t.substring(b.raw.length),n.push(b),!0):!1))continue;if(b=this.tokenizer.escape(t)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.tag(t)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.link(t)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(b.raw.length);let C=n.at(-1);b.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=b.raw,C.text+=b.text):n.push(b);continue}if(b=this.tokenizer.emStrong(t,r,u)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.codespan(t)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.br(t)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.del(t,r,u)){t=t.substring(b.raw.length),n.push(b);continue}if(b=this.tokenizer.autolink(t)){t=t.substring(b.raw.length),n.push(b);continue}if(!this.state.inLink&&(b=this.tokenizer.url(t))){t=t.substring(b.raw.length),n.push(b);continue}let x=t;if((h=this.options.extensions)!=null&&h.startInline){let C=1/0,S=t.slice(1),E;this.options.extensions.startInline.forEach($=>{E=$.call({lexer:this},S),typeof E=="number"&&E>=0&&(C=Math.min(C,E))}),C<1/0&&C>=0&&(x=t.substring(0,C+1))}if(b=this.tokenizer.inlineText(x)){t=t.substring(b.raw.length),b.raw.slice(-1)!=="_"&&(u=b.raw.slice(-1)),s=!0;let C=n.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=b.raw,C.text+=b.text):n.push(b);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return n}},gu=class{constructor(e){an(this,"options");an(this,"parser");this.options=e||Yi}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(Cr.notSpaceStart))==null?void 0:l[0],o=e.replace(Cr.endingNewline,"")+`
335
+ `;return r?'<pre><code class="language-'+Ho(r)+'">'+(n?o:Ho(o,!0))+`</code></pre>
336
+ `:"<pre><code>"+(n?o:Ho(o,!0))+`</code></pre>
337
+ `}blockquote({tokens:e}){return`<blockquote>
338
+ ${this.parser.parse(e)}</blockquote>
339
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
340
+ `}hr(e){return`<hr>
341
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let u=e.items[s];r+=this.listitem(u)}let o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
342
+ `+r+"</"+o+`>
343
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
344
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
345
+ `}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];n="";for(let s=0;s<l.length;s++)n+=this.tablecell(l[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
346
+ <thead>
347
+ `+t+`</thead>
348
+ `+r+`</table>
349
+ `}tablerow({text:e}){return`<tr>
350
+ ${e}</tr>
351
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
352
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ho(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=Bb(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+Ho(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=Bb(e);if(o===null)return Ho(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Ho(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ho(e.text)}},_v=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},go=class _p{constructor(t){an(this,"options");an(this,"renderer");an(this,"textRenderer");this.options=t||Yi,this.options.renderer=this.options.renderer||new gu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _v}static parse(t,n){return new _p(n).parse(t)}static parseInline(t,n){return new _p(n).parseInline(t)}parse(t){var r,o;let n="";for(let l=0;l<t.length;l++){let s=t[l];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){let f=s,m=this.options.extensions.renderers[f.type].call({parser:this},f);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=m||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,n=this.renderer){var o,l;let r="";for(let s=0;s<t.length;s++){let u=t[s];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[u.type]){let m=this.options.extensions.renderers[u.type].call({parser:this},u);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=m||"";continue}}let f=u;switch(f.type){case"escape":{r+=n.text(f);break}case"html":{r+=n.html(f);break}case"link":{r+=n.link(f);break}case"image":{r+=n.image(f);break}case"checkbox":{r+=n.checkbox(f);break}case"strong":{r+=n.strong(f);break}case"em":{r+=n.em(f);break}case"codespan":{r+=n.codespan(f);break}case"br":{r+=n.br(f);break}case"del":{r+=n.del(f);break}case"text":{r+=n.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},jc,Fl=(jc=class{constructor(e){an(this,"options");an(this,"block");this.options=e||Yi}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?vo.lex:vo.lexInline}provideParser(){return this.block?go.parse:go.parseInline}},an(jc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),an(jc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),jc),UA=class{constructor(...e){an(this,"defaults",wv());an(this,"options",this.setOptions);an(this,"parse",this.parseMarkdown(!0));an(this,"parseInline",this.parseMarkdown(!1));an(this,"Parser",go);an(this,"Renderer",gu);an(this,"TextRenderer",_v);an(this,"Lexer",vo);an(this,"Tokenizer",vu);an(this,"Hooks",Fl);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let s=l;for(let u of s.header)n=n.concat(this.walkTokens(u.tokens,t));for(let u of s.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,t));break}case"list":{let s=l;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=l;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{let f=s[u].flat(1/0);n=n.concat(this.walkTokens(f,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...s){let u=o.renderer.apply(this,s);return u===!1&&(u=l.apply(this,s)),u}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new gu(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,u=n.renderer[s],f=o[s];o[s]=(...m)=>{let v=u.apply(o,m);return v===!1&&(v=f.apply(o,m)),v||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new vu(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,u=n.tokenizer[s],f=o[s];o[s]=(...m)=>{let v=u.apply(o,m);return v===!1&&(v=f.apply(o,m)),v}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Fl;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,u=n.hooks[s],f=o[s];Fl.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&Fl.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(o,m);return f.call(o,g)})();let v=u.call(o,m);return f.call(o,v)}:o[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(o,m);return g===!1&&(g=await f.apply(o,m)),g})();let v=u.apply(o,m);return v===!1&&(v=f.apply(o,m)),v}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(s){let u=[];return u.push(l.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return vo.lex(e,t??this.defaults)}parser(e,t){return go.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(t):t,u=await(o.hooks?await o.hooks.provideLexer():e?vo.lex:vo.lexInline)(s,o),f=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(f,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?go.parse:go.parseInline)(f,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let s=(o.hooks?o.hooks.provideLexer():e?vo.lex:vo.lexInline)(t,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():e?go.parse:go.parseInline)(s,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(s){return l(s)}}}onError(e,t){return n=>{if(n.message+=`
353
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ho(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ki=new UA;function pn(e,t){return Ki.parse(e,t)}pn.options=pn.setOptions=function(e){return Ki.setOptions(e),pn.defaults=Ki.defaults,CC(pn.defaults),pn};pn.getDefaults=wv;pn.defaults=Yi;pn.use=function(...e){return Ki.use(...e),pn.defaults=Ki.defaults,CC(pn.defaults),pn};pn.walkTokens=function(e,t){return Ki.walkTokens(e,t)};pn.parseInline=Ki.parseInline;pn.Parser=go;pn.parser=go.parse;pn.Renderer=gu;pn.TextRenderer=_v;pn.Lexer=vo;pn.lexer=vo.lex;pn.Tokenizer=vu;pn.Hooks=Fl;pn.parse=pn;pn.options;pn.setOptions;pn.use;pn.walkTokens;pn.parseInline;go.parse;vo.lex;function GA(e){if(!e)return"";try{return pn.parse(e,{breaks:!0})}catch{return KA(e)}}function KA(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function qA(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function XA(e){return e.content?typeof e.content=="string"?e.content:Array.isArray(e.content)?e.content.filter(t=>t.type==="text").map(t=>t.text).join(`
354
+ `):JSON.stringify(e.content):String(e.content??"")}function Sm(e){return e==="user"?'<svg viewBox="0 0 24 24"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>':e==="agent"?'<svg viewBox="0 0 24 24"><path d="M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7h1a1 1 0 011 1v3a1 1 0 01-1 1h-1.17A7 7 0 0113 22h-2a7 7 0 01-6.83-3H3a1 1 0 01-1-1v-3a1 1 0 011-1h1a7 7 0 017-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 012-2zM9.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm5 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"/></svg>':'<svg viewBox="0 0 24 24"><path d="M12 15.5A3.5 3.5 0 018.5 12 3.5 3.5 0 0112 8.5a3.5 3.5 0 013.5 3.5 3.5 3.5 0 01-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97s-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0014 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1s.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z"/></svg>'}function Vb(e){if(!e)return!0;const t=e.trim();return!!(!t||/^<[a-zA-Z_][\w-]*[\s>]/i.test(t)||/^\[SUGGESTION MODE:/i.test(t))}const QA=["system-reminder","local-command-caveat","project-reminder","important-instruction-reminders","file-modified-reminder","todo-reminder","user-prompt-submit-hook","local-command-stdout","command-name","task-notification","environment_details","context"];function YA(e){if(!e)return{segments:[]};const t=new RegExp("<("+QA.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const l=e.slice(r,o.index).trim();l&&n.push({type:"text",content:l})}n.push({type:"system-tag",tag:o[1],content:o[2].trim()}),r=o.index+o[0].length}if(r<e.length){const l=e.slice(r).trim();l&&n.push({type:"text",content:l})}return{segments:n}}function ZA(e){const{segments:t}=YA(e);return t.length===0?{segments:[]}:{segments:t}}const{Text:Wb}=xo;function JA({file_path:e,old_string:t,new_string:n}){const[r,o]=d.useState(!1),l=t.split(`
355
+ `),s=n.split(`
356
+ `),u=[];return l.forEach(f=>{u.push({type:"del",text:f})}),s.forEach(f=>{u.push({type:"add",text:f})}),ie.jsxs("div",{className:"diff-view",style:{margin:"6px 0"},children:[ie.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[ie.jsxs(Wb,{style:{color:"#a78bfa",fontSize:12,fontWeight:600},children:["Edit: ",e]}),ie.jsx(Wb,{style:{color:"#6b7280",fontSize:11,cursor:"pointer",userSelect:"none"},onClick:()=>o(f=>!f),children:r?"▶ 展开":"▼ 收起"})]}),!r&&ie.jsx("pre",{style:{margin:0,fontSize:12,lineHeight:1.5,overflow:"auto"},children:u.map((f,m)=>ie.jsxs("div",{className:f.type==="del"?"diff-line-del":"diff-line-add",children:[f.type==="del"?"- ":"+ ",f.text]},m))})]})}const{Text:xm}=xo,ka={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",css:"css",scss:"css",less:"css",html:"html",htm:"html",xml:"xml",svg:"xml",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"shell",bash:"shell",zsh:"shell",md:"markdown",sql:"sql"},e6=["Read","Grep","Glob","Bash","Write","Edit"];function t6(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(ka[o])return ka[o]}if(e==="Bash")return"shell-output";if(e==="Glob")return"file-list";if(e==="Grep"){const o=t.glob||"";if(o){const l=o.replace(/[{}*]/g,",").split(",").filter(Boolean);for(const s of l){const u=s.replace(/^\./,"").toLowerCase();if(ka[u])return ka[u]}}if(t.output_mode==="files_with_matches"||!t.output_mode)return"file-list";if(t.output_mode==="content"&&n){const l=n.match(/^[\w/.~-]+\.([\w]+):\d+/m);if(l&&ka[l[1].toLowerCase()])return ka[l[1].toLowerCase()]}return"shell-output"}return n?n6(n):null}function n6(e){const t=e.substring(0,2e3);return/^\s*[\[{]/.test(t)&&/[}\]]\s*$/.test(t.trimEnd())?"json":/^\s*<!DOCTYPE|^\s*<html|^\s*<\?xml/i.test(t)?"html":/^#!.*python/m.test(t)||/\bdef\s+\w+\s*\(.*\)\s*:/m.test(t)||/\bclass\s+\w+.*:/m.test(t)||/^\s*(from\s+\w+\s+import|import\s+\w+)/m.test(t)&&/:$/.test(t)?"python":/\bfn\s+\w+\s*\(/.test(t)&&/\blet\s+(mut\s+)?\w+/.test(t)?"rust":/^package\s+\w+/m.test(t)&&/\bfunc\s+/.test(t)?"go":/\bpublic\s+(class|interface|static)\b/.test(t)?"java":/\bdef\s+\w+/.test(t)&&/\bend\b/.test(t)&&!/;/.test(t)?"ruby":/^#!.*\b(bash|sh|zsh)\b/m.test(t)?"shell":/\b(const|let|var)\s+\w+\s*=/.test(t)&&(/=>/.test(t)||/\brequire\s*\(/.test(t))||/^\s*import\s+.*\s+from\s+['"]/.test(t)||/^\s*export\s+(default\s+)?(function|class|const)\b/m.test(t)?"javascript":/[.#][\w-]+\s*\{[\s\S]*?:\s*[\w#]/.test(t)?"css":/^[\w-]+\s*:(\s+\S|$)/m.test(t)&&!/[{;]/.test(t)?"yaml":/\b(SELECT|INSERT|UPDATE|DELETE|CREATE\s+TABLE)\b/i.test(t)?"sql":null}const r6={javascript:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(const|let|var|function|return|if|else|for|while|class|import|export|from|default|new|this|async|await|try|catch|throw|switch|case|break|continue|typeof|instanceof|in|of|null|undefined|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],typescript:null,python:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('''[\s\S]*?'''|"""[\s\S]*?"""|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|class|return|if|elif|else|for|while|import|from|as|try|except|finally|raise|with|yield|lambda|pass|break|continue|and|or|not|in|is|None|True|False|self|async|await)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],go:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`[^`]*`)/g,cls:"hl-string"},{pattern:/\b(func|return|if|else|for|range|switch|case|default|break|continue|go|defer|select|chan|map|struct|interface|package|import|var|const|type|nil|true|false|make|new|append|len|cap)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],rust:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(fn|let|mut|return|if|else|for|while|loop|match|struct|enum|impl|trait|pub|use|mod|crate|self|super|where|async|await|move|ref|true|false|Some|None|Ok|Err)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],java:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(public|private|protected|class|interface|extends|implements|return|if|else|for|while|switch|case|break|continue|new|this|super|static|final|void|int|long|double|float|boolean|char|String|import|package|try|catch|throw|throws|null|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*[fFdDlL]?)\b/g,cls:"hl-number"}],ruby:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|end|class|module|return|if|elsif|else|unless|for|while|do|begin|rescue|ensure|raise|yield|block_given\?|nil|true|false|self|require|include|attr_accessor|attr_reader)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],css:[{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/([.#][\w-]+)/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*(px|em|rem|%|vh|vw|s|ms)?)\b/g,cls:"hl-number"}],json:[{pattern:/("(?:[^"\\]|\\.)*")\s*:/g,cls:"hl-keyword"},{pattern:/:\s*("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(true|false|null)\b/g,cls:"hl-keyword"},{pattern:/\b(-?\d+\.?\d*([eE][+-]?\d+)?)\b/g,cls:"hl-number"}],shell:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(if|then|else|elif|fi|for|while|do|done|case|esac|function|return|exit|export|source|alias|cd|ls|grep|find|echo|cat|mkdir|rm|cp|mv|chmod|sudo|apt|npm|pip|git)\b/g,cls:"hl-keyword"}],sql:[{pattern:/(--.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/\b(SELECT|FROM|WHERE|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER|TABLE|INDEX|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AND|OR|NOT|IN|IS|NULL|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|UNION|SET|VALUES|INTO|DISTINCT|COUNT|SUM|AVG|MAX|MIN|LIKE|BETWEEN|EXISTS|CASE|WHEN|THEN|ELSE|END)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],html:[{pattern:/(<!--[\s\S]*?-->)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/(<\/?[\w-]+|\/?>)/g,cls:"hl-keyword"}],xml:null,yaml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*:/gm,cls:"hl-keyword"},{pattern:/\b(true|false|null|yes|no)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],markdown:[{pattern:/^(#{1,6}\s.*$)/gm,cls:"hl-keyword"},{pattern:/(`[^`]+`)/g,cls:"hl-string"},{pattern:/(\*\*[^*]+\*\*|__[^_]+__)/g,cls:"hl-keyword"},{pattern:/(\[[^\]]+\]\([^)]+\))/g,cls:"hl-string"}],toml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*=/gm,cls:"hl-keyword"},{pattern:/(\[[\w.-]+\])/g,cls:"hl-keyword"},{pattern:/\b(true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}]},o6=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],i6=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],a6=[{pattern:/^(.*\.(jsx?|tsx?|mjs|cjs))$/gm,cls:"hl-string"},{pattern:/^(.*\.(py|rb|go|rs|java|c|cpp|h))$/gm,cls:"hl-keyword"},{pattern:/^(.*\.(json|ya?ml|toml|xml|html?|css|scss|less|md))$/gm,cls:"hl-number"},{pattern:/^(.*\.(log|txt|csv|jsonl))$/gm,cls:"hl-comment"}];function Ub(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l6(e,t){let n=t;n==="typescript"&&(n="javascript"),n==="xml"&&(n="html"),(n==="c"||n==="cpp")&&(n="javascript");let r;n==="shell-output"?r=i6:n==="file-list"?r=a6:r=r6[n]||o6;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,v=>{const g=l.length;return l.push(v),`L${g}`});const u=Ub(s),f=[];let m=u;for(const v of r)v.pattern.lastIndex=0,m=m.replace(v.pattern,g=>{const h=f.length;return f.push(`<span class="${v.cls}">${g}</span>`),`P${h}`});return m=m.replace(/\x02P(\d+)\x02/g,(v,g)=>f[parseInt(g)]),m=m.replace(/\x01L(\d+)\x01/g,(v,g)=>`<span class="hl-linenum">${Ub(l[parseInt(g)])}</span>`),m}function s6({toolName:e,toolInput:t,resultText:n}){const[r,o]=d.useState(!1),l=e6.includes(e),s=l?t6(e,t,n):null,u=n.length>5e3?n.substring(0,5e3)+`
357
+ ... (truncated)`:n;let f=e?`${e} 返回`:"Result";if(t){const v=t.file_path||t.path||"";if(v){const g=v.split("/");f=`${e}: ${g[g.length-1]}`}}if(!l)return ie.jsxs("div",{style:{background:"#111",borderRadius:6,padding:"8px 12px",fontSize:12},children:[ie.jsx(xm,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:4},children:f}),ie.jsx("pre",{style:{color:"#d1d5db",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-all",fontSize:12},children:u})]});const m=l6(u,s||"fallback");return ie.jsxs("div",{className:"tool-result-code",style:{background:"#0d1117",borderRadius:6,border:"1px solid #1e2a3a",overflow:"hidden"},children:[ie.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 10px",background:"#161b22",borderBottom:"1px solid #1e2a3a"},children:[ie.jsxs(xm,{style:{fontSize:11,color:"#8b949e"},children:[f,s?` (${s})`:""]}),ie.jsx(xm,{style:{fontSize:11,color:"#484f58",cursor:"pointer",userSelect:"none"},onClick:()=>o(v=>!v),children:r?"▶ 展开":"▼ 收起"})]}),!r&&ie.jsx("pre",{className:"code-highlight",style:{margin:0,padding:"8px 12px",fontSize:12,lineHeight:1.5,overflow:"auto",maxHeight:500},dangerouslySetInnerHTML:{__html:m}})]})}const{Text:Ll}=xo,Cm={width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},wm={borderRadius:12,padding:"10px 14px",maxWidth:"100%",fontSize:14,lineHeight:1.6,wordBreak:"break-word"};class La extends J.Component{formatTime(t){if(!t)return null;try{const n=new Date(t),r=o=>String(o).padStart(2,"0");return`${r(n.getMonth()+1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}:${r(n.getSeconds())}`}catch{return null}}renderLabel(t,n){const{timestamp:r}=this.props,o=this.formatTime(r);return ie.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:2},children:[ie.jsxs(Ll,{type:"secondary",style:{fontSize:11},children:[t,n||""]}),o&&ie.jsx(Ll,{style:{fontSize:10,color:"#484f58",flexShrink:0,marginLeft:8},children:o})]})}renderSegments(t){return t.map((n,r)=>n.type==="system-tag"?ie.jsx(au,{ghost:!0,size:"small",items:[{key:"1",label:ie.jsx(Ll,{type:"secondary",style:{fontSize:12},children:n.tag}),children:ie.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:n.content})}],style:{margin:"4px 0"}},r):ie.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:GA(n.content)}},r))}renderToolCall(t){if(typeof t.input=="string")try{const m=t.input.replace(/^\[object Object\]/,"");t={...t,input:JSON.parse(m)}}catch{}if(t.name==="Edit"&&t.input&&t.input.old_string!=null&&t.input.new_string!=null)return ie.jsx(JA,{file_path:t.input.file_path||"",old_string:t.input.old_string,new_string:t.input.new_string},t.id);const n=t.input&&typeof t.input=="object"?t.input:{},r=(m,v)=>ie.jsxs("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a3e",borderRadius:8,padding:"8px 12px",margin:"6px 0",fontSize:12},children:[ie.jsx(Ll,{strong:!0,style:{color:"#a78bfa"},children:m}),v]},t.id),o=(m,v)=>ie.jsx("pre",{style:{color:v,fontSize:12,margin:"4px 0 0",whiteSpace:"pre-wrap",wordBreak:"break-all",background:"#0d1117",borderRadius:4,padding:"6px 8px"},children:m}),l=m=>ie.jsx("span",{style:{color:"#7dd3fc",fontSize:11},children:m});if(t.name==="Bash"){const m=n.command||"",v=n.description||"";return r(ie.jsxs(ie.Fragment,{children:["Bash",v?ie.jsxs("span",{style:{color:"#6b7280",fontWeight:400},children:[" — ",v]}):""]}),o(m,"#c9d1d9"))}if(t.name==="Read"){const m=n.file_path||"",v=[];n.offset&&v.push(`offset: ${n.offset}`),n.limit&&v.push(`limit: ${n.limit}`);const g=v.length?` (${v.join(", ")})`:"";return r(ie.jsxs(ie.Fragment,{children:["Read: ",l(m),ie.jsx("span",{style:{color:"#6b7280"},children:g})]}),null)}if(t.name==="Write"){const m=n.file_path||"",v=n.content||"",g=v.split(`
358
+ `),h=g.length>20?g.slice(0,20).join(`
359
+ `)+`
360
+ ... (${g.length} lines total)`:v;return r(ie.jsxs(ie.Fragment,{children:["Write: ",l(m)," ",ie.jsxs("span",{style:{color:"#6b7280"},children:["(",g.length," lines)"]})]}),o(h,"#c9d1d9"))}if(t.name==="Glob"){const m=n.pattern||"",v=n.path||"";return r(ie.jsxs(ie.Fragment,{children:["Glob: ",ie.jsx("span",{style:{color:"#fbbf24"},children:m}),v?ie.jsxs("span",{style:{color:"#6b7280"},children:[" in ",v]}):""]}),null)}if(t.name==="Grep"){const m=n.pattern||"",v=n.path||"",g=[];n.glob&&g.push(`glob: ${n.glob}`),n.output_mode&&g.push(`mode: ${n.output_mode}`),n.head_limit&&g.push(`limit: ${n.head_limit}`);const h=g.length?` (${g.join(", ")})`:"";return r(ie.jsxs(ie.Fragment,{children:["Grep: ",ie.jsxs("span",{style:{color:"#fbbf24"},children:["/",m,"/"]}),v?ie.jsxs("span",{style:{color:"#6b7280"},children:[" in ",v]}):"",ie.jsx("span",{style:{color:"#6b7280"},children:h})]}),null)}if(t.name==="Task"){const m=n.subagent_type||"",v=n.description||"";return r(ie.jsxs(ie.Fragment,{children:["Task(",m,v?": "+v:"",")"]}),null)}let s=t.name;const u=Object.keys(n);if(u.length===0)return r(s,null);const f=u.map(m=>{const v=n[m],g=typeof v=="string"?v:JSON.stringify(v),h=g.length>200?g.substring(0,200)+"...":g;return ie.jsxs("div",{style:{margin:"2px 0"},children:[ie.jsxs("span",{style:{color:"#7dd3fc"},children:[m,": "]}),ie.jsx("span",{style:{color:"#9ca3af"},children:h})]},m)});return r(s,ie.jsx("div",{style:{marginTop:4,fontSize:11},children:f}))}renderUserMessage(){const{text:t}=this.props;return ie.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ie.jsx("div",{style:{...Cm,background:"#1e40af"},dangerouslySetInnerHTML:{__html:Sm("user")}}),ie.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel("User"),ie.jsx("div",{style:{...wm,background:"#1e3a5f",color:"#e5e7eb"},children:qA(t)})]})]})}renderAssistantMessage(){const{content:t}=this.props,n=t.filter(s=>s.type==="thinking"),r=t.filter(s=>s.type==="text"),o=t.filter(s=>s.type==="tool_use");let l=[];return n.forEach((s,u)=>{l.push(ie.jsx(au,{ghost:!0,size:"small",items:[{key:"1",label:ie.jsx(Ll,{type:"secondary",style:{fontSize:12},children:"思考过程"}),children:ie.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:s.thinking||""})}],style:{margin:"4px 0"}},`think-${u}`))}),r.forEach((s,u)=>{if(s.text){const{segments:f}=ZA(s.text);l.push(ie.jsx("div",{children:this.renderSegments(f)},`text-${u}`))}}),o.forEach(s=>{l.push(this.renderToolCall(s))}),l.length===0?null:ie.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ie.jsx("div",{style:{...Cm,background:"#065f46"},dangerouslySetInnerHTML:{__html:Sm("agent")}}),ie.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel("MainAgent"),ie.jsx("div",{style:{...wm,background:"#1a2332",color:"#e5e7eb"},children:l})]})]})}renderSubAgentMessage(){const{label:t,resultText:n,toolName:r,toolInput:o}=this.props;return ie.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ie.jsx("div",{style:{...Cm,background:"#4a1d96"},dangerouslySetInnerHTML:{__html:Sm("sub")}}),ie.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel(t),ie.jsx("div",{style:{...wm,background:"#1a1a2e",color:"#e5e7eb"},children:ie.jsx(s6,{toolName:r,toolInput:o,resultText:n})})]})]})}render(){const{role:t}=this.props;return t==="user"?this.renderUserMessage():t==="assistant"?this.renderAssistantMessage():t==="sub-agent"?this.renderSubAgentMessage():null}}const{Text:Gb}=xo;class c6 extends J.Component{constructor(t){super(t),this.containerRef=J.createRef()}componentDidMount(){this.scrollToBottom()}componentDidUpdate(){this.scrollToBottom()}scrollToBottom(){const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}renderSessionMessages(t,n,r){const o={};for(const s of t)if(s.role==="assistant"&&Array.isArray(s.content))for(const u of s.content)u.type==="tool_use"&&(o[u.id]=u);const l=[];for(let s=0;s<t.length;s++){const u=t[s],f=u.content,m=r&&r[s]?r[s]:null;if(u.role==="user")if(Array.isArray(f)){const v=f.filter(h=>h.type==="tool_result"),g=f.filter(h=>h.type==="text"&&!Vb(h.text));for(const h of v){const b=o[h.tool_use_id];let x="工具返回",C=null,S=null;if(b)if(C=b.name,S=b.input,b.name==="Task"&&b.input){const $=b.input.subagent_type||"",R=b.input.description||"";x=`SubAgent: ${$}${R?" — "+R:""}`}else x=b.name+" 返回";const E=XA(h);l.push(ie.jsx(La,{role:"sub-agent",label:x,resultText:E,toolName:C,toolInput:S,timestamp:m},`${n}-sub-${s}-${h.tool_use_id}`))}for(let h=0;h<g.length;h++)l.push(ie.jsx(La,{role:"user",text:g[h].text,timestamp:m},`${n}-user-${s}-${h}`))}else typeof f=="string"&&!Vb(f)&&l.push(ie.jsx(La,{role:"user",text:f,timestamp:m},`${n}-user-${s}`));else u.role==="assistant"&&(Array.isArray(f)?l.push(ie.jsx(La,{role:"assistant",content:f,timestamp:m},`${n}-asst-${s}`)):typeof f=="string"&&l.push(ie.jsx(La,{role:"assistant",content:[{type:"text",text:f}],timestamp:m},`${n}-asst-${s}`)))}return l}render(){const{mainAgentSessions:t}=this.props;if(!t||t.length===0)return ie.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ie.jsx(ho,{description:"暂无 mainAgent 对话数据"})});const n=[];return t.forEach((r,o)=>{var l,s;if(o>0&&n.push(ie.jsx(hb,{style:{borderColor:"#333",margin:"16px 0"},children:ie.jsx(Gb,{style:{fontSize:11,color:"#555"},children:"此处基模出现userId切换会让上下文出现部分丢失"})},`session-div-${o}`)),n.push(...this.renderSessionMessages(r.messages,`s${o}`,r.msgTimestamps)),o===t.length-1&&((s=(l=r.response)==null?void 0:l.body)!=null&&s.content)){const u=r.response.body.content;Array.isArray(u)&&(n.push(ie.jsx(J.Fragment,{children:ie.jsx(hb,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:ie.jsx(Gb,{type:"secondary",style:{fontSize:11},children:"Last Response"})})},"resp-divider")),n.push(ie.jsx(La,{role:"assistant",content:u},"resp-asst")))}}),ie.jsx("div",{ref:this.containerRef,style:{height:"100%",overflow:"auto",padding:"16px 24px",display:"flex",flexDirection:"column"},children:n})}}class u6 extends J.Component{constructor(t){super(t),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}handleMouseDown(t){t.preventDefault(),document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}handleMouseMove(t){this.props.onResize&&this.props.onResize(t.clientX)}handleMouseUp(){document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}render(){return ie.jsx("div",{onMouseDown:this.handleMouseDown,style:{width:6,cursor:"col-resize",background:"#1f1f1f",flexShrink:0,transition:"background 0.2s"},onMouseEnter:t=>{t.currentTarget.style.background="#3b82f6"},onMouseLeave:t=>{t.currentTarget.style.background="#1f1f1f"}})}}const d6=`
361
+ .chat-md pre {
362
+ background: #0d1117;
363
+ border: 1px solid #2a2a2a;
364
+ border-radius: 6px;
365
+ padding: 12px;
366
+ overflow-x: auto;
367
+ font-size: 13px;
368
+ line-height: 1.5;
369
+ }
370
+ .chat-md code {
371
+ background: #1a1a2e;
372
+ padding: 2px 6px;
373
+ border-radius: 4px;
374
+ font-size: 13px;
375
+ color: #e5e7eb;
376
+ }
377
+ .chat-md pre code {
378
+ background: none;
379
+ padding: 0;
380
+ }
381
+ .chat-md p { margin: 6px 0; }
382
+ .chat-md ul, .chat-md ol { padding-left: 20px; margin: 6px 0; }
383
+ .chat-md li { margin: 2px 0; }
384
+ .chat-md h1, .chat-md h2, .chat-md h3 { margin: 12px 0 6px 0; color: #fff; }
385
+ .chat-md h1 { font-size: 1.3em; }
386
+ .chat-md h2 { font-size: 1.15em; }
387
+ .chat-md h3 { font-size: 1.05em; }
388
+ .chat-md blockquote {
389
+ border-left: 3px solid #3b82f6;
390
+ margin: 8px 0;
391
+ padding: 4px 12px;
392
+ color: #9ca3af;
393
+ }
394
+ .chat-md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
395
+ .chat-md th, .chat-md td { border: 1px solid #2a2a2a; padding: 6px 10px; }
396
+ .chat-md th { background: #1a1a1a; color: #fff; }
397
+ .chat-md a { color: #60a5fa; }
398
+ .chat-md hr { border: none; border-top: 1px solid #2a2a2a; margin: 12px 0; }
399
+ .chat-md strong { color: #f1f5f9; }
400
+ .chat-md em { color: #cbd5e1; }
401
+ `;class f6 extends J.Component{constructor(n){super(n);an(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n})});an(this,"handleToggleViewMode",()=>{this.setState(n=>({viewMode:n.viewMode==="raw"?"chat":"raw"}))});an(this,"handleTabChange",n=>{this.setState({currentTab:n})});an(this,"handleResize",n=>{const r=this.mainContainerRef.current;if(!r)return;const o=r.getBoundingClientRect(),l=n-o.left;l>=250&&l<=800&&this.setState({leftPanelWidth:l})});this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:null,cacheType:null,leftPanelWidth:380,mainAgentSessions:[]},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=J.createRef()}componentDidMount(){this.initSSE()}componentWillUnmount(){this.eventSource&&this.eventSource.close(),this._autoSelectTimer&&clearTimeout(this._autoSelectTimer)}initSSE(){try{this.eventSource=new EventSource("/events"),this.eventSource.onmessage=n=>this.handleEventMessage(n),this.eventSource.onerror=()=>console.error("SSE连接错误")}catch(n){console.error("EventSource初始化失败:",n)}}handleEventMessage(n){try{const r=JSON.parse(n.data);this.setState(o=>{var g,h;const l=[...o.requests],s=l.findIndex(b=>b.timestamp===r.timestamp&&b.url===r.url);s>=0?l[s]=r:l.push(r);let u=o.cacheExpireAt,f=o.cacheType;if(r.mainAgent){const b=(h=(g=r.response)==null?void 0:g.body)==null?void 0:h.usage;if(b!=null&&b.cache_creation){const x=b.cache_creation;x.ephemeral_1h_input_tokens>0?(u=Date.now()+3600*1e3,f="1h"):x.ephemeral_5m_input_tokens>0&&(u=Date.now()+300*1e3,f="5m")}}let m=o.mainAgentSessions;return r.mainAgent&&r.body&&Array.isArray(r.body.messages)&&(m=this.mergeMainAgentSessions(o.mainAgentSessions,r)),o.selectedIndex===null&&l.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(b=>b.selectedIndex===null&&b.requests.length>0?{selectedIndex:b.requests.length-1}:null)},200)),{requests:l,cacheExpireAt:u,cacheType:f,mainAgentSessions:m}})}catch(r){console.error("处理事件消息失败:",r)}}mergeMainAgentSessions(n,r){var m;const o=r.body.messages,l=r.response,s=((m=r.body.metadata)==null?void 0:m.user_id)||null,u=r.timestamp||new Date().toISOString();if(n.length===0){const v=o.map(()=>u);return[{userId:s,messages:o,response:l,msgTimestamps:v}]}const f=n[n.length-1];if(s&&s===f.userId){const v=f.msgTimestamps||[],g=o.map((b,x)=>x<v.length?v[x]:u),h=[...n];return h[h.length-1]={userId:s,messages:o,response:l,msgTimestamps:g},h}else{const v=o.map(()=>u);return[...n,{userId:s,messages:o,response:l,msgTimestamps:v}]}}render(){const{requests:n,selectedIndex:r,viewMode:o,currentTab:l,cacheExpireAt:s,cacheType:u,leftPanelWidth:f,mainAgentSessions:m}=this.state,v=r!==null?n[r]:null;return ie.jsxs(Ci,{theme:{algorithm:Dk.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[ie.jsx("style",{children:d6}),ie.jsxs(bi,{style:{height:"100vh",overflow:"hidden"},children:[ie.jsx(bi.Header,{style:{background:"#111",borderBottom:"1px solid #1f1f1f",padding:"0 24px",height:60,lineHeight:"60px"},children:ie.jsx(AL,{requestCount:n.length,viewMode:o,cacheExpireAt:s,cacheType:u,onToggleViewMode:this.handleToggleViewMode})}),ie.jsx(bi.Content,{style:{flex:1,overflow:"hidden"},children:o==="raw"?ie.jsxs("div",{ref:this.mainContainerRef,style:{display:"flex",height:"100%"},children:[ie.jsxs("div",{style:{width:f,flexShrink:0,borderRight:"1px solid #1f1f1f",display:"flex",flexDirection:"column",background:"#0a0a0a"},children:[ie.jsx("div",{style:{padding:"10px 16px",borderBottom:"1px solid #1f1f1f",fontSize:13,color:"#9ca3af",fontWeight:500},children:"请求列表"}),ie.jsx("div",{style:{flex:1,overflow:"hidden"},children:ie.jsx(DL,{requests:n,selectedIndex:r,onSelect:this.handleSelectRequest})})]}),ie.jsx(u6,{onResize:this.handleResize}),ie.jsx("div",{style:{flex:1,overflow:"hidden",background:"#0d0d0d"},children:ie.jsx(nA,{request:v,currentTab:l,onTabChange:this.handleTabChange})})]}):ie.jsx(c6,{requests:n,mainAgentSessions:m})})]})]})}}const m6=b$.createRoot(document.getElementById("root"));m6.render(ie.jsx(f6,{}));