cc-viewer 0.1.0 → 0.1.2

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,395 @@
1
+ var i$=Object.defineProperty;var a$=(e,t,n)=>t in e?i$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>a$(e,typeof t!="symbol"?t+"":t,n);function Vb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)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(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},Il={},Rf={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 Wh;function l$(){if(Wh)return Ft;Wh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=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(){}},C=Object.assign,x={};function S(k,F,Y){this.props=k,this.context=F,this.refs=x,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=x,this.updater=Y||b}var O=$.prototype=new E;O.constructor=$,C(O,S.prototype),O.isPureReactComponent=!0;var P=Array.isArray,R=Object.prototype.hasOwnProperty,I={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function _(k,F,Y){var ne,Z={},ee=null,fe=null;if(F!=null)for(ne in F.ref!==void 0&&(fe=F.ref),F.key!==void 0&&(ee=""+F.key),F)R.call(F,ne)&&!T.hasOwnProperty(ne)&&(Z[ne]=F[ne]);var me=arguments.length-2;if(me===1)Z.children=Y;else if(1<me){for(var ce=Array(me),Se=0;Se<me;Se++)ce[Se]=arguments[Se+2];Z.children=ce}if(k&&k.defaultProps)for(ne in me=k.defaultProps,me)Z[ne]===void 0&&(Z[ne]=me[ne]);return{$$typeof:e,type:k,key:ee,ref:fe,props:Z,_owner:I.current}}function M(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 fe=!1;if(k===null)fe=!0;else switch(ee){case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0}}if(fe)return fe=k,Z=Z(fe),k=ne===""?"."+A(fe,0):ne,P(Z)?(Y="",k!=null&&(Y=k.replace(j,"$&/")+"/"),B(Z,F,Y,"",function(Se){return Se})):Z!=null&&(z(Z)&&(Z=M(Z,Y+(!Z.key||fe&&fe.key===Z.key?"":(""+Z.key).replace(j,"$&/")+"/")+k)),F.push(Z)),1;if(fe=0,ne=ne===""?".":ne+":",P(k))for(var me=0;me<k.length;me++){ee=k[me];var ce=ne+A(ee,me);fe+=B(ee,F,Y,ce,Z)}else if(ce=h(k),typeof ce=="function")for(k=ce.call(k),me=0;!(ee=k.next()).done;)ee=ee.value,ce=ne+A(ee,me++),fe+=B(ee,F,Y,ce,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 fe}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=i,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=C({},k.props),Z=k.key,ee=k.ref,fe=k._owner;if(F!=null){if(F.ref!==void 0&&(ee=F.ref,fe=I.current),F.key!==void 0&&(Z=""+F.key),k.type&&k.type.defaultProps)var me=k.type.defaultProps;for(ce in F)R.call(F,ce)&&!T.hasOwnProperty(ce)&&(ne[ce]=F[ce]===void 0&&me!==void 0?me[ce]:F[ce])}var ce=arguments.length-2;if(ce===1)ne.children=Y;else if(1<ce){me=Array(ce);for(var Se=0;Se<ce;Se++)me[Se]=arguments[Se+2];ne.children=me}return{$$typeof:e,type:k.type,key:Z,ref:ee,props:ne,_owner:fe}},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=_,Ft.createFactory=function(k){var F=_.bind(null,k);return F.type=k,F},Ft.createRef=function(){return{current:null}},Ft.forwardRef=function(k){return{$$typeof:d,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 Uh;function Tp(){return Uh||(Uh=1,Rf.exports=l$()),Rf.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 Gh;function s$(){if(Gh)return Il;Gh=1;var e=Tp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(d,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(d&&d.defaultProps)for(v in f=d.defaultProps,f)g[v]===void 0&&(g[v]=f[v]);return{$$typeof:t,type:d,key:h,ref:b,props:g,_owner:i.current}}return Il.Fragment=n,Il.jsx=s,Il.jsxs=s,Il}var Kh;function c$(){return Kh||(Kh=1,Of.exports=s$()),Of.exports}var ye=c$(),u=Tp();const J=cs(u),gu=Vb({__proto__:null,default:J},[u]);var bc={},If={exports:{}},Mr={},Pf={exports:{}},Tf={};/**
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 u$(){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<i(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,fe=D[ee];if(0>i(Z,W))ee<F&&0>i(fe,Z)?(D[k]=fe,D[ee]=W,k=ee):(D[k]=Z,D[ne]=W,k=ne);else if(ee<F&&0>i(fe,W))D[k]=fe,D[ee]=W,k=ee;else break e}}return X}function i(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,d=s.now();e.unstable_now=function(){return s.now()-d}}var f=[],m=[],v=1,g=null,h=3,b=!1,C=!1,x=!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 O(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(x=!1,O(D),!C)if(n(f)!==null)C=!0,V(R);else{var X=n(m);X!==null&&U(P,X.startTime-D)}}function R(D,X){C=!1,x&&(x=!1,E(_),_=-1),b=!0;var W=h;try{for(O(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),O(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,_=-1,M=5,z=-1;function L(){return!(e.unstable_now()-z<M)}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){_=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(){C||b||(C=!0,V(R))},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"):M=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)&&(x?(E(_),_=-1):x=!0,U(P,W-k))):(D.sortIndex=F,t(f,D),C||b||(C=!0,V(R))),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}}}})(Tf)),Tf}var Xh;function d$(){return Xh||(Xh=1,Pf.exports=u$()),Pf.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 Qh;function f$(){if(Qh)return Mr;Qh=1;var e=Tp(),t=d$();function n(o){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+o,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function l(o,a){s(o,a),s(o+"Capture",a)}function s(o,a){for(i[o]=a,o=0;o<a.length;o++)r.add(a[o])}var d=!(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(o){return f.call(g,o)?!0:f.call(v,o)?!1:m.test(o)?g[o]=!0:(v[o]=!0,!1)}function b(o,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:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function C(o,a,c,p){if(a===null||typeof a>"u"||b(o,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 x(o,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=o,this.type=a,this.sanitizeURL=w,this.removeEmptyString=N}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){S[o]=new x(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var a=o[0];S[a]=new x(a,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){S[o]=new x(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){S[o]=new x(o,2,!1,o,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(o){S[o]=new x(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){S[o]=new x(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){S[o]=new x(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){S[o]=new x(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){S[o]=new x(o,5,!1,o.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function $(o){return o[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(o){var a=o.replace(E,$);S[a]=new x(a,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var a=o.replace(E,$);S[a]=new x(a,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var a=o.replace(E,$);S[a]=new x(a,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){S[o]=new x(o,1,!1,o.toLowerCase(),null,!1,!1)}),S.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){S[o]=new x(o,1,!1,o.toLowerCase(),null,!0,!0)});function O(o,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")&&(C(a,c,y,p)&&(c=null),p||y===null?h(a)&&(c===null?o.removeAttribute(a):o.setAttribute(a,""+c)):y.mustUseProperty?o[y.propertyName]=c===null?y.type===3?!1:"":c:(a=y.attributeName,p=y.attributeNamespace,c===null?o.removeAttribute(a):(y=y.type,c=y===3||y===4&&c===!0?"":""+c,p?o.setAttributeNS(p,a,c):o.setAttribute(a,c))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),I=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),M=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(o){return o===null||typeof o!="object"?null:(o=D&&o[D]||o["@@iterator"],typeof o=="function"?o:null)}var W=Object.assign,k;function F(o){if(k===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);k=a&&a[1]||""}return`
34
+ `+k+o}var Y=!1;function ne(o,a){if(!o||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(ve){var p=ve}Reflect.construct(o,[],a)}else{try{a.call()}catch(ve){p=ve}o.call(a.prototype)}else{try{throw Error()}catch(ve){p=ve}o()}}catch(ve){if(ve&&p&&typeof ve.stack=="string"){for(var y=ve.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 o.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",o.displayName)),Q}while(1<=N&&0<=G);break}}}finally{Y=!1,Error.prepareStackTrace=c}return(o=o?o.displayName||o.name:"")?F(o):""}function Z(o){switch(o.tag){case 5:return F(o.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return o=ne(o.type,!1),o;case 11:return o=ne(o.type.render,!1),o;case 1:return o=ne(o.type,!0),o;default:return""}}function ee(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case T:return"Fragment";case I:return"Portal";case M:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case B:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case L:return(o.displayName||"Context")+".Consumer";case z:return(o._context.displayName||"Context")+".Provider";case j:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case K:return a=o.displayName||null,a!==null?a:ee(o.type)||"Memo";case V:a=o._payload,o=o._init;try{return ee(o(a))}catch{}}return null}function fe(o){var a=o.type;switch(o.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 o=a.render,o=o.displayName||o.name||"",a.displayName||(o!==""?"ForwardRef("+o+")":"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===_?"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 me(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ce(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Se(o){var a=ce(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,a),p=""+o[a];if(!o.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,w=c.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return y.call(this)},set:function(N){p=""+N,w.call(this,N)}}),Object.defineProperty(o,a,{enumerable:c.enumerable}),{getValue:function(){return p},setValue:function(N){p=""+N},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function de(o){o._valueTracker||(o._valueTracker=Se(o))}function ie(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var c=a.getValue(),p="";return o&&(p=ce(o)?o.checked?"true":"false":o.value),o=p,o!==c?(a.setValue(o),!0):!1}function he(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function ge(o,a){var c=a.checked;return W({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??o._wrapperState.initialChecked})}function pe(o,a){var c=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;c=me(a.value!=null?a.value:c),o._wrapperState={initialChecked:p,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function oe(o,a){a=a.checked,a!=null&&O(o,"checked",a,!1)}function be(o,a){oe(o,a);var c=me(a.value),p=a.type;if(c!=null)p==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+c):o.value!==""+c&&(o.value=""+c);else if(p==="submit"||p==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?$e(o,a.type,c):a.hasOwnProperty("defaultValue")&&$e(o,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function we(o,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=""+o._wrapperState.initialValue,c||a===o.value||(o.value=a),o.defaultValue=a}c=o.name,c!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,c!==""&&(o.name=c)}function $e(o,a,c){(a!=="number"||he(o.ownerDocument)!==o)&&(c==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+c&&(o.defaultValue=""+c))}var Ae=Array.isArray;function je(o,a,c,p){if(o=o.options,a){a={};for(var y=0;y<c.length;y++)a["$"+c[y]]=!0;for(c=0;c<o.length;c++)y=a.hasOwnProperty("$"+o[c].value),o[c].selected!==y&&(o[c].selected=y),y&&p&&(o[c].defaultSelected=!0)}else{for(c=""+me(c),a=null,y=0;y<o.length;y++){if(o[y].value===c){o[y].selected=!0,p&&(o[y].defaultSelected=!0);return}a!==null||o[y].disabled||(a=o[y])}a!==null&&(a.selected=!0)}}function Ie(o,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return W({},a,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Le(o,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}o._wrapperState={initialValue:me(c)}}function Ee(o,a){var c=me(a.value),p=me(a.defaultValue);c!=null&&(c=""+c,c!==o.value&&(o.value=c),a.defaultValue==null&&o.defaultValue!==c&&(o.defaultValue=c)),p!=null&&(o.defaultValue=""+p)}function tt(o){var a=o.textContent;a===o._wrapperState.initialValue&&a!==""&&a!==null&&(o.value=a)}function lt(o){switch(o){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(o,a){return o==null||o==="http://www.w3.org/1999/xhtml"?lt(a):o==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var st,Ue=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,p,y){MSApp.execUnsafeLocalFunction(function(){return o(a,c,p,y)})}:o})(function(o,a){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=a;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=st.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;a.firstChild;)o.appendChild(a.firstChild)}});function it(o,a){if(a){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=a;return}}o.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(o){dt.forEach(function(a){a=a+o.charAt(0).toUpperCase()+o.substring(1),Ve[a]=Ve[o]})});function Xe(o,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||Ve.hasOwnProperty(o)&&Ve[o]?(""+a).trim():a+"px"}function Me(o,a){o=o.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?o.setProperty(c,y):o[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(o,a){if(a){if(Ye[o]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,o));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(o,a){if(o.indexOf("-")===-1)return typeof a.is=="string";switch(o){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(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bt=null,At=null,nn=null;function vn(o){if(o=ml(o)){if(typeof Bt!="function")throw Error(n(280));var a=o.stateNode;a&&(a=zs(a),Bt(o.stateNode,o.type,a))}}function Vt(o){At?nn?nn.push(o):nn=[o]:At=o}function Tt(){if(At){var o=At,a=nn;if(nn=At=null,vn(o),a)for(o=0;o<a.length;o++)vn(a[o])}}function St(o,a){return o(a)}function Wt(){}var Lt=!1;function Ze(o,a,c){if(Lt)return o(a,c);Lt=!0;try{return St(o,a,c)}finally{Lt=!1,(At!==null||nn!==null)&&(Wt(),Tt())}}function yt(o,a){var c=o.stateNode;if(c===null)return null;var p=zs(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)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(n(231,a,typeof c));return c}var at=!1;if(d)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){at=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch{at=!1}function Ce(o,a,c,p,y,w,N,G,Q){var ve=Array.prototype.slice.call(arguments,3);try{a.apply(c,ve)}catch(Te){this.onError(Te)}}var xe=!1,_e=null,Ke=!1,Qe=null,_t={onError:function(o){xe=!0,_e=o}};function jt(o,a,c,p,y,w,N,G,Q){xe=!1,_e=null,Ce.apply(_t,arguments)}function Rt(o,a,c,p,y,w,N,G,Q){if(jt.apply(this,arguments),xe){if(xe){var ve=_e;xe=!1,_e=null}else throw Error(n(198));Ke||(Ke=!0,Qe=ve)}}function It(o){var a=o,c=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(c=a.return),o=a.return;while(o)}return a.tag===3?c:null}function mn(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function sn(o){if(It(o)!==o)throw Error(n(188))}function gn(o){var a=o.alternate;if(!a){if(a=It(o),a===null)throw Error(n(188));return a!==o?null:o}for(var c=o,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),o;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?o:a}function $n(o){return o=gn(o),o!==null?Kt(o):null}function Kt(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var a=Kt(o);if(a!==null)return a;o=o.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(o){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot($t,o,void 0,(o.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:cr,sr=Math.log,Hn=Math.LN2;function cr(o){return o>>>=0,o===0?32:31-(sr(o)/Hn|0)|0}var Vn=64,nr=4194304;function ur(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Xt(o,a){var c=o.pendingLanes;if(c===0)return 0;var p=0,y=o.suspendedLanes,w=o.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=o.entangledLanes,a!==0)for(o=o.entanglements,a&=p;0<a;)c=31-xn(a),y=1<<c,p|=o[c],a&=~y;return p}function nt(o,a){switch(o){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(o,a){for(var c=o.suspendedLanes,p=o.pingedLanes,y=o.expirationTimes,w=o.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&&(o.expiredLanes|=G),w&=~G}}function Ut(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Qt(){var o=Vn;return Vn<<=1,(Vn&4194240)===0&&(Vn=64),o}function rn(o){for(var a=[],c=0;31>c;c++)a.push(o);return a}function ln(o,a,c){o.pendingLanes|=a,a!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,a=31-xn(a),o[a]=c}function rr(o,a){var c=o.pendingLanes&~a;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=a,o.mutableReadLanes&=a,o.entangledLanes&=a,a=o.entanglements;var p=o.eventTimes;for(o=o.expirationTimes;0<c;){var y=31-xn(c),w=1<<y;a[y]=0,p[y]=-1,o[y]=-1,c&=~w}}function jn(o,a){var c=o.entangledLanes|=a;for(o=o.entanglements;c;){var p=31-xn(c),y=1<<p;y&a|o[p]&a&&(o[p]|=a),c&=~y}}var zt=0;function Wn(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Xn,$r,Qn,Qo,Ji,ea=!1,To=[],Tn=null,dr=null,br=null,Er=new Map,Ur=new Map,Nr=[],ta="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 na(o,a){switch(o){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(o,a,c,p,y,w){return o===null||o.nativeEvent!==w?(o={blockedOn:a,domEventName:c,eventSystemFlags:p,nativeEvent:w,targetContainers:[y]},a!==null&&(a=ml(a),a!==null&&$r(a)),o):(o.eventSystemFlags|=p,a=o.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),o)}function Pt(o,a,c,p,y){switch(a){case"focusin":return Tn=rt(Tn,o,a,c,p,y),!0;case"dragenter":return dr=rt(dr,o,a,c,p,y),!0;case"mouseover":return br=rt(br,o,a,c,p,y),!0;case"pointerover":var w=y.pointerId;return Er.set(w,rt(Er.get(w)||null,o,a,c,p,y)),!0;case"gotpointercapture":return w=y.pointerId,Ur.set(w,rt(Ur.get(w)||null,o,a,c,p,y)),!0}return!1}function bn(o){var a=wi(o.target);if(a!==null){var c=It(a);if(c!==null){if(a=c.tag,a===13){if(a=mn(c),a!==null){o.blockedOn=a,Ji(o.priority,function(){Qn(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Cn(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var c=Zu(o.domEventName,o.eventSystemFlags,a[0],o.nativeEvent);if(c===null){c=o.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),o.blockedOn=c,!1;a.shift()}return!0}function Sn(o,a,c){Cn(o)&&c.delete(a)}function ra(){ea=!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(o,a){o.blockedOn===a&&(o.blockedOn=null,ea||(ea=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ra)))}function Yo(o){function a(y){return Mo(y,o)}if(0<To.length){Mo(To[0],o);for(var c=1;c<To.length;c++){var p=To[c];p.blockedOn===o&&(p.blockedOn=null)}}for(Tn!==null&&Mo(Tn,o),dr!==null&&Mo(dr,o),br!==null&&Mo(br,o),Er.forEach(a),Ur.forEach(a),c=0;c<Nr.length;c++)p=Nr[c],p.blockedOn===o&&(p.blockedOn=null);for(;0<Nr.length&&(c=Nr[0],c.blockedOn===null);)bn(c),c.blockedOn===null&&Nr.shift()}var io=P.ReactCurrentBatchConfig,xs=!0;function TC(o,a,c,p){var y=zt,w=io.transition;io.transition=null;try{zt=1,Yu(o,a,c,p)}finally{zt=y,io.transition=w}}function MC(o,a,c,p){var y=zt,w=io.transition;io.transition=null;try{zt=4,Yu(o,a,c,p)}finally{zt=y,io.transition=w}}function Yu(o,a,c,p){if(xs){var y=Zu(o,a,c,p);if(y===null)vd(o,a,p,Cs,c),na(o,p);else if(Pt(y,o,a,c,p))p.stopPropagation();else if(na(o,p),a&4&&-1<ta.indexOf(o)){for(;y!==null;){var w=ml(y);if(w!==null&&Xn(w),w=Zu(o,a,c,p),w===null&&vd(o,a,p,Cs,c),w===y)break;y=w}y!==null&&p.stopPropagation()}else vd(o,a,p,null,c)}}var Cs=null;function Zu(o,a,c,p){if(Cs=null,o=mt(p),o=wi(o),o!==null)if(a=It(o),a===null)o=null;else if(c=a.tag,c===13){if(o=mn(a),o!==null)return o;o=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null);return Cs=o,null}function Tv(o){switch(o){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,Ju=null,ws=null;function Mv(){if(ws)return ws;var o,a=Ju,c=a.length,p,y="value"in Zo?Zo.value:Zo.textContent,w=y.length;for(o=0;o<c&&a[o]===y[o];o++);var N=c-o;for(p=1;p<=N&&a[c-p]===y[w-p];p++);return ws=y.slice(o,1<p?1-p:void 0)}function $s(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Es(){return!0}function _v(){return!1}function zr(o){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 o)o.hasOwnProperty(G)&&(c=o[G],this[G]=c?c(w):w[G]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Es:_v,this.isPropagationStopped=_v,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=Es)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Es)},persist:function(){},isPersistent:Es}),a}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ed=zr(oa),nl=W({},oa,{view:0,detail:0}),_C=zr(nl),td,nd,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:od,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==rl&&(rl&&o.type==="mousemove"?(td=o.screenX-rl.screenX,nd=o.screenY-rl.screenY):nd=td=0,rl=o),td)},movementY:function(o){return"movementY"in o?o.movementY:nd}}),Nv=zr(Os),NC=W({},Os,{dataTransfer:0}),zC=zr(NC),jC=W({},nl,{relatedTarget:0}),rd=zr(jC),kC=W({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),LC=zr(kC),AC=W({},oa,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),DC=zr(AC),BC=W({},oa,{data:0}),zv=zr(BC),FC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HC={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"},VC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WC(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=VC[o])?!!a[o]:!1}function od(){return WC}var UC=W({},nl,{key:function(o){if(o.key){var a=FC[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=$s(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?HC[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(o){return o.type==="keypress"?$s(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?$s(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),GC=zr(UC),KC=W({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jv=zr(KC),qC=W({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),XC=zr(qC),QC=W({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),YC=zr(QC),ZC=W({},Os,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),JC=zr(ZC),ew=[9,13,27,32],id=d&&"CompositionEvent"in window,ol=null;d&&"documentMode"in document&&(ol=document.documentMode);var tw=d&&"TextEvent"in window&&!ol,kv=d&&(!id||ol&&8<ol&&11>=ol),Lv=" ",Av=!1;function Dv(o,a){switch(o){case"keyup":return ew.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bv(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ia=!1;function nw(o,a){switch(o){case"compositionend":return Bv(a);case"keypress":return a.which!==32?null:(Av=!0,Lv);case"textInput":return o=a.data,o===Lv&&Av?null:o;default:return null}}function rw(o,a){if(ia)return o==="compositionend"||!id&&Dv(o,a)?(o=Mv(),ws=Ju=Zo=null,ia=!1,o):null;switch(o){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 kv&&a.locale!=="ko"?null:a.data;default:return null}}var ow={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 Fv(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!ow[o.type]:a==="textarea"}function Hv(o,a,c,p){Vt(p),a=Ms(a,"onChange"),0<a.length&&(c=new ed("onChange","change",null,c,p),o.push({event:c,listeners:a}))}var il=null,al=null;function iw(o){ag(o,0)}function Rs(o){var a=ua(o);if(ie(a))return o}function aw(o,a){if(o==="change")return a}var Vv=!1;if(d){var ad;if(d){var ld="oninput"in document;if(!ld){var Wv=document.createElement("div");Wv.setAttribute("oninput","return;"),ld=typeof Wv.oninput=="function"}ad=ld}else ad=!1;Vv=ad&&(!document.documentMode||9<document.documentMode)}function Uv(){il&&(il.detachEvent("onpropertychange",Gv),al=il=null)}function Gv(o){if(o.propertyName==="value"&&Rs(al)){var a=[];Hv(a,al,o,mt(o)),Ze(iw,a)}}function lw(o,a,c){o==="focusin"?(Uv(),il=a,al=c,il.attachEvent("onpropertychange",Gv)):o==="focusout"&&Uv()}function sw(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Rs(al)}function cw(o,a){if(o==="click")return Rs(a)}function uw(o,a){if(o==="input"||o==="change")return Rs(a)}function dw(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var ao=typeof Object.is=="function"?Object.is:dw;function ll(o,a){if(ao(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var c=Object.keys(o),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(o[y],a[y]))return!1}return!0}function Kv(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function qv(o,a){var c=Kv(o);o=0;for(var p;c;){if(c.nodeType===3){if(p=o+c.textContent.length,o<=a&&p>=a)return{node:c,offset:a-o};o=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Kv(c)}}function Xv(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?Xv(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function Qv(){for(var o=window,a=he();a instanceof o.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)o=a.contentWindow;else break;a=he(o.document)}return a}function sd(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}function fw(o){var a=Qv(),c=o.focusedElem,p=o.selectionRange;if(a!==c&&c&&c.ownerDocument&&Xv(c.ownerDocument.documentElement,c)){if(p!==null&&sd(c)){if(a=p.start,o=p.end,o===void 0&&(o=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(o,c.value.length);else if(o=(a=c.ownerDocument||document)&&a.defaultView||window,o.getSelection){o=o.getSelection();var y=c.textContent.length,w=Math.min(p.start,y);p=p.end===void 0?w:Math.min(p.end,y),!o.extend&&w>p&&(y=p,p=w,w=y),y=qv(c,w);var N=qv(c,p);y&&N&&(o.rangeCount!==1||o.anchorNode!==y.node||o.anchorOffset!==y.offset||o.focusNode!==N.node||o.focusOffset!==N.offset)&&(a=a.createRange(),a.setStart(y.node,y.offset),o.removeAllRanges(),w>p?(o.addRange(a),o.extend(N.node,N.offset)):(a.setEnd(N.node,N.offset),o.addRange(a)))}}for(a=[],o=c;o=o.parentNode;)o.nodeType===1&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)o=a[c],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var mw=d&&"documentMode"in document&&11>=document.documentMode,aa=null,cd=null,sl=null,ud=!1;function Yv(o,a,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;ud||aa==null||aa!==he(p)||(p=aa,"selectionStart"in p&&sd(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(cd,"onSelect"),0<p.length&&(a=new ed("onSelect","select",null,a,c),o.push({event:a,listeners:p}),a.target=aa)))}function Is(o,a){var c={};return c[o.toLowerCase()]=a.toLowerCase(),c["Webkit"+o]="webkit"+a,c["Moz"+o]="moz"+a,c}var la={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionend:Is("Transition","TransitionEnd")},dd={},Zv={};d&&(Zv=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ps(o){if(dd[o])return dd[o];if(!la[o])return o;var a=la[o],c;for(c in a)if(a.hasOwnProperty(c)&&c in Zv)return dd[o]=a[c];return o}var Jv=Ps("animationend"),eg=Ps("animationiteration"),tg=Ps("animationstart"),ng=Ps("transitionend"),rg=new Map,og="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(o,a){rg.set(o,a),l(a,[o])}for(var fd=0;fd<og.length;fd++){var md=og[fd],pw=md.toLowerCase(),vw=md[0].toUpperCase()+md.slice(1);Jo(pw,"on"+vw)}Jo(Jv,"onAnimationEnd"),Jo(eg,"onAnimationIteration"),Jo(tg,"onAnimationStart"),Jo("dblclick","onDoubleClick"),Jo("focusin","onFocus"),Jo("focusout","onBlur"),Jo(ng,"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(" "),gw=new Set("cancel close invalid load scroll toggle".split(" ").concat(cl));function ig(o,a,c){var p=o.type||"unknown-event";o.currentTarget=c,Rt(p,a,void 0,o),o.currentTarget=null}function ag(o,a){a=(a&4)!==0;for(var c=0;c<o.length;c++){var p=o[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,ve=G.currentTarget;if(G=G.listener,Q!==w&&y.isPropagationStopped())break e;ig(y,G,ve),w=Q}else for(N=0;N<p.length;N++){if(G=p[N],Q=G.instance,ve=G.currentTarget,G=G.listener,Q!==w&&y.isPropagationStopped())break e;ig(y,G,ve),w=Q}}}if(Ke)throw o=Qe,Ke=!1,Qe=null,o}function En(o,a){var c=a[xd];c===void 0&&(c=a[xd]=new Set);var p=o+"__bubble";c.has(p)||(lg(a,o,2,!1),c.add(p))}function pd(o,a,c){var p=0;a&&(p|=4),lg(c,o,p,a)}var Ts="_reactListening"+Math.random().toString(36).slice(2);function ul(o){if(!o[Ts]){o[Ts]=!0,r.forEach(function(c){c!=="selectionchange"&&(gw.has(c)||pd(c,!1,o),pd(c,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[Ts]||(a[Ts]=!0,pd("selectionchange",!1,a))}}function lg(o,a,c,p){switch(Tv(a)){case 1:var y=TC;break;case 4:y=MC;break;default:y=Yu}c=y.bind(null,a,c,o),y=void 0,!at||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),p?y!==void 0?o.addEventListener(a,c,{capture:!0,passive:y}):o.addEventListener(a,c,!0):y!==void 0?o.addEventListener(a,c,{passive:y}):o.addEventListener(a,c,!1)}function vd(o,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 ve=w,Te=mt(c),ze=[];e:{var Re=rg.get(o);if(Re!==void 0){var ot=ed,pt=o;switch(o){case"keypress":if($s(c)===0)break e;case"keydown":case"keyup":ot=GC;break;case"focusin":pt="focus",ot=rd;break;case"focusout":pt="blur",ot=rd;break;case"beforeblur":case"afterblur":ot=rd;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=Nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=zC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=XC;break;case Jv:case eg:case tg:ot=LC;break;case ng:ot=YC;break;case"scroll":ot=_C;break;case"wheel":ot=JC;break;case"copy":case"cut":case"paste":ot=DC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=jv}var gt=(a&4)!==0,kn=!gt&&o==="scroll",ae=gt?Re!==null?Re+"Capture":null:Re;gt=[];for(var te=ve,ue;te!==null;){ue=te;var De=ue.stateNode;if(ue.tag===5&&De!==null&&(ue=De,ae!==null&&(De=yt(te,ae),De!=null&&gt.push(dl(te,De,ue)))),kn)break;te=te.return}0<gt.length&&(Re=new ot(Re,pt,null,c,Te),ze.push({event:Re,listeners:gt}))}}if((a&7)===0){e:{if(Re=o==="mouseover"||o==="pointerover",ot=o==="mouseout"||o==="pointerout",Re&&c!==wt&&(pt=c.relatedTarget||c.fromElement)&&(wi(pt)||pt[_o]))break e;if((ot||Re)&&(Re=Te.window===Te?Te:(Re=Te.ownerDocument)?Re.defaultView||Re.parentWindow:window,ot?(pt=c.relatedTarget||c.toElement,ot=ve,pt=pt?wi(pt):null,pt!==null&&(kn=It(pt),pt!==kn||pt.tag!==5&&pt.tag!==6)&&(pt=null)):(ot=null,pt=ve),ot!==pt)){if(gt=Nv,De="onMouseLeave",ae="onMouseEnter",te="mouse",(o==="pointerout"||o==="pointerover")&&(gt=jv,De="onPointerLeave",ae="onPointerEnter",te="pointer"),kn=ot==null?Re:ua(ot),ue=pt==null?Re:ua(pt),Re=new gt(De,te+"leave",ot,c,Te),Re.target=kn,Re.relatedTarget=ue,De=null,wi(Te)===ve&&(gt=new gt(ae,te+"enter",pt,c,Te),gt.target=ue,gt.relatedTarget=kn,De=gt),kn=De,ot&&pt)t:{for(gt=ot,ae=pt,te=0,ue=gt;ue;ue=sa(ue))te++;for(ue=0,De=ae;De;De=sa(De))ue++;for(;0<te-ue;)gt=sa(gt),te--;for(;0<ue-te;)ae=sa(ae),ue--;for(;te--;){if(gt===ae||ae!==null&&gt===ae.alternate)break t;gt=sa(gt),ae=sa(ae)}gt=null}else gt=null;ot!==null&&sg(ze,Re,ot,gt,!1),pt!==null&&kn!==null&&sg(ze,kn,pt,gt,!0)}}e:{if(Re=ve?ua(ve):window,ot=Re.nodeName&&Re.nodeName.toLowerCase(),ot==="select"||ot==="input"&&Re.type==="file")var ht=aw;else if(Fv(Re))if(Vv)ht=uw;else{ht=sw;var Et=lw}else(ot=Re.nodeName)&&ot.toLowerCase()==="input"&&(Re.type==="checkbox"||Re.type==="radio")&&(ht=cw);if(ht&&(ht=ht(o,ve))){Hv(ze,ht,c,Te);break e}Et&&Et(o,Re,ve),o==="focusout"&&(Et=Re._wrapperState)&&Et.controlled&&Re.type==="number"&&$e(Re,"number",Re.value)}switch(Et=ve?ua(ve):window,o){case"focusin":(Fv(Et)||Et.contentEditable==="true")&&(aa=Et,cd=ve,sl=null);break;case"focusout":sl=cd=aa=null;break;case"mousedown":ud=!0;break;case"contextmenu":case"mouseup":case"dragend":ud=!1,Yv(ze,c,Te);break;case"selectionchange":if(mw)break;case"keydown":case"keyup":Yv(ze,c,Te)}var Ot;if(id)e:{switch(o){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else ia?Dv(o,c)&&(Nt="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(Nt="onCompositionStart");Nt&&(kv&&c.locale!=="ko"&&(ia||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&ia&&(Ot=Mv()):(Zo=Te,Ju="value"in Zo?Zo.value:Zo.textContent,ia=!0)),Et=Ms(ve,Nt),0<Et.length&&(Nt=new zv(Nt,o,null,c,Te),ze.push({event:Nt,listeners:Et}),Ot?Nt.data=Ot:(Ot=Bv(c),Ot!==null&&(Nt.data=Ot)))),(Ot=tw?nw(o,c):rw(o,c))&&(ve=Ms(ve,"onBeforeInput"),0<ve.length&&(Te=new zv("onBeforeInput","beforeinput",null,c,Te),ze.push({event:Te,listeners:ve}),Te.data=Ot))}ag(ze,a)})}function dl(o,a,c){return{instance:o,listener:a,currentTarget:c}}function Ms(o,a){for(var c=a+"Capture",p=[];o!==null;){var y=o,w=y.stateNode;y.tag===5&&w!==null&&(y=w,w=yt(o,c),w!=null&&p.unshift(dl(o,w,y)),w=yt(o,a),w!=null&&p.push(dl(o,w,y))),o=o.return}return p}function sa(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function sg(o,a,c,p,y){for(var w=a._reactName,N=[];c!==null&&c!==p;){var G=c,Q=G.alternate,ve=G.stateNode;if(Q!==null&&Q===p)break;G.tag===5&&ve!==null&&(G=ve,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&&o.push({event:a,listeners:N})}var hw=/\r\n?/g,yw=/\u0000|\uFFFD/g;function cg(o){return(typeof o=="string"?o:""+o).replace(hw,`
38
+ `).replace(yw,"")}function _s(o,a,c){if(a=cg(a),cg(o)!==a&&c)throw Error(n(425))}function Ns(){}var gd=null,hd=null;function yd(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var bd=typeof setTimeout=="function"?setTimeout:void 0,bw=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,Sw=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(o){return ug.resolve(null).then(o).catch(xw)}:bd;function xw(o){setTimeout(function(){throw o})}function Sd(o,a){var c=a,p=0;do{var y=c.nextSibling;if(o.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"){if(p===0){o.removeChild(y),Yo(a);return}p--}else c!=="$"&&c!=="$?"&&c!=="$!"||p++;c=y}while(c);Yo(a)}function ei(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return o}function dg(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return o;a--}else c==="/$"&&a++}o=o.previousSibling}return null}var ca=Math.random().toString(36).slice(2),xo="__reactFiber$"+ca,fl="__reactProps$"+ca,_o="__reactContainer$"+ca,xd="__reactEvents$"+ca,Cw="__reactListeners$"+ca,ww="__reactHandles$"+ca;function wi(o){var a=o[xo];if(a)return a;for(var c=o.parentNode;c;){if(a=c[_o]||c[xo]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(o=dg(o);o!==null;){if(c=o[xo])return c;o=dg(o)}return a}o=c,c=o.parentNode}return null}function ml(o){return o=o[xo]||o[_o],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function ua(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function zs(o){return o[fl]||null}var Cd=[],da=-1;function ti(o){return{current:o}}function On(o){0>da||(o.current=Cd[da],Cd[da]=null,da--)}function wn(o,a){da++,Cd[da]=o.current,o.current=a}var ni={},fr=ti(ni),Or=ti(!1),$i=ni;function fa(o,a){var c=o.type.contextTypes;if(!c)return ni;var p=o.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={},w;for(w in c)y[w]=a[w];return p&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=a,o.__reactInternalMemoizedMaskedChildContext=y),y}function Rr(o){return o=o.childContextTypes,o!=null}function js(){On(Or),On(fr)}function fg(o,a,c){if(fr.current!==ni)throw Error(n(168));wn(fr,a),wn(Or,c)}function mg(o,a,c){var p=o.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,fe(o)||"Unknown",y));return W({},c,p)}function ks(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||ni,$i=fr.current,wn(fr,o),wn(Or,Or.current),!0}function pg(o,a,c){var p=o.stateNode;if(!p)throw Error(n(169));c?(o=mg(o,a,$i),p.__reactInternalMemoizedMergedChildContext=o,On(Or),On(fr),wn(fr,o)):On(Or),wn(Or,c)}var No=null,Ls=!1,wd=!1;function vg(o){No===null?No=[o]:No.push(o)}function $w(o){Ls=!0,vg(o)}function ri(){if(!wd&&No!==null){wd=!0;var o=0,a=zt;try{var c=No;for(zt=1;o<c.length;o++){var p=c[o];do p=p(!0);while(p!==null)}No=null,Ls=!1}catch(y){throw No!==null&&(No=No.slice(o+1)),Yt(Ge,ri),y}finally{zt=a,wd=!1}}return null}var ma=[],pa=0,As=null,Ds=0,Gr=[],Kr=0,Ei=null,zo=1,jo="";function Oi(o,a){ma[pa++]=Ds,ma[pa++]=As,As=o,Ds=a}function gg(o,a,c){Gr[Kr++]=zo,Gr[Kr++]=jo,Gr[Kr++]=Ei,Ei=o;var p=zo;o=jo;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,zo=1<<32-xn(a)+y|c<<y|p,jo=w+o}else zo=1<<w|c<<y|p,jo=o}function $d(o){o.return!==null&&(Oi(o,1),gg(o,1,0))}function Ed(o){for(;o===As;)As=ma[--pa],ma[pa]=null,Ds=ma[--pa],ma[pa]=null;for(;o===Ei;)Ei=Gr[--Kr],Gr[Kr]=null,jo=Gr[--Kr],Gr[Kr]=null,zo=Gr[--Kr],Gr[Kr]=null}var jr=null,kr=null,Pn=!1,lo=null;function hg(o,a){var c=Yr(5,null,null,0);c.elementType="DELETED",c.stateNode=a,c.return=o,a=o.deletions,a===null?(o.deletions=[c],o.flags|=16):a.push(c)}function yg(o,a){switch(o.tag){case 5:var c=o.type;return a=a.nodeType!==1||c.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(o.stateNode=a,jr=o,kr=ei(a.firstChild),!0):!1;case 6:return a=o.pendingProps===""||a.nodeType!==3?null:a,a!==null?(o.stateNode=a,jr=o,kr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(c=Ei!==null?{id:zo,overflow:jo}:null,o.memoizedState={dehydrated:a,treeContext:c,retryLane:1073741824},c=Yr(18,null,null,0),c.stateNode=a,c.return=o,o.child=c,jr=o,kr=null,!0):!1;default:return!1}}function Od(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Rd(o){if(Pn){var a=kr;if(a){var c=a;if(!yg(o,a)){if(Od(o))throw Error(n(418));a=ei(c.nextSibling);var p=jr;a&&yg(o,a)?hg(p,c):(o.flags=o.flags&-4097|2,Pn=!1,jr=o)}}else{if(Od(o))throw Error(n(418));o.flags=o.flags&-4097|2,Pn=!1,jr=o}}}function bg(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;jr=o}function Bs(o){if(o!==jr)return!1;if(!Pn)return bg(o),Pn=!0,!1;var a;if((a=o.tag!==3)&&!(a=o.tag!==5)&&(a=o.type,a=a!=="head"&&a!=="body"&&!yd(o.type,o.memoizedProps)),a&&(a=kr)){if(Od(o))throw Sg(),Error(n(418));for(;a;)hg(o,a),a=ei(a.nextSibling)}if(bg(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"){if(a===0){kr=ei(o.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++}o=o.nextSibling}kr=null}}else kr=jr?ei(o.stateNode.nextSibling):null;return!0}function Sg(){for(var o=kr;o;)o=ei(o.nextSibling)}function va(){kr=jr=null,Pn=!1}function Id(o){lo===null?lo=[o]:lo.push(o)}var Ew=P.ReactCurrentBatchConfig;function pl(o,a,c){if(o=c.ref,o!==null&&typeof o!="function"&&typeof o!="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,o));var y=p,w=""+o;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 o!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,o))}return o}function Fs(o,a){throw o=Object.prototype.toString.call(a),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o))}function xg(o){var a=o._init;return a(o._payload)}function Cg(o){function a(ae,te){if(o){var ue=ae.deletions;ue===null?(ae.deletions=[te],ae.flags|=16):ue.push(te)}}function c(ae,te){if(!o)return null;for(;te!==null;)a(ae,te),te=te.sibling;return null}function p(ae,te){for(ae=new Map;te!==null;)te.key!==null?ae.set(te.key,te):ae.set(te.index,te),te=te.sibling;return ae}function y(ae,te){return ae=di(ae,te),ae.index=0,ae.sibling=null,ae}function w(ae,te,ue){return ae.index=ue,o?(ue=ae.alternate,ue!==null?(ue=ue.index,ue<te?(ae.flags|=2,te):ue):(ae.flags|=2,te)):(ae.flags|=1048576,te)}function N(ae){return o&&ae.alternate===null&&(ae.flags|=2),ae}function G(ae,te,ue,De){return te===null||te.tag!==6?(te=Sf(ue,ae.mode,De),te.return=ae,te):(te=y(te,ue),te.return=ae,te)}function Q(ae,te,ue,De){var ht=ue.type;return ht===T?Te(ae,te,ue.props.children,De,ue.key):te!==null&&(te.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&xg(ht)===te.type)?(De=y(te,ue.props),De.ref=pl(ae,te,ue),De.return=ae,De):(De=dc(ue.type,ue.key,ue.props,null,ae.mode,De),De.ref=pl(ae,te,ue),De.return=ae,De)}function ve(ae,te,ue,De){return te===null||te.tag!==4||te.stateNode.containerInfo!==ue.containerInfo||te.stateNode.implementation!==ue.implementation?(te=xf(ue,ae.mode,De),te.return=ae,te):(te=y(te,ue.children||[]),te.return=ae,te)}function Te(ae,te,ue,De,ht){return te===null||te.tag!==7?(te=zi(ue,ae.mode,De,ht),te.return=ae,te):(te=y(te,ue),te.return=ae,te)}function ze(ae,te,ue){if(typeof te=="string"&&te!==""||typeof te=="number")return te=Sf(""+te,ae.mode,ue),te.return=ae,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case R:return ue=dc(te.type,te.key,te.props,null,ae.mode,ue),ue.ref=pl(ae,null,te),ue.return=ae,ue;case I:return te=xf(te,ae.mode,ue),te.return=ae,te;case V:var De=te._init;return ze(ae,De(te._payload),ue)}if(Ae(te)||X(te))return te=zi(te,ae.mode,ue,null),te.return=ae,te;Fs(ae,te)}return null}function Re(ae,te,ue,De){var ht=te!==null?te.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ht!==null?null:G(ae,te,""+ue,De);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case R:return ue.key===ht?Q(ae,te,ue,De):null;case I:return ue.key===ht?ve(ae,te,ue,De):null;case V:return ht=ue._init,Re(ae,te,ht(ue._payload),De)}if(Ae(ue)||X(ue))return ht!==null?null:Te(ae,te,ue,De,null);Fs(ae,ue)}return null}function ot(ae,te,ue,De,ht){if(typeof De=="string"&&De!==""||typeof De=="number")return ae=ae.get(ue)||null,G(te,ae,""+De,ht);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case R:return ae=ae.get(De.key===null?ue:De.key)||null,Q(te,ae,De,ht);case I:return ae=ae.get(De.key===null?ue:De.key)||null,ve(te,ae,De,ht);case V:var Et=De._init;return ot(ae,te,ue,Et(De._payload),ht)}if(Ae(De)||X(De))return ae=ae.get(ue)||null,Te(te,ae,De,ht,null);Fs(te,De)}return null}function pt(ae,te,ue,De){for(var ht=null,Et=null,Ot=te,Nt=te=0,Jn=null;Ot!==null&&Nt<ue.length;Nt++){Ot.index>Nt?(Jn=Ot,Ot=null):Jn=Ot.sibling;var on=Re(ae,Ot,ue[Nt],De);if(on===null){Ot===null&&(Ot=Jn);break}o&&Ot&&on.alternate===null&&a(ae,Ot),te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on,Ot=Jn}if(Nt===ue.length)return c(ae,Ot),Pn&&Oi(ae,Nt),ht;if(Ot===null){for(;Nt<ue.length;Nt++)Ot=ze(ae,ue[Nt],De),Ot!==null&&(te=w(Ot,te,Nt),Et===null?ht=Ot:Et.sibling=Ot,Et=Ot);return Pn&&Oi(ae,Nt),ht}for(Ot=p(ae,Ot);Nt<ue.length;Nt++)Jn=ot(Ot,ae,Nt,ue[Nt],De),Jn!==null&&(o&&Jn.alternate!==null&&Ot.delete(Jn.key===null?Nt:Jn.key),te=w(Jn,te,Nt),Et===null?ht=Jn:Et.sibling=Jn,Et=Jn);return o&&Ot.forEach(function(fi){return a(ae,fi)}),Pn&&Oi(ae,Nt),ht}function gt(ae,te,ue,De){var ht=X(ue);if(typeof ht!="function")throw Error(n(150));if(ue=ht.call(ue),ue==null)throw Error(n(151));for(var Et=ht=null,Ot=te,Nt=te=0,Jn=null,on=ue.next();Ot!==null&&!on.done;Nt++,on=ue.next()){Ot.index>Nt?(Jn=Ot,Ot=null):Jn=Ot.sibling;var fi=Re(ae,Ot,on.value,De);if(fi===null){Ot===null&&(Ot=Jn);break}o&&Ot&&fi.alternate===null&&a(ae,Ot),te=w(fi,te,Nt),Et===null?ht=fi:Et.sibling=fi,Et=fi,Ot=Jn}if(on.done)return c(ae,Ot),Pn&&Oi(ae,Nt),ht;if(Ot===null){for(;!on.done;Nt++,on=ue.next())on=ze(ae,on.value,De),on!==null&&(te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on);return Pn&&Oi(ae,Nt),ht}for(Ot=p(ae,Ot);!on.done;Nt++,on=ue.next())on=ot(Ot,ae,Nt,on.value,De),on!==null&&(o&&on.alternate!==null&&Ot.delete(on.key===null?Nt:on.key),te=w(on,te,Nt),Et===null?ht=on:Et.sibling=on,Et=on);return o&&Ot.forEach(function(o$){return a(ae,o$)}),Pn&&Oi(ae,Nt),ht}function kn(ae,te,ue,De){if(typeof ue=="object"&&ue!==null&&ue.type===T&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case R:e:{for(var ht=ue.key,Et=te;Et!==null;){if(Et.key===ht){if(ht=ue.type,ht===T){if(Et.tag===7){c(ae,Et.sibling),te=y(Et,ue.props.children),te.return=ae,ae=te;break e}}else if(Et.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&xg(ht)===Et.type){c(ae,Et.sibling),te=y(Et,ue.props),te.ref=pl(ae,Et,ue),te.return=ae,ae=te;break e}c(ae,Et);break}else a(ae,Et);Et=Et.sibling}ue.type===T?(te=zi(ue.props.children,ae.mode,De,ue.key),te.return=ae,ae=te):(De=dc(ue.type,ue.key,ue.props,null,ae.mode,De),De.ref=pl(ae,te,ue),De.return=ae,ae=De)}return N(ae);case I:e:{for(Et=ue.key;te!==null;){if(te.key===Et)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){c(ae,te.sibling),te=y(te,ue.children||[]),te.return=ae,ae=te;break e}else{c(ae,te);break}else a(ae,te);te=te.sibling}te=xf(ue,ae.mode,De),te.return=ae,ae=te}return N(ae);case V:return Et=ue._init,kn(ae,te,Et(ue._payload),De)}if(Ae(ue))return pt(ae,te,ue,De);if(X(ue))return gt(ae,te,ue,De);Fs(ae,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,te!==null&&te.tag===6?(c(ae,te.sibling),te=y(te,ue),te.return=ae,ae=te):(c(ae,te),te=Sf(ue,ae.mode,De),te.return=ae,ae=te),N(ae)):c(ae,te)}return kn}var ga=Cg(!0),wg=Cg(!1),Hs=ti(null),Vs=null,ha=null,Pd=null;function Td(){Pd=ha=Vs=null}function Md(o){var a=Hs.current;On(Hs),o._currentValue=a}function _d(o,a,c){for(;o!==null;){var p=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),o===c)break;o=o.return}}function ya(o,a){Vs=o,Pd=ha=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&a)!==0&&(Ir=!0),o.firstContext=null)}function qr(o){var a=o._currentValue;if(Pd!==o)if(o={context:o,memoizedValue:a,next:null},ha===null){if(Vs===null)throw Error(n(308));ha=o,Vs.dependencies={lanes:0,firstContext:o}}else ha=ha.next=o;return a}var Ri=null;function Nd(o){Ri===null?Ri=[o]:Ri.push(o)}function $g(o,a,c,p){var y=a.interleaved;return y===null?(c.next=c,Nd(a)):(c.next=y.next,y.next=c),a.interleaved=c,ko(o,p)}function ko(o,a){o.lanes|=a;var c=o.alternate;for(c!==null&&(c.lanes|=a),c=o,o=o.return;o!==null;)o.childLanes|=a,c=o.alternate,c!==null&&(c.childLanes|=a),c=o,o=o.return;return c.tag===3?c.stateNode:null}var oi=!1;function zd(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Eg(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Lo(o,a){return{eventTime:o,lane:a,tag:0,payload:null,callback:null,next:null}}function ii(o,a,c){var p=o.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,ko(o,c)}return y=p.interleaved,y===null?(a.next=a,Nd(p)):(a.next=y.next,y.next=a),p.interleaved=a,ko(o,c)}function Ws(o,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194240)!==0)){var p=a.lanes;p&=o.pendingLanes,c|=p,a.lanes=c,jn(o,c)}}function Og(o,a){var c=o.updateQueue,p=o.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},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=a:o.next=a,c.lastBaseUpdate=a}function Us(o,a,c,p){var y=o.updateQueue;oi=!1;var w=y.firstBaseUpdate,N=y.lastBaseUpdate,G=y.shared.pending;if(G!==null){y.shared.pending=null;var Q=G,ve=Q.next;Q.next=null,N===null?w=ve:N.next=ve,N=Q;var Te=o.alternate;Te!==null&&(Te=Te.updateQueue,G=Te.lastBaseUpdate,G!==N&&(G===null?Te.firstBaseUpdate=ve:G.next=ve,Te.lastBaseUpdate=Q))}if(w!==null){var ze=y.baseState;N=0,Te=ve=Q=null,G=w;do{var Re=G.lane,ot=G.eventTime;if((p&Re)===Re){Te!==null&&(Te=Te.next={eventTime:ot,lane:0,tag:G.tag,payload:G.payload,callback:G.callback,next:null});e:{var pt=o,gt=G;switch(Re=a,ot=c,gt.tag){case 1:if(pt=gt.payload,typeof pt=="function"){ze=pt.call(ot,ze,Re);break e}ze=pt;break e;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=gt.payload,Re=typeof pt=="function"?pt.call(ot,ze,Re):pt,Re==null)break e;ze=W({},ze,Re);break e;case 2:oi=!0}}G.callback!==null&&G.lane!==0&&(o.flags|=64,Re=y.effects,Re===null?y.effects=[G]:Re.push(G))}else ot={eventTime:ot,lane:Re,tag:G.tag,payload:G.payload,callback:G.callback,next:null},Te===null?(ve=Te=ot,Q=ze):Te=Te.next=ot,N|=Re;if(G=G.next,G===null){if(G=y.shared.pending,G===null)break;Re=G,G=Re.next,Re.next=null,y.lastBaseUpdate=Re,y.shared.pending=null}}while(!0);if(Te===null&&(Q=ze),y.baseState=Q,y.firstBaseUpdate=ve,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,o.lanes=N,o.memoizedState=ze}}function Rg(o,a,c){if(o=a.effects,a.effects=null,o!==null)for(a=0;a<o.length;a++){var p=o[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={},Co=ti(vl),gl=ti(vl),hl=ti(vl);function Ii(o){if(o===vl)throw Error(n(174));return o}function jd(o,a){switch(wn(hl,a),wn(gl,o),wn(Co,vl),o=a.nodeType,o){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:bt(null,"");break;default:o=o===8?a.parentNode:a,a=o.namespaceURI||null,o=o.tagName,a=bt(a,o)}On(Co),wn(Co,a)}function ba(){On(Co),On(gl),On(hl)}function Ig(o){Ii(hl.current);var a=Ii(Co.current),c=bt(a,o.type);a!==c&&(wn(gl,o),wn(Co,c))}function kd(o){gl.current===o&&(On(Co),On(gl))}var Mn=ti(0);function Gs(o){for(var a=o;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===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ld=[];function Ad(){for(var o=0;o<Ld.length;o++)Ld[o]._workInProgressVersionPrimary=null;Ld.length=0}var Ks=P.ReactCurrentDispatcher,Dd=P.ReactCurrentBatchConfig,Pi=0,_n=null,Un=null,Yn=null,qs=!1,yl=!1,bl=0,Ow=0;function mr(){throw Error(n(321))}function Bd(o,a){if(a===null)return!1;for(var c=0;c<a.length&&c<o.length;c++)if(!ao(o[c],a[c]))return!1;return!0}function Fd(o,a,c,p,y,w){if(Pi=w,_n=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Ks.current=o===null||o.memoizedState===null?Tw:Mw,o=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,Ks.current=_w,o=c(p,y)}while(yl)}if(Ks.current=Ys,a=Un!==null&&Un.next!==null,Pi=0,Yn=Un=_n=null,qs=!1,a)throw Error(n(300));return o}function Hd(){var o=bl!==0;return bl=0,o}function wo(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?_n.memoizedState=Yn=o:Yn=Yn.next=o,Yn}function Xr(){if(Un===null){var o=_n.alternate;o=o!==null?o.memoizedState:null}else o=Un.next;var a=Yn===null?_n.memoizedState:Yn.next;if(a!==null)Yn=a,Un=o;else{if(o===null)throw Error(n(310));Un=o,o={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},Yn===null?_n.memoizedState=Yn=o:Yn=Yn.next=o}return Yn}function Sl(o,a){return typeof a=="function"?a(o):a}function Vd(o){var a=Xr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;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,ve=w;do{var Te=ve.lane;if((Pi&Te)===Te)Q!==null&&(Q=Q.next={lane:0,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null}),p=ve.hasEagerState?ve.eagerState:o(p,ve.action);else{var ze={lane:Te,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null};Q===null?(G=Q=ze,N=p):Q=Q.next=ze,_n.lanes|=Te,Ti|=Te}ve=ve.next}while(ve!==null&&ve!==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(o=c.interleaved,o!==null){y=o;do w=y.lane,_n.lanes|=w,Ti|=w,y=y.next;while(y!==o)}else y===null&&(c.lanes=0);return[a.memoizedState,c.dispatch]}function Wd(o){var a=Xr(),c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;var p=c.dispatch,y=c.pending,w=a.memoizedState;if(y!==null){c.pending=null;var N=y=y.next;do w=o(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 Pg(){}function Tg(o,a){var c=_n,p=Xr(),y=a(),w=!ao(p.memoizedState,y);if(w&&(p.memoizedState=y,Ir=!0),p=p.queue,Ud(Ng.bind(null,c,p,o),[o]),p.getSnapshot!==a||w||Yn!==null&&Yn.memoizedState.tag&1){if(c.flags|=2048,xl(9,_g.bind(null,c,p,y,a),void 0,null),Zn===null)throw Error(n(349));(Pi&30)!==0||Mg(c,a,y)}return y}function Mg(o,a,c){o.flags|=16384,o={getSnapshot:a,value:c},a=_n.updateQueue,a===null?(a={lastEffect:null,stores:null},_n.updateQueue=a,a.stores=[o]):(c=a.stores,c===null?a.stores=[o]:c.push(o))}function _g(o,a,c,p){a.value=c,a.getSnapshot=p,zg(a)&&jg(o)}function Ng(o,a,c){return c(function(){zg(a)&&jg(o)})}function zg(o){var a=o.getSnapshot;o=o.value;try{var c=a();return!ao(o,c)}catch{return!0}}function jg(o){var a=ko(o,1);a!==null&&fo(a,o,1,-1)}function kg(o){var a=wo();return typeof o=="function"&&(o=o()),a.memoizedState=a.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:o},a.queue=o,o=o.dispatch=Pw.bind(null,_n,o),[a.memoizedState,o]}function xl(o,a,c,p){return o={tag:o,create:a,destroy:c,deps:p,next:null},a=_n.updateQueue,a===null?(a={lastEffect:null,stores:null},_n.updateQueue=a,a.lastEffect=o.next=o):(c=a.lastEffect,c===null?a.lastEffect=o.next=o:(p=c.next,c.next=o,o.next=p,a.lastEffect=o)),o}function Lg(){return Xr().memoizedState}function Xs(o,a,c,p){var y=wo();_n.flags|=o,y.memoizedState=xl(1|a,c,void 0,p===void 0?null:p)}function Qs(o,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&&Bd(p,N.deps)){y.memoizedState=xl(a,c,w,p);return}}_n.flags|=o,y.memoizedState=xl(1|a,c,w,p)}function Ag(o,a){return Xs(8390656,8,o,a)}function Ud(o,a){return Qs(2048,8,o,a)}function Dg(o,a){return Qs(4,2,o,a)}function Bg(o,a){return Qs(4,4,o,a)}function Fg(o,a){if(typeof a=="function")return o=o(),a(o),function(){a(null)};if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function Hg(o,a,c){return c=c!=null?c.concat([o]):null,Qs(4,4,Fg.bind(null,a,o),c)}function Gd(){}function Vg(o,a){var c=Xr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Bd(a,p[1])?p[0]:(c.memoizedState=[o,a],o)}function Wg(o,a){var c=Xr();a=a===void 0?null:a;var p=c.memoizedState;return p!==null&&a!==null&&Bd(a,p[1])?p[0]:(o=o(),c.memoizedState=[o,a],o)}function Ug(o,a,c){return(Pi&21)===0?(o.baseState&&(o.baseState=!1,Ir=!0),o.memoizedState=c):(ao(c,a)||(c=Qt(),_n.lanes|=c,Ti|=c,o.baseState=!0),a)}function Rw(o,a){var c=zt;zt=c!==0&&4>c?c:4,o(!0);var p=Dd.transition;Dd.transition={};try{o(!1),a()}finally{zt=c,Dd.transition=p}}function Gg(){return Xr().memoizedState}function Iw(o,a,c){var p=ci(o);if(c={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null},Kg(o))qg(a,c);else if(c=$g(o,a,c,p),c!==null){var y=xr();fo(c,o,p,y),Xg(c,a,p)}}function Pw(o,a,c){var p=ci(o),y={lane:p,action:c,hasEagerState:!1,eagerState:null,next:null};if(Kg(o))qg(a,y);else{var w=o.alternate;if(o.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,Nd(a)):(y.next=Q.next,Q.next=y),a.interleaved=y;return}}catch{}finally{}c=$g(o,a,y,p),c!==null&&(y=xr(),fo(c,o,p,y),Xg(c,a,p))}}function Kg(o){var a=o.alternate;return o===_n||a!==null&&a===_n}function qg(o,a){yl=qs=!0;var c=o.pending;c===null?a.next=a:(a.next=c.next,c.next=a),o.pending=a}function Xg(o,a,c){if((c&4194240)!==0){var p=a.lanes;p&=o.pendingLanes,c|=p,a.lanes=c,jn(o,c)}}var Ys={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},Tw={readContext:qr,useCallback:function(o,a){return wo().memoizedState=[o,a===void 0?null:a],o},useContext:qr,useEffect:Ag,useImperativeHandle:function(o,a,c){return c=c!=null?c.concat([o]):null,Xs(4194308,4,Fg.bind(null,a,o),c)},useLayoutEffect:function(o,a){return Xs(4194308,4,o,a)},useInsertionEffect:function(o,a){return Xs(4,2,o,a)},useMemo:function(o,a){var c=wo();return a=a===void 0?null:a,o=o(),c.memoizedState=[o,a],o},useReducer:function(o,a,c){var p=wo();return a=c!==void 0?c(a):a,p.memoizedState=p.baseState=a,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:a},p.queue=o,o=o.dispatch=Iw.bind(null,_n,o),[p.memoizedState,o]},useRef:function(o){var a=wo();return o={current:o},a.memoizedState=o},useState:kg,useDebugValue:Gd,useDeferredValue:function(o){return wo().memoizedState=o},useTransition:function(){var o=kg(!1),a=o[0];return o=Rw.bind(null,o[1]),wo().memoizedState=o,[a,o]},useMutableSource:function(){},useSyncExternalStore:function(o,a,c){var p=_n,y=wo();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||Mg(p,a,c)}y.memoizedState=c;var w={value:c,getSnapshot:a};return y.queue=w,Ag(Ng.bind(null,p,w,o),[o]),p.flags|=2048,xl(9,_g.bind(null,p,w,c,a),void 0,null),c},useId:function(){var o=wo(),a=Zn.identifierPrefix;if(Pn){var c=jo,p=zo;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=Ow++,a=":"+a+"r"+c.toString(32)+":";return o.memoizedState=a},unstable_isNewReconciler:!1},Mw={readContext:qr,useCallback:Vg,useContext:qr,useEffect:Ud,useImperativeHandle:Hg,useInsertionEffect:Dg,useLayoutEffect:Bg,useMemo:Wg,useReducer:Vd,useRef:Lg,useState:function(){return Vd(Sl)},useDebugValue:Gd,useDeferredValue:function(o){var a=Xr();return Ug(a,Un.memoizedState,o)},useTransition:function(){var o=Vd(Sl)[0],a=Xr().memoizedState;return[o,a]},useMutableSource:Pg,useSyncExternalStore:Tg,useId:Gg,unstable_isNewReconciler:!1},_w={readContext:qr,useCallback:Vg,useContext:qr,useEffect:Ud,useImperativeHandle:Hg,useInsertionEffect:Dg,useLayoutEffect:Bg,useMemo:Wg,useReducer:Wd,useRef:Lg,useState:function(){return Wd(Sl)},useDebugValue:Gd,useDeferredValue:function(o){var a=Xr();return Un===null?a.memoizedState=o:Ug(a,Un.memoizedState,o)},useTransition:function(){var o=Wd(Sl)[0],a=Xr().memoizedState;return[o,a]},useMutableSource:Pg,useSyncExternalStore:Tg,useId:Gg,unstable_isNewReconciler:!1};function so(o,a){if(o&&o.defaultProps){a=W({},a),o=o.defaultProps;for(var c in o)a[c]===void 0&&(a[c]=o[c]);return a}return a}function Kd(o,a,c,p){a=o.memoizedState,c=c(p,a),c=c==null?a:W({},a,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var Zs={isMounted:function(o){return(o=o._reactInternals)?It(o)===o:!1},enqueueSetState:function(o,a,c){o=o._reactInternals;var p=xr(),y=ci(o),w=Lo(p,y);w.payload=a,c!=null&&(w.callback=c),a=ii(o,w,y),a!==null&&(fo(a,o,y,p),Ws(a,o,y))},enqueueReplaceState:function(o,a,c){o=o._reactInternals;var p=xr(),y=ci(o),w=Lo(p,y);w.tag=1,w.payload=a,c!=null&&(w.callback=c),a=ii(o,w,y),a!==null&&(fo(a,o,y,p),Ws(a,o,y))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var c=xr(),p=ci(o),y=Lo(c,p);y.tag=2,a!=null&&(y.callback=a),a=ii(o,y,p),a!==null&&(fo(a,o,p,c),Ws(a,o,p))}};function Qg(o,a,c,p,y,w,N){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,w,N):a.prototype&&a.prototype.isPureReactComponent?!ll(c,p)||!ll(y,w):!0}function Yg(o,a,c){var p=!1,y=ni,w=a.contextType;return typeof w=="object"&&w!==null?w=qr(w):(y=Rr(a)?$i:fr.current,p=a.contextTypes,w=(p=p!=null)?fa(o,y):ni),a=new a(c,w),o.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Zs,o.stateNode=a,a._reactInternals=o,p&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=y,o.__reactInternalMemoizedMaskedChildContext=w),a}function Zg(o,a,c,p){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,p),a.state!==o&&Zs.enqueueReplaceState(a,a.state,null)}function qd(o,a,c,p){var y=o.stateNode;y.props=c,y.state=o.memoizedState,y.refs={},zd(o);var w=a.contextType;typeof w=="object"&&w!==null?y.context=qr(w):(w=Rr(a)?$i:fr.current,y.context=fa(o,w)),y.state=o.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Kd(o,a,w,c),y.state=o.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&&Zs.enqueueReplaceState(y,y.state,null),Us(o,c,y,p),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308)}function Sa(o,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:o,source:a,stack:y,digest:null}}function Xd(o,a,c){return{value:o,source:null,stack:c??null,digest:a??null}}function Qd(o,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var Nw=typeof WeakMap=="function"?WeakMap:Map;function Jg(o,a,c){c=Lo(-1,c),c.tag=3,c.payload={element:null};var p=a.value;return c.callback=function(){ic||(ic=!0,ff=p),Qd(o,a)},c}function eh(o,a,c){c=Lo(-1,c),c.tag=3;var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;c.payload=function(){return p(y)},c.callback=function(){Qd(o,a)}}var w=o.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(c.callback=function(){Qd(o,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 th(o,a,c){var p=o.pingCache;if(p===null){p=o.pingCache=new Nw;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),o=Kw.bind(null,o,a,c),a.then(o,o))}function nh(o){do{var a;if((a=o.tag===13)&&(a=o.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return o;o=o.return}while(o!==null);return null}function rh(o,a,c,p,y){return(o.mode&1)===0?(o===a?o.flags|=65536:(o.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=Lo(-1,1),a.tag=2,ii(c,a,1))),c.lanes|=1),o):(o.flags|=65536,o.lanes=y,o)}var zw=P.ReactCurrentOwner,Ir=!1;function Sr(o,a,c,p){a.child=o===null?wg(a,null,c,p):ga(a,o.child,c,p)}function oh(o,a,c,p,y){c=c.render;var w=a.ref;return ya(a,y),p=Fd(o,a,c,p,w,y),c=Hd(),o!==null&&!Ir?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~y,Ao(o,a,y)):(Pn&&c&&$d(a),a.flags|=1,Sr(o,a,p,y),a.child)}function ih(o,a,c,p,y){if(o===null){var w=c.type;return typeof w=="function"&&!bf(w)&&w.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=w,ah(o,a,w,p,y)):(o=dc(c.type,null,p,a,a.mode,y),o.ref=a.ref,o.return=a,a.child=o)}if(w=o.child,(o.lanes&y)===0){var N=w.memoizedProps;if(c=c.compare,c=c!==null?c:ll,c(N,p)&&o.ref===a.ref)return Ao(o,a,y)}return a.flags|=1,o=di(w,p),o.ref=a.ref,o.return=a,a.child=o}function ah(o,a,c,p,y){if(o!==null){var w=o.memoizedProps;if(ll(w,p)&&o.ref===a.ref)if(Ir=!1,a.pendingProps=p=w,(o.lanes&y)!==0)(o.flags&131072)!==0&&(Ir=!0);else return a.lanes=o.lanes,Ao(o,a,y)}return Yd(o,a,c,p,y)}function lh(o,a,c){var p=a.pendingProps,y=p.children,w=o!==null?o.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},wn(Ca,Lr),Lr|=c;else{if((c&1073741824)===0)return o=w!==null?w.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:o,cachePool:null,transitions:null},a.updateQueue=null,wn(Ca,Lr),Lr|=o,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=w!==null?w.baseLanes:c,wn(Ca,Lr),Lr|=p}else w!==null?(p=w.baseLanes|c,a.memoizedState=null):p=c,wn(Ca,Lr),Lr|=p;return Sr(o,a,y,c),a.child}function sh(o,a){var c=a.ref;(o===null&&c!==null||o!==null&&o.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Yd(o,a,c,p,y){var w=Rr(c)?$i:fr.current;return w=fa(a,w),ya(a,y),c=Fd(o,a,c,p,w,y),p=Hd(),o!==null&&!Ir?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~y,Ao(o,a,y)):(Pn&&p&&$d(a),a.flags|=1,Sr(o,a,c,y),a.child)}function ch(o,a,c,p,y){if(Rr(c)){var w=!0;ks(a)}else w=!1;if(ya(a,y),a.stateNode===null)ec(o,a),Yg(a,c,p),qd(a,c,p,y),p=!0;else if(o===null){var N=a.stateNode,G=a.memoizedProps;N.props=G;var Q=N.context,ve=c.contextType;typeof ve=="object"&&ve!==null?ve=qr(ve):(ve=Rr(c)?$i:fr.current,ve=fa(a,ve));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!==ve)&&Zg(a,N,p,ve),oi=!1;var Re=a.memoizedState;N.state=Re,Us(a,p,N,y),Q=a.memoizedState,G!==p||Re!==Q||Or.current||oi?(typeof Te=="function"&&(Kd(a,c,Te,p),Q=a.memoizedState),(G=oi||Qg(a,c,G,p,Re,Q,ve))?(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=ve,p=G):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{N=a.stateNode,Eg(o,a),G=a.memoizedProps,ve=a.type===a.elementType?G:so(a.type,G),N.props=ve,ze=a.pendingProps,Re=N.context,Q=c.contextType,typeof Q=="object"&&Q!==null?Q=qr(Q):(Q=Rr(c)?$i:fr.current,Q=fa(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||Re!==Q)&&Zg(a,N,p,Q),oi=!1,Re=a.memoizedState,N.state=Re,Us(a,p,N,y);var pt=a.memoizedState;G!==ze||Re!==pt||Or.current||oi?(typeof ot=="function"&&(Kd(a,c,ot,p),pt=a.memoizedState),(ve=oi||Qg(a,c,ve,p,Re,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===o.memoizedProps&&Re===o.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||G===o.memoizedProps&&Re===o.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=pt),N.props=p,N.state=pt,N.context=Q,p=ve):(typeof N.componentDidUpdate!="function"||G===o.memoizedProps&&Re===o.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||G===o.memoizedProps&&Re===o.memoizedState||(a.flags|=1024),p=!1)}return Zd(o,a,c,p,w,y)}function Zd(o,a,c,p,y,w){sh(o,a);var N=(a.flags&128)!==0;if(!p&&!N)return y&&pg(a,c,!1),Ao(o,a,w);p=a.stateNode,zw.current=a;var G=N&&typeof c.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,o!==null&&N?(a.child=ga(a,o.child,null,w),a.child=ga(a,null,G,w)):Sr(o,a,G,w),a.memoizedState=p.state,y&&pg(a,c,!0),a.child}function uh(o){var a=o.stateNode;a.pendingContext?fg(o,a.pendingContext,a.pendingContext!==a.context):a.context&&fg(o,a.context,!1),jd(o,a.containerInfo)}function dh(o,a,c,p,y){return va(),Id(y),a.flags|=256,Sr(o,a,c,p),a.child}var Jd={dehydrated:null,treeContext:null,retryLane:0};function ef(o){return{baseLanes:o,cachePool:null,transitions:null}}function fh(o,a,c){var p=a.pendingProps,y=Mn.current,w=!1,N=(a.flags&128)!==0,G;if((G=N)||(G=o!==null&&o.memoizedState===null?!1:(y&2)!==0),G?(w=!0,a.flags&=-129):(o===null||o.memoizedState!==null)&&(y|=1),wn(Mn,y&1),o===null)return Rd(a),o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((a.mode&1)===0?a.lanes=1:o.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(N=p.children,o=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=fc(N,p,0,null),o=zi(o,p,c,null),w.return=a,o.return=a,w.sibling=o,a.child=w,a.child.memoizedState=ef(c),a.memoizedState=Jd,o):tf(a,N));if(y=o.memoizedState,y!==null&&(G=y.dehydrated,G!==null))return jw(o,a,N,p,G,y,c);if(w){w=p.fallback,N=a.mode,y=o.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=o.child.memoizedState,N=N===null?ef(c):{baseLanes:N.baseLanes|c,cachePool:null,transitions:N.transitions},w.memoizedState=N,w.childLanes=o.childLanes&~c,a.memoizedState=Jd,p}return w=o.child,o=w.sibling,p=di(w,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=c),p.return=a,p.sibling=null,o!==null&&(c=a.deletions,c===null?(a.deletions=[o],a.flags|=16):c.push(o)),a.child=p,a.memoizedState=null,p}function tf(o,a){return a=fc({mode:"visible",children:a},o.mode,0,null),a.return=o,o.child=a}function Js(o,a,c,p){return p!==null&&Id(p),ga(a,o.child,null,c),o=tf(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function jw(o,a,c,p,y,w,N){if(c)return a.flags&256?(a.flags&=-257,p=Xd(Error(n(422))),Js(o,a,N,p)):a.memoizedState!==null?(a.child=o.child,a.flags|=128,null):(w=p.fallback,y=a.mode,p=fc({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&&ga(a,o.child,null,N),a.child.memoizedState=ef(N),a.memoizedState=Jd,w);if((a.mode&1)===0)return Js(o,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=Xd(w,p,void 0),Js(o,a,N,p)}if(G=(N&o.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,ko(o,y),fo(p,o,y,-1))}return yf(),p=Xd(Error(n(421))),Js(o,a,N,p)}return y.data==="$?"?(a.flags|=128,a.child=o.child,a=qw.bind(null,o),y._reactRetry=a,null):(o=w.treeContext,kr=ei(y.nextSibling),jr=a,Pn=!0,lo=null,o!==null&&(Gr[Kr++]=zo,Gr[Kr++]=jo,Gr[Kr++]=Ei,zo=o.id,jo=o.overflow,Ei=a),a=tf(a,p.children),a.flags|=4096,a)}function mh(o,a,c){o.lanes|=a;var p=o.alternate;p!==null&&(p.lanes|=a),_d(o.return,a,c)}function nf(o,a,c,p,y){var w=o.memoizedState;w===null?o.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 ph(o,a,c){var p=a.pendingProps,y=p.revealOrder,w=p.tail;if(Sr(o,a,p.children,c),p=Mn.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&mh(o,c,a);else if(o.tag===19)mh(o,c,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}p&=1}if(wn(Mn,p),(a.mode&1)===0)a.memoizedState=null;else switch(y){case"forwards":for(c=a.child,y=null;c!==null;)o=c.alternate,o!==null&&Gs(o)===null&&(y=c),c=c.sibling;c=y,c===null?(y=a.child,a.child=null):(y=c.sibling,c.sibling=null),nf(a,!1,y,c,w);break;case"backwards":for(c=null,y=a.child,a.child=null;y!==null;){if(o=y.alternate,o!==null&&Gs(o)===null){a.child=y;break}o=y.sibling,y.sibling=c,c=y,y=o}nf(a,!0,c,null,w);break;case"together":nf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ec(o,a){(a.mode&1)===0&&o!==null&&(o.alternate=null,a.alternate=null,a.flags|=2)}function Ao(o,a,c){if(o!==null&&(a.dependencies=o.dependencies),Ti|=a.lanes,(c&a.childLanes)===0)return null;if(o!==null&&a.child!==o.child)throw Error(n(153));if(a.child!==null){for(o=a.child,c=di(o,o.pendingProps),a.child=c,c.return=a;o.sibling!==null;)o=o.sibling,c=c.sibling=di(o,o.pendingProps),c.return=a;c.sibling=null}return a.child}function kw(o,a,c){switch(a.tag){case 3:uh(a),va();break;case 5:Ig(a);break;case 1:Rr(a.type)&&ks(a);break;case 4:jd(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,y=a.memoizedProps.value;wn(Hs,p._currentValue),p._currentValue=y;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(wn(Mn,Mn.current&1),a.flags|=128,null):(c&a.child.childLanes)!==0?fh(o,a,c):(wn(Mn,Mn.current&1),o=Ao(o,a,c),o!==null?o.sibling:null);wn(Mn,Mn.current&1);break;case 19:if(p=(c&a.childLanes)!==0,(o.flags&128)!==0){if(p)return ph(o,a,c);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),wn(Mn,Mn.current),p)break;return null;case 22:case 23:return a.lanes=0,lh(o,a,c)}return Ao(o,a,c)}var vh,rf,gh,hh;vh=function(o,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)o.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}},rf=function(){},gh=function(o,a,c,p){var y=o.memoizedProps;if(y!==p){o=a.stateNode,Ii(Co.current);var w=null;switch(c){case"input":y=ge(o,y),p=ge(o,p),w=[];break;case"select":y=W({},y,{value:void 0}),p=W({},p,{value:void 0}),w=[];break;case"textarea":y=Ie(o,y),p=Ie(o,p),w=[];break;default:typeof y.onClick!="function"&&typeof p.onClick=="function"&&(o.onclick=Ns)}Pe(c,p);var N;c=null;for(ve in y)if(!p.hasOwnProperty(ve)&&y.hasOwnProperty(ve)&&y[ve]!=null)if(ve==="style"){var G=y[ve];for(N in G)G.hasOwnProperty(N)&&(c||(c={}),c[N]="")}else ve!=="dangerouslySetInnerHTML"&&ve!=="children"&&ve!=="suppressContentEditableWarning"&&ve!=="suppressHydrationWarning"&&ve!=="autoFocus"&&(i.hasOwnProperty(ve)?w||(w=[]):(w=w||[]).push(ve,null));for(ve in p){var Q=p[ve];if(G=y!=null?y[ve]:void 0,p.hasOwnProperty(ve)&&Q!==G&&(Q!=null||G!=null))if(ve==="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(ve,c)),c=Q;else ve==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,G=G?G.__html:void 0,Q!=null&&G!==Q&&(w=w||[]).push(ve,Q)):ve==="children"?typeof Q!="string"&&typeof Q!="number"||(w=w||[]).push(ve,""+Q):ve!=="suppressContentEditableWarning"&&ve!=="suppressHydrationWarning"&&(i.hasOwnProperty(ve)?(Q!=null&&ve==="onScroll"&&En("scroll",o),w||G===Q||(w=[])):(w=w||[]).push(ve,Q))}c&&(w=w||[]).push("style",c);var ve=w;(a.updateQueue=ve)&&(a.flags|=4)}},hh=function(o,a,c,p){c!==p&&(a.flags|=4)};function Cl(o,a){if(!Pn)switch(o.tailMode){case"hidden":a=o.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function pr(o){var a=o.alternate!==null&&o.alternate.child===o.child,c=0,p=0;if(a)for(var y=o.child;y!==null;)c|=y.lanes|y.childLanes,p|=y.subtreeFlags&14680064,p|=y.flags&14680064,y.return=o,y=y.sibling;else for(y=o.child;y!==null;)c|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=o,y=y.sibling;return o.subtreeFlags|=p,o.childLanes=c,a}function Lw(o,a,c){var p=a.pendingProps;switch(Ed(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 Rr(a.type)&&js(),pr(a),null;case 3:return p=a.stateNode,ba(),On(Or),On(fr),Ad(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(o===null||o.child===null)&&(Bs(a)?a.flags|=4:o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,lo!==null&&(vf(lo),lo=null))),rf(o,a),pr(a),null;case 5:kd(a);var y=Ii(hl.current);if(c=a.type,o!==null&&a.stateNode!=null)gh(o,a,c,p,y),o.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(o=Ii(Co.current),Bs(a)){p=a.stateNode,c=a.type;var w=a.memoizedProps;switch(p[xo]=a,p[fl]=w,o=(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":pe(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&&_s(p.textContent,G,o),y=["children",G]):typeof G=="number"&&p.textContent!==""+G&&(w.suppressHydrationWarning!==!0&&_s(p.textContent,G,o),y=["children",""+G]):i.hasOwnProperty(N)&&G!=null&&N==="onScroll"&&En("scroll",p)}switch(c){case"input":de(p),we(p,w,!0);break;case"textarea":de(p),tt(p);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(p.onclick=Ns)}p=y,a.updateQueue=p,p!==null&&(a.flags|=4)}else{N=y.nodeType===9?y:y.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=lt(c)),o==="http://www.w3.org/1999/xhtml"?c==="script"?(o=N.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof p.is=="string"?o=N.createElement(c,{is:p.is}):(o=N.createElement(c),c==="select"&&(N=o,p.multiple?N.multiple=!0:p.size&&(N.size=p.size))):o=N.createElementNS(o,c),o[xo]=a,o[fl]=p,vh(o,a,!1,!1),a.stateNode=o;e:{switch(N=Fe(c,p),c){case"dialog":En("cancel",o),En("close",o),y=p;break;case"iframe":case"object":case"embed":En("load",o),y=p;break;case"video":case"audio":for(y=0;y<cl.length;y++)En(cl[y],o);y=p;break;case"source":En("error",o),y=p;break;case"img":case"image":case"link":En("error",o),En("load",o),y=p;break;case"details":En("toggle",o),y=p;break;case"input":pe(o,p),y=ge(o,p),En("invalid",o);break;case"option":y=p;break;case"select":o._wrapperState={wasMultiple:!!p.multiple},y=W({},p,{value:void 0}),En("invalid",o);break;case"textarea":Le(o,p),y=Ie(o,p),En("invalid",o);break;default:y=p}Pe(c,y),G=y;for(w in G)if(G.hasOwnProperty(w)){var Q=G[w];w==="style"?Me(o,Q):w==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ue(o,Q)):w==="children"?typeof Q=="string"?(c!=="textarea"||Q!=="")&&it(o,Q):typeof Q=="number"&&it(o,""+Q):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(i.hasOwnProperty(w)?Q!=null&&w==="onScroll"&&En("scroll",o):Q!=null&&O(o,w,Q,N))}switch(c){case"input":de(o),we(o,p,!1);break;case"textarea":de(o),tt(o);break;case"option":p.value!=null&&o.setAttribute("value",""+me(p.value));break;case"select":o.multiple=!!p.multiple,w=p.value,w!=null?je(o,!!p.multiple,w,!1):p.defaultValue!=null&&je(o,!!p.multiple,p.defaultValue,!0);break;default:typeof y.onClick=="function"&&(o.onclick=Ns)}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(o&&a.stateNode!=null)hh(o,a,o.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(c=Ii(hl.current),Ii(Co.current),Bs(a)){if(p=a.stateNode,c=a.memoizedProps,p[xo]=a,(w=p.nodeValue!==c)&&(o=jr,o!==null))switch(o.tag){case 3:_s(p.nodeValue,c,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&_s(p.nodeValue,c,(o.mode&1)!==0)}w&&(a.flags|=4)}else p=(c.nodeType===9?c:c.ownerDocument).createTextNode(p),p[xo]=a,a.stateNode=p}return pr(a),null;case 13:if(On(Mn),p=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Pn&&kr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Sg(),va(),a.flags|=98560,w=!1;else if(w=Bs(a),p!==null&&p.dehydrated!==null){if(o===null){if(!w)throw Error(n(318));if(w=a.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[xo]=a}else va(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pr(a),w=!1}else lo!==null&&(vf(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!==(o!==null&&o.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(o===null||(Mn.current&1)!==0?Gn===0&&(Gn=3):yf())),a.updateQueue!==null&&(a.flags|=4),pr(a),null);case 4:return ba(),rf(o,a),o===null&&ul(a.stateNode.containerInfo),pr(a),null;case 10:return Md(a.type._context),pr(a),null;case 17:return Rr(a.type)&&js(),pr(a),null;case 19:if(On(Mn),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||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(N=Gs(o),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,o=p,w.flags&=14680066,N=w.alternate,N===null?(w.childLanes=0,w.lanes=o,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,o=N.dependencies,w.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),c=c.sibling;return wn(Mn,Mn.current&1|2),a.child}o=o.sibling}w.tail!==null&&ct()>wa&&(a.flags|=128,p=!0,Cl(w,!1),a.lanes=4194304)}else{if(!p)if(o=Gs(N),o!==null){if(a.flags|=128,p=!0,c=o.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>wa&&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=Mn.current,wn(Mn,p?c&1|2:c&1),a):(pr(a),null);case 22:case 23:return hf(),p=a.memoizedState!==null,o!==null&&o.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 Aw(o,a){switch(Ed(a),a.tag){case 1:return Rr(a.type)&&js(),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return ba(),On(Or),On(fr),Ad(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 5:return kd(a),null;case 13:if(On(Mn),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(n(340));va()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return On(Mn),null;case 4:return ba(),null;case 10:return Md(a.type._context),null;case 22:case 23:return hf(),null;case 24:return null;default:return null}}var tc=!1,vr=!1,Dw=typeof WeakSet=="function"?WeakSet:Set,ft=null;function xa(o,a){var c=o.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(p){Nn(o,a,p)}else c.current=null}function of(o,a,c){try{c()}catch(p){Nn(o,a,p)}}var yh=!1;function Bw(o,a){if(gd=xs,o=Qv(),sd(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.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,ve=0,Te=0,ze=o,Re=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;)Re=ze,ze=ot;for(;;){if(ze===o)break t;if(Re===c&&++ve===y&&(G=N),Re===w&&++Te===p&&(Q=N),(ot=ze.nextSibling)!==null)break;ze=Re,Re=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(hd={focusedElem:o,selectionRange:c},xs=!1,ft=a;ft!==null;)if(a=ft,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ft=o;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,ae=a.stateNode,te=ae.getSnapshotBeforeUpdate(a.elementType===a.type?gt:so(a.type,gt),kn);ae.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var ue=a.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(De){Nn(a,a.return,De)}if(o=a.sibling,o!==null){o.return=a.return,ft=o;break}ft=a.return}return pt=yh,yh=!1,pt}function wl(o,a,c){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var y=p=p.next;do{if((y.tag&o)===o){var w=y.destroy;y.destroy=void 0,w!==void 0&&of(a,c,w)}y=y.next}while(y!==p)}}function nc(o,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&o)===o){var p=c.create;c.destroy=p()}c=c.next}while(c!==a)}}function af(o){var a=o.ref;if(a!==null){var c=o.stateNode;switch(o.tag){case 5:o=c;break;default:o=c}typeof a=="function"?a(o):a.current=o}}function bh(o){var a=o.alternate;a!==null&&(o.alternate=null,bh(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&(delete a[xo],delete a[fl],delete a[xd],delete a[Cw],delete a[ww])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Sh(o){return o.tag===5||o.tag===3||o.tag===4}function xh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Sh(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function lf(o,a,c){var p=o.tag;if(p===5||p===6)o=o.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(o,a):c.insertBefore(o,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(o,c)):(a=c,a.appendChild(o)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Ns));else if(p!==4&&(o=o.child,o!==null))for(lf(o,a,c),o=o.sibling;o!==null;)lf(o,a,c),o=o.sibling}function sf(o,a,c){var p=o.tag;if(p===5||p===6)o=o.stateNode,a?c.insertBefore(o,a):c.appendChild(o);else if(p!==4&&(o=o.child,o!==null))for(sf(o,a,c),o=o.sibling;o!==null;)sf(o,a,c),o=o.sibling}var or=null,co=!1;function ai(o,a,c){for(c=c.child;c!==null;)Ch(o,a,c),c=c.sibling}function Ch(o,a,c){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount($t,c)}catch{}switch(c.tag){case 5:vr||xa(c,a);case 6:var p=or,y=co;or=null,ai(o,a,c),or=p,co=y,or!==null&&(co?(o=or,c=c.stateNode,o.nodeType===8?o.parentNode.removeChild(c):o.removeChild(c)):or.removeChild(c.stateNode));break;case 18:or!==null&&(co?(o=or,c=c.stateNode,o.nodeType===8?Sd(o.parentNode,c):o.nodeType===1&&Sd(o,c),Yo(o)):Sd(or,c.stateNode));break;case 4:p=or,y=co,or=c.stateNode.containerInfo,co=!0,ai(o,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)&&of(c,a,N),y=y.next}while(y!==p)}ai(o,a,c);break;case 1:if(!vr&&(xa(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(o,a,c);break;case 21:ai(o,a,c);break;case 22:c.mode&1?(vr=(p=vr)||c.memoizedState!==null,ai(o,a,c),vr=p):ai(o,a,c);break;default:ai(o,a,c)}}function wh(o){var a=o.updateQueue;if(a!==null){o.updateQueue=null;var c=o.stateNode;c===null&&(c=o.stateNode=new Dw),a.forEach(function(p){var y=Xw.bind(null,o,p);c.has(p)||(c.add(p),p.then(y,y))})}}function uo(o,a){var c=a.deletions;if(c!==null)for(var p=0;p<c.length;p++){var y=c[p];try{var w=o,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));Ch(w,N,y),or=null,co=!1;var Q=y.alternate;Q!==null&&(Q.return=null),y.return=null}catch(ve){Nn(y,a,ve)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)$h(a,o),a=a.sibling}function $h(o,a){var c=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(uo(a,o),$o(o),p&4){try{wl(3,o,o.return),nc(3,o)}catch(gt){Nn(o,o.return,gt)}try{wl(5,o,o.return)}catch(gt){Nn(o,o.return,gt)}}break;case 1:uo(a,o),$o(o),p&512&&c!==null&&xa(c,c.return);break;case 5:if(uo(a,o),$o(o),p&512&&c!==null&&xa(c,c.return),o.flags&32){var y=o.stateNode;try{it(y,"")}catch(gt){Nn(o,o.return,gt)}}if(p&4&&(y=o.stateNode,y!=null)){var w=o.memoizedProps,N=c!==null?c.memoizedProps:w,G=o.type,Q=o.updateQueue;if(o.updateQueue=null,Q!==null)try{G==="input"&&w.type==="radio"&&w.name!=null&&oe(y,w),Fe(G,N);var ve=Fe(G,w);for(N=0;N<Q.length;N+=2){var Te=Q[N],ze=Q[N+1];Te==="style"?Me(y,ze):Te==="dangerouslySetInnerHTML"?Ue(y,ze):Te==="children"?it(y,ze):O(y,Te,ze,ve)}switch(G){case"input":be(y,w);break;case"textarea":Ee(y,w);break;case"select":var Re=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!w.multiple;var ot=w.value;ot!=null?je(y,!!w.multiple,ot,!1):Re!==!!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(o,o.return,gt)}}break;case 6:if(uo(a,o),$o(o),p&4){if(o.stateNode===null)throw Error(n(162));y=o.stateNode,w=o.memoizedProps;try{y.nodeValue=w}catch(gt){Nn(o,o.return,gt)}}break;case 3:if(uo(a,o),$o(o),p&4&&c!==null&&c.memoizedState.isDehydrated)try{Yo(a.containerInfo)}catch(gt){Nn(o,o.return,gt)}break;case 4:uo(a,o),$o(o);break;case 13:uo(a,o),$o(o),y=o.child,y.flags&8192&&(w=y.memoizedState!==null,y.stateNode.isHidden=w,!w||y.alternate!==null&&y.alternate.memoizedState!==null||(df=ct())),p&4&&wh(o);break;case 22:if(Te=c!==null&&c.memoizedState!==null,o.mode&1?(vr=(ve=vr)||Te,uo(a,o),vr=ve):uo(a,o),$o(o),p&8192){if(ve=o.memoizedState!==null,(o.stateNode.isHidden=ve)&&!Te&&(o.mode&1)!==0)for(ft=o,Te=o.child;Te!==null;){for(ze=ft=Te;ft!==null;){switch(Re=ft,ot=Re.child,Re.tag){case 0:case 11:case 14:case 15:wl(4,Re,Re.return);break;case 1:xa(Re,Re.return);var pt=Re.stateNode;if(typeof pt.componentWillUnmount=="function"){p=Re,c=Re.return;try{a=p,pt.props=a.memoizedProps,pt.state=a.memoizedState,pt.componentWillUnmount()}catch(gt){Nn(p,c,gt)}}break;case 5:xa(Re,Re.return);break;case 22:if(Re.memoizedState!==null){Rh(ze);continue}}ot!==null?(ot.return=Re,ft=ot):Rh(ze)}Te=Te.sibling}e:for(Te=null,ze=o;;){if(ze.tag===5){if(Te===null){Te=ze;try{y=ze.stateNode,ve?(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(o,o.return,gt)}}}else if(ze.tag===6){if(Te===null)try{ze.stateNode.nodeValue=ve?"":ze.memoizedProps}catch(gt){Nn(o,o.return,gt)}}else if((ze.tag!==22&&ze.tag!==23||ze.memoizedState===null||ze===o)&&ze.child!==null){ze.child.return=ze,ze=ze.child;continue}if(ze===o)break e;for(;ze.sibling===null;){if(ze.return===null||ze.return===o)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,o),$o(o),p&4&&wh(o);break;case 21:break;default:uo(a,o),$o(o)}}function $o(o){var a=o.flags;if(a&2){try{e:{for(var c=o.return;c!==null;){if(Sh(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=xh(o);sf(o,w,y);break;case 3:case 4:var N=p.stateNode.containerInfo,G=xh(o);lf(o,G,N);break;default:throw Error(n(161))}}catch(Q){Nn(o,o.return,Q)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function Fw(o,a,c){ft=o,Eh(o)}function Eh(o,a,c){for(var p=(o.mode&1)!==0;ft!==null;){var y=ft,w=y.child;if(y.tag===22&&p){var N=y.memoizedState!==null||tc;if(!N){var G=y.alternate,Q=G!==null&&G.memoizedState!==null||vr;G=tc;var ve=vr;if(tc=N,(vr=Q)&&!ve)for(ft=y;ft!==null;)N=ft,Q=N.child,N.tag===22&&N.memoizedState!==null?Ih(y):Q!==null?(Q.return=N,ft=Q):Ih(y);for(;w!==null;)ft=w,Eh(w),w=w.sibling;ft=y,tc=G,vr=ve}Oh(o)}else(y.subtreeFlags&8772)!==0&&w!==null?(w.return=y,ft=w):Oh(o)}}function Oh(o){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||nc(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&&Rg(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}Rg(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 ve=a.alternate;if(ve!==null){var Te=ve.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&&af(a)}catch(Re){Nn(a,a.return,Re)}}if(a===o){ft=null;break}if(c=a.sibling,c!==null){c.return=a.return,ft=c;break}ft=a.return}}function Rh(o){for(;ft!==null;){var a=ft;if(a===o){ft=null;break}var c=a.sibling;if(c!==null){c.return=a.return,ft=c;break}ft=a.return}}function Ih(o){for(;ft!==null;){var a=ft;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{nc(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{af(a)}catch(Q){Nn(a,w,Q)}break;case 5:var N=a.return;try{af(a)}catch(Q){Nn(a,N,Q)}}}catch(Q){Nn(a,a.return,Q)}if(a===o){ft=null;break}var G=a.sibling;if(G!==null){G.return=a.return,ft=G;break}ft=a.return}}var Hw=Math.ceil,rc=P.ReactCurrentDispatcher,cf=P.ReactCurrentOwner,Qr=P.ReactCurrentBatchConfig,en=0,Zn=null,An=null,ir=0,Lr=0,Ca=ti(0),Gn=0,$l=null,Ti=0,oc=0,uf=0,El=null,Pr=null,df=0,wa=1/0,Do=null,ic=!1,ff=null,li=null,ac=!1,si=null,lc=0,Ol=0,mf=null,sc=-1,cc=0;function xr(){return(en&6)!==0?ct():sc!==-1?sc:sc=ct()}function ci(o){return(o.mode&1)===0?1:(en&2)!==0&&ir!==0?ir&-ir:Ew.transition!==null?(cc===0&&(cc=Qt()),cc):(o=zt,o!==0||(o=window.event,o=o===void 0?16:Tv(o.type)),o)}function fo(o,a,c,p){if(50<Ol)throw Ol=0,mf=null,Error(n(185));ln(o,c,p),((en&2)===0||o!==Zn)&&(o===Zn&&((en&2)===0&&(oc|=c),Gn===4&&ui(o,ir)),Tr(o,p),c===1&&en===0&&(a.mode&1)===0&&(wa=ct()+500,Ls&&ri()))}function Tr(o,a){var c=o.callbackNode;Je(o,a);var p=Xt(o,o===Zn?ir:0);if(p===0)c!==null&&Ne(c),o.callbackNode=null,o.callbackPriority=0;else if(a=p&-p,o.callbackPriority!==a){if(c!=null&&Ne(c),a===1)o.tag===0?$w(Th.bind(null,o)):vg(Th.bind(null,o)),Sw(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=Ah(c,Ph.bind(null,o))}o.callbackPriority=a,o.callbackNode=c}}function Ph(o,a){if(sc=-1,cc=0,(en&6)!==0)throw Error(n(327));var c=o.callbackNode;if($a()&&o.callbackNode!==c)return null;var p=Xt(o,o===Zn?ir:0);if(p===0)return null;if((p&30)!==0||(p&o.expiredLanes)!==0||a)a=uc(o,p);else{a=p;var y=en;en|=2;var w=_h();(Zn!==o||ir!==a)&&(Do=null,wa=ct()+500,_i(o,a));do try{Uw();break}catch(G){Mh(o,G)}while(!0);Td(),rc.current=w,en=y,An!==null?a=0:(Zn=null,ir=0,a=Gn)}if(a!==0){if(a===2&&(y=Ut(o),y!==0&&(p=y,a=pf(o,y))),a===1)throw c=$l,_i(o,0),ui(o,p),Tr(o,ct()),c;if(a===6)ui(o,p);else{if(y=o.current.alternate,(p&30)===0&&!Vw(y)&&(a=uc(o,p),a===2&&(w=Ut(o),w!==0&&(p=w,a=pf(o,w))),a===1))throw c=$l,_i(o,0),ui(o,p),Tr(o,ct()),c;switch(o.finishedWork=y,o.finishedLanes=p,a){case 0:case 1:throw Error(n(345));case 2:Ni(o,Pr,Do);break;case 3:if(ui(o,p),(p&130023424)===p&&(a=df+500-ct(),10<a)){if(Xt(o,0)!==0)break;if(y=o.suspendedLanes,(y&p)!==p){xr(),o.pingedLanes|=o.suspendedLanes&y;break}o.timeoutHandle=bd(Ni.bind(null,o,Pr,Do),a);break}Ni(o,Pr,Do);break;case 4:if(ui(o,p),(p&4194240)===p)break;for(a=o.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*Hw(p/1960))-p,10<p){o.timeoutHandle=bd(Ni.bind(null,o,Pr,Do),p);break}Ni(o,Pr,Do);break;case 5:Ni(o,Pr,Do);break;default:throw Error(n(329))}}}return Tr(o,ct()),o.callbackNode===c?Ph.bind(null,o):null}function pf(o,a){var c=El;return o.current.memoizedState.isDehydrated&&(_i(o,a).flags|=256),o=uc(o,a),o!==2&&(a=Pr,Pr=c,a!==null&&vf(a)),o}function vf(o){Pr===null?Pr=o:Pr.push.apply(Pr,o)}function Vw(o){for(var a=o;;){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===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ui(o,a){for(a&=~uf,a&=~oc,o.suspendedLanes|=a,o.pingedLanes&=~a,o=o.expirationTimes;0<a;){var c=31-xn(a),p=1<<c;o[c]=-1,a&=~p}}function Th(o){if((en&6)!==0)throw Error(n(327));$a();var a=Xt(o,0);if((a&1)===0)return Tr(o,ct()),null;var c=uc(o,a);if(o.tag!==0&&c===2){var p=Ut(o);p!==0&&(a=p,c=pf(o,p))}if(c===1)throw c=$l,_i(o,0),ui(o,a),Tr(o,ct()),c;if(c===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=a,Ni(o,Pr,Do),Tr(o,ct()),null}function gf(o,a){var c=en;en|=1;try{return o(a)}finally{en=c,en===0&&(wa=ct()+500,Ls&&ri())}}function Mi(o){si!==null&&si.tag===0&&(en&6)===0&&$a();var a=en;en|=1;var c=Qr.transition,p=zt;try{if(Qr.transition=null,zt=1,o)return o()}finally{zt=p,Qr.transition=c,en=a,(en&6)===0&&ri()}}function hf(){Lr=Ca.current,On(Ca)}function _i(o,a){o.finishedWork=null,o.finishedLanes=0;var c=o.timeoutHandle;if(c!==-1&&(o.timeoutHandle=-1,bw(c)),An!==null)for(c=An.return;c!==null;){var p=c;switch(Ed(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&js();break;case 3:ba(),On(Or),On(fr),Ad();break;case 5:kd(p);break;case 4:ba();break;case 13:On(Mn);break;case 19:On(Mn);break;case 10:Md(p.type._context);break;case 22:case 23:hf()}c=c.return}if(Zn=o,An=o=di(o.current,null),ir=Lr=a,Gn=0,$l=null,uf=oc=Ti=0,Pr=El=null,Ri!==null){for(a=0;a<Ri.length;a++)if(c=Ri[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}Ri=null}return o}function Mh(o,a){do{var c=An;try{if(Td(),Ks.current=Ys,qs){for(var p=_n.memoizedState;p!==null;){var y=p.queue;y!==null&&(y.pending=null),p=p.next}qs=!1}if(Pi=0,Yn=Un=_n=null,yl=!1,bl=0,cf.current=null,c===null||c.return===null){Gn=1,$l=a,An=null;break}e:{var w=o,N=c.return,G=c,Q=a;if(a=ir,G.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ve=Q,Te=G,ze=Te.tag;if((Te.mode&1)===0&&(ze===0||ze===11||ze===15)){var Re=Te.alternate;Re?(Te.updateQueue=Re.updateQueue,Te.memoizedState=Re.memoizedState,Te.lanes=Re.lanes):(Te.updateQueue=null,Te.memoizedState=null)}var ot=nh(N);if(ot!==null){ot.flags&=-257,rh(ot,N,G,w,a),ot.mode&1&&th(w,ve,a),a=ot,Q=ve;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){th(w,ve,a),yf();break e}Q=Error(n(426))}}else if(Pn&&G.mode&1){var kn=nh(N);if(kn!==null){(kn.flags&65536)===0&&(kn.flags|=256),rh(kn,N,G,w,a),Id(Sa(Q,G));break e}}w=Q=Sa(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 ae=Jg(w,Q,a);Og(w,ae);break e;case 1:G=Q;var te=w.type,ue=w.stateNode;if((w.flags&128)===0&&(typeof te.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(li===null||!li.has(ue)))){w.flags|=65536,a&=-a,w.lanes|=a;var De=eh(w,G,a);Og(w,De);break e}}w=w.return}while(w!==null)}zh(c)}catch(ht){a=ht,An===c&&c!==null&&(An=c=c.return);continue}break}while(!0)}function _h(){var o=rc.current;return rc.current=Ys,o===null?Ys:o}function yf(){(Gn===0||Gn===3||Gn===2)&&(Gn=4),Zn===null||(Ti&268435455)===0&&(oc&268435455)===0||ui(Zn,ir)}function uc(o,a){var c=en;en|=2;var p=_h();(Zn!==o||ir!==a)&&(Do=null,_i(o,a));do try{Ww();break}catch(y){Mh(o,y)}while(!0);if(Td(),en=c,rc.current=p,An!==null)throw Error(n(261));return Zn=null,ir=0,Gn}function Ww(){for(;An!==null;)Nh(An)}function Uw(){for(;An!==null&&!We();)Nh(An)}function Nh(o){var a=Lh(o.alternate,o,Lr);o.memoizedProps=o.pendingProps,a===null?zh(o):An=a,cf.current=null}function zh(o){var a=o;do{var c=a.alternate;if(o=a.return,(a.flags&32768)===0){if(c=Lw(c,a,Lr),c!==null){An=c;return}}else{if(c=Aw(c,a),c!==null){c.flags&=32767,An=c;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Gn=6,An=null;return}}if(a=a.sibling,a!==null){An=a;return}An=a=o}while(a!==null);Gn===0&&(Gn=5)}function Ni(o,a,c){var p=zt,y=Qr.transition;try{Qr.transition=null,zt=1,Gw(o,a,c,p)}finally{Qr.transition=y,zt=p}return null}function Gw(o,a,c,p){do $a();while(si!==null);if((en&6)!==0)throw Error(n(327));c=o.finishedWork;var y=o.finishedLanes;if(c===null)return null;if(o.finishedWork=null,o.finishedLanes=0,c===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var w=c.lanes|c.childLanes;if(rr(o,w),o===Zn&&(An=Zn=null,ir=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||ac||(ac=!0,Ah(kt,function(){return $a(),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,cf.current=null,Bw(o,c),$h(c,o),fw(hd),xs=!!gd,hd=gd=null,o.current=c,Fw(c),Ct(),en=G,zt=N,Qr.transition=w}else o.current=c;if(ac&&(ac=!1,si=o,lc=y),w=o.pendingLanes,w===0&&(li=null),zn(c.stateNode),Tr(o,ct()),a!==null)for(p=o.onRecoverableError,c=0;c<a.length;c++)y=a[c],p(y.value,{componentStack:y.stack,digest:y.digest});if(ic)throw ic=!1,o=ff,ff=null,o;return(lc&1)!==0&&o.tag!==0&&$a(),w=o.pendingLanes,(w&1)!==0?o===mf?Ol++:(Ol=0,mf=o):Ol=0,ri(),null}function $a(){if(si!==null){var o=Wn(lc),a=Qr.transition,c=zt;try{if(Qr.transition=null,zt=16>o?16:o,si===null)var p=!1;else{if(o=si,si=null,lc=0,(en&6)!==0)throw Error(n(331));var y=en;for(en|=4,ft=o.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 ve=G[Q];for(ft=ve;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 Re=Te.sibling,ot=Te.return;if(bh(Te),Te===ve){ft=null;break}if(Re!==null){Re.return=ot,ft=Re;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 ae=w.sibling;if(ae!==null){ae.return=w.return,ft=ae;break e}ft=w.return}}var te=o.current;for(ft=te;ft!==null;){N=ft;var ue=N.child;if((N.subtreeFlags&2064)!==0&&ue!==null)ue.return=N,ft=ue;else e:for(N=te;ft!==null;){if(G=ft,(G.flags&2048)!==0)try{switch(G.tag){case 0:case 11:case 15:nc(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,o)}catch{}p=!0}return p}finally{zt=c,Qr.transition=a}}return!1}function jh(o,a,c){a=Sa(c,a),a=Jg(o,a,1),o=ii(o,a,1),a=xr(),o!==null&&(ln(o,1,a),Tr(o,a))}function Nn(o,a,c){if(o.tag===3)jh(o,o,c);else for(;a!==null;){if(a.tag===3){jh(a,o,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))){o=Sa(c,o),o=eh(a,o,1),a=ii(a,o,1),o=xr(),a!==null&&(ln(a,1,o),Tr(a,o));break}}a=a.return}}function Kw(o,a,c){var p=o.pingCache;p!==null&&p.delete(a),a=xr(),o.pingedLanes|=o.suspendedLanes&c,Zn===o&&(ir&c)===c&&(Gn===4||Gn===3&&(ir&130023424)===ir&&500>ct()-df?_i(o,0):uf|=c),Tr(o,a)}function kh(o,a){a===0&&((o.mode&1)===0?a=1:(a=nr,nr<<=1,(nr&130023424)===0&&(nr=4194304)));var c=xr();o=ko(o,a),o!==null&&(ln(o,a,c),Tr(o,c))}function qw(o){var a=o.memoizedState,c=0;a!==null&&(c=a.retryLane),kh(o,c)}function Xw(o,a){var c=0;switch(o.tag){case 13:var p=o.stateNode,y=o.memoizedState;y!==null&&(c=y.retryLane);break;case 19:p=o.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(a),kh(o,c)}var Lh;Lh=function(o,a,c){if(o!==null)if(o.memoizedProps!==a.pendingProps||Or.current)Ir=!0;else{if((o.lanes&c)===0&&(a.flags&128)===0)return Ir=!1,kw(o,a,c);Ir=(o.flags&131072)!==0}else Ir=!1,Pn&&(a.flags&1048576)!==0&&gg(a,Ds,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;ec(o,a),o=a.pendingProps;var y=fa(a,fr.current);ya(a,c),y=Fd(null,a,p,o,y,c);var w=Hd();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,Rr(p)?(w=!0,ks(a)):w=!1,a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,zd(a),y.updater=Zs,a.stateNode=y,y._reactInternals=a,qd(a,p,o,c),a=Zd(null,a,p,!0,w,c)):(a.tag=0,Pn&&w&&$d(a),Sr(null,a,y,c),a=a.child),a;case 16:p=a.elementType;e:{switch(ec(o,a),o=a.pendingProps,y=p._init,p=y(p._payload),a.type=p,y=a.tag=Yw(p),o=so(p,o),y){case 0:a=Yd(null,a,p,o,c);break e;case 1:a=ch(null,a,p,o,c);break e;case 11:a=oh(null,a,p,o,c);break e;case 14:a=ih(null,a,p,so(p.type,o),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),Yd(o,a,p,y,c);case 1:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),ch(o,a,p,y,c);case 3:e:{if(uh(a),o===null)throw Error(n(387));p=a.pendingProps,w=a.memoizedState,y=w.element,Eg(o,a),Us(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=Sa(Error(n(423)),a),a=dh(o,a,p,c,y);break e}else if(p!==y){y=Sa(Error(n(424)),a),a=dh(o,a,p,c,y);break e}else for(kr=ei(a.stateNode.containerInfo.firstChild),jr=a,Pn=!0,lo=null,c=wg(a,null,p,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(va(),p===y){a=Ao(o,a,c);break e}Sr(o,a,p,c)}a=a.child}return a;case 5:return Ig(a),o===null&&Rd(a),p=a.type,y=a.pendingProps,w=o!==null?o.memoizedProps:null,N=y.children,yd(p,y)?N=null:w!==null&&yd(p,w)&&(a.flags|=32),sh(o,a),Sr(o,a,N,c),a.child;case 6:return o===null&&Rd(a),null;case 13:return fh(o,a,c);case 4:return jd(a,a.stateNode.containerInfo),p=a.pendingProps,o===null?a.child=ga(a,null,p,c):Sr(o,a,p,c),a.child;case 11:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),oh(o,a,p,y,c);case 7:return Sr(o,a,a.pendingProps,c),a.child;case 8:return Sr(o,a,a.pendingProps.children,c),a.child;case 12:return Sr(o,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(Hs,p._currentValue),p._currentValue=N,w!==null)if(ao(w.value,N)){if(w.children===y.children&&!Or.current){a=Ao(o,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=Lo(-1,c&-c),Q.tag=2;var ve=w.updateQueue;if(ve!==null){ve=ve.shared;var Te=ve.pending;Te===null?Q.next=Q:(Q.next=Te.next,Te.next=Q),ve.pending=Q}}w.lanes|=c,Q=w.alternate,Q!==null&&(Q.lanes|=c),_d(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),_d(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(o,a,y.children,c),a=a.child}return a;case 9:return y=a.type,p=a.pendingProps.children,ya(a,c),y=qr(y),p=p(y),a.flags|=1,Sr(o,a,p,c),a.child;case 14:return p=a.type,y=so(p,a.pendingProps),y=so(p.type,y),ih(o,a,p,y,c);case 15:return ah(o,a,a.type,a.pendingProps,c);case 17:return p=a.type,y=a.pendingProps,y=a.elementType===p?y:so(p,y),ec(o,a),a.tag=1,Rr(p)?(o=!0,ks(a)):o=!1,ya(a,c),Yg(a,p,y),qd(a,p,y,c),Zd(null,a,p,!0,o,c);case 19:return ph(o,a,c);case 22:return lh(o,a,c)}throw Error(n(156,a.tag))};function Ah(o,a){return Yt(o,a)}function Qw(o,a,c,p){this.tag=o,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(o,a,c,p){return new Qw(o,a,c,p)}function bf(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yw(o){if(typeof o=="function")return bf(o)?1:0;if(o!=null){if(o=o.$$typeof,o===j)return 11;if(o===K)return 14}return 2}function di(o,a){var c=o.alternate;return c===null?(c=Yr(o.tag,a,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=a,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&14680064,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,a=o.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c}function dc(o,a,c,p,y,w){var N=2;if(p=o,typeof o=="function")bf(o)&&(N=1);else if(typeof o=="string")N=5;else e:switch(o){case T:return zi(c.children,y,w,a);case _:N=8,y|=8;break;case M:return o=Yr(12,c,a,y|2),o.elementType=M,o.lanes=w,o;case A:return o=Yr(13,c,a,y),o.elementType=A,o.lanes=w,o;case B:return o=Yr(19,c,a,y),o.elementType=B,o.lanes=w,o;case U:return fc(c,y,w,a);default:if(typeof o=="object"&&o!==null)switch(o.$$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,o==null?o:typeof o,""))}return a=Yr(N,c,a,y),a.elementType=o,a.type=p,a.lanes=w,a}function zi(o,a,c,p){return o=Yr(7,o,p,a),o.lanes=c,o}function fc(o,a,c,p){return o=Yr(22,o,p,a),o.elementType=U,o.lanes=c,o.stateNode={isHidden:!1},o}function Sf(o,a,c){return o=Yr(6,o,null,a),o.lanes=c,o}function xf(o,a,c){return a=Yr(4,o.children!==null?o.children:[],o.key,a),a.lanes=c,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}function Zw(o,a,c,p,y){this.tag=a,this.containerInfo=o,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 Cf(o,a,c,p,y,w,N,G,Q){return o=new Zw(o,a,c,G,Q),a===1?(a=1,w===!0&&(a|=8)):a=0,w=Yr(3,null,null,a),o.current=w,w.stateNode=o,w.memoizedState={element:p,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},zd(w),o}function Jw(o,a,c){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:p==null?null:""+p,children:o,containerInfo:a,implementation:c}}function Dh(o){if(!o)return ni;o=o._reactInternals;e:{if(It(o)!==o||o.tag!==1)throw Error(n(170));var a=o;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Rr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(o.tag===1){var c=o.type;if(Rr(c))return mg(o,c,a)}return a}function Bh(o,a,c,p,y,w,N,G,Q){return o=Cf(c,p,!0,o,y,w,N,G,Q),o.context=Dh(null),c=o.current,p=xr(),y=ci(c),w=Lo(p,y),w.callback=a??null,ii(c,w,y),o.current.lanes=y,ln(o,y,p),Tr(o,p),o}function mc(o,a,c,p){var y=a.current,w=xr(),N=ci(y);return c=Dh(c),a.context===null?a.context=c:a.pendingContext=c,a=Lo(w,N),a.payload={element:o},p=p===void 0?null:p,p!==null&&(a.callback=p),o=ii(y,a,N),o!==null&&(fo(o,y,N,w),Ws(o,y,N)),N}function pc(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function Fh(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<a?c:a}}function wf(o,a){Fh(o,a),(o=o.alternate)&&Fh(o,a)}function e$(){return null}var Hh=typeof reportError=="function"?reportError:function(o){console.error(o)};function $f(o){this._internalRoot=o}vc.prototype.render=$f.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(n(409));mc(o,a,null,null)},vc.prototype.unmount=$f.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;Mi(function(){mc(null,o,null,null)}),a[_o]=null}};function vc(o){this._internalRoot=o}vc.prototype.unstable_scheduleHydration=function(o){if(o){var a=Qo();o={blockedOn:null,target:o,priority:a};for(var c=0;c<Nr.length&&a!==0&&a<Nr[c].priority;c++);Nr.splice(c,0,o),c===0&&bn(o)}};function Ef(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function gc(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function Vh(){}function t$(o,a,c,p,y){if(y){if(typeof p=="function"){var w=p;p=function(){var ve=pc(N);w.call(ve)}}var N=Bh(a,p,o,0,null,!1,!1,"",Vh);return o._reactRootContainer=N,o[_o]=N.current,ul(o.nodeType===8?o.parentNode:o),Mi(),N}for(;y=o.lastChild;)o.removeChild(y);if(typeof p=="function"){var G=p;p=function(){var ve=pc(Q);G.call(ve)}}var Q=Cf(o,0,!1,null,null,!1,!1,"",Vh);return o._reactRootContainer=Q,o[_o]=Q.current,ul(o.nodeType===8?o.parentNode:o),Mi(function(){mc(a,Q,c,p)}),Q}function hc(o,a,c,p,y){var w=c._reactRootContainer;if(w){var N=w;if(typeof y=="function"){var G=y;y=function(){var Q=pc(N);G.call(Q)}}mc(a,N,o,y)}else N=t$(c,a,o,y,p);return pc(N)}Xn=function(o){switch(o.tag){case 3:var a=o.stateNode;if(a.current.memoizedState.isDehydrated){var c=ur(a.pendingLanes);c!==0&&(jn(a,c|1),Tr(a,ct()),(en&6)===0&&(wa=ct()+500,ri()))}break;case 13:Mi(function(){var p=ko(o,1);if(p!==null){var y=xr();fo(p,o,1,y)}}),wf(o,1)}},$r=function(o){if(o.tag===13){var a=ko(o,134217728);if(a!==null){var c=xr();fo(a,o,134217728,c)}wf(o,134217728)}},Qn=function(o){if(o.tag===13){var a=ci(o),c=ko(o,a);if(c!==null){var p=xr();fo(c,o,a,p)}wf(o,a)}},Qo=function(){return zt},Ji=function(o,a){var c=zt;try{return zt=o,a()}finally{zt=c}},Bt=function(o,a,c){switch(a){case"input":if(be(o,c),a=c.name,c.type==="radio"&&a!=null){for(c=o;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!==o&&p.form===o.form){var y=zs(p);if(!y)throw Error(n(90));ie(p),be(p,y)}}}break;case"textarea":Ee(o,c);break;case"select":a=c.value,a!=null&&je(o,!!c.multiple,a,!1)}},St=gf,Wt=Mi;var n$={usingClientEntryPoint:!1,Events:[ml,ua,zs,Vt,Tt,gf]},Rl={findFiberByHostInstance:wi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r$={bundleType:Rl.bundleType,version:Rl.version,rendererPackageName:Rl.rendererPackageName,rendererConfig:Rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=$n(o),o===null?null:o.stateNode},findFiberByHostInstance:Rl.findFiberByHostInstance||e$,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 yc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yc.isDisabled&&yc.supportsFiber)try{$t=yc.inject(r$),Jt=yc}catch{}}return Mr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n$,Mr.createPortal=function(o,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ef(a))throw Error(n(200));return Jw(o,a,null,c)},Mr.createRoot=function(o,a){if(!Ef(o))throw Error(n(299));var c=!1,p="",y=Hh;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=Cf(o,1,!1,null,null,c,!1,p,y),o[_o]=a.current,ul(o.nodeType===8?o.parentNode:o),new $f(a)},Mr.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=$n(a),o=o===null?null:o.stateNode,o},Mr.flushSync=function(o){return Mi(o)},Mr.hydrate=function(o,a,c){if(!gc(a))throw Error(n(200));return hc(null,o,a,!0,c)},Mr.hydrateRoot=function(o,a,c){if(!Ef(o))throw Error(n(405));var p=c!=null&&c.hydratedSources||null,y=!1,w="",N=Hh;if(c!=null&&(c.unstable_strictMode===!0&&(y=!0),c.identifierPrefix!==void 0&&(w=c.identifierPrefix),c.onRecoverableError!==void 0&&(N=c.onRecoverableError)),a=Bh(a,null,o,1,c??null,y,!1,w,N),o[_o]=a.current,ul(o),p)for(o=0;o<p.length;o++)c=p[o],y=c._getVersion,y=y(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,y]:a.mutableSourceEagerHydrationData.push(c,y);return new vc(a)},Mr.render=function(o,a,c){if(!gc(a))throw Error(n(200));return hc(null,o,a,!1,c)},Mr.unmountComponentAtNode=function(o){if(!gc(o))throw Error(n(40));return o._reactRootContainer?(Mi(function(){hc(null,null,o,!1,function(){o._reactRootContainer=null,o[_o]=null})}),!0):!1},Mr.unstable_batchedUpdates=gf,Mr.unstable_renderSubtreeIntoContainer=function(o,a,c,p){if(!gc(c))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return hc(o,a,c,!1,p)},Mr.version="18.3.1-next-f1338f8080-20240426",Mr}var Yh;function Wb(){if(Yh)return If.exports;Yh=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(),If.exports=f$(),If.exports}var Zh;function m$(){if(Zh)return bc;Zh=1;var e=Wb();return bc.createRoot=e.createRoot,bc.hydrateRoot=e.hydrateRoot,bc}var p$=m$();const v$=cs(p$);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 Jh;function g$(){return Jh||(Jh=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var d=arguments[s];d&&(l=i(l,r(d)))}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 d in l)t.call(l,d)&&l[d]&&(s=i(s,d));return s}function i(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 h$=g$();const se=cs(h$);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 y$=Symbol.for("react.element"),b$=Symbol.for("react.transitional.element"),S$=Symbol.for("react.fragment");function Ub(e){return e&&vt(e)==="object"&&(e.$$typeof===y$||e.$$typeof===b$)&&e.type===S$}function _r(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(_r(r)):Ub(r)&&r.props?n=n.concat(_r(r.props.children,t)):n.push(r))}),n}var Cm={},x$=function(t){};function C$(e,t){}function w$(e,t){}function $$(){Cm={}}function Gb(e,t,n){!t&&!Cm[n]&&(e(!1,n),Cm[n]=!0)}function ar(e,t){Gb(C$,e,t)}function E$(e,t){Gb(w$,e,t)}ar.preMessage=x$;ar.resetWarned=$$;ar.noteOnce=E$;function O$(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 Kb(e){var t=O$(e,"string");return vt(t)=="symbol"?t:t+""}function H(e,t,n){return(t=Kb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?e0(Object(n),!0).forEach(function(r){H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Si=Wb();const wm=cs(Si),R$=Vb({__proto__:null,default:wm},[Si]);function Wl(e){return e instanceof HTMLElement||e instanceof SVGElement}function I$(e){return e&&vt(e)==="object"&&Wl(e.nativeElement)?e.nativeElement:Wl(e)?e:null}function jc(e){var t=I$(e);if(t)return t;if(e instanceof J.Component){var n;return(n=wm.findDOMNode)===null||n===void 0?void 0:n.call(wm,e)}return null}var _f={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 t0;function P$(){if(t0)return cn;t0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=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"),C;C=Symbol.for("react.module.reference");function x(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case i:case r:case m:case v:return S;default:switch(S=S&&S.$$typeof,S){case d: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=i,cn.StrictMode=r,cn.Suspense=m,cn.SuspenseList=v,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(S){return x(S)===s},cn.isContextProvider=function(S){return x(S)===l},cn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},cn.isForwardRef=function(S){return x(S)===f},cn.isFragment=function(S){return x(S)===n},cn.isLazy=function(S){return x(S)===h},cn.isMemo=function(S){return x(S)===g},cn.isPortal=function(S){return x(S)===t},cn.isProfiler=function(S){return x(S)===i},cn.isStrictMode=function(S){return x(S)===r},cn.isSuspense=function(S){return x(S)===m},cn.isSuspenseList=function(S){return x(S)===v},cn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||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===C||S.getModuleId!==void 0)},cn.typeOf=x,cn}var n0;function T$(){return n0||(n0=1,_f.exports=P$()),_f.exports}var Nf=T$();function us(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var M$=Number(u.version.split(".")[0]),Mp=function(t,n){typeof t=="function"?t(n):vt(t)==="object"&&t&&"current"in t&&(t.current=n)},Wo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(l){n.forEach(function(s){Mp(s,l)})}},Xi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return us(function(){return Wo.apply(void 0,n)},n,function(i,l){return i.length!==l.length||i.every(function(s,d){return s!==l[d]})})},Qi=function(t){var n,r;if(!t)return!1;if(qb(t)&&M$>=19)return!0;var i=Nf.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Nf.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Nf.ForwardRef)};function qb(e){return u.isValidElement(e)&&!Ub(e)}var Ya=function(t){if(t&&qb(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},$m=u.createContext(null);function _$(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),i=u.useRef([]),l=u.useContext($m),s=u.useCallback(function(d,f,m){r.current+=1;var v=r.current;i.current.push({size:d,element:f,data:m}),Promise.resolve().then(function(){v===r.current&&(n==null||n(i.current),i.current=[])}),l==null||l(d,f,m)},[n,l]);return u.createElement($m.Provider,{value:s},t)}var Xb=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,l){return i[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),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,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 i=0,l=this.__entries__;i<l.length;i++){var s=l[i];n.call(r,s[1],s[0])}},t})()})(),Em=typeof window<"u"&&typeof document<"u"&&window.document===document,Kc=(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")()})(),N$=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Kc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),z$=2;function j$(e,t){var n=!1,r=!1,i=0;function l(){n&&(n=!1,e()),r&&d()}function s(){N$(l)}function d(){var f=Date.now();if(n){if(f-i<z$)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=f}return d}var k$=20,L$=["top","right","bottom","left","width","height","size","weight"],A$=typeof MutationObserver<"u",D$=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=j$(this.refresh.bind(this),k$)}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(){!Em||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A$?(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(){!Em||!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,i=L$.some(function(l){return!!~r.indexOf(l)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Qb=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Wa=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Kc}),Yb=hu(0,0,0,0);function qc(e){return parseFloat(e)||0}function r0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var l=e["border-"+i+"-width"];return r+qc(l)},0)}function B$(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var l=i[r],s=e["padding-"+l];n[l]=qc(s)}return n}function F$(e){var t=e.getBBox();return hu(0,0,t.width,t.height)}function H$(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yb;var r=Wa(e).getComputedStyle(e),i=B$(r),l=i.left+i.right,s=i.top+i.bottom,d=qc(r.width),f=qc(r.height);if(r.boxSizing==="border-box"&&(Math.round(d+l)!==t&&(d-=r0(r,"left","right")+l),Math.round(f+s)!==n&&(f-=r0(r,"top","bottom")+s)),!W$(e)){var m=Math.round(d+l)-t,v=Math.round(f+s)-n;Math.abs(m)!==1&&(d-=m),Math.abs(v)!==1&&(f-=v)}return hu(i.left,i.top,d,f)}var V$=(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 W$(e){return e===Wa(e).document.documentElement}function U$(e){return Em?V$(e)?F$(e):H$(e):Yb}function G$(e){var t=e.x,n=e.y,r=e.width,i=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return Qb(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function hu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var K$=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=U$(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})(),q$=(function(){function e(t,n){var r=G$(n);Qb(this,{target:t,contentRect:r})}return e})(),X$=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Xb,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 K$(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 q$(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})(),Zb=typeof WeakMap<"u"?new WeakMap:new Xb,Jb=(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=D$.getInstance(),r=new X$(t,n,this);Zb.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Jb.prototype[e]=function(){var t;return(t=Zb.get(this))[e].apply(t,arguments)}});var Q$=(function(){return typeof Kc.ResizeObserver<"u"?Kc.ResizeObserver:Jb})(),gi=new Map;function Y$(e){e.forEach(function(t){var n,r=t.target;(n=gi.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var eS=new Q$(Y$);function Z$(e,t){gi.has(e)||(gi.set(e,new Set),eS.observe(e)),gi.get(e).add(t)}function J$(e,t){gi.has(e)&&(gi.get(e).delete(t),gi.get(e).size||(eS.unobserve(e),gi.delete(e)))}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o0(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,Kb(r.key),r)}}function Fn(e,t,n){return t&&o0(e.prototype,t),n&&o0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ul(e,t)}function Uo(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&&Ul(e,t)}function Gl(e){return Gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gl(e)}function _p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_p=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 eE(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 Go(e){var t=_p();return function(){var n,r=Gl(e);if(t){var i=Gl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eE(this,n)}}var tE=(function(e){Uo(n,e);var t=Go(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function nE(e,t){var n=e.children,r=e.disabled,i=u.useRef(null),l=u.useRef(null),s=u.useContext($m),d=typeof n=="function",f=d?n(i):n,m=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!d&&u.isValidElement(f)&&Qi(f),g=v?Ya(f):null,h=Xi(g,i),b=function(){var E;return jc(i.current)||(i.current&&vt(i.current)==="object"?jc((E=i.current)===null||E===void 0?void 0:E.nativeElement):null)||jc(l.current)};u.useImperativeHandle(t,function(){return b()});var C=u.useRef(e);C.current=e;var x=u.useCallback(function(S){var E=C.current,$=E.onResize,O=E.data,P=S.getBoundingClientRect(),R=P.width,I=P.height,T=S.offsetWidth,_=S.offsetHeight,M=Math.floor(R),z=Math.floor(I);if(m.current.width!==M||m.current.height!==z||m.current.offsetWidth!==T||m.current.offsetHeight!==_){var L={width:M,height:z,offsetWidth:T,offsetHeight:_};m.current=L;var j=T===Math.round(R)?R:T,A=_===Math.round(I)?I:_,B=q(q({},L),{},{offsetWidth:j,offsetHeight:A});s==null||s(B,S,O),$&&Promise.resolve().then(function(){$(B,S)})}},[]);return u.useEffect(function(){var S=b();return S&&!r&&Z$(S,x),function(){return J$(S,x)}},[i.current,r]),u.createElement(tE,{ref:l},v?u.cloneElement(f,{ref:h}):f)}var rE=u.forwardRef(nE),oE="rc-observer-key";function iE(e,t){var n=e.children,r=typeof n=="function"?[n]:_r(n);return r.map(function(i,l){var s=(i==null?void 0:i.key)||"".concat(oE,"-").concat(l);return u.createElement(rE,ke({},e,{key:s,ref:l===0?t:void 0}),i)})}var ro=u.forwardRef(iE);ro.Collection=_$;function Om(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 aE(e){if(Array.isArray(e))return Om(e)}function tS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Np(e,t){if(e){if(typeof e=="string")return Om(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)?Om(e,t):void 0}}function lE(){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 aE(e)||tS(e)||Np(e)||lE()}var nS=function(t){return+setTimeout(t,16)},rS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(nS=function(t){return window.requestAnimationFrame(t)},rS=function(t){return window.cancelAnimationFrame(t)});var i0=0,zp=new Map;function oS(e){zp.delete(e)}var yn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;i0+=1;var r=i0;function i(l){if(l===0)oS(r),t();else{var s=nS(function(){i(l-1)});zp.set(r,s)}}return i(n),r};yn.cancel=function(e){var t=zp.get(e);return oS(e),rS(t)};function iS(e){if(Array.isArray(e))return e}function sE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,d=[],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)&&(d.push(r.value),d.length!==t);f=!0);}catch(v){m=!0,i=v}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw i}}return d}}function aS(){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 iS(e)||sE(e,t)||Np(e,t)||aS()}function Kl(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 cE(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 a0="data-rc-order",l0="data-rc-priority",uE="rc-util-key",Rm=new Map;function lS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uE}function yu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function jp(e){return Array.from((Rm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wr())return null;var n=t.csp,r=t.prepend,i=t.priority,l=i===void 0?0:i,s=dE(r),d=s==="prependQueue",f=document.createElement("style");f.setAttribute(a0,s),d&&l&&f.setAttribute(l0,"".concat(l)),n!=null&&n.nonce&&(f.nonce=n==null?void 0:n.nonce),f.innerHTML=e;var m=yu(t),v=m.firstChild;if(r){if(d){var g=(t.styles||jp(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(a0)))return!1;var b=Number(h.getAttribute(l0)||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 cS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yu(t);return(t.styles||jp(n)).find(function(r){return r.getAttribute(lS(t))===e})}function ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cS(e,t);if(n){var r=yu(t);r.removeChild(n)}}function fE(e,t){var n=Rm.get(e);if(!n||!cE(document,n)){var r=sS("",t),i=r.parentNode;Rm.set(e,i),e.removeChild(r)}}function Ho(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=yu(n),i=jp(r),l=q(q({},n),{},{styles:i});fE(r,l);var s=cS(t,l);if(s){var d,f;if((d=l.csp)!==null&&d!==void 0&&d.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=sS(e,l);return v.setAttribute(lS(l),t),v}function mE(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 Mt(e,t){if(e==null)return{};var n,r,i=mE(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)&&(i[n]=e[n])}return i}function Xl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(l,s){var d=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&&d>1)return!1;r.add(l);var m=d+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var v=0;v<l.length;v++)if(!i(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 i(l[h],s[h],m)})}return!1}return i(e,t)}var pE="%";function Im(e){return e.join(pE)}var vE=(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(Im(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Im(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),l=r(i);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Ua="data-token-hash",yo="data-css-hash",hi="__cssinjs_instance__";function gE(){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(i){i[hi]=i[hi]||e,i[hi]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(yo,"]"))).forEach(function(i){var l=i.getAttribute(yo);if(r[l]){if(i[hi]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else r[l]=!0})}return new vE(e)}var ds=u.createContext({hashPriority:"low",cache:gE(),defaultCache:!0});function hE(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 kp=(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,i,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(d){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(d)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.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 i=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 i.internalGet(v)[1]<h?[v,i.internalGet(v)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=re(l,1),d=s[0];this.delete(d)}this.keys.push(n)}var f=this.cache;n.forEach(function(m,v){if(v===n.length-1)f.set(m,{value:[r,i.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 i=n.get(r[0]);if(r.length===1){var l;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(l=i.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!hE(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();H(kp,"MAX_CACHE_SIZE",20);H(kp,"MAX_CACHE_OFFSET",5);var s0=0,uS=(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=s0,t.length===0&&(t.length>0,void 0),s0+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e})(),zf=new kp;function Pm(e){var t=Array.isArray(e)?e:[e];return zf.has(t)||zf.set(t,new uS(t)),zf.get(t)}var yE=new WeakMap,jf={};function bE(e,t){for(var n=yE,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(jf)||n.set(jf,e()),n.get(jf)}var c0=new WeakMap;function Fl(e){var t=c0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof uS?t+=r.id:r&&vt(r)==="object"?t+=Fl(r):t+=r}),t=Kl(t),c0.set(e,t)),t}function u0(e,t){return Kl("".concat(t,"_").concat(Fl(e)))}var Tm=wr();function le(e){return typeof e=="number"?"".concat(e,"px"):e}function Xc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var l=q(q({},r),{},H(H({},Ua,t),yo,n)),s=Object.keys(l).map(function(d){var f=l[d];return f?"".concat(d,'="').concat(f,'"'):null}).filter(function(d){return d}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var kc=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()},SE=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(i){var l=re(i,2),s=l[0],d=l[1];return"".concat(s,":").concat(d,";")}).join(""),"}"):""},dS=function(t,n,r){var i={},l={};return Object.entries(t).forEach(function(s){var d,f,m=re(s,2),v=m[0],g=m[1];if(r!=null&&(d=r.preserve)!==null&&d!==void 0&&d[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=kc(v,r==null?void 0:r.prefix);i[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,SE(i,n,{scope:r==null?void 0:r.scope})]},d0=wr()?u.useLayoutEffect:u.useEffect,tn=function(t,n){var r=u.useRef(!0);d0(function(){return t(r.current)},n),d0(function(){return r.current=!1,function(){r.current=!0}},[])},Mm=function(t,n){tn(function(r){if(!r)return t()},n)},xE=q({},gu),f0=xE.useInsertionEffect,CE=function(t,n,r){u.useMemo(t,r),tn(function(){return n(!0)},r)},wE=f0?function(e,t,n){return f0(function(){return e(),t()},n)}:CE,$E=q({},gu),EE=$E.useInsertionEffect,OE=function(t){var n=[],r=!1;function i(l){r||n.push(l)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),i},RE=function(){return function(t){t()}},IE=typeof EE<"u"?OE:RE;function Lp(e,t,n,r,i){var l=u.useContext(ds),s=l.cache,d=[e].concat(Be(t)),f=Im(d),m=IE([f]),v=function(C){s.opUpdate(f,function(x){var S=x||[void 0,void 0],E=re(S,2),$=E[0],O=$===void 0?0:$,P=E[1],R=P,I=R||n(),T=[O,I];return C?C(T):T})};u.useMemo(function(){v()},[f]);var g=s.opGet(f),h=g[1];return wE(function(){i==null||i(h)},function(b){return v(function(C){var x=re(C,2),S=x[0],E=x[1];return b&&S===0&&(i==null||i(h)),[S+1,E]}),function(){s.opUpdate(f,function(C){var x=C||[],S=re(x,2),E=S[0],$=E===void 0?0:E,O=S[1],P=$-1;return P===0?(m(function(){(b||!s.opGet(f))&&(r==null||r(O,!1))}),null):[$-1,O]})}},[f]),h}var PE={},TE="css",Ai=new Map;function ME(e){Ai.set(e,(Ai.get(e)||0)+1)}function _E(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ua,'="').concat(e,'"]'));n.forEach(function(r){if(r[hi]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var NE=0;function zE(e,t){Ai.set(e,(Ai.get(e)||0)-1);var n=new Set;Ai.forEach(function(r,i){r<=0&&n.add(i)}),Ai.size-n.size>NE&&n.forEach(function(r){_E(r,t),Ai.delete(r)})}var jE=function(t,n,r,i){var l=r.getDerivativeToken(t),s=q(q({},l),n);return i&&(s=i(s)),s},fS="token";function kE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(ds),i=r.cache.instanceId,l=r.container,s=n.salt,d=s===void 0?"":s,f=n.override,m=f===void 0?PE:f,v=n.formatToken,g=n.getComputedToken,h=n.cssVar,b=bE(function(){return Object.assign.apply(Object,[{}].concat(Be(t)))},t),C=Fl(b),x=Fl(m),S=h?Fl(h):"",E=Lp(fS,[d,e.id,C,x,S],function(){var $,O=g?g(b,m,e):jE(b,m,e,v),P=q({},O),R="";if(h){var I=dS(O,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),T=re(I,2);O=T[0],R=T[1]}var _=u0(O,d);O._tokenKey=_,P._tokenKey=u0(P,d);var M=($=h==null?void 0:h.key)!==null&&$!==void 0?$:_;O._themeKey=M,ME(M);var z="".concat(TE,"-").concat(Kl(_));return O._hashId=z,[O,z,P,R,(h==null?void 0:h.key)||""]},function($){zE($[0]._themeKey,i)},function($){var O=re($,4),P=O[0],R=O[3];if(h&&R){var I=Ho(R,Kl("css-variables-".concat(P._themeKey)),{mark:yo,prepend:"queue",attachTo:l,priority:-999});I[hi]=i,I.setAttribute(Ua,P._themeKey)}});return E}var LE=function(t,n,r){var i=re(t,5),l=i[2],s=i[3],d=i[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=Xc(s,d,v,h,m);return[g,v,b]},AE={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},mS="comm",pS="rule",vS="decl",DE="@import",BE="@namespace",FE="@keyframes",HE="@layer",gS=Math.abs,Ap=String.fromCharCode;function hS(e){return e.trim()}function Lc(e,t,n){return e.replace(t,n)}function VE(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 Eo(e){return e.length}function WE(e){return e.length}function Sc(e,t){return t.push(e),e}var bu=1,Ka=1,yS=0,oo=0,Dn=0,Za="";function Dp(e,t,n,r,i,l,s,d){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:bu,column:Ka,length:s,return:"",siblings:d}}function UE(){return Dn}function GE(){return Dn=oo>0?Ha(Za,--oo):0,Ka--,Dn===10&&(Ka=1,bu--),Dn}function bo(){return Dn=oo<yS?Ha(Za,oo++):0,Ka++,Dn===10&&(Ka=1,bu++),Dn}function yi(){return Ha(Za,oo)}function Ac(){return oo}function Su(e,t){return Ga(Za,e,t)}function Ql(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 KE(e){return bu=Ka=1,yS=Eo(Za=e),oo=0,[]}function qE(e){return Za="",e}function kf(e){return hS(Su(oo-1,_m(e===91?e+2:e===40?e+1:e)))}function XE(e){for(;(Dn=yi())&&Dn<33;)bo();return Ql(e)>2||Ql(Dn)>3?"":" "}function QE(e,t){for(;--t&&bo()&&!(Dn<48||Dn>102||Dn>57&&Dn<65||Dn>70&&Dn<97););return Su(e,Ac()+(t<6&&yi()==32&&bo()==32))}function _m(e){for(;bo();)switch(Dn){case e:return oo;case 34:case 39:e!==34&&e!==39&&_m(Dn);break;case 40:e===41&&_m(e);break;case 92:bo();break}return oo}function YE(e,t){for(;bo()&&e+Dn!==57;)if(e+Dn===84&&yi()===47)break;return"/*"+Su(t,oo-1)+"*"+Ap(e===47?e:bo())}function ZE(e){for(;!Ql(yi());)bo();return Su(e,oo)}function JE(e){return qE(Dc("",null,null,null,[""],e=KE(e),0,[0],e))}function Dc(e,t,n,r,i,l,s,d,f){for(var m=0,v=0,g=s,h=0,b=0,C=0,x=1,S=1,E=1,$=0,O="",P=i,R=l,I=r,T=O;S;)switch(C=$,$=bo()){case 40:if(C!=108&&Ha(T,g-1)==58){VE(T+=Lc(kf($),"&","&\f"),"&\f",gS(m?d[m-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:T+=kf($);break;case 9:case 10:case 13:case 32:T+=XE(C);break;case 92:T+=QE(Ac()-1,7);continue;case 47:switch(yi()){case 42:case 47:Sc(e2(YE(bo(),Ac()),t,n,f),f),(Ql(C||1)==5||Ql(yi()||1)==5)&&Eo(T)&&Ga(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*x:d[m++]=Eo(T)*E;case 125*x:case 59:case 0:switch($){case 0:case 125:S=0;case 59+v:E==-1&&(T=Lc(T,/\f/g,"")),b>0&&(Eo(T)-g||x===0&&C===47)&&Sc(b>32?p0(T+";",r,n,g-1,f):p0(Lc(T," ","")+";",r,n,g-2,f),f);break;case 59:T+=";";default:if(Sc(I=m0(T,t,n,m,v,i,d,O,P=[],R=[],g,l),l),$===123)if(v===0)Dc(T,t,I,I,P,l,g,d,R);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?Dc(e,I,I,r&&Sc(m0(e,I,I,0,0,i,d,O,i,P=[],g,R),R),i,R,g,d,r?P:R):Dc(T,I,I,I,[""],R,0,d,R)}}m=v=b=0,x=E=1,O=T="",g=s;break;case 58:g=1+Eo(T),b=C;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&GE()==125)continue}switch(T+=Ap($),$*x){case 38:E=v>0?1:(T+="\f",-1);break;case 44:d[m++]=(Eo(T)-1)*E,E=1;break;case 64:yi()===45&&(T+=kf(bo())),h=yi(),v=g=Eo(O=T+=ZE(Ac())),$++;break;case 45:C===45&&Eo(T)==2&&(x=0)}}return l}function m0(e,t,n,r,i,l,s,d,f,m,v,g){for(var h=i-1,b=i===0?l:[""],C=WE(b),x=0,S=0,E=0;x<r;++x)for(var $=0,O=Ga(e,h+1,h=gS(S=s[x])),P=e;$<C;++$)(P=hS(S>0?b[$]+" "+O:Lc(O,/&\f/g,b[$])))&&(f[E++]=P);return Dp(e,t,n,i===0?pS:d,f,m,v,g)}function e2(e,t,n,r){return Dp(e,t,n,mS,Ap(UE()),Ga(e,2,-2),0,r)}function p0(e,t,n,r,i){return Dp(e,t,n,vS,Ga(e,0,r),Ga(e,r+1,-1),r,i)}function Nm(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function t2(e,t,n,r){switch(e.type){case HE:if(e.children.length)break;case DE:case BE:case vS:return e.return=e.return||e.value;case mS:return"";case FE:return e.return=e.value+"{"+Nm(e.children,r)+"}";case pS:if(!Eo(e.value=e.props.join(",")))return""}return Eo(n=Nm(e.children,r))?e.return=e.value+"{"+n+"}":""}var v0="data-ant-cssinjs-cache-path",bS="_FILE_STYLE__",Hi,SS=!0;function n2(){if(!Hi&&(Hi={},wr())){var e=document.createElement("div");e.className=v0,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(i){var l=i.split(":"),s=re(l,2),d=s[0],f=s[1];Hi[d]=f});var n=document.querySelector("style[".concat(v0,"]"));if(n){var r;SS=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function r2(e){return n2(),!!Hi[e]}function o2(e){var t=Hi[e],n=null;if(t&&wr())if(SS)n=bS;else{var r=document.querySelector("style[".concat(yo,'="').concat(Hi[e],'"]'));r?n=r.innerHTML:delete Hi[e]}return[n,t]}var i2="_skip_check_",xS="_multi_value_";function Bc(e){var t=Nm(JE(e),t2);return t.replace(/\{%%%\:[^;];}/g,";")}function a2(e){return vt(e)==="object"&&e&&(i2 in e||xS in e)}function g0(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(s){var d,f=s.trim().split(/\s+/),m=f[0]||"",v=((d=m.match(/^\w+/))===null||d===void 0?void 0:d[0])||"";return m="".concat(v).concat(i).concat(m.slice(v.length)),[m].concat(Be(f.slice(1))).join(" ")});return l.join(",")}var l2=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:[]},i=r.root,l=r.injectHash,s=r.parentSelectors,d=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 C(E){var $=E.getName(d);if(!b[$]){var O=e(E.style,n,{root:!1,parentSelectors:s}),P=re(O,1),R=P[0];b[$]="@keyframes ".concat(E.getName(d)).concat(R)}}function x(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(O){Array.isArray(O)?x(O,$):O&&$.push(O)}),$}var S=x(Array.isArray(t)?t:[t]);return S.forEach(function(E){var $=typeof E=="string"&&!i?{}:E;if(typeof $=="string")h+="".concat($,`
55
+ `);else if($._keyframe)C($);else{var O=g.reduce(function(P,R){var I;return(R==null||(I=R.visit)===null||I===void 0?void 0:I.call(R,P))||P},$);Object.keys(O).forEach(function(P){var R=O[P];if(vt(R)==="object"&&R&&(P!=="animationName"||!R._keyframe)&&!a2(R)){var I=!1,T=P.trim(),_=!1;(i||l)&&d?T.startsWith("@")?I=!0:T==="&"?T=g0("",d,m):T=g0(P,d,m):i&&!d&&(T==="&"||T==="")&&(T="",_=!0);var M=e(R,n,{root:_,injectHash:I,parentSelectors:[].concat(Be(s),[T])}),z=re(M,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;!AE[V]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),V==="animationName"&&U!==null&&U!==void 0&&U._keyframe&&(C(U),X=U.getName(d)),h+="".concat(D,":").concat(X,";")};var A,B=(A=R==null?void 0:R.value)!==null&&A!==void 0?A:R;vt(R)==="object"&&R!==null&&R!==void 0&&R[xS]&&Array.isArray(B)?B.forEach(function(V){K(P,V)}):K(P,B)}})}}),i?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 CS(e,t){return Kl("".concat(e.join("%")).concat(t))}function s2(){return null}var wS="style";function zm(e,t){var n=e.token,r=e.path,i=e.hashId,l=e.layer,s=e.nonce,d=e.clientOnly,f=e.order,m=f===void 0?0:f,v=u.useContext(ds),g=v.autoClear;v.mock;var h=v.defaultCache,b=v.hashPriority,C=v.container,x=v.ssrInline,S=v.transformers,E=v.linters,$=v.cache,O=v.layer,P=n._tokenKey,R=[P];O&&R.push("layer"),R.push.apply(R,Be(r));var I=Tm,T=Lp(wS,R,function(){var j=R.join("|");if(r2(j)){var A=o2(j),B=re(A,2),K=B[0],V=B[1];if(K)return[K,P,V,{},d,m]}var U=t(),D=l2(U,{hashId:i,hashPriority:b,layer:O?l:void 0,path:r.join("-"),transformers:S,linters:E}),X=re(D,2),W=X[0],k=X[1],F=Bc(W),Y=CS(R,F);return[F,P,Y,k,d,m]},function(j,A){var B=re(j,3),K=B[2];(A||g)&&Tm&&ql(K,{mark:yo,attachTo:C})},function(j){var A=re(j,4),B=A[0];A[1];var K=A[2],V=A[3];if(I&&B!==bS){var U={mark:yo,prepend:O?!1:"queue",attachTo:C,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){Ho(Bc(V[F]),"_layer-".concat(F),q(q({},U),{},{prepend:!0}))});var k=Ho(B,K,U);k[hi]=$.instanceId,k.setAttribute(Ua,P),W.forEach(function(F){Ho(Bc(V[F]),"_effect-".concat(F),U)})}}),_=re(T,3),M=_[0],z=_[1],L=_[2];return function(j){var A;return!x||I||!h?A=u.createElement(s2,null):A=u.createElement("style",ke({},H(H({},Ua,z),yo,L),{dangerouslySetInnerHTML:{__html:M}})),u.createElement(u.Fragment,null,A,j)}}var c2=function(t,n,r){var i=re(t,6),l=i[0],s=i[1],d=i[2],f=i[3],m=i[4],v=i[5],g=r||{},h=g.plain;if(m)return null;var b=l,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=Xc(l,s,d,C,h),f&&Object.keys(f).forEach(function(x){if(!n[x]){n[x]=!0;var S=Bc(f[x]),E=Xc(S,s,"_effect-".concat(x),C,h);x.startsWith("@layer")?b=E+b:b+=E}}),[v,d,b]},$S="cssVar",u2=function(t,n){var r=t.key,i=t.prefix,l=t.unitless,s=t.ignore,d=t.token,f=t.scope,m=f===void 0?"":f,v=u.useContext(ds),g=v.cache.instanceId,h=v.container,b=d._tokenKey,C=[].concat(Be(t.path),[r,m,b]),x=Lp($S,C,function(){var S=n(),E=dS(S,r,{prefix:i,unitless:l,ignore:s,scope:m}),$=re(E,2),O=$[0],P=$[1],R=CS(C,P);return[O,P,R,r]},function(S){var E=re(S,3),$=E[2];Tm&&ql($,{mark:yo,attachTo:h})},function(S){var E=re(S,3),$=E[1],O=E[2];if($){var P=Ho($,O,{mark:yo,prepend:"queue",attachTo:h,priority:-999});P[hi]=g,P.setAttribute(Ua,r)}});return x},d2=function(t,n,r){var i=re(t,4),l=i[1],s=i[2],d=i[3],f=r||{},m=f.plain;if(!l)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},h=Xc(l,d,s,g,m);return[v,s,h]};H(H(H({},wS,c2),fS,LE),$S,d2);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 Ea(e){return e.notSplit=!0,e}Ea(["borderTop","borderBottom"]),Ea(["borderTop"]),Ea(["borderBottom"]),Ea(["borderLeft","borderRight"]),Ea(["borderLeft"]),Ea(["borderRight"]);var Bp=u.createContext({});function ES(e){return iS(e)||tS(e)||Np(e)||aS()}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 OS(e,t,n,r){if(!t.length)return n;var i=ES(t),l=i[0],s=i.slice(1),d;return!e&&typeof l=="number"?d=[]:Array.isArray(e)?d=Be(e):d=q({},e),r&&n===void 0&&s.length===1?delete d[l][s[0]]:d[l]=OS(d[l],s,n,r),d}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:OS(e,t,n,r)}function f2(e){return vt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function h0(e){return Array.isArray(e)?[]:{}}var m2=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=h0(t[0]);return t.forEach(function(i){function l(s,d){var f=new Set(d),m=Oo(i,s),v=Array.isArray(m);if(v||f2(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,h0(m))),m2(m).forEach(function(h){l([].concat(Be(s),[h]),f)})}}else r=mo(r,s,m)}l([])}),r}function p2(){}const v2=u.createContext({}),Fp=()=>{const e=()=>{};return e.deprecated=p2,e},g2=u.createContext(void 0);var RS={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"},h2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},y2=q(q({},h2),{},{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 IS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},y0={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"]},y2),timePickerLocale:Object.assign({},IS)},Ar="${label} is not a valid ${type}",Vi={locale:"en",Pagination:RS,DatePicker:y0,TimePicker:IS,Calendar:y0,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({},Vi.Modal);let Fc=[];const b0=()=>Fc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vi.Modal);function b2(e){if(e){const t=Object.assign({},e);return Fc.push(t),b0(),()=>{Fc=Fc.filter(n=>n!==t),b0()}}Object.assign({},Vi.Modal)}const Hp=u.createContext(void 0),Ja=(e,t)=>{const n=u.useContext(Hp),r=u.useMemo(()=>{var l;const s=t||Vi[e],d=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),d||{})},[e,t,n]),i=u.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Vi.locale:l},[n]);return[r,i]},S2="internalMark",x2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>b2(t==null?void 0:t.Modal),[t]);const i=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Hp.Provider,{value:i},n)},Vp={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"},Yl=Object.assign(Object.assign({},Vp),{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 Lf(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const S0=(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(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let l=function(s){return i.startsWith(s)};var r=l;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):l("rgb")?this.fromRgbString(i):l("hsl")?this.fromHslString(i):(l("hsv")||l("hsb"))&&this.fromHsvString(i)}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),i=t(this.b);return .2126*n+.7152*r+.0722*i}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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,l=d=>(r[d]-this[d])*i+this[d],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),i=l=>er((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,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 i=this.clone();return i[t]=Pl(n,r),i}_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(i,l){return parseInt(n[i]+n[l||i],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:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=er(r*255);this.r=h,this.g=h,this.b=h}let l=0,s=0,d=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,d=v):f>=3&&f<4?(s=v,d=m):f>=4&&f<5?(l=v,d=m):f>=5&&f<6&&(l=m,d=v);const g=r-m/2;this.r=er((l+g)*255),this.g=er((s+g)*255),this.b=er((d+g)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const l=er(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,d=Math.floor(s),f=s-d,m=er(r*(1-n)*255),v=er(r*(1-n*f)*255),g=er(r*(1-n*(1-f))*255);switch(d){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=Lf(t,S0);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Lf(t,S0);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Lf(t,(r,i)=>i.includes("%")?er(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var xc=2,x0=.16,C2=.05,w2=.05,$2=.15,PS=5,TS=4,E2=[{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 C0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xc*t:Math.round(e.h)+xc*t:r=n?Math.round(e.h)+xc*t:Math.round(e.h)-xc*t,r<0?r+=360:r>=360&&(r-=360),r}function w0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-x0*t:t===TS?r=e.s+x0:r=e.s+C2*t,r>1&&(r=1),n&&t===PS&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $0(e,t,n){var r;return n?r=e.v+w2*t:r=e.v-$2*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Wi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new dn(e),i=r.toHsv(),l=PS;l>0;l-=1){var s=new dn({h:C0(i,l,!0),s:w0(i,l,!0),v:$0(i,l,!0)});n.push(s)}n.push(r);for(var d=1;d<=TS;d+=1){var f=new dn({h:C0(i,d),s:w0(i,d),v:$0(i,d)});n.push(f)}return t.theme==="dark"?E2.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 Af={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"},jm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];jm.primary=jm[5];var km=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];km.primary=km[5];var Lm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Lm.primary=Lm[5];var Qc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qc.primary=Qc[5];var Am=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Am.primary=Am[5];var Dm=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Dm.primary=Dm[5];var Bm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Bm.primary=Bm[5];var Fm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fm.primary=Fm[5];var Yc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Yc.primary=Yc[5];var Hm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Hm.primary=Hm[5];var Vm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Vm.primary=Vm[5];var Wm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Wm.primary=Wm[5];var Um=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Um.primary=Um[5];var Df={red:jm,volcano:km,orange:Lm,gold:Qc,yellow:Am,lime:Dm,green:Bm,cyan:Fm,blue:Yc,geekblue:Hm,purple:Vm,magenta:Wm,grey:Um};function MS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:s,colorPrimary:d,colorBgBase:f,colorTextBase:m}=e,v=t(d),g=t(r),h=t(i),b=t(l),C=t(s),x=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({},x),{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:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new dn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const O2=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function R2(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=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:i+1},O2(r))}const I2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Hc(e){return(e+8)/e}function P2(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,l=e*Math.pow(Math.E,i/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:Hc(n)}))}const T2=e=>{const t=P2(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),i=n[1],l=n[0],s=n[2],d=r[1],f=r[0],m=r[2];return{fontSizeSM:l,fontSize:i,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(d*i),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 M2(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(),_2=e=>{const t=Wi(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]}},N2=(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 _S(e){Af.pink=Af.magenta,Df.pink=Df.magenta;const t=Object.keys(Vp).map(n=>{const r=e[n]===Af[n]?Df[n]:Wi(e[n]);return Array.from({length:10},()=>1).reduce((i,l,s)=>(i[`${n}-${s+1}`]=r[s],i[`${n}${s+1}`]=r[s],i),{})}).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),MS(e,{generateColorPalettes:_2,generateNeutralColorPalettes:N2})),T2(e.fontSize)),M2(e)),I2(e)),R2(e))}const NS=Pm(_S),Zc={token:Yl,override:{override:Yl},hashed:!0},zS=J.createContext(Zc),Zl="ant",xu="anticon",z2=["outlined","borderless","filled","underlined"],j2=(e,t)=>t||(e?`${Zl}-${e}`:Zl),Gt=u.createContext({getPrefixCls:j2,iconPrefixCls:xu}),{Consumer:n6}=Gt,E0={};function Vr(e){const t=u.useContext(Gt),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,l=t[e];return Object.assign(Object.assign({classNames:E0,styles:E0},l),{getPrefixCls:n,direction:r,getPopupContainer:i})}const k2=`-ant-${Date.now()}-${Math.random()}`;function L2(e,t){const n={},r=(s,d)=>{let f=s.clone();return f=(d==null?void 0:d(f))||f,f.toRgbString()},i=(s,d)=>{const f=new dn(s),m=Wi(f.toRgbString());n[`${d}-color`]=r(f),n[`${d}-color-disabled`]=m[1],n[`${d}-color-hover`]=m[4],n[`${d}-color-active`]=m[6],n[`${d}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${d}-color-deprecated-bg`]=m[0],n[`${d}-color-deprecated-border`]=m[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new dn(t.primaryColor),d=Wi(s.toRgbString());d.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(d[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&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
59
+ :root {
60
+ ${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
61
+ `)}
62
+ }
63
+ `.trim()}function A2(e,t){const n=L2(e,t);wr()&&Ho(n,`${k2}-dynamic-theme`)}const qa=u.createContext(!1),D2=({children:e,disabled:t})=>{const n=u.useContext(qa);return u.createElement(qa.Provider,{value:t??n},e)},Xa=u.createContext(void 0),B2=({children:e,size:t})=>{const n=u.useContext(Xa);return u.createElement(Xa.Provider,{value:t||n},e)};function F2(){const e=u.useContext(qa),t=u.useContext(Xa);return{componentDisabled:e,componentSize:t}}var jS=Fn(function e(){Bn(this,e)}),kS="CALC_UNIT",H2=new RegExp(kS,"g");function Bf(e){return typeof e=="number"?"".concat(e).concat(kS):e}var V2=(function(e){Uo(n,e);var t=Go(n);function n(r,i){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=i,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=Bf(r):s==="string"&&(l.result=r),l}return Fn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Bf(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Bf(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var l=this,s=i||{},d=s.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(f=!1),this.result=this.result.replace(H2,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(jS),W2=(function(e){Uo(n,e);var t=Go(n);function n(r){var i;return Bn(this,n),i=t.call(this),H(Dt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Fn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n})(jS),U2=function(t,n){var r=t==="css"?V2:W2;return function(i){return new r(i,n)}},O0=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=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,l=new Array(i),s=0;s<i;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 Jl(e){var t=u.useRef(!1),n=u.useState(e),r=re(n,2),i=r[0],l=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(d,f){f&&t.current||l(d)}return[i,s]}function Ff(e){return e!==void 0}function tr(e,t){var n=t||{},r=n.defaultValue,i=n.value,l=n.onChange,s=n.postState,d=Jl(function(){return Ff(i)?i:Ff(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=re(d,2),m=f[0],v=f[1],g=i!==void 0?i:m,h=s?s(g):g,b=Kn(l),C=Jl([g]),x=re(C,2),S=x[0],E=x[1];Mm(function(){var O=S[0];m!==O&&b(m,O)},[S]),Mm(function(){Ff(i)||v(i)},[i]);var $=Kn(function(O,P){v(O,P),E([g],P)});return[h,$]}function R0(e,t,n,r){var i=q({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(d){var f=re(d,2),m=f[0],v=f[1];if(i!=null&&i[m]||i!=null&&i[v]){var g;(g=i[v])!==null&&g!==void 0||(i[v]=i==null?void 0:i[m])}})}var s=q(q({},n),i);return Object.keys(s).forEach(function(d){s[d]===t[d]&&delete s[d]}),s}var LS=typeof CSSINJS_STATISTIC<"u",Gm=!0;function fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!LS)return Object.assign.apply(Object,[{}].concat(t));Gm=!1;var r={};return t.forEach(function(i){if(vt(i)==="object"){var l=Object.keys(i);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),Gm=!0,r}var I0={};function G2(){}var K2=function(t){var n,r=t,i=G2;return LS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,d){if(Gm){var f;(f=n)===null||f===void 0||f.add(d)}return s[d]}}),i=function(s,d){var f;I0[s]={global:Array.from(n),component:q(q({},(f=I0[s])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:i}};function P0(e,t,n){if(typeof n=="function"){var r;return n(fn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function q2(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(l){return le(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(l){return le(l)}).join(","),")")}}}var X2=1e3*60*10,Q2=(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 i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(l){return l&&vt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(vt(l),"_").concat(l)});return i.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(i,l){r-i>X2&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),T0=new Q2;function Y2(e,t){return J.useMemo(function(){var n=T0.get(t);if(n)return n;var r=e();return T0.set(t,r),r},t)}var Z2=function(){return{}};function J2(e){var t=e.useCSP,n=t===void 0?Z2:t,r=e.useToken,i=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,d=e.getCompUnitless;function f(h,b,C,x){var S=Array.isArray(h)?h[0]:h;function E(_){return"".concat(String(S)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var $=(x==null?void 0:x.unitless)||{},O=typeof d=="function"?d(h):{},P=q(q({},O),{},H({},E("zIndexPopup"),!0));Object.keys($).forEach(function(_){P[E(_)]=$[_]});var R=q(q({},x),{},{unitless:P,prefixToken:E}),I=v(h,b,C,R),T=m(S,C,R);return function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,z=I(_,M),L=re(z,2),j=L[1],A=T(M),B=re(A,2),K=B[0],V=B[1];return[K,j,V]}}function m(h,b,C){var x=C.unitless,S=C.injectStyle,E=S===void 0?!0:S,$=C.prefixToken,O=C.ignore,P=function(T){var _=T.rootCls,M=T.cssVar,z=M===void 0?{}:M,L=r(),j=L.realToken;return u2({path:[h],prefix:z.prefix,key:z.key,unitless:x,ignore:O,token:j,scope:_},function(){var A=P0(h,j,b),B=R0(h,j,A,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(A).forEach(function(K){B[$(K)]=B[K],delete B[K]}),B}),null},R=function(T){var _=r(),M=_.cssVar;return[function(z){return E&&M?J.createElement(J.Fragment,null,J.createElement(P,{rootCls:T,cssVar:M,component:h}),z):z},M==null?void 0:M.key]};return R}function v(h,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(h)?h:[h,h],E=re(S,1),$=E[0],O=S.join("-"),P=e.layer||{name:"antd"};return function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,T=r(),_=T.theme,M=T.realToken,z=T.hashId,L=T.token,j=T.cssVar,A=i(),B=A.rootPrefixCls,K=A.iconPrefixCls,V=n(),U=j?"css":"js",D=Y2(function(){var ne=new Set;return j&&Object.keys(x.unitless||{}).forEach(function(Z){ne.add(kc(Z,j.prefix)),ne.add(kc(Z,O0($,j.prefix)))}),U2(U,ne)},[U,$,j==null?void 0:j.prefix]),X=q2(U),W=X.max,k=X.min,F={theme:_,token:L,hashId:z,nonce:function(){return V.nonce},clientOnly:x.clientOnly,layer:P,order:x.order||-999};typeof l=="function"&&zm(q(q({},F),{},{clientOnly:!1,path:["Shared",B]}),function(){return l(L,{prefix:{rootPrefixCls:B,iconPrefixCls:K},csp:V})});var Y=zm(q(q({},F),{},{path:[O,R,K]}),function(){if(x.injectStyle===!1)return[];var ne=K2(L),Z=ne.token,ee=ne.flush,fe=P0($,M,C),me=".".concat(R),ce=R0($,M,fe,{deprecatedTokens:x.deprecatedTokens});j&&fe&&vt(fe)==="object"&&Object.keys(fe).forEach(function(he){fe[he]="var(".concat(kc(he,O0($,j.prefix)),")")});var Se=fn(Z,{componentCls:me,prefixCls:R,iconCls:".".concat(K),antCls:".".concat(B),calc:D,max:W,min:k},j?fe:ce),de=b(Se,{hashId:z,prefixCls:R,rootPrefixCls:B,iconPrefixCls:K});ee($,ce);var ie=typeof s=="function"?s(Se,R,I,x.resetFont):null;return[x.resetStyle===!1?null:ie,de]});return[Y,z]}}function g(h,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=v(h,b,C,q({resetStyle:!1,order:-998},x)),E=function(O){var P=O.prefixCls,R=O.rootCls,I=R===void 0?P:R;return S(P,I),null};return E}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:v}}const Ui=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],eO="5.29.3";function Hf(e){return e>=0&&e<=255}function Ll(e,t){const{r:n,g:r,b:i,a:l}=new dn(e).toRgb();if(l<1)return e;const{r:s,g:d,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-d*(1-m))/m),h=Math.round((i-f*(1-m))/m);if(Hf(v)&&Hf(g)&&Hf(h))return new dn({r:v,g,b:h,a:Math.round(m*100)/100}).toRgbString()}return new dn({r:n,g:r,b:i,a:1}).toRgbString()}var tO=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function AS(e){const{override:t}=e,n=tO(e,["override"]),r=Object.assign({},t);Object.keys(Yl).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),l=480,s=576,d=768,f=992,m=1200,v=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ll(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ll(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ll(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ll(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:d-1,screenMD:d,screenMDMin:d,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 M0=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DS={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},nO={motionBase:!0,motionUnit:!0},rO={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},BS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,l=M0(t,["override"]);let s=Object.assign(Object.assign({},r),{override:i});return s=AS(s),l&&Object.entries(l).forEach(([d,f])=>{const{theme:m}=f,v=M0(f,["theme"]);let g=v;m&&(g=BS(Object.assign(Object.assign({},s),v),{override:v},m)),s[d]=g}),s};function Wr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=J.useContext(zS),l=`${eO}-${t||""}`,s=n||NS,[d,f,m]=kE(s,[Yl,e],{salt:l,override:r,getComputedToken:BS,formatToken:AS,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:DS,ignore:nO,preserve:rO}});return[s,m,t?f:"",d,i]}const Jc={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}),fs=()=>({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"}}),oO=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),iO=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"}}}),aO=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},d),s),{[i]:s})}},es=(e,t)=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Gi=(e,t)=>({"&:focus-visible":es(e,t)}),FS=e=>({[`.${e}`]:Object.assign(Object.assign({},fs()),{[`.${e} .${e}-icon`]:{display:"block"}})}),HS=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"},Gi(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Rn,genComponentStyleHook:lO,genSubStyleComponent:Cu}=J2({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Gt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Wr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=u.useContext(Gt);return e??{}},getResetStyles:(e,t)=>{var n;const r=iO(e);return[r,{"&":r},FS((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:xu)]},getCommonStyle:aO,getCompUnitless:()=>DS});function wu(e,t){return Ui.reduce((n,r)=>{const i=e[`${r}1`],l=e[`${r}3`],s=e[`${r}6`],d=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:l,darkColor:s,textColor:d}))},{})}const sO=(e,t)=>{const[n,r]=Wr();return zm({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>FS(e))},cO=Object.assign({},gu),{useId:_0}=cO,uO=()=>"",dO=typeof _0>"u"?uO:_0;function fO(e,t,n){var r;Fp();const i=e||{},l=i.inherit===!1||!t?Object.assign(Object.assign({},Zc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Zc.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=dO();return us(()=>{var d,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=((d=i.cssVar)!==null&&d!==void 0?d:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((f=i.cssVar)===null||f===void 0?void 0:f.key)||v});return Object.assign(Object.assign(Object.assign({},l),i),{token:Object.assign(Object.assign({},l.token),i.token),components:m,cssVar:g})},[i,l],(d,f)=>d.some((m,v)=>{const g=f[v];return!Xl(m,g,!0)}))}var mO=["children"],VS=u.createContext({});function pO(e){var t=e.children,n=Mt(e,mO);return u.createElement(VS.Provider,{value:n},t)}var vO=(function(e){Uo(n,e);var t=Go(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function gO(e){var t=u.useReducer(function(d){return d+1},0),n=re(t,2),r=n[1],i=u.useRef(e),l=Kn(function(){return i.current}),s=Kn(function(d){i.current=typeof d=="function"?d(i.current):d,r()});return[l,s]}var pi="none",Cc="appear",wc="enter",$c="leave",N0="none",po="prepare",Da="start",Ba="active",Wp="end",WS="prepared";function z0(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 hO(e,t){var n={animationend:z0("Animation","AnimationEnd"),transitionend:z0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var yO=hO(wr(),typeof window<"u"?window:{}),US={};if(wr()){var bO=document.createElement("div");US=bO.style}var Ec={};function GS(e){if(Ec[e])return Ec[e];var t=yO[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var l=n[i];if(Object.prototype.hasOwnProperty.call(t,l)&&l in US)return Ec[e]=t[l],Ec[e]}return""}var KS=GS("animationend"),qS=GS("transitionend"),XS=!!(KS&&qS),j0=KS||"animationend",k0=qS||"transitionend";function L0(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 SO=(function(e){var t=u.useRef();function n(i){i&&(i.removeEventListener(k0,e),i.removeEventListener(j0,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(k0,e),i.addEventListener(j0,e),t.current=i)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var QS=wr()?u.useLayoutEffect:u.useEffect;const xO=(function(){var e=u.useRef(null);function t(){yn.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=yn(function(){i<=1?r({isCanceled:function(){return l!==e.current}}):n(r,i-1)});e.current=l}return u.useEffect(function(){return function(){t()}},[]),[n,t]});var CO=[po,Da,Ba,Wp],wO=[po,WS],YS=!1,$O=!0;function ZS(e){return e===Ba||e===Wp}const EO=(function(e,t,n){var r=Jl(N0),i=re(r,2),l=i[0],s=i[1],d=xO(),f=re(d,2),m=f[0],v=f[1];function g(){s(po,!0)}var h=t?wO:CO;return QS(function(){if(l!==N0&&l!==Wp){var b=h.indexOf(l),C=h[b+1],x=n(l);x===YS?s(C,!0):C&&m(function(S){function E(){S.isCanceled()||s(C,!0)}x===!0?E():Promise.resolve(x).then(E)})}},[e,l]),u.useEffect(function(){return function(){v()}},[]),[g,l]});function OO(e,t,n,r){var i=r.motionEnter,l=i===void 0?!0:i,s=r.motionAppear,d=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,C=r.onLeavePrepare,x=r.onAppearStart,S=r.onEnterStart,E=r.onLeaveStart,$=r.onAppearActive,O=r.onEnterActive,P=r.onLeaveActive,R=r.onAppearEnd,I=r.onEnterEnd,T=r.onLeaveEnd,_=r.onVisibleChanged,M=Jl(),z=re(M,2),L=z[0],j=z[1],A=gO(pi),B=re(A,2),K=B[0],V=B[1],U=Jl(null),D=re(U,2),X=D[0],W=D[1],k=K(),F=u.useRef(!1),Y=u.useRef(null);function ne(){return n()}var Z=u.useRef(!1);function ee(){V(pi),W(null,!0)}var fe=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===Cc&&Ee?tt=R==null?void 0:R(Le,je):Ie===wc&&Ee?tt=I==null?void 0:I(Le,je):Ie===$c&&Ee&&(tt=T==null?void 0:T(Le,je)),Ee&&tt!==!1&&ee()}}}),me=SO(fe),ce=re(me,1),Se=ce[0],de=function(Ie){switch(Ie){case Cc:return H(H(H({},po,h),Da,x),Ba,$);case wc:return H(H(H({},po,b),Da,S),Ba,O);case $c:return H(H(H({},po,C),Da,E),Ba,P);default:return{}}},ie=u.useMemo(function(){return de(k)},[k]),he=EO(k,!e,function(je){if(je===po){var Ie=ie[po];return Ie?Ie(ne()):YS}if(oe in ie){var Le;W(((Le=ie[oe])===null||Le===void 0?void 0:Le.call(ie,ne(),null))||null)}return oe===Ba&&k!==pi&&(Se(ne()),v>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){fe({deadline:!0})},v))),oe===WS&&ee(),$O}),ge=re(he,2),pe=ge[0],oe=ge[1],be=ZS(oe);Z.current=be;var we=u.useRef(null);QS(function(){if(!(F.current&&we.current===t)){j(t);var je=F.current;F.current=!0;var Ie;!je&&t&&d&&(Ie=Cc),je&&t&&l&&(Ie=wc),(je&&!t&&m||!je&&g&&!t&&m)&&(Ie=$c);var Le=de(Ie);Ie&&(e||Le[po])?(V(Ie),pe()):V(pi),we.current=t}},[t]),u.useEffect(function(){(k===Cc&&!d||k===wc&&!l||k===$c&&!m)&&V(pi)},[d,l,m]),u.useEffect(function(){return function(){F.current=!1,clearTimeout(Y.current)}},[]);var $e=u.useRef(!1);u.useEffect(function(){L&&($e.current=!0),L!==void 0&&k===pi&&(($e.current||L)&&(_==null||_(L)),$e.current=!0)},[L,k]);var Ae=X;return ie[po]&&oe===Da&&(Ae=q({transition:"none"},Ae)),[k,oe,Ae,L??t]}function RO(e){var t=e;vt(e)==="object"&&(t=e.transitionSupport);function n(i,l){return!!(i.motionName&&t&&l!==!1)}var r=u.forwardRef(function(i,l){var s=i.visible,d=s===void 0?!0:s,f=i.removeOnLeave,m=f===void 0?!0:f,v=i.forceRender,g=i.children,h=i.motionName,b=i.leavedClassName,C=i.eventProps,x=u.useContext(VS),S=x.motion,E=n(i,S),$=u.useRef(),O=u.useRef();function P(){try{return $.current instanceof HTMLElement?$.current:jc(O.current)}catch{return null}}var R=OO(E,d,P,i),I=re(R,4),T=I[0],_=I[1],M=I[2],z=I[3],L=u.useRef(z);z&&(L.current=!0);var j=u.useCallback(function(D){$.current=D,Mp(l,D)},[l]),A,B=q(q({},C),{},{visible:d});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;_===po?K="prepare":ZS(_)?K="active":_===Da&&(K="start");var V=L0(h,"".concat(T,"-").concat(K));A=g(q(q({},B),{},{className:se(L0(h,T),H(H({},V,V&&K),h,typeof h=="string")),style:M}),j)}if(u.isValidElement(A)&&Qi(A)){var U=Ya(A);U||(A=u.cloneElement(A,{ref:j}))}return u.createElement(vO,{ref:O},A)});return r.displayName="CSSMotion",r}const Ko=RO(XS);var Km="add",qm="keep",Xm="remove",Vf="removed";function IO(e){var t;return e&&vt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Qm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(IO)}function PO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,l=Qm(e),s=Qm(t);l.forEach(function(m){for(var v=!1,g=r;g<i;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:Km})})),r=g),n.push(q(q({},h),{},{status:qm})),r+=1,v=!0;break}}v||n.push(q(q({},m),{},{status:Xm}))}),r<i&&(n=n.concat(s.slice(r).map(function(m){return q(q({},m),{},{status:Km})})));var d={};n.forEach(function(m){var v=m.key;d[v]=(d[v]||0)+1});var f=Object.keys(d).filter(function(m){return d[m]>1});return f.forEach(function(m){n=n.filter(function(v){var g=v.key,h=v.status;return g!==m||h!==Xm}),n.forEach(function(v){v.key===m&&(v.status=qm)})}),n}var TO=["component","children","onVisibleChanged","onAllRemoved"],MO=["status"],_O=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function NO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ko,n=(function(r){Uo(l,r);var i=Go(l);function l(){var s;Bn(this,l);for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];return s=i.call.apply(i,[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:Vf})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(b){var C=b.status;return C!==Vf}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Fn(l,[{key:"render",value:function(){var d=this,f=this.state.keyEntities,m=this.props,v=m.component,g=m.children,h=m.onVisibleChanged;m.onAllRemoved;var b=Mt(m,TO),C=v||u.Fragment,x={};return _O.forEach(function(S){x[S]=b[S],delete b[S]}),delete b.keys,u.createElement(C,b,f.map(function(S,E){var $=S.status,O=Mt(S,MO),P=$===Km||$===qm;return u.createElement(t,ke({},x,{key:O.key,visible:P,eventProps:O,onVisibleChanged:function(I){h==null||h(I,{key:O.key}),I||d.removeKey(O.key)}}),function(R,I){return g(q(q({},R),{},{index:E}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(d,f){var m=d.keys,v=f.keyEntities,g=Qm(m),h=PO(v,g);return{keyEntities:h.filter(function(b){var C=v.find(function(x){var S=x.key;return b.key===S});return!(C&&C.status===Vf&&b.status===Xm)})}}}]),l})(u.Component);return H(n,"defaultProps",{component:"div"}),n}const zO=NO(XS),A0=u.createContext(!0);function jO(e){const t=u.useContext(A0),{children:n}=e,[,r]=Wr(),{motion:i}=r,l=u.useRef(!1);return l.current||(l.current=t!==i),l.current?u.createElement(A0.Provider,{value:i},u.createElement(pO,{motion:i},n)):n}const kO=()=>null;var LO=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const AO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let eu,JS,e1,t1;function Vc(){return eu||Zl}function DO(){return JS||xu}function BO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const FO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(eu=t),n!==void 0&&(JS=n),"holderRender"in e&&(t1=i),r&&(BO(r)?A2(Vc(),r):e1=r)},HO=()=>({getPrefixCls:(e,t)=>t||(e?`${Vc()}-${e}`:Vc()),getIconPrefixCls:DO,getRootPrefixCls:()=>eu||Vc(),getTheme:()=>e1,holderRender:t1}),VO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:l,form:s,locale:d,componentSize:f,direction:m,space:v,splitter:g,virtual:h,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,popupOverflow:x,legacyLocale:S,parentContext:E,iconPrefixCls:$,theme:O,componentDisabled:P,segmented:R,statistic:I,spin:T,calendar:_,carousel:M,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:fe,menu:me,pagination:ce,input:Se,textArea:de,empty:ie,badge:he,radio:ge,rate:pe,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:Me,warning:Ye,tour:Pe,tooltip:Fe,popover:wt,popconfirm:mt,floatButton:Bt,floatButtonGroup:At,variant:nn,inputNumber:vn,treeSelect:Vt}=e,Tt=u.useCallback((Qe,_t)=>{const{prefixCls:jt}=e;if(_t)return _t;const Rt=jt||E.getPrefixCls("");return Qe?`${Rt}-${Qe}`:Rt},[E.getPrefixCls,e.prefixCls]),St=$||E.iconPrefixCls||xu,Wt=n||E.csp;sO(St,Wt);const Lt=fO(O,E.theme,{prefixCls:Tt("")}),Ze={csp:Wt,autoInsertSpaceInButton:r,alert:i,anchor:l,locale:d||S,direction:m,space:v,splitter:g,virtual:h,popupMatchSelectWidth:C??b,popupOverflow:x,getPrefixCls:Tt,iconPrefixCls:St,theme:Lt,segmented:R,statistic:I,spin:T,calendar:_,carousel:M,cascader:z,collapse:L,typography:j,checkbox:A,descriptions:B,divider:K,drawer:V,skeleton:U,steps:D,image:X,input:Se,textArea:de,layout:W,list:k,mentions:F,modal:Y,progress:ne,result:Z,slider:ee,breadcrumb:fe,menu:me,pagination:ce,empty:ie,badge:he,radio:ge,rate:pe,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:Me,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])}),AO.forEach(Qe=>{const _t=e[Qe];_t&&(yt[Qe]=_t)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const at=us(()=>yt,yt,(Qe,_t)=>{const jt=Object.keys(Qe),Rt=Object.keys(_t);return jt.length!==Rt.length||jt.some(It=>Qe[It]!==_t[It])}),{layer:Oe}=u.useContext(ds),Ce=u.useMemo(()=>({prefixCls:St,csp:Wt,layer:Oe?"antd":void 0}),[St,Wt,Oe]);let xe=u.createElement(u.Fragment,null,u.createElement(kO,{dropdownMatchSelectWidth:b}),t);const _e=u.useMemo(()=>{var Qe,_t,jt,Rt;return Aa(((Qe=Vi.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((jt=(_t=at.locale)===null||_t===void 0?void 0:_t.Form)===null||jt===void 0?void 0:jt.defaultValidateMessages)||{},((Rt=at.form)===null||Rt===void 0?void 0:Rt.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[at,s==null?void 0:s.validateMessages]);Object.keys(_e).length>0&&(xe=u.createElement(g2.Provider,{value:_e},xe)),d&&(xe=u.createElement(x2,{locale:d,_ANT_MARK__:S2},xe)),xe=u.createElement(Bp.Provider,{value:Ce},xe),f&&(xe=u.createElement(B2,{size:f},xe)),xe=u.createElement(jO,null,xe);const Ke=u.useMemo(()=>{const Qe=Lt||{},{algorithm:_t,token:jt,components:Rt,cssVar:It}=Qe,mn=LO(Qe,["algorithm","token","components","cssVar"]),sn=_t&&(!Array.isArray(_t)||_t.length>0)?Pm(_t):NS,gn={};Object.entries(Rt||{}).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=Pm(Ne.algorithm)),delete Ne.algorithm),gn[Kt]=Ne});const $n=Object.assign(Object.assign({},Yl),jt);return Object.assign(Object.assign({},mn),{theme:sn,token:$n,components:gn,override:Object.assign({override:$n},gn),cssVar:It})},[Lt]);return O&&(xe=u.createElement(zS.Provider,{value:Ke},xe)),at.warning&&(xe=u.createElement(v2.Provider,{value:at.warning},xe)),P!==void 0&&(xe=u.createElement(D2,{disabled:P},xe)),u.createElement(Gt.Provider,{value:at},xe)},Ci=e=>{const t=u.useContext(Gt),n=u.useContext(Hp);return u.createElement(VO,Object.assign({parentContext:t,legacyLocale:n},e))};Ci.ConfigContext=Gt;Ci.SizeContext=Xa;Ci.config=FO;Ci.useConfig=F2;Object.defineProperty(Ci,"SizeContext",{get:()=>Xa});var WO={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 n1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function UO(e){return n1(e)instanceof ShadowRoot}function tu(e){return UO(e)?n1(e):null}function GO(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KO(e,t){ar(e,"[@ant-design/icons] ".concat(t))}function D0(e){return vt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(vt(e.icon)==="object"||typeof e.icon=="function")}function B0(){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[GO(n)]=r}return t},{})}function Ym(e,t,n){return n?J.createElement(e.tag,q(q({key:t},B0(e.attrs)),n),(e.children||[]).map(function(r,i){return Ym(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):J.createElement(e.tag,q({key:t},B0(e.attrs)),(e.children||[]).map(function(r,i){return Ym(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function r1(e){return Wi(e)[0]}function o1(e){return e?Array.isArray(e)?e:[e]:[]}var qO=`
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
+ `,XO=function(t){var n=u.useContext(Bp),r=n.csp,i=n.prefixCls,l=n.layer,s=qO;i&&(s=s.replace(/anticon/g,i)),l&&(s="@layer ".concat(l,` {
151
+ `).concat(s,`
152
+ }`)),u.useEffect(function(){var d=t.current,f=tu(d);Ho(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:f})},[])},QO=["icon","className","onClick","style","primaryColor","secondaryColor"],Hl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function YO(e){var t=e.primaryColor,n=e.secondaryColor;Hl.primaryColor=t,Hl.secondaryColor=n||r1(t),Hl.calculated=!!n}function ZO(){return q({},Hl)}var el=function(t){var n=t.icon,r=t.className,i=t.onClick,l=t.style,s=t.primaryColor,d=t.secondaryColor,f=Mt(t,QO),m=u.useRef(),v=Hl;if(s&&(v={primaryColor:s,secondaryColor:d||r1(s)}),XO(m),KO(D0(n),"icon should be icon definiton, but got ".concat(n)),!D0(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=q(q({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),Ym(g.icon,"svg-".concat(g.name),q(q({className:r,onClick:i,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};el.displayName="IconReact";el.getTwoToneColors=ZO;el.setTwoToneColors=YO;function i1(e){var t=o1(e),n=re(t,2),r=n[0],i=n[1];return el.setTwoToneColors({primaryColor:r,secondaryColor:i})}function JO(){var e=el.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var eR=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];i1(Yc.primary);var In=u.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,l=e.rotate,s=e.tabIndex,d=e.onClick,f=e.twoToneColor,m=Mt(e,eR),v=u.useContext(Bp),g=v.prefixCls,h=g===void 0?"anticon":g,b=v.rootClassName,C=se(b,h,H(H({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),x=s;x===void 0&&d&&(x=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=o1(f),$=re(E,2),O=$[0],P=$[1];return u.createElement("span",ke({role:"img","aria-label":r.name},m,{ref:t,tabIndex:x,onClick:d,className:C}),u.createElement(el,{icon:r,primaryColor:O,secondaryColor:P,style:S}))});In.displayName="AntdIcon";In.getTwoToneColor=JO;In.setTwoToneColor=i1;var tR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:WO}))},nR=u.forwardRef(tR),rR={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"},oR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:rR}))},Up=u.forwardRef(oR),iR={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"},aR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:iR}))},$u=u.forwardRef(aR),lR={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"},sR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:lR}))},cR=u.forwardRef(sR),uR={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"},dR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:uR}))},fR=u.forwardRef(dR),mR=`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`,pR=`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`,vR="".concat(mR," ").concat(pR).split(/[\s\n]+/),gR="aria-",hR="data-";function F0(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(i){(n.aria&&(i==="role"||F0(i,gR))||n.data&&F0(i,hR)||n.attr&&vR.includes(i))&&(r[i]=e[i])}),r}function a1(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}const l1=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Io(e,t){return l1(e,e,t)}const ms=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},s1=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,l=e.duration,s=l===void 0?4.5:l,d=e.showProgress,f=e.pauseOnHover,m=f===void 0?!0:f,v=e.eventKey,g=e.content,h=e.closable,b=e.closeIcon,C=b===void 0?"x":b,x=e.props,S=e.onClick,E=e.onNoticeClose,$=e.times,O=e.hovering,P=u.useState(!1),R=re(P,2),I=R[0],T=R[1],_=u.useState(0),M=re(_,2),z=M[0],L=M[1],j=u.useState(0),A=re(j,2),B=A[0],K=A[1],V=O||I,U=s>0&&d,D=function(){E(v)},X=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===qe.ENTER)&&D()};u.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,$]),u.useEffect(function(){if(!V&&U&&(m||B===0)){var ne=performance.now(),Z,ee=function fe(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(me){var ce=me+B-ne,Se=Math.min(ce/(s*1e3),1);L(Se*100),Se<1&&fe()})};return ee(),function(){m&&cancelAnimationFrame(Z)}}},[s,B,V,U,$]);var W=u.useMemo(function(){return vt(h)==="object"&&h!==null?h:h?{closeIcon:C}:{}},[h,C]),k=xi(W,!0),F=100-(!z||z<0?0:z>100?100:z),Y="".concat(n,"-notice");return u.createElement("div",ke({},x,{ref:t,className:se(Y,i,H({},"".concat(Y,"-closable"),h)),style:r,onMouseEnter:function(Z){var ee;T(!0),x==null||(ee=x.onMouseEnter)===null||ee===void 0||ee.call(x,Z)},onMouseLeave:function(Z){var ee;T(!1),x==null||(ee=x.onMouseLeave)===null||ee===void 0||ee.call(x,Z)},onClick:S}),u.createElement("div",{className:"".concat(Y,"-content")},g),h&&u.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&&u.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:F},F+"%"))}),c1=J.createContext({}),yR=function(t){var n=t.children,r=t.classNames;return J.createElement(c1.Provider,{value:{classNames:r}},n)},H0=8,V0=3,W0=16,bR=function(t){var n={offset:H0,threshold:V0,gap:W0};if(t&&vt(t)==="object"){var r,i,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:H0,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:V0,n.gap=(l=t.gap)!==null&&l!==void 0?l:W0}return[!!t,n]},SR=["className","style","classNames","styles"],xR=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,l=t.className,s=t.style,d=t.motion,f=t.onAllNoticeRemoved,m=t.onNoticeClose,v=t.stack,g=u.useContext(c1),h=g.classNames,b=u.useRef({}),C=u.useState(null),x=re(C,2),S=x[0],E=x[1],$=u.useState([]),O=re($,2),P=O[0],R=O[1],I=n.map(function(V){return{config:V,key:String(V.key)}}),T=bR(v),_=re(T,2),M=_[0],z=_[1],L=z.offset,j=z.threshold,A=z.gap,B=M&&(P.length>0||I.length<=j),K=typeof d=="function"?d(r):d;return u.useEffect(function(){M&&P.length>1&&R(function(V){return V.filter(function(U){return I.some(function(D){var X=D.key;return U===X})})})},[P,I,M]),u.useEffect(function(){var V;if(M&&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,M]),J.createElement(zO,ke({key:r,className:se(i,"".concat(i,"-").concat(r),h==null?void 0:h.list,l,H(H({},"".concat(i,"-stack"),!!M),"".concat(i,"-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,fe=ee.className,me=ee.style,ce=ee.classNames,Se=ee.styles,de=Mt(ee,SR),ie=I.findIndex(function(Ee){return Ee.key===Z}),he={};if(M){var ge=I.length-1-(ie>-1?ie:k-1),pe=r==="top"||r==="bottom"?"-50%":"0";if(ge>0){var oe,be,we;he.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<ge;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:ge*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*(ge<3?ge:3))/((we=b.current[Z])===null||we===void 0?void 0:we.offsetWidth):1;he.transform="translate3d(".concat(pe,", ").concat(Ie,"px, 0) scaleX(").concat(Le,")")}else he.transform="translate3d(".concat(pe,", 0, 0)")}return J.createElement("div",{ref:U,className:se("".concat(i,"-notice-wrapper"),X,ce==null?void 0:ce.wrapper),style:q(q(q({},W),he),Se==null?void 0:Se.wrapper),onMouseEnter:function(){return R(function(tt){return tt.includes(Z)?tt:[].concat(Be(tt),[Z])})},onMouseLeave:function(){return R(function(tt){return tt.filter(function(lt){return lt!==Z})})}},J.createElement(s1,ke({},de,{ref:function(tt){ie>-1?b.current[Z]=tt:delete b.current[Z]},prefixCls:i,classNames:ce,styles:Se,className:se(fe,h==null?void 0:h.notice),style:me,times:ne,key:Y,eventKey:Y,onNoticeClose:m,hovering:M&&P.length>0})))})},CR=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,l=e.motion,s=e.maxCount,d=e.className,f=e.style,m=e.onAllRemoved,v=e.stack,g=e.renderNotifications,h=u.useState([]),b=re(h,2),C=b[0],x=b[1],S=function(M){var z,L=C.find(function(j){return j.key===M});L==null||(z=L.onClose)===null||z===void 0||z.call(L),x(function(j){return j.filter(function(A){return A.key!==M})})};u.useImperativeHandle(t,function(){return{open:function(M){x(function(z){var L=Be(z),j=L.findIndex(function(K){return K.key===M.key}),A=q({},M);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(M){S(M)},destroy:function(){x([])}}});var E=u.useState({}),$=re(E,2),O=$[0],P=$[1];u.useEffect(function(){var _={};C.forEach(function(M){var z=M.placement,L=z===void 0?"topRight":z;L&&(_[L]=_[L]||[],_[L].push(M))}),Object.keys(O).forEach(function(M){_[M]=_[M]||[]}),P(_)},[C]);var R=function(M){P(function(z){var L=q({},z),j=L[M]||[];return j.length||delete L[M],L})},I=u.useRef(!1);if(u.useEffect(function(){Object.keys(O).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[O]),!i)return null;var T=Object.keys(O);return Si.createPortal(u.createElement(u.Fragment,null,T.map(function(_){var M=O[_],z=u.createElement(xR,{key:_,configList:M,placement:_,prefixCls:r,className:d==null?void 0:d(_),style:f==null?void 0:f(_),motion:l,onNoticeClose:S,onAllNoticeRemoved:R,stack:v});return g?g(z,{prefixCls:r,key:_}):z})),i)}),wR=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$R=function(){return document.body},U0=0;function ER(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(l){var s=i[l];s!==void 0&&(e[l]=s)})}),e}function OR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?$R:t,r=e.motion,i=e.prefixCls,l=e.maxCount,s=e.className,d=e.style,f=e.onAllRemoved,m=e.stack,v=e.renderNotifications,g=Mt(e,wR),h=u.useState(),b=re(h,2),C=b[0],x=b[1],S=u.useRef(),E=u.createElement(CR,{container:C,ref:S,prefixCls:i,motion:r,maxCount:l,className:s,style:d,onAllRemoved:f,stack:m,renderNotifications:v}),$=u.useState([]),O=re($,2),P=O[0],R=O[1],I=Kn(function(_){var M=ER(g,_);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(U0),U0+=1),R(function(z){return[].concat(Be(z),[{type:"open",config:M}])})}),T=u.useMemo(function(){return{open:I,close:function(M){R(function(z){return[].concat(Be(z),[{type:"close",key:M}])})},destroy:function(){R(function(M){return[].concat(Be(M),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){x(n())}),u.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;R(function(z){return(_!==z||!M)&&(_=z,M=z.filter(function(L){return!P.includes(L)})),M})}},[P]),[T,E]}var RR={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"},IR=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:RR}))},Eu=u.forwardRef(IR);function Zm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function G0(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function K0(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 PR={},TR=(e,t,n=PR)=>{const r=K0(e),i=K0(t),[l]=Ja("global",Vi.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,d=J.useMemo(()=>Object.assign({closeIcon:J.createElement($u,null)},n),[n]),f=J.useMemo(()=>r===!1?!1:r?Zm(d,i,r):i===!1?!1:i?Zm(d,i):d.closable?d:!1,[r,i,d]);return J.useMemo(()=>{var m,v;if(f===!1)return[!1,null,s,{}];const{closeIconRender:g}=d,{closeIcon:h}=f;let b=h;const C=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}),C)):J.createElement("span",Object.assign({"aria-label":l.close},C),b)),[!0,b,s,C]},[s,l.close,f,d])},MR=()=>J.useReducer(e=>e+1,0),u1=J.createContext(void 0),vi=100,_R=10,NR=vi*_R,d1={Modal:vi,Drawer:vi,Popover:vi,Popconfirm:vi,Tooltip:vi,Tour:vi,FloatButton:vi},zR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function jR(e){return e in d1}const f1=(e,t)=>{const[,n]=Wr(),r=J.useContext(u1),i=jR(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;i?s+=(r?0:n.zIndexPopupBase)+d1[e]:s+=zR[e],l=[r===void 0?t:s,s]}return l},kR=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:l,colorError:s,colorWarning:d,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:v,motionDurationSlow:g,marginXS:h,paddingXS:b,borderRadiusLG:C,zIndexPopup:x,contentPadding:S,contentBg:E}=e,$=`${t}-notice`,O=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}}),R={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:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
170
+ ${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},lr(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
171
+ ${t}-move-up-appear,
172
+ ${t}-move-up-enter
173
+ `]:{animationName:O,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({},R)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},R),{padding:0,textAlign:"start"})}]},LR=e=>({zIndexPopup:e.zIndexPopupBase+NR+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),m1=Rn("Message",e=>{const t=fn(e,{height:150});return kR(t)},LR);var AR=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DR={info:u.createElement(fR,null),success:u.createElement(nR,null),error:u.createElement(Up,null),warning:u.createElement(cR,null),loading:u.createElement(Eu,null)},p1=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:se(`${e}-custom-content`,`${e}-${t}`)},n||DR[t],u.createElement("span",null,r)),BR=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:l}=e,s=AR(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:d}=u.useContext(Gt),f=t||d("message"),m=ms(f),[v,g,h]=m1(f,m);return v(u.createElement(s1,Object.assign({},s,{prefixCls:f,className:se(n,g,`${f}-notice-pure-panel`,h,m),eventKey:"pure",duration:null,content:u.createElement(p1,{prefixCls:f,type:r,icon:i},l)})))};function FR(e,t){return{motionName:t??`${e}-move-up`}}function Gp(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,l)=>n.then(i,l),r.promise=n,r}var HR=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VR=8,WR=3,UR=({children:e,prefixCls:t})=>{const n=ms(t),[r,i,l]=m1(t,n);return r(u.createElement(yR,{classNames:{list:se(i,l,n)}},e))},GR=(e,{prefixCls:t,key:n})=>u.createElement(UR,{prefixCls:t,key:n},e),KR=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:l,duration:s=WR,rtl:d,transitionName:f,onAllRemoved:m}=e,{getPrefixCls:v,getPopupContainer:g,message:h,direction:b}=u.useContext(Gt),C=r||v("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??VR}),S=()=>se({[`${C}-rtl`]:d??b==="rtl"}),E=()=>FR(C,f),$=u.createElement("span",{className:`${C}-close-x`},u.createElement($u,{className:`${C}-close-icon`})),[O,P]=OR({prefixCls:C,style:x,className:S,motion:E,closable:!1,closeIcon:$,duration:s,getContainer:()=>(i==null?void 0:i())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:GR});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:C,message:h})),P});let q0=0;function v1(e){const t=u.useRef(null);return Fp(),[u.useMemo(()=>{const r=f=>{var m;(m=t.current)===null||m===void 0||m.close(f)},i=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:C,type:x,key:S,className:E,style:$,onClose:O}=f,P=HR(f,["content","icon","type","key","className","style","onClose"]);let R=S;return R==null&&(q0+=1,R=`antd-message-${q0}`),Gp(I=>(m(Object.assign(Object.assign({},P),{key:R,content:u.createElement(p1,{prefixCls:v,type:x,icon:C},b),placement:"top",className:se(x&&`${h}-${x}`,E,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),$),onClose:()=>{O==null||O(),I()}})),()=>{r(R)}))},s={open:i,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 C,x;typeof g=="function"?x=g:(C=g,x=h);const S=Object.assign(Object.assign({onClose:x,duration:C},b),{type:f});return i(S)};s[f]=m}),s},[]),u.createElement(KR,Object.assign({key:"message-holder"},e,{ref:t}))]}function qR(e){return v1(e)}function g1(e,t){this.v=e,this.k=t}function gr(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}gr=function(s,d,f,m){function v(g,h){gr(s,g,function(b){return this._invoke(g,h,b)})}d?i?i(s,d,{value:f,enumerable:!m,configurable:!m,writable:!m}):s[d]=f:(v("next",0),v("throw",1),v("return",2))},gr(e,t,n,r)}function Kp(){/*! 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",i=n.toStringTag||"@@toStringTag";function l(b,C,x,S){var E=C&&C.prototype instanceof d?C:d,$=Object.create(E.prototype);return gr($,"_invoke",(function(O,P,R){var I,T,_,M=0,z=R||[],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,_=e,j.n=V,s}};function A(B,K){for(T=B,_=K,t=0;!L&&M&&!V&&t<z.length;t++){var V,U=z[t],D=j.p,X=U[2];B>3?(V=X===K)&&(_=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(M>1)throw TypeError("Generator is already running");for(L&&K===1&&A(K,V),T=K,_=V;(t=T<2?e:_)||!L;){I||(T?T<3?(T>1&&(j.n=-1),A(T,_)):j.n=_:j.v=_);try{if(M=2,I){if(T||(B="next"),t=I[B]){if(!(t=t.call(I,_)))throw TypeError("iterator result is not an object");if(!t.done)return t;_=t.value,T<2&&(T=0)}else T===1&&(t=I.return)&&t.call(I),T<2&&(_=TypeError("The iterator does not provide a '"+B+"' method"),T=1);I=e}else if((t=(L=j.n<0)?_:O.call(P,j))!==s)break}catch(U){I=e,T=1,_=U}finally{M=1}}return{value:t,done:L}}})(b,x,S),!0),$}var s={};function d(){}function f(){}function m(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(gr(t={},r,function(){return this}),t),g=m.prototype=d.prototype=Object.create(v);function h(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,m):(b.__proto__=m,gr(b,i,"GeneratorFunction")),b.prototype=Object.create(g),b}return f.prototype=m,gr(g,"constructor",m),gr(m,"constructor",f),f.displayName="GeneratorFunction",gr(m,i,"GeneratorFunction"),gr(g),gr(g,i,"Generator"),gr(g,r,function(){return this}),gr(g,"toString",function(){return"[object Generator]"}),(Kp=function(){return{w:l,m:h}})()}function nu(e,t){function n(i,l,s,d){try{var f=e[i](l),m=f.value;return m instanceof g1?t.resolve(m.v).then(function(v){n("next",v,s,d)},function(v){n("throw",v,s,d)}):t.resolve(m).then(function(v){f.value=v,s(f)},function(v){return n("throw",v,s,d)})}catch(v){d(v)}}var r;this.next||(gr(nu.prototype),gr(nu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),gr(this,"_invoke",function(i,l,s){function d(){return new t(function(f,m){n(i,s,f,m)})}return r=r?r.then(d,d):d()},!0)}function h1(e,t,n,r,i){return new nu(Kp().w(e,t,n,r),i||Promise)}function XR(e,t,n,r,i){var l=h1(e,t,n,r,i);return l.next().then(function(s){return s.done?s.value:l.next()})}function QR(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in t)return i.value=r,i.done=!1,i;return i.done=!0,i}}function X0(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=Kp(),t=e.m(yr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(s){var d=typeof s=="function"&&s.constructor;return!!d&&(d===n||(d.displayName||d.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function l(s){var d,f;return function(m){d||(d={stop:function(){return f(m.a,2)},catch:function(){return m.v},abrupt:function(g,h){return f(m.a,i[g],h)},delegateYield:function(g,h,b){return d.resultName=h,f(m.d,X0(g),b)},finish:function(g){return f(m.f,g)}},f=function(g,h,b){m.p=d.prev,m.n=d.next;try{return g(h,b)}finally{d.next=m.n}}),d.resultName&&(d[d.resultName]=m.v,d.resultName=void 0),d.sent=m.v,d.next=m.n;try{return s.call(this,d)}finally{m.p=d.prev,m.n=d.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 g1(f,m)},AsyncIterator:nu,async:function(f,m,v,g,h){return(r(m)?h1:XR)(l(f),m,v,g,h)},keys:QR,values:X0}})()}function Q0(e,t,n,r,i,l,s){try{var d=e[l](s),f=d.value}catch(m){return void n(m)}d.done?t(f):Promise.resolve(f).then(r,i)}function Yi(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var l=e.apply(t,n);function s(f){Q0(l,r,i,s,d,"next",f)}function d(f){Q0(l,r,i,s,d,"throw",f)}s(void 0)})}}var ps=q({},R$),YR=ps.version,Wf=ps.render,ZR=ps.unmountComponentAtNode,Ou;try{var JR=Number((YR||"").split(".")[0]);JR>=18&&(Ou=ps.createRoot)}catch{}function Y0(e){var t=ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&vt(t)==="object"&&(t.usingClientEntryPoint=e)}var ru="__rc_react_root__";function eI(e,t){Y0(!0);var n=t[ru]||Ou(t);Y0(!1),n.render(e),t[ru]=n}function tI(e,t){Wf==null||Wf(e,t)}function nI(e,t){if(Ou){eI(e,t);return}tI(e,t)}function rI(e){return Jm.apply(this,arguments)}function Jm(){return Jm=Yi(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 i;(i=t[ru])===null||i===void 0||i.unmount(),delete t[ru]}));case 1:case"end":return r.stop()}},e)})),Jm.apply(this,arguments)}function oI(e){ZR(e)}function iI(e){return ep.apply(this,arguments)}function ep(){return ep=Yi(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",rI(t));case 2:oI(t);case 3:case"end":return r.stop()}},e)})),ep.apply(this,arguments)}const aI=(e,t)=>(nI(e,t),()=>iI(t));let lI=aI;function y1(e){return lI}const Uf=()=>({height:0,opacity:0}),Z0=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},sI=e=>({height:e?e.offsetHeight:0}),Gf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",cI=(e=Zl)=>({motionName:`${e}-motion-collapse`,onAppearStart:Uf,onEnterStart:Uf,onAppearActive:Z0,onEnterActive:Z0,onLeaveStart:sI,onLeaveActive:Uf,onAppearEnd:Gf,onEnterEnd:Gf,onLeaveEnd:Gf,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 Xp=(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 i=e.getBoundingClientRect(),l=i.width,s=i.height;if(l||s)return!0}}return!1}),uI=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(",")}}}}},dI=lO("Wave",uI),b1=`${Zl}-wave-target`;function fI(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 mI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return(t=[n,r,i].find(fI))!==null&&t!==void 0?t:null}function Kf(e){return Number.isNaN(e)?0:e}const pI=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,l=u.useRef(null),s=u.useRef(null);u.useEffect(()=>{s.current=i()},[]);const[d,f]=u.useState(null),[m,v]=u.useState([]),[g,h]=u.useState(0),[b,C]=u.useState(0),[x,S]=u.useState(0),[E,$]=u.useState(0),[O,P]=u.useState(!1),R={left:g,top:b,width:x,height:E,borderRadius:m.map(_=>`${_}px`).join(" ")};d&&(R["--wave-color"]=d);function I(){const _=getComputedStyle(n);f(mI(n));const M=_.position==="static",{borderLeftWidth:z,borderTopWidth:L}=_;h(M?n.offsetLeft:Kf(-Number.parseFloat(z))),C(M?n.offsetTop:Kf(-Number.parseFloat(L))),S(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:j,borderTopRightRadius:A,borderBottomLeftRadius:B,borderBottomRightRadius:K}=_;v([j,A,K,B].map(V=>Kf(Number.parseFloat(V))))}if(u.useEffect(()=>{if(n){const _=yn(()=>{I(),P(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(I),M.observe(n)),()=>{yn.cancel(_),M==null||M.disconnect()}}},[n]),!O)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(b1));return u.createElement(Ko,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,M)=>{var z,L;if(M.deadline||M.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)=>u.createElement("div",{ref:Wo(l,M),className:se(t,_,{"wave-quick":T}),style:R}))},vI=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const l=y1();let s=null;function d(){return s}s=l(u.createElement(pI,Object.assign({},t,{target:e,registerUnmount:d})),i)},gI=(e,t,n)=>{const{wave:r}=u.useContext(Gt),[,i,l]=Wr(),s=Kn(m=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${b1}`)||v,{showEffect:h}=r||{};(h||vI)(g,{className:t,token:i,component:n,event:m,hashId:l})}),d=u.useRef(null);return m=>{yn.cancel(d.current),d.current=yn(()=>{s(m)})}},S1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=u.useContext(Gt),l=u.useRef(null),s=i("wave"),[,d]=dI(s),f=gI(l,se(s,d),r);if(J.useEffect(()=>{const v=l.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=h=>{!Xp(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=Qi(t)?Wo(Ya(t),l):l;return Io(t,{ref:m})},qo=e=>{const t=J.useContext(Xa);return J.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},hI=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},yI=Rn(["Space","Compact"],e=>[hI(e)],()=>({}),{resetStyle:!1});var x1=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ru=u.createContext(null),Iu=(e,t)=>{const n=u.useContext(Ru),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:l,isLastItem:s}=n,d=i==="vertical"?"-vertical-":"-";return se(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:l,[`${e}-compact${d}last-item`]:s,[`${e}-compact${d}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},bI=e=>{const{children:t}=e;return u.createElement(Ru.Provider,{value:null},t)},SI=e=>{const{children:t}=e,n=x1(e,["children"]);return u.createElement(Ru.Provider,{value:u.useMemo(()=>n,[n])},t)},xI=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Gt),{size:r,direction:i,block:l,prefixCls:s,className:d,rootClassName:f,children:m}=e,v=x1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=qo(O=>r??O),h=t("space-compact",s),[b,C]=yI(h),x=se(h,C,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:i==="vertical"},d,f),S=u.useContext(Ru),E=_r(m),$=u.useMemo(()=>E.map((O,P)=>{const R=(O==null?void 0:O.key)||`${h}-item-${P}`;return u.createElement(SI,{key:R,compactSize:g,compactDirection:i,isFirstItem:P===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:P===E.length-1&&(!S||(S==null?void 0:S.isLastItem))},O)}),[E,S,i,g,h]);return E.length===0?null:b(u.createElement("div",Object.assign({className:x},v),$))};var CI=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const C1=u.createContext(void 0),wI=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Gt),{prefixCls:r,size:i,className:l}=e,s=CI(e,["prefixCls","size","className"]),d=t("btn-group",r),[,,f]=Wr(),m=u.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),v=se(d,{[`${d}-${m}`]:m,[`${d}-rtl`]:n==="rtl"},l,f);return u.createElement(C1.Provider,{value:i},u.createElement("div",Object.assign({},s,{className:v})))},J0=/^[\u4E00-\u9FA5]{2}$/,tp=J0.test.bind(J0);function ey(e){return typeof e=="string"}function qf(e){return e==="text"||e==="link"}function $I(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ey(e.type)&&tp(e.props.children)?Io(e,{children:e.props.children.split("").join(n)}):ey(e)?tp(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):a1(e)?J.createElement("span",null,e):e}function EI(e,t){let n=!1;const r=[];return J.Children.forEach(e,i=>{const l=typeof i,s=l==="string"||l==="number";if(n&&s){const d=r.length-1,f=r[d];r[d]=`${f}${i}`}else r.push(i);n=s}),J.Children.map(r,i=>$I(i,t))}["default","primary","danger"].concat(Be(Ui));const w1=u.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:l}=e,s=se(`${l}-icon`,n);return J.createElement("span",{ref:t,className:s,style:r},i)}),ty=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:l}=e,s=se(`${n}-loading-icon`,r);return J.createElement(w1,{prefixCls:n,className:s,style:i,ref:t},J.createElement(Eu,{className:l}))}),Xf=()=>({width:0,opacity:0,transform:"scale(0)"}),Qf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),OI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:l,mount:s}=e,d=!!n;return r?J.createElement(ty,{prefixCls:t,className:i,style:l}):J.createElement(Ko,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Xf,onAppearActive:Qf,onEnterStart:Xf,onEnterActive:Qf,onLeaveStart:Qf,onLeaveActive:Xf},({className:f,style:m},v)=>{const g=Object.assign(Object.assign({},l),m);return J.createElement(ty,{prefixCls:t,className:se(i,f),style:g,ref:v})})},ny=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),RI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,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}},ny(`${t}-primary`,i),ny(`${t}-danger`,l)]}};var II=["b"],PI=["v"],Yf=function(t){return Math.round(Number(t||0))},TI=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,i=Mt(n,II);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ts=(function(e){Uo(n,e);var t=Go(n);function n(r){return Bn(this,n),t.call(this,TI(r))}return Fn(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),l=Yf(i.s*100),s=Yf(i.b*100),d=Yf(i.h),f=i.a,m="hsb(".concat(d,", ").concat(l,"%, ").concat(s,"%)"),v="hsba(".concat(d,", ").concat(l,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?m:v}},{key:"toHsb",value:function(){var i=this.toHsv(),l=i.v,s=Mt(i,PI);return q(q({},s),{},{b:l,a:this.a})}}]),n})(dn),MI=function(t){return t instanceof ts?t:new ts(t)};MI("#1677ff");const _I=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",NI=(e,t)=>e?_I(e,t):"";let np=(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(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:i,percent:l})=>({color:new e(i),percent:l})),this.metaColor=new ts(this.colors[0].color.metaColor)):this.metaColor=new ts(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 NI(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(i=>`${i.color.toRgbString()} ${i.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,i)=>{const l=n.colors[i];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var zI={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"},jI=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:zI}))},ns=u.forwardRef(jI),$1=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,l=e.style,s=e.children,d=e.isActive,f=e.role,m=e.classNames,v=e.styles,g=J.useState(d||r),h=re(g,2),b=h[0],C=h[1];return J.useEffect(function(){(r||d)&&C(!0)},[r,d]),b?J.createElement("div",{ref:t,className:se("".concat(n,"-content"),H(H({},"".concat(n,"-content-active"),d),"".concat(n,"-content-inactive"),!d),i),style:l,role:f},J.createElement("div",{className:se("".concat(n,"-content-box"),m==null?void 0:m.body),style:v==null?void 0:v.body},s)):null});$1.displayName="PanelContent";var kI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],E1=J.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,l=e.isActive,s=e.onItemClick,d=e.forceRender,f=e.className,m=e.classNames,v=m===void 0?{}:m,g=e.styles,h=g===void 0?{}:g,b=e.prefixCls,C=e.collapsible,x=e.accordion,S=e.panelKey,E=e.extra,$=e.header,O=e.expandIcon,P=e.openMotion,R=e.destroyInactivePanel,I=e.children,T=Mt(e,kI),_=C==="disabled",M=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:x?"tab":"button"},"aria-expanded",l),"aria-disabled",_),"tabIndex",_?-1:0),L=typeof O=="function"?O(e):J.createElement("i",{className:"arrow"}),j=L&&J.createElement("div",ke({className:"".concat(b,"-expand-icon")},["header","icon"].includes(C)?z:{}),L),A=se("".concat(b,"-item"),H(H({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),_),f),B=se(i,"".concat(b,"-header"),H({},"".concat(b,"-collapsible-").concat(C),!!C),v.header),K=q({className:B,style:h.header},["header","icon"].includes(C)?{}: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")},C==="header"?z:{}),$),M&&J.createElement("div",{className:"".concat(b,"-extra")},E)),J.createElement(Ko,ke({visible:l,leavedClassName:"".concat(b,"-content-hidden")},P,{forceRender:d,removeOnLeave:R}),function(V,U){var D=V.className,X=V.style;return J.createElement($1,{ref:U,prefixCls:b,className:D,classNames:v,style:X,styles:h,isActive:l,forceRender:d,role:x?"tabpanel":void 0},I)}))}),LI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],AI=function(t,n){var r=n.prefixCls,i=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,d=n.onItemClick,f=n.activeKey,m=n.openMotion,v=n.expandIcon;return t.map(function(g,h){var b=g.children,C=g.label,x=g.key,S=g.collapsible,E=g.onItemClick,$=g.destroyInactivePanel,O=Mt(g,LI),P=String(x??h),R=S??l,I=$??s,T=function(z){R!=="disabled"&&(d(z),E==null||E(z))},_=!1;return i?_=f[0]===P:_=f.indexOf(P)>-1,J.createElement(E1,ke({},O,{prefixCls:r,key:P,panelKey:P,isActive:_,accordion:i,openMotion:m,expandIcon:v,header:C,collapsible:R,onItemClick:T,destroyInactivePanel:I}),b)})},DI=function(t,n,r){if(!t)return null;var i=r.prefixCls,l=r.accordion,s=r.collapsible,d=r.destroyInactivePanel,f=r.onItemClick,m=r.activeKey,v=r.openMotion,g=r.expandIcon,h=t.key||String(n),b=t.props,C=b.header,x=b.headerClass,S=b.destroyInactivePanel,E=b.collapsible,$=b.onItemClick,O=!1;l?O=m[0]===h:O=m.indexOf(h)>-1;var P=E??s,R=function(_){P!=="disabled"&&(f(_),$==null||$(_))},I={key:h,panelKey:h,header:C,headerClass:x,isActive:O,prefixCls:i,destroyInactivePanel:S??d,openMotion:v,accordion:l,children:t.props.children,onItemClick:R,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 BI(e,t,n){return Array.isArray(e)?AI(e,n):_r(t).map(function(r,i){return DI(r,i,n)})}function FI(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 HI=J.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,l=i===void 0?!1:i,s=e.style,d=e.accordion,f=e.className,m=e.children,v=e.collapsible,g=e.openMotion,h=e.expandIcon,b=e.activeKey,C=e.defaultActiveKey,x=e.onChange,S=e.items,E=se(r,f),$=tr([],{value:b,onChange:function(M){return x==null?void 0:x(M)},defaultValue:C,postState:FI}),O=re($,2),P=O[0],R=O[1],I=function(M){return R(function(){if(d)return P[0]===M?[]:[M];var z=P.indexOf(M),L=z>-1;return L?P.filter(function(j){return j!==M}):[].concat(Be(P),[M])})};ar(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=BI(S,m,{prefixCls:r,accordion:d,openMotion:g,expandIcon:h,collapsible:v,destroyInactivePanel:l,onItemClick:I,activeKey:P});return J.createElement("div",ke({ref:t,className:E,style:s,role:d?"tablist":void 0},xi(e,{aria:!0,data:!0})),T)});const Qp=Object.assign(HI,{Panel:E1});Qp.Panel;const VI=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Gt),{prefixCls:r,className:i,showArrow:l=!0}=e,s=n("collapse",r),d=se({[`${s}-no-arrow`]:!l},i);return u.createElement(Qp.Panel,Object.assign({ref:t},e,{prefixCls:s,className:d}))}),WI=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`}}}),UI=e=>({animationDuration:e,animationFillMode:"both"}),GI=e=>({animationDuration:e,animationFillMode:"both"}),Yp=(e,t,n,r,i=!1)=>{const l=i?"&":"";return{[`
179
+ ${l}${e}-enter,
180
+ ${l}${e}-appear
181
+ `]:Object.assign(Object.assign({},UI(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},GI(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"}}},KI=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}}),qI=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}}),XI=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}}),QI=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}}),YI=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}}),ZI=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}}),JI=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}}),eP=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}}),tP={"move-up":{inKeyframes:JI,outKeyframes:eP},"move-down":{inKeyframes:KI,outKeyframes:qI},"move-left":{inKeyframes:XI,outKeyframes:QI},"move-right":{inKeyframes:YI,outKeyframes:ZI}},ry=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:l}=tP[t];return[Yp(r,i,l,e.motionDurationMid),{[`
185
+ ${r}-enter,
186
+ ${r}-appear
187
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},O1=new Ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),R1=new Ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),I1=new Ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),P1=new Ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),nP=new Ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),rP=new Ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oP=new Ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),iP=new Ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),aP={"slide-up":{inKeyframes:O1,outKeyframes:R1},"slide-down":{inKeyframes:I1,outKeyframes:P1},"slide-left":{inKeyframes:nP,outKeyframes:rP},"slide-right":{inKeyframes:oP,outKeyframes:iP}},ou=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:l}=aP[t];return[Yp(r,i,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}}]},lP=new Ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sP=new Ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),oy=new Ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iy=new Ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),cP=new Ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),uP=new Ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),dP=new Ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),fP=new Ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mP=new Ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),pP=new Ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vP=new Ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),gP=new Ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),hP={zoom:{inKeyframes:lP,outKeyframes:sP},"zoom-big":{inKeyframes:oy,outKeyframes:iy},"zoom-big-fast":{inKeyframes:oy,outKeyframes:iy},"zoom-left":{inKeyframes:dP,outKeyframes:fP},"zoom-right":{inKeyframes:mP,outKeyframes:pP},"zoom-up":{inKeyframes:cP,outKeyframes:uP},"zoom-down":{inKeyframes:vP,outKeyframes:gP}},yP=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:l}=hP[t];return[Yp(r,i,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}}]},bP=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:m,lineType:v,colorBorder:g,colorText:h,colorTextHeading:b,colorTextDisabled:C,fontSizeLG:x,lineHeight:S,lineHeightLG:E,marginSM:$,paddingSM:O,paddingLG:P,paddingXS:R,motionDurationSlow:I,fontSizeIcon:T,contentPadding:_,fontHeight:M,fontHeightLG:z}=e,L=`${le(m)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},lr(e)),{backgroundColor:i,border:L,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
194
+ &,
195
+ & > ${t}-header`]:{borderRadius:`${le(f)} ${le(f)} 0 0`}},"&:last-child":{[`
196
+ &,
197
+ & > ${t}-header`]:{borderRadius:`0 0 ${le(f)} ${le(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`},Gi(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},fs()),{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:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:R,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(R).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:x,lineHeight:E,[`> ${t}-header`]:{padding:d,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 ${le(f)} ${le(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},SP=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},xP=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,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:i,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},CP=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}}}}}},wP=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"}),$P=Rn("Collapse",e=>{const t=fn(e,{collapseHeaderPaddingSM:`${le(e.paddingXS)} ${le(e.paddingSM)}`,collapseHeaderPaddingLG:`${le(e.padding)} ${le(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[bP(t),xP(t),CP(t),SP(t),WI(t)]},wP),EP=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:l,style:s}=Vr("collapse"),{prefixCls:d,className:f,rootClassName:m,style:v,bordered:g=!0,ghost:h,size:b,expandIconPosition:C="start",children:x,destroyInactivePanel:S,destroyOnHidden:E,expandIcon:$}=e,O=qo(K=>{var V;return(V=b??K)!==null&&V!==void 0?V:"middle"}),P=n("collapse",d),R=n(),[I,T,_]=$P(P),M=u.useMemo(()=>C==="left"?"start":C==="right"?"end":C,[C]),z=$??i,L=u.useCallback((K={})=>{const V=typeof z=="function"?z(K):u.createElement(ns,{rotate:K.isActive?r==="rtl"?-90:90:void 0,"aria-label":K.isActive?"expanded":"collapsed"});return Io(V,()=>{var U;return{className:se((U=V.props)===null||U===void 0?void 0:U.className,`${P}-arrow`)}})},[z,P,r]),j=se(`${P}-icon-position-${M}`,{[`${P}-borderless`]:!g,[`${P}-rtl`]:r==="rtl",[`${P}-ghost`]:!!h,[`${P}-${O}`]:O!=="middle"},l,f,m,T,_),A=u.useMemo(()=>Object.assign(Object.assign({},cI(R)),{motionAppear:!1,leavedClassName:`${P}-content-hidden`}),[R,P]),B=u.useMemo(()=>x?_r(x).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 Io(K,k)}return K}):null,[x]);return I(u.createElement(Qp,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))}),iu=Object.assign(EP,{Panel:VI}),OP=e=>e instanceof np?e:new np(e),RP=(e,t)=>{const{r:n,g:r,b:i,a:l}=e.toRgb(),s=new ts(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+i*.114>192},T1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return fn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},M1=e=>{var t,n,r,i,l,s;const d=(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=(i=e.contentLineHeight)!==null&&i!==void 0?i:Hc(d),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:Hc(f),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:Hc(m),b=RP(new np(e.colorBgSolid),"#fff")?"#000":"#fff",C=Ui.reduce((x,S)=>Object.assign(Object.assign({},x),{[`${S}ShadowColor`]:`0 ${le(e.controlOutlineWidth)} 0 ${Ll(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{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:d,contentFontSizeSM:f,contentFontSizeLG:m,contentLineHeight:v,contentLineHeightSM:g,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-d*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)})},IP=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:l,motionEaseInOut:s,iconGap:d,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${le(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`]:fs(),"> a":{color:"currentColor"},"&:not(:disabled)":Gi(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:i,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(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(d).mul(-1).equal()}}}}}},_1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),PP=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),TP=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Pu=(e,t,n,r,i,l,s,d)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_1(e,Object.assign({background:t},s),Object.assign({background:t},d))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:l||void 0}})}),MP=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},TP(e))}),_P=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Tu=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?_P:MP;return Object.assign(Object.assign({},l(e)),_1(e.componentCls,t,n))},Mu=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Tu(e,r,i))}),_u=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Tu(e,r,i))}),Nu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),zu=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Tu(e,n,r))}),Po=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Tu(e,r,i,n))}),NP=e=>{const{componentCls:t}=e;return Ui.reduce((n,r)=>{const i=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],d=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:i,boxShadow:e[`${r}ShadowColor`]},Mu(e,e.colorTextLightSolid,i,{background:s},{background:m})),_u(e,i,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),Nu(e)),zu(e,l,{color:i,background:d},{color:i,background:f})),Po(e,i,"link",{color:s},{color:m})),Po(e,i,"text",{color:s,background:l},{color:m,background:f}))})},{})},zP=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})),Nu(e)),zu(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Pu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Po(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},_u(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Nu(e)),zu(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Po(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Po(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Pu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),kP=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})),_u(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Nu(e)),zu(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Po(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Po(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Pu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),LP=e=>Object.assign(Object.assign({},Po(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Pu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),AP=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:zP(e),[`${t}-color-primary`]:jP(e),[`${t}-color-dangerous`]:kP(e),[`${t}-color-link`]:LP(e)},NP(e))},DP=e=>Object.assign(Object.assign(Object.assign(Object.assign({},_u(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Po(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})),Po(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Zp=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:l,buttonPaddingHorizontal:s,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:i,height:r,padding:`${le(f)} ${le(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:PP(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},BP=e=>{const t=fn(e,{fontSize:e.contentFontSize});return Zp(t,e.componentCls)},FP=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 Zp(t,`${e.componentCls}-sm`)},HP=e=>{const t=fn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Zp(t,`${e.componentCls}-lg`)},VP=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},WP=Rn("Button",e=>{const t=T1(e);return[IP(t),BP(t),FP(t),HP(t),VP(t),AP(t),DP(t),RI(t)]},M1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function UP(e,t,n,r){const{focusElCls:i,focus:l,borderElCls:s}=n,d=s?"> *":"",f=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${d}`).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}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${d}`]:{zIndex:0}})}}function GP(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ju(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,l=`${i}-compact`;return{[l]:Object.assign(Object.assign({},UP(e,l,t,i)),GP(i,l,t))}}function KP(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 qP(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 XP(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},KP(e,t,e.componentCls)),qP(e.componentCls,t))}}const QP=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,l=i(r).mul(-1).equal(),s=d=>{const f=`${t}-compact${d?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:d?l:0,insetInlineStart:d?0:l,backgroundColor:n,content:'""',width:d?"100%":r,height:d?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},YP=Cu(["Button","compact"],e=>{const t=T1(e);return[ju(t),XP(t),QP(t)]},M1);var ZP=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function JP(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 eT={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},tT=J.forwardRef((e,t)=>{var n,r;const{loading:i=!1,prefixCls:l,color:s,variant:d,type:f,danger:m=!1,shape:v,size:g,styles:h,disabled:b,className:C,rootClassName:x,children:S,icon:E,iconPosition:$="start",ghost:O=!1,block:P=!1,htmlType:R="button",classNames:I,style:T={},autoInsertSpace:_,autoFocus:M}=e,z=ZP(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]=u.useMemo(()=>{if(s&&d)return[s,d];if(f||m){const mt=eT[L]||[];return m?["danger",mt[1]]:mt}return j!=null&&j.color&&(j!=null&&j.variant)?[j.color,j.variant]:["default","outlined"]},[s,d,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=_??W)!==null&&n!==void 0?n:!0,ee=D("btn",l),[fe,me,ce]=WP(ee),Se=u.useContext(qa),de=b??Se,ie=u.useContext(C1),he=u.useMemo(()=>JP(i),[i]),[ge,pe]=u.useState(he.loading),[oe,be]=u.useState(!1),we=u.useRef(null),$e=Xi(t,we),Ae=u.Children.count(S)===1&&!E&&!qf(K),je=u.useRef(!0);J.useEffect(()=>(je.current=!1,()=>{je.current=!0}),[]),tn(()=>{let mt=null;he.delay>0?mt=setTimeout(()=>{mt=null,pe(!0)},he.delay):pe(he.loading);function Bt(){mt&&(clearTimeout(mt),mt=null)}return Bt},[he.delay,he.loading]),u.useEffect(()=>{if(!we.current||!Z)return;const mt=we.current.textContent||"";Ae&&tp(mt)?oe||be(!0):oe&&be(!1)}),u.useEffect(()=>{M&&we.current&&we.current.focus()},[]);const Ie=J.useCallback(mt=>{var Bt;if(ge||de){mt.preventDefault();return}(Bt=e.onClick)===null||Bt===void 0||Bt.call(e,("href"in e,mt))},[e.onClick,ge,de]),{compactSize:Le,compactItemClassnames:Ee}=Iu(ee,X),tt={large:"lg",small:"sm",middle:void 0},lt=qo(mt=>{var Bt,At;return(At=(Bt=g??Le)!==null&&Bt!==void 0?Bt:ie)!==null&&At!==void 0?At:mt}),bt=lt&&(r=tt[lt])!==null&&r!==void 0?r:"",st=ge?"loading":E,Ue=Hr(z,["navigate"]),it=se(ee,me,ce,{[`${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`]:O&&!qf(K),[`${ee}-loading`]:ge,[`${ee}-two-chinese-chars`]:oe&&Z&&!ge,[`${ee}-block`]:P,[`${ee}-rtl`]:X==="rtl",[`${ee}-icon-end`]:$==="end"},Ee,C,x,k),Ve=Object.assign(Object.assign({},F),T),dt=se(I==null?void 0:I.icon,Y.icon),Xe=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),ne.icon||{}),Me=mt=>J.createElement(w1,{prefixCls:ee,className:dt,style:Xe},mt),Ye=()=>J.createElement(OI,{existIcon:!!E,prefixCls:ee,loading:ge,mount:je.current});let Pe;E&&!ge?Pe=Me(E):i&&typeof i=="object"&&i.icon?Pe=Me(i.icon):Pe=Ye();const Fe=S||S===0?EI(S,Ae&&Z):null;if(Ue.href!==void 0)return fe(J.createElement("a",Object.assign({},Ue,{className:se(it,{[`${ee}-disabled`]:de}),href:de?void 0:Ue.href,style:Ve,onClick:Ie,ref:$e,tabIndex:de?-1:0,"aria-disabled":de}),Pe,Fe));let wt=J.createElement("button",Object.assign({},z,{type:R,className:it,style:Ve,onClick:Ie,disabled:de,ref:$e}),Pe,Fe,Ee&&J.createElement(YP,{prefixCls:ee}));return qf(K)||(wt=J.createElement(S1,{component:"Button",disabled:ge},wt)),fe(wt)}),rs=tT;rs.Group=wI;rs.__ANT_BUTTON=!0;var N1=u.createContext(null),ay=[];function nT(e,t){var n=u.useState(function(){if(!wr())return null;var C=document.createElement("div");return C}),r=re(n,1),i=r[0],l=u.useRef(!1),s=u.useContext(N1),d=u.useState(ay),f=re(d,2),m=f[0],v=f[1],g=s||(l.current?void 0:function(C){v(function(x){var S=[C].concat(Be(x));return S})});function h(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){var C;(C=i.parentElement)===null||C===void 0||C.removeChild(i),l.current=!1}return tn(function(){return e?s?s(h):h():b(),b},[e]),tn(function(){m.length&&(m.forEach(function(C){return C()}),v(ay))},[m]),[i,g]}function rT(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 i,l;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var d=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(d.width,10),m=parseInt(d.height,10);try{var v=f?"width: ".concat(d.width,";"):"",g=m?"height: ".concat(d.height,";"):"";Ho(`
201
+ #`.concat(t,`::-webkit-scrollbar {
202
+ `).concat(v,`
203
+ `).concat(g,`
204
+ }`),t)}catch(C){console.error(C),i=f,l=m}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,b=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ql(t),{width:h,height:b}}function oT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:rT(e)}function iT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var aT="rc-util-locker-".concat(Date.now()),ly=0;function lT(e){var t=!!e,n=u.useState(function(){return ly+=1,"".concat(aT,"_").concat(ly)}),r=re(n,1),i=r[0];tn(function(){if(t){var l=oT(document.body).width,s=iT();Ho(`
205
+ html body {
206
+ overflow-y: hidden;
207
+ `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
208
+ }`),i)}else ql(i);return function(){ql(i)}},[t,i])}var sT=!1;function cT(e){return sT}var sy=function(t){return t===!1?!1:!wr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},z1=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,d=e.children,f=u.useState(n),m=re(f,2),v=m[0],g=m[1],h=v||n;u.useEffect(function(){(s||n)&&g(n)},[n,s]);var b=u.useState(function(){return sy(i)}),C=re(b,2),x=C[0],S=C[1];u.useEffect(function(){var L=sy(i);S(L??null)});var E=nT(h&&!x),$=re(E,2),O=$[0],P=$[1],R=x??O;lT(r&&n&&wr()&&(R===O||R===document.body));var I=null;if(d&&Qi(d)&&t){var T=d;I=T.ref}var _=Xi(I,t);if(!h||!wr()||x===void 0)return null;var M=R===!1||cT(),z=d;return t&&(z=u.cloneElement(d,{ref:_})),u.createElement(N1.Provider,{value:P},M?z:Si.createPortal(z,R))});function uT(){var e=q({},gu);return e.useId}var cy=0,uy=uT();const j1=uy?(function(t){var n=uy();return t||n}):(function(t){var n=u.useState("ssr-id"),r=re(n,2),i=r[0],l=r[1];return u.useEffect(function(){var s=cy;cy+=1,l("rc_unique_".concat(s))},[]),t||i});var Bi="RC_FORM_INTERNAL_HOOKS",hn=function(){ar(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Qa=u.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}}}),au=u.createContext(null);function rp(e){return e==null?[]:Array.isArray(e)?e:[e]}function dT(e){return e&&!!e._init}function op(){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 ip=op();function fT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function mT(e,t,n){if(_p())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Ul(i,n.prototype),i}function ap(e){var t=typeof Map=="function"?new Map:void 0;return ap=function(r){if(r===null||!fT(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,i)}function i(){return mT(r,arguments,Gl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ul(i,r)},ap(e)}var pT=/%[sdj%]/g,vT=function(){};function lp(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 i=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(pT,function(d){if(d==="%%")return"%";if(i>=l)return d;switch(d){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return d}});return s}return e}function gT(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||gT(t)&&typeof e=="string"&&!e)}function hT(e,t,n){var r=[],i=0,l=e.length;function s(d){r.push.apply(r,Be(d||[])),i++,i===l&&n(r)}e.forEach(function(d){t(d,s)})}function dy(e,t,n){var r=0,i=e.length;function l(s){if(s&&s.length){n(s);return}var d=r;r=r+1,d<i?t(e[d],l):n([])}l([])}function yT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Be(e[n]||[]))}),t}var fy=(function(e){Uo(n,e);var t=Go(n);function n(r,i){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=i,l}return Fn(n)})(ap(Error));function bT(e,t,n,r,i){if(t.first){var l=new Promise(function(h,b){var C=function(E){return r(E),E.length?b(new fy(E,lp(E))):h(i)},x=yT(e);dy(x,n,C)});return l.catch(function(h){return h}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),f=d.length,m=0,v=[],g=new Promise(function(h,b){var C=function(S){if(v.push.apply(v,S),m++,m===f)return r(v),v.length?b(new fy(v,lp(v))):h(i)};d.length||(r(v),h(i)),d.forEach(function(x){var S=e[x];s.indexOf(x)!==-1?dy(S,n,C):hT(S,n,C)})});return g.catch(function(h){return h}),g}function ST(e){return!!(e&&e.message!==void 0)}function xT(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function my(e,t){return function(n){var r;return e.fullFields?r=xT(t,e.fullFields):r=t[n.field||e.fullField],ST(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 py(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 Oa="enum",CT=function(t,n,r,i,l){t[Oa]=Array.isArray(t[Oa])?t[Oa]:[],t[Oa].indexOf(n)===-1&&i.push(Fr(l.messages[Oa],t.fullField,t[Oa].join(", ")))},wT=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.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)||i.push(Fr(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$T=function(t,n,r,i,l){var s=typeof t.len=="number",d=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",C=Array.isArray(n);if(h?g="number":b?g="string":C&&(g="array"),!g)return!1;C&&(v=n.length),b&&(v=n.replace(m,"_").length),s?v!==t.len&&i.push(Fr(l.messages[g].len,t.fullField,t.len)):d&&!f&&v<t.min?i.push(Fr(l.messages[g].min,t.fullField,t.min)):f&&!d&&v>t.max?i.push(Fr(l.messages[g].max,t.fullField,t.max)):d&&f&&(v<t.min||v>t.max)&&i.push(Fr(l.messages[g].range,t.fullField,t.min,t.max))},k1=function(t,n,r,i,l,s){t.required&&(!r.hasOwnProperty(t.field)||qn(n,s||t.type))&&i.push(Fr(l.messages.required,t.fullField))},Oc;const ET=(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}",i=["(?:".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(i.join("|"),")").concat(l),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),v=function(I){return I&&I.exact?d:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(s).concat(t(I),")"),"g")};v.v4=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(n).concat(t(R)),"g")},v.v6=function(R){return R&&R.exact?m:new RegExp("".concat(t(R)).concat(s).concat(t(R)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",b=v.v4().source,C=v.v6().source,x="(?:(?:[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})?",O='(?:[/?#][^\\s"]*)?',P="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(b,"|").concat(C,"|").concat(x).concat(S).concat(E,")").concat($).concat(O);return Oc=new RegExp("(?:^".concat(P,"$)"),"i"),Oc});var Zf={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},Al={integer:function(t){return Al.number(t)&&parseInt(t,10)===t},float:function(t){return Al.number(t)&&!Al.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"&&!Al.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Zf.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Zf.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ET())},hex:function(t){return typeof t=="string"&&!!t.match(Zf.hex)}},OT=function(t,n,r,i,l){if(t.required&&n===void 0){k1(t,n,r,i,l);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=t.type;s.indexOf(d)>-1?Al[d](n)||i.push(Fr(l.messages.types[d],t.fullField,t.type)):d&&vt(n)!==t.type&&i.push(Fr(l.messages.types[d],t.fullField,t.type))},RT=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(Fr(l.messages.whitespace,t.fullField))};const qt={required:k1,whitespace:RT,type:OT,range:$T,enum:CT,pattern:wT};var IT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l)}r(s)},PT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();qt.required(t,n,i,s,l,"array"),n!=null&&(qt.type(t,n,i,s,l),qt.range(t,n,i,s,l))}r(s)},TT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&qt.type(t,n,i,s,l)}r(s)},MT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n,"date")&&!t.required)return r();if(qt.required(t,n,i,s,l),!qn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),qt.type(t,f,i,s,l),f&&qt.range(t,f.getTime(),i,s,l)}}r(s)},_T="enum",NT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&qt[_T](t,n,i,s,l)}r(s)},zT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&(qt.type(t,n,i,s,l),qt.range(t,n,i,s,l))}r(s)},jT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&(qt.type(t,n,i,s,l),qt.range(t,n,i,s,l))}r(s)},kT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&qt.type(t,n,i,s,l)}r(s)},LT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&(qt.type(t,n,i,s,l),qt.range(t,n,i,s,l))}r(s)},AT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),n!==void 0&&qt.type(t,n,i,s,l)}r(s)},DT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n,"string")&&!t.required)return r();qt.required(t,n,i,s,l),qn(n,"string")||qt.pattern(t,n,i,s,l)}r(s)},BT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n)&&!t.required)return r();qt.required(t,n,i,s,l),qn(n)||qt.type(t,n,i,s,l)}r(s)},FT=function(t,n,r,i,l){var s=[],d=Array.isArray(n)?"array":vt(n);qt.required(t,n,i,s,l,d),r(s)},HT=function(t,n,r,i,l){var s=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(qn(n,"string")&&!t.required)return r();qt.required(t,n,i,s,l,"string"),qn(n,"string")||(qt.type(t,n,i,s,l),qt.range(t,n,i,s,l),qt.pattern(t,n,i,s,l),t.whitespace===!0&&qt.whitespace(t,n,i,s,l))}r(s)},Rc=function(t,n,r,i,l){var s=t.type,d=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(qn(n,s)&&!t.required)return r();qt.required(t,n,i,d,l,s),qn(n,s)||qt.type(t,n,i,d,l)}r(d)};const Vl={string:HT,method:kT,number:LT,boolean:TT,regexp:BT,integer:jT,float:zT,array:PT,object:AT,enum:NT,pattern:DT,date:MT,url:Rc,hex:Rc,email:Rc,tel:Rc,required:FT,any:IT};var vs=(function(){function e(t){Bn(this,e),H(this,"rules",null),H(this,"_messages",ip),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(i){var l=n[i];r.rules[i]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=py(op(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,d=i,f=l;if(typeof d=="function"&&(f=d,d={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function m(C){var x=[],S={};function E(O){if(Array.isArray(O)){var P;x=(P=x).concat.apply(P,Be(O))}else x.push(O)}for(var $=0;$<C.length;$++)E(C[$]);x.length?(S=lp(x),f(x,S)):f(null,s)}if(d.messages){var v=this.messages();v===ip&&(v=op()),py(v,d.messages),d.messages=v}else d.messages=this.messages();var g={},h=d.keys||Object.keys(this.rules);h.forEach(function(C){var x=r.rules[C],S=s[C];x.forEach(function(E){var $=E;typeof $.transform=="function"&&(s===n&&(s=q({},s)),S=s[C]=$.transform(S),S!=null&&($.type=$.type||(Array.isArray(S)?"array":vt(S)))),typeof $=="function"?$={validator:$}:$=q({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=C,$.fullField=$.fullField||C,$.type=r.getType($),g[C]=g[C]||[],g[C].push({rule:$,value:S,source:s,field:C}))})});var b={};return bT(g,d,function(C,x){var S=C.rule,E=(S.type==="object"||S.type==="array")&&(vt(S.fields)==="object"||vt(S.defaultField)==="object");E=E&&(S.required||!S.required&&C.value),S.field=C.field;function $(T,_){return q(q({},_),{},{fullField:"".concat(S.fullField,".").concat(T),fullFields:S.fullFields?[].concat(Be(S.fullFields),[T]):[T]})}function O(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(T)?T:[T];!d.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&S.message!==void 0&&S.message!==null&&(_=[].concat(S.message));var M=_.map(my(S,s));if(d.first&&M.length)return b[S.field]=1,x(M);if(!E)x(M);else{if(S.required&&!C.value)return S.message!==void 0?M=[].concat(S.message).map(my(S,s)):d.error&&(M=[d.error(S,Fr(d.messages.required,S.field))]),x(M);var z={};S.defaultField&&Object.keys(C.value).map(function(A){z[A]=S.defaultField}),z=q(q({},z),C.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(d.messages),C.rule.options&&(C.rule.options.messages=d.messages,C.rule.options.error=d.error),j.validate(C.value,C.rule.options||d,function(A){var B=[];M&&M.length&&B.push.apply(B,Be(M)),A&&A.length&&B.push.apply(B,Be(A)),x(B.length?B:null)})}}var P;if(S.asyncValidator)P=S.asyncValidator(S,C.value,O,C.source,d);else if(S.validator){try{P=S.validator(S,C.value,O,C.source,d)}catch(T){var R,I;(R=(I=console).error)===null||R===void 0||R.call(I,T),d.suppressValidatorError||setTimeout(function(){throw T},0),O(T.message)}P===!0?O():P===!1?O(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):P instanceof Array?O(P):P instanceof Error&&O(P.message)}P&&P.then&&P.then(function(){return O()},function(T){return O(T)})},function(C){m(C)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Vl.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),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Vl.required:Vl[this.getType(n)]||void 0}}]),e})();H(vs,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Vl[t]=n});H(vs,"warning",vT);H(vs,"messages",ip);H(vs,"validators",Vl);var Dr="'${name}' is not a valid ${type}",L1={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}"}},vy=vs;function VT(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 gy="CODE_LOGIC_ERROR";function sp(e,t,n,r,i){return cp.apply(this,arguments)}function cp(){return cp=Yi(yr().mark(function e(t,n,r,i,l){var s,d,f,m,v,g,h,b,C;return yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return s=q({},r),delete s.ruleIndex,vy.warning=function(){},s.validator&&(d=s.validator,s.validator=function(){try{return d.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(gy)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),m=new vy(H({},t,[s])),v=Aa(L1,i.validateMessages),m.messages(v),g=[],S.prev=10,S.next=13,Promise.resolve(m.validate(H({},t,n),q({},i)));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 O=E.message,P=O===gy?v.default:O;return u.isValidElement(P)?u.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 sp("".concat(t,".").concat($),E,f,i,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),C=g.map(function(E){return typeof E=="string"?VT(E,b):E}),S.abrupt("return",C);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),cp.apply(this,arguments)}function WT(e,t,n,r,i,l){var s=e.join("."),d=n.map(function(v,g){var h=v.validator,b=q(q({},v),{},{ruleIndex:g});return h&&(b.validator=function(C,x,S){var E=!1,$=function(){for(var R=arguments.length,I=new Array(R),T=0;T<R;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)})},O=h(C,x,$);E=O&&typeof O.then=="function"&&typeof O.catch=="function",ar(E,"`callback` is deprecated. Please return a promise instead."),E&&O.then(function(){S()}).catch(function(P){S(P||" ")})}),b}).sort(function(v,g){var h=v.warningOnly,b=v.ruleIndex,C=g.warningOnly,x=g.ruleIndex;return!!h==!!C?b-x:h?1:-1}),f;if(i===!0)f=new Promise((function(){var v=Yi(yr().mark(function g(h,b){var C,x,S;return yr().wrap(function($){for(;;)switch($.prev=$.next){case 0:C=0;case 1:if(!(C<d.length)){$.next=12;break}return x=d[C],$.next=5,sp(s,t,x,r,l);case 5:if(S=$.sent,!S.length){$.next=9;break}return b([{errors:S,rule:x}]),$.abrupt("return");case 9:C+=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=d.map(function(v){return sp(s,t,v,r,l).then(function(g){return{errors:g,rule:v}})});f=(i?GT(m):UT(m)).then(function(v){return Promise.reject(v)})}return f.catch(function(v){return v}),f}function UT(e){return up.apply(this,arguments)}function up(){return up=Yi(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(i){var l,s=(l=[]).concat.apply(l,Be(i));return s}));case 1:case"end":return r.stop()}},e)})),up.apply(this,arguments)}function GT(e){return dp.apply(this,arguments)}function dp(){return dp=Yi(yr().mark(function e(t){var n;return yr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(d){d.errors.length&&l([d]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return i.stop()}},e)})),dp.apply(this,arguments)}function Ln(e){return rp(e)}function hy(e,t){var n={};return t.forEach(function(r){var i=Oo(e,r);n=mo(n,r,i)}),n}function Va(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return A1(t,r,n)})}function A1(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,i){return e[i]===r})}function KT(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),i=new Set([].concat(n,r));return Be(i).every(function(l){var s=e[l],d=t[l];return typeof s=="function"&&typeof d=="function"?!0:s===d})}function qT(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 yy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],l=t-n;return l>0?[].concat(Be(e.slice(0,n)),[i],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)),[i],Be(e.slice(n+1,r))):e}var XT=["name"],Jr=[];function Jf(e,t,n,r,i,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==i}var Jp=(function(e){Uo(n,e);var t=Go(n);function n(r){var i;if(Bn(this,n),i=t.call(this,r),H(Dt(i),"state",{resetCount:0}),H(Dt(i),"cancelRegisterFunc",null),H(Dt(i),"mounted",!1),H(Dt(i),"touched",!1),H(Dt(i),"dirty",!1),H(Dt(i),"validatePromise",void 0),H(Dt(i),"prevValidating",void 0),H(Dt(i),"errors",Jr),H(Dt(i),"warnings",Jr),H(Dt(i),"cancelRegister",function(){var f=i.props,m=f.preserve,v=f.isListField,g=f.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(v,m,Ln(g)),i.cancelRegisterFunc=null}),H(Dt(i),"getNamePath",function(){var f=i.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(i),"getRules",function(){var f=i.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(i),"refresh",function(){i.mounted&&i.setState(function(f){var m=f.resetCount;return{resetCount:m+1}})}),H(Dt(i),"metaCache",null),H(Dt(i),"triggerMetaEvent",function(f){var m=i.props.onMetaChange;if(m){var v=q(q({},i.getMeta()),{},{destroy:f});Xl(i.metaCache,v)||m(v),i.metaCache=v}else i.metaCache=null}),H(Dt(i),"onStoreChange",function(f,m,v){var g=i.props,h=g.shouldUpdate,b=g.dependencies,C=b===void 0?[]:b,x=g.onReset,S=v.store,E=i.getNamePath(),$=i.getValue(f),O=i.getValue(S),P=m&&Va(m,E);switch(v.type==="valueUpdate"&&v.source==="external"&&!Xl($,O)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Jr,i.warnings=Jr,i.triggerMetaEvent()),v.type){case"reset":if(!m||P){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Jr,i.warnings=Jr,i.triggerMetaEvent(),x==null||x(),i.refresh();return}break;case"remove":{if(h&&Jf(h,f,S,$,O,v)){i.reRender();return}break}case"setField":{var R=v.data;if(P){"touched"in R&&(i.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(i.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(i.errors=R.errors||Jr),"warnings"in R&&(i.warnings=R.warnings||Jr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in R&&Va(m,E,!0)){i.reRender();return}if(h&&!E.length&&Jf(h,f,S,$,O,v)){i.reRender();return}break}case"dependenciesUpdate":{var I=C.map(Ln);if(I.some(function(T){return Va(v.relatedFields,T)})){i.reRender();return}break}default:if(P||(!C.length||E.length||h)&&Jf(h,f,S,$,O,v)){i.reRender();return}break}h===!0&&i.reRender()}),H(Dt(i),"validateRules",function(f){var m=i.getNamePath(),v=i.getValue(),g=f||{},h=g.triggerName,b=g.validateOnly,C=b===void 0?!1:b,x=Promise.resolve().then(Yi(yr().mark(function S(){var E,$,O,P,R,I,T;return yr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if(E=i.props,$=E.validateFirst,O=$===void 0?!1:$,P=E.messageVariables,R=E.validateDebounce,I=i.getRules(),h&&(I=I.filter(function(z){return z}).filter(function(z){var L=z.validateTrigger;if(!L)return!0;var j=rp(L);return j.includes(h)})),!(R&&h)){M.next=10;break}return M.next=8,new Promise(function(z){setTimeout(z,R)});case 8:if(i.validatePromise===x){M.next=10;break}return M.abrupt("return",[]);case 10:return T=WT(m,v,I,f,O,P),T.catch(function(z){return z}).then(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jr;if(i.validatePromise===x){var L;i.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))}),i.errors=j,i.warnings=A,i.triggerMetaEvent(),i.reRender()}}),M.abrupt("return",T);case 13:case"end":return M.stop()}},S)})));return C||(i.validatePromise=x,i.dirty=!0,i.errors=Jr,i.warnings=Jr,i.triggerMetaEvent(),i.reRender()),x}),H(Dt(i),"isFieldValidating",function(){return!!i.validatePromise}),H(Dt(i),"isFieldTouched",function(){return i.touched}),H(Dt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var f=i.props.fieldContext,m=f.getInternalHooks(Bi),v=m.getInitialValue;return v(i.getNamePath())!==void 0}),H(Dt(i),"getErrors",function(){return i.errors}),H(Dt(i),"getWarnings",function(){return i.warnings}),H(Dt(i),"isListField",function(){return i.props.isListField}),H(Dt(i),"isList",function(){return i.props.isList}),H(Dt(i),"isPreserve",function(){return i.props.preserve}),H(Dt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var f={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return f}),H(Dt(i),"getOnlyChild",function(f){if(typeof f=="function"){var m=i.getMeta();return q(q({},i.getOnlyChild(f(i.getControlled(),m,i.props.fieldContext))),{},{isFunction:!0})}var v=_r(f);return v.length!==1||!u.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),H(Dt(i),"getValue",function(f){var m=i.props.fieldContext.getFieldsValue,v=i.getNamePath();return Oo(f||m(!0),v)}),H(Dt(i),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=i.props,v=m.name,g=m.trigger,h=m.validateTrigger,b=m.getValueFromEvent,C=m.normalize,x=m.valuePropName,S=m.getValueProps,E=m.fieldContext,$=h!==void 0?h:E.validateTrigger,O=i.getNamePath(),P=E.getInternalHooks,R=E.getFieldsValue,I=P(Bi),T=I.dispatch,_=i.getValue(),M=S||function(B){return H({},x,B)},z=f[g],L=v!==void 0?M(_):{},j=q(q({},f),L);j[g]=function(){i.touched=!0,i.dirty=!0,i.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=qT.apply(void 0,[x].concat(V)),C&&(B=C(B,_,R(!0))),B!==_&&T({type:"updateValue",namePath:O,value:B}),z&&z.apply(void 0,V)};var A=rp($||[]);return A.forEach(function(B){var K=j[B];j[B]=function(){K&&K.apply(void 0,arguments);var V=i.props.rules;V&&V.length&&T({type:"validateField",namePath:O,triggerName:B})}}),j}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(Bi),d=s.initEntityValue;d(Dt(i))}return i}return Fn(n,[{key:"componentDidMount",value:function(){var i=this.props,l=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var d=s.getInternalHooks,f=d(Bi),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 i=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),d=s.child,f=s.isFunction,m;return f?m=d:u.isValidElement(d)?m=u.cloneElement(d,this.getControlled(d.props)):(ar(!d,"`children` of Field is not validate ReactElement."),m=d),u.createElement(u.Fragment,{key:i},m)}}]),n})(u.Component);H(Jp,"contextType",Qa);H(Jp,"defaultProps",{trigger:"onChange",valuePropName:"value"});function D1(e){var t,n=e.name,r=Mt(e,XT),i=u.useContext(Qa),l=u.useContext(au),s=n!==void 0?Ln(n):void 0,d=(t=r.isListField)!==null&&t!==void 0?t:!!l,f="keep";return d||(f="_".concat((s||[]).join("_"))),u.createElement(Jp,ke({key:f,name:s,isListField:d},r,{fieldContext:i}))}function QT(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,l=e.validateTrigger,s=e.isListField,d=u.useContext(Qa),f=u.useContext(au),m=u.useRef({keys:[],id:0}),v=m.current,g=u.useMemo(function(){var x=Ln(d.prefixName)||[];return[].concat(Be(x),Be(Ln(t)))},[d.prefixName,t]),h=u.useMemo(function(){return q(q({},d),{},{prefixName:g})},[d,g]),b=u.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 C=function(S,E,$){var O=$.source;return O==="internal"?!1:S!==E};return u.createElement(au.Provider,{value:b},u.createElement(Qa.Provider,{value:h},u.createElement(D1,{name:[],shouldUpdate:C,rules:i,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!f},function(x,S){var E=x.value,$=E===void 0?[]:E,O=x.onChange,P=d.getFieldValue,R=function(){var M=P(g||[]);return M||[]},I={add:function(M,z){var L=R();z>=0&&z<=L.length?(v.keys=[].concat(Be(v.keys.slice(0,z)),[v.id],Be(v.keys.slice(z))),O([].concat(Be(L.slice(0,z)),[M],Be(L.slice(z))))):(v.keys=[].concat(Be(v.keys),[v.id]),O([].concat(Be(L),[M]))),v.id+=1},remove:function(M){var z=R(),L=new Set(Array.isArray(M)?M:[M]);L.size<=0||(v.keys=v.keys.filter(function(j,A){return!L.has(A)}),O(z.filter(function(j,A){return!L.has(A)})))},move:function(M,z){if(M!==z){var L=R();M<0||M>=L.length||z<0||z>=L.length||(v.keys=yy(v.keys,M,z),O(yy(L,M,z)))}}},T=$||[];return Array.isArray(T)||(T=[]),r(T.map(function(_,M){var z=v.keys[M];return z===void 0&&(v.keys[M]=v.id,z=v.keys[M],v.id+=1),{name:M,key:z,isListField:!0}}),I,S)})))}function YT(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,l){e.forEach(function(s,d){s.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[d]=f,!(n>0)&&(t&&l(r),i(r))})})}):Promise.resolve([])}var B1="__@field_split__";function em(e){return e.map(function(t){return"".concat(vt(t),":").concat(t)}).join(B1)}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(em(n),r)}},{key:"get",value:function(n){return this.kvs.get(em(n))}},{key:"update",value:function(n,r){var i=this.get(n),l=r(i);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(em(n))}},{key:"map",value:function(n){return Be(this.kvs.entries()).map(function(r){var i=re(r,2),l=i[0],s=i[1],d=l.split(B1);return n({key:d.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 i=r.key,l=r.value;return n[i.join(".")]=l,null}),n}}]),e})(),ZT=["name"],JT=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===Bi?(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,i){if(n.initialValues=r||{},i){var l,s=Aa(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(d){var f=d.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 i=new Ra;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),H(this,"getInitialValue",function(r){var i=Oo(n.initialValues,r);return r.length?Aa(i):i}),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(i){return i!==r})}}),H(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(i,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(i){return i.getNamePath().length}):n.fieldEntities}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Ra;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();i.set(s,l)}),i}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(l){var s=Ln(l);return i.get(s)||{INVALIDATE_NAME_PATH:Ln(l)}})}),H(this,"getFieldsValue",function(r,i){n.warningUnhooked();var l,s,d;if(r===!0||Array.isArray(r)?(l=r,s=i):r&&vt(r)==="object"&&(d=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(d){var C,x;if((C=(x=v).isList)!==null&&C!==void 0&&C.call(x))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)}}),hy(n.store,m.map(Ln))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var i=Ln(r);return Oo(n.store,i)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.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 i=Ln(r),l=n.getFieldsError([i])[0];return l.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Ln(r),l=n.getFieldsError([i])[0];return l.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];var s=i[0],d=i[1],f,m=!1;i.length===0?f=null:i.length===1?Array.isArray(s)?(f=s.map(Ln),m=!1):(f=null,m=s):(f=s.map(Ln),m=d);var v=n.getFieldEntities(!0),g=function(S){return S.isFieldTouched()};if(!f)return m?v.every(function(x){return g(x)||x.isList()}):v.some(g);var h=new Ra;f.forEach(function(x){h.set(x,[])}),v.forEach(function(x){var S=x.getNamePath();f.forEach(function(E){E.every(function($,O){return S[O]===$})&&h.update(E,function($){return[].concat(Be($),[x])})})});var b=function(S){return S.some(g)},C=h.map(function(x){var S=x.value;return S});return m?C.every(b):C.some(b)}),H(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),H(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(s){return s.isFieldValidating()});var l=r.map(Ln);return i.some(function(s){var d=s.getNamePath();return Va(l,d)&&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]:{},i=new Ra,l=n.getFieldEntities(!0);l.forEach(function(f){var m=f.props.initialValue,v=f.getNamePath();if(m!==void 0){var g=i.get(v)||new Set;g.add({entity:f,value:m}),i.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 C=i.get(h);if(C&&C.size>1)ar(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var x=n.getFieldValue(h),S=v.isListField();!S&&(!r.skipExist||x===void 0)&&n.updateStore(mo(n.store,h,Be(C)[0].value))}}}})},d;r.entities?d=r.entities:r.namePathList?(d=[],r.namePathList.forEach(function(f){var m=i.get(f);if(m){var v;(v=d).push.apply(v,Be(Be(m).map(function(g){return g.entity})))}})):d=l,s(d)}),H(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Aa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Ln);l.forEach(function(s){var d=n.getInitialValue(s);n.updateStore(mo(n.store,s,d))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(i,l,{type:"reset"}),n.notifyWatch(l)}),H(this,"setFields",function(r){n.warningUnhooked();var i=n.store,l=[];r.forEach(function(s){var d=s.name,f=Mt(s,ZT),m=Ln(d);l.push(m),"value"in f&&n.updateStore(mo(n.store,m,f.value)),n.notifyObservers(i,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(l){var s=l.getNamePath(),d=l.getMeta(),f=q(q({},d),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return i}),H(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var l=r.getNamePath(),s=Oo(n.store,l);s===void 0&&n.updateStore(mo(n.store,l,i))}}),H(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),H(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),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,d){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(d)&&(!s||f.length>1)){var m=s?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==m&&n.fieldEntities.every(function(g){return!A1(g.getNamePath(),i)})){var v=n.store;n.updateStore(mo(v,i,m,!0)),n.notifyObservers(v,[i],{type:"remove"}),n.triggerDependenciesUpdate(v,i)}}n.notifyWatch([i])}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,l=r.value;n.updateValue(i,l);break}case"validateField":{var s=r.namePath,d=r.triggerName;n.validateFields([s],{triggerName:d});break}}}),H(this,"notifyObservers",function(r,i,l){if(n.subscribable){var s=q(q({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(d){var f=d.onStoreChange;f(r,i,s)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(r,i){var l=n.getDependencyChildrenFields(i);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[i].concat(Be(l))}),l}),H(this,"updateValue",function(r,i){var l=Ln(r),s=n.store;n.updateStore(mo(n.store,l,i)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var d=n.triggerDependenciesUpdate(s,l),f=n.callbacks.onValuesChange;if(f){var m=hy(n.store,[l]);f(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Be(d)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var l=Aa(n.store,r);n.updateStore(l)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(r){var i=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 d=function f(m){var v=s.get(m)||new Set;v.forEach(function(g){if(!i.has(g)){i.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(l.push(h),f(h))}})};return d(r),l}),H(this,"triggerOnFieldsChange",function(r,i){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(i){var d=new Ra;i.forEach(function(m){var v=m.name,g=m.errors;d.set(v,g)}),s.forEach(function(m){m.errors=d.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,i){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(l=r,s=i):s=r;var d=!!l,f=d?l.map(Ln):[],m=[],v=String(Date.now()),g=new Set,h=s||{},b=h.recursive,C=h.dirty;n.getFieldEntities(!0).forEach(function($){if(d||f.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(C&&!$.isFieldDirty())){var O=$.getNamePath();if(g.add(O.join(v)),!d||Va(f,O,b)){var P=$.validateRules(q({validateMessages:q(q({},L1),n.validateMessages)},s));m.push(P.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(R){var I,T=[],_=[];return(I=R.forEach)===null||I===void 0||I.call(R,function(M){var z=M.rule.warningOnly,L=M.errors;z?_.push.apply(_,Be(L)):T.push.apply(T,Be(L))}),T.length?Promise.reject({name:O,errors:T,warnings:_}):{name:O,errors:T,warnings:_}}))}}});var x=YT(m);n.lastValidatePromise=x,x.catch(function($){return $}).then(function($){var O=$.map(function(P){var R=P.name;return R});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,$)});var S=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function($){var O=$.filter(function(P){return P&&P.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:O,outOfDate:n.lastValidatePromise!==x})});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 i=n.callbacks.onFinish;if(i)try{i(r)}catch(l){console.error(l)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function F1(e){var t=u.useRef(),n=u.useState({}),r=re(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){i({})},s=new JT(l);t.current=s.getForm()}return[t.current]}var fp=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eM=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,l=t.children,s=u.useContext(fp),d=u.useRef({});return u.createElement(fp.Provider,{value:q(q({},s),{},{validateMessages:q(q({},s.validateMessages),n),triggerFormChange:function(m,v){r&&r(m,{changedFields:v,forms:d.current}),s.triggerFormChange(m,v)},triggerFormFinish:function(m,v){i&&i(m,{values:v,forms:d.current}),s.triggerFormFinish(m,v)},registerForm:function(m,v){m&&(d.current=q(q({},d.current),{},H({},m,v))),s.registerForm(m,v)},unregisterForm:function(m){var v=q({},d.current);delete v[m],d.current=v,s.unregisterForm(m)}})},l)},tM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],nM=function(t,n){var r=t.name,i=t.initialValues,l=t.fields,s=t.form,d=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,C=t.onValuesChange,x=t.onFieldsChange,S=t.onFinish,E=t.onFinishFailed,$=t.clearOnDestroy,O=Mt(t,tM),P=u.useRef(null),R=u.useContext(fp),I=F1(s),T=re(I,1),_=T[0],M=_.getInternalHooks(Bi),z=M.useSubscribe,L=M.setInitialValues,j=M.setCallbacks,A=M.setValidateMessages,B=M.setPreserve,K=M.destroyForm;u.useImperativeHandle(n,function(){return q(q({},_),{},{nativeElement:P.current})}),u.useEffect(function(){return R.registerForm(r,_),function(){R.unregisterForm(r)}},[R,_,r]),A(q(q({},R.validateMessages),g)),j({onValuesChange:C,onFieldsChange:function(ne){if(R.triggerFormChange(r,ne),x){for(var Z=arguments.length,ee=new Array(Z>1?Z-1:0),fe=1;fe<Z;fe++)ee[fe-1]=arguments[fe];x.apply(void 0,[ne].concat(ee))}},onFinish:function(ne){R.triggerFormFinish(r,ne),S&&S(ne)},onFinishFailed:E}),B(d);var V=u.useRef(null);L(i,!V.current),V.current||(V.current=!0),u.useEffect(function(){return function(){return K($)}},[]);var U,D=typeof f=="function";if(D){var X=_.getFieldsValue(!0);U=f(X,_)}else U=f;z(!D);var W=u.useRef();u.useEffect(function(){KT(W.current||[],l||[])||_.setFields(l||[]),W.current=l},[l,_]);var k=u.useMemo(function(){return q(q({},_),{},{validateTrigger:b})},[_,b]),F=u.createElement(au.Provider,{value:null},u.createElement(Qa.Provider,{value:k},U));return v===!1?F:u.createElement(v,ke({},O,{ref:P,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),_.submit()},onReset:function(ne){var Z;ne.preventDefault(),_.resetFields(),(Z=O.onReset)===null||Z===void 0||Z.call(O,ne)}}),F)};function by(e){try{return JSON.stringify(e)}catch{return Math.random()}}function rM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],l=i===void 0?{}:i,s=dT(l)?{form:l}:l,d=s.form,f=u.useState(),m=re(f,2),v=m[0],g=m[1],h=u.useMemo(function(){return by(v)},[v]),b=u.useRef(h);b.current=h;var C=u.useContext(Qa),x=d||C,S=x&&x._init,E=Ln(r),$=u.useRef(E);return $.current=E,u.useEffect(function(){if(S){var O=x.getFieldsValue,P=x.getInternalHooks,R=P(Bi),I=R.registerWatch,T=function(L,j){var A=s.preserve?j:L;return typeof r=="function"?r(A):Oo(A,$.current)},_=I(function(z,L){var j=T(z,L),A=by(j);b.current!==A&&(b.current=A,g(j))}),M=T(O(),O(!0));return v!==M&&g(M),_}},[S]),v}var oM=u.forwardRef(nM),gs=oM;gs.FormProvider=eM;gs.Field=D1;gs.List=QT;gs.useForm=F1;gs.useWatch=rM;const lu=u.createContext({}),iM=({children:e,status:t,override:n})=>{const r=u.useContext(lu),i=u.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 u.createElement(lu.Provider,{value:i},e)},aM=u.createContext(void 0),H1=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=J.createElement(iM,{override:!0,status:!0},i)),t&&(i=J.createElement(bI,null,i)),i};var lM=function(t){if(wr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1};function Sy(e,t){return lM(e)}const sM=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"}}}},cM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},uM=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,l={};for(let s=i;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/i*100}%`,maxWidth:`${s/i*100}%`}],l[`${r}${t}-push-${s}`]={insetInlineStart:`${s/i*100}%`},l[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/i*100}%`},l[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/i*100}%`},l[`${r}${t}-order-${s}`]={order:s});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},mp=(e,t)=>uM(e,t),dM=(e,t,n)=>({[`@media (min-width: ${le(t)})`]:Object.assign({},mp(e,n))}),fM=()=>({}),mM=()=>({}),pM=Rn("Grid",sM,fM),vM=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),gM=Rn("Grid",e=>{const t=fn(e,{gridColumns:24}),n=vM(t);return delete n.xs,[cM(t),mp(t,""),mp(t,"-xs"),Object.keys(n).map(r=>dM(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},mM),hM=J.createContext({});function yM(e){return t=>u.createElement(Ci,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const bM=(e,t,n,r,i)=>yM(s=>{const{prefixCls:d,style:f}=s,m=u.useRef(null),[v,g]=u.useState(0),[h,b]=u.useState(0),[C,x]=tr(!1,{value:s.open}),{getPrefixCls:S}=u.useContext(Gt),E=S("select",d);u.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const P=new ResizeObserver(I=>{const T=I[0].target;g(T.offsetHeight+8),b(T.offsetWidth)}),R=setInterval(()=>{var I;const T=`.${E}-dropdown`,_=(I=m.current)===null||I===void 0?void 0:I.querySelector(T);_&&(clearInterval(R),P.observe(_))},10);return()=>{clearInterval(R),P.disconnect()}}},[E]);let $=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},f),{margin:0}),open:C,visible:C,getPopupContainer:()=>m.current});Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:v,position:"relative",minWidth:h};return u.createElement("div",{ref:m,style:O},u.createElement(e,Object.assign({},$)))}),ev=(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 ku=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,l=t.children,s=t.onMouseDown,d=t.onClick,f=typeof r=="function"?r(i):r;return u.createElement("span",{className:n,onMouseDown:function(v){v.preventDefault(),s==null||s(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:u.createElement("span",{className:se(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},SM=function(t,n,r,i,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,d=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,m=J.useMemo(function(){if(vt(i)==="object")return i.clearIcon;if(l)return l},[i,l]),v=J.useMemo(function(){return!!(!s&&i&&(r.length||d)&&!(f==="combobox"&&d===""))},[i,s,r.length,d,f]);return{allowClear:v,clearIcon:J.createElement(ku,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},V1=u.createContext(null);function xM(){return u.useContext(V1)}function CM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=re(t,2),r=n[0],i=n[1],l=u.useRef(null),s=function(){window.clearTimeout(l.current)};u.useEffect(function(){return s},[]);var d=function(m,v){s(),l.current=window.setTimeout(function(){i(m),v&&v()},e)};return[r,d,s]}function W1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function wM(e,t,n,r){var i=u.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function l(s){var d;if(!((d=i.current)!==null&&d!==void 0&&d.customizedTrigger)){var f=s.target;f.shadowRoot&&s.composed&&(f=s.composedPath()[0]||f),i.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(f)&&m!==f})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function $M(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 EM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ia=void 0;function OM(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,l=e.renderItem,s=e.responsive,d=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,v=e.className,g=e.style,h=e.children,b=e.display,C=e.order,x=e.component,S=x===void 0?"div":x,E=Mt(e,EM),$=s&&!b;function O(_){f(m,_)}u.useEffect(function(){return function(){O(null)}},[]);var P=l&&i!==Ia?l(i,{index:C}):h,R;r||(R={opacity:$?0:1,height:$?0:Ia,overflowY:$?"hidden":Ia,order:s?C:Ia,pointerEvents:$?"none":Ia,position:$?"absolute":Ia});var I={};$&&(I["aria-hidden"]=!0);var T=u.createElement(S,ke({className:se(!r&&n,v),style:q(q({},R),g)},I,E,{ref:t}),P);return s&&(T=u.createElement(ro,{onResize:function(M){var z=M.offsetWidth;O(z)},disabled:d},T)),T}var Fa=u.forwardRef(OM);Fa.displayName="Item";function RM(e){if(typeof MessageChannel>"u")yn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function IM(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],RM(function(){Si.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Pa(e,t){var n=u.useState(t),r=re(n,2),i=r[0],l=r[1],s=Kn(function(d){e(function(){l(d)})});return[i,s]}var su=J.createContext(null),PM=["component"],TM=["className"],MM=["className"],_M=function(t,n){var r=u.useContext(su);if(!r){var i=t.component,l=i===void 0?"div":i,s=Mt(t,PM);return u.createElement(l,ke({},s,{ref:n}))}var d=r.className,f=Mt(r,TM),m=t.className,v=Mt(t,MM);return u.createElement(su.Provider,{value:null},u.createElement(Fa,ke({ref:n,className:se(d,m)},f,v)))},U1=u.forwardRef(_M);U1.displayName="RawItem";var NM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],G1="responsive",K1="invalidate";function zM(e){return"+ ".concat(e.length," ...")}function jM(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,l=i===void 0?[]:i,s=e.renderItem,d=e.renderRawItem,f=e.itemKey,m=e.itemWidth,v=m===void 0?10:m,g=e.ssr,h=e.style,b=e.className,C=e.maxCount,x=e.renderRest,S=e.renderRawRest,E=e.prefix,$=e.suffix,O=e.component,P=O===void 0?"div":O,R=e.itemComponent,I=e.onVisibleChange,T=Mt(e,NM),_=g==="full",M=IM(),z=Pa(M,null),L=re(z,2),j=L[0],A=L[1],B=j||0,K=Pa(M,new Map),V=re(K,2),U=V[0],D=V[1],X=Pa(M,0),W=re(X,2),k=W[0],F=W[1],Y=Pa(M,0),ne=re(Y,2),Z=ne[0],ee=ne[1],fe=Pa(M,0),me=re(fe,2),ce=me[0],Se=me[1],de=Pa(M,0),ie=re(de,2),he=ie[0],ge=ie[1],pe=u.useState(null),oe=re(pe,2),be=oe[0],we=oe[1],$e=u.useState(null),Ae=re($e,2),je=Ae[0],Ie=Ae[1],Le=u.useMemo(function(){return je===null&&_?Number.MAX_SAFE_INTEGER:je||0},[je,j]),Ee=u.useState(!1),tt=re(Ee,2),lt=tt[0],bt=tt[1],st="".concat(r,"-item"),Ue=Math.max(k,Z),it=C===G1,Ve=l.length&&it,dt=C===K1,Xe=Ve||typeof C=="number"&&l.length>C,Me=u.useMemo(function(){var Ce=l;return Ve?j===null&&_?Ce=l:Ce=l.slice(0,Math.min(l.length,B/v)):typeof C=="number"&&(Ce=l.slice(0,C)),Ce},[l,v,j,C,Ve]),Ye=u.useMemo(function(){return Ve?l.slice(Le+1):l.slice(Me.length)},[l,Me,Ve,Le]),Pe=u.useCallback(function(Ce,xe){var _e;return typeof f=="function"?f(Ce):(_e=f&&(Ce==null?void 0:Ce[f]))!==null&&_e!==void 0?_e:xe},[f]),Fe=u.useCallback(s||function(Ce){return Ce},[s]);function wt(Ce,xe,_e){je===Ce&&(xe===void 0||xe===be)||(Ie(Ce),_e||(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(_e){var Ke=new Map(_e);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){ge(xe)}function Vt(Ce){return U.get(Pe(Me[Ce],Ce))}tn(function(){if(B&&typeof Ue=="number"&&Me){var Ce=ce+he,xe=Me.length,_e=xe-1;if(!xe){wt(0,null);return}for(var Ke=0;Ke<xe;Ke+=1){var Qe=Vt(Ke);if(_&&(Qe=Qe||0),Qe===void 0){wt(Ke-1,void 0,!0);break}if(Ce+=Qe,_e===0&&Ce<=B||Ke===_e-1&&Ce+Vt(_e)<=B){wt(_e,null);break}else if(Ce+Ue>B){wt(Ke-1,Ce-Qe-he+Z);break}}$&&Vt(0)+he>B&&we(null)}},[B,U,Z,ce,he,Pe,Me]);var Tt=lt&&!!Ye.length,St={};be!==null&&Ve&&(St={position:"absolute",left:be,top:0});var Wt={prefixCls:st,responsive:Ve,component:R,invalidate:dt},Lt=d?function(Ce,xe){var _e=Pe(Ce,xe);return u.createElement(su.Provider,{key:_e,value:q(q({},Wt),{},{order:xe,item:Ce,itemKey:_e,registerSize:Bt,display:xe<=Le})},d(Ce,xe))}:function(Ce,xe){var _e=Pe(Ce,xe);return u.createElement(Fa,ke({},Wt,{order:xe,key:_e,item:Ce,renderItem:Fe,itemKey:_e,registerSize:Bt,display:xe<=Le}))},Ze={order:Tt?Le:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:At,display:Tt},yt=x||zM,at=S?u.createElement(su.Provider,{value:q(q({},Wt),Ze)},S(Ye)):u.createElement(Fa,ke({},Wt,Ze),typeof yt=="function"?yt(Ye):yt),Oe=u.createElement(P,ke({className:se(!dt&&r,b),style:h,ref:t},T),E&&u.createElement(Fa,ke({},Wt,{responsive:it,responsiveDisabled:!Ve,order:-1,className:"".concat(st,"-prefix"),registerSize:nn,display:!0}),E),Me.map(Lt),Xe?at:null,$&&u.createElement(Fa,ke({},Wt,{responsive:it,responsiveDisabled:!Ve,order:Le,className:"".concat(st,"-suffix"),registerSize:vn,display:!0,style:St}),$));return it?u.createElement(ro,{onResize:mt,disabled:!Ve},Oe):Oe}var Ro=u.forwardRef(jM);Ro.displayName="Overflow";Ro.Item=U1;Ro.RESPONSIVE=G1;Ro.INVALIDATE=K1;function kM(e,t,n){var r=q(q({},e),t);return Object.keys(t).forEach(function(i){var l=t[i];typeof l=="function"&&(r[i]=function(){for(var s,d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];return l.apply(void 0,f),(s=e[i])===null||s===void 0?void 0:s.call.apply(s,[e].concat(f))})}),r}var LM=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],AM=function(t,n){var r=t.prefixCls,i=t.id,l=t.inputElement,s=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,v=t.value,g=t.open,h=t.attrs,b=Mt(t,LM),C=l||u.createElement("input",null),x=C,S=x.ref,E=x.props;return"maxLength"in C.props,C=u.cloneElement(C,q(q(q({type:"search"},kM(b,E)),{},{id:i,ref:Wo(n,S),autoComplete:d||"off",autoFocus:s,className:se("".concat(r,"-selection-search-input"),E==null?void 0:E.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_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})})),C},q1=u.forwardRef(AM);function X1(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var DM=typeof window<"u"&&window.document&&window.document.documentElement,BM=DM;function FM(e){return e!=null}function HM(e){return!e&&e!==0}function xy(e){return["string","number"].includes(vt(e))}function Q1(e){var t=void 0;return e&&(xy(e.title)?t=e.title.toString():xy(e.label)&&(t=e.label.toString())),t}function VM(e,t){BM?u.useLayoutEffect(e,t):u.useEffect(e,t)}function WM(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Cy=function(t){t.preventDefault(),t.stopPropagation()},UM=function(t){var n=t.id,r=t.prefixCls,i=t.values,l=t.open,s=t.searchValue,d=t.autoClearSearchValue,f=t.inputRef,m=t.placeholder,v=t.disabled,g=t.mode,h=t.showSearch,b=t.autoFocus,C=t.autoComplete,x=t.activeDescendantId,S=t.tabIndex,E=t.removeIcon,$=t.maxTagCount,O=t.maxTagTextLength,P=t.maxTagPlaceholder,R=P===void 0?function(ge){return"+ ".concat(ge.length," ...")}:P,I=t.tagRender,T=t.onToggleOpen,_=t.onRemove,M=t.onInputChange,z=t.onInputPaste,L=t.onInputKeyDown,j=t.onInputMouseDown,A=t.onInputCompositionStart,B=t.onInputCompositionEnd,K=t.onInputBlur,V=u.useRef(null),U=u.useState(0),D=re(U,2),X=D[0],W=D[1],k=u.useState(!1),F=re(k,2),Y=F[0],ne=F[1],Z="".concat(r,"-selection"),ee=l||g==="multiple"&&d===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&d===!1||h&&(l||Y);VM(function(){W(V.current.scrollWidth)},[ee]);var me=function(pe,oe,be,we,$e){return u.createElement("span",{title:Q1(pe),className:se("".concat(Z,"-item"),H({},"".concat(Z,"-item-disabled"),be))},u.createElement("span",{className:"".concat(Z,"-item-content")},oe),we&&u.createElement(ku,{className:"".concat(Z,"-item-remove"),onMouseDown:Cy,onClick:$e,customizeIcon:E},"×"))},ce=function(pe,oe,be,we,$e,Ae){var je=function(Le){Cy(Le),T(!l)};return u.createElement("span",{onMouseDown:je},I({label:oe,value:pe,disabled:be,closable:we,onClose:$e,isMaxTag:!!Ae}))},Se=function(pe){var oe=pe.disabled,be=pe.label,we=pe.value,$e=!v&&!oe,Ae=be;if(typeof O=="number"&&(typeof be=="string"||typeof be=="number")){var je=String(Ae);je.length>O&&(Ae="".concat(je.slice(0,O),"..."))}var Ie=function(Ee){Ee&&Ee.stopPropagation(),_(pe)};return typeof I=="function"?ce(we,Ae,oe,$e,Ie):me(pe,Ae,oe,$e,Ie)},de=function(pe){if(!i.length)return null;var oe=typeof R=="function"?R(pe):R;return typeof I=="function"?ce(void 0,oe,!1,!1,void 0,!0):me({title:oe},oe,!1)},ie=u.createElement("div",{className:"".concat(Z,"-search"),style:{width:X},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},u.createElement(q1,{ref:f,open:l,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:b,autoComplete:C,editable:fe,activeDescendantId:x,value:ee,onKeyDown:L,onMouseDown:j,onChange:M,onPaste:z,onCompositionStart:A,onCompositionEnd:B,onBlur:K,tabIndex:S,attrs:xi(t,!0)}),u.createElement("span",{ref:V,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee," ")),he=u.createElement(Ro,{prefixCls:"".concat(Z,"-overflow"),data:i,renderItem:Se,renderRest:de,suffix:ie,itemKey:WM,maxCount:$});return u.createElement("span",{className:"".concat(Z,"-wrap")},he,!i.length&&!ee&&u.createElement("span",{className:"".concat(Z,"-placeholder")},m))},GM=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,l=t.inputRef,s=t.disabled,d=t.autoFocus,f=t.autoComplete,m=t.activeDescendantId,v=t.mode,g=t.open,h=t.values,b=t.placeholder,C=t.tabIndex,x=t.showSearch,S=t.searchValue,E=t.activeValue,$=t.maxLength,O=t.onInputKeyDown,P=t.onInputMouseDown,R=t.onInputChange,I=t.onInputPaste,T=t.onInputCompositionStart,_=t.onInputCompositionEnd,M=t.onInputBlur,z=t.title,L=u.useState(!1),j=re(L,2),A=j[0],B=j[1],K=v==="combobox",V=K||x,U=h[0],D=S||"";K&&E&&!A&&(D=E),u.useEffect(function(){K&&B(!1)},[K,E]);var X=v!=="combobox"&&!g&&!x?!1:!!D,W=z===void 0?Q1(U):z,k=u.useMemo(function(){return U?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:X?{visibility:"hidden"}:void 0},b)},[U,X,b,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(q1,{ref:l,prefixCls:r,id:i,open:g,inputElement:n,disabled:s,autoFocus:d,autoComplete:f,editable:V,activeDescendantId:m,value:D,onKeyDown:O,onMouseDown:P,onChange:function(Y){B(!0),R(Y)},onPaste:I,onCompositionStart:T,onCompositionEnd:_,onBlur:M,tabIndex:C,attrs:xi(t,!0),maxLength:K?$:void 0})),!K&&U?u.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:X?{visibility:"hidden"}:void 0},U.label):null,k)},KM=function(t,n){var r=u.useRef(null),i=u.useRef(!1),l=t.prefixCls,s=t.open,d=t.mode,f=t.showSearch,m=t.tokenWithEnter,v=t.disabled,g=t.prefix,h=t.autoClearSearchValue,b=t.onSearch,C=t.onSearchSubmit,x=t.onToggleOpen,S=t.onInputKeyDown,E=t.onInputBlur,$=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var O=W1(0),P=re(O,2),R=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&&d==="tags"&&!i.current&&!s&&(C==null||C(W.target.value)),!(F&&!s&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(k))&&$M(k)&&x(!0)},_=function(){I(!0)},M=u.useRef(null),z=function(W){b(W,!0,i.current)!==!1&&x(!0)},L=function(){i.current=!0},j=function(W){i.current=!1,d!=="combobox"&&z(W.target.value)},A=function(W){var k=W.target.value;if(m&&M.current&&/[\r\n]/.test(M.current)){var F=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(F,M.current)}M.current=null,z(k)},B=function(W){var k=W.clipboardData,F=k==null?void 0:k.getData("text");M.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=R();W.target!==r.current&&!k&&!(d==="combobox"&&v)&&W.preventDefault(),(d!=="combobox"&&(!f||!k)||!s)&&(s&&h!==!1&&b("",!0,!1),x())},U={inputRef:r,onInputKeyDown:T,onInputMouseDown:_,onInputChange:A,onInputPaste:B,onInputCompositionStart:L,onInputCompositionEnd:j,onInputBlur:E},D=d==="multiple"||d==="tags"?u.createElement(UM,ke({},t,U)):u.createElement(GM,ke({},t,U));return u.createElement("div",{ref:$,className:"".concat(l,"-selector"),onClick:K,onMouseDown:V},g&&u.createElement("div",{className:"".concat(l,"-prefix")},g),D)},qM=u.forwardRef(KM);function XM(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,l=r||{},s=l.className,d=l.content,f=i.x,m=f===void 0?0:f,v=i.y,g=v===void 0?0:v,h=u.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],x=n.points[1],S=C[0],E=C[1],$=x[0],O=x[1];S===$||!["t","b"].includes(S)?b.top=g:S==="t"?b.top=0:b.bottom=0,E===O||!["l","r"].includes(E)?b.left=m:E==="l"?b.left=0:b.right=0}return u.createElement("div",{ref:h,className:se("".concat(t,"-arrow"),s),style:b},d)}function QM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,l=e.motion;return i?u.createElement(Ko,ke({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var d=s.className;return u.createElement("div",{style:{zIndex:r},className:se("".concat(t,"-mask"),d)})}):null}var YM=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ZM=u.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,l=e.style,s=e.target,d=e.onVisibleChanged,f=e.open,m=e.keepDom,v=e.fresh,g=e.onClick,h=e.mask,b=e.arrow,C=e.arrowPos,x=e.align,S=e.motion,E=e.maskMotion,$=e.forceRender,O=e.getPopupContainer,P=e.autoDestroy,R=e.portal,I=e.zIndex,T=e.onMouseEnter,_=e.onMouseLeave,M=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=(O==null?void 0:O.length)>0,ne=u.useState(!O||!Y),Z=re(ne,2),ee=Z[0],fe=Z[1];if(tn(function(){!ee&&Y&&s&&fe(!0)},[ee,Y,s]),!ee)return null;var me="auto",ce={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(L||!f){var Se,de=x.points,ie=x.dynamicInset||((Se=x._experimental)===null||Se===void 0?void 0:Se.dynamicInset),he=ie&&de[0][1]==="r",ge=ie&&de[0][0]==="b";he?(ce.right=B,ce.left=me):(ce.left=j,ce.right=me),ge?(ce.bottom=K,ce.top=me):(ce.top=A,ce.bottom=me)}var pe={};return D&&(D.includes("height")&&W?pe.height=W:D.includes("minHeight")&&W&&(pe.minHeight=W),D.includes("width")&&X?pe.width=X:D.includes("minWidth")&&X&&(pe.minWidth=X)),f||(pe.pointerEvents="none"),u.createElement(R,{open:$||F,getContainer:O&&function(){return O(s)},autoDestroy:P},u.createElement(QM,{prefixCls:i,open:f,zIndex:I,mask:h,motion:E}),u.createElement(ro,{onResize:V,disabled:!f},function(oe){return u.createElement(Ko,ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(i,"-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),d(we)}}),function(be,we){var $e=be.className,Ae=be.style,je=se(i,$e,r);return u.createElement("div",{ref:Wo(oe,t,we),className:je,style:q(q(q(q({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},ce),pe),Ae),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:T,onMouseLeave:_,onPointerEnter:M,onClick:g,onPointerDownCapture:z},b&&u.createElement(XM,{prefixCls:i,arrow:b,arrowPos:C,align:x}),u.createElement(YM,{cache:!f&&!v},k))})}))}),JM=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Qi(n),l=u.useCallback(function(d){Mp(t,r?r(d):d)},[r]),s=Xi(l,Ya(n));return i?u.cloneElement(n,{ref:s}):n}),wy=u.createContext(null);function $y(e){return e?Array.isArray(e)?e:[e]:[]}function e_(e,t,n,r){return u.useMemo(function(){var i=$y(n??t),l=$y(r??t),s=new Set(i),d=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),d.has("hover")&&(d.delete("hover"),d.add("click"))),[s,d]},[e,t,n,r])}function t_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function n_(e,t,n,r){for(var i=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var d,f=l[s];if(t_((d=e[f])===null||d===void 0?void 0:d.points,i,r))return"".concat(t,"-placement-").concat(f)}return""}function Ey(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hs(e){return e.ownerDocument.defaultView}function pp(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=hs(n).getComputedStyle(n),l=i.overflowX,s=i.overflowY,d=i.overflow;[l,s,d].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function os(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ml(e){return os(parseFloat(e),0)}function Oy(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=hs(r).getComputedStyle(r),l=i.overflow,s=i.overflowClipMargin,d=i.borderTopWidth,f=i.borderBottomWidth,m=i.borderLeftWidth,v=i.borderRightWidth,g=r.getBoundingClientRect(),h=r.offsetHeight,b=r.clientHeight,C=r.offsetWidth,x=r.clientWidth,S=Ml(d),E=Ml(f),$=Ml(m),O=Ml(v),P=os(Math.round(g.width/C*1e3)/1e3),R=os(Math.round(g.height/h*1e3)/1e3),I=(C-x-$-O)*P,T=(h-b-S-E)*R,_=S*R,M=E*R,z=$*P,L=O*P,j=0,A=0;if(l==="clip"){var B=Ml(s);j=B*P,A=B*R}var K=g.x+z-j,V=g.y+_-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 Ry(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 Iy(e,t){var n=t||[],r=re(n,2),i=r[0],l=r[1];return[Ry(e.width,i),Ry(e.height,l)]}function Py(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ta(e,t){var n=t[0],r=t[1],i,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:l}}function mi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function r_(e,t,n,r,i,l,s){var d=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),f=re(d,2),m=f[0],v=f[1],g=u.useRef(0),h=u.useMemo(function(){return t?pp(t):[]},[t]),b=u.useRef({}),C=function(){b.current={}};e||C();var x=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,ta=F.y+Er,na=Nr+ge,rt=ta+he,Pt=Math.max(Nr,Ur.left),bn=Math.max(ta,Ur.top),Cn=Math.min(na,Ur.right),Sn=Math.min(rt,Ur.bottom);return Math.max(0,(Cn-Pt)*(Sn-bn))},dr=function(){sn=F.y+yt,gn=sn+he,$n=F.x+Ze,Kt=$n+ge};var ea=Tn,To=dr,$,O,P,R,I=t,T=I.ownerDocument,_=hs(I),M=_.getComputedStyle(I),z=M.position,L=I.style.left,j=I.style.top,A=I.style.right,B=I.style.bottom,K=I.style.overflow,V=q(q({},i[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=_.getComputedStyle(I),ne=Y.height,Z=Y.width;F.x=(O=F.x)!==null&&O!==void 0?O:F.left,F.y=(P=F.y)!==null&&P!==void 0?P:F.top;var ee=T.documentElement,fe=ee.clientWidth,me=ee.clientHeight,ce=ee.scrollWidth,Se=ee.scrollHeight,de=ee.scrollTop,ie=ee.scrollLeft,he=F.height,ge=F.width,pe=D.height,oe=D.width,be={left:0,top:0,right:fe,bottom:me},we={left:-ie,top:-de,right:ce-ie,bottom:Se-de},$e=V.htmlRegion,Ae="visible",je="visibleFirst";$e!=="scroll"&&$e!==je&&($e=Ae);var Ie=$e===je,Le=Oy(we,h),Ee=Oy(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,(R=I.parentElement)===null||R===void 0||R.removeChild(U);var st=os(Math.round(ge/parseFloat(Z)*1e3)/1e3),Ue=os(Math.round(he/parseFloat(ne)*1e3)/1e3);if(st===0||Ue===0||Wl(n)&&!Xp(n))return;var it=V.offset,Ve=V.targetOffset,dt=Iy(F,it),Xe=re(dt,2),Me=Xe[0],Ye=Xe[1],Pe=Iy(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=Py(vn),Tt=Py(nn),St=Ta(D,Vt),Wt=Ta(F,Tt),Lt=q({},V),Ze=St.x-Wt.x+Me,yt=St.y-Wt.y+Ye,at=Tn(Ze,yt),Oe=Tn(Ze,yt,Ee),Ce=Ta(D,["t","l"]),xe=Ta(F,["t","l"]),_e=Ta(D,["b","r"]),Ke=Ta(F,["b","r"]),Qe=V.overflow||{},_t=Qe.adjustX,jt=Qe.adjustY,Rt=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-=he-pe:We=Ce.y-Ke.y-Ye;var Ct=Tn(Ze,We),ct=Tn(Ze,We,Ee);Ct>at||Ct===at&&(!Ie||ct>=Oe)?(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+=he-pe:et=_e.y-xe.y-Ye;var Ge=Tn(Ze,et),xt=Tn(Ze,et,Ee);Ge>at||Ge===at&&(!Ie||xt>=Oe)?(b.current.tb=!0,yt=et,Ye=-Ye,Lt.points=[mi(Tt,0),mi(Vt,0)]):b.current.tb=!1}var kt=mn(_t),He=Tt[1]===Vt[1];if(kt&&Tt[1]==="l"&&(Kt>lt.right||b.current.rl)){var ut=Ze;He?ut-=ge-oe:ut=Ce.x-Ke.x-Me;var $t=Tn(ut,yt),Jt=Tn(ut,yt,Ee);$t>at||$t===at&&(!Ie||Jt>=Oe)?(b.current.rl=!0,Ze=ut,Me=-Me,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+=ge-oe:zn=_e.x-xe.x-Me;var xn=Tn(zn,yt),sr=Tn(zn,yt,Ee);xn>at||xn===at&&(!Ie||sr>=Oe)?(b.current.lr=!0,Ze=zn,Me=-Me,Lt.points=[mi(Tt,1),mi(Vt,1)]):b.current.lr=!1}dr();var Hn=Rt===!0?0:Rt;typeof Hn=="number"&&($n<Ee.left&&(Ze-=$n-Ee.left-Me,D.x+oe<Ee.left+Hn&&(Ze+=D.x-Ee.left+oe-Hn)),Kt>Ee.right&&(Ze-=Kt-Ee.right-Me,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+pe<Ee.top+cr&&(yt+=D.y-Ee.top+pe-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+ge,ur=F.y+yt,Xt=ur+he,nt=D.x,Je=nt+oe,Ut=D.y,Qt=Ut+pe,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 Ji={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(Ji)}}),S=function(){g.current+=1;var O=g.current;Promise.resolve().then(function(){g.current===O&&x()})},E=function(){v(function(O){return q(q({},O),{},{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 o_(e,t,n,r,i){tn(function(){if(e&&t&&n){let h=function(){r(),i()};var g=h,l=t,s=n,d=pp(l),f=pp(s),m=hs(s),v=new Set([m].concat(Be(d),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 i_(e,t,n,r,i,l,s,d){var f=u.useRef(e);f.current=e;var m=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!i||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&&d(!1)},b=hs(r);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0);var C=tu(n);return C&&(C.addEventListener("mousedown",h,!0),C.addEventListener("contextmenu",h,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0),C&&(C.removeEventListener("mousedown",h,!0),C.removeEventListener("contextmenu",h,!0))}}},[t,n,r,i,l]);function v(){m.current=!0}return v}var a_=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function l_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z1,t=u.forwardRef(function(n,r){var i=n.prefixCls,l=i===void 0?"rc-trigger-popup":i,s=n.children,d=n.action,f=d===void 0?"hover":d,m=n.showAction,v=n.hideAction,g=n.popupVisible,h=n.defaultPopupVisible,b=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,x=n.mouseEnterDelay,S=n.mouseLeaveDelay,E=S===void 0?.1:S,$=n.focusDelay,O=n.blurDelay,P=n.mask,R=n.maskClosable,I=R===void 0?!0:R,T=n.getPopupContainer,_=n.forceRender,M=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,fe=n.maskMotion,me=n.popupTransitionName,ce=n.popupAnimation,Se=n.maskTransitionName,de=n.maskAnimation,ie=n.className,he=n.getTriggerDOMNode,ge=Mt(n,a_),pe=M||z||!1,oe=u.useState(!1),be=re(oe,2),we=be[0],$e=be[1];tn(function(){$e(ev())},[]);var Ae=u.useRef({}),je=u.useContext(wy),Ie=u.useMemo(function(){return{registerSubPopup:function(Pt,bn){Ae.current[Pt]=bn,je==null||je.registerSubPopup(Pt,bn)}}},[je]),Le=j1(),Ee=u.useState(null),tt=re(Ee,2),lt=tt[0],bt=tt[1],st=u.useRef(null),Ue=Kn(function(rt){st.current=rt,Wl(rt)&&lt!==rt&&bt(rt),je==null||je.registerSubPopup(Le,rt)}),it=u.useState(null),Ve=re(it,2),dt=Ve[0],Xe=Ve[1],Me=u.useRef(null),Ye=Kn(function(rt){Wl(rt)&&dt!==rt&&(Xe(rt),Me.current=rt)}),Pe=u.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=tu(Cn))===null||Pt===void 0?void 0:Pt.host)===rt||rt===Cn||(lt==null?void 0:lt.contains(rt))||((bn=tu(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=Ey(l,ee,ce,me),At=Ey(l,fe,de,Se),nn=u.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=u.useRef(St);Lt.current=St;var Ze=u.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=u.useRef(),Oe=function(){clearTimeout(at.current)},Ce=function(Pt){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Oe(),bn===0?yt(Pt):at.current=setTimeout(function(){yt(Pt)},bn*1e3)};u.useEffect(function(){return Oe},[]);var xe=u.useState(!1),_e=re(xe,2),Ke=_e[0],Qe=_e[1];tn(function(rt){(!rt||St)&&Qe(!0)},[St]);var _t=u.useState(null),jt=re(_t,2),Rt=jt[0],It=jt[1],mn=u.useState(null),sn=re(mn,2),gn=sn[0],$n=sn[1],Kt=function(Pt){$n([Pt.clientX,Pt.clientY])},Yt=r_(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=e_(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)};o_(St,dt,lt,nr,ur),tn(function(){nr()},[gn,B]),tn(function(){St&&!(V!=null&&V[B])&&nr()},[JSON.stringify(U)]);var Xt=u.useMemo(function(){var rt=n_(V,l,$t,F);return se(rt,W==null?void 0:W($t))},[$t,W,V,l,F]);u.useImperativeHandle(r,function(){return{nativeElement:Me.current,popupElement:st.current,forceAlign:nr}});var nt=u.useState(0),Je=re(nt,2),Ut=Je[0],Qt=Je[1],rn=u.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(),C==null||C(Pt)},$r=function(){return new Promise(function(Pt){zt(),It(function(){return Pt})})};tn(function(){Rt&&(Jt(),Rt(),It(null))},[Rt]);function Qn(rt,Pt,bn,Cn){wt[rt]=function(Sn){var ra;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];(ra=Fe[rt])===null||ra===void 0||ra.call.apply(ra,[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=i_(St,Vn,dt,lt,P,I,mt,Ce),Ji=sr.has("hover"),ea=Hn.has("hover"),To,Tn;Ji&&(Qn("onMouseEnter",!0,x,function(rt){Kt(rt)}),Qn("onPointerEnter",!0,x,function(rt){Kt(rt)}),To=function(Pt){(St||Ke)&&lt!==null&&lt!==void 0&&lt.contains(Pt.target)&&Ce(!0,x)},F&&(wt.onMouseMove=function(rt){var Pt;(Pt=Fe.onMouseMove)===null||Pt===void 0||Pt.call(Fe,rt)})),ea&&(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,O),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))}),ie&&(wt.className=se(Fe.className,ie));var dr=u.useRef(!1);dr.current||(dr.current=_||St||Ke);var br=q(q({},Fe),wt),Er={},Ur=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ur.forEach(function(rt){ge[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)),ge[rt].apply(ge,Cn)})});var Nr=u.cloneElement(Pe,q(q({},br),Er)),ta={x:xt,y:kt},na=Z?q({},Z!==!0?Z:{}):null;return u.createElement(u.Fragment,null,u.createElement(ro,{disabled:!St,ref:Ye,onResize:Wn},u.createElement(JM,{getTriggerDOMNode:he},Nr)),dr.current&&u.createElement(wy.Provider,{value:Ie},u.createElement(ZM,{portal:e,ref:Ue,prefixCls:l,popup:L,className:se(j,Xt),style:A,target:dt,onMouseEnter:To,onMouseLeave:Tn,onPointerEnter:To,zIndex:D,open:St,keepDom:Ke,fresh:k,onClick:Y,onPointerDownCapture:Qo,mask:P,motion:Bt,maskMotion:At,onVisibleChanged:Xn,onPrepare:$r,forceRender:_,autoDestroy:pe,getPopupContainer:T,align:$t,arrow:na,arrowPos:ta,ready:We,offsetX:Ct,offsetY:ct,offsetR:et,offsetB:Ge,onAlign:nr,stretch:X,targetWidth:Ut/He,targetHeight:rr/ut})))});return t}const Lu=l_(z1);var s_=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],c_=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"}}},u_=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,l=t.children,s=t.popupElement,d=t.animation,f=t.transitionName,m=t.dropdownStyle,v=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,b=t.placement,C=t.builtinPlacements,x=t.dropdownMatchSelectWidth,S=t.dropdownRender,E=t.dropdownAlign,$=t.getPopupContainer,O=t.empty,P=t.getTriggerDOMNode,R=t.onPopupVisibleChange,I=t.onPopupMouseEnter,T=Mt(t,s_),_="".concat(r,"-dropdown"),M=s;S&&(M=S(s));var z=u.useMemo(function(){return C||c_(x)},[C,x]),L=d?"".concat(_,"-").concat(d):f,j=typeof x=="number",A=u.useMemo(function(){return j?null:x===!1?"minWidth":"width"},[x,j]),B=m;j&&(B=q(q({},B),{},{width:x}));var K=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var U;return(U=K.current)===null||U===void 0?void 0:U.popupElement}}}),u.createElement(Lu,ke({},T,{showAction:R?["click"]:[],hideAction:R?["click"]:[],popupPlacement:b||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:_,popupTransitionName:L,popup:u.createElement("div",{onMouseEnter:I},M),ref:K,stretch:A,popupAlign:E,popupVisible:i,getPopupContainer:$,popupClassName:se(v,H({},"".concat(_,"-empty"),O)),popupStyle:B,getTriggerDOMNode:P,onPopupVisibleChange:R}),l)},d_=u.forwardRef(u_);function Ty(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 vp(e){return typeof e<"u"&&!Number.isNaN(e)}function Y1(e,t){var n=e||{},r=n.label,i=n.value,l=n.options,s=n.groupLabel,d=r||(t?"children":"label");return{label:d,value:i||"value",options:l||"options",groupLabel:s||d}}function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],l=Y1(n,!1),s=l.label,d=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 C=b[d];i.push({key:Ty(b,i.length),groupOption:h,data:b,label:b[s],value:C})}else{var x=b[m];x===void 0&&r&&(x=b.label),i.push({key:Ty(b,i.length),group:!0,data:b,label:x}),v(b[f],!0)}})}return v(e,!1),i}function gp(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 m_=function(t,n,r){if(!n||!n.length)return null;var i=!1,l=function d(f,m){var v=ES(m),g=v[0],h=v.slice(1);if(!g)return[f];var b=f.split(g);return i=i||b.length>1,b.reduce(function(C,x){return[].concat(Be(C),Be(d(x,h)))},[]).filter(Boolean)},s=l(t,n);return i?typeof r<"u"?s.slice(0,r):s:null},tv=u.createContext(null);function p_(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var l=i.label,s=i.value;return["number","string"].includes(vt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var v_=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],g_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],hp=function(t){return t==="tags"||t==="multiple"},h_=u.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,l=e.className,s=e.showSearch,d=e.tagRender,f=e.direction,m=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,b=e.notFoundContent,C=b===void 0?"Not Found":b,x=e.onClear,S=e.mode,E=e.disabled,$=e.loading,O=e.getInputElement,P=e.getRawInputElement,R=e.open,I=e.defaultOpen,T=e.onDropdownVisibleChange,_=e.activeValue,M=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,fe=e.dropdownAlign,me=e.placement,ce=e.builtinPlacements,Se=e.getPopupContainer,de=e.showAction,ie=de===void 0?[]:de,he=e.onFocus,ge=e.onBlur,pe=e.onKeyUp,oe=e.onKeyDown,be=e.onMouseDown,we=Mt(e,v_),$e=hp(S),Ae=(s!==void 0?s:$e)||S==="combobox",je=q({},we);g_.forEach(function(nt){delete je[nt]}),m==null||m.forEach(function(nt){delete je[nt]});var Ie=u.useState(!1),Le=re(Ie,2),Ee=Le[0],tt=Le[1];u.useEffect(function(){tt(ev())},[]);var lt=u.useRef(null),bt=u.useRef(null),st=u.useRef(null),Ue=u.useRef(null),it=u.useRef(null),Ve=u.useRef(!1),dt=CM(),Xe=re(dt,3),Me=Xe[0],Ye=Xe[1],Pe=Xe[2];u.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=u.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 O=="function"&&O()||null,mt=typeof P=="function"&&P(),Bt=Xi(bt,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),At=u.useState(!1),nn=re(At,2),vn=nn[0],Vt=nn[1];tn(function(){Vt(!0)},[]);var Tt=tr(!1,{defaultValue:I,value:R}),St=re(Tt,2),Wt=St[0],Lt=St[1],Ze=vn?Wt:!1,yt=!C&&h;(E||yt&&Ze&&S==="combobox")&&(Ze=!1);var at=yt?!1:Ze,Oe=u.useCallback(function(nt){var Je=nt!==void 0?nt:!Ze;E||(Lt(Je),Ze!==Je&&(T==null||T(Je)))},[E,Ze,Lt,T]),Ce=u.useMemo(function(){return(K||[]).some(function(nt){return[`
209
+ `,`\r
210
+ `].includes(nt)})},[K]),xe=u.useContext(tv)||{},_e=xe.maxCount,Ke=xe.rawValues,Qe=function(Je,Ut,Qt){if(!($e&&vp(_e)&&(Ke==null?void 0:Ke.size)>=_e)){var rn=!0,ln=Je;M==null||M(null);var rr=m_(Je,K,vp(_e)?_e-Ke.size:void 0),jn=Qt?null:rr;return S!=="combobox"&&jn&&(ln="",B==null||B(jn),Oe(!1),rn=!1),A&&Fe!==ln&&A(ln,{source:Ut?"typing":"effect"}),rn}},_t=function(Je){!Je||!Je.trim()||A(Je,{source:"submit"})};u.useEffect(function(){!Ze&&!$e&&S!=="combobox"&&Qe("",!1,!1)},[Ze]),u.useEffect(function(){Wt&&E&&Lt(!1),E&&!Ve.current&&Ye(!1)},[E]);var jt=W1(),Rt=re(jt,2),It=Rt[0],mn=Rt[1],sn=u.useRef(!1),gn=function(Je){var Ut=It(),Qt=Je.key,rn=Qt==="Enter";if(rn&&(S!=="combobox"&&Je.preventDefault(),Ze||Oe(!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),pe==null||pe.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=u.useRef(!1),We=function(){Ye(!0),E||(he&&!Ne.current&&he.apply(void 0,arguments),ie.includes("focus")&&Oe(!0)),Ne.current=!0},Ct=function(){Ve.current=!0,Ye(!1,function(){Ne.current=!1,Ve.current=!1,Oe(!1)}),!E&&(Fe&&(S==="tags"?A(Fe,{source:"submit"}):S==="multiple"&&A("",{source:"blur"})),ge&&ge.apply(void 0,arguments))},ct=[];u.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=u.useState({}),xt=re(Ge,2),kt=xt[1];function He(){kt({})}var ut;mt&&(ut=function(Je){Oe(Je)}),wM(function(){var nt;return[lt.current,(nt=st.current)===null||nt===void 0?void 0:nt.getPopupElement()]},at,Oe,!!mt);var $t=u.useMemo(function(){return q(q({},e),{},{notFoundContent:C,open:Ze,triggerOpen:at,id:r,showSearch:Ae,multiple:$e,toggleOpen:Oe})},[e,C,at,Ze,r,Ae,$e,Oe]),Jt=!!D||$,zn;Jt&&(zn=u.createElement(ku,{className:se("".concat(i,"-arrow"),H({},"".concat(i,"-arrow-loading"),$)),customizeIcon:D,customizeIconProps:{loading:$,searchValue:Fe,open:Ze,focused:Me,showSearch:Ae}}));var xn=function(){var Je;x==null||x(),(Je=Ue.current)===null||Je===void 0||Je.focus(),g([],{type:"clear",values:v}),Qe("",!1,!1)},sr=SM(i,xn,v,V,X,E,Fe,S),Hn=sr.allowClear,cr=sr.clearIcon,Vn=u.createElement(W,{ref:it}),nr=se(i,l,H(H(H(H(H(H(H(H(H(H({},"".concat(i,"-focused"),Me),"".concat(i,"-multiple"),$e),"".concat(i,"-single"),!$e),"".concat(i,"-allow-clear"),V),"".concat(i,"-show-arrow"),Jt),"".concat(i,"-disabled"),E),"".concat(i,"-loading"),$),"".concat(i,"-open"),Ze),"".concat(i,"-customize-input"),wt),"".concat(i,"-show-search"),Ae)),ur=u.createElement(d_,{ref:st,disabled:E,prefixCls:i,visible:at,popupElement:Vn,animation:k,transitionName:F,dropdownStyle:Y,dropdownClassName:ne,direction:f,dropdownMatchSelectWidth:Z,dropdownRender:ee,dropdownAlign:fe,placement:me,builtinPlacements:ce,getPopupContainer:Se,empty:h,getTriggerDOMNode:function(Je){return bt.current||Je},onPopupVisibleChange:ut,onPopupMouseEnter:He},mt?u.cloneElement(mt,{ref:Bt}):u.createElement(qM,ke({},e,{domRef:bt,prefixCls:i,inputElement:wt,ref:Ue,id:r,prefix:U,showSearch:Ae,autoClearSearchValue:j,mode:S,activeDescendantId:z,tagRender:d,values:v,open:Ze,onToggleOpen:Oe,activeValue:_,searchValue:Fe,onSearch:Qe,onSearchSubmit:_t,onRemove:Kt,tokenWithEnter:Ce,onInputBlur:Yt}))),Xt;return mt?Xt=ur:Xt=u.createElement("div",ke({className:nr},je,{ref:lt,onMouseDown:et,onKeyDown:gn,onKeyUp:$n,onFocus:We,onBlur:Ct}),u.createElement(p_,{visible:Me&&!Ze,values:v}),ur,zn,Hn&&cr),u.createElement(V1.Provider,{value:$t},Xt)}),nv=function(){return null};nv.isSelectOptGroup=!0;var rv=function(){return null};rv.isSelectOption=!0;var Z1=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,l=e.children,s=e.prefixCls,d=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",-i),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:g},u.createElement(ro,{onResize:function(C){var x=C.offsetHeight;x&&d&&d()}},u.createElement("div",ke({style:h,className:se(H({},"".concat(s,"-holder-inner"),s)),ref:t},f),l,v)))});Z1.displayName="Filler";function y_(e){var t=e.children,n=e.setRef,r=u.useCallback(function(i){n(i)},[]);return u.cloneElement(t,{ref:r})}function b_(e,t,n,r,i,l,s,d){var f=d.getKey;return e.slice(t,n+1).map(function(m,v){var g=t+v,h=s(m,g,{style:{width:r},offsetX:i}),b=f(m);return u.createElement(y_,{key:b,setRef:function(x){return l(m,x)}},h)})}function S_(e,t,n){var r=e.length,i=t.length,l,s;if(r===0&&i===0)return null;r<i?(l=e,s=t):(l=t,s=e);var d={__EMPTY_ITEM__:!0};function f(C){return C!==void 0?n(C):d}for(var m=null,v=Math.abs(r-i)!==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 x_(e,t,n){var r=u.useState(e),i=re(r,2),l=i[0],s=i[1],d=u.useState(null),f=re(d,2),m=f[0],v=f[1];return u.useEffect(function(){var g=S_(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),s(e)},[e]),[m]}var My=(typeof navigator>"u"?"undefined":vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const J1=(function(e,t,n,r){var i=u.useRef(!1),l=u.useRef(null);function s(){clearTimeout(l.current),i.current=!0,l.current=setTimeout(function(){i.current=!1},50)}var d=u.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,function(f,m){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?m<0&&d.current.left||m>0&&d.current.right:m<0&&d.current.top||m>0&&d.current.bottom;return v&&g?(clearTimeout(l.current),i.current=!1):(!g||i.current)&&s(),!i.current&&g}});function C_(e,t,n,r,i,l,s){var d=u.useRef(0),f=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),g=J1(t,n,r,i);function h($,O){if(yn.cancel(f.current),!g(!1,O)){var P=$;if(!P._virtualHandled)P._virtualHandled=!0;else return;d.current+=O,m.current=O,My||P.preventDefault(),f.current=yn(function(){var R=v.current?10:1;s(d.current*R,!1),d.current=0})}}function b($,O){s(O,!0),My||$.preventDefault()}var C=u.useRef(null),x=u.useRef(null);function S($){if(e){yn.cancel(x.current),x.current=yn(function(){C.current=null},2);var O=$.deltaX,P=$.deltaY,R=$.shiftKey,I=O,T=P;(C.current==="sx"||!C.current&&R&&P&&!O)&&(I=P,T=0,C.current="sx");var _=Math.abs(I),M=Math.abs(T);C.current===null&&(C.current=l&&_>M?"x":"y"),C.current==="y"?h($,T):b($,I)}}function E($){e&&(v.current=$.detail===m.current)}return[S,E]}function w_(e,t,n,r){var i=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=re(i,2),s=l[0],d=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 C=e.length,x=d.length;x<C;x+=1){var S,E=e[x],$=t(E);s.set($,x);var O=(S=n.get($))!==null&&S!==void 0?S:r;if(d[x]=(d[x-1]||0)+O,$===v&&(h=x),$===g&&(b=x),h!==void 0&&b!==void 0)break}return{top:d[h-1]||0,bottom:d[b]}};return f}var $_=(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 _y(e){var t=parseFloat(e);return isNaN(t)?0:t}function E_(e,t,n){var r=u.useState(0),i=re(r,2),l=i[0],s=i[1],d=u.useRef(new Map),f=u.useRef(new $_),m=u.useRef(0);function v(){m.current+=1}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var C=function(){var E=!1;d.current.forEach(function($,O){if($&&$.offsetParent){var P=$.offsetHeight,R=getComputedStyle($),I=R.marginTop,T=R.marginBottom,_=_y(I),M=_y(T),z=P+_+M;f.current.get(O)!==z&&(f.current.set(O,z),E=!0)}}),E&&s(function($){return $+1})};if(b)C();else{m.current+=1;var x=m.current;Promise.resolve().then(function(){x===m.current&&C()})}}function h(b,C){var x=e(b);d.current.get(x),C?(d.current.set(x,C),g()):d.current.delete(x)}return u.useEffect(function(){return v},[]),[h,g,f.current,l]}var Ny=14/15;function O_(e,t,n){var r=u.useRef(!1),i=u.useRef(0),l=u.useRef(0),s=u.useRef(null),d=u.useRef(null),f,m=function(b){if(r.current){var C=Math.ceil(b.touches[0].pageX),x=Math.ceil(b.touches[0].pageY),S=i.current-C,E=l.current-x,$=Math.abs(S)>Math.abs(E);$?i.current=C:l.current=x;var O=n($,$?S:E,!1,b);O&&b.preventDefault(),clearInterval(d.current),O&&(d.current=setInterval(function(){$?S*=Ny:E*=Ny;var P=Math.floor($?S:E);(!n($,P,!0)||Math.abs(P)<=.1)&&clearInterval(d.current)},16))}},v=function(){r.current=!1,f()},g=function(b){f(),b.touches.length===1&&!r.current&&(r.current=!0,i.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(d.current)}},[e])}function zy(e){return Math.floor(Math.pow(e,.5))}function yp(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function R_(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var i=!1,l,s,d=function(){yn.cancel(l)},f=function h(){d(),l=yn(function(){n(s),h()})},m=function(){i=!1,d()},v=function(b){if(!(b.target.draggable||b.button!==0)){var C=b;C._virtualHandled||(C._virtualHandled=!0,i=!0)}},g=function(b){if(i){var C=yp(b,!1),x=r.getBoundingClientRect(),S=x.top,E=x.bottom;if(C<=S){var $=S-C;s=-zy($),f()}else if(C>=E){var O=C-E;s=zy(O),f()}else d()}};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),d()}}},[e])}var I_=10;function P_(e,t,n,r,i,l,s,d){var f=u.useRef(),m=u.useState(null),v=re(m,2),g=v[0],h=v[1];return tn(function(){if(g&&g.times<I_){if(!e.current){h(function(X){return q({},X)});return}l();var b=g.targetAlign,C=g.originAlign,x=g.index,S=g.offset,E=e.current.clientHeight,$=!1,O=b,P=null;if(E){for(var R=b||C,I=0,T=0,_=0,M=Math.min(t.length-1,x),z=0;z<=M;z+=1){var L=i(t[z]);T=I;var j=n.get(L);_=T+(j===void 0?r:j),I=_}for(var A=R==="top"?S:E-S,B=M;B>=0;B-=1){var K=i(t[B]),V=n.get(K);if(V===void 0){$=!0;break}if(A-=V,A<=0)break}switch(R){case"top":P=T-S;break;case"bottom":P=_-E+S;break;default:{var U=e.current.scrollTop,D=U+E;T<U?O="top":_>D&&(O="bottom")}}P!==null&&s(P),P!==g.lastTop&&($=!0)}$&&h(q(q({},g),{},{times:g.times+1,targetAlign:O,lastTop:P}))}},[g,e.current]),function(b){if(b==null){d();return}if(yn.cancel(f.current),typeof b=="number")s(b);else if(b&&vt(b)==="object"){var C,x=b.align;"index"in b?C=b.index:C=t.findIndex(function($){return i($)===b.key});var S=b.offset,E=S===void 0?0:S;h({times:0,index:C,offset:E,originAlign:x})}}}var jy=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,d=e.onStopMove,f=e.onScroll,m=e.horizontal,v=e.spinSize,g=e.containerSize,h=e.style,b=e.thumbStyle,C=e.showScrollBar,x=u.useState(!1),S=re(x,2),E=S[0],$=S[1],O=u.useState(null),P=re(O,2),R=P[0],I=P[1],T=u.useState(null),_=re(T,2),M=_[0],z=_[1],L=!r,j=u.useRef(),A=u.useRef(),B=u.useState(C),K=re(B,2),V=K[0],U=K[1],D=u.useRef(),X=function(){C===!0||C===!1||(clearTimeout(D.current),U(!0),D.current=setTimeout(function(){U(!1)},3e3))},W=l-g||0,k=g-v||0,F=u.useMemo(function(){if(i===0||W===0)return 0;var de=i/W;return de*k},[i,W,k]),Y=function(ie){ie.stopPropagation(),ie.preventDefault()},ne=u.useRef({top:F,dragging:E,pageY:R,startTop:M});ne.current={top:F,dragging:E,pageY:R,startTop:M};var Z=function(ie){$(!0),I(yp(ie,m)),z(ne.current.top),s(),ie.stopPropagation(),ie.preventDefault()};u.useEffect(function(){var de=function(pe){pe.preventDefault()},ie=j.current,he=A.current;return ie.addEventListener("touchstart",de,{passive:!1}),he.addEventListener("touchstart",Z,{passive:!1}),function(){ie.removeEventListener("touchstart",de),he.removeEventListener("touchstart",Z)}},[]);var ee=u.useRef();ee.current=W;var fe=u.useRef();fe.current=k,u.useEffect(function(){if(E){var de,ie=function(pe){var oe=ne.current,be=oe.dragging,we=oe.pageY,$e=oe.startTop;yn.cancel(de);var Ae=j.current.getBoundingClientRect(),je=g/(m?Ae.width:Ae.height);if(be){var Ie=(yp(pe,m)-we)*je,Le=$e;!L&&m?Le-=Ie:Le+=Ie;var Ee=ee.current,tt=fe.current,lt=tt?Le/tt:0,bt=Math.ceil(lt*Ee);bt=Math.max(bt,0),bt=Math.min(bt,Ee),de=yn(function(){f(bt,m)})}},he=function(){$(!1),d()};return window.addEventListener("mousemove",ie,{passive:!0}),window.addEventListener("touchmove",ie,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",ie),window.removeEventListener("touchmove",ie),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),yn.cancel(de)}}},[E]),u.useEffect(function(){return X(),function(){clearTimeout(D.current)}},[i]),u.useImperativeHandle(t,function(){return{delayHidden:X}});var me="".concat(n,"-scrollbar"),ce={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(ce,{height:8,left:0,right:0,bottom:0}),Object.assign(Se,H({height:"100%",width:v},L?"left":"right",F))):(Object.assign(ce,H({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Se,{width:"100%",height:v,top:F})),u.createElement("div",{ref:j,className:se(me,H(H(H({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),V)),style:q(q({},ce),h),onMouseDown:Y,onMouseMove:X},u.createElement("div",{ref:A,className:se("".concat(me,"-thumb"),H({},"".concat(me,"-thumb-moving"),E)),style:q(q({},Se),b),onMouseDown:Z}))}),T_=20;function ky(){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,T_),Math.floor(n)}var M_=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],__=[],N_={overflowY:"auto",overflowAnchor:"none"};function z_(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,l=e.height,s=e.itemHeight,d=e.fullHeight,f=d===void 0?!0:d,m=e.style,v=e.data,g=e.children,h=e.itemKey,b=e.virtual,C=e.direction,x=e.scrollWidth,S=e.component,E=S===void 0?"div":S,$=e.onScroll,O=e.onVirtualScroll,P=e.onVisibleChange,R=e.innerProps,I=e.extraRender,T=e.styles,_=e.showScrollBar,M=_===void 0?"optional":_,z=Mt(e,M_),L=u.useCallback(function(Ne){return typeof h=="function"?h(Ne):Ne==null?void 0:Ne[h]},[h]),j=E_(L),A=re(j,4),B=A[0],K=A[1],V=A[2],U=A[3],D=!!(b!==!1&&l&&s),X=u.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||!!x),k=C==="rtl",F=se(r,H({},"".concat(r,"-rtl"),k),i),Y=v||__,ne=u.useRef(),Z=u.useRef(),ee=u.useRef(),fe=u.useState(0),me=re(fe,2),ce=me[0],Se=me[1],de=u.useState(0),ie=re(de,2),he=ie[0],ge=ie[1],pe=u.useState(!1),oe=re(pe,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=u.useRef({start:0,end:Y.length}),Ee=u.useRef(),tt=x_(Y,L),lt=re(tt,1),bt=lt[0];Ee.current=bt;var st=u.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>=ce&&Ct===void 0&&(Ct=xt,ct=We),$t>ce+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,ce,Y,U,l]),Ue=st.scrollHeight,it=st.start,Ve=st.end,dt=st.offset;Le.current.start=it,Le.current.end=Ve,u.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=u.useState({width:0,height:l}),Me=re(Xe,2),Ye=Me[0],Pe=Me[1],Fe=function(We){Pe({width:We.offsetWidth,height:We.offsetHeight})},wt=u.useRef(),mt=u.useRef(),Bt=u.useMemo(function(){return ky(Ye.width,x)},[Ye.width,x]),At=u.useMemo(function(){return ky(Ye.height,Ue)},[Ye.height,Ue]),nn=Ue-l,vn=u.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=ce<=0,St=ce>=nn,Wt=he<=0,Lt=he>=x,Ze=J1(Tt,St,Wt,Lt),yt=function(){return{x:k?-he:he,y:ce}},at=u.useRef(yt()),Oe=Kn(function(Ne){if(O){var We=q(q({},yt()),Ne);(at.current.x!==We.x||at.current.y!==We.y)&&(O(We),at.current=We)}});function Ce(Ne,We){var Ct=Ne;We?(Si.flushSync(function(){ge(Ct)}),Oe()):Ie(Ct)}function xe(Ne){var We=Ne.currentTarget.scrollTop;We!==ce&&Ie(We),$==null||$(Ne),Oe()}var _e=function(We){var Ct=We,ct=x?x-Ye.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,ct),Ct},Ke=Kn(function(Ne,We){We?(Si.flushSync(function(){ge(function(Ct){var ct=Ct+(k?-Ne:Ne);return _e(ct)})}),Oe()):Ie(function(Ct){var ct=Ct+Ne;return ct})}),Qe=C_(D,Tt,St,Wt,Lt,!!x,Ke),_t=re(Qe,2),jt=_t[0],Rt=_t[1];O_(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}),R_(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",Rt,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ne,{passive:!1}),function(){We.removeEventListener("wheel",jt),We.removeEventListener("DOMMouseScroll",Rt),We.removeEventListener("MozMousePixelScroll",Ne)}},[D,Tt,St]),tn(function(){if(x){var Ne=_e(he);ge(Ne),Oe({x:Ne})}},[Ye.width,x]);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=P_(ne,Y,V,s,L,function(){return K(!0)},Ie,It);u.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&&ge(_e(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=w_(Y,L,V,s),gn=I==null?void 0:I({start:it,end:Ve,virtual:W,offsetX:he,offsetY:dt,rtl:k,getSize:sn}),$n=b_(Y,it,Ve,x,he,B,g,je),Kt=null;l&&(Kt=q(H({},f?"height":"maxHeight",l),N_),D&&(Kt.overflowY="hidden",x&&(Kt.overflowX="hidden"),be&&(Kt.pointerEvents="none")));var Yt={};return k&&(Yt.dir="rtl"),u.createElement("div",ke({ref:ee,style:q(q({},m),{},{position:"relative"}),className:F},Yt,z),u.createElement(ro,{onResize:Fe},u.createElement(E,{className:"".concat(r,"-holder"),style:Kt,ref:ne,onScroll:xe,onMouseEnter:It},u.createElement(Z1,{prefixCls:r,height:Ue,offsetX:he,offsetY:dt,scrollWidth:x,onInnerResize:K,ref:Z,innerProps:R,rtl:k,extra:gn},$n))),W&&Ue>l&&u.createElement(jy,{ref:wt,prefixCls:r,scrollOffset:ce,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:M}),W&&x>Ye.width&&u.createElement(jy,{ref:mt,prefixCls:r,scrollOffset:he,scrollRange:x,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:M}))}var ex=u.forwardRef(z_);ex.displayName="List";function j_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var k_=["disabled","title","children","style","className"];function Ly(e){return typeof e=="string"||typeof e=="number"}var L_=function(t,n){var r=xM(),i=r.prefixCls,l=r.id,s=r.open,d=r.multiple,f=r.mode,m=r.searchValue,v=r.toggleOpen,g=r.notFoundContent,h=r.onPopupScroll,b=u.useContext(tv),C=b.maxCount,x=b.flattenOptions,S=b.onActiveValue,E=b.defaultActiveFirstOption,$=b.onSelect,O=b.menuItemSelectedIcon,P=b.rawValues,R=b.fieldNames,I=b.virtual,T=b.direction,_=b.listHeight,M=b.listItemHeight,z=b.optionRender,L="".concat(i,"-item"),j=us(function(){return x},[s,x],function(de,ie){return ie[0]&&de[1]!==ie[1]}),A=u.useRef(null),B=u.useMemo(function(){return d&&vp(C)&&(P==null?void 0:P.size)>=C},[d,C,P==null?void 0:P.size]),K=function(ie){ie.preventDefault()},V=function(ie){var he;(he=A.current)===null||he===void 0||he.scrollTo(typeof ie=="number"?{index:ie}:ie)},U=u.useCallback(function(de){return f==="combobox"?!1:P.has(de)},[f,Be(P).toString(),P.size]),D=function(ie){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ge=j.length,pe=0;pe<ge;pe+=1){var oe=(ie+pe*he+ge)%ge,be=j[oe]||{},we=be.group,$e=be.data;if(!we&&!($e!=null&&$e.disabled)&&(U($e.value)||!B))return oe}return-1},X=u.useState(function(){return D(0)}),W=re(X,2),k=W[0],F=W[1],Y=function(ie){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(ie);var ge={source:he?"keyboard":"mouse"},pe=j[ie];if(!pe){S(null,-1,ge);return}S(pe.value,ie,ge)};u.useEffect(function(){Y(E!==!1?D(0):-1)},[j.length,m]);var ne=u.useCallback(function(de){return f==="combobox"?String(de).toLowerCase()===m.toLowerCase():P.has(de)},[f,m,Be(P).toString(),P.size]);u.useEffect(function(){var de=setTimeout(function(){if(!d&&s&&P.size===1){var he=Array.from(P)[0],ge=j.findIndex(function(pe){var oe=pe.data;return m?String(oe.value).startsWith(m):oe.value===he});ge!==-1&&(Y(ge),V(ge))}});if(s){var ie;(ie=A.current)===null||ie===void 0||ie.scrollTo(void 0)}return function(){return clearTimeout(de)}},[s,m]);var Z=function(ie){ie!==void 0&&$(ie,{selected:!P.has(ie)}),d||v(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(ie){var he=ie.which,ge=ie.ctrlKey;switch(he){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{var pe=0;if(he===qe.UP?pe=-1:he===qe.DOWN?pe=1:j_()&&ge&&(he===qe.N?pe=1:he===qe.P&&(pe=-1)),pe!==0){var oe=D(k+pe,pe);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&&ie.preventDefault();break}case qe.ESC:v(!1),s&&ie.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ie){V(ie)}}}),j.length===0)return u.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:K},g);var ee=Object.keys(R).map(function(de){return R[de]}),fe=function(ie){return ie.label};function me(de,ie){var he=de.group;return{role:he?"presentation":"option",id:"".concat(l,"_list_").concat(ie)}}var ce=function(ie){var he=j[ie];if(!he)return null;var ge=he.data||{},pe=ge.value,oe=he.group,be=xi(ge,!0),we=fe(he);return he?u.createElement("div",ke({"aria-label":typeof we=="string"&&!oe?we:null},be,{key:ie},me(he,ie),{"aria-selected":ne(pe)}),pe):null},Se={role:"listbox",id:"".concat(l,"_list")};return u.createElement(u.Fragment,null,I&&u.createElement("div",ke({},Se,{style:{height:0,width:0,overflow:"hidden"}}),ce(k-1),ce(k),ce(k+1)),u.createElement(ex,{itemKey:"key",ref:A,data:j,height:_,itemHeight:M,fullHeight:!1,onMouseDown:K,onScroll:h,virtual:I,direction:T,innerProps:I?null:Se},function(de,ie){var he=de.group,ge=de.groupOption,pe=de.data,oe=de.label,be=de.value,we=pe.key;if(he){var $e,Ae=($e=pe.title)!==null&&$e!==void 0?$e:Ly(oe)?oe.toString():void 0;return u.createElement("div",{className:se(L,"".concat(L,"-group"),pe.className),title:Ae},oe!==void 0?oe:we)}var je=pe.disabled,Ie=pe.title;pe.children;var Le=pe.style,Ee=pe.className,tt=Mt(pe,k_),lt=Hr(tt,ee),bt=U(be),st=je||!bt&&B,Ue="".concat(L,"-option"),it=se(L,Ue,Ee,H(H(H(H({},"".concat(Ue,"-grouped"),ge),"".concat(Ue,"-active"),k===ie&&!st),"".concat(Ue,"-disabled"),st),"".concat(Ue,"-selected"),bt)),Ve=fe(de),dt=!O||typeof O=="function"||bt,Xe=typeof Ve=="number"?Ve:Ve||be,Me=Ly(Xe)?Xe.toString():void 0;return Ie!==void 0&&(Me=Ie),u.createElement("div",ke({},xi(lt),I?{}:me(de,ie),{"aria-selected":ne(be),className:it,title:Me,onMouseMove:function(){k===ie||st||Y(ie)},onClick:function(){st||Z(be)},style:Le}),u.createElement("div",{className:"".concat(Ue,"-content")},typeof z=="function"?z(de,{index:ie}):Xe),u.isValidElement(O)||bt,dt&&u.createElement(ku,{className:"".concat(L,"-option-state"),customizeIcon:O,customizeIconProps:{value:be,disabled:st,isSelected:bt}},bt?"✓":null))}))},A_=u.forwardRef(L_);const D_=(function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var l=n.current,s=l.values,d=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)||d.get(g.value))}),n.current.values=m,n.current.options=v,f},[e,t]),i=u.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,i]});function tm(e,t){return X1(e).join("").toUpperCase().includes(t)}const B_=(function(e,t,n,r,i){return u.useMemo(function(){if(!n||r===!1)return e;var l=t.options,s=t.label,d=t.value,f=[],m=typeof r=="function",v=n.toUpperCase(),g=m?r:function(b,C){return i?tm(C[i],v):C[l]?tm(C[s!=="children"?s:"label"],v):tm(C[d],v)},h=m?function(b){return gp(b)}:function(b){return b};return e.forEach(function(b){if(b[l]){var C=g(n,h(b));if(C)f.push(b);else{var x=b[l].filter(function(S){return g(n,h(S))});x.length&&f.push(q(q({},b),{},H({},l,x)))}return}g(n,h(b))&&f.push(b)}),f},[e,r,i,n,t])});var Ay=0,F_=wr();function H_(){var e;return F_?(e=Ay,Ay+=1):e="TEST_OR_SSR",e}function V_(e){var t=u.useState(),n=re(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_select_".concat(H_()))},[]),e||r}var W_=["children","value"],U_=["children"];function G_(e){var t=e,n=t.key,r=t.props,i=r.children,l=r.value,s=Mt(r,W_);return q({key:n,value:l!==void 0?l:n,children:i},s)}function tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _r(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var i=n,l=i.type.isSelectOptGroup,s=i.key,d=i.props,f=d.children,m=Mt(d,U_);return t||!l?G_(n):q(q({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:tx(f)})}).filter(function(n){return n})}var K_=function(t,n,r,i,l){return u.useMemo(function(){var s=t,d=!t;d&&(s=tx(n));var f=new Map,m=new Map,v=function(b,C,x){x&&typeof x=="string"&&b.set(C[x],C)},g=function h(b){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x<b.length;x+=1){var S=b[x];!S[r.options]||C?(f.set(S[r.value],S),v(m,S,r.label),v(m,S,i),v(m,S,l)):h(S[r.options],!0)}};return g(s),{options:s,valueOptions:f,labelOptions:m}},[t,n,r,i,l])};function Dy(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var q_=["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"],X_=["inputValue"];function Q_(e){return!e||vt(e)!=="object"}var Y_=u.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,l=i===void 0?"rc-select":i,s=e.backfill,d=e.fieldNames,f=e.inputValue,m=e.searchValue,v=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.onSelect,C=e.onDeselect,x=e.dropdownMatchSelectWidth,S=x===void 0?!0:x,E=e.filterOption,$=e.filterSort,O=e.optionFilterProp,P=e.optionLabelProp,R=e.options,I=e.optionRender,T=e.children,_=e.defaultActiveFirstOption,M=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=Mt(e,q_),Y=V_(n),ne=hp(r),Z=!!(!R&&T),ee=u.useMemo(function(){return E===void 0&&r==="combobox"?!1:E},[E,r]),fe=u.useMemo(function(){return Y1(d,Z)},[JSON.stringify(d),Z]),me=tr("",{value:m!==void 0?m:f,postState:function(Ce){return Ce||""}}),ce=re(me,2),Se=ce[0],de=ce[1],ie=K_(R,T,fe,O,P),he=ie.valueOptions,ge=ie.labelOptions,pe=ie.options,oe=u.useCallback(function(Oe){var Ce=X1(Oe);return Ce.map(function(xe){var _e,Ke,Qe,_t,jt;if(Q_(xe))_e=xe;else{var Rt;Qe=xe.key,Ke=xe.label,_e=(Rt=xe.value)!==null&&Rt!==void 0?Rt:Qe}var It=he.get(_e);if(It){var mn;Ke===void 0&&(Ke=It==null?void 0:It[P||fe.label]),Qe===void 0&&(Qe=(mn=It==null?void 0:It.key)!==null&&mn!==void 0?mn:_e),_t=It==null?void 0:It.disabled,jt=It==null?void 0:It.title}return{label:Ke,value:_e,key:Qe,disabled:_t,title:jt}})},[fe,P,he]),be=tr(D,{value:U}),we=re(be,2),$e=we[0],Ae=we[1],je=u.useMemo(function(){var Oe,Ce=ne&&$e===null?[]:$e,xe=oe(Ce);return r==="combobox"&&HM((Oe=xe[0])===null||Oe===void 0?void 0:Oe.value)?[]:xe},[$e,oe,r,ne]),Ie=D_(je,he),Le=re(Ie,2),Ee=Le[0],tt=Le[1],lt=u.useMemo(function(){if(!r&&Ee.length===1){var Oe=Ee[0];if(Oe.value===null&&(Oe.label===null||Oe.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=u.useMemo(function(){return new Set(Ee.map(function(Oe){return Oe.value}))},[Ee]);u.useEffect(function(){if(r==="combobox"){var Oe,Ce=(Oe=Ee[0])===null||Oe===void 0?void 0:Oe.value;de(FM(Ce)?String(Ce):"")}},[Ee]);var st=Dy(function(Oe,Ce){var xe=Ce??Oe;return H(H({},fe.value,Oe),fe.label,xe)}),Ue=u.useMemo(function(){if(r!=="tags")return pe;var Oe=Be(pe),Ce=function(_e){return he.has(_e)};return Be(Ee).sort(function(xe,_e){return xe.value<_e.value?-1:1}).forEach(function(xe){var _e=xe.value;Ce(_e)||Oe.push(st(_e,xe.label))}),Oe},[st,pe,he,Ee,r]),it=B_(Ue,fe,Se,ee,O),Ve=u.useMemo(function(){return r!=="tags"||!Se||it.some(function(Oe){return Oe[O||"value"]===Se})||it.some(function(Oe){return Oe[fe.value]===Se})?it:[st(Se)].concat(Be(it))},[st,O,r,it,Se,fe]),dt=function Oe(Ce){var xe=Be(Ce).sort(function(_e,Ke){return $(_e,Ke,{searchValue:Se})});return xe.map(function(_e){return Array.isArray(_e.options)?q(q({},_e),{},{options:_e.options.length>0?Oe(_e.options):_e.options}):_e})},Xe=u.useMemo(function(){return $?dt(Ve):Ve},[Ve,$,Se]),Me=u.useMemo(function(){return f_(Xe,{fieldNames:fe,childrenAsData:Z})},[Xe,fe,Z]),Ye=function(Ce){var xe=oe(Ce);if(Ae(xe),W&&(xe.length!==Ee.length||xe.some(function(Qe,_t){var jt;return((jt=Ee[_t])===null||jt===void 0?void 0:jt.value)!==(Qe==null?void 0:Qe.value)}))){var _e=X?xe:xe.map(function(Qe){return Qe.value}),Ke=xe.map(function(Qe){return gp(tt(Qe.value))});W(ne?_e:_e[0],ne?Ke:Ke[0])}},Pe=u.useState(null),Fe=re(Pe,2),wt=Fe[0],mt=Fe[1],Bt=u.useState(0),At=re(Bt,2),nn=At[0],vn=At[1],Vt=_!==void 0?_:r!=="combobox",Tt=u.useCallback(function(Oe,Ce){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=xe.source,Ke=_e===void 0?"keyboard":_e;vn(Ce),s&&r==="combobox"&&Oe!==null&&Ke==="keyboard"&&mt(String(Oe))},[s,r]),St=function(Ce,xe,_e){var Ke=function(){var Kt,Yt=tt(Ce);return[X?{label:Yt==null?void 0:Yt[fe.label],value:Ce,key:(Kt=Yt==null?void 0:Yt.key)!==null&&Kt!==void 0?Kt:Ce}:Ce,gp(Yt)]};if(xe&&b){var Qe=Ke(),_t=re(Qe,2),jt=_t[0],Rt=_t[1];b(jt,Rt)}else if(!xe&&C&&_e!=="clear"){var It=Ke(),mn=re(It,2),sn=mn[0],gn=mn[1];C(sn,gn)}},Wt=Dy(function(Oe,Ce){var xe,_e=ne?Ce.selected:!0;_e?xe=ne?[].concat(Be(Ee),[Oe]):[Oe]:xe=Ee.filter(function(Ke){return Ke.value!==Oe}),Ye(xe),St(Oe,_e),r==="combobox"?mt(""):(!hp||h)&&(de(""),mt(""))}),Lt=function(Ce,xe){Ye(Ce);var _e=xe.type,Ke=xe.values;(_e==="remove"||_e==="clear")&&Ke.forEach(function(Qe){St(Qe.value,!1,_e)})},Ze=function(Ce,xe){if(de(Ce),mt(null),xe.source==="submit"){var _e=(Ce||"").trim();if(_e){var Ke=Array.from(new Set([].concat(Be(bt),[_e])));Ye(Ke),St(_e,!0),de("")}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=ge.get(Ke);return Qe==null?void 0:Qe.value}).filter(function(Ke){return Ke!==void 0}));var _e=Array.from(new Set([].concat(Be(bt),Be(xe))));Ye(_e),_e.forEach(function(Ke){St(Ke,!0)})},at=u.useMemo(function(){var Oe=z!==!1&&S!==!1;return q(q({},ie),{},{flattenOptions:Me,onActiveValue:Tt,defaultActiveFirstOption:Vt,onSelect:Wt,menuItemSelectedIcon:M,rawValues:bt,fieldNames:fe,virtual:Oe,direction:L,listHeight:A,listItemHeight:K,childrenAsData:Z,maxCount:k,optionRender:I})},[k,ie,Me,Tt,Vt,Wt,M,bt,fe,z,S,L,A,K,Z,I]);return u.createElement(tv.Provider,{value:at},u.createElement(h_,ke({},F,{id:Y,prefixCls:l,ref:t,omitDomProps:X_,mode:r,displayValues:lt,onDisplayValuesChange:Lt,direction:L,searchValue:Se,onSearch:Ze,autoClearSearchValue:h,onSearchSplit:yt,dropdownMatchSelectWidth:S,OptionList:A_,emptyOptions:!Me.length,activeValue:wt,activeDescendantId:"".concat(Y,"_list_").concat(nn)})))}),ov=Y_;ov.Option=rv;ov.OptGroup=nv;function nx(e,t,n){return se({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const rx=(e,t)=>t||e,Z_=()=>{const[,e]=Wr(),[t]=Ja("Empty"),r=new dn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},J_=()=>{const[,e]=Wr(),[t]=Ja("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:l}=e,{borderColor:s,shadowColor:d,contentColor:f}=u.useMemo(()=>({borderColor:new dn(n).onBackground(l).toHexString(),shadowColor:new dn(r).onBackground(l).toHexString(),contentColor:new dn(i).onBackground(l).toHexString()}),[n,r,i,l]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:s},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},eN=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},tN=Rn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=fn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return eN(i)});var nN=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ox=u.createElement(Z_,null),ix=u.createElement(J_,null),ho=e=>{var t;const{className:n,rootClassName:r,prefixCls:i,image:l,description:s,children:d,imageStyle:f,style:m,classNames:v,styles:g}=e,h=nN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:C,className:x,style:S,classNames:E,styles:$,image:O}=Vr("empty"),P=b("empty",i),[R,I,T]=tN(P),[_]=Ja("Empty"),M=typeof s<"u"?s:_==null?void 0:_.description,z=typeof M=="string"?M:"empty",L=(t=l??O)!==null&&t!==void 0?t:ox;let j=null;return typeof L=="string"?j=u.createElement("img",{draggable:!1,alt:z,src:L}):j=L,R(u.createElement("div",Object.assign({className:se(I,T,P,x,{[`${P}-normal`]:L===ix,[`${P}-rtl`]:C==="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),u.createElement("div",{className:se(`${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),M&&u.createElement("div",{className:se(`${P}-description`,E.description,v==null?void 0:v.description),style:Object.assign(Object.assign({},$.description),g==null?void 0:g.description)},M),d&&u.createElement("div",{className:se(`${P}-footer`,E.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},$.footer),g==null?void 0:g.footer)},d)))};ho.PRESENTED_IMAGE_DEFAULT=ox;ho.PRESENTED_IMAGE_SIMPLE=ix;const ax=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.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)}},lx=(e,t,n)=>{var r,i;const{variant:l,[e]:s}=u.useContext(Gt),d=u.useContext(aM),f=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(i=(r=d??f)!==null&&r!==void 0?r:l)!==null&&i!==void 0?i:"outlined";const v=z2.includes(m);return[m,v]},rN=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 oN(e,t){return e||rN(t)}const By=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},iN=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${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`,d=`${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
+ ${i}${d}bottomLeft,
212
+ ${l}${d}bottomLeft
213
+ `]:{animationName:O1},[`
214
+ ${i}${d}topLeft,
215
+ ${l}${d}topLeft,
216
+ ${i}${d}topRight,
217
+ ${l}${d}topRight
218
+ `]:{animationName:I1},[`${s}${d}bottomLeft`]:{animationName:R1},[`
219
+ ${s}${d}topLeft,
220
+ ${s}${d}topRight
221
+ `]:{animationName:P1},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},By(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"},Jc),"&-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({},By(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ou(e,"slide-up"),ou(e,"slide-down"),ry(e,"move-up"),ry(e,"move-down")]},aN=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,l=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(l).sub(i).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:le(t),itemLineHeight:le(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},lN=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},sN=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:d,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 ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(v).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:d,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({},fs()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},cN=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=lN(e),d=t?`${n}-${t}`:"",f=aN(e);return{[`${n}-multiple${d}`]:Object.assign(Object.assign({},sN(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:`${le(r)} 0`,lineHeight:le(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:le(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:le(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${i}-item + ${i}-item,
222
+ ${n}-prefix + ${n}-selection-wrap
223
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-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:le(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 nm(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${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[cN(e,t),i]}const uN=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[nm(e),nm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},nm(r,"lg")]};function rm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=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:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:le(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:le(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 ${le(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:le(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 ${le(r)}`,"&:after":{display:"none"}}}}}}}function dN(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[rm(e),rm(fn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${le(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()}}}},rm(fn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const fN=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:l,controlHeightLG:s,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:v,fontWeightStrong:g,controlItemBgActive:h,controlItemBgHover:b,colorBgContainer:C,colorFillSecondary:x,colorBgContainerDisabled:S,colorTextDisabled:E,colorPrimaryHover:$,colorPrimary:O,controlOutline:P}=e,R=d*2,I=r*2,T=Math.min(i-R,i-I),_=Math.min(l-R,l-I),M=Math.min(s-R,s-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:m+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:h,optionActiveBg:b,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:C,clearBg:C,singleItemHeightLG:s,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:_,multipleItemHeightLG:M,multipleSelectorBgDisabled:S,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:O,activeOutlineColor:P,selectAffixPadding:d}},sx=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${le(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 ${le(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sx(e,t))}),mN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Fy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Fy(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:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),cx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${le(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}}}},Hy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cx(e,t))}),pN=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},cx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Hy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Hy(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vN=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${le(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:`${le(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}}}}),ux=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${le(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}}}},Vy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ux(e,t))}),gN=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ux(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`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),hN=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},mN(e)),pN(e)),vN(e)),gN(e))}),yN=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"}}}},bN=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"}}}},SN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=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({},yN(e)),bN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Jc),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Jc),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},fs()),{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`,[i]:{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()}}}}}},xN=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},SN(e),dN(e),uN(e),iN(e),{[`${t}-rtl`]:{direction:"rtl"}},ju(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},CN=Rn("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[xN(n),hN(n)]},fN,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var wN={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"},$N=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:wN}))},dx=u.forwardRef($N),EN={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"},ON=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:EN}))},RN=u.forwardRef(ON),IN={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"},PN=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:IN}))},TN=u.forwardRef(PN);function MN({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:l,hasFeedback:s,prefixCls:d,showSuffixIcon:f,feedbackIcon:m,showArrow:v,componentName:g}){const h=t??u.createElement(Up,null),b=E=>e===null&&!s&&!v?null:u.createElement(u.Fragment,null,f!==!1&&E,s&&m);let C=null;if(e!==void 0)C=b(e);else if(i)C=b(u.createElement(Eu,{spin:!0}));else{const E=`${d}-suffix`;C=({open:$,showSearch:O})=>b($&&O?u.createElement(TN,{className:E}):u.createElement(RN,{className:E}))}let x=null;n!==void 0?x=n:l?x=u.createElement(dx,null):x=null;let S=null;return r!==void 0?S=r:S=u.createElement($u,null),{clearIcon:h,suffixIcon:C,itemIcon:x,removeIcon:S}}function _N(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(H1,{space:!0},e.apply(void 0,t))},[e])}function NN(e,t){return t!==void 0?t:e!==null}var zN=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",jN=(e,t)=>{var n,r,i,l,s;const{prefixCls:d,bordered:f,className:m,rootClassName:v,getPopupContainer:g,popupClassName:h,dropdownClassName:b,listHeight:C=256,placement:x,listItemHeight:S,size:E,disabled:$,notFoundContent:O,status:P,builtinPlacements:R,dropdownMatchSelectWidth:I,popupMatchSelectWidth:T,direction:_,style:M,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=zN(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:fe,virtual:me,popupMatchSelectWidth:ce,popupOverflow:Se}=u.useContext(Gt),{showSearch:de,style:ie,styles:he,className:ge,classNames:pe}=Vr("select"),[,oe]=Wr(),be=S??(oe==null?void 0:oe.controlHeight),we=Z("select",d),$e=Z(),Ae=_??fe,{compactSize:je,compactItemClassnames:Ie}=Iu(we,Ae),[Le,Ee]=lx("select",L,f),tt=ms(we),[lt,bt,st]=CN(we,tt),Ue=u.useMemo(()=>{const{mode:_e}=e;if(_e!=="combobox")return _e===fx?"combobox":_e},[e.mode]),it=Ue==="multiple"||Ue==="tags",Ve=NN(e.suffixIcon,e.showArrow),dt=(n=T??I)!==null&&n!==void 0?n:ce,Xe=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((i=he.popup)===null||i===void 0?void 0:i.root)||j,Me=_N(D||U),Ye=W||X,{status:Pe,hasFeedback:Fe,isFormItemInput:wt,feedbackIcon:mt}=u.useContext(lu),Bt=rx(Pe,P);let At;O!==void 0?At=O:Ue==="combobox"?At=null:At=(ee==null?void 0:ee("Select"))||u.createElement(ax,{componentName:"Select"});const{suffixIcon:nn,itemIcon:vn,removeIcon:Vt,clearIcon:Tt}=MN(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=se(((l=F==null?void 0:F.popup)===null||l===void 0?void 0:l.root)||((s=pe==null?void 0:pe.popup)===null||s===void 0?void 0:s.root)||h||b,{[`${we}-dropdown-${Ae}`]:Ae==="rtl"},v,pe.root,F==null?void 0:F.root,st,tt,bt),Ze=qo(_e=>{var Ke;return(Ke=E??je)!==null&&Ke!==void 0?Ke:_e}),yt=u.useContext(qa),at=$??yt,Oe=se({[`${we}-lg`]:Ze==="large",[`${we}-sm`]:Ze==="small",[`${we}-rtl`]:Ae==="rtl",[`${we}-${Le}`]:Ee,[`${we}-in-form-item`]:wt},nx(we,Bt,Fe),Ie,ge,m,pe.root,F==null?void 0:F.root,v,st,tt,bt),Ce=u.useMemo(()=>x!==void 0?x:Ae==="rtl"?"bottomRight":"bottomLeft",[x,Ae]),[xe]=f1("SelectLike",Xe==null?void 0:Xe.zIndex);return lt(u.createElement(ov,Object.assign({ref:t,virtual:me,showSearch:de},Wt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),k==null?void 0:k.root),ie),M),dropdownMatchSelectWidth:dt,transitionName:qp($e,"slide-up",A),builtinPlacements:oN(R,Se),listHeight:C,listItemHeight:be,mode:Ue,prefixCls:we,placement:Ce,direction:Ae,prefix:V,suffixIcon:nn,menuItemSelectedIcon:vn,removeIcon:Vt,allowClear:St,notFoundContent:At,className:Oe,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:Me,onDropdownVisibleChange:Ye})))},tl=u.forwardRef(jN),kN=bM(tl,"dropdownAlign");tl.SECRET_COMBOBOX_MODE_DO_NOT_USE=fx;tl.Option=rv;tl.OptGroup=nv;tl._InternalPanelDoNotUseOrYouWillBeFired=kN;const mx=(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)},px=(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)},Ki=["xxl","xl","lg","md","sm","xs"],LN=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)`}),AN=e=>{const t=e,n=[].concat(Ki).reverse();return n.forEach((r,i)=>{const l=r.toUpperCase(),s=`screen${l}Min`,d=`screen${l}`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`);if(i<n.length-1){const f=`screen${l}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const v=`screen${n[i+1].toUpperCase()}Min`;if(!(t[f]<=t[v]))throw new Error(`${f}<=${v} fails : !(${t[f]}<=${t[v]})`)}}),e},DN=()=>{const[,e]=Wr(),t=LN(AN(e));return J.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return i=l,n.forEach(s=>s(i)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(i),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,s])=>{const d=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},i),{[l]:m}))},f=window.matchMedia(s);mx(f,d),this.matchHandlers[s]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];px(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function iv(e=!0,t={}){const n=u.useRef(t),[,r]=MR(),i=DN();return tn(()=>{const l=i.subscribe(s=>{n.current=s,e&&r()});return()=>i.unsubscribe(l)},[]),n.current}function vx(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,l=e.bodyClassName,s=e.className,d=e.style;return u.createElement("div",{className:se("".concat(n,"-content"),s),style:d},u.createElement("div",{className:se("".concat(n,"-inner"),l),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Ma={shiftX:64,adjustY:1},_a={adjustX:1,shiftY:!0},eo=[0,0],BN={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:Ma,offset:[0,-4],targetOffset:eo},bottom:{points:["tc","bc"],overflow:Ma,offset:[0,4],targetOffset:eo},topLeft:{points:["bl","tl"],overflow:Ma,offset:[0,-4],targetOffset:eo},leftTop:{points:["tr","tl"],overflow:_a,offset:[-4,0],targetOffset:eo},topRight:{points:["br","tr"],overflow:Ma,offset:[0,-4],targetOffset:eo},rightTop:{points:["tl","tr"],overflow:_a,offset:[4,0],targetOffset:eo},bottomRight:{points:["tr","br"],overflow:Ma,offset:[0,4],targetOffset:eo},rightBottom:{points:["bl","br"],overflow:_a,offset:[4,0],targetOffset:eo},bottomLeft:{points:["tl","bl"],overflow:Ma,offset:[0,4],targetOffset:eo},leftBottom:{points:["br","bl"],overflow:_a,offset:[-4,0],targetOffset:eo}},FN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],HN=function(t,n){var r=t.overlayClassName,i=t.trigger,l=i===void 0?["hover"]:i,s=t.mouseEnterDelay,d=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,C=t.onVisibleChange,x=t.afterVisibleChange,S=t.transitionName,E=t.animation,$=t.motion,O=t.placement,P=O===void 0?"right":O,R=t.align,I=R===void 0?{}:R,T=t.destroyTooltipOnHide,_=T===void 0?!1:T,M=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=Mt(t,FN),X=j1(A),W=u.useRef(null);u.useImperativeHandle(n,function(){return W.current});var k=q({},D);"visible"in t&&(k.popupVisible=t.visible);var F=function(){return u.createElement(vx,{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=u.Children.only(b),ee=(Z==null?void 0:Z.props)||{},fe=q(q({},ee),{},{"aria-describedby":j?X:null});return u.cloneElement(b,fe)};return u.createElement(Lu,ke({popupClassName:se(r,V==null?void 0:V.root),prefixCls:h,popup:F,action:l,builtinPlacements:BN,popupPlacement:P,ref:W,popupAlign:I,getPopupContainer:z,onPopupVisibleChange:C,afterPopupVisibleChange:x,popupTransitionName:S,popupAnimation:E,popupMotion:$,defaultPopupVisible:M,autoDestroy:_,mouseLeaveDelay:m,popupStyle:q(q({},v),U==null?void 0:U.root),mouseEnterDelay:d,arrow:K},k),Y())};const VN=u.forwardRef(HN);function WN(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,l=0,s=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),m=i-n*(1/Math.sqrt(2)),v=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*i-m,h=v,b=2*i-d,C=f,x=2*i-l,S=s,E=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),O=`polygon(${$}px 100%, 50% ${$}px, ${2*i-$}px 100%, ${$}px 100%)`,P=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${d} ${f} L ${m} ${v} A ${n} ${n} 0 0 1 ${g} ${h} L ${b} ${C} A ${r} ${r} 0 0 0 ${x} ${S} Z')`;return{arrowShadowWidth:E,arrowPath:P,arrowPolygon:O}}const UN=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:d,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:[i,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${le(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},gx=8;function hx(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?gx:r}}function Ic(e,t){return e?t:{}}function GN(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:d=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"},UN(e,t,i)),{"&:before":{background:t}})]},Ic(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,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% - ${le(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Ic(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,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% - ${le(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Ic(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},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}})),Ic(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},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 KN(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=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),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Wy={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"]}},qN={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"]}},XN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QN(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:l}=e,s=t/2,d={},f=hx({contentRadius:l,limitVerticalRadius:!0});return Object.keys(Wy).forEach(m=>{const v=r&&qN[m]||Wy[m],g=Object.assign(Object.assign({},v),{offset:[0,0],dynamicInset:!0});switch(d[m]=g,XN.has(m)&&(g.autoArrow=!1),m){case"top":case"topLeft":case"topRight":g.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=s+i;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=KN(m,f,t,n),g.htmlRegion="visibleFirst"}),d}const YN=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:d,controlHeight:f,boxShadowSecondary:m,paddingSM:v,paddingXS:g,arrowOffsetHorizontal:h,sizePopupArrow:b}=e,C=t(s).add(b).add(h).equal(),x=t(s).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",zIndex:d,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:x,minHeight:f,padding:`${le(e.calc(v).div(2).equal())} ${le(g)}`,color:`var(--ant-tooltip-color, ${i})`,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:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,gx)}},[`${n}-content`]:{position:"relative"}}),wu(e,(S,{darkColor:E})=>({[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:E},[`${n}-arrow`]:{"--antd-arrow-background-color":E}}}))),{"&-rtl":{direction:"rtl"}})},GN(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ZN=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},hx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),WN(fn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),yx=(e,t=!0)=>Rn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:l,colorBgSpotlight:s}=r,d=fn(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:i,tooltipBg:s});return[YN(d),yP(r,"zoom-big-fast")]},ZN,{resetStyle:!1,injectStyle:t})(e),JN=Ui.map(e=>`${e}-inverse`),ez=["success","processing","error","default","warning"];function Au(e,t=!0){return t?[].concat(Be(JN),Be(Ui)).includes(e):Ui.includes(e)}function tz(e){return ez.includes(e)}function bx(e,t){const n=Au(t),r=se({[`${e}-${t}`]:t&&n}),i={},l={},s=OP(t).toRgb(),f=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:l}}const nz=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:l,overlayInnerStyle:s}=e,{getPrefixCls:d}=u.useContext(Gt),f=d("tooltip",t),[m,v,g]=yx(f),h=bx(f,l),b=h.arrowStyle,C=Object.assign(Object.assign({},s),h.overlayStyle),x=se(v,g,f,`${f}-pure`,`${f}-placement-${r}`,n,h.className);return m(u.createElement("div",{className:x,style:b},u.createElement("div",{className:`${f}-arrow`}),u.createElement(vx,Object.assign({},e,{className:v,prefixCls:f,overlayInnerStyle:C}),i)))};var rz=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oz=u.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:l,getTooltipContainer:s,color:d,overlayInnerStyle:f,children:m,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:h,destroyOnHidden:b,arrow:C=!0,title:x,overlay:S,builtinPlacements:E,arrowPointAtCenter:$=!1,autoAdjustOverflow:O=!0,motion:P,getPopupContainer:R,placement:I="top",mouseEnterDelay:T=.1,mouseLeaveDelay:_=.1,overlayStyle:M,rootClassName:z,overlayClassName:L,styles:j,classNames:A}=e,B=rz(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=!!C,[,V]=Wr(),{getPopupContainer:U,getPrefixCls:D,direction:X,className:W,style:k,classNames:F,styles:Y}=Vr("tooltip"),ne=Fp(),Z=u.useRef(null),ee=()=>{var Ve;(Ve=Z.current)===null||Ve===void 0||Ve.forceAlign()};u.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[fe,me]=tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ce=!x&&!S&&x!==0,Se=Ve=>{var dt,Xe;me(ce?!1:Ve),ce||((dt=e.onOpenChange)===null||dt===void 0||dt.call(e,Ve),(Xe=e.onVisibleChange)===null||Xe===void 0||Xe.call(e,Ve))},de=u.useMemo(()=>{var Ve,dt;let Xe=$;return typeof C=="object"&&(Xe=(dt=(Ve=C.pointAtCenter)!==null&&Ve!==void 0?Ve:C.arrowPointAtCenter)!==null&&dt!==void 0?dt:$),E||QN({arrowPointAtCenter:Xe,autoAdjustOverflow:O,arrowWidth:K?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS})},[$,C,E,V]),ie=u.useMemo(()=>x===0?x:S||x||"",[S,x]),he=u.createElement(H1,{space:!0},typeof ie=="function"?ie():ie),ge=D("tooltip",i),pe=D(),oe=e["data-popover-inject"];let be=fe;!("open"in e)&&!("visible"in e)&&ce&&(be=!1);const we=u.isValidElement(m)&&!a1(m)?m:u.createElement("span",null,m),$e=we.props,Ae=!$e.className||typeof $e.className=="string"?se($e.className,l||`${ge}-open`):$e.className,[je,Ie,Le]=yx(ge,!oe),Ee=bx(ge,d),tt=Ee.arrowStyle,lt=se(L,{[`${ge}-rtl`]:X==="rtl"},Ee.className,z,Ie,Le,W,F.root,A==null?void 0:A.root),bt=se(F.body,A==null?void 0:A.body),[st,Ue]=f1("Tooltip",B.zIndex),it=u.createElement(VN,Object.assign({},B,{zIndex:st,showArrow:K,placement:I,mouseEnterDelay:T,mouseLeaveDelay:_,prefixCls:ge,classNames:{root:lt,body:bt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),Y.root),k),M),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:R||s||U,ref:Z,builtinPlacements:de,overlay:he,visible:be,onVisibleChange:Se,afterVisibleChange:v??g,arrowContent:u.createElement("span",{className:`${ge}-arrow-content`}),motion:{motionName:qp(pe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!h}),be?Io(we,{className:Ae}):we);return je(u.createElement(u1.Provider,{value:Ue},it))}),Du=oz;Du._InternalPanelDoNotUseOrYouWillBeFired=nz;const iz=new Ht("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),az=new Ht("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),lz=new Ht("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),sz=new Ht("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),cz=new Ht("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),uz=new Ht("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),dz=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:l,textFontSizeSM:s,statusSize:d,dotSize:f,textFontWeight:m,indicatorHeight:v,indicatorHeightSM:g,marginXS:h,calc:b}=e,C=`${r}-scroll-number`,x=wu(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:le(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(v).div(2).equal(),boxShadow:`0 0 0 ${le(i)} ${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:le(g),borderRadius:b(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${le(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 ${le(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:uz,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,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:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:iz,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}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:az,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:lz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:sz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:cz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Sx=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,l=t,s=n,d=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return fn(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:d,badgeColor:f,badgeColorHover:m,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},xx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},fz=Rn("Badge",e=>{const t=Sx(e);return dz(t)},xx),mz=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:l}=e,s=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=wu(e,(m,{darkColor:v})=>({[`&${s}-color-${m}`]:{background:v,color:v}}));return{[d]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",top:r,padding:`0 ${le(e.paddingXS)}`,color:e.colorPrimary,lineHeight:le(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${le(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${s}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},pz=Rn(["Badge","Ribbon"],e=>{const t=Sx(e);return mz(t)},xx),vz=e=>{const{className:t,prefixCls:n,style:r,color:i,children:l,text:s,placement:d="end",rootClassName:f}=e,{getPrefixCls:m,direction:v}=u.useContext(Gt),g=m("ribbon",n),h=`${g}-wrapper`,[b,C,x]=pz(g,h),S=Au(i,!1),E=se(g,`${g}-placement-${d}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${i}`]:S},t),$={},O={};return i&&!S&&($.background=i,O.color=i),b(u.createElement("div",{className:se(h,f,C,x)},l,u.createElement("div",{className:se(E,C),style:Object.assign(Object.assign({},$),r)},u.createElement("span",{className:`${g}-text`},s),u.createElement("div",{className:`${g}-corner`,style:O}))))},Uy=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),u.createElement("span",{style:l,className:se(`${t}-only-unit`,{current:r})},n)};function gz(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const hz=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),l=Math.abs(n),[s,d]=u.useState(i),[f,m]=u.useState(l),v=()=>{d(i),m(l)};u.useEffect(()=>{const b=setTimeout(v,1e3);return()=>clearTimeout(b)},[i]);let g,h;if(s===i||Number.isNaN(i)||Number.isNaN(s))g=[u.createElement(Uy,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{g=[];const b=i+10,C=[];for(let $=i;$<=b;$+=1)C.push($);const x=f<l?1:-1,S=C.findIndex($=>$%10===s);g=(x<0?C.slice(0,S+1):C.slice(S)).map(($,O)=>{const P=$%10;return u.createElement(Uy,Object.assign({},e,{key:$,value:P,offset:x<0?O-S:O,current:O===S}))}),h={transform:`translateY(${-gz(s,i,x)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:v},g)};var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bz=u.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:l,style:s,title:d,show:f,component:m="sup",children:v}=e,g=yz(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=u.useContext(Gt),b=h("scroll-number",n),C=Object.assign(Object.assign({},g),{"data-show":f,style:s,className:se(b,i,l),title:d});let x=r;if(r&&Number(r)%1===0){const S=String(r).split("");x=u.createElement("bdi",null,S.map((E,$)=>u.createElement(hz,{prefixCls:b,count:Number(r),value:E,key:S.length-$})))}return s!=null&&s.borderColor&&(C.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),v?Io(v,S=>({className:se(`${b}-custom-component`,S==null?void 0:S.className,l)})):u.createElement(m,Object.assign({},C,{ref:t}),x)});var Sz=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xz=u.forwardRef((e,t)=>{var n,r,i,l,s;const{prefixCls:d,scrollNumberPrefixCls:f,children:m,status:v,text:g,color:h,count:b=null,overflowCount:C=99,dot:x=!1,size:S="default",title:E,offset:$,style:O,className:P,rootClassName:R,classNames:I,styles:T,showZero:_=!1}=e,M=Sz(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}=u.useContext(Gt),A=z("badge",d),[B,K,V]=fz(A),U=b>C?`${C}+`:b,D=U==="0"||U===0||g==="0"||g===0,X=b===null||D&&!_,W=(v!=null||h!=null)&&X,k=v!=null||!D,F=x&&!D,Y=F?"":U,ne=u.useMemo(()=>((Y==null||Y==="")&&(g==null||g==="")||D&&!_)&&!F,[Y,D,_,F,g]),Z=u.useRef(b);ne||(Z.current=b);const ee=Z.current,fe=u.useRef(Y);ne||(fe.current=Y);const me=fe.current,ce=u.useRef(F);ne||(ce.current=F);const Se=u.useMemo(()=>{if(!$)return Object.assign(Object.assign({},j==null?void 0:j.style),O);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),O)},[L,$,O,j==null?void 0:j.style]),de=E??(typeof ee=="string"||typeof ee=="number"?ee:void 0),ie=!ne&&(g===0?_:!!g&&g!==!0),he=ie?u.createElement("span",{className:`${A}-status-text`},g):null,ge=!ee||typeof ee!="object"?void 0:Io(ee,$e=>({style:Object.assign(Object.assign({},Se),$e.style)})),pe=Au(h,!1),oe=se(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}`]:pe}),be={};h&&!pe&&(be.color=h,be.background=h);const we=se(A,{[`${A}-status`]:W,[`${A}-not-a-wrapper`]:!m,[`${A}-rtl`]:L==="rtl"},P,R,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(u.createElement("span",Object.assign({},M,{className:we,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.root),Se)}),u.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)}),ie&&u.createElement("span",{style:{color:$e},className:`${A}-status-text`},g)))}return B(u.createElement("span",Object.assign({ref:t},M,{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,u.createElement(Ko,{visible:!ne,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:$e})=>{var Ae,je;const Ie=z("scroll-number",f),Le=ce.current,Ee=se(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&&me&&me.toString().length>1,[`${A}-status-${v}`]:!!v,[`${A}-color-${h}`]:pe});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&&!pe&&(tt=tt||{},tt.background=h),u.createElement(bz,{prefixCls:Ie,show:!ne,motionClassName:$e,className:Ee,count:me,title:de,style:tt,key:"scrollNumber"},ge)}),he))}),Cx=xz;Cx.Ribbon=vz;var Cz={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"},wz=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:Cz}))},cu=u.forwardRef(wz),$z=qe.ESC,Ez=qe.TAB;function Oz(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,l=e.overlayRef,s=u.useRef(!1),d=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 $z:d();break;case Ez:{var h=!1;s.current||(h=f()),h?g.preventDefault():d();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",m),i&&yn(f,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var Rz=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,l=u.useMemo(function(){var d;return typeof n=="function"?d=n():d=n,d},[n]),s=Wo(t,Ya(l));return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(i,"-arrow")}),J.cloneElement(l,{ref:Qi(l)?s:void 0}))}),Na={adjustX:1,adjustY:1},za=[0,0],Iz={topLeft:{points:["bl","tl"],overflow:Na,offset:[0,-4],targetOffset:za},top:{points:["bc","tc"],overflow:Na,offset:[0,-4],targetOffset:za},topRight:{points:["br","tr"],overflow:Na,offset:[0,-4],targetOffset:za},bottomLeft:{points:["tl","bl"],overflow:Na,offset:[0,4],targetOffset:za},bottom:{points:["tc","bc"],overflow:Na,offset:[0,4],targetOffset:za},bottomRight:{points:["tr","br"],overflow:Na,offset:[0,4],targetOffset:za}},Pz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tz(e,t){var n,r=e.arrow,i=r===void 0?!1:r,l=e.prefixCls,s=l===void 0?"rc-dropdown":l,d=e.transitionName,f=e.animation,m=e.align,v=e.placement,g=v===void 0?"bottomLeft":v,h=e.placements,b=h===void 0?Iz:h,C=e.getPopupContainer,x=e.showAction,S=e.hideAction,E=e.overlayClassName,$=e.overlayStyle,O=e.visible,P=e.trigger,R=P===void 0?["hover"]:P,I=e.autoFocus,T=e.overlay,_=e.children,M=e.onVisibleChange,z=Mt(e,Pz),L=J.useState(),j=re(L,2),A=j[0],B=j[1],K="visible"in e?O:A,V=J.useRef(null),U=J.useRef(null),D=J.useRef(null);J.useImperativeHandle(t,function(){return V.current});var X=function(me){B(me),M==null||M(me)};Oz({visible:K,triggerRef:D,onVisibleChange:X,autoFocus:I,overlayRef:U});var W=function(me){var ce=e.onOverlayClick;B(!1),ce&&ce(me)},k=function(){return J.createElement(Rz,{ref:U,overlay:T,prefixCls:s,arrow:i})},F=function(){return typeof T=="function"?k:k()},Y=function(){var me=e.minOverlayWidthMatchTrigger,ce=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?me:!ce},ne=function(){var me=e.openClassName;return me!==void 0?me:"".concat(s,"-open")},Z=J.cloneElement(_,{className:se((n=_.props)===null||n===void 0?void 0:n.className,K&&ne()),ref:Qi(_)?Wo(D,Ya(_)):void 0}),ee=S;return!ee&&R.indexOf("contextMenu")!==-1&&(ee=["click"]),J.createElement(Lu,ke({builtinPlacements:b},z,{prefixCls:s,ref:V,popupClassName:se(E,H({},"".concat(s,"-show-arrow"),i)),popupStyle:$,action:R,showAction:x,hideAction:ee,popupPlacement:g,popupAlign:m,popupTransitionName:d,popupAnimation:f,popupVisible:K,stretch:Y()?"minWidth":"",popup:F(),onPopupVisibleChange:X,onPopupClick:W,getPopupContainer:C}),Z)}const Mz=J.forwardRef(Tz);var wx=u.createContext(null);function $x(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ex(e){var t=u.useContext(wx);return $x(t,e)}var _z=["children","locked"],So=u.createContext(null);function Nz(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function is(e){var t=e.children,n=e.locked,r=Mt(e,_z),i=u.useContext(So),l=us(function(){return Nz(i,r)},[i,r],function(s,d){return!n&&(s[0]!==d[0]||!Xl(s[1],d[1],!0))});return u.createElement(So.Provider,{value:l},t)}var zz=[],Ox=u.createContext(null);function Bu(){return u.useContext(Ox)}var Rx=u.createContext(zz);function ys(e){var t=u.useContext(Rx);return u.useMemo(function(){return e!==void 0?[].concat(Be(t),[e]):t},[t,e])}var Ix=u.createContext(null),av=u.createContext({});function Gy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Xp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),l=Number(i),s=null;return i&&!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 jz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Be(e.querySelectorAll("*")).filter(function(r){return Gy(r,t)});return Gy(e,t)&&n.unshift(e),n}var bp=qe.LEFT,Sp=qe.RIGHT,xp=qe.UP,Wc=qe.DOWN,Uc=qe.ENTER,Px=qe.ESC,_l=qe.HOME,Nl=qe.END,Ky=[xp,Wc,bp,Sp];function kz(e,t,n,r){var i,l="prev",s="next",d="children",f="parent";if(e==="inline"&&r===Uc)return{inlineTrigger:!0};var m=H(H({},xp,l),Wc,s),v=H(H(H(H({},bp,n?s:l),Sp,n?l:s),Wc,d),Uc,d),g=H(H(H(H(H(H({},xp,l),Wc,s),Uc,d),Px,f),bp,n?d:f),Sp,n?f:d),h={inline:m,horizontal:v,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},b=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[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 d:return{offset:1,sibling:!1};default:return null}}function Lz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Az(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function lv(e,t){var n=jz(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 i=lv(e,t),l=i.length,s=i.findIndex(function(d){return n===d});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,i[s]}var Cp=function(t,n){var r=new Set,i=new Map,l=new Map;return t.forEach(function(s){var d=document.querySelector("[data-menu-id='".concat($x(n,s),"']"));d&&(r.add(d),l.set(d,s),i.set(s,d))}),{elements:r,key2element:i,element2key:l}};function Dz(e,t,n,r,i,l,s,d,f,m){var v=u.useRef(),g=u.useRef();g.current=t;var h=function(){yn.cancel(v.current)};return u.useEffect(function(){return function(){h()}},[]),function(b){var C=b.which;if([].concat(Ky,[Uc,Px,_l,Nl]).includes(C)){var x=l(),S=Cp(x,r),E=S,$=E.elements,O=E.key2element,P=E.element2key,R=O.get(t),I=Az(R,$),T=P.get(I),_=kz(e,s(T,!0).length===1,n,C);if(!_&&C!==_l&&C!==Nl)return;(Ky.includes(C)||[_l,Nl].includes(C))&&b.preventDefault();var M=function(U){if(U){var D=U,X=U.querySelector("a");X!=null&&X.getAttribute("href")&&(D=X);var W=P.get(U);d(W),h(),v.current=yn(function(){g.current===W&&D.focus()})}};if([_l,Nl].includes(C)||_.sibling||!I){var z;!I||e==="inline"?z=i.current:z=Lz(I);var L,j=lv(z,$);C===_l?L=j[0]:C===Nl?L=j[j.length-1]:L=qy(z,$,I,_.offset),M(L)}else if(_.inlineTrigger)f(T);else if(_.offset>0)f(T,!0),h(),v.current=yn(function(){S=Cp(x,r);var V=I.getAttribute("aria-controls"),U=document.getElementById(V),D=qy(U,S.elements);M(D)},5);else if(_.offset<0){var A=s(T,!0),B=A[A.length-2],K=O.get(B);f(B,!1),M(K)}}m==null||m(b)}}function Bz(e){Promise.resolve().then(e)}var sv="__RC_UTIL_PATH_SPLIT__",Xy=function(t){return t.join(sv)},Fz=function(t){return t.split(sv)},wp="rc-menu-more";function Hz(){var e=u.useState({}),t=re(e,2),n=t[1],r=u.useRef(new Map),i=u.useRef(new Map),l=u.useState([]),s=re(l,2),d=s[0],f=s[1],m=u.useRef(0),v=u.useRef(!1),g=function(){v.current||n({})},h=u.useCallback(function(O,P){var R=Xy(P);i.current.set(R,O),r.current.set(O,R),m.current+=1;var I=m.current;Bz(function(){I===m.current&&g()})},[]),b=u.useCallback(function(O,P){var R=Xy(P);i.current.delete(R),r.current.delete(O)},[]),C=u.useCallback(function(O){f(O)},[]),x=u.useCallback(function(O,P){var R=r.current.get(O)||"",I=Fz(R);return P&&d.includes(I[0])&&I.unshift(wp),I},[d]),S=u.useCallback(function(O,P){return O.filter(function(R){return R!==void 0}).some(function(R){var I=x(R,!0);return I.includes(P)})},[x]),E=function(){var P=Be(r.current.keys());return d.length&&P.push(wp),P},$=u.useCallback(function(O){var P="".concat(r.current.get(O)).concat(sv),R=new Set;return Be(i.current.keys()).forEach(function(I){I.startsWith(P)&&R.add(i.current.get(I))}),R},[]);return u.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:h,unregisterPath:b,refreshOverflowKeys:C,isSubPathKey:S,getKeyPath:x,getKeys:E,getSubPathKeys:$}}function Dl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,l=new Array(i),s=0;s<i;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 Vz=Math.random().toFixed(5).toString().slice(2),Qy=0;function Wz(e){var t=tr(e,{value:e}),n=re(t,2),r=n[0],i=n[1];return u.useEffect(function(){Qy+=1;var l="".concat(Vz,"-").concat(Qy);i("rc-menu-uuid-".concat(l))},[]),r}function Tx(e,t,n,r){var i=u.useContext(So),l=i.activeKey,s=i.onActive,d=i.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}),d(e)}),f}function Mx(e){var t=u.useContext(So),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*i}:{paddingLeft:l*i}}function _x(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=u.createElement(t,q({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var Uz=["item"];function uu(e){var t=e.item,n=Mt(e,Uz);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 Gz=["title","attribute","elementRef"],Kz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],qz=["active"],Xz=(function(e){Uo(n,e);var t=Go(n);function n(){return Bn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){var i=this.props,l=i.title,s=i.attribute,d=i.elementRef,f=Mt(i,Gz),m=Hr(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ar(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(Ro.Item,ke({},s,{title:typeof l=="string"?l:void 0},m,{ref:d}))}}]),n})(u.Component),Qz=u.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,d=e.children,f=e.role,m=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,b=e.onFocus,C=Mt(e,Kz),x=Ex(i),S=u.useContext(So),E=S.prefixCls,$=S.onItemClick,O=S.disabled,P=S.overflowDisabled,R=S.itemIcon,I=S.selectedKeys,T=S.onActive,_=u.useContext(av),M=_._internalRenderMenuItem,z="".concat(E,"-item"),L=u.useRef(),j=u.useRef(),A=O||l,B=Xi(t,j),K=ys(i),V=function(ce){return{key:i,keyPath:Be(K).reverse(),item:L.current,domEvent:ce}},U=s||R,D=Tx(i,A,m,v),X=D.active,W=Mt(D,qz),k=I.includes(i),F=Mx(K.length),Y=function(ce){if(!A){var Se=V(ce);g==null||g(uu(Se)),$(Se)}},ne=function(ce){if(h==null||h(ce),ce.which===qe.ENTER){var Se=V(ce);g==null||g(uu(Se)),$(Se)}},Z=function(ce){T(i),b==null||b(ce)},ee={};e.role==="option"&&(ee["aria-selected"]=k);var fe=u.createElement(Xz,ke({ref:L,elementRef:B,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":P&&x?null:x},Hr(C,["extra"]),W,ee,{component:"li","aria-disabled":l,style:q(q({},F),n),className:se(z,H(H(H({},"".concat(z,"-active"),X),"".concat(z,"-selected"),k),"".concat(z,"-disabled"),A),r),onClick:Y,onKeyDown:ne,onFocus:Z}),d,u.createElement(_x,{props:q(q({},e),{},{isSelected:k}),icon:U}));return M&&(fe=M(fe,e,{selected:k})),fe});function Yz(e,t){var n=e.eventKey,r=Bu(),i=ys(n);return u.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:u.createElement(Qz,ke({},e,{ref:t}))}const Fu=u.forwardRef(Yz);var Zz=["className","children"],Jz=function(t,n){var r=t.className,i=t.children,l=Mt(t,Zz),s=u.useContext(So),d=s.prefixCls,f=s.mode,m=s.rtl;return u.createElement("ul",ke({className:se(d,m&&"".concat(d,"-rtl"),"".concat(d,"-sub"),"".concat(d,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),i)},cv=u.forwardRef(Jz);cv.displayName="SubMenuList";function uv(e,t){return _r(e).map(function(n,r){if(u.isValidElement(n)){var i,l,s=n.key,d=(i=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&i!==void 0?i:s,f=d==null;f&&(d="tmp_key-".concat([].concat(Be(t),[r]).join("-")));var m={key:d,eventKey:d};return u.cloneElement(n,m)}return n})}var hr={adjustX:1,adjustY:1},e4={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}},t4={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 Nx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var n4={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function r4(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,l=e.popupStyle,s=e.popupClassName,d=e.popupOffset,f=e.disabled,m=e.mode,v=e.onVisibleChange,g=u.useContext(So),h=g.getPopupContainer,b=g.rtl,C=g.subMenuOpenDelay,x=g.subMenuCloseDelay,S=g.builtinPlacements,E=g.triggerSubMenuAction,$=g.forceSubMenuRender,O=g.rootClassName,P=g.motion,R=g.defaultMotions,I=u.useState(!1),T=re(I,2),_=T[0],M=T[1],z=q(b?q({},t4):q({},e4),S),L=n4[m],j=Nx(m,P,R),A=u.useRef(j);m!=="inline"&&(A.current=j);var B=q(q({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),K=u.useRef();return u.useEffect(function(){return K.current=yn(function(){M(n)}),function(){yn.cancel(K.current)}},[n]),u.createElement(Lu,{prefixCls:t,popupClassName:se("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),b),s,O),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:z,popupPlacement:L,popupVisible:_,popup:i,popupStyle:l,popupAlign:d&&{offset:d},action:f?[]:[E],mouseEnterDelay:C,mouseLeaveDelay:x,onPopupVisibleChange:v,forceRender:$,popupMotion:B,fresh:!0},r)}function o4(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,l="inline",s=u.useContext(So),d=s.prefixCls,f=s.forceSubMenuRender,m=s.motion,v=s.defaultMotions,g=s.mode,h=u.useRef(!1);h.current=g===l;var b=u.useState(!h.current),C=re(b,2),x=C[0],S=C[1],E=h.current?n:!1;u.useEffect(function(){h.current&&S(!1)},[g]);var $=q({},Nx(l,m,v));r.length>1&&($.motionAppear=!1);var O=$.onVisibleChanged;return $.onVisibleChanged=function(P){return!h.current&&!P&&S(!0),O==null?void 0:O(P)},x?null:u.createElement(is,{mode:l,locked:!h.current},u.createElement(Ko,ke({visible:E},$,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(P){var R=P.className,I=P.style;return u.createElement(cv,{id:t,className:R,style:I},i)}))}var i4=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],a4=["active"],l4=u.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,d=e.internalPopupClose,f=e.children,m=e.itemIcon,v=e.expandIcon,g=e.popupClassName,h=e.popupOffset,b=e.popupStyle,C=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,E=e.onTitleClick,$=e.onTitleMouseEnter,O=e.onTitleMouseLeave,P=Mt(e,i4),R=Ex(l),I=u.useContext(So),T=I.prefixCls,_=I.mode,M=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=u.useContext(av),W=X._internalRenderSubMenuItem,k=u.useContext(Ix),F=k.isSubPathKey,Y=ys(),ne="".concat(T,"-submenu"),Z=z||s,ee=u.useRef(),fe=u.useRef(),me=m??B,ce=v??K,Se=M.includes(l),de=!L&&Se,ie=F(A,l),he=Tx(l,Z,$,O),ge=he.active,pe=Mt(he,a4),oe=u.useState(!1),be=re(oe,2),we=be[0],$e=be[1],Ae=function(Pe){Z||$e(Pe)},je=function(Pe){Ae(!0),x==null||x({key:l,domEvent:Pe})},Ie=function(Pe){Ae(!1),S==null||S({key:l,domEvent:Pe})},Le=u.useMemo(function(){return ge||(_!=="inline"?we||F([j],l):!1)},[_,ge,j,we,l,F]),Ee=Mx(Y.length),tt=function(Pe){Z||(E==null||E({key:l,domEvent:Pe}),_==="inline"&&U(l,!Se))},lt=Dl(function(Ye){C==null||C(uu(Ye)),V(Ye)}),bt=function(Pe){_!=="inline"&&U(l,Pe)},st=function(){D(l)},Ue=R&&"".concat(R,"-popup"),it=u.useMemo(function(){return u.createElement(_x,{icon:_!=="horizontal"?ce:void 0,props:q(q({},e),{},{isOpen:de,isSubMenu:!0})},u.createElement("i",{className:"".concat(ne,"-arrow")}))},[_,ce,e,de,ne]),Ve=u.createElement("div",ke({role:"menuitem",style:Ee,className:"".concat(ne,"-title"),tabIndex:Z?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":L&&R?null:R,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":Z,onClick:tt,onFocus:st},pe),i,it),dt=u.useRef(_);if(_!=="inline"&&Y.length>1?dt.current="vertical":dt.current=_,!L){var Xe=dt.current;Ve=u.createElement(r4,{mode:Xe,prefixCls:ne,visible:!d&&de&&_!=="inline",popupClassName:g,popupOffset:h,popupStyle:b,popup:u.createElement(is,{mode:Xe==="horizontal"?"vertical":Xe},u.createElement(cv,{id:Ue,ref:fe},f)),disabled:Z,onVisibleChange:bt},Ve)}var Me=u.createElement(Ro.Item,ke({ref:t,role:"none"},P,{component:"li",style:n,className:se(ne,"".concat(ne,"-").concat(_),r,H(H(H(H({},"".concat(ne,"-open"),de),"".concat(ne,"-active"),Le),"".concat(ne,"-selected"),ie),"".concat(ne,"-disabled"),Z)),onMouseEnter:je,onMouseLeave:Ie}),Ve,!L&&u.createElement(o4,{id:Ue,open:de,keyPath:Y},f));return W&&(Me=W(Me,e,{selected:ie,active:Le,open:de,disabled:Z})),u.createElement(is,{onItemClick:lt,mode:_==="horizontal"?"vertical":_,itemIcon:me,expandIcon:ce},Me)}),dv=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=ys(n),l=uv(r,i),s=Bu();u.useEffect(function(){if(s)return s.registerPath(n,i),function(){s.unregisterPath(n,i)}},[i]);var d;return s?d=l:d=u.createElement(l4,ke({ref:t},e),l),u.createElement(Rx.Provider,{value:i},d)});function zx(e){var t=e.className,n=e.style,r=u.useContext(So),i=r.prefixCls,l=Bu();return l?null:u.createElement("li",{role:"separator",className:se("".concat(i,"-item-divider"),t),style:n})}var s4=["className","title","eventKey","children"],c4=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,l=Mt(e,s4),s=u.useContext(So),d=s.prefixCls,f="".concat(d,"-item-group");return u.createElement("li",ke({ref:t,role:"presentation"},l,{onClick:function(v){return v.stopPropagation()},className:se(f,n)}),u.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(f,"-list")},i))}),jx=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=ys(n),l=uv(r,i),s=Bu();return s?l:u.createElement(c4,ke({ref:t},Hr(e,["warnKey"])),l)}),u4=["label","children","key","type","extra"];function $p(e,t,n){var r=t.item,i=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(d,f){if(d&&vt(d)==="object"){var m=d,v=m.label,g=m.children,h=m.key,b=m.type,C=m.extra,x=Mt(m,u4),S=h??"tmp-".concat(f);return g||b==="group"?b==="group"?u.createElement(i,ke({key:S},x,{title:v}),$p(g,t,n)):u.createElement(l,ke({key:S},x,{title:v}),$p(g,t,n)):b==="divider"?u.createElement(s,ke({key:S},x)):u.createElement(r,ke({key:S},x,{extra:C}),v,(!!C||C===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(d){return d})}function Yy(e,t,n,r,i){var l=e,s=q({divider:zx,item:Fu,group:jx,submenu:dv},r);return t&&(l=$p(t,s,i)),uv(l,n)}var d4=["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=[],f4=u.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,l=i===void 0?"rc-menu":i,s=r.rootClassName,d=r.style,f=r.className,m=r.tabIndex,v=m===void 0?0:m,g=r.items,h=r.children,b=r.direction,C=r.id,x=r.mode,S=x===void 0?"vertical":x,E=r.inlineCollapsed,$=r.disabled,O=r.disabledOverflow,P=r.subMenuOpenDelay,R=P===void 0?.1:P,I=r.subMenuCloseDelay,T=I===void 0?.1:I,_=r.forceSubMenuRender,M=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,fe=r.builtinPlacements,me=r.itemIcon,ce=r.expandIcon,Se=r.overflowedIndicator,de=Se===void 0?"...":Se,ie=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,ge=r.onClick,pe=r.onOpenChange,oe=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,we=r._internalRenderSubMenuItem,$e=r._internalComponents,Ae=Mt(r,d4),je=u.useMemo(function(){return[Yy(h,g,ji,$e,l),Yy(h,g,ji,{},l)]},[h,g,$e]),Ie=re(je,2),Le=Ie[0],Ee=Ie[1],tt=u.useState(!1),lt=re(tt,2),bt=lt[0],st=lt[1],Ue=u.useRef(),it=Wz(C),Ve=b==="rtl",dt=tr(M,{value:z,postState:function(nt){return nt||ji}}),Xe=re(dt,2),Me=Xe[0],Ye=Xe[1],Pe=function(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ut(){Ye(nt),pe==null||pe(nt)}Je?Si.flushSync(Ut):Ut()},Fe=u.useState(Me),wt=re(Fe,2),mt=wt[0],Bt=wt[1],At=u.useRef(!1),nn=u.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=u.useState(Vt),Lt=re(Wt,2),Ze=Lt[0],yt=Lt[1],at=u.useState(Tt),Oe=re(at,2),Ce=Oe[0],xe=Oe[1];u.useEffect(function(){yt(Vt),xe(Tt),At.current&&(St?Ye(mt):Pe(ji))},[Vt,Tt]);var _e=u.useState(0),Ke=re(_e,2),Qe=Ke[0],_t=Ke[1],jt=Qe>=Le.length-1||Ze!=="horizontal"||O;u.useEffect(function(){St&&Bt(Me)},[Me]),u.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var Rt=Hz(),It=Rt.registerPath,mn=Rt.unregisterPath,sn=Rt.refreshOverflowKeys,gn=Rt.isSubPathKey,$n=Rt.getKeyPath,Kt=Rt.getKeys,Yt=Rt.getSubPathKeys,Ne=u.useMemo(function(){return{registerPath:It,unregisterPath:mn}},[It,mn]),We=u.useMemo(function(){return{isSubPathKey:gn}},[gn]);u.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=Dl(function(Xt){Ge(Xt)}),kt=Dl(function(){Ge(void 0)});u.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(nt){var Je,Ut=Kt(),Qt=Cp(Ut,it),rn=Qt.elements,ln=Qt.key2element,rr=Qt.element2key,jn=lv(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&&Me.length&&Ze!=="inline"&&Pe(ji)},xn=Dl(function(Xt){ge==null||ge(uu(Xt)),zn(Xt)}),sr=Dl(function(Xt,nt){var Je=Me.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)})}Xl(Me,Je,!0)||Pe(Je,!0)}),Hn=function(nt,Je){var Ut=Je??!Me.includes(nt);sr(nt,Ut)},cr=Dz(Ze,et,Ve,it,Ue,Kt,$n,Ge,Hn,oe);u.useEffect(function(){st(!0)},[]);var Vn=u.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:we}},[be,we]),nr=Ze!=="horizontal"||O?Le:Le.map(function(Xt,nt){return u.createElement(is,{key:Xt.key,overflowDisabled:nt>Qe},Xt)}),ur=u.createElement(Ro,ke({id:C,ref:Ue,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Fu,className:se(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),f,H(H({},"".concat(l,"-inline-collapsed"),Ce),"".concat(l,"-rtl"),Ve),s),dir:b,style:d,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 u.createElement(dv,{eventKey:wp,title:de,disabled:jt,internalPopupClose:Je===0,popupClassName:ie},Ut)},maxCount:Ze!=="horizontal"||O?Ro.INVALIDATE:Ro.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){_t(nt)},onKeyDown:cr},Ae));return u.createElement(av.Provider,{value:Vn},u.createElement(wx.Provider,{value:it},u.createElement(is,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:Me,rtl:Ve,disabled:$,motion:bt?Y:null,defaultMotions:bt?ne:null,activeKey:et,onActive:xt,onInactive:kt,selectedKeys:$t,inlineIndent:F,subMenuOpenDelay:R,subMenuCloseDelay:T,forceSubMenuRender:_,builtinPlacements:fe,triggerSubMenuAction:ee,getPopupContainer:he,itemIcon:me,expandIcon:ce,onItemClick:xn,onOpenChange:sr},u.createElement(Ix.Provider,{value:We},ur),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(Ox.Provider,{value:Ne},Ee)))))}),bs=f4;bs.Item=Fu;bs.SubMenu=dv;bs.ItemGroup=jx;bs.Divider=zx;var m4={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"},p4=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:m4}))},v4=u.forwardRef(p4);const kx=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),g4=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:l,headerPadding:s,headerColor:d,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:d,lineHeight:le(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:m,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Lx=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:l,marginXXS:s,colorTextLightSolid:d,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:i,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},Ax=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Dx=Rn("Layout",g4,Lx,{deprecatedTokens:Ax}),h4=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:l,triggerHeight:s,triggerColor:d,triggerBg:f,headerHeight:m,zeroTriggerWidth:v,zeroTriggerHeight:g,borderRadiusLG:h,lightSiderBg:b,lightTriggerColor:C,lightTriggerBg:x,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:d,lineHeight:le(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:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${le(h)} ${le(h)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(v).mul(-1).equal(),borderRadius:`${le(h)} 0 0 ${le(h)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:C,background:x},[`${t}-zero-width-trigger`]:{color:C,background:x,border:`1px solid ${S}`,borderInlineStart:0}}}}},y4=Rn(["Layout","Sider"],h4,Lx,{deprecatedTokens:Ax});var b4=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Zy={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},S4=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Bx=u.createContext({}),x4=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Fx=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:l,defaultCollapsed:s=!1,theme:d="dark",style:f={},collapsible:m=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:C,onCollapse:x,onBreakpoint:S}=e,E=b4(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=u.useContext(kx),[O,P]=u.useState("collapsed"in e?e.collapsed:s),[R,I]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);const T=(me,ce)=>{"collapsed"in e||P(me),x==null||x(me,ce)},{getPrefixCls:_,direction:M}=u.useContext(Gt),z=_("layout-sider",n),[L,j,A]=y4(z),B=u.useRef(null);B.current=me=>{I(me.matches),S==null||S(me.matches),O!==me.matches&&T(me.matches,"responsive")},u.useEffect(()=>{function me(Se){var de;return(de=B.current)===null||de===void 0?void 0:de.call(B,Se)}let ce;return typeof(window==null?void 0:window.matchMedia)<"u"&&C&&C in Zy&&(ce=window.matchMedia(`screen and (max-width: ${Zy[C]})`),mx(ce,me),me(ce)),()=>{px(ce,me)}},[C]),u.useEffect(()=>{const me=x4("ant-sider-");return $.addSider(me),()=>$.removeSider(me)},[]);const K=()=>{T(!O,"clickTrigger")},V=Hr(E,["collapsed"]),U=O?h:g,D=S4(U)?`${U}px`:String(U),X=Number.parseFloat(String(h||0))===0?u.createElement("span",{onClick:K,className:se(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${v?"right":"left"}`),style:b},i||u.createElement(v4,null)):null,W=M==="rtl"==!v,Y={expanded:W?u.createElement(ns,null):u.createElement(cu,null),collapsed:W?u.createElement(cu,null):u.createElement(ns,null)}[O?"collapsed":"expanded"],ne=i!==null?X||u.createElement("div",{className:`${z}-trigger`,onClick:K,style:{width:D}},i||Y):null,Z=Object.assign(Object.assign({},f),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),ee=se(z,`${z}-${d}`,{[`${z}-collapsed`]:!!O,[`${z}-has-trigger`]:m&&i!==null&&!X,[`${z}-below`]:!!R,[`${z}-zero-width`]:Number.parseFloat(D)===0},r,j,A),fe=u.useMemo(()=>({siderCollapsed:O}),[O]);return L(u.createElement(Bx.Provider,{value:fe},u.createElement("aside",Object.assign({className:ee},V,{style:Z,ref:t}),u.createElement("div",{className:`${z}-children`},l),m||R&&X?ne:null)))});var C4={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"},w4=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:C4}))},$4=u.forwardRef(w4);function Hu(e){return fn(e,{inputAffixPadding:e.paddingXXS})}const Vu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:l,controlHeightLG:s,fontSizeLG:d,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:v,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:b,colorPrimary:C,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:E,colorWarningOutline:$,colorBgContainer:O,inputFontSize:P,inputFontSizeLG:R,inputFontSizeSM:I}=e,T=P||n,_=I||T,M=R||d,z=Math.round((t-T*r)/2*10)/10-i,L=Math.round((l-_*r)/2*10)/10-i,j=Math.ceil((s-M*f)/2*10)/10-i;return{paddingBlock:Math.max(z,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(j,0),paddingInline:m-i,paddingInlineSM:v-i,paddingInlineLG:g-i,addonBg:h,activeBorderColor:C,hoverBorderColor:b,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${E}`,warningActiveShadow:`0 0 0 ${x}px ${$}`,hoverBg:O,activeBg:O,inputFontSize:T,inputFontSizeLG:M,inputFontSizeSM:_}},E4=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Wu=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({},E4(fn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fv=(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}}),Jy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),O4=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wu(e))}),Jy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Jy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),eb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),R4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},eb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),eb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Wu(e))}})}),I4=(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)}},Hx=(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}}},tb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),P4=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wu(e))}),tb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),tb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),T4=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},nb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nb(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Vx=(e,t)=>({background:e.colorBgContainer,borderWidth:`${le(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}}),rb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Vx(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`}}),M4=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vx(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"}}),rb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),rb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Wx=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${le(t)} ${le(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},mv=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),pv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_4(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Wx(e)),"&-sm":Object.assign({},mv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),N4=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({},Wx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},mv(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 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(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:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${le(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"},oO()),{[`${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}}}})}},z4=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,s=i(n).sub(i(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)),pv(e)),O4(e)),P4(e)),I4(e)),M4(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"}})}},j4=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 ${le(e.inputAffixPadding)}`}}}},k4=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:l,colorIconHover:s,iconCls:d}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},pv(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}}}),j4(e)),{[`${d}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${d}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},L4=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},lr(e)),N4(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}}},R4(e)),T4(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}}})})}},A4=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}}}}},D4=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},B4=Rn(["Input","Shared"],e=>{const t=fn(e,Hu(e));return[z4(t),k4(t)]},Vu,{resetFont:!1});Rn(["Input","Component"],e=>{const t=fn(e,Hu(e));return[L4(t),A4(t),D4(t),ju(t)]},Vu,{resetFont:!1});var F4={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"},H4=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:F4}))},V4=u.forwardRef(H4);const Uu=u.createContext(null);var W4=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,s=l===void 0?{}:l,d=s.size,f=s.align,m=f===void 0?"center":f,v=u.useState(),g=re(v,2),h=g[0],b=g[1],C=u.useRef(),x=J.useCallback(function(E){return typeof d=="function"?d(E):typeof d=="number"?d:E},[d]);function S(){yn.cancel(C.current)}return u.useEffect(function(){var E={};if(n)if(r){E.width=x(n.width);var $=i?"right":"left";m==="start"&&(E[$]=n[$]),m==="center"&&(E[$]=n[$]+n.width/2,E.transform=i?"translateX(50%)":"translateX(-50%)"),m==="end"&&(E[$]=n[$]+n.width,E.transform="translateX(-100%)")}else E.height=x(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(),C.current=yn(function(){var O=h&&E&&Object.keys(E).every(function(P){var R=E[P],I=h[P];return typeof R=="number"&&typeof I=="number"?Math.round(R)===Math.round(I):R===I});O||b(E)}),S},[JSON.stringify(n),r,i,m,x]),{style:h}},ob={width:0,height:0,left:0,top:0};function U4(e,t,n){return u.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||ob,s=l.left+l.width,d=0;d<e.length;d+=1){var f=e[d].key,m=t.get(f);if(!m){var v;m=t.get((v=e[d-1])===null||v===void 0?void 0:v.key)||ob}var g=i.get(f)||q({},m);g.right=s-g.left-g.width,i.set(f,g)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function ib(e,t){var n=u.useRef(e),r=u.useState({}),i=re(r,2),l=i[1];function s(d){var f=typeof d=="function"?d(n.current):d;f!==n.current&&t(f,n.current),n.current=f,l({})}return[n.current,s]}var G4=.1,ab=.01,Gc=20,lb=Math.pow(.995,Gc);function K4(e,t){var n=u.useState(),r=re(n,2),i=r[0],l=r[1],s=u.useState(0),d=re(s,2),f=d[0],m=d[1],v=u.useState(0),g=re(v,2),h=g[0],b=g[1],C=u.useState(),x=re(C,2),S=x[0],E=x[1],$=u.useRef();function O(M){var z=M.touches[0],L=z.screenX,j=z.screenY;l({x:L,y:j}),window.clearInterval($.current)}function P(M){if(i){var z=M.touches[0],L=z.screenX,j=z.screenY;l({x:L,y:j});var A=L-i.x,B=j-i.y;t(A,B);var K=Date.now();m(K),b(K-f),E({x:A,y:B})}}function R(){if(i&&(l(null),E(null),S)){var M=S.x/h,z=S.y/h,L=Math.abs(M),j=Math.abs(z);if(Math.max(L,j)<G4)return;var A=M,B=z;$.current=window.setInterval(function(){if(Math.abs(A)<ab&&Math.abs(B)<ab){window.clearInterval($.current);return}A*=lb,B*=lb,t(A*Gc,B*Gc)},Gc)}}var I=u.useRef();function T(M){var z=M.deltaX,L=M.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)&&M.preventDefault()}var _=u.useRef(null);_.current={onTouchStart:O,onTouchMove:P,onTouchEnd:R,onWheel:T},u.useEffect(function(){function M(A){_.current.onTouchStart(A)}function z(A){_.current.onTouchMove(A)}function L(A){_.current.onTouchEnd(A)}function j(A){_.current.onWheel(A)}return document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",z),document.removeEventListener("touchend",L)}},[])}function Ux(e){var t=u.useState(0),n=re(t,2),r=n[0],i=n[1],l=u.useRef(0),s=u.useRef();return s.current=e,Mm(function(){var d;(d=s.current)===null||d===void 0||d.call(s)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function q4(e){var t=u.useRef([]),n=u.useState({}),r=re(n,2),i=r[1],l=u.useRef(typeof e=="function"?e():e),s=Ux(function(){var f=l.current;t.current.forEach(function(m){f=m(f)}),t.current=[],l.current=f,i({})});function d(f){t.current.push(f),s()}return[l.current,d]}var sb={width:0,height:0,left:0,top:0,right:0};function X4(e,t,n,r,i,l,s){var d=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),u.useMemo(function(){if(!d.length)return[0,0];for(var b=d.length,C=b,x=0;x<b;x+=1){var S=e.get(d[x].key)||sb;if(Math.floor(S[g]+S[v])>Math.floor(h+t)){C=x-1;break}}for(var E=0,$=b-1;$>=0;$-=1){var O=e.get(d[$].key)||sb;if(O[g]<h){E=$+1;break}}return E>C?[0,-1]:[E,C]},[e,t,r,i,l,h,f,d.map(function(b){return b.key}).join("_"),m])}function cb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Q4="TABS_DQ";function Gx(e){return String(e).replace(/"/g,Q4)}function vv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Kx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(d){r.onEdit("add",{event:d})}},r.addIcon||"+")}),ub=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,s={};return vt(i)==="object"&&!u.isValidElement(i)?s=i:s.right=i,n==="right"&&(l=s.right),n==="left"&&(l=s.left),l?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),Y4=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,s=e.mobile,d=e.more,f=d===void 0?{}:d,m=e.style,v=e.className,g=e.editable,h=e.tabBarGutter,b=e.rtl,C=e.removeAriaLabel,x=e.onTabClick,S=e.getPopupContainer,E=e.popupClassName,$=u.useState(!1),O=re($,2),P=O[0],R=O[1],I=u.useState(null),T=re(I,2),_=T[0],M=T[1],z=f.icon,L=z===void 0?"More":z,j="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),B=_!==null?"".concat(j,"-").concat(_):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=u.createElement(bs,{onClick:function(ne){var Z=ne.key,ee=ne.domEvent;x(Z,ee),R(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[_],"aria-label":K!==void 0?K:"expanded dropdown"},i.map(function(Y){var ne=Y.closable,Z=Y.disabled,ee=Y.closeIcon,fe=Y.key,me=Y.label,ce=vv(ne,ee,g,Z);return u.createElement(Fu,{key:fe,id:"".concat(j,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:Z},u.createElement("span",null,me),ce&&u.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),V(de,fe)}},ee||g.removeIcon||"×"))}));function D(Y){for(var ne=i.filter(function(ce){return!ce.disabled}),Z=ne.findIndex(function(ce){return ce.key===_})||0,ee=ne.length,fe=0;fe<ee;fe+=1){Z=(Z+Y+ee)%ee;var me=ne[Z];if(!me.disabled){M(me.key);return}}}function X(Y){var ne=Y.which;if(!P){[qe.DOWN,qe.SPACE,qe.ENTER].includes(ne)&&(R(!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:R(!1);break;case qe.SPACE:case qe.ENTER:_!==null&&x(_,Y);break}}u.useEffect(function(){var Y=document.getElementById(B);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[_]),u.useEffect(function(){P||M(null)},[P]);var W=H({},b?"marginRight":"marginLeft",h);i.length||(W.visibility="hidden",W.order=1);var k=se(H({},"".concat(A,"-rtl"),b)),F=s?null:u.createElement(Mz,ke({prefixCls:A,overlay:U,visible:i.length?P:!1,onVisibleChange:R,overlayClassName:se(k,E),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},f),u.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 u.createElement("div",{className:se("".concat(n,"-nav-operations"),v),style:m,ref:t},F,u.createElement(Kx,{prefixCls:n,locale:l,editable:g}))});const Z4=u.memo(Y4,function(e,t){return t.tabMoving});var J4=function(t){var n=t.prefixCls,r=t.id,i=t.active,l=t.focus,s=t.tab,d=s.key,f=s.label,m=s.disabled,v=s.closeIcon,g=s.icon,h=t.closable,b=t.renderWrapper,C=t.removeAriaLabel,x=t.editable,S=t.onClick,E=t.onFocus,$=t.onBlur,O=t.onKeyDown,P=t.onMouseDown,R=t.onMouseUp,I=t.style,T=t.tabCount,_=t.currentPosition,M="".concat(n,"-tab"),z=vv(h,v,x,m);function L(V){m||S(V)}function j(V){V.preventDefault(),V.stopPropagation(),x.onEdit("remove",{key:d,event:V})}var A=u.useMemo(function(){return g&&typeof f=="string"?u.createElement("span",null,f):f},[f,g]),B=u.useRef(null);u.useEffect(function(){l&&B.current&&B.current.focus()},[l]);var K=u.createElement("div",{key:d,"data-node-key":Gx(d),className:se(M,H(H(H(H({},"".concat(M,"-with-remove"),z),"".concat(M,"-active"),i),"".concat(M,"-disabled"),m),"".concat(M,"-focus"),l)),style:I,onClick:L},u.createElement("div",{ref:B,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(d),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(d),"aria-disabled":m,tabIndex:m?null:i?0:-1,onClick:function(U){U.stopPropagation(),L(U)},onKeyDown:O,onMouseDown:P,onMouseUp:R,onFocus:E,onBlur:$},l&&u.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(_," of ").concat(T)),g&&u.createElement("span",{className:"".concat(M,"-icon")},g),f&&A),z&&u.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:i?0:-1,className:"".concat(M,"-remove"),onClick:function(U){U.stopPropagation(),j(U)}},v||x.removeIcon||"×"));return b?b(K):K},e3=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,d=t.getBoundingClientRect(),f=d.width,m=d.height,v=d.left,g=d.top;return Math.abs(f-r)<1?[f,m,v-n.left,g-n.top]:[r,i,s,l]},ja=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,l=n.offsetHeight,s=l===void 0?0:l;if(t.current){var d=t.current.getBoundingClientRect(),f=d.width,m=d.height;if(Math.abs(f-i)<1)return[f,m]}return[i,s]},Pc=function(t,n){return t[n?0:1]},db=u.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,l=e.animated,s=e.activeKey,d=e.rtl,f=e.extra,m=e.editable,v=e.locale,g=e.tabPosition,h=e.tabBarGutter,b=e.children,C=e.onTabClick,x=e.onTabScroll,S=e.indicator,E=u.useContext(Uu),$=E.prefixCls,O=E.tabs,P=u.useRef(null),R=u.useRef(null),I=u.useRef(null),T=u.useRef(null),_=u.useRef(null),M=u.useRef(null),z=u.useRef(null),L=g==="top"||g==="bottom",j=ib(0,function(et,Ge){L&&x&&x({direction:et>Ge?"left":"right"})}),A=re(j,2),B=A[0],K=A[1],V=ib(0,function(et,Ge){!L&&x&&x({direction:et>Ge?"top":"bottom"})}),U=re(V,2),D=U[0],X=U[1],W=u.useState([0,0]),k=re(W,2),F=k[0],Y=k[1],ne=u.useState([0,0]),Z=re(ne,2),ee=Z[0],fe=Z[1],me=u.useState([0,0]),ce=re(me,2),Se=ce[0],de=ce[1],ie=u.useState([0,0]),he=re(ie,2),ge=he[0],pe=he[1],oe=q4(new Map),be=re(oe,2),we=be[0],$e=be[1],Ae=U4(O,we,ee[0]),je=Pc(F,L),Ie=Pc(ee,L),Le=Pc(Se,L),Ee=Pc(ge,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&&d?(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=u.useRef(null),dt=u.useState(),Xe=re(dt,2),Me=Xe[0],Ye=Xe[1];function Pe(){Ye(Date.now())}function Fe(){Ve.current&&clearTimeout(Ve.current)}K4(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}),u.useEffect(function(){return Fe(),Me&&(Ve.current=setTimeout(function(){Ye(0)},100)),Fe},[Me]);var wt=X4(Ae,lt,L?B:D,Ie,Le,Ee,q(q({},e),{},{tabs:O})),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;d?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=u.useState(),Vt=re(vn,2),Tt=Vt[0],St=Vt[1],Wt=u.useState(!1),Lt=re(Wt,2),Ze=Lt[0],yt=Lt[1],at=O.filter(function(et){return!et.disabled}).map(function(et){return et.key}),Oe=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=O.find(function($t){return $t.key===Ge}),ut=vv(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?Oe(-1):Oe(1))},xe=function(Ge,xt){yt(!0),xt.button===1&&Ce(Ge,xt)},_e=function(Ge){var xt=Ge.code,kt=d&&L,He=at[0],ut=at[at.length-1];switch(xt){case"ArrowLeft":{L&&Oe(kt?1:-1);break}case"ArrowRight":{L&&Oe(kt?-1:1);break}case"ArrowUp":{Ge.preventDefault(),L||Oe(-1);break}case"ArrowDown":{Ge.preventDefault(),L||Oe(1);break}case"Home":{Ge.preventDefault(),St(He);break}case"End":{Ge.preventDefault(),St(ut);break}case"Enter":case"Space":{Ge.preventDefault(),C(Tt??s,Ge);break}case"Backspace":case"Delete":{Ce(Tt,Ge);break}}},Ke={};L?Ke[d?"marginRight":"marginLeft"]=h:Ke.marginTop=h;var Qe=O.map(function(et,Ge){var xt=et.key;return u.createElement(J4,{id:i,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){C(xt,He)},onKeyDown:_e,onFocus:function(){Ze||St(xt),nn(xt),Pe(),T.current&&(d||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){St(void 0)},onMouseDown:function(He){return xe(xt,He)},onMouseUp:function(){yt(!1)}})}),_t=function(){return $e(function(){var Ge,xt=new Map,kt=(Ge=_.current)===null||Ge===void 0?void 0:Ge.getBoundingClientRect();return O.forEach(function(He){var ut,$t=He.key,Jt=(ut=_.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(Gx($t),'"]'));if(Jt){var zn=e3(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})};u.useEffect(function(){_t()},[O.map(function(et){return et.key}).join("_")]);var jt=Ux(function(){var et=ja(P),Ge=ja(R),xt=ja(I);Y([et[0]-Ge[0]-xt[0],et[1]-Ge[1]-xt[1]]);var kt=ja(z);de(kt);var He=ja(M);pe(He);var ut=ja(_);fe([ut[0]-kt[0],ut[1]-kt[1]]),_t()}),Rt=O.slice(0,Bt),It=O.slice(At+1),mn=[].concat(Be(Rt),Be(It)),sn=Ae.get(s),gn=W4({activeTabOffset:sn,horizontal:L,indicator:S,rtl:d}),$n=gn.style;u.useEffect(function(){nn()},[s,st,Ue,cb(sn),cb(Ae),L]),u.useEffect(function(){jt()},[d]);var Kt=!!mn.length,Yt="".concat($,"-nav-wrap"),Ne,We,Ct,ct;return L?d?(We=B>0,Ne=B!==Ue):(Ne=B<0,We=B!==st):(Ct=D<0,ct=D!==st),u.createElement(ro,{onResize:jt},u.createElement("div",{ref:Xi(t,P),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:se("".concat($,"-nav"),n),style:r,onKeyDown:function(){Pe()}},u.createElement(ub,{ref:R,position:"left",extra:f,prefixCls:$}),u.createElement(ro,{onResize:jt},u.createElement("div",{className:se(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},u.createElement(ro,{onResize:jt},u.createElement("div",{ref:_,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(D,"px)"),transition:Me?"none":void 0}},Qe,u.createElement(Kx,{ref:z,prefixCls:$,locale:v,editable:m,style:q(q({},Qe.length===0?void 0:Ke),{},{visibility:Kt?"hidden":null})}),u.createElement("div",{className:se("".concat($,"-ink-bar"),H({},"".concat($,"-ink-bar-animated"),l.inkBar)),style:$n}))))),u.createElement(Z4,ke({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:M,prefixCls:$,tabs:mn,className:!Kt&&bt,tabMoving:!!Me})),u.createElement(ub,{ref:I,position:"right",extra:f,prefixCls:$})))}),qx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,s=e.active,d=e.tabKey,f=e.children;return u.createElement("div",{id:l&&"".concat(l,"-panel-").concat(d),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(d),"aria-hidden":!s,style:i,className:se(n,s&&"".concat(n,"-active"),r),ref:t},f)}),t3=["renderTabBar"],n3=["label","key"],r3=function(t){var n=t.renderTabBar,r=Mt(t,t3),i=u.useContext(Uu),l=i.tabs;if(n){var s=q(q({},r),{},{panes:l.map(function(d){var f=d.label,m=d.key,v=Mt(d,n3);return u.createElement(qx,ke({tab:f,key:m,tabKey:m},v))})});return n(s,db)}return u.createElement(db,r)},o3=["key","forceRender","style","className","destroyInactiveTabPane"],i3=function(t){var n=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,d=u.useContext(Uu),f=d.prefixCls,m=d.tabs,v=i.tabPane,g="".concat(f,"-tabpane");return u.createElement("div",{className:se("".concat(f,"-content-holder"))},u.createElement("div",{className:se("".concat(f,"-content"),"".concat(f,"-content-").concat(l),H({},"".concat(f,"-content-animated"),v))},m.map(function(h){var b=h.key,C=h.forceRender,x=h.style,S=h.className,E=h.destroyInactiveTabPane,$=Mt(h,o3),O=b===r;return u.createElement(Ko,ke({key:b,visible:O,forceRender:C,removeOnLeave:!!(s||E),leavedClassName:"".concat(g,"-hidden")},i.tabPaneMotion),function(P,R){var I=P.style,T=P.className;return u.createElement(qx,ke({},$,{prefixCls:g,id:n,tabKey:b,animated:v,active:O,style:q(q({},x),I),className:se(S,T),ref:R}))})})))};function a3(){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 l3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],fb=0,s3=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,d=e.direction,f=e.activeKey,m=e.defaultActiveKey,v=e.editable,g=e.animated,h=e.tabPosition,b=h===void 0?"top":h,C=e.tabBarGutter,x=e.tabBarStyle,S=e.tabBarExtraContent,E=e.locale,$=e.more,O=e.destroyInactiveTabPane,P=e.renderTabBar,R=e.onChange,I=e.onTabClick,T=e.onTabScroll,_=e.getPopupContainer,M=e.popupClassName,z=e.indicator,L=Mt(e,l3),j=u.useMemo(function(){return(s||[]).filter(function(ge){return ge&&vt(ge)==="object"&&"key"in ge})},[s]),A=d==="rtl",B=a3(g),K=u.useState(!1),V=re(K,2),U=V[0],D=V[1];u.useEffect(function(){D(ev())},[]);var X=tr(function(){var ge;return(ge=j[0])===null||ge===void 0?void 0:ge.key},{value:f,defaultValue:m}),W=re(X,2),k=W[0],F=W[1],Y=u.useState(function(){return j.findIndex(function(ge){return ge.key===k})}),ne=re(Y,2),Z=ne[0],ee=ne[1];u.useEffect(function(){var ge=j.findIndex(function(oe){return oe.key===k});if(ge===-1){var pe;ge=Math.max(0,Math.min(Z,j.length-1)),F((pe=j[ge])===null||pe===void 0?void 0:pe.key)}ee(ge)},[j.map(function(ge){return ge.key}).join("_"),k,Z]);var fe=tr(null,{value:n}),me=re(fe,2),ce=me[0],Se=me[1];u.useEffect(function(){n||(Se("rc-tabs-".concat(fb)),fb+=1)},[]);function de(ge,pe){I==null||I(ge,pe);var oe=ge!==k;F(ge),oe&&(R==null||R(ge))}var ie={id:ce,activeKey:k,animated:B,tabPosition:b,rtl:A,mobile:U},he=q(q({},ie),{},{editable:v,locale:E,more:$,tabBarGutter:C,onTabClick:de,onTabScroll:T,extra:S,style:x,panes:null,getPopupContainer:_,popupClassName:M,indicator:z});return u.createElement(Uu.Provider,{value:{tabs:j,prefixCls:i}},u.createElement("div",ke({ref:t,id:n,className:se(i,"".concat(i,"-").concat(b),H(H(H({},"".concat(i,"-mobile"),U),"".concat(i,"-editable"),v),"".concat(i,"-rtl"),A),l)},L),u.createElement(r3,ke({},he,{renderTabBar:P})),u.createElement(i3,ke({destroyInactiveTabPane:O},ie,{animated:B}))))});const c3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function u3(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({},c3),{motionName:qp(e,"switch")})),n}var d3=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function f3(e){return e.filter(t=>t)}function m3(e,t){if(e)return e.map(r=>{var i;const l=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=_r(t).map(r=>{if(u.isValidElement(r)){const{key:i,props:l}=r,s=l||{},{tab:d}=s,f=d3(s,["tab"]);return Object.assign(Object.assign({key:String(i)},f),{label:d})}return null});return f3(n)}const p3=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}`}}}}},[ou(e,"slide-up"),ou(e,"slide-down")]]},v3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${le(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)`]:es(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:le(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:le(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadiusLG)} 0 0 ${le(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 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},g3=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:`${le(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({},Jc),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${le(e.paddingXXS)} ${le(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"}}})}})}},h3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:s,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${le(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:d(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:le(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${le(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:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},y3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:l,horizontalItemPaddingSM:s,horizontalItemPaddingLG:d}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:d,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadius)} ${le(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${le(e.borderRadius)} ${le(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadius)} ${le(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadius)} 0 0 ${le(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},b3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:d,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}},Gi(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:d,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:es(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},S3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,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:le(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:le(e.marginXS)},marginLeft:{_skip_check_:!0,value:le(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},x3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:s,colorBorderSecondary:d}=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:i},background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} ${d}`,borderRadius:`${le(e.borderRadiusLG)} ${le(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}},Gi(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),b3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Gi(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"}}}}}},C3=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:l}=e,s=t||l,d=n||i,f=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:d,cardHeightLG:f,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(d-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}},w3=Rn("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 ${le(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${le(e.horizontalItemGutter)}`});return[y3(t),S3(t),h3(t),g3(t),v3(t),x3(t),p3(t)]},C3),$3=()=>null;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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const O3=u.forwardRef((e,t)=>{var n,r,i,l,s,d,f,m,v,g,h;const{type:b,className:C,rootClassName:x,size:S,onEdit:E,hideAdd:$,centered:O,addIcon:P,removeIcon:R,moreIcon:I,more:T,popupClassName:_,children:M,items:z,animated:L,style:j,indicatorSize:A,indicator:B,destroyInactiveTabPane:K,destroyOnHidden:V}=e,U=E3(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}=u.useContext(Gt),Y=k("tabs",D),ne=ms(Y),[Z,ee,fe]=w3(Y,ne),me=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:me.current}));let ce;b==="editable-card"&&(ce={onEdit:(oe,{key:be,event:we})=>{E==null||E(oe==="add"?we:be,oe)},removeIcon:(n=R??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:u.createElement($u,null),addIcon:(P??(W==null?void 0:W.addIcon))||u.createElement(V4,null),showAdd:$!==!0});const Se=k(),de=qo(S),ie=m3(z,M),he=u3(Y,L),ge=Object.assign(Object.assign({},W==null?void 0:W.style),j),pe={align:(r=B==null?void 0:B.align)!==null&&r!==void 0?r:(i=W==null?void 0:W.indicator)===null||i===void 0?void 0:i.align,size:(f=(s=(l=B==null?void 0:B.size)!==null&&l!==void 0?l:A)!==null&&s!==void 0?s:(d=W==null?void 0:W.indicator)===null||d===void 0?void 0:d.size)!==null&&f!==void 0?f:W==null?void 0:W.indicatorSize};return Z(u.createElement(s3,Object.assign({ref:me,direction:X,getPopupContainer:F},U,{items:ie,className:se({[`${Y}-${de}`]:de,[`${Y}-card`]:["card","editable-card"].includes(b),[`${Y}-editable-card`]:b==="editable-card",[`${Y}-centered`]:O},W==null?void 0:W.className,C,x,ee,fe,ne),popupClassName:se(_,ee,fe,ne),style:ge,editable:ce,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:u.createElement($4,null),transitionName:`${Se}-slide-up`},T),prefixCls:Y,animated:he,indicator:pe,destroyInactiveTabPane:V??K})))}),Xx=O3;Xx.TabPane=$3;function R3(e,t,n){var r=n||{},i=r.noTrailing,l=i===void 0?!1:i,s=r.noLeading,d=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 C(S){var E=S||{},$=E.upcomingOnly,O=$===void 0?!1:$;b(),g=!O}function x(){for(var S=arguments.length,E=new Array(S),$=0;$<S;$++)E[$]=arguments[$];var O=this,P=Date.now()-h;if(g)return;function R(){h=Date.now(),t.apply(O,E)}function I(){v=void 0}!d&&m&&!v&&R(),b(),m===void 0&&P>e?d?(h=Date.now(),l||(v=setTimeout(m?I:R,e))):R():l!==!0&&(v=setTimeout(m?I:R,m===void 0?e-P:e))}return x.cancel=C,x}function I3(e,t,n){var r={},i=r.atBegin,l=i===void 0?!1:i;return R3(e,t,{debounceMode:l!==!1})}const Qx=u.createContext({});var P3=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mb(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 T3=["xs","sm","md","lg","xl","xxl"],M3=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Gt),{gutter:i,wrap:l}=u.useContext(Qx),{prefixCls:s,span:d,order:f,offset:m,push:v,pull:g,className:h,children:b,flex:C,style:x}=e,S=P3(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=n("col",s),[$,O,P]=gM(E),R={};let I={};T3.forEach(M=>{let z={};const L=e[M];typeof L=="number"?z.span=L:typeof L=="object"&&(z=L||{}),delete S[M],I=Object.assign(Object.assign({},I),{[`${E}-${M}-${z.span}`]:z.span!==void 0,[`${E}-${M}-order-${z.order}`]:z.order||z.order===0,[`${E}-${M}-offset-${z.offset}`]:z.offset||z.offset===0,[`${E}-${M}-push-${z.push}`]:z.push||z.push===0,[`${E}-${M}-pull-${z.pull}`]:z.pull||z.pull===0,[`${E}-rtl`]:r==="rtl"}),z.flex&&(I[`${E}-${M}-flex`]=!0,R[`--${E}-${M}-flex`]=mb(z.flex))});const T=se(E,{[`${E}-${d}`]:d!==void 0,[`${E}-order-${f}`]:f,[`${E}-offset-${m}`]:m,[`${E}-push-${v}`]:v,[`${E}-pull-${g}`]:g},h,I,O,P),_={};if(i!=null&&i[0]){const M=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;_.paddingLeft=M,_.paddingRight=M}return C&&(_.flex=mb(C),l===!1&&!_.minWidth&&(_.minWidth=0)),$(u.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},_),x),R),className:T,ref:t}),b))});function _3(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=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 d=0;d<Ki.length;d++){const f=Ki[d];if(i[f]&&l[f]!==void 0){n[s]=l[f];break}}else n[s]=l}),n}var N3=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function pb(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<Ki.length;l++){const s=Ki[l];if(!t||!t[s])continue;const d=e[s];if(d!==void 0){r(d);return}}};return u.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const z3=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:l,style:s,children:d,gutter:f=0,wrap:m}=e,v=N3(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:h}=u.useContext(Gt),b=iv(!0,null),C=pb(i,b),x=pb(r,b),S=g("row",n),[E,$,O]=pM(S),P=_3(f,b),R=se(S,{[`${S}-no-wrap`]:m===!1,[`${S}-${x}`]:x,[`${S}-${C}`]:C,[`${S}-rtl`]:h==="rtl"},l,$,O),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,_]=P;I.rowGap=_;const M=u.useMemo(()=>({gutter:[T,_],wrap:m}),[T,_,m]);return E(u.createElement(Qx.Provider,{value:M},u.createElement("div",Object.assign({},v,{className:R,style:Object.assign(Object.assign({},I),s),ref:t}),d)))}),j3=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},k3=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:l,orientationMargin:s,verticalMarginInline:d}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{borderBlockStart:`${le(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${le(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${le(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${le(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:`${le(i)} 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:`${le(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${le(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,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}}})}},L3=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),A3=Rn("Divider",e=>{const t=fn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[k3(t),j3(t)]},L3,{unitless:{orientationMargin:!0}});var D3=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const B3={small:"sm",middle:"md"},F3=e=>{const{getPrefixCls:t,direction:n,className:r,style:i}=Vr("divider"),{prefixCls:l,type:s="horizontal",orientation:d="center",orientationMargin:f,className:m,rootClassName:v,children:g,dashed:h,variant:b="solid",plain:C,style:x,size:S}=e,E=D3(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",l),[O,P,R]=A3($),I=qo(S),T=B3[I],_=!!g,M=u.useMemo(()=>d==="left"?n==="rtl"?"end":"start":d==="right"?n==="rtl"?"start":"end":d,[n,d]),z=M==="start"&&f!=null,L=M==="end"&&f!=null,j=se($,r,P,R,`${$}-${s}`,{[`${$}-with-text`]:_,[`${$}-with-text-${M}`]:_,[`${$}-dashed`]:!!h,[`${$}-${b}`]:b!=="solid",[`${$}-plain`]:!!C,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:z,[`${$}-no-default-orientation-margin-end`]:L,[`${$}-${T}`]:!!T},m,v),A=u.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),B={marginInlineStart:z?A:void 0,marginInlineEnd:L?A:void 0};return O(u.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},i),x)},E,{role:"separator"}),g&&s!=="vertical"&&u.createElement("span",{className:`${$}-inner-text`,style:B},g)))};function H3(e){return!!(e.addonBefore||e.addonAfter)}function V3(e){return!!(e.prefix||e.suffix||e.allowClear)}function vb(e,t,n){var r=t.cloneNode(!0),i=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)},i}function gb(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=vb(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=vb(t,e,r),n(i);return}n(i)}}function W3(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var U3=J.forwardRef(function(e,t){var n,r,i,l=e.inputElement,s=e.children,d=e.prefixCls,f=e.prefix,m=e.suffix,v=e.addonBefore,g=e.addonAfter,h=e.className,b=e.style,C=e.disabled,x=e.readOnly,S=e.focused,E=e.triggerFocus,$=e.allowClear,O=e.value,P=e.handleReset,R=e.hidden,I=e.classes,T=e.classNames,_=e.dataAttrs,M=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=u.useRef(null),D=function(pe){var oe;(oe=U.current)!==null&&oe!==void 0&&oe.contains(pe.target)&&(E==null||E())},X=V3(e),W=u.cloneElement(j,{value:O,className:se((n=j.props)===null||n===void 0?void 0:n.className,!X&&(T==null?void 0:T.variant))||null}),k=u.useRef(null);if(J.useImperativeHandle(t,function(){return{nativeElement:k.current||U.current}}),X){var F=null;if($){var Y=!C&&!x&&O,ne="".concat(d,"-clear-icon"),Z=vt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";F=J.createElement("button",{type:"button",tabIndex:-1,onClick:function(pe){P==null||P(pe),L==null||L()},onMouseDown:function(pe){return pe.preventDefault()},className:se(ne,H(H({},"".concat(ne,"-hidden"),!Y),"".concat(ne,"-has-suffix"),!!m))},Z)}var ee="".concat(d,"-affix-wrapper"),fe=se(ee,H(H(H(H(H({},"".concat(d,"-disabled"),C),"".concat(ee,"-disabled"),C),"".concat(ee,"-focused"),S),"".concat(ee,"-readonly"),x),"".concat(ee,"-input-with-clear-btn"),m&&$&&O),I==null?void 0:I.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),me=(m||$)&&J.createElement("span",{className:se("".concat(d,"-suffix"),T==null?void 0:T.suffix),style:M==null?void 0:M.suffix},F,m);W=J.createElement(A,ke({className:fe,style:M==null?void 0:M.affixWrapper,onClick:D},_==null?void 0:_.affixWrapper,{ref:U}),f&&J.createElement("span",{className:se("".concat(d,"-prefix"),T==null?void 0:T.prefix),style:M==null?void 0:M.prefix},f),W,me)}if(H3(e)){var ce="".concat(d,"-group"),Se="".concat(ce,"-addon"),de="".concat(ce,"-wrapper"),ie=se("".concat(d,"-wrapper"),ce,I==null?void 0:I.wrapper,T==null?void 0:T.wrapper),he=se(de,H({},"".concat(de,"-disabled"),C),I==null?void 0:I.group,T==null?void 0:T.groupWrapper);W=J.createElement(B,{className:he,ref:k},J.createElement(K,{className:ie},v&&J.createElement(V,{className:Se},v),W,g&&J.createElement(V,{className:Se},g)))}return J.cloneElement(W,{className:se((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:q(q({},(i=W.props)===null||i===void 0?void 0:i.style),b),hidden:R})}),G3=["show"];function K3(e,t){return u.useMemo(function(){var n={};t&&(n.show=vt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,l=Mt(r,G3);return q(q({},l),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const q3=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:J.createElement(Up,null)}),t};function hb(e){return["small","middle","large"].includes(e)}function yb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const X3=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:l,fontSizeLG:s,fontSizeSM:d,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:i,borderRadius:n,"&-large":{fontSize:s,borderRadius:f},"&-small":{paddingInline:l,borderRadius:m,fontSize:d},"&-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}},ju(e,{focus:!1})]}},Q3=Rn(["Space","Addon"],e=>[X3(e)]);var Y3=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Z3=J.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:l}=e,s=Y3(e,["className","children","style","prefixCls"]),{getPrefixCls:d,direction:f}=J.useContext(Gt),m=d("space-addon",l),[v,g,h]=Q3(m),{compactItemClassnames:b,compactSize:C}=Iu(m,f),x=se(m,g,b,h,{[`${m}-${C}`]:C},n);return v(J.createElement("div",Object.assign({ref:t,className:x,style:i},s),r))}),Yx=J.createContext({latestIndex:0}),J3=Yx.Provider,ej=({className:e,index:t,children:n,split:r,style:i})=>{const{latestIndex:l}=u.useContext(Yx);return n==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:e,style:i},n),t<l&&r&&u.createElement("span",{className:`${e}-split`},r))},tj=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"}}}},nj=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}}}},rj=Rn("Space",e=>{const t=fn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[tj(t),nj(t)]},()=>({}),{resetStyle:!1});var oj=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ij=u.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,size:l,className:s,style:d,classNames:f,styles:m}=Vr("space"),{size:v=l??"small",align:g,className:h,rootClassName:b,children:C,direction:x="horizontal",prefixCls:S,split:E,style:$,wrap:O=!1,classNames:P,styles:R}=e,I=oj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,_]=Array.isArray(v)?v:[v,v],M=hb(_),z=hb(T),L=yb(_),j=yb(T),A=_r(C,{keepEmpty:!0}),B=g===void 0&&x==="horizontal"?"center":g,K=r("space",S),[V,U,D]=rj(K),X=se(K,s,U,`${K}-${x}`,{[`${K}-rtl`]:i==="rtl",[`${K}-align-${B}`]:B,[`${K}-gap-row-${_}`]:M,[`${K}-gap-col-${T}`]:z},h,b,D),W=se(`${K}-item`,(n=P==null?void 0:P.item)!==null&&n!==void 0?n:f.item),k=Object.assign(Object.assign({},m.item),R==null?void 0:R.item),F=A.map((Z,ee)=>{const fe=(Z==null?void 0:Z.key)||`${W}-${ee}`;return u.createElement(ej,{className:W,key:fe,index:ee,split:E,style:k},Z)}),Y=u.useMemo(()=>({latestIndex:A.reduce((ee,fe,me)=>fe!=null?me:ee,0)}),[A]);if(A.length===0)return null;const ne={};return O&&(ne.flexWrap="wrap"),!z&&j&&(ne.columnGap=T),!M&&L&&(ne.rowGap=_),V(u.createElement("div",Object.assign({ref:t,className:X,style:Object.assign(Object.assign(Object.assign({},ne),d),$)},I),u.createElement(J3,{value:Y},F)))}),as=ij;as.Compact=xI;as.Addon=Z3;var aj={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"},lj=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:aj}))},Zx=u.forwardRef(lj),sj=`
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
+ `,cj=["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"],om={},Br;function uj(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&&om[n])return om[n];var r=window.getComputedStyle(e),i=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")),d=cj.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),f={sizingStyle:d,paddingSize:l,borderSize:s,boxSizing:i};return t&&n&&(om[n]=f),f}function dj(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 i=uj(e,t),l=i.paddingSize,s=i.borderSize,d=i.boxSizing,f=i.sizingStyle;Br.setAttribute("style","".concat(f,";").concat(sj)),Br.value=e.value||e.placeholder||"";var m=void 0,v=void 0,g,h=Br.scrollHeight;if(d==="border-box"?h+=s:d==="content-box"&&(h-=l),n!==null||r!==null){Br.value=" ";var b=Br.scrollHeight-l;n!==null&&(m=b*n,d==="border-box"&&(m=m+l+s),h=Math.max(m,h)),r!==null&&(v=b*r,d==="border-box"&&(v=v+l+s),g=h>v?"":"hidden",h=Math.min(v,h))}var C={height:h,overflowY:g,resize:"none"};return m&&(C.minHeight=m),v&&(C.maxHeight=v),C}var fj=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],im=0,am=1,lm=2,mj=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,l=n.value,s=n.autoSize,d=n.onResize,f=n.className,m=n.style,v=n.disabled,g=n.onChange;n.onInternalAutoSize;var h=Mt(n,fj),b=tr(i,{value:l,postState:function(Y){return Y??""}}),C=re(b,2),x=C[0],S=C[1],E=function(Y){S(Y.target.value),g==null||g(Y)},$=u.useRef();u.useImperativeHandle(t,function(){return{textArea:$.current}});var O=u.useMemo(function(){return s&&vt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),P=re(O,2),R=P[0],I=P[1],T=!!s,_=u.useState(lm),M=re(_,2),z=M[0],L=M[1],j=u.useState(),A=re(j,2),B=A[0],K=A[1],V=function(){L(im)};tn(function(){T&&V()},[l,R,I,T]),tn(function(){if(z===im)L(am);else if(z===am){var F=dj($.current,!1,R,I);L(lm),K(F)}},[z]);var U=u.useRef(),D=function(){yn.cancel(U.current)},X=function(Y){z===lm&&(d==null||d(Y),s&&(D(),U.current=yn(function(){V()})))};u.useEffect(function(){return D},[]);var W=T?B:null,k=q(q({},m),W);return(z===im||z===am)&&(k.overflowY="hidden",k.overflowX="hidden"),u.createElement(ro,{onResize:X,disabled:!(s||d)},u.createElement("textarea",ke({},h,{ref:$,style:k,className:se(r,f,H({},"".concat(r,"-disabled"),v)),disabled:v,value:x,onChange:E})))}),pj=["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"],vj=J.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,d=e.onChange,f=e.allowClear,m=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,b=e.prefixCls,C=b===void 0?"rc-textarea":b,x=e.showCount,S=e.count,E=e.className,$=e.style,O=e.disabled,P=e.hidden,R=e.classNames,I=e.styles,T=e.onResize,_=e.onClear,M=e.onPressEnter,z=e.readOnly,L=e.autoSize,j=e.onKeyDown,A=Mt(e,pj),B=tr(r,{value:i,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],fe=Z[1],me=u.useRef(null),ce=u.useRef(null),Se=function(){var Me;return(Me=ce.current)===null||Me===void 0?void 0:Me.textArea},de=function(){Se().focus()};u.useImperativeHandle(t,function(){var Xe;return{resizableTextArea:ce.current,focus:de,blur:function(){Se().blur()},nativeElement:((Xe=me.current)===null||Xe===void 0?void 0:Xe.nativeElement)||Se()}}),u.useEffect(function(){F(function(Xe){return!O&&Xe})},[O]);var ie=J.useState(null),he=re(ie,2),ge=he[0],pe=he[1];J.useEffect(function(){if(ge){var Xe;(Xe=Se()).setSelectionRange.apply(Xe,Be(ge))}},[ge]);var oe=K3(S,x),be=(n=oe.max)!==null&&n!==void 0?n:m,we=Number(be)>0,$e=oe.strategy(D),Ae=!!be&&$e>be,je=function(Me,Ye){var Pe=Ye;!Y.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ye)>oe.max&&(Pe=oe.exceedFormatter(Ye,{max:oe.max}),Ye!==Pe&&pe([Se().selectionStart||0,Se().selectionEnd||0])),U(Pe),gb(Me.currentTarget,Me,d,Pe)},Ie=function(Me){Y.current=!0,v==null||v(Me)},Le=function(Me){Y.current=!1,je(Me,Me.currentTarget.value),g==null||g(Me)},Ee=function(Me){je(Me,Me.target.value)},tt=function(Me){Me.key==="Enter"&&M&&M(Me),j==null||j(Me)},lt=function(Me){F(!0),l==null||l(Me)},bt=function(Me){F(!1),s==null||s(Me)},st=function(Me){U(""),de(),gb(Se(),Me,d)},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:se("".concat(C,"-data-count"),R==null?void 0:R.count),style:I==null?void 0:I.count},it)));var Ve=function(Me){var Ye;T==null||T(Me),(Ye=Se())!==null&&Ye!==void 0&&Ye.style.height&&fe(!0)},dt=!L&&!x&&!f;return J.createElement(U3,{ref:me,value:D,allowClear:f,handleReset:st,suffix:Ue,prefixCls:C,classNames:q(q({},R),{},{affixWrapper:se(R==null?void 0:R.affixWrapper,H(H({},"".concat(C,"-show-count"),x),"".concat(C,"-textarea-allow-clear"),f))}),disabled:O,focused:k,className:se(E,Ae&&"".concat(C,"-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:_},J.createElement(mj,ke({},A,{autoSize:L,maxLength:m,onKeyDown:tt,onChange:Ee,onFocus:lt,onBlur:bt,onCompositionStart:Ie,onCompositionEnd:Le,className:se(R==null?void 0:R.textarea),style:q(q({},I==null?void 0:I.textarea),{},{resize:$==null?void 0:$.resize}),disabled:O,prefixCls:C,onResize:Ve,ref:ce,readOnly:z})))});const gj=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}}}}}},hj=Rn(["Input","TextArea"],e=>{const t=fn(e,Hu(e));return gj(t)},Vu,{resetFont:!1});var yj=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bj=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:l,disabled:s,status:d,allowClear:f,classNames:m,rootClassName:v,className:g,style:h,styles:b,variant:C,showCount:x,onMouseDown:S,onResize:E}=e,$=yj(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:P,allowClear:R,autoComplete:I,className:T,style:_,classNames:M,styles:z}=Vr("textArea"),L=u.useContext(qa),j=s??L,{status:A,hasFeedback:B,feedbackIcon:K}=u.useContext(lu),V=rx(A,d),U=u.useRef(null);u.useImperativeHandle(t,()=>{var oe;return{resizableTextArea:(oe=U.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:be=>{var we,$e;W3(($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=O("input",r),X=ms(D),[W,k,F]=B4(D,v),[Y]=hj(D,X),{compactSize:ne,compactItemClassnames:Z}=Iu(D,P),ee=qo(oe=>{var be;return(be=l??ne)!==null&&be!==void 0?be:oe}),[fe,me]=lx("textArea",C,i),ce=q3(f??R),[Se,de]=u.useState(!1),[ie,he]=u.useState(!1),ge=oe=>{de(!0),S==null||S(oe);const be=()=>{de(!1),document.removeEventListener("mouseup",be)};document.addEventListener("mouseup",be)},pe=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"&&he(!0)}};return W(Y(u.createElement(vj,Object.assign({autoComplete:I},$,{style:Object.assign(Object.assign({},_),h),styles:Object.assign(Object.assign({},z),b),disabled:j,allowClear:ce,className:se(F,X,g,v,Z,T,ie&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),M),{textarea:se({[`${D}-sm`]:ee==="small",[`${D}-lg`]:ee==="large"},k,m==null?void 0:m.textarea,M.textarea,Se&&`${D}-mouse-active`),variant:se({[`${D}-${fe}`]:me},nx(D,V)),affixWrapper:se(`${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`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:D,suffix:B&&u.createElement("span",{className:`${D}-textarea-suffix`},K),showCount:x,ref:U,onResize:pe,onMouseDown:ge}))))});function Sj(e,t,n){return typeof n=="boolean"?n:e.length?!0:_r(t).some(i=>i.type===Fx)}var Jx=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Gu({suffixCls:e,tagName:t,displayName:n}){return r=>u.forwardRef((l,s)=>u.createElement(r,Object.assign({ref:s,suffixCls:e,tagName:t},l)))}const gv=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:l}=e,s=Jx(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:d}=u.useContext(Gt),f=d("layout",n),[m,v,g]=Dx(f),h=r?`${f}-${r}`:f;return m(u.createElement(l,Object.assign({className:se(n||h,i,v,g),ref:t},s)))}),xj=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Gt),[r,i]=u.useState([]),{prefixCls:l,className:s,rootClassName:d,children:f,hasSider:m,tagName:v,style:g}=e,h=Jx(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=Hr(h,["suffixCls"]),{getPrefixCls:C,className:x,style:S}=Vr("layout"),E=C("layout",l),$=Sj(r,f,m),[O,P,R]=Dx(E),I=se(E,{[`${E}-has-sider`]:$,[`${E}-rtl`]:n==="rtl"},x,s,d,P,R),T=u.useMemo(()=>({siderHook:{addSider:_=>{i(M=>[].concat(Be(M),[_]))},removeSider:_=>{i(M=>M.filter(z=>z!==_))}}}),[]);return O(u.createElement(kx.Provider,{value:T},u.createElement(v,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},S),g)},b),f)))}),Cj=Gu({tagName:"div",displayName:"Layout"})(xj),wj=Gu({suffixCls:"header",tagName:"header",displayName:"Header"})(gv),$j=Gu({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(gv),Ej=Gu({suffixCls:"content",tagName:"main",displayName:"Content"})(gv),bi=Cj;bi.Header=wj;bi.Footer=$j;bi.Content=Ej;bi.Sider=Fx;bi._InternalSiderContext=Bx;var Oj={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"},Rj=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:Oj}))},bb=u.forwardRef(Rj),Ij={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"},Pj=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:Ij}))},Sb=u.forwardRef(Pj),Tj={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:"页码"},Mj=[10,20,50,100],_j=function(t){var n=t.pageSizeOptions,r=n===void 0?Mj:n,i=t.locale,l=t.changeSize,s=t.pageSize,d=t.goButton,f=t.quickGo,m=t.rootPrefixCls,v=t.disabled,g=t.buildOptionText,h=t.showSizeChanger,b=t.sizeChangerRender,C=J.useState(""),x=re(C,2),S=x[0],E=x[1],$=function(){return!S||Number.isNaN(S)?void 0:Number(S)},O=typeof g=="function"?g:function(j){return"".concat(j," ").concat(i.items_per_page)},P=function(A){E(A.target.value)},R=function(A){d||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})},_="".concat(m,"-options");if(!h&&!f)return null;var M=null,z=null,L=null;return h&&b&&(M=b({disabled:v,size:s,onSizeChange:function(A){l==null||l(Number(A))},"aria-label":i.page_size,className:"".concat(_,"-size-changer"),options:T().map(function(j){return{label:O(j),value:j}})})),f&&(d&&(L=typeof d=="boolean"?J.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:v,className:"".concat(_,"-quick-jumper-button")},i.jump_to_confirm):J.createElement("span",{onClick:I,onKeyUp:I},d)),z=J.createElement("div",{className:"".concat(_,"-quick-jumper")},i.jump_to,J.createElement("input",{disabled:v,type:"text",value:S,onChange:P,onKeyUp:I,onBlur:R,"aria-label":i.page}),i.page,L)),J.createElement("li",{className:_},M,z)},zl=function(t){var n=t.rootPrefixCls,r=t.page,i=t.active,l=t.className,s=t.showTitle,d=t.onClick,f=t.onKeyPress,m=t.itemRender,v="".concat(n,"-item"),g=se(v,"".concat(v,"-").concat(r),H(H({},"".concat(v,"-active"),i),"".concat(v,"-disabled"),!r),l),h=function(){d(r)},b=function(S){f(S,d,r)},C=m(r,"page",J.createElement("a",{rel:"nofollow"},r));return C?J.createElement("li",{title:s?String(r):null,className:g,onClick:h,onKeyDown:b,tabIndex:0},C):null},Nj=function(t,n,r){return r};function xb(){}function Cb(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 zj=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,l=i===void 0?"rc-select":i,s=t.className,d=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,C=b===void 0?10:b,x=t.onChange,S=x===void 0?xb:x,E=t.hideOnSinglePage,$=t.align,O=t.showPrevNextJumpers,P=O===void 0?!0:O,R=t.showQuickJumper,I=t.showLessItems,T=t.showTitle,_=T===void 0?!0:T,M=t.onShowSizeChange,z=M===void 0?xb:M,L=t.locale,j=L===void 0?Tj: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?Nj:Y,Z=t.jumpPrevIcon,ee=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ce=J.useRef(null),Se=tr(10,{value:h,defaultValue:C}),de=re(Se,2),ie=de[0],he=de[1],ge=tr(1,{value:d,defaultValue:m,postState:function(ut){return Math.max(1,Math.min(ut,ki(void 0,ie,g)))}}),pe=re(ge,2),oe=pe[0],be=pe[1],we=J.useState(oe),$e=re(we,2),Ae=$e[0],je=$e[1];u.useEffect(function(){je(oe)},[oe]);var Ie=Math.max(1,oe-(I?3:5)),Le=Math.min(ki(void 0,ie,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,ie,g),Jt;return ut===""?Jt=ut:Number.isNaN(Number(ut))?Jt=Ae:ut>=$t?Jt=$t:Jt=Number(ut),Jt}function lt(He){return Cb(He)&&He!==oe&&Cb(g)&&g>0}var bt=g>ie?R:!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,ie,g),$t=oe>ut&&ut!==0?ut:oe;he(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,ie,g),$t=He;return He>ut?$t=ut:He<1&&($t=1),$t!==Ae&&je($t),be($t),S==null||S($t,ie),$t}return oe}var Xe=oe>1,Me=oe<ki(void 0,ie,g);function Ye(){Xe&&dt(oe-1)}function Pe(){Me&&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(fe,"prev page"));return J.isValidElement(ut)?J.cloneElement(ut,{disabled:!Xe}):ut}function Tt(He){var ut=ne(He,"next",Ee(me,"next page"));return J.isValidElement(ut)?J.cloneElement(ut,{disabled:!Me}):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)*ie+1,oe*ie>g?g:oe*ie])),yt=null,at=ki(void 0,ie,g);if(E&&g<=ie)return null;var Oe=[],Ce={rootPrefixCls:r,onClick:dt,onKeyPress:mt,showTitle:_,itemRender:ne,page:-1},xe=oe-1>0?oe-1:0,_e=oe+1<at?oe+1:at,Ke=R&&R.goButton,Qe=vt(U)==="object"?U.readOnly:!U,_t=Ke,jt=null;U&&(Ke&&(typeof Ke=="boolean"?_t=J.createElement("button",{type:"button",onClick:St,onKeyUp:St},j.jump_to_confirm):_t=J.createElement("span",{onClick:St,onKeyUp:St},Ke),_t=J.createElement("li",{title:_?"".concat(j.jump_to).concat(oe,"/").concat(at):null,className:"".concat(r,"-simple-pager")},_t)),jt=J.createElement("li",{title:_?"".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 Rt=I?1:2;if(at<=3+Rt*2){at||Oe.push(J.createElement(zl,ke({},Ce,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var It=1;It<=at;It+=1)Oe.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:_?mn:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:nn,className:se("".concat(r,"-jump-prev"),H({},"".concat(r,"-jump-prev-custom-icon"),!!Z))},gn):null,yt=$n?J.createElement("li",{title:_?sn:null,key:"next",onClick:wt,tabIndex:0,onKeyDown:vn,className:se("".concat(r,"-jump-next"),H({},"".concat(r,"-jump-next-custom-icon"),!!ee))},$n):null);var Kt=Math.max(1,oe-Rt),Yt=Math.min(oe+Rt,at);oe-1<=Rt&&(Yt=1+Rt*2),at-oe<=Rt&&(Kt=at-Rt*2);for(var Ne=Kt;Ne<=Yt;Ne+=1)Oe.push(J.createElement(zl,ke({},Ce,{key:Ne,page:Ne,active:oe===Ne})));if(oe-1>=Rt*2&&oe!==3&&(Oe[0]=J.cloneElement(Oe[0],{className:se("".concat(r,"-item-after-jump-prev"),Oe[0].props.className)}),Oe.unshift(Wt)),at-oe>=Rt*2&&oe!==at-2){var We=Oe[Oe.length-1];Oe[Oe.length-1]=J.cloneElement(We,{className:se("".concat(r,"-item-before-jump-next"),We.props.className)}),Oe.push(yt)}Kt!==1&&Oe.unshift(J.createElement(zl,ke({},Ce,{key:1,page:1}))),Yt!==at&&Oe.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:_?j.prev_page:null,onClick:Ye,tabIndex:ct?null:0,onKeyDown:Bt,className:se("".concat(r,"-prev"),H({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},Ct)}var et=Tt(_e);if(et){var Ge,xt;U?(Ge=!Me,xt=Xe?0:null):(Ge=!Me||!at,xt=Ge?null:0),et=J.createElement("li",{title:_?j.next_page:null,onClick:Pe,tabIndex:xt,onKeyDown:At,className:se("".concat(r,"-next"),H({},"".concat(r,"-disabled"),Ge)),"aria-disabled":Ge},et)}var kt=se(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:ce},Lt),Ze,Ct,U?jt:Oe,et,J.createElement(_j,{locale:j,rootPrefixCls:r,disabled:V,selectPrefixCls:l,changeSize:Ve,pageSize:ie,pageSizeOptions:F,quickGo:bt?dt:null,goButton:_t,showSizeChanger:W,sizeChangerRender:k}))};const jj=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}}}}},kj=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(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:le(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),input:Object.assign(Object.assign({},mv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Lj=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:le(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:le(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 ${le(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${le(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:`${le(e.inputOutlineOffset)} 0 ${le(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:le(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Aj=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:le(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:`${le(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:le(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},pv(e)),fv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Wu(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Dj=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${le(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}}}}},Bj=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:le(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Dj(e)),Aj(e)),Lj(e)),kj(e)),jj(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"}}},Fj=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Gi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},es(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:es(e)}}}},eC=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},Vu(e)),tC=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"},Hu(e)),Hj=Rn("Pagination",e=>{const t=tC(e);return[Bj(t),Fj(t)]},eC),Vj=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:`${le(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}}}}},Wj=Cu(["Pagination","bordered"],e=>{const t=tC(e);return Vj(t)},eC);function wb(e){return u.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Uj=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Gj=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:l,style:s,size:d,locale:f,responsive:m,showSizeChanger:v,selectComponentClass:g,pageSizeOptions:h}=e,b=Uj(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=iv(m),[,x]=Wr(),{getPrefixCls:S,direction:E,showSizeChanger:$,className:O,style:P}=Vr("pagination"),R=S("pagination",n),[I,T,_]=Hj(R),M=qo(d),z=M==="small"||!!(C&&!M&&m),[L]=Ja("Pagination",RS),j=Object.assign(Object.assign({},L),f),[A,B]=wb(v),[K,V]=wb($),U=A??K,D=B??V,X=g||tl,W=u.useMemo(()=>h?h.map(ee=>Number(ee)):void 0,[h]),k=ee=>{var fe;const{disabled:me,size:ce,onSizeChange:Se,"aria-label":de,className:ie,options:he}=ee,{className:ge,onChange:pe}=D||{},oe=(fe=he.find(be=>String(be.value)===String(ce)))===null||fe===void 0?void 0:fe.value;return u.createElement(X,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:be=>be.parentNode,"aria-label":de,options:he},D,{value:oe,onChange:(be,we)=>{Se==null||Se(be),pe==null||pe(be,we)},size:z?"small":"middle",className:se(ie,ge)}))},F=u.useMemo(()=>{const ee=u.createElement("span",{className:`${R}-item-ellipsis`},"•••"),fe=u.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},E==="rtl"?u.createElement(ns,null):u.createElement(cu,null)),me=u.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},E==="rtl"?u.createElement(cu,null):u.createElement(ns,null)),ce=u.createElement("a",{className:`${R}-item-link`},u.createElement("div",{className:`${R}-item-container`},E==="rtl"?u.createElement(Sb,{className:`${R}-item-link-icon`}):u.createElement(bb,{className:`${R}-item-link-icon`}),ee)),Se=u.createElement("a",{className:`${R}-item-link`},u.createElement("div",{className:`${R}-item-container`},E==="rtl"?u.createElement(bb,{className:`${R}-item-link-icon`}):u.createElement(Sb,{className:`${R}-item-link-icon`}),ee));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ce,jumpNextIcon:Se}},[E,R]),Y=S("select",r),ne=se({[`${R}-${t}`]:!!t,[`${R}-mini`]:z,[`${R}-rtl`]:E==="rtl",[`${R}-bordered`]:x.wireframe},O,i,l,T,_),Z=Object.assign(Object.assign({},P),s);return I(u.createElement(u.Fragment,null,x.wireframe&&u.createElement(Wj,{prefixCls:R}),u.createElement(zj,Object.assign({},F,b,{style:Z,prefixCls:R,selectPrefixCls:Y,className:ne,locale:j,pageSizeOptions:W,showSizeChanger:U,sizeChangerRender:k}))))},du=100,nC=du/5,rC=du/2-nC/2,sm=rC*2*Math.PI,$b=50,Eb=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:se(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:rC,cx:$b,cy:$b,strokeWidth:nC,style:n})},Kj=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[l,s]=u.useState(!1);tn(()=>{e!==0&&s(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!l)return null;const f={strokeDashoffset:`${sm/4}`,strokeDasharray:`${sm*d/100} ${sm*(100-d)/100}`};return u.createElement("span",{className:se(r,`${n}-progress`,d<=0&&i)},u.createElement("svg",{viewBox:`0 0 ${du} ${du}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},u.createElement(Eb,{dotClassName:n,hasCircleCls:!0}),u.createElement(Eb,{dotClassName:n,style:f})))};function qj(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,l=`${i}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:se(i,n>0&&l)},u.createElement("span",{className:se(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>u.createElement("i",{className:`${t}-dot-item`,key:s})))),u.createElement(Kj,{prefixCls:t,percent:n}))}function Xj(e){var t;const{prefixCls:n,indicator:r,percent:i}=e,l=`${n}-dot`;return r&&u.isValidElement(r)?Io(r,{className:se((t=r.props)===null||t===void 0?void 0:t.className,l),percent:i}):u.createElement(qj,{prefixCls:n,percent:i})}const Qj=new Ht("antSpinMove",{to:{opacity:1}}),Yj=new Ht("antRotate",{to:{transform:"rotate(405deg)"}}),Zj=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:Qj,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:Yj,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"}})}},Jj=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},ek=Rn("Spin",e=>{const t=fn(e,{spinDotDefault:e.colorTextDescription});return Zj(t)},Jj),tk=200,Ob=[[30,.05],[70,.03],[96,.01]];function nk(e,t){const[n,r]=u.useState(0),i=u.useRef(null),l=t==="auto";return u.useEffect(()=>(l&&e&&(r(0),i.current=setInterval(()=>{r(s=>{const d=100-s;for(let f=0;f<Ob.length;f+=1){const[m,v]=Ob[f];if(s<=m)return s+d*v}return s})},tk)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[l,e]),l?n:t}var rk=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let oC;function ok(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const iC=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:l,rootClassName:s,size:d="default",tip:f,wrapperClassName:m,style:v,children:g,fullscreen:h=!1,indicator:b,percent:C}=e,x=rk(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:S,direction:E,className:$,style:O,indicator:P}=Vr("spin"),R=S("spin",n),[I,T,_]=ek(R),[M,z]=u.useState(()=>r&&!ok(r,i)),L=nk(M,C);u.useEffect(()=>{if(r){const D=I3(i,()=>{z(!0)});return D(),()=>{var X;(X=D==null?void 0:D.cancel)===null||X===void 0||X.call(D)}}z(!1)},[i,r]);const j=u.useMemo(()=>typeof g<"u"&&!h,[g,h]),A=se(R,$,{[`${R}-sm`]:d==="small",[`${R}-lg`]:d==="large",[`${R}-spinning`]:M,[`${R}-show-text`]:!!f,[`${R}-rtl`]:E==="rtl"},l,!h&&s,T,_),B=se(`${R}-container`,{[`${R}-blur`]:M}),K=(t=b??P)!==null&&t!==void 0?t:oC,V=Object.assign(Object.assign({},O),v),U=u.createElement("div",Object.assign({},x,{style:V,className:A,"aria-live":"polite","aria-busy":M}),u.createElement(Xj,{prefixCls:R,indicator:K,percent:L}),f&&(j||h)?u.createElement("div",{className:`${R}-text`},f):null);return I(j?u.createElement("div",Object.assign({},x,{className:se(`${R}-nested-loading`,m,T,_)}),M&&u.createElement("div",{key:"loading"},U),u.createElement("div",{className:B,key:"container"},g)):h?u.createElement("div",{className:se(`${R}-fullscreen`,{[`${R}-fullscreen-show`]:M},s,T,_)},U):U)};iC.setDefaultIndicator=e=>{oC=e};const hv=J.createContext({});hv.Consumer;var aC=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ik=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:l}=e,s=aC(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:d}=u.useContext(Gt),f=d("list",t),m=se(`${f}-item-meta`,n),v=J.createElement("div",{className:`${f}-item-meta-content`},i&&J.createElement("h4",{className:`${f}-item-meta-title`},i),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),(i||l)&&v)},ak=J.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:l,styles:s,className:d,classNames:f,colStyle:m}=e,v=aC(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:h}=u.useContext(hv),{getPrefixCls:b,list:C}=u.useContext(Gt),x=T=>{var _,M;return se((M=(_=C==null?void 0:C.item)===null||_===void 0?void 0:_.classNames)===null||M===void 0?void 0:M[T],f==null?void 0:f[T])},S=T=>{var _,M;return Object.assign(Object.assign({},(M=(_=C==null?void 0:C.item)===null||_===void 0?void 0:_.styles)===null||M===void 0?void 0:M[T]),s==null?void 0:s[T])},E=()=>{let T=!1;return u.Children.forEach(r,_=>{typeof _=="string"&&(T=!0)}),T&&u.Children.count(r)>1},$=()=>h==="vertical"?!!l:!E(),O=b("list",n),P=i&&i.length>0&&J.createElement("ul",{className:se(`${O}-item-action`,x("actions")),key:"actions",style:S("actions")},i.map((T,_)=>J.createElement("li",{key:`${O}-item-action-${_}`},T,_!==i.length-1&&J.createElement("em",{className:`${O}-item-action-split`})))),R=g?"div":"li",I=J.createElement(R,Object.assign({},v,g?{}:{ref:t},{className:se(`${O}-item`,{[`${O}-item-no-flex`]:!$()},d)}),h==="vertical"&&l?[J.createElement("div",{className:`${O}-item-main`,key:"content"},r,P),J.createElement("div",{className:se(`${O}-item-extra`,x("extra")),key:"extra",style:S("extra")},l)]:[r,P,Io(l,{key:"extra"})]);return g?J.createElement(M3,{ref:t,flex:1,style:m},I):I}),lC=ak;lC.Meta=ik;const lk=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:l,itemPaddingLG:s,marginLG:d,borderRadiusLG:f}=e,m=le(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${le(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:`${le(i)} ${le(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},sk=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:l,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@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 ${le(s)}`}}}}}},ck=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:l,marginLG:s,padding:d,itemPadding:f,colorPrimary:m,itemPaddingSM:v,itemPaddingLG:g,paddingXS:h,margin:b,colorText:C,colorTextDescription:x,motionDurationSlow:S,lineWidth:E,headerBg:$,footerBg:O,emptyTextPadding:P,metaMarginBottom:R,avatarMarginRight:I,titleMarginBottom:T,descriptionFontSize:_}=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:O},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:C,[`${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:C},[`${t}-item-meta-title`]:{margin:`0 0 ${le(e.marginXXS)} 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,transition:`all ${S}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:x,fontSize:_,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 ${le(h)}`,color:x,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:`${le(d)} 0`,color:x,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:R,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:C,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:d,marginInlineStart:"auto","> li":{padding:`0 ${le(d)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${le(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:`${le(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"}}}}},uk=e=>({contentWidth:220,itemPadding:`${le(e.paddingContentVertical)} 0`,itemPaddingSM:`${le(e.paddingContentVerticalSM)} ${le(e.paddingContentHorizontal)}`,itemPaddingLG:`${le(e.paddingContentVerticalLG)} ${le(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),dk=Rn("List",e=>{const t=fn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[ck(t),lk(t),sk(t)]},uk);var fk=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mk(e,t){const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:l=!0,className:s,rootClassName:d,style:f,children:m,itemLayout:v,loadMore:g,grid:h,dataSource:b=[],size:C,header:x,footer:S,loading:E=!1,rowKey:$,renderItem:O,locale:P}=e,R=fk(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,_]=u.useState(I.defaultCurrent||1),[M,z]=u.useState(I.defaultPageSize||10),{getPrefixCls:L,direction:j,className:A,style:B}=Vr("list"),{renderEmpty:K}=u.useContext(Gt),V={current:1,total:0,position:"bottom"},U=Ie=>(Le,Ee)=>{var tt;_(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(!O)return null;let Ee;return typeof $=="function"?Ee=$(Ie):$?Ee=Ie[$]:Ee=Ie.key,Ee||(Ee=`list-item-${Le}`),u.createElement(u.Fragment,{key:Ee},O(Ie,Le))},k=!!(g||n||S),F=L("list",r),[Y,ne,Z]=dk(F);let ee=E;typeof ee=="boolean"&&(ee={spinning:ee});const fe=!!(ee!=null&&ee.spinning),me=qo(C);let ce="";switch(me){case"large":ce="lg";break;case"small":ce="sm";break}const Se=se(F,{[`${F}-vertical`]:v==="vertical",[`${F}-${ce}`]:ce,[`${F}-split`]:l,[`${F}-bordered`]:i,[`${F}-loading`]:fe,[`${F}-grid`]:!!h,[`${F}-something-after-last-item`]:k,[`${F}-rtl`]:j==="rtl"},A,s,d,ne,Z),de=Zm(V,{total:b.length,current:T,pageSize:M},n||{}),ie=Math.ceil(de.total/de.pageSize);de.current=Math.min(de.current,ie);const he=n&&u.createElement("div",{className:se(`${F}-pagination`)},u.createElement(Gj,Object.assign({align:"end"},de,{onChange:D,onShowSizeChange:X})));let ge=Be(b);n&&b.length>(de.current-1)*de.pageSize&&(ge=Be(b).splice((de.current-1)*de.pageSize,de.pageSize));const pe=Object.keys(h||{}).some(Ie=>["xs","sm","md","lg","xl","xxl"].includes(Ie)),oe=iv(pe),be=u.useMemo(()=>{for(let Ie=0;Ie<Ki.length;Ie+=1){const Le=Ki[Ie];if(oe[Le])return Le}},[oe]),we=u.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=fe&&u.createElement("div",{style:{minHeight:53}});if(ge.length>0){const Ie=ge.map(W);$e=h?u.createElement(z3,{gutter:h.gutter},u.Children.map(Ie,Le=>u.createElement("div",{key:Le==null?void 0:Le.key,style:we},Le))):u.createElement("ul",{className:`${F}-items`},Ie)}else!m&&!fe&&($e=u.createElement("div",{className:`${F}-empty-text`},(P==null?void 0:P.emptyText)||(K==null?void 0:K("List"))||u.createElement(ax,{componentName:"List"})));const Ae=de.position,je=u.useMemo(()=>({grid:h,itemLayout:v}),[JSON.stringify(h),v]);return Y(u.createElement(hv.Provider,{value:je},u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},B),f),className:Se},R),(Ae==="top"||Ae==="both")&&he,x&&u.createElement("div",{className:`${F}-header`},x),u.createElement(iC,Object.assign({},ee),$e,m),S&&u.createElement("div",{className:`${F}-footer`},S),g||(Ae==="bottom"||Ae==="both")&&he)))}const pk=u.forwardRef(mk),Ep=pk;Ep.Item=lC;const vk=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let no=null,Fi=e=>e(),ls=[],ss={};function Rb(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=ss,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:i}}const gk=J.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=u.useContext(Gt),l=ss.prefixCls||i("message"),s=u.useContext(hM),[d,f]=v1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return J.useImperativeHandle(t,()=>{const m=Object.assign({},d);return Object.keys(m).forEach(v=>{m[v]=(...g)=>(r(),d[v].apply(d,g))}),{instance:m,sync:r}}),f}),hk=J.forwardRef((e,t)=>{const[n,r]=J.useState(Rb),i=()=>{r(Rb)};J.useEffect(i,[]);const l=HO(),s=l.getRootPrefixCls(),d=l.getIconPrefixCls(),f=l.getTheme(),m=J.createElement(gk,{ref:t,sync:i,messageConfig:n});return J.createElement(Ci,{prefixCls:s,iconPrefixCls:d,theme:f},l.holderRender?l.holderRender(m):m)}),Ku=()=>{if(!no){const e=document.createDocumentFragment(),t={fragment:e};no=t,Fi(()=>{y1()(J.createElement(hk,{ref:r=>{const{instance:i,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=l,Ku())})}}),e)});return}no.instance&&(ls.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Fi(()=>{const r=no.instance.open(Object.assign(Object.assign({},ss),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Fi(()=>{no==null||no.instance.destroy(e.key)});break;default:Fi(()=>{var r;const i=(r=no.instance)[t].apply(r,Be(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),ls=[])};function yk(e){ss=Object.assign(Object.assign({},ss),e),Fi(()=>{var t;(t=no==null?void 0:no.sync)===null||t===void 0||t.call(no)})}function bk(e){const t=Gp(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return ls.push(i),()=>{r?Fi(()=>{r()}):i.skipped=!0}});return Ku(),t}function Sk(e,t){const n=Gp(r=>{let i;const l={type:e,args:t,resolve:r,setCloseFn:s=>{i=s}};return ls.push(l),()=>{i?Fi(()=>{i()}):l.skipped=!0}});return Ku(),n}const xk=e=>{ls.push({type:"destroy",key:e}),Ku()},Ck=["success","info","warning","error","loading"],wk={open:bk,destroy:xk,config:yk,useMessage:qR,_InternalPanelDoNotUseOrYouWillBeFired:BR},sC=wk;Ck.forEach(e=>{sC[e]=(...t)=>Sk(e,t)});const $k=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:l}=e,s=l(r).sub(n).equal(),d=l(t).sub(n).equal();return{[i]: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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},yv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return fn(e,{tagFontSize:i,tagLineHeight:le(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},bv=e=>({defaultBg:new dn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),cC=Rn("Tag",e=>{const t=yv(e);return $k(t)},bv);var Ek=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ok=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:l,children:s,icon:d,onChange:f,onClick:m}=e,v=Ek(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:h}=u.useContext(Gt),b=O=>{f==null||f(!l),m==null||m(O)},C=g("tag",n),[x,S,E]=cC(C),$=se(C,`${C}-checkable`,{[`${C}-checkable-checked`]:l},h==null?void 0:h.className,i,S,E);return x(u.createElement("span",Object.assign({},v,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:$,onClick:b}),d,u.createElement("span",null,s)))}),Rk=e=>wu(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Ik=Cu(["Tag","preset"],e=>{const t=yv(e);return Rk(t)},bv);function Pk(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Tc=(e,t,n)=>{const r=Pk(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"}}}},Tk=Cu(["Tag","status"],e=>{const t=yv(e);return[Tc(t,"success","Success"),Tc(t,"processing","Info"),Tc(t,"error","Error"),Tc(t,"warning","Warning")]},bv);var Mk=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _k=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,children:s,icon:d,color:f,onClose:m,bordered:v=!0,visible:g}=e,h=Mk(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:C,tag:x}=u.useContext(Gt),[S,E]=u.useState(!0),$=Hr(h,["closeIcon","closable"]);u.useEffect(()=>{g!==void 0&&E(g)},[g]);const O=Au(f),P=tz(f),R=O||P,I=Object.assign(Object.assign({backgroundColor:f&&!R?f:void 0},x==null?void 0:x.style),l),T=b("tag",n),[_,M,z]=cC(T),L=se(T,x==null?void 0:x.className,{[`${T}-${f}`]:R,[`${T}-has-color`]:f&&!R,[`${T}-hidden`]:!S,[`${T}-rtl`]:C==="rtl",[`${T}-borderless`]:!v},r,i,M,z),j=D=>{D.stopPropagation(),m==null||m(D),!D.defaultPrevented&&E(!1)},[,A]=TR(G0(e),G0(x),{closable:!1,closeIconRender:D=>{const X=u.createElement("span",{className:`${T}-close-icon`,onClick:j},D);return l1(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:se(W==null?void 0:W.className,`${T}-close-icon`)}))}}),B=typeof h.onClick=="function"||s&&s.type==="a",K=d||null,V=K?u.createElement(u.Fragment,null,K,s&&u.createElement("span",null,s)):s,U=u.createElement("span",Object.assign({},$,{ref:t,className:L,style:I}),V,A,O&&u.createElement(Ik,{key:"preset",prefixCls:T}),P&&u.createElement(Tk,{key:"status",prefixCls:T}));return _(B?u.createElement(S1,{component:"Tag"},U):U)}),Vo=_k;Vo.CheckableTag=Ok;const to=(e,t)=>new dn(e).setA(t).toRgbString(),ka=(e,t)=>new dn(e).lighten(t).toHexString(),Nk=e=>{const t=Wi(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]}},zk=(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:ka(n,12),colorBgContainer:ka(n,8),colorBgLayout:ka(n,0),colorBgSpotlight:ka(n,26),colorBgBlur:to(r,.04),colorBorder:ka(n,26),colorBorderSecondary:ka(n,19)}},jk=(e,t)=>{const n=Object.keys(Vp).map(l=>{const s=Wi(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((d,f,m)=>(d[`${l}-${m+1}`]=s[m],d[`${l}${m+1}`]=s[m],d),{})}).reduce((l,s)=>(l=Object.assign(Object.assign({},l),s),l),{}),r=t??_S(e),i=MS(e,{generateColorPalettes:Nk,generateNeutralColorPalettes:zk});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),i),{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})},kk={defaultSeed:Zc.token,darkAlgorithm:jk};var Lk={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"},Ak=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:Lk}))},Dk=u.forwardRef(Ak),Bk={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"},Fk=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:Bk}))},Hk=u.forwardRef(Fk);const Vk=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:l}=r;return{marginBottom:i,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Wk=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
+ `]=Vk(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Uk=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},HS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Gk=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:Qc[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}}),Kk=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"}}}},qk=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Xk=()=>({"\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"}}),Qk=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"}},Wk(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}}}),Gk(e)),Uk(e)),{[`
291
+ ${t}-expand,
292
+ ${t}-collapse,
293
+ ${t}-edit,
294
+ ${t}-copy
295
+ `]:Object.assign(Object.assign({},HS(e)),{marginInlineStart:e.marginXXS})}),Kk(e)),qk(e)),Xk()),{"&-rtl":{direction:"rtl"}})}},Yk=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),uC=Rn("Typography",Qk,Yk),Zk=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:s,autoSize:d=!0,value:f,onSave:m,onCancel:v,onEnd:g,component:h,enterIcon:b=u.createElement(Hk,null)}=e,C=u.useRef(null),x=u.useRef(!1),S=u.useRef(null),[E,$]=u.useState(f);u.useEffect(()=>{$(f)},[f]),u.useEffect(()=>{var B;if(!((B=C.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:K}=C.current.resizableTextArea;K.focus();const{length:V}=K.value;K.setSelectionRange(V,V)}},[]);const O=({target:B})=>{$(B.value.replace(/[\n\r]/g,""))},P=()=>{x.current=!0},R=()=>{x.current=!1},I=({keyCode:B})=>{x.current||(S.current=B)},T=()=>{m(E.trim())},_=({keyCode:B,ctrlKey:K,altKey:V,metaKey:U,shiftKey:D})=>{S.current!==B||x.current||K||V||U||D||(B===qe.ENTER?(T(),g==null||g()):B===qe.ESC&&v())},M=()=>{T()},[z,L,j]=uC(t),A=se(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,L,j);return z(u.createElement("div",{className:A,style:i},u.createElement(bj,{ref:C,maxLength:s,value:E,onChange:O,onKeyDown:I,onKeyUp:_,onCompositionStart:P,onCompositionEnd:R,onBlur:M,"aria-label":n,rows:1,autoSize:d}),b!==null?Io(b,{className:`${t}-edit-content-confirm`}):null))};var cm,Ib;function Jk(){return Ib||(Ib=1,cm=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(i){e.addRange(i)}),t&&t.focus()}}),cm}var um,Pb;function eL(){if(Pb)return um;Pb=1;var e=Jk(),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 i(l,s){var d,f,m,v,g,h,b=!1;s||(s={}),d=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(x){if(x.stopPropagation(),s.format)if(x.preventDefault(),typeof x.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[s.format]||t.default;window.clipboardData.setData(S,l)}else x.clipboardData.clearData(),x.clipboardData.setData(s.format,l);s.onCopy&&(x.preventDefault(),s.onCopy(x.clipboardData))}),document.body.appendChild(h),v.selectNodeContents(h),g.addRange(v);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");b=!0}catch(x){d&&console.error("unable to copy using execCommand: ",x),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(S){d&&console.error("unable to copy using clipboardData: ",S),d&&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 um=i,um}var tL=eL();const nL=cs(tL);var rL=function(e,t,n,r){function i(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function d(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):i(v.value).then(d,f)}m((r=r.apply(e,t||[])).next())})};const oL=({copyConfig:e,children:t})=>{const[n,r]=u.useState(!1),[i,l]=u.useState(!1),s=u.useRef(null),d=()=>{s.current&&clearTimeout(s.current)},f={};e.format&&(f.format=e.format),u.useEffect(()=>d,[]);const m=Kn(v=>rL(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;nL(h||vk(t,!0).join("")||"",f),l(!1),r(!0),d(),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:i,onClick:m}};function dm(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const iL=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},aL=(e,t,n)=>u.useMemo(()=>e===!0?{title:t??n}:u.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var lL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const dC=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:s,children:d,direction:f,style:m}=e,v=lL(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,className:b,style:C}=Vr("typography"),x=f??h,S=s?Wo(t,s):t,E=g("typography",n),[$,O,P]=uC(E),R=se(E,b,{[`${E}-rtl`]:x==="rtl"},i,l,O,P),I=Object.assign(Object.assign({},C),m);return $(u.createElement(r,Object.assign({className:R,style:I,ref:S},v),d))});var sL={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"},cL=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:sL}))},fC=u.forwardRef(cL);function Tb(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function fm(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uL(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 Sv=e=>["string","number"].includes(typeof e),dL=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:l,tabIndex:s,onCopy:d,loading:f})=>{const m=Tb(i),v=Tb(l),{copied:g,copy:h}=n??{},b=t?g:h,C=fm(m[t?1:0],b),x=typeof C=="string"?C:b;return u.createElement(Du,{title:C},u.createElement("button",{type:"button",className:se(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":x,tabIndex:s},t?fm(v[1],u.createElement(dx,null),!0):fm(v[0],f?u.createElement(Eu,null):u.createElement(fC,null),!0)))},Mc=u.forwardRef(({style:e,children:t},n)=>{const r=u.useRef(null);return u.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),u.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)}),fL=e=>e.reduce((t,n)=>t+(Sv(n)?String(n).length:1),0);function Mb(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const l=e[i],d=Sv(l)?String(l).length:1,f=n+d;if(f>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=f}return e}const mm=0,pm=1,vm=2,gm=3,_b=4,_c={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function mL(e){const{enableMeasure:t,width:n,text:r,children:i,rows:l,expanded:s,miscDeps:d,onEllipsis:f}=e,m=u.useMemo(()=>_r(r),[r]),v=u.useMemo(()=>fL(m),[r]),g=u.useMemo(()=>i(m,!1),[r]),[h,b]=u.useState(null),C=u.useRef(null),x=u.useRef(null),S=u.useRef(null),E=u.useRef(null),$=u.useRef(null),[O,P]=u.useState(!1),[R,I]=u.useState(mm),[T,_]=u.useState(0),[M,z]=u.useState(null);tn(()=>{I(t&&n&&v?pm:mm)},[n,r,l,t,m]),tn(()=>{var B,K,V,U;if(R===pm){I(vm);const D=x.current&&getComputedStyle(x.current).whiteSpace;z(D)}else if(R===vm){const D=!!(!((B=S.current)===null||B===void 0)&&B.isExceed());I(D?gm:_b),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);_(F+1),f(D)}},[R]);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=C.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=u.useMemo(()=>{if(!t)return i(m,!1);if(R!==gm||!h||h[0]!==h[1]){const B=i(m,!1);return[_b,mm].includes(R)?B:u.createElement("span",{style:Object.assign(Object.assign({},_c),{WebkitLineClamp:l})},B)}return i(s?m:Mb(m,h[0]),O)},[s,R,h,m].concat(Be(d))),A={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,j,R===vm&&u.createElement(u.Fragment,null,u.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),_c),{WebkitLineClamp:l}),ref:S},g),u.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),_c),{WebkitLineClamp:l-1}),ref:E},g),u.createElement(Mc,{style:Object.assign(Object.assign(Object.assign({},A),_c),{WebkitLineClamp:1}),ref:$},i([],!0))),R===gm&&h&&h[0]!==h[1]&&u.createElement(Mc,{style:Object.assign(Object.assign({},A),{top:400}),ref:C},i(Mb(m,L),!0)),R===pm&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const pL=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:u.createElement(Du,Object.assign({open:t?void 0:!1},r),n);var vL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gL({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:l,italic:s},d){let f=d;function m(v,g){g&&(f=u.createElement(v,{},f))}return m("strong",i),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),f}const hL="...",Nb=["delete","mark","code","underline","strong","keyboard","italic"],qu=u.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:l,type:s,disabled:d,children:f,ellipsis:m,editable:v,copyable:g,component:h,title:b}=e,C=vL(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:S}=u.useContext(Gt),[E]=Ja("Text"),$=u.useRef(null),O=u.useRef(null),P=x("typography",r),R=Hr(C,Nb),[I,T]=dm(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)),M(Pe)},j=iL(_);tn(()=>{var Pe;!_&&j&&((Pe=O.current)===null||Pe===void 0||Pe.focus())},[_]);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]=dm(g),{copied:D,copyLoading:X,onClick:W}=oL({copyConfig:U,children:f}),[k,F]=u.useState(!1),[Y,ne]=u.useState(!1),[Z,ee]=u.useState(!1),[fe,me]=u.useState(!1),[ce,Se]=u.useState(!0),[de,ie]=dm(m,{expandable:!1,symbol:Pe=>Pe?E==null?void 0:E.collapse:E==null?void 0:E.expand}),[he,ge]=tr(ie.defaultExpanded||!1,{value:ie.expanded}),pe=de&&(!he||ie.expandable==="collapsible"),{rows:oe=1}=ie,be=u.useMemo(()=>pe&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||I||V),[pe,ie,I,V]);tn(()=>{de&&!be&&(F(Sy("webkitLineClamp")),ne(Sy("textOverflow")))},[be,de]);const[we,$e]=u.useState(pe),Ae=u.useMemo(()=>be?!1:oe===1?Y:k,[be,Y,k]);tn(()=>{$e(Ae&&pe)},[Ae,pe]);const je=pe&&(we?fe:Z),Ie=pe&&oe===1&&we,Le=pe&&oe>1&&we,Ee=(Pe,Fe)=>{var wt;ge(Fe.expanded),(wt=ie.onExpand)===null||wt===void 0||wt.call(ie,Pe,Fe)},[tt,lt]=u.useState(0),bt=({offsetWidth:Pe})=>{lt(Pe)},st=Pe=>{var Fe;ee(Pe),Z!==Pe&&((Fe=ie.onEllipsis)===null||Fe===void 0||Fe.call(ie,Pe))};u.useEffect(()=>{const Pe=$.current;if(de&&we&&Pe){const Fe=uL(Pe);fe!==Fe&&me(Fe)}},[de,we,f,Le,ce,tt]),u.useEffect(()=>{const Pe=$.current;if(typeof IntersectionObserver>"u"||!Pe||!we||!pe)return;const Fe=new IntersectionObserver(()=>{Se(!!Pe.offsetParent)});return Fe.observe(Pe),()=>{Fe.disconnect()}},[we,pe]);const Ue=aL(ie.tooltip,T.text,f),it=u.useMemo(()=>{if(!(!de||we))return[T.text,f,b,Ue.title].find(Sv)},[de,we,b,Ue.title,je]);if(_)return u.createElement(Zk,{value:(n=T.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:B,onCancel:K,onEnd:T.onEnd,prefixCls:P,className:i,style:l,direction:S,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ve=()=>{const{expandable:Pe,symbol:Fe}=ie;return Pe?u.createElement("button",{type:"button",key:"expand",className:`${P}-${he?"collapse":"expand"}`,onClick:wt=>Ee(wt,{expanded:!he}),"aria-label":he?E.collapse:E==null?void 0:E.expand},typeof Fe=="function"?Fe(he):Fe):null},dt=()=>{if(!I)return;const{icon:Pe,tooltip:Fe,tabIndex:wt}=T,mt=_r(Fe)[0]||(E==null?void 0:E.edit),Bt=typeof mt=="string"?mt:"";return z.includes("icon")?u.createElement(Du,{key:"edit",title:Fe===!1?"":mt},u.createElement("button",{type:"button",ref:O,className:`${P}-edit`,onClick:A,"aria-label":Bt,tabIndex:wt},Pe||u.createElement(Dk,{role:"button"}))):null},Xe=()=>V?u.createElement(dL,Object.assign({key:"copy"},U,{prefixCls:P,copied:D,locale:E,onCopy:W,loading:X,iconOnly:f==null})):null,Me=Pe=>[Pe&&Ve(),dt(),Xe()],Ye=Pe=>[Pe&&!he&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hL),ie.suffix,Me(Pe)];return u.createElement(ro,{onResize:bt,disabled:!pe},Pe=>u.createElement(pL,{tooltipProps:Ue,enableEllipsis:pe,isEllipsis:je},u.createElement(dC,Object.assign({className:se({[`${P}-${s}`]:s,[`${P}-disabled`]:d,[`${P}-ellipsis`]:de,[`${P}-ellipsis-single-line`]:Ie,[`${P}-ellipsis-multiple-line`]:Le},i),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Le?oe:void 0}),component:h,ref:Wo(Pe,$,t),direction:S,onClick:z.includes("text")?A:void 0,"aria-label":it==null?void 0:it.toString(),title:b},R),u.createElement(mL,{enableMeasure:pe&&!we,text:f,rows:oe,width:tt,onEllipsis:st,expanded:he,miscDeps:[D,he,X,I,V,E].concat(Be(Nb.map(Fe=>e[Fe])))},(Fe,wt)=>gL(e,u.createElement(u.Fragment,null,Fe.length>0&&wt&&!he&&it?u.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,Ye(wt)))))))});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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bL=u.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:l}=e,s=yL(e,["ellipsis","rel","children","navigate"]),d=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return u.createElement(qu,Object.assign({},d,{ref:t,ellipsis:!!n,component:"a"}),i)});var SL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xL=u.forwardRef((e,t)=>{const{children:n}=e,r=SL(e,["children"]);return u.createElement(qu,Object.assign({ref:t},r,{component:"div"}),n)});var CL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wL=(e,t)=>{const{ellipsis:n,children:r}=e,i=CL(e,["ellipsis","children"]),l=u.useMemo(()=>n&&typeof n=="object"?Hr(n,["expandable","rows"]):n,[n]);return u.createElement(qu,Object.assign({ref:t},i,{ellipsis:l,component:"span"}),r)},$L=u.forwardRef(wL);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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OL=[1,2,3,4,5],RL=u.forwardRef((e,t)=>{const{level:n=1,children:r}=e,i=EL(e,["level","children"]),l=OL.includes(n)?`h${n}`:"h1";return u.createElement(qu,Object.assign({ref:t},i,{component:l}),r)}),Xo=dC;Xo.Text=$L;Xo.Link=bL;Xo.Title=RL;Xo.Paragraph=xL;var IL={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"},PL=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:IL}))},TL=u.forwardRef(PL),ML={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"},_L=function(t,n){return u.createElement(In,ke({},t,{ref:n,icon:ML}))},NL=u.forwardRef(_L);const{Text:zL}=Xo;class jL 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 i;if(r>=60){const l=Math.floor(r/60),s=r%60;i=`${l}分${String(s).padStart(2,"0")}秒`}else i=`${r}秒`;this.setState({countdownText:i}),this._rafId=requestAnimationFrame(this.updateCountdown)}render(){const{requestCount:t,viewMode:n,cacheType:r,onToggleViewMode:i}=this.props,{countdownText:l}=this.state;return ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%"},children:[ye.jsxs(as,{size:"middle",children:[ye.jsx(zL,{strong:!0,style:{color:"#fff",fontSize:18},children:"Claude Code Viewer"}),ye.jsxs(Vo,{color:"green",style:{borderRadius:12},children:[ye.jsx(Cx,{status:"processing",color:"green"}),ye.jsx("span",{style:{marginLeft:4},children:"实时监控中"})]})]}),ye.jsxs(as,{size:"middle",children:[l&&ye.jsxs(Vo,{color:l==="已失效"?"red":"green",children:["MainAgent缓存",r?`(${r})`:"","失效倒计时:",ye.jsx("strong",{style:{fontVariantNumeric:"tabular-nums"},children:l})]}),ye.jsxs(Vo,{children:["总请求数: ",ye.jsx("strong",{style:{color:"#fff"},children:t})]}),ye.jsx(rs,{size:"small",icon:n==="raw"?ye.jsx(NL,{}):ye.jsx(Zx,{}),onClick:i,children:n==="raw"?"对话模式":"原文模式"})]})]})}}const{Text:hm}=Xo;class kL extends J.Component{render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?ye.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ye.jsx(ho,{description:"等待请求..."})}):ye.jsx("div",{style:{overflow:"auto",height:"100%"},children:ye.jsx(Ep,{dataSource:t,size:"small",split:!1,renderItem:(i,l)=>{const s=new Date(i.timestamp).toLocaleTimeString("zh-CN");let d=i.url;try{const g=new URL(i.url);d=g.pathname+g.search}catch{}const f=l===n,m=i.response&&i.response.status<400,v=i.response&&i.response.status>=400;return ye.jsx(Ep.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:ye.jsxs("div",{style:{width:"100%",minWidth:0},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[ye.jsx(Vo,{color:i.method==="POST"?"blue":"green",style:{margin:0,fontSize:11},children:i.method}),i.mainAgent?ye.jsx(Vo,{color:"orange",style:{margin:0,fontSize:11},children:"MainAgent"}):ye.jsx(Vo,{style:{margin:0,fontSize:11},children:"SubAgent"}),ye.jsx(hm,{type:"secondary",style:{fontSize:11,marginLeft:"auto"},children:s})]}),ye.jsx("div",{style:{fontSize:12,color:"#d1d5db",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:i.url,children:d}),(i.duration||i.response)&&ye.jsxs("div",{style:{display:"flex",gap:8,marginTop:4,fontSize:11},children:[i.duration&&ye.jsxs(hm,{type:"secondary",children:["⏱️ ",i.duration,"ms"]}),i.response&&ye.jsxs(hm,{style:{color:m?"#10b981":v?"#ef4444":"#9ca3af"},children:["HTTP ",i.response.status]})]})]})})}})})}}const LL=e=>typeof e=="boolean"||e instanceof Boolean,AL=e=>typeof e=="number"||e instanceof Number,DL=e=>typeof e=="bigint"||e instanceof BigInt,mC=e=>!!e&&e instanceof Date,BL=e=>typeof e=="string"||e instanceof String,FL=e=>Array.isArray(e),pC=e=>typeof e=="object"&&e!==null,vC=e=>!!e&&e instanceof Object&&typeof e=="function";function fu(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function HL(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function gC(e){let{field:t,value:n,data:r,lastElement:i,openBracket:l,closeBracket:s,level:d,style:f,shouldExpandNode:m,clickToExpandNode:v,outerRef:g,beforeExpandChange:h}=e;const b=u.useRef(!1),[C,x]=u.useState(()=>m(d,n,t)),S=u.useRef(null);u.useEffect(()=>{b.current?x(m(d,n,t)):b.current=!0},[m]);const E=u.useId();if(r.length===0)return VL({field:t,openBracket:l,closeBracket:s,lastElement:i,style:f});const $=C?f.collapseIcon:f.expandIcon,O=C?f.ariaLables.collapseJson:f.ariaLables.expandJson,P=d+1,R=r.length-1,I=M=>{C!==M&&(!h||h({level:d,value:n,field:t,newExpandValue:M}))&&x(M)},T=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),I(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const z=M.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()}},_=()=>{var M;I(!C);const z=S.current;if(!z)return;const L=(M=g.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),z.tabIndex=0,z.focus()};return u.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":C,"aria-selected":void 0},u.createElement("span",{className:$,onClick:_,onKeyDown:T,role:"button","aria-label":O,"aria-expanded":C,"aria-controls":C?E:void 0,ref:S,tabIndex:d===0?0:-1}),(t||t==="")&&(v?u.createElement("span",{className:f.clickableLabel,onClick:_,onKeyDown:T},fu(t,f.quotesForFieldNames),":"):u.createElement("span",{className:f.label},fu(t,f.quotesForFieldNames),":")),u.createElement("span",{className:f.punctuation},l),C?u.createElement("ul",{id:E,role:"group",className:f.childFieldsContainer},r.map((M,z)=>u.createElement(Op,{key:M[0]||z,field:M[0],value:M[1],style:f,lastElement:z===R,level:P,shouldExpandNode:m,clickToExpandNode:v,beforeExpandChange:h,outerRef:g}))):u.createElement("span",{className:f.collapsedContent,onClick:_,onKeyDown:T}),u.createElement("span",{className:f.punctuation},s),!i&&u.createElement("span",{className:f.punctuation},","))}function VL(e){let{field:t,openBracket:n,closeBracket:r,lastElement:i,style:l}=e;return u.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&u.createElement("span",{className:l.label},fu(t,l.quotesForFieldNames),":"),u.createElement("span",{className:l.punctuation},n),u.createElement("span",{className:l.punctuation},r),!i&&u.createElement("span",{className:l.punctuation},","))}function WL(e){let{field:t,value:n,style:r,lastElement:i,shouldExpandNode:l,clickToExpandNode:s,level:d,outerRef:f,beforeExpandChange:m}=e;return gC({field:t,value:n,lastElement:i||!1,level:d,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:s,data:Object.keys(n).map(v=>[v,n[v]]),outerRef:f,beforeExpandChange:m})}function UL(e){let{field:t,value:n,style:r,lastElement:i,level:l,shouldExpandNode:s,clickToExpandNode:d,outerRef:f,beforeExpandChange:m}=e;return gC({field:t,value:n,lastElement:i||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:d,data:n.map(v=>[void 0,v]),outerRef:f,beforeExpandChange:m})}function GL(e){let{field:t,value:n,style:r,lastElement:i}=e,l,s=r.otherValue;return n===null?(l="null",s=r.nullValue):n===void 0?(l="undefined",s=r.undefinedValue):BL(n)?(l=HL(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):LL(n)?(l=n?"true":"false",s=r.booleanValue):AL(n)?(l=n.toString(),s=r.numberValue):DL(n)?(l=`${n.toString()}n`,s=r.numberValue):mC(n)?l=n.toISOString():vC(n)?l="function() { }":l=n.toString(),u.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&u.createElement("span",{className:r.label},fu(t,r.quotesForFieldNames),":"),u.createElement("span",{className:s},l),!i&&u.createElement("span",{className:r.punctuation},","))}function Op(e){const t=e.value;return FL(t)?u.createElement(UL,Object.assign({},e)):pC(t)&&!mC(t)&&!vC(t)?u.createElement(WL,Object.assign({},e)):u.createElement(GL,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 hC={collapseJson:"collapse JSON",expandJson:"expand JSON"},ym={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:hC,stringifyStringValues:!1},KL={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:hC,stringifyStringValues:!1},qL=()=>!0,XL=e=>{let{data:t,style:n=ym,shouldExpandNode:r=qL,clickToExpandNode:i=!1,beforeExpandChange:l,compactTopLevel:s,...d}=e;const f=u.useRef(null);return u.createElement("div",Object.assign({"aria-label":"JSON view"},d,{className:n.container,ref:f,role:"tree"}),s&&pC(t)?Object.entries(t).map(m=>{let[v,g]=m;return u.createElement(Op,{key:v,field:v,value:g,style:{...ym,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:i,beforeExpandChange:l,outerRef:f})}):u.createElement(Op,{value:t,style:{...ym,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:i,outerRef:f,beforeExpandChange:l}))},QL={...KL,container:"rjv-container"};class YL extends J.Component{render(){const{data:t,defaultExpand:n}=this.props;if(t==null)return null;const r=n==="all"?()=>!0:n==="root"?i=>i<2:i=>i<1;return ye.jsx("div",{style:{background:"#0d1117",borderRadius:6,border:"1px solid #2a2a2a",padding:"12px",fontSize:13,fontFamily:"monospace",overflow:"auto"},children:ye.jsx(XL,{data:t,shouldExpandNode:r,style:QL})})}}const{Text:Bo,Paragraph:ZL}=Xo;class JL extends J.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"}}}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 i=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(i).then(()=>sC.success("复制成功"))}renderHeaders(t){return!t||Object.keys(t).length===0?ye.jsx(Bo,{type:"secondary",children:"无 Headers"}):ye.jsx("div",{style:{fontSize:12},children:Object.entries(t).map(([n,r])=>ye.jsxs("div",{style:{display:"flex",padding:"4px 0",borderBottom:"1px solid #1f1f1f"},children:[ye.jsx(Bo,{code:!0,style:{minWidth:200,flexShrink:0},children:n}),ye.jsx(Bo,{type:"secondary",style:{wordBreak:"break-all",marginLeft:8},children:String(r)})]},n))})}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return ye.jsx(Bo,{type:"secondary",children:"无 Body"});if(typeof t=="string"&&t.includes("Streaming Response"))return ye.jsx("div",{style:{padding:20,background:"#1a1a1a",borderRadius:6,border:"1px solid #2a2a2a"},children:ye.jsx(Bo,{type:"secondary",children:"⚡ 流式响应 — 此请求使用了流式传输(SSE),响应内容无法完整捕获。"})});const i=r[n]==="json";return ye.jsxs("div",{children:[ye.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[ye.jsx(rs,{size:"small",icon:i?ye.jsx(Zx,{}):ye.jsx(TL,{}),onClick:()=>this.toggleBodyViewMode(n),children:i?"Text":"JSON"}),ye.jsx(rs,{size:"small",icon:ye.jsx(fC,{}),onClick:()=>this.copyBody(n),children:"复制"})]}),i?ye.jsx(YL,{data:t,defaultExpand:n==="response"?"all":"root"}):ye.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 ye.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ye.jsx(ho,{description:"选择一个请求查看详情"})});const i=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400,s=[{key:"request",label:"Request",children:ye.jsxs("div",{style:{padding:"12px 0"},children:[ye.jsx(iu,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.headers)}],style:{marginBottom:16}}),ye.jsxs("div",{children:[ye.jsx(Bo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:ye.jsx("div",{style:{padding:"12px 0"},children:t.response?ye.jsxs(ye.Fragment,{children:[ye.jsx(iu,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.response.headers)}],style:{marginBottom:16}}),ye.jsxs("div",{children:[ye.jsx(Bo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.response.body,"response")]})]}):ye.jsx(ho,{description:"响应数据未捕获"})})}];return ye.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 16px"},children:[ye.jsxs("div",{style:{padding:"12px 0",borderBottom:"1px solid #1f1f1f"},children:[ye.jsx(ZL,{style:{color:"#d1d5db",fontSize:13,marginBottom:8,wordBreak:"break-all"},ellipsis:{rows:2,expandable:!0},children:t.url}),ye.jsxs(as,{size:"small",wrap:!0,children:[ye.jsx(Vo,{color:t.method==="POST"?"blue":"green",children:t.method}),ye.jsxs(Bo,{type:"secondary",style:{fontSize:12},children:["🕐 ",i]}),t.duration&&ye.jsxs(Bo,{type:"secondary",style:{fontSize:12},children:["⏱️ ",t.duration,"ms"]}),t.response&&ye.jsxs(Vo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),ye.jsx(Xx,{activeKey:n,onChange:r,items:s,size:"small"})]})}}function xv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zi=xv();function yC(e){Zi=e}var Di={exec:()=>null};function Zt(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Cr.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var eA=(()=>{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)}}>`)},tA=/^(?:[ \t]*(?:\n|$))+/,nA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ss=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,oA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Cv=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,bC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,SC=Zt(bC).replace(/bull/g,Cv).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(),iA=Zt(bC).replace(/bull/g,Cv).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(),wv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,aA=/^[^\n]+/,$v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lA=Zt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sA=Zt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Cv).getRegex(),Xu="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",Ev=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cA=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",Ev).replace("tag",Xu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xC=Zt(wv).replace("hr",Ss).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",Xu).getRegex(),uA=Zt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xC).getRegex(),Ov={blockquote:uA,code:nA,def:lA,fences:rA,heading:oA,hr:Ss,html:cA,lheading:SC,list:sA,newline:tA,paragraph:xC,table:Di,text:aA},zb=Zt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ss).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",Xu).getRegex(),dA={...Ov,lheading:iA,table:zb,paragraph:Zt(wv).replace("hr",Ss).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zb).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",Xu).getRegex()},fA={...Ov,html:Zt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ev).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:Di,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Zt(wv).replace("hr",Ss).replace("heading",` *#{1,6} *[^
296
+ ]`).replace("lheading",SC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,pA=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,CC=/^( {2,}|\\)\n(?!\s*$)/,vA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Qu=/[\p{P}\p{S}]/u,Rv=/[\s\p{P}\p{S}]/u,wC=/[^\s\p{P}\p{S}]/u,gA=Zt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rv).getRegex(),$C=/(?!~)[\p{P}\p{S}]/u,hA=/(?!~)[\s\p{P}\p{S}]/u,yA=/(?:[^\s\p{P}\p{S}]|~)/u,EC=/(?![*_])[\p{P}\p{S}]/u,bA=/(?![*_])[\s\p{P}\p{S}]/u,SA=/(?:[^\s\p{P}\p{S}]|[*_])/u,xA=Zt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eA?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),OC=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,CA=Zt(OC,"u").replace(/punct/g,Qu).getRegex(),wA=Zt(OC,"u").replace(/punct/g,$C).getRegex(),RC="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$A=Zt(RC,"gu").replace(/notPunctSpace/g,wC).replace(/punctSpace/g,Rv).replace(/punct/g,Qu).getRegex(),EA=Zt(RC,"gu").replace(/notPunctSpace/g,yA).replace(/punctSpace/g,hA).replace(/punct/g,$C).getRegex(),OA=Zt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wC).replace(/punctSpace/g,Rv).replace(/punct/g,Qu).getRegex(),RA=Zt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,EC).getRegex(),IA="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",PA=Zt(IA,"gu").replace(/notPunctSpace/g,SA).replace(/punctSpace/g,bA).replace(/punct/g,EC).getRegex(),TA=Zt(/\\(punct)/,"gu").replace(/punct/g,Qu).getRegex(),MA=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(),_A=Zt(Ev).replace("(?:-->|$)","-->").getRegex(),NA=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",_A).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,zA=Zt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",mu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),IC=Zt(/^!?\[(label)\]\[(ref)\]/).replace("label",mu).replace("ref",$v).getRegex(),PC=Zt(/^!?\[(ref)\](?:\[\])?/).replace("ref",$v).getRegex(),jA=Zt("reflink|nolink(?!\\()","g").replace("reflink",IC).replace("nolink",PC).getRegex(),jb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Iv={_backpedal:Di,anyPunctuation:TA,autolink:MA,blockSkip:xA,br:CC,code:pA,del:Di,delLDelim:Di,delRDelim:Di,emStrongLDelim:CA,emStrongRDelimAst:$A,emStrongRDelimUnd:OA,escape:mA,link:zA,nolink:PC,punctuation:gA,reflink:IC,reflinkSearch:jA,tag:NA,text:vA,url:Di},kA={...Iv,link:Zt(/^!?\[(label)\]\((.*?)\)/).replace("label",mu).getRegex(),reflink:Zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mu).getRegex()},Rp={...Iv,emStrongRDelimAst:EA,emStrongLDelim:wA,delLDelim:RA,delRDelim:PA,url:Zt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",jb).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",jb).getRegex()},LA={...Rp,br:Zt(CC).replace("{2,}","*").getRegex(),text:Zt(Rp.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nc={normal:Ov,gfm:dA,pedantic:fA},jl={normal:Iv,gfm:Rp,breaks:LA,pedantic:kA},AA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kb=e=>AA[e];function Fo(e,t){if(t){if(Cr.escapeTest.test(e))return e.replace(Cr.escapeReplace,kb)}else if(Cr.escapeTestNoEncode.test(e))return e.replace(Cr.escapeReplaceNoEncode,kb);return e}function Lb(e){try{e=encodeURI(e).replace(Cr.percentDecode,"%")}catch{return null}return e}function Ab(e,t){var l;let n=e.replace(Cr.findPipe,(s,d,f)=>{let m=!1,v=d;for(;--v>=0&&f[v]==="\\";)m=!m;return m?"|":" |"}),r=n.split(Cr.splitPipe),i=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(;i<r.length;i++)r[i]=r[i].trim().replace(Cr.slashPipe,"|");return r}function kl(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function DA(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 BA(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let l=4-n%4;r+=" ".repeat(l),n+=l}else r+=i,n++;return r}function Db(e,t,n,r,i){let l=t.href,s=t.title||null,d=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:d,tokens:r.inlineTokens(d)};return r.state.inLink=!1,f}function FA(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
297
+ `).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[d]=s;return d.length>=i.length?l.slice(i.length):l}).join(`
298
+ `)}var pu=class{constructor(e){an(this,"options");an(this,"rules");an(this,"lexer");this.options=e||Zi}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=FA(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="",i="",l=[];for(;n.length>0;){let s=!1,d=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))d.push(n[f]),s=!0;else if(!s)d.push(n[f]);else break;n=n.slice(f);let m=d.join(`
303
+ `),v=m.replace(this.rules.other.blockquoteSetextReplace,`
304
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
305
+ ${m}`:m,i=i?`${i}
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,C=b.raw+`
307
+ `+n.join(`
308
+ `),x=this.blockquote(C);l[l.length-1]=x,r=r.substring(0,r.length-b.raw.length)+x.raw,i=i.substring(0,i.length-b.text.length)+x.text;break}else if((h==null?void 0:h.type)==="list"){let b=h,C=b.raw+`
309
+ `+n.join(`
310
+ `),x=this.list(C);l[l.length-1]=x,r=r.substring(0,r.length-h.raw.length)+x.raw,i=i.substring(0,i.length-b.raw.length)+x.raw,n=C.substring(l.at(-1).raw.length).split(`
311
+ `);continue}}return{type:"blockquote",raw:r,tokens:l,text:i}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),l=i.length>1,s={type:"list",raw:"",ordered:l,start:l?+i.slice(0,-1):"",loose:!1,items:[]};i=l?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=l?i:"[*+-]");let d=this.rules.other.listItemRegex(i),f=!1;for(;e;){let v=!1,g="",h="";if(!(t=d.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let b=BA(t[2].split(`
312
+ `,1)[0],t[1].length),C=e.split(`
313
+ `,1)[0],x=!b.trim(),S=0;if(this.options.pedantic?(S=2,h=b.trimStart()):x?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),x&&this.rules.other.blankLine.test(C)&&(g+=C+`
314
+ `,e=e.substring(C.length+1),v=!0),!v){let E=this.rules.other.nextBulletRegex(S),$=this.rules.other.hrRegex(S),O=this.rules.other.fencesBeginRegex(S),P=this.rules.other.headingBeginRegex(S),R=this.rules.other.htmlBeginRegex(S),I=this.rules.other.blockquoteBeginRegex(S);for(;e;){let T=e.split(`
315
+ `,1)[0],_;if(C=T,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting," "),_=C):_=C.replace(this.rules.other.tabCharGlobal," "),O.test(C)||P.test(C)||R.test(C)||I.test(C)||E.test(C)||$.test(C))break;if(_.search(this.rules.other.nonSpaceChar)>=S||!C.trim())h+=`
316
+ `+_.slice(S);else{if(x||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(b)||P.test(b)||$.test(b))break;h+=`
317
+ `+C}x=!C.trim(),g+=T+`
318
+ `,e=e.substring(T.length+1),b=_.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"):"",i=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:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Ab(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(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 d of r)this.rules.other.tableAlignRight.test(d)?l.align.push("right"):this.rules.other.tableAlignCenter.test(d)?l.align.push("center"):this.rules.other.tableAlignLeft.test(d)?l.align.push("left"):l.align.push(null);for(let d=0;d<n.length;d++)l.header.push({text:n[d],tokens:this.lexer.inline(n[d]),header:!0,align:l.align[d]});for(let d of i)l.rows.push(Ab(d,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=DA(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],i="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],i=l[3])}else i=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)),Db(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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," "),i=t[r.toLowerCase()];if(!i){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Db(n,i,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 i=[...r[0]].length-1,l,s,d=i,f=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+i);(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]){d+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){f+=s;continue}if(d-=s,d>0)continue;s=Math.min(s,s+d+f);let v=[...r[0]][0].length,g=e.slice(0,i+r.index+v+s);if(Math.min(i,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),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(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 i=[...r[0]].length-1,l,s,d=i,f=this.rules.inline.delRDelim;for(f.lastIndex=0,t=t.slice(-1*e.length+i);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==i))continue;if(r[3]||r[4]){d+=s;continue}if(d-=s,d>0)continue;s=Math.min(s,s+d);let m=[...r[0]][0].length,v=e.slice(0,i+r.index+m+s),g=v.slice(i,-i);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,i;if(t[2]==="@")r=t[0],i="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."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,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 Ip{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||Zi,this.options.tokenizer=this.options.tokenizer||new pu,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:Nc.normal,inline:jl.normal};this.options.pedantic?(n.block=Nc.pedantic,n.inline=jl.pedantic):this.options.gfm&&(n.block=Nc.gfm,this.options.breaks?n.inline=jl.breaks:n.inline=jl.gfm),this.tokenizer.rules=n}static get rules(){return{block:Nc,inline:jl}}static lex(t,n){return new Ip(n).lex(t)}static lexInline(t,n){return new Ip(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 i,l,s;for(this.options.pedantic&&(t=t.replace(Cr.tabCharGlobal," ").replace(Cr.spaceLine,""));t;){let d;if((l=(i=this.options.extensions)==null?void 0:i.block)!=null&&l.some(m=>(d=m.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.space(t)){t=t.substring(d.raw.length);let m=n.at(-1);d.raw.length===1&&m!==void 0?m.raw+=`
322
+ `:n.push(d);continue}if(d=this.tokenizer.code(t)){t=t.substring(d.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
+ `)+d.raw,m.text+=`
325
+ `+d.text,this.inlineQueue.at(-1).src=m.text):n.push(d);continue}if(d=this.tokenizer.fences(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.heading(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.hr(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.blockquote(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.list(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.html(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.def(t)){t=t.substring(d.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
+ `)+d.raw,m.text+=`
328
+ `+d.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[d.tag]||(this.tokens.links[d.tag]={href:d.href,title:d.title},n.push(d));continue}if(d=this.tokenizer.table(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.lheading(t)){t=t.substring(d.raw.length),n.push(d);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&&(d=this.tokenizer.paragraph(f))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
329
+ `)?"":`
330
+ `)+d.raw,m.text+=`
331
+ `+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(d),r=f.length!==t.length,t=t.substring(d.raw.length);continue}if(d=this.tokenizer.text(t)){t=t.substring(d.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
332
+ `)?"":`
333
+ `)+d.raw,m.text+=`
334
+ `+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(d);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,i=null;if(this.tokens.links){let b=Object.keys(this.tokens.links);if(b.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)b.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=i[2]?i[2].length:0,r=r.slice(0,i.index+l)+"["+"a".repeat(i[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,d="";for(;t;){s||(d=""),s=!1;let b;if((g=(v=this.options.extensions)==null?void 0:v.inline)!=null&&g.some(x=>(b=x.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 x=n.at(-1);b.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=b.raw,x.text+=b.text):n.push(b);continue}if(b=this.tokenizer.emStrong(t,r,d)){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,d)){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 C=t;if((h=this.options.extensions)!=null&&h.startInline){let x=1/0,S=t.slice(1),E;this.options.extensions.startInline.forEach($=>{E=$.call({lexer:this},S),typeof E=="number"&&E>=0&&(x=Math.min(x,E))}),x<1/0&&x>=0&&(C=t.substring(0,x+1))}if(b=this.tokenizer.inlineText(C)){t=t.substring(b.raw.length),b.raw.slice(-1)!=="_"&&(d=b.raw.slice(-1)),s=!0;let x=n.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=b.raw,x.text+=b.text):n.push(b);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return n}},vu=class{constructor(e){an(this,"options");an(this,"parser");this.options=e||Zi}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(Cr.notSpaceStart))==null?void 0:l[0],i=e.replace(Cr.endingNewline,"")+`
335
+ `;return r?'<pre><code class="language-'+Fo(r)+'">'+(n?i:Fo(i,!0))+`</code></pre>
336
+ `:"<pre><code>"+(n?i:Fo(i,!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 d=e.items[s];r+=this.listitem(d)}let i=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+i+l+`>
342
+ `+r+"</"+i+`>
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 i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let l=e.rows[i];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>${Fo(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),i=Lb(e);if(i===null)return r;e=i;let l='<a href="'+e+'"';return t&&(l+=' title="'+Fo(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Lb(e);if(i===null)return Fo(n);e=i;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Fo(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Fo(e.text)}},Pv=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 Pp{constructor(t){an(this,"options");an(this,"renderer");an(this,"textRenderer");this.options=t||Zi,this.options.renderer=this.options.renderer||new vu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Pv}static parse(t,n){return new Pp(n).parse(t)}static parseInline(t,n){return new Pp(n).parseInline(t)}parse(t){var r,i;let n="";for(let l=0;l<t.length;l++){let s=t[l];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[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 d=s;switch(d.type){case"space":{n+=this.renderer.space(d);break}case"hr":{n+=this.renderer.hr(d);break}case"heading":{n+=this.renderer.heading(d);break}case"code":{n+=this.renderer.code(d);break}case"table":{n+=this.renderer.table(d);break}case"blockquote":{n+=this.renderer.blockquote(d);break}case"list":{n+=this.renderer.list(d);break}case"checkbox":{n+=this.renderer.checkbox(d);break}case"html":{n+=this.renderer.html(d);break}case"def":{n+=this.renderer.def(d);break}case"paragraph":{n+=this.renderer.paragraph(d);break}case"text":{n+=this.renderer.text(d);break}default:{let f='Token with "'+d.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 i,l;let r="";for(let s=0;s<t.length;s++){let d=t[s];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[d.type]){let m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(d.type)){r+=m||"";continue}}let f=d;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}},zc,Bl=(zc=class{constructor(e){an(this,"options");an(this,"block");this.options=e||Zi}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(zc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),an(zc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),zc),HA=class{constructor(...e){an(this,"defaults",xv());an(this,"options",this.setOptions);an(this,"parse",this.parseMarkdown(!0));an(this,"parseInline",this.parseMarkdown(!1));an(this,"Parser",go);an(this,"Renderer",vu);an(this,"TextRenderer",Pv);an(this,"Lexer",vo);an(this,"Tokenizer",pu);an(this,"Hooks",Bl);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let s=l;for(let d of s.header)n=n.concat(this.walkTokens(d.tokens,t));for(let d of s.rows)for(let f of d)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;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(d=>{let f=s[d].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(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let l=t.renderers[i.name];l?t.renderers[i.name]=function(...s){let d=i.renderer.apply(this,s);return d===!1&&(d=l.apply(this,s)),d}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[i.level];l?l.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new vu(this.defaults);for(let l in n.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,d=n.renderer[s],f=i[s];i[s]=(...m)=>{let v=d.apply(i,m);return v===!1&&(v=f.apply(i,m)),v||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new pu(this.defaults);for(let l in n.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,d=n.tokenizer[s],f=i[s];i[s]=(...m)=>{let v=d.apply(i,m);return v===!1&&(v=f.apply(i,m)),v}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Bl;for(let l in n.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,d=n.hooks[s],f=i[s];Bl.passThroughHooks.has(l)?i[s]=m=>{if(this.defaults.async&&Bl.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await d.call(i,m);return f.call(i,g)})();let v=d.call(i,m);return f.call(i,v)}:i[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await d.apply(i,m);return g===!1&&(g=await f.apply(i,m)),g})();let v=d.apply(i,m);return v===!1&&(v=f.apply(i,m)),v}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(s){let d=[];return d.push(l.call(this,s)),i&&(d=d.concat(i.call(this,s))),d}}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},i={...this.defaults,...r},l=this.onError(!!i.silent,!!i.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(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,d=await(i.hooks?await i.hooks.provideLexer():e?vo.lex:vo.lexInline)(s,i),f=i.hooks?await i.hooks.processAllTokens(d):d;i.walkTokens&&await Promise.all(this.walkTokens(f,i.walkTokens));let m=await(i.hooks?await i.hooks.provideParser():e?go.parse:go.parseInline)(f,i);return i.hooks?await i.hooks.postprocess(m):m})().catch(l);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?vo.lex:vo.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let d=(i.hooks?i.hooks.provideParser():e?go.parse:go.parseInline)(s,i);return i.hooks&&(d=i.hooks.postprocess(d)),d}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>"+Fo(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},qi=new HA;function pn(e,t){return qi.parse(e,t)}pn.options=pn.setOptions=function(e){return qi.setOptions(e),pn.defaults=qi.defaults,yC(pn.defaults),pn};pn.getDefaults=xv;pn.defaults=Zi;pn.use=function(...e){return qi.use(...e),pn.defaults=qi.defaults,yC(pn.defaults),pn};pn.walkTokens=function(e,t){return qi.walkTokens(e,t)};pn.parseInline=qi.parseInline;pn.Parser=go;pn.parser=go.parse;pn.Renderer=vu;pn.TextRenderer=Pv;pn.Lexer=vo;pn.lexer=vo.lex;pn.Tokenizer=pu;pn.Hooks=Bl;pn.parse=pn;pn.options;pn.setOptions;pn.use;pn.walkTokens;pn.parseInline;go.parse;vo.lex;function VA(e){if(!e)return"";try{return pn.parse(e,{breaks:!0})}catch{return WA(e)}}function WA(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function Bb(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function Fb(e,t){return e?e.length>t?e.substring(0,t)+"...":e:""}function UA(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 bm(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 Hb(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 GA=["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 KA(e){if(!e)return{segments:[]};const t=new RegExp("<("+GA.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,i;for(;(i=t.exec(e))!==null;){if(i.index>r){const l=e.slice(r,i.index).trim();l&&n.push({type:"text",content:l})}n.push({type:"system-tag",tag:i[1],content:i[2].trim()}),r=i.index+i[0].length}if(r<e.length){const l=e.slice(r).trim();l&&n.push({type:"text",content:l})}return{segments:n}}function qA(e){const{segments:t}=KA(e);return t.length===0?{segments:[]}:{segments:t}}const{Text:Li}=Xo,Sm={width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},xm={borderRadius:12,padding:"10px 14px",maxWidth:"100%",fontSize:14,lineHeight:1.6,wordBreak:"break-word"};class La extends J.Component{renderSegments(t){return t.map((n,r)=>n.type==="system-tag"?ye.jsx(iu,{ghost:!0,size:"small",items:[{key:"1",label:ye.jsx(Li,{type:"secondary",style:{fontSize:12},children:n.tag}),children:ye.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:n.content})}],style:{margin:"4px 0"}},r):ye.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:VA(n.content)}},r))}renderToolCall(t){let n=t.name;if(t.name==="Task"&&t.input){const i=t.input.subagent_type||"",l=t.input.description||"";n=`Task(${i}${l?": "+l:""})`}const r=t.input?Fb(JSON.stringify(t.input),300):"";return ye.jsxs("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a3e",borderRadius:8,padding:"8px 12px",margin:"6px 0",fontSize:12},children:[ye.jsx(Li,{strong:!0,style:{color:"#a78bfa"},children:n}),r&&ye.jsx("pre",{style:{color:"#9ca3af",fontSize:11,margin:"4px 0 0",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:r})]},t.id)}renderUserMessage(){const{text:t}=this.props;return ye.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ye.jsx("div",{style:{...Sm,background:"#1e40af"},dangerouslySetInnerHTML:{__html:bm("user")}}),ye.jsxs("div",{style:{minWidth:0,flex:1},children:[ye.jsx(Li,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:2},children:"User"}),ye.jsx("div",{style:{...xm,background:"#1e3a5f",color:"#e5e7eb"},children:Bb(t)})]})]})}renderAssistantMessage(){const{content:t}=this.props,n=t.filter(s=>s.type==="thinking"),r=t.filter(s=>s.type==="text"),i=t.filter(s=>s.type==="tool_use");let l=[];return n.forEach((s,d)=>{l.push(ye.jsx(iu,{ghost:!0,size:"small",items:[{key:"1",label:ye.jsx(Li,{type:"secondary",style:{fontSize:12},children:"思考过程"}),children:ye.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:s.thinking||""})}],style:{margin:"4px 0"}},`think-${d}`))}),r.forEach((s,d)=>{if(s.text){const{segments:f}=qA(s.text);l.push(ye.jsx("div",{children:this.renderSegments(f)},`text-${d}`))}}),i.forEach(s=>{l.push(this.renderToolCall(s))}),l.length===0?null:ye.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ye.jsx("div",{style:{...Sm,background:"#065f46"},dangerouslySetInnerHTML:{__html:bm("agent")}}),ye.jsxs("div",{style:{minWidth:0,flex:1},children:[ye.jsx(Li,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:2},children:"MainAgent"}),ye.jsx("div",{style:{...xm,background:"#1a2332",color:"#e5e7eb"},children:l})]})]})}renderSubAgentMessage(){const{label:t,resultText:n}=this.props;return ye.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[ye.jsx("div",{style:{...Sm,background:"#4a1d96"},dangerouslySetInnerHTML:{__html:bm("sub")}}),ye.jsxs("div",{style:{minWidth:0,flex:1},children:[ye.jsx(Li,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:2},children:t}),ye.jsx("div",{style:{...xm,background:"#1a1a2e",color:"#e5e7eb"},children:ye.jsxs("div",{style:{background:"#111",borderRadius:6,padding:"8px 12px",fontSize:12},children:[ye.jsx(Li,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:4},children:"Result"}),ye.jsx("pre",{style:{color:"#d1d5db",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-all",fontSize:12},children:Bb(Fb(n,1e3))})]})})]})]})}render(){const{role:t}=this.props;return t==="user"?this.renderUserMessage():t==="assistant"?this.renderAssistantMessage():t==="sub-agent"?this.renderSubAgentMessage():null}}const{Text:XA}=Xo;class QA 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)}render(){const{requests:t}=this.props;let n=null;for(let s=t.length-1;s>=0;s--)if(t[s].mainAgent===!0){n=t[s];break}if(!n||!n.body||!n.body.messages)return ye.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:ye.jsx(ho,{description:"暂无 mainAgent 对话数据"})});const r=n.body.messages,i={};for(const s of r)if(s.role==="assistant"&&Array.isArray(s.content))for(const d of s.content)d.type==="tool_use"&&(i[d.id]=d);const l=[];for(let s=0;s<r.length;s++){const d=r[s],f=d.content;if(d.role==="user")if(Array.isArray(f)){const m=f.filter(g=>g.type==="tool_result"),v=f.filter(g=>g.type==="text"&&!Hb(g.text));for(const g of m){const h=i[g.tool_use_id];let b="工具返回";if(h)if(h.name==="Task"&&h.input){const x=h.input.subagent_type||"",S=h.input.description||"";b=`SubAgent: ${x}${S?" — "+S:""}`}else b=h.name+" 返回";const C=UA(g);l.push(ye.jsx(La,{role:"sub-agent",label:b,resultText:C},`sub-${s}-${g.tool_use_id}`))}for(let g=0;g<v.length;g++)l.push(ye.jsx(La,{role:"user",text:v[g].text},`user-${s}-${g}`))}else typeof f=="string"&&!Hb(f)&&l.push(ye.jsx(La,{role:"user",text:f},`user-${s}`));else d.role==="assistant"&&(Array.isArray(f)?l.push(ye.jsx(La,{role:"assistant",content:f},`asst-${s}`)):typeof f=="string"&&l.push(ye.jsx(La,{role:"assistant",content:[{type:"text",text:f}]},`asst-${s}`)))}if(n.response&&n.response.body&&n.response.body.content){const s=n.response.body.content;Array.isArray(s)&&(l.push(ye.jsx(J.Fragment,{children:ye.jsx(F3,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:ye.jsx(XA,{type:"secondary",style:{fontSize:11},children:"Response"})})},"resp-divider")),l.push(ye.jsx(La,{role:"assistant",content:s},"resp-asst")))}return ye.jsx("div",{ref:this.containerRef,style:{height:"100%",overflow:"auto",padding:"16px 24px",display:"flex",flexDirection:"column"},children:l})}}class YA 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 ye.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 ZA=`
355
+ .chat-md pre {
356
+ background: #0d1117;
357
+ border: 1px solid #2a2a2a;
358
+ border-radius: 6px;
359
+ padding: 12px;
360
+ overflow-x: auto;
361
+ font-size: 13px;
362
+ line-height: 1.5;
363
+ }
364
+ .chat-md code {
365
+ background: #1a1a2e;
366
+ padding: 2px 6px;
367
+ border-radius: 4px;
368
+ font-size: 13px;
369
+ color: #e5e7eb;
370
+ }
371
+ .chat-md pre code {
372
+ background: none;
373
+ padding: 0;
374
+ }
375
+ .chat-md p { margin: 6px 0; }
376
+ .chat-md ul, .chat-md ol { padding-left: 20px; margin: 6px 0; }
377
+ .chat-md li { margin: 2px 0; }
378
+ .chat-md h1, .chat-md h2, .chat-md h3 { margin: 12px 0 6px 0; color: #fff; }
379
+ .chat-md h1 { font-size: 1.3em; }
380
+ .chat-md h2 { font-size: 1.15em; }
381
+ .chat-md h3 { font-size: 1.05em; }
382
+ .chat-md blockquote {
383
+ border-left: 3px solid #3b82f6;
384
+ margin: 8px 0;
385
+ padding: 4px 12px;
386
+ color: #9ca3af;
387
+ }
388
+ .chat-md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
389
+ .chat-md th, .chat-md td { border: 1px solid #2a2a2a; padding: 6px 10px; }
390
+ .chat-md th { background: #1a1a1a; color: #fff; }
391
+ .chat-md a { color: #60a5fa; }
392
+ .chat-md hr { border: none; border-top: 1px solid #2a2a2a; margin: 12px 0; }
393
+ .chat-md strong { color: #f1f5f9; }
394
+ .chat-md em { color: #cbd5e1; }
395
+ `;class JA 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 i=r.getBoundingClientRect(),l=n-i.left;l>=250&&l<=800&&this.setState({leftPanelWidth:l})});this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:null,cacheType:null,leftPanelWidth:380},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(i=>{var v,g;const l=[...i.requests],s=l.findIndex(h=>h.timestamp===r.timestamp&&h.url===r.url);s>=0?l[s]=r:l.push(r);let d=i.cacheExpireAt,f=i.cacheType;if(r.mainAgent){const h=(g=(v=r.response)==null?void 0:v.body)==null?void 0:g.usage;if(h!=null&&h.cache_creation){const b=h.cache_creation;b.ephemeral_1h_input_tokens>0?(d=Date.now()+3600*1e3,f="1h"):b.ephemeral_5m_input_tokens>0&&(d=Date.now()+300*1e3,f="5m")}}return i.selectedIndex===null&&l.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(h=>h.selectedIndex===null&&h.requests.length>0?{selectedIndex:h.requests.length-1}:null)},200)),{requests:l,cacheExpireAt:d,cacheType:f}})}catch(r){console.error("处理事件消息失败:",r)}}render(){const{requests:n,selectedIndex:r,viewMode:i,currentTab:l,cacheExpireAt:s,cacheType:d,leftPanelWidth:f}=this.state,m=r!==null?n[r]:null;return ye.jsxs(Ci,{theme:{algorithm:kk.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[ye.jsx("style",{children:ZA}),ye.jsxs(bi,{style:{height:"100vh",overflow:"hidden"},children:[ye.jsx(bi.Header,{style:{background:"#111",borderBottom:"1px solid #1f1f1f",padding:"0 24px",height:60,lineHeight:"60px"},children:ye.jsx(jL,{requestCount:n.length,viewMode:i,cacheExpireAt:s,cacheType:d,onToggleViewMode:this.handleToggleViewMode})}),ye.jsx(bi.Content,{style:{flex:1,overflow:"hidden"},children:i==="raw"?ye.jsxs("div",{ref:this.mainContainerRef,style:{display:"flex",height:"100%"},children:[ye.jsxs("div",{style:{width:f,flexShrink:0,borderRight:"1px solid #1f1f1f",display:"flex",flexDirection:"column",background:"#0a0a0a"},children:[ye.jsx("div",{style:{padding:"10px 16px",borderBottom:"1px solid #1f1f1f",fontSize:13,color:"#9ca3af",fontWeight:500},children:"请求列表"}),ye.jsx("div",{style:{flex:1,overflow:"hidden"},children:ye.jsx(kL,{requests:n,selectedIndex:r,onSelect:this.handleSelectRequest})})]}),ye.jsx(YA,{onResize:this.handleResize}),ye.jsx("div",{style:{flex:1,overflow:"hidden",background:"#0d0d0d"},children:ye.jsx(JL,{request:m,currentTab:l,onTabChange:this.handleTabChange})})]}):ye.jsx(QA,{requests:n})})]})]})}}const e6=v$.createRoot(document.getElementById("root"));e6.render(ye.jsx(JA,{}));