cc-viewer 0.1.5 → 0.2.0

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,551 @@
1
+ var nE=Object.defineProperty;var rE=(e,t,n)=>t in e?nE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=>rE(e,typeof t!="symbol"?t+"":t,n);function dC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pm={exports:{}},Xl={},gm={exports:{}},Wt={};/**
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 X0;function oE(){if(X0)return Wt;X0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function h(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function b(z,D,Q){this.props=z,this.context=D,this.refs=C,this.updater=Q||y}b.prototype.isReactComponent={},b.prototype.setState=function(z,D){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,D,"setState")},b.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function $(){}$.prototype=b.prototype;function w(z,D,Q){this.props=z,this.context=D,this.refs=C,this.updater=Q||y}var R=w.prototype=new $;R.constructor=w,S(R,b.prototype),R.isPureReactComponent=!0;var O=Array.isArray,I=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function j(z,D,Q){var ne,ee={},oe=null,fe=null;if(D!=null)for(ne in D.ref!==void 0&&(fe=D.ref),D.key!==void 0&&(oe=""+D.key),D)I.call(D,ne)&&!T.hasOwnProperty(ne)&&(ee[ne]=D[ne]);var me=arguments.length-2;if(me===1)ee.children=Q;else if(1<me){for(var ue=Array(me),Ce=0;Ce<me;Ce++)ue[Ce]=arguments[Ce+2];ee.children=ue}if(z&&z.defaultProps)for(ne in me=z.defaultProps,me)ee[ne]===void 0&&(ee[ne]=me[ne]);return{$$typeof:e,type:z,key:oe,ref:fe,props:ee,_owner:P.current}}function M(z,D){return{$$typeof:e,type:z.type,key:D,ref:z.ref,props:z.props,_owner:z._owner}}function k(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function L(z){var D={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Q){return D[Q]})}var _=/\/+/g;function A(z,D){return typeof z=="object"&&z!==null&&z.key!=null?L(""+z.key):D.toString(36)}function B(z,D,Q,ne,ee){var oe=typeof z;(oe==="undefined"||oe==="boolean")&&(z=null);var fe=!1;if(z===null)fe=!0;else switch(oe){case"string":case"number":fe=!0;break;case"object":switch(z.$$typeof){case e:case t:fe=!0}}if(fe)return fe=z,ee=ee(fe),z=ne===""?"."+A(fe,0):ne,O(ee)?(Q="",z!=null&&(Q=z.replace(_,"$&/")+"/"),B(ee,D,Q,"",function(Ce){return Ce})):ee!=null&&(k(ee)&&(ee=M(ee,Q+(!ee.key||fe&&fe.key===ee.key?"":(""+ee.key).replace(_,"$&/")+"/")+z)),D.push(ee)),1;if(fe=0,ne=ne===""?".":ne+":",O(z))for(var me=0;me<z.length;me++){oe=z[me];var ue=ne+A(oe,me);fe+=B(oe,D,Q,ue,ee)}else if(ue=h(z),typeof ue=="function")for(z=ue.call(z),me=0;!(oe=z.next()).done;)oe=oe.value,ue=ne+A(oe,me++),fe+=B(oe,D,Q,ue,ee);else if(oe==="object")throw D=String(z),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return fe}function q(z,D,Q){if(z==null)return z;var ne=[],ee=0;return B(z,ne,"","",function(oe){return D.call(Q,oe,ee++)}),ne}function V(z){if(z._status===-1){var D=z._result;D=D(),D.then(function(Q){(z._status===0||z._status===-1)&&(z._status=1,z._result=Q)},function(Q){(z._status===0||z._status===-1)&&(z._status=2,z._result=Q)}),z._status===-1&&(z._status=0,z._result=D)}if(z._status===1)return z._result.default;throw z._result}var H={current:null},F={transition:null},Z={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:F,ReactCurrentOwner:P};function W(){throw Error("act(...) is not supported in production builds of React.")}return Wt.Children={map:q,forEach:function(z,D,Q){q(z,function(){D.apply(this,arguments)},Q)},count:function(z){var D=0;return q(z,function(){D++}),D},toArray:function(z){return q(z,function(D){return D})||[]},only:function(z){if(!k(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Wt.Component=b,Wt.Fragment=n,Wt.Profiler=o,Wt.PureComponent=w,Wt.StrictMode=r,Wt.Suspense=f,Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Wt.act=W,Wt.cloneElement=function(z,D,Q){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var ne=S({},z.props),ee=z.key,oe=z.ref,fe=z._owner;if(D!=null){if(D.ref!==void 0&&(oe=D.ref,fe=P.current),D.key!==void 0&&(ee=""+D.key),z.type&&z.type.defaultProps)var me=z.type.defaultProps;for(ue in D)I.call(D,ue)&&!T.hasOwnProperty(ue)&&(ne[ue]=D[ue]===void 0&&me!==void 0?me[ue]:D[ue])}var ue=arguments.length-2;if(ue===1)ne.children=Q;else if(1<ue){me=Array(ue);for(var Ce=0;Ce<ue;Ce++)me[Ce]=arguments[Ce+2];ne.children=me}return{$$typeof:e,type:z.type,key:ee,ref:oe,props:ne,_owner:fe}},Wt.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:l,_context:z},z.Consumer=z},Wt.createElement=j,Wt.createFactory=function(z){var D=j.bind(null,z);return D.type=z,D},Wt.createRef=function(){return{current:null}},Wt.forwardRef=function(z){return{$$typeof:u,render:z}},Wt.isValidElement=k,Wt.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:V}},Wt.memo=function(z,D){return{$$typeof:m,type:z,compare:D===void 0?null:D}},Wt.startTransition=function(z){var D=F.transition;F.transition={};try{z()}finally{F.transition=D}},Wt.unstable_act=W,Wt.useCallback=function(z,D){return H.current.useCallback(z,D)},Wt.useContext=function(z){return H.current.useContext(z)},Wt.useDebugValue=function(){},Wt.useDeferredValue=function(z){return H.current.useDeferredValue(z)},Wt.useEffect=function(z,D){return H.current.useEffect(z,D)},Wt.useId=function(){return H.current.useId()},Wt.useImperativeHandle=function(z,D,Q){return H.current.useImperativeHandle(z,D,Q)},Wt.useInsertionEffect=function(z,D){return H.current.useInsertionEffect(z,D)},Wt.useLayoutEffect=function(z,D){return H.current.useLayoutEffect(z,D)},Wt.useMemo=function(z,D){return H.current.useMemo(z,D)},Wt.useReducer=function(z,D,Q){return H.current.useReducer(z,D,Q)},Wt.useRef=function(z){return H.current.useRef(z)},Wt.useState=function(z){return H.current.useState(z)},Wt.useSyncExternalStore=function(z,D,Q){return H.current.useSyncExternalStore(z,D,Q)},Wt.useTransition=function(){return H.current.useTransition()},Wt.version="18.3.1",Wt}var Q0;function $g(){return Q0||(Q0=1,gm.exports=oE()),gm.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 Y0;function iE(){if(Y0)return Xl;Y0=1;var e=$g(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(u,f,m){var p,g={},h=null,y=null;m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),f.ref!==void 0&&(y=f.ref);for(p in f)r.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(u&&u.defaultProps)for(p in f=u.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:u,key:h,ref:y,props:g,_owner:o.current}}return Xl.Fragment=n,Xl.jsx=s,Xl.jsxs=s,Xl}var Z0;function aE(){return Z0||(Z0=1,pm.exports=iE()),pm.exports}var G=aE(),c=$g();const Y=Ts(c),Yu=dC({__proto__:null,default:Y},[c]);var Wc={},vm={exports:{}},Lr={},hm={exports:{}},ym={};/**
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 J0;function lE(){return J0||(J0=1,(function(e){function t(F,Z){var W=F.length;F.push(Z);e:for(;0<W;){var z=W-1>>>1,D=F[z];if(0<o(D,Z))F[z]=Z,F[W]=D,W=z;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var Z=F[0],W=F.pop();if(W!==Z){F[0]=W;e:for(var z=0,D=F.length,Q=D>>>1;z<Q;){var ne=2*(z+1)-1,ee=F[ne],oe=ne+1,fe=F[oe];if(0>o(ee,W))oe<D&&0>o(fe,ee)?(F[z]=fe,F[oe]=W,z=oe):(F[z]=ee,F[ne]=W,z=ne);else if(oe<D&&0>o(fe,W))F[z]=fe,F[oe]=W,z=oe;else break e}}return Z}function o(F,Z){var W=F.sortIndex-Z.sortIndex;return W!==0?W:F.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],m=[],p=1,g=null,h=3,y=!1,S=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(F){for(var Z=n(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=F)r(m),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=n(m)}}function O(F){if(C=!1,R(F),!S)if(n(f)!==null)S=!0,V(I);else{var Z=n(m);Z!==null&&H(O,Z.startTime-F)}}function I(F,Z){S=!1,C&&(C=!1,$(j),j=-1),y=!0;var W=h;try{for(R(Z),g=n(f);g!==null&&(!(g.expirationTime>Z)||F&&!L());){var z=g.callback;if(typeof z=="function"){g.callback=null,h=g.priorityLevel;var D=z(g.expirationTime<=Z);Z=e.unstable_now(),typeof D=="function"?g.callback=D:g===n(f)&&r(f),R(Z)}else r(f);g=n(f)}if(g!==null)var Q=!0;else{var ne=n(m);ne!==null&&H(O,ne.startTime-Z),Q=!1}return Q}finally{g=null,h=W,y=!1}}var P=!1,T=null,j=-1,M=5,k=-1;function L(){return!(e.unstable_now()-k<M)}function _(){if(T!==null){var F=e.unstable_now();k=F;var Z=!0;try{Z=T(!0,F)}finally{Z?A():(P=!1,T=null)}}else P=!1}var A;if(typeof w=="function")A=function(){w(_)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,q=B.port2;B.port1.onmessage=_,A=function(){q.postMessage(null)}}else A=function(){b(_,0)};function V(F){T=F,P||(P=!0,A())}function H(F,Z){j=b(function(){F(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,V(I))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(F){switch(h){case 1:case 2:case 3:var Z=3;break;default:Z=h}var W=h;h=Z;try{return F()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,Z){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var W=h;h=F;try{return Z()}finally{h=W}},e.unstable_scheduleCallback=function(F,Z,W){var z=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?z+W:z):W=z,F){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=W+D,F={id:p++,callback:Z,priorityLevel:F,startTime:W,expirationTime:D,sortIndex:-1},W>z?(F.sortIndex=W,t(m,F),n(f)===null&&F===n(m)&&(C?($(j),j=-1):C=!0,H(O,W-z))):(F.sortIndex=D,t(f,F),S||y||(S=!0,V(I))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var Z=h;return function(){var W=h;h=Z;try{return F.apply(this,arguments)}finally{h=W}}}})(ym)),ym}var ey;function sE(){return ey||(ey=1,hm.exports=lE()),hm.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 ty;function cE(){if(ty)return Lr;ty=1;var e=$g(),t=sE();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,d=1;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(i,a){s(i,a),s(i+"Capture",a)}function s(i,a){for(o[i]=a,i=0;i<a.length;i++)r.add(a[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},g={};function h(i){return f.call(g,i)?!0:f.call(p,i)?!1:m.test(i)?g[i]=!0:(p[i]=!0,!1)}function y(i,a,d,v){if(d!==null&&d.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return v?!1:d!==null?!d.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,a,d,v){if(a===null||typeof a>"u"||y(i,a,d,v))return!0;if(v)return!1;if(d!==null)switch(d.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(i,a,d,v,x,E,N){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=d,this.propertyName=i,this.type=a,this.sanitizeURL=E,this.removeEmptyString=N}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){b[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];b[a]=new C(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){b[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){b[i]=new C(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){b[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){b[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){b[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){b[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){b[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function w(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace($,w);b[a]=new C(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace($,w);b[a]=new C(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace($,w);b[a]=new C(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),b.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,a,d,v){var x=b.hasOwnProperty(a)?b[a]:null;(x!==null?x.type!==0:v||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(S(a,d,x,v)&&(d=null),v||x===null?h(a)&&(d===null?i.removeAttribute(a):i.setAttribute(a,""+d)):x.mustUseProperty?i[x.propertyName]=d===null?x.type===3?!1:"":d:(a=x.attributeName,v=x.attributeNamespace,d===null?i.removeAttribute(a):(x=x.type,d=x===3||x===4&&d===!0?"":""+d,v?i.setAttributeNS(v,a,d):i.setAttribute(a,d))))}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),P=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),L=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),F=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=F&&i[F]||i["@@iterator"],typeof i=="function"?i:null)}var W=Object.assign,z;function D(i){if(z===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);z=a&&a[1]||""}return`
34
+ `+z+i}var Q=!1;function ne(i,a){if(!i||Q)return"";Q=!0;var d=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(he){var v=he}Reflect.construct(i,[],a)}else{try{a.call()}catch(he){v=he}i.call(a.prototype)}else{try{throw Error()}catch(he){v=he}i()}}catch(he){if(he&&v&&typeof he.stack=="string"){for(var x=he.stack.split(`
35
+ `),E=v.stack.split(`
36
+ `),N=x.length-1,K=E.length-1;1<=N&&0<=K&&x[N]!==E[K];)K--;for(;1<=N&&0<=K;N--,K--)if(x[N]!==E[K]){if(N!==1||K!==1)do if(N--,K--,0>K||x[N]!==E[K]){var te=`
37
+ `+x[N].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=N&&0<=K);break}}}finally{Q=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?D(i):""}function ee(i){switch(i.tag){case 5:return D(i.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return i=ne(i.type,!1),i;case 11:return i=ne(i.type.render,!1),i;case 1:return i=ne(i.type,!0),i;default:return""}}function oe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case P:return"Portal";case M:return"Profiler";case j:return"StrictMode";case A:return"Suspense";case B:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case k:return(i._context.displayName||"Context")+".Provider";case _:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case q:return a=i.displayName||null,a!==null?a:oe(i.type)||"Memo";case V:a=i._payload,i=i._init;try{return oe(i(a))}catch{}}return null}function fe(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(a);case 8:return a===j?"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(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ue(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ce(i){var a=ue(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),v=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var x=d.get,E=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return x.call(this)},set:function(N){v=""+N,E.call(this,N)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return v},setValue:function(N){v=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function pe(i){i._valueTracker||(i._valueTracker=Ce(i))}function se(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),v="";return i&&(v=ue(i)?i.checked?"true":"false":i.value),i=v,i!==d?(a.setValue(i),!0):!1}function ye(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ve(i,a){var d=a.checked;return W({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function ce(i,a){var d=a.defaultValue==null?"":a.defaultValue,v=a.checked!=null?a.checked:a.defaultChecked;d=me(a.value!=null?a.value:d),i._wrapperState={initialChecked:v,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function le(i,a){a=a.checked,a!=null&&R(i,"checked",a,!1)}function be(i,a){le(i,a);var d=me(a.value),v=a.type;if(d!=null)v==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(v==="submit"||v==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?$e(i,a.type,d):a.hasOwnProperty("defaultValue")&&$e(i,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Se(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var v=a.type;if(!(v!=="submit"&&v!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function $e(i,a,d){(a!=="number"||ye(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var je=Array.isArray;function Le(i,a,d,v){if(i=i.options,a){a={};for(var x=0;x<d.length;x++)a["$"+d[x]]=!0;for(d=0;d<i.length;d++)x=a.hasOwnProperty("$"+i[d].value),i[d].selected!==x&&(i[d].selected=x),x&&v&&(i[d].defaultSelected=!0)}else{for(d=""+me(d),a=null,x=0;x<i.length;x++){if(i[x].value===d){i[x].selected=!0,v&&(i[x].defaultSelected=!0);return}a!==null||i[x].disabled||(a=i[x])}a!==null&&(a.selected=!0)}}function Pe(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return W({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Be(i,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(n(92));if(je(d)){if(1<d.length)throw Error(n(93));d=d[0]}a=d}a==null&&(a=""),d=a}i._wrapperState={initialValue:me(d)}}function Re(i,a){var d=me(a.value),v=me(a.defaultValue);d!=null&&(d=""+d,d!==i.value&&(i.value=d),a.defaultValue==null&&i.defaultValue!==d&&(i.defaultValue=d)),v!=null&&(i.defaultValue=""+v)}function tt(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function lt(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bt(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?lt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var st,qe=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,v,x){MSApp.execUnsafeLocalFunction(function(){return i(a,d,v,x)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=st.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function it(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var Ve={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dt=["Webkit","ms","Moz","O"];Object.keys(Ve).forEach(function(i){dt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ve[a]=Ve[i]})});function Xe(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Ve.hasOwnProperty(i)&&Ve[i]?(""+a).trim():a+"px"}function ke(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var v=d.indexOf("--")===0,x=Xe(d,a[d],v);d==="float"&&(d="cssFloat"),v?i.setProperty(d,x):i[d]=x}}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 Te(i,a){if(a){if(Ye[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function De(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function pt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Vt=null,Dt=null,an=null;function yn(i){if(i=Nl(i)){if(typeof Vt!="function")throw Error(n(280));var a=i.stateNode;a&&(a=ic(a),Vt(i.stateNode,i.type,a))}}function Ut(i){Dt?an?an.push(i):an=[i]:Dt=i}function Mt(){if(Dt){var i=Dt,a=an;if(an=Dt=null,yn(i),a)for(i=0;i<a.length;i++)yn(a[i])}}function Ct(i,a){return i(a)}function qt(){}var Bt=!1;function Ze(i,a,d){if(Bt)return i(a,d);Bt=!0;try{return Ct(i,a,d)}finally{Bt=!1,(Dt!==null||an!==null)&&(qt(),Mt())}}function yt(i,a){var d=i.stateNode;if(d===null)return null;var v=ic(d);if(v===null)return null;d=v[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":(v=!v.disabled)||(i=i.type,v=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!v;break e;default:i=!1}if(i)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var at=!1;if(u)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 we(i,a,d,v,x,E,N,K,te){var he=Array.prototype.slice.call(arguments,3);try{a.apply(d,he)}catch(Me){this.onError(Me)}}var xe=!1,Ne=null,Ke=!1,Qe=null,kt={onError:function(i){xe=!0,Ne=i}};function zt(i,a,d,v,x,E,N,K,te){xe=!1,Ne=null,we.apply(kt,arguments)}function Ot(i,a,d,v,x,E,N,K,te){if(zt.apply(this,arguments),xe){if(xe){var he=Ne;xe=!1,Ne=null}else throw Error(n(198));Ke||(Ke=!0,Qe=he)}}function Pt(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(d=a.return),i=a.return;while(i)}return a.tag===3?d:null}function vn(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function dn(i){if(Pt(i)!==i)throw Error(n(188))}function bn(i){var a=i.alternate;if(!a){if(a=Pt(i),a===null)throw Error(n(188));return a!==i?null:i}for(var d=i,v=a;;){var x=d.return;if(x===null)break;var E=x.alternate;if(E===null){if(v=x.return,v!==null){d=v;continue}break}if(x.child===E.child){for(E=x.child;E;){if(E===d)return dn(x),i;if(E===v)return dn(x),a;E=E.sibling}throw Error(n(188))}if(d.return!==v.return)d=x,v=E;else{for(var N=!1,K=x.child;K;){if(K===d){N=!0,d=x,v=E;break}if(K===v){N=!0,v=x,d=E;break}K=K.sibling}if(!N){for(K=E.child;K;){if(K===d){N=!0,d=E,v=x;break}if(K===v){N=!0,v=E,d=x;break}K=K.sibling}if(!N)throw Error(n(189))}}if(d.alternate!==v)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?i:a}function On(i){return i=bn(i),i!==null?Xt(i):null}function Xt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Xt(i);if(a!==null)return a;i=i.sibling}return null}var en=t.unstable_scheduleCallback,_e=t.unstable_cancelCallback,We=t.unstable_shouldYield,xt=t.unstable_requestPaint,ct=t.unstable_now,et=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,St=t.unstable_UserBlockingPriority,Lt=t.unstable_NormalPriority,He=t.unstable_LowPriority,ut=t.unstable_IdlePriority,$t=null,nn=null;function zn(i){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot($t,i,void 0,(i.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:dr,ur=Math.log,Gn=Math.LN2;function dr(i){return i>>>=0,i===0?32:31-(ur(i)/Gn|0)|0}var Kn=64,ir=4194304;function fr(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Zt(i,a){var d=i.pendingLanes;if(d===0)return 0;var v=0,x=i.suspendedLanes,E=i.pingedLanes,N=d&268435455;if(N!==0){var K=N&~x;K!==0?v=fr(K):(E&=N,E!==0&&(v=fr(E)))}else N=d&~x,N!==0?v=fr(N):E!==0&&(v=fr(E));if(v===0)return 0;if(a!==0&&a!==v&&(a&x)===0&&(x=v&-v,E=a&-a,x>=E||x===16&&(E&4194240)!==0))return a;if((v&4)!==0&&(v|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=v;0<a;)d=31-$n(a),x=1<<d,v|=i[d],a&=~x;return v}function nt(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(i,a){for(var d=i.suspendedLanes,v=i.pingedLanes,x=i.expirationTimes,E=i.pendingLanes;0<E;){var N=31-$n(E),K=1<<N,te=x[N];te===-1?((K&d)===0||(K&v)!==0)&&(x[N]=nt(K,a)):te<=a&&(i.expiredLanes|=K),E&=~K}}function Gt(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Jt(){var i=Kn;return Kn<<=1,(Kn&4194240)===0&&(Kn=64),i}function ln(i){for(var a=[],d=0;31>d;d++)a.push(i);return a}function un(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-$n(a),i[a]=d}function ar(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var v=i.eventTimes;for(i=i.expirationTimes;0<d;){var x=31-$n(d),E=1<<x;a[x]=0,v[x]=-1,i[x]=-1,d&=~E}}function Ln(i,a){var d=i.entangledLanes|=a;for(i=i.entanglements;d;){var v=31-$n(d),x=1<<v;x&a|i[v]&a&&(i[v]|=a),d&=~x}}var _t=0;function Xn(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Jn,Tr,er,ii,sa,ca=!1,Fo=[],Mn=null,mr=null,xr=null,Mr=new Map,Gr=new Map,Br=[],ua="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 da(i,a){switch(i){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":Mr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(a.pointerId)}}function rt(i,a,d,v,x,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:d,eventSystemFlags:v,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Nl(a),a!==null&&Tr(a)),i):(i.eventSystemFlags|=v,a=i.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),i)}function Tt(i,a,d,v,x){switch(a){case"focusin":return Mn=rt(Mn,i,a,d,v,x),!0;case"dragenter":return mr=rt(mr,i,a,d,v,x),!0;case"mouseover":return xr=rt(xr,i,a,d,v,x),!0;case"pointerover":var E=x.pointerId;return Mr.set(E,rt(Mr.get(E)||null,i,a,d,v,x)),!0;case"gotpointercapture":return E=x.pointerId,Gr.set(E,rt(Gr.get(E)||null,i,a,d,v,x)),!0}return!1}function xn(i){var a=_i(i.target);if(a!==null){var d=Pt(a);if(d!==null){if(a=d.tag,a===13){if(a=vn(d),a!==null){i.blockedOn=a,sa(i.priority,function(){er(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function En(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var d=Fd(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(d===null){d=i.nativeEvent;var v=new d.constructor(d.type,d);wt=v,d.target.dispatchEvent(v),wt=null}else return a=Nl(d),a!==null&&Tr(a),i.blockedOn=d,!1;a.shift()}return!0}function wn(i,a,d){En(i)&&d.delete(a)}function fa(){ca=!1,Mn!==null&&En(Mn)&&(Mn=null),mr!==null&&En(mr)&&(mr=null),xr!==null&&En(xr)&&(xr=null),Mr.forEach(wn),Gr.forEach(wn)}function Do(i,a){i.blockedOn===a&&(i.blockedOn=null,ca||(ca=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fa)))}function ai(i){function a(x){return Do(x,i)}if(0<Fo.length){Do(Fo[0],i);for(var d=1;d<Fo.length;d++){var v=Fo[d];v.blockedOn===i&&(v.blockedOn=null)}}for(Mn!==null&&Do(Mn,i),mr!==null&&Do(mr,i),xr!==null&&Do(xr,i),Mr.forEach(a),Gr.forEach(a),d=0;d<Br.length;d++)v=Br[d],v.blockedOn===i&&(v.blockedOn=null);for(;0<Br.length&&(d=Br[0],d.blockedOn===null);)xn(d),d.blockedOn===null&&Br.shift()}var so=O.ReactCurrentBatchConfig,qs=!0;function O2(i,a,d,v){var x=_t,E=so.transition;so.transition=null;try{_t=1,Ad(i,a,d,v)}finally{_t=x,so.transition=E}}function I2(i,a,d,v){var x=_t,E=so.transition;so.transition=null;try{_t=4,Ad(i,a,d,v)}finally{_t=x,so.transition=E}}function Ad(i,a,d,v){if(qs){var x=Fd(i,a,d,v);if(x===null)rf(i,a,v,Gs,d),da(i,v);else if(Tt(x,i,a,d,v))v.stopPropagation();else if(da(i,v),a&4&&-1<ua.indexOf(i)){for(;x!==null;){var E=Nl(x);if(E!==null&&Jn(E),E=Fd(i,a,d,v),E===null&&rf(i,a,v,Gs,d),E===x)break;x=E}x!==null&&v.stopPropagation()}else rf(i,a,v,null,d)}}var Gs=null;function Fd(i,a,d,v){if(Gs=null,i=pt(v),i=_i(i),i!==null)if(a=Pt(i),a===null)i=null;else if(d=a.tag,d===13){if(i=vn(a),i!==null)return i;i=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return Gs=i,null}function _v(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(et()){case Ge:return 1;case St:return 4;case Lt:case He:return 16;case ut:return 536870912;default:return 16}default:return 16}}var li=null,Dd=null,Ks=null;function zv(){if(Ks)return Ks;var i,a=Dd,d=a.length,v,x="value"in li?li.value:li.textContent,E=x.length;for(i=0;i<d&&a[i]===x[i];i++);var N=d-i;for(v=1;v<=N&&a[d-v]===x[E-v];v++);return Ks=x.slice(i,1<v?1-v:void 0)}function Xs(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Qs(){return!0}function Lv(){return!1}function Ar(i){function a(d,v,x,E,N){this._reactName=d,this._targetInst=x,this.type=v,this.nativeEvent=E,this.target=N,this.currentTarget=null;for(var K in i)i.hasOwnProperty(K)&&(d=i[K],this[K]=d?d(E):E[K]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Qs:Lv,this.isPropagationStopped=Lv,this}return W(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Qs)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),a}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hd=Ar(ma),wl=W({},ma,{view:0,detail:0}),P2=Ar(wl),Vd,Wd,$l,Ys=W({},wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==$l&&($l&&i.type==="mousemove"?(Vd=i.screenX-$l.screenX,Wd=i.screenY-$l.screenY):Wd=Vd=0,$l=i),Vd)},movementY:function(i){return"movementY"in i?i.movementY:Wd}}),Bv=Ar(Ys),T2=W({},Ys,{dataTransfer:0}),M2=Ar(T2),j2=W({},wl,{relatedTarget:0}),Ud=Ar(j2),k2=W({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),N2=Ar(k2),_2=W({},ma,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),z2=Ar(_2),L2=W({},ma,{data:0}),Av=Ar(L2),B2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A2={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"},F2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D2(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=F2[i])?!!a[i]:!1}function qd(){return D2}var H2=W({},wl,{key:function(i){if(i.key){var a=B2[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Xs(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?A2[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qd,charCode:function(i){return i.type==="keypress"?Xs(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Xs(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),V2=Ar(H2),W2=W({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fv=Ar(W2),U2=W({},wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qd}),q2=Ar(U2),G2=W({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),K2=Ar(G2),X2=W({},Ys,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Q2=Ar(X2),Y2=[9,13,27,32],Gd=u&&"CompositionEvent"in window,El=null;u&&"documentMode"in document&&(El=document.documentMode);var Z2=u&&"TextEvent"in window&&!El,Dv=u&&(!Gd||El&&8<El&&11>=El),Hv=" ",Vv=!1;function Wv(i,a){switch(i){case"keyup":return Y2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var pa=!1;function J2(i,a){switch(i){case"compositionend":return Uv(a);case"keypress":return a.which!==32?null:(Vv=!0,Hv);case"textInput":return i=a.data,i===Hv&&Vv?null:i;default:return null}}function e$(i,a){if(pa)return i==="compositionend"||!Gd&&Wv(i,a)?(i=zv(),Ks=Dd=li=null,pa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Dv&&a.locale!=="ko"?null:a.data;default:return null}}var t$={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 qv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!t$[i.type]:a==="textarea"}function Gv(i,a,d,v){Ut(v),a=nc(a,"onChange"),0<a.length&&(d=new Hd("onChange","change",null,d,v),i.push({event:d,listeners:a}))}var Rl=null,Ol=null;function n$(i){dh(i,0)}function Zs(i){var a=ba(i);if(se(a))return i}function r$(i,a){if(i==="change")return a}var Kv=!1;if(u){var Kd;if(u){var Xd="oninput"in document;if(!Xd){var Xv=document.createElement("div");Xv.setAttribute("oninput","return;"),Xd=typeof Xv.oninput=="function"}Kd=Xd}else Kd=!1;Kv=Kd&&(!document.documentMode||9<document.documentMode)}function Qv(){Rl&&(Rl.detachEvent("onpropertychange",Yv),Ol=Rl=null)}function Yv(i){if(i.propertyName==="value"&&Zs(Ol)){var a=[];Gv(a,Ol,i,pt(i)),Ze(n$,a)}}function o$(i,a,d){i==="focusin"?(Qv(),Rl=a,Ol=d,Rl.attachEvent("onpropertychange",Yv)):i==="focusout"&&Qv()}function i$(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Zs(Ol)}function a$(i,a){if(i==="click")return Zs(a)}function l$(i,a){if(i==="input"||i==="change")return Zs(a)}function s$(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var co=typeof Object.is=="function"?Object.is:s$;function Il(i,a){if(co(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),v=Object.keys(a);if(d.length!==v.length)return!1;for(v=0;v<d.length;v++){var x=d[v];if(!f.call(a,x)||!co(i[x],a[x]))return!1}return!0}function Zv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Jv(i,a){var d=Zv(i);i=0;for(var v;d;){if(d.nodeType===3){if(v=i+d.textContent.length,i<=a&&v>=a)return{node:d,offset:a-i};i=v}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Zv(d)}}function eh(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?eh(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function th(){for(var i=window,a=ye();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=ye(i.document)}return a}function Qd(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function c$(i){var a=th(),d=i.focusedElem,v=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&eh(d.ownerDocument.documentElement,d)){if(v!==null&&Qd(d)){if(a=v.start,i=v.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var x=d.textContent.length,E=Math.min(v.start,x);v=v.end===void 0?E:Math.min(v.end,x),!i.extend&&E>v&&(x=v,v=E,E=x),x=Jv(d,E);var N=Jv(d,v);x&&N&&(i.rangeCount!==1||i.anchorNode!==x.node||i.anchorOffset!==x.offset||i.focusNode!==N.node||i.focusOffset!==N.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),i.removeAllRanges(),E>v?(i.addRange(a),i.extend(N.node,N.offset)):(a.setEnd(N.node,N.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)i=a[d],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var u$=u&&"documentMode"in document&&11>=document.documentMode,ga=null,Yd=null,Pl=null,Zd=!1;function nh(i,a,d){var v=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Zd||ga==null||ga!==ye(v)||(v=ga,"selectionStart"in v&&Qd(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Pl&&Il(Pl,v)||(Pl=v,v=nc(Yd,"onSelect"),0<v.length&&(a=new Hd("onSelect","select",null,a,d),i.push({event:a,listeners:v}),a.target=ga)))}function Js(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var va={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionend:Js("Transition","TransitionEnd")},Jd={},rh={};u&&(rh=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function ec(i){if(Jd[i])return Jd[i];if(!va[i])return i;var a=va[i],d;for(d in a)if(a.hasOwnProperty(d)&&d in rh)return Jd[i]=a[d];return i}var oh=ec("animationend"),ih=ec("animationiteration"),ah=ec("animationstart"),lh=ec("transitionend"),sh=new Map,ch="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 si(i,a){sh.set(i,a),l(a,[i])}for(var ef=0;ef<ch.length;ef++){var tf=ch[ef],d$=tf.toLowerCase(),f$=tf[0].toUpperCase()+tf.slice(1);si(d$,"on"+f$)}si(oh,"onAnimationEnd"),si(ih,"onAnimationIteration"),si(ah,"onAnimationStart"),si("dblclick","onDoubleClick"),si("focusin","onFocus"),si("focusout","onBlur"),si(lh,"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 Tl="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(" "),m$=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tl));function uh(i,a,d){var v=i.type||"unknown-event";i.currentTarget=d,Ot(v,a,void 0,i),i.currentTarget=null}function dh(i,a){a=(a&4)!==0;for(var d=0;d<i.length;d++){var v=i[d],x=v.event;v=v.listeners;e:{var E=void 0;if(a)for(var N=v.length-1;0<=N;N--){var K=v[N],te=K.instance,he=K.currentTarget;if(K=K.listener,te!==E&&x.isPropagationStopped())break e;uh(x,K,he),E=te}else for(N=0;N<v.length;N++){if(K=v[N],te=K.instance,he=K.currentTarget,K=K.listener,te!==E&&x.isPropagationStopped())break e;uh(x,K,he),E=te}}}if(Ke)throw i=Qe,Ke=!1,Qe=null,i}function In(i,a){var d=a[uf];d===void 0&&(d=a[uf]=new Set);var v=i+"__bubble";d.has(v)||(fh(a,i,2,!1),d.add(v))}function nf(i,a,d){var v=0;a&&(v|=4),fh(d,i,v,a)}var tc="_reactListening"+Math.random().toString(36).slice(2);function Ml(i){if(!i[tc]){i[tc]=!0,r.forEach(function(d){d!=="selectionchange"&&(m$.has(d)||nf(d,!1,i),nf(d,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[tc]||(a[tc]=!0,nf("selectionchange",!1,a))}}function fh(i,a,d,v){switch(_v(a)){case 1:var x=O2;break;case 4:x=I2;break;default:x=Ad}d=x.bind(null,a,d,i),x=void 0,!at||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),v?x!==void 0?i.addEventListener(a,d,{capture:!0,passive:x}):i.addEventListener(a,d,!0):x!==void 0?i.addEventListener(a,d,{passive:x}):i.addEventListener(a,d,!1)}function rf(i,a,d,v,x){var E=v;if((a&1)===0&&(a&2)===0&&v!==null)e:for(;;){if(v===null)return;var N=v.tag;if(N===3||N===4){var K=v.stateNode.containerInfo;if(K===x||K.nodeType===8&&K.parentNode===x)break;if(N===4)for(N=v.return;N!==null;){var te=N.tag;if((te===3||te===4)&&(te=N.stateNode.containerInfo,te===x||te.nodeType===8&&te.parentNode===x))return;N=N.return}for(;K!==null;){if(N=_i(K),N===null)return;if(te=N.tag,te===5||te===6){v=E=N;continue e}K=K.parentNode}}v=v.return}Ze(function(){var he=E,Me=pt(d),ze=[];e:{var Ie=sh.get(i);if(Ie!==void 0){var ot=Hd,gt=i;switch(i){case"keypress":if(Xs(d)===0)break e;case"keydown":case"keyup":ot=V2;break;case"focusin":gt="focus",ot=Ud;break;case"focusout":gt="blur",ot=Ud;break;case"beforeblur":case"afterblur":ot=Ud;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ot=Bv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=M2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=q2;break;case oh:case ih:case ah:ot=N2;break;case lh:ot=K2;break;case"scroll":ot=P2;break;case"wheel":ot=Q2;break;case"copy":case"cut":case"paste":ot=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=Fv}var vt=(a&4)!==0,Bn=!vt&&i==="scroll",de=vt?Ie!==null?Ie+"Capture":null:Ie;vt=[];for(var ie=he,ge;ie!==null;){ge=ie;var Fe=ge.stateNode;if(ge.tag===5&&Fe!==null&&(ge=Fe,de!==null&&(Fe=yt(ie,de),Fe!=null&&vt.push(jl(ie,Fe,ge)))),Bn)break;ie=ie.return}0<vt.length&&(Ie=new ot(Ie,gt,null,d,Me),ze.push({event:Ie,listeners:vt}))}}if((a&7)===0){e:{if(Ie=i==="mouseover"||i==="pointerover",ot=i==="mouseout"||i==="pointerout",Ie&&d!==wt&&(gt=d.relatedTarget||d.fromElement)&&(_i(gt)||gt[Ho]))break e;if((ot||Ie)&&(Ie=Me.window===Me?Me:(Ie=Me.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,ot?(gt=d.relatedTarget||d.toElement,ot=he,gt=gt?_i(gt):null,gt!==null&&(Bn=Pt(gt),gt!==Bn||gt.tag!==5&&gt.tag!==6)&&(gt=null)):(ot=null,gt=he),ot!==gt)){if(vt=Bv,Fe="onMouseLeave",de="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(vt=Fv,Fe="onPointerLeave",de="onPointerEnter",ie="pointer"),Bn=ot==null?Ie:ba(ot),ge=gt==null?Ie:ba(gt),Ie=new vt(Fe,ie+"leave",ot,d,Me),Ie.target=Bn,Ie.relatedTarget=ge,Fe=null,_i(Me)===he&&(vt=new vt(de,ie+"enter",gt,d,Me),vt.target=ge,vt.relatedTarget=Bn,Fe=vt),Bn=Fe,ot&&gt)t:{for(vt=ot,de=gt,ie=0,ge=vt;ge;ge=ha(ge))ie++;for(ge=0,Fe=de;Fe;Fe=ha(Fe))ge++;for(;0<ie-ge;)vt=ha(vt),ie--;for(;0<ge-ie;)de=ha(de),ge--;for(;ie--;){if(vt===de||de!==null&&vt===de.alternate)break t;vt=ha(vt),de=ha(de)}vt=null}else vt=null;ot!==null&&mh(ze,Ie,ot,vt,!1),gt!==null&&Bn!==null&&mh(ze,Bn,gt,vt,!0)}}e:{if(Ie=he?ba(he):window,ot=Ie.nodeName&&Ie.nodeName.toLowerCase(),ot==="select"||ot==="input"&&Ie.type==="file")var ht=r$;else if(qv(Ie))if(Kv)ht=l$;else{ht=i$;var Et=o$}else(ot=Ie.nodeName)&&ot.toLowerCase()==="input"&&(Ie.type==="checkbox"||Ie.type==="radio")&&(ht=a$);if(ht&&(ht=ht(i,he))){Gv(ze,ht,d,Me);break e}Et&&Et(i,Ie,he),i==="focusout"&&(Et=Ie._wrapperState)&&Et.controlled&&Ie.type==="number"&&$e(Ie,"number",Ie.value)}switch(Et=he?ba(he):window,i){case"focusin":(qv(Et)||Et.contentEditable==="true")&&(ga=Et,Yd=he,Pl=null);break;case"focusout":Pl=Yd=ga=null;break;case"mousedown":Zd=!0;break;case"contextmenu":case"mouseup":case"dragend":Zd=!1,nh(ze,d,Me);break;case"selectionchange":if(u$)break;case"keydown":case"keyup":nh(ze,d,Me)}var Rt;if(Gd)e:{switch(i){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else pa?Wv(i,d)&&(Nt="onCompositionEnd"):i==="keydown"&&d.keyCode===229&&(Nt="onCompositionStart");Nt&&(Dv&&d.locale!=="ko"&&(pa||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&pa&&(Rt=zv()):(li=Me,Dd="value"in li?li.value:li.textContent,pa=!0)),Et=nc(he,Nt),0<Et.length&&(Nt=new Av(Nt,i,null,d,Me),ze.push({event:Nt,listeners:Et}),Rt?Nt.data=Rt:(Rt=Uv(d),Rt!==null&&(Nt.data=Rt)))),(Rt=Z2?J2(i,d):e$(i,d))&&(he=nc(he,"onBeforeInput"),0<he.length&&(Me=new Av("onBeforeInput","beforeinput",null,d,Me),ze.push({event:Me,listeners:he}),Me.data=Rt))}dh(ze,a)})}function jl(i,a,d){return{instance:i,listener:a,currentTarget:d}}function nc(i,a){for(var d=a+"Capture",v=[];i!==null;){var x=i,E=x.stateNode;x.tag===5&&E!==null&&(x=E,E=yt(i,d),E!=null&&v.unshift(jl(i,E,x)),E=yt(i,a),E!=null&&v.push(jl(i,E,x))),i=i.return}return v}function ha(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function mh(i,a,d,v,x){for(var E=a._reactName,N=[];d!==null&&d!==v;){var K=d,te=K.alternate,he=K.stateNode;if(te!==null&&te===v)break;K.tag===5&&he!==null&&(K=he,x?(te=yt(d,E),te!=null&&N.unshift(jl(d,te,K))):x||(te=yt(d,E),te!=null&&N.push(jl(d,te,K)))),d=d.return}N.length!==0&&i.push({event:a,listeners:N})}var p$=/\r\n?/g,g$=/\u0000|\uFFFD/g;function ph(i){return(typeof i=="string"?i:""+i).replace(p$,`
38
+ `).replace(g$,"")}function rc(i,a,d){if(a=ph(a),ph(i)!==a&&d)throw Error(n(425))}function oc(){}var of=null,af=null;function lf(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var sf=typeof setTimeout=="function"?setTimeout:void 0,v$=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,h$=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(i){return gh.resolve(null).then(i).catch(y$)}:sf;function y$(i){setTimeout(function(){throw i})}function cf(i,a){var d=a,v=0;do{var x=d.nextSibling;if(i.removeChild(d),x&&x.nodeType===8)if(d=x.data,d==="/$"){if(v===0){i.removeChild(x),ai(a);return}v--}else d!=="$"&&d!=="$?"&&d!=="$!"||v++;d=x}while(d);ai(a)}function ci(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function vh(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return i;a--}else d==="/$"&&a++}i=i.previousSibling}return null}var ya=Math.random().toString(36).slice(2),Eo="__reactFiber$"+ya,kl="__reactProps$"+ya,Ho="__reactContainer$"+ya,uf="__reactEvents$"+ya,b$="__reactListeners$"+ya,C$="__reactHandles$"+ya;function _i(i){var a=i[Eo];if(a)return a;for(var d=i.parentNode;d;){if(a=d[Ho]||d[Eo]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(i=vh(i);i!==null;){if(d=i[Eo])return d;i=vh(i)}return a}i=d,d=i.parentNode}return null}function Nl(i){return i=i[Eo]||i[Ho],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ba(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function ic(i){return i[kl]||null}var df=[],Ca=-1;function ui(i){return{current:i}}function Pn(i){0>Ca||(i.current=df[Ca],df[Ca]=null,Ca--)}function Rn(i,a){Ca++,df[Ca]=i.current,i.current=a}var di={},pr=ui(di),jr=ui(!1),zi=di;function Sa(i,a){var d=i.type.contextTypes;if(!d)return di;var v=i.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===a)return v.__reactInternalMemoizedMaskedChildContext;var x={},E;for(E in d)x[E]=a[E];return v&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=x),x}function kr(i){return i=i.childContextTypes,i!=null}function ac(){Pn(jr),Pn(pr)}function hh(i,a,d){if(pr.current!==di)throw Error(n(168));Rn(pr,a),Rn(jr,d)}function yh(i,a,d){var v=i.stateNode;if(a=a.childContextTypes,typeof v.getChildContext!="function")return d;v=v.getChildContext();for(var x in v)if(!(x in a))throw Error(n(108,fe(i)||"Unknown",x));return W({},d,v)}function lc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||di,zi=pr.current,Rn(pr,i),Rn(jr,jr.current),!0}function bh(i,a,d){var v=i.stateNode;if(!v)throw Error(n(169));d?(i=yh(i,a,zi),v.__reactInternalMemoizedMergedChildContext=i,Pn(jr),Pn(pr),Rn(pr,i)):Pn(jr),Rn(jr,d)}var Vo=null,sc=!1,ff=!1;function Ch(i){Vo===null?Vo=[i]:Vo.push(i)}function S$(i){sc=!0,Ch(i)}function fi(){if(!ff&&Vo!==null){ff=!0;var i=0,a=_t;try{var d=Vo;for(_t=1;i<d.length;i++){var v=d[i];do v=v(!0);while(v!==null)}Vo=null,sc=!1}catch(x){throw Vo!==null&&(Vo=Vo.slice(i+1)),en(Ge,fi),x}finally{_t=a,ff=!1}}return null}var xa=[],wa=0,cc=null,uc=0,Kr=[],Xr=0,Li=null,Wo=1,Uo="";function Bi(i,a){xa[wa++]=uc,xa[wa++]=cc,cc=i,uc=a}function Sh(i,a,d){Kr[Xr++]=Wo,Kr[Xr++]=Uo,Kr[Xr++]=Li,Li=i;var v=Wo;i=Uo;var x=32-$n(v)-1;v&=~(1<<x),d+=1;var E=32-$n(a)+x;if(30<E){var N=x-x%5;E=(v&(1<<N)-1).toString(32),v>>=N,x-=N,Wo=1<<32-$n(a)+x|d<<x|v,Uo=E+i}else Wo=1<<E|d<<x|v,Uo=i}function mf(i){i.return!==null&&(Bi(i,1),Sh(i,1,0))}function pf(i){for(;i===cc;)cc=xa[--wa],xa[wa]=null,uc=xa[--wa],xa[wa]=null;for(;i===Li;)Li=Kr[--Xr],Kr[Xr]=null,Uo=Kr[--Xr],Kr[Xr]=null,Wo=Kr[--Xr],Kr[Xr]=null}var Fr=null,Dr=null,Tn=!1,uo=null;function xh(i,a){var d=Jr(5,null,null,0);d.elementType="DELETED",d.stateNode=a,d.return=i,a=i.deletions,a===null?(i.deletions=[d],i.flags|=16):a.push(d)}function wh(i,a){switch(i.tag){case 5:var d=i.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Fr=i,Dr=ci(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Fr=i,Dr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=Li!==null?{id:Wo,overflow:Uo}:null,i.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=Jr(18,null,null,0),d.stateNode=a,d.return=i,i.child=d,Fr=i,Dr=null,!0):!1;default:return!1}}function gf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function vf(i){if(Tn){var a=Dr;if(a){var d=a;if(!wh(i,a)){if(gf(i))throw Error(n(418));a=ci(d.nextSibling);var v=Fr;a&&wh(i,a)?xh(v,d):(i.flags=i.flags&-4097|2,Tn=!1,Fr=i)}}else{if(gf(i))throw Error(n(418));i.flags=i.flags&-4097|2,Tn=!1,Fr=i}}}function $h(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Fr=i}function dc(i){if(i!==Fr)return!1;if(!Tn)return $h(i),Tn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!lf(i.type,i.memoizedProps)),a&&(a=Dr)){if(gf(i))throw Eh(),Error(n(418));for(;a;)xh(i,a),a=ci(a.nextSibling)}if($h(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="/$"){if(a===0){Dr=ci(i.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}i=i.nextSibling}Dr=null}}else Dr=Fr?ci(i.stateNode.nextSibling):null;return!0}function Eh(){for(var i=Dr;i;)i=ci(i.nextSibling)}function $a(){Dr=Fr=null,Tn=!1}function hf(i){uo===null?uo=[i]:uo.push(i)}var x$=O.ReactCurrentBatchConfig;function _l(i,a,d){if(i=d.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var v=d.stateNode}if(!v)throw Error(n(147,i));var x=v,E=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===E?a.ref:(a=function(N){var K=x.refs;N===null?delete K[E]:K[E]=N},a._stringRef=E,a)}if(typeof i!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,i))}return i}function fc(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Rh(i){var a=i._init;return a(i._payload)}function Oh(i){function a(de,ie){if(i){var ge=de.deletions;ge===null?(de.deletions=[ie],de.flags|=16):ge.push(ie)}}function d(de,ie){if(!i)return null;for(;ie!==null;)a(de,ie),ie=ie.sibling;return null}function v(de,ie){for(de=new Map;ie!==null;)ie.key!==null?de.set(ie.key,ie):de.set(ie.index,ie),ie=ie.sibling;return de}function x(de,ie){return de=Ci(de,ie),de.index=0,de.sibling=null,de}function E(de,ie,ge){return de.index=ge,i?(ge=de.alternate,ge!==null?(ge=ge.index,ge<ie?(de.flags|=2,ie):ge):(de.flags|=2,ie)):(de.flags|=1048576,ie)}function N(de){return i&&de.alternate===null&&(de.flags|=2),de}function K(de,ie,ge,Fe){return ie===null||ie.tag!==6?(ie=sm(ge,de.mode,Fe),ie.return=de,ie):(ie=x(ie,ge),ie.return=de,ie)}function te(de,ie,ge,Fe){var ht=ge.type;return ht===T?Me(de,ie,ge.props.children,Fe,ge.key):ie!==null&&(ie.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&Rh(ht)===ie.type)?(Fe=x(ie,ge.props),Fe.ref=_l(de,ie,ge),Fe.return=de,Fe):(Fe=zc(ge.type,ge.key,ge.props,null,de.mode,Fe),Fe.ref=_l(de,ie,ge),Fe.return=de,Fe)}function he(de,ie,ge,Fe){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ge.containerInfo||ie.stateNode.implementation!==ge.implementation?(ie=cm(ge,de.mode,Fe),ie.return=de,ie):(ie=x(ie,ge.children||[]),ie.return=de,ie)}function Me(de,ie,ge,Fe,ht){return ie===null||ie.tag!==7?(ie=qi(ge,de.mode,Fe,ht),ie.return=de,ie):(ie=x(ie,ge),ie.return=de,ie)}function ze(de,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=sm(""+ie,de.mode,ge),ie.return=de,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case I:return ge=zc(ie.type,ie.key,ie.props,null,de.mode,ge),ge.ref=_l(de,null,ie),ge.return=de,ge;case P:return ie=cm(ie,de.mode,ge),ie.return=de,ie;case V:var Fe=ie._init;return ze(de,Fe(ie._payload),ge)}if(je(ie)||Z(ie))return ie=qi(ie,de.mode,ge,null),ie.return=de,ie;fc(de,ie)}return null}function Ie(de,ie,ge,Fe){var ht=ie!==null?ie.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ht!==null?null:K(de,ie,""+ge,Fe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case I:return ge.key===ht?te(de,ie,ge,Fe):null;case P:return ge.key===ht?he(de,ie,ge,Fe):null;case V:return ht=ge._init,Ie(de,ie,ht(ge._payload),Fe)}if(je(ge)||Z(ge))return ht!==null?null:Me(de,ie,ge,Fe,null);fc(de,ge)}return null}function ot(de,ie,ge,Fe,ht){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number")return de=de.get(ge)||null,K(ie,de,""+Fe,ht);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case I:return de=de.get(Fe.key===null?ge:Fe.key)||null,te(ie,de,Fe,ht);case P:return de=de.get(Fe.key===null?ge:Fe.key)||null,he(ie,de,Fe,ht);case V:var Et=Fe._init;return ot(de,ie,ge,Et(Fe._payload),ht)}if(je(Fe)||Z(Fe))return de=de.get(ge)||null,Me(ie,de,Fe,ht,null);fc(ie,Fe)}return null}function gt(de,ie,ge,Fe){for(var ht=null,Et=null,Rt=ie,Nt=ie=0,rr=null;Rt!==null&&Nt<ge.length;Nt++){Rt.index>Nt?(rr=Rt,Rt=null):rr=Rt.sibling;var sn=Ie(de,Rt,ge[Nt],Fe);if(sn===null){Rt===null&&(Rt=rr);break}i&&Rt&&sn.alternate===null&&a(de,Rt),ie=E(sn,ie,Nt),Et===null?ht=sn:Et.sibling=sn,Et=sn,Rt=rr}if(Nt===ge.length)return d(de,Rt),Tn&&Bi(de,Nt),ht;if(Rt===null){for(;Nt<ge.length;Nt++)Rt=ze(de,ge[Nt],Fe),Rt!==null&&(ie=E(Rt,ie,Nt),Et===null?ht=Rt:Et.sibling=Rt,Et=Rt);return Tn&&Bi(de,Nt),ht}for(Rt=v(de,Rt);Nt<ge.length;Nt++)rr=ot(Rt,de,Nt,ge[Nt],Fe),rr!==null&&(i&&rr.alternate!==null&&Rt.delete(rr.key===null?Nt:rr.key),ie=E(rr,ie,Nt),Et===null?ht=rr:Et.sibling=rr,Et=rr);return i&&Rt.forEach(function(Si){return a(de,Si)}),Tn&&Bi(de,Nt),ht}function vt(de,ie,ge,Fe){var ht=Z(ge);if(typeof ht!="function")throw Error(n(150));if(ge=ht.call(ge),ge==null)throw Error(n(151));for(var Et=ht=null,Rt=ie,Nt=ie=0,rr=null,sn=ge.next();Rt!==null&&!sn.done;Nt++,sn=ge.next()){Rt.index>Nt?(rr=Rt,Rt=null):rr=Rt.sibling;var Si=Ie(de,Rt,sn.value,Fe);if(Si===null){Rt===null&&(Rt=rr);break}i&&Rt&&Si.alternate===null&&a(de,Rt),ie=E(Si,ie,Nt),Et===null?ht=Si:Et.sibling=Si,Et=Si,Rt=rr}if(sn.done)return d(de,Rt),Tn&&Bi(de,Nt),ht;if(Rt===null){for(;!sn.done;Nt++,sn=ge.next())sn=ze(de,sn.value,Fe),sn!==null&&(ie=E(sn,ie,Nt),Et===null?ht=sn:Et.sibling=sn,Et=sn);return Tn&&Bi(de,Nt),ht}for(Rt=v(de,Rt);!sn.done;Nt++,sn=ge.next())sn=ot(Rt,de,Nt,sn.value,Fe),sn!==null&&(i&&sn.alternate!==null&&Rt.delete(sn.key===null?Nt:sn.key),ie=E(sn,ie,Nt),Et===null?ht=sn:Et.sibling=sn,Et=sn);return i&&Rt.forEach(function(tE){return a(de,tE)}),Tn&&Bi(de,Nt),ht}function Bn(de,ie,ge,Fe){if(typeof ge=="object"&&ge!==null&&ge.type===T&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case I:e:{for(var ht=ge.key,Et=ie;Et!==null;){if(Et.key===ht){if(ht=ge.type,ht===T){if(Et.tag===7){d(de,Et.sibling),ie=x(Et,ge.props.children),ie.return=de,de=ie;break e}}else if(Et.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===V&&Rh(ht)===Et.type){d(de,Et.sibling),ie=x(Et,ge.props),ie.ref=_l(de,Et,ge),ie.return=de,de=ie;break e}d(de,Et);break}else a(de,Et);Et=Et.sibling}ge.type===T?(ie=qi(ge.props.children,de.mode,Fe,ge.key),ie.return=de,de=ie):(Fe=zc(ge.type,ge.key,ge.props,null,de.mode,Fe),Fe.ref=_l(de,ie,ge),Fe.return=de,de=Fe)}return N(de);case P:e:{for(Et=ge.key;ie!==null;){if(ie.key===Et)if(ie.tag===4&&ie.stateNode.containerInfo===ge.containerInfo&&ie.stateNode.implementation===ge.implementation){d(de,ie.sibling),ie=x(ie,ge.children||[]),ie.return=de,de=ie;break e}else{d(de,ie);break}else a(de,ie);ie=ie.sibling}ie=cm(ge,de.mode,Fe),ie.return=de,de=ie}return N(de);case V:return Et=ge._init,Bn(de,ie,Et(ge._payload),Fe)}if(je(ge))return gt(de,ie,ge,Fe);if(Z(ge))return vt(de,ie,ge,Fe);fc(de,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ie!==null&&ie.tag===6?(d(de,ie.sibling),ie=x(ie,ge),ie.return=de,de=ie):(d(de,ie),ie=sm(ge,de.mode,Fe),ie.return=de,de=ie),N(de)):d(de,ie)}return Bn}var Ea=Oh(!0),Ih=Oh(!1),mc=ui(null),pc=null,Ra=null,yf=null;function bf(){yf=Ra=pc=null}function Cf(i){var a=mc.current;Pn(mc),i._currentValue=a}function Sf(i,a,d){for(;i!==null;){var v=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,v!==null&&(v.childLanes|=a)):v!==null&&(v.childLanes&a)!==a&&(v.childLanes|=a),i===d)break;i=i.return}}function Oa(i,a){pc=i,yf=Ra=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Nr=!0),i.firstContext=null)}function Qr(i){var a=i._currentValue;if(yf!==i)if(i={context:i,memoizedValue:a,next:null},Ra===null){if(pc===null)throw Error(n(308));Ra=i,pc.dependencies={lanes:0,firstContext:i}}else Ra=Ra.next=i;return a}var Ai=null;function xf(i){Ai===null?Ai=[i]:Ai.push(i)}function Ph(i,a,d,v){var x=a.interleaved;return x===null?(d.next=d,xf(a)):(d.next=x.next,x.next=d),a.interleaved=d,qo(i,v)}function qo(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var mi=!1;function wf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Th(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Go(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function pi(i,a,d){var v=i.updateQueue;if(v===null)return null;if(v=v.shared,(rn&2)!==0){var x=v.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),v.pending=a,qo(i,d)}return x=v.interleaved,x===null?(a.next=a,xf(v)):(a.next=x.next,x.next=a),v.interleaved=a,qo(i,d)}function gc(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var v=a.lanes;v&=i.pendingLanes,d|=v,a.lanes=d,Ln(i,d)}}function Mh(i,a){var d=i.updateQueue,v=i.alternate;if(v!==null&&(v=v.updateQueue,d===v)){var x=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var N={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};E===null?x=E=N:E=E.next=N,d=d.next}while(d!==null);E===null?x=E=a:E=E.next=a}else x=E=a;d={baseState:v.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:v.shared,effects:v.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function vc(i,a,d,v){var x=i.updateQueue;mi=!1;var E=x.firstBaseUpdate,N=x.lastBaseUpdate,K=x.shared.pending;if(K!==null){x.shared.pending=null;var te=K,he=te.next;te.next=null,N===null?E=he:N.next=he,N=te;var Me=i.alternate;Me!==null&&(Me=Me.updateQueue,K=Me.lastBaseUpdate,K!==N&&(K===null?Me.firstBaseUpdate=he:K.next=he,Me.lastBaseUpdate=te))}if(E!==null){var ze=x.baseState;N=0,Me=he=te=null,K=E;do{var Ie=K.lane,ot=K.eventTime;if((v&Ie)===Ie){Me!==null&&(Me=Me.next={eventTime:ot,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var gt=i,vt=K;switch(Ie=a,ot=d,vt.tag){case 1:if(gt=vt.payload,typeof gt=="function"){ze=gt.call(ot,ze,Ie);break e}ze=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=vt.payload,Ie=typeof gt=="function"?gt.call(ot,ze,Ie):gt,Ie==null)break e;ze=W({},ze,Ie);break e;case 2:mi=!0}}K.callback!==null&&K.lane!==0&&(i.flags|=64,Ie=x.effects,Ie===null?x.effects=[K]:Ie.push(K))}else ot={eventTime:ot,lane:Ie,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Me===null?(he=Me=ot,te=ze):Me=Me.next=ot,N|=Ie;if(K=K.next,K===null){if(K=x.shared.pending,K===null)break;Ie=K,K=Ie.next,Ie.next=null,x.lastBaseUpdate=Ie,x.shared.pending=null}}while(!0);if(Me===null&&(te=ze),x.baseState=te,x.firstBaseUpdate=he,x.lastBaseUpdate=Me,a=x.shared.interleaved,a!==null){x=a;do N|=x.lane,x=x.next;while(x!==a)}else E===null&&(x.shared.lanes=0);Hi|=N,i.lanes=N,i.memoizedState=ze}}function jh(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var v=i[a],x=v.callback;if(x!==null){if(v.callback=null,v=d,typeof x!="function")throw Error(n(191,x));x.call(v)}}}var zl={},Ro=ui(zl),Ll=ui(zl),Bl=ui(zl);function Fi(i){if(i===zl)throw Error(n(174));return i}function $f(i,a){switch(Rn(Bl,a),Rn(Ll,i),Rn(Ro,zl),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:bt(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=bt(a,i)}Pn(Ro),Rn(Ro,a)}function Ia(){Pn(Ro),Pn(Ll),Pn(Bl)}function kh(i){Fi(Bl.current);var a=Fi(Ro.current),d=bt(a,i.type);a!==d&&(Rn(Ll,i),Rn(Ro,d))}function Ef(i){Ll.current===i&&(Pn(Ro),Pn(Ll))}var jn=ui(0);function hc(i){for(var a=i;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Rf=[];function Of(){for(var i=0;i<Rf.length;i++)Rf[i]._workInProgressVersionPrimary=null;Rf.length=0}var yc=O.ReactCurrentDispatcher,If=O.ReactCurrentBatchConfig,Di=0,kn=null,Qn=null,tr=null,bc=!1,Al=!1,Fl=0,w$=0;function gr(){throw Error(n(321))}function Pf(i,a){if(a===null)return!1;for(var d=0;d<a.length&&d<i.length;d++)if(!co(i[d],a[d]))return!1;return!0}function Tf(i,a,d,v,x,E){if(Di=E,kn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,yc.current=i===null||i.memoizedState===null?O$:I$,i=d(v,x),Al){E=0;do{if(Al=!1,Fl=0,25<=E)throw Error(n(301));E+=1,tr=Qn=null,a.updateQueue=null,yc.current=P$,i=d(v,x)}while(Al)}if(yc.current=xc,a=Qn!==null&&Qn.next!==null,Di=0,tr=Qn=kn=null,bc=!1,a)throw Error(n(300));return i}function Mf(){var i=Fl!==0;return Fl=0,i}function Oo(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tr===null?kn.memoizedState=tr=i:tr=tr.next=i,tr}function Yr(){if(Qn===null){var i=kn.alternate;i=i!==null?i.memoizedState:null}else i=Qn.next;var a=tr===null?kn.memoizedState:tr.next;if(a!==null)tr=a,Qn=i;else{if(i===null)throw Error(n(310));Qn=i,i={memoizedState:Qn.memoizedState,baseState:Qn.baseState,baseQueue:Qn.baseQueue,queue:Qn.queue,next:null},tr===null?kn.memoizedState=tr=i:tr=tr.next=i}return tr}function Dl(i,a){return typeof a=="function"?a(i):a}function jf(i){var a=Yr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var v=Qn,x=v.baseQueue,E=d.pending;if(E!==null){if(x!==null){var N=x.next;x.next=E.next,E.next=N}v.baseQueue=x=E,d.pending=null}if(x!==null){E=x.next,v=v.baseState;var K=N=null,te=null,he=E;do{var Me=he.lane;if((Di&Me)===Me)te!==null&&(te=te.next={lane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),v=he.hasEagerState?he.eagerState:i(v,he.action);else{var ze={lane:Me,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};te===null?(K=te=ze,N=v):te=te.next=ze,kn.lanes|=Me,Hi|=Me}he=he.next}while(he!==null&&he!==E);te===null?N=v:te.next=K,co(v,a.memoizedState)||(Nr=!0),a.memoizedState=v,a.baseState=N,a.baseQueue=te,d.lastRenderedState=v}if(i=d.interleaved,i!==null){x=i;do E=x.lane,kn.lanes|=E,Hi|=E,x=x.next;while(x!==i)}else x===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function kf(i){var a=Yr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var v=d.dispatch,x=d.pending,E=a.memoizedState;if(x!==null){d.pending=null;var N=x=x.next;do E=i(E,N.action),N=N.next;while(N!==x);co(E,a.memoizedState)||(Nr=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),d.lastRenderedState=E}return[E,v]}function Nh(){}function _h(i,a){var d=kn,v=Yr(),x=a(),E=!co(v.memoizedState,x);if(E&&(v.memoizedState=x,Nr=!0),v=v.queue,Nf(Bh.bind(null,d,v,i),[i]),v.getSnapshot!==a||E||tr!==null&&tr.memoizedState.tag&1){if(d.flags|=2048,Hl(9,Lh.bind(null,d,v,x,a),void 0,null),nr===null)throw Error(n(349));(Di&30)!==0||zh(d,a,x)}return x}function zh(i,a,d){i.flags|=16384,i={getSnapshot:a,value:d},a=kn.updateQueue,a===null?(a={lastEffect:null,stores:null},kn.updateQueue=a,a.stores=[i]):(d=a.stores,d===null?a.stores=[i]:d.push(i))}function Lh(i,a,d,v){a.value=d,a.getSnapshot=v,Ah(a)&&Fh(i)}function Bh(i,a,d){return d(function(){Ah(a)&&Fh(i)})}function Ah(i){var a=i.getSnapshot;i=i.value;try{var d=a();return!co(i,d)}catch{return!0}}function Fh(i){var a=qo(i,1);a!==null&&go(a,i,1,-1)}function Dh(i){var a=Oo();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dl,lastRenderedState:i},a.queue=i,i=i.dispatch=R$.bind(null,kn,i),[a.memoizedState,i]}function Hl(i,a,d,v){return i={tag:i,create:a,destroy:d,deps:v,next:null},a=kn.updateQueue,a===null?(a={lastEffect:null,stores:null},kn.updateQueue=a,a.lastEffect=i.next=i):(d=a.lastEffect,d===null?a.lastEffect=i.next=i:(v=d.next,d.next=i,i.next=v,a.lastEffect=i)),i}function Hh(){return Yr().memoizedState}function Cc(i,a,d,v){var x=Oo();kn.flags|=i,x.memoizedState=Hl(1|a,d,void 0,v===void 0?null:v)}function Sc(i,a,d,v){var x=Yr();v=v===void 0?null:v;var E=void 0;if(Qn!==null){var N=Qn.memoizedState;if(E=N.destroy,v!==null&&Pf(v,N.deps)){x.memoizedState=Hl(a,d,E,v);return}}kn.flags|=i,x.memoizedState=Hl(1|a,d,E,v)}function Vh(i,a){return Cc(8390656,8,i,a)}function Nf(i,a){return Sc(2048,8,i,a)}function Wh(i,a){return Sc(4,2,i,a)}function Uh(i,a){return Sc(4,4,i,a)}function qh(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function Gh(i,a,d){return d=d!=null?d.concat([i]):null,Sc(4,4,qh.bind(null,a,i),d)}function _f(){}function Kh(i,a){var d=Yr();a=a===void 0?null:a;var v=d.memoizedState;return v!==null&&a!==null&&Pf(a,v[1])?v[0]:(d.memoizedState=[i,a],i)}function Xh(i,a){var d=Yr();a=a===void 0?null:a;var v=d.memoizedState;return v!==null&&a!==null&&Pf(a,v[1])?v[0]:(i=i(),d.memoizedState=[i,a],i)}function Qh(i,a,d){return(Di&21)===0?(i.baseState&&(i.baseState=!1,Nr=!0),i.memoizedState=d):(co(d,a)||(d=Jt(),kn.lanes|=d,Hi|=d,i.baseState=!0),a)}function $$(i,a){var d=_t;_t=d!==0&&4>d?d:4,i(!0);var v=If.transition;If.transition={};try{i(!1),a()}finally{_t=d,If.transition=v}}function Yh(){return Yr().memoizedState}function E$(i,a,d){var v=yi(i);if(d={lane:v,action:d,hasEagerState:!1,eagerState:null,next:null},Zh(i))Jh(a,d);else if(d=Ph(i,a,d,v),d!==null){var x=$r();go(d,i,v,x),e0(d,a,v)}}function R$(i,a,d){var v=yi(i),x={lane:v,action:d,hasEagerState:!1,eagerState:null,next:null};if(Zh(i))Jh(a,x);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var N=a.lastRenderedState,K=E(N,d);if(x.hasEagerState=!0,x.eagerState=K,co(K,N)){var te=a.interleaved;te===null?(x.next=x,xf(a)):(x.next=te.next,te.next=x),a.interleaved=x;return}}catch{}finally{}d=Ph(i,a,x,v),d!==null&&(x=$r(),go(d,i,v,x),e0(d,a,v))}}function Zh(i){var a=i.alternate;return i===kn||a!==null&&a===kn}function Jh(i,a){Al=bc=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function e0(i,a,d){if((d&4194240)!==0){var v=a.lanes;v&=i.pendingLanes,d|=v,a.lanes=d,Ln(i,d)}}var xc={readContext:Qr,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},O$={readContext:Qr,useCallback:function(i,a){return Oo().memoizedState=[i,a===void 0?null:a],i},useContext:Qr,useEffect:Vh,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,Cc(4194308,4,qh.bind(null,a,i),d)},useLayoutEffect:function(i,a){return Cc(4194308,4,i,a)},useInsertionEffect:function(i,a){return Cc(4,2,i,a)},useMemo:function(i,a){var d=Oo();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var v=Oo();return a=d!==void 0?d(a):a,v.memoizedState=v.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},v.queue=i,i=i.dispatch=E$.bind(null,kn,i),[v.memoizedState,i]},useRef:function(i){var a=Oo();return i={current:i},a.memoizedState=i},useState:Dh,useDebugValue:_f,useDeferredValue:function(i){return Oo().memoizedState=i},useTransition:function(){var i=Dh(!1),a=i[0];return i=$$.bind(null,i[1]),Oo().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var v=kn,x=Oo();if(Tn){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),nr===null)throw Error(n(349));(Di&30)!==0||zh(v,a,d)}x.memoizedState=d;var E={value:d,getSnapshot:a};return x.queue=E,Vh(Bh.bind(null,v,E,i),[i]),v.flags|=2048,Hl(9,Lh.bind(null,v,E,d,a),void 0,null),d},useId:function(){var i=Oo(),a=nr.identifierPrefix;if(Tn){var d=Uo,v=Wo;d=(v&~(1<<32-$n(v)-1)).toString(32)+d,a=":"+a+"R"+d,d=Fl++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=w$++,a=":"+a+"r"+d.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},I$={readContext:Qr,useCallback:Kh,useContext:Qr,useEffect:Nf,useImperativeHandle:Gh,useInsertionEffect:Wh,useLayoutEffect:Uh,useMemo:Xh,useReducer:jf,useRef:Hh,useState:function(){return jf(Dl)},useDebugValue:_f,useDeferredValue:function(i){var a=Yr();return Qh(a,Qn.memoizedState,i)},useTransition:function(){var i=jf(Dl)[0],a=Yr().memoizedState;return[i,a]},useMutableSource:Nh,useSyncExternalStore:_h,useId:Yh,unstable_isNewReconciler:!1},P$={readContext:Qr,useCallback:Kh,useContext:Qr,useEffect:Nf,useImperativeHandle:Gh,useInsertionEffect:Wh,useLayoutEffect:Uh,useMemo:Xh,useReducer:kf,useRef:Hh,useState:function(){return kf(Dl)},useDebugValue:_f,useDeferredValue:function(i){var a=Yr();return Qn===null?a.memoizedState=i:Qh(a,Qn.memoizedState,i)},useTransition:function(){var i=kf(Dl)[0],a=Yr().memoizedState;return[i,a]},useMutableSource:Nh,useSyncExternalStore:_h,useId:Yh,unstable_isNewReconciler:!1};function fo(i,a){if(i&&i.defaultProps){a=W({},a),i=i.defaultProps;for(var d in i)a[d]===void 0&&(a[d]=i[d]);return a}return a}function zf(i,a,d,v){a=i.memoizedState,d=d(v,a),d=d==null?a:W({},a,d),i.memoizedState=d,i.lanes===0&&(i.updateQueue.baseState=d)}var wc={isMounted:function(i){return(i=i._reactInternals)?Pt(i)===i:!1},enqueueSetState:function(i,a,d){i=i._reactInternals;var v=$r(),x=yi(i),E=Go(v,x);E.payload=a,d!=null&&(E.callback=d),a=pi(i,E,x),a!==null&&(go(a,i,x,v),gc(a,i,x))},enqueueReplaceState:function(i,a,d){i=i._reactInternals;var v=$r(),x=yi(i),E=Go(v,x);E.tag=1,E.payload=a,d!=null&&(E.callback=d),a=pi(i,E,x),a!==null&&(go(a,i,x,v),gc(a,i,x))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var d=$r(),v=yi(i),x=Go(d,v);x.tag=2,a!=null&&(x.callback=a),a=pi(i,x,v),a!==null&&(go(a,i,v,d),gc(a,i,v))}};function t0(i,a,d,v,x,E,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(v,E,N):a.prototype&&a.prototype.isPureReactComponent?!Il(d,v)||!Il(x,E):!0}function n0(i,a,d){var v=!1,x=di,E=a.contextType;return typeof E=="object"&&E!==null?E=Qr(E):(x=kr(a)?zi:pr.current,v=a.contextTypes,E=(v=v!=null)?Sa(i,x):di),a=new a(d,E),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=wc,i.stateNode=a,a._reactInternals=i,v&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=x,i.__reactInternalMemoizedMaskedChildContext=E),a}function r0(i,a,d,v){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,v),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,v),a.state!==i&&wc.enqueueReplaceState(a,a.state,null)}function Lf(i,a,d,v){var x=i.stateNode;x.props=d,x.state=i.memoizedState,x.refs={},wf(i);var E=a.contextType;typeof E=="object"&&E!==null?x.context=Qr(E):(E=kr(a)?zi:pr.current,x.context=Sa(i,E)),x.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(zf(i,a,E,d),x.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&wc.enqueueReplaceState(x,x.state,null),vc(i,d,x,v),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308)}function Pa(i,a){try{var d="",v=a;do d+=ee(v),v=v.return;while(v);var x=d}catch(E){x=`
39
+ Error generating stack: `+E.message+`
40
+ `+E.stack}return{value:i,source:a,stack:x,digest:null}}function Bf(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function Af(i,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var T$=typeof WeakMap=="function"?WeakMap:Map;function o0(i,a,d){d=Go(-1,d),d.tag=3,d.payload={element:null};var v=a.value;return d.callback=function(){Tc||(Tc=!0,em=v),Af(i,a)},d}function i0(i,a,d){d=Go(-1,d),d.tag=3;var v=i.type.getDerivedStateFromError;if(typeof v=="function"){var x=a.value;d.payload=function(){return v(x)},d.callback=function(){Af(i,a)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(d.callback=function(){Af(i,a),typeof v!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var N=a.stack;this.componentDidCatch(a.value,{componentStack:N!==null?N:""})}),d}function a0(i,a,d){var v=i.pingCache;if(v===null){v=i.pingCache=new T$;var x=new Set;v.set(a,x)}else x=v.get(a),x===void 0&&(x=new Set,v.set(a,x));x.has(d)||(x.add(d),i=W$.bind(null,i,a,d),a.then(i,i))}function l0(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function s0(i,a,d,v,x){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=Go(-1,1),a.tag=2,pi(d,a,1))),d.lanes|=1),i):(i.flags|=65536,i.lanes=x,i)}var M$=O.ReactCurrentOwner,Nr=!1;function wr(i,a,d,v){a.child=i===null?Ih(a,null,d,v):Ea(a,i.child,d,v)}function c0(i,a,d,v,x){d=d.render;var E=a.ref;return Oa(a,x),v=Tf(i,a,d,v,E,x),d=Mf(),i!==null&&!Nr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,Ko(i,a,x)):(Tn&&d&&mf(a),a.flags|=1,wr(i,a,v,x),a.child)}function u0(i,a,d,v,x){if(i===null){var E=d.type;return typeof E=="function"&&!lm(E)&&E.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=E,d0(i,a,E,v,x)):(i=zc(d.type,null,v,a,a.mode,x),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,(i.lanes&x)===0){var N=E.memoizedProps;if(d=d.compare,d=d!==null?d:Il,d(N,v)&&i.ref===a.ref)return Ko(i,a,x)}return a.flags|=1,i=Ci(E,v),i.ref=a.ref,i.return=a,a.child=i}function d0(i,a,d,v,x){if(i!==null){var E=i.memoizedProps;if(Il(E,v)&&i.ref===a.ref)if(Nr=!1,a.pendingProps=v=E,(i.lanes&x)!==0)(i.flags&131072)!==0&&(Nr=!0);else return a.lanes=i.lanes,Ko(i,a,x)}return Ff(i,a,d,v,x)}function f0(i,a,d){var v=a.pendingProps,x=v.children,E=i!==null?i.memoizedState:null;if(v.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rn(Ma,Hr),Hr|=d;else{if((d&1073741824)===0)return i=E!==null?E.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,Rn(Ma,Hr),Hr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=E!==null?E.baseLanes:d,Rn(Ma,Hr),Hr|=v}else E!==null?(v=E.baseLanes|d,a.memoizedState=null):v=d,Rn(Ma,Hr),Hr|=v;return wr(i,a,x,d),a.child}function m0(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function Ff(i,a,d,v,x){var E=kr(d)?zi:pr.current;return E=Sa(a,E),Oa(a,x),d=Tf(i,a,d,v,E,x),v=Mf(),i!==null&&!Nr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,Ko(i,a,x)):(Tn&&v&&mf(a),a.flags|=1,wr(i,a,d,x),a.child)}function p0(i,a,d,v,x){if(kr(d)){var E=!0;lc(a)}else E=!1;if(Oa(a,x),a.stateNode===null)Ec(i,a),n0(a,d,v),Lf(a,d,v,x),v=!0;else if(i===null){var N=a.stateNode,K=a.memoizedProps;N.props=K;var te=N.context,he=d.contextType;typeof he=="object"&&he!==null?he=Qr(he):(he=kr(d)?zi:pr.current,he=Sa(a,he));var Me=d.getDerivedStateFromProps,ze=typeof Me=="function"||typeof N.getSnapshotBeforeUpdate=="function";ze||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(K!==v||te!==he)&&r0(a,N,v,he),mi=!1;var Ie=a.memoizedState;N.state=Ie,vc(a,v,N,x),te=a.memoizedState,K!==v||Ie!==te||jr.current||mi?(typeof Me=="function"&&(zf(a,d,Me,v),te=a.memoizedState),(K=mi||t0(a,d,K,v,Ie,te,he))?(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=v,a.memoizedState=te),N.props=v,N.state=te,N.context=he,v=K):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),v=!1)}else{N=a.stateNode,Th(i,a),K=a.memoizedProps,he=a.type===a.elementType?K:fo(a.type,K),N.props=he,ze=a.pendingProps,Ie=N.context,te=d.contextType,typeof te=="object"&&te!==null?te=Qr(te):(te=kr(d)?zi:pr.current,te=Sa(a,te));var ot=d.getDerivedStateFromProps;(Me=typeof ot=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(K!==ze||Ie!==te)&&r0(a,N,v,te),mi=!1,Ie=a.memoizedState,N.state=Ie,vc(a,v,N,x);var gt=a.memoizedState;K!==ze||Ie!==gt||jr.current||mi?(typeof ot=="function"&&(zf(a,d,ot,v),gt=a.memoizedState),(he=mi||t0(a,d,he,v,Ie,gt,te)||!1)?(Me||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(v,gt,te),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(v,gt,te)),typeof N.componentDidUpdate=="function"&&(a.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof N.componentDidUpdate!="function"||K===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||K===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=1024),a.memoizedProps=v,a.memoizedState=gt),N.props=v,N.state=gt,N.context=te,v=he):(typeof N.componentDidUpdate!="function"||K===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||K===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=1024),v=!1)}return Df(i,a,d,v,E,x)}function Df(i,a,d,v,x,E){m0(i,a);var N=(a.flags&128)!==0;if(!v&&!N)return x&&bh(a,d,!1),Ko(i,a,E);v=a.stateNode,M$.current=a;var K=N&&typeof d.getDerivedStateFromError!="function"?null:v.render();return a.flags|=1,i!==null&&N?(a.child=Ea(a,i.child,null,E),a.child=Ea(a,null,K,E)):wr(i,a,K,E),a.memoizedState=v.state,x&&bh(a,d,!0),a.child}function g0(i){var a=i.stateNode;a.pendingContext?hh(i,a.pendingContext,a.pendingContext!==a.context):a.context&&hh(i,a.context,!1),$f(i,a.containerInfo)}function v0(i,a,d,v,x){return $a(),hf(x),a.flags|=256,wr(i,a,d,v),a.child}var Hf={dehydrated:null,treeContext:null,retryLane:0};function Vf(i){return{baseLanes:i,cachePool:null,transitions:null}}function h0(i,a,d){var v=a.pendingProps,x=jn.current,E=!1,N=(a.flags&128)!==0,K;if((K=N)||(K=i!==null&&i.memoizedState===null?!1:(x&2)!==0),K?(E=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(x|=1),Rn(jn,x&1),i===null)return vf(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(N=v.children,i=v.fallback,E?(v=a.mode,E=a.child,N={mode:"hidden",children:N},(v&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=N):E=Lc(N,v,0,null),i=qi(i,v,d,null),E.return=a,i.return=a,E.sibling=i,a.child=E,a.child.memoizedState=Vf(d),a.memoizedState=Hf,i):Wf(a,N));if(x=i.memoizedState,x!==null&&(K=x.dehydrated,K!==null))return j$(i,a,N,v,K,x,d);if(E){E=v.fallback,N=a.mode,x=i.child,K=x.sibling;var te={mode:"hidden",children:v.children};return(N&1)===0&&a.child!==x?(v=a.child,v.childLanes=0,v.pendingProps=te,a.deletions=null):(v=Ci(x,te),v.subtreeFlags=x.subtreeFlags&14680064),K!==null?E=Ci(K,E):(E=qi(E,N,d,null),E.flags|=2),E.return=a,v.return=a,v.sibling=E,a.child=v,v=E,E=a.child,N=i.child.memoizedState,N=N===null?Vf(d):{baseLanes:N.baseLanes|d,cachePool:null,transitions:N.transitions},E.memoizedState=N,E.childLanes=i.childLanes&~d,a.memoizedState=Hf,v}return E=i.child,i=E.sibling,v=Ci(E,{mode:"visible",children:v.children}),(a.mode&1)===0&&(v.lanes=d),v.return=a,v.sibling=null,i!==null&&(d=a.deletions,d===null?(a.deletions=[i],a.flags|=16):d.push(i)),a.child=v,a.memoizedState=null,v}function Wf(i,a){return a=Lc({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function $c(i,a,d,v){return v!==null&&hf(v),Ea(a,i.child,null,d),i=Wf(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function j$(i,a,d,v,x,E,N){if(d)return a.flags&256?(a.flags&=-257,v=Bf(Error(n(422))),$c(i,a,N,v)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(E=v.fallback,x=a.mode,v=Lc({mode:"visible",children:v.children},x,0,null),E=qi(E,x,N,null),E.flags|=2,v.return=a,E.return=a,v.sibling=E,a.child=v,(a.mode&1)!==0&&Ea(a,i.child,null,N),a.child.memoizedState=Vf(N),a.memoizedState=Hf,E);if((a.mode&1)===0)return $c(i,a,N,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var K=v.dgst;return v=K,E=Error(n(419)),v=Bf(E,v,void 0),$c(i,a,N,v)}if(K=(N&i.childLanes)!==0,Nr||K){if(v=nr,v!==null){switch(N&-N){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(v.suspendedLanes|N))!==0?0:x,x!==0&&x!==E.retryLane&&(E.retryLane=x,qo(i,x),go(v,i,x,-1))}return am(),v=Bf(Error(n(421))),$c(i,a,N,v)}return x.data==="$?"?(a.flags|=128,a.child=i.child,a=U$.bind(null,i),x._reactRetry=a,null):(i=E.treeContext,Dr=ci(x.nextSibling),Fr=a,Tn=!0,uo=null,i!==null&&(Kr[Xr++]=Wo,Kr[Xr++]=Uo,Kr[Xr++]=Li,Wo=i.id,Uo=i.overflow,Li=a),a=Wf(a,v.children),a.flags|=4096,a)}function y0(i,a,d){i.lanes|=a;var v=i.alternate;v!==null&&(v.lanes|=a),Sf(i.return,a,d)}function Uf(i,a,d,v,x){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:v,tail:d,tailMode:x}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=v,E.tail=d,E.tailMode=x)}function b0(i,a,d){var v=a.pendingProps,x=v.revealOrder,E=v.tail;if(wr(i,a,v.children,d),v=jn.current,(v&2)!==0)v=v&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&y0(i,d,a);else if(i.tag===19)y0(i,d,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}v&=1}if(Rn(jn,v),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(d=a.child,x=null;d!==null;)i=d.alternate,i!==null&&hc(i)===null&&(x=d),d=d.sibling;d=x,d===null?(x=a.child,a.child=null):(x=d.sibling,d.sibling=null),Uf(a,!1,x,d,E);break;case"backwards":for(d=null,x=a.child,a.child=null;x!==null;){if(i=x.alternate,i!==null&&hc(i)===null){a.child=x;break}i=x.sibling,x.sibling=d,d=x,x=i}Uf(a,!0,d,null,E);break;case"together":Uf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ec(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Ko(i,a,d){if(i!==null&&(a.dependencies=i.dependencies),Hi|=a.lanes,(d&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,d=Ci(i,i.pendingProps),a.child=d,d.return=a;i.sibling!==null;)i=i.sibling,d=d.sibling=Ci(i,i.pendingProps),d.return=a;d.sibling=null}return a.child}function k$(i,a,d){switch(a.tag){case 3:g0(a),$a();break;case 5:kh(a);break;case 1:kr(a.type)&&lc(a);break;case 4:$f(a,a.stateNode.containerInfo);break;case 10:var v=a.type._context,x=a.memoizedProps.value;Rn(mc,v._currentValue),v._currentValue=x;break;case 13:if(v=a.memoizedState,v!==null)return v.dehydrated!==null?(Rn(jn,jn.current&1),a.flags|=128,null):(d&a.child.childLanes)!==0?h0(i,a,d):(Rn(jn,jn.current&1),i=Ko(i,a,d),i!==null?i.sibling:null);Rn(jn,jn.current&1);break;case 19:if(v=(d&a.childLanes)!==0,(i.flags&128)!==0){if(v)return b0(i,a,d);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Rn(jn,jn.current),v)break;return null;case 22:case 23:return a.lanes=0,f0(i,a,d)}return Ko(i,a,d)}var C0,qf,S0,x0;C0=function(i,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},qf=function(){},S0=function(i,a,d,v){var x=i.memoizedProps;if(x!==v){i=a.stateNode,Fi(Ro.current);var E=null;switch(d){case"input":x=ve(i,x),v=ve(i,v),E=[];break;case"select":x=W({},x,{value:void 0}),v=W({},v,{value:void 0}),E=[];break;case"textarea":x=Pe(i,x),v=Pe(i,v),E=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(i.onclick=oc)}Te(d,v);var N;d=null;for(he in x)if(!v.hasOwnProperty(he)&&x.hasOwnProperty(he)&&x[he]!=null)if(he==="style"){var K=x[he];for(N in K)K.hasOwnProperty(N)&&(d||(d={}),d[N]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(o.hasOwnProperty(he)?E||(E=[]):(E=E||[]).push(he,null));for(he in v){var te=v[he];if(K=x!=null?x[he]:void 0,v.hasOwnProperty(he)&&te!==K&&(te!=null||K!=null))if(he==="style")if(K){for(N in K)!K.hasOwnProperty(N)||te&&te.hasOwnProperty(N)||(d||(d={}),d[N]="");for(N in te)te.hasOwnProperty(N)&&K[N]!==te[N]&&(d||(d={}),d[N]=te[N])}else d||(E||(E=[]),E.push(he,d)),d=te;else he==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,K=K?K.__html:void 0,te!=null&&K!==te&&(E=E||[]).push(he,te)):he==="children"?typeof te!="string"&&typeof te!="number"||(E=E||[]).push(he,""+te):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(o.hasOwnProperty(he)?(te!=null&&he==="onScroll"&&In("scroll",i),E||K===te||(E=[])):(E=E||[]).push(he,te))}d&&(E=E||[]).push("style",d);var he=E;(a.updateQueue=he)&&(a.flags|=4)}},x0=function(i,a,d,v){d!==v&&(a.flags|=4)};function Vl(i,a){if(!Tn)switch(i.tailMode){case"hidden":a=i.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i.tail=null:d.sibling=null;break;case"collapsed":d=i.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:v.sibling=null}}function vr(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=0,v=0;if(a)for(var x=i.child;x!==null;)d|=x.lanes|x.childLanes,v|=x.subtreeFlags&14680064,v|=x.flags&14680064,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)d|=x.lanes|x.childLanes,v|=x.subtreeFlags,v|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=v,i.childLanes=d,a}function N$(i,a,d){var v=a.pendingProps;switch(pf(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(a),null;case 1:return kr(a.type)&&ac(),vr(a),null;case 3:return v=a.stateNode,Ia(),Pn(jr),Pn(pr),Of(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(i===null||i.child===null)&&(dc(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,uo!==null&&(rm(uo),uo=null))),qf(i,a),vr(a),null;case 5:Ef(a);var x=Fi(Bl.current);if(d=a.type,i!==null&&a.stateNode!=null)S0(i,a,d,v,x),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!v){if(a.stateNode===null)throw Error(n(166));return vr(a),null}if(i=Fi(Ro.current),dc(a)){v=a.stateNode,d=a.type;var E=a.memoizedProps;switch(v[Eo]=a,v[kl]=E,i=(a.mode&1)!==0,d){case"dialog":In("cancel",v),In("close",v);break;case"iframe":case"object":case"embed":In("load",v);break;case"video":case"audio":for(x=0;x<Tl.length;x++)In(Tl[x],v);break;case"source":In("error",v);break;case"img":case"image":case"link":In("error",v),In("load",v);break;case"details":In("toggle",v);break;case"input":ce(v,E),In("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!E.multiple},In("invalid",v);break;case"textarea":Be(v,E),In("invalid",v)}Te(d,E),x=null;for(var N in E)if(E.hasOwnProperty(N)){var K=E[N];N==="children"?typeof K=="string"?v.textContent!==K&&(E.suppressHydrationWarning!==!0&&rc(v.textContent,K,i),x=["children",K]):typeof K=="number"&&v.textContent!==""+K&&(E.suppressHydrationWarning!==!0&&rc(v.textContent,K,i),x=["children",""+K]):o.hasOwnProperty(N)&&K!=null&&N==="onScroll"&&In("scroll",v)}switch(d){case"input":pe(v),Se(v,E,!0);break;case"textarea":pe(v),tt(v);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(v.onclick=oc)}v=x,a.updateQueue=v,v!==null&&(a.flags|=4)}else{N=x.nodeType===9?x:x.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=lt(d)),i==="http://www.w3.org/1999/xhtml"?d==="script"?(i=N.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof v.is=="string"?i=N.createElement(d,{is:v.is}):(i=N.createElement(d),d==="select"&&(N=i,v.multiple?N.multiple=!0:v.size&&(N.size=v.size))):i=N.createElementNS(i,d),i[Eo]=a,i[kl]=v,C0(i,a,!1,!1),a.stateNode=i;e:{switch(N=De(d,v),d){case"dialog":In("cancel",i),In("close",i),x=v;break;case"iframe":case"object":case"embed":In("load",i),x=v;break;case"video":case"audio":for(x=0;x<Tl.length;x++)In(Tl[x],i);x=v;break;case"source":In("error",i),x=v;break;case"img":case"image":case"link":In("error",i),In("load",i),x=v;break;case"details":In("toggle",i),x=v;break;case"input":ce(i,v),x=ve(i,v),In("invalid",i);break;case"option":x=v;break;case"select":i._wrapperState={wasMultiple:!!v.multiple},x=W({},v,{value:void 0}),In("invalid",i);break;case"textarea":Be(i,v),x=Pe(i,v),In("invalid",i);break;default:x=v}Te(d,x),K=x;for(E in K)if(K.hasOwnProperty(E)){var te=K[E];E==="style"?ke(i,te):E==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,te!=null&&qe(i,te)):E==="children"?typeof te=="string"?(d!=="textarea"||te!=="")&&it(i,te):typeof te=="number"&&it(i,""+te):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?te!=null&&E==="onScroll"&&In("scroll",i):te!=null&&R(i,E,te,N))}switch(d){case"input":pe(i),Se(i,v,!1);break;case"textarea":pe(i),tt(i);break;case"option":v.value!=null&&i.setAttribute("value",""+me(v.value));break;case"select":i.multiple=!!v.multiple,E=v.value,E!=null?Le(i,!!v.multiple,E,!1):v.defaultValue!=null&&Le(i,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(i.onclick=oc)}switch(d){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return vr(a),null;case 6:if(i&&a.stateNode!=null)x0(i,a,i.memoizedProps,v);else{if(typeof v!="string"&&a.stateNode===null)throw Error(n(166));if(d=Fi(Bl.current),Fi(Ro.current),dc(a)){if(v=a.stateNode,d=a.memoizedProps,v[Eo]=a,(E=v.nodeValue!==d)&&(i=Fr,i!==null))switch(i.tag){case 3:rc(v.nodeValue,d,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&rc(v.nodeValue,d,(i.mode&1)!==0)}E&&(a.flags|=4)}else v=(d.nodeType===9?d:d.ownerDocument).createTextNode(v),v[Eo]=a,a.stateNode=v}return vr(a),null;case 13:if(Pn(jn),v=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Tn&&Dr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Eh(),$a(),a.flags|=98560,E=!1;else if(E=dc(a),v!==null&&v.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[Eo]=a}else $a(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vr(a),E=!1}else uo!==null&&(rm(uo),uo=null),E=!0;if(!E)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=d,a):(v=v!==null,v!==(i!==null&&i.memoizedState!==null)&&v&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(jn.current&1)!==0?Yn===0&&(Yn=3):am())),a.updateQueue!==null&&(a.flags|=4),vr(a),null);case 4:return Ia(),qf(i,a),i===null&&Ml(a.stateNode.containerInfo),vr(a),null;case 10:return Cf(a.type._context),vr(a),null;case 17:return kr(a.type)&&ac(),vr(a),null;case 19:if(Pn(jn),E=a.memoizedState,E===null)return vr(a),null;if(v=(a.flags&128)!==0,N=E.rendering,N===null)if(v)Vl(E,!1);else{if(Yn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(N=hc(i),N!==null){for(a.flags|=128,Vl(E,!1),v=N.updateQueue,v!==null&&(a.updateQueue=v,a.flags|=4),a.subtreeFlags=0,v=d,d=a.child;d!==null;)E=d,i=v,E.flags&=14680066,N=E.alternate,N===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=N.childLanes,E.lanes=N.lanes,E.child=N.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=N.memoizedProps,E.memoizedState=N.memoizedState,E.updateQueue=N.updateQueue,E.type=N.type,i=N.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),d=d.sibling;return Rn(jn,jn.current&1|2),a.child}i=i.sibling}E.tail!==null&&ct()>ja&&(a.flags|=128,v=!0,Vl(E,!1),a.lanes=4194304)}else{if(!v)if(i=hc(N),i!==null){if(a.flags|=128,v=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Vl(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!Tn)return vr(a),null}else 2*ct()-E.renderingStartTime>ja&&d!==1073741824&&(a.flags|=128,v=!0,Vl(E,!1),a.lanes=4194304);E.isBackwards?(N.sibling=a.child,a.child=N):(d=E.last,d!==null?d.sibling=N:a.child=N,E.last=N)}return E.tail!==null?(a=E.tail,E.rendering=a,E.tail=a.sibling,E.renderingStartTime=ct(),a.sibling=null,d=jn.current,Rn(jn,v?d&1|2:d&1),a):(vr(a),null);case 22:case 23:return im(),v=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==v&&(a.flags|=8192),v&&(a.mode&1)!==0?(Hr&1073741824)!==0&&(vr(a),a.subtreeFlags&6&&(a.flags|=8192)):vr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function _$(i,a){switch(pf(a),a.tag){case 1:return kr(a.type)&&ac(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Ia(),Pn(jr),Pn(pr),Of(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Ef(a),null;case 13:if(Pn(jn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));$a()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Pn(jn),null;case 4:return Ia(),null;case 10:return Cf(a.type._context),null;case 22:case 23:return im(),null;case 24:return null;default:return null}}var Rc=!1,hr=!1,z$=typeof WeakSet=="function"?WeakSet:Set,ft=null;function Ta(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(v){_n(i,a,v)}else d.current=null}function Gf(i,a,d){try{d()}catch(v){_n(i,a,v)}}var w0=!1;function L$(i,a){if(of=qs,i=th(),Qd(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var v=d.getSelection&&d.getSelection();if(v&&v.rangeCount!==0){d=v.anchorNode;var x=v.anchorOffset,E=v.focusNode;v=v.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var N=0,K=-1,te=-1,he=0,Me=0,ze=i,Ie=null;t:for(;;){for(var ot;ze!==d||x!==0&&ze.nodeType!==3||(K=N+x),ze!==E||v!==0&&ze.nodeType!==3||(te=N+v),ze.nodeType===3&&(N+=ze.nodeValue.length),(ot=ze.firstChild)!==null;)Ie=ze,ze=ot;for(;;){if(ze===i)break t;if(Ie===d&&++he===x&&(K=N),Ie===E&&++Me===v&&(te=N),(ot=ze.nextSibling)!==null)break;ze=Ie,Ie=ze.parentNode}ze=ot}d=K===-1||te===-1?null:{start:K,end:te}}else d=null}d=d||{start:0,end:0}}else d=null;for(af={focusedElem:i,selectionRange:d},qs=!1,ft=a;ft!==null;)if(a=ft,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,ft=i;else for(;ft!==null;){a=ft;try{var gt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(gt!==null){var vt=gt.memoizedProps,Bn=gt.memoizedState,de=a.stateNode,ie=de.getSnapshotBeforeUpdate(a.elementType===a.type?vt:fo(a.type,vt),Bn);de.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var ge=a.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Fe){_n(a,a.return,Fe)}if(i=a.sibling,i!==null){i.return=a.return,ft=i;break}ft=a.return}return gt=w0,w0=!1,gt}function Wl(i,a,d){var v=a.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var x=v=v.next;do{if((x.tag&i)===i){var E=x.destroy;x.destroy=void 0,E!==void 0&&Gf(a,d,E)}x=x.next}while(x!==v)}}function Oc(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var v=d.create;d.destroy=v()}d=d.next}while(d!==a)}}function Kf(i){var a=i.ref;if(a!==null){var d=i.stateNode;switch(i.tag){case 5:i=d;break;default:i=d}typeof a=="function"?a(i):a.current=i}}function $0(i){var a=i.alternate;a!==null&&(i.alternate=null,$0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Eo],delete a[kl],delete a[uf],delete a[b$],delete a[C$])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function E0(i){return i.tag===5||i.tag===3||i.tag===4}function R0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||E0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Xf(i,a,d){var v=i.tag;if(v===5||v===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=oc));else if(v!==4&&(i=i.child,i!==null))for(Xf(i,a,d),i=i.sibling;i!==null;)Xf(i,a,d),i=i.sibling}function Qf(i,a,d){var v=i.tag;if(v===5||v===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(v!==4&&(i=i.child,i!==null))for(Qf(i,a,d),i=i.sibling;i!==null;)Qf(i,a,d),i=i.sibling}var lr=null,mo=!1;function gi(i,a,d){for(d=d.child;d!==null;)O0(i,a,d),d=d.sibling}function O0(i,a,d){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount($t,d)}catch{}switch(d.tag){case 5:hr||Ta(d,a);case 6:var v=lr,x=mo;lr=null,gi(i,a,d),lr=v,mo=x,lr!==null&&(mo?(i=lr,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):lr.removeChild(d.stateNode));break;case 18:lr!==null&&(mo?(i=lr,d=d.stateNode,i.nodeType===8?cf(i.parentNode,d):i.nodeType===1&&cf(i,d),ai(i)):cf(lr,d.stateNode));break;case 4:v=lr,x=mo,lr=d.stateNode.containerInfo,mo=!0,gi(i,a,d),lr=v,mo=x;break;case 0:case 11:case 14:case 15:if(!hr&&(v=d.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var E=x,N=E.destroy;E=E.tag,N!==void 0&&((E&2)!==0||(E&4)!==0)&&Gf(d,a,N),x=x.next}while(x!==v)}gi(i,a,d);break;case 1:if(!hr&&(Ta(d,a),v=d.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=d.memoizedProps,v.state=d.memoizedState,v.componentWillUnmount()}catch(K){_n(d,a,K)}gi(i,a,d);break;case 21:gi(i,a,d);break;case 22:d.mode&1?(hr=(v=hr)||d.memoizedState!==null,gi(i,a,d),hr=v):gi(i,a,d);break;default:gi(i,a,d)}}function I0(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new z$),a.forEach(function(v){var x=q$.bind(null,i,v);d.has(v)||(d.add(v),v.then(x,x))})}}function po(i,a){var d=a.deletions;if(d!==null)for(var v=0;v<d.length;v++){var x=d[v];try{var E=i,N=a,K=N;e:for(;K!==null;){switch(K.tag){case 5:lr=K.stateNode,mo=!1;break e;case 3:lr=K.stateNode.containerInfo,mo=!0;break e;case 4:lr=K.stateNode.containerInfo,mo=!0;break e}K=K.return}if(lr===null)throw Error(n(160));O0(E,N,x),lr=null,mo=!1;var te=x.alternate;te!==null&&(te.return=null),x.return=null}catch(he){_n(x,a,he)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)P0(a,i),a=a.sibling}function P0(i,a){var d=i.alternate,v=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(po(a,i),Io(i),v&4){try{Wl(3,i,i.return),Oc(3,i)}catch(vt){_n(i,i.return,vt)}try{Wl(5,i,i.return)}catch(vt){_n(i,i.return,vt)}}break;case 1:po(a,i),Io(i),v&512&&d!==null&&Ta(d,d.return);break;case 5:if(po(a,i),Io(i),v&512&&d!==null&&Ta(d,d.return),i.flags&32){var x=i.stateNode;try{it(x,"")}catch(vt){_n(i,i.return,vt)}}if(v&4&&(x=i.stateNode,x!=null)){var E=i.memoizedProps,N=d!==null?d.memoizedProps:E,K=i.type,te=i.updateQueue;if(i.updateQueue=null,te!==null)try{K==="input"&&E.type==="radio"&&E.name!=null&&le(x,E),De(K,N);var he=De(K,E);for(N=0;N<te.length;N+=2){var Me=te[N],ze=te[N+1];Me==="style"?ke(x,ze):Me==="dangerouslySetInnerHTML"?qe(x,ze):Me==="children"?it(x,ze):R(x,Me,ze,he)}switch(K){case"input":be(x,E);break;case"textarea":Re(x,E);break;case"select":var Ie=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!E.multiple;var ot=E.value;ot!=null?Le(x,!!E.multiple,ot,!1):Ie!==!!E.multiple&&(E.defaultValue!=null?Le(x,!!E.multiple,E.defaultValue,!0):Le(x,!!E.multiple,E.multiple?[]:"",!1))}x[kl]=E}catch(vt){_n(i,i.return,vt)}}break;case 6:if(po(a,i),Io(i),v&4){if(i.stateNode===null)throw Error(n(162));x=i.stateNode,E=i.memoizedProps;try{x.nodeValue=E}catch(vt){_n(i,i.return,vt)}}break;case 3:if(po(a,i),Io(i),v&4&&d!==null&&d.memoizedState.isDehydrated)try{ai(a.containerInfo)}catch(vt){_n(i,i.return,vt)}break;case 4:po(a,i),Io(i);break;case 13:po(a,i),Io(i),x=i.child,x.flags&8192&&(E=x.memoizedState!==null,x.stateNode.isHidden=E,!E||x.alternate!==null&&x.alternate.memoizedState!==null||(Jf=ct())),v&4&&I0(i);break;case 22:if(Me=d!==null&&d.memoizedState!==null,i.mode&1?(hr=(he=hr)||Me,po(a,i),hr=he):po(a,i),Io(i),v&8192){if(he=i.memoizedState!==null,(i.stateNode.isHidden=he)&&!Me&&(i.mode&1)!==0)for(ft=i,Me=i.child;Me!==null;){for(ze=ft=Me;ft!==null;){switch(Ie=ft,ot=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:Wl(4,Ie,Ie.return);break;case 1:Ta(Ie,Ie.return);var gt=Ie.stateNode;if(typeof gt.componentWillUnmount=="function"){v=Ie,d=Ie.return;try{a=v,gt.props=a.memoizedProps,gt.state=a.memoizedState,gt.componentWillUnmount()}catch(vt){_n(v,d,vt)}}break;case 5:Ta(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){j0(ze);continue}}ot!==null?(ot.return=Ie,ft=ot):j0(ze)}Me=Me.sibling}e:for(Me=null,ze=i;;){if(ze.tag===5){if(Me===null){Me=ze;try{x=ze.stateNode,he?(E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(K=ze.stateNode,te=ze.memoizedProps.style,N=te!=null&&te.hasOwnProperty("display")?te.display:null,K.style.display=Xe("display",N))}catch(vt){_n(i,i.return,vt)}}}else if(ze.tag===6){if(Me===null)try{ze.stateNode.nodeValue=he?"":ze.memoizedProps}catch(vt){_n(i,i.return,vt)}}else if((ze.tag!==22&&ze.tag!==23||ze.memoizedState===null||ze===i)&&ze.child!==null){ze.child.return=ze,ze=ze.child;continue}if(ze===i)break e;for(;ze.sibling===null;){if(ze.return===null||ze.return===i)break e;Me===ze&&(Me=null),ze=ze.return}Me===ze&&(Me=null),ze.sibling.return=ze.return,ze=ze.sibling}}break;case 19:po(a,i),Io(i),v&4&&I0(i);break;case 21:break;default:po(a,i),Io(i)}}function Io(i){var a=i.flags;if(a&2){try{e:{for(var d=i.return;d!==null;){if(E0(d)){var v=d;break e}d=d.return}throw Error(n(160))}switch(v.tag){case 5:var x=v.stateNode;v.flags&32&&(it(x,""),v.flags&=-33);var E=R0(i);Qf(i,E,x);break;case 3:case 4:var N=v.stateNode.containerInfo,K=R0(i);Xf(i,K,N);break;default:throw Error(n(161))}}catch(te){_n(i,i.return,te)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function B$(i,a,d){ft=i,T0(i)}function T0(i,a,d){for(var v=(i.mode&1)!==0;ft!==null;){var x=ft,E=x.child;if(x.tag===22&&v){var N=x.memoizedState!==null||Rc;if(!N){var K=x.alternate,te=K!==null&&K.memoizedState!==null||hr;K=Rc;var he=hr;if(Rc=N,(hr=te)&&!he)for(ft=x;ft!==null;)N=ft,te=N.child,N.tag===22&&N.memoizedState!==null?k0(x):te!==null?(te.return=N,ft=te):k0(x);for(;E!==null;)ft=E,T0(E),E=E.sibling;ft=x,Rc=K,hr=he}M0(i)}else(x.subtreeFlags&8772)!==0&&E!==null?(E.return=x,ft=E):M0(i)}}function M0(i){for(;ft!==null;){var a=ft;if((a.flags&8772)!==0){var d=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:hr||Oc(5,a);break;case 1:var v=a.stateNode;if(a.flags&4&&!hr)if(d===null)v.componentDidMount();else{var x=a.elementType===a.type?d.memoizedProps:fo(a.type,d.memoizedProps);v.componentDidUpdate(x,d.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var E=a.updateQueue;E!==null&&jh(a,E,v);break;case 3:var N=a.updateQueue;if(N!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}jh(a,N,d)}break;case 5:var K=a.stateNode;if(d===null&&a.flags&4){d=K;var te=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":te.autoFocus&&d.focus();break;case"img":te.src&&(d.src=te.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var he=a.alternate;if(he!==null){var Me=he.memoizedState;if(Me!==null){var ze=Me.dehydrated;ze!==null&&ai(ze)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}hr||a.flags&512&&Kf(a)}catch(Ie){_n(a,a.return,Ie)}}if(a===i){ft=null;break}if(d=a.sibling,d!==null){d.return=a.return,ft=d;break}ft=a.return}}function j0(i){for(;ft!==null;){var a=ft;if(a===i){ft=null;break}var d=a.sibling;if(d!==null){d.return=a.return,ft=d;break}ft=a.return}}function k0(i){for(;ft!==null;){var a=ft;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{Oc(4,a)}catch(te){_n(a,d,te)}break;case 1:var v=a.stateNode;if(typeof v.componentDidMount=="function"){var x=a.return;try{v.componentDidMount()}catch(te){_n(a,x,te)}}var E=a.return;try{Kf(a)}catch(te){_n(a,E,te)}break;case 5:var N=a.return;try{Kf(a)}catch(te){_n(a,N,te)}}}catch(te){_n(a,a.return,te)}if(a===i){ft=null;break}var K=a.sibling;if(K!==null){K.return=a.return,ft=K;break}ft=a.return}}var A$=Math.ceil,Ic=O.ReactCurrentDispatcher,Yf=O.ReactCurrentOwner,Zr=O.ReactCurrentBatchConfig,rn=0,nr=null,Dn=null,sr=0,Hr=0,Ma=ui(0),Yn=0,Ul=null,Hi=0,Pc=0,Zf=0,ql=null,_r=null,Jf=0,ja=1/0,Xo=null,Tc=!1,em=null,vi=null,Mc=!1,hi=null,jc=0,Gl=0,tm=null,kc=-1,Nc=0;function $r(){return(rn&6)!==0?ct():kc!==-1?kc:kc=ct()}function yi(i){return(i.mode&1)===0?1:(rn&2)!==0&&sr!==0?sr&-sr:x$.transition!==null?(Nc===0&&(Nc=Jt()),Nc):(i=_t,i!==0||(i=window.event,i=i===void 0?16:_v(i.type)),i)}function go(i,a,d,v){if(50<Gl)throw Gl=0,tm=null,Error(n(185));un(i,d,v),((rn&2)===0||i!==nr)&&(i===nr&&((rn&2)===0&&(Pc|=d),Yn===4&&bi(i,sr)),zr(i,v),d===1&&rn===0&&(a.mode&1)===0&&(ja=ct()+500,sc&&fi()))}function zr(i,a){var d=i.callbackNode;Je(i,a);var v=Zt(i,i===nr?sr:0);if(v===0)d!==null&&_e(d),i.callbackNode=null,i.callbackPriority=0;else if(a=v&-v,i.callbackPriority!==a){if(d!=null&&_e(d),a===1)i.tag===0?S$(_0.bind(null,i)):Ch(_0.bind(null,i)),h$(function(){(rn&6)===0&&fi()}),d=null;else{switch(Xn(v)){case 1:d=Ge;break;case 4:d=St;break;case 16:d=Lt;break;case 536870912:d=ut;break;default:d=Lt}d=V0(d,N0.bind(null,i))}i.callbackPriority=a,i.callbackNode=d}}function N0(i,a){if(kc=-1,Nc=0,(rn&6)!==0)throw Error(n(327));var d=i.callbackNode;if(ka()&&i.callbackNode!==d)return null;var v=Zt(i,i===nr?sr:0);if(v===0)return null;if((v&30)!==0||(v&i.expiredLanes)!==0||a)a=_c(i,v);else{a=v;var x=rn;rn|=2;var E=L0();(nr!==i||sr!==a)&&(Xo=null,ja=ct()+500,Wi(i,a));do try{H$();break}catch(K){z0(i,K)}while(!0);bf(),Ic.current=E,rn=x,Dn!==null?a=0:(nr=null,sr=0,a=Yn)}if(a!==0){if(a===2&&(x=Gt(i),x!==0&&(v=x,a=nm(i,x))),a===1)throw d=Ul,Wi(i,0),bi(i,v),zr(i,ct()),d;if(a===6)bi(i,v);else{if(x=i.current.alternate,(v&30)===0&&!F$(x)&&(a=_c(i,v),a===2&&(E=Gt(i),E!==0&&(v=E,a=nm(i,E))),a===1))throw d=Ul,Wi(i,0),bi(i,v),zr(i,ct()),d;switch(i.finishedWork=x,i.finishedLanes=v,a){case 0:case 1:throw Error(n(345));case 2:Ui(i,_r,Xo);break;case 3:if(bi(i,v),(v&130023424)===v&&(a=Jf+500-ct(),10<a)){if(Zt(i,0)!==0)break;if(x=i.suspendedLanes,(x&v)!==v){$r(),i.pingedLanes|=i.suspendedLanes&x;break}i.timeoutHandle=sf(Ui.bind(null,i,_r,Xo),a);break}Ui(i,_r,Xo);break;case 4:if(bi(i,v),(v&4194240)===v)break;for(a=i.eventTimes,x=-1;0<v;){var N=31-$n(v);E=1<<N,N=a[N],N>x&&(x=N),v&=~E}if(v=x,v=ct()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*A$(v/1960))-v,10<v){i.timeoutHandle=sf(Ui.bind(null,i,_r,Xo),v);break}Ui(i,_r,Xo);break;case 5:Ui(i,_r,Xo);break;default:throw Error(n(329))}}}return zr(i,ct()),i.callbackNode===d?N0.bind(null,i):null}function nm(i,a){var d=ql;return i.current.memoizedState.isDehydrated&&(Wi(i,a).flags|=256),i=_c(i,a),i!==2&&(a=_r,_r=d,a!==null&&rm(a)),i}function rm(i){_r===null?_r=i:_r.push.apply(_r,i)}function F$(i){for(var a=i;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var v=0;v<d.length;v++){var x=d[v],E=x.getSnapshot;x=x.value;try{if(!co(E(),x))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function bi(i,a){for(a&=~Zf,a&=~Pc,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var d=31-$n(a),v=1<<d;i[d]=-1,a&=~v}}function _0(i){if((rn&6)!==0)throw Error(n(327));ka();var a=Zt(i,0);if((a&1)===0)return zr(i,ct()),null;var d=_c(i,a);if(i.tag!==0&&d===2){var v=Gt(i);v!==0&&(a=v,d=nm(i,v))}if(d===1)throw d=Ul,Wi(i,0),bi(i,a),zr(i,ct()),d;if(d===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Ui(i,_r,Xo),zr(i,ct()),null}function om(i,a){var d=rn;rn|=1;try{return i(a)}finally{rn=d,rn===0&&(ja=ct()+500,sc&&fi())}}function Vi(i){hi!==null&&hi.tag===0&&(rn&6)===0&&ka();var a=rn;rn|=1;var d=Zr.transition,v=_t;try{if(Zr.transition=null,_t=1,i)return i()}finally{_t=v,Zr.transition=d,rn=a,(rn&6)===0&&fi()}}function im(){Hr=Ma.current,Pn(Ma)}function Wi(i,a){i.finishedWork=null,i.finishedLanes=0;var d=i.timeoutHandle;if(d!==-1&&(i.timeoutHandle=-1,v$(d)),Dn!==null)for(d=Dn.return;d!==null;){var v=d;switch(pf(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&ac();break;case 3:Ia(),Pn(jr),Pn(pr),Of();break;case 5:Ef(v);break;case 4:Ia();break;case 13:Pn(jn);break;case 19:Pn(jn);break;case 10:Cf(v.type._context);break;case 22:case 23:im()}d=d.return}if(nr=i,Dn=i=Ci(i.current,null),sr=Hr=a,Yn=0,Ul=null,Zf=Pc=Hi=0,_r=ql=null,Ai!==null){for(a=0;a<Ai.length;a++)if(d=Ai[a],v=d.interleaved,v!==null){d.interleaved=null;var x=v.next,E=d.pending;if(E!==null){var N=E.next;E.next=x,v.next=N}d.pending=v}Ai=null}return i}function z0(i,a){do{var d=Dn;try{if(bf(),yc.current=xc,bc){for(var v=kn.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}bc=!1}if(Di=0,tr=Qn=kn=null,Al=!1,Fl=0,Yf.current=null,d===null||d.return===null){Yn=1,Ul=a,Dn=null;break}e:{var E=i,N=d.return,K=d,te=a;if(a=sr,K.flags|=32768,te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=te,Me=K,ze=Me.tag;if((Me.mode&1)===0&&(ze===0||ze===11||ze===15)){var Ie=Me.alternate;Ie?(Me.updateQueue=Ie.updateQueue,Me.memoizedState=Ie.memoizedState,Me.lanes=Ie.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var ot=l0(N);if(ot!==null){ot.flags&=-257,s0(ot,N,K,E,a),ot.mode&1&&a0(E,he,a),a=ot,te=he;var gt=a.updateQueue;if(gt===null){var vt=new Set;vt.add(te),a.updateQueue=vt}else gt.add(te);break e}else{if((a&1)===0){a0(E,he,a),am();break e}te=Error(n(426))}}else if(Tn&&K.mode&1){var Bn=l0(N);if(Bn!==null){(Bn.flags&65536)===0&&(Bn.flags|=256),s0(Bn,N,K,E,a),hf(Pa(te,K));break e}}E=te=Pa(te,K),Yn!==4&&(Yn=2),ql===null?ql=[E]:ql.push(E),E=N;do{switch(E.tag){case 3:E.flags|=65536,a&=-a,E.lanes|=a;var de=o0(E,te,a);Mh(E,de);break e;case 1:K=te;var ie=E.type,ge=E.stateNode;if((E.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(vi===null||!vi.has(ge)))){E.flags|=65536,a&=-a,E.lanes|=a;var Fe=i0(E,K,a);Mh(E,Fe);break e}}E=E.return}while(E!==null)}A0(d)}catch(ht){a=ht,Dn===d&&d!==null&&(Dn=d=d.return);continue}break}while(!0)}function L0(){var i=Ic.current;return Ic.current=xc,i===null?xc:i}function am(){(Yn===0||Yn===3||Yn===2)&&(Yn=4),nr===null||(Hi&268435455)===0&&(Pc&268435455)===0||bi(nr,sr)}function _c(i,a){var d=rn;rn|=2;var v=L0();(nr!==i||sr!==a)&&(Xo=null,Wi(i,a));do try{D$();break}catch(x){z0(i,x)}while(!0);if(bf(),rn=d,Ic.current=v,Dn!==null)throw Error(n(261));return nr=null,sr=0,Yn}function D$(){for(;Dn!==null;)B0(Dn)}function H$(){for(;Dn!==null&&!We();)B0(Dn)}function B0(i){var a=H0(i.alternate,i,Hr);i.memoizedProps=i.pendingProps,a===null?A0(i):Dn=a,Yf.current=null}function A0(i){var a=i;do{var d=a.alternate;if(i=a.return,(a.flags&32768)===0){if(d=N$(d,a,Hr),d!==null){Dn=d;return}}else{if(d=_$(d,a),d!==null){d.flags&=32767,Dn=d;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Yn=6,Dn=null;return}}if(a=a.sibling,a!==null){Dn=a;return}Dn=a=i}while(a!==null);Yn===0&&(Yn=5)}function Ui(i,a,d){var v=_t,x=Zr.transition;try{Zr.transition=null,_t=1,V$(i,a,d,v)}finally{Zr.transition=x,_t=v}return null}function V$(i,a,d,v){do ka();while(hi!==null);if((rn&6)!==0)throw Error(n(327));d=i.finishedWork;var x=i.finishedLanes;if(d===null)return null;if(i.finishedWork=null,i.finishedLanes=0,d===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=d.lanes|d.childLanes;if(ar(i,E),i===nr&&(Dn=nr=null,sr=0),(d.subtreeFlags&2064)===0&&(d.flags&2064)===0||Mc||(Mc=!0,V0(Lt,function(){return ka(),null})),E=(d.flags&15990)!==0,(d.subtreeFlags&15990)!==0||E){E=Zr.transition,Zr.transition=null;var N=_t;_t=1;var K=rn;rn|=4,Yf.current=null,L$(i,d),P0(d,i),c$(af),qs=!!of,af=of=null,i.current=d,B$(d),xt(),rn=K,_t=N,Zr.transition=E}else i.current=d;if(Mc&&(Mc=!1,hi=i,jc=x),E=i.pendingLanes,E===0&&(vi=null),zn(d.stateNode),zr(i,ct()),a!==null)for(v=i.onRecoverableError,d=0;d<a.length;d++)x=a[d],v(x.value,{componentStack:x.stack,digest:x.digest});if(Tc)throw Tc=!1,i=em,em=null,i;return(jc&1)!==0&&i.tag!==0&&ka(),E=i.pendingLanes,(E&1)!==0?i===tm?Gl++:(Gl=0,tm=i):Gl=0,fi(),null}function ka(){if(hi!==null){var i=Xn(jc),a=Zr.transition,d=_t;try{if(Zr.transition=null,_t=16>i?16:i,hi===null)var v=!1;else{if(i=hi,hi=null,jc=0,(rn&6)!==0)throw Error(n(331));var x=rn;for(rn|=4,ft=i.current;ft!==null;){var E=ft,N=E.child;if((ft.flags&16)!==0){var K=E.deletions;if(K!==null){for(var te=0;te<K.length;te++){var he=K[te];for(ft=he;ft!==null;){var Me=ft;switch(Me.tag){case 0:case 11:case 15:Wl(8,Me,E)}var ze=Me.child;if(ze!==null)ze.return=Me,ft=ze;else for(;ft!==null;){Me=ft;var Ie=Me.sibling,ot=Me.return;if($0(Me),Me===he){ft=null;break}if(Ie!==null){Ie.return=ot,ft=Ie;break}ft=ot}}}var gt=E.alternate;if(gt!==null){var vt=gt.child;if(vt!==null){gt.child=null;do{var Bn=vt.sibling;vt.sibling=null,vt=Bn}while(vt!==null)}}ft=E}}if((E.subtreeFlags&2064)!==0&&N!==null)N.return=E,ft=N;else e:for(;ft!==null;){if(E=ft,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:Wl(9,E,E.return)}var de=E.sibling;if(de!==null){de.return=E.return,ft=de;break e}ft=E.return}}var ie=i.current;for(ft=ie;ft!==null;){N=ft;var ge=N.child;if((N.subtreeFlags&2064)!==0&&ge!==null)ge.return=N,ft=ge;else e:for(N=ie;ft!==null;){if(K=ft,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:Oc(9,K)}}catch(ht){_n(K,K.return,ht)}if(K===N){ft=null;break e}var Fe=K.sibling;if(Fe!==null){Fe.return=K.return,ft=Fe;break e}ft=K.return}}if(rn=x,fi(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot($t,i)}catch{}v=!0}return v}finally{_t=d,Zr.transition=a}}return!1}function F0(i,a,d){a=Pa(d,a),a=o0(i,a,1),i=pi(i,a,1),a=$r(),i!==null&&(un(i,1,a),zr(i,a))}function _n(i,a,d){if(i.tag===3)F0(i,i,d);else for(;a!==null;){if(a.tag===3){F0(a,i,d);break}else if(a.tag===1){var v=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(vi===null||!vi.has(v))){i=Pa(d,i),i=i0(a,i,1),a=pi(a,i,1),i=$r(),a!==null&&(un(a,1,i),zr(a,i));break}}a=a.return}}function W$(i,a,d){var v=i.pingCache;v!==null&&v.delete(a),a=$r(),i.pingedLanes|=i.suspendedLanes&d,nr===i&&(sr&d)===d&&(Yn===4||Yn===3&&(sr&130023424)===sr&&500>ct()-Jf?Wi(i,0):Zf|=d),zr(i,a)}function D0(i,a){a===0&&((i.mode&1)===0?a=1:(a=ir,ir<<=1,(ir&130023424)===0&&(ir=4194304)));var d=$r();i=qo(i,a),i!==null&&(un(i,a,d),zr(i,d))}function U$(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),D0(i,d)}function q$(i,a){var d=0;switch(i.tag){case 13:var v=i.stateNode,x=i.memoizedState;x!==null&&(d=x.retryLane);break;case 19:v=i.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(a),D0(i,d)}var H0;H0=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||jr.current)Nr=!0;else{if((i.lanes&d)===0&&(a.flags&128)===0)return Nr=!1,k$(i,a,d);Nr=(i.flags&131072)!==0}else Nr=!1,Tn&&(a.flags&1048576)!==0&&Sh(a,uc,a.index);switch(a.lanes=0,a.tag){case 2:var v=a.type;Ec(i,a),i=a.pendingProps;var x=Sa(a,pr.current);Oa(a,d),x=Tf(null,a,v,i,x,d);var E=Mf();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,kr(v)?(E=!0,lc(a)):E=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,wf(a),x.updater=wc,a.stateNode=x,x._reactInternals=a,Lf(a,v,i,d),a=Df(null,a,v,!0,E,d)):(a.tag=0,Tn&&E&&mf(a),wr(null,a,x,d),a=a.child),a;case 16:v=a.elementType;e:{switch(Ec(i,a),i=a.pendingProps,x=v._init,v=x(v._payload),a.type=v,x=a.tag=K$(v),i=fo(v,i),x){case 0:a=Ff(null,a,v,i,d);break e;case 1:a=p0(null,a,v,i,d);break e;case 11:a=c0(null,a,v,i,d);break e;case 14:a=u0(null,a,v,fo(v.type,i),d);break e}throw Error(n(306,v,""))}return a;case 0:return v=a.type,x=a.pendingProps,x=a.elementType===v?x:fo(v,x),Ff(i,a,v,x,d);case 1:return v=a.type,x=a.pendingProps,x=a.elementType===v?x:fo(v,x),p0(i,a,v,x,d);case 3:e:{if(g0(a),i===null)throw Error(n(387));v=a.pendingProps,E=a.memoizedState,x=E.element,Th(i,a),vc(a,v,null,d);var N=a.memoizedState;if(v=N.element,E.isDehydrated)if(E={element:v,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){x=Pa(Error(n(423)),a),a=v0(i,a,v,d,x);break e}else if(v!==x){x=Pa(Error(n(424)),a),a=v0(i,a,v,d,x);break e}else for(Dr=ci(a.stateNode.containerInfo.firstChild),Fr=a,Tn=!0,uo=null,d=Ih(a,null,v,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if($a(),v===x){a=Ko(i,a,d);break e}wr(i,a,v,d)}a=a.child}return a;case 5:return kh(a),i===null&&vf(a),v=a.type,x=a.pendingProps,E=i!==null?i.memoizedProps:null,N=x.children,lf(v,x)?N=null:E!==null&&lf(v,E)&&(a.flags|=32),m0(i,a),wr(i,a,N,d),a.child;case 6:return i===null&&vf(a),null;case 13:return h0(i,a,d);case 4:return $f(a,a.stateNode.containerInfo),v=a.pendingProps,i===null?a.child=Ea(a,null,v,d):wr(i,a,v,d),a.child;case 11:return v=a.type,x=a.pendingProps,x=a.elementType===v?x:fo(v,x),c0(i,a,v,x,d);case 7:return wr(i,a,a.pendingProps,d),a.child;case 8:return wr(i,a,a.pendingProps.children,d),a.child;case 12:return wr(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(v=a.type._context,x=a.pendingProps,E=a.memoizedProps,N=x.value,Rn(mc,v._currentValue),v._currentValue=N,E!==null)if(co(E.value,N)){if(E.children===x.children&&!jr.current){a=Ko(i,a,d);break e}}else for(E=a.child,E!==null&&(E.return=a);E!==null;){var K=E.dependencies;if(K!==null){N=E.child;for(var te=K.firstContext;te!==null;){if(te.context===v){if(E.tag===1){te=Go(-1,d&-d),te.tag=2;var he=E.updateQueue;if(he!==null){he=he.shared;var Me=he.pending;Me===null?te.next=te:(te.next=Me.next,Me.next=te),he.pending=te}}E.lanes|=d,te=E.alternate,te!==null&&(te.lanes|=d),Sf(E.return,d,a),K.lanes|=d;break}te=te.next}}else if(E.tag===10)N=E.type===a.type?null:E.child;else if(E.tag===18){if(N=E.return,N===null)throw Error(n(341));N.lanes|=d,K=N.alternate,K!==null&&(K.lanes|=d),Sf(N,d,a),N=E.sibling}else N=E.child;if(N!==null)N.return=E;else for(N=E;N!==null;){if(N===a){N=null;break}if(E=N.sibling,E!==null){E.return=N.return,N=E;break}N=N.return}E=N}wr(i,a,x.children,d),a=a.child}return a;case 9:return x=a.type,v=a.pendingProps.children,Oa(a,d),x=Qr(x),v=v(x),a.flags|=1,wr(i,a,v,d),a.child;case 14:return v=a.type,x=fo(v,a.pendingProps),x=fo(v.type,x),u0(i,a,v,x,d);case 15:return d0(i,a,a.type,a.pendingProps,d);case 17:return v=a.type,x=a.pendingProps,x=a.elementType===v?x:fo(v,x),Ec(i,a),a.tag=1,kr(v)?(i=!0,lc(a)):i=!1,Oa(a,d),n0(a,v,x),Lf(a,v,x,d),Df(null,a,v,!0,i,d);case 19:return b0(i,a,d);case 22:return f0(i,a,d)}throw Error(n(156,a.tag))};function V0(i,a){return en(i,a)}function G$(i,a,d,v){this.tag=i,this.key=d,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=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(i,a,d,v){return new G$(i,a,d,v)}function lm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function K$(i){if(typeof i=="function")return lm(i)?1:0;if(i!=null){if(i=i.$$typeof,i===_)return 11;if(i===q)return 14}return 2}function Ci(i,a){var d=i.alternate;return d===null?(d=Jr(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function zc(i,a,d,v,x,E){var N=2;if(v=i,typeof i=="function")lm(i)&&(N=1);else if(typeof i=="string")N=5;else e:switch(i){case T:return qi(d.children,x,E,a);case j:N=8,x|=8;break;case M:return i=Jr(12,d,a,x|2),i.elementType=M,i.lanes=E,i;case A:return i=Jr(13,d,a,x),i.elementType=A,i.lanes=E,i;case B:return i=Jr(19,d,a,x),i.elementType=B,i.lanes=E,i;case H:return Lc(d,x,E,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:N=10;break e;case L:N=9;break e;case _:N=11;break e;case q:N=14;break e;case V:N=16,v=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=Jr(N,d,a,x),a.elementType=i,a.type=v,a.lanes=E,a}function qi(i,a,d,v){return i=Jr(7,i,v,a),i.lanes=d,i}function Lc(i,a,d,v){return i=Jr(22,i,v,a),i.elementType=H,i.lanes=d,i.stateNode={isHidden:!1},i}function sm(i,a,d){return i=Jr(6,i,null,a),i.lanes=d,i}function cm(i,a,d){return a=Jr(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function X$(i,a,d,v,x){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ln(0),this.expirationTimes=ln(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function um(i,a,d,v,x,E,N,K,te){return i=new X$(i,a,d,K,te),a===1?(a=1,E===!0&&(a|=8)):a=0,E=Jr(3,null,null,a),i.current=E,E.stateNode=i,E.memoizedState={element:v,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},wf(E),i}function Q$(i,a,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:v==null?null:""+v,children:i,containerInfo:a,implementation:d}}function W0(i){if(!i)return di;i=i._reactInternals;e:{if(Pt(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(kr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var d=i.type;if(kr(d))return yh(i,d,a)}return a}function U0(i,a,d,v,x,E,N,K,te){return i=um(d,v,!0,i,x,E,N,K,te),i.context=W0(null),d=i.current,v=$r(),x=yi(d),E=Go(v,x),E.callback=a??null,pi(d,E,x),i.current.lanes=x,un(i,x,v),zr(i,v),i}function Bc(i,a,d,v){var x=a.current,E=$r(),N=yi(x);return d=W0(d),a.context===null?a.context=d:a.pendingContext=d,a=Go(E,N),a.payload={element:i},v=v===void 0?null:v,v!==null&&(a.callback=v),i=pi(x,a,N),i!==null&&(go(i,x,N,E),gc(i,x,N)),N}function Ac(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function q0(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<a?d:a}}function dm(i,a){q0(i,a),(i=i.alternate)&&q0(i,a)}function Y$(){return null}var G0=typeof reportError=="function"?reportError:function(i){console.error(i)};function fm(i){this._internalRoot=i}Fc.prototype.render=fm.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));Bc(i,a,null,null)},Fc.prototype.unmount=fm.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Vi(function(){Bc(null,i,null,null)}),a[Ho]=null}};function Fc(i){this._internalRoot=i}Fc.prototype.unstable_scheduleHydration=function(i){if(i){var a=ii();i={blockedOn:null,target:i,priority:a};for(var d=0;d<Br.length&&a!==0&&a<Br[d].priority;d++);Br.splice(d,0,i),d===0&&xn(i)}};function mm(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Dc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function K0(){}function Z$(i,a,d,v,x){if(x){if(typeof v=="function"){var E=v;v=function(){var he=Ac(N);E.call(he)}}var N=U0(a,v,i,0,null,!1,!1,"",K0);return i._reactRootContainer=N,i[Ho]=N.current,Ml(i.nodeType===8?i.parentNode:i),Vi(),N}for(;x=i.lastChild;)i.removeChild(x);if(typeof v=="function"){var K=v;v=function(){var he=Ac(te);K.call(he)}}var te=um(i,0,!1,null,null,!1,!1,"",K0);return i._reactRootContainer=te,i[Ho]=te.current,Ml(i.nodeType===8?i.parentNode:i),Vi(function(){Bc(a,te,d,v)}),te}function Hc(i,a,d,v,x){var E=d._reactRootContainer;if(E){var N=E;if(typeof x=="function"){var K=x;x=function(){var te=Ac(N);K.call(te)}}Bc(a,N,i,x)}else N=Z$(d,a,i,x,v);return Ac(N)}Jn=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var d=fr(a.pendingLanes);d!==0&&(Ln(a,d|1),zr(a,ct()),(rn&6)===0&&(ja=ct()+500,fi()))}break;case 13:Vi(function(){var v=qo(i,1);if(v!==null){var x=$r();go(v,i,1,x)}}),dm(i,1)}},Tr=function(i){if(i.tag===13){var a=qo(i,134217728);if(a!==null){var d=$r();go(a,i,134217728,d)}dm(i,134217728)}},er=function(i){if(i.tag===13){var a=yi(i),d=qo(i,a);if(d!==null){var v=$r();go(d,i,a,v)}dm(i,a)}},ii=function(){return _t},sa=function(i,a){var d=_t;try{return _t=i,a()}finally{_t=d}},Vt=function(i,a,d){switch(a){case"input":if(be(i,d),a=d.name,d.type==="radio"&&a!=null){for(d=i;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var v=d[a];if(v!==i&&v.form===i.form){var x=ic(v);if(!x)throw Error(n(90));se(v),be(v,x)}}}break;case"textarea":Re(i,d);break;case"select":a=d.value,a!=null&&Le(i,!!d.multiple,a,!1)}},Ct=om,qt=Vi;var J$={usingClientEntryPoint:!1,Events:[Nl,ba,ic,Ut,Mt,om]},Kl={findFiberByHostInstance:_i,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},eE={bundleType:Kl.bundleType,version:Kl.version,rendererPackageName:Kl.rendererPackageName,rendererConfig:Kl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=On(i),i===null?null:i.stateNode},findFiberByHostInstance:Kl.findFiberByHostInstance||Y$,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 Vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vc.isDisabled&&Vc.supportsFiber)try{$t=Vc.inject(eE),nn=Vc}catch{}}return Lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J$,Lr.createPortal=function(i,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mm(a))throw Error(n(200));return Q$(i,a,null,d)},Lr.createRoot=function(i,a){if(!mm(i))throw Error(n(299));var d=!1,v="",x=G0;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=um(i,1,!1,null,null,d,!1,v,x),i[Ho]=a.current,Ml(i.nodeType===8?i.parentNode:i),new fm(a)},Lr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=On(a),i=i===null?null:i.stateNode,i},Lr.flushSync=function(i){return Vi(i)},Lr.hydrate=function(i,a,d){if(!Dc(a))throw Error(n(200));return Hc(null,i,a,!0,d)},Lr.hydrateRoot=function(i,a,d){if(!mm(i))throw Error(n(405));var v=d!=null&&d.hydratedSources||null,x=!1,E="",N=G0;if(d!=null&&(d.unstable_strictMode===!0&&(x=!0),d.identifierPrefix!==void 0&&(E=d.identifierPrefix),d.onRecoverableError!==void 0&&(N=d.onRecoverableError)),a=U0(a,null,i,1,d??null,x,!1,E,N),i[Ho]=a.current,Ml(i),v)for(i=0;i<v.length;i++)d=v[i],x=d._getVersion,x=x(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,x]:a.mutableSourceEagerHydrationData.push(d,x);return new Fc(a)},Lr.render=function(i,a,d){if(!Dc(a))throw Error(n(200));return Hc(null,i,a,!1,d)},Lr.unmountComponentAtNode=function(i){if(!Dc(i))throw Error(n(40));return i._reactRootContainer?(Vi(function(){Hc(null,null,i,!1,function(){i._reactRootContainer=null,i[Ho]=null})}),!0):!1},Lr.unstable_batchedUpdates=om,Lr.unstable_renderSubtreeIntoContainer=function(i,a,d,v){if(!Dc(d))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Hc(i,a,d,!1,v)},Lr.version="18.3.1-next-f1338f8080-20240426",Lr}var ny;function fC(){if(ny)return vm.exports;ny=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(),vm.exports=cE(),vm.exports}var ry;function uE(){if(ry)return Wc;ry=1;var e=fC();return Wc.createRoot=e.createRoot,Wc.hydrateRoot=e.hydrateRoot,Wc}var dE=uE();const fE=Ts(dE);var bm={exports:{}};/*!
41
+ Copyright (c) 2018 Jed Watson.
42
+ Licensed under the MIT License (MIT), see
43
+ http://jedwatson.github.io/classnames
44
+ */var oy;function mE(){return oy||(oy=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(l=o(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var u in l)t.call(l,u)&&l[u]&&(s=o(s,u));return s}function o(l,s){return s?l?l+" "+s:l+s:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(bm)),bm.exports}var pE=mE();const re=Ts(pE);function Ee(){return Ee=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},Ee.apply(null,arguments)}function mt(e){"@babel/helpers - typeof";return mt=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},mt(e)}var gE=Symbol.for("react.element"),vE=Symbol.for("react.transitional.element"),hE=Symbol.for("react.fragment");function mC(e){return e&&mt(e)==="object"&&(e.$$typeof===gE||e.$$typeof===vE)&&e.type===hE}function Rr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Y.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Rr(r)):mC(r)&&r.props?n=n.concat(Rr(r.props.children,t)):n.push(r))}),n}var mp={},yE=function(t){};function bE(e,t){}function CE(e,t){}function SE(){mp={}}function pC(e,t,n){!t&&!mp[n]&&(e(!1,n),mp[n]=!0)}function cr(e,t){pC(bE,e,t)}function xE(e,t){pC(CE,e,t)}cr.preMessage=yE;cr.resetWarned=SE;cr.noteOnce=xE;function wE(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gC(e){var t=wE(e,"string");return mt(t)=="symbol"?t:t+""}function U(e,t,n){return(t=gC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(n),!0).forEach(function(r){U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pi=fC();const pp=Ts(Pi),$E=dC({__proto__:null,default:pp},[Pi]);function ms(e){return e instanceof HTMLElement||e instanceof SVGElement}function EE(e){return e&&mt(e)==="object"&&ms(e.nativeElement)?e.nativeElement:ms(e)?e:null}function du(e){var t=EE(e);if(t)return t;if(e instanceof Y.Component){var n;return(n=pp.findDOMNode)===null||n===void 0?void 0:n.call(pp,e)}return null}var Cm={exports:{}},fn={};/**
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 ay;function RE(){if(ay)return fn;ay=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function C(b){if(typeof b=="object"&&b!==null){var $=b.$$typeof;switch($){case e:switch(b=b.type,b){case n:case o:case r:case m:case p:return b;default:switch(b=b&&b.$$typeof,b){case u:case s:case f:case h:case g:case l:return b;default:return $}}case t:return $}}}return fn.ContextConsumer=s,fn.ContextProvider=l,fn.Element=e,fn.ForwardRef=f,fn.Fragment=n,fn.Lazy=h,fn.Memo=g,fn.Portal=t,fn.Profiler=o,fn.StrictMode=r,fn.Suspense=m,fn.SuspenseList=p,fn.isAsyncMode=function(){return!1},fn.isConcurrentMode=function(){return!1},fn.isContextConsumer=function(b){return C(b)===s},fn.isContextProvider=function(b){return C(b)===l},fn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},fn.isForwardRef=function(b){return C(b)===f},fn.isFragment=function(b){return C(b)===n},fn.isLazy=function(b){return C(b)===h},fn.isMemo=function(b){return C(b)===g},fn.isPortal=function(b){return C(b)===t},fn.isProfiler=function(b){return C(b)===o},fn.isStrictMode=function(b){return C(b)===r},fn.isSuspense=function(b){return C(b)===m},fn.isSuspenseList=function(b){return C(b)===p},fn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===m||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===g||b.$$typeof===l||b.$$typeof===s||b.$$typeof===f||b.$$typeof===S||b.getModuleId!==void 0)},fn.typeOf=C,fn}var ly;function OE(){return ly||(ly=1,Cm.exports=RE()),Cm.exports}var Sm=OE();function Ms(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var IE=Number(c.version.split(".")[0]),Eg=function(t,n){typeof t=="function"?t(n):mt(t)==="object"&&t&&"current"in t&&(t.current=n)},Lo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(l){n.forEach(function(s){Eg(s,l)})}},Jo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ms(function(){return Lo.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,u){return s!==l[u]})})},Ni=function(t){var n,r;if(!t)return!1;if(Rg(t)&&IE>=19)return!0;var o=Sm.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Sm.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Sm.ForwardRef)};function Rg(e){return c.isValidElement(e)&&!mC(e)}var PE=function(t){return Rg(t)&&Ni(t)},ia=function(t){if(t&&Rg(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},gp=c.createContext(null);function TE(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),l=c.useContext(gp),s=c.useCallback(function(u,f,m){r.current+=1;var p=r.current;o.current.push({size:u,element:f,data:m}),Promise.resolve().then(function(){p===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(u,f,m)},[n,l]);return c.createElement(gp.Provider,{value:s},t)}var vC=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,l){return o[0]===n?(r=l,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,l=this.__entries__;o<l.length;o++){var s=l[o];n.call(r,s[1],s[0])}},t})()})(),vp=typeof window<"u"&&typeof document<"u"&&window.document===document,$u=(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")()})(),ME=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind($u):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),jE=2;function kE(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&u()}function s(){ME(l)}function u(){var f=Date.now();if(n){if(f-o<jE)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=f}return u}var NE=20,_E=["top","right","bottom","left","width","height","size","weight"],zE=typeof MutationObserver<"u",LE=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=kE(this.refresh.bind(this),NE)}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(){!vp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zE?(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(){!vp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=_E.some(function(l){return!!~r.indexOf(l)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),hC=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),nl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||$u}),yC=Zu(0,0,0,0);function Eu(e){return parseFloat(e)||0}function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var l=e["border-"+o+"-width"];return r+Eu(l)},0)}function BE(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var l=o[r],s=e["padding-"+l];n[l]=Eu(s)}return n}function AE(e){var t=e.getBBox();return Zu(0,0,t.width,t.height)}function FE(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return yC;var r=nl(e).getComputedStyle(e),o=BE(r),l=o.left+o.right,s=o.top+o.bottom,u=Eu(r.width),f=Eu(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=sy(r,"left","right")+l),Math.round(f+s)!==n&&(f-=sy(r,"top","bottom")+s)),!HE(e)){var m=Math.round(u+l)-t,p=Math.round(f+s)-n;Math.abs(m)!==1&&(u-=m),Math.abs(p)!==1&&(f-=p)}return Zu(o.left,o.top,u,f)}var DE=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof nl(e).SVGGraphicsElement}:function(e){return e instanceof nl(e).SVGElement&&typeof e.getBBox=="function"}})();function HE(e){return e===nl(e).document.documentElement}function VE(e){return vp?DE(e)?AE(e):FE(e):yC}function WE(e){var t=e.x,n=e.y,r=e.width,o=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return hC(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function Zu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var UE=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=VE(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})(),qE=(function(){function e(t,n){var r=WE(n);hC(this,{target:t,contentRect:r})}return e})(),GE=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new vC,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 nl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new UE(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 nl(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 qE(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})(),bC=typeof WeakMap<"u"?new WeakMap:new vC,CC=(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=LE.getInstance(),r=new GE(t,n,this);bC.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){CC.prototype[e]=function(){var t;return(t=bC.get(this))[e].apply(t,arguments)}});var KE=(function(){return typeof $u.ResizeObserver<"u"?$u.ResizeObserver:CC})(),Ei=new Map;function XE(e){e.forEach(function(t){var n,r=t.target;(n=Ei.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var SC=new KE(XE);function QE(e,t){Ei.has(e)||(Ei.set(e,new Set),SC.observe(e)),Ei.get(e).add(t)}function YE(e,t){Ei.has(e)&&(Ei.get(e).delete(t),Ei.get(e).size||(SC.unobserve(e),Ei.delete(e)))}function Un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cy(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,gC(r.key),r)}}function qn(e,t,n){return t&&cy(e.prototype,t),n&&cy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ps(e,t){return ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ps(e,t)}function ei(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&&ps(e,t)}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gs(e)}function Og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Og=function(){return!!e})()}function Ht(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZE(e,t){if(t&&(mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ht(e)}function ti(e){var t=Og();return function(){var n,r=gs(e);if(t){var o=gs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ZE(this,n)}}var JE=(function(e){ei(n,e);var t=ti(n);function n(){return Un(this,n),t.apply(this,arguments)}return qn(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function e4(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),l=c.useRef(null),s=c.useContext(gp),u=typeof n=="function",f=u?n(o):n,m=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!u&&c.isValidElement(f)&&Ni(f),g=p?ia(f):null,h=Jo(g,o),y=function(){var $;return du(o.current)||(o.current&&mt(o.current)==="object"?du(($=o.current)===null||$===void 0?void 0:$.nativeElement):null)||du(l.current)};c.useImperativeHandle(t,function(){return y()});var S=c.useRef(e);S.current=e;var C=c.useCallback(function(b){var $=S.current,w=$.onResize,R=$.data,O=b.getBoundingClientRect(),I=O.width,P=O.height,T=b.offsetWidth,j=b.offsetHeight,M=Math.floor(I),k=Math.floor(P);if(m.current.width!==M||m.current.height!==k||m.current.offsetWidth!==T||m.current.offsetHeight!==j){var L={width:M,height:k,offsetWidth:T,offsetHeight:j};m.current=L;var _=T===Math.round(I)?I:T,A=j===Math.round(P)?P:j,B=X(X({},L),{},{offsetWidth:_,offsetHeight:A});s==null||s(B,b,R),w&&Promise.resolve().then(function(){w(B,b)})}},[]);return c.useEffect(function(){var b=y();return b&&!r&&QE(b,C),function(){return YE(b,C)}},[o.current,r]),c.createElement(JE,{ref:l},p?c.cloneElement(f,{ref:h}):f)}var t4=c.forwardRef(e4),n4="rc-observer-key";function r4(e,t){var n=e.children,r=typeof n=="function"?[n]:Rr(n);return r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(n4,"-").concat(l);return c.createElement(t4,Ee({},e,{key:s,ref:l===0?t:void 0}),o)})}var io=c.forwardRef(r4);io.Collection=TE;function hp(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 o4(e){if(Array.isArray(e))return hp(e)}function xC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ig(e,t){if(e){if(typeof e=="string")return hp(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)?hp(e,t):void 0}}function i4(){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 Ae(e){return o4(e)||xC(e)||Ig(e)||i4()}var wC=function(t){return+setTimeout(t,16)},$C=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(wC=function(t){return window.requestAnimationFrame(t)},$C=function(t){return window.cancelAnimationFrame(t)});var uy=0,Pg=new Map;function EC(e){Pg.delete(e)}var Sn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;uy+=1;var r=uy;function o(l){if(l===0)EC(r),t();else{var s=wC(function(){o(l-1)});Pg.set(r,s)}}return o(n),r};Sn.cancel=function(e){var t=Pg.get(e);return EC(e),$C(t)};function RC(e){if(Array.isArray(e))return e}function a4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,u=[],f=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(p){m=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw o}}return u}}function OC(){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 ae(e,t){return RC(e)||a4(e,t)||Ig(e,t)||OC()}function vs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Cr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function yp(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 dy="data-rc-order",fy="data-rc-priority",l4="rc-util-key",bp=new Map;function IC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l4}function Ju(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function s4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Tg(e){return Array.from((bp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function PC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Cr())return null;var n=t.csp,r=t.prepend,o=t.priority,l=o===void 0?0:o,s=s4(r),u=s==="prependQueue",f=document.createElement("style");f.setAttribute(dy,s),u&&l&&f.setAttribute(fy,"".concat(l)),n!=null&&n.nonce&&(f.nonce=n==null?void 0:n.nonce),f.innerHTML=e;var m=Ju(t),p=m.firstChild;if(r){if(u){var g=(t.styles||Tg(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(dy)))return!1;var y=Number(h.getAttribute(fy)||0);return l>=y});if(g.length)return m.insertBefore(f,g[g.length-1].nextSibling),f}m.insertBefore(f,p)}else m.appendChild(f);return f}function TC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ju(t);return(t.styles||Tg(n)).find(function(r){return r.getAttribute(IC(t))===e})}function hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=TC(e,t);if(n){var r=Ju(t);r.removeChild(n)}}function c4(e,t){var n=bp.get(e);if(!n||!yp(document,n)){var r=PC("",t),o=r.parentNode;bp.set(e,o),e.removeChild(r)}}function Zo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ju(n),o=Tg(r),l=X(X({},n),{},{styles:o});c4(r,l);var s=TC(t,l);if(s){var u,f;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var m;s.nonce=(m=l.csp)===null||m===void 0?void 0:m.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var p=PC(e,l);return p.setAttribute(IC(l),t),p}function u4(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 jt(e,t){if(e==null)return{};var n,r,o=u4(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ys(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(l,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(l);if(cr(!f,"Warning: There may be circular references"),f)return!1;if(l===s)return!0;if(n&&u>1)return!1;r.add(l);var m=u+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var p=0;p<l.length;p++)if(!o(l[p],s[p],m))return!1;return!0}if(l&&s&&mt(l)==="object"&&mt(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(h){return o(l[h],s[h],m)})}return!1}return o(e,t)}var d4="%";function Cp(e){return e.join(d4)}var f4=(function(){function e(t){Un(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),U(this,"extracted",new Set),this.instanceId=t}return qn(e,[{key:"get",value:function(n){return this.opGet(Cp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Cp(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),l=r(o);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),rl="data-token-hash",So="data-css-hash",Ri="__cssinjs_instance__";function m4(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(So,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ri]=o[Ri]||e,o[Ri]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(So,"]"))).forEach(function(o){var l=o.getAttribute(So);if(r[l]){if(o[Ri]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new f4(e)}var js=c.createContext({hashPriority:"low",cache:m4(),defaultCache:!0});function p4(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 Mg=(function(){function e(){Un(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return qn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(u){if(!s)s=void 0;else{var f;s=(f=s)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(m,p){var g=ae(m,2),h=g[1];return o.internalGet(p)[1]<h?[p,o.internalGet(p)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=ae(l,1),u=s[0];this.delete(u)}this.keys.push(n)}var f=this.cache;n.forEach(function(m,p){if(p===n.length-1)f.set(m,{value:[r,o.cacheCallTimes++]});else{var g=f.get(m);g?g.map||(g.map=new Map):f.set(m,{map:new Map}),f=f.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var l;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!p4(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();U(Mg,"MAX_CACHE_SIZE",20);U(Mg,"MAX_CACHE_OFFSET",5);var my=0,MC=(function(){function e(t){Un(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=my,t.length===0&&(t.length>0,void 0),my+=1}return qn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),xm=new Mg;function Sp(e){var t=Array.isArray(e)?e:[e];return xm.has(t)||xm.set(t,new MC(t)),xm.get(t)}var g4=new WeakMap,wm={};function v4(e,t){for(var n=g4,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(wm)||n.set(wm,e()),n.get(wm)}var py=new WeakMap;function cs(e){var t=py.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof MC?t+=r.id:r&&mt(r)==="object"?t+=cs(r):t+=r}),t=vs(t),py.set(e,t)),t}function gy(e,t){return vs("".concat(t,"_").concat(cs(e)))}var xp=Cr();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function Ru(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var l=X(X({},r),{},U(U({},rl,t),So,n)),s=Object.keys(l).map(function(u){var f=l[u];return f?"".concat(u,'="').concat(f,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var fu=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()},h4=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var l=ae(o,2),s=l[0],u=l[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},jC=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var u,f,m=ae(s,2),p=m[0],g=m[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[p])l[p]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[p])){var h,y=fu(p,r==null?void 0:r.prefix);o[y]=typeof g=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[p])?"".concat(g,"px"):String(g),l[p]="var(".concat(y,")")}}),[l,h4(o,n,{scope:r==null?void 0:r.scope})]},vy=Cr()?c.useLayoutEffect:c.useEffect,on=function(t,n){var r=c.useRef(!0);vy(function(){return t(r.current)},n),vy(function(){return r.current=!1,function(){r.current=!0}},[])},wp=function(t,n){on(function(r){if(!r)return t()},n)},y4=X({},Yu),hy=y4.useInsertionEffect,b4=function(t,n,r){c.useMemo(t,r),on(function(){return n(!0)},r)},C4=hy?function(e,t,n){return hy(function(){return e(),t()},n)}:b4,S4=X({},Yu),x4=S4.useInsertionEffect,w4=function(t){var n=[],r=!1;function o(l){r||n.push(l)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),o},$4=function(){return function(t){t()}},E4=typeof x4<"u"?w4:$4;function jg(e,t,n,r,o){var l=c.useContext(js),s=l.cache,u=[e].concat(Ae(t)),f=Cp(u),m=E4([f]),p=function(S){s.opUpdate(f,function(C){var b=C||[void 0,void 0],$=ae(b,2),w=$[0],R=w===void 0?0:w,O=$[1],I=O,P=I||n(),T=[R,P];return S?S(T):T})};c.useMemo(function(){p()},[f]);var g=s.opGet(f),h=g[1];return C4(function(){o==null||o(h)},function(y){return p(function(S){var C=ae(S,2),b=C[0],$=C[1];return y&&b===0&&(o==null||o(h)),[b+1,$]}),function(){s.opUpdate(f,function(S){var C=S||[],b=ae(C,2),$=b[0],w=$===void 0?0:$,R=b[1],O=w-1;return O===0?(m(function(){(y||!s.opGet(f))&&(r==null||r(R,!1))}),null):[w-1,R]})}},[f]),h}var R4={},O4="css",Xi=new Map;function I4(e){Xi.set(e,(Xi.get(e)||0)+1)}function P4(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(rl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ri]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var T4=0;function M4(e,t){Xi.set(e,(Xi.get(e)||0)-1);var n=new Set;Xi.forEach(function(r,o){r<=0&&n.add(o)}),Xi.size-n.size>T4&&n.forEach(function(r){P4(r,t),Xi.delete(r)})}var j4=function(t,n,r,o){var l=r.getDerivativeToken(t),s=X(X({},l),n);return o&&(s=o(s)),s},kC="token";function k4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(js),o=r.cache.instanceId,l=r.container,s=n.salt,u=s===void 0?"":s,f=n.override,m=f===void 0?R4:f,p=n.formatToken,g=n.getComputedToken,h=n.cssVar,y=v4(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),S=cs(y),C=cs(m),b=h?cs(h):"",$=jg(kC,[u,e.id,S,C,b],function(){var w,R=g?g(y,m,e):j4(y,m,e,p),O=X({},R),I="";if(h){var P=jC(R,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),T=ae(P,2);R=T[0],I=T[1]}var j=gy(R,u);R._tokenKey=j,O._tokenKey=gy(O,u);var M=(w=h==null?void 0:h.key)!==null&&w!==void 0?w:j;R._themeKey=M,I4(M);var k="".concat(O4,"-").concat(vs(j));return R._hashId=k,[R,k,O,I,(h==null?void 0:h.key)||""]},function(w){M4(w[0]._themeKey,o)},function(w){var R=ae(w,4),O=R[0],I=R[3];if(h&&I){var P=Zo(I,vs("css-variables-".concat(O._themeKey)),{mark:So,prepend:"queue",attachTo:l,priority:-999});P[Ri]=o,P.setAttribute(rl,O._themeKey)}});return $}var N4=function(t,n,r){var o=ae(t,5),l=o[2],s=o[3],u=o[4],f=r||{},m=f.plain;if(!s)return null;var p=l._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=Ru(s,u,p,h,m);return[g,p,y]},_4={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},NC="comm",_C="rule",zC="decl",z4="@import",L4="@namespace",B4="@keyframes",A4="@layer",LC=Math.abs,kg=String.fromCharCode;function BC(e){return e.trim()}function mu(e,t,n){return e.replace(t,n)}function F4(e,t,n){return e.indexOf(t,n)}function Ja(e,t){return e.charCodeAt(t)|0}function ol(e,t,n){return e.slice(t,n)}function Po(e){return e.length}function D4(e){return e.length}function Uc(e,t){return t.push(e),e}var ed=1,il=1,AC=0,ao=0,Hn=0,ml="";function Ng(e,t,n,r,o,l,s,u){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:ed,column:il,length:s,return:"",siblings:u}}function H4(){return Hn}function V4(){return Hn=ao>0?Ja(ml,--ao):0,il--,Hn===10&&(il=1,ed--),Hn}function xo(){return Hn=ao<AC?Ja(ml,ao++):0,il++,Hn===10&&(il=1,ed++),Hn}function Oi(){return Ja(ml,ao)}function pu(){return ao}function td(e,t){return ol(ml,e,t)}function bs(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 W4(e){return ed=il=1,AC=Po(ml=e),ao=0,[]}function U4(e){return ml="",e}function $m(e){return BC(td(ao-1,$p(e===91?e+2:e===40?e+1:e)))}function q4(e){for(;(Hn=Oi())&&Hn<33;)xo();return bs(e)>2||bs(Hn)>3?"":" "}function G4(e,t){for(;--t&&xo()&&!(Hn<48||Hn>102||Hn>57&&Hn<65||Hn>70&&Hn<97););return td(e,pu()+(t<6&&Oi()==32&&xo()==32))}function $p(e){for(;xo();)switch(Hn){case e:return ao;case 34:case 39:e!==34&&e!==39&&$p(Hn);break;case 40:e===41&&$p(e);break;case 92:xo();break}return ao}function K4(e,t){for(;xo()&&e+Hn!==57;)if(e+Hn===84&&Oi()===47)break;return"/*"+td(t,ao-1)+"*"+kg(e===47?e:xo())}function X4(e){for(;!bs(Oi());)xo();return td(e,ao)}function Q4(e){return U4(gu("",null,null,null,[""],e=W4(e),0,[0],e))}function gu(e,t,n,r,o,l,s,u,f){for(var m=0,p=0,g=s,h=0,y=0,S=0,C=1,b=1,$=1,w=0,R="",O=o,I=l,P=r,T=R;b;)switch(S=w,w=xo()){case 40:if(S!=108&&Ja(T,g-1)==58){F4(T+=mu($m(w),"&","&\f"),"&\f",LC(m?u[m-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:T+=$m(w);break;case 9:case 10:case 13:case 32:T+=q4(S);break;case 92:T+=G4(pu()-1,7);continue;case 47:switch(Oi()){case 42:case 47:Uc(Y4(K4(xo(),pu()),t,n,f),f),(bs(S||1)==5||bs(Oi()||1)==5)&&Po(T)&&ol(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*C:u[m++]=Po(T)*$;case 125*C:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+p:$==-1&&(T=mu(T,/\f/g,"")),y>0&&(Po(T)-g||C===0&&S===47)&&Uc(y>32?by(T+";",r,n,g-1,f):by(mu(T," ","")+";",r,n,g-2,f),f);break;case 59:T+=";";default:if(Uc(P=yy(T,t,n,m,p,o,u,R,O=[],I=[],g,l),l),w===123)if(p===0)gu(T,t,P,P,O,l,g,u,I);else{switch(h){case 99:if(Ja(T,3)===110)break;case 108:if(Ja(T,2)===97)break;default:p=0;case 100:case 109:case 115:}p?gu(e,P,P,r&&Uc(yy(e,P,P,0,0,o,u,R,o,O=[],g,I),I),o,I,g,u,r?O:I):gu(T,P,P,P,[""],I,0,u,I)}}m=p=y=0,C=$=1,R=T="",g=s;break;case 58:g=1+Po(T),y=S;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&V4()==125)continue}switch(T+=kg(w),w*C){case 38:$=p>0?1:(T+="\f",-1);break;case 44:u[m++]=(Po(T)-1)*$,$=1;break;case 64:Oi()===45&&(T+=$m(xo())),h=Oi(),p=g=Po(R=T+=X4(pu())),w++;break;case 45:S===45&&Po(T)==2&&(C=0)}}return l}function yy(e,t,n,r,o,l,s,u,f,m,p,g){for(var h=o-1,y=o===0?l:[""],S=D4(y),C=0,b=0,$=0;C<r;++C)for(var w=0,R=ol(e,h+1,h=LC(b=s[C])),O=e;w<S;++w)(O=BC(b>0?y[w]+" "+R:mu(R,/&\f/g,y[w])))&&(f[$++]=O);return Ng(e,t,n,o===0?_C:u,f,m,p,g)}function Y4(e,t,n,r){return Ng(e,t,n,NC,kg(H4()),ol(e,2,-2),0,r)}function by(e,t,n,r,o){return Ng(e,t,n,zC,ol(e,0,r),ol(e,r+1,-1),r,o)}function Ep(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Z4(e,t,n,r){switch(e.type){case A4:if(e.children.length)break;case z4:case L4:case zC:return e.return=e.return||e.value;case NC:return"";case B4:return e.return=e.value+"{"+Ep(e.children,r)+"}";case _C:if(!Po(e.value=e.props.join(",")))return""}return Po(n=Ep(e.children,r))?e.return=e.value+"{"+n+"}":""}var Cy="data-ant-cssinjs-cache-path",FC="_FILE_STYLE__",ea,DC=!0;function J4(){if(!ea&&(ea={},Cr())){var e=document.createElement("div");e.className=Cy,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var l=o.split(":"),s=ae(l,2),u=s[0],f=s[1];ea[u]=f});var n=document.querySelector("style[".concat(Cy,"]"));if(n){var r;DC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function e3(e){return J4(),!!ea[e]}function t3(e){var t=ea[e],n=null;if(t&&Cr())if(DC)n=FC;else{var r=document.querySelector("style[".concat(So,'="').concat(ea[e],'"]'));r?n=r.innerHTML:delete ea[e]}return[n,t]}var n3="_skip_check_",HC="_multi_value_";function vu(e){var t=Ep(Q4(e),Z4);return t.replace(/\{%%%\:[^;];}/g,";")}function r3(e){return mt(e)==="object"&&e&&(n3 in e||HC in e)}function Sy(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(s){var u,f=s.trim().split(/\s+/),m=f[0]||"",p=((u=m.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return m="".concat(p).concat(o).concat(m.slice(p.length)),[m].concat(Ae(f.slice(1))).join(" ")});return l.join(",")}var o3=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,l=r.injectHash,s=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var m=n.hashPriority,p=n.transformers,g=p===void 0?[]:p;n.linters;var h="",y={};function S($){var w=$.getName(u);if(!y[w]){var R=e($.style,n,{root:!1,parentSelectors:s}),O=ae(R,1),I=O[0];y[w]="@keyframes ".concat($.getName(u)).concat(I)}}function C($){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(R){Array.isArray(R)?C(R,w):R&&w.push(R)}),w}var b=C(Array.isArray(t)?t:[t]);return b.forEach(function($){var w=typeof $=="string"&&!o?{}:$;if(typeof w=="string")h+="".concat(w,`
55
+ `);else if(w._keyframe)S(w);else{var R=g.reduce(function(O,I){var P;return(I==null||(P=I.visit)===null||P===void 0?void 0:P.call(I,O))||O},w);Object.keys(R).forEach(function(O){var I=R[O];if(mt(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!r3(I)){var P=!1,T=O.trim(),j=!1;(o||l)&&u?T.startsWith("@")?P=!0:T==="&"?T=Sy("",u,m):T=Sy(O,u,m):o&&!u&&(T==="&"||T==="")&&(T="",j=!0);var M=e(I,n,{root:j,injectHash:P,parentSelectors:[].concat(Ae(s),[T])}),k=ae(M,2),L=k[0],_=k[1];y=X(X({},y),_),h+="".concat(T).concat(L)}else{let q=function(V,H){var F=V.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),Z=H;!_4[V]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),V==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(S(H),Z=H.getName(u)),h+="".concat(F,":").concat(Z,";")};var A,B=(A=I==null?void 0:I.value)!==null&&A!==void 0?A:I;mt(I)==="object"&&I!==null&&I!==void 0&&I[HC]&&Array.isArray(B)?B.forEach(function(V){q(O,V)}):q(O,B)}})}}),o?f&&(h&&(h="@layer ".concat(f.name," {").concat(h,"}")),f.dependencies&&(y["@layer ".concat(f.name)]=f.dependencies.map(function($){return"@layer ".concat($,", ").concat(f.name,";")}).join(`
56
+ `))):h="{".concat(h,"}"),[h,y]};function VC(e,t){return vs("".concat(e.join("%")).concat(t))}function i3(){return null}var WC="style";function Rp(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,s=e.nonce,u=e.clientOnly,f=e.order,m=f===void 0?0:f,p=c.useContext(js),g=p.autoClear;p.mock;var h=p.defaultCache,y=p.hashPriority,S=p.container,C=p.ssrInline,b=p.transformers,$=p.linters,w=p.cache,R=p.layer,O=n._tokenKey,I=[O];R&&I.push("layer"),I.push.apply(I,Ae(r));var P=xp,T=jg(WC,I,function(){var _=I.join("|");if(e3(_)){var A=t3(_),B=ae(A,2),q=B[0],V=B[1];if(q)return[q,O,V,{},u,m]}var H=t(),F=o3(H,{hashId:o,hashPriority:y,layer:R?l:void 0,path:r.join("-"),transformers:b,linters:$}),Z=ae(F,2),W=Z[0],z=Z[1],D=vu(W),Q=VC(I,D);return[D,O,Q,z,u,m]},function(_,A){var B=ae(_,3),q=B[2];(A||g)&&xp&&hs(q,{mark:So,attachTo:S})},function(_){var A=ae(_,4),B=A[0];A[1];var q=A[2],V=A[3];if(P&&B!==FC){var H={mark:So,prepend:R?!1:"queue",attachTo:S,priority:m},F=typeof s=="function"?s():s;F&&(H.csp={nonce:F});var Z=[],W=[];Object.keys(V).forEach(function(D){D.startsWith("@layer")?Z.push(D):W.push(D)}),Z.forEach(function(D){Zo(vu(V[D]),"_layer-".concat(D),X(X({},H),{},{prepend:!0}))});var z=Zo(B,q,H);z[Ri]=w.instanceId,z.setAttribute(rl,O),W.forEach(function(D){Zo(vu(V[D]),"_effect-".concat(D),H)})}}),j=ae(T,3),M=j[0],k=j[1],L=j[2];return function(_){var A;return!C||P||!h?A=c.createElement(i3,null):A=c.createElement("style",Ee({},U(U({},rl,k),So,L),{dangerouslySetInnerHTML:{__html:M}})),c.createElement(c.Fragment,null,A,_)}}var a3=function(t,n,r){var o=ae(t,6),l=o[0],s=o[1],u=o[2],f=o[3],m=o[4],p=o[5],g=r||{},h=g.plain;if(m)return null;var y=l,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return y=Ru(l,s,u,S,h),f&&Object.keys(f).forEach(function(C){if(!n[C]){n[C]=!0;var b=vu(f[C]),$=Ru(b,s,"_effect-".concat(C),S,h);C.startsWith("@layer")?y=$+y:y+=$}}),[p,u,y]},UC="cssVar",l3=function(t,n){var r=t.key,o=t.prefix,l=t.unitless,s=t.ignore,u=t.token,f=t.scope,m=f===void 0?"":f,p=c.useContext(js),g=p.cache.instanceId,h=p.container,y=u._tokenKey,S=[].concat(Ae(t.path),[r,m,y]),C=jg(UC,S,function(){var b=n(),$=jC(b,r,{prefix:o,unitless:l,ignore:s,scope:m}),w=ae($,2),R=w[0],O=w[1],I=VC(S,O);return[R,O,I,r]},function(b){var $=ae(b,3),w=$[2];xp&&hs(w,{mark:So,attachTo:h})},function(b){var $=ae(b,3),w=$[1],R=$[2];if(w){var O=Zo(w,R,{mark:So,prepend:"queue",attachTo:h,priority:-999});O[Ri]=g,O.setAttribute(rl,r)}});return C},s3=function(t,n,r){var o=ae(t,4),l=o[1],s=o[2],u=o[3],f=r||{},m=f.plain;if(!l)return null;var p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},h=Ru(l,u,s,g,m);return[p,s,h]};U(U(U({},WC,a3),kC,N4),UC,s3);var At=(function(){function e(t,n){Un(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return qn(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 Na(e){return e.notSplit=!0,e}Na(["borderTop","borderBottom"]),Na(["borderTop"]),Na(["borderBottom"]),Na(["borderLeft","borderRight"]),Na(["borderLeft"]),Na(["borderRight"]);var _g=c.createContext({});function qC(e){return RC(e)||xC(e)||Ig(e)||OC()}function To(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function GC(e,t,n,r){if(!t.length)return n;var o=qC(t),l=o[0],s=o.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Ae(e):u=X({},e),r&&n===void 0&&s.length===1?delete u[l][s[0]]:u[l]=GC(u[l],s,n,r),u}function vo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!To(e,t.slice(0,-1))?e:GC(e,t,n,r)}function c3(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function xy(e){return Array.isArray(e)?[]:{}}var u3=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=xy(t[0]);return t.forEach(function(o){function l(s,u){var f=new Set(u),m=To(o,s),p=Array.isArray(m);if(p||c3(m)){if(!f.has(m)){f.add(m);var g=To(r,s);p?r=vo(r,s,[]):(!g||mt(g)!=="object")&&(r=vo(r,s,xy(m))),u3(m).forEach(function(h){l([].concat(Ae(s),[h]),f)})}}else r=vo(r,s,m)}l([])}),r}function d3(){}const f3=c.createContext({}),nd=()=>{const e=()=>{};return e.deprecated=d3,e},m3=c.createContext(void 0);var KC={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"},p3={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},g3=X(X({},p3),{},{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 XC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},wy={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"]},g3),timePickerLocale:Object.assign({},XC)},Vr="${label} is not a valid ${type}",Ti={locale:"en",Pagination:KC,DatePicker:wy,TimePicker:XC,Calendar:wy,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:Vr,method:Vr,array:Vr,object:Vr,number:Vr,date:Vr,boolean:Vr,integer:Vr,float:Vr,regexp:Vr,email:Vr,url:Vr,hex:Vr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let hu=Object.assign({},Ti.Modal),yu=[];const $y=()=>yu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ti.Modal);function v3(e){if(e){const t=Object.assign({},e);return yu.push(t),hu=$y(),()=>{yu=yu.filter(n=>n!==t),hu=$y()}}hu=Object.assign({},Ti.Modal)}function QC(){return hu}const zg=c.createContext(void 0),ni=(e,t)=>{const n=c.useContext(zg),r=c.useMemo(()=>{var l;const s=t||Ti[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[e,t,n]),o=c.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Ti.locale:l},[n]);return[r,o]},h3="internalMark",y3=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>v3(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(zg.Provider,{value:o},n)},Lg={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Cs=Object.assign(Object.assign({},Lg),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
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}),or=Math.round;function Em(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ey=(e,t,n)=>n===0?e:e/100;function Ql(e,t){const n=t||255;return e>n?n:e<0?0:e}class cn{constructor(t){U(this,"isValid",!0),U(this,"r",0),U(this,"g",0),U(this,"b",0),U(this,"a",1),U(this,"_h",void 0),U(this,"_s",void 0),U(this,"_l",void 0),U(this,"_v",void 0),U(this,"_max",void 0),U(this,"_min",void 0),U(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let l=function(s){return o.startsWith(s)};var r=l;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):l("rgb")?this.fromRgbString(o):l("hsl")?this.fromHslString(o):(l("hsv")||l("hsb"))&&this.fromHsvString(o)}else if(t instanceof cn)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=Ql(t.r),this.g=Ql(t.g),this.b=Ql(t.b),this.a=typeof t.a=="number"?Ql(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=or(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,l=u=>(r[u]-this[u])*o+this[u],s={r:or(l("r")),g:or(l("g")),b:or(l("b")),a:or(l("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=l=>or((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=or(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=or(this.getSaturation()*100),r=or(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Ql(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,l){return parseInt(n[o]+n[l||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=or(r*255);this.r=h,this.g=h,this.b=h}let l=0,s=0,u=0;const f=t/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(f%2-1));f>=0&&f<1?(l=m,s=p):f>=1&&f<2?(l=p,s=m):f>=2&&f<3?(s=m,u=p):f>=3&&f<4?(s=p,u=m):f>=4&&f<5?(l=p,u=m):f>=5&&f<6&&(l=m,u=p);const g=r-m/2;this.r=or((l+g)*255),this.g=or((s+g)*255),this.b=or((u+g)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const l=or(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,u=Math.floor(s),f=s-u,m=or(r*(1-n)*255),p=or(r*(1-n*f)*255),g=or(r*(1-n*(1-f))*255);switch(u){case 0:this.g=g,this.b=m;break;case 1:this.r=p,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=p;break;case 4:this.r=g,this.g=m;break;case 5:default:this.g=m,this.b=p;break}}fromHsvString(t){const n=Em(t,Ey);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Em(t,Ey);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Em(t,(r,o)=>o.includes("%")?or(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var qc=2,Ry=.16,b3=.05,C3=.05,S3=.15,YC=5,ZC=4,x3=[{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 Oy(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-qc*t:Math.round(e.h)+qc*t:r=n?Math.round(e.h)+qc*t:Math.round(e.h)-qc*t,r<0?r+=360:r>=360&&(r-=360),r}function Iy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Ry*t:t===ZC?r=e.s+Ry:r=e.s+b3*t,r>1&&(r=1),n&&t===YC&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Py(e,t,n){var r;return n?r=e.v+C3*t:r=e.v-S3*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ta(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new cn(e),o=r.toHsv(),l=YC;l>0;l-=1){var s=new cn({h:Oy(o,l,!0),s:Iy(o,l,!0),v:Py(o,l,!0)});n.push(s)}n.push(r);for(var u=1;u<=ZC;u+=1){var f=new cn({h:Oy(o,u),s:Iy(o,u),v:Py(o,u)});n.push(f)}return t.theme==="dark"?x3.map(function(m){var p=m.index,g=m.amount;return new cn(t.backgroundColor||"#141414").mix(n[p],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Rm={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"},Op=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Op.primary=Op[5];var Ip=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ip.primary=Ip[5];var Pp=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Pp.primary=Pp[5];var Ou=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ou.primary=Ou[5];var Tp=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Tp.primary=Tp[5];var Mp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Mp.primary=Mp[5];var jp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];jp.primary=jp[5];var kp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];kp.primary=kp[5];var Iu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Iu.primary=Iu[5];var Np=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Np.primary=Np[5];var _p=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_p.primary=_p[5];var zp=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];zp.primary=zp[5];var Lp=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lp.primary=Lp[5];var Om={red:Op,volcano:Ip,orange:Pp,gold:Ou,yellow:Tp,lime:Mp,green:jp,cyan:kp,blue:Iu,geekblue:Np,purple:_p,magenta:zp,grey:Lp};function JC(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:u,colorBgBase:f,colorTextBase:m}=e,p=t(u),g=t(r),h=t(o),y=t(l),S=t(s),C=n(f,m),b=e.colorLink||e.colorInfo,$=t(b),w=new cn(y[1]).mix(new cn(y[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[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:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:w,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg: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:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const w3=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function $3(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},w3(r))}const E3=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bu(e){return(e+8)/e}function R3(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,l=e*Math.pow(Math.E,o/5),s=r>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:bu(n)}))}const O3=e=>{const t=R3(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),o=n[1],l=n[0],s=n[2],u=r[1],f=r[0],m=r[2];return{fontSizeSM:l,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(u*o),fontHeightLG:Math.round(m*s),fontHeightSM:Math.round(f*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function I3(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 eo=(e,t)=>new cn(e).setA(t).toRgbString(),Yl=(e,t)=>new cn(e).darken(t).toHexString(),P3=e=>{const t=ta(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]}},T3=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:eo(r,.88),colorTextSecondary:eo(r,.65),colorTextTertiary:eo(r,.45),colorTextQuaternary:eo(r,.25),colorFill:eo(r,.15),colorFillSecondary:eo(r,.06),colorFillTertiary:eo(r,.04),colorFillQuaternary:eo(r,.02),colorBgSolid:eo(r,1),colorBgSolidHover:eo(r,.75),colorBgSolidActive:eo(r,.95),colorBgLayout:Yl(n,4),colorBgContainer:Yl(n,0),colorBgElevated:Yl(n,0),colorBgSpotlight:eo(r,.85),colorBgBlur:"transparent",colorBorder:Yl(n,15),colorBorderSecondary:Yl(n,6)}};function eS(e){Rm.pink=Rm.magenta,Om.pink=Om.magenta;const t=Object.keys(Lg).map(n=>{const r=e[n]===Rm[n]?Om[n]:ta(e[n]);return Array.from({length:10},()=>1).reduce((o,l,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),JC(e,{generateColorPalettes:P3,generateNeutralColorPalettes:T3})),O3(e.fontSize)),I3(e)),E3(e)),$3(e))}const tS=Sp(eS),Pu={token:Cs,override:{override:Cs},hashed:!0},nS=Y.createContext(Pu),Ss="ant",rd="anticon",M3=["outlined","borderless","filled","underlined"],j3=(e,t)=>t||(e?`${Ss}-${e}`:Ss),It=c.createContext({getPrefixCls:j3,iconPrefixCls:rd}),{Consumer:eB}=It,Ty={};function Ir(e){const t=c.useContext(It),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:Ty,styles:Ty},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const k3=`-ant-${Date.now()}-${Math.random()}`;function N3(e,t){const n={},r=(s,u)=>{let f=s.clone();return f=(u==null?void 0:u(f))||f,f.toRgbString()},o=(s,u)=>{const f=new cn(s),m=ta(f.toRgbString());n[`${u}-color`]=r(f),n[`${u}-color-disabled`]=m[1],n[`${u}-color-hover`]=m[4],n[`${u}-color-active`]=m[6],n[`${u}-color-outline`]=f.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=m[0],n[`${u}-color-deprecated-border`]=m[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new cn(t.primaryColor),u=ta(s.toRgbString());u.forEach((m,p)=>{n[`primary-${p+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 cn(u[0]);n["primary-color-active-deprecated-f-30"]=r(f,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(f,m=>m.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
59
+ :root {
60
+ ${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
61
+ `)}
62
+ }
63
+ `.trim()}function _3(e,t){const n=N3(e,t);Cr()&&Zo(n,`${k3}-dynamic-theme`)}const al=c.createContext(!1),rS=({children:e,disabled:t})=>{const n=c.useContext(al);return c.createElement(al.Provider,{value:t??n},e)},ll=c.createContext(void 0),z3=({children:e,size:t})=>{const n=c.useContext(ll);return c.createElement(ll.Provider,{value:t||n},e)};function L3(){const e=c.useContext(al),t=c.useContext(ll);return{componentDisabled:e,componentSize:t}}var oS=qn(function e(){Un(this,e)}),iS="CALC_UNIT",B3=new RegExp(iS,"g");function Im(e){return typeof e=="number"?"".concat(e).concat(iS):e}var A3=(function(e){ei(n,e);var t=ti(n);function n(r,o){var l;Un(this,n),l=t.call(this),U(Ht(l),"result",""),U(Ht(l),"unitlessCssVar",void 0),U(Ht(l),"lowPriority",void 0);var s=mt(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=Im(r):s==="string"&&(l.result=r),l}return qn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Im(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Im(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var l=this,s=o||{},u=s.unit,f=!0;return typeof u=="boolean"?f=u:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(f=!1),this.result=this.result.replace(B3,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(oS),F3=(function(e){ei(n,e);var t=ti(n);function n(r){var o;return Un(this,n),o=t.call(this),U(Ht(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return qn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(oS),D3=function(t,n){var r=t==="css"?A3:F3;return function(o){return new r(o,n)}},My=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 Nn(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function sl(e){var t=c.useRef(!1),n=c.useState(e),r=ae(n,2),o=r[0],l=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(u,f){f&&t.current||l(u)}return[o,s]}function Pm(e){return e!==void 0}function Vn(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,u=sl(function(){return Pm(o)?o:Pm(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ae(u,2),m=f[0],p=f[1],g=o!==void 0?o:m,h=s?s(g):g,y=Nn(l),S=sl([g]),C=ae(S,2),b=C[0],$=C[1];wp(function(){var R=b[0];m!==R&&y(m,R)},[b]),wp(function(){Pm(o)||p(o)},[o]);var w=Nn(function(R,O){p(R,O),$([g],O)});return[h,w]}function jy(e,t,n,r){var o=X({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var f=ae(u,2),m=f[0],p=f[1];if(o!=null&&o[m]||o!=null&&o[p]){var g;(g=o[p])!==null&&g!==void 0||(o[p]=o==null?void 0:o[m])}})}var s=X(X({},n),o);return Object.keys(s).forEach(function(u){s[u]===t[u]&&delete s[u]}),s}var aS=typeof CSSINJS_STATISTIC<"u",Bp=!0;function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!aS)return Object.assign.apply(Object,[{}].concat(t));Bp=!1;var r={};return t.forEach(function(o){if(mt(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),Bp=!0,r}var ky={};function H3(){}var V3=function(t){var n,r=t,o=H3;return aS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,u){if(Bp){var f;(f=n)===null||f===void 0||f.add(u)}return s[u]}}),o=function(s,u){var f;ky[s]={global:Array.from(n),component:X(X({},(f=ky[s])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:o}};function Ny(e,t,n){if(typeof n=="function"){var r;return n(Yt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function W3(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(l){return J(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(l){return J(l)}).join(","),")")}}}var U3=1e3*60*10,q3=(function(){function e(){Un(this,e),U(this,"map",new Map),U(this,"objectIDMap",new WeakMap),U(this,"nextID",0),U(this,"lastAccessBeat",new Map),U(this,"accessBeat",0)}return qn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(l){return l&&mt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(mt(l),"_").concat(l)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,l){r-o>U3&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),_y=new q3;function G3(e,t){return Y.useMemo(function(){var n=_y.get(t);if(n)return n;var r=e();return _y.set(t,r),r},t)}var K3=function(){return{}};function X3(e){var t=e.useCSP,n=t===void 0?K3:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,u=e.getCompUnitless;function f(h,y,S,C){var b=Array.isArray(h)?h[0]:h;function $(j){return"".concat(String(b)).concat(j.slice(0,1).toUpperCase()).concat(j.slice(1))}var w=(C==null?void 0:C.unitless)||{},R=typeof u=="function"?u(h):{},O=X(X({},R),{},U({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(j){O[$(j)]=w[j]});var I=X(X({},C),{},{unitless:O,prefixToken:$}),P=p(h,y,S,I),T=m(b,S,I);return function(j){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,k=P(j,M),L=ae(k,2),_=L[1],A=T(M),B=ae(A,2),q=B[0],V=B[1];return[q,_,V]}}function m(h,y,S){var C=S.unitless,b=S.injectStyle,$=b===void 0?!0:b,w=S.prefixToken,R=S.ignore,O=function(T){var j=T.rootCls,M=T.cssVar,k=M===void 0?{}:M,L=r(),_=L.realToken;return l3({path:[h],prefix:k.prefix,key:k.key,unitless:C,ignore:R,token:_,scope:j},function(){var A=Ny(h,_,y),B=jy(h,_,A,{deprecatedTokens:S==null?void 0:S.deprecatedTokens});return Object.keys(A).forEach(function(q){B[w(q)]=B[q],delete B[q]}),B}),null},I=function(T){var j=r(),M=j.cssVar;return[function(k){return $&&M?Y.createElement(Y.Fragment,null,Y.createElement(O,{rootCls:T,cssVar:M,component:h}),k):k},M==null?void 0:M.key]};return I}function p(h,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],$=ae(b,1),w=$[0],R=b.join("-"),O=e.layer||{name:"antd"};return function(I){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,T=r(),j=T.theme,M=T.realToken,k=T.hashId,L=T.token,_=T.cssVar,A=o(),B=A.rootPrefixCls,q=A.iconPrefixCls,V=n(),H=_?"css":"js",F=G3(function(){var ne=new Set;return _&&Object.keys(C.unitless||{}).forEach(function(ee){ne.add(fu(ee,_.prefix)),ne.add(fu(ee,My(w,_.prefix)))}),D3(H,ne)},[H,w,_==null?void 0:_.prefix]),Z=W3(H),W=Z.max,z=Z.min,D={theme:j,token:L,hashId:k,nonce:function(){return V.nonce},clientOnly:C.clientOnly,layer:O,order:C.order||-999};typeof l=="function"&&Rp(X(X({},D),{},{clientOnly:!1,path:["Shared",B]}),function(){return l(L,{prefix:{rootPrefixCls:B,iconPrefixCls:q},csp:V})});var Q=Rp(X(X({},D),{},{path:[R,I,q]}),function(){if(C.injectStyle===!1)return[];var ne=V3(L),ee=ne.token,oe=ne.flush,fe=Ny(w,M,S),me=".".concat(I),ue=jy(w,M,fe,{deprecatedTokens:C.deprecatedTokens});_&&fe&&mt(fe)==="object"&&Object.keys(fe).forEach(function(ye){fe[ye]="var(".concat(fu(ye,My(w,_.prefix)),")")});var Ce=Yt(ee,{componentCls:me,prefixCls:I,iconCls:".".concat(q),antCls:".".concat(B),calc:F,max:W,min:z},_?fe:ue),pe=y(Ce,{hashId:k,prefixCls:I,rootPrefixCls:B,iconPrefixCls:q});oe(w,ue);var se=typeof s=="function"?s(Ce,I,P,C.resetFont):null;return[C.resetStyle===!1?null:se,pe]});return[Q,k]}}function g(h,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=p(h,y,S,X({resetStyle:!1,order:-998},C)),$=function(R){var O=R.prefixCls,I=R.rootCls,P=I===void 0?O:I;return b(O,P),null};return $}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:p}}const Mi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Q3="5.29.3";function Tm(e){return e>=0&&e<=255}function os(e,t){const{r:n,g:r,b:o,a:l}=new cn(e).toRgb();if(l<1)return e;const{r:s,g:u,b:f}=new cn(t).toRgb();for(let m=.01;m<=1;m+=.01){const p=Math.round((n-s*(1-m))/m),g=Math.round((r-u*(1-m))/m),h=Math.round((o-f*(1-m))/m);if(Tm(p)&&Tm(g)&&Tm(h))return new cn({r:p,g,b:h,a:Math.round(m*100)/100}).toRgbString()}return new cn({r:n,g:r,b:o,a:1}).toRgbString()}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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lS(e){const{override:t}=e,n=Y3(e,["override"]),r=Object.assign({},t);Object.keys(Cs).forEach(h=>{delete r[h]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,u=768,f=992,m=1200,p=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:os(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:os(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:os(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:os(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
64
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
65
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
66
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
67
+ `,boxShadowSecondary:`
68
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
69
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
70
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
71
+ `,boxShadowTertiary:`
72
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
73
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
74
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
75
+ `,screenXS:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
76
+ 0 1px 2px -2px ${new cn("rgba(0, 0, 0, 0.16)").toRgbString()},
77
+ 0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()},
78
+ 0 5px 12px 4px ${new cn("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 zy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sS={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},Z3={motionBase:!0,motionUnit:!0},J3={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},cS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=zy(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=lS(s),l&&Object.entries(l).forEach(([u,f])=>{const{theme:m}=f,p=zy(f,["theme"]);let g=p;m&&(g=cS(Object.assign(Object.assign({},s),p),{override:p},m)),s[u]=g}),s};function Pr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Y.useContext(nS),l=`${Q3}-${t||""}`,s=n||tS,[u,f,m]=k4(s,[Cs,e],{salt:l,override:r,getComputedToken:cS,formatToken:lS,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:sS,ignore:Z3,preserve:J3}});return[s,m,t?f:"",u,o]}const xs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fn=(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}),pl=()=>({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"}}),Tu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),eR=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"}}}),tR=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),s),{[o]:s})}},cl=(e,t)=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),ko=(e,t)=>({"&:focus-visible":cl(e,t)}),uS=e=>({[`.${e}`]:Object.assign(Object.assign({},pl()),{[`.${e} .${e}-icon`]:{display:"block"}})}),dS=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"},ko(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:pn,genComponentStyleHook:nR,genSubStyleComponent:ks}=X3({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(It);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Pr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=c.useContext(It);return e??{}},getResetStyles:(e,t)=>{var n;const r=eR(e);return[r,{"&":r},uS((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:rd)]},getCommonStyle:tR,getCompUnitless:()=>sS});function od(e,t){return Mi.reduce((n,r)=>{const o=e[`${r}1`],l=e[`${r}3`],s=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:l,darkColor:s,textColor:u}))},{})}const rR=(e,t)=>{const[n,r]=Pr();return Rp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>uS(e))},oR=Object.assign({},Yu),{useId:Ly}=oR,iR=()=>"",aR=typeof Ly>"u"?iR:Ly;function lR(e,t,n){var r;nd();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},Pu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Pu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=aR();return Ms(()=>{var u,f;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{m[h]=Object.assign(Object.assign({},m[h]),e.components[h])});const p=`css-var-${s.replace(/:/g,"")}`,g=((u=o.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((f=o.cssVar)===null||f===void 0?void 0:f.key)||p});return Object.assign(Object.assign(Object.assign({},l),o),{token:Object.assign(Object.assign({},l.token),o.token),components:m,cssVar:g})},[o,l],(u,f)=>u.some((m,p)=>{const g=f[p];return!ys(m,g,!0)}))}var sR=["children"],fS=c.createContext({});function cR(e){var t=e.children,n=jt(e,sR);return c.createElement(fS.Provider,{value:n},t)}var uR=(function(e){ei(n,e);var t=ti(n);function n(){return Un(this,n),t.apply(this,arguments)}return qn(n,[{key:"render",value:function(){return this.props.children}}]),n})(c.Component);function dR(e){var t=c.useReducer(function(u){return u+1},0),n=ae(t,2),r=n[1],o=c.useRef(e),l=Nn(function(){return o.current}),s=Nn(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[l,s]}var wi="none",Gc="appear",Kc="enter",Xc="leave",By="none",ho="prepare",Qa="start",Ya="active",Bg="end",mS="prepared";function Ay(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 fR(e,t){var n={animationend:Ay("Animation","AnimationEnd"),transitionend:Ay("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var mR=fR(Cr(),typeof window<"u"?window:{}),pS={};if(Cr()){var pR=document.createElement("div");pS=pR.style}var Qc={};function gS(e){if(Qc[e])return Qc[e];var t=mR[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var l=n[o];if(Object.prototype.hasOwnProperty.call(t,l)&&l in pS)return Qc[e]=t[l],Qc[e]}return""}var vS=gS("animationend"),hS=gS("transitionend"),yS=!!(vS&&hS),Fy=vS||"animationend",Dy=hS||"transitionend";function Hy(e,t){if(!e)return null;if(mt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const gR=(function(e){var t=c.useRef();function n(o){o&&(o.removeEventListener(Dy,e),o.removeEventListener(Fy,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Dy,e),o.addEventListener(Fy,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var bS=Cr()?c.useLayoutEffect:c.useEffect;const vR=(function(){var e=c.useRef(null);function t(){Sn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Sn(function(){o<=1?r({isCanceled:function(){return l!==e.current}}):n(r,o-1)});e.current=l}return c.useEffect(function(){return function(){t()}},[]),[n,t]});var hR=[ho,Qa,Ya,Bg],yR=[ho,mS],CS=!1,bR=!0;function SS(e){return e===Ya||e===Bg}const CR=(function(e,t,n){var r=sl(By),o=ae(r,2),l=o[0],s=o[1],u=vR(),f=ae(u,2),m=f[0],p=f[1];function g(){s(ho,!0)}var h=t?yR:hR;return bS(function(){if(l!==By&&l!==Bg){var y=h.indexOf(l),S=h[y+1],C=n(l);C===CS?s(S,!0):S&&m(function(b){function $(){b.isCanceled()||s(S,!0)}C===!0?$():Promise.resolve(C).then($)})}},[e,l]),c.useEffect(function(){return function(){p()}},[]),[g,l]});function SR(e,t,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,u=s===void 0?!0:s,f=r.motionLeave,m=f===void 0?!0:f,p=r.motionDeadline,g=r.motionLeaveImmediately,h=r.onAppearPrepare,y=r.onEnterPrepare,S=r.onLeavePrepare,C=r.onAppearStart,b=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,R=r.onEnterActive,O=r.onLeaveActive,I=r.onAppearEnd,P=r.onEnterEnd,T=r.onLeaveEnd,j=r.onVisibleChanged,M=sl(),k=ae(M,2),L=k[0],_=k[1],A=dR(wi),B=ae(A,2),q=B[0],V=B[1],H=sl(null),F=ae(H,2),Z=F[0],W=F[1],z=q(),D=c.useRef(!1),Q=c.useRef(null);function ne(){return n()}var ee=c.useRef(!1);function oe(){V(wi),W(null,!0)}var fe=Nn(function(Le){var Pe=q();if(Pe!==wi){var Be=ne();if(!(Le&&!Le.deadline&&Le.target!==Be)){var Re=ee.current,tt;Pe===Gc&&Re?tt=I==null?void 0:I(Be,Le):Pe===Kc&&Re?tt=P==null?void 0:P(Be,Le):Pe===Xc&&Re&&(tt=T==null?void 0:T(Be,Le)),Re&&tt!==!1&&oe()}}}),me=gR(fe),ue=ae(me,1),Ce=ue[0],pe=function(Pe){switch(Pe){case Gc:return U(U(U({},ho,h),Qa,C),Ya,w);case Kc:return U(U(U({},ho,y),Qa,b),Ya,R);case Xc:return U(U(U({},ho,S),Qa,$),Ya,O);default:return{}}},se=c.useMemo(function(){return pe(z)},[z]),ye=CR(z,!e,function(Le){if(Le===ho){var Pe=se[ho];return Pe?Pe(ne()):CS}if(le in se){var Be;W(((Be=se[le])===null||Be===void 0?void 0:Be.call(se,ne(),null))||null)}return le===Ya&&z!==wi&&(Ce(ne()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){fe({deadline:!0})},p))),le===mS&&oe(),bR}),ve=ae(ye,2),ce=ve[0],le=ve[1],be=SS(le);ee.current=be;var Se=c.useRef(null);bS(function(){if(!(D.current&&Se.current===t)){_(t);var Le=D.current;D.current=!0;var Pe;!Le&&t&&u&&(Pe=Gc),Le&&t&&l&&(Pe=Kc),(Le&&!t&&m||!Le&&g&&!t&&m)&&(Pe=Xc);var Be=pe(Pe);Pe&&(e||Be[ho])?(V(Pe),ce()):V(wi),Se.current=t}},[t]),c.useEffect(function(){(z===Gc&&!u||z===Kc&&!l||z===Xc&&!m)&&V(wi)},[u,l,m]),c.useEffect(function(){return function(){D.current=!1,clearTimeout(Q.current)}},[]);var $e=c.useRef(!1);c.useEffect(function(){L&&($e.current=!0),L!==void 0&&z===wi&&(($e.current||L)&&(j==null||j(L)),$e.current=!0)},[L,z]);var je=Z;return se[ho]&&le===Qa&&(je=X({transition:"none"},je)),[z,le,je,L??t]}function xR(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(o,l){return!!(o.motionName&&t&&l!==!1)}var r=c.forwardRef(function(o,l){var s=o.visible,u=s===void 0?!0:s,f=o.removeOnLeave,m=f===void 0?!0:f,p=o.forceRender,g=o.children,h=o.motionName,y=o.leavedClassName,S=o.eventProps,C=c.useContext(fS),b=C.motion,$=n(o,b),w=c.useRef(),R=c.useRef();function O(){try{return w.current instanceof HTMLElement?w.current:du(R.current)}catch{return null}}var I=SR($,u,O,o),P=ae(I,4),T=P[0],j=P[1],M=P[2],k=P[3],L=c.useRef(k);k&&(L.current=!0);var _=c.useCallback(function(F){w.current=F,Eg(l,F)},[l]),A,B=X(X({},S),{},{visible:u});if(!g)A=null;else if(T===wi)k?A=g(X({},B),_):!m&&L.current&&y?A=g(X(X({},B),{},{className:y}),_):p||!m&&!y?A=g(X(X({},B),{},{style:{display:"none"}}),_):A=null;else{var q;j===ho?q="prepare":SS(j)?q="active":j===Qa&&(q="start");var V=Hy(h,"".concat(T,"-").concat(q));A=g(X(X({},B),{},{className:re(Hy(h,T),U(U({},V,V&&q),h,typeof h=="string")),style:M}),_)}if(c.isValidElement(A)&&Ni(A)){var H=ia(A);H||(A=c.cloneElement(A,{ref:_}))}return c.createElement(uR,{ref:R},A)});return r.displayName="CSSMotion",r}const $o=xR(yS);var Ap="add",Fp="keep",Dp="remove",Mm="removed";function wR(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function Hp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wR)}function $R(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,l=Hp(e),s=Hp(t);l.forEach(function(m){for(var p=!1,g=r;g<o;g+=1){var h=s[g];if(h.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(y){return X(X({},y),{},{status:Ap})})),r=g),n.push(X(X({},h),{},{status:Fp})),r+=1,p=!0;break}}p||n.push(X(X({},m),{},{status:Dp}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return X(X({},m),{},{status:Ap})})));var u={};n.forEach(function(m){var p=m.key;u[p]=(u[p]||0)+1});var f=Object.keys(u).filter(function(m){return u[m]>1});return f.forEach(function(m){n=n.filter(function(p){var g=p.key,h=p.status;return g!==m||h!==Dp}),n.forEach(function(p){p.key===m&&(p.status=Fp)})}),n}var ER=["component","children","onVisibleChanged","onAllRemoved"],RR=["status"],OR=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function IR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$o,n=(function(r){ei(l,r);var o=ti(l);function l(){var s;Un(this,l);for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return s=o.call.apply(o,[this].concat(f)),U(Ht(s),"state",{keyEntities:[]}),U(Ht(s),"removeKey",function(p){s.setState(function(g){var h=g.keyEntities.map(function(y){return y.key!==p?y:X(X({},y),{},{status:Mm})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(y){var S=y.status;return S!==Mm}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return qn(l,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,m=this.props,p=m.component,g=m.children,h=m.onVisibleChanged;m.onAllRemoved;var y=jt(m,ER),S=p||c.Fragment,C={};return OR.forEach(function(b){C[b]=y[b],delete y[b]}),delete y.keys,c.createElement(S,y,f.map(function(b,$){var w=b.status,R=jt(b,RR),O=w===Ap||w===Fp;return c.createElement(t,Ee({},C,{key:R.key,visible:O,eventProps:R,onVisibleChanged:function(P){h==null||h(P,{key:R.key}),P||u.removeKey(R.key)}}),function(I,P){return g(X(X({},I),{},{index:$}),P)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var m=u.keys,p=f.keyEntities,g=Hp(m),h=$R(p,g);return{keyEntities:h.filter(function(y){var S=p.find(function(C){var b=C.key;return y.key===b});return!(S&&S.status===Mm&&y.status===Dp)})}}}]),l})(c.Component);return U(n,"defaultProps",{component:"div"}),n}const PR=IR(yS),Vy=c.createContext(!0);function TR(e){const t=c.useContext(Vy),{children:n}=e,[,r]=Pr(),{motion:o}=r,l=c.useRef(!1);return l.current||(l.current=t!==o),l.current?c.createElement(Vy.Provider,{value:o},c.createElement(cR,{motion:o},n)):n}const MR=()=>null;var jR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kR=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Mu,xS,wS,$S;function Cu(){return Mu||Ss}function NR(){return xS||rd}function _R(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const zR=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Mu=t),n!==void 0&&(xS=n),"holderRender"in e&&($S=o),r&&(_R(r)?_3(Cu(),r):wS=r)},ES=()=>({getPrefixCls:(e,t)=>t||(e?`${Cu()}-${e}`:Cu()),getIconPrefixCls:NR,getRootPrefixCls:()=>Mu||Cu(),getTheme:()=>wS,holderRender:$S}),LR=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:u,componentSize:f,direction:m,space:p,splitter:g,virtual:h,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,popupOverflow:C,legacyLocale:b,parentContext:$,iconPrefixCls:w,theme:R,componentDisabled:O,segmented:I,statistic:P,spin:T,calendar:j,carousel:M,cascader:k,collapse:L,typography:_,checkbox:A,descriptions:B,divider:q,drawer:V,skeleton:H,steps:F,image:Z,layout:W,list:z,mentions:D,modal:Q,progress:ne,result:ee,slider:oe,breadcrumb:fe,menu:me,pagination:ue,input:Ce,textArea:pe,empty:se,badge:ye,radio:ve,rate:ce,switch:le,transfer:be,avatar:Se,message:$e,tag:je,table:Le,card:Pe,tabs:Be,timeline:Re,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:qe,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:ke,warning:Ye,tour:Te,tooltip:De,popover:wt,popconfirm:pt,floatButton:Vt,floatButtonGroup:Dt,variant:an,inputNumber:yn,treeSelect:Ut}=e,Mt=c.useCallback((Qe,kt)=>{const{prefixCls:zt}=e;if(kt)return kt;const Ot=zt||$.getPrefixCls("");return Qe?`${Ot}-${Qe}`:Ot},[$.getPrefixCls,e.prefixCls]),Ct=w||$.iconPrefixCls||rd,qt=n||$.csp;rR(Ct,qt);const Bt=lR(R,$.theme,{prefixCls:Mt("")}),Ze={csp:qt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:u||b,direction:m,space:p,splitter:g,virtual:h,popupMatchSelectWidth:S??y,popupOverflow:C,getPrefixCls:Mt,iconPrefixCls:Ct,theme:Bt,segmented:I,statistic:P,spin:T,calendar:j,carousel:M,cascader:k,collapse:L,typography:_,checkbox:A,descriptions:B,divider:q,drawer:V,skeleton:H,steps:F,image:Z,input:Ce,textArea:pe,layout:W,list:z,mentions:D,modal:Q,progress:ne,result:ee,slider:oe,breadcrumb:fe,menu:me,pagination:ue,empty:se,badge:ye,radio:ve,rate:ce,switch:le,transfer:be,avatar:Se,message:$e,tag:je,table:Le,card:Pe,tabs:Be,timeline:Re,timePicker:tt,upload:lt,notification:bt,tree:st,colorPicker:qe,datePicker:it,rangePicker:Ve,flex:dt,wave:Xe,dropdown:ke,warning:Ye,tour:Te,tooltip:De,popover:wt,popconfirm:pt,floatButton:Vt,floatButtonGroup:Dt,variant:an,inputNumber:yn,treeSelect:Ut},yt=Object.assign({},$);Object.keys(Ze).forEach(Qe=>{Ze[Qe]!==void 0&&(yt[Qe]=Ze[Qe])}),kR.forEach(Qe=>{const kt=e[Qe];kt&&(yt[Qe]=kt)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const at=Ms(()=>yt,yt,(Qe,kt)=>{const zt=Object.keys(Qe),Ot=Object.keys(kt);return zt.length!==Ot.length||zt.some(Pt=>Qe[Pt]!==kt[Pt])}),{layer:Oe}=c.useContext(js),we=c.useMemo(()=>({prefixCls:Ct,csp:qt,layer:Oe?"antd":void 0}),[Ct,qt,Oe]);let xe=c.createElement(c.Fragment,null,c.createElement(MR,{dropdownMatchSelectWidth:y}),t);const Ne=c.useMemo(()=>{var Qe,kt,zt,Ot;return Xa(((Qe=Ti.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((zt=(kt=at.locale)===null||kt===void 0?void 0:kt.Form)===null||zt===void 0?void 0:zt.defaultValidateMessages)||{},((Ot=at.form)===null||Ot===void 0?void 0:Ot.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[at,s==null?void 0:s.validateMessages]);Object.keys(Ne).length>0&&(xe=c.createElement(m3.Provider,{value:Ne},xe)),u&&(xe=c.createElement(y3,{locale:u,_ANT_MARK__:h3},xe)),xe=c.createElement(_g.Provider,{value:we},xe),f&&(xe=c.createElement(z3,{size:f},xe)),xe=c.createElement(TR,null,xe);const Ke=c.useMemo(()=>{const Qe=Bt||{},{algorithm:kt,token:zt,components:Ot,cssVar:Pt}=Qe,vn=jR(Qe,["algorithm","token","components","cssVar"]),dn=kt&&(!Array.isArray(kt)||kt.length>0)?Sp(kt):tS,bn={};Object.entries(Ot||{}).forEach(([Xt,en])=>{const _e=Object.assign({},en);"algorithm"in _e&&(_e.algorithm===!0?_e.theme=dn:(Array.isArray(_e.algorithm)||typeof _e.algorithm=="function")&&(_e.theme=Sp(_e.algorithm)),delete _e.algorithm),bn[Xt]=_e});const On=Object.assign(Object.assign({},Cs),zt);return Object.assign(Object.assign({},vn),{theme:dn,token:On,components:bn,override:Object.assign({override:On},bn),cssVar:Pt})},[Bt]);return R&&(xe=c.createElement(nS.Provider,{value:Ke},xe)),at.warning&&(xe=c.createElement(f3.Provider,{value:at.warning},xe)),O!==void 0&&(xe=c.createElement(rS,{disabled:O},xe)),c.createElement(It.Provider,{value:at},xe)},Bo=e=>{const t=c.useContext(It),n=c.useContext(zg);return c.createElement(LR,Object.assign({parentContext:t,legacyLocale:n},e))};Bo.ConfigContext=It;Bo.SizeContext=ll;Bo.config=zR;Bo.useConfig=L3;Object.defineProperty(Bo,"SizeContext",{get:()=>ll});var BR={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 RS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function AR(e){return RS(e)instanceof ShadowRoot}function ju(e){return AR(e)?RS(e):null}function FR(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function DR(e,t){cr(e,"[@ant-design/icons] ".concat(t))}function Wy(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function Uy(){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[FR(n)]=r}return t},{})}function Vp(e,t,n){return n?Y.createElement(e.tag,X(X({key:t},Uy(e.attrs)),n),(e.children||[]).map(function(r,o){return Vp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Y.createElement(e.tag,X({key:t},Uy(e.attrs)),(e.children||[]).map(function(r,o){return Vp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function OS(e){return ta(e)[0]}function IS(e){return e?Array.isArray(e)?e:[e]:[]}var HR=`
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
+ `,VR=function(t){var n=c.useContext(_g),r=n.csp,o=n.prefixCls,l=n.layer,s=HR;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
151
+ `).concat(s,`
152
+ }`)),c.useEffect(function(){var u=t.current,f=ju(u);Zo(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:f})},[])},WR=["icon","className","onClick","style","primaryColor","secondaryColor"],us={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UR(e){var t=e.primaryColor,n=e.secondaryColor;us.primaryColor=t,us.secondaryColor=n||OS(t),us.calculated=!!n}function qR(){return X({},us)}var gl=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,u=t.secondaryColor,f=jt(t,WR),m=c.useRef(),p=us;if(s&&(p={primaryColor:s,secondaryColor:u||OS(s)}),VR(m),DR(Wy(n),"icon should be icon definiton, but got ".concat(n)),!Wy(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=X(X({},g),{},{icon:g.icon(p.primaryColor,p.secondaryColor)})),Vp(g.icon,"svg-".concat(g.name),X(X({className:r,onClick:o,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};gl.displayName="IconReact";gl.getTwoToneColors=qR;gl.setTwoToneColors=UR;function PS(e){var t=IS(e),n=ae(t,2),r=n[0],o=n[1];return gl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function GR(){var e=gl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var KR=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];PS(Iu.primary);var gn=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,l=e.rotate,s=e.tabIndex,u=e.onClick,f=e.twoToneColor,m=jt(e,KR),p=c.useContext(_g),g=p.prefixCls,h=g===void 0?"anticon":g,y=p.rootClassName,S=re(y,h,U(U({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),C=s;C===void 0&&u&&(C=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,$=IS(f),w=ae($,2),R=w[0],O=w[1];return c.createElement("span",Ee({role:"img","aria-label":r.name},m,{ref:t,tabIndex:C,onClick:u,className:S}),c.createElement(gl,{icon:r,primaryColor:R,secondaryColor:O,style:b}))});gn.displayName="AntdIcon";gn.getTwoToneColor=GR;gn.setTwoToneColor=PS;var XR=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:BR}))},TS=c.forwardRef(XR),QR={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"},YR=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:QR}))},id=c.forwardRef(YR),ZR={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"},JR=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:ZR}))},vl=c.forwardRef(JR),eO={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"},tO=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:eO}))},MS=c.forwardRef(tO),nO={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"},rO=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:nO}))},jS=c.forwardRef(rO),oO=`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`,iO=`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`,aO="".concat(oO," ").concat(iO).split(/[\s\n]+/),lO="aria-",sO="data-";function qy(e,t){return e.indexOf(t)===0}function No(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=X({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||qy(o,lO))||n.data&&qy(o,sO)||n.attr&&aO.includes(o))&&(r[o]=e[o])}),r}function kS(e){return e&&Y.isValidElement(e)&&e.type===Y.Fragment}const NS=(e,t,n)=>Y.isValidElement(e)?Y.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Or(e,t){return NS(e,e,t)}const ri=e=>{const[,,,,t]=Pr();return t?`${e}-css-var`:""};var Ue={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},_S=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,l=e.duration,s=l===void 0?4.5:l,u=e.showProgress,f=e.pauseOnHover,m=f===void 0?!0:f,p=e.eventKey,g=e.content,h=e.closable,y=e.closeIcon,S=y===void 0?"x":y,C=e.props,b=e.onClick,$=e.onNoticeClose,w=e.times,R=e.hovering,O=c.useState(!1),I=ae(O,2),P=I[0],T=I[1],j=c.useState(0),M=ae(j,2),k=M[0],L=M[1],_=c.useState(0),A=ae(_,2),B=A[0],q=A[1],V=R||P,H=s>0&&u,F=function(){$(p)},Z=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===Ue.ENTER)&&F()};c.useEffect(function(){if(!V&&s>0){var ne=Date.now()-B,ee=setTimeout(function(){F()},s*1e3-B);return function(){m&&clearTimeout(ee),q(Date.now()-ne)}}},[s,V,w]),c.useEffect(function(){if(!V&&H&&(m||B===0)){var ne=performance.now(),ee,oe=function fe(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(me){var ue=me+B-ne,Ce=Math.min(ue/(s*1e3),1);L(Ce*100),Ce<1&&fe()})};return oe(),function(){m&&cancelAnimationFrame(ee)}}},[s,B,V,H,w]);var W=c.useMemo(function(){return mt(h)==="object"&&h!==null?h:h?{closeIcon:S}:{}},[h,S]),z=No(W,!0),D=100-(!k||k<0?0:k>100?100:k),Q="".concat(n,"-notice");return c.createElement("div",Ee({},C,{ref:t,className:re(Q,o,U({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(ee){var oe;T(!0),C==null||(oe=C.onMouseEnter)===null||oe===void 0||oe.call(C,ee)},onMouseLeave:function(ee){var oe;T(!1),C==null||(oe=C.onMouseLeave)===null||oe===void 0||oe.call(C,ee)},onClick:b}),c.createElement("div",{className:"".concat(Q,"-content")},g),h&&c.createElement("a",Ee({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:Z,"aria-label":"Close"},z,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),F()}}),W.closeIcon),H&&c.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:D},D+"%"))}),zS=Y.createContext({}),cO=function(t){var n=t.children,r=t.classNames;return Y.createElement(zS.Provider,{value:{classNames:r}},n)},Gy=8,Ky=3,Xy=16,uO=function(t){var n={offset:Gy,threshold:Ky,gap:Xy};if(t&&mt(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:Gy,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ky,n.gap=(l=t.gap)!==null&&l!==void 0?l:Xy}return[!!t,n]},dO=["className","style","classNames","styles"],fO=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,l=t.className,s=t.style,u=t.motion,f=t.onAllNoticeRemoved,m=t.onNoticeClose,p=t.stack,g=c.useContext(zS),h=g.classNames,y=c.useRef({}),S=c.useState(null),C=ae(S,2),b=C[0],$=C[1],w=c.useState([]),R=ae(w,2),O=R[0],I=R[1],P=n.map(function(V){return{config:V,key:String(V.key)}}),T=uO(p),j=ae(T,2),M=j[0],k=j[1],L=k.offset,_=k.threshold,A=k.gap,B=M&&(O.length>0||P.length<=_),q=typeof u=="function"?u(r):u;return c.useEffect(function(){M&&O.length>1&&I(function(V){return V.filter(function(H){return P.some(function(F){var Z=F.key;return H===Z})})})},[O,P,M]),c.useEffect(function(){var V;if(M&&y.current[(V=P[P.length-1])===null||V===void 0?void 0:V.key]){var H;$(y.current[(H=P[P.length-1])===null||H===void 0?void 0:H.key])}},[P,M]),Y.createElement(PR,Ee({key:r,className:re(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,l,U(U({},"".concat(o,"-stack"),!!M),"".concat(o,"-stack-expanded"),B)),style:s,keys:P,motionAppear:!0},q,{onAllRemoved:function(){f(r)}}),function(V,H){var F=V.config,Z=V.className,W=V.style,z=V.index,D=F,Q=D.key,ne=D.times,ee=String(Q),oe=F,fe=oe.className,me=oe.style,ue=oe.classNames,Ce=oe.styles,pe=jt(oe,dO),se=P.findIndex(function(Re){return Re.key===ee}),ye={};if(M){var ve=P.length-1-(se>-1?se:z-1),ce=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var le,be,Se;ye.height=B?(le=y.current[ee])===null||le===void 0?void 0:le.offsetHeight:b==null?void 0:b.offsetHeight;for(var $e=0,je=0;je<ve;je++){var Le;$e+=((Le=y.current[P[P.length-1-je].key])===null||Le===void 0?void 0:Le.offsetHeight)+A}var Pe=(B?$e:ve*L)*(r.startsWith("top")?1:-1),Be=!B&&b!==null&&b!==void 0&&b.offsetWidth&&(be=y.current[ee])!==null&&be!==void 0&&be.offsetWidth?((b==null?void 0:b.offsetWidth)-L*2*(ve<3?ve:3))/((Se=y.current[ee])===null||Se===void 0?void 0:Se.offsetWidth):1;ye.transform="translate3d(".concat(ce,", ").concat(Pe,"px, 0) scaleX(").concat(Be,")")}else ye.transform="translate3d(".concat(ce,", 0, 0)")}return Y.createElement("div",{ref:H,className:re("".concat(o,"-notice-wrapper"),Z,ue==null?void 0:ue.wrapper),style:X(X(X({},W),ye),Ce==null?void 0:Ce.wrapper),onMouseEnter:function(){return I(function(tt){return tt.includes(ee)?tt:[].concat(Ae(tt),[ee])})},onMouseLeave:function(){return I(function(tt){return tt.filter(function(lt){return lt!==ee})})}},Y.createElement(_S,Ee({},pe,{ref:function(tt){se>-1?y.current[ee]=tt:delete y.current[ee]},prefixCls:o,classNames:ue,styles:Ce,className:re(fe,h==null?void 0:h.notice),style:me,times:ne,key:Q,eventKey:Q,onNoticeClose:m,hovering:M&&O.length>0})))})},mO=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,l=e.motion,s=e.maxCount,u=e.className,f=e.style,m=e.onAllRemoved,p=e.stack,g=e.renderNotifications,h=c.useState([]),y=ae(h,2),S=y[0],C=y[1],b=function(M){var k,L=S.find(function(_){return _.key===M});L==null||(k=L.onClose)===null||k===void 0||k.call(L),C(function(_){return _.filter(function(A){return A.key!==M})})};c.useImperativeHandle(t,function(){return{open:function(M){C(function(k){var L=Ae(k),_=L.findIndex(function(q){return q.key===M.key}),A=X({},M);if(_>=0){var B;A.times=(((B=k[_])===null||B===void 0?void 0:B.times)||0)+1,L[_]=A}else A.times=0,L.push(A);return s>0&&L.length>s&&(L=L.slice(-s)),L})},close:function(M){b(M)},destroy:function(){C([])}}});var $=c.useState({}),w=ae($,2),R=w[0],O=w[1];c.useEffect(function(){var j={};S.forEach(function(M){var k=M.placement,L=k===void 0?"topRight":k;L&&(j[L]=j[L]||[],j[L].push(M))}),Object.keys(R).forEach(function(M){j[M]=j[M]||[]}),O(j)},[S]);var I=function(M){O(function(k){var L=X({},k),_=L[M]||[];return _.length||delete L[M],L})},P=c.useRef(!1);if(c.useEffect(function(){Object.keys(R).length>0?P.current=!0:P.current&&(m==null||m(),P.current=!1)},[R]),!o)return null;var T=Object.keys(R);return Pi.createPortal(c.createElement(c.Fragment,null,T.map(function(j){var M=R[j],k=c.createElement(fO,{key:j,configList:M,placement:j,prefixCls:r,className:u==null?void 0:u(j),style:f==null?void 0:f(j),motion:l,onNoticeClose:b,onAllNoticeRemoved:I,stack:p});return g?g(k,{prefixCls:r,key:j}):k})),o)}),pO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],gO=function(){return document.body},Qy=0;function vO(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(l){var s=o[l];s!==void 0&&(e[l]=s)})}),e}function hO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?gO:t,r=e.motion,o=e.prefixCls,l=e.maxCount,s=e.className,u=e.style,f=e.onAllRemoved,m=e.stack,p=e.renderNotifications,g=jt(e,pO),h=c.useState(),y=ae(h,2),S=y[0],C=y[1],b=c.useRef(),$=c.createElement(mO,{container:S,ref:b,prefixCls:o,motion:r,maxCount:l,className:s,style:u,onAllRemoved:f,stack:m,renderNotifications:p}),w=c.useState([]),R=ae(w,2),O=R[0],I=R[1],P=Nn(function(j){var M=vO(g,j);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(Qy),Qy+=1),I(function(k){return[].concat(Ae(k),[{type:"open",config:M}])})}),T=c.useMemo(function(){return{open:P,close:function(M){I(function(k){return[].concat(Ae(k),[{type:"close",key:M}])})},destroy:function(){I(function(M){return[].concat(Ae(M),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){C(n())}),c.useEffect(function(){if(b.current&&O.length){O.forEach(function(k){switch(k.type){case"open":b.current.open(k.config);break;case"close":b.current.close(k.key);break;case"destroy":b.current.destroy();break}});var j,M;I(function(k){return(j!==k||!M)&&(j=k,M=k.filter(function(L){return!O.includes(L)})),M})}},[O]),[T,$]}var yO={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"},bO=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:yO}))},ad=c.forwardRef(bO);function Wp(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function ku(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Yy(e){const{closable:t,closeIcon:n}=e||{};return Y.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 CO={},LS=(e,t,n=CO)=>{const r=Yy(e),o=Yy(t),[l]=ni("global",Ti.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=Y.useMemo(()=>Object.assign({closeIcon:Y.createElement(vl,null)},n),[n]),f=Y.useMemo(()=>r===!1?!1:r?Wp(u,o,r):o===!1?!1:o?Wp(u,o):u.closable?u:!1,[r,o,u]);return Y.useMemo(()=>{var m,p;if(f===!1)return[!1,null,s,{}];const{closeIconRender:g}=u,{closeIcon:h}=f;let y=h;const S=No(f,!0);return y!=null&&(g&&(y=g(h)),y=Y.isValidElement(y)?Y.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(p=(m=y.props)===null||m===void 0?void 0:m["aria-label"])!==null&&p!==void 0?p:l.close}),S)):Y.createElement("span",Object.assign({"aria-label":l.close},S),y)),[!0,y,s,S]},[s,l.close,f,u])},SO=()=>Y.useReducer(e=>e+1,0),xO=()=>{const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Ae(o),[r])),()=>{t(o=>o.filter(l=>l!==r))}),[]);return[e,n]},ld=Y.createContext(void 0),$i=100,wO=10,BS=$i*wO,AS={Modal:$i,Drawer:$i,Popover:$i,Popconfirm:$i,Tooltip:$i,Tour:$i,FloatButton:$i},$O={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function EO(e){return e in AS}const Ns=(e,t)=>{const[,n]=Pr(),r=Y.useContext(ld),o=EO(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+AS[e]:s+=$O[e],l=[r===void 0?t:s,s]}return l},RO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:l,colorError:s,colorWarning:u,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:p,motionDurationSlow:g,marginXS:h,paddingXS:y,borderRadiusLG:S,zIndexPopup:C,contentPadding:b,contentBg:$}=e,w=`${t}-notice`,R=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),O=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),I={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:m},[`${w}-content`]:{display:"inline-block",padding:b,background:$,borderRadius:S,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
170
+ ${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},Fn(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
171
+ ${t}-move-up-appear,
172
+ ${t}-move-up-enter
173
+ `]:{animationName:R,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`
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:O,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},I)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},I),{padding:0,textAlign:"start"})}]},OO=e=>({zIndexPopup:e.zIndexPopupBase+BS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),FS=pn("Message",e=>{const t=Yt(e,{height:150});return RO(t)},OO);var IO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PO={info:c.createElement(jS,null),success:c.createElement(TS,null),error:c.createElement(id,null),warning:c.createElement(MS,null),loading:c.createElement(ad,null)},DS=({prefixCls:e,type:t,icon:n,children:r})=>c.createElement("div",{className:re(`${e}-custom-content`,`${e}-${t}`)},n||PO[t],c.createElement("span",null,r)),TO=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=IO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=c.useContext(It),f=t||u("message"),m=ri(f),[p,g,h]=FS(f,m);return p(c.createElement(_S,Object.assign({},s,{prefixCls:f,className:re(n,g,`${f}-notice-pure-panel`,h,m),eventKey:"pure",duration:null,content:c.createElement(DS,{prefixCls:f,type:r,icon:o},l)})))};function MO(e,t){return{motionName:t??`${e}-move-up`}}function Ag(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,l)=>n.then(o,l),r.promise=n,r}var jO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kO=8,NO=3,_O=({children:e,prefixCls:t})=>{const n=ri(t),[r,o,l]=FS(t,n);return r(c.createElement(cO,{classNames:{list:re(o,l,n)}},e))},zO=(e,{prefixCls:t,key:n})=>c.createElement(_O,{prefixCls:t,key:n},e),LO=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=NO,rtl:u,transitionName:f,onAllRemoved:m}=e,{getPrefixCls:p,getPopupContainer:g,message:h,direction:y}=c.useContext(It),S=r||p("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??kO}),b=()=>re({[`${S}-rtl`]:u??y==="rtl"}),$=()=>MO(S,f),w=c.createElement("span",{className:`${S}-close-x`},c.createElement(vl,{className:`${S}-close-icon`})),[R,O]=hO({prefixCls:S,style:C,className:b,motion:$,closable:!1,closeIcon:w,duration:s,getContainer:()=>(o==null?void 0:o())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:zO});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:S,message:h})),O});let Zy=0;function HS(e){const t=c.useRef(null);return nd(),[c.useMemo(()=>{const r=f=>{var m;(m=t.current)===null||m===void 0||m.close(f)},o=f=>{if(!t.current){const P=()=>{};return P.then=()=>{},P}const{open:m,prefixCls:p,message:g}=t.current,h=`${p}-notice`,{content:y,icon:S,type:C,key:b,className:$,style:w,onClose:R}=f,O=jO(f,["content","icon","type","key","className","style","onClose"]);let I=b;return I==null&&(Zy+=1,I=`antd-message-${Zy}`),Ag(P=>(m(Object.assign(Object.assign({},O),{key:I,content:c.createElement(DS,{prefixCls:p,type:C,icon:S},y),placement:"top",className:re(C&&`${h}-${C}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{R==null||R(),P()}})),()=>{r(I)}))},s={open:o,destroy:f=>{var m;f!==void 0?r(f):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const m=(p,g,h)=>{let y;p&&typeof p=="object"&&"content"in p?y=p:y={content:p};let S,C;typeof g=="function"?C=g:(S=g,C=h);const b=Object.assign(Object.assign({onClose:C,duration:S},y),{type:f});return o(b)};s[f]=m}),s},[]),c.createElement(LO,Object.assign({key:"message-holder"},e,{ref:t}))]}function BO(e){return HS(e)}function VS(e,t){this.v=e,this.k=t}function yr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}yr=function(s,u,f,m){function p(g,h){yr(s,g,function(y){return this._invoke(g,h,y)})}u?o?o(s,u,{value:f,enumerable:!m,configurable:!m,writable:!m}):s[u]=f:(p("next",0),p("throw",1),p("return",2))},yr(e,t,n,r)}function Fg(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function l(y,S,C,b){var $=S&&S.prototype instanceof u?S:u,w=Object.create($.prototype);return yr(w,"_invoke",(function(R,O,I){var P,T,j,M=0,k=I||[],L=!1,_={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(q,V){return P=q,T=0,j=e,_.n=V,s}};function A(B,q){for(T=B,j=q,t=0;!L&&M&&!V&&t<k.length;t++){var V,H=k[t],F=_.p,Z=H[2];B>3?(V=Z===q)&&(j=H[(T=H[4])?5:(T=3,3)],H[4]=H[5]=e):H[0]<=F&&((V=B<2&&F<H[1])?(T=0,_.v=q,_.n=H[1]):F<Z&&(V=B<3||H[0]>q||q>Z)&&(H[4]=B,H[5]=q,_.n=Z,T=0))}if(V||B>1)return s;throw L=!0,q}return function(B,q,V){if(M>1)throw TypeError("Generator is already running");for(L&&q===1&&A(q,V),T=q,j=V;(t=T<2?e:j)||!L;){P||(T?T<3?(T>1&&(_.n=-1),A(T,j)):_.n=j:_.v=j);try{if(M=2,P){if(T||(B="next"),t=P[B]){if(!(t=t.call(P,j)))throw TypeError("iterator result is not an object");if(!t.done)return t;j=t.value,T<2&&(T=0)}else T===1&&(t=P.return)&&t.call(P),T<2&&(j=TypeError("The iterator does not provide a '"+B+"' method"),T=1);P=e}else if((t=(L=_.n<0)?j:R.call(O,_))!==s)break}catch(H){P=e,T=1,j=H}finally{M=1}}return{value:t,done:L}}})(y,C,b),!0),w}var s={};function u(){}function f(){}function m(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(yr(t={},r,function(){return this}),t),g=m.prototype=u.prototype=Object.create(p);function h(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,m):(y.__proto__=m,yr(y,o,"GeneratorFunction")),y.prototype=Object.create(g),y}return f.prototype=m,yr(g,"constructor",m),yr(m,"constructor",f),f.displayName="GeneratorFunction",yr(m,o,"GeneratorFunction"),yr(g),yr(g,o,"Generator"),yr(g,r,function(){return this}),yr(g,"toString",function(){return"[object Generator]"}),(Fg=function(){return{w:l,m:h}})()}function Nu(e,t){function n(o,l,s,u){try{var f=e[o](l),m=f.value;return m instanceof VS?t.resolve(m.v).then(function(p){n("next",p,s,u)},function(p){n("throw",p,s,u)}):t.resolve(m).then(function(p){f.value=p,s(f)},function(p){return n("throw",p,s,u)})}catch(p){u(p)}}var r;this.next||(yr(Nu.prototype),yr(Nu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),yr(this,"_invoke",function(o,l,s){function u(){return new t(function(f,m){n(o,s,f,m)})}return r=r?r.then(u,u):u()},!0)}function WS(e,t,n,r,o){return new Nu(Fg().w(e,t,n,r),o||Promise)}function AO(e,t,n,r,o){var l=WS(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function FO(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Jy(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(mt(e)+" is not iterable")}function Sr(){var e=Fg(),t=e.m(Sr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function l(s){var u,f;return function(m){u||(u={stop:function(){return f(m.a,2)},catch:function(){return m.v},abrupt:function(g,h){return f(m.a,o[g],h)},delegateYield:function(g,h,y){return u.resultName=h,f(m.d,Jy(g),y)},finish:function(g){return f(m.f,g)}},f=function(g,h,y){m.p=u.prev,m.n=u.next;try{return g(h,y)}finally{u.next=m.n}}),u.resultName&&(u[u.resultName]=m.v,u.resultName=void 0),u.sent=m.v,u.next=m.n;try{return s.call(this,u)}finally{m.p=u.prev,m.n=u.next}}}return(Sr=function(){return{wrap:function(f,m,p,g){return e.w(l(f),m,p,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(f,m){return new VS(f,m)},AsyncIterator:Nu,async:function(f,m,p,g,h){return(r(m)?WS:AO)(l(f),m,p,g,h)},keys:FO,values:Jy}})()}function eb(e,t,n,r,o,l,s){try{var u=e[l](s),f=u.value}catch(m){return void n(m)}u.done?t(f):Promise.resolve(f).then(r,o)}function aa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(f){eb(l,r,o,s,u,"next",f)}function u(f){eb(l,r,o,s,u,"throw",f)}s(void 0)})}}var _s=X({},$E),DO=_s.version,jm=_s.render,HO=_s.unmountComponentAtNode,sd;try{var VO=Number((DO||"").split(".")[0]);VO>=18&&(sd=_s.createRoot)}catch{}function tb(e){var t=_s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var _u="__rc_react_root__";function WO(e,t){tb(!0);var n=t[_u]||sd(t);tb(!1),n.render(e),t[_u]=n}function UO(e,t){jm==null||jm(e,t)}function qO(e,t){if(sd){WO(e,t);return}UO(e,t)}function GO(e){return Up.apply(this,arguments)}function Up(){return Up=aa(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[_u])===null||o===void 0||o.unmount(),delete t[_u]}));case 1:case"end":return r.stop()}},e)})),Up.apply(this,arguments)}function KO(e){HO(e)}function XO(e){return qp.apply(this,arguments)}function qp(){return qp=aa(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(sd===void 0){r.next=2;break}return r.abrupt("return",GO(t));case 2:KO(t);case 3:case"end":return r.stop()}},e)})),qp.apply(this,arguments)}const QO=(e,t)=>(qO(e,t),()=>XO(t));let YO=QO;function Dg(e){return YO}const km=()=>({height:0,opacity:0}),nb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ZO=e=>({height:e?e.offsetHeight:0}),Nm=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",US=(e=Ss)=>({motionName:`${e}-motion-collapse`,onAppearStart:km,onEnterStart:km,onAppearActive:nb,onEnterActive:nb,onLeaveStart:ZO,onLeaveActive:km,onAppearEnd:Nm,onEnterEnd:Nm,onLeaveEnd:Nm,motionDeadline:500}),ji=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Wn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Hg=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),l=o.width,s=o.height;if(l||s)return!0}}return!1}),JO=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(",")}}}}},e5=nR("Wave",JO),qS=`${Ss}-wave-target`;function t5(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 n5(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(t5))!==null&&t!==void 0?t:null}function _m(e){return Number.isNaN(e)?0:e}const r5=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,l=c.useRef(null),s=c.useRef(null);c.useEffect(()=>{s.current=o()},[]);const[u,f]=c.useState(null),[m,p]=c.useState([]),[g,h]=c.useState(0),[y,S]=c.useState(0),[C,b]=c.useState(0),[$,w]=c.useState(0),[R,O]=c.useState(!1),I={left:g,top:y,width:C,height:$,borderRadius:m.map(j=>`${j}px`).join(" ")};u&&(I["--wave-color"]=u);function P(){const j=getComputedStyle(n);f(n5(n));const M=j.position==="static",{borderLeftWidth:k,borderTopWidth:L}=j;h(M?n.offsetLeft:_m(-Number.parseFloat(k))),S(M?n.offsetTop:_m(-Number.parseFloat(L))),b(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:A,borderBottomLeftRadius:B,borderBottomRightRadius:q}=j;p([_,A,q,B].map(V=>_m(Number.parseFloat(V))))}if(c.useEffect(()=>{if(n){const j=Sn(()=>{P(),O(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(P),M.observe(n)),()=>{Sn.cancel(j),M==null||M.disconnect()}}},[n]),!R)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(qS));return c.createElement($o,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(j,M)=>{var k,L;if(M.deadline||M.propertyName==="opacity"){const _=(k=l.current)===null||k===void 0?void 0:k.parentElement;(L=s.current)===null||L===void 0||L.call(s).then(()=>{_==null||_.remove()})}return!1}},({className:j},M)=>c.createElement("div",{ref:Lo(l,M),className:re(t,j,{"wave-quick":T}),style:I}))},o5=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const l=Dg();let s=null;function u(){return s}s=l(c.createElement(r5,Object.assign({},t,{target:e,registerUnmount:u})),o)},i5=(e,t,n)=>{const{wave:r}=c.useContext(It),[,o,l]=Pr(),s=Nn(m=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const g=p.querySelector(`.${qS}`)||p,{showEffect:h}=r||{};(h||o5)(g,{className:t,token:o,component:n,event:m,hashId:l})}),u=c.useRef(null);return m=>{Sn.cancel(u.current),u.current=Sn(()=>{s(m)})}},GS=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(It),l=c.useRef(null),s=o("wave"),[,u]=e5(s),f=i5(l,re(s,u),r);if(Y.useEffect(()=>{const p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=h=>{!Hg(h.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||f(h)};return p.addEventListener("click",g,!0),()=>{p.removeEventListener("click",g,!0)}},[n]),!Y.isValidElement(t))return t??null;const m=Ni(t)?Lo(ia(t),l):l;return Or(t,{ref:m})},oi=e=>{const t=Y.useContext(ll);return Y.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},a5=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},l5=pn(["Space","Compact"],e=>[a5(e)],()=>({}),{resetStyle:!1});var KS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cd=c.createContext(null),zs=(e,t)=>{const n=c.useContext(cd),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,u=o==="vertical"?"-vertical-":"-";return re(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:s,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},s5=e=>{const{children:t}=e;return c.createElement(cd.Provider,{value:null},t)},c5=e=>{const{children:t}=e,n=KS(e,["children"]);return c.createElement(cd.Provider,{value:c.useMemo(()=>n,[n])},t)},u5=e=>{const{getPrefixCls:t,direction:n}=c.useContext(It),{size:r,direction:o,block:l,prefixCls:s,className:u,rootClassName:f,children:m}=e,p=KS(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=oi(R=>r??R),h=t("space-compact",s),[y,S]=l5(h),C=re(h,S,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:o==="vertical"},u,f),b=c.useContext(cd),$=Rr(m),w=c.useMemo(()=>$.map((R,O)=>{const I=(R==null?void 0:R.key)||`${h}-item-${O}`;return c.createElement(c5,{key:I,compactSize:g,compactDirection:o,isFirstItem:O===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:O===$.length-1&&(!b||(b==null?void 0:b.isLastItem))},R)}),[$,b,o,g,h]);return $.length===0?null:y(c.createElement("div",Object.assign({className:C},p),w))};var d5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XS=c.createContext(void 0),f5=e=>{const{getPrefixCls:t,direction:n}=c.useContext(It),{prefixCls:r,size:o,className:l}=e,s=d5(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=Pr(),m=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),p=re(u,{[`${u}-${m}`]:m,[`${u}-rtl`]:n==="rtl"},l,f);return c.createElement(XS.Provider,{value:o},c.createElement("div",Object.assign({},s,{className:p})))},rb=/^[\u4E00-\u9FA5]{2}$/,Gp=rb.test.bind(rb);function QS(e){return e==="danger"?{danger:!0}:{type:e}}function ob(e){return typeof e=="string"}function zm(e){return e==="text"||e==="link"}function m5(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ob(e.type)&&Gp(e.props.children)?Or(e,{children:e.props.children.split("").join(n)}):ob(e)?Gp(e)?Y.createElement("span",null,e.split("").join(n)):Y.createElement("span",null,e):kS(e)?Y.createElement("span",null,e):e}function p5(e,t){let n=!1;const r=[];return Y.Children.forEach(e,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const u=r.length-1,f=r[u];r[u]=`${f}${o}`}else r.push(o);n=s}),Y.Children.map(r,o=>m5(o,t))}["default","primary","danger"].concat(Ae(Mi));const YS=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:l}=e,s=re(`${l}-icon`,n);return Y.createElement("span",{ref:t,className:s,style:r},o)}),ib=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=re(`${n}-loading-icon`,r);return Y.createElement(YS,{prefixCls:n,className:s,style:o,ref:t},Y.createElement(ad,{className:l}))}),Lm=()=>({width:0,opacity:0,transform:"scale(0)"}),Bm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),g5=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,u=!!n;return r?Y.createElement(ib,{prefixCls:t,className:o,style:l}):Y.createElement($o,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Lm,onAppearActive:Bm,onEnterStart:Lm,onEnterActive:Bm,onLeaveStart:Bm,onLeaveActive:Lm},({className:f,style:m},p)=>{const g=Object.assign(Object.assign({},l),m);return Y.createElement(ib,{prefixCls:t,className:re(o,f),style:g,ref:p})})},ab=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),v5=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ab(`${t}-primary`,o),ab(`${t}-danger`,l)]}};var h5=["b"],y5=["v"],Am=function(t){return Math.round(Number(t||0))},b5=function(t){if(t instanceof cn)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=jt(n,h5);return X(X({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ws=(function(e){ei(n,e);var t=ti(n);function n(r){return Un(this,n),t.call(this,b5(r))}return qn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=Am(o.s*100),s=Am(o.b*100),u=Am(o.h),f=o.a,m="hsb(".concat(u,", ").concat(l,"%, ").concat(s,"%)"),p="hsba(".concat(u,", ").concat(l,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?m:p}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=jt(o,y5);return X(X({},s),{},{b:l,a:this.a})}}]),n})(cn),C5=function(t){return t instanceof ws?t:new ws(t)};C5("#1677ff");const S5=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",x5=(e,t)=>e?S5(e,t):"";let Kp=(function(){function e(t){Un(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:l})=>({color:new e(o),percent:l})),this.metaColor=new ws(this.colors[0].color.metaColor)):this.metaColor=new ws(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return qn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return x5(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const l=n.colors[o];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var w5={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"},$5=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:w5}))},ul=c.forwardRef($5),ZS=Y.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,s=e.children,u=e.isActive,f=e.role,m=e.classNames,p=e.styles,g=Y.useState(u||r),h=ae(g,2),y=h[0],S=h[1];return Y.useEffect(function(){(r||u)&&S(!0)},[r,u]),y?Y.createElement("div",{ref:t,className:re("".concat(n,"-content"),U(U({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),o),style:l,role:f},Y.createElement("div",{className:re("".concat(n,"-content-box"),m==null?void 0:m.body),style:p==null?void 0:p.body},s)):null});ZS.displayName="PanelContent";var E5=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],JS=Y.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,l=e.isActive,s=e.onItemClick,u=e.forceRender,f=e.className,m=e.classNames,p=m===void 0?{}:m,g=e.styles,h=g===void 0?{}:g,y=e.prefixCls,S=e.collapsible,C=e.accordion,b=e.panelKey,$=e.extra,w=e.header,R=e.expandIcon,O=e.openMotion,I=e.destroyInactivePanel,P=e.children,T=jt(e,E5),j=S==="disabled",M=$!=null&&typeof $!="boolean",k=U(U(U({onClick:function(){s==null||s(b)},onKeyDown:function(H){(H.key==="Enter"||H.keyCode===Ue.ENTER||H.which===Ue.ENTER)&&(s==null||s(b))},role:C?"tab":"button"},"aria-expanded",l),"aria-disabled",j),"tabIndex",j?-1:0),L=typeof R=="function"?R(e):Y.createElement("i",{className:"arrow"}),_=L&&Y.createElement("div",Ee({className:"".concat(y,"-expand-icon")},["header","icon"].includes(S)?k:{}),L),A=re("".concat(y,"-item"),U(U({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),j),f),B=re(o,"".concat(y,"-header"),U({},"".concat(y,"-collapsible-").concat(S),!!S),p.header),q=X({className:B,style:h.header},["header","icon"].includes(S)?{}:k);return Y.createElement("div",Ee({},T,{ref:t,className:A}),Y.createElement("div",q,r&&_,Y.createElement("span",Ee({className:"".concat(y,"-header-text")},S==="header"?k:{}),w),M&&Y.createElement("div",{className:"".concat(y,"-extra")},$)),Y.createElement($o,Ee({visible:l,leavedClassName:"".concat(y,"-content-hidden")},O,{forceRender:u,removeOnLeave:I}),function(V,H){var F=V.className,Z=V.style;return Y.createElement(ZS,{ref:H,prefixCls:y,className:F,classNames:p,style:Z,styles:h,isActive:l,forceRender:u,role:C?"tabpanel":void 0},P)}))}),R5=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],O5=function(t,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,f=n.activeKey,m=n.openMotion,p=n.expandIcon;return t.map(function(g,h){var y=g.children,S=g.label,C=g.key,b=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,R=jt(g,R5),O=String(C??h),I=b??l,P=w??s,T=function(k){I!=="disabled"&&(u(k),$==null||$(k))},j=!1;return o?j=f[0]===O:j=f.indexOf(O)>-1,Y.createElement(JS,Ee({},R,{prefixCls:r,key:O,panelKey:O,isActive:j,accordion:o,openMotion:m,expandIcon:p,header:S,collapsible:I,onItemClick:T,destroyInactivePanel:P}),y)})},I5=function(t,n,r){if(!t)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,u=r.destroyInactivePanel,f=r.onItemClick,m=r.activeKey,p=r.openMotion,g=r.expandIcon,h=t.key||String(n),y=t.props,S=y.header,C=y.headerClass,b=y.destroyInactivePanel,$=y.collapsible,w=y.onItemClick,R=!1;l?R=m[0]===h:R=m.indexOf(h)>-1;var O=$??s,I=function(j){O!=="disabled"&&(f(j),w==null||w(j))},P={key:h,panelKey:h,header:S,headerClass:C,isActive:R,prefixCls:o,destroyInactivePanel:b??u,openMotion:p,accordion:l,children:t.props.children,onItemClick:I,expandIcon:g,collapsible:O};return typeof t.type=="string"?t:(Object.keys(P).forEach(function(T){typeof P[T]>"u"&&delete P[T]}),Y.cloneElement(t,P))};function P5(e,t,n){return Array.isArray(e)?O5(e,n):Rr(t).map(function(r,o){return I5(r,o,n)})}function T5(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var M5=Y.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,l=o===void 0?!1:o,s=e.style,u=e.accordion,f=e.className,m=e.children,p=e.collapsible,g=e.openMotion,h=e.expandIcon,y=e.activeKey,S=e.defaultActiveKey,C=e.onChange,b=e.items,$=re(r,f),w=Vn([],{value:y,onChange:function(M){return C==null?void 0:C(M)},defaultValue:S,postState:T5}),R=ae(w,2),O=R[0],I=R[1],P=function(M){return I(function(){if(u)return O[0]===M?[]:[M];var k=O.indexOf(M),L=k>-1;return L?O.filter(function(_){return _!==M}):[].concat(Ae(O),[M])})};cr(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=P5(b,m,{prefixCls:r,accordion:u,openMotion:g,expandIcon:h,collapsible:p,destroyInactivePanel:l,onItemClick:P,activeKey:O});return Y.createElement("div",Ee({ref:t,className:$,style:s,role:u?"tablist":void 0},No(e,{aria:!0,data:!0})),T)});const Vg=Object.assign(M5,{Panel:JS});Vg.Panel;const j5=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(It),{prefixCls:r,className:o,showArrow:l=!0}=e,s=n("collapse",r),u=re({[`${s}-no-arrow`]:!l},o);return c.createElement(Vg.Panel,Object.assign({ref:t},e,{prefixCls:s,className:u}))}),ex=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`}}}),k5=e=>({animationDuration:e,animationFillMode:"both"}),N5=e=>({animationDuration:e,animationFillMode:"both"}),ud=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
179
+ ${l}${e}-enter,
180
+ ${l}${e}-appear
181
+ `]:Object.assign(Object.assign({},k5(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},N5(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"}}},_5=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),z5=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),L5=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[ud(r,_5,z5,e.motionDurationMid,t),{[`
185
+ ${o}${r}-enter,
186
+ ${o}${r}-appear
187
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},B5=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A5=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),F5=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D5=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),H5=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V5=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),W5=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),U5=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),q5={"move-up":{inKeyframes:W5,outKeyframes:U5},"move-down":{inKeyframes:B5,outKeyframes:A5},"move-left":{inKeyframes:F5,outKeyframes:D5},"move-right":{inKeyframes:H5,outKeyframes:V5}},zu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=q5[t];return[ud(r,o,l,e.motionDurationMid),{[`
188
+ ${r}-enter,
189
+ ${r}-appear
190
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wg=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ug=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qg=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gg=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),G5=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),K5=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),X5=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Q5=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Y5={"slide-up":{inKeyframes:Wg,outKeyframes:Ug},"slide-down":{inKeyframes:qg,outKeyframes:Gg},"slide-left":{inKeyframes:G5,outKeyframes:K5},"slide-right":{inKeyframes:X5,outKeyframes:Q5}},ki=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=Y5[t];return[ud(r,o,l,e.motionDurationMid),{[`
191
+ ${r}-enter,
192
+ ${r}-appear
193
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Z5=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),J5=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),lb=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sb=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),e6=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),t6=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),n6=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),r6=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),o6=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),i6=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),a6=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),l6=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),s6={zoom:{inKeyframes:Z5,outKeyframes:J5},"zoom-big":{inKeyframes:lb,outKeyframes:sb},"zoom-big-fast":{inKeyframes:lb,outKeyframes:sb},"zoom-left":{inKeyframes:n6,outKeyframes:r6},"zoom-right":{inKeyframes:o6,outKeyframes:i6},"zoom-up":{inKeyframes:e6,outKeyframes:t6},"zoom-down":{inKeyframes:a6,outKeyframes:l6}},Ls=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=s6[t];return[ud(r,o,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
194
+ ${r}-enter,
195
+ ${r}-appear
196
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},c6=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:f,lineWidth:m,lineType:p,colorBorder:g,colorText:h,colorTextHeading:y,colorTextDisabled:S,fontSizeLG:C,lineHeight:b,lineHeightLG:$,marginSM:w,paddingSM:R,paddingLG:O,paddingXS:I,motionDurationSlow:P,fontSizeIcon:T,contentPadding:j,fontHeight:M,fontHeightLG:k}=e,L=`${J(m)} ${p} ${g}`;return{[t]:Object.assign(Object.assign({},Fn(e)),{backgroundColor:o,border:L,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
197
+ &,
198
+ & > ${t}-header`]:{borderRadius:`${J(f)} ${J(f)} 0 0`}},"&:last-child":{[`
199
+ &,
200
+ & > ${t}-header`]:{borderRadius:`0 0 ${J(f)} ${J(f)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:y,lineHeight:b,cursor:"pointer",transition:`all ${P}, visibility 0s`},ko(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},pl()),{fontSize:T,transition:`transform ${P}`,svg:{transition:`transform ${P}`}}),[`${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:j},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:I,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(R).sub(I).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},"&-large":{[`> ${t}-item`]:{fontSize:C,lineHeight:$,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(O).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${J(f)} ${J(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:S,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},u6=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},d6=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
201
+ > ${t}-item:last-child,
202
+ > ${t}-item:last-child ${t}-header
203
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},f6=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}}}}}},m6=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"}),p6=pn("Collapse",e=>{const t=Yt(e,{collapseHeaderPaddingSM:`${J(e.paddingXS)} ${J(e.paddingSM)}`,collapseHeaderPaddingLG:`${J(e.padding)} ${J(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[c6(t),d6(t),f6(t),u6(t),ex(t)]},m6),g6=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=Ir("collapse"),{prefixCls:u,className:f,rootClassName:m,style:p,bordered:g=!0,ghost:h,size:y,expandIconPosition:S="start",children:C,destroyInactivePanel:b,destroyOnHidden:$,expandIcon:w}=e,R=oi(q=>{var V;return(V=y??q)!==null&&V!==void 0?V:"middle"}),O=n("collapse",u),I=n(),[P,T,j]=p6(O),M=c.useMemo(()=>S==="left"?"start":S==="right"?"end":S,[S]),k=w??o,L=c.useCallback((q={})=>{const V=typeof k=="function"?k(q):c.createElement(ul,{rotate:q.isActive?r==="rtl"?-90:90:void 0,"aria-label":q.isActive?"expanded":"collapsed"});return Or(V,()=>{var H;return{className:re((H=V.props)===null||H===void 0?void 0:H.className,`${O}-arrow`)}})},[k,O,r]),_=re(`${O}-icon-position-${M}`,{[`${O}-borderless`]:!g,[`${O}-rtl`]:r==="rtl",[`${O}-ghost`]:!!h,[`${O}-${R}`]:R!=="middle"},l,f,m,T,j),A=c.useMemo(()=>Object.assign(Object.assign({},US(I)),{motionAppear:!1,leavedClassName:`${O}-content-hidden`}),[I,O]),B=c.useMemo(()=>C?Rr(C).map((q,V)=>{var H,F;const Z=q.props;if(Z!=null&&Z.disabled){const W=(H=q.key)!==null&&H!==void 0?H:String(V),z=Object.assign(Object.assign({},Wn(q.props,["disabled"])),{key:W,collapsible:(F=Z.collapsible)!==null&&F!==void 0?F:"disabled"});return Or(q,z)}return q}):null,[C]);return P(c.createElement(Vg,Object.assign({ref:t,openMotion:A},Wn(e,["rootClassName"]),{expandIcon:L,prefixCls:O,className:_,style:Object.assign(Object.assign({},s),p),destroyInactivePanel:$??b}),B))}),na=Object.assign(g6,{Panel:j5}),v6=e=>e instanceof Kp?e:new Kp(e),h6=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new ws(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},tx=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nx=e=>{var t,n,r,o,l,s;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,p=(o=e.contentLineHeight)!==null&&o!==void 0?o:bu(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:bu(f),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:bu(m),y=h6(new Kp(e.colorBgSolid),"#fff")?"#000":"#fff",S=Mi.reduce((C,b)=>Object.assign(Object.assign({},C),{[`${b}ShadowColor`]:`0 ${J(e.controlOutlineWidth)} 0 ${os(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},S),{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:y,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:m,contentLineHeight:p,contentLineHeightSM:g,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-u*p)/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)})},y6=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,iconGap:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${J(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`]:pl(),"> a":{color:"currentColor"},"&:not(:disabled)":ko(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(u).mul(-1).equal()}}}}}},rx=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),b6=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),C6=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),dd=(e,t,n,r,o,l,s,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},rx(e,Object.assign({background:t},s),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),S6=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},C6(e))}),x6=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),fd=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?x6:S6;return Object.assign(Object.assign({},l(e)),rx(e.componentCls,t,n))},md=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},fd(e,r,o))}),pd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},fd(e,r,o))}),gd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),vd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},fd(e,n,r))}),_o=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},fd(e,r,o,n))}),w6=e=>{const{componentCls:t}=e;return Mi.reduce((n,r)=>{const o=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],u=e[`${r}2`],f=e[`${r}3`],m=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},md(e,e.colorTextLightSolid,o,{background:s},{background:m})),pd(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),gd(e)),vd(e,l,{color:o,background:u},{color:o,background:f})),_o(e,o,"link",{color:s},{color:m})),_o(e,o,"text",{color:s,background:l},{color:m,background:f}))})},{})},$6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},md(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),gd(e)),vd(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),dd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),_o(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),E6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},pd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),gd(e)),vd(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),_o(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),_o(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),dd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),R6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},md(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),pd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gd(e)),vd(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),_o(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),_o(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),dd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),O6=e=>Object.assign(Object.assign({},_o(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),dd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),I6=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:$6(e),[`${t}-color-primary`]:E6(e),[`${t}-color-dangerous`]:R6(e),[`${t}-color-link`]:O6(e)},w6(e))},P6=e=>Object.assign(Object.assign(Object.assign(Object.assign({},pd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),_o(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),md(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),_o(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Kg=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${J(f)} ${J(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:b6(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},T6=e=>{const t=Yt(e,{fontSize:e.contentFontSize});return Kg(t,e.componentCls)},M6=e=>{const t=Yt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Kg(t,`${e.componentCls}-sm`)},j6=e=>{const t=Yt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Kg(t,`${e.componentCls}-lg`)},k6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},N6=pn("Button",e=>{const t=tx(e);return[y6(t),T6(t),M6(t),j6(t),k6(t),I6(t),P6(t),v5(t)]},nx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _6(e,t,n,r){const{focusElCls:o,focus:l,borderElCls:s}=n,u=s?"> *":"",f=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function z6(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function hd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},_6(e,l,t,o)),z6(o,l,t))}}function L6(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 B6(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 A6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},L6(e,t,e.componentCls)),B6(e.componentCls,t))}}const F6=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,l=o(r).mul(-1).equal(),s=u=>{const f=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${f} + ${f}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},D6=ks(["Button","compact"],e=>{const t=tx(e);return[hd(t),A6(t),F6(t)]},nx);var H6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function V6(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 W6={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},U6=Y.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:u,type:f,danger:m=!1,shape:p,size:g,styles:h,disabled:y,className:S,rootClassName:C,children:b,icon:$,iconPosition:w="start",ghost:R=!1,block:O=!1,htmlType:I="button",classNames:P,style:T={},autoInsertSpace:j,autoFocus:M}=e,k=H6(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:_}=Y.useContext(It),A=p||(_==null?void 0:_.shape)||"default",[B,q]=c.useMemo(()=>{if(s&&u)return[s,u];if(f||m){const pt=W6[L]||[];return m?["danger",pt[1]]:pt}return _!=null&&_.color&&(_!=null&&_.variant)?[_.color,_.variant]:["default","outlined"]},[s,u,f,m,_==null?void 0:_.color,_==null?void 0:_.variant,L]),H=B==="danger"?"dangerous":B,{getPrefixCls:F,direction:Z,autoInsertSpace:W,className:z,style:D,classNames:Q,styles:ne}=Ir("button"),ee=(n=j??W)!==null&&n!==void 0?n:!0,oe=F("btn",l),[fe,me,ue]=N6(oe),Ce=c.useContext(al),pe=y??Ce,se=c.useContext(XS),ye=c.useMemo(()=>V6(o),[o]),[ve,ce]=c.useState(ye.loading),[le,be]=c.useState(!1),Se=c.useRef(null),$e=Jo(t,Se),je=c.Children.count(b)===1&&!$&&!zm(q),Le=c.useRef(!0);Y.useEffect(()=>(Le.current=!1,()=>{Le.current=!0}),[]),on(()=>{let pt=null;ye.delay>0?pt=setTimeout(()=>{pt=null,ce(!0)},ye.delay):ce(ye.loading);function Vt(){pt&&(clearTimeout(pt),pt=null)}return Vt},[ye.delay,ye.loading]),c.useEffect(()=>{if(!Se.current||!ee)return;const pt=Se.current.textContent||"";je&&Gp(pt)?le||be(!0):le&&be(!1)}),c.useEffect(()=>{M&&Se.current&&Se.current.focus()},[]);const Pe=Y.useCallback(pt=>{var Vt;if(ve||pe){pt.preventDefault();return}(Vt=e.onClick)===null||Vt===void 0||Vt.call(e,("href"in e,pt))},[e.onClick,ve,pe]),{compactSize:Be,compactItemClassnames:Re}=zs(oe,Z),tt={large:"lg",small:"sm",middle:void 0},lt=oi(pt=>{var Vt,Dt;return(Dt=(Vt=g??Be)!==null&&Vt!==void 0?Vt:se)!==null&&Dt!==void 0?Dt:pt}),bt=lt&&(r=tt[lt])!==null&&r!==void 0?r:"",st=ve?"loading":$,qe=Wn(k,["navigate"]),it=re(oe,me,ue,{[`${oe}-${A}`]:A!=="default"&&A,[`${oe}-${L}`]:L,[`${oe}-dangerous`]:m,[`${oe}-color-${H}`]:H,[`${oe}-variant-${q}`]:q,[`${oe}-${bt}`]:bt,[`${oe}-icon-only`]:!b&&b!==0&&!!st,[`${oe}-background-ghost`]:R&&!zm(q),[`${oe}-loading`]:ve,[`${oe}-two-chinese-chars`]:le&&ee&&!ve,[`${oe}-block`]:O,[`${oe}-rtl`]:Z==="rtl",[`${oe}-icon-end`]:w==="end"},Re,S,C,z),Ve=Object.assign(Object.assign({},D),T),dt=re(P==null?void 0:P.icon,Q.icon),Xe=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),ne.icon||{}),ke=pt=>Y.createElement(YS,{prefixCls:oe,className:dt,style:Xe},pt),Ye=()=>Y.createElement(g5,{existIcon:!!$,prefixCls:oe,loading:ve,mount:Le.current});let Te;$&&!ve?Te=ke($):o&&typeof o=="object"&&o.icon?Te=ke(o.icon):Te=Ye();const De=b||b===0?p5(b,je&&ee):null;if(qe.href!==void 0)return fe(Y.createElement("a",Object.assign({},qe,{className:re(it,{[`${oe}-disabled`]:pe}),href:pe?void 0:qe.href,style:Ve,onClick:Pe,ref:$e,tabIndex:pe?-1:0,"aria-disabled":pe}),Te,De));let wt=Y.createElement("button",Object.assign({},k,{type:I,className:it,style:Ve,onClick:Pe,disabled:pe,ref:$e}),Te,De,Re&&Y.createElement(D6,{prefixCls:oe}));return zm(q)||(wt=Y.createElement(GS,{component:"Button",disabled:ve},wt)),fe(wt)}),zo=U6;zo.Group=f5;zo.__ANT_BUTTON=!0;const Fm=e=>typeof(e==null?void 0:e.then)=="function",ox=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:l,autoFocus:s,emitEvent:u,isSilent:f,quitOnNullishReturnValue:m,actionFn:p}=e,g=c.useRef(!1),h=c.useRef(null),[y,S]=sl(!1),C=(...w)=>{l==null||l.apply(void 0,w)};c.useEffect(()=>{let w=null;return s&&(w=setTimeout(()=>{var R;(R=h.current)===null||R===void 0||R.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[s]);const b=w=>{Fm(w)&&(S(!0),w.then((...R)=>{S(!1,!0),C.apply(void 0,R),g.current=!1},R=>{if(S(!1,!0),g.current=!1,!(f!=null&&f()))return Promise.reject(R)}))},$=w=>{if(g.current)return;if(g.current=!0,!p){C();return}let R;if(u){if(R=p(w),m&&!Fm(R)){g.current=!1,C(w);return}}else if(p.length)R=p(l),g.current=!1;else if(R=p(),!Fm(R)){C();return}b(R)};return c.createElement(zo,Object.assign({},QS(t),{onClick:$,loading:y,prefixCls:r},o,{ref:h}),n)},Bs=Y.createContext({}),{Provider:ix}=Bs,cb=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:u,onConfirm:f}=c.useContext(Bs);return o?Y.createElement(ox,{isSilent:r,actionFn:u,close:(...m)=>{s==null||s.apply(void 0,m),f==null||f(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},ub=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:u,onOk:f}=c.useContext(Bs);return Y.createElement(ox,{isSilent:n,type:s||"primary",actionFn:f,close:(...m)=>{t==null||t.apply(void 0,m),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},l)};var ax=c.createContext(null),db=[];function q6(e,t){var n=c.useState(function(){if(!Cr())return null;var S=document.createElement("div");return S}),r=ae(n,1),o=r[0],l=c.useRef(!1),s=c.useContext(ax),u=c.useState(db),f=ae(u,2),m=f[0],p=f[1],g=s||(l.current?void 0:function(S){p(function(C){var b=[S].concat(Ae(C));return b})});function h(){o.parentElement||document.body.appendChild(o),l.current=!0}function y(){var S;(S=o.parentElement)===null||S===void 0||S.removeChild(o),l.current=!1}return on(function(){return e?s?s(h):h():y(),y},[e]),on(function(){m.length&&(m.forEach(function(S){return S()}),p(db))},[m]),[o,g]}function G6(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,l;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(u.width,10),m=parseInt(u.height,10);try{var p=f?"width: ".concat(u.width,";"):"",g=m?"height: ".concat(u.height,";"):"";Zo(`
204
+ #`.concat(t,`::-webkit-scrollbar {
205
+ `).concat(p,`
206
+ `).concat(g,`
207
+ }`),t)}catch(S){console.error(S),o=f,l=m}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),hs(t),{width:h,height:y}}function K6(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:G6(e)}function X6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Q6="rc-util-locker-".concat(Date.now()),fb=0;function Y6(e){var t=!!e,n=c.useState(function(){return fb+=1,"".concat(Q6,"_").concat(fb)}),r=ae(n,1),o=r[0];on(function(){if(t){var l=K6(document.body).width,s=X6();Zo(`
208
+ html body {
209
+ overflow-y: hidden;
210
+ `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
211
+ }`),o)}else hs(o);return function(){hs(o)}},[t,o])}var Z6=!1;function J6(e){return Z6}var mb=function(t){return t===!1?!1:!Cr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Xg=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,u=e.children,f=c.useState(n),m=ae(f,2),p=m[0],g=m[1],h=p||n;c.useEffect(function(){(s||n)&&g(n)},[n,s]);var y=c.useState(function(){return mb(o)}),S=ae(y,2),C=S[0],b=S[1];c.useEffect(function(){var L=mb(o);b(L??null)});var $=q6(h&&!C),w=ae($,2),R=w[0],O=w[1],I=C??R;Y6(r&&n&&Cr()&&(I===R||I===document.body));var P=null;if(u&&Ni(u)&&t){var T=u;P=T.ref}var j=Jo(P,t);if(!h||!Cr()||C===void 0)return null;var M=I===!1||J6(),k=u;return t&&(k=c.cloneElement(u,{ref:j})),c.createElement(ax.Provider,{value:O},M?k:Pi.createPortal(k,I))}),lx=c.createContext({});function eI(){var e=X({},Yu);return e.useId}var pb=0,gb=eI();const Qg=gb?(function(t){var n=gb();return t||n}):(function(t){var n=c.useState("ssr-id"),r=ae(n,2),o=r[0],l=r[1];return c.useEffect(function(){var s=pb;pb+=1,l("rc_unique_".concat(s))},[]),t||o});function vb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function hb(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function tI(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=hb(o),n.top+=hb(o,!0),n}const nI=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var rI={width:0,height:0,overflow:"hidden",outline:"none"},oI={outline:"none"},sx=Y.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.title,s=e.ariaId,u=e.footer,f=e.closable,m=e.closeIcon,p=e.onClose,g=e.children,h=e.bodyStyle,y=e.bodyProps,S=e.modalRender,C=e.onMouseDown,b=e.onMouseUp,$=e.holderRef,w=e.visible,R=e.forceRender,O=e.width,I=e.height,P=e.classNames,T=e.styles,j=Y.useContext(lx),M=j.panel,k=Jo($,M),L=c.useRef(),_=c.useRef();Y.useImperativeHandle(t,function(){return{focus:function(){var D;(D=L.current)===null||D===void 0||D.focus({preventScroll:!0})},changeActive:function(D){var Q=document,ne=Q.activeElement;D&&ne===_.current?L.current.focus({preventScroll:!0}):!D&&ne===L.current&&_.current.focus({preventScroll:!0})}}});var A={};O!==void 0&&(A.width=O),I!==void 0&&(A.height=I);var B=u?Y.createElement("div",{className:re("".concat(n,"-footer"),P==null?void 0:P.footer),style:X({},T==null?void 0:T.footer)},u):null,q=l?Y.createElement("div",{className:re("".concat(n,"-header"),P==null?void 0:P.header),style:X({},T==null?void 0:T.header)},Y.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,V=c.useMemo(function(){return mt(f)==="object"&&f!==null?f:f?{closeIcon:m??Y.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[f,m,n]),H=No(V,!0),F=mt(f)==="object"&&f.disabled,Z=f?Y.createElement("button",Ee({type:"button",onClick:p,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:F}),V.closeIcon):null,W=Y.createElement("div",{className:re("".concat(n,"-content"),P==null?void 0:P.content),style:T==null?void 0:T.content},Z,q,Y.createElement("div",Ee({className:re("".concat(n,"-body"),P==null?void 0:P.body),style:X(X({},h),T==null?void 0:T.body)},y),g),B);return Y.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:k,style:X(X({},o),A),className:re(n,r),onMouseDown:C,onMouseUp:b},Y.createElement("div",{ref:L,tabIndex:0,style:oI},Y.createElement(nI,{shouldUpdate:w||R},S?S(W):W)),Y.createElement("div",{tabIndex:0,ref:_,style:rI}))}),cx=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,l=e.className,s=e.visible,u=e.forceRender,f=e.destroyOnClose,m=e.motionName,p=e.ariaId,g=e.onVisibleChanged,h=e.mousePosition,y=c.useRef(),S=c.useState(),C=ae(S,2),b=C[0],$=C[1],w={};b&&(w.transformOrigin=b);function R(){var O=tI(y.current);$(h&&(h.x||h.y)?"".concat(h.x-O.left,"px ").concat(h.y-O.top,"px"):"")}return c.createElement($o,{visible:s,onVisibleChanged:g,onAppearPrepare:R,onEnterPrepare:R,forceRender:u,motionName:m,removeOnLeave:f,ref:y},function(O,I){var P=O.className,T=O.style;return c.createElement(sx,Ee({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:I,style:X(X(X({},T),o),w),className:re(l,P)}))})});cx.displayName="Content";var iI=function(t){var n=t.prefixCls,r=t.style,o=t.visible,l=t.maskProps,s=t.motionName,u=t.className;return c.createElement($o,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(f,m){var p=f.className,g=f.style;return c.createElement("div",Ee({ref:m,style:X(X({},g),r),className:re("".concat(n,"-mask"),p,u)},l))})},aI=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,l=t.visible,s=l===void 0?!1:l,u=t.keyboard,f=u===void 0?!0:u,m=t.focusTriggerAfterClose,p=m===void 0?!0:m,g=t.wrapStyle,h=t.wrapClassName,y=t.wrapProps,S=t.onClose,C=t.afterOpenChange,b=t.afterClose,$=t.transitionName,w=t.animation,R=t.closable,O=R===void 0?!0:R,I=t.mask,P=I===void 0?!0:I,T=t.maskTransitionName,j=t.maskAnimation,M=t.maskClosable,k=M===void 0?!0:M,L=t.maskStyle,_=t.maskProps,A=t.rootClassName,B=t.classNames,q=t.styles,V=c.useRef(),H=c.useRef(),F=c.useRef(),Z=c.useState(s),W=ae(Z,2),z=W[0],D=W[1],Q=Qg();function ne(){yp(H.current,document.activeElement)||(V.current=document.activeElement)}function ee(){if(!yp(H.current,document.activeElement)){var ce;(ce=F.current)===null||ce===void 0||ce.focus()}}function oe(ce){if(ce)ee();else{if(D(!1),P&&V.current&&p){try{V.current.focus({preventScroll:!0})}catch{}V.current=null}z&&(b==null||b())}C==null||C(ce)}function fe(ce){S==null||S(ce)}var me=c.useRef(!1),ue=c.useRef(),Ce=function(){clearTimeout(ue.current),me.current=!0},pe=function(){ue.current=setTimeout(function(){me.current=!1})},se=null;k&&(se=function(le){me.current?me.current=!1:H.current===le.target&&fe(le)});function ye(ce){if(f&&ce.keyCode===Ue.ESC){ce.stopPropagation(),fe(ce);return}s&&ce.keyCode===Ue.TAB&&F.current.changeActive(!ce.shiftKey)}c.useEffect(function(){s&&(D(!0),ne())},[s]),c.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var ve=X(X(X({zIndex:o},g),q==null?void 0:q.wrapper),{},{display:z?null:"none"});return c.createElement("div",Ee({className:re("".concat(r,"-root"),A)},No(t,{data:!0})),c.createElement(iI,{prefixCls:r,visible:P&&s,motionName:vb(r,T,j),style:X(X({zIndex:o},L),q==null?void 0:q.mask),maskProps:_,className:B==null?void 0:B.mask}),c.createElement("div",Ee({tabIndex:-1,onKeyDown:ye,className:re("".concat(r,"-wrap"),h,B==null?void 0:B.wrapper),ref:H,onClick:se,style:ve},y),c.createElement(cx,Ee({},t,{onMouseDown:Ce,onMouseUp:pe,ref:F,closable:O,ariaId:Q,prefixCls:r,visible:s&&z,onClose:fe,onVisibleChanged:oe,motionName:vb(r,$,w)}))))},ux=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,l=t.destroyOnClose,s=l===void 0?!1:l,u=t.afterClose,f=t.panelRef,m=c.useState(n),p=ae(m,2),g=p[0],h=p[1],y=c.useMemo(function(){return{panel:f}},[f]);return c.useEffect(function(){n&&h(!0)},[n]),!o&&s&&!g?null:c.createElement(lx.Provider,{value:y},c.createElement(Xg,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},c.createElement(aI,Ee({},t,{destroyOnClose:s,afterClose:function(){u==null||u(),h(!1)}}))))};ux.displayName="Dialog";var Yi="RC_FORM_INTERNAL_HOOKS",Cn=function(){cr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},dl=c.createContext({getFieldValue:Cn,getFieldsValue:Cn,getFieldError:Cn,getFieldWarning:Cn,getFieldsError:Cn,isFieldsTouched:Cn,isFieldTouched:Cn,isFieldValidating:Cn,isFieldsValidating:Cn,resetFields:Cn,setFields:Cn,setFieldValue:Cn,setFieldsValue:Cn,validateFields:Cn,submit:Cn,getInternalHooks:function(){return Cn(),{dispatch:Cn,initEntityValue:Cn,registerField:Cn,useSubscribe:Cn,setInitialValues:Cn,destroyForm:Cn,setCallbacks:Cn,registerWatch:Cn,getFields:Cn,setValidateMessages:Cn,setPreserve:Cn,getInitialValue:Cn}}}),Lu=c.createContext(null);function Xp(e){return e==null?[]:Array.isArray(e)?e:[e]}function lI(e){return e&&!!e._init}function Qp(){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 Yp=Qp();function sI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function cI(e,t,n){if(Og())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ps(o,n.prototype),o}function Zp(e){var t=typeof Map=="function"?new Map:void 0;return Zp=function(r){if(r===null||!sI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return cI(r,arguments,gs(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ps(o,r)},Zp(e)}var uI=/%[sdj%]/g,dI=function(){};function Jp(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 qr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(uI,function(u){if(u==="%%")return"%";if(o>=l)return u;switch(u){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return u}});return s}return e}function fI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Zn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||fI(t)&&typeof e=="string"&&!e)}function mI(e,t,n){var r=[],o=0,l=e.length;function s(u){r.push.apply(r,Ae(u||[])),o++,o===l&&n(r)}e.forEach(function(u){t(u,s)})}function yb(e,t,n){var r=0,o=e.length;function l(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<o?t(e[u],l):n([])}l([])}function pI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var bb=(function(e){ei(n,e);var t=ti(n);function n(r,o){var l;return Un(this,n),l=t.call(this,"Async Validation Error"),U(Ht(l),"errors",void 0),U(Ht(l),"fields",void 0),l.errors=r,l.fields=o,l}return qn(n)})(Zp(Error));function gI(e,t,n,r,o){if(t.first){var l=new Promise(function(h,y){var S=function($){return r($),$.length?y(new bb($,Jp($))):h(o)},C=pI(e);yb(C,n,S)});return l.catch(function(h){return h}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,m=0,p=[],g=new Promise(function(h,y){var S=function(b){if(p.push.apply(p,b),m++,m===f)return r(p),p.length?y(new bb(p,Jp(p))):h(o)};u.length||(r(p),h(o)),u.forEach(function(C){var b=e[C];s.indexOf(C)!==-1?yb(b,n,S):mI(b,n,S)})});return g.catch(function(h){return h}),g}function vI(e){return!!(e&&e.message!==void 0)}function hI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cb(e,t){return function(n){var r;return e.fullFields?r=hI(t,e.fullFields):r=t[n.field||e.fullField],vI(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 Sb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];mt(r)==="object"&&mt(e[n])==="object"?e[n]=X(X({},e[n]),r):e[n]=r}}return e}var _a="enum",yI=function(t,n,r,o,l){t[_a]=Array.isArray(t[_a])?t[_a]:[],t[_a].indexOf(n)===-1&&o.push(qr(l.messages[_a],t.fullField,t[_a].join(", ")))},bI=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(qr(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(qr(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},CI=function(t,n,r,o,l){var s=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,g=null,h=typeof n=="number",y=typeof n=="string",S=Array.isArray(n);if(h?g="number":y?g="string":S&&(g="array"),!g)return!1;S&&(p=n.length),y&&(p=n.replace(m,"_").length),s?p!==t.len&&o.push(qr(l.messages[g].len,t.fullField,t.len)):u&&!f&&p<t.min?o.push(qr(l.messages[g].min,t.fullField,t.min)):f&&!u&&p>t.max?o.push(qr(l.messages[g].max,t.fullField,t.max)):u&&f&&(p<t.min||p>t.max)&&o.push(qr(l.messages[g].range,t.fullField,t.min,t.max))},dx=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||Zn(n,s||t.type))&&o.push(qr(l.messages.required,t.fullField))},Yc;const SI=(function(){if(Yc)return Yc;var e="[a-fA-F\\d:]",t=function(P){return P&&P.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),p=function(P){return P&&P.exact?u:new RegExp("(?:".concat(t(P)).concat(n).concat(t(P),")|(?:").concat(t(P)).concat(s).concat(t(P),")"),"g")};p.v4=function(I){return I&&I.exact?f:new RegExp("".concat(t(I)).concat(n).concat(t(I)),"g")},p.v6=function(I){return I&&I.exact?m:new RegExp("".concat(t(I)).concat(s).concat(t(I)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,S=p.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",R='(?:[/?#][^\\s"]*)?',O="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(y,"|").concat(S,"|").concat(C).concat(b).concat($,")").concat(w).concat(R);return Yc=new RegExp("(?:^".concat(O,"$)"),"i"),Yc});var Dm={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},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.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 mt(t)==="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Dm.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Dm.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(SI())},hex:function(t){return typeof t=="string"&&!!t.match(Dm.hex)}},xI=function(t,n,r,o,l){if(t.required&&n===void 0){dx(t,n,r,o,l);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;s.indexOf(u)>-1?is[u](n)||o.push(qr(l.messages.types[u],t.fullField,t.type)):u&&mt(n)!==t.type&&o.push(qr(l.messages.types[u],t.fullField,t.type))},wI=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(qr(l.messages.whitespace,t.fullField))};const Qt={required:dx,whitespace:wI,type:xI,range:CI,enum:yI,pattern:bI};var $I=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l)}r(s)},EI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Qt.required(t,n,o,s,l,"array"),n!=null&&(Qt.type(t,n,o,s,l),Qt.range(t,n,o,s,l))}r(s)},RI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&Qt.type(t,n,o,s,l)}r(s)},OI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n,"date")&&!t.required)return r();if(Qt.required(t,n,o,s,l),!Zn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Qt.type(t,f,o,s,l),f&&Qt.range(t,f.getTime(),o,s,l)}}r(s)},II="enum",PI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&Qt[II](t,n,o,s,l)}r(s)},TI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&(Qt.type(t,n,o,s,l),Qt.range(t,n,o,s,l))}r(s)},MI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&(Qt.type(t,n,o,s,l),Qt.range(t,n,o,s,l))}r(s)},jI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&Qt.type(t,n,o,s,l)}r(s)},kI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&(Qt.type(t,n,o,s,l),Qt.range(t,n,o,s,l))}r(s)},NI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),n!==void 0&&Qt.type(t,n,o,s,l)}r(s)},_I=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n,"string")&&!t.required)return r();Qt.required(t,n,o,s,l),Zn(n,"string")||Qt.pattern(t,n,o,s,l)}r(s)},zI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n)&&!t.required)return r();Qt.required(t,n,o,s,l),Zn(n)||Qt.type(t,n,o,s,l)}r(s)},LI=function(t,n,r,o,l){var s=[],u=Array.isArray(n)?"array":mt(n);Qt.required(t,n,o,s,l,u),r(s)},BI=function(t,n,r,o,l){var s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Zn(n,"string")&&!t.required)return r();Qt.required(t,n,o,s,l,"string"),Zn(n,"string")||(Qt.type(t,n,o,s,l),Qt.range(t,n,o,s,l),Qt.pattern(t,n,o,s,l),t.whitespace===!0&&Qt.whitespace(t,n,o,s,l))}r(s)},Zc=function(t,n,r,o,l){var s=t.type,u=[],f=t.required||!t.required&&o.hasOwnProperty(t.field);if(f){if(Zn(n,s)&&!t.required)return r();Qt.required(t,n,o,u,l,s),Zn(n,s)||Qt.type(t,n,o,u,l)}r(u)};const ds={string:BI,method:jI,number:kI,boolean:RI,regexp:zI,integer:MI,float:TI,array:EI,object:NI,enum:PI,pattern:_I,date:OI,url:Zc,hex:Zc,email:Zc,tel:Zc,required:LI,any:$I};var As=(function(){function e(t){Un(this,e),U(this,"rules",null),U(this,"_messages",Yp),this.define(t)}return qn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var l=n[o];r.rules[o]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=Sb(Qp(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,u=o,f=l;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function m(S){var C=[],b={};function $(R){if(Array.isArray(R)){var O;C=(O=C).concat.apply(O,Ae(R))}else C.push(R)}for(var w=0;w<S.length;w++)$(S[w]);C.length?(b=Jp(C),f(C,b)):f(null,s)}if(u.messages){var p=this.messages();p===Yp&&(p=Qp()),Sb(p,u.messages),u.messages=p}else u.messages=this.messages();var g={},h=u.keys||Object.keys(this.rules);h.forEach(function(S){var C=r.rules[S],b=s[S];C.forEach(function($){var w=$;typeof w.transform=="function"&&(s===n&&(s=X({},s)),b=s[S]=w.transform(b),b!=null&&(w.type=w.type||(Array.isArray(b)?"array":mt(b)))),typeof w=="function"?w={validator:w}:w=X({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=S,w.fullField=w.fullField||S,w.type=r.getType(w),g[S]=g[S]||[],g[S].push({rule:w,value:b,source:s,field:S}))})});var y={};return gI(g,u,function(S,C){var b=S.rule,$=(b.type==="object"||b.type==="array")&&(mt(b.fields)==="object"||mt(b.defaultField)==="object");$=$&&(b.required||!b.required&&S.value),b.field=S.field;function w(T,j){return X(X({},j),{},{fullField:"".concat(b.fullField,".").concat(T),fullFields:b.fullFields?[].concat(Ae(b.fullFields),[T]):[T]})}function R(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=Array.isArray(T)?T:[T];!u.suppressWarning&&j.length&&e.warning("async-validator:",j),j.length&&b.message!==void 0&&b.message!==null&&(j=[].concat(b.message));var M=j.map(Cb(b,s));if(u.first&&M.length)return y[b.field]=1,C(M);if(!$)C(M);else{if(b.required&&!S.value)return b.message!==void 0?M=[].concat(b.message).map(Cb(b,s)):u.error&&(M=[u.error(b,qr(u.messages.required,b.field))]),C(M);var k={};b.defaultField&&Object.keys(S.value).map(function(A){k[A]=b.defaultField}),k=X(X({},k),S.rule.fields);var L={};Object.keys(k).forEach(function(A){var B=k[A],q=Array.isArray(B)?B:[B];L[A]=q.map(w.bind(null,A))});var _=new e(L);_.messages(u.messages),S.rule.options&&(S.rule.options.messages=u.messages,S.rule.options.error=u.error),_.validate(S.value,S.rule.options||u,function(A){var B=[];M&&M.length&&B.push.apply(B,Ae(M)),A&&A.length&&B.push.apply(B,Ae(A)),C(B.length?B:null)})}}var O;if(b.asyncValidator)O=b.asyncValidator(b,S.value,R,S.source,u);else if(b.validator){try{O=b.validator(b,S.value,R,S.source,u)}catch(T){var I,P;(I=(P=console).error)===null||I===void 0||I.call(P,T),u.suppressValidatorError||setTimeout(function(){throw T},0),R(T.message)}O===!0?R():O===!1?R(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):O instanceof Array?R(O):O instanceof Error&&R(O.message)}O&&O.then&&O.then(function(){return R()},function(T){return R(T)})},function(S){m(S)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ds.hasOwnProperty(n.type))throw new Error(qr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?ds.required:ds[this.getType(n)]||void 0}}]),e})();U(As,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ds[t]=n});U(As,"warning",dI);U(As,"messages",Yp);U(As,"validators",ds);var Wr="'${name}' is not a valid ${type}",fx={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:Wr,method:Wr,array:Wr,object:Wr,number:Wr,date:Wr,boolean:Wr,integer:Wr,float:Wr,regexp:Wr,email:Wr,url:Wr,hex:Wr},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}"}},xb=As;function AI(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 wb="CODE_LOGIC_ERROR";function eg(e,t,n,r,o){return tg.apply(this,arguments)}function tg(){return tg=aa(Sr().mark(function e(t,n,r,o,l){var s,u,f,m,p,g,h,y,S;return Sr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=X({},r),delete s.ruleIndex,xb.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(wb)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),m=new xb(U({},t,[s])),p=Xa(fx,o.validateMessages),m.messages(p),g=[],b.prev=10,b.next=13,Promise.resolve(m.validate(U({},t,n),X({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function($,w){var R=$.message,O=R===wb?p.default:R;return c.isValidElement(O)?c.cloneElement(O,{key:"error_".concat(w)}):O}));case 18:if(!(!g.length&&f&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function($,w){return eg("".concat(t,".").concat(w),$,f,o,l)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function($,w){return[].concat(Ae($),Ae(w))},[]));case 23:return y=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),S=g.map(function($){return typeof $=="string"?AI($,y):$}),b.abrupt("return",S);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),tg.apply(this,arguments)}function FI(e,t,n,r,o,l){var s=e.join("."),u=n.map(function(p,g){var h=p.validator,y=X(X({},p),{},{ruleIndex:g});return h&&(y.validator=function(S,C,b){var $=!1,w=function(){for(var I=arguments.length,P=new Array(I),T=0;T<I;T++)P[T]=arguments[T];Promise.resolve().then(function(){cr(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||b.apply(void 0,P)})},R=h(S,C,w);$=R&&typeof R.then=="function"&&typeof R.catch=="function",cr($,"`callback` is deprecated. Please return a promise instead."),$&&R.then(function(){b()}).catch(function(O){b(O||" ")})}),y}).sort(function(p,g){var h=p.warningOnly,y=p.ruleIndex,S=g.warningOnly,C=g.ruleIndex;return!!h==!!S?y-C:h?1:-1}),f;if(o===!0)f=new Promise((function(){var p=aa(Sr().mark(function g(h,y){var S,C,b;return Sr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:S=0;case 1:if(!(S<u.length)){w.next=12;break}return C=u[S],w.next=5,eg(s,t,C,r,l);case 5:if(b=w.sent,!b.length){w.next=9;break}return y([{errors:b,rule:C}]),w.abrupt("return");case 9:S+=1,w.next=1;break;case 12:h([]);case 13:case"end":return w.stop()}},g)}));return function(g,h){return p.apply(this,arguments)}})());else{var m=u.map(function(p){return eg(s,t,p,r,l).then(function(g){return{errors:g,rule:p}})});f=(o?HI(m):DI(m)).then(function(p){return Promise.reject(p)})}return f.catch(function(p){return p}),f}function DI(e){return ng.apply(this,arguments)}function ng(){return ng=aa(Sr().mark(function e(t){return Sr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var l,s=(l=[]).concat.apply(l,Ae(o));return s}));case 1:case"end":return r.stop()}},e)})),ng.apply(this,arguments)}function HI(e){return rg.apply(this,arguments)}function rg(){return rg=aa(Sr().mark(function e(t){var n;return Sr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return o.stop()}},e)})),rg.apply(this,arguments)}function An(e){return Xp(e)}function $b(e,t){var n={};return t.forEach(function(r){var o=To(e,r);n=vo(n,r,o)}),n}function el(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mx(t,r,n)})}function mx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function VI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ae(o).every(function(l){var s=e[l],u=t[l];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function WI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function Eb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],l=t-n;return l>0?[].concat(Ae(e.slice(0,n)),[o],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):l<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[o],Ae(e.slice(n+1,r))):e}var UI=["name"],to=[];function Hm(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var Yg=(function(e){ei(n,e);var t=ti(n);function n(r){var o;if(Un(this,n),o=t.call(this,r),U(Ht(o),"state",{resetCount:0}),U(Ht(o),"cancelRegisterFunc",null),U(Ht(o),"mounted",!1),U(Ht(o),"touched",!1),U(Ht(o),"dirty",!1),U(Ht(o),"validatePromise",void 0),U(Ht(o),"prevValidating",void 0),U(Ht(o),"errors",to),U(Ht(o),"warnings",to),U(Ht(o),"cancelRegister",function(){var f=o.props,m=f.preserve,p=f.isListField,g=f.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(p,m,An(g)),o.cancelRegisterFunc=null}),U(Ht(o),"getNamePath",function(){var f=o.props,m=f.name,p=f.fieldContext,g=p.prefixName,h=g===void 0?[]:g;return m!==void 0?[].concat(Ae(h),Ae(m)):[]}),U(Ht(o),"getRules",function(){var f=o.props,m=f.rules,p=m===void 0?[]:m,g=f.fieldContext;return p.map(function(h){return typeof h=="function"?h(g):h})}),U(Ht(o),"refresh",function(){o.mounted&&o.setState(function(f){var m=f.resetCount;return{resetCount:m+1}})}),U(Ht(o),"metaCache",null),U(Ht(o),"triggerMetaEvent",function(f){var m=o.props.onMetaChange;if(m){var p=X(X({},o.getMeta()),{},{destroy:f});ys(o.metaCache,p)||m(p),o.metaCache=p}else o.metaCache=null}),U(Ht(o),"onStoreChange",function(f,m,p){var g=o.props,h=g.shouldUpdate,y=g.dependencies,S=y===void 0?[]:y,C=g.onReset,b=p.store,$=o.getNamePath(),w=o.getValue(f),R=o.getValue(b),O=m&&el(m,$);switch(p.type==="valueUpdate"&&p.source==="external"&&!ys(w,R)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=to,o.warnings=to,o.triggerMetaEvent()),p.type){case"reset":if(!m||O){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=to,o.warnings=to,o.triggerMetaEvent(),C==null||C(),o.refresh();return}break;case"remove":{if(h&&Hm(h,f,b,w,R,p)){o.reRender();return}break}case"setField":{var I=p.data;if(O){"touched"in I&&(o.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(o.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(o.errors=I.errors||to),"warnings"in I&&(o.warnings=I.warnings||to),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in I&&el(m,$,!0)){o.reRender();return}if(h&&!$.length&&Hm(h,f,b,w,R,p)){o.reRender();return}break}case"dependenciesUpdate":{var P=S.map(An);if(P.some(function(T){return el(p.relatedFields,T)})){o.reRender();return}break}default:if(O||(!S.length||$.length||h)&&Hm(h,f,b,w,R,p)){o.reRender();return}break}h===!0&&o.reRender()}),U(Ht(o),"validateRules",function(f){var m=o.getNamePath(),p=o.getValue(),g=f||{},h=g.triggerName,y=g.validateOnly,S=y===void 0?!1:y,C=Promise.resolve().then(aa(Sr().mark(function b(){var $,w,R,O,I,P,T;return Sr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(o.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if($=o.props,w=$.validateFirst,R=w===void 0?!1:w,O=$.messageVariables,I=$.validateDebounce,P=o.getRules(),h&&(P=P.filter(function(k){return k}).filter(function(k){var L=k.validateTrigger;if(!L)return!0;var _=Xp(L);return _.includes(h)})),!(I&&h)){M.next=10;break}return M.next=8,new Promise(function(k){setTimeout(k,I)});case 8:if(o.validatePromise===C){M.next=10;break}return M.abrupt("return",[]);case 10:return T=FI(m,p,P,f,R,O),T.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:to;if(o.validatePromise===C){var L;o.validatePromise=null;var _=[],A=[];(L=k.forEach)===null||L===void 0||L.call(k,function(B){var q=B.rule.warningOnly,V=B.errors,H=V===void 0?to:V;q?A.push.apply(A,Ae(H)):_.push.apply(_,Ae(H))}),o.errors=_,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),M.abrupt("return",T);case 13:case"end":return M.stop()}},b)})));return S||(o.validatePromise=C,o.dirty=!0,o.errors=to,o.warnings=to,o.triggerMetaEvent(),o.reRender()),C}),U(Ht(o),"isFieldValidating",function(){return!!o.validatePromise}),U(Ht(o),"isFieldTouched",function(){return o.touched}),U(Ht(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var f=o.props.fieldContext,m=f.getInternalHooks(Yi),p=m.getInitialValue;return p(o.getNamePath())!==void 0}),U(Ht(o),"getErrors",function(){return o.errors}),U(Ht(o),"getWarnings",function(){return o.warnings}),U(Ht(o),"isListField",function(){return o.props.isListField}),U(Ht(o),"isList",function(){return o.props.isList}),U(Ht(o),"isPreserve",function(){return o.props.preserve}),U(Ht(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var f={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return f}),U(Ht(o),"getOnlyChild",function(f){if(typeof f=="function"){var m=o.getMeta();return X(X({},o.getOnlyChild(f(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var p=Rr(f);return p.length!==1||!c.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),U(Ht(o),"getValue",function(f){var m=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return To(f||m(!0),p)}),U(Ht(o),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,p=m.name,g=m.trigger,h=m.validateTrigger,y=m.getValueFromEvent,S=m.normalize,C=m.valuePropName,b=m.getValueProps,$=m.fieldContext,w=h!==void 0?h:$.validateTrigger,R=o.getNamePath(),O=$.getInternalHooks,I=$.getFieldsValue,P=O(Yi),T=P.dispatch,j=o.getValue(),M=b||function(B){return U({},C,B)},k=f[g],L=p!==void 0?M(j):{},_=X(X({},f),L);_[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var B,q=arguments.length,V=new Array(q),H=0;H<q;H++)V[H]=arguments[H];y?B=y.apply(void 0,V):B=WI.apply(void 0,[C].concat(V)),S&&(B=S(B,j,I(!0))),B!==j&&T({type:"updateValue",namePath:R,value:B}),k&&k.apply(void 0,V)};var A=Xp(w||[]);return A.forEach(function(B){var q=_[B];_[B]=function(){q&&q.apply(void 0,arguments);var V=o.props.rules;V&&V.length&&T({type:"validateField",namePath:R,triggerName:B})}}),_}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(Yi),u=s.initEntityValue;u(Ht(o))}return o}return qn(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,f=u(Yi),m=f.registerField;this.cancelRegisterFunc=m(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),u=s.child,f=s.isFunction,m;return f?m=u:c.isValidElement(u)?m=c.cloneElement(u,this.getControlled(u.props)):(cr(!u,"`children` of Field is not validate ReactElement."),m=u),c.createElement(c.Fragment,{key:o},m)}}]),n})(c.Component);U(Yg,"contextType",dl);U(Yg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function px(e){var t,n=e.name,r=jt(e,UI),o=c.useContext(dl),l=c.useContext(Lu),s=n!==void 0?An(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,f="keep";return u||(f="_".concat((s||[]).join("_"))),c.createElement(Yg,Ee({key:f,name:s,isListField:u},r,{fieldContext:o}))}function qI(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,u=c.useContext(dl),f=c.useContext(Lu),m=c.useRef({keys:[],id:0}),p=m.current,g=c.useMemo(function(){var C=An(u.prefixName)||[];return[].concat(Ae(C),Ae(An(t)))},[u.prefixName,t]),h=c.useMemo(function(){return X(X({},u),{},{prefixName:g})},[u,g]),y=c.useMemo(function(){return{getKey:function(b){var $=g.length,w=b[$];return[p.keys[w],b.slice($+1)]}}},[g]);if(typeof r!="function")return cr(!1,"Form.List only accepts function as children."),null;var S=function(b,$,w){var R=w.source;return R==="internal"?!1:b!==$};return c.createElement(Lu.Provider,{value:y},c.createElement(dl.Provider,{value:h},c.createElement(px,{name:[],shouldUpdate:S,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!f},function(C,b){var $=C.value,w=$===void 0?[]:$,R=C.onChange,O=u.getFieldValue,I=function(){var M=O(g||[]);return M||[]},P={add:function(M,k){var L=I();k>=0&&k<=L.length?(p.keys=[].concat(Ae(p.keys.slice(0,k)),[p.id],Ae(p.keys.slice(k))),R([].concat(Ae(L.slice(0,k)),[M],Ae(L.slice(k))))):(p.keys=[].concat(Ae(p.keys),[p.id]),R([].concat(Ae(L),[M]))),p.id+=1},remove:function(M){var k=I(),L=new Set(Array.isArray(M)?M:[M]);L.size<=0||(p.keys=p.keys.filter(function(_,A){return!L.has(A)}),R(k.filter(function(_,A){return!L.has(A)})))},move:function(M,k){if(M!==k){var L=I();M<0||M>=L.length||k<0||k>=L.length||(p.keys=Eb(p.keys,M,k),R(Eb(L,M,k)))}}},T=w||[];return Array.isArray(T)||(T=[]),r(T.map(function(j,M){var k=p.keys[M];return k===void 0&&(p.keys[M]=p.id,k=p.keys[M],p.id+=1),{name:M,key:k,isListField:!0}}),P,b)})))}function GI(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,l){e.forEach(function(s,u){s.catch(function(f){return t=!0,f}).then(function(f){n-=1,r[u]=f,!(n>0)&&(t&&l(r),o(r))})})}):Promise.resolve([])}var gx="__@field_split__";function Vm(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(gx)}var za=(function(){function e(){Un(this,e),U(this,"kvs",new Map)}return qn(e,[{key:"set",value:function(n,r){this.kvs.set(Vm(n),r)}},{key:"get",value:function(n){return this.kvs.get(Vm(n))}},{key:"update",value:function(n,r){var o=this.get(n),l=r(o);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Vm(n))}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var o=ae(r,2),l=o[0],s=o[1],u=l.split(gx);return n({key:u.map(function(f){var m=f.match(/^([^:]*):(.*)$/),p=ae(m,3),g=p[1],h=p[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,l=r.value;return n[o.join(".")]=l,null}),n}}]),e})(),KI=["name"],XI=qn(function e(t){var n=this;Un(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),U(this,"getInternalHooks",function(r){return r===Yi?(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}):(cr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var l,s=Xa(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var f=u.key;s=vo(s,f,To(r,f))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),U(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new za;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),U(this,"getInitialValue",function(r){var o=To(n.initialValues,r);return r.length?Xa(o):o}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(o,l,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){}),U(this,"updateStore",function(r){n.store=r}),U(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new za;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=An(l);return o.get(s)||{INVALIDATE_NAME_PATH:An(l)}})}),U(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,u;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&mt(r)==="object"&&(u=r.strict,s=r.filter),l===!0&&!s)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return f.forEach(function(p){var g,h,y="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(u){var S,C;if((S=(C=p).isList)!==null&&S!==void 0&&S.call(C))return}else if(!l&&(g=(h=p).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)m.push(y);else{var b="getMeta"in p?p.getMeta():null;s(b)&&m.push(y)}}),$b(n.store,m.map(An))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var o=An(r);return To(n.store,o)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:An(r[s]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var o=An(r),l=n.getFieldsError([o])[0];return l.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var o=An(r),l=n.getFieldsError([o])[0];return l.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o[0],u=o[1],f,m=!1;o.length===0?f=null:o.length===1?Array.isArray(s)?(f=s.map(An),m=!1):(f=null,m=s):(f=s.map(An),m=u);var p=n.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!f)return m?p.every(function(C){return g(C)||C.isList()}):p.some(g);var h=new za;f.forEach(function(C){h.set(C,[])}),p.forEach(function(C){var b=C.getNamePath();f.forEach(function($){$.every(function(w,R){return b[R]===w})&&h.update($,function(w){return[].concat(Ae(w),[C])})})});var y=function(b){return b.some(g)},S=h.map(function(C){var b=C.value;return b});return m?S.every(y):S.some(y)}),U(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),U(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(s){return s.isFieldValidating()});var l=r.map(An);return o.some(function(s){var u=s.getNamePath();return el(l,u)&&s.isFieldValidating()})}),U(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),U(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new za,l=n.getFieldEntities(!0);l.forEach(function(f){var m=f.props.initialValue,p=f.getNamePath();if(m!==void 0){var g=o.get(p)||new Set;g.add({entity:f,value:m}),o.set(p,g)}});var s=function(m){m.forEach(function(p){var g=p.props.initialValue;if(g!==void 0){var h=p.getNamePath(),y=n.getInitialValue(h);if(y!==void 0)cr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var S=o.get(h);if(S&&S.size>1)cr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var C=n.getFieldValue(h),b=p.isListField();!b&&(!r.skipExist||C===void 0)&&n.updateStore(vo(n.store,h,Ae(S)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(f){var m=o.get(f);if(m){var p;(p=u).push.apply(p,Ae(Ae(m).map(function(g){return g.entity})))}})):u=l,s(u)}),U(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Xa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(An);l.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(vo(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),U(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var u=s.name,f=jt(s,KI),m=An(u);l.push(m),"value"in f&&n.updateStore(vo(n.store,m,f.value)),n.notifyObservers(o,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),u=l.getMeta(),f=X(X({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return o}),U(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=To(n.store,l);s===void 0&&n.updateStore(vo(n.store,l,o))}}),U(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!s||f.length>1)){var m=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(g){return!mx(g.getNamePath(),o)})){var p=n.store;n.updateStore(vo(p,o,m,!0)),n.notifyObservers(p,[o],{type:"remove"}),n.triggerDependenciesUpdate(p,o)}}n.notifyWatch([o])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,l=r.value;n.updateValue(o,l);break}case"validateField":{var s=r.namePath,u=r.triggerName;n.validateFields([s],{triggerName:u});break}}}),U(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=X(X({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,o,s)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,o){var l=n.getDependencyChildrenFields(o);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[o].concat(Ae(l))}),l}),U(this,"updateValue",function(r,o){var l=An(r),s=n.store;n.updateStore(vo(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(s,l),f=n.callbacks.onValuesChange;if(f){var m=$b(n.store,[l]);f(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Ae(u)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=Xa(n.store,r);n.updateStore(l)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),U(this,"getDependencyChildrenFields",function(r){var o=new Set,l=[],s=new za;n.getFieldEntities().forEach(function(f){var m=f.props.dependencies;(m||[]).forEach(function(p){var g=An(p);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(f),h})})});var u=function f(m){var p=s.get(m)||new Set;p.forEach(function(g){if(!o.has(g)){o.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(l.push(h),f(h))}})};return u(r),l}),U(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var u=new za;o.forEach(function(m){var p=m.name,g=m.errors;u.set(p,g)}),s.forEach(function(m){m.errors=u.get(m.name)||m.errors})}var f=s.filter(function(m){var p=m.name;return el(r,p)});f.length&&l(f,s)}}),U(this,"validateFields",function(r,o){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(l=r,s=o):s=r;var u=!!l,f=u?l.map(An):[],m=[],p=String(Date.now()),g=new Set,h=s||{},y=h.recursive,S=h.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||f.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(S&&!w.isFieldDirty())){var R=w.getNamePath();if(g.add(R.join(p)),!u||el(f,R,y)){var O=w.validateRules(X({validateMessages:X(X({},fx),n.validateMessages)},s));m.push(O.then(function(){return{name:R,errors:[],warnings:[]}}).catch(function(I){var P,T=[],j=[];return(P=I.forEach)===null||P===void 0||P.call(I,function(M){var k=M.rule.warningOnly,L=M.errors;k?j.push.apply(j,Ae(L)):T.push.apply(T,Ae(L))}),T.length?Promise.reject({name:R,errors:T,warnings:j}):{name:R,errors:T,warnings:j}}))}}});var C=GI(m);n.lastValidatePromise=C,C.catch(function(w){return w}).then(function(w){var R=w.map(function(O){var I=O.name;return I});n.notifyObservers(n.store,R,{type:"validateFinish"}),n.triggerOnFieldsChange(R,w)});var b=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(w){var R=w.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:R,outOfDate:n.lastValidatePromise!==C})});b.catch(function(w){return w});var $=f.filter(function(w){return g.has(w.join(p))});return n.triggerOnFieldsChange($),b}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(l){console.error(l)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function vx(e){var t=c.useRef(),n=c.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){o({})},s=new XI(l);t.current=s.getForm()}return[t.current]}var og=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),QI=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=c.useContext(og),u=c.useRef({});return c.createElement(og.Provider,{value:X(X({},s),{},{validateMessages:X(X({},s.validateMessages),n),triggerFormChange:function(m,p){r&&r(m,{changedFields:p,forms:u.current}),s.triggerFormChange(m,p)},triggerFormFinish:function(m,p){o&&o(m,{values:p,forms:u.current}),s.triggerFormFinish(m,p)},registerForm:function(m,p){m&&(u.current=X(X({},u.current),{},U({},m,p))),s.registerForm(m,p)},unregisterForm:function(m){var p=X({},u.current);delete p[m],u.current=p,s.unregisterForm(m)}})},l)},YI=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ZI=function(t,n){var r=t.name,o=t.initialValues,l=t.fields,s=t.form,u=t.preserve,f=t.children,m=t.component,p=m===void 0?"form":m,g=t.validateMessages,h=t.validateTrigger,y=h===void 0?"onChange":h,S=t.onValuesChange,C=t.onFieldsChange,b=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,R=jt(t,YI),O=c.useRef(null),I=c.useContext(og),P=vx(s),T=ae(P,1),j=T[0],M=j.getInternalHooks(Yi),k=M.useSubscribe,L=M.setInitialValues,_=M.setCallbacks,A=M.setValidateMessages,B=M.setPreserve,q=M.destroyForm;c.useImperativeHandle(n,function(){return X(X({},j),{},{nativeElement:O.current})}),c.useEffect(function(){return I.registerForm(r,j),function(){I.unregisterForm(r)}},[I,j,r]),A(X(X({},I.validateMessages),g)),_({onValuesChange:S,onFieldsChange:function(ne){if(I.triggerFormChange(r,ne),C){for(var ee=arguments.length,oe=new Array(ee>1?ee-1:0),fe=1;fe<ee;fe++)oe[fe-1]=arguments[fe];C.apply(void 0,[ne].concat(oe))}},onFinish:function(ne){I.triggerFormFinish(r,ne),b&&b(ne)},onFinishFailed:$}),B(u);var V=c.useRef(null);L(o,!V.current),V.current||(V.current=!0),c.useEffect(function(){return function(){return q(w)}},[]);var H,F=typeof f=="function";if(F){var Z=j.getFieldsValue(!0);H=f(Z,j)}else H=f;k(!F);var W=c.useRef();c.useEffect(function(){VI(W.current||[],l||[])||j.setFields(l||[]),W.current=l},[l,j]);var z=c.useMemo(function(){return X(X({},j),{},{validateTrigger:y})},[j,y]),D=c.createElement(Lu.Provider,{value:null},c.createElement(dl.Provider,{value:z},H));return p===!1?D:c.createElement(p,Ee({},R,{ref:O,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),j.submit()},onReset:function(ne){var ee;ne.preventDefault(),j.resetFields(),(ee=R.onReset)===null||ee===void 0||ee.call(R,ne)}}),D)};function Rb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function JI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],l=o===void 0?{}:o,s=lI(l)?{form:l}:l,u=s.form,f=c.useState(),m=ae(f,2),p=m[0],g=m[1],h=c.useMemo(function(){return Rb(p)},[p]),y=c.useRef(h);y.current=h;var S=c.useContext(dl),C=u||S,b=C&&C._init,$=An(r),w=c.useRef($);return w.current=$,c.useEffect(function(){if(b){var R=C.getFieldsValue,O=C.getInternalHooks,I=O(Yi),P=I.registerWatch,T=function(L,_){var A=s.preserve?_:L;return typeof r=="function"?r(A):To(A,w.current)},j=P(function(k,L){var _=T(k,L),A=Rb(_);y.current!==A&&(y.current=A,g(_))}),M=T(R(),R(!0));return p!==M&&g(M),j}},[b]),p}var eP=c.forwardRef(ZI),Fs=eP;Fs.FormProvider=QI;Fs.Field=px;Fs.List=qI;Fs.useForm=vx;Fs.useWatch=JI;const Bu=c.createContext({}),tP=({children:e,status:t,override:n})=>{const r=c.useContext(Bu),o=c.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 c.createElement(Bu.Provider,{value:o},e)},nP=c.createContext(void 0),yd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Y.createElement(tP,{override:!0,status:!0},o)),t&&(o=Y.createElement(s5,null,o)),o};var rP=function(t){if(Cr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function Ob(e,t){return rP(e)}const oP=()=>Cr()&&window.document.documentElement,bd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:l}=e,s=re({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),u=re({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),f=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:re(t,s,u,n),style:Object.assign(Object.assign({},f),r)})},iP=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Cd=e=>({height:e,lineHeight:J(e)}),tl=e=>Object.assign({width:e},Cd(e)),aP=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:iP,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Wm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Cd(e)),lP=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},tl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},tl(o)),[`${t}${t}-sm`]:Object.assign({},tl(l))}},sP=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Wm(t,u)),[`${r}-lg`]:Object.assign({},Wm(o,u)),[`${r}-sm`]:Object.assign({},Wm(l,u))}},Ib=e=>Object.assign({width:e},Cd(e)),cP=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Ib(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Ib(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Um=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Cd(e)),uP=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},qm(r,u))},Um(e,r,n)),{[`${n}-lg`]:Object.assign({},qm(o,u))}),Um(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qm(l,u))}),Um(e,l,`${n}-sm`))},dP=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:l,skeletonInputCls:s,skeletonImageCls:u,controlHeight:f,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:h,marginSM:y,borderRadius:S,titleHeight:C,blockRadius:b,paragraphLiHeight:$,controlHeightXS:w,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},tl(f)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},tl(m)),[`${n}-sm`]:Object.assign({},tl(p))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:b,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:b,"+ li":{marginBlockStart:w}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},uP(e)),lP(e)),sP(e)),cP(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
212
+ ${r},
213
+ ${o} > li,
214
+ ${n},
215
+ ${l},
216
+ ${s},
217
+ ${u}
218
+ `]:Object.assign({},aP(e))}}},fP=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},hl=pn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Yt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return dP(r)},fP,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),mP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=e,{getPrefixCls:u}=c.useContext(It),f=u("skeleton",t),[m,p,g]=hl(f),h=Wn(e,["prefixCls","className"]),y=re(f,`${f}-element`,{[`${f}-active`]:o},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(bd,Object.assign({prefixCls:`${f}-avatar`,shape:l,size:s},h))))},pP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=e,{getPrefixCls:u}=c.useContext(It),f=u("skeleton",t),[m,p,g]=hl(f),h=Wn(e,["prefixCls"]),y=re(f,`${f}-element`,{[`${f}-active`]:o,[`${f}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(bd,Object.assign({prefixCls:`${f}-button`,size:s},h))))},gP="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",vP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l}=e,{getPrefixCls:s}=c.useContext(It),u=s("skeleton",t),[f,m,p]=hl(u),g=re(u,`${u}-element`,{[`${u}-active`]:l},n,r,m,p);return f(c.createElement("div",{className:g},c.createElement("div",{className:re(`${u}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:gP,className:`${u}-image-path`})))))},hP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l,size:s="default"}=e,{getPrefixCls:u}=c.useContext(It),f=u("skeleton",t),[m,p,g]=hl(f),h=Wn(e,["prefixCls"]),y=re(f,`${f}-element`,{[`${f}-active`]:o,[`${f}-block`]:l},n,r,p,g);return m(c.createElement("div",{className:y},c.createElement(bd,Object.assign({prefixCls:`${f}-input`,size:s},h))))},yP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l,children:s}=e,{getPrefixCls:u}=c.useContext(It),f=u("skeleton",t),[m,p,g]=hl(f),h=re(f,`${f}-element`,{[`${f}-active`]:l},p,n,r,g);return m(c.createElement("div",{className:h},c.createElement("div",{className:re(`${f}-image`,n),style:o},s)))},bP=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},CP=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,l=Array.from({length:o}).map((s,u)=>c.createElement("li",{key:u,style:{width:bP(u,e)}}));return c.createElement("ul",{className:re(t,n),style:r},l)},SP=({prefixCls:e,className:t,width:n,style:r})=>c.createElement("h3",{className:re(e,t),style:Object.assign({width:n},r)});function Gm(e){return e&&typeof e=="object"?e:{}}function xP(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wP(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $P(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const yl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:l,children:s,avatar:u=!1,title:f=!0,paragraph:m=!0,active:p,round:g}=e,{getPrefixCls:h,direction:y,className:S,style:C}=Ir("skeleton"),b=h("skeleton",t),[$,w,R]=hl(b);if(n||!("loading"in e)){const O=!!u,I=!!f,P=!!m;let T;if(O){const k=Object.assign(Object.assign({prefixCls:`${b}-avatar`},xP(I,P)),Gm(u));T=c.createElement("div",{className:`${b}-header`},c.createElement(bd,Object.assign({},k)))}let j;if(I||P){let k;if(I){const _=Object.assign(Object.assign({prefixCls:`${b}-title`},wP(O,P)),Gm(f));k=c.createElement(SP,Object.assign({},_))}let L;if(P){const _=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},$P(O,I)),Gm(m));L=c.createElement(CP,Object.assign({},_))}j=c.createElement("div",{className:`${b}-content`},k,L)}const M=re(b,{[`${b}-with-avatar`]:O,[`${b}-active`]:p,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},S,r,o,w,R);return $(c.createElement("div",{className:M,style:Object.assign(Object.assign({},C),l)},T,j))}return s??null};yl.Button=pP;yl.Avatar=mP;yl.Input=hP;yl.Image=vP;yl.Node=yP;function Pb(){}const EP=c.createContext({add:Pb,remove:Pb});function RP(e){const t=c.useContext(EP),n=c.useRef(null);return Nn(o=>{if(o){const l=e?o.querySelector(e):o;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const Tb=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(Bs);return Y.createElement(zo,Object.assign({onClick:n},e),t)},Mb=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(Bs);return Y.createElement(zo,Object.assign({},QS(n),{loading:e,onClick:o},t),r)};function hx(e,t){return Y.createElement("span",{className:`${e}-close-x`},t||Y.createElement(vl,{className:`${e}-close-icon`}))}const yx=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:u,cancelButtonProps:f,footer:m}=e,[p]=ni("Modal",QC()),g=t||(p==null?void 0:p.okText),h=r||(p==null?void 0:p.cancelText),y=Y.useMemo(()=>({confirmLoading:o,okButtonProps:u,cancelButtonProps:f,okTextLocale:g,cancelTextLocale:h,okType:n,onOk:l,onCancel:s}),[o,u,f,g,h,n,l,s]);let S;return typeof m=="function"||typeof m>"u"?(S=Y.createElement(Y.Fragment,null,Y.createElement(Tb,null),Y.createElement(Mb,null)),typeof m=="function"&&(S=m(S,{OkBtn:Mb,CancelBtn:Tb})),S=Y.createElement(ix,{value:y},S)):S=m,Y.createElement(rS,{disabled:!1},S)},OP=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"}}}},IP=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},PP=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,l={};for(let s=o;s>=0;s--)s===0?(l[`${r}${t}-${s}`]={display:"none"},l[`${r}-push-${s}`]={insetInlineStart:"auto"},l[`${r}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${s}`]={marginInlineStart:0},l[`${r}${t}-order-${s}`]={order:0}):(l[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],l[`${r}${t}-push-${s}`]={insetInlineStart:`${s/o*100}%`},l[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},l[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},l[`${r}${t}-order-${s}`]={order:s});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},ig=(e,t)=>PP(e,t),TP=(e,t,n)=>({[`@media (min-width: ${J(t)})`]:Object.assign({},ig(e,n))}),MP=()=>({}),jP=()=>({}),kP=pn("Grid",OP,MP),bx=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),NP=pn("Grid",e=>{const t=Yt(e,{gridColumns:24}),n=bx(t);return delete n.xs,[IP(t),ig(t,""),ig(t,"-xs"),Object.keys(n).map(r=>TP(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},jP);function jb(e){return{position:e,inset:0}}const _P=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},jb("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},jb("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:L5(e)}]},zP=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${J(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Fn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${J(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:J(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ko(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${J(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
219
+ ${t}-body,
220
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},LP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},BP=e=>{const{componentCls:t}=e,n=bx(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,l=Object.keys(r).map(s=>({[`@media (min-width: ${J(r[s])})`]:{width:`var(${o}${s}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ae(Object.keys(n).map((s,u)=>{const f=Object.keys(n)[u-1];return f?{[`${o}${s}-width`]:`var(${o}${f}-width)`}:null})),[{width:`var(${o}xs-width)`}],Ae(l))}}},Cx=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Yt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Sx=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${J(e.padding)} ${J(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${J(e.paddingXS)} ${J(e.padding)}`:0,footerBorderTop:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${J(e.padding*2)} ${J(e.padding*2)} ${J(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),xx=pn("Modal",e=>{const t=Cx(e);return[zP(t),LP(t),_P(t),Ls(t,"zoom"),BP(t)]},Sx,{unitless:{titleLineHeight:!0}});var AP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ag;const FP=e=>{ag={x:e.pageX,y:e.pageY},setTimeout(()=>{ag=null},100)};oP()&&document.documentElement.addEventListener("click",FP,!0);const wx=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:l,centered:s,getContainer:u,focusTriggerAfterClose:f=!0,style:m,visible:p,width:g=520,footer:h,classNames:y,styles:S,children:C,loading:b,confirmLoading:$,zIndex:w,mousePosition:R,onOk:O,onCancel:I,destroyOnHidden:P,destroyOnClose:T,panelRef:j=null,modalRender:M}=e,k=AP(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:L,getPrefixCls:_,direction:A,modal:B}=c.useContext(It),q=Se=>{$||I==null||I(Se)},V=Se=>{O==null||O(Se)},H=_("modal",t),F=_(),Z=ri(H),[W,z,D]=xx(H,Z),Q=re(l,{[`${H}-centered`]:s??(B==null?void 0:B.centered),[`${H}-wrap-rtl`]:A==="rtl"}),ne=h!==null&&!b?c.createElement(yx,Object.assign({},e,{onOk:V,onCancel:q})):null,[ee,oe,fe,me]=LS(ku(e),ku(B),{closable:!0,closeIcon:c.createElement(vl,{className:`${H}-close-icon`}),closeIconRender:Se=>hx(H,Se)}),ue=M?Se=>c.createElement("div",{className:`${H}-render`},M(Se)):void 0,Ce=`.${H}-${M?"render":"content"}`,pe=RP(Ce),se=Lo(j,pe),[ye,ve]=Ns("Modal",w),[ce,le]=c.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),be=c.useMemo(()=>{const Se={};return le&&Object.keys(le).forEach($e=>{const je=le[$e];je!==void 0&&(Se[`--${H}-${$e}-width`]=typeof je=="number"?`${je}px`:je)}),Se},[H,le]);return W(c.createElement(yd,{form:!0,space:!0},c.createElement(ld.Provider,{value:ve},c.createElement(ux,Object.assign({width:ce},k,{zIndex:ye,getContainer:u===void 0?L:u,prefixCls:H,rootClassName:re(z,r,D,Z),footer:ne,visible:o??p,mousePosition:R??ag,onClose:q,closable:ee&&Object.assign({disabled:fe,closeIcon:oe},me),closeIcon:oe,focusTriggerAfterClose:f,transitionName:ji(F,"zoom",e.transitionName),maskTransitionName:ji(F,"fade",e.maskTransitionName),className:re(z,n,B==null?void 0:B.className),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),m),be),classNames:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.classNames),y),{wrapper:re(Q,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},B==null?void 0:B.styles),S),panelRef:se,destroyOnClose:P??T,modalRender:ue}),b?c.createElement(yl,{active:!0,title:!1,paragraph:{rows:4},className:`${H}-body-skeleton`}):C))))},DP=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:l,lineHeight:s,modalTitleHeight:u,fontHeight:f,confirmBodyPadding:m}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},Tu()),[`&${t} ${t}-body`]:{padding:m},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${J(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${J(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:l,lineHeight:s},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
221
+ ${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},HP=ks(["Modal","confirm"],e=>{const t=Cx(e);return DP(t)},Sx,{order:-1e3});var VP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $x=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:u,footer:f,locale:m}=e,p=VP(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(s){case"info":g=c.createElement(jS,null);break;case"success":g=c.createElement(TS,null);break;case"error":g=c.createElement(id,null);break;default:g=c.createElement(MS,null)}const h=u??s==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[S]=ni("Modal"),C=m||S,b=r||(h?C==null?void 0:C.okText:C==null?void 0:C.justOkText),$=o||(C==null?void 0:C.cancelText),w=c.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:$,okTextLocale:b,mergedOkCancel:h},p),[y,$,b,h,p]),R=c.createElement(c.Fragment,null,c.createElement(cb,null),c.createElement(ub,null)),O=e.title!==void 0&&e.title!==null,I=`${l}-body`;return c.createElement("div",{className:`${l}-body-wrapper`},c.createElement("div",{className:re(I,{[`${I}-has-title`]:O})},g,c.createElement("div",{className:`${l}-paragraph`},O&&c.createElement("span",{className:`${l}-title`},e.title),c.createElement("div",{className:`${l}-content`},e.content))),f===void 0||typeof f=="function"?c.createElement(ix,{value:w},c.createElement("div",{className:`${l}-btns`},typeof f=="function"?f(R,{OkBtn:ub,CancelBtn:cb}):R)):f,c.createElement(HP,{prefixCls:t}))},WP=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:l,wrapClassName:s,rootPrefixCls:u,bodyStyle:f,closable:m=!1,onConfirm:p,styles:g,title:h}=e,y=`${l}-confirm`,S=e.width||416,C=e.style||{},b=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=re(y,`${y}-${e.type}`,{[`${y}-rtl`]:o==="rtl"},e.className),[,R]=Pr(),O=c.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+BS,[n,R]);return c.createElement(wx,Object.assign({},e,{className:w,wrapClassName:re({[`${y}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:h,footer:null,transitionName:ji(u||"","zoom",e.transitionName),maskTransitionName:ji(u||"","fade",e.maskTransitionName),mask:b,maskClosable:$,style:C,styles:Object.assign({body:f,mask:r},g),width:S,zIndex:O,closable:m}),c.createElement($x,Object.assign({},e,{confirmPrefixCls:y})))},Ex=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(Bo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(WP,Object.assign({},e)))},Zi=[];let Rx="";function Ox(){return Rx}const UP=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:l}=e,s=QC(),u=c.useContext(It),f=Ox()||u.getPrefixCls(),m=r||`${f}-modal`;let p=o;return p===!1&&(p=void 0),Y.createElement(Ex,Object.assign({},e,{rootPrefixCls:f,prefixCls:m,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:s,getContainer:p}))};function Ds(e){const t=ES(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:f,open:!0}),o,l;function s(...p){var g;if(p.some(S=>S==null?void 0:S.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Ae(p.slice(1))))}for(let S=0;S<Zi.length;S++)if(Zi[S]===f){Zi.splice(S,1);break}l()}const u=p=>{clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,Ox()),h=t.getIconPrefixCls(),y=t.getTheme(),S=Y.createElement(UP,Object.assign({},p));l=Dg()(Y.createElement(Bo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(S):S),n)})};function f(...p){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}}),r.visible&&delete r.visible,u(r)}function m(p){typeof p=="function"?r=p(r):r=Object.assign(Object.assign({},r),p),u(r)}return u(r),Zi.push(f),{destroy:f,update:m}}function Ix(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Px(e){return Object.assign(Object.assign({},e),{type:"info"})}function Tx(e){return Object.assign(Object.assign({},e),{type:"success"})}function Mx(e){return Object.assign(Object.assign({},e),{type:"error"})}function jx(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qP({rootPrefixCls:e}){Rx=e}var GP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KP=(e,t)=>{var n,{afterClose:r,config:o}=e,l=GP(e,["afterClose","config"]);const[s,u]=c.useState(!0),[f,m]=c.useState(o),{direction:p,getPrefixCls:g}=c.useContext(It),h=g("modal"),y=g(),S=()=>{var w;r(),(w=f.afterClose)===null||w===void 0||w.call(f)},C=(...w)=>{var R;if(u(!1),w.some(P=>P==null?void 0:P.triggerCancel)){var I;(R=f.onCancel)===null||R===void 0||(I=R).call.apply(I,[f,()=>{}].concat(Ae(w.slice(1))))}};c.useImperativeHandle(t,()=>({destroy:C,update:w=>{m(R=>{const O=typeof w=="function"?w(R):w;return Object.assign(Object.assign({},R),O)})}}));const b=(n=f.okCancel)!==null&&n!==void 0?n:f.type==="confirm",[$]=ni("Modal",Ti.Modal);return c.createElement(Ex,Object.assign({prefixCls:h,rootPrefixCls:y},f,{close:C,open:s,afterClose:S,okText:f.okText||(b?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:f.direction||p,cancelText:f.cancelText||($==null?void 0:$.cancelText)},l))},XP=c.forwardRef(KP);let kb=0;const QP=c.memo(c.forwardRef((e,t)=>{const[n,r]=xO();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,n)}));function YP(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Ae(t).forEach(s=>{s()}),n([]))},[t]);const r=c.useCallback(l=>function(u){var f;kb+=1;const m=c.createRef();let p;const g=new Promise(b=>{p=b});let h=!1,y;const S=c.createElement(XP,{key:`modal-${kb}`,config:l(u),ref:m,afterClose:()=>{y==null||y()},isSilent:()=>h,onConfirm:b=>{p(b)}});return y=(f=e.current)===null||f===void 0?void 0:f.patchElement(S),y&&Zi.push(y),{destroy:()=>{function b(){var $;($=m.current)===null||$===void 0||$.destroy()}m.current?b():n($=>[].concat(Ae($),[b]))},update:b=>{function $(){var w;(w=m.current)===null||w===void 0||w.update(b)}m.current?$():n(w=>[].concat(Ae(w),[$]))},then:b=>(h=!0,g.then(b))}},[]);return[c.useMemo(()=>({info:r(Px),success:r(Tx),error:r(Mx),warning:r(Ix),confirm:r(jx)}),[r]),c.createElement(QP,{key:"modal-holder",ref:e})]}const ZP=Y.createContext({});function kx(e){return t=>c.createElement(Bo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const Nx=(e,t,n,r,o)=>kx(s=>{const{prefixCls:u,style:f}=s,m=c.useRef(null),[p,g]=c.useState(0),[h,y]=c.useState(0),[S,C]=Vn(!1,{value:s.open}),{getPrefixCls:b}=c.useContext(It),$=b(r||"select",u);c.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(P=>{const T=P[0].target;g(T.offsetHeight+8),y(T.offsetWidth)}),I=setInterval(()=>{var P;const T=o?`.${o($)}`:`.${$}-dropdown`,j=(P=m.current)===null||P===void 0?void 0:P.querySelector(T);j&&(clearInterval(I),O.observe(j))},10);return()=>{clearInterval(I),O.disconnect()}}},[$]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},f),{margin:0}),open:S,visible:S,getPopupContainer:()=>m.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const R={paddingBottom:p,position:"relative",minWidth:h};return c.createElement("div",{ref:m,style:R},c.createElement(e,Object.assign({},w)))}),Zg=(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 Sd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,l=t.children,s=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(p){p.preventDefault(),s==null||s(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:c.createElement("span",{className:re(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},JP=function(t,n,r,o,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,m=Y.useMemo(function(){if(mt(o)==="object")return o.clearIcon;if(l)return l},[o,l]),p=Y.useMemo(function(){return!!(!s&&o&&(r.length||u)&&!(f==="combobox"&&u===""))},[o,s,r.length,u,f]);return{allowClear:p,clearIcon:Y.createElement(Sd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},_x=c.createContext(null);function e8(){return c.useContext(_x)}function t8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ae(t,2),r=n[0],o=n[1],l=c.useRef(null),s=function(){window.clearTimeout(l.current)};c.useEffect(function(){return s},[]);var u=function(m,p){s(),l.current=window.setTimeout(function(){o(m),p&&p()},e)};return[r,u,s]}function zx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function n8(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function l(s){var u;if(!((u=o.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=s.target;f.shadowRoot&&s.composed&&(f=s.composedPath()[0]||f),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(f)&&m!==f})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function r8(e){return e&&![Ue.ESC,Ue.SHIFT,Ue.BACKSPACE,Ue.TAB,Ue.WIN_KEY,Ue.ALT,Ue.META,Ue.WIN_KEY_RIGHT,Ue.CTRL,Ue.SEMICOLON,Ue.EQUALS,Ue.CAPS_LOCK,Ue.CONTEXT_MENU,Ue.F1,Ue.F2,Ue.F3,Ue.F4,Ue.F5,Ue.F6,Ue.F7,Ue.F8,Ue.F9,Ue.F10,Ue.F11,Ue.F12].includes(e)}var o8=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],La=void 0;function i8(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,l=e.renderItem,s=e.responsive,u=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,p=e.className,g=e.style,h=e.children,y=e.display,S=e.order,C=e.component,b=C===void 0?"div":C,$=jt(e,o8),w=s&&!y;function R(j){f(m,j)}c.useEffect(function(){return function(){R(null)}},[]);var O=l&&o!==La?l(o,{index:S}):h,I;r||(I={opacity:w?0:1,height:w?0:La,overflowY:w?"hidden":La,order:s?S:La,pointerEvents:w?"none":La,position:w?"absolute":La});var P={};w&&(P["aria-hidden"]=!0);var T=c.createElement(b,Ee({className:re(!r&&n,p),style:X(X({},I),g)},P,$,{ref:t}),O);return s&&(T=c.createElement(io,{onResize:function(M){var k=M.offsetWidth;R(k)},disabled:u},T)),T}var Za=c.forwardRef(i8);Za.displayName="Item";function a8(e){if(typeof MessageChannel>"u")Sn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function l8(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],a8(function(){Pi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ba(e,t){var n=c.useState(t),r=ae(n,2),o=r[0],l=r[1],s=Nn(function(u){e(function(){l(u)})});return[o,s]}var Au=Y.createContext(null),s8=["component"],c8=["className"],u8=["className"],d8=function(t,n){var r=c.useContext(Au);if(!r){var o=t.component,l=o===void 0?"div":o,s=jt(t,s8);return c.createElement(l,Ee({},s,{ref:n}))}var u=r.className,f=jt(r,c8),m=t.className,p=jt(t,u8);return c.createElement(Au.Provider,{value:null},c.createElement(Za,Ee({ref:n,className:re(u,m)},f,p)))},Lx=c.forwardRef(d8);Lx.displayName="RawItem";var f8=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Bx="responsive",Ax="invalidate";function m8(e){return"+ ".concat(e.length," ...")}function p8(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,l=o===void 0?[]:o,s=e.renderItem,u=e.renderRawItem,f=e.itemKey,m=e.itemWidth,p=m===void 0?10:m,g=e.ssr,h=e.style,y=e.className,S=e.maxCount,C=e.renderRest,b=e.renderRawRest,$=e.prefix,w=e.suffix,R=e.component,O=R===void 0?"div":R,I=e.itemComponent,P=e.onVisibleChange,T=jt(e,f8),j=g==="full",M=l8(),k=Ba(M,null),L=ae(k,2),_=L[0],A=L[1],B=_||0,q=Ba(M,new Map),V=ae(q,2),H=V[0],F=V[1],Z=Ba(M,0),W=ae(Z,2),z=W[0],D=W[1],Q=Ba(M,0),ne=ae(Q,2),ee=ne[0],oe=ne[1],fe=Ba(M,0),me=ae(fe,2),ue=me[0],Ce=me[1],pe=Ba(M,0),se=ae(pe,2),ye=se[0],ve=se[1],ce=c.useState(null),le=ae(ce,2),be=le[0],Se=le[1],$e=c.useState(null),je=ae($e,2),Le=je[0],Pe=je[1],Be=c.useMemo(function(){return Le===null&&j?Number.MAX_SAFE_INTEGER:Le||0},[Le,_]),Re=c.useState(!1),tt=ae(Re,2),lt=tt[0],bt=tt[1],st="".concat(r,"-item"),qe=Math.max(z,ee),it=S===Bx,Ve=l.length&&it,dt=S===Ax,Xe=Ve||typeof S=="number"&&l.length>S,ke=c.useMemo(function(){var we=l;return Ve?_===null&&j?we=l:we=l.slice(0,Math.min(l.length,B/p)):typeof S=="number"&&(we=l.slice(0,S)),we},[l,p,_,S,Ve]),Ye=c.useMemo(function(){return Ve?l.slice(Be+1):l.slice(ke.length)},[l,ke,Ve,Be]),Te=c.useCallback(function(we,xe){var Ne;return typeof f=="function"?f(we):(Ne=f&&(we==null?void 0:we[f]))!==null&&Ne!==void 0?Ne:xe},[f]),De=c.useCallback(s||function(we){return we},[s]);function wt(we,xe,Ne){Le===we&&(xe===void 0||xe===be)||(Pe(we),Ne||(bt(we<l.length-1),P==null||P(we)),xe!==void 0&&Se(xe))}function pt(we,xe){A(xe.clientWidth)}function Vt(we,xe){F(function(Ne){var Ke=new Map(Ne);return xe===null?Ke.delete(we):Ke.set(we,xe),Ke})}function Dt(we,xe){oe(xe),D(ee)}function an(we,xe){Ce(xe)}function yn(we,xe){ve(xe)}function Ut(we){return H.get(Te(ke[we],we))}on(function(){if(B&&typeof qe=="number"&&ke){var we=ue+ye,xe=ke.length,Ne=xe-1;if(!xe){wt(0,null);return}for(var Ke=0;Ke<xe;Ke+=1){var Qe=Ut(Ke);if(j&&(Qe=Qe||0),Qe===void 0){wt(Ke-1,void 0,!0);break}if(we+=Qe,Ne===0&&we<=B||Ke===Ne-1&&we+Ut(Ne)<=B){wt(Ne,null);break}else if(we+qe>B){wt(Ke-1,we-Qe-ye+ee);break}}w&&Ut(0)+ye>B&&Se(null)}},[B,H,ee,ue,ye,Te,ke]);var Mt=lt&&!!Ye.length,Ct={};be!==null&&Ve&&(Ct={position:"absolute",left:be,top:0});var qt={prefixCls:st,responsive:Ve,component:I,invalidate:dt},Bt=u?function(we,xe){var Ne=Te(we,xe);return c.createElement(Au.Provider,{key:Ne,value:X(X({},qt),{},{order:xe,item:we,itemKey:Ne,registerSize:Vt,display:xe<=Be})},u(we,xe))}:function(we,xe){var Ne=Te(we,xe);return c.createElement(Za,Ee({},qt,{order:xe,key:Ne,item:we,renderItem:De,itemKey:Ne,registerSize:Vt,display:xe<=Be}))},Ze={order:Mt?Be:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:Dt,display:Mt},yt=C||m8,at=b?c.createElement(Au.Provider,{value:X(X({},qt),Ze)},b(Ye)):c.createElement(Za,Ee({},qt,Ze),typeof yt=="function"?yt(Ye):yt),Oe=c.createElement(O,Ee({className:re(!dt&&r,y),style:h,ref:t},T),$&&c.createElement(Za,Ee({},qt,{responsive:it,responsiveDisabled:!Ve,order:-1,className:"".concat(st,"-prefix"),registerSize:an,display:!0}),$),ke.map(Bt),Xe?at:null,w&&c.createElement(Za,Ee({},qt,{responsive:it,responsiveDisabled:!Ve,order:Be,className:"".concat(st,"-suffix"),registerSize:yn,display:!0,style:Ct}),w));return it?c.createElement(io,{onResize:pt,disabled:!Ve},Oe):Oe}var Mo=c.forwardRef(p8);Mo.displayName="Overflow";Mo.Item=Lx;Mo.RESPONSIVE=Bx;Mo.INVALIDATE=Ax;function g8(e,t,n){var r=X(X({},e),t);return Object.keys(t).forEach(function(o){var l=t[o];typeof l=="function"&&(r[o]=function(){for(var s,u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return l.apply(void 0,f),(s=e[o])===null||s===void 0?void 0:s.call.apply(s,[e].concat(f))})}),r}var v8=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],h8=function(t,n){var r=t.prefixCls,o=t.id,l=t.inputElement,s=t.autoFocus,u=t.autoComplete,f=t.editable,m=t.activeDescendantId,p=t.value,g=t.open,h=t.attrs,y=jt(t,v8),S=l||c.createElement("input",null),C=S,b=C.ref,$=C.props;return"maxLength"in S.props,S=c.cloneElement(S,X(X(X({type:"search"},g8(y,$)),{},{id:o,ref:Lo(n,b),autoComplete:u||"off",autoFocus:s,className:re("".concat(r,"-selection-search-input"),$==null?void 0:$.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":g?m:void 0},h),{},{value:f?p:"",readOnly:!f,unselectable:f?null:"on",style:X(X({},$.style),{},{opacity:f?null:0})})),S},Fx=c.forwardRef(h8);function Dx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var y8=typeof window<"u"&&window.document&&window.document.documentElement,b8=y8;function C8(e){return e!=null}function S8(e){return!e&&e!==0}function Nb(e){return["string","number"].includes(mt(e))}function Hx(e){var t=void 0;return e&&(Nb(e.title)?t=e.title.toString():Nb(e.label)&&(t=e.label.toString())),t}function x8(e,t){b8?c.useLayoutEffect(e,t):c.useEffect(e,t)}function w8(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var _b=function(t){t.preventDefault(),t.stopPropagation()},$8=function(t){var n=t.id,r=t.prefixCls,o=t.values,l=t.open,s=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,m=t.placeholder,p=t.disabled,g=t.mode,h=t.showSearch,y=t.autoFocus,S=t.autoComplete,C=t.activeDescendantId,b=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,R=t.maxTagTextLength,O=t.maxTagPlaceholder,I=O===void 0?function(ve){return"+ ".concat(ve.length," ...")}:O,P=t.tagRender,T=t.onToggleOpen,j=t.onRemove,M=t.onInputChange,k=t.onInputPaste,L=t.onInputKeyDown,_=t.onInputMouseDown,A=t.onInputCompositionStart,B=t.onInputCompositionEnd,q=t.onInputBlur,V=c.useRef(null),H=c.useState(0),F=ae(H,2),Z=F[0],W=F[1],z=c.useState(!1),D=ae(z,2),Q=D[0],ne=D[1],ee="".concat(r,"-selection"),oe=l||g==="multiple"&&u===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&u===!1||h&&(l||Q);x8(function(){W(V.current.scrollWidth)},[oe]);var me=function(ce,le,be,Se,$e){return c.createElement("span",{title:Hx(ce),className:re("".concat(ee,"-item"),U({},"".concat(ee,"-item-disabled"),be))},c.createElement("span",{className:"".concat(ee,"-item-content")},le),Se&&c.createElement(Sd,{className:"".concat(ee,"-item-remove"),onMouseDown:_b,onClick:$e,customizeIcon:$},"×"))},ue=function(ce,le,be,Se,$e,je){var Le=function(Be){_b(Be),T(!l)};return c.createElement("span",{onMouseDown:Le},P({label:le,value:ce,disabled:be,closable:Se,onClose:$e,isMaxTag:!!je}))},Ce=function(ce){var le=ce.disabled,be=ce.label,Se=ce.value,$e=!p&&!le,je=be;if(typeof R=="number"&&(typeof be=="string"||typeof be=="number")){var Le=String(je);Le.length>R&&(je="".concat(Le.slice(0,R),"..."))}var Pe=function(Re){Re&&Re.stopPropagation(),j(ce)};return typeof P=="function"?ue(Se,je,le,$e,Pe):me(ce,je,le,$e,Pe)},pe=function(ce){if(!o.length)return null;var le=typeof I=="function"?I(ce):I;return typeof P=="function"?ue(void 0,le,!1,!1,void 0,!0):me({title:le},le,!1)},se=c.createElement("div",{className:"".concat(ee,"-search"),style:{width:Z},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},c.createElement(Fx,{ref:f,open:l,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:y,autoComplete:S,editable:fe,activeDescendantId:C,value:oe,onKeyDown:L,onMouseDown:_,onChange:M,onPaste:k,onCompositionStart:A,onCompositionEnd:B,onBlur:q,tabIndex:b,attrs:No(t,!0)}),c.createElement("span",{ref:V,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},oe," ")),ye=c.createElement(Mo,{prefixCls:"".concat(ee,"-overflow"),data:o,renderItem:Ce,renderRest:pe,suffix:se,itemKey:w8,maxCount:w});return c.createElement("span",{className:"".concat(ee,"-wrap")},ye,!o.length&&!oe&&c.createElement("span",{className:"".concat(ee,"-placeholder")},m))},E8=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,l=t.inputRef,s=t.disabled,u=t.autoFocus,f=t.autoComplete,m=t.activeDescendantId,p=t.mode,g=t.open,h=t.values,y=t.placeholder,S=t.tabIndex,C=t.showSearch,b=t.searchValue,$=t.activeValue,w=t.maxLength,R=t.onInputKeyDown,O=t.onInputMouseDown,I=t.onInputChange,P=t.onInputPaste,T=t.onInputCompositionStart,j=t.onInputCompositionEnd,M=t.onInputBlur,k=t.title,L=c.useState(!1),_=ae(L,2),A=_[0],B=_[1],q=p==="combobox",V=q||C,H=h[0],F=b||"";q&&$&&!A&&(F=$),c.useEffect(function(){q&&B(!1)},[q,$]);var Z=p!=="combobox"&&!g&&!C?!1:!!F,W=k===void 0?Hx(H):k,z=c.useMemo(function(){return H?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},y)},[H,Z,y,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(Fx,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:u,autoComplete:f,editable:V,activeDescendantId:m,value:F,onKeyDown:R,onMouseDown:O,onChange:function(Q){B(!0),I(Q)},onPaste:P,onCompositionStart:T,onCompositionEnd:j,onBlur:M,tabIndex:S,attrs:No(t,!0),maxLength:q?w:void 0})),!q&&H?c.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:Z?{visibility:"hidden"}:void 0},H.label):null,z)},R8=function(t,n){var r=c.useRef(null),o=c.useRef(!1),l=t.prefixCls,s=t.open,u=t.mode,f=t.showSearch,m=t.tokenWithEnter,p=t.disabled,g=t.prefix,h=t.autoClearSearchValue,y=t.onSearch,S=t.onSearchSubmit,C=t.onToggleOpen,b=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var R=zx(0),O=ae(R,2),I=O[0],P=O[1],T=function(W){var z=W.which,D=r.current instanceof HTMLTextAreaElement;!D&&s&&(z===Ue.UP||z===Ue.DOWN)&&W.preventDefault(),b&&b(W),z===Ue.ENTER&&u==="tags"&&!o.current&&!s&&(S==null||S(W.target.value)),!(D&&!s&&~[Ue.UP,Ue.DOWN,Ue.LEFT,Ue.RIGHT].indexOf(z))&&r8(z)&&C(!0)},j=function(){P(!0)},M=c.useRef(null),k=function(W){y(W,!0,o.current)!==!1&&C(!0)},L=function(){o.current=!0},_=function(W){o.current=!1,u!=="combobox"&&k(W.target.value)},A=function(W){var z=W.target.value;if(m&&M.current&&/[\r\n]/.test(M.current)){var D=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(D,M.current)}M.current=null,k(z)},B=function(W){var z=W.clipboardData,D=z==null?void 0:z.getData("text");M.current=D||""},q=function(W){var z=W.target;if(z!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus()}):r.current.focus()}},V=function(W){var z=I();W.target!==r.current&&!z&&!(u==="combobox"&&p)&&W.preventDefault(),(u!=="combobox"&&(!f||!z)||!s)&&(s&&h!==!1&&y("",!0,!1),C())},H={inputRef:r,onInputKeyDown:T,onInputMouseDown:j,onInputChange:A,onInputPaste:B,onInputCompositionStart:L,onInputCompositionEnd:_,onInputBlur:$},F=u==="multiple"||u==="tags"?c.createElement($8,Ee({},t,H)):c.createElement(E8,Ee({},t,H));return c.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:q,onMouseDown:V},g&&c.createElement("div",{className:"".concat(l,"-prefix")},g),F)},O8=c.forwardRef(R8);function I8(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,l=r||{},s=l.className,u=l.content,f=o.x,m=f===void 0?0:f,p=o.y,g=p===void 0?0:p,h=c.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],b=S[0],$=S[1],w=C[0],R=C[1];b===w||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,$===R||!["l","r"].includes($)?y.left=m:$==="l"?y.left=0:y.right=0}return c.createElement("div",{ref:h,className:re("".concat(t,"-arrow"),s),style:y},u)}function P8(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?c.createElement($o,Ee({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return c.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),u)})}):null}var T8=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),M8=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,l=e.style,s=e.target,u=e.onVisibleChanged,f=e.open,m=e.keepDom,p=e.fresh,g=e.onClick,h=e.mask,y=e.arrow,S=e.arrowPos,C=e.align,b=e.motion,$=e.maskMotion,w=e.forceRender,R=e.getPopupContainer,O=e.autoDestroy,I=e.portal,P=e.zIndex,T=e.onMouseEnter,j=e.onMouseLeave,M=e.onPointerEnter,k=e.onPointerDownCapture,L=e.ready,_=e.offsetX,A=e.offsetY,B=e.offsetR,q=e.offsetB,V=e.onAlign,H=e.onPrepare,F=e.stretch,Z=e.targetWidth,W=e.targetHeight,z=typeof n=="function"?n():n,D=f||m,Q=(R==null?void 0:R.length)>0,ne=c.useState(!R||!Q),ee=ae(ne,2),oe=ee[0],fe=ee[1];if(on(function(){!oe&&Q&&s&&fe(!0)},[oe,Q,s]),!oe)return null;var me="auto",ue={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(L||!f){var Ce,pe=C.points,se=C.dynamicInset||((Ce=C._experimental)===null||Ce===void 0?void 0:Ce.dynamicInset),ye=se&&pe[0][1]==="r",ve=se&&pe[0][0]==="b";ye?(ue.right=B,ue.left=me):(ue.left=_,ue.right=me),ve?(ue.bottom=q,ue.top=me):(ue.top=A,ue.bottom=me)}var ce={};return F&&(F.includes("height")&&W?ce.height=W:F.includes("minHeight")&&W&&(ce.minHeight=W),F.includes("width")&&Z?ce.width=Z:F.includes("minWidth")&&Z&&(ce.minWidth=Z)),f||(ce.pointerEvents="none"),c.createElement(I,{open:w||D,getContainer:R&&function(){return R(s)},autoDestroy:O},c.createElement(P8,{prefixCls:o,open:f,zIndex:P,mask:h,motion:$}),c.createElement(io,{onResize:V,disabled:!f},function(le){return c.createElement($o,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(Se){var $e;b==null||($e=b.onVisibleChanged)===null||$e===void 0||$e.call(b,Se),u(Se)}}),function(be,Se){var $e=be.className,je=be.style,Le=re(o,$e,r);return c.createElement("div",{ref:Lo(le,t,Se),className:Le,style:X(X(X(X({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},ue),ce),je),{},{boxSizing:"border-box",zIndex:P},l),onMouseEnter:T,onMouseLeave:j,onPointerEnter:M,onClick:g,onPointerDownCapture:k},y&&c.createElement(I8,{prefixCls:o,arrow:y,arrowPos:S,align:C}),c.createElement(T8,{cache:!f&&!p},z))})}))}),j8=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ni(n),l=c.useCallback(function(u){Eg(t,r?r(u):u)},[r]),s=Jo(l,ia(n));return o?c.cloneElement(n,{ref:s}):n}),zb=c.createContext(null);function Lb(e){return e?Array.isArray(e)?e:[e]:[]}function k8(e,t,n,r){return c.useMemo(function(){var o=Lb(n??t),l=Lb(r??t),s=new Set(o),u=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[e,t,n,r])}function N8(){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 _8(e,t,n,r){for(var o=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var u,f=l[s];if(N8((u=e[f])===null||u===void 0?void 0:u.points,o,r))return"".concat(t,"-placement-").concat(f)}return""}function Bb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Hs(e){return e.ownerDocument.defaultView}function lg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Hs(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,u=o.overflow;[l,s,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function $s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Zl(e){return $s(parseFloat(e),0)}function Ab(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Hs(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,u=o.borderTopWidth,f=o.borderBottomWidth,m=o.borderLeftWidth,p=o.borderRightWidth,g=r.getBoundingClientRect(),h=r.offsetHeight,y=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,b=Zl(u),$=Zl(f),w=Zl(m),R=Zl(p),O=$s(Math.round(g.width/S*1e3)/1e3),I=$s(Math.round(g.height/h*1e3)/1e3),P=(S-C-w-R)*O,T=(h-y-b-$)*I,j=b*I,M=$*I,k=w*O,L=R*O,_=0,A=0;if(l==="clip"){var B=Zl(s);_=B*O,A=B*I}var q=g.x+k-_,V=g.y+j-A,H=q+g.width+2*_-k-L-P,F=V+g.height+2*A-j-M-T;n.left=Math.max(n.left,q),n.top=Math.max(n.top,V),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,F)}}),n}function Fb(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 Db(e,t){var n=t||[],r=ae(n,2),o=r[0],l=r[1];return[Fb(e.width,o),Fb(e.height,l)]}function Hb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Aa(e,t){var n=t[0],r=t[1],o,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:l}}function xi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function z8(e,t,n,r,o,l,s){var u=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=ae(u,2),m=f[0],p=f[1],g=c.useRef(0),h=c.useMemo(function(){return t?lg(t):[]},[t]),y=c.useRef({}),S=function(){y.current={}};e||S();var C=Nn(function(){if(t&&n&&e){let Mn=function(xr,Mr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt,Br=D.x+xr,ua=D.y+Mr,da=Br+ve,rt=ua+ye,Tt=Math.max(Br,Gr.left),xn=Math.max(ua,Gr.top),En=Math.min(da,Gr.right),wn=Math.min(rt,Gr.bottom);return Math.max(0,(En-Tt)*(wn-xn))},mr=function(){dn=D.y+yt,bn=dn+ye,On=D.x+Ze,Xt=On+ve};var ca=Mn,Fo=mr,w,R,O,I,P=t,T=P.ownerDocument,j=Hs(P),M=j.getComputedStyle(P),k=M.position,L=P.style.left,_=P.style.top,A=P.style.right,B=P.style.bottom,q=P.style.overflow,V=X(X({},o[r]),l),H=T.createElement("div");(w=P.parentElement)===null||w===void 0||w.appendChild(H),H.style.left="".concat(P.offsetLeft,"px"),H.style.top="".concat(P.offsetTop,"px"),H.style.position=k,H.style.height="".concat(P.offsetHeight,"px"),H.style.width="".concat(P.offsetWidth,"px"),P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var Z,W,z=n.getBoundingClientRect();z.x=(Z=z.x)!==null&&Z!==void 0?Z:z.left,z.y=(W=z.y)!==null&&W!==void 0?W:z.top,F={x:z.x,y:z.y,width:z.width,height:z.height}}var D=P.getBoundingClientRect(),Q=j.getComputedStyle(P),ne=Q.height,ee=Q.width;D.x=(R=D.x)!==null&&R!==void 0?R:D.left,D.y=(O=D.y)!==null&&O!==void 0?O:D.top;var oe=T.documentElement,fe=oe.clientWidth,me=oe.clientHeight,ue=oe.scrollWidth,Ce=oe.scrollHeight,pe=oe.scrollTop,se=oe.scrollLeft,ye=D.height,ve=D.width,ce=F.height,le=F.width,be={left:0,top:0,right:fe,bottom:me},Se={left:-se,top:-pe,right:ue-se,bottom:Ce-pe},$e=V.htmlRegion,je="visible",Le="visibleFirst";$e!=="scroll"&&$e!==Le&&($e=je);var Pe=$e===Le,Be=Ab(Se,h),Re=Ab(be,h),tt=$e===je?Re:Be,lt=Pe?Re:tt;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";var bt=P.getBoundingClientRect();P.style.left=L,P.style.top=_,P.style.right=A,P.style.bottom=B,P.style.overflow=q,(I=P.parentElement)===null||I===void 0||I.removeChild(H);var st=$s(Math.round(ve/parseFloat(ee)*1e3)/1e3),qe=$s(Math.round(ye/parseFloat(ne)*1e3)/1e3);if(st===0||qe===0||ms(n)&&!Hg(n))return;var it=V.offset,Ve=V.targetOffset,dt=Db(D,it),Xe=ae(dt,2),ke=Xe[0],Ye=Xe[1],Te=Db(F,Ve),De=ae(Te,2),wt=De[0],pt=De[1];F.x-=wt,F.y-=pt;var Vt=V.points||[],Dt=ae(Vt,2),an=Dt[0],yn=Dt[1],Ut=Hb(yn),Mt=Hb(an),Ct=Aa(F,Ut),qt=Aa(D,Mt),Bt=X({},V),Ze=Ct.x-qt.x+ke,yt=Ct.y-qt.y+Ye,at=Mn(Ze,yt),Oe=Mn(Ze,yt,Re),we=Aa(F,["t","l"]),xe=Aa(D,["t","l"]),Ne=Aa(F,["b","r"]),Ke=Aa(D,["b","r"]),Qe=V.overflow||{},kt=Qe.adjustX,zt=Qe.adjustY,Ot=Qe.shiftX,Pt=Qe.shiftY,vn=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},dn,bn,On,Xt;mr();var en=vn(zt),_e=Mt[0]===Ut[0];if(en&&Mt[0]==="t"&&(bn>lt.bottom||y.current.bt)){var We=yt;_e?We-=ye-ce:We=we.y-Ke.y-Ye;var xt=Mn(Ze,We),ct=Mn(Ze,We,Re);xt>at||xt===at&&(!Pe||ct>=Oe)?(y.current.bt=!0,yt=We,Ye=-Ye,Bt.points=[xi(Mt,0),xi(Ut,0)]):y.current.bt=!1}if(en&&Mt[0]==="b"&&(dn<lt.top||y.current.tb)){var et=yt;_e?et+=ye-ce:et=Ne.y-xe.y-Ye;var Ge=Mn(Ze,et),St=Mn(Ze,et,Re);Ge>at||Ge===at&&(!Pe||St>=Oe)?(y.current.tb=!0,yt=et,Ye=-Ye,Bt.points=[xi(Mt,0),xi(Ut,0)]):y.current.tb=!1}var Lt=vn(kt),He=Mt[1]===Ut[1];if(Lt&&Mt[1]==="l"&&(Xt>lt.right||y.current.rl)){var ut=Ze;He?ut-=ve-le:ut=we.x-Ke.x-ke;var $t=Mn(ut,yt),nn=Mn(ut,yt,Re);$t>at||$t===at&&(!Pe||nn>=Oe)?(y.current.rl=!0,Ze=ut,ke=-ke,Bt.points=[xi(Mt,1),xi(Ut,1)]):y.current.rl=!1}if(Lt&&Mt[1]==="r"&&(On<lt.left||y.current.lr)){var zn=Ze;He?zn+=ve-le:zn=Ne.x-xe.x-ke;var $n=Mn(zn,yt),ur=Mn(zn,yt,Re);$n>at||$n===at&&(!Pe||ur>=Oe)?(y.current.lr=!0,Ze=zn,ke=-ke,Bt.points=[xi(Mt,1),xi(Ut,1)]):y.current.lr=!1}mr();var Gn=Ot===!0?0:Ot;typeof Gn=="number"&&(On<Re.left&&(Ze-=On-Re.left-ke,F.x+le<Re.left+Gn&&(Ze+=F.x-Re.left+le-Gn)),Xt>Re.right&&(Ze-=Xt-Re.right-ke,F.x>Re.right-Gn&&(Ze+=F.x-Re.right+Gn)));var dr=Pt===!0?0:Pt;typeof dr=="number"&&(dn<Re.top&&(yt-=dn-Re.top-Ye,F.y+ce<Re.top+dr&&(yt+=F.y-Re.top+ce-dr)),bn>Re.bottom&&(yt-=bn-Re.bottom-Ye,F.y>Re.bottom-dr&&(yt+=F.y-Re.bottom+dr)));var Kn=D.x+Ze,ir=Kn+ve,fr=D.y+yt,Zt=fr+ye,nt=F.x,Je=nt+le,Gt=F.y,Jt=Gt+ce,ln=Math.max(Kn,nt),un=Math.min(ir,Je),ar=(ln+un)/2,Ln=ar-Kn,_t=Math.max(fr,Gt),Xn=Math.min(Zt,Jt),Jn=(_t+Xn)/2,Tr=Jn-fr;s==null||s(t,Bt);var er=bt.right-D.x-(Ze+D.width),ii=bt.bottom-D.y-(yt+D.height);st===1&&(Ze=Math.floor(Ze),er=Math.floor(er)),qe===1&&(yt=Math.floor(yt),ii=Math.floor(ii));var sa={ready:!0,offsetX:Ze/st,offsetY:yt/qe,offsetR:er/st,offsetB:ii/qe,arrowX:Ln/st,arrowY:Tr/qe,scaleX:st,scaleY:qe,align:Bt};p(sa)}}),b=function(){g.current+=1;var R=g.current;Promise.resolve().then(function(){g.current===R&&C()})},$=function(){p(function(R){return X(X({},R),{},{ready:!1})})};return on($,[r]),on(function(){e||$()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,b]}function L8(e,t,n,r,o){on(function(){if(e&&t&&n){let h=function(){r(),o()};var g=h,l=t,s=n,u=lg(l),f=lg(s),m=Hs(s),p=new Set([m].concat(Ae(u),Ae(f)));return p.forEach(function(y){y.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(y){y.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function B8(e,t,n,r,o,l,s,u){var f=c.useRef(e);f.current=e;var m=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||l)){var g=function(){m.current=!1},h=function(b){var $;f.current&&!s((($=b.composedPath)===null||$===void 0||($=$.call(b))===null||$===void 0?void 0:$[0])||b.target)&&!m.current&&u(!1)},y=Hs(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);var S=ju(n);return S&&(S.addEventListener("mousedown",h,!0),S.addEventListener("contextmenu",h,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),S&&(S.removeEventListener("mousedown",h,!0),S.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,l]);function p(){m.current=!0}return p}var A8=["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 F8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xg,t=c.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,u=n.action,f=u===void 0?"hover":u,m=n.showAction,p=n.hideAction,g=n.popupVisible,h=n.defaultPopupVisible,y=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,b=n.mouseLeaveDelay,$=b===void 0?.1:b,w=n.focusDelay,R=n.blurDelay,O=n.mask,I=n.maskClosable,P=I===void 0?!0:I,T=n.getPopupContainer,j=n.forceRender,M=n.autoDestroy,k=n.destroyPopupOnHide,L=n.popup,_=n.popupClassName,A=n.popupStyle,B=n.popupPlacement,q=n.builtinPlacements,V=q===void 0?{}:q,H=n.popupAlign,F=n.zIndex,Z=n.stretch,W=n.getPopupClassNameFromAlign,z=n.fresh,D=n.alignPoint,Q=n.onPopupClick,ne=n.onPopupAlign,ee=n.arrow,oe=n.popupMotion,fe=n.maskMotion,me=n.popupTransitionName,ue=n.popupAnimation,Ce=n.maskTransitionName,pe=n.maskAnimation,se=n.className,ye=n.getTriggerDOMNode,ve=jt(n,A8),ce=M||k||!1,le=c.useState(!1),be=ae(le,2),Se=be[0],$e=be[1];on(function(){$e(Zg())},[]);var je=c.useRef({}),Le=c.useContext(zb),Pe=c.useMemo(function(){return{registerSubPopup:function(Tt,xn){je.current[Tt]=xn,Le==null||Le.registerSubPopup(Tt,xn)}}},[Le]),Be=Qg(),Re=c.useState(null),tt=ae(Re,2),lt=tt[0],bt=tt[1],st=c.useRef(null),qe=Nn(function(rt){st.current=rt,ms(rt)&&lt!==rt&&bt(rt),Le==null||Le.registerSubPopup(Be,rt)}),it=c.useState(null),Ve=ae(it,2),dt=Ve[0],Xe=Ve[1],ke=c.useRef(null),Ye=Nn(function(rt){ms(rt)&&dt!==rt&&(Xe(rt),ke.current=rt)}),Te=c.Children.only(s),De=(Te==null?void 0:Te.props)||{},wt={},pt=Nn(function(rt){var Tt,xn,En=dt;return(En==null?void 0:En.contains(rt))||((Tt=ju(En))===null||Tt===void 0?void 0:Tt.host)===rt||rt===En||(lt==null?void 0:lt.contains(rt))||((xn=ju(lt))===null||xn===void 0?void 0:xn.host)===rt||rt===lt||Object.values(je.current).some(function(wn){return(wn==null?void 0:wn.contains(rt))||rt===wn})}),Vt=Bb(l,oe,ue,me),Dt=Bb(l,fe,pe,Ce),an=c.useState(h||!1),yn=ae(an,2),Ut=yn[0],Mt=yn[1],Ct=g??Ut,qt=Nn(function(rt){g===void 0&&Mt(rt)});on(function(){Mt(g||!1)},[g]);var Bt=c.useRef(Ct);Bt.current=Ct;var Ze=c.useRef([]);Ze.current=[];var yt=Nn(function(rt){var Tt;qt(rt),((Tt=Ze.current[Ze.current.length-1])!==null&&Tt!==void 0?Tt:Ct)!==rt&&(Ze.current.push(rt),y==null||y(rt))}),at=c.useRef(),Oe=function(){clearTimeout(at.current)},we=function(Tt){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Oe(),xn===0?yt(Tt):at.current=setTimeout(function(){yt(Tt)},xn*1e3)};c.useEffect(function(){return Oe},[]);var xe=c.useState(!1),Ne=ae(xe,2),Ke=Ne[0],Qe=Ne[1];on(function(rt){(!rt||Ct)&&Qe(!0)},[Ct]);var kt=c.useState(null),zt=ae(kt,2),Ot=zt[0],Pt=zt[1],vn=c.useState(null),dn=ae(vn,2),bn=dn[0],On=dn[1],Xt=function(Tt){On([Tt.clientX,Tt.clientY])},en=z8(Ct,lt,D&&bn!==null?bn:dt,B,V,H,ne),_e=ae(en,11),We=_e[0],xt=_e[1],ct=_e[2],et=_e[3],Ge=_e[4],St=_e[5],Lt=_e[6],He=_e[7],ut=_e[8],$t=_e[9],nn=_e[10],zn=k8(Se,f,m,p),$n=ae(zn,2),ur=$n[0],Gn=$n[1],dr=ur.has("click"),Kn=Gn.has("click")||Gn.has("contextMenu"),ir=Nn(function(){Ke||nn()}),fr=function(){Bt.current&&D&&Kn&&we(!1)};L8(Ct,dt,lt,ir,fr),on(function(){ir()},[bn,B]),on(function(){Ct&&!(V!=null&&V[B])&&ir()},[JSON.stringify(H)]);var Zt=c.useMemo(function(){var rt=_8(V,l,$t,D);return re(rt,W==null?void 0:W($t))},[$t,W,V,l,D]);c.useImperativeHandle(r,function(){return{nativeElement:ke.current,popupElement:st.current,forceAlign:ir}});var nt=c.useState(0),Je=ae(nt,2),Gt=Je[0],Jt=Je[1],ln=c.useState(0),un=ae(ln,2),ar=un[0],Ln=un[1],_t=function(){if(Z&&dt){var Tt=dt.getBoundingClientRect();Jt(Tt.width),Ln(Tt.height)}},Xn=function(){_t(),ir()},Jn=function(Tt){Qe(!1),nn(),S==null||S(Tt)},Tr=function(){return new Promise(function(Tt){_t(),Pt(function(){return Tt})})};on(function(){Ot&&(nn(),Ot(),Pt(null))},[Ot]);function er(rt,Tt,xn,En){wt[rt]=function(wn){var fa;En==null||En(wn),we(Tt,xn);for(var Do=arguments.length,ai=new Array(Do>1?Do-1:0),so=1;so<Do;so++)ai[so-1]=arguments[so];(fa=De[rt])===null||fa===void 0||fa.call.apply(fa,[De,wn].concat(ai))}}(dr||Kn)&&(wt.onClick=function(rt){var Tt;Bt.current&&Kn?we(!1):!Bt.current&&dr&&(Xt(rt),we(!0));for(var xn=arguments.length,En=new Array(xn>1?xn-1:0),wn=1;wn<xn;wn++)En[wn-1]=arguments[wn];(Tt=De.onClick)===null||Tt===void 0||Tt.call.apply(Tt,[De,rt].concat(En))});var ii=B8(Ct,Kn,dt,lt,O,P,pt,we),sa=ur.has("hover"),ca=Gn.has("hover"),Fo,Mn;sa&&(er("onMouseEnter",!0,C,function(rt){Xt(rt)}),er("onPointerEnter",!0,C,function(rt){Xt(rt)}),Fo=function(Tt){(Ct||Ke)&&lt!==null&&lt!==void 0&&lt.contains(Tt.target)&&we(!0,C)},D&&(wt.onMouseMove=function(rt){var Tt;(Tt=De.onMouseMove)===null||Tt===void 0||Tt.call(De,rt)})),ca&&(er("onMouseLeave",!1,$),er("onPointerLeave",!1,$),Mn=function(){we(!1,$)}),ur.has("focus")&&er("onFocus",!0,w),Gn.has("focus")&&er("onBlur",!1,R),ur.has("contextMenu")&&(wt.onContextMenu=function(rt){var Tt;Bt.current&&Gn.has("contextMenu")?we(!1):(Xt(rt),we(!0)),rt.preventDefault();for(var xn=arguments.length,En=new Array(xn>1?xn-1:0),wn=1;wn<xn;wn++)En[wn-1]=arguments[wn];(Tt=De.onContextMenu)===null||Tt===void 0||Tt.call.apply(Tt,[De,rt].concat(En))}),se&&(wt.className=re(De.className,se));var mr=c.useRef(!1);mr.current||(mr.current=j||Ct||Ke);var xr=X(X({},De),wt),Mr={},Gr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Gr.forEach(function(rt){ve[rt]&&(Mr[rt]=function(){for(var Tt,xn=arguments.length,En=new Array(xn),wn=0;wn<xn;wn++)En[wn]=arguments[wn];(Tt=xr[rt])===null||Tt===void 0||Tt.call.apply(Tt,[xr].concat(En)),ve[rt].apply(ve,En)})});var Br=c.cloneElement(Te,X(X({},xr),Mr)),ua={x:St,y:Lt},da=ee?X({},ee!==!0?ee:{}):null;return c.createElement(c.Fragment,null,c.createElement(io,{disabled:!Ct,ref:Ye,onResize:Xn},c.createElement(j8,{getTriggerDOMNode:ye},Br)),mr.current&&c.createElement(zb.Provider,{value:Pe},c.createElement(M8,{portal:e,ref:qe,prefixCls:l,popup:L,className:re(_,Zt),style:A,target:dt,onMouseEnter:Fo,onMouseLeave:Mn,onPointerEnter:Fo,zIndex:F,open:Ct,keepDom:Ke,fresh:z,onClick:Q,onPointerDownCapture:ii,mask:O,motion:Vt,maskMotion:Dt,onVisibleChanged:Jn,onPrepare:Tr,forceRender:j,autoDestroy:ce,getPopupContainer:T,align:$t,arrow:da,arrowPos:ua,ready:We,offsetX:xt,offsetY:ct,offsetR:et,offsetB:Ge,onAlign:ir,stretch:Z,targetWidth:Gt/He,targetHeight:ar/ut})))});return t}const xd=F8(Xg);var D8=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H8=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"}}},V8=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,l=t.children,s=t.popupElement,u=t.animation,f=t.transitionName,m=t.dropdownStyle,p=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,y=t.placement,S=t.builtinPlacements,C=t.dropdownMatchSelectWidth,b=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,R=t.empty,O=t.getTriggerDOMNode,I=t.onPopupVisibleChange,P=t.onPopupMouseEnter,T=jt(t,D8),j="".concat(r,"-dropdown"),M=s;b&&(M=b(s));var k=c.useMemo(function(){return S||H8(C)},[S,C]),L=u?"".concat(j,"-").concat(u):f,_=typeof C=="number",A=c.useMemo(function(){return _?null:C===!1?"minWidth":"width"},[C,_]),B=m;_&&(B=X(X({},B),{},{width:C}));var q=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var H;return(H=q.current)===null||H===void 0?void 0:H.popupElement}}}),c.createElement(xd,Ee({},T,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:j,popupTransitionName:L,popup:c.createElement("div",{onMouseEnter:P},M),ref:q,stretch:A,popupAlign:$,popupVisible:o,getPopupContainer:w,popupClassName:re(p,U({},"".concat(j,"-empty"),R)),popupStyle:B,getTriggerDOMNode:O,onPopupVisibleChange:I}),l)},W8=c.forwardRef(V8);function Vb(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 sg(e){return typeof e<"u"&&!Number.isNaN(e)}function Vx(e,t){var n=e||{},r=n.label,o=n.value,l=n.options,s=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:o||"value",options:l||"options",groupLabel:s||u}}function U8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=Vx(n,!1),s=l.label,u=l.value,f=l.options,m=l.groupLabel;function p(g,h){Array.isArray(g)&&g.forEach(function(y){if(h||!(f in y)){var S=y[u];o.push({key:Vb(y,o.length),groupOption:h,data:y,label:y[s],value:S})}else{var C=y[m];C===void 0&&r&&(C=y.label),o.push({key:Vb(y,o.length),group:!0,data:y,label:C}),p(y[f],!0)}})}return p(e,!1),o}function cg(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var q8=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function u(f,m){var p=qC(m),g=p[0],h=p.slice(1);if(!g)return[f];var y=f.split(g);return o=o||y.length>1,y.reduce(function(S,C){return[].concat(Ae(S),Ae(u(C,h)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},Jg=c.createContext(null);function G8(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var l=o.label,s=o.value;return["number","string"].includes(mt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var K8=["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"],X8=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ug=function(t){return t==="tags"||t==="multiple"},Q8=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,l=e.className,s=e.showSearch,u=e.tagRender,f=e.direction,m=e.omitDomProps,p=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,y=e.notFoundContent,S=y===void 0?"Not Found":y,C=e.onClear,b=e.mode,$=e.disabled,w=e.loading,R=e.getInputElement,O=e.getRawInputElement,I=e.open,P=e.defaultOpen,T=e.onDropdownVisibleChange,j=e.activeValue,M=e.onActiveValueChange,k=e.activeDescendantId,L=e.searchValue,_=e.autoClearSearchValue,A=e.onSearch,B=e.onSearchSplit,q=e.tokenSeparators,V=e.allowClear,H=e.prefix,F=e.suffixIcon,Z=e.clearIcon,W=e.OptionList,z=e.animation,D=e.transitionName,Q=e.dropdownStyle,ne=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,oe=e.dropdownRender,fe=e.dropdownAlign,me=e.placement,ue=e.builtinPlacements,Ce=e.getPopupContainer,pe=e.showAction,se=pe===void 0?[]:pe,ye=e.onFocus,ve=e.onBlur,ce=e.onKeyUp,le=e.onKeyDown,be=e.onMouseDown,Se=jt(e,K8),$e=ug(b),je=(s!==void 0?s:$e)||b==="combobox",Le=X({},Se);X8.forEach(function(nt){delete Le[nt]}),m==null||m.forEach(function(nt){delete Le[nt]});var Pe=c.useState(!1),Be=ae(Pe,2),Re=Be[0],tt=Be[1];c.useEffect(function(){tt(Zg())},[]);var lt=c.useRef(null),bt=c.useRef(null),st=c.useRef(null),qe=c.useRef(null),it=c.useRef(null),Ve=c.useRef(!1),dt=t8(),Xe=ae(dt,3),ke=Xe[0],Ye=Xe[1],Te=Xe[2];c.useImperativeHandle(t,function(){var nt,Je;return{focus:(nt=qe.current)===null||nt===void 0?void 0:nt.focus,blur:(Je=qe.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(Jt){var ln;return(ln=it.current)===null||ln===void 0?void 0:ln.scrollTo(Jt)},nativeElement:lt.current||bt.current}});var De=c.useMemo(function(){var nt;if(b!=="combobox")return L;var Je=(nt=p[0])===null||nt===void 0?void 0:nt.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[L,b,p]),wt=b==="combobox"&&typeof R=="function"&&R()||null,pt=typeof O=="function"&&O(),Vt=Jo(bt,pt==null||(n=pt.props)===null||n===void 0?void 0:n.ref),Dt=c.useState(!1),an=ae(Dt,2),yn=an[0],Ut=an[1];on(function(){Ut(!0)},[]);var Mt=Vn(!1,{defaultValue:P,value:I}),Ct=ae(Mt,2),qt=Ct[0],Bt=Ct[1],Ze=yn?qt:!1,yt=!S&&h;($||yt&&Ze&&b==="combobox")&&(Ze=!1);var at=yt?!1:Ze,Oe=c.useCallback(function(nt){var Je=nt!==void 0?nt:!Ze;$||(Bt(Je),Ze!==Je&&(T==null||T(Je)))},[$,Ze,Bt,T]),we=c.useMemo(function(){return(q||[]).some(function(nt){return[`
222
+ `,`\r
223
+ `].includes(nt)})},[q]),xe=c.useContext(Jg)||{},Ne=xe.maxCount,Ke=xe.rawValues,Qe=function(Je,Gt,Jt){if(!($e&&sg(Ne)&&(Ke==null?void 0:Ke.size)>=Ne)){var ln=!0,un=Je;M==null||M(null);var ar=q8(Je,q,sg(Ne)?Ne-Ke.size:void 0),Ln=Jt?null:ar;return b!=="combobox"&&Ln&&(un="",B==null||B(Ln),Oe(!1),ln=!1),A&&De!==un&&A(un,{source:Gt?"typing":"effect"}),ln}},kt=function(Je){!Je||!Je.trim()||A(Je,{source:"submit"})};c.useEffect(function(){!Ze&&!$e&&b!=="combobox"&&Qe("",!1,!1)},[Ze]),c.useEffect(function(){qt&&$&&Bt(!1),$&&!Ve.current&&Ye(!1)},[$]);var zt=zx(),Ot=ae(zt,2),Pt=Ot[0],vn=Ot[1],dn=c.useRef(!1),bn=function(Je){var Gt=Pt(),Jt=Je.key,ln=Jt==="Enter";if(ln&&(b!=="combobox"&&Je.preventDefault(),Ze||Oe(!0)),vn(!!De),Jt==="Backspace"&&!Gt&&$e&&!De&&p.length){for(var un=Ae(p),ar=null,Ln=un.length-1;Ln>=0;Ln-=1){var _t=un[Ln];if(!_t.disabled){un.splice(Ln,1),ar=_t;break}}ar&&g(un,{type:"remove",values:[ar]})}for(var Xn=arguments.length,Jn=new Array(Xn>1?Xn-1:0),Tr=1;Tr<Xn;Tr++)Jn[Tr-1]=arguments[Tr];if(Ze&&(!ln||!dn.current)){var er;ln&&(dn.current=!0),(er=it.current)===null||er===void 0||er.onKeyDown.apply(er,[Je].concat(Jn))}le==null||le.apply(void 0,[Je].concat(Jn))},On=function(Je){for(var Gt=arguments.length,Jt=new Array(Gt>1?Gt-1:0),ln=1;ln<Gt;ln++)Jt[ln-1]=arguments[ln];if(Ze){var un;(un=it.current)===null||un===void 0||un.onKeyUp.apply(un,[Je].concat(Jt))}Je.key==="Enter"&&(dn.current=!1),ce==null||ce.apply(void 0,[Je].concat(Jt))},Xt=function(Je){var Gt=p.filter(function(Jt){return Jt!==Je});g(Gt,{type:"remove",values:[Je]})},en=function(){dn.current=!1},_e=c.useRef(!1),We=function(){Ye(!0),$||(ye&&!_e.current&&ye.apply(void 0,arguments),se.includes("focus")&&Oe(!0)),_e.current=!0},xt=function(){Ve.current=!0,Ye(!1,function(){_e.current=!1,Ve.current=!1,Oe(!1)}),!$&&(De&&(b==="tags"?A(De,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},ct=[];c.useEffect(function(){return function(){ct.forEach(function(nt){return clearTimeout(nt)}),ct.splice(0,ct.length)}},[]);var et=function(Je){var Gt,Jt=Je.target,ln=(Gt=st.current)===null||Gt===void 0?void 0:Gt.getPopupElement();if(ln&&ln.contains(Jt)){var un=setTimeout(function(){var Xn=ct.indexOf(un);if(Xn!==-1&&ct.splice(Xn,1),Te(),!Re&&!ln.contains(document.activeElement)){var Jn;(Jn=qe.current)===null||Jn===void 0||Jn.focus()}});ct.push(un)}for(var ar=arguments.length,Ln=new Array(ar>1?ar-1:0),_t=1;_t<ar;_t++)Ln[_t-1]=arguments[_t];be==null||be.apply(void 0,[Je].concat(Ln))},Ge=c.useState({}),St=ae(Ge,2),Lt=St[1];function He(){Lt({})}var ut;pt&&(ut=function(Je){Oe(Je)}),n8(function(){var nt;return[lt.current,(nt=st.current)===null||nt===void 0?void 0:nt.getPopupElement()]},at,Oe,!!pt);var $t=c.useMemo(function(){return X(X({},e),{},{notFoundContent:S,open:Ze,triggerOpen:at,id:r,showSearch:je,multiple:$e,toggleOpen:Oe})},[e,S,at,Ze,r,je,$e,Oe]),nn=!!F||w,zn;nn&&(zn=c.createElement(Sd,{className:re("".concat(o,"-arrow"),U({},"".concat(o,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:De,open:Ze,focused:ke,showSearch:je}}));var $n=function(){var Je;C==null||C(),(Je=qe.current)===null||Je===void 0||Je.focus(),g([],{type:"clear",values:p}),Qe("",!1,!1)},ur=JP(o,$n,p,V,Z,$,De,b),Gn=ur.allowClear,dr=ur.clearIcon,Kn=c.createElement(W,{ref:it}),ir=re(o,l,U(U(U(U(U(U(U(U(U(U({},"".concat(o,"-focused"),ke),"".concat(o,"-multiple"),$e),"".concat(o,"-single"),!$e),"".concat(o,"-allow-clear"),V),"".concat(o,"-show-arrow"),nn),"".concat(o,"-disabled"),$),"".concat(o,"-loading"),w),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),wt),"".concat(o,"-show-search"),je)),fr=c.createElement(W8,{ref:st,disabled:$,prefixCls:o,visible:at,popupElement:Kn,animation:z,transitionName:D,dropdownStyle:Q,dropdownClassName:ne,direction:f,dropdownMatchSelectWidth:ee,dropdownRender:oe,dropdownAlign:fe,placement:me,builtinPlacements:ue,getPopupContainer:Ce,empty:h,getTriggerDOMNode:function(Je){return bt.current||Je},onPopupVisibleChange:ut,onPopupMouseEnter:He},pt?c.cloneElement(pt,{ref:Vt}):c.createElement(O8,Ee({},e,{domRef:bt,prefixCls:o,inputElement:wt,ref:qe,id:r,prefix:H,showSearch:je,autoClearSearchValue:_,mode:b,activeDescendantId:k,tagRender:u,values:p,open:Ze,onToggleOpen:Oe,activeValue:j,searchValue:De,onSearch:Qe,onSearchSubmit:kt,onRemove:Xt,tokenWithEnter:we,onInputBlur:en}))),Zt;return pt?Zt=fr:Zt=c.createElement("div",Ee({className:ir},Le,{ref:lt,onMouseDown:et,onKeyDown:bn,onKeyUp:On,onFocus:We,onBlur:xt}),c.createElement(G8,{visible:ke&&!Ze,values:p}),fr,zn,Gn&&dr),c.createElement(_x.Provider,{value:$t},Zt)}),ev=function(){return null};ev.isSelectOptGroup=!0;var tv=function(){return null};tv.isSelectOption=!0;var Wx=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,s=e.prefixCls,u=e.onInnerResize,f=e.innerProps,m=e.rtl,p=e.extra,g={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},h=X(X({},h),{},U(U(U(U(U({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:g},c.createElement(io,{onResize:function(S){var C=S.offsetHeight;C&&u&&u()}},c.createElement("div",Ee({style:h,className:re(U({},"".concat(s,"-holder-inner"),s)),ref:t},f),l,p)))});Wx.displayName="Filler";function Y8(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function Z8(e,t,n,r,o,l,s,u){var f=u.getKey;return e.slice(t,n+1).map(function(m,p){var g=t+p,h=s(m,g,{style:{width:r},offsetX:o}),y=f(m);return c.createElement(Y8,{key:y,setRef:function(C){return l(m,C)}},h)})}function J8(e,t,n){var r=e.length,o=t.length,l,s;if(r===0&&o===0)return null;r<o?(l=e,s=t):(l=t,s=e);var u={__EMPTY_ITEM__:!0};function f(S){return S!==void 0?n(S):u}for(var m=null,p=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var h=f(l[g]),y=f(s[g]);if(h!==y){m=g,p=p||h!==f(s[g+1]);break}}return m===null?null:{index:m,multiple:p}}function eT(e,t,n){var r=c.useState(e),o=ae(r,2),l=o[0],s=o[1],u=c.useState(null),f=ae(u,2),m=f[0],p=f[1];return c.useEffect(function(){var g=J8(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&p(e[g.index]),s(e)},[e]),[m]}var Wb=(typeof navigator>"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Ux=(function(e,t,n,r){var o=c.useRef(!1),l=c.useRef(null);function s(){clearTimeout(l.current),o.current=!0,l.current=setTimeout(function(){o.current=!1},50)}var u=c.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(f,m){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=f?m<0&&u.current.left||m>0&&u.current.right:m<0&&u.current.top||m>0&&u.current.bottom;return p&&g?(clearTimeout(l.current),o.current=!1):(!g||o.current)&&s(),!o.current&&g}});function tT(e,t,n,r,o,l,s){var u=c.useRef(0),f=c.useRef(null),m=c.useRef(null),p=c.useRef(!1),g=Ux(t,n,r,o);function h(w,R){if(Sn.cancel(f.current),!g(!1,R)){var O=w;if(!O._virtualHandled)O._virtualHandled=!0;else return;u.current+=R,m.current=R,Wb||O.preventDefault(),f.current=Sn(function(){var I=p.current?10:1;s(u.current*I,!1),u.current=0})}}function y(w,R){s(R,!0),Wb||w.preventDefault()}var S=c.useRef(null),C=c.useRef(null);function b(w){if(e){Sn.cancel(C.current),C.current=Sn(function(){S.current=null},2);var R=w.deltaX,O=w.deltaY,I=w.shiftKey,P=R,T=O;(S.current==="sx"||!S.current&&I&&O&&!R)&&(P=O,T=0,S.current="sx");var j=Math.abs(P),M=Math.abs(T);S.current===null&&(S.current=l&&j>M?"x":"y"),S.current==="y"?h(w,T):y(w,P)}}function $(w){e&&(p.current=w.detail===m.current)}return[b,$]}function nT(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=ae(o,2),s=l[0],u=l[1],f=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,h=s.get(p),y=s.get(g);if(h===void 0||y===void 0)for(var S=e.length,C=u.length;C<S;C+=1){var b,$=e[C],w=t($);s.set(w,C);var R=(b=n.get(w))!==null&&b!==void 0?b:r;if(u[C]=(u[C-1]||0)+R,w===p&&(h=C),w===g&&(y=C),h!==void 0&&y!==void 0)break}return{top:u[h-1]||0,bottom:u[y]}};return f}var rT=(function(){function e(){Un(this,e),U(this,"maps",void 0),U(this,"id",0),U(this,"diffRecords",new Map),this.maps=Object.create(null)}return qn(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 Ub(e){var t=parseFloat(e);return isNaN(t)?0:t}function oT(e,t,n){var r=c.useState(0),o=ae(r,2),l=o[0],s=o[1],u=c.useRef(new Map),f=c.useRef(new rT),m=c.useRef(0);function p(){m.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var S=function(){var $=!1;u.current.forEach(function(w,R){if(w&&w.offsetParent){var O=w.offsetHeight,I=getComputedStyle(w),P=I.marginTop,T=I.marginBottom,j=Ub(P),M=Ub(T),k=O+j+M;f.current.get(R)!==k&&(f.current.set(R,k),$=!0)}}),$&&s(function(w){return w+1})};if(y)S();else{m.current+=1;var C=m.current;Promise.resolve().then(function(){C===m.current&&S()})}}function h(y,S){var C=e(y);u.current.get(C),S?(u.current.set(C,S),g()):u.current.delete(C)}return c.useEffect(function(){return p},[]),[h,g,f.current,l]}var qb=14/15;function iT(e,t,n){var r=c.useRef(!1),o=c.useRef(0),l=c.useRef(0),s=c.useRef(null),u=c.useRef(null),f,m=function(y){if(r.current){var S=Math.ceil(y.touches[0].pageX),C=Math.ceil(y.touches[0].pageY),b=o.current-S,$=l.current-C,w=Math.abs(b)>Math.abs($);w?o.current=S:l.current=C;var R=n(w,w?b:$,!1,y);R&&y.preventDefault(),clearInterval(u.current),R&&(u.current=setInterval(function(){w?b*=qb:$*=qb;var O=Math.floor(w?b:$);(!n(w,O,!0)||Math.abs(O)<=.1)&&clearInterval(u.current)},16))}},p=function(){r.current=!1,f()},g=function(y){f(),y.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(y.touches[0].pageX),l.current=Math.ceil(y.touches[0].pageY),s.current=y.target,s.current.addEventListener("touchmove",m,{passive:!1}),s.current.addEventListener("touchend",p,{passive:!0}))};f=function(){s.current&&(s.current.removeEventListener("touchmove",m),s.current.removeEventListener("touchend",p))},on(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",g),f(),clearInterval(u.current)}},[e])}function Gb(e){return Math.floor(Math.pow(e,.5))}function dg(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function aT(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,u=function(){Sn.cancel(l)},f=function h(){u(),l=Sn(function(){n(s),h()})},m=function(){o=!1,u()},p=function(y){if(!(y.target.draggable||y.button!==0)){var S=y;S._virtualHandled||(S._virtualHandled=!0,o=!0)}},g=function(y){if(o){var S=dg(y,!1),C=r.getBoundingClientRect(),b=C.top,$=C.bottom;if(S<=b){var w=b-S;s=-Gb(w),f()}else if(S>=$){var R=S-$;s=Gb(R),f()}else u()}};return r.addEventListener("mousedown",p),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",m),function(){r.removeEventListener("mousedown",p),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",m),u()}}},[e])}var lT=10;function sT(e,t,n,r,o,l,s,u){var f=c.useRef(),m=c.useState(null),p=ae(m,2),g=p[0],h=p[1];return on(function(){if(g&&g.times<lT){if(!e.current){h(function(Z){return X({},Z)});return}l();var y=g.targetAlign,S=g.originAlign,C=g.index,b=g.offset,$=e.current.clientHeight,w=!1,R=y,O=null;if($){for(var I=y||S,P=0,T=0,j=0,M=Math.min(t.length-1,C),k=0;k<=M;k+=1){var L=o(t[k]);T=P;var _=n.get(L);j=T+(_===void 0?r:_),P=j}for(var A=I==="top"?b:$-b,B=M;B>=0;B-=1){var q=o(t[B]),V=n.get(q);if(V===void 0){w=!0;break}if(A-=V,A<=0)break}switch(I){case"top":O=T-b;break;case"bottom":O=j-$+b;break;default:{var H=e.current.scrollTop,F=H+$;T<H?R="top":j>F&&(R="bottom")}}O!==null&&s(O),O!==g.lastTop&&(w=!0)}w&&h(X(X({},g),{},{times:g.times+1,targetAlign:R,lastTop:O}))}},[g,e.current]),function(y){if(y==null){u();return}if(Sn.cancel(f.current),typeof y=="number")s(y);else if(y&&mt(y)==="object"){var S,C=y.align;"index"in y?S=y.index:S=t.findIndex(function(w){return o(w)===y.key});var b=y.offset,$=b===void 0?0:b;h({times:0,index:S,offset:$,originAlign:C})}}}var Kb=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,u=e.onStopMove,f=e.onScroll,m=e.horizontal,p=e.spinSize,g=e.containerSize,h=e.style,y=e.thumbStyle,S=e.showScrollBar,C=c.useState(!1),b=ae(C,2),$=b[0],w=b[1],R=c.useState(null),O=ae(R,2),I=O[0],P=O[1],T=c.useState(null),j=ae(T,2),M=j[0],k=j[1],L=!r,_=c.useRef(),A=c.useRef(),B=c.useState(S),q=ae(B,2),V=q[0],H=q[1],F=c.useRef(),Z=function(){S===!0||S===!1||(clearTimeout(F.current),H(!0),F.current=setTimeout(function(){H(!1)},3e3))},W=l-g||0,z=g-p||0,D=c.useMemo(function(){if(o===0||W===0)return 0;var pe=o/W;return pe*z},[o,W,z]),Q=function(se){se.stopPropagation(),se.preventDefault()},ne=c.useRef({top:D,dragging:$,pageY:I,startTop:M});ne.current={top:D,dragging:$,pageY:I,startTop:M};var ee=function(se){w(!0),P(dg(se,m)),k(ne.current.top),s(),se.stopPropagation(),se.preventDefault()};c.useEffect(function(){var pe=function(ce){ce.preventDefault()},se=_.current,ye=A.current;return se.addEventListener("touchstart",pe,{passive:!1}),ye.addEventListener("touchstart",ee,{passive:!1}),function(){se.removeEventListener("touchstart",pe),ye.removeEventListener("touchstart",ee)}},[]);var oe=c.useRef();oe.current=W;var fe=c.useRef();fe.current=z,c.useEffect(function(){if($){var pe,se=function(ce){var le=ne.current,be=le.dragging,Se=le.pageY,$e=le.startTop;Sn.cancel(pe);var je=_.current.getBoundingClientRect(),Le=g/(m?je.width:je.height);if(be){var Pe=(dg(ce,m)-Se)*Le,Be=$e;!L&&m?Be-=Pe:Be+=Pe;var Re=oe.current,tt=fe.current,lt=tt?Be/tt:0,bt=Math.ceil(lt*Re);bt=Math.max(bt,0),bt=Math.min(bt,Re),pe=Sn(function(){f(bt,m)})}},ye=function(){w(!1),u()};return window.addEventListener("mousemove",se,{passive:!0}),window.addEventListener("touchmove",se,{passive:!0}),window.addEventListener("mouseup",ye,{passive:!0}),window.addEventListener("touchend",ye,{passive:!0}),function(){window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se),window.removeEventListener("mouseup",ye),window.removeEventListener("touchend",ye),Sn.cancel(pe)}}},[$]),c.useEffect(function(){return Z(),function(){clearTimeout(F.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:Z}});var me="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:V?null:"hidden"},Ce={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(ue,{height:8,left:0,right:0,bottom:0}),Object.assign(Ce,U({height:"100%",width:p},L?"left":"right",D))):(Object.assign(ue,U({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Ce,{width:"100%",height:p,top:D})),c.createElement("div",{ref:_,className:re(me,U(U(U({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),V)),style:X(X({},ue),h),onMouseDown:Q,onMouseMove:Z},c.createElement("div",{ref:A,className:re("".concat(me,"-thumb"),U({},"".concat(me,"-thumb-moving"),$)),style:X(X({},Ce),y),onMouseDown:ee}))}),cT=20;function Xb(){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,cT),Math.floor(n)}var uT=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],dT=[],fT={overflowY:"auto",overflowAnchor:"none"};function mT(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,l=e.height,s=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,m=e.style,p=e.data,g=e.children,h=e.itemKey,y=e.virtual,S=e.direction,C=e.scrollWidth,b=e.component,$=b===void 0?"div":b,w=e.onScroll,R=e.onVirtualScroll,O=e.onVisibleChange,I=e.innerProps,P=e.extraRender,T=e.styles,j=e.showScrollBar,M=j===void 0?"optional":j,k=jt(e,uT),L=c.useCallback(function(_e){return typeof h=="function"?h(_e):_e==null?void 0:_e[h]},[h]),_=oT(L),A=ae(_,4),B=A[0],q=A[1],V=A[2],H=A[3],F=!!(y!==!1&&l&&s),Z=c.useMemo(function(){return Object.values(V.maps).reduce(function(_e,We){return _e+We},0)},[V.id,V.maps]),W=F&&p&&(Math.max(s*p.length,Z)>l||!!C),z=S==="rtl",D=re(r,U({},"".concat(r,"-rtl"),z),o),Q=p||dT,ne=c.useRef(),ee=c.useRef(),oe=c.useRef(),fe=c.useState(0),me=ae(fe,2),ue=me[0],Ce=me[1],pe=c.useState(0),se=ae(pe,2),ye=se[0],ve=se[1],ce=c.useState(!1),le=ae(ce,2),be=le[0],Se=le[1],$e=function(){Se(!0)},je=function(){Se(!1)},Le={getKey:L};function Pe(_e){Ce(function(We){var xt;typeof _e=="function"?xt=_e(We):xt=_e;var ct=Ut(xt);return ne.current.scrollTop=ct,ct})}var Be=c.useRef({start:0,end:Q.length}),Re=c.useRef(),tt=eT(Q,L),lt=ae(tt,1),bt=lt[0];Re.current=bt;var st=c.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};if(!W){var _e;return{scrollHeight:((_e=ee.current)===null||_e===void 0?void 0:_e.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0}}for(var We=0,xt,ct,et,Ge=Q.length,St=0;St<Ge;St+=1){var Lt=Q[St],He=L(Lt),ut=V.get(He),$t=We+(ut===void 0?s:ut);$t>=ue&&xt===void 0&&(xt=St,ct=We),$t>ue+l&&et===void 0&&(et=St),We=$t}return xt===void 0&&(xt=0,ct=0,et=Math.ceil(l/s)),et===void 0&&(et=Q.length-1),et=Math.min(et+1,Q.length-1),{scrollHeight:We,start:xt,end:et,offset:ct}},[W,F,ue,Q,H,l]),qe=st.scrollHeight,it=st.start,Ve=st.end,dt=st.offset;Be.current.start=it,Be.current.end=Ve,c.useLayoutEffect(function(){var _e=V.getRecord();if(_e.size===1){var We=Array.from(_e.keys())[0],xt=_e.get(We),ct=Q[it];if(ct&&xt===void 0){var et=L(ct);if(et===We){var Ge=V.get(We),St=Ge-s;Pe(function(Lt){return Lt+St})}}}V.resetRecord()},[qe]);var Xe=c.useState({width:0,height:l}),ke=ae(Xe,2),Ye=ke[0],Te=ke[1],De=function(We){Te({width:We.offsetWidth,height:We.offsetHeight})},wt=c.useRef(),pt=c.useRef(),Vt=c.useMemo(function(){return Xb(Ye.width,C)},[Ye.width,C]),Dt=c.useMemo(function(){return Xb(Ye.height,qe)},[Ye.height,qe]),an=qe-l,yn=c.useRef(an);yn.current=an;function Ut(_e){var We=_e;return Number.isNaN(yn.current)||(We=Math.min(We,yn.current)),We=Math.max(We,0),We}var Mt=ue<=0,Ct=ue>=an,qt=ye<=0,Bt=ye>=C,Ze=Ux(Mt,Ct,qt,Bt),yt=function(){return{x:z?-ye:ye,y:ue}},at=c.useRef(yt()),Oe=Nn(function(_e){if(R){var We=X(X({},yt()),_e);(at.current.x!==We.x||at.current.y!==We.y)&&(R(We),at.current=We)}});function we(_e,We){var xt=_e;We?(Pi.flushSync(function(){ve(xt)}),Oe()):Pe(xt)}function xe(_e){var We=_e.currentTarget.scrollTop;We!==ue&&Pe(We),w==null||w(_e),Oe()}var Ne=function(We){var xt=We,ct=C?C-Ye.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,ct),xt},Ke=Nn(function(_e,We){We?(Pi.flushSync(function(){ve(function(xt){var ct=xt+(z?-_e:_e);return Ne(ct)})}),Oe()):Pe(function(xt){var ct=xt+_e;return ct})}),Qe=tT(F,Mt,Ct,qt,Bt,!!C,Ke),kt=ae(Qe,2),zt=kt[0],Ot=kt[1];iT(F,ne,function(_e,We,xt,ct){var et=ct;return Ze(_e,We,xt)?!1:!et||!et._virtualHandled?(et&&(et._virtualHandled=!0),zt({preventDefault:function(){},deltaX:_e?We:0,deltaY:_e?0:We}),!0):!1}),aT(W,ne,function(_e){Pe(function(We){return We+_e})}),on(function(){function _e(xt){var ct=Mt&&xt.detail<0,et=Ct&&xt.detail>0;F&&!ct&&!et&&xt.preventDefault()}var We=ne.current;return We.addEventListener("wheel",zt,{passive:!1}),We.addEventListener("DOMMouseScroll",Ot,{passive:!0}),We.addEventListener("MozMousePixelScroll",_e,{passive:!1}),function(){We.removeEventListener("wheel",zt),We.removeEventListener("DOMMouseScroll",Ot),We.removeEventListener("MozMousePixelScroll",_e)}},[F,Mt,Ct]),on(function(){if(C){var _e=Ne(ye);ve(_e),Oe({x:_e})}},[Ye.width,C]);var Pt=function(){var We,xt;(We=wt.current)===null||We===void 0||We.delayHidden(),(xt=pt.current)===null||xt===void 0||xt.delayHidden()},vn=sT(ne,Q,V,s,L,function(){return q(!0)},Pe,Pt);c.useImperativeHandle(t,function(){return{nativeElement:oe.current,getScrollInfo:yt,scrollTo:function(We){function xt(ct){return ct&&mt(ct)==="object"&&("left"in ct||"top"in ct)}xt(We)?(We.left!==void 0&&ve(Ne(We.left)),vn(We.top)):vn(We)}}}),on(function(){if(O){var _e=Q.slice(it,Ve+1);O(_e,Q)}},[it,Ve,Q]);var dn=nT(Q,L,V,s),bn=P==null?void 0:P({start:it,end:Ve,virtual:W,offsetX:ye,offsetY:dt,rtl:z,getSize:dn}),On=Z8(Q,it,Ve,C,ye,B,g,Le),Xt=null;l&&(Xt=X(U({},f?"height":"maxHeight",l),fT),F&&(Xt.overflowY="hidden",C&&(Xt.overflowX="hidden"),be&&(Xt.pointerEvents="none")));var en={};return z&&(en.dir="rtl"),c.createElement("div",Ee({ref:oe,style:X(X({},m),{},{position:"relative"}),className:D},en,k),c.createElement(io,{onResize:De},c.createElement($,{className:"".concat(r,"-holder"),style:Xt,ref:ne,onScroll:xe,onMouseEnter:Pt},c.createElement(Wx,{prefixCls:r,height:qe,offsetX:ye,offsetY:dt,scrollWidth:C,onInnerResize:q,ref:ee,innerProps:I,rtl:z,extra:bn},On))),W&&qe>l&&c.createElement(Kb,{ref:wt,prefixCls:r,scrollOffset:ue,scrollRange:qe,rtl:z,onScroll:we,onStartMove:$e,onStopMove:je,spinSize:Dt,containerSize:Ye.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:M}),W&&C>Ye.width&&c.createElement(Kb,{ref:pt,prefixCls:r,scrollOffset:ye,scrollRange:C,rtl:z,onScroll:we,onStartMove:$e,onStopMove:je,spinSize:Vt,containerSize:Ye.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:M}))}var qx=c.forwardRef(mT);qx.displayName="List";function pT(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var gT=["disabled","title","children","style","className"];function Qb(e){return typeof e=="string"||typeof e=="number"}var vT=function(t,n){var r=e8(),o=r.prefixCls,l=r.id,s=r.open,u=r.multiple,f=r.mode,m=r.searchValue,p=r.toggleOpen,g=r.notFoundContent,h=r.onPopupScroll,y=c.useContext(Jg),S=y.maxCount,C=y.flattenOptions,b=y.onActiveValue,$=y.defaultActiveFirstOption,w=y.onSelect,R=y.menuItemSelectedIcon,O=y.rawValues,I=y.fieldNames,P=y.virtual,T=y.direction,j=y.listHeight,M=y.listItemHeight,k=y.optionRender,L="".concat(o,"-item"),_=Ms(function(){return C},[s,C],function(pe,se){return se[0]&&pe[1]!==se[1]}),A=c.useRef(null),B=c.useMemo(function(){return u&&sg(S)&&(O==null?void 0:O.size)>=S},[u,S,O==null?void 0:O.size]),q=function(se){se.preventDefault()},V=function(se){var ye;(ye=A.current)===null||ye===void 0||ye.scrollTo(typeof se=="number"?{index:se}:se)},H=c.useCallback(function(pe){return f==="combobox"?!1:O.has(pe)},[f,Ae(O).toString(),O.size]),F=function(se){for(var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=_.length,ce=0;ce<ve;ce+=1){var le=(se+ce*ye+ve)%ve,be=_[le]||{},Se=be.group,$e=be.data;if(!Se&&!($e!=null&&$e.disabled)&&(H($e.value)||!B))return le}return-1},Z=c.useState(function(){return F(0)}),W=ae(Z,2),z=W[0],D=W[1],Q=function(se){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;D(se);var ve={source:ye?"keyboard":"mouse"},ce=_[se];if(!ce){b(null,-1,ve);return}b(ce.value,se,ve)};c.useEffect(function(){Q($!==!1?F(0):-1)},[_.length,m]);var ne=c.useCallback(function(pe){return f==="combobox"?String(pe).toLowerCase()===m.toLowerCase():O.has(pe)},[f,m,Ae(O).toString(),O.size]);c.useEffect(function(){var pe=setTimeout(function(){if(!u&&s&&O.size===1){var ye=Array.from(O)[0],ve=_.findIndex(function(ce){var le=ce.data;return m?String(le.value).startsWith(m):le.value===ye});ve!==-1&&(Q(ve),V(ve))}});if(s){var se;(se=A.current)===null||se===void 0||se.scrollTo(void 0)}return function(){return clearTimeout(pe)}},[s,m]);var ee=function(se){se!==void 0&&w(se,{selected:!O.has(se)}),u||p(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(se){var ye=se.which,ve=se.ctrlKey;switch(ye){case Ue.N:case Ue.P:case Ue.UP:case Ue.DOWN:{var ce=0;if(ye===Ue.UP?ce=-1:ye===Ue.DOWN?ce=1:pT()&&ve&&(ye===Ue.N?ce=1:ye===Ue.P&&(ce=-1)),ce!==0){var le=F(z+ce,ce);V(le),Q(le,!0)}break}case Ue.TAB:case Ue.ENTER:{var be,Se=_[z];Se&&!(Se!=null&&(be=Se.data)!==null&&be!==void 0&&be.disabled)&&!B?ee(Se.value):ee(void 0),s&&se.preventDefault();break}case Ue.ESC:p(!1),s&&se.stopPropagation()}},onKeyUp:function(){},scrollTo:function(se){V(se)}}}),_.length===0)return c.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:q},g);var oe=Object.keys(I).map(function(pe){return I[pe]}),fe=function(se){return se.label};function me(pe,se){var ye=pe.group;return{role:ye?"presentation":"option",id:"".concat(l,"_list_").concat(se)}}var ue=function(se){var ye=_[se];if(!ye)return null;var ve=ye.data||{},ce=ve.value,le=ye.group,be=No(ve,!0),Se=fe(ye);return ye?c.createElement("div",Ee({"aria-label":typeof Se=="string"&&!le?Se:null},be,{key:se},me(ye,se),{"aria-selected":ne(ce)}),ce):null},Ce={role:"listbox",id:"".concat(l,"_list")};return c.createElement(c.Fragment,null,P&&c.createElement("div",Ee({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),ue(z-1),ue(z),ue(z+1)),c.createElement(qx,{itemKey:"key",ref:A,data:_,height:j,itemHeight:M,fullHeight:!1,onMouseDown:q,onScroll:h,virtual:P,direction:T,innerProps:P?null:Ce},function(pe,se){var ye=pe.group,ve=pe.groupOption,ce=pe.data,le=pe.label,be=pe.value,Se=ce.key;if(ye){var $e,je=($e=ce.title)!==null&&$e!==void 0?$e:Qb(le)?le.toString():void 0;return c.createElement("div",{className:re(L,"".concat(L,"-group"),ce.className),title:je},le!==void 0?le:Se)}var Le=ce.disabled,Pe=ce.title;ce.children;var Be=ce.style,Re=ce.className,tt=jt(ce,gT),lt=Wn(tt,oe),bt=H(be),st=Le||!bt&&B,qe="".concat(L,"-option"),it=re(L,qe,Re,U(U(U(U({},"".concat(qe,"-grouped"),ve),"".concat(qe,"-active"),z===se&&!st),"".concat(qe,"-disabled"),st),"".concat(qe,"-selected"),bt)),Ve=fe(pe),dt=!R||typeof R=="function"||bt,Xe=typeof Ve=="number"?Ve:Ve||be,ke=Qb(Xe)?Xe.toString():void 0;return Pe!==void 0&&(ke=Pe),c.createElement("div",Ee({},No(lt),P?{}:me(pe,se),{"aria-selected":ne(be),className:it,title:ke,onMouseMove:function(){z===se||st||Q(se)},onClick:function(){st||ee(be)},style:Be}),c.createElement("div",{className:"".concat(qe,"-content")},typeof k=="function"?k(pe,{index:se}):Xe),c.isValidElement(R)||bt,dt&&c.createElement(Sd,{className:"".concat(L,"-option-state"),customizeIcon:R,customizeIconProps:{value:be,disabled:st,isSelected:bt}},bt?"✓":null))}))},hT=c.forwardRef(vT);const yT=(function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var l=n.current,s=l.values,u=l.options,f=e.map(function(g){if(g.label===void 0){var h;return X(X({},g),{},{label:(h=s.get(g.value))===null||h===void 0?void 0:h.label})}return g}),m=new Map,p=new Map;return f.forEach(function(g){m.set(g.value,g),p.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=m,n.current.options=p,f},[e,t]),o=c.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,o]});function Km(e,t){return Dx(e).join("").toUpperCase().includes(t)}const bT=(function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var l=t.options,s=t.label,u=t.value,f=[],m=typeof r=="function",p=n.toUpperCase(),g=m?r:function(y,S){return o?Km(S[o],p):S[l]?Km(S[s!=="children"?s:"label"],p):Km(S[u],p)},h=m?function(y){return cg(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var S=g(n,h(y));if(S)f.push(y);else{var C=y[l].filter(function(b){return g(n,h(b))});C.length&&f.push(X(X({},y),{},U({},l,C)))}return}g(n,h(y))&&f.push(y)}),f},[e,r,o,n,t])});var Yb=0,CT=Cr();function ST(){var e;return CT?(e=Yb,Yb+=1):e="TEST_OR_SSR",e}function xT(e){var t=c.useState(),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(ST()))},[]),e||r}var wT=["children","value"],$T=["children"];function ET(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=jt(r,wT);return X({key:n,value:l!==void 0?l:n,children:o},s)}function Gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rr(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,l=o.type.isSelectOptGroup,s=o.key,u=o.props,f=u.children,m=jt(u,$T);return t||!l?ET(n):X(X({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:Gx(f)})}).filter(function(n){return n})}var RT=function(t,n,r,o,l){return c.useMemo(function(){var s=t,u=!t;u&&(s=Gx(n));var f=new Map,m=new Map,p=function(y,S,C){C&&typeof C=="string"&&y.set(S[C],S)},g=function h(y){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<y.length;C+=1){var b=y[C];!b[r.options]||S?(f.set(b[r.value],b),p(m,b,r.label),p(m,b,o),p(m,b,l)):h(b[r.options],!0)}};return g(s),{options:s,valueOptions:f,labelOptions:m}},[t,n,r,o,l])};function Zb(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var OT=["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"],IT=["inputValue"];function PT(e){return!e||mt(e)!=="object"}var TT=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,l=o===void 0?"rc-select":o,s=e.backfill,u=e.fieldNames,f=e.inputValue,m=e.searchValue,p=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,y=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,b=C===void 0?!0:C,$=e.filterOption,w=e.filterSort,R=e.optionFilterProp,O=e.optionLabelProp,I=e.options,P=e.optionRender,T=e.children,j=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,k=e.virtual,L=e.direction,_=e.listHeight,A=_===void 0?200:_,B=e.listItemHeight,q=B===void 0?20:B,V=e.labelRender,H=e.value,F=e.defaultValue,Z=e.labelInValue,W=e.onChange,z=e.maxCount,D=jt(e,OT),Q=xT(n),ne=ug(r),ee=!!(!I&&T),oe=c.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),fe=c.useMemo(function(){return Vx(u,ee)},[JSON.stringify(u),ee]),me=Vn("",{value:m!==void 0?m:f,postState:function(we){return we||""}}),ue=ae(me,2),Ce=ue[0],pe=ue[1],se=RT(I,T,fe,R,O),ye=se.valueOptions,ve=se.labelOptions,ce=se.options,le=c.useCallback(function(Oe){var we=Dx(Oe);return we.map(function(xe){var Ne,Ke,Qe,kt,zt;if(PT(xe))Ne=xe;else{var Ot;Qe=xe.key,Ke=xe.label,Ne=(Ot=xe.value)!==null&&Ot!==void 0?Ot:Qe}var Pt=ye.get(Ne);if(Pt){var vn;Ke===void 0&&(Ke=Pt==null?void 0:Pt[O||fe.label]),Qe===void 0&&(Qe=(vn=Pt==null?void 0:Pt.key)!==null&&vn!==void 0?vn:Ne),kt=Pt==null?void 0:Pt.disabled,zt=Pt==null?void 0:Pt.title}return{label:Ke,value:Ne,key:Qe,disabled:kt,title:zt}})},[fe,O,ye]),be=Vn(F,{value:H}),Se=ae(be,2),$e=Se[0],je=Se[1],Le=c.useMemo(function(){var Oe,we=ne&&$e===null?[]:$e,xe=le(we);return r==="combobox"&&S8((Oe=xe[0])===null||Oe===void 0?void 0:Oe.value)?[]:xe},[$e,le,r,ne]),Pe=yT(Le,ye),Be=ae(Pe,2),Re=Be[0],tt=Be[1],lt=c.useMemo(function(){if(!r&&Re.length===1){var Oe=Re[0];if(Oe.value===null&&(Oe.label===null||Oe.label===void 0))return[]}return Re.map(function(we){var xe;return X(X({},we),{},{label:(xe=typeof V=="function"?V(we):we.label)!==null&&xe!==void 0?xe:we.value})})},[r,Re,V]),bt=c.useMemo(function(){return new Set(Re.map(function(Oe){return Oe.value}))},[Re]);c.useEffect(function(){if(r==="combobox"){var Oe,we=(Oe=Re[0])===null||Oe===void 0?void 0:Oe.value;pe(C8(we)?String(we):"")}},[Re]);var st=Zb(function(Oe,we){var xe=we??Oe;return U(U({},fe.value,Oe),fe.label,xe)}),qe=c.useMemo(function(){if(r!=="tags")return ce;var Oe=Ae(ce),we=function(Ne){return ye.has(Ne)};return Ae(Re).sort(function(xe,Ne){return xe.value<Ne.value?-1:1}).forEach(function(xe){var Ne=xe.value;we(Ne)||Oe.push(st(Ne,xe.label))}),Oe},[st,ce,ye,Re,r]),it=bT(qe,fe,Ce,oe,R),Ve=c.useMemo(function(){return r!=="tags"||!Ce||it.some(function(Oe){return Oe[R||"value"]===Ce})||it.some(function(Oe){return Oe[fe.value]===Ce})?it:[st(Ce)].concat(Ae(it))},[st,R,r,it,Ce,fe]),dt=function Oe(we){var xe=Ae(we).sort(function(Ne,Ke){return w(Ne,Ke,{searchValue:Ce})});return xe.map(function(Ne){return Array.isArray(Ne.options)?X(X({},Ne),{},{options:Ne.options.length>0?Oe(Ne.options):Ne.options}):Ne})},Xe=c.useMemo(function(){return w?dt(Ve):Ve},[Ve,w,Ce]),ke=c.useMemo(function(){return U8(Xe,{fieldNames:fe,childrenAsData:ee})},[Xe,fe,ee]),Ye=function(we){var xe=le(we);if(je(xe),W&&(xe.length!==Re.length||xe.some(function(Qe,kt){var zt;return((zt=Re[kt])===null||zt===void 0?void 0:zt.value)!==(Qe==null?void 0:Qe.value)}))){var Ne=Z?xe:xe.map(function(Qe){return Qe.value}),Ke=xe.map(function(Qe){return cg(tt(Qe.value))});W(ne?Ne:Ne[0],ne?Ke:Ke[0])}},Te=c.useState(null),De=ae(Te,2),wt=De[0],pt=De[1],Vt=c.useState(0),Dt=ae(Vt,2),an=Dt[0],yn=Dt[1],Ut=j!==void 0?j:r!=="combobox",Mt=c.useCallback(function(Oe,we){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ne=xe.source,Ke=Ne===void 0?"keyboard":Ne;yn(we),s&&r==="combobox"&&Oe!==null&&Ke==="keyboard"&&pt(String(Oe))},[s,r]),Ct=function(we,xe,Ne){var Ke=function(){var Xt,en=tt(we);return[Z?{label:en==null?void 0:en[fe.label],value:we,key:(Xt=en==null?void 0:en.key)!==null&&Xt!==void 0?Xt:we}:we,cg(en)]};if(xe&&y){var Qe=Ke(),kt=ae(Qe,2),zt=kt[0],Ot=kt[1];y(zt,Ot)}else if(!xe&&S&&Ne!=="clear"){var Pt=Ke(),vn=ae(Pt,2),dn=vn[0],bn=vn[1];S(dn,bn)}},qt=Zb(function(Oe,we){var xe,Ne=ne?we.selected:!0;Ne?xe=ne?[].concat(Ae(Re),[Oe]):[Oe]:xe=Re.filter(function(Ke){return Ke.value!==Oe}),Ye(xe),Ct(Oe,Ne),r==="combobox"?pt(""):(!ug||h)&&(pe(""),pt(""))}),Bt=function(we,xe){Ye(we);var Ne=xe.type,Ke=xe.values;(Ne==="remove"||Ne==="clear")&&Ke.forEach(function(Qe){Ct(Qe.value,!1,Ne)})},Ze=function(we,xe){if(pe(we),pt(null),xe.source==="submit"){var Ne=(we||"").trim();if(Ne){var Ke=Array.from(new Set([].concat(Ae(bt),[Ne])));Ye(Ke),Ct(Ne,!0),pe("")}return}xe.source!=="blur"&&(r==="combobox"&&Ye(we),p==null||p(we))},yt=function(we){var xe=we;r!=="tags"&&(xe=we.map(function(Ke){var Qe=ve.get(Ke);return Qe==null?void 0:Qe.value}).filter(function(Ke){return Ke!==void 0}));var Ne=Array.from(new Set([].concat(Ae(bt),Ae(xe))));Ye(Ne),Ne.forEach(function(Ke){Ct(Ke,!0)})},at=c.useMemo(function(){var Oe=k!==!1&&b!==!1;return X(X({},se),{},{flattenOptions:ke,onActiveValue:Mt,defaultActiveFirstOption:Ut,onSelect:qt,menuItemSelectedIcon:M,rawValues:bt,fieldNames:fe,virtual:Oe,direction:L,listHeight:A,listItemHeight:q,childrenAsData:ee,maxCount:z,optionRender:P})},[z,se,ke,Mt,Ut,qt,M,bt,fe,k,b,L,A,q,ee,P]);return c.createElement(Jg.Provider,{value:at},c.createElement(Q8,Ee({},D,{id:Q,prefixCls:l,ref:t,omitDomProps:IT,mode:r,displayValues:lt,onDisplayValuesChange:Bt,direction:L,searchValue:Ce,onSearch:Ze,autoClearSearchValue:h,onSearchSplit:yt,dropdownMatchSelectWidth:b,OptionList:hT,emptyOptions:!ke.length,activeValue:wt,activeDescendantId:"".concat(Q,"_list_").concat(an)})))}),nv=TT;nv.Option=tv;nv.OptGroup=ev;function Kx(e,t,n){return re({[`${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 Xx=(e,t)=>t||e,MT=()=>{const[,e]=Pr(),[t]=ni("Empty"),r=new cn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},jT=()=>{const[,e]=Pr(),[t]=ni("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:u,contentColor:f}=c.useMemo(()=>({borderColor:new cn(n).onBackground(l).toHexString(),shadowColor:new cn(r).onBackground(l).toHexString(),contentColor:new cn(o).onBackground(l).toHexString()}),[n,r,o,l]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:s},c.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"}),c.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}))))},kT=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:l,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},NT=pn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Yt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return kT(o)});var _T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qx=c.createElement(MT,null),Yx=c.createElement(jT,null),Co=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:l,description:s,children:u,imageStyle:f,style:m,classNames:p,styles:g}=e,h=_T(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:S,className:C,style:b,classNames:$,styles:w,image:R}=Ir("empty"),O=y("empty",o),[I,P,T]=NT(O),[j]=ni("Empty"),M=typeof s<"u"?s:j==null?void 0:j.description,k=typeof M=="string"?M:"empty",L=(t=l??R)!==null&&t!==void 0?t:Qx;let _=null;return typeof L=="string"?_=c.createElement("img",{draggable:!1,alt:k,src:L}):_=L,I(c.createElement("div",Object.assign({className:re(P,T,O,C,{[`${O}-normal`]:L===Yx,[`${O}-rtl`]:S==="rtl"},n,r,$.root,p==null?void 0:p.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),g==null?void 0:g.root),m)},h),c.createElement("div",{className:re(`${O}-image`,$.image,p==null?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},f),w.image),g==null?void 0:g.image)},_),M&&c.createElement("div",{className:re(`${O}-description`,$.description,p==null?void 0:p.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},M),u&&c.createElement("div",{className:re(`${O}-footer`,$.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};Co.PRESENTED_IMAGE_DEFAULT=Qx;Co.PRESENTED_IMAGE_SIMPLE=Yx;const Zx=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(It),r=n("empty");switch(t){case"Table":case"List":return Y.createElement(Co,{image:Co.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Y.createElement(Co,{image:Co.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Y.createElement(Co,null)}},Jx=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=c.useContext(It),u=c.useContext(nP),f=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=u??f)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const p=M3.includes(m);return[m,p]},zT=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 LT(e,t){return e||zT(t)}const Jb=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},BT=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Fn(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,[`
224
+ ${o}${u}bottomLeft,
225
+ ${l}${u}bottomLeft
226
+ `]:{animationName:Wg},[`
227
+ ${o}${u}topLeft,
228
+ ${l}${u}topLeft,
229
+ ${o}${u}topRight,
230
+ ${l}${u}topRight
231
+ `]:{animationName:qg},[`${s}${u}bottomLeft`]:{animationName:Ug},[`
232
+ ${s}${u}topLeft,
233
+ ${s}${u}topRight
234
+ `]:{animationName:Gg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Jb(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"},xs),"&-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({},Jb(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ki(e,"slide-up"),ki(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down")]},AT=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,l=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(l).sub(o).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:J(t),itemLineHeight:J(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},FT=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},DT=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:f,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:p}=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:p,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},pl()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},HT=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=FT(e),u=t?`${n}-${t}`:"",f=AT(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},DT(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:`${J(r)} 0`,lineHeight:J(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:J(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:J(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${o}-item + ${o}-item,
235
+ ${n}-prefix + ${n}-selection-wrap
236
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:J(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 Xm(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
237
+ &${n}-show-arrow ${n}-selector,
238
+ &${n}-allow-clear ${n}-selector
239
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[HT(e,t),o]}const VT=e=>{const{componentCls:t}=e,n=Yt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Yt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Xm(e),Xm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Xm(r,"lg")]};function Qm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Fn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:J(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
240
+ ${n}-selection-item,
241
+ ${n}-selection-placeholder
242
+ `]:{display:"block",padding:0,lineHeight:J(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"'}}),[`
243
+ &${n}-show-arrow ${n}-selection-item,
244
+ &${n}-show-arrow ${n}-selection-search,
245
+ &${n}-show-arrow ${n}-selection-placeholder
246
+ `]:{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 ${J(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:J(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 ${J(r)}`,"&:after":{display:"none"}}}}}}}function WT(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Qm(e),Qm(Yt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${J(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
247
+ &${t}-show-arrow ${t}-selection-item,
248
+ &${t}-show-arrow ${t}-selection-placeholder
249
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Qm(Yt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const UT=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:p,fontWeightStrong:g,controlItemBgActive:h,controlItemBgHover:y,colorBgContainer:S,colorFillSecondary:C,colorBgContainerDisabled:b,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:R,controlOutline:O}=e,I=u*2,P=r*2,T=Math.min(o-I,o-P),j=Math.min(l-I,l-P),M=Math.min(s-I,s-P);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:m+50,optionSelectedColor:p,optionSelectedFontWeight:g,optionSelectedBg:h,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:S,clearBg:S,singleItemHeightLG:s,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:j,multipleItemHeightLG:M,multipleSelectorBgDisabled:b,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:R,activeOutlineColor:O,selectAffixPadding:u}},ew=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${J(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${J(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},e1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ew(e,t))}),qT=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ew(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),e1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),e1(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:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},t1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tw(e,t))}),GT=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),t1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),t1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),KT=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${J(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:`${J(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}}}}),nw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${J(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}}}},n1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},nw(e,t))}),XT=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},nw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),n1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),n1(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:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),QT=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},qT(e)),GT(e)),KT(e)),XT(e))}),YT=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"}}}},ZT=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"}}}},JT=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},YT(e)),ZT(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},xs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},xs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},pl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},eM=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},JT(e),WT(e),VT(e),BT(e),{[`${t}-rtl`]:{direction:"rtl"}},hd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},tM=pn("Select",(e,{rootPrefixCls:t})=>{const n=Yt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[eM(n),QT(n)]},UT,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var nM={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"},rM=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:nM}))},rw=c.forwardRef(rM),oM={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"},iM=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:oM}))},ow=c.forwardRef(iM),aM={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"},lM=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:aM}))},sM=c.forwardRef(lM);function cM({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:l,hasFeedback:s,prefixCls:u,showSuffixIcon:f,feedbackIcon:m,showArrow:p,componentName:g}){const h=t??c.createElement(id,null),y=$=>e===null&&!s&&!p?null:c.createElement(c.Fragment,null,f!==!1&&$,s&&m);let S=null;if(e!==void 0)S=y(e);else if(o)S=y(c.createElement(ad,{spin:!0}));else{const $=`${u}-suffix`;S=({open:w,showSearch:R})=>y(w&&R?c.createElement(sM,{className:$}):c.createElement(ow,{className:$}))}let C=null;n!==void 0?C=n:l?C=c.createElement(rw,null):C=null;let b=null;return r!==void 0?b=r:b=c.createElement(vl,null),{clearIcon:h,suffixIcon:S,itemIcon:C,removeIcon:b}}function uM(e){return Y.useMemo(()=>{if(e)return(...t)=>Y.createElement(yd,{space:!0},e.apply(void 0,t))},[e])}function dM(e,t){return t!==void 0?t:e!==null}var fM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iw="SECRET_COMBOBOX_MODE_DO_NOT_USE",mM=(e,t)=>{var n,r,o,l,s;const{prefixCls:u,bordered:f,className:m,rootClassName:p,getPopupContainer:g,popupClassName:h,dropdownClassName:y,listHeight:S=256,placement:C,listItemHeight:b,size:$,disabled:w,notFoundContent:R,status:O,builtinPlacements:I,dropdownMatchSelectWidth:P,popupMatchSelectWidth:T,direction:j,style:M,allowClear:k,variant:L,dropdownStyle:_,transitionName:A,tagRender:B,maxCount:q,prefix:V,dropdownRender:H,popupRender:F,onDropdownVisibleChange:Z,onOpenChange:W,styles:z,classNames:D}=e,Q=fM(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:ee,renderEmpty:oe,direction:fe,virtual:me,popupMatchSelectWidth:ue,popupOverflow:Ce}=c.useContext(It),{showSearch:pe,style:se,styles:ye,className:ve,classNames:ce}=Ir("select"),[,le]=Pr(),be=b??(le==null?void 0:le.controlHeight),Se=ee("select",u),$e=ee(),je=j??fe,{compactSize:Le,compactItemClassnames:Pe}=zs(Se,je),[Be,Re]=Jx("select",L,f),tt=ri(Se),[lt,bt,st]=tM(Se,tt),qe=c.useMemo(()=>{const{mode:Ne}=e;if(Ne!=="combobox")return Ne===iw?"combobox":Ne},[e.mode]),it=qe==="multiple"||qe==="tags",Ve=dM(e.suffixIcon,e.showArrow),dt=(n=T??P)!==null&&n!==void 0?n:ue,Xe=((r=z==null?void 0:z.popup)===null||r===void 0?void 0:r.root)||((o=ye.popup)===null||o===void 0?void 0:o.root)||_,ke=uM(F||H),Ye=W||Z,{status:Te,hasFeedback:De,isFormItemInput:wt,feedbackIcon:pt}=c.useContext(Bu),Vt=Xx(Te,O);let Dt;R!==void 0?Dt=R:qe==="combobox"?Dt=null:Dt=(oe==null?void 0:oe("Select"))||c.createElement(Zx,{componentName:"Select"});const{suffixIcon:an,itemIcon:yn,removeIcon:Ut,clearIcon:Mt}=cM(Object.assign(Object.assign({},Q),{multiple:it,hasFeedback:De,feedbackIcon:pt,showSuffixIcon:Ve,prefixCls:Se,componentName:"Select"})),Ct=k===!0?{clearIcon:Mt}:k,qt=Wn(Q,["suffixIcon","itemIcon"]),Bt=re(((l=D==null?void 0:D.popup)===null||l===void 0?void 0:l.root)||((s=ce==null?void 0:ce.popup)===null||s===void 0?void 0:s.root)||h||y,{[`${Se}-dropdown-${je}`]:je==="rtl"},p,ce.root,D==null?void 0:D.root,st,tt,bt),Ze=oi(Ne=>{var Ke;return(Ke=$??Le)!==null&&Ke!==void 0?Ke:Ne}),yt=c.useContext(al),at=w??yt,Oe=re({[`${Se}-lg`]:Ze==="large",[`${Se}-sm`]:Ze==="small",[`${Se}-rtl`]:je==="rtl",[`${Se}-${Be}`]:Re,[`${Se}-in-form-item`]:wt},Kx(Se,Vt,De),Pe,ve,m,ce.root,D==null?void 0:D.root,p,st,tt,bt),we=c.useMemo(()=>C!==void 0?C:je==="rtl"?"bottomRight":"bottomLeft",[C,je]),[xe]=Ns("SelectLike",Xe==null?void 0:Xe.zIndex);return lt(c.createElement(nv,Object.assign({ref:t,virtual:me,showSearch:pe},qt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),z==null?void 0:z.root),se),M),dropdownMatchSelectWidth:dt,transitionName:ji($e,"slide-up",A),builtinPlacements:LT(I,Ce),listHeight:S,listItemHeight:be,mode:qe,prefixCls:Se,placement:we,direction:je,prefix:V,suffixIcon:an,menuItemSelectedIcon:yn,removeIcon:Ut,allowClear:Ct,notFoundContent:Dt,className:Oe,getPopupContainer:g||ne,dropdownClassName:Bt,disabled:at,dropdownStyle:Object.assign(Object.assign({},Xe),{zIndex:xe}),maxCount:it?q:void 0,tagRender:it?B:void 0,dropdownRender:ke,onDropdownVisibleChange:Ye})))},bl=c.forwardRef(mM),pM=Nx(bl,"dropdownAlign");bl.SECRET_COMBOBOX_MODE_DO_NOT_USE=iw;bl.Option=tv;bl.OptGroup=ev;bl._InternalPanelDoNotUseOrYouWillBeFired=pM;const aw=(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)},lw=(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)},ra=["xxl","xl","lg","md","sm","xs"],gM=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)`}),vM=e=>{const t=e,n=[].concat(ra).reverse();return n.forEach((r,o)=>{const l=r.toUpperCase(),s=`screen${l}Min`,u=`screen${l}`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);if(o<n.length-1){const f=`screen${l}Max`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`)}}),e},hM=()=>{const[,e]=Pr(),t=gM(vM(e));return Y.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return o=l,n.forEach(s=>s(o)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(o),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,s])=>{const u=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},o),{[l]:m}))},f=window.matchMedia(s);aw(f,u),this.matchHandlers[s]={mql:f,listener:u},u(f)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];lw(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function rv(e=!0,t={}){const n=c.useRef(t),[,r]=SO(),o=hM();return on(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}const Fu=e=>e?typeof e=="function"?e():e:null;function ov(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,l=e.bodyClassName,s=e.className,u=e.style;return c.createElement("div",{className:re("".concat(n,"-content"),s),style:u},c.createElement("div",{className:re("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Fa={shiftX:64,adjustY:1},Da={adjustX:1,shiftY:!0},no=[0,0],yM={left:{points:["cr","cl"],overflow:Da,offset:[-4,0],targetOffset:no},right:{points:["cl","cr"],overflow:Da,offset:[4,0],targetOffset:no},top:{points:["bc","tc"],overflow:Fa,offset:[0,-4],targetOffset:no},bottom:{points:["tc","bc"],overflow:Fa,offset:[0,4],targetOffset:no},topLeft:{points:["bl","tl"],overflow:Fa,offset:[0,-4],targetOffset:no},leftTop:{points:["tr","tl"],overflow:Da,offset:[-4,0],targetOffset:no},topRight:{points:["br","tr"],overflow:Fa,offset:[0,-4],targetOffset:no},rightTop:{points:["tl","tr"],overflow:Da,offset:[4,0],targetOffset:no},bottomRight:{points:["tr","br"],overflow:Fa,offset:[0,4],targetOffset:no},rightBottom:{points:["bl","br"],overflow:Da,offset:[4,0],targetOffset:no},bottomLeft:{points:["tl","bl"],overflow:Fa,offset:[0,4],targetOffset:no},leftBottom:{points:["br","bl"],overflow:Da,offset:[-4,0],targetOffset:no}},bM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],CM=function(t,n){var r=t.overlayClassName,o=t.trigger,l=o===void 0?["hover"]:o,s=t.mouseEnterDelay,u=s===void 0?0:s,f=t.mouseLeaveDelay,m=f===void 0?.1:f,p=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,y=t.children,S=t.onVisibleChange,C=t.afterVisibleChange,b=t.transitionName,$=t.animation,w=t.motion,R=t.placement,O=R===void 0?"right":R,I=t.align,P=I===void 0?{}:I,T=t.destroyTooltipOnHide,j=T===void 0?!1:T,M=t.defaultVisible,k=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,A=t.id,B=t.showArrow,q=B===void 0?!0:B,V=t.classNames,H=t.styles,F=jt(t,bM),Z=Qg(A),W=c.useRef(null);c.useImperativeHandle(n,function(){return W.current});var z=X({},F);"visible"in t&&(z.popupVisible=t.visible);var D=function(){return c.createElement(ov,{key:"content",prefixCls:h,id:Z,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:X(X({},L),H==null?void 0:H.body)},_)},Q=function(){var ee=c.Children.only(y),oe=(ee==null?void 0:ee.props)||{},fe=X(X({},oe),{},{"aria-describedby":_?Z:null});return c.cloneElement(y,fe)};return c.createElement(xd,Ee({popupClassName:re(r,V==null?void 0:V.root),prefixCls:h,popup:D,action:l,builtinPlacements:yM,popupPlacement:O,ref:W,popupAlign:P,getPopupContainer:k,onPopupVisibleChange:S,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:$,popupMotion:w,defaultPopupVisible:M,autoDestroy:j,mouseLeaveDelay:m,popupStyle:X(X({},p),H==null?void 0:H.root),mouseEnterDelay:u,arrow:q},z),Q())};const SM=c.forwardRef(CM);function iv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,l=0,s=o,u=r*1/Math.sqrt(2),f=o-r*(1-1/Math.sqrt(2)),m=o-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-m,h=p,y=2*o-u,S=f,C=2*o-l,b=s,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),R=`polygon(${w}px 100%, 50% ${w}px, ${2*o-w}px 100%, ${w}px 100%)`,O=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${u} ${f} L ${m} ${p} A ${n} ${n} 0 0 1 ${g} ${h} L ${y} ${S} A ${r} ${r} 0 0 0 ${C} ${b} Z')`;return{arrowShadowWidth:$,arrowPath:O,arrowPolygon:R}}const xM=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:u,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${J(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},sw=8;function wd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?sw:r}}function Jc(e,t){return e?t:{}}function av(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},xM(e,t,o)),{"&:before":{background:t}})]},Jc(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${J(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Jc(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${J(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Jc(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Jc(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function wM(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const r1={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"]}},$M={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"]}},EM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function cw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=e,u=t/2,f={},m=wd({contentRadius:l,limitVerticalRadius:!0});return Object.keys(r1).forEach(p=>{const g=r&&$M[p]||r1[p],h=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(f[p]=h,EM.has(p)&&(h.autoArrow=!1),p){case"top":case"topLeft":case"topRight":h.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=u+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":h.offset[0]=-m.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":h.offset[0]=m.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":h.offset[1]=-m.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":h.offset[1]=m.arrowOffsetHorizontal*2-u;break}h.overflow=wM(p,m,t,n),s&&(h.htmlRegion="visibleFirst")}),f}const RM=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:f,boxShadowSecondary:m,paddingSM:p,paddingXS:g,arrowOffsetHorizontal:h,sizePopupArrow:y}=e,S=t(s).add(y).add(h).equal(),C=t(s).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:C,minHeight:f,padding:`${J(e.calc(p).div(2).equal())} ${J(g)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:s,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:S},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,sw)}},[`${n}-content`]:{position:"relative"}}),od(e,(b,{darkColor:$})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},av(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},OM=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},wd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),iv(Yt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),uw=(e,t=!0)=>pn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,u=Yt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[RM(u),Ls(r,"zoom-big-fast")]},OM,{resetStyle:!1,injectStyle:t})(e),IM=Mi.map(e=>`${e}-inverse`),PM=["success","processing","error","default","warning"];function $d(e,t=!0){return t?[].concat(Ae(IM),Ae(Mi)).includes(e):Mi.includes(e)}function TM(e){return PM.includes(e)}function dw(e,t){const n=$d(t),r=re({[`${e}-${t}`]:t&&n}),o={},l={},s=v6(t).toRgb(),f=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=f,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:l}}const MM=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:u}=c.useContext(It),f=u("tooltip",t),[m,p,g]=uw(f),h=dw(f,l),y=h.arrowStyle,S=Object.assign(Object.assign({},s),h.overlayStyle),C=re(p,g,f,`${f}-pure`,`${f}-placement-${r}`,n,h.className);return m(c.createElement("div",{className:C,style:y},c.createElement("div",{className:`${f}-arrow`}),c.createElement(ov,Object.assign({},e,{className:p,prefixCls:f,overlayInnerStyle:S}),o)))};var jM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kM=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:u,overlayInnerStyle:f,children:m,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:h,destroyOnHidden:y,arrow:S=!0,title:C,overlay:b,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:R=!0,motion:O,getPopupContainer:I,placement:P="top",mouseEnterDelay:T=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:k,overlayClassName:L,styles:_,classNames:A}=e,B=jM(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"]),q=!!S,[,V]=Pr(),{getPopupContainer:H,getPrefixCls:F,direction:Z,className:W,style:z,classNames:D,styles:Q}=Ir("tooltip"),ne=nd(),ee=c.useRef(null),oe=()=>{var Ve;(Ve=ee.current)===null||Ve===void 0||Ve.forceAlign()};c.useImperativeHandle(t,()=>{var Ve,dt;return{forceAlign:oe,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(Ve=ee.current)===null||Ve===void 0?void 0:Ve.nativeElement,popupElement:(dt=ee.current)===null||dt===void 0?void 0:dt.popupElement}});const[fe,me]=Vn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ue=!C&&!b&&C!==0,Ce=Ve=>{var dt,Xe;me(ue?!1:Ve),ue||((dt=e.onOpenChange)===null||dt===void 0||dt.call(e,Ve),(Xe=e.onVisibleChange)===null||Xe===void 0||Xe.call(e,Ve))},pe=c.useMemo(()=>{var Ve,dt;let Xe=w;return typeof S=="object"&&(Xe=(dt=(Ve=S.pointAtCenter)!==null&&Ve!==void 0?Ve:S.arrowPointAtCenter)!==null&&dt!==void 0?dt:w),$||cw({arrowPointAtCenter:Xe,autoAdjustOverflow:R,arrowWidth:q?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0})},[w,S,$,V]),se=c.useMemo(()=>C===0?C:b||C||"",[b,C]),ye=c.createElement(yd,{space:!0},typeof se=="function"?se():se),ve=F("tooltip",o),ce=F(),le=e["data-popover-inject"];let be=fe;!("open"in e)&&!("visible"in e)&&ue&&(be=!1);const Se=c.isValidElement(m)&&!kS(m)?m:c.createElement("span",null,m),$e=Se.props,je=!$e.className||typeof $e.className=="string"?re($e.className,l||`${ve}-open`):$e.className,[Le,Pe,Be]=uw(ve,!le),Re=dw(ve,u),tt=Re.arrowStyle,lt=re(L,{[`${ve}-rtl`]:Z==="rtl"},Re.className,k,Pe,Be,W,D.root,A==null?void 0:A.root),bt=re(D.body,A==null?void 0:A.body),[st,qe]=Ns("Tooltip",B.zIndex),it=c.createElement(SM,Object.assign({},B,{zIndex:st,showArrow:q,placement:P,mouseEnterDelay:T,mouseLeaveDelay:j,prefixCls:ve,classNames:{root:lt,body:bt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),Q.root),z),M),_==null?void 0:_.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Q.body),f),_==null?void 0:_.body),Re.overlayStyle)},getTooltipContainer:I||s||H,ref:ee,builtinPlacements:pe,overlay:ye,visible:be,onVisibleChange:Ce,afterVisibleChange:p??g,arrowContent:c.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:ji(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!h}),be?Or(Se,{className:je}):Se);return Le(c.createElement(ld.Provider,{value:qe},it))}),Cl=kM;Cl._InternalPanelDoNotUseOrYouWillBeFired=MM;const NM=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:l,boxShadowSecondary:s,colorTextHeading:u,borderRadiusLG:f,zIndexPopup:m,titleMarginBottom:p,colorBgElevated:g,popoverBg:h,titleBorderBottom:y,innerContentPadding:S,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:f,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:p,color:u,fontWeight:o,borderBottom:y,padding:C},[`${t}-inner-content`]:{color:n,padding:S}})},av(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},_M=e=>{const{componentCls:t}=e;return{[t]:Mi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},zM=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:u,marginXS:f,lineType:m,colorSplit:p,paddingSM:g}=e,h=n-r,y=h/2,S=h/2-t,C=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},iv(e)),wd({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:f,titlePadding:l?`${y}px ${C}px ${S}px`:0,titleBorderBottom:l?`${t}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${C}px`:0})},fw=pn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Yt(e,{popoverBg:t,popoverColor:n});return[NM(r),_M(r),Ls(r,"zoom-big")]},zM,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var LM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mw=({title:e,content:t,prefixCls:n})=>!e&&!t?null:c.createElement(c.Fragment,null,e&&c.createElement("div",{className:`${n}-title`},e),t&&c.createElement("div",{className:`${n}-inner-content`},t)),BM=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:u,children:f}=e,m=Fu(s),p=Fu(u),g=re(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return c.createElement("div",{className:g,style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(ov,Object.assign({},e,{className:t,prefixCls:n}),f||c.createElement(mw,{prefixCls:n,title:m,content:p})))},AM=e=>{const{prefixCls:t,className:n}=e,r=LM(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(It),l=o("popover",t),[s,u,f]=fw(l);return s(c.createElement(BM,Object.assign({},r,{prefixCls:l,hashId:u,className:re(n,f)})))};var FM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DM=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:l,content:s,overlayClassName:u,placement:f="top",trigger:m="hover",children:p,mouseEnterDelay:g=.1,mouseLeaveDelay:h=.1,onOpenChange:y,overlayStyle:S={},styles:C,classNames:b}=e,$=FM(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:R,style:O,classNames:I,styles:P}=Ir("popover"),T=w("popover",o),[j,M,k]=fw(T),L=w(),_=re(u,M,k,R,I.root,b==null?void 0:b.root),A=re(I.body,b==null?void 0:b.body),[B,q]=Vn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),V=(z,D)=>{q(z,!0),y==null||y(z,D)},H=z=>{z.keyCode===Ue.ESC&&V(!1,z)},F=z=>{V(z)},Z=Fu(l),W=Fu(s);return j(c.createElement(Cl,Object.assign({placement:f,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:h},$,{prefixCls:T,classNames:{root:_,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},P.root),O),S),C==null?void 0:C.root),body:Object.assign(Object.assign({},P.body),C==null?void 0:C.body)},ref:t,open:B,onOpenChange:F,overlay:Z||W?c.createElement(mw,{prefixCls:T,title:Z,content:W}):null,transitionName:ji(L,"zoom-big",$.transitionName),"data-popover-inject":!0}),Or(p,{onKeyDown:z=>{var D,Q;c.isValidElement(p)&&((Q=p==null?void 0:(D=p.props).onKeyDown)===null||Q===void 0||Q.call(D,z)),H(z)}})))}),pw=DM;pw._InternalPanelDoNotUseOrYouWillBeFired=AM;const HM=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),VM=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),WM=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),UM=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),qM=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),GM=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),KM=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:l,textFontSizeSM:s,statusSize:u,dotSize:f,textFontWeight:m,indicatorHeight:p,indicatorHeightSM:g,marginXS:h,calc:y}=e,S=`${r}-scroll-number`,C=od(e,(b,{darkColor:$})=>({[`&${t} ${t}-color-${b}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:J(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(p).div(2).equal(),boxShadow:`0 0 0 ${J(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:s,lineHeight:J(g),borderRadius:y(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${J(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 ${J(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${S}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:GM,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:HM,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),C),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:VM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:WM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:UM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:qM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${S}-custom-component, ${t}-count`]:{transform:"none"},[`${S}-custom-component, ${S}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[S]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${S}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${S}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${S}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${S}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},gw=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,l=t,s=n,u=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return Yt(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:u,badgeColor:f,badgeColorHover:m,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},vw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},XM=pn("Badge",e=>{const t=gw(e);return KM(t)},vw),QM=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,f=od(e,(m,{darkColor:p})=>({[`&${s}-color-${m}`]:{background:p,color:p}}));return{[u]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:r,padding:`0 ${J(e.paddingXS)}`,color:e.colorPrimary,lineHeight:J(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${J(l(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),f),{[`&${s}-placement-end`]:{insetInlineEnd:l(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:l(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},YM=pn(["Badge","Ribbon"],e=>{const t=gw(e);return QM(t)},vw),ZM=e=>{const{className:t,prefixCls:n,style:r,color:o,children:l,text:s,placement:u="end",rootClassName:f}=e,{getPrefixCls:m,direction:p}=c.useContext(It),g=m("ribbon",n),h=`${g}-wrapper`,[y,S,C]=YM(g,h),b=$d(o,!1),$=re(g,`${g}-placement-${u}`,{[`${g}-rtl`]:p==="rtl",[`${g}-color-${o}`]:b},t),w={},R={};return o&&!b&&(w.background=o,R.color=o),y(c.createElement("div",{className:re(h,f,S,C)},l,c.createElement("div",{className:re($,S),style:Object.assign(Object.assign({},w),r)},c.createElement("span",{className:`${g}-text`},s),c.createElement("div",{className:`${g}-corner`,style:R}))))},o1=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let l;return o&&(l={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:l,className:re(`${t}-only-unit`,{current:r})},n)};function JM(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const ej=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),l=Math.abs(n),[s,u]=c.useState(o),[f,m]=c.useState(l),p=()=>{u(o),m(l)};c.useEffect(()=>{const y=setTimeout(p,1e3);return()=>clearTimeout(y)},[o]);let g,h;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[c.createElement(o1,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{g=[];const y=o+10,S=[];for(let w=o;w<=y;w+=1)S.push(w);const C=f<l?1:-1,b=S.findIndex(w=>w%10===s);g=(C<0?S.slice(0,b+1):S.slice(b)).map((w,R)=>{const O=w%10;return c.createElement(o1,Object.assign({},e,{key:w,value:O,offset:C<0?R-b:R,current:R===b}))}),h={transform:`translateY(${-JM(s,o,C)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:p},g)};var tj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nj=c.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:l,style:s,title:u,show:f,component:m="sup",children:p}=e,g=tj(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=c.useContext(It),y=h("scroll-number",n),S=Object.assign(Object.assign({},g),{"data-show":f,style:s,className:re(y,o,l),title:u});let C=r;if(r&&Number(r)%1===0){const b=String(r).split("");C=c.createElement("bdi",null,b.map(($,w)=>c.createElement(ej,{prefixCls:y,count:Number(r),value:$,key:b.length-w})))}return s!=null&&s.borderColor&&(S.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),p?Or(p,b=>({className:re(`${y}-custom-component`,b==null?void 0:b.className,l)})):c.createElement(m,Object.assign({},S,{ref:t}),C)});var rj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oj=c.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:u,scrollNumberPrefixCls:f,children:m,status:p,text:g,color:h,count:y=null,overflowCount:S=99,dot:C=!1,size:b="default",title:$,offset:w,style:R,className:O,rootClassName:I,classNames:P,styles:T,showZero:j=!1}=e,M=rj(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:L,badge:_}=c.useContext(It),A=k("badge",u),[B,q,V]=XM(A),H=y>S?`${S}+`:y,F=H==="0"||H===0||g==="0"||g===0,Z=y===null||F&&!j,W=(p!=null||h!=null)&&Z,z=p!=null||!F,D=C&&!F,Q=D?"":H,ne=c.useMemo(()=>((Q==null||Q==="")&&(g==null||g==="")||F&&!j)&&!D,[Q,F,j,D,g]),ee=c.useRef(y);ne||(ee.current=y);const oe=ee.current,fe=c.useRef(Q);ne||(fe.current=Q);const me=fe.current,ue=c.useRef(D);ne||(ue.current=D);const Ce=c.useMemo(()=>{if(!w)return Object.assign(Object.assign({},_==null?void 0:_.style),R);const $e={marginTop:w[1]};return L==="rtl"?$e.left=Number.parseInt(w[0],10):$e.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},$e),_==null?void 0:_.style),R)},[L,w,R,_==null?void 0:_.style]),pe=$??(typeof oe=="string"||typeof oe=="number"?oe:void 0),se=!ne&&(g===0?j:!!g&&g!==!0),ye=se?c.createElement("span",{className:`${A}-status-text`},g):null,ve=!oe||typeof oe!="object"?void 0:Or(oe,$e=>({style:Object.assign(Object.assign({},Ce),$e.style)})),ce=$d(h,!1),le=re(P==null?void 0:P.indicator,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:W,[`${A}-status-${p}`]:!!p,[`${A}-color-${h}`]:ce}),be={};h&&!ce&&(be.color=h,be.background=h);const Se=re(A,{[`${A}-status`]:W,[`${A}-not-a-wrapper`]:!m,[`${A}-rtl`]:L==="rtl"},O,I,_==null?void 0:_.className,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.root,P==null?void 0:P.root,q,V);if(!m&&W&&(g||z||!Z)){const $e=Ce.color;return B(c.createElement("span",Object.assign({},M,{className:Se,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(o=_==null?void 0:_.styles)===null||o===void 0?void 0:o.root),Ce)}),c.createElement("span",{className:le,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(l=_==null?void 0:_.styles)===null||l===void 0?void 0:l.indicator),be)}),se&&c.createElement("span",{style:{color:$e},className:`${A}-status-text`},g)))}return B(c.createElement("span",Object.assign({ref:t},M,{className:Se,style:Object.assign(Object.assign({},(s=_==null?void 0:_.styles)===null||s===void 0?void 0:s.root),T==null?void 0:T.root)}),m,c.createElement($o,{visible:!ne,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:$e})=>{var je,Le;const Pe=k("scroll-number",f),Be=ue.current,Re=re(P==null?void 0:P.indicator,(je=_==null?void 0:_.classNames)===null||je===void 0?void 0:je.indicator,{[`${A}-dot`]:Be,[`${A}-count`]:!Be,[`${A}-count-sm`]:b==="small",[`${A}-multiple-words`]:!Be&&me&&me.toString().length>1,[`${A}-status-${p}`]:!!p,[`${A}-color-${h}`]:ce});let tt=Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(Le=_==null?void 0:_.styles)===null||Le===void 0?void 0:Le.indicator),Ce);return h&&!ce&&(tt=tt||{},tt.background=h),c.createElement(nj,{prefixCls:Pe,show:!ne,motionClassName:$e,className:Re,count:me,title:pe,style:tt,key:"scrollNumber"},ve)}),ye))}),hw=oj;hw.Ribbon=ZM;var ij={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"},aj=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:ij}))},Es=c.forwardRef(aj),lj=Ue.ESC,sj=Ue.TAB;function cj(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,l=e.overlayRef,s=c.useRef(!1),u=function(){if(t){var g,h;(g=n.current)===null||g===void 0||(h=g.focus)===null||h===void 0||h.call(g),r==null||r(!1)}},f=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),s.current=!0,!0):!1},m=function(g){switch(g.keyCode){case lj:u();break;case sj:{var h=!1;s.current||(h=f()),h?g.preventDefault():u();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&Sn(f,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var uj=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,l=c.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),s=Lo(t,ia(l));return Y.createElement(Y.Fragment,null,r&&Y.createElement("div",{className:"".concat(o,"-arrow")}),Y.cloneElement(l,{ref:Ni(l)?s:void 0}))}),Ha={adjustX:1,adjustY:1},Va=[0,0],dj={topLeft:{points:["bl","tl"],overflow:Ha,offset:[0,-4],targetOffset:Va},top:{points:["bc","tc"],overflow:Ha,offset:[0,-4],targetOffset:Va},topRight:{points:["br","tr"],overflow:Ha,offset:[0,-4],targetOffset:Va},bottomLeft:{points:["tl","bl"],overflow:Ha,offset:[0,4],targetOffset:Va},bottom:{points:["tc","bc"],overflow:Ha,offset:[0,4],targetOffset:Va},bottomRight:{points:["tr","br"],overflow:Ha,offset:[0,4],targetOffset:Va}},fj=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function mj(e,t){var n,r=e.arrow,o=r===void 0?!1:r,l=e.prefixCls,s=l===void 0?"rc-dropdown":l,u=e.transitionName,f=e.animation,m=e.align,p=e.placement,g=p===void 0?"bottomLeft":p,h=e.placements,y=h===void 0?dj:h,S=e.getPopupContainer,C=e.showAction,b=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,R=e.visible,O=e.trigger,I=O===void 0?["hover"]:O,P=e.autoFocus,T=e.overlay,j=e.children,M=e.onVisibleChange,k=jt(e,fj),L=Y.useState(),_=ae(L,2),A=_[0],B=_[1],q="visible"in e?R:A,V=Y.useRef(null),H=Y.useRef(null),F=Y.useRef(null);Y.useImperativeHandle(t,function(){return V.current});var Z=function(me){B(me),M==null||M(me)};cj({visible:q,triggerRef:F,onVisibleChange:Z,autoFocus:P,overlayRef:H});var W=function(me){var ue=e.onOverlayClick;B(!1),ue&&ue(me)},z=function(){return Y.createElement(uj,{ref:H,overlay:T,prefixCls:s,arrow:o})},D=function(){return typeof T=="function"?z:z()},Q=function(){var me=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?me:!ue},ne=function(){var me=e.openClassName;return me!==void 0?me:"".concat(s,"-open")},ee=Y.cloneElement(j,{className:re((n=j.props)===null||n===void 0?void 0:n.className,q&&ne()),ref:Ni(j)?Lo(F,ia(j)):void 0}),oe=b;return!oe&&I.indexOf("contextMenu")!==-1&&(oe=["click"]),Y.createElement(xd,Ee({builtinPlacements:y},k,{prefixCls:s,ref:V,popupClassName:re($,U({},"".concat(s,"-show-arrow"),o)),popupStyle:w,action:I,showAction:C,hideAction:oe,popupPlacement:g,popupAlign:m,popupTransitionName:u,popupAnimation:f,popupVisible:q,stretch:Q()?"minWidth":"",popup:D(),onPopupVisibleChange:Z,onPopupClick:W,getPopupContainer:S}),ee)}const yw=Y.forwardRef(mj),pj=e=>typeof e!="object"&&typeof e!="function"||e===null;var bw=c.createContext(null);function Cw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Sw(e){var t=c.useContext(bw);return Cw(t,e)}var gj=["children","locked"],wo=c.createContext(null);function vj(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Rs(e){var t=e.children,n=e.locked,r=jt(e,gj),o=c.useContext(wo),l=Ms(function(){return vj(o,r)},[o,r],function(s,u){return!n&&(s[0]!==u[0]||!ys(s[1],u[1],!0))});return c.createElement(wo.Provider,{value:l},t)}var hj=[],xw=c.createContext(null);function Ed(){return c.useContext(xw)}var ww=c.createContext(hj);function Sl(e){var t=c.useContext(ww);return c.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var $w=c.createContext(null),lv=c.createContext({});function i1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Hg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),l=Number(o),s=null;return o&&!Number.isNaN(l)?s=l:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function yj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return i1(r,t)});return i1(e,t)&&n.unshift(e),n}var fg=Ue.LEFT,mg=Ue.RIGHT,pg=Ue.UP,Su=Ue.DOWN,xu=Ue.ENTER,Ew=Ue.ESC,Jl=Ue.HOME,es=Ue.END,a1=[pg,Su,fg,mg];function bj(e,t,n,r){var o,l="prev",s="next",u="children",f="parent";if(e==="inline"&&r===xu)return{inlineTrigger:!0};var m=U(U({},pg,l),Su,s),p=U(U(U(U({},fg,n?s:l),mg,n?l:s),Su,u),xu,u),g=U(U(U(U(U(U({},pg,l),Su,s),xu,u),Ew,f),fg,n?u:f),mg,n?f:u),h={inline:m,horizontal:p,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},y=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(y){case l:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Cj(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Sj(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function sv(e,t){var n=yj(e,!0);return n.filter(function(r){return t.has(r)})}function l1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=sv(e,t),l=o.length,s=o.findIndex(function(u){return n===u});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,o[s]}var gg=function(t,n){var r=new Set,o=new Map,l=new Map;return t.forEach(function(s){var u=document.querySelector("[data-menu-id='".concat(Cw(n,s),"']"));u&&(r.add(u),l.set(u,s),o.set(s,u))}),{elements:r,key2element:o,element2key:l}};function xj(e,t,n,r,o,l,s,u,f,m){var p=c.useRef(),g=c.useRef();g.current=t;var h=function(){Sn.cancel(p.current)};return c.useEffect(function(){return function(){h()}},[]),function(y){var S=y.which;if([].concat(a1,[xu,Ew,Jl,es]).includes(S)){var C=l(),b=gg(C,r),$=b,w=$.elements,R=$.key2element,O=$.element2key,I=R.get(t),P=Sj(I,w),T=O.get(P),j=bj(e,s(T,!0).length===1,n,S);if(!j&&S!==Jl&&S!==es)return;(a1.includes(S)||[Jl,es].includes(S))&&y.preventDefault();var M=function(H){if(H){var F=H,Z=H.querySelector("a");Z!=null&&Z.getAttribute("href")&&(F=Z);var W=O.get(H);u(W),h(),p.current=Sn(function(){g.current===W&&F.focus()})}};if([Jl,es].includes(S)||j.sibling||!P){var k;!P||e==="inline"?k=o.current:k=Cj(P);var L,_=sv(k,w);S===Jl?L=_[0]:S===es?L=_[_.length-1]:L=l1(k,w,P,j.offset),M(L)}else if(j.inlineTrigger)f(T);else if(j.offset>0)f(T,!0),h(),p.current=Sn(function(){b=gg(C,r);var V=P.getAttribute("aria-controls"),H=document.getElementById(V),F=l1(H,b.elements);M(F)},5);else if(j.offset<0){var A=s(T,!0),B=A[A.length-2],q=R.get(B);f(B,!1),M(q)}}m==null||m(y)}}function wj(e){Promise.resolve().then(e)}var cv="__RC_UTIL_PATH_SPLIT__",s1=function(t){return t.join(cv)},$j=function(t){return t.split(cv)},vg="rc-menu-more";function Ej(){var e=c.useState({}),t=ae(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),l=c.useState([]),s=ae(l,2),u=s[0],f=s[1],m=c.useRef(0),p=c.useRef(!1),g=function(){p.current||n({})},h=c.useCallback(function(R,O){var I=s1(O);o.current.set(I,R),r.current.set(R,I),m.current+=1;var P=m.current;wj(function(){P===m.current&&g()})},[]),y=c.useCallback(function(R,O){var I=s1(O);o.current.delete(I),r.current.delete(R)},[]),S=c.useCallback(function(R){f(R)},[]),C=c.useCallback(function(R,O){var I=r.current.get(R)||"",P=$j(I);return O&&u.includes(P[0])&&P.unshift(vg),P},[u]),b=c.useCallback(function(R,O){return R.filter(function(I){return I!==void 0}).some(function(I){var P=C(I,!0);return P.includes(O)})},[C]),$=function(){var O=Ae(r.current.keys());return u.length&&O.push(vg),O},w=c.useCallback(function(R){var O="".concat(r.current.get(R)).concat(cv),I=new Set;return Ae(o.current.keys()).forEach(function(P){P.startsWith(O)&&I.add(o.current.get(P))}),I},[]);return c.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:h,unregisterPath:y,refreshOverflowKeys:S,isSubPathKey:b,getKeyPath:C,getKeys:$,getSubPathKeys:w}}function as(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var Rj=Math.random().toFixed(5).toString().slice(2),c1=0;function Oj(e){var t=Vn(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return c.useEffect(function(){c1+=1;var l="".concat(Rj,"-").concat(c1);o("rc-menu-uuid-".concat(l))},[]),r}function Rw(e,t,n,r){var o=c.useContext(wo),l=o.activeKey,s=o.onActive,u=o.onInactive,f={active:l===e};return t||(f.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),s(e)},f.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),u(e)}),f}function Ow(e){var t=c.useContext(wo),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*o}:{paddingLeft:l*o}}function Iw(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,X({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Ij=["item"];function Du(e){var t=e.item,n=jt(e,Ij);return Object.defineProperty(n,"item",{get:function(){return cr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Pj=["title","attribute","elementRef"],Tj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Mj=["active"],jj=(function(e){ei(n,e);var t=ti(n);function n(){return Un(this,n),t.apply(this,arguments)}return qn(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,u=o.elementRef,f=jt(o,Pj),m=Wn(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return cr(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Mo.Item,Ee({},s,{title:typeof l=="string"?l:void 0},m,{ref:u}))}}]),n})(c.Component),kj=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,u=e.children,f=e.role,m=e.onMouseEnter,p=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,y=e.onFocus,S=jt(e,Tj),C=Sw(o),b=c.useContext(wo),$=b.prefixCls,w=b.onItemClick,R=b.disabled,O=b.overflowDisabled,I=b.itemIcon,P=b.selectedKeys,T=b.onActive,j=c.useContext(lv),M=j._internalRenderMenuItem,k="".concat($,"-item"),L=c.useRef(),_=c.useRef(),A=R||l,B=Jo(t,_),q=Sl(o),V=function(ue){return{key:o,keyPath:Ae(q).reverse(),item:L.current,domEvent:ue}},H=s||I,F=Rw(o,A,m,p),Z=F.active,W=jt(F,Mj),z=P.includes(o),D=Ow(q.length),Q=function(ue){if(!A){var Ce=V(ue);g==null||g(Du(Ce)),w(Ce)}},ne=function(ue){if(h==null||h(ue),ue.which===Ue.ENTER){var Ce=V(ue);g==null||g(Du(Ce)),w(Ce)}},ee=function(ue){T(o),y==null||y(ue)},oe={};e.role==="option"&&(oe["aria-selected"]=z);var fe=c.createElement(jj,Ee({ref:L,elementRef:B,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":O&&C?null:C},Wn(S,["extra"]),W,oe,{component:"li","aria-disabled":l,style:X(X({},D),n),className:re(k,U(U(U({},"".concat(k,"-active"),Z),"".concat(k,"-selected"),z),"".concat(k,"-disabled"),A),r),onClick:Q,onKeyDown:ne,onFocus:ee}),u,c.createElement(Iw,{props:X(X({},e),{},{isSelected:z}),icon:H}));return M&&(fe=M(fe,e,{selected:z})),fe});function Nj(e,t){var n=e.eventKey,r=Ed(),o=Sl(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(kj,Ee({},e,{ref:t}))}const Vs=c.forwardRef(Nj);var _j=["className","children"],zj=function(t,n){var r=t.className,o=t.children,l=jt(t,_j),s=c.useContext(wo),u=s.prefixCls,f=s.mode,m=s.rtl;return c.createElement("ul",Ee({className:re(u,m&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(f==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},uv=c.forwardRef(zj);uv.displayName="SubMenuList";function dv(e,t){return Rr(e).map(function(n,r){if(c.isValidElement(n)){var o,l,s=n.key,u=(o=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&o!==void 0?o:s,f=u==null;f&&(u="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var m={key:u,eventKey:u};return c.cloneElement(n,m)}return n})}var br={adjustX:1,adjustY:1},Lj={topLeft:{points:["bl","tl"],overflow:br},topRight:{points:["br","tr"],overflow:br},bottomLeft:{points:["tl","bl"],overflow:br},bottomRight:{points:["tr","br"],overflow:br},leftTop:{points:["tr","tl"],overflow:br},leftBottom:{points:["br","bl"],overflow:br},rightTop:{points:["tl","tr"],overflow:br},rightBottom:{points:["bl","br"],overflow:br}},Bj={topLeft:{points:["bl","tl"],overflow:br},topRight:{points:["br","tr"],overflow:br},bottomLeft:{points:["tl","bl"],overflow:br},bottomRight:{points:["tr","br"],overflow:br},rightTop:{points:["tr","tl"],overflow:br},rightBottom:{points:["br","bl"],overflow:br},leftTop:{points:["tl","tr"],overflow:br},leftBottom:{points:["bl","br"],overflow:br}};function Pw(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Aj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Fj(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,f=e.disabled,m=e.mode,p=e.onVisibleChange,g=c.useContext(wo),h=g.getPopupContainer,y=g.rtl,S=g.subMenuOpenDelay,C=g.subMenuCloseDelay,b=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,R=g.rootClassName,O=g.motion,I=g.defaultMotions,P=c.useState(!1),T=ae(P,2),j=T[0],M=T[1],k=X(y?X({},Bj):X({},Lj),b),L=Aj[m],_=Pw(m,O,I),A=c.useRef(_);m!=="inline"&&(A.current=_);var B=X(X({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),q=c.useRef();return c.useEffect(function(){return q.current=Sn(function(){M(n)}),function(){Sn.cancel(q.current)}},[n]),c.createElement(xd,{prefixCls:t,popupClassName:re("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),y),s,R),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:k,popupPlacement:L,popupVisible:j,popup:o,popupStyle:l,popupAlign:u&&{offset:u},action:f?[]:[$],mouseEnterDelay:S,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:w,popupMotion:B,fresh:!0},r)}function Dj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=c.useContext(wo),u=s.prefixCls,f=s.forceSubMenuRender,m=s.motion,p=s.defaultMotions,g=s.mode,h=c.useRef(!1);h.current=g===l;var y=c.useState(!h.current),S=ae(y,2),C=S[0],b=S[1],$=h.current?n:!1;c.useEffect(function(){h.current&&b(!1)},[g]);var w=X({},Pw(l,m,p));r.length>1&&(w.motionAppear=!1);var R=w.onVisibleChanged;return w.onVisibleChanged=function(O){return!h.current&&!O&&b(!0),R==null?void 0:R(O)},C?null:c.createElement(Rs,{mode:l,locked:!h.current},c.createElement($o,Ee({visible:$},w,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(O){var I=O.className,P=O.style;return c.createElement(uv,{id:t,className:I,style:P},o)}))}var Hj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Vj=["active"],Wj=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,u=e.internalPopupClose,f=e.children,m=e.itemIcon,p=e.expandIcon,g=e.popupClassName,h=e.popupOffset,y=e.popupStyle,S=e.onClick,C=e.onMouseEnter,b=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,R=e.onTitleMouseLeave,O=jt(e,Hj),I=Sw(l),P=c.useContext(wo),T=P.prefixCls,j=P.mode,M=P.openKeys,k=P.disabled,L=P.overflowDisabled,_=P.activeKey,A=P.selectedKeys,B=P.itemIcon,q=P.expandIcon,V=P.onItemClick,H=P.onOpenChange,F=P.onActive,Z=c.useContext(lv),W=Z._internalRenderSubMenuItem,z=c.useContext($w),D=z.isSubPathKey,Q=Sl(),ne="".concat(T,"-submenu"),ee=k||s,oe=c.useRef(),fe=c.useRef(),me=m??B,ue=p??q,Ce=M.includes(l),pe=!L&&Ce,se=D(A,l),ye=Rw(l,ee,w,R),ve=ye.active,ce=jt(ye,Vj),le=c.useState(!1),be=ae(le,2),Se=be[0],$e=be[1],je=function(Te){ee||$e(Te)},Le=function(Te){je(!0),C==null||C({key:l,domEvent:Te})},Pe=function(Te){je(!1),b==null||b({key:l,domEvent:Te})},Be=c.useMemo(function(){return ve||(j!=="inline"?Se||D([_],l):!1)},[j,ve,_,Se,l,D]),Re=Ow(Q.length),tt=function(Te){ee||($==null||$({key:l,domEvent:Te}),j==="inline"&&H(l,!Ce))},lt=as(function(Ye){S==null||S(Du(Ye)),V(Ye)}),bt=function(Te){j!=="inline"&&H(l,Te)},st=function(){F(l)},qe=I&&"".concat(I,"-popup"),it=c.useMemo(function(){return c.createElement(Iw,{icon:j!=="horizontal"?ue:void 0,props:X(X({},e),{},{isOpen:pe,isSubMenu:!0})},c.createElement("i",{className:"".concat(ne,"-arrow")}))},[j,ue,e,pe,ne]),Ve=c.createElement("div",Ee({role:"menuitem",style:Re,className:"".concat(ne,"-title"),tabIndex:ee?null:-1,ref:oe,title:typeof o=="string"?o:null,"data-menu-id":L&&I?null:I,"aria-expanded":pe,"aria-haspopup":!0,"aria-controls":qe,"aria-disabled":ee,onClick:tt,onFocus:st},ce),o,it),dt=c.useRef(j);if(j!=="inline"&&Q.length>1?dt.current="vertical":dt.current=j,!L){var Xe=dt.current;Ve=c.createElement(Fj,{mode:Xe,prefixCls:ne,visible:!u&&pe&&j!=="inline",popupClassName:g,popupOffset:h,popupStyle:y,popup:c.createElement(Rs,{mode:Xe==="horizontal"?"vertical":Xe},c.createElement(uv,{id:qe,ref:fe},f)),disabled:ee,onVisibleChange:bt},Ve)}var ke=c.createElement(Mo.Item,Ee({ref:t,role:"none"},O,{component:"li",style:n,className:re(ne,"".concat(ne,"-").concat(j),r,U(U(U(U({},"".concat(ne,"-open"),pe),"".concat(ne,"-active"),Be),"".concat(ne,"-selected"),se),"".concat(ne,"-disabled"),ee)),onMouseEnter:Le,onMouseLeave:Pe}),Ve,!L&&c.createElement(Dj,{id:qe,open:pe,keyPath:Q},f));return W&&(ke=W(ke,e,{selected:se,active:Be,open:pe,disabled:ee})),c.createElement(Rs,{onItemClick:lt,mode:j==="horizontal"?"vertical":j,itemIcon:me,expandIcon:ue},ke)}),Rd=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Sl(n),l=dv(r,o),s=Ed();c.useEffect(function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}},[o]);var u;return s?u=l:u=c.createElement(Wj,Ee({ref:t},e),l),c.createElement(ww.Provider,{value:o},u)});function fv(e){var t=e.className,n=e.style,r=c.useContext(wo),o=r.prefixCls,l=Ed();return l?null:c.createElement("li",{role:"separator",className:re("".concat(o,"-item-divider"),t),style:n})}var Uj=["className","title","eventKey","children"],qj=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=jt(e,Uj),s=c.useContext(wo),u=s.prefixCls,f="".concat(u,"-item-group");return c.createElement("li",Ee({ref:t,role:"presentation"},l,{onClick:function(p){return p.stopPropagation()},className:re(f,n)}),c.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(f,"-list")},o))}),mv=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Sl(n),l=dv(r,o),s=Ed();return s?l:c.createElement(qj,Ee({ref:t},Wn(e,["warnKey"])),l)}),Gj=["label","children","key","type","extra"];function hg(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(u,f){if(u&&mt(u)==="object"){var m=u,p=m.label,g=m.children,h=m.key,y=m.type,S=m.extra,C=jt(m,Gj),b=h??"tmp-".concat(f);return g||y==="group"?y==="group"?c.createElement(o,Ee({key:b},C,{title:p}),hg(g,t,n)):c.createElement(l,Ee({key:b},C,{title:p}),hg(g,t,n)):y==="divider"?c.createElement(s,Ee({key:b},C)):c.createElement(r,Ee({key:b},C,{extra:S}),p,(!!S||S===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},S))}return null}).filter(function(u){return u})}function u1(e,t,n,r,o){var l=e,s=X({divider:fv,item:Vs,group:mv,submenu:Rd},r);return t&&(l=hg(t,s,o)),dv(l,n)}var Kj=["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"],Gi=[],Xj=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,l=o===void 0?"rc-menu":o,s=r.rootClassName,u=r.style,f=r.className,m=r.tabIndex,p=m===void 0?0:m,g=r.items,h=r.children,y=r.direction,S=r.id,C=r.mode,b=C===void 0?"vertical":C,$=r.inlineCollapsed,w=r.disabled,R=r.disabledOverflow,O=r.subMenuOpenDelay,I=O===void 0?.1:O,P=r.subMenuCloseDelay,T=P===void 0?.1:P,j=r.forceSubMenuRender,M=r.defaultOpenKeys,k=r.openKeys,L=r.activeKey,_=r.defaultActiveFirst,A=r.selectable,B=A===void 0?!0:A,q=r.multiple,V=q===void 0?!1:q,H=r.defaultSelectedKeys,F=r.selectedKeys,Z=r.onSelect,W=r.onDeselect,z=r.inlineIndent,D=z===void 0?24:z,Q=r.motion,ne=r.defaultMotions,ee=r.triggerSubMenuAction,oe=ee===void 0?"hover":ee,fe=r.builtinPlacements,me=r.itemIcon,ue=r.expandIcon,Ce=r.overflowedIndicator,pe=Ce===void 0?"...":Ce,se=r.overflowedIndicatorPopupClassName,ye=r.getPopupContainer,ve=r.onClick,ce=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,Se=r._internalRenderSubMenuItem,$e=r._internalComponents,je=jt(r,Kj),Le=c.useMemo(function(){return[u1(h,g,Gi,$e,l),u1(h,g,Gi,{},l)]},[h,g,$e]),Pe=ae(Le,2),Be=Pe[0],Re=Pe[1],tt=c.useState(!1),lt=ae(tt,2),bt=lt[0],st=lt[1],qe=c.useRef(),it=Oj(S),Ve=y==="rtl",dt=Vn(M,{value:k,postState:function(nt){return nt||Gi}}),Xe=ae(dt,2),ke=Xe[0],Ye=Xe[1],Te=function(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Gt(){Ye(nt),ce==null||ce(nt)}Je?Pi.flushSync(Gt):Gt()},De=c.useState(ke),wt=ae(De,2),pt=wt[0],Vt=wt[1],Dt=c.useRef(!1),an=c.useMemo(function(){return(b==="inline"||b==="vertical")&&$?["vertical",$]:[b,!1]},[b,$]),yn=ae(an,2),Ut=yn[0],Mt=yn[1],Ct=Ut==="inline",qt=c.useState(Ut),Bt=ae(qt,2),Ze=Bt[0],yt=Bt[1],at=c.useState(Mt),Oe=ae(at,2),we=Oe[0],xe=Oe[1];c.useEffect(function(){yt(Ut),xe(Mt),Dt.current&&(Ct?Ye(pt):Te(Gi))},[Ut,Mt]);var Ne=c.useState(0),Ke=ae(Ne,2),Qe=Ke[0],kt=Ke[1],zt=Qe>=Be.length-1||Ze!=="horizontal"||R;c.useEffect(function(){Ct&&Vt(ke)},[ke]),c.useEffect(function(){return Dt.current=!0,function(){Dt.current=!1}},[]);var Ot=Ej(),Pt=Ot.registerPath,vn=Ot.unregisterPath,dn=Ot.refreshOverflowKeys,bn=Ot.isSubPathKey,On=Ot.getKeyPath,Xt=Ot.getKeys,en=Ot.getSubPathKeys,_e=c.useMemo(function(){return{registerPath:Pt,unregisterPath:vn}},[Pt,vn]),We=c.useMemo(function(){return{isSubPathKey:bn}},[bn]);c.useEffect(function(){dn(zt?Gi:Be.slice(Qe+1).map(function(Zt){return Zt.key}))},[Qe,zt]);var xt=Vn(L||_&&((n=Be[0])===null||n===void 0?void 0:n.key),{value:L}),ct=ae(xt,2),et=ct[0],Ge=ct[1],St=as(function(Zt){Ge(Zt)}),Lt=as(function(){Ge(void 0)});c.useImperativeHandle(t,function(){return{list:qe.current,focus:function(nt){var Je,Gt=Xt(),Jt=gg(Gt,it),ln=Jt.elements,un=Jt.key2element,ar=Jt.element2key,Ln=sv(qe.current,ln),_t=et??(Ln[0]?ar.get(Ln[0]):(Je=Be.find(function(Tr){return!Tr.props.disabled}))===null||Je===void 0?void 0:Je.key),Xn=un.get(_t);if(_t&&Xn){var Jn;Xn==null||(Jn=Xn.focus)===null||Jn===void 0||Jn.call(Xn,nt)}}}});var He=Vn(H||[],{value:F,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Gi:[nt]}}),ut=ae(He,2),$t=ut[0],nn=ut[1],zn=function(nt){if(B){var Je=nt.key,Gt=$t.includes(Je),Jt;V?Gt?Jt=$t.filter(function(un){return un!==Je}):Jt=[].concat(Ae($t),[Je]):Jt=[Je],nn(Jt);var ln=X(X({},nt),{},{selectedKeys:Jt});Gt?W==null||W(ln):Z==null||Z(ln)}!V&&ke.length&&Ze!=="inline"&&Te(Gi)},$n=as(function(Zt){ve==null||ve(Du(Zt)),zn(Zt)}),ur=as(function(Zt,nt){var Je=ke.filter(function(Jt){return Jt!==Zt});if(nt)Je.push(Zt);else if(Ze!=="inline"){var Gt=en(Zt);Je=Je.filter(function(Jt){return!Gt.has(Jt)})}ys(ke,Je,!0)||Te(Je,!0)}),Gn=function(nt,Je){var Gt=Je??!ke.includes(nt);ur(nt,Gt)},dr=xj(Ze,et,Ve,it,qe,Xt,On,Ge,Gn,le);c.useEffect(function(){st(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:Se}},[be,Se]),ir=Ze!=="horizontal"||R?Be:Be.map(function(Zt,nt){return c.createElement(Rs,{key:Zt.key,overflowDisabled:nt>Qe},Zt)}),fr=c.createElement(Mo,Ee({id:S,ref:qe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Vs,className:re(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),f,U(U({},"".concat(l,"-inline-collapsed"),we),"".concat(l,"-rtl"),Ve),s),dir:y,style:u,role:"menu",tabIndex:p,data:ir,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var Je=nt.length,Gt=Je?Be.slice(-Je):null;return c.createElement(Rd,{eventKey:vg,title:pe,disabled:zt,internalPopupClose:Je===0,popupClassName:se},Gt)},maxCount:Ze!=="horizontal"||R?Mo.INVALIDATE:Mo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){kt(nt)},onKeyDown:dr},je));return c.createElement(lv.Provider,{value:Kn},c.createElement(bw.Provider,{value:it},c.createElement(Rs,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:ke,rtl:Ve,disabled:w,motion:bt?Q:null,defaultMotions:bt?ne:null,activeKey:et,onActive:St,onInactive:Lt,selectedKeys:$t,inlineIndent:D,subMenuOpenDelay:I,subMenuCloseDelay:T,forceSubMenuRender:j,builtinPlacements:fe,triggerSubMenuAction:oe,getPopupContainer:ye,itemIcon:me,expandIcon:ue,onItemClick:$n,onOpenChange:ur},c.createElement($w.Provider,{value:We},fr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(xw.Provider,{value:_e},Re)))))}),xl=Xj;xl.Item=Vs;xl.SubMenu=Rd;xl.ItemGroup=mv;xl.Divider=fv;var Qj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Yj=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:Qj}))},Zj=c.forwardRef(Yj);const Tw=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Jj=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:f,fontSize:m,bodyBg:p,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:J(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:m,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Mw=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:u,colorBgContainer:f}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:o,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:o}},jw=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],kw=pn("Layout",Jj,Mw,{deprecatedTokens:jw}),ek=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:u,triggerBg:f,headerHeight:m,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:h,lightSiderBg:y,lightTriggerColor:S,lightTriggerBg:C,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:u,lineHeight:J(s),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${J(h)} ${J(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${J(h)} 0 0 ${J(h)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:S,background:C},[`${t}-zero-width-trigger`]:{color:S,background:C,border:`1px solid ${b}`,borderInlineStart:0}}}}},tk=pn(["Layout","Sider"],ek,Mw,{deprecatedTokens:jw});var nk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d1={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},rk=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Od=c.createContext({}),ok=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Nw=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:u="dark",style:f={},collapsible:m=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:y,breakpoint:S,onCollapse:C,onBreakpoint:b}=e,$=nk(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=c.useContext(Tw),[R,O]=c.useState("collapsed"in e?e.collapsed:s),[I,P]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const T=(me,ue)=>{"collapsed"in e||O(me),C==null||C(me,ue)},{getPrefixCls:j,direction:M}=c.useContext(It),k=j("layout-sider",n),[L,_,A]=tk(k),B=c.useRef(null);B.current=me=>{P(me.matches),b==null||b(me.matches),R!==me.matches&&T(me.matches,"responsive")},c.useEffect(()=>{function me(Ce){var pe;return(pe=B.current)===null||pe===void 0?void 0:pe.call(B,Ce)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&S&&S in d1&&(ue=window.matchMedia(`screen and (max-width: ${d1[S]})`),aw(ue,me),me(ue)),()=>{lw(ue,me)}},[S]),c.useEffect(()=>{const me=ok("ant-sider-");return w.addSider(me),()=>w.removeSider(me)},[]);const q=()=>{T(!R,"clickTrigger")},V=Wn($,["collapsed"]),H=R?h:g,F=rk(H)?`${H}px`:String(H),Z=Number.parseFloat(String(h||0))===0?c.createElement("span",{onClick:q,className:re(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${p?"right":"left"}`),style:y},o||c.createElement(Zj,null)):null,W=M==="rtl"==!p,Q={expanded:W?c.createElement(ul,null):c.createElement(Es,null),collapsed:W?c.createElement(Es,null):c.createElement(ul,null)}[R?"collapsed":"expanded"],ne=o!==null?Z||c.createElement("div",{className:`${k}-trigger`,onClick:q,style:{width:F}},o||Q):null,ee=Object.assign(Object.assign({},f),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),oe=re(k,`${k}-${u}`,{[`${k}-collapsed`]:!!R,[`${k}-has-trigger`]:m&&o!==null&&!Z,[`${k}-below`]:!!I,[`${k}-zero-width`]:Number.parseFloat(F)===0},r,_,A),fe=c.useMemo(()=>({siderCollapsed:R}),[R]);return L(c.createElement(Od.Provider,{value:fe},c.createElement("aside",Object.assign({className:oe},V,{style:ee,ref:t}),c.createElement("div",{className:`${k}-children`},l),m||I&&Z?ne:null)))});var ik={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"},ak=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:ik}))},pv=c.forwardRef(ak);const Hu=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var lk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _w=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=lk(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=c.useContext(It),s=l("menu",t),u=re({[`${s}-item-divider-dashed`]:!!r},n);return c.createElement(fv,Object.assign({className:u},o))},zw=e=>{var t;const{className:n,children:r,icon:o,title:l,danger:s,extra:u}=e,{prefixCls:f,firstLevel:m,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h}=c.useContext(Hu),y=R=>{const O=r==null?void 0:r[0],I=c.createElement("span",{className:re(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!u||u===0})},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&R&&m&&typeof O=="string"?c.createElement("div",{className:`${f}-inline-collapsed-noicon`},O.charAt(0)):I},{siderCollapsed:S}=c.useContext(Od);let C=l;typeof l>"u"?C=m?r:"":l===!1&&(C="");const b={title:C};!S&&!h&&(b.title=null,b.open=!1);const $=Rr(r).length;let w=c.createElement(Vs,Object.assign({},Wn(e,["title","icon","danger"]),{className:re({[`${f}-item-danger`]:s,[`${f}-item-only-child`]:(o?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),Or(o,{className:re(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${f}-item-icon`)}),y(h));return g||(w=c.createElement(Cl,Object.assign({},b,{placement:p==="rtl"?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),w)),w};var sk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vu=c.createContext(null),ck=c.forwardRef((e,t)=>{const{children:n}=e,r=sk(e,["children"]),o=c.useContext(Vu),l=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=PE(n),u=Jo(t,s?ia(n):null);return c.createElement(Vu.Provider,{value:l},c.createElement(yd,{space:!0},s?c.cloneElement(n,{ref:u}):n))}),uk=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:l,lineType:s,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${J(l)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
250
+ > ${t}-item-active,
251
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},dk=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
252
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${J(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${J(t)})`}}}}),f1=e=>cl(e),m1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:u,subMenuItemBg:f,itemSelectedBg:m,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:h,motionDurationSlow:y,motionEaseInOut:S,motionEaseOut:C,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:w,lineType:R,colorSplit:O,itemDisabledColor:I,dangerItemColor:P,dangerItemHoverColor:T,dangerItemSelectedColor:j,dangerItemActiveBg:M,dangerItemSelectedBg:k,popupBg:L,itemHoverBg:_,itemActiveBg:A,menuSubMenuBg:B,horizontalItemSelectedColor:q,horizontalItemSelectedBg:V,horizontalItemBorderRadius:H,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},f1(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},f1(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${I} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:P,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:B},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${J(p)} solid transparent`,transition:`border-color ${y} ${S}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:p,borderBottomColor:q}},"&-selected":{color:q,backgroundColor:V,"&:hover":{backgroundColor:V},"&::after":{borderBottomWidth:p,borderBottomColor:q}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${J(h)} ${R} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${J(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${C}`,`opacity ${$} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${S}`,`opacity ${$} ${S}`].join(",")}}}}}},p1=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:l,marginXS:s,itemMarginBlock:u,itemWidth:f,itemPaddingInline:m}=e,p=e.calc(l).add(o).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:J(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:f},[`> ${t}-item,
253
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:J(n)},[`${t}-item-group-list ${t}-submenu-title,
254
+ ${t}-submenu-title`]:{paddingInlineEnd:p}}},fk=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:s,motionEaseOut:u,paddingXL:f,itemMarginInline:m,fontSizeLG:p,motionDurationFast:g,motionDurationSlow:h,paddingXS:y,boxShadowSecondary:S,collapsedWidth:C,collapsedIconSize:b}=e,$={height:r,lineHeight:J(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},p1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},p1(e)),{boxShadow:S})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${J(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${g} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
255
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
256
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
257
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${J(e.calc(b).div(2).equal())} - ${J(m)})`,textOverflow:"clip",[`
258
+ ${t}-submenu-arrow,
259
+ ${t}-submenu-expand-icon
260
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:J(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},xs),{paddingInline:y})}}]},g1=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:l,iconCls:s,iconSize:u,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},pl()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},v1=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:l,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${J(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${J(s)})`}}}}},mk=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:s,paddingXS:u,padding:f,colorSplit:m,lineWidth:p,zIndexPopup:g,borderRadiusLG:h,subMenuItemBorderRadius:y,menuArrowSize:S,menuArrowOffset:C,lineType:b,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Tu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),Tu()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${J(u)} ${J(f)}`,fontSize:w,lineHeight:$,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${l} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:b,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),g1(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${J(e.calc(r).mul(2).equal())} ${J(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},g1(e)),v1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),v1(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
261
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${J(C)})`},"&::after":{transform:`rotate(45deg) translateX(${J(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${J(e.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${J(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${J(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},pk=e=>{var t,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:u,colorText:f,colorTextDescription:m,colorBgContainer:p,colorFillAlter:g,colorFillContent:h,lineWidth:y,lineWidthBold:S,controlItemBgActive:C,colorBgTextHover:b,controlHeightLG:$,lineHeight:w,colorBgElevated:R,marginXXS:O,padding:I,fontSize:P,controlHeightSM:T,fontSizeLG:j,colorTextLightSolid:M,colorErrorHover:k}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,B=new cn(M).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:f,itemColor:f,colorItemTextHover:f,itemHoverColor:f,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:p,itemBg:p,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:h,itemActiveBg:C,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:S,activeBarHeight:S,colorActiveBarBorderSize:y,activeBarBorderWidth:_,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:R,itemMarginBlock:O,itemPaddingInline:I,horizontalLineHeight:`${$*1.15}px`,iconSize:P,iconMarginInlineEnd:T-P,collapsedIconSize:j,groupTitleFontSize:P,darkItemDisabledColor:new cn(M).setA(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:M,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:l,itemWidth:L?`calc(100% + ${_}px)`:`calc(100% - ${A*2}px)`}},gk=(e,t=e,n=!0)=>pn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:u,darkItemColor:f,darkDangerItemColor:m,darkItemBg:p,darkSubMenuItemBg:g,darkItemSelectedColor:h,darkItemSelectedBg:y,darkDangerItemSelectedBg:S,darkItemHoverBg:C,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:I,popupBg:P,darkPopupBg:T}=o,j=o.calc(u).div(7).mul(5).equal(),M=Yt(o,{menuArrowSize:j,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(j).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:P}),k=Yt(M,{itemColor:f,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:p,popupBg:T,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:w,dangerItemColor:m,dangerItemHoverColor:R,dangerItemSelectedColor:O,dangerItemActiveBg:I,dangerItemSelectedBg:S,menuSubMenuBg:g,horizontalItemSelectedColor:h,horizontalItemSelectedBg:y});return[mk(M),uk(M),fk(M),m1(M,"light"),m1(k,"dark"),dk(M),ex(M),ki(M,"slide-up"),ki(M,"slide-down"),Ls(M,"zoom-big")]},pk,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),Lw=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:l}=e,s=c.useContext(Hu),{prefixCls:u,inlineCollapsed:f,theme:m}=s,p=Sl();let g;if(!r)g=f&&!p.length&&o&&typeof o=="string"?c.createElement("div",{className:`${u}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${u}-title-content`},o);else{const S=c.isValidElement(o)&&o.type==="span";g=c.createElement(c.Fragment,null,Or(r,{className:re(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),S?o:c.createElement("span",{className:`${u}-title-content`},o))}const h=c.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[y]=Ns("Menu");return c.createElement(Hu.Provider,{value:h},c.createElement(Rd,Object.assign({},Wn(e,["icon"]),{title:g,popupClassName:re(u,n,`${u}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var vk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ym(e){return e===null||e===!1}const hk={item:zw,submenu:Lw,divider:_w},yk=c.forwardRef((e,t)=>{var n;const r=c.useContext(Vu),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:u,menu:f}=c.useContext(It),m=l(),{prefixCls:p,className:g,style:h,theme:y="light",expandIcon:S,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:b,siderCollapsed:$,rootClassName:w,mode:R,selectable:O,onClick:I,overflowedIndicatorPopupClassName:P}=e,T=vk(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=Wn(T,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:R});const M=Nn((...D)=>{var Q;I==null||I.apply(void 0,D),(Q=o.onClick)===null||Q===void 0||Q.call(o)}),k=o.mode||R,L=O??o.selectable,_=b??$,A={horizontal:{motionName:`${m}-slide-up`},inline:US(m),other:{motionName:`${m}-zoom-big`}},B=l("menu",p||o.prefixCls),q=ri(B),[V,H,F]=gk(B,q,!r),Z=re(`${B}-${y}`,f==null?void 0:f.className,g),W=c.useMemo(()=>{var D,Q;if(typeof S=="function"||Ym(S))return S||null;if(typeof o.expandIcon=="function"||Ym(o.expandIcon))return o.expandIcon||null;if(typeof(f==null?void 0:f.expandIcon)=="function"||Ym(f==null?void 0:f.expandIcon))return(f==null?void 0:f.expandIcon)||null;const ne=(D=S??(o==null?void 0:o.expandIcon))!==null&&D!==void 0?D:f==null?void 0:f.expandIcon;return Or(ne,{className:re(`${B}-submenu-expand-icon`,c.isValidElement(ne)?(Q=ne.props)===null||Q===void 0?void 0:Q.className:void 0)})},[S,o==null?void 0:o.expandIcon,f==null?void 0:f.expandIcon,B]),z=c.useMemo(()=>({prefixCls:B,inlineCollapsed:_||!1,direction:u,firstLevel:!0,theme:y,mode:k,disableMenuItemTitleTooltip:C}),[B,_,u,C,y]);return V(c.createElement(Vu.Provider,{value:null},c.createElement(Hu.Provider,{value:z},c.createElement(xl,Object.assign({getPopupContainer:s,overflowedIndicator:c.createElement(pv,null),overflowedIndicatorPopupClassName:re(B,`${B}-${y}`,P),mode:k,selectable:L,onClick:M},j,{inlineCollapsed:_,style:Object.assign(Object.assign({},f==null?void 0:f.style),h),className:Z,prefixCls:B,direction:u,defaultMotions:A,expandIcon:W,ref:t,rootClassName:re(w,H,o.rootClassName,F,q),_internalComponents:hk})))))}),Ws=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(Od);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),c.createElement(yk,Object.assign({ref:n},e,r))});Ws.Item=zw;Ws.SubMenu=Lw;Ws.Divider=_w;Ws.ItemGroup=mv;const bk=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Ck=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:l,antCls:s,iconCls:u,motionDurationMid:f,paddingBlock:m,fontSize:p,dropdownEdgeChildPadding:g,colorTextDisabled:h,fontSizeIcon:y,controlPaddingHorizontal:S,colorBgElevated:C}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${u}-down, & > ${s}-btn-icon > ${u}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${u}-down`]:{fontSize:y},[`${u}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
262
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
263
+ &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
264
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
265
+ &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
266
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Wg},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
267
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
268
+ &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
269
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
270
+ &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
271
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:qg},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
272
+ &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
273
+ &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ug},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
274
+ &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
275
+ &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Gg}}},av(e,C,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Fn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ko(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${J(m)} ${J(S)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${J(m)} ${J(S)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ko(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${J(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${J(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(S).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ki(e,"slide-up"),ki(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down"),Ls(e,"zoom-big")]]},Sk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},wd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),iv(e)),xk=pn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,l=Yt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ck(l),bk(l)]},Sk,{resetStyle:!1}),Id=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:l,trigger:s,disabled:u,dropdownRender:f,popupRender:m,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:S,onOpenChange:C,visible:b,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:O=!0,placement:I="",overlay:P,transitionName:T,destroyOnHidden:j,destroyPopupOnHide:M}=e,{getPopupContainer:k,getPrefixCls:L,direction:_,dropdown:A}=c.useContext(It),B=m||f;nd();const q=c.useMemo(()=>{const be=L();return T!==void 0?T:I.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[L,I,T]),V=c.useMemo(()=>I?I.includes("Center")?I.slice(0,I.indexOf("Center")):I:_==="rtl"?"bottomRight":"bottomLeft",[I,_]),H=L("dropdown",o),F=ri(H),[Z,W,z]=xk(H,F),[,D]=Pr(),Q=c.Children.only(pj(l)?c.createElement("span",null,l):l),ne=Or(Q,{className:re(`${H}-trigger`,{[`${H}-rtl`]:_==="rtl"},Q.props.className),disabled:(t=Q.props.disabled)!==null&&t!==void 0?t:u}),ee=u?[]:s,oe=!!(ee!=null&&ee.includes("contextMenu")),[fe,me]=Vn(!1,{value:S??b}),ue=Nn(be=>{C==null||C(be,{source:"trigger"}),$==null||$(be),me(be)}),Ce=re(g,h,W,z,F,A==null?void 0:A.className,{[`${H}-rtl`]:_==="rtl"}),pe=cw({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:O,offset:D.marginXXS,arrowWidth:r?D.sizePopupArrow:0,borderRadius:D.borderRadius}),se=Nn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(C==null||C(!1,{source:"menu"}),me(!1))}),ye=()=>{let be;return n!=null&&n.items?be=c.createElement(Ws,Object.assign({},n)):typeof P=="function"?be=P():be=P,B&&(be=B(be)),be=c.Children.only(typeof be=="string"?c.createElement("span",null,be):be),c.createElement(ck,{prefixCls:`${H}-menu`,rootClassName:re(z,F),expandIcon:c.createElement("span",{className:`${H}-menu-submenu-arrow`},_==="rtl"?c.createElement(Es,{className:`${H}-menu-submenu-arrow-icon`}):c.createElement(ul,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:({mode:Se})=>{}},be)},[ve,ce]=Ns("Dropdown",y==null?void 0:y.zIndex);let le=c.createElement(yw,Object.assign({alignPoint:oe},Wn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:R,visible:fe,builtinPlacements:pe,arrow:!!r,overlayClassName:Ce,prefixCls:H,getPopupContainer:p||k,transitionName:q,trigger:ee,overlay:ye,placement:V,onVisibleChange:ue,overlayStyle:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),y),{zIndex:ve}),autoDestroy:j??M}),ne);return ve&&(le=c.createElement(ld.Provider,{value:ce},le)),Z(le)},wk=Nx(Id,"align",void 0,"dropdown",e=>e),$k=e=>c.createElement(wk,Object.assign({},e),c.createElement("span",null));Id._InternalPanelDoNotUseOrYouWillBeFired=$k;function Pd(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const Td=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:u,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:p,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:y,colorPrimary:S,controlOutlineWidth:C,controlOutline:b,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:R,inputFontSize:O,inputFontSizeLG:I,inputFontSizeSM:P}=e,T=O||n,j=P||T,M=I||u,k=Math.round((t-T*r)/2*10)/10-o,L=Math.round((l-j*r)/2*10)/10-o,_=Math.ceil((s-M*f)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(_,0),paddingInline:m-o,paddingInlineSM:p-o,paddingInlineLG:g-o,addonBg:h,activeBorderColor:S,hoverBorderColor:y,activeShadow:`0 0 0 ${C}px ${b}`,errorActiveShadow:`0 0 0 ${C}px ${$}`,warningActiveShadow:`0 0 0 ${C}px ${w}`,hoverBg:R,activeBg:R,inputFontSize:T,inputFontSizeLG:M,inputFontSizeSM:j}},Ek=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Md=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({},Ek(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gv=(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}}),h1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Rk=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),h1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),h1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),y1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ok=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},y1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),y1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Md(e))}})}),Ik=(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)}},Bw=(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}}},b1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Bw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Pk=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),b1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),b1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),C1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Tk=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},C1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),C1(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Aw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${J(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}}),S1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Aw(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`}}),Mk=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Aw(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"}}),S1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),S1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),jk=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Fw=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vv=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},jk(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Fw(e)),"&-sm":Object.assign({},vv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),kk=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({},Fw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${J(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Tu()),{[`${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},[`
276
+ & > ${t}-affix-wrapper,
277
+ & > ${t}-number-affix-wrapper,
278
+ & > ${n}-picker-range
279
+ `]:{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,
280
+ & > ${n}-select-auto-complete ${t},
281
+ & > ${n}-cascader-picker ${t},
282
+ & > ${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,
283
+ & > ${n}-select:first-child > ${n}-select-selector,
284
+ & > ${n}-select-auto-complete:first-child ${t},
285
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
286
+ & > ${n}-select:last-child > ${n}-select-selector,
287
+ & > ${n}-cascader-picker:last-child ${t},
288
+ & > ${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}}}})}},Nk=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,s=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),hv(e)),Rk(e)),Pk(e)),Ik(e)),Mk(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"}})}},_k=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 ${J(e.inputAffixPadding)}`}}}},zk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:u}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},hv(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}}}),_k(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Lk=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Fn(e)),kk(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}}},Ok(e)),Tk(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}}})})}},Bk=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,
289
+ > ${t},
290
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Ak=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Fk=pn(["Input","Shared"],e=>{const t=Yt(e,Pd(e));return[Nk(t),zk(t)]},Td,{resetFont:!1});pn(["Input","Component"],e=>{const t=Yt(e,Pd(e));return[Lk(t),Bk(t),Ak(t),hd(t)]},Td,{resetFont:!1});var Dk={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"},Hk=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:Dk}))},Vk=c.forwardRef(Hk);const jd=c.createContext(null);var Wk=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,l=t.indicator,s=l===void 0?{}:l,u=s.size,f=s.align,m=f===void 0?"center":f,p=c.useState(),g=ae(p,2),h=g[0],y=g[1],S=c.useRef(),C=Y.useCallback(function($){return typeof u=="function"?u($):typeof u=="number"?u:$},[u]);function b(){Sn.cancel(S.current)}return c.useEffect(function(){var $={};if(n)if(r){$.width=C(n.width);var w=o?"right":"left";m==="start"&&($[w]=n[w]),m==="center"&&($[w]=n[w]+n.width/2,$.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&($[w]=n[w]+n.width,$.transform="translateX(-100%)")}else $.height=C(n.height),m==="start"&&($.top=n.top),m==="center"&&($.top=n.top+n.height/2,$.transform="translateY(-50%)"),m==="end"&&($.top=n.top+n.height,$.transform="translateY(-100%)");return b(),S.current=Sn(function(){var R=h&&$&&Object.keys($).every(function(O){var I=$[O],P=h[O];return typeof I=="number"&&typeof P=="number"?Math.round(I)===Math.round(P):I===P});R||y($)}),b},[JSON.stringify(n),r,o,m,C]),{style:h}},x1={width:0,height:0,left:0,top:0};function Uk(e,t,n){return c.useMemo(function(){for(var r,o=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||x1,s=l.left+l.width,u=0;u<e.length;u+=1){var f=e[u].key,m=t.get(f);if(!m){var p;m=t.get((p=e[u-1])===null||p===void 0?void 0:p.key)||x1}var g=o.get(f)||X({},m);g.right=s-g.left-g.width,o.set(f,g)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function w1(e,t){var n=c.useRef(e),r=c.useState({}),o=ae(r,2),l=o[1];function s(u){var f=typeof u=="function"?u(n.current):u;f!==n.current&&t(f,n.current),n.current=f,l({})}return[n.current,s]}var qk=.1,$1=.01,wu=20,E1=Math.pow(.995,wu);function Gk(e,t){var n=c.useState(),r=ae(n,2),o=r[0],l=r[1],s=c.useState(0),u=ae(s,2),f=u[0],m=u[1],p=c.useState(0),g=ae(p,2),h=g[0],y=g[1],S=c.useState(),C=ae(S,2),b=C[0],$=C[1],w=c.useRef();function R(M){var k=M.touches[0],L=k.screenX,_=k.screenY;l({x:L,y:_}),window.clearInterval(w.current)}function O(M){if(o){var k=M.touches[0],L=k.screenX,_=k.screenY;l({x:L,y:_});var A=L-o.x,B=_-o.y;t(A,B);var q=Date.now();m(q),y(q-f),$({x:A,y:B})}}function I(){if(o&&(l(null),$(null),b)){var M=b.x/h,k=b.y/h,L=Math.abs(M),_=Math.abs(k);if(Math.max(L,_)<qk)return;var A=M,B=k;w.current=window.setInterval(function(){if(Math.abs(A)<$1&&Math.abs(B)<$1){window.clearInterval(w.current);return}A*=E1,B*=E1,t(A*wu,B*wu)},wu)}}var P=c.useRef();function T(M){var k=M.deltaX,L=M.deltaY,_=0,A=Math.abs(k),B=Math.abs(L);A===B?_=P.current==="x"?k:L:A>B?(_=k,P.current="x"):(_=L,P.current="y"),t(-_,-_)&&M.preventDefault()}var j=c.useRef(null);j.current={onTouchStart:R,onTouchMove:O,onTouchEnd:I,onWheel:T},c.useEffect(function(){function M(A){j.current.onTouchStart(A)}function k(A){j.current.onTouchMove(A)}function L(A){j.current.onTouchEnd(A)}function _(A){j.current.onWheel(A)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",L)}},[])}function Dw(e){var t=c.useState(0),n=ae(t,2),r=n[0],o=n[1],l=c.useRef(0),s=c.useRef();return s.current=e,wp(function(){var u;(u=s.current)===null||u===void 0||u.call(s)},[r]),function(){l.current===r&&(l.current+=1,o(l.current))}}function Kk(e){var t=c.useRef([]),n=c.useState({}),r=ae(n,2),o=r[1],l=c.useRef(typeof e=="function"?e():e),s=Dw(function(){var f=l.current;t.current.forEach(function(m){f=m(f)}),t.current=[],l.current=f,o({})});function u(f){t.current.push(f),s()}return[l.current,u]}var R1={width:0,height:0,left:0,top:0,right:0};function Xk(e,t,n,r,o,l,s){var u=s.tabs,f=s.tabPosition,m=s.rtl,p,g,h;return["top","bottom"].includes(f)?(p="width",g=m?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),c.useMemo(function(){if(!u.length)return[0,0];for(var y=u.length,S=y,C=0;C<y;C+=1){var b=e.get(u[C].key)||R1;if(Math.floor(b[g]+b[p])>Math.floor(h+t)){S=C-1;break}}for(var $=0,w=y-1;w>=0;w-=1){var R=e.get(u[w].key)||R1;if(R[g]<h){$=w+1;break}}return $>S?[0,-1]:[$,S]},[e,t,r,o,l,h,f,u.map(function(y){return y.key}).join("_"),m])}function O1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Qk="TABS_DQ";function Hw(e){return String(e).replace(/"/g,Qk)}function yv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Vw=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,l=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),I1=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return mt(o)==="object"&&!c.isValidElement(o)?s=o:s.right=o,n==="right"&&(l=s.right),n==="left"&&(l=s.left),l?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),Yk=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,l=e.locale,s=e.mobile,u=e.more,f=u===void 0?{}:u,m=e.style,p=e.className,g=e.editable,h=e.tabBarGutter,y=e.rtl,S=e.removeAriaLabel,C=e.onTabClick,b=e.getPopupContainer,$=e.popupClassName,w=c.useState(!1),R=ae(w,2),O=R[0],I=R[1],P=c.useState(null),T=ae(P,2),j=T[0],M=T[1],k=f.icon,L=k===void 0?"More":k,_="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),B=j!==null?"".concat(_,"-").concat(j):null,q=l==null?void 0:l.dropdownAriaLabel;function V(Q,ne){Q.preventDefault(),Q.stopPropagation(),g.onEdit("remove",{key:ne,event:Q})}var H=c.createElement(xl,{onClick:function(ne){var ee=ne.key,oe=ne.domEvent;C(ee,oe),I(!1)},prefixCls:"".concat(A,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[j],"aria-label":q!==void 0?q:"expanded dropdown"},o.map(function(Q){var ne=Q.closable,ee=Q.disabled,oe=Q.closeIcon,fe=Q.key,me=Q.label,ue=yv(ne,oe,g,ee);return c.createElement(Vs,{key:fe,id:"".concat(_,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:ee},c.createElement("span",null,me),ue&&c.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(pe){pe.stopPropagation(),V(pe,fe)}},oe||g.removeIcon||"×"))}));function F(Q){for(var ne=o.filter(function(ue){return!ue.disabled}),ee=ne.findIndex(function(ue){return ue.key===j})||0,oe=ne.length,fe=0;fe<oe;fe+=1){ee=(ee+Q+oe)%oe;var me=ne[ee];if(!me.disabled){M(me.key);return}}}function Z(Q){var ne=Q.which;if(!O){[Ue.DOWN,Ue.SPACE,Ue.ENTER].includes(ne)&&(I(!0),Q.preventDefault());return}switch(ne){case Ue.UP:F(-1),Q.preventDefault();break;case Ue.DOWN:F(1),Q.preventDefault();break;case Ue.ESC:I(!1);break;case Ue.SPACE:case Ue.ENTER:j!==null&&C(j,Q);break}}c.useEffect(function(){var Q=document.getElementById(B);Q&&Q.scrollIntoView&&Q.scrollIntoView(!1)},[j]),c.useEffect(function(){O||M(null)},[O]);var W=U({},y?"marginRight":"marginLeft",h);o.length||(W.visibility="hidden",W.order=1);var z=re(U({},"".concat(A,"-rtl"),y)),D=s?null:c.createElement(yw,Ee({prefixCls:A,overlay:H,visible:o.length?O:!1,onVisibleChange:I,overlayClassName:re(z,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,"aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:Z},L));return c.createElement("div",{className:re("".concat(n,"-nav-operations"),p),style:m,ref:t},D,c.createElement(Vw,{prefixCls:n,locale:l,editable:g}))});const Zk=c.memo(Yk,function(e,t){return t.tabMoving});var Jk=function(t){var n=t.prefixCls,r=t.id,o=t.active,l=t.focus,s=t.tab,u=s.key,f=s.label,m=s.disabled,p=s.closeIcon,g=s.icon,h=t.closable,y=t.renderWrapper,S=t.removeAriaLabel,C=t.editable,b=t.onClick,$=t.onFocus,w=t.onBlur,R=t.onKeyDown,O=t.onMouseDown,I=t.onMouseUp,P=t.style,T=t.tabCount,j=t.currentPosition,M="".concat(n,"-tab"),k=yv(h,p,C,m);function L(V){m||b(V)}function _(V){V.preventDefault(),V.stopPropagation(),C.onEdit("remove",{key:u,event:V})}var A=c.useMemo(function(){return g&&typeof f=="string"?c.createElement("span",null,f):f},[f,g]),B=c.useRef(null);c.useEffect(function(){l&&B.current&&B.current.focus()},[l]);var q=c.createElement("div",{key:u,"data-node-key":Hw(u),className:re(M,U(U(U(U({},"".concat(M,"-with-remove"),k),"".concat(M,"-active"),o),"".concat(M,"-disabled"),m),"".concat(M,"-focus"),l)),style:P,onClick:L},c.createElement("div",{ref:B,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(H){H.stopPropagation(),L(H)},onKeyDown:R,onMouseDown:O,onMouseUp:I,onFocus:$,onBlur:w},l&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(j," of ").concat(T)),g&&c.createElement("span",{className:"".concat(M,"-icon")},g),f&&A),k&&c.createElement("button",{type:"button",role:"tab","aria-label":S||"remove",tabIndex:o?0:-1,className:"".concat(M,"-remove"),onClick:function(H){H.stopPropagation(),_(H)}},p||C.removeIcon||"×"));return y?y(q):q},eN=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,u=t.getBoundingClientRect(),f=u.width,m=u.height,p=u.left,g=u.top;return Math.abs(f-r)<1?[f,m,p-n.left,g-n.top]:[r,o,s,l]},Wa=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,l=n.offsetHeight,s=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),f=u.width,m=u.height;if(Math.abs(f-o)<1)return[f,m]}return[o,s]},eu=function(t,n){return t[n?0:1]},P1=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,l=e.animated,s=e.activeKey,u=e.rtl,f=e.extra,m=e.editable,p=e.locale,g=e.tabPosition,h=e.tabBarGutter,y=e.children,S=e.onTabClick,C=e.onTabScroll,b=e.indicator,$=c.useContext(jd),w=$.prefixCls,R=$.tabs,O=c.useRef(null),I=c.useRef(null),P=c.useRef(null),T=c.useRef(null),j=c.useRef(null),M=c.useRef(null),k=c.useRef(null),L=g==="top"||g==="bottom",_=w1(0,function(et,Ge){L&&C&&C({direction:et>Ge?"left":"right"})}),A=ae(_,2),B=A[0],q=A[1],V=w1(0,function(et,Ge){!L&&C&&C({direction:et>Ge?"top":"bottom"})}),H=ae(V,2),F=H[0],Z=H[1],W=c.useState([0,0]),z=ae(W,2),D=z[0],Q=z[1],ne=c.useState([0,0]),ee=ae(ne,2),oe=ee[0],fe=ee[1],me=c.useState([0,0]),ue=ae(me,2),Ce=ue[0],pe=ue[1],se=c.useState([0,0]),ye=ae(se,2),ve=ye[0],ce=ye[1],le=Kk(new Map),be=ae(le,2),Se=be[0],$e=be[1],je=Uk(R,Se,oe[0]),Le=eu(D,L),Pe=eu(oe,L),Be=eu(Ce,L),Re=eu(ve,L),tt=Math.floor(Le)<Math.floor(Pe+Be),lt=tt?Le-Re:Le-Be,bt="".concat(w,"-nav-operations-hidden"),st=0,qe=0;L&&u?(st=0,qe=Math.max(0,Pe-lt)):(st=Math.min(0,lt-Pe),qe=0);function it(et){return et<st?st:et>qe?qe:et}var Ve=c.useRef(null),dt=c.useState(),Xe=ae(dt,2),ke=Xe[0],Ye=Xe[1];function Te(){Ye(Date.now())}function De(){Ve.current&&clearTimeout(Ve.current)}Gk(T,function(et,Ge){function St(Lt,He){Lt(function(ut){var $t=it(ut+He);return $t})}return tt?(L?St(q,et):St(Z,Ge),De(),Te(),!0):!1}),c.useEffect(function(){return De(),ke&&(Ve.current=setTimeout(function(){Ye(0)},100)),De},[ke]);var wt=Xk(je,lt,L?B:F,Pe,Be,Re,X(X({},e),{},{tabs:R})),pt=ae(wt,2),Vt=pt[0],Dt=pt[1],an=Nn(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Ge=je.get(et)||{width:0,height:0,left:0,right:0,top:0};if(L){var St=B;u?Ge.right<B?St=Ge.right:Ge.right+Ge.width>B+lt&&(St=Ge.right+Ge.width-lt):Ge.left<-B?St=-Ge.left:Ge.left+Ge.width>-B+lt&&(St=-(Ge.left+Ge.width-lt)),Z(0),q(it(St))}else{var Lt=F;Ge.top<-F?Lt=-Ge.top:Ge.top+Ge.height>-F+lt&&(Lt=-(Ge.top+Ge.height-lt)),q(0),Z(it(Lt))}}),yn=c.useState(),Ut=ae(yn,2),Mt=Ut[0],Ct=Ut[1],qt=c.useState(!1),Bt=ae(qt,2),Ze=Bt[0],yt=Bt[1],at=R.filter(function(et){return!et.disabled}).map(function(et){return et.key}),Oe=function(Ge){var St=at.indexOf(Mt||s),Lt=at.length,He=(St+Ge+Lt)%Lt,ut=at[He];Ct(ut)},we=function(Ge,St){var Lt=at.indexOf(Ge),He=R.find(function($t){return $t.key===Ge}),ut=yv(He==null?void 0:He.closable,He==null?void 0:He.closeIcon,m,He==null?void 0:He.disabled);ut&&(St.preventDefault(),St.stopPropagation(),m.onEdit("remove",{key:Ge,event:St}),Lt===at.length-1?Oe(-1):Oe(1))},xe=function(Ge,St){yt(!0),St.button===1&&we(Ge,St)},Ne=function(Ge){var St=Ge.code,Lt=u&&L,He=at[0],ut=at[at.length-1];switch(St){case"ArrowLeft":{L&&Oe(Lt?1:-1);break}case"ArrowRight":{L&&Oe(Lt?-1:1);break}case"ArrowUp":{Ge.preventDefault(),L||Oe(-1);break}case"ArrowDown":{Ge.preventDefault(),L||Oe(1);break}case"Home":{Ge.preventDefault(),Ct(He);break}case"End":{Ge.preventDefault(),Ct(ut);break}case"Enter":case"Space":{Ge.preventDefault(),S(Mt??s,Ge);break}case"Backspace":case"Delete":{we(Mt,Ge);break}}},Ke={};L?Ke[u?"marginRight":"marginLeft"]=h:Ke.marginTop=h;var Qe=R.map(function(et,Ge){var St=et.key;return c.createElement(Jk,{id:o,prefixCls:w,key:St,tab:et,style:Ge===0?void 0:Ke,closable:et.closable,editable:m,active:St===s,focus:St===Mt,renderWrapper:y,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:at.length,currentPosition:Ge+1,onClick:function(He){S(St,He)},onKeyDown:Ne,onFocus:function(){Ze||Ct(St),an(St),Te(),T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){Ct(void 0)},onMouseDown:function(He){return xe(St,He)},onMouseUp:function(){yt(!1)}})}),kt=function(){return $e(function(){var Ge,St=new Map,Lt=(Ge=j.current)===null||Ge===void 0?void 0:Ge.getBoundingClientRect();return R.forEach(function(He){var ut,$t=He.key,nn=(ut=j.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(Hw($t),'"]'));if(nn){var zn=eN(nn,Lt),$n=ae(zn,4),ur=$n[0],Gn=$n[1],dr=$n[2],Kn=$n[3];St.set($t,{width:ur,height:Gn,left:dr,top:Kn})}}),St})};c.useEffect(function(){kt()},[R.map(function(et){return et.key}).join("_")]);var zt=Dw(function(){var et=Wa(O),Ge=Wa(I),St=Wa(P);Q([et[0]-Ge[0]-St[0],et[1]-Ge[1]-St[1]]);var Lt=Wa(k);pe(Lt);var He=Wa(M);ce(He);var ut=Wa(j);fe([ut[0]-Lt[0],ut[1]-Lt[1]]),kt()}),Ot=R.slice(0,Vt),Pt=R.slice(Dt+1),vn=[].concat(Ae(Ot),Ae(Pt)),dn=je.get(s),bn=Wk({activeTabOffset:dn,horizontal:L,indicator:b,rtl:u}),On=bn.style;c.useEffect(function(){an()},[s,st,qe,O1(dn),O1(je),L]),c.useEffect(function(){zt()},[u]);var Xt=!!vn.length,en="".concat(w,"-nav-wrap"),_e,We,xt,ct;return L?u?(We=B>0,_e=B!==qe):(_e=B<0,We=B!==st):(xt=F<0,ct=F!==st),c.createElement(io,{onResize:zt},c.createElement("div",{ref:Jo(t,O),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:re("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Te()}},c.createElement(I1,{ref:I,position:"left",extra:f,prefixCls:w}),c.createElement(io,{onResize:zt},c.createElement("div",{className:re(en,U(U(U(U({},"".concat(en,"-ping-left"),_e),"".concat(en,"-ping-right"),We),"".concat(en,"-ping-top"),xt),"".concat(en,"-ping-bottom"),ct)),ref:T},c.createElement(io,{onResize:zt},c.createElement("div",{ref:j,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(F,"px)"),transition:ke?"none":void 0}},Qe,c.createElement(Vw,{ref:k,prefixCls:w,locale:p,editable:m,style:X(X({},Qe.length===0?void 0:Ke),{},{visibility:Xt?"hidden":null})}),c.createElement("div",{className:re("".concat(w,"-ink-bar"),U({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:On}))))),c.createElement(Zk,Ee({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:w,tabs:vn,className:!Xt&&bt,tabMoving:!!ke})),c.createElement(I1,{ref:P,position:"right",extra:f,prefixCls:w})))}),Ww=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.id,s=e.active,u=e.tabKey,f=e.children;return c.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!s,style:o,className:re(n,s&&"".concat(n,"-active"),r),ref:t},f)}),tN=["renderTabBar"],nN=["label","key"],rN=function(t){var n=t.renderTabBar,r=jt(t,tN),o=c.useContext(jd),l=o.tabs;if(n){var s=X(X({},r),{},{panes:l.map(function(u){var f=u.label,m=u.key,p=jt(u,nN);return c.createElement(Ww,Ee({tab:f,key:m,tabKey:m},p))})});return n(s,P1)}return c.createElement(P1,r)},oN=["key","forceRender","style","className","destroyInactiveTabPane"],iN=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,u=c.useContext(jd),f=u.prefixCls,m=u.tabs,p=o.tabPane,g="".concat(f,"-tabpane");return c.createElement("div",{className:re("".concat(f,"-content-holder"))},c.createElement("div",{className:re("".concat(f,"-content"),"".concat(f,"-content-").concat(l),U({},"".concat(f,"-content-animated"),p))},m.map(function(h){var y=h.key,S=h.forceRender,C=h.style,b=h.className,$=h.destroyInactiveTabPane,w=jt(h,oN),R=y===r;return c.createElement($o,Ee({key:y,visible:R,forceRender:S,removeOnLeave:!!(s||$),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(O,I){var P=O.style,T=O.className;return c.createElement(Ww,Ee({},w,{prefixCls:g,id:n,tabKey:y,animated:p,active:R,style:X(X({},C),P),className:re(b,T),ref:I}))})})))};function aN(){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=X({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var lN=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],T1=0,sN=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,l=e.className,s=e.items,u=e.direction,f=e.activeKey,m=e.defaultActiveKey,p=e.editable,g=e.animated,h=e.tabPosition,y=h===void 0?"top":h,S=e.tabBarGutter,C=e.tabBarStyle,b=e.tabBarExtraContent,$=e.locale,w=e.more,R=e.destroyInactiveTabPane,O=e.renderTabBar,I=e.onChange,P=e.onTabClick,T=e.onTabScroll,j=e.getPopupContainer,M=e.popupClassName,k=e.indicator,L=jt(e,lN),_=c.useMemo(function(){return(s||[]).filter(function(ve){return ve&&mt(ve)==="object"&&"key"in ve})},[s]),A=u==="rtl",B=aN(g),q=c.useState(!1),V=ae(q,2),H=V[0],F=V[1];c.useEffect(function(){F(Zg())},[]);var Z=Vn(function(){var ve;return(ve=_[0])===null||ve===void 0?void 0:ve.key},{value:f,defaultValue:m}),W=ae(Z,2),z=W[0],D=W[1],Q=c.useState(function(){return _.findIndex(function(ve){return ve.key===z})}),ne=ae(Q,2),ee=ne[0],oe=ne[1];c.useEffect(function(){var ve=_.findIndex(function(le){return le.key===z});if(ve===-1){var ce;ve=Math.max(0,Math.min(ee,_.length-1)),D((ce=_[ve])===null||ce===void 0?void 0:ce.key)}oe(ve)},[_.map(function(ve){return ve.key}).join("_"),z,ee]);var fe=Vn(null,{value:n}),me=ae(fe,2),ue=me[0],Ce=me[1];c.useEffect(function(){n||(Ce("rc-tabs-".concat(T1)),T1+=1)},[]);function pe(ve,ce){P==null||P(ve,ce);var le=ve!==z;D(ve),le&&(I==null||I(ve))}var se={id:ue,activeKey:z,animated:B,tabPosition:y,rtl:A,mobile:H},ye=X(X({},se),{},{editable:p,locale:$,more:w,tabBarGutter:S,onTabClick:pe,onTabScroll:T,extra:b,style:C,panes:null,getPopupContainer:j,popupClassName:M,indicator:k});return c.createElement(jd.Provider,{value:{tabs:_,prefixCls:o}},c.createElement("div",Ee({ref:t,id:n,className:re(o,"".concat(o,"-").concat(y),U(U(U({},"".concat(o,"-mobile"),H),"".concat(o,"-editable"),p),"".concat(o,"-rtl"),A),l)},L),c.createElement(rN,Ee({},ye,{renderTabBar:O})),c.createElement(iN,Ee({destroyInactiveTabPane:R},se,{animated:B}))))});const cN={motionAppear:!1,motionEnter:!0,motionLeave:!0};function uN(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({},cN),{motionName:ji(e,"switch")})),n}var dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fN(e){return e.filter(t=>t)}function mN(e,t){if(e)return e.map(r=>{var o;const l=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Rr(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:l}=r,s=l||{},{tab:u}=s,f=dN(s,["tab"]);return Object.assign(Object.assign({key:String(o)},f),{label:u})}return null});return fN(n)}const pN=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}`}}}}},[ki(e,"slide-up"),ki(e,"slide-down")]]},gN=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:l,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${J(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)`]:cl(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:J(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:J(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadiusLG)} 0 0 ${J(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},vN=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Fn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${J(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},xs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${J(e.paddingXXS)} ${J(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.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"}}})}})}},hN=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:l,verticalItemMargin:s,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${J(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
291
+ 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,
292
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:J(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yN=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:l,horizontalItemPaddingSM:s,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadius)} ${J(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${J(e.borderRadius)} ${J(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadius)} ${J(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadius)} 0 0 ${J(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},bN=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:u,itemColor:f}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},ko(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:cl(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},CN=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:J(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:J(e.marginXS)},marginLeft:{_skip_check_:!0,value:J(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},SN=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:l,itemActiveColor:s,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${J(e.borderRadiusLG)} ${J(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}},ko(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),bN(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},ko(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"}}}}}},xN=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:l}=e,s=t||l,u=n||o,f=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:u,cardHeightLG:f,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},wN=pn("Tabs",e=>{const t=Yt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[yN(t),CN(t),hN(t),vN(t),gN(t),SN(t),pN(t)]},xN),$N=()=>null;var EN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RN=c.forwardRef((e,t)=>{var n,r,o,l,s,u,f,m,p,g,h;const{type:y,className:S,rootClassName:C,size:b,onEdit:$,hideAdd:w,centered:R,addIcon:O,removeIcon:I,moreIcon:P,more:T,popupClassName:j,children:M,items:k,animated:L,style:_,indicatorSize:A,indicator:B,destroyInactiveTabPane:q,destroyOnHidden:V}=e,H=EN(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=H,{direction:Z,tabs:W,getPrefixCls:z,getPopupContainer:D}=c.useContext(It),Q=z("tabs",F),ne=ri(Q),[ee,oe,fe]=wN(Q,ne),me=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:me.current}));let ue;y==="editable-card"&&(ue={onEdit:(le,{key:be,event:Se})=>{$==null||$(le==="add"?Se:be,le)},removeIcon:(n=I??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:c.createElement(vl,null),addIcon:(O??(W==null?void 0:W.addIcon))||c.createElement(Vk,null),showAdd:w!==!0});const Ce=z(),pe=oi(b),se=mN(k,M),ye=uN(Q,L),ve=Object.assign(Object.assign({},W==null?void 0:W.style),_),ce={align:(r=B==null?void 0:B.align)!==null&&r!==void 0?r:(o=W==null?void 0:W.indicator)===null||o===void 0?void 0:o.align,size:(f=(s=(l=B==null?void 0:B.size)!==null&&l!==void 0?l:A)!==null&&s!==void 0?s:(u=W==null?void 0:W.indicator)===null||u===void 0?void 0:u.size)!==null&&f!==void 0?f:W==null?void 0:W.indicatorSize};return ee(c.createElement(sN,Object.assign({ref:me,direction:Z,getPopupContainer:D},H,{items:se,className:re({[`${Q}-${pe}`]:pe,[`${Q}-card`]:["card","editable-card"].includes(y),[`${Q}-editable-card`]:y==="editable-card",[`${Q}-centered`]:R},W==null?void 0:W.className,S,C,oe,fe,ne),popupClassName:re(j,oe,fe,ne),style:ve,editable:ue,more:Object.assign({icon:(h=(g=(p=(m=W==null?void 0:W.more)===null||m===void 0?void 0:m.icon)!==null&&p!==void 0?p:W==null?void 0:W.moreIcon)!==null&&g!==void 0?g:P)!==null&&h!==void 0?h:c.createElement(pv,null),transitionName:`${Ce}-slide-up`},T),prefixCls:Q,animated:ye,indicator:ce,destroyInactiveTabPane:V??q})))}),Uw=RN;Uw.TabPane=$N;function ON(e,t,n){var r=n||{},o=r.noTrailing,l=o===void 0?!1:o,s=r.noLeading,u=s===void 0?!1:s,f=r.debounceMode,m=f===void 0?void 0:f,p,g=!1,h=0;function y(){p&&clearTimeout(p)}function S(b){var $=b||{},w=$.upcomingOnly,R=w===void 0?!1:w;y(),g=!R}function C(){for(var b=arguments.length,$=new Array(b),w=0;w<b;w++)$[w]=arguments[w];var R=this,O=Date.now()-h;if(g)return;function I(){h=Date.now(),t.apply(R,$)}function P(){p=void 0}!u&&m&&!p&&I(),y(),m===void 0&&O>e?u?(h=Date.now(),l||(p=setTimeout(m?P:I,e))):I():l!==!0&&(p=setTimeout(m?P:I,m===void 0?e-O:e))}return C.cancel=S,C}function IN(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return ON(e,t,{debounceMode:l!==!1})}const qw=c.createContext({});var PN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function M1(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 TN=["xs","sm","md","lg","xl","xxl"],MN=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(It),{gutter:o,wrap:l}=c.useContext(qw),{prefixCls:s,span:u,order:f,offset:m,push:p,pull:g,className:h,children:y,flex:S,style:C}=e,b=PN(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",s),[w,R,O]=NP($),I={};let P={};TN.forEach(M=>{let k={};const L=e[M];typeof L=="number"?k.span=L:typeof L=="object"&&(k=L||{}),delete b[M],P=Object.assign(Object.assign({},P),{[`${$}-${M}-${k.span}`]:k.span!==void 0,[`${$}-${M}-order-${k.order}`]:k.order||k.order===0,[`${$}-${M}-offset-${k.offset}`]:k.offset||k.offset===0,[`${$}-${M}-push-${k.push}`]:k.push||k.push===0,[`${$}-${M}-pull-${k.pull}`]:k.pull||k.pull===0,[`${$}-rtl`]:r==="rtl"}),k.flex&&(P[`${$}-${M}-flex`]=!0,I[`--${$}-${M}-flex`]=M1(k.flex))});const T=re($,{[`${$}-${u}`]:u!==void 0,[`${$}-order-${f}`]:f,[`${$}-offset-${m}`]:m,[`${$}-push-${p}`]:p,[`${$}-pull-${g}`]:g},h,P,R,O),j={};if(o!=null&&o[0]){const M=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;j.paddingLeft=M,j.paddingRight=M}return S&&(j.flex=M1(S),l===!1&&!j.minWidth&&(j.minWidth=0)),w(c.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},j),C),I),className:T,ref:t}),y))});function jN(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((l,s)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<ra.length;u++){const f=ra[u];if(o[f]&&l[f]!==void 0){n[s]=l[f];break}}else n[s]=l}),n}var kN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j1(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<ra.length;l++){const s=ra[l];if(!t||!t[s])continue;const u=e[s];if(u!==void 0){r(u);return}}};return c.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const NN=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:u,gutter:f=0,wrap:m}=e,p=kN(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:h}=c.useContext(It),y=rv(!0,null),S=j1(o,y),C=j1(r,y),b=g("row",n),[$,w,R]=kP(b),O=jN(f,y),I=re(b,{[`${b}-no-wrap`]:m===!1,[`${b}-${C}`]:C,[`${b}-${S}`]:S,[`${b}-rtl`]:h==="rtl"},l,w,R),P={};if(O!=null&&O[0]){const k=typeof O[0]=="number"?`${O[0]/-2}px`:`calc(${O[0]} / -2)`;P.marginLeft=k,P.marginRight=k}const[T,j]=O;P.rowGap=j;const M=c.useMemo(()=>({gutter:[T,j],wrap:m}),[T,j,m]);return $(c.createElement(qw.Provider,{value:M},c.createElement("div",Object.assign({},p,{className:I,style:Object.assign(Object.assign({},P),s),ref:t}),u)))}),_N=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},zN=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{borderBlockStart:`${J(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${J(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${J(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${J(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:`${J(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${J(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${J(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},LN=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),BN=pn("Divider",e=>{const t=Yt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[zN(t),_N(t)]},LN,{unitless:{orientationMargin:!0}});var AN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FN={small:"sm",middle:"md"},k1=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Ir("divider"),{prefixCls:l,type:s="horizontal",orientation:u="center",orientationMargin:f,className:m,rootClassName:p,children:g,dashed:h,variant:y="solid",plain:S,style:C,size:b}=e,$=AN(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[R,O,I]=BN(w),P=oi(b),T=FN[P],j=!!g,M=c.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),k=M==="start"&&f!=null,L=M==="end"&&f!=null,_=re(w,r,O,I,`${w}-${s}`,{[`${w}-with-text`]:j,[`${w}-with-text-${M}`]:j,[`${w}-dashed`]:!!h,[`${w}-${y}`]:y!=="solid",[`${w}-plain`]:!!S,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:k,[`${w}-no-default-orientation-margin-end`]:L,[`${w}-${T}`]:!!T},m,p),A=c.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),B={marginInlineStart:k?A:void 0,marginInlineEnd:L?A:void 0};return R(c.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},o),C)},$,{role:"separator"}),g&&s!=="vertical"&&c.createElement("span",{className:`${w}-inner-text`,style:B},g)))};function DN(e){return!!(e.addonBefore||e.addonAfter)}function HN(e){return!!(e.prefix||e.suffix||e.allowClear)}function N1(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function _1(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=N1(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=N1(t,e,r),n(o);return}n(o)}}function VN(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var WN=Y.forwardRef(function(e,t){var n,r,o,l=e.inputElement,s=e.children,u=e.prefixCls,f=e.prefix,m=e.suffix,p=e.addonBefore,g=e.addonAfter,h=e.className,y=e.style,S=e.disabled,C=e.readOnly,b=e.focused,$=e.triggerFocus,w=e.allowClear,R=e.value,O=e.handleReset,I=e.hidden,P=e.classes,T=e.classNames,j=e.dataAttrs,M=e.styles,k=e.components,L=e.onClear,_=s??l,A=(k==null?void 0:k.affixWrapper)||"span",B=(k==null?void 0:k.groupWrapper)||"span",q=(k==null?void 0:k.wrapper)||"span",V=(k==null?void 0:k.groupAddon)||"span",H=c.useRef(null),F=function(ce){var le;(le=H.current)!==null&&le!==void 0&&le.contains(ce.target)&&($==null||$())},Z=HN(e),W=c.cloneElement(_,{value:R,className:re((n=_.props)===null||n===void 0?void 0:n.className,!Z&&(T==null?void 0:T.variant))||null}),z=c.useRef(null);if(Y.useImperativeHandle(t,function(){return{nativeElement:z.current||H.current}}),Z){var D=null;if(w){var Q=!S&&!C&&R,ne="".concat(u,"-clear-icon"),ee=mt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";D=Y.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){O==null||O(ce),L==null||L()},onMouseDown:function(ce){return ce.preventDefault()},className:re(ne,U(U({},"".concat(ne,"-hidden"),!Q),"".concat(ne,"-has-suffix"),!!m))},ee)}var oe="".concat(u,"-affix-wrapper"),fe=re(oe,U(U(U(U(U({},"".concat(u,"-disabled"),S),"".concat(oe,"-disabled"),S),"".concat(oe,"-focused"),b),"".concat(oe,"-readonly"),C),"".concat(oe,"-input-with-clear-btn"),m&&w&&R),P==null?void 0:P.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),me=(m||w)&&Y.createElement("span",{className:re("".concat(u,"-suffix"),T==null?void 0:T.suffix),style:M==null?void 0:M.suffix},D,m);W=Y.createElement(A,Ee({className:fe,style:M==null?void 0:M.affixWrapper,onClick:F},j==null?void 0:j.affixWrapper,{ref:H}),f&&Y.createElement("span",{className:re("".concat(u,"-prefix"),T==null?void 0:T.prefix),style:M==null?void 0:M.prefix},f),W,me)}if(DN(e)){var ue="".concat(u,"-group"),Ce="".concat(ue,"-addon"),pe="".concat(ue,"-wrapper"),se=re("".concat(u,"-wrapper"),ue,P==null?void 0:P.wrapper,T==null?void 0:T.wrapper),ye=re(pe,U({},"".concat(pe,"-disabled"),S),P==null?void 0:P.group,T==null?void 0:T.groupWrapper);W=Y.createElement(B,{className:ye,ref:z},Y.createElement(q,{className:se},p&&Y.createElement(V,{className:Ce},p),W,g&&Y.createElement(V,{className:Ce},g)))}return Y.cloneElement(W,{className:re((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:X(X({},(o=W.props)===null||o===void 0?void 0:o.style),y),hidden:I})}),UN=["show"];function qN(e,t){return c.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,o=r.show,l=jt(r,UN);return X(X({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const GN=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Y.createElement(id,null)}),t};function z1(e){return["small","middle","large"].includes(e)}function L1(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const KN=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:l,fontSizeLG:s,fontSizeSM:u,borderRadiusLG:f,borderRadiusSM:m,colorBgContainerDisabled:p,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:p,borderWidth:g,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:s,borderRadius:f},"&-small":{paddingInline:l,borderRadius:m,fontSize:u},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},hd(e,{focus:!1})]}},XN=pn(["Space","Addon"],e=>[KN(e)]);var QN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YN=Y.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=QN(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:f}=Y.useContext(It),m=u("space-addon",l),[p,g,h]=XN(m),{compactItemClassnames:y,compactSize:S}=zs(m,f),C=re(m,g,y,h,{[`${m}-${S}`]:S},n);return p(Y.createElement("div",Object.assign({ref:t,className:C,style:o},s),r))}),Gw=Y.createContext({latestIndex:0}),ZN=Gw.Provider,JN=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=c.useContext(Gw);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:e,style:o},n),t<l&&r&&c.createElement("span",{className:`${e}-split`},r))},e7=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"}}}},t7=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}}}},n7=pn("Space",e=>{const t=Yt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[e7(t),t7(t)]},()=>({}),{resetStyle:!1});var r7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const o7=c.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:u,classNames:f,styles:m}=Ir("space"),{size:p=l??"small",align:g,className:h,rootClassName:y,children:S,direction:C="horizontal",prefixCls:b,split:$,style:w,wrap:R=!1,classNames:O,styles:I}=e,P=r7(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,j]=Array.isArray(p)?p:[p,p],M=z1(j),k=z1(T),L=L1(j),_=L1(T),A=Rr(S,{keepEmpty:!0}),B=g===void 0&&C==="horizontal"?"center":g,q=r("space",b),[V,H,F]=n7(q),Z=re(q,s,H,`${q}-${C}`,{[`${q}-rtl`]:o==="rtl",[`${q}-align-${B}`]:B,[`${q}-gap-row-${j}`]:M,[`${q}-gap-col-${T}`]:k},h,y,F),W=re(`${q}-item`,(n=O==null?void 0:O.item)!==null&&n!==void 0?n:f.item),z=Object.assign(Object.assign({},m.item),I==null?void 0:I.item),D=A.map((ee,oe)=>{const fe=(ee==null?void 0:ee.key)||`${W}-${oe}`;return c.createElement(JN,{className:W,key:fe,index:oe,split:$,style:z},ee)}),Q=c.useMemo(()=>({latestIndex:A.reduce((oe,fe,me)=>fe!=null?me:oe,0)}),[A]);if(A.length===0)return null;const ne={};return R&&(ne.flexWrap="wrap"),!k&&_&&(ne.columnGap=T),!M&&L&&(ne.rowGap=j),V(c.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},ne),u),w)},P),c.createElement(ZN,{value:Q},D)))}),fl=o7;fl.Compact=u5;fl.Addon=YN;var i7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Kw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(It),{prefixCls:o,type:l="default",danger:s,disabled:u,loading:f,onClick:m,htmlType:p,children:g,className:h,menu:y,arrow:S,autoFocus:C,overlay:b,trigger:$,align:w,open:R,onOpenChange:O,placement:I,getPopupContainer:P,href:T,icon:j=c.createElement(pv,null),title:M,buttonsRender:k=pe=>pe,mouseEnterDelay:L,mouseLeaveDelay:_,overlayClassName:A,overlayStyle:B,destroyOnHidden:q,destroyPopupOnHide:V,dropdownRender:H,popupRender:F}=e,Z=i7(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),W=n("dropdown",o),z=`${W}-button`,Q={menu:y,arrow:S,autoFocus:C,align:w,disabled:u,trigger:u?[]:$,onOpenChange:O,getPopupContainer:P||t,mouseEnterDelay:L,mouseLeaveDelay:_,overlayClassName:A,overlayStyle:B,destroyOnHidden:q,popupRender:F||H},{compactSize:ne,compactItemClassnames:ee}=zs(W,r),oe=re(z,ee,h);"destroyPopupOnHide"in e&&(Q.destroyPopupOnHide=V),"overlay"in e&&(Q.overlay=b),"open"in e&&(Q.open=R),"placement"in e?Q.placement=I:Q.placement=r==="rtl"?"bottomLeft":"bottomRight";const fe=c.createElement(zo,{type:l,danger:s,disabled:u,loading:f,onClick:m,htmlType:p,href:T,title:M},g),me=c.createElement(zo,{type:l,danger:s,icon:j}),[ue,Ce]=k([fe,me]);return c.createElement(fl.Compact,Object.assign({className:oe,size:ne,block:!0},Z),ue,c.createElement(Id,Object.assign({},Q),Ce))};Kw.__ANT_BUTTON=!0;const yg=Id;yg.Button=Kw;var a7={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"},l7=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:a7}))},bv=c.forwardRef(l7),s7=`
293
+ min-height:0 !important;
294
+ max-height:none !important;
295
+ height:0 !important;
296
+ visibility:hidden !important;
297
+ overflow:hidden !important;
298
+ position:absolute !important;
299
+ z-index:-1000 !important;
300
+ top:0 !important;
301
+ right:0 !important;
302
+ pointer-events: none !important;
303
+ `,c7=["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"],Zm={},Ur;function u7(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&&Zm[n])return Zm[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=c7.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),f={sizingStyle:u,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(Zm[n]=f),f}function d7(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;Ur||(Ur=document.createElement("textarea"),Ur.setAttribute("tab-index","-1"),Ur.setAttribute("aria-hidden","true"),Ur.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ur)),e.getAttribute("wrap")?Ur.setAttribute("wrap",e.getAttribute("wrap")):Ur.removeAttribute("wrap");var o=u7(e,t),l=o.paddingSize,s=o.borderSize,u=o.boxSizing,f=o.sizingStyle;Ur.setAttribute("style","".concat(f,";").concat(s7)),Ur.value=e.value||e.placeholder||"";var m=void 0,p=void 0,g,h=Ur.scrollHeight;if(u==="border-box"?h+=s:u==="content-box"&&(h-=l),n!==null||r!==null){Ur.value=" ";var y=Ur.scrollHeight-l;n!==null&&(m=y*n,u==="border-box"&&(m=m+l+s),h=Math.max(m,h)),r!==null&&(p=y*r,u==="border-box"&&(p=p+l+s),g=h>p?"":"hidden",h=Math.min(p,h))}var S={height:h,overflowY:g,resize:"none"};return m&&(S.minHeight=m),p&&(S.maxHeight=p),S}var f7=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Jm=0,ep=1,tp=2,m7=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,u=n.onResize,f=n.className,m=n.style,p=n.disabled,g=n.onChange;n.onInternalAutoSize;var h=jt(n,f7),y=Vn(o,{value:l,postState:function(Q){return Q??""}}),S=ae(y,2),C=S[0],b=S[1],$=function(Q){b(Q.target.value),g==null||g(Q)},w=c.useRef();c.useImperativeHandle(t,function(){return{textArea:w.current}});var R=c.useMemo(function(){return s&&mt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),O=ae(R,2),I=O[0],P=O[1],T=!!s,j=c.useState(tp),M=ae(j,2),k=M[0],L=M[1],_=c.useState(),A=ae(_,2),B=A[0],q=A[1],V=function(){L(Jm)};on(function(){T&&V()},[l,I,P,T]),on(function(){if(k===Jm)L(ep);else if(k===ep){var D=d7(w.current,!1,I,P);L(tp),q(D)}},[k]);var H=c.useRef(),F=function(){Sn.cancel(H.current)},Z=function(Q){k===tp&&(u==null||u(Q),s&&(F(),H.current=Sn(function(){V()})))};c.useEffect(function(){return F},[]);var W=T?B:null,z=X(X({},m),W);return(k===Jm||k===ep)&&(z.overflowY="hidden",z.overflowX="hidden"),c.createElement(io,{onResize:Z,disabled:!(s||u)},c.createElement("textarea",Ee({},h,{ref:w,style:z,className:re(r,f,U({},"".concat(r,"-disabled"),p)),disabled:p,value:C,onChange:$})))}),p7=["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"],g7=Y.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,p=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,y=e.prefixCls,S=y===void 0?"rc-textarea":y,C=e.showCount,b=e.count,$=e.className,w=e.style,R=e.disabled,O=e.hidden,I=e.classNames,P=e.styles,T=e.onResize,j=e.onClear,M=e.onPressEnter,k=e.readOnly,L=e.autoSize,_=e.onKeyDown,A=jt(e,p7),B=Vn(r,{value:o,defaultValue:r}),q=ae(B,2),V=q[0],H=q[1],F=V==null?"":String(V),Z=Y.useState(!1),W=ae(Z,2),z=W[0],D=W[1],Q=Y.useRef(!1),ne=Y.useState(null),ee=ae(ne,2),oe=ee[0],fe=ee[1],me=c.useRef(null),ue=c.useRef(null),Ce=function(){var ke;return(ke=ue.current)===null||ke===void 0?void 0:ke.textArea},pe=function(){Ce().focus()};c.useImperativeHandle(t,function(){var Xe;return{resizableTextArea:ue.current,focus:pe,blur:function(){Ce().blur()},nativeElement:((Xe=me.current)===null||Xe===void 0?void 0:Xe.nativeElement)||Ce()}}),c.useEffect(function(){D(function(Xe){return!R&&Xe})},[R]);var se=Y.useState(null),ye=ae(se,2),ve=ye[0],ce=ye[1];Y.useEffect(function(){if(ve){var Xe;(Xe=Ce()).setSelectionRange.apply(Xe,Ae(ve))}},[ve]);var le=qN(b,C),be=(n=le.max)!==null&&n!==void 0?n:m,Se=Number(be)>0,$e=le.strategy(F),je=!!be&&$e>be,Le=function(ke,Ye){var Te=Ye;!Q.current&&le.exceedFormatter&&le.max&&le.strategy(Ye)>le.max&&(Te=le.exceedFormatter(Ye,{max:le.max}),Ye!==Te&&ce([Ce().selectionStart||0,Ce().selectionEnd||0])),H(Te),_1(ke.currentTarget,ke,u,Te)},Pe=function(ke){Q.current=!0,p==null||p(ke)},Be=function(ke){Q.current=!1,Le(ke,ke.currentTarget.value),g==null||g(ke)},Re=function(ke){Le(ke,ke.target.value)},tt=function(ke){ke.key==="Enter"&&M&&M(ke),_==null||_(ke)},lt=function(ke){D(!0),l==null||l(ke)},bt=function(ke){D(!1),s==null||s(ke)},st=function(ke){H(""),pe(),_1(Ce(),ke,u)},qe=h,it;le.show&&(le.showFormatter?it=le.showFormatter({value:F,count:$e,maxLength:be}):it="".concat($e).concat(Se?" / ".concat(be):""),qe=Y.createElement(Y.Fragment,null,qe,Y.createElement("span",{className:re("".concat(S,"-data-count"),I==null?void 0:I.count),style:P==null?void 0:P.count},it)));var Ve=function(ke){var Ye;T==null||T(ke),(Ye=Ce())!==null&&Ye!==void 0&&Ye.style.height&&fe(!0)},dt=!L&&!C&&!f;return Y.createElement(WN,{ref:me,value:F,allowClear:f,handleReset:st,suffix:qe,prefixCls:S,classNames:X(X({},I),{},{affixWrapper:re(I==null?void 0:I.affixWrapper,U(U({},"".concat(S,"-show-count"),C),"".concat(S,"-textarea-allow-clear"),f))}),disabled:R,focused:z,className:re($,je&&"".concat(S,"-out-of-range")),style:X(X({},w),oe&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof it=="string"?it:void 0}},hidden:O,readOnly:k,onClear:j},Y.createElement(m7,Ee({},A,{autoSize:L,maxLength:m,onKeyDown:tt,onChange:Re,onFocus:lt,onBlur:bt,onCompositionStart:Pe,onCompositionEnd:Be,className:re(I==null?void 0:I.textarea),style:X(X({},P==null?void 0:P.textarea),{},{resize:w==null?void 0:w.resize}),disabled:R,prefixCls:S,onResize:Ve,ref:ue,readOnly:k})))});const v7=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"}},[`
304
+ &-allow-clear > ${t},
305
+ &-affix-wrapper${r}-has-feedback ${t}
306
+ `]:{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}}}}}},h7=pn(["Input","TextArea"],e=>{const t=Yt(e,Pd(e));return v7(t)},Td,{resetFont:!1});var y7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const b7=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:u,allowClear:f,classNames:m,rootClassName:p,className:g,style:h,styles:y,variant:S,showCount:C,onMouseDown:b,onResize:$}=e,w=y7(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:R,direction:O,allowClear:I,autoComplete:P,className:T,style:j,classNames:M,styles:k}=Ir("textArea"),L=c.useContext(al),_=s??L,{status:A,hasFeedback:B,feedbackIcon:q}=c.useContext(Bu),V=Xx(A,u),H=c.useRef(null);c.useImperativeHandle(t,()=>{var le;return{resizableTextArea:(le=H.current)===null||le===void 0?void 0:le.resizableTextArea,focus:be=>{var Se,$e;VN(($e=(Se=H.current)===null||Se===void 0?void 0:Se.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,be)},blur:()=>{var be;return(be=H.current)===null||be===void 0?void 0:be.blur()}}});const F=R("input",r),Z=ri(F),[W,z,D]=Fk(F,p),[Q]=h7(F,Z),{compactSize:ne,compactItemClassnames:ee}=zs(F,O),oe=oi(le=>{var be;return(be=l??ne)!==null&&be!==void 0?be:le}),[fe,me]=Jx("textArea",S,o),ue=GN(f??I),[Ce,pe]=c.useState(!1),[se,ye]=c.useState(!1),ve=le=>{pe(!0),b==null||b(le);const be=()=>{pe(!1),document.removeEventListener("mouseup",be)};document.addEventListener("mouseup",be)},ce=le=>{var be,Se;if($==null||$(le),Ce&&typeof getComputedStyle=="function"){const $e=(Se=(be=H.current)===null||be===void 0?void 0:be.nativeElement)===null||Se===void 0?void 0:Se.querySelector("textarea");$e&&getComputedStyle($e).resize==="both"&&ye(!0)}};return W(Q(c.createElement(g7,Object.assign({autoComplete:P},w,{style:Object.assign(Object.assign({},j),h),styles:Object.assign(Object.assign({},k),y),disabled:_,allowClear:ue,className:re(D,Z,g,p,ee,T,se&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),M),{textarea:re({[`${F}-sm`]:oe==="small",[`${F}-lg`]:oe==="large"},z,m==null?void 0:m.textarea,M.textarea,Ce&&`${F}-mouse-active`),variant:re({[`${F}-${fe}`]:me},Kx(F,V)),affixWrapper:re(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:O==="rtl",[`${F}-affix-wrapper-sm`]:oe==="small",[`${F}-affix-wrapper-lg`]:oe==="large",[`${F}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:F,suffix:B&&c.createElement("span",{className:`${F}-textarea-suffix`},q),showCount:C,ref:H,onResize:ce,onMouseDown:ve}))))});function C7(e,t,n){return typeof n=="boolean"?n:e.length?!0:Rr(t).some(o=>o.type===Nw)}var Xw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kd({suffixCls:e,tagName:t,displayName:n}){return r=>c.forwardRef((l,s)=>c.createElement(r,Object.assign({ref:s,suffixCls:e,tagName:t},l)))}const Cv=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=Xw(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=c.useContext(It),f=u("layout",n),[m,p,g]=kw(f),h=r?`${f}-${r}`:f;return m(c.createElement(l,Object.assign({className:re(n||h,o,p,g),ref:t},s)))}),S7=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(It),[r,o]=c.useState([]),{prefixCls:l,className:s,rootClassName:u,children:f,hasSider:m,tagName:p,style:g}=e,h=Xw(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Wn(h,["suffixCls"]),{getPrefixCls:S,className:C,style:b}=Ir("layout"),$=S("layout",l),w=C7(r,f,m),[R,O,I]=kw($),P=re($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},C,s,u,O,I),T=c.useMemo(()=>({siderHook:{addSider:j=>{o(M=>[].concat(Ae(M),[j]))},removeSider:j=>{o(M=>M.filter(k=>k!==j))}}}),[]);return R(c.createElement(Tw.Provider,{value:T},c.createElement(p,Object.assign({ref:t,className:P,style:Object.assign(Object.assign({},b),g)},y),f)))}),x7=kd({tagName:"div",displayName:"Layout"})(S7),w7=kd({suffixCls:"header",tagName:"header",displayName:"Header"})(Cv),$7=kd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Cv),E7=kd({suffixCls:"content",tagName:"main",displayName:"Content"})(Cv),Ii=x7;Ii.Header=w7;Ii.Footer=$7;Ii.Content=E7;Ii.Sider=Nw;Ii._InternalSiderContext=Od;var R7={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"},O7=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:R7}))},B1=c.forwardRef(O7),I7={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"},P7=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:I7}))},A1=c.forwardRef(P7),T7={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:"页码"},M7=[10,20,50,100],j7=function(t){var n=t.pageSizeOptions,r=n===void 0?M7:n,o=t.locale,l=t.changeSize,s=t.pageSize,u=t.goButton,f=t.quickGo,m=t.rootPrefixCls,p=t.disabled,g=t.buildOptionText,h=t.showSizeChanger,y=t.sizeChangerRender,S=Y.useState(""),C=ae(S,2),b=C[0],$=C[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},R=typeof g=="function"?g:function(_){return"".concat(_," ").concat(o.items_per_page)},O=function(A){$(A.target.value)},I=function(A){u||b===""||($(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(f==null||f(w())))},P=function(A){b!==""&&(A.keyCode===Ue.ENTER||A.type==="click")&&($(""),f==null||f(w()))},T=function(){return r.some(function(A){return A.toString()===s.toString()})?r:r.concat([s]).sort(function(A,B){var q=Number.isNaN(Number(A))?0:Number(A),V=Number.isNaN(Number(B))?0:Number(B);return q-V})},j="".concat(m,"-options");if(!h&&!f)return null;var M=null,k=null,L=null;return h&&y&&(M=y({disabled:p,size:s,onSizeChange:function(A){l==null||l(Number(A))},"aria-label":o.page_size,className:"".concat(j,"-size-changer"),options:T().map(function(_){return{label:R(_),value:_}})})),f&&(u&&(L=typeof u=="boolean"?Y.createElement("button",{type:"button",onClick:P,onKeyUp:P,disabled:p,className:"".concat(j,"-quick-jumper-button")},o.jump_to_confirm):Y.createElement("span",{onClick:P,onKeyUp:P},u)),k=Y.createElement("div",{className:"".concat(j,"-quick-jumper")},o.jump_to,Y.createElement("input",{disabled:p,type:"text",value:b,onChange:O,onKeyUp:P,onBlur:I,"aria-label":o.page}),o.page,L)),Y.createElement("li",{className:j},M,k)},ts=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,l=t.className,s=t.showTitle,u=t.onClick,f=t.onKeyPress,m=t.itemRender,p="".concat(n,"-item"),g=re(p,"".concat(p,"-").concat(r),U(U({},"".concat(p,"-active"),o),"".concat(p,"-disabled"),!r),l),h=function(){u(r)},y=function(b){f(b,u,r)},S=m(r,"page",Y.createElement("a",{rel:"nofollow"},r));return S?Y.createElement("li",{title:s?String(r):null,className:g,onClick:h,onKeyDown:y,tabIndex:0},S):null},k7=function(t,n,r){return r};function F1(){}function D1(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 N7=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,l=o===void 0?"rc-select":o,s=t.className,u=t.current,f=t.defaultCurrent,m=f===void 0?1:f,p=t.total,g=p===void 0?0:p,h=t.pageSize,y=t.defaultPageSize,S=y===void 0?10:y,C=t.onChange,b=C===void 0?F1:C,$=t.hideOnSinglePage,w=t.align,R=t.showPrevNextJumpers,O=R===void 0?!0:R,I=t.showQuickJumper,P=t.showLessItems,T=t.showTitle,j=T===void 0?!0:T,M=t.onShowSizeChange,k=M===void 0?F1:M,L=t.locale,_=L===void 0?T7:L,A=t.style,B=t.totalBoundaryShowSizeChanger,q=B===void 0?50:B,V=t.disabled,H=t.simple,F=t.showTotal,Z=t.showSizeChanger,W=Z===void 0?g>q:Z,z=t.sizeChangerRender,D=t.pageSizeOptions,Q=t.itemRender,ne=Q===void 0?k7:Q,ee=t.jumpPrevIcon,oe=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ue=Y.useRef(null),Ce=Vn(10,{value:h,defaultValue:S}),pe=ae(Ce,2),se=pe[0],ye=pe[1],ve=Vn(1,{value:u,defaultValue:m,postState:function(ut){return Math.max(1,Math.min(ut,Ki(void 0,se,g)))}}),ce=ae(ve,2),le=ce[0],be=ce[1],Se=Y.useState(le),$e=ae(Se,2),je=$e[0],Le=$e[1];c.useEffect(function(){Le(le)},[le]);var Pe=Math.max(1,le-(P?3:5)),Be=Math.min(Ki(void 0,se,g),le+(P?3:5));function Re(He,ut){var $t=He||Y.createElement("button",{type:"button","aria-label":ut,className:"".concat(r,"-item-link")});return typeof He=="function"&&($t=Y.createElement(He,X({},t))),$t}function tt(He){var ut=He.target.value,$t=Ki(void 0,se,g),nn;return ut===""?nn=ut:Number.isNaN(Number(ut))?nn=je:ut>=$t?nn=$t:nn=Number(ut),nn}function lt(He){return D1(He)&&He!==le&&D1(g)&&g>0}var bt=g>se?I:!1;function st(He){(He.keyCode===Ue.UP||He.keyCode===Ue.DOWN)&&He.preventDefault()}function qe(He){var ut=tt(He);switch(ut!==je&&Le(ut),He.keyCode){case Ue.ENTER:dt(ut);break;case Ue.UP:dt(ut-1);break;case Ue.DOWN:dt(ut+1);break}}function it(He){dt(tt(He))}function Ve(He){var ut=Ki(He,se,g),$t=le>ut&&ut!==0?ut:le;ye(He),Le($t),k==null||k(le,He),be($t),b==null||b($t,He)}function dt(He){if(lt(He)&&!V){var ut=Ki(void 0,se,g),$t=He;return He>ut?$t=ut:He<1&&($t=1),$t!==je&&Le($t),be($t),b==null||b($t,se),$t}return le}var Xe=le>1,ke=le<Ki(void 0,se,g);function Ye(){Xe&&dt(le-1)}function Te(){ke&&dt(le+1)}function De(){dt(Pe)}function wt(){dt(Be)}function pt(He,ut){if(He.key==="Enter"||He.charCode===Ue.ENTER||He.keyCode===Ue.ENTER){for(var $t=arguments.length,nn=new Array($t>2?$t-2:0),zn=2;zn<$t;zn++)nn[zn-2]=arguments[zn];ut.apply(void 0,nn)}}function Vt(He){pt(He,Ye)}function Dt(He){pt(He,Te)}function an(He){pt(He,De)}function yn(He){pt(He,wt)}function Ut(He){var ut=ne(He,"prev",Re(fe,"prev page"));return Y.isValidElement(ut)?Y.cloneElement(ut,{disabled:!Xe}):ut}function Mt(He){var ut=ne(He,"next",Re(me,"next page"));return Y.isValidElement(ut)?Y.cloneElement(ut,{disabled:!ke}):ut}function Ct(He){(He.type==="click"||He.keyCode===Ue.ENTER)&&dt(je)}var qt=null,Bt=No(t,{aria:!0,data:!0}),Ze=F&&Y.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(le-1)*se+1,le*se>g?g:le*se])),yt=null,at=Ki(void 0,se,g);if($&&g<=se)return null;var Oe=[],we={rootPrefixCls:r,onClick:dt,onKeyPress:pt,showTitle:j,itemRender:ne,page:-1},xe=le-1>0?le-1:0,Ne=le+1<at?le+1:at,Ke=I&&I.goButton,Qe=mt(H)==="object"?H.readOnly:!H,kt=Ke,zt=null;H&&(Ke&&(typeof Ke=="boolean"?kt=Y.createElement("button",{type:"button",onClick:Ct,onKeyUp:Ct},_.jump_to_confirm):kt=Y.createElement("span",{onClick:Ct,onKeyUp:Ct},Ke),kt=Y.createElement("li",{title:j?"".concat(_.jump_to).concat(le,"/").concat(at):null,className:"".concat(r,"-simple-pager")},kt)),zt=Y.createElement("li",{title:j?"".concat(le,"/").concat(at):null,className:"".concat(r,"-simple-pager")},Qe?je:Y.createElement("input",{type:"text","aria-label":_.jump_to,value:je,disabled:V,onKeyDown:st,onKeyUp:qe,onChange:qe,onBlur:it,size:3}),Y.createElement("span",{className:"".concat(r,"-slash")},"/"),at));var Ot=P?1:2;if(at<=3+Ot*2){at||Oe.push(Y.createElement(ts,Ee({},we,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Pt=1;Pt<=at;Pt+=1)Oe.push(Y.createElement(ts,Ee({},we,{key:Pt,page:Pt,active:le===Pt})))}else{var vn=P?_.prev_3:_.prev_5,dn=P?_.next_3:_.next_5,bn=ne(Pe,"jump-prev",Re(ee,"prev page")),On=ne(Be,"jump-next",Re(oe,"next page"));O&&(qt=bn?Y.createElement("li",{title:j?vn:null,key:"prev",onClick:De,tabIndex:0,onKeyDown:an,className:re("".concat(r,"-jump-prev"),U({},"".concat(r,"-jump-prev-custom-icon"),!!ee))},bn):null,yt=On?Y.createElement("li",{title:j?dn:null,key:"next",onClick:wt,tabIndex:0,onKeyDown:yn,className:re("".concat(r,"-jump-next"),U({},"".concat(r,"-jump-next-custom-icon"),!!oe))},On):null);var Xt=Math.max(1,le-Ot),en=Math.min(le+Ot,at);le-1<=Ot&&(en=1+Ot*2),at-le<=Ot&&(Xt=at-Ot*2);for(var _e=Xt;_e<=en;_e+=1)Oe.push(Y.createElement(ts,Ee({},we,{key:_e,page:_e,active:le===_e})));if(le-1>=Ot*2&&le!==3&&(Oe[0]=Y.cloneElement(Oe[0],{className:re("".concat(r,"-item-after-jump-prev"),Oe[0].props.className)}),Oe.unshift(qt)),at-le>=Ot*2&&le!==at-2){var We=Oe[Oe.length-1];Oe[Oe.length-1]=Y.cloneElement(We,{className:re("".concat(r,"-item-before-jump-next"),We.props.className)}),Oe.push(yt)}Xt!==1&&Oe.unshift(Y.createElement(ts,Ee({},we,{key:1,page:1}))),en!==at&&Oe.push(Y.createElement(ts,Ee({},we,{key:at,page:at})))}var xt=Ut(xe);if(xt){var ct=!Xe||!at;xt=Y.createElement("li",{title:j?_.prev_page:null,onClick:Ye,tabIndex:ct?null:0,onKeyDown:Vt,className:re("".concat(r,"-prev"),U({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},xt)}var et=Mt(Ne);if(et){var Ge,St;H?(Ge=!ke,St=Xe?0:null):(Ge=!ke||!at,St=Ge?null:0),et=Y.createElement("li",{title:j?_.next_page:null,onClick:Te,tabIndex:St,onKeyDown:Dt,className:re("".concat(r,"-next"),U({},"".concat(r,"-disabled"),Ge)),"aria-disabled":Ge},et)}var Lt=re(r,s,U(U(U(U(U({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),H),"".concat(r,"-disabled"),V));return Y.createElement("ul",Ee({className:Lt,style:A,ref:ue},Bt),Ze,xt,H?zt:Oe,et,Y.createElement(j7,{locale:_,rootPrefixCls:r,disabled:V,selectPrefixCls:l,changeSize:Ve,pageSize:se,pageSizeOptions:D,quickGo:bt?dt:null,goButton:kt,showSizeChanger:W,sizeChangerRender:z}))};const _7=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}}}}},z7=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:J(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:J(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"}}},[`
307
+ &${t}-mini ${t}-prev ${t}-item-link,
308
+ &${t}-mini ${t}-next ${t}-item-link
309
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:J(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM),input:Object.assign(Object.assign({},vv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L7=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:J(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:J(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 ${J(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${J(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:`${J(e.inputOutlineOffset)} 0 ${J(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:J(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:J(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},B7=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}}},[`
310
+ ${t}-prev,
311
+ ${t}-jump-prev,
312
+ ${t}-jump-next
313
+ `]:{marginInlineEnd:e.marginXS},[`
314
+ ${t}-prev,
315
+ ${t}-next,
316
+ ${t}-jump-prev,
317
+ ${t}-jump-next
318
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:J(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:`${J(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:J(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},hv(e)),gv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Md(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},A7=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:J(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${J(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}}}}},F7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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:J(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),A7(e)),B7(e)),L7(e)),z7(e)),_7(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"}}},D7=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ko(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},cl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:cl(e)}}}},Qw=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},Td(e)),Yw=e=>Yt(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"},Pd(e)),H7=pn("Pagination",e=>{const t=Yw(e);return[F7(t),D7(t)]},Qw),V7=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:`${J(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}}}}},W7=ks(["Pagination","bordered"],e=>{const t=Yw(e);return V7(t)},Qw);function H1(e){return c.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var U7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q7=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:l,style:s,size:u,locale:f,responsive:m,showSizeChanger:p,selectComponentClass:g,pageSizeOptions:h}=e,y=U7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:S}=rv(m),[,C]=Pr(),{getPrefixCls:b,direction:$,showSizeChanger:w,className:R,style:O}=Ir("pagination"),I=b("pagination",n),[P,T,j]=H7(I),M=oi(u),k=M==="small"||!!(S&&!M&&m),[L]=ni("Pagination",KC),_=Object.assign(Object.assign({},L),f),[A,B]=H1(p),[q,V]=H1(w),H=A??q,F=B??V,Z=g||bl,W=c.useMemo(()=>h?h.map(oe=>Number(oe)):void 0,[h]),z=oe=>{var fe;const{disabled:me,size:ue,onSizeChange:Ce,"aria-label":pe,className:se,options:ye}=oe,{className:ve,onChange:ce}=F||{},le=(fe=ye.find(be=>String(be.value)===String(ue)))===null||fe===void 0?void 0:fe.value;return c.createElement(Z,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:be=>be.parentNode,"aria-label":pe,options:ye},F,{value:le,onChange:(be,Se)=>{Ce==null||Ce(be),ce==null||ce(be,Se)},size:k?"small":"middle",className:re(se,ve)}))},D=c.useMemo(()=>{const oe=c.createElement("span",{className:`${I}-item-ellipsis`},"•••"),fe=c.createElement("button",{className:`${I}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(ul,null):c.createElement(Es,null)),me=c.createElement("button",{className:`${I}-item-link`,type:"button",tabIndex:-1},$==="rtl"?c.createElement(Es,null):c.createElement(ul,null)),ue=c.createElement("a",{className:`${I}-item-link`},c.createElement("div",{className:`${I}-item-container`},$==="rtl"?c.createElement(A1,{className:`${I}-item-link-icon`}):c.createElement(B1,{className:`${I}-item-link-icon`}),oe)),Ce=c.createElement("a",{className:`${I}-item-link`},c.createElement("div",{className:`${I}-item-container`},$==="rtl"?c.createElement(B1,{className:`${I}-item-link-icon`}):c.createElement(A1,{className:`${I}-item-link-icon`}),oe));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ue,jumpNextIcon:Ce}},[$,I]),Q=b("select",r),ne=re({[`${I}-${t}`]:!!t,[`${I}-mini`]:k,[`${I}-rtl`]:$==="rtl",[`${I}-bordered`]:C.wireframe},R,o,l,T,j),ee=Object.assign(Object.assign({},O),s);return P(c.createElement(c.Fragment,null,C.wireframe&&c.createElement(W7,{prefixCls:I}),c.createElement(N7,Object.assign({},D,y,{style:ee,prefixCls:I,selectPrefixCls:Q,className:ne,locale:_,pageSizeOptions:W,showSizeChanger:H,sizeChangerRender:z}))))},Wu=100,Zw=Wu/5,Jw=Wu/2-Zw/2,np=Jw*2*Math.PI,V1=50,W1=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Jw,cx:V1,cy:V1,strokeWidth:Zw,style:n})},G7=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[l,s]=c.useState(!1);on(()=>{e!==0&&s(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const f={strokeDashoffset:`${np/4}`,strokeDasharray:`${np*u/100} ${np*(100-u)/100}`};return c.createElement("span",{className:re(r,`${n}-progress`,u<=0&&o)},c.createElement("svg",{viewBox:`0 0 ${Wu} ${Wu}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},c.createElement(W1,{dotClassName:n,hasCircleCls:!0}),c.createElement(W1,{dotClassName:n,style:f})))};function K7(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,l=`${o}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:re(o,n>0&&l)},c.createElement("span",{className:re(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>c.createElement("i",{className:`${t}-dot-item`,key:s})))),c.createElement(G7,{prefixCls:t,percent:n}))}function X7(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,l=`${n}-dot`;return r&&c.isValidElement(r)?Or(r,{className:re((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):c.createElement(K7,{prefixCls:n,percent:o})}const Q7=new At("antSpinMove",{to:{opacity:1}}),Y7=new At("antRotate",{to:{transform:"rotate(405deg)"}}),Z7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Fn(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:Q7,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:Y7,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"}})}},J7=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},e_=pn("Spin",e=>{const t=Yt(e,{spinDotDefault:e.colorTextDescription});return Z7(t)},J7),t_=200,U1=[[30,.05],[70,.03],[96,.01]];function n_(e,t){const[n,r]=c.useState(0),o=c.useRef(null),l=t==="auto";return c.useEffect(()=>(l&&e&&(r(0),o.current=setInterval(()=>{r(s=>{const u=100-s;for(let f=0;f<U1.length;f+=1){const[m,p]=U1[f];if(s<=m)return s+u*p}return s})},t_)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}var r_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let e2;function o_(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Nd=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:l,rootClassName:s,size:u="default",tip:f,wrapperClassName:m,style:p,children:g,fullscreen:h=!1,indicator:y,percent:S}=e,C=r_(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:$,className:w,style:R,indicator:O}=Ir("spin"),I=b("spin",n),[P,T,j]=e_(I),[M,k]=c.useState(()=>r&&!o_(r,o)),L=n_(M,S);c.useEffect(()=>{if(r){const F=IN(o,()=>{k(!0)});return F(),()=>{var Z;(Z=F==null?void 0:F.cancel)===null||Z===void 0||Z.call(F)}}k(!1)},[o,r]);const _=c.useMemo(()=>typeof g<"u"&&!h,[g,h]),A=re(I,w,{[`${I}-sm`]:u==="small",[`${I}-lg`]:u==="large",[`${I}-spinning`]:M,[`${I}-show-text`]:!!f,[`${I}-rtl`]:$==="rtl"},l,!h&&s,T,j),B=re(`${I}-container`,{[`${I}-blur`]:M}),q=(t=y??O)!==null&&t!==void 0?t:e2,V=Object.assign(Object.assign({},R),p),H=c.createElement("div",Object.assign({},C,{style:V,className:A,"aria-live":"polite","aria-busy":M}),c.createElement(X7,{prefixCls:I,indicator:q,percent:L}),f&&(_||h)?c.createElement("div",{className:`${I}-text`},f):null);return P(_?c.createElement("div",Object.assign({},C,{className:re(`${I}-nested-loading`,m,T,j)}),M&&c.createElement("div",{key:"loading"},H),c.createElement("div",{className:B,key:"container"},g)):h?c.createElement("div",{className:re(`${I}-fullscreen`,{[`${I}-fullscreen-show`]:M},s,T,j)},H):H)};Nd.setDefaultIndicator=e=>{e2=e};const Sv=Y.createContext({});Sv.Consumer;var t2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i_=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=t2(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=c.useContext(It),f=u("list",t),m=re(`${f}-item-meta`,n),p=Y.createElement("div",{className:`${f}-item-meta-content`},o&&Y.createElement("h4",{className:`${f}-item-meta-title`},o),l&&Y.createElement("div",{className:`${f}-item-meta-description`},l));return Y.createElement("div",Object.assign({},s,{className:m}),r&&Y.createElement("div",{className:`${f}-item-meta-avatar`},r),(o||l)&&p)},a_=Y.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:u,classNames:f,colStyle:m}=e,p=t2(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:h}=c.useContext(Sv),{getPrefixCls:y,list:S}=c.useContext(It),C=T=>{var j,M;return re((M=(j=S==null?void 0:S.item)===null||j===void 0?void 0:j.classNames)===null||M===void 0?void 0:M[T],f==null?void 0:f[T])},b=T=>{var j,M;return Object.assign(Object.assign({},(M=(j=S==null?void 0:S.item)===null||j===void 0?void 0:j.styles)===null||M===void 0?void 0:M[T]),s==null?void 0:s[T])},$=()=>{let T=!1;return c.Children.forEach(r,j=>{typeof j=="string"&&(T=!0)}),T&&c.Children.count(r)>1},w=()=>h==="vertical"?!!l:!$(),R=y("list",n),O=o&&o.length>0&&Y.createElement("ul",{className:re(`${R}-item-action`,C("actions")),key:"actions",style:b("actions")},o.map((T,j)=>Y.createElement("li",{key:`${R}-item-action-${j}`},T,j!==o.length-1&&Y.createElement("em",{className:`${R}-item-action-split`})))),I=g?"div":"li",P=Y.createElement(I,Object.assign({},p,g?{}:{ref:t},{className:re(`${R}-item`,{[`${R}-item-no-flex`]:!w()},u)}),h==="vertical"&&l?[Y.createElement("div",{className:`${R}-item-main`,key:"content"},r,O),Y.createElement("div",{className:re(`${R}-item-extra`,C("extra")),key:"extra",style:b("extra")},l)]:[r,O,Or(l,{key:"extra"})]);return g?Y.createElement(MN,{ref:t,flex:1,style:m},P):P}),n2=a_;n2.Meta=i_;const l_=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:l,itemPaddingLG:s,marginLG:u,borderRadiusLG:f}=e,m=J(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${J(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:`${J(o)} ${J(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},s_=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:l,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${J(s)}`}}}}}},c_=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:l,marginLG:s,padding:u,itemPadding:f,colorPrimary:m,itemPaddingSM:p,itemPaddingLG:g,paddingXS:h,margin:y,colorText:S,colorTextDescription:C,motionDurationSlow:b,lineWidth:$,headerBg:w,footerBg:R,emptyTextPadding:O,metaMarginBottom:I,avatarMarginRight:P,titleMarginBottom:T,descriptionFontSize:j}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:R},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:S,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:P},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:S},[`${t}-item-meta-title`]:{margin:`0 0 ${J(e.marginXXS)} 0`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:S,transition:`all ${b}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:C,fontSize:j,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 ${J(h)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${J(u)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:O,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:y,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:I,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:S,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${J(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${J(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:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},u_=e=>({contentWidth:220,itemPadding:`${J(e.paddingContentVertical)} 0`,itemPaddingSM:`${J(e.paddingContentVerticalSM)} ${J(e.paddingContentHorizontal)}`,itemPaddingLG:`${J(e.paddingContentVerticalLG)} ${J(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),d_=pn("List",e=>{const t=Yt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[c_(t),l_(t),s_(t)]},u_);var f_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m_(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:l=!0,className:s,rootClassName:u,style:f,children:m,itemLayout:p,loadMore:g,grid:h,dataSource:y=[],size:S,header:C,footer:b,loading:$=!1,rowKey:w,renderItem:R,locale:O}=e,I=f_(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),P=n&&typeof n=="object"?n:{},[T,j]=c.useState(P.defaultCurrent||1),[M,k]=c.useState(P.defaultPageSize||10),{getPrefixCls:L,direction:_,className:A,style:B}=Ir("list"),{renderEmpty:q}=c.useContext(It),V={current:1,total:0,position:"bottom"},H=Pe=>(Be,Re)=>{var tt;j(Be),k(Re),n&&((tt=n==null?void 0:n[Pe])===null||tt===void 0||tt.call(n,Be,Re))},F=H("onChange"),Z=H("onShowSizeChange"),W=(Pe,Be)=>{if(!R)return null;let Re;return typeof w=="function"?Re=w(Pe):w?Re=Pe[w]:Re=Pe.key,Re||(Re=`list-item-${Be}`),c.createElement(c.Fragment,{key:Re},R(Pe,Be))},z=!!(g||n||b),D=L("list",r),[Q,ne,ee]=d_(D);let oe=$;typeof oe=="boolean"&&(oe={spinning:oe});const fe=!!(oe!=null&&oe.spinning),me=oi(S);let ue="";switch(me){case"large":ue="lg";break;case"small":ue="sm";break}const Ce=re(D,{[`${D}-vertical`]:p==="vertical",[`${D}-${ue}`]:ue,[`${D}-split`]:l,[`${D}-bordered`]:o,[`${D}-loading`]:fe,[`${D}-grid`]:!!h,[`${D}-something-after-last-item`]:z,[`${D}-rtl`]:_==="rtl"},A,s,u,ne,ee),pe=Wp(V,{total:y.length,current:T,pageSize:M},n||{}),se=Math.ceil(pe.total/pe.pageSize);pe.current=Math.min(pe.current,se);const ye=n&&c.createElement("div",{className:re(`${D}-pagination`)},c.createElement(q7,Object.assign({align:"end"},pe,{onChange:F,onShowSizeChange:Z})));let ve=Ae(y);n&&y.length>(pe.current-1)*pe.pageSize&&(ve=Ae(y).splice((pe.current-1)*pe.pageSize,pe.pageSize));const ce=Object.keys(h||{}).some(Pe=>["xs","sm","md","lg","xl","xxl"].includes(Pe)),le=rv(ce),be=c.useMemo(()=>{for(let Pe=0;Pe<ra.length;Pe+=1){const Be=ra[Pe];if(le[Be])return Be}},[le]),Se=c.useMemo(()=>{if(!h)return;const Pe=be&&h[be]?h[be]:h.column;if(Pe)return{width:`${100/Pe}%`,maxWidth:`${100/Pe}%`}},[JSON.stringify(h),be]);let $e=fe&&c.createElement("div",{style:{minHeight:53}});if(ve.length>0){const Pe=ve.map(W);$e=h?c.createElement(NN,{gutter:h.gutter},c.Children.map(Pe,Be=>c.createElement("div",{key:Be==null?void 0:Be.key,style:Se},Be))):c.createElement("ul",{className:`${D}-items`},Pe)}else!m&&!fe&&($e=c.createElement("div",{className:`${D}-empty-text`},(O==null?void 0:O.emptyText)||(q==null?void 0:q("List"))||c.createElement(Zx,{componentName:"List"})));const je=pe.position,Le=c.useMemo(()=>({grid:h,itemLayout:p}),[JSON.stringify(h),p]);return Q(c.createElement(Sv.Provider,{value:Le},c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},B),f),className:Ce},I),(je==="top"||je==="both")&&ye,C&&c.createElement("div",{className:`${D}-header`},C),c.createElement(Nd,Object.assign({},oe),$e,m),b&&c.createElement("div",{className:`${D}-footer`},b),g||(je==="bottom"||je==="both")&&ye)))}const p_=c.forwardRef(m_),Os=p_;Os.Item=n2;const g_=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let oo=null,Ji=e=>e(),Is=[],Ps={};function q1(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ps,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const v_=Y.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(It),l=Ps.prefixCls||o("message"),s=c.useContext(ZP),[u,f]=HS(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return Y.useImperativeHandle(t,()=>{const m=Object.assign({},u);return Object.keys(m).forEach(p=>{m[p]=(...g)=>(r(),u[p].apply(u,g))}),{instance:m,sync:r}}),f}),h_=Y.forwardRef((e,t)=>{const[n,r]=Y.useState(q1),o=()=>{r(q1)};Y.useEffect(o,[]);const l=ES(),s=l.getRootPrefixCls(),u=l.getIconPrefixCls(),f=l.getTheme(),m=Y.createElement(v_,{ref:t,sync:o,messageConfig:n});return Y.createElement(Bo,{prefixCls:s,iconPrefixCls:u,theme:f},l.holderRender?l.holderRender(m):m)}),_d=()=>{if(!oo){const e=document.createDocumentFragment(),t={fragment:e};oo=t,Ji(()=>{Dg()(Y.createElement(h_,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,_d())})}}),e)});return}oo.instance&&(Is.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ji(()=>{const r=oo.instance.open(Object.assign(Object.assign({},Ps),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ji(()=>{oo==null||oo.instance.destroy(e.key)});break;default:Ji(()=>{var r;const o=(r=oo.instance)[t].apply(r,Ae(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Is=[])};function y_(e){Ps=Object.assign(Object.assign({},Ps),e),Ji(()=>{var t;(t=oo==null?void 0:oo.sync)===null||t===void 0||t.call(oo)})}function b_(e){const t=Ag(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Is.push(o),()=>{r?Ji(()=>{r()}):o.skipped=!0}});return _d(),t}function C_(e,t){const n=Ag(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return Is.push(l),()=>{o?Ji(()=>{o()}):l.skipped=!0}});return _d(),n}const S_=e=>{Is.push({type:"destroy",key:e}),_d()},x_=["success","info","warning","error","loading"],w_={open:b_,destroy:S_,config:y_,useMessage:BO,_InternalPanelDoNotUseOrYouWillBeFired:TO},r2=w_;x_.forEach(e=>{r2[e]=(...t)=>C_(e,t)});var $_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E_=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:l,title:s,children:u,footer:f}=e,m=$_(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=c.useContext(It),g=p(),h=t||p("modal"),y=ri(g),[S,C,b]=xx(h,y),$=`${h}-confirm`;let w={};return l?w={closable:o??!1,title:"",footer:"",children:c.createElement($x,Object.assign({},e,{prefixCls:h,confirmPrefixCls:$,rootPrefixCls:g,content:u}))}:w={closable:o??!0,title:s,footer:f!==null&&c.createElement(yx,Object.assign({},e)),children:u},S(c.createElement(sx,Object.assign({prefixCls:h,className:re(C,`${h}-pure-panel`,l&&$,l&&`${$}-${l}`,n,b,y)},m,{closeIcon:hx(h,r),closable:o},w)))},R_=kx(E_);function o2(e){return Ds(Ix(e))}const lo=wx;lo.useModal=YP;lo.info=function(t){return Ds(Px(t))};lo.success=function(t){return Ds(Tx(t))};lo.error=function(t){return Ds(Mx(t))};lo.warning=o2;lo.warn=o2;lo.confirm=function(t){return Ds(jx(t))};lo.destroyAll=function(){for(;Zi.length;){const t=Zi.pop();t&&t()}};lo.config=qP;lo._InternalPanelDoNotUseOrYouWillBeFired=R_;var O_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},I_=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:O_}))},P_=c.forwardRef(I_);const T_=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:l}=e,s=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Fn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},xv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Yt(e,{tagFontSize:o,tagLineHeight:J(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},wv=e=>({defaultBg:new cn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),i2=pn("Tag",e=>{const t=xv(e);return T_(t)},wv);var M_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j_=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:u,onChange:f,onClick:m}=e,p=M_(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:h}=c.useContext(It),y=R=>{f==null||f(!l),m==null||m(R)},S=g("tag",n),[C,b,$]=i2(S),w=re(S,`${S}-checkable`,{[`${S}-checkable-checked`]:l},h==null?void 0:h.className,o,b,$);return C(c.createElement("span",Object.assign({},p,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:w,onClick:y}),u,c.createElement("span",null,s)))}),k_=e=>od(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),N_=ks(["Tag","preset"],e=>{const t=xv(e);return k_(t)},wv);function __(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const tu=(e,t,n)=>{const r=__(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"}}}},z_=ks(["Tag","status"],e=>{const t=xv(e);return[tu(t,"success","Success"),tu(t,"processing","Info"),tu(t,"error","Error"),tu(t,"warning","Warning")]},wv);var L_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B_=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:l,children:s,icon:u,color:f,onClose:m,bordered:p=!0,visible:g}=e,h=L_(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:S,tag:C}=c.useContext(It),[b,$]=c.useState(!0),w=Wn(h,["closeIcon","closable"]);c.useEffect(()=>{g!==void 0&&$(g)},[g]);const R=$d(f),O=TM(f),I=R||O,P=Object.assign(Object.assign({backgroundColor:f&&!I?f:void 0},C==null?void 0:C.style),l),T=y("tag",n),[j,M,k]=i2(T),L=re(T,C==null?void 0:C.className,{[`${T}-${f}`]:I,[`${T}-has-color`]:f&&!I,[`${T}-hidden`]:!b,[`${T}-rtl`]:S==="rtl",[`${T}-borderless`]:!p},r,o,M,k),_=F=>{F.stopPropagation(),m==null||m(F),!F.defaultPrevented&&$(!1)},[,A]=LS(ku(e),ku(C),{closable:!1,closeIconRender:F=>{const Z=c.createElement("span",{className:`${T}-close-icon`,onClick:_},F);return NS(F,Z,W=>({onClick:z=>{var D;(D=W==null?void 0:W.onClick)===null||D===void 0||D.call(W,z),_(z)},className:re(W==null?void 0:W.className,`${T}-close-icon`)}))}}),B=typeof h.onClick=="function"||s&&s.type==="a",q=u||null,V=q?c.createElement(c.Fragment,null,q,s&&c.createElement("span",null,s)):s,H=c.createElement("span",Object.assign({},w,{ref:t,className:L,style:P}),V,A,R&&c.createElement(N_,{key:"preset",prefixCls:T}),O&&c.createElement(z_,{key:"status",prefixCls:T}));return j(B?c.createElement(GS,{component:"Tag"},H):H)}),jo=B_;jo.CheckableTag=j_;const ro=(e,t)=>new cn(e).setA(t).toRgbString(),Ua=(e,t)=>new cn(e).lighten(t).toHexString(),A_=e=>{const t=ta(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]}},F_=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ro(r,.85),colorTextSecondary:ro(r,.65),colorTextTertiary:ro(r,.45),colorTextQuaternary:ro(r,.25),colorFill:ro(r,.18),colorFillSecondary:ro(r,.12),colorFillTertiary:ro(r,.08),colorFillQuaternary:ro(r,.04),colorBgSolid:ro(r,.95),colorBgSolidHover:ro(r,1),colorBgSolidActive:ro(r,.9),colorBgElevated:Ua(n,12),colorBgContainer:Ua(n,8),colorBgLayout:Ua(n,0),colorBgSpotlight:Ua(n,26),colorBgBlur:ro(r,.04),colorBorder:Ua(n,26),colorBorderSecondary:Ua(n,19)}},D_=(e,t)=>{const n=Object.keys(Lg).map(l=>{const s=ta(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,f,m)=>(u[`${l}-${m+1}`]=s[m],u[`${l}${m+1}`]=s[m],u),{})}).reduce((l,s)=>(l=Object.assign(Object.assign({},l),s),l),{}),r=t??eS(e),o=JC(e,{generateColorPalettes:A_,generateNeutralColorPalettes:F_});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},H_={defaultSeed:Pu.token,darkAlgorithm:D_};var V_={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"},W_=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:V_}))},U_=c.forwardRef(W_),q_={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"},G_=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:q_}))},K_=c.forwardRef(G_);const X_=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Q_=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
319
+ h${r}&,
320
+ div&-h${r},
321
+ div&-h${r} > textarea,
322
+ h${r}
323
+ `]=X_(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Y_=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},dS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Z_=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:Ou[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}}),J_=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"}}}},e9=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),t9=()=>({"\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"}}),n9=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"}},Q_(e)),{[`
324
+ & + h1${t},
325
+ & + h2${t},
326
+ & + h3${t},
327
+ & + h4${t},
328
+ & + h5${t}
329
+ `]:{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}}}),Z_(e)),Y_(e)),{[`
330
+ ${t}-expand,
331
+ ${t}-collapse,
332
+ ${t}-edit,
333
+ ${t}-copy
334
+ `]:Object.assign(Object.assign({},dS(e)),{marginInlineStart:e.marginXXS})}),J_(e)),e9(e)),t9()),{"&-rtl":{direction:"rtl"}})}},r9=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),a2=pn("Typography",n9,r9),o9=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:s,autoSize:u=!0,value:f,onSave:m,onCancel:p,onEnd:g,component:h,enterIcon:y=c.createElement(K_,null)}=e,S=c.useRef(null),C=c.useRef(!1),b=c.useRef(null),[$,w]=c.useState(f);c.useEffect(()=>{w(f)},[f]),c.useEffect(()=>{var B;if(!((B=S.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:q}=S.current.resizableTextArea;q.focus();const{length:V}=q.value;q.setSelectionRange(V,V)}},[]);const R=({target:B})=>{w(B.value.replace(/[\n\r]/g,""))},O=()=>{C.current=!0},I=()=>{C.current=!1},P=({keyCode:B})=>{C.current||(b.current=B)},T=()=>{m($.trim())},j=({keyCode:B,ctrlKey:q,altKey:V,metaKey:H,shiftKey:F})=>{b.current!==B||C.current||q||V||H||F||(B===Ue.ENTER?(T(),g==null||g()):B===Ue.ESC&&p())},M=()=>{T()},[k,L,_]=a2(t),A=re(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,L,_);return k(c.createElement("div",{className:A,style:o},c.createElement(b7,{ref:S,maxLength:s,value:$,onChange:R,onKeyDown:P,onKeyUp:j,onCompositionStart:O,onCompositionEnd:I,onBlur:M,"aria-label":n,rows:1,autoSize:u}),y!==null?Or(y,{className:`${t}-edit-content-confirm`}):null))};var rp,G1;function i9(){return G1||(G1=1,rp=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),rp}var op,K1;function a9(){if(K1)return op;K1=1;var e=i9(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function o(l,s){var u,f,m,p,g,h,y=!1;s||(s={}),u=s.debug||!1;try{m=e(),p=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=l,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(C){if(C.stopPropagation(),s.format)if(C.preventDefault(),typeof C.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[s.format]||t.default;window.clipboardData.setData(b,l)}else C.clipboardData.clearData(),C.clipboardData.setData(s.format,l);s.onCopy&&(C.preventDefault(),s.onCopy(C.clipboardData))}),document.body.appendChild(h),p.selectNodeContents(h),g.addRange(p);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");y=!0}catch(C){u&&console.error("unable to copy using execCommand: ",C),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),f=r("message"in s?s.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),h&&document.body.removeChild(h),m()}return y}return op=o,op}var l9=a9();const s9=Ts(l9);var c9=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function u(p){try{m(r.next(p))}catch(g){s(g)}}function f(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?l(p.value):o(p.value).then(u,f)}m((r=r.apply(e,t||[])).next())})};const u9=({copyConfig:e,children:t})=>{const[n,r]=c.useState(!1),[o,l]=c.useState(!1),s=c.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},f={};e.format&&(f.format=e.format),c.useEffect(()=>u,[]);const m=Nn(p=>c9(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;s9(h||g_(t,!0).join("")||"",f),l(!1),r(!0),u(),s.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,p)}catch(h){throw l(!1),h}}));return{copied:n,copyLoading:o,onClick:m}};function ip(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const d9=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},f9=(e,t,n)=>c.useMemo(()=>e===!0?{title:t??n}:c.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var m9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const l2=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:u,direction:f,style:m}=e,p=m9(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,className:y,style:S}=Ir("typography"),C=f??h,b=s?Lo(t,s):t,$=g("typography",n),[w,R,O]=a2($),I=re($,y,{[`${$}-rtl`]:C==="rtl"},o,l,R,O),P=Object.assign(Object.assign({},S),m);return w(c.createElement(r,Object.assign({className:I,style:P,ref:b},p),u))});var p9={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"},g9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:p9}))},s2=c.forwardRef(g9);function X1(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ap(e,t,n){return e===!0||e===void 0?t:e||n&&t}function v9(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 $v=e=>["string","number"].includes(typeof e),h9=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:u,loading:f})=>{const m=X1(o),p=X1(l),{copied:g,copy:h}=n??{},y=t?g:h,S=ap(m[t?1:0],y),C=typeof S=="string"?S:y;return c.createElement(Cl,{title:S},c.createElement("button",{type:"button",className:re(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":C,tabIndex:s},t?ap(p[1],c.createElement(rw,null),!0):ap(p[0],f?c.createElement(ad,null):c.createElement(s2,null),!0)))},nu=c.forwardRef(({style:e,children:t},n)=>{const r=c.useRef(null);return c.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),c.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)}),y9=e=>e.reduce((t,n)=>t+($v(n)?String(n).length:1),0);function Q1(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],u=$v(l)?String(l).length:1,f=n+u;if(f>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=f}return e}const lp=0,sp=1,cp=2,up=3,Y1=4,ru={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function b9(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:s,miscDeps:u,onEllipsis:f}=e,m=c.useMemo(()=>Rr(r),[r]),p=c.useMemo(()=>y9(m),[r]),g=c.useMemo(()=>o(m,!1),[r]),[h,y]=c.useState(null),S=c.useRef(null),C=c.useRef(null),b=c.useRef(null),$=c.useRef(null),w=c.useRef(null),[R,O]=c.useState(!1),[I,P]=c.useState(lp),[T,j]=c.useState(0),[M,k]=c.useState(null);on(()=>{P(t&&n&&p?sp:lp)},[n,r,l,t,m]),on(()=>{var B,q,V,H;if(I===sp){P(cp);const F=C.current&&getComputedStyle(C.current).whiteSpace;k(F)}else if(I===cp){const F=!!(!((B=b.current)===null||B===void 0)&&B.isExceed());P(F?up:Y1),y(F?[0,p]:null),O(F);const Z=((q=b.current)===null||q===void 0?void 0:q.getHeight())||0,W=l===1?0:((V=$.current)===null||V===void 0?void 0:V.getHeight())||0,z=((H=w.current)===null||H===void 0?void 0:H.getHeight())||0,D=Math.max(Z,W+z);j(D+1),f(F)}},[I]);const L=h?Math.ceil((h[0]+h[1])/2):0;on(()=>{var B;const[q,V]=h||[0,0];if(q!==V){const F=(((B=S.current)===null||B===void 0?void 0:B.getHeight())||0)>T;let Z=L;V-q===1&&(Z=F?q:V),y(F?[q,Z]:[Z,V])}},[h,L]);const _=c.useMemo(()=>{if(!t)return o(m,!1);if(I!==up||!h||h[0]!==h[1]){const B=o(m,!1);return[Y1,lp].includes(I)?B:c.createElement("span",{style:Object.assign(Object.assign({},ru),{WebkitLineClamp:l})},B)}return o(s?m:Q1(m,h[0]),R)},[s,I,h,m].concat(Ae(u))),A={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,_,I===cp&&c.createElement(c.Fragment,null,c.createElement(nu,{style:Object.assign(Object.assign(Object.assign({},A),ru),{WebkitLineClamp:l}),ref:b},g),c.createElement(nu,{style:Object.assign(Object.assign(Object.assign({},A),ru),{WebkitLineClamp:l-1}),ref:$},g),c.createElement(nu,{style:Object.assign(Object.assign(Object.assign({},A),ru),{WebkitLineClamp:1}),ref:w},o([],!0))),I===up&&h&&h[0]!==h[1]&&c.createElement(nu,{style:Object.assign(Object.assign({},A),{top:400}),ref:S},o(Q1(m,L),!0)),I===sp&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const C9=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:c.createElement(Cl,Object.assign({open:t?void 0:!1},r),n);var S9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function x9({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:s},u){let f=u;function m(p,g){g&&(f=c.createElement(p,{},f))}return m("strong",o),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),f}const w9="...",Z1=["delete","mark","code","underline","strong","keyboard","italic"],zd=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:s,disabled:u,children:f,ellipsis:m,editable:p,copyable:g,component:h,title:y}=e,S=S9(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:b}=c.useContext(It),[$]=ni("Text"),w=c.useRef(null),R=c.useRef(null),O=C("typography",r),I=Wn(S,Z1),[P,T]=ip(p),[j,M]=Vn(!1,{value:T.editing}),{triggerType:k=["icon"]}=T,L=Te=>{var De;Te&&((De=T.onStart)===null||De===void 0||De.call(T)),M(Te)},_=d9(j);on(()=>{var Te;!j&&_&&((Te=R.current)===null||Te===void 0||Te.focus())},[j]);const A=Te=>{Te==null||Te.preventDefault(),L(!0)},B=Te=>{var De;(De=T.onChange)===null||De===void 0||De.call(T,Te),L(!1)},q=()=>{var Te;(Te=T.onCancel)===null||Te===void 0||Te.call(T),L(!1)},[V,H]=ip(g),{copied:F,copyLoading:Z,onClick:W}=u9({copyConfig:H,children:f}),[z,D]=c.useState(!1),[Q,ne]=c.useState(!1),[ee,oe]=c.useState(!1),[fe,me]=c.useState(!1),[ue,Ce]=c.useState(!0),[pe,se]=ip(m,{expandable:!1,symbol:Te=>Te?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[ye,ve]=Vn(se.defaultExpanded||!1,{value:se.expanded}),ce=pe&&(!ye||se.expandable==="collapsible"),{rows:le=1}=se,be=c.useMemo(()=>ce&&(se.suffix!==void 0||se.onEllipsis||se.expandable||P||V),[ce,se,P,V]);on(()=>{pe&&!be&&(D(Ob("webkitLineClamp")),ne(Ob("textOverflow")))},[be,pe]);const[Se,$e]=c.useState(ce),je=c.useMemo(()=>be?!1:le===1?Q:z,[be,Q,z]);on(()=>{$e(je&&ce)},[je,ce]);const Le=ce&&(Se?fe:ee),Pe=ce&&le===1&&Se,Be=ce&&le>1&&Se,Re=(Te,De)=>{var wt;ve(De.expanded),(wt=se.onExpand)===null||wt===void 0||wt.call(se,Te,De)},[tt,lt]=c.useState(0),bt=({offsetWidth:Te})=>{lt(Te)},st=Te=>{var De;oe(Te),ee!==Te&&((De=se.onEllipsis)===null||De===void 0||De.call(se,Te))};c.useEffect(()=>{const Te=w.current;if(pe&&Se&&Te){const De=v9(Te);fe!==De&&me(De)}},[pe,Se,f,Be,ue,tt]),c.useEffect(()=>{const Te=w.current;if(typeof IntersectionObserver>"u"||!Te||!Se||!ce)return;const De=new IntersectionObserver(()=>{Ce(!!Te.offsetParent)});return De.observe(Te),()=>{De.disconnect()}},[Se,ce]);const qe=f9(se.tooltip,T.text,f),it=c.useMemo(()=>{if(!(!pe||Se))return[T.text,f,y,qe.title].find($v)},[pe,Se,y,qe.title,Le]);if(j)return c.createElement(o9,{value:(n=T.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:B,onCancel:q,onEnd:T.onEnd,prefixCls:O,className:o,style:l,direction:b,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ve=()=>{const{expandable:Te,symbol:De}=se;return Te?c.createElement("button",{type:"button",key:"expand",className:`${O}-${ye?"collapse":"expand"}`,onClick:wt=>Re(wt,{expanded:!ye}),"aria-label":ye?$.collapse:$==null?void 0:$.expand},typeof De=="function"?De(ye):De):null},dt=()=>{if(!P)return;const{icon:Te,tooltip:De,tabIndex:wt}=T,pt=Rr(De)[0]||($==null?void 0:$.edit),Vt=typeof pt=="string"?pt:"";return k.includes("icon")?c.createElement(Cl,{key:"edit",title:De===!1?"":pt},c.createElement("button",{type:"button",ref:R,className:`${O}-edit`,onClick:A,"aria-label":Vt,tabIndex:wt},Te||c.createElement(U_,{role:"button"}))):null},Xe=()=>V?c.createElement(h9,Object.assign({key:"copy"},H,{prefixCls:O,copied:F,locale:$,onCopy:W,loading:Z,iconOnly:f==null})):null,ke=Te=>[Te&&Ve(),dt(),Xe()],Ye=Te=>[Te&&!ye&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},w9),se.suffix,ke(Te)];return c.createElement(io,{onResize:bt,disabled:!ce},Te=>c.createElement(C9,{tooltipProps:qe,enableEllipsis:ce,isEllipsis:Le},c.createElement(l2,Object.assign({className:re({[`${O}-${s}`]:s,[`${O}-disabled`]:u,[`${O}-ellipsis`]:pe,[`${O}-ellipsis-single-line`]:Pe,[`${O}-ellipsis-multiple-line`]:Be},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Be?le:void 0}),component:h,ref:Lo(Te,w,t),direction:b,onClick:k.includes("text")?A:void 0,"aria-label":it==null?void 0:it.toString(),title:y},I),c.createElement(b9,{enableMeasure:ce&&!Se,text:f,rows:le,width:tt,onEllipsis:st,expanded:ye,miscDeps:[F,ye,Z,P,V,$].concat(Ae(Z1.map(De=>e[De])))},(De,wt)=>x9(e,c.createElement(c.Fragment,null,De.length>0&&wt&&!ye&&it?c.createElement("span",{key:"show-content","aria-hidden":!0},De):De,Ye(wt)))))))});var $9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E9=c.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,s=$9(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return c.createElement(zd,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),o)});var R9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const O9=c.forwardRef((e,t)=>{const{children:n}=e,r=R9(e,["children"]);return c.createElement(zd,Object.assign({ref:t},r,{component:"div"}),n)});var I9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const P9=(e,t)=>{const{ellipsis:n,children:r}=e,o=I9(e,["ellipsis","children"]),l=c.useMemo(()=>n&&typeof n=="object"?Wn(n,["expandable","rows"]):n,[n]);return c.createElement(zd,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},T9=c.forwardRef(P9);var M9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j9=[1,2,3,4,5],k9=c.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=M9(e,["level","children"]),l=j9.includes(n)?`h${n}`:"h1";return c.createElement(zd,Object.assign({ref:t},o,{component:l}),r)}),Ao=l2;Ao.Text=T9;Ao.Link=E9;Ao.Title=k9;Ao.Paragraph=O9;var N9={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"},_9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:N9}))},z9=c.forwardRef(_9),L9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},B9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:L9}))},A9=c.forwardRef(B9),F9={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},D9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:F9}))},H9=c.forwardRef(D9),V9={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},W9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:V9}))},U9=c.forwardRef(W9),q9={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"},G9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:q9}))},K9=c.forwardRef(G9),X9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Q9=function(t,n){return c.createElement(gn,Ee({},t,{ref:n,icon:X9}))},Y9=c.forwardRef(Q9);function Z9(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function J1(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(`
335
+ `):JSON.stringify(e.content):String(e.content??"")}const J9=[{match:/claude/i,name:"Claude",color:"#000000",svg:'<svg t="1771495509570" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1570" width="200" height="200"><path d="M198.4 678.4l198.4-115.2 6.4-12.8H243.2l-96-6.4-102.4-6.4-19.2-6.4-25.6-25.6v-12.8l19.2-12.8h32l64 6.4 96 6.4 70.4 6.4L384 512h19.2V492.8l-6.4-6.4-102.4-64-108.8-76.8-51.2-38.4-32-19.2-19.2-25.6-6.4-38.4 32-32h44.8l38.4 32 83.2 64L384 364.8l12.8 12.8 6.4-6.4-6.4-12.8L339.2 256l-64-108.8-25.6-38.4-6.4-25.6c0-12.8-6.4-19.2-6.4-32l32-44.8 19.2-6.4 44.8 6.4 19.2 12.8 25.6 57.6 44.8 96 64 128 19.2 38.4 6.4 38.4 6.4 12.8h6.4V384l6.4-70.4 12.8-89.6 12.8-115.2 6.4-32 19.2-38.4 32-19.2 25.6 12.8 19.2 32v19.2l-32 70.4-19.2 121.6-19.2 83.2h6.4l12.8-12.8 44.8-57.6 70.4-89.6 32-32 38.4-38.4 25.6-19.2h44.8l32 51.2-12.8 51.2-51.2 57.6-38.4 51.2-51.2 70.4-38.4 57.6v6.4h6.4l121.6-25.6 64-12.8 76.8-12.8 38.4 19.2 6.4 19.2-12.8 32-83.2 19.2-96 19.2-147.2 32 64 6.4h96l128 6.4 32 19.2 25.6 38.4-6.4 19.2-51.2 25.6-70.4-12.8-160-38.4-57.6-12.8h-6.4v6.4l44.8 44.8 83.2 76.8 108.8 102.4 6.4 25.6-12.8 19.2h-12.8l-96-70.4-38.4-32-83.2-70.4h-6.4v6.4l19.2 25.6 102.4 147.2 6.4 44.8-6.4 12.8-25.6 6.4-25.6-6.4-57.6-83.2-64-83.2-51.2-83.2-6.4 6.4-25.6 307.2-12.8 12.8-32 12.8-25.6-19.2-12.8-32 12.8-64 19.2-83.2 12.8-64 12.8-83.2 6.4-25.6h-6.4l-64 83.2-96 128-70.4 76.8-19.2 6.4-32-12.8v-25.6l19.2-25.6 102.4-128 64-83.2 38.4-51.2v-6.4l-268.8 172.8-51.2 12.8-19.2-19.2v-32l12.8-12.8 76.8-57.6z m0 0" fill="#D97757" p-id="1571"></path></svg>'},{match:/gpt|o1|o3|o4/i,name:"OpenAI",color:"#10A37F",svg:'<svg t="1771495569354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2752" width="200" height="200"><path d="M565.265178 954.519092c-22.289934 0-48.400999-8.151747-67.952455-14.838727a103.425292 103.425292 0 0 1-26.875292-11.272338c-12.737105-7.769634-15.411897-8.342804-19.806198-24.773669 21.971506-5.158528 81.581157-41.905075 103.871091-55.342721 148.896757-89.159735 119.028246-10.444426 119.028246-364.981743 15.029784 3.566389 82.791182 32.415932 82.791182 57.316972 0 133.102747 20.570425 273.847757-52.604243 354.91943-22.799418 25.47421-91.834527 58.972796-138.388646 58.972796z m-433.061569-299.321966c258.626916 136.860193 184.369594 157.048504 357.721593 52.094759 44.579867-27.193719 90.433445-49.292596 132.593263-77.568969v101.896839c-95.528287 22.226248-272.319304 227.038896-419.050754 100.686815l-25.856323-25.155782c-37.319718-43.943012-45.344094-72.410442-45.344094-151.889977z m375.744596-19.105658c-19.933569-13.310275-79.479535-51.330533-101.896839-57.316972v-133.739602a1158.312326 1158.312326 0 0 0 101.896839-57.316973c43.943012 10.189684 70.690933 47.063603 114.633945 57.316973v127.371049c-17.831947 12.10025-95.846715 58.718054-114.633945 63.749211z m-426.693016-178.31947c0-63.685525-4.26693-90.306074 38.84817-145.776166 23.945757-30.88748 47.509402-39.612396 82.090641-57.953828v261.110652c44.134069 23.372588 83.873836 49.037854 129.345301 74.448379l131.765351 78.396881c-59.545966 15.921381-63.685525 61.32916-109.602788 33.753328-104.699003-62.730242-272.38299-129.345301-272.38299-243.91556z m866.123138 127.37105c0 79.543221-47.573087 161.188063-121.002497 178.31947v-165.582365c0-82.791182 9.743885-84.574377-48.910483-116.608196L565.265178 362.371082c15.79401-23.62733 22.608361-19.105657 48.146256-34.835982 41.714019-25.47421 39.039227-16.112438 117.053995 28.785857 94.190891 54.196382 216.849212 100.559444 216.849212 228.885777z m-541.326961-197.425127v-95.528287c43.751956-23.181531 90.688187-50.94842 133.357489-76.804743 82.154327-49.547338 95.528287-63.303412 185.006449-63.303412 48.464684 0 102.533695 36.746548 125.651541 65.405034 42.223503 52.22213 39.930824 92.662439 39.930824 151.125751-31.078536-16.494551-192.393971-121.002497-222.899337-121.002498s-229.650003 123.422547-261.110652 140.108155z m-50.94842 159.213812c-16.36718-10.95391-63.112355-39.99451-82.791183-44.579867 0-168.320842-33.880699-314.606493 67.952455-390.519639 56.043262-41.714019 113.169178-53.814269 181.376375-30.696423 25.47421 8.661231 35.536523 20.888852 56.36169 26.429493-11.781822 16.048752-80.68956 50.311565-102.278953 63.303412-154.564769 93.235608-120.620384 7.451206-120.620384 376.063024z m-292.953415 121.002498c0 169.148754 115.143429 280.853165 274.293556 273.847756 59.800708-2.674792 26.811606-7.705949 69.417222 25.47421 97.820966 76.741057 228.822091 73.747838 319.637649 1.018969a251.939936 251.939936 0 0 0 52.604244-55.661149c58.20857-85.274918-10.95391-45.598836 81.96327-83.619094 130.236898-53.241099 199.399378-217.358696 128.64476-355.428914-27.448461-53.559526-40.249252-28.849543-28.276373-104.699003 18.723544-118.582447-63.176041-230.032116-157.621674-269.771884-98.90362-41.586648-129.090559 12.737105-178.892639-37.574459A161.888604 161.888604 0 0 0 580.103905 28.913674C474.003821-27.766443 331.284559 1.528898 258.428319 93.681853c-81.326415 102.979494 9.489143 54.705866-92.407697 98.648878C15.149614 257.353652-33.251385 439.175825 41.579107 561.06992c56.807488 92.598753 20.570425 4.967471 20.570424 106.800625z" fill="#EFA474" p-id="2753"></path></svg>'},{match:/gemini/i,name:"Gemini",color:"#4285F4",svg:'<svg t="1771495622863" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4556" width="200" height="200"><path d="M960 512.896A477.248 477.248 0 0 0 512.896 960h-1.792A477.184 477.184 0 0 0 64 512.896v-1.792A477.184 477.184 0 0 0 511.104 64h1.792A477.248 477.248 0 0 0 960 511.104z" fill="#448AFF" p-id="4557"></path></svg>'},{match:/qwen/i,name:"Qwen",color:"#6F42C1",svg:'<svg t="1771495640319" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200"><path d="M537.782857 57.161143c16.749714 29.44 33.426286 58.953143 50.102857 88.502857a7.68 7.68 0 0 0 6.692572 3.913143h236.873143c7.424 0 13.750857 4.681143 19.017142 13.933714l62.061715 109.677714c8.082286 14.372571 10.24 20.370286 1.024 35.693715a2262.893714 2262.893714 0 0 0-32.438857 55.478857l-15.652572 28.086857c-4.534857 8.338286-9.508571 11.922286-1.718857 21.833143l113.152 197.851428c7.314286 12.8 4.754286 21.065143-1.828571 32.841143-18.651429 33.499429-37.632 66.742857-56.978286 99.84-6.765714 11.593143-14.994286 16.018286-29.001143 15.798857a1833.398857 1833.398857 0 0 0-99.291429 0.658286 4.242286 4.242286 0 0 0-3.437714 2.157714 24571.830857 24571.830857 0 0 1-115.419428 202.24c-7.204571 12.507429-16.201143 15.469714-30.939429 15.506286-42.532571 0.146286-85.430857 0.182857-128.731429 0.109714a22.930286 22.930286 0 0 1-19.821714-11.556571l-56.978286-99.108571a3.84 3.84 0 0 0-3.547428-2.121143h-218.331429a76.288 76.288 0 0 1-34.377143-3.913143l-68.388571-118.198857a23.149714 23.149714 0 0 1-0.073143-23.04l51.492572-90.441143a8.448 8.448 0 0 0 0-8.411429 23594.496 23594.496 0 0 1-80.018286-139.593143L47.542857 425.325714c-6.838857-13.202286-7.387429-21.138286 4.022857-41.179428 19.858286-34.669714 39.570286-69.302857 59.209143-103.936 5.632-9.984 12.946286-14.262857 24.905143-14.262857 36.827429-0.182857 73.654857-0.182857 110.445714-0.073143 1.901714 0 3.657143-1.024 4.571429-2.669715l119.734857-208.859428a20.845714 20.845714 0 0 1 17.993143-10.496c22.381714-0.036571 44.946286 0 67.547428-0.256l43.410286-0.987429c14.555429-0.109714 30.866286 1.389714 38.4 14.518857z m-146.432 17.188571a2.56 2.56 0 0 0-2.194286 1.28l-122.331428 213.942857a6.692571 6.692571 0 0 1-5.741714 3.364572H138.788571c-2.377143 0-2.962286 1.060571-1.755428 3.145143l247.917714 433.334857c1.060571 1.792 0.548571 2.633143-1.462857 2.669714l-119.222857 0.658286a9.289143 9.289143 0 0 0-8.557714 4.937143l-56.32 98.56c-1.865143 3.328-0.914286 5.046857 2.925714 5.046857l243.858286 0.365714c1.974857 0 3.401143 0.841143 4.425142 2.56l59.867429 104.704c1.974857 3.474286 3.913143 3.510857 5.924571 0l213.577143-373.76 33.426286-58.953143a2.340571 2.340571 0 0 1 4.096 0l60.745143 107.958857a5.193143 5.193143 0 0 0 4.571428 2.633143l117.906286-0.841143a1.718857 1.718857 0 0 0 1.462857-2.56l-123.721143-217.014857a4.608 4.608 0 0 1 0-4.827428l12.507429-21.613715 47.798857-84.370285c1.024-1.755429 0.512-2.633143-1.499428-2.633143H392.521143c-2.486857 0-3.108571-1.097143-1.828572-3.291429l61.184-106.861714a4.571429 4.571429 0 0 0 0-4.864l-58.258285-102.253714a2.56 2.56 0 0 0-2.267429-1.316572z m268.361143 342.198857c1.974857 0 2.486857 0.841143 1.462857 2.56l-35.474286 62.500572-111.542857 195.620571a2.377143 2.377143 0 0 1-2.121143 1.243429 2.486857 2.486857 0 0 1-2.121142-1.243429l-147.346286-257.353143c-0.841143-1.462857-0.402286-2.230857 1.206857-2.304l9.216-0.512 286.793143-0.512h-0.073143z" fill="#7D5DED" p-id="5635"></path></svg>'},{match:/kimi|moonshot/i,name:"Kimi",color:"#F0F0F0",svg:'<svg t="1771495664798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6649" width="200" height="200"><path d="M731.062857 590.262857v318.317714h-148.589714V443.977143a146.285714 146.285714 0 0 1-146.285714 146.285714l-214.491429-0.036571v318.354285H73.142857V165.814857h148.553143v275.858286h180.882286l119.771428-275.858286h167.753143l-67.84 156.269714a255.524571 255.524571 0 0 1-106.678857 119.588572h66.925714a148.553143 148.553143 0 0 1 148.516572 148.589714z m120.758857-473.965714a99.035429 99.035429 0 0 1 0 198.070857h-99.035428V215.332571a99.035429 99.035429 0 0 1 99.035428-99.035428z" fill="#F4F4F4" p-id="6650"></path></svg>'},{match:/glm|chatglm/i,name:"GLM",color:"#3366FF",svg:'<svg data-name="glm" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 217.2 200"> <!-- Generator: Adobe Illustrator 29.8.2, SVG Export Plug-In . SVG Version: 2.1.1 Build 3) --> <defs> <style> .st0 { fill: #fff; } </style> </defs> <path class="st0" d="M86.8,190.4H0L131.3,4.8h85.8L86.8,190.4h0ZM212.8,190h-107.9l14.9-21.6c2.3-3.3,6-5.2,9.9-5.2h83.1v26.8h0ZM99.4,26.3c-2.3,3.3-6,5.2-9.9,5.2H6.4V4.8h107.9l-14.9,21.6Z"/> </svg>'},{match:/minimax|abab/i,name:"MiniMax",color:"#FF6B35",svg:'<svg viewBox="0 0 24 24" fill="#fff"><path d="M4 8l4-4 4 4 4-4 4 4v8l-4 4-4-4-4 4-4-4z" fill="none" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>'},{match:/deepseek/i,name:"DeepSeek",color:"#4D6BFE",svg:'<svg t="1771495947541" class="icon" viewBox="0 0 1391 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11539" width="200" height="200"><path d="M1326.70201318 112.02090779c-12.94676356-6.47485468-18.53640721 5.86654827-26.0997327 12.13814316-2.57756953 2.02376031-4.77807747 4.65435413-6.9785854 7.08168819-18.91788751 20.63528526-41.02017805 34.19182812-69.92725218 32.57311444-42.23384508-2.42733405-78.29772513 11.12773591-110.16384908 44.10589703-6.77679853-40.66668282-29.28560862-64.94444203-63.55255448-80.52327231-17.95608583-8.09209545-36.06388005-16.1856638-48.63358202-33.78825438-8.74900746-12.5431898-11.12773591-26.50330641-15.52727888-40.26016327-2.7823022-8.29535522-5.56460442-16.79249731-14.92044538-18.20942411-10.19244639-1.61871367-14.16337637 7.08168818-18.15934561 14.36516325-15.93232553 29.74073376-22.12880269 62.51710799-21.49692994 95.69705596 1.36684831 74.65672404 32.27117059 134.13819156 93.62469006 176.42358804 6.9800583 4.8546681 8.77551959 9.71080912 6.57501165 16.79102439-4.17271686 14.56695011-9.18056624 28.7303265-13.55506995 43.29727663-2.78377509 9.30723537-6.95501906 11.32952278-16.74241882 7.28347507-33.66158524-14.36516325-62.745407-35.60875491-88.46513227-61.30196806-43.62425973-43.09548975-83.0772755-90.64060097-132.26613965-127.86659667a581.67054343 581.67054343 0 0 0-35.07703915-24.48101901c-50.20074429-49.77065841 6.57501167-90.63912807 19.72650789-95.49526908 13.73181759-5.05792788 4.77955037-22.4572587-39.65480265-22.25547181s-85.07599655 15.3770434-136.87041526 35.60875491c-7.58541892 3.03416756-15.55379103 5.25971475-23.69596499 7.08168819-47.03990759-9.10544849-95.84876434-11.12773591-146.8596019-5.26118765-96.02551195 10.92594905-172.73103555 57.25739323-229.12678412 136.36373875-67.72674425 95.09022244-83.68558192 203.13015422-64.13582165 315.82149435 20.48504978 118.76262107 79.88992666 217.09027084 171.13736114 293.97106918 94.6350973 79.71317902 203.61031862 118.76262107 327.93607117 111.27735913 75.51542292-4.45256725 159.57953934-14.77020989 254.41642354-96.71040901 23.92426399 12.13961607 49.03715574 16.99575708 90.66564019 20.63675815 32.09295007 3.03416756 62.97223311-1.61871367 86.87145788-6.67664152 37.45429471-8.09209545 34.84874013-43.49906349 21.31870939-49.97244528-109.7838417-52.19946535-85.68283009-30.95587367-107.58333373-48.15194474 55.78891504-67.37324899 139.85303146-137.3770918 172.73103555-364.17669887 2.60408167-18.00616433 0.40357375-29.33568711 0-43.90263724-0.20325977-8.90218873 1.76894914-12.34287584 11.75960867-13.35328309 27.49014733-3.23742733 54.19671351-10.92594905 78.70277179-24.68280588 71.11440706-39.65480265 99.81822142-104.80250446 106.59649284-182.89844271 1.01188015-11.9363563-0.20178686-24.27775924-12.56970195-30.54935413M706.87018452 814.87993343c-106.36966673-85.37941333-157.98733782-113.5014334-179.30604722-112.28776638-19.92829476 1.21366703-16.33737217 24.48101902-11.96286844 39.65480264 4.5777635 14.97199677 10.57098089 25.2896394 18.94145384 38.44113563 5.76786417 8.70040186 9.76383341 21.64863831-5.78995762 31.35944742-34.26841876 21.64863831-93.82647692-7.28347506-96.60730623-8.69892897-69.3454579-41.67856295-127.33635378-96.710409-168.1797842-171.97249368-39.45154288-72.43117687-62.33888747-150.1220685-66.13306983-233.07267483-1.01188015-20.02992464 4.77955037-27.11161282 24.27923214-30.75408682a235.19659216 235.19659216 0 0 1 77.91771774-2.02228741c108.59668681 16.18713669 201.05631542 65.75453531 278.54394728 144.25552022 44.23256614 44.71125762 77.69089163 98.12439001 112.1861365 150.32385536 36.64567431 55.43394691 76.0986901 108.24024576 126.29943438 151.53604947 17.72778682 15.17378365 31.86465106 26.7065662 45.41972102 35.20370829-40.84343042 4.65435413-108.99878765 5.66476139-155.60860936-31.96628094m51.00936468-334.83953883c0-8.90218873 6.9815312-15.98387693 15.75557791-15.98387693q2.98408908 0.05155138 5.36134463 1.01188017a15.85720779 15.85720779 0 0 1 10.16740714 14.97199676 15.78061715 15.78061715 0 0 1-15.73053865 15.98387691 15.60386953 15.60386953 0 0 1-15.55379103-15.98387691m158.39238446 82.95060635c-10.1423679 4.24930749-20.30830215 7.89178146-30.09570191 8.29535522-15.12370514 0.81009328-31.66286419-5.46150162-40.61513142-13.15002332-13.96011661-11.93782919-23.92573689-18.61447073-28.09845373-39.45301577-1.79546129-8.90218873-0.81009328-22.65904557 0.78505403-30.54935414 3.59092258-16.99575708-0.40504665-27.92023321-12.13961606-37.8343021-9.55910075-8.09356835-21.72522894-10.31911553-35.07703915-10.31911552-4.98281013 0-9.55910075-2.22407429-12.94823645-4.04604774a13.27669246 13.27669246 0 0 1-5.76639128-18.61299783c1.39041466-2.8323807 8.16868608-9.71228202 9.7623605-10.92594905 18.13136058-10.52090241 39.04649623-7.08021529 58.36795748 0.81009328 17.93104659 7.48526194 31.46107731 21.24359167 51.01083757 40.6666828 19.92829476 23.46913885 23.51921733 29.94399353 34.84874013 47.54511123 8.97877936 13.75685685 17.14746545 27.92023321 22.71206987 44.10442409 3.41270206 10.11732865-0.98684091 18.41121097-12.74644958 23.46913885" fill="#4D6BFE" p-id="11540"></path></svg>'}];function ez(e){if(!e)return null;for(const t of J9)if(t.match.test(e))return{name:e.replace(/^claude-/,"").replace(/-\d{8,}$/,""),provider:t.name,color:t.color,svg:t.svg};return{name:e,provider:e,color:"#065f46",svg:ls("agent")}}function ls(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 Uu(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 tz={"cli.inject.success":"✅ CC Viewer 注入成功","cli.inject.exists":"✅ CC Viewer 已注入,无需重复操作","cli.inject.fail":"❌ 注入失败: {error}","cli.inject.notFound":"❌ 找不到 Claude Code cli.js: {path}","cli.inject.notFoundHint":" 请确认 @anthropic-ai/claude-code 已安装","cli.hook.installed":"✅ 自动重注入 hook 已写入 {path}","cli.hook.exists":"✅ 自动重注入 hook 已存在于 {path}","cli.hook.fail":"⚠️ shell hook 写入失败: {error}","cli.usage.hint":`
336
+ 直接运行 claude 即可,Claude Code 更新后会自动重新注入`,"cli.usage.uninstallHint":"如需卸载,请运行: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js 注入已清理","cli.uninstall.cliNotFound":"⚠️ 未找到 Claude Code cli.js,跳过","cli.uninstall.cliFail":"❌ cli.js 清理失败","cli.uninstall.hookRemoved":"✅ shell hook 已从 {path} 移除","cli.uninstall.hookClean":"✅ {path} 中无需清理","cli.uninstall.hookFail":"❌ shell hook 清理失败: {error}","cli.uninstall.done":`
337
+ 🗑️ CC Viewer 已完全卸载`,"server.started":`
338
+ 🔍 Claude 请求监控服务已启动: http://{host}:{port}
339
+ `,"server.reuse":`
340
+ 🔍 CC Viewer 已在运行: http://{host}:{port}
341
+ `,"server.portsBusy":"⚠️ 端口 {start}-{end} 均被占用,请求监控服务未启动","ui.requestList":"请求列表","ui.totalRequests":"总请求数: {count}","ui.waitingRequests":"等待请求...","ui.importLocalLogs":"导入本地日志","ui.saveLog":"当前日志另存为","ui.exportPrompts":"导出用户 Prompt","ui.tokenStats":"Token 消耗统计","ui.liveMonitoring":"实时监控中","ui.historyLog":"历史日志: {file}","ui.chatMode":"对话模式","ui.rawMode":"回到原文模式","ui.cacheExpired":"已失效","ui.cacheCountdown":"MainAgent 缓存{type}失效倒计时:","ui.minuteSecond":"{m}分{s}秒","ui.second":"{s}秒","ui.hitRate":"命中率","ui.userPrompt":"用户 Prompt","ui.noPrompt":"暂无用户 Prompt","ui.unknownTime":"未知时间","ui.userSelection":"👤 用户选择","ui.noAnswer":"无回答","ui.systemContext":"系统上下文_{index}","ui.logCount":"{count} 个日志","ui.noLogs":"暂无日志文件","ui.toolReturn":"工具返回","ui.toolReturnNamed":"{name} 返回","ui.lastResponse":"Last Response","ui.copySuccess":"复制成功","ui.noHeaders":"无 Headers","ui.noBody":"无 Body","ui.streamingResponse":"⚡ 流式响应 — 此请求使用了 SSE 流式传输,响应内容无法完整捕获。","ui.responseNotCaptured":"响应数据未捕获","ui.expand":"▶ 展开","ui.collapse":"▼ 收起","ui.noChat":"暂无 MainAgent 对话数据"},nz={"cli.inject.success":"✅ CC Viewer injected successfully","cli.inject.exists":"✅ CC Viewer already injected, no action needed","cli.inject.fail":"❌ Injection failed: {error}","cli.inject.notFound":"❌ Claude Code cli.js not found: {path}","cli.inject.notFoundHint":" Please make sure @anthropic-ai/claude-code is installed","cli.hook.installed":"✅ Auto-reinject hook written to {path}","cli.hook.exists":"✅ Auto-reinject hook already exists in {path}","cli.hook.fail":"⚠️ Failed to write shell hook: {error}","cli.usage.hint":`
342
+ Just run claude directly. It will auto-reinject after Claude Code updates`,"cli.usage.uninstallHint":"To uninstall, run: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js injection cleaned","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js not found, skipped","cli.uninstall.cliFail":"❌ Failed to clean cli.js injection","cli.uninstall.hookRemoved":"✅ Shell hook removed from {path}","cli.uninstall.hookClean":"✅ No cleanup needed in {path}","cli.uninstall.hookFail":"❌ Failed to clean shell hook: {error}","cli.uninstall.done":`
343
+ 🗑️ CC Viewer fully uninstalled`,"server.started":`
344
+ 🔍 CC Viewer started: http://{host}:{port}
345
+ `,"server.reuse":`
346
+ 🔍 CC Viewer already running: http://{host}:{port}
347
+ `,"server.portsBusy":"⚠️ Ports {start}-{end} are all in use, monitoring service not started","ui.requestList":"Requests","ui.totalRequests":"Total: {count}","ui.waitingRequests":"Waiting for requests...","ui.importLocalLogs":"Import local logs","ui.saveLog":"Save current log","ui.exportPrompts":"Export user prompts","ui.tokenStats":"Token Stats","ui.liveMonitoring":"Live","ui.historyLog":"History: {file}","ui.chatMode":"Chat mode","ui.rawMode":"Back to Raw","ui.cacheExpired":"Expired","ui.cacheCountdown":"MainAgent cache{type} expires in: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Hit rate","ui.userPrompt":"User Prompt","ui.noPrompt":"No user prompts yet","ui.unknownTime":"Unknown time","ui.userSelection":"👤 User selection","ui.noAnswer":"No answer","ui.systemContext":"System context #{index}","ui.logCount":"{count} logs","ui.noLogs":"No log files","ui.toolReturn":"Tool result","ui.toolReturnNamed":"{name} result","ui.lastResponse":"Last Response","ui.copySuccess":"Copied","ui.noHeaders":"No Headers","ui.noBody":"No Body","ui.streamingResponse":"⚡ Streaming response — This request used SSE streaming, response content cannot be fully captured.","ui.responseNotCaptured":"Response not captured","ui.expand":"▶ Expand","ui.collapse":"▼ Collapse","ui.noChat":"No MainAgent conversation data"},rz={"cli.inject.success":"✅ CC Viewer 注入成功","cli.inject.exists":"✅ CC Viewer 已注入,無需重複操作","cli.inject.fail":"❌ 注入失敗: {error}","cli.inject.notFound":"❌ 找不到 Claude Code cli.js: {path}","cli.inject.notFoundHint":" 請確認 @anthropic-ai/claude-code 已安裝","cli.hook.installed":"✅ 自動重注入 hook 已寫入 {path}","cli.hook.exists":"✅ 自動重注入 hook 已存在於 {path}","cli.hook.fail":"⚠️ shell hook 寫入失敗: {error}","cli.usage.hint":`
348
+ 直接執行 claude 即可,Claude Code 更新後會自動重新注入`,"cli.usage.uninstallHint":"如需卸載,請執行: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js 注入已清理","cli.uninstall.cliNotFound":"⚠️ 未找到 Claude Code cli.js,跳過","cli.uninstall.cliFail":"❌ cli.js 清理失敗","cli.uninstall.hookRemoved":"✅ shell hook 已從 {path} 移除","cli.uninstall.hookClean":"✅ {path} 中無需清理","cli.uninstall.hookFail":"❌ shell hook 清理失敗: {error}","cli.uninstall.done":`
349
+ 🗑️ CC Viewer 已完全卸載`,"server.started":`
350
+ 🔍 Claude 請求監控服務已啟動: http://{host}:{port}
351
+ `,"server.reuse":`
352
+ 🔍 CC Viewer 已在運行: http://{host}:{port}
353
+ `,"server.portsBusy":"⚠️ 端口 {start}-{end} 均被佔用,請求監控服務未啟動","ui.requestList":"請求列表","ui.totalRequests":"總請求數: {count}","ui.waitingRequests":"等待請求...","ui.importLocalLogs":"匯入本地日誌","ui.saveLog":"當前日誌另存為","ui.exportPrompts":"匯出用戶 Prompt","ui.tokenStats":"Token 消耗統計","ui.liveMonitoring":"即時監控中","ui.historyLog":"歷史日誌: {file}","ui.chatMode":"對話模式","ui.rawMode":"回到原文模式","ui.cacheExpired":"已失效","ui.cacheCountdown":"MainAgent 快取{type}失效倒數:","ui.minuteSecond":"{m}分{s}秒","ui.second":"{s}秒","ui.hitRate":"命中率","ui.userPrompt":"用戶 Prompt","ui.noPrompt":"暫無用戶 Prompt","ui.unknownTime":"未知時間","ui.userSelection":"👤 用戶選擇","ui.noAnswer":"無回答","ui.systemContext":"系統上下文_{index}","ui.logCount":"{count} 個日誌","ui.noLogs":"暫無日誌檔案","ui.toolReturn":"工具返回","ui.toolReturnNamed":"{name} 返回","ui.lastResponse":"Last Response","ui.copySuccess":"複製成功","ui.noHeaders":"無 Headers","ui.noBody":"無 Body","ui.streamingResponse":"⚡ 串流回應 — 此請求使用了 SSE 串流傳輸,回應內容無法完整擷取。","ui.responseNotCaptured":"回應資料未擷取","ui.expand":"▶ 展開","ui.collapse":"▼ 收起","ui.noChat":"暫無 MainAgent 對話資料"},oz={"cli.inject.success":"✅ CC Viewer 주입 성공","cli.inject.exists":"✅ CC Viewer 이미 주입됨, 추가 작업 불필요","cli.inject.fail":"❌ 주입 실패: {error}","cli.inject.notFound":"❌ Claude Code cli.js를 찾을 수 없음: {path}","cli.inject.notFoundHint":" @anthropic-ai/claude-code가 설치되어 있는지 확인하세요","cli.hook.installed":"✅ 자동 재주입 hook이 {path}에 작성됨","cli.hook.exists":"✅ 자동 재주입 hook이 이미 {path}에 존재함","cli.hook.fail":"⚠️ shell hook 작성 실패: {error}","cli.usage.hint":`
354
+ claude를 직접 실행하세요. Claude Code 업데이트 후 자동으로 재주입됩니다`,"cli.usage.uninstallHint":"제거하려면 실행: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js 주입 정리 완료","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js를 찾을 수 없음, 건너뜀","cli.uninstall.cliFail":"❌ cli.js 주입 정리 실패","cli.uninstall.hookRemoved":"✅ shell hook이 {path}에서 제거됨","cli.uninstall.hookClean":"✅ {path}에서 정리할 항목 없음","cli.uninstall.hookFail":"❌ shell hook 정리 실패: {error}","cli.uninstall.done":`
355
+ 🗑️ CC Viewer 완전히 제거됨`,"server.started":`
356
+ 🔍 CC Viewer 시작됨: http://{host}:{port}
357
+ `,"server.reuse":`
358
+ 🔍 CC Viewer 이미 실행 중: http://{host}:{port}
359
+ `,"server.portsBusy":"⚠️ 포트 {start}-{end} 모두 사용 중, 모니터링 서비스 미시작","ui.requestList":"요청 목록","ui.totalRequests":"총 요청 수: {count}","ui.waitingRequests":"요청 대기 중...","ui.importLocalLogs":"로컬 로그 가져오기","ui.saveLog":"현재 로그 저장","ui.exportPrompts":"사용자 Prompt 내보내기","ui.tokenStats":"Token 소비 통계","ui.liveMonitoring":"실시간 모니터링","ui.historyLog":"기록: {file}","ui.chatMode":"대화 모드","ui.rawMode":"원문 모드로 돌아가기","ui.cacheExpired":"만료됨","ui.cacheCountdown":"MainAgent cache{type} 만료 카운트다운: ","ui.minuteSecond":"{m}분{s}초","ui.second":"{s}초","ui.hitRate":"적중률","ui.userPrompt":"사용자 Prompt","ui.noPrompt":"사용자 Prompt 없음","ui.unknownTime":"알 수 없는 시간","ui.userSelection":"👤 사용자 선택","ui.noAnswer":"응답 없음","ui.systemContext":"시스템 컨텍스트 #{index}","ui.logCount":"{count}개 로그","ui.noLogs":"로그 파일 없음","ui.toolReturn":"도구 결과","ui.toolReturnNamed":"{name} 결과","ui.lastResponse":"Last Response","ui.copySuccess":"복사됨","ui.noHeaders":"Headers 없음","ui.noBody":"Body 없음","ui.streamingResponse":"⚡ 스트리밍 응답 — 이 요청은 SSE 스트리밍을 사용하여 응답 내용을 완전히 캡처할 수 없습니다.","ui.responseNotCaptured":"응답 데이터 미캡처","ui.expand":"▶ 펼치기","ui.collapse":"▼ 접기","ui.noChat":"MainAgent 대화 데이터 없음"},iz={"cli.inject.success":"✅ CC Viewer erfolgreich injiziert","cli.inject.exists":"✅ CC Viewer bereits injiziert, keine Aktion nötig","cli.inject.fail":"❌ Injektion fehlgeschlagen: {error}","cli.inject.notFound":"❌ Claude Code cli.js nicht gefunden: {path}","cli.inject.notFoundHint":" Bitte stellen Sie sicher, dass @anthropic-ai/claude-code installiert ist","cli.hook.installed":"✅ Auto-Reinject-Hook in {path} geschrieben","cli.hook.exists":"✅ Auto-Reinject-Hook existiert bereits in {path}","cli.hook.fail":"⚠️ Shell-Hook konnte nicht geschrieben werden: {error}","cli.usage.hint":`
360
+ Führen Sie claude direkt aus. Nach Claude Code Updates wird automatisch neu injiziert`,"cli.usage.uninstallHint":"Zum Deinstallieren: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js-Injektion bereinigt","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js nicht gefunden, übersprungen","cli.uninstall.cliFail":"❌ cli.js-Injektion konnte nicht bereinigt werden","cli.uninstall.hookRemoved":"✅ Shell-Hook aus {path} entfernt","cli.uninstall.hookClean":"✅ Keine Bereinigung in {path} nötig","cli.uninstall.hookFail":"❌ Shell-Hook-Bereinigung fehlgeschlagen: {error}","cli.uninstall.done":`
361
+ 🗑️ CC Viewer vollständig deinstalliert`,"server.started":`
362
+ 🔍 CC Viewer gestartet: http://{host}:{port}
363
+ `,"server.reuse":`
364
+ 🔍 CC Viewer läuft bereits: http://{host}:{port}
365
+ `,"server.portsBusy":"⚠️ Ports {start}-{end} sind alle belegt, Überwachungsdienst nicht gestartet","ui.requestList":"Anfragen","ui.totalRequests":"Gesamt: {count}","ui.waitingRequests":"Warte auf Anfragen...","ui.importLocalLogs":"Lokale Logs importieren","ui.saveLog":"Aktuelles Log speichern","ui.exportPrompts":"Benutzer-Prompts exportieren","ui.tokenStats":"Token-Statistik","ui.liveMonitoring":"Live","ui.historyLog":"Verlauf: {file}","ui.chatMode":"Chat-Modus","ui.rawMode":"Zurück zum Rohmodus","ui.cacheExpired":"Abgelaufen","ui.cacheCountdown":"MainAgent Cache{type} läuft ab in: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Trefferquote","ui.userPrompt":"Benutzer-Prompt","ui.noPrompt":"Noch keine Benutzer-Prompts","ui.unknownTime":"Unbekannte Zeit","ui.userSelection":"👤 Benutzerauswahl","ui.noAnswer":"Keine Antwort","ui.systemContext":"Systemkontext #{index}","ui.logCount":"{count} Logs","ui.noLogs":"Keine Log-Dateien","ui.toolReturn":"Tool-Ergebnis","ui.toolReturnNamed":"{name}-Ergebnis","ui.lastResponse":"Last Response","ui.copySuccess":"Kopiert","ui.noHeaders":"Keine Headers","ui.noBody":"Kein Body","ui.streamingResponse":"⚡ Streaming-Antwort — Diese Anfrage nutzte SSE-Streaming, der Antwortinhalt konnte nicht vollständig erfasst werden.","ui.responseNotCaptured":"Antwortdaten nicht erfasst","ui.expand":"▶ Aufklappen","ui.collapse":"▼ Zuklappen","ui.noChat":"Keine MainAgent-Gesprächsdaten"},az={"cli.inject.success":"✅ CC Viewer inyectado correctamente","cli.inject.exists":"✅ CC Viewer ya inyectado, no se requiere acción","cli.inject.fail":"❌ Inyección fallida: {error}","cli.inject.notFound":"❌ Claude Code cli.js no encontrado: {path}","cli.inject.notFoundHint":" Asegúrese de que @anthropic-ai/claude-code esté instalado","cli.hook.installed":"✅ Hook de reinyección automática escrito en {path}","cli.hook.exists":"✅ Hook de reinyección automática ya existe en {path}","cli.hook.fail":"⚠️ Error al escribir el shell hook: {error}","cli.usage.hint":`
366
+ Ejecute claude directamente. Se reinyectará automáticamente tras actualizaciones de Claude Code`,"cli.usage.uninstallHint":"Para desinstalar, ejecute: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Inyección de cli.js limpiada","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js no encontrado, omitido","cli.uninstall.cliFail":"❌ Error al limpiar la inyección de cli.js","cli.uninstall.hookRemoved":"✅ Shell hook eliminado de {path}","cli.uninstall.hookClean":"✅ No se necesita limpieza en {path}","cli.uninstall.hookFail":"❌ Error al limpiar el shell hook: {error}","cli.uninstall.done":`
367
+ 🗑️ CC Viewer desinstalado completamente`,"server.started":`
368
+ 🔍 CC Viewer iniciado: http://{host}:{port}
369
+ `,"server.reuse":`
370
+ 🔍 CC Viewer ya en ejecución: http://{host}:{port}
371
+ `,"server.portsBusy":"⚠️ Puertos {start}-{end} están todos en uso, servicio de monitoreo no iniciado","ui.requestList":"Solicitudes","ui.totalRequests":"Total: {count}","ui.waitingRequests":"Esperando solicitudes...","ui.importLocalLogs":"Importar logs locales","ui.saveLog":"Guardar log actual","ui.exportPrompts":"Exportar prompts de usuario","ui.tokenStats":"Estadísticas de Token","ui.liveMonitoring":"En vivo","ui.historyLog":"Historial: {file}","ui.chatMode":"Modo chat","ui.rawMode":"Volver al modo raw","ui.cacheExpired":"Expirado","ui.cacheCountdown":"Cache{type} de MainAgent expira en: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Tasa de aciertos","ui.userPrompt":"Prompt de usuario","ui.noPrompt":"Sin prompts de usuario aún","ui.unknownTime":"Hora desconocida","ui.userSelection":"👤 Selección del usuario","ui.noAnswer":"Sin respuesta","ui.systemContext":"Contexto del sistema #{index}","ui.logCount":"{count} logs","ui.noLogs":"Sin archivos de log","ui.toolReturn":"Resultado de herramienta","ui.toolReturnNamed":"Resultado de {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Copiado","ui.noHeaders":"Sin Headers","ui.noBody":"Sin Body","ui.streamingResponse":"⚡ Respuesta en streaming — Esta solicitud usó streaming SSE, el contenido de la respuesta no se pudo capturar completamente.","ui.responseNotCaptured":"Datos de respuesta no capturados","ui.expand":"▶ Expandir","ui.collapse":"▼ Contraer","ui.noChat":"Sin datos de conversación de MainAgent"},lz={"cli.inject.success":"✅ CC Viewer injecté avec succès","cli.inject.exists":"✅ CC Viewer déjà injecté, aucune action nécessaire","cli.inject.fail":"❌ Échec de l'injection : {error}","cli.inject.notFound":"❌ Claude Code cli.js introuvable : {path}","cli.inject.notFoundHint":" Veuillez vérifier que @anthropic-ai/claude-code est installé","cli.hook.installed":"✅ Hook de réinjection automatique écrit dans {path}","cli.hook.exists":"✅ Hook de réinjection automatique déjà présent dans {path}","cli.hook.fail":"⚠️ Échec de l'écriture du shell hook : {error}","cli.usage.hint":`
372
+ Exécutez claude directement. La réinjection se fera automatiquement après les mises à jour de Claude Code`,"cli.usage.uninstallHint":"Pour désinstaller, exécutez : ccv --uninstall","cli.uninstall.cliCleaned":"✅ Injection cli.js nettoyée","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js introuvable, ignoré","cli.uninstall.cliFail":"❌ Échec du nettoyage de l'injection cli.js","cli.uninstall.hookRemoved":"✅ Shell hook supprimé de {path}","cli.uninstall.hookClean":"✅ Aucun nettoyage nécessaire dans {path}","cli.uninstall.hookFail":"❌ Échec du nettoyage du shell hook : {error}","cli.uninstall.done":`
373
+ 🗑️ CC Viewer entièrement désinstallé`,"server.started":`
374
+ 🔍 CC Viewer démarré : http://{host}:{port}
375
+ `,"server.reuse":`
376
+ 🔍 CC Viewer déjà en cours d'exécution : http://{host}:{port}
377
+ `,"server.portsBusy":"⚠️ Ports {start}-{end} tous occupés, service de surveillance non démarré","ui.requestList":"Requêtes","ui.totalRequests":"Total : {count}","ui.waitingRequests":"En attente de requêtes...","ui.importLocalLogs":"Importer les logs locaux","ui.saveLog":"Enregistrer le log actuel","ui.exportPrompts":"Exporter les prompts utilisateur","ui.tokenStats":"Statistiques Token","ui.liveMonitoring":"En direct","ui.historyLog":"Historique : {file}","ui.chatMode":"Mode conversation","ui.rawMode":"Retour au mode brut","ui.cacheExpired":"Expiré","ui.cacheCountdown":"Cache{type} MainAgent expire dans : ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Taux de succès","ui.userPrompt":"Prompt utilisateur","ui.noPrompt":"Aucun prompt utilisateur","ui.unknownTime":"Heure inconnue","ui.userSelection":"👤 Sélection utilisateur","ui.noAnswer":"Pas de réponse","ui.systemContext":"Contexte système #{index}","ui.logCount":"{count} logs","ui.noLogs":"Aucun fichier de log","ui.toolReturn":"Résultat d'outil","ui.toolReturnNamed":"Résultat de {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Copié","ui.noHeaders":"Pas de Headers","ui.noBody":"Pas de Body","ui.streamingResponse":"⚡ Réponse en streaming — Cette requête a utilisé le streaming SSE, le contenu de la réponse n'a pas pu être entièrement capturé.","ui.responseNotCaptured":"Données de réponse non capturées","ui.expand":"▶ Déplier","ui.collapse":"▼ Replier","ui.noChat":"Aucune donnée de conversation MainAgent"},sz={"cli.inject.success":"✅ CC Viewer iniettato con successo","cli.inject.exists":"✅ CC Viewer già iniettato, nessuna azione necessaria","cli.inject.fail":"❌ Iniezione fallita: {error}","cli.inject.notFound":"❌ Claude Code cli.js non trovato: {path}","cli.inject.notFoundHint":" Assicurati che @anthropic-ai/claude-code sia installato","cli.hook.installed":"✅ Hook di reiniezione automatica scritto in {path}","cli.hook.exists":"✅ Hook di reiniezione automatica già presente in {path}","cli.hook.fail":"⚠️ Impossibile scrivere il shell hook: {error}","cli.usage.hint":`
378
+ Esegui claude direttamente. Si reinietterà automaticamente dopo gli aggiornamenti di Claude Code`,"cli.usage.uninstallHint":"Per disinstallare, esegui: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Iniezione cli.js pulita","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js non trovato, saltato","cli.uninstall.cliFail":"❌ Pulizia iniezione cli.js fallita","cli.uninstall.hookRemoved":"✅ Shell hook rimosso da {path}","cli.uninstall.hookClean":"✅ Nessuna pulizia necessaria in {path}","cli.uninstall.hookFail":"❌ Pulizia shell hook fallita: {error}","cli.uninstall.done":`
379
+ 🗑️ CC Viewer completamente disinstallato`,"server.started":`
380
+ 🔍 CC Viewer avviato: http://{host}:{port}
381
+ `,"server.reuse":`
382
+ 🔍 CC Viewer già in esecuzione: http://{host}:{port}
383
+ `,"server.portsBusy":"⚠️ Porte {start}-{end} tutte in uso, servizio di monitoraggio non avviato","ui.requestList":"Richieste","ui.totalRequests":"Totale: {count}","ui.waitingRequests":"In attesa di richieste...","ui.importLocalLogs":"Importa log locali","ui.saveLog":"Salva log corrente","ui.exportPrompts":"Esporta prompt utente","ui.tokenStats":"Statistiche Token","ui.liveMonitoring":"Live","ui.historyLog":"Cronologia: {file}","ui.chatMode":"Modalità chat","ui.rawMode":"Torna alla modalità raw","ui.cacheExpired":"Scaduto","ui.cacheCountdown":"Cache{type} MainAgent scade tra: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Tasso di successo","ui.userPrompt":"Prompt utente","ui.noPrompt":"Nessun prompt utente","ui.unknownTime":"Ora sconosciuta","ui.userSelection":"👤 Selezione utente","ui.noAnswer":"Nessuna risposta","ui.systemContext":"Contesto di sistema #{index}","ui.logCount":"{count} log","ui.noLogs":"Nessun file di log","ui.toolReturn":"Risultato strumento","ui.toolReturnNamed":"Risultato di {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Copiato","ui.noHeaders":"Nessun Header","ui.noBody":"Nessun Body","ui.streamingResponse":"⚡ Risposta in streaming — Questa richiesta ha utilizzato lo streaming SSE, il contenuto della risposta non può essere catturato completamente.","ui.responseNotCaptured":"Dati di risposta non catturati","ui.expand":"▶ Espandi","ui.collapse":"▼ Comprimi","ui.noChat":"Nessun dato di conversazione MainAgent"},cz={"cli.inject.success":"✅ CC Viewer indsprøjtet korrekt","cli.inject.exists":"✅ CC Viewer allerede indsprøjtet, ingen handling nødvendig","cli.inject.fail":"❌ Indsprøjtning mislykkedes: {error}","cli.inject.notFound":"❌ Claude Code cli.js ikke fundet: {path}","cli.inject.notFoundHint":" Sørg for at @anthropic-ai/claude-code er installeret","cli.hook.installed":"✅ Auto-reinject hook skrevet til {path}","cli.hook.exists":"✅ Auto-reinject hook findes allerede i {path}","cli.hook.fail":"⚠️ Kunne ikke skrive shell hook: {error}","cli.usage.hint":`
384
+ Kør claude direkte. Det vil automatisk genindsprøjte efter Claude Code opdateringer`,"cli.usage.uninstallHint":"For at afinstallere, kør: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js indsprøjtning renset","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js ikke fundet, sprunget over","cli.uninstall.cliFail":"❌ Kunne ikke rense cli.js indsprøjtning","cli.uninstall.hookRemoved":"✅ Shell hook fjernet fra {path}","cli.uninstall.hookClean":"✅ Ingen oprydning nødvendig i {path}","cli.uninstall.hookFail":"❌ Kunne ikke rense shell hook: {error}","cli.uninstall.done":`
385
+ 🗑️ CC Viewer fuldstændigt afinstalleret`,"server.started":`
386
+ 🔍 CC Viewer startet: http://{host}:{port}
387
+ `,"server.reuse":`
388
+ 🔍 CC Viewer kører allerede: http://{host}:{port}
389
+ `,"server.portsBusy":"⚠️ Porte {start}-{end} er alle i brug, overvågningstjeneste ikke startet","ui.requestList":"Forespørgsler","ui.totalRequests":"Total: {count}","ui.waitingRequests":"Venter på forespørgsler...","ui.importLocalLogs":"Importér lokale logs","ui.saveLog":"Gem nuværende log","ui.exportPrompts":"Eksportér bruger-prompts","ui.tokenStats":"Token-statistik","ui.liveMonitoring":"Live","ui.historyLog":"Historik: {file}","ui.chatMode":"Chat-tilstand","ui.rawMode":"Tilbage til rå tilstand","ui.cacheExpired":"Udløbet","ui.cacheCountdown":"MainAgent cache{type} udløber om: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Hitrate","ui.userPrompt":"Bruger-Prompt","ui.noPrompt":"Ingen bruger-prompts endnu","ui.unknownTime":"Ukendt tid","ui.userSelection":"👤 Brugervalg","ui.noAnswer":"Intet svar","ui.systemContext":"Systemkontekst #{index}","ui.logCount":"{count} logs","ui.noLogs":"Ingen logfiler","ui.toolReturn":"Værktøjsresultat","ui.toolReturnNamed":"{name}-resultat","ui.lastResponse":"Last Response","ui.copySuccess":"Kopieret","ui.noHeaders":"Ingen Headers","ui.noBody":"Ingen Body","ui.streamingResponse":"⚡ Streaming-svar — Denne forespørgsel brugte SSE-streaming, svarindholdet kunne ikke fuldt indfanges.","ui.responseNotCaptured":"Svardata ikke indfanget","ui.expand":"▶ Udvid","ui.collapse":"▼ Fold sammen","ui.noChat":"Ingen MainAgent samtaledata"},uz={"cli.inject.success":"✅ CC Viewer インジェクション成功","cli.inject.exists":"✅ CC Viewer は既にインジェクト済み、操作不要","cli.inject.fail":"❌ インジェクション失敗: {error}","cli.inject.notFound":"❌ Claude Code cli.js が見つかりません: {path}","cli.inject.notFoundHint":" @anthropic-ai/claude-code がインストールされていることを確認してください","cli.hook.installed":"✅ 自動再インジェクト hook を {path} に書き込みました","cli.hook.exists":"✅ 自動再インジェクト hook は既に {path} に存在します","cli.hook.fail":"⚠️ shell hook の書き込みに失敗: {error}","cli.usage.hint":`
390
+ claude を直接実行してください。Claude Code 更新後に自動で再インジェクトされます`,"cli.usage.uninstallHint":"アンインストールするには: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js インジェクションをクリーンアップしました","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js が見つかりません、スキップ","cli.uninstall.cliFail":"❌ cli.js インジェクションのクリーンアップに失敗","cli.uninstall.hookRemoved":"✅ shell hook を {path} から削除しました","cli.uninstall.hookClean":"✅ {path} のクリーンアップは不要です","cli.uninstall.hookFail":"❌ shell hook のクリーンアップに失敗: {error}","cli.uninstall.done":`
391
+ 🗑️ CC Viewer を完全にアンインストールしました`,"server.started":`
392
+ 🔍 CC Viewer 起動: http://{host}:{port}
393
+ `,"server.reuse":`
394
+ 🔍 CC Viewer は既に実行中: http://{host}:{port}
395
+ `,"server.portsBusy":"⚠️ ポート {start}-{end} はすべて使用中、監視サービスは起動されませんでした","ui.requestList":"リクエスト一覧","ui.totalRequests":"合計: {count}","ui.waitingRequests":"リクエスト待機中...","ui.importLocalLogs":"ローカルログをインポート","ui.saveLog":"現在のログを保存","ui.exportPrompts":"ユーザー Prompt をエクスポート","ui.tokenStats":"Token 消費統計","ui.liveMonitoring":"リアルタイム監視中","ui.historyLog":"履歴: {file}","ui.chatMode":"チャットモード","ui.rawMode":"Raw モードに戻る","ui.cacheExpired":"期限切れ","ui.cacheCountdown":"MainAgent cache{type} 期限切れまで: ","ui.minuteSecond":"{m}分{s}秒","ui.second":"{s}秒","ui.hitRate":"ヒット率","ui.userPrompt":"ユーザー Prompt","ui.noPrompt":"ユーザー Prompt はまだありません","ui.unknownTime":"不明な時刻","ui.userSelection":"👤 ユーザー選択","ui.noAnswer":"回答なし","ui.systemContext":"システムコンテキスト #{index}","ui.logCount":"{count} 件のログ","ui.noLogs":"ログファイルなし","ui.toolReturn":"ツール結果","ui.toolReturnNamed":"{name} 結果","ui.lastResponse":"Last Response","ui.copySuccess":"コピーしました","ui.noHeaders":"Headers なし","ui.noBody":"Body なし","ui.streamingResponse":"⚡ ストリーミングレスポンス — このリクエストは SSE ストリーミングを使用しており、レスポンス内容を完全にキャプチャできませんでした。","ui.responseNotCaptured":"レスポンスデータ未キャプチャ","ui.expand":"▶ 展開","ui.collapse":"▼ 折りたたむ","ui.noChat":"MainAgent の会話データがありません"},dz={"cli.inject.success":"✅ CC Viewer wstrzyknięty pomyślnie","cli.inject.exists":"✅ CC Viewer już wstrzyknięty, nie wymaga działania","cli.inject.fail":"❌ Wstrzyknięcie nie powiodło się: {error}","cli.inject.notFound":"❌ Nie znaleziono Claude Code cli.js: {path}","cli.inject.notFoundHint":" Upewnij się, że @anthropic-ai/claude-code jest zainstalowany","cli.hook.installed":"✅ Hook automatycznego ponownego wstrzyknięcia zapisany w {path}","cli.hook.exists":"✅ Hook automatycznego ponownego wstrzyknięcia już istnieje w {path}","cli.hook.fail":"⚠️ Nie udało się zapisać shell hook: {error}","cli.usage.hint":`
396
+ Uruchom claude bezpośrednio. Automatycznie ponownie wstrzyknie po aktualizacjach Claude Code`,"cli.usage.uninstallHint":"Aby odinstalować, uruchom: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Wstrzyknięcie cli.js wyczyszczone","cli.uninstall.cliNotFound":"⚠️ Nie znaleziono Claude Code cli.js, pominięto","cli.uninstall.cliFail":"❌ Nie udało się wyczyścić wstrzyknięcia cli.js","cli.uninstall.hookRemoved":"✅ Shell hook usunięty z {path}","cli.uninstall.hookClean":"✅ Brak potrzeby czyszczenia w {path}","cli.uninstall.hookFail":"❌ Nie udało się wyczyścić shell hook: {error}","cli.uninstall.done":`
397
+ 🗑️ CC Viewer całkowicie odinstalowany`,"server.started":`
398
+ 🔍 CC Viewer uruchomiony: http://{host}:{port}
399
+ `,"server.reuse":`
400
+ 🔍 CC Viewer już działa: http://{host}:{port}
401
+ `,"server.portsBusy":"⚠️ Porty {start}-{end} są wszystkie zajęte, usługa monitorowania nie uruchomiona","ui.requestList":"Żądania","ui.totalRequests":"Łącznie: {count}","ui.waitingRequests":"Oczekiwanie na żądania...","ui.importLocalLogs":"Importuj lokalne logi","ui.saveLog":"Zapisz bieżący log","ui.exportPrompts":"Eksportuj prompty użytkownika","ui.tokenStats":"Statystyki Token","ui.liveMonitoring":"Na żywo","ui.historyLog":"Historia: {file}","ui.chatMode":"Tryb czatu","ui.rawMode":"Powrót do trybu surowego","ui.cacheExpired":"Wygasło","ui.cacheCountdown":"Cache{type} MainAgent wygasa za: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Współczynnik trafień","ui.userPrompt":"Prompt użytkownika","ui.noPrompt":"Brak promptów użytkownika","ui.unknownTime":"Nieznany czas","ui.userSelection":"👤 Wybór użytkownika","ui.noAnswer":"Brak odpowiedzi","ui.systemContext":"Kontekst systemowy #{index}","ui.logCount":"{count} logów","ui.noLogs":"Brak plików logów","ui.toolReturn":"Wynik narzędzia","ui.toolReturnNamed":"Wynik {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Skopiowano","ui.noHeaders":"Brak Headers","ui.noBody":"Brak Body","ui.streamingResponse":"⚡ Odpowiedź strumieniowa — To żądanie użyło strumieniowania SSE, treść odpowiedzi nie mogła zostać w pełni przechwycona.","ui.responseNotCaptured":"Dane odpowiedzi nie przechwycone","ui.expand":"▶ Rozwiń","ui.collapse":"▼ Zwiń","ui.noChat":"Brak danych rozmowy MainAgent"},fz={"cli.inject.success":"✅ CC Viewer успешно внедрён","cli.inject.exists":"✅ CC Viewer уже внедрён, действий не требуется","cli.inject.fail":"❌ Ошибка внедрения: {error}","cli.inject.notFound":"❌ Claude Code cli.js не найден: {path}","cli.inject.notFoundHint":" Убедитесь, что @anthropic-ai/claude-code установлен","cli.hook.installed":"✅ Hook автоматического повторного внедрения записан в {path}","cli.hook.exists":"✅ Hook автоматического повторного внедрения уже существует в {path}","cli.hook.fail":"⚠️ Не удалось записать shell hook: {error}","cli.usage.hint":`
402
+ Просто запустите claude. Автоматическое повторное внедрение произойдёт после обновления Claude Code`,"cli.usage.uninstallHint":"Для удаления выполните: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Внедрение в cli.js очищено","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js не найден, пропущено","cli.uninstall.cliFail":"❌ Не удалось очистить внедрение в cli.js","cli.uninstall.hookRemoved":"✅ Shell hook удалён из {path}","cli.uninstall.hookClean":"✅ Очистка в {path} не требуется","cli.uninstall.hookFail":"❌ Не удалось очистить shell hook: {error}","cli.uninstall.done":`
403
+ 🗑️ CC Viewer полностью удалён`,"server.started":`
404
+ 🔍 CC Viewer запущен: http://{host}:{port}
405
+ `,"server.reuse":`
406
+ 🔍 CC Viewer уже запущен: http://{host}:{port}
407
+ `,"server.portsBusy":"⚠️ Порты {start}-{end} все заняты, служба мониторинга не запущена","ui.requestList":"Запросы","ui.totalRequests":"Всего: {count}","ui.waitingRequests":"Ожидание запросов...","ui.importLocalLogs":"Импорт локальных логов","ui.saveLog":"Сохранить текущий лог","ui.exportPrompts":"Экспорт пользовательских Prompt","ui.tokenStats":"Статистика Token","ui.liveMonitoring":"Мониторинг","ui.historyLog":"История: {file}","ui.chatMode":"Режим чата","ui.rawMode":"Вернуться в режим raw","ui.cacheExpired":"Истёк","ui.cacheCountdown":"Cache{type} MainAgent истекает через: ","ui.minuteSecond":"{m}м{s}с","ui.second":"{s}с","ui.hitRate":"Процент попаданий","ui.userPrompt":"Prompt пользователя","ui.noPrompt":"Нет пользовательских Prompt","ui.unknownTime":"Неизвестное время","ui.userSelection":"👤 Выбор пользователя","ui.noAnswer":"Нет ответа","ui.systemContext":"Системный контекст #{index}","ui.logCount":"{count} логов","ui.noLogs":"Нет файлов логов","ui.toolReturn":"Результат инструмента","ui.toolReturnNamed":"Результат {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Скопировано","ui.noHeaders":"Нет Headers","ui.noBody":"Нет Body","ui.streamingResponse":"⚡ Потоковый ответ — Этот запрос использовал SSE-потоковую передачу, содержимое ответа не может быть полностью захвачено.","ui.responseNotCaptured":"Данные ответа не захвачены","ui.expand":"▶ Развернуть","ui.collapse":"▼ Свернуть","ui.noChat":"Нет данных диалога MainAgent"},mz={"cli.inject.success":"✅ CC Viewer تم الحقن بنجاح","cli.inject.exists":"✅ CC Viewer محقون بالفعل، لا حاجة لأي إجراء","cli.inject.fail":"❌ فشل الحقن: {error}","cli.inject.notFound":"❌ لم يتم العثور على Claude Code cli.js: {path}","cli.inject.notFoundHint":" يرجى التأكد من تثبيت @anthropic-ai/claude-code","cli.hook.installed":"✅ تم كتابة hook إعادة الحقن التلقائي في {path}","cli.hook.exists":"✅ hook إعادة الحقن التلقائي موجود بالفعل في {path}","cli.hook.fail":"⚠️ فشل كتابة shell hook: {error}","cli.usage.hint":`
408
+ قم بتشغيل claude مباشرة. سيتم إعادة الحقن تلقائياً بعد تحديثات Claude Code`,"cli.usage.uninstallHint":"لإلغاء التثبيت، قم بتشغيل: ccv --uninstall","cli.uninstall.cliCleaned":"✅ تم تنظيف حقن cli.js","cli.uninstall.cliNotFound":"⚠️ لم يتم العثور على Claude Code cli.js، تم التخطي","cli.uninstall.cliFail":"❌ فشل تنظيف حقن cli.js","cli.uninstall.hookRemoved":"✅ تم إزالة shell hook من {path}","cli.uninstall.hookClean":"✅ لا حاجة للتنظيف في {path}","cli.uninstall.hookFail":"❌ فشل تنظيف shell hook: {error}","cli.uninstall.done":`
409
+ 🗑️ تم إلغاء تثبيت CC Viewer بالكامل`,"server.started":`
410
+ 🔍 تم تشغيل CC Viewer: http://{host}:{port}
411
+ `,"server.reuse":`
412
+ 🔍 CC Viewer يعمل بالفعل: http://{host}:{port}
413
+ `,"server.portsBusy":"⚠️ المنافذ {start}-{end} كلها مشغولة، لم يتم تشغيل خدمة المراقبة","ui.requestList":"الطلبات","ui.totalRequests":"الإجمالي: {count}","ui.waitingRequests":"في انتظار الطلبات...","ui.importLocalLogs":"استيراد السجلات المحلية","ui.saveLog":"حفظ السجل الحالي","ui.exportPrompts":"تصدير Prompt المستخدم","ui.tokenStats":"إحصائيات Token","ui.liveMonitoring":"مباشر","ui.historyLog":"السجل: {file}","ui.chatMode":"وضع المحادثة","ui.rawMode":"العودة للوضع الخام","ui.cacheExpired":"منتهي الصلاحية","ui.cacheCountdown":"ينتهي cache{type} لـ MainAgent خلال: ","ui.minuteSecond":"{m}د{s}ث","ui.second":"{s}ث","ui.hitRate":"معدل الإصابة","ui.userPrompt":"Prompt المستخدم","ui.noPrompt":"لا توجد Prompt للمستخدم بعد","ui.unknownTime":"وقت غير معروف","ui.userSelection":"👤 اختيار المستخدم","ui.noAnswer":"لا إجابة","ui.systemContext":"سياق النظام #{index}","ui.logCount":"{count} سجلات","ui.noLogs":"لا توجد ملفات سجلات","ui.toolReturn":"نتيجة الأداة","ui.toolReturnNamed":"نتيجة {name}","ui.lastResponse":"Last Response","ui.copySuccess":"تم النسخ","ui.noHeaders":"لا يوجد Headers","ui.noBody":"لا يوجد Body","ui.streamingResponse":"⚡ استجابة متدفقة — استخدم هذا الطلب بث SSE، لا يمكن التقاط محتوى الاستجابة بالكامل.","ui.responseNotCaptured":"لم يتم التقاط بيانات الاستجابة","ui.expand":"▶ توسيع","ui.collapse":"▼ طي","ui.noChat":"لا توجد بيانات محادثة MainAgent"},pz={"cli.inject.success":"✅ CC Viewer injisert vellykket","cli.inject.exists":"✅ CC Viewer allerede injisert, ingen handling nødvendig","cli.inject.fail":"❌ Injeksjon mislyktes: {error}","cli.inject.notFound":"❌ Claude Code cli.js ikke funnet: {path}","cli.inject.notFoundHint":" Sørg for at @anthropic-ai/claude-code er installert","cli.hook.installed":"✅ Auto-reinject hook skrevet til {path}","cli.hook.exists":"✅ Auto-reinject hook finnes allerede i {path}","cli.hook.fail":"⚠️ Kunne ikke skrive shell hook: {error}","cli.usage.hint":`
414
+ Kjør claude direkte. Det vil automatisk reinjisere etter Claude Code oppdateringer`,"cli.usage.uninstallHint":"For å avinstallere, kjør: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js injeksjon renset","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js ikke funnet, hoppet over","cli.uninstall.cliFail":"❌ Kunne ikke rense cli.js injeksjon","cli.uninstall.hookRemoved":"✅ Shell hook fjernet fra {path}","cli.uninstall.hookClean":"✅ Ingen opprydding nødvendig i {path}","cli.uninstall.hookFail":"❌ Kunne ikke rense shell hook: {error}","cli.uninstall.done":`
415
+ 🗑️ CC Viewer fullstendig avinstallert`,"server.started":`
416
+ 🔍 CC Viewer startet: http://{host}:{port}
417
+ `,"server.reuse":`
418
+ 🔍 CC Viewer kjører allerede: http://{host}:{port}
419
+ `,"server.portsBusy":"⚠️ Porter {start}-{end} er alle i bruk, overvåkningstjeneste ikke startet","ui.requestList":"Forespørsler","ui.totalRequests":"Totalt: {count}","ui.waitingRequests":"Venter på forespørsler...","ui.importLocalLogs":"Importer lokale logger","ui.saveLog":"Lagre gjeldende logg","ui.exportPrompts":"Eksporter bruker-prompts","ui.tokenStats":"Token-statistikk","ui.liveMonitoring":"Live","ui.historyLog":"Historikk: {file}","ui.chatMode":"Chat-modus","ui.rawMode":"Tilbake til rå modus","ui.cacheExpired":"Utløpt","ui.cacheCountdown":"MainAgent cache{type} utløper om: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Treffrate","ui.userPrompt":"Bruker-Prompt","ui.noPrompt":"Ingen bruker-prompts ennå","ui.unknownTime":"Ukjent tid","ui.userSelection":"👤 Brukervalg","ui.noAnswer":"Ingen svar","ui.systemContext":"Systemkontekst #{index}","ui.logCount":"{count} logger","ui.noLogs":"Ingen loggfiler","ui.toolReturn":"Verktøyresultat","ui.toolReturnNamed":"{name}-resultat","ui.lastResponse":"Last Response","ui.copySuccess":"Kopiert","ui.noHeaders":"Ingen Headers","ui.noBody":"Ingen Body","ui.streamingResponse":"⚡ Strømmesvar — Denne forespørselen brukte SSE-strømming, svarinnholdet kunne ikke fanges fullstendig.","ui.responseNotCaptured":"Svardata ikke fanget","ui.expand":"▶ Utvid","ui.collapse":"▼ Skjul","ui.noChat":"Ingen MainAgent samtaledata"},gz={"cli.inject.success":"✅ CC Viewer injetado com sucesso","cli.inject.exists":"✅ CC Viewer já injetado, nenhuma ação necessária","cli.inject.fail":"❌ Falha na injeção: {error}","cli.inject.notFound":"❌ Claude Code cli.js não encontrado: {path}","cli.inject.notFoundHint":" Certifique-se de que @anthropic-ai/claude-code está instalado","cli.hook.installed":"✅ Hook de reinjeção automática escrito em {path}","cli.hook.exists":"✅ Hook de reinjeção automática já existe em {path}","cli.hook.fail":"⚠️ Falha ao escrever shell hook: {error}","cli.usage.hint":`
420
+ Execute claude diretamente. A reinjeção será automática após atualizações do Claude Code`,"cli.usage.uninstallHint":"Para desinstalar, execute: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Injeção do cli.js limpa","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js não encontrado, ignorado","cli.uninstall.cliFail":"❌ Falha ao limpar injeção do cli.js","cli.uninstall.hookRemoved":"✅ Shell hook removido de {path}","cli.uninstall.hookClean":"✅ Nenhuma limpeza necessária em {path}","cli.uninstall.hookFail":"❌ Falha ao limpar shell hook: {error}","cli.uninstall.done":`
421
+ 🗑️ CC Viewer completamente desinstalado`,"server.started":`
422
+ 🔍 CC Viewer iniciado: http://{host}:{port}
423
+ `,"server.reuse":`
424
+ 🔍 CC Viewer já em execução: http://{host}:{port}
425
+ `,"server.portsBusy":"⚠️ Portas {start}-{end} estão todas em uso, serviço de monitoramento não iniciado","ui.requestList":"Requisições","ui.totalRequests":"Total: {count}","ui.waitingRequests":"Aguardando requisições...","ui.importLocalLogs":"Importar logs locais","ui.saveLog":"Salvar log atual","ui.exportPrompts":"Exportar prompts do usuário","ui.tokenStats":"Estatísticas de Token","ui.liveMonitoring":"Ao vivo","ui.historyLog":"Histórico: {file}","ui.chatMode":"Modo chat","ui.rawMode":"Voltar ao modo raw","ui.cacheExpired":"Expirado","ui.cacheCountdown":"Cache{type} do MainAgent expira em: ","ui.minuteSecond":"{m}m{s}s","ui.second":"{s}s","ui.hitRate":"Taxa de acerto","ui.userPrompt":"Prompt do usuário","ui.noPrompt":"Nenhum prompt de usuário ainda","ui.unknownTime":"Hora desconhecida","ui.userSelection":"👤 Seleção do usuário","ui.noAnswer":"Sem resposta","ui.systemContext":"Contexto do sistema #{index}","ui.logCount":"{count} logs","ui.noLogs":"Nenhum arquivo de log","ui.toolReturn":"Resultado da ferramenta","ui.toolReturnNamed":"Resultado de {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Copiado","ui.noHeaders":"Sem Headers","ui.noBody":"Sem Body","ui.streamingResponse":"⚡ Resposta em streaming — Esta requisição usou streaming SSE, o conteúdo da resposta não pôde ser totalmente capturado.","ui.responseNotCaptured":"Dados de resposta não capturados","ui.expand":"▶ Expandir","ui.collapse":"▼ Recolher","ui.noChat":"Sem dados de conversa do MainAgent"},vz={"cli.inject.success":"✅ CC Viewer ฉีดสำเร็จ","cli.inject.exists":"✅ CC Viewer ถูกฉีดแล้ว ไม่ต้องดำเนินการ","cli.inject.fail":"❌ การฉีดล้มเหลว: {error}","cli.inject.notFound":"❌ ไม่พบ Claude Code cli.js: {path}","cli.inject.notFoundHint":" กรุณาตรวจสอบว่า @anthropic-ai/claude-code ถูกติดตั้งแล้ว","cli.hook.installed":"✅ Hook ฉีดซ้ำอัตโนมัติถูกเขียนไปที่ {path}","cli.hook.exists":"✅ Hook ฉีดซ้ำอัตโนมัติมีอยู่แล้วใน {path}","cli.hook.fail":"⚠️ เขียน shell hook ล้มเหลว: {error}","cli.usage.hint":`
426
+ เรียกใช้ claude โดยตรง จะฉีดซ้ำอัตโนมัติหลังจาก Claude Code อัปเดต`,"cli.usage.uninstallHint":"หากต้องการถอนการติดตั้ง ให้เรียกใช้: ccv --uninstall","cli.uninstall.cliCleaned":"✅ การฉีด cli.js ถูกล้างแล้ว","cli.uninstall.cliNotFound":"⚠️ ไม่พบ Claude Code cli.js ข้ามไป","cli.uninstall.cliFail":"❌ ล้างการฉีด cli.js ล้มเหลว","cli.uninstall.hookRemoved":"✅ Shell hook ถูกลบออกจาก {path}","cli.uninstall.hookClean":"✅ ไม่จำเป็นต้องล้างใน {path}","cli.uninstall.hookFail":"❌ ล้าง shell hook ล้มเหลว: {error}","cli.uninstall.done":`
427
+ 🗑️ CC Viewer ถูกถอนการติดตั้งอย่างสมบูรณ์`,"server.started":`
428
+ 🔍 CC Viewer เริ่มทำงาน: http://{host}:{port}
429
+ `,"server.reuse":`
430
+ 🔍 CC Viewer กำลังทำงานอยู่แล้ว: http://{host}:{port}
431
+ `,"server.portsBusy":"⚠️ พอร์ต {start}-{end} ถูกใช้งานทั้งหมด บริการตรวจสอบไม่ได้เริ่มทำงาน","ui.requestList":"รายการคำขอ","ui.totalRequests":"ทั้งหมด: {count}","ui.waitingRequests":"รอคำขอ...","ui.importLocalLogs":"นำเข้าบันทึกในเครื่อง","ui.saveLog":"บันทึกล็อกปัจจุบัน","ui.exportPrompts":"ส่งออก Prompt ผู้ใช้","ui.tokenStats":"สถิติ Token","ui.liveMonitoring":"สด","ui.historyLog":"ประวัติ: {file}","ui.chatMode":"โหมดแชท","ui.rawMode":"กลับสู่โหมด Raw","ui.cacheExpired":"หมดอายุ","ui.cacheCountdown":"Cache{type} ของ MainAgent หมดอายุใน: ","ui.minuteSecond":"{m}นาที{s}วินาที","ui.second":"{s}วินาที","ui.hitRate":"อัตราการเข้าถึง","ui.userPrompt":"Prompt ผู้ใช้","ui.noPrompt":"ยังไม่มี Prompt ผู้ใช้","ui.unknownTime":"เวลาไม่ทราบ","ui.userSelection":"👤 การเลือกของผู้ใช้","ui.noAnswer":"ไม่มีคำตอบ","ui.systemContext":"บริบทระบบ #{index}","ui.logCount":"{count} บันทึก","ui.noLogs":"ไม่มีไฟล์บันทึก","ui.toolReturn":"ผลลัพธ์เครื่องมือ","ui.toolReturnNamed":"ผลลัพธ์ {name}","ui.lastResponse":"Last Response","ui.copySuccess":"คัดลอกแล้ว","ui.noHeaders":"ไม่มี Headers","ui.noBody":"ไม่มี Body","ui.streamingResponse":"⚡ การตอบกลับแบบสตรีม — คำขอนี้ใช้ SSE streaming เนื้อหาการตอบกลับไม่สามารถจับได้ทั้งหมด","ui.responseNotCaptured":"ไม่ได้จับข้อมูลการตอบกลับ","ui.expand":"▶ ขยาย","ui.collapse":"▼ ย่อ","ui.noChat":"ไม่มีข้อมูลการสนทนา MainAgent"},hz={"cli.inject.success":"✅ CC Viewer başarıyla enjekte edildi","cli.inject.exists":"✅ CC Viewer zaten enjekte edilmiş, işlem gerekmiyor","cli.inject.fail":"❌ Enjeksiyon başarısız: {error}","cli.inject.notFound":"❌ Claude Code cli.js bulunamadı: {path}","cli.inject.notFoundHint":" @anthropic-ai/claude-code'un kurulu olduğundan emin olun","cli.hook.installed":"✅ Otomatik yeniden enjeksiyon hook'u {path} dosyasına yazıldı","cli.hook.exists":"✅ Otomatik yeniden enjeksiyon hook'u zaten {path} dosyasında mevcut","cli.hook.fail":"⚠️ Shell hook yazılamadı: {error}","cli.usage.hint":`
432
+ claude'u doğrudan çalıştırın. Claude Code güncellemelerinden sonra otomatik olarak yeniden enjekte edilecektir`,"cli.usage.uninstallHint":"Kaldırmak için çalıştırın: ccv --uninstall","cli.uninstall.cliCleaned":"✅ cli.js enjeksiyonu temizlendi","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js bulunamadı, atlandı","cli.uninstall.cliFail":"❌ cli.js enjeksiyonu temizlenemedi","cli.uninstall.hookRemoved":"✅ Shell hook {path} dosyasından kaldırıldı","cli.uninstall.hookClean":"✅ {path} dosyasında temizlik gerekmiyor","cli.uninstall.hookFail":"❌ Shell hook temizlenemedi: {error}","cli.uninstall.done":`
433
+ 🗑️ CC Viewer tamamen kaldırıldı`,"server.started":`
434
+ 🔍 CC Viewer başlatıldı: http://{host}:{port}
435
+ `,"server.reuse":`
436
+ 🔍 CC Viewer zaten çalışıyor: http://{host}:{port}
437
+ `,"server.portsBusy":"⚠️ {start}-{end} portları kullanımda, izleme servisi başlatılamadı","ui.requestList":"İstekler","ui.totalRequests":"Toplam: {count}","ui.waitingRequests":"İstekler bekleniyor...","ui.importLocalLogs":"Yerel logları içe aktar","ui.saveLog":"Mevcut logu kaydet","ui.exportPrompts":"Kullanıcı Prompt'larını dışa aktar","ui.tokenStats":"Token İstatistikleri","ui.liveMonitoring":"Canlı","ui.historyLog":"Geçmiş: {file}","ui.chatMode":"Sohbet modu","ui.rawMode":"Ham moda dön","ui.cacheExpired":"Süresi doldu","ui.cacheCountdown":"MainAgent cache{type} süresi doluyor: ","ui.minuteSecond":"{m}dk{s}sn","ui.second":"{s}sn","ui.hitRate":"İsabet oranı","ui.userPrompt":"Kullanıcı Prompt","ui.noPrompt":"Henüz kullanıcı Prompt'u yok","ui.unknownTime":"Bilinmeyen zaman","ui.userSelection":"👤 Kullanıcı seçimi","ui.noAnswer":"Yanıt yok","ui.systemContext":"Sistem bağlamı #{index}","ui.logCount":"{count} log","ui.noLogs":"Log dosyası yok","ui.toolReturn":"Araç sonucu","ui.toolReturnNamed":"{name} sonucu","ui.lastResponse":"Last Response","ui.copySuccess":"Kopyalandı","ui.noHeaders":"Header yok","ui.noBody":"Body yok","ui.streamingResponse":"⚡ Akış yanıtı — Bu istek SSE akışı kullandı, yanıt içeriği tam olarak yakalanamadı.","ui.responseNotCaptured":"Yanıt verileri yakalanamadı","ui.expand":"▶ Genişlet","ui.collapse":"▼ Daralt","ui.noChat":"MainAgent konuşma verisi yok"},yz={"cli.inject.success":"✅ CC Viewer успішно впроваджено","cli.inject.exists":"✅ CC Viewer вже впроваджено, дій не потрібно","cli.inject.fail":"❌ Помилка впровадження: {error}","cli.inject.notFound":"❌ Claude Code cli.js не знайдено: {path}","cli.inject.notFoundHint":" Переконайтеся, що @anthropic-ai/claude-code встановлено","cli.hook.installed":"✅ Hook автоматичного повторного впровадження записано в {path}","cli.hook.exists":"✅ Hook автоматичного повторного впровадження вже існує в {path}","cli.hook.fail":"⚠️ Не вдалося записати shell hook: {error}","cli.usage.hint":`
438
+ Просто запустіть claude. Автоматичне повторне впровадження відбудеться після оновлення Claude Code`,"cli.usage.uninstallHint":"Для видалення виконайте: ccv --uninstall","cli.uninstall.cliCleaned":"✅ Впровадження в cli.js очищено","cli.uninstall.cliNotFound":"⚠️ Claude Code cli.js не знайдено, пропущено","cli.uninstall.cliFail":"❌ Не вдалося очистити впровадження в cli.js","cli.uninstall.hookRemoved":"✅ Shell hook видалено з {path}","cli.uninstall.hookClean":"✅ Очищення в {path} не потрібне","cli.uninstall.hookFail":"❌ Не вдалося очистити shell hook: {error}","cli.uninstall.done":`
439
+ 🗑️ CC Viewer повністю видалено`,"server.started":`
440
+ 🔍 CC Viewer запущено: http://{host}:{port}
441
+ `,"server.reuse":`
442
+ 🔍 CC Viewer вже працює: http://{host}:{port}
443
+ `,"server.portsBusy":"⚠️ Порти {start}-{end} всі зайняті, служба моніторингу не запущена","ui.requestList":"Запити","ui.totalRequests":"Всього: {count}","ui.waitingRequests":"Очікування запитів...","ui.importLocalLogs":"Імпорт локальних логів","ui.saveLog":"Зберегти поточний лог","ui.exportPrompts":"Експорт Prompt користувача","ui.tokenStats":"Статистика Token","ui.liveMonitoring":"Моніторинг","ui.historyLog":"Історія: {file}","ui.chatMode":"Режим чату","ui.rawMode":"Повернутися до режиму raw","ui.cacheExpired":"Закінчився","ui.cacheCountdown":"Cache{type} MainAgent закінчується через: ","ui.minuteSecond":"{m}хв{s}с","ui.second":"{s}с","ui.hitRate":"Відсоток влучень","ui.userPrompt":"Prompt користувача","ui.noPrompt":"Немає Prompt користувача","ui.unknownTime":"Невідомий час","ui.userSelection":"👤 Вибір користувача","ui.noAnswer":"Немає відповіді","ui.systemContext":"Системний контекст #{index}","ui.logCount":"{count} логів","ui.noLogs":"Немає файлів логів","ui.toolReturn":"Результат інструменту","ui.toolReturnNamed":"Результат {name}","ui.lastResponse":"Last Response","ui.copySuccess":"Скопійовано","ui.noHeaders":"Немає Headers","ui.noBody":"Немає Body","ui.streamingResponse":"⚡ Потокова відповідь — Цей запит використовував SSE-потокову передачу, вміст відповіді не може бути повністю захоплений.","ui.responseNotCaptured":"Дані відповіді не захоплені","ui.expand":"▶ Розгорнути","ui.collapse":"▼ Згорнути","ui.noChat":"Немає даних діалогу MainAgent"},bg={zh:tz,en:nz,"zh-TW":rz,ko:oz,de:iz,es:az,fr:lz,it:sz,da:cz,ja:uz,pl:dz,ru:fz,ar:mz,no:pz,"pt-BR":gz,th:vz,tr:hz,uk:yz};let Ev="zh";const ou={zh:"zh","zh-cn":"zh","zh-hans":"zh","zh-tw":"zh-TW","zh-hk":"zh-TW","zh-hant":"zh-TW",en:"en",ko:"ko",de:"de",es:"es",fr:"fr",it:"it",da:"da",ja:"ja",pl:"pl",ru:"ru",ar:"ar",no:"no",nb:"no",nn:"no",pt:"pt-BR","pt-br":"pt-BR",th:"th",tr:"tr",uk:"uk"};function bz(e){if(!e)return"en";const t=e.toLowerCase().replace(/_/g,"-");if(ou[t])return ou[t];const n=t.split("-")[0];return ou[n]?ou[n]:"en"}function Cz(){return typeof navigator<"u"&&navigator.language?bz(navigator.language):"en"}function c2(e){Ev=bg[e]?e:"en"}function qu(){return Ev}function Ft(e,t){var r;let n=((r=bg[Ev])==null?void 0:r[e])||bg.en[e]||e;if(t)for(const[o,l]of Object.entries(t))n=n.replaceAll(`{${o}}`,l);return n}c2(Cz());const eC=[{value:"zh",short:"zh",label:"简体中文"},{value:"en",short:"en",label:"English"},{value:"zh-TW",short:"zh-TW",label:"繁體中文"},{value:"ko",short:"ko",label:"한국어"},{value:"ja",short:"ja",label:"日本語"},{value:"de",short:"de",label:"Deutsch"},{value:"es",short:"es",label:"Español"},{value:"fr",short:"fr",label:"Français"},{value:"it",short:"it",label:"Italiano"},{value:"da",short:"da",label:"Dansk"},{value:"pl",short:"pl",label:"Polski"},{value:"ru",short:"ru",label:"Русский"},{value:"ar",short:"ar",label:"العربية"},{value:"no",short:"no",label:"Norsk"},{value:"pt-BR",short:"pt-BR",label:"Português (Brasil)"},{value:"th",short:"th",label:"ไทย"},{value:"tr",short:"tr",label:"Türkçe"},{value:"uk",short:"uk",label:"Українська"}],{Text:Sz}=Ao;function iu(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function xz(e){var n,r,o;const t={};for(const l of e){const s=(r=(n=l.response)==null?void 0:n.body)==null?void 0:r.usage;if(!s)continue;const u=((o=l.body)==null?void 0:o.model)||"unknown";t[u]||(t[u]={input:0,output:0,cacheCreation:0,cacheRead:0});const f=t[u];f.input+=s.input_tokens||0,f.output+=s.output_tokens||0,f.cacheCreation+=s.cache_creation_input_tokens||0,f.cacheRead+=s.cache_read_input_tokens||0}return t}class fs extends Y.Component{constructor(n){super(n);Kt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});this.state={countdownText:"",promptModalVisible:!1,promptData:[]},this._rafId=null,this._expiredTimer=null,this.updateCountdown=this.updateCountdown.bind(this)}componentDidMount(){this.startCountdown()}componentDidUpdate(n){n.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:n}=this.props;if(!n){this.setState({countdownText:""});return}const r=Math.max(0,n-Date.now());if(r<=0){this.setState({countdownText:Ft("ui.cacheExpired")}),this._expiredTimer=setTimeout(()=>{this.setState({countdownText:""})},5e3);return}const o=Math.ceil(r/1e3);let l;if(o>=60){const s=Math.floor(o/60),u=o%60;l=Ft("ui.minuteSecond",{m:s,s:String(u).padStart(2,"0")})}else l=Ft("ui.second",{s:o});this.setState({countdownText:l}),this._rafId=requestAnimationFrame(this.updateCountdown)}static parseSegments(n){const r=[],o=/<system-reminder>([\s\S]*?)<\/system-reminder>/g;let l=0,s=0,u;for(;(u=o.exec(n))!==null;){const m=n.slice(l,u.index).trim();m&&r.push({type:"text",content:m}),s++,r.push({type:"system",content:u[1].trim(),label:Ft("ui.systemContext",{index:s})}),l=u.index+u[0].length}const f=n.slice(l).trim();return f&&r.push({type:"text",content:f}),r}static extractResponseContent(n){const r=n==null?void 0:n.content;if(!Array.isArray(r))return null;const o=[];let l="";for(const s of r)s.type==="thinking"?o.push(s.thinking||""):s.type==="text"&&(l=s.text||"");return{thinkingBlocks:o,questionText:l}}static extractAnswerText(n){const r=n==null?void 0:n.content;if(!Array.isArray(r))return"";for(const o of r)if(o.type==="text"&&o.text)return o.text;return""}extractUserPrompts(){var u,f,m,p;const{requests:n=[]}=this.props,r=[];let o=0,l="";const s=n.filter(g=>g.mainAgent);for(let g=0;g<s.length;g++){const h=s[g],y=((u=h.body)==null?void 0:u.messages)||[],S=h.timestamp||"",C=[],b=[];for(const R of y)if(R.role==="user"){if(typeof R.content=="string"){const O=R.content.trim();if(!O)continue;(!Uu(O)||/^\[SUGGESTION MODE:/i.test(O))&&(C.push(O),b.push(O))}else if(Array.isArray(R.content)){const O=R.content.filter(P=>{var T;return P.type==="text"&&((T=P.text)==null?void 0:T.trim())}).map(P=>P.text.trim()).join(`
444
+ `);let I=!1;for(const P of R.content){if(P.type!=="text"||!((f=P.text)!=null&&f.trim()))continue;const T=P.text.trim();if(!Uu(T)||/^\[SUGGESTION MODE:/i.test(T)){I=!0;break}}I&&O&&(C.push(O),b.push(O))}}const $=C.length>0?C[C.length-1]:"",w=b.length>0?b[b.length-1]:"";if(C.length>0&&(C.length>o||$!==l)){const R=w;if(/^\[SUGGESTION MODE:/i.test($.trim())){const O=g>0?s[g-1]:null,I=O?fs.extractResponseContent((m=O.response)==null?void 0:m.body):null,P=fs.extractAnswerText((p=h.response)==null?void 0:p.body);r.push({type:"selection",prevContent:I,answerText:P,timestamp:S})}else r.push({type:"prompt",segments:fs.parseSegments(R),timestamp:S})}o=C.length,l=$}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=xz(n),o=Object.keys(r);if(o.length===0)return G.jsx("div",{style:{padding:"8px 4px",color:"#999",fontSize:13},children:"暂无 token 数据"});const l={padding:"2px 12px",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",color:"#888",fontWeight:"normal",textAlign:"right"},s={padding:"2px 12px",fontSize:12,fontFamily:"monospace",whiteSpace:"nowrap",color:"#e5e5e5",textAlign:"right"},u={...l,textAlign:"left",color:"#aaa"};return G.jsx("div",{style:{minWidth:240},children:o.map(f=>{const m=r[f],p=m.input+m.cacheCreation+m.cacheRead,g=p>0?(m.cacheRead/p*100).toFixed(1):"0.0";return G.jsxs("div",{style:{marginBottom:o.length>1?10:0,border:"1px solid #333",borderRadius:6,padding:"8px 10px"},children:[G.jsx("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:8,paddingBottom:4,borderBottom:"1px solid #333"},children:f}),G.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:G.jsxs("tbody",{children:[G.jsxs("tr",{children:[G.jsx("td",{style:u,children:"Token"}),G.jsx("td",{style:l,children:"input"}),G.jsx("td",{style:l,children:"output"})]}),G.jsxs("tr",{style:{borderBottom:"1px solid #2a2a2a"},children:[G.jsx("td",{style:u}),G.jsx("td",{style:s,children:iu(p)}),G.jsx("td",{style:s,children:iu(m.output)})]}),G.jsxs("tr",{children:[G.jsx("td",{style:u,children:"Cache"}),G.jsx("td",{style:l,children:"create"}),G.jsx("td",{style:l,children:"read"})]}),G.jsxs("tr",{style:{borderBottom:"1px solid #2a2a2a"},children:[G.jsx("td",{style:u}),G.jsx("td",{style:s,children:iu(m.cacheCreation)}),G.jsx("td",{style:s,children:iu(m.cacheRead)})]}),G.jsxs("tr",{children:[G.jsx("td",{style:u,children:Ft("ui.hitRate")}),G.jsxs("td",{colSpan:2,style:s,children:[g,"%"]})]})]})})]},f)})})}renderTextPrompt(n){return G.jsx("div",{style:{margin:"4px 0",background:"#141414",borderRadius:6,border:"1px solid #303030",padding:"10px 14px"},children:n.segments.map((r,o)=>r.type==="text"?G.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#d9d9d9",margin:"4px 0"},children:r.content},o):G.jsx(na,{size:"small",style:{margin:"4px 0",background:"#1a1a1a",border:"1px solid #303030",borderRadius:6},items:[{key:`sys-${o}`,label:G.jsx("span",{style:{color:"#888",fontSize:12},children:r.label}),children:G.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#999",margin:0},children:r.content})}]},o))})}renderSelectionPrompt(n){const{prevContent:r,answerText:o}=n;return G.jsxs("div",{style:{margin:"4px 0",background:"#141414",borderRadius:6,border:"1px solid #303030"},children:[r&&G.jsxs("div",{style:{padding:"10px 14px",borderBottom:"1px solid #252525"},children:[G.jsx("div",{style:{fontSize:12,color:"#888",marginBottom:6},children:"🤖 Claude"}),r.thinkingBlocks.length>0&&G.jsx(na,{size:"small",style:{marginBottom:6,background:"#1a1a1a",border:"1px solid #303030",borderRadius:6},items:[{key:"thinking",label:G.jsx("span",{style:{color:"#888",fontSize:12},children:"thinking"}),children:G.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#999",margin:0},children:r.thinkingBlocks.join(`
445
+
446
+ `)})}]}),G.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#bbb",margin:0},children:r.questionText})]}),G.jsxs("div",{style:{padding:"10px 14px"},children:[G.jsxs("div",{style:{fontSize:12,color:"#888",marginBottom:6},children:["👤 ",Ft("ui.userSelection")]}),G.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:13,lineHeight:1.6,color:"#d9d9d9",margin:0,fontWeight:600},children:o||Ft("ui.noAnswer")})]})]})}render(){var h;const{requestCount:n,viewMode:r,cacheType:o,onToggleViewMode:l,onImportLocalLogs:s,onLangChange:u,isLocalLog:f,localLogFile:m}=this.props,{countdownText:p}=this.state,g=[{key:"import-local",icon:G.jsx(U9,{}),label:Ft("ui.importLocalLogs"),onClick:s},{key:"save-log",icon:G.jsx(Y9,{}),label:Ft("ui.saveLog"),onClick:()=>{const y=document.createElement("a");y.href="/api/download-log",y.click()}},{key:"export-prompts",icon:G.jsx(H9,{}),label:Ft("ui.exportPrompts"),onClick:this.handleShowPrompts}];return G.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%"},children:[G.jsxs(fl,{size:"middle",children:[G.jsx(yg,{menu:{items:g},trigger:["hover"],children:G.jsxs(Sz,{strong:!0,style:{color:"#fff",fontSize:18,cursor:"pointer"},children:["CC-Viewer ",G.jsx(ow,{style:{fontSize:12,marginLeft:4}})]})}),G.jsx(pw,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:G.jsxs(jo,{style:{borderRadius:12,cursor:"pointer",background:"#2a2a2a",border:"1px solid #3a3a3a",color:"#ccc"},children:[G.jsx(A9,{style:{marginRight:4}}),Ft("ui.tokenStats")]})}),G.jsxs(jo,{color:"green",style:{borderRadius:12},children:[G.jsx(hw,{status:"processing",color:"green"}),G.jsx("span",{style:{marginLeft:4},children:f?Ft("ui.historyLog",{file:m}):Ft("ui.liveMonitoring")})]})]}),G.jsxs(fl,{size:"middle",children:[p&&G.jsxs(jo,{color:p===Ft("ui.cacheExpired")?"red":"green",children:[Ft("ui.cacheCountdown",{type:o?`(${o})`:""}),G.jsx("strong",{style:{fontVariantNumeric:"tabular-nums"},children:p})]}),G.jsx(yg,{trigger:["hover"],placement:"bottom",menu:{items:eC.map(y=>({key:y.value,label:y.label,style:y.value===qu()?{color:"#3b82f6"}:{}})),onClick:({key:y})=>{c2(y),u&&u()}},children:G.jsx("span",{style:{color:"#888",fontSize:12,cursor:"pointer",userSelect:"none",border:"1px solid #555",borderRadius:4,padding:"2px 8px"},children:((h=eC.find(y=>y.value===qu()))==null?void 0:h.short)||"zh"})}),G.jsx(zo,{type:r==="raw"?"primary":"default",icon:r==="raw"?G.jsx(K9,{}):G.jsx(bv,{}),onClick:l,children:Ft(r==="raw"?"ui.chatMode":"ui.rawMode")})]}),G.jsx(lo,{title:Ft("ui.userPrompt"),open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:G.jsxs("div",{style:{maxHeight:500,overflow:"auto"},children:[this.state.promptData.length===0&&G.jsx("div",{style:{color:"#999",padding:12},children:Ft("ui.noPrompt")}),this.state.promptData.map((y,S)=>{const C=y.timestamp?new Date(y.timestamp).toLocaleString():Ft("ui.unknownTime");return G.jsxs("div",{children:[G.jsxs("div",{style:{textAlign:"center",color:"#666",fontSize:12,margin:"12px 0 8px",borderBottom:"1px solid #303030",paddingBottom:6},children:["--- ",C," ---"]}),y.type==="selection"?this.renderSelectionPrompt(y):this.renderTextPrompt(y)]},S)})]})})]})}}function au(e){return e==null||e===0?null:e>=1e3?(e/1e3).toFixed(1)+"k":String(e)}function wz(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function $z(e){const t=e.body||{},n=t.system;let r="";if(typeof n=="string")r=n;else if(Array.isArray(n))for(const l of n)l&&l.text&&(r+=l.text);if(/Extract any file paths/i.test(r)||/process Bash commands/i.test(r))return"Bash";if(/file search specialist/i.test(r))return"Task";const o=t.messages||[];for(let l=o.length-1;l>=0;l--){if(o[l].role!=="user")continue;const s=o[l].content;let u="";if(typeof s=="string")u=s;else if(Array.isArray(s)){for(const f of s)if(f.type==="text"){u=f.text||"";break}}if(/^Command:/m.test(u))return"Bash";break}return null}class Ez extends Y.Component{render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?G.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:G.jsx(Co,{description:Ft("ui.waitingRequests")})}):G.jsx("div",{style:{overflow:"auto",height:"100%"},children:G.jsx(Os,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{var w,R,O;const s=new Date(o.timestamp).toLocaleTimeString("zh-CN"),u=l===n,f=o.response&&o.response.status<400,m=o.response&&o.response.status>=400,p=wz((w=o.body)==null?void 0:w.model),g=o.mainAgent?null:$z(o),h=(O=(R=o.response)==null?void 0:R.body)==null?void 0:O.usage,y=h?(h.input_tokens||0)+(h.cache_read_input_tokens||0)+(h.cache_creation_input_tokens||0):null,S=(h==null?void 0:h.output_tokens)||null,C=(h==null?void 0:h.cache_read_input_tokens)||0,b=(h==null?void 0:h.cache_creation_input_tokens)||0;let $=o.url;try{const I=new URL(o.url);$=I.host+I.pathname}catch{}return G.jsx(Os.Item,{onClick:()=>r(l),style:{cursor:"pointer",padding:"8px 12px",background:u?"#1a2332":"transparent",borderLeft:u?"3px solid #3b82f6":"3px solid transparent",borderBottom:"1px solid #1f1f1f",transition:"background 0.15s"},onMouseEnter:I=>{u||(I.currentTarget.style.background="#151515")},onMouseLeave:I=>{u||(I.currentTarget.style.background="transparent")},children:G.jsxs("div",{style:{width:"100%",minWidth:0},children:[G.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4,fontSize:12},children:[o.mainAgent?G.jsx(jo,{color:"orange",style:{margin:0,fontSize:12},children:"MainAgent"}):G.jsxs(jo,{style:{margin:0,fontSize:12},children:["SubAgent",g?":"+g:""]}),p&&G.jsx("span",{style:{fontSize:12,color:o.mainAgent?"#d4822d":"#8c8c8c"},children:p}),G.jsx("span",{style:{fontSize:12,color:"#6b7280",marginLeft:"auto"},children:s})]}),G.jsxs("div",{style:{display:"flex",gap:8,fontSize:12,alignItems:"center"},children:[G.jsx("span",{style:{color:"#555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0},title:o.url,children:$}),o.duration&&G.jsxs("span",{style:{color:"#6b7280",flexShrink:0},children:[o.duration,"ms"]}),o.response&&G.jsx("span",{style:{color:f?"#10b981":m?"#ef4444":"#9ca3af",flexShrink:0},children:o.response.status})]}),h&&G.jsxs("div",{style:{background:"#111",borderRadius:4,padding:"3px 6px",marginTop:4,fontSize:12,color:"#6b7280",lineHeight:1.6},children:[G.jsxs("div",{children:["token: output:",au(S)||0,", input: ",au(y)||0]}),(C>0||b>0)&&G.jsxs("div",{children:["cache: ",C>0?`read:${au(C)}`:"",C>0&&b>0?", ":"",b>0?`create:${au(b)}`:""]})]})]})})}})})}}const Rz=e=>typeof e=="boolean"||e instanceof Boolean,Oz=e=>typeof e=="number"||e instanceof Number,Iz=e=>typeof e=="bigint"||e instanceof BigInt,u2=e=>!!e&&e instanceof Date,Pz=e=>typeof e=="string"||e instanceof String,Tz=e=>Array.isArray(e),d2=e=>typeof e=="object"&&e!==null,f2=e=>!!e&&e instanceof Object&&typeof e=="function";function Gu(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function Mz(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function m2(e){let{field:t,value:n,data:r,lastElement:o,openBracket:l,closeBracket:s,level:u,style:f,shouldExpandNode:m,clickToExpandNode:p,outerRef:g,beforeExpandChange:h}=e;const y=c.useRef(!1),[S,C]=c.useState(()=>m(u,n,t)),b=c.useRef(null);c.useEffect(()=>{y.current?C(m(u,n,t)):y.current=!0},[m]);const $=c.useId();if(r.length===0)return jz({field:t,openBracket:l,closeBracket:s,lastElement:o,style:f});const w=S?f.collapseIcon:f.expandIcon,R=S?f.ariaLables.collapseJson:f.ariaLables.expandJson,O=u+1,I=r.length-1,P=M=>{S!==M&&(!h||h({level:u,value:n,field:t,newExpandValue:M}))&&C(M)},T=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),P(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const k=M.key==="ArrowUp"?-1:1;if(!g.current)return;const L=g.current.querySelectorAll("[role=button]");let _=-1;for(let B=0;B<L.length;B++)if(L[B].tabIndex===0){_=B;break}if(_<0)return;const A=(_+k+L.length)%L.length;L[_].tabIndex=-1,L[A].tabIndex=0,L[A].focus()}},j=()=>{var M;P(!S);const k=b.current;if(!k)return;const L=(M=g.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),k.tabIndex=0,k.focus()};return c.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":S,"aria-selected":void 0},c.createElement("span",{className:w,onClick:j,onKeyDown:T,role:"button","aria-label":R,"aria-expanded":S,"aria-controls":S?$:void 0,ref:b,tabIndex:u===0?0:-1}),(t||t==="")&&(p?c.createElement("span",{className:f.clickableLabel,onClick:j,onKeyDown:T},Gu(t,f.quotesForFieldNames),":"):c.createElement("span",{className:f.label},Gu(t,f.quotesForFieldNames),":")),c.createElement("span",{className:f.punctuation},l),S?c.createElement("ul",{id:$,role:"group",className:f.childFieldsContainer},r.map((M,k)=>c.createElement(Cg,{key:M[0]||k,field:M[0],value:M[1],style:f,lastElement:k===I,level:O,shouldExpandNode:m,clickToExpandNode:p,beforeExpandChange:h,outerRef:g}))):c.createElement("span",{className:f.collapsedContent,onClick:j,onKeyDown:T}),c.createElement("span",{className:f.punctuation},s),!o&&c.createElement("span",{className:f.punctuation},","))}function jz(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:l}=e;return c.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&c.createElement("span",{className:l.label},Gu(t,l.quotesForFieldNames),":"),c.createElement("span",{className:l.punctuation},n),c.createElement("span",{className:l.punctuation},r),!o&&c.createElement("span",{className:l.punctuation},","))}function kz(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:m}=e;return m2({field:t,value:n,lastElement:o||!1,level:u,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:s,data:Object.keys(n).map(p=>[p,n[p]]),outerRef:f,beforeExpandChange:m})}function Nz(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:m}=e;return m2({field:t,value:n,lastElement:o||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:u,data:n.map(p=>[void 0,p]),outerRef:f,beforeExpandChange:m})}function _z(e){let{field:t,value:n,style:r,lastElement:o}=e,l,s=r.otherValue;return n===null?(l="null",s=r.nullValue):n===void 0?(l="undefined",s=r.undefinedValue):Pz(n)?(l=Mz(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):Rz(n)?(l=n?"true":"false",s=r.booleanValue):Oz(n)?(l=n.toString(),s=r.numberValue):Iz(n)?(l=`${n.toString()}n`,s=r.numberValue):u2(n)?l=n.toISOString():f2(n)?l="function() { }":l=n.toString(),c.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&c.createElement("span",{className:r.label},Gu(t,r.quotesForFieldNames),":"),c.createElement("span",{className:s},l),!o&&c.createElement("span",{className:r.punctuation},","))}function Cg(e){const t=e.value;return Tz(t)?c.createElement(Nz,Object.assign({},e)):d2(t)&&!u2(t)&&!f2(t)?c.createElement(kz,Object.assign({},e)):c.createElement(_z,Object.assign({},e))}var mn={"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 p2={collapseJson:"collapse JSON",expandJson:"expand JSON"},dp={container:mn["container-light"],basicChildStyle:mn["basic-element-style"],childFieldsContainer:mn["child-fields-container"],label:mn["label-light"],clickableLabel:mn["clickable-label-light"],nullValue:mn["value-null-light"],undefinedValue:mn["value-undefined-light"],stringValue:mn["value-string-light"],booleanValue:mn["value-boolean-light"],numberValue:mn["value-number-light"],otherValue:mn["value-other-light"],punctuation:mn["punctuation-light"],collapseIcon:mn["collapse-icon-light"],expandIcon:mn["expand-icon-light"],collapsedContent:mn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:p2,stringifyStringValues:!1},zz={container:mn["container-dark"],basicChildStyle:mn["basic-element-style"],childFieldsContainer:mn["child-fields-container"],label:mn["label-dark"],clickableLabel:mn["clickable-label-dark"],nullValue:mn["value-null-dark"],undefinedValue:mn["value-undefined-dark"],stringValue:mn["value-string-dark"],booleanValue:mn["value-boolean-dark"],numberValue:mn["value-number-dark"],otherValue:mn["value-other-dark"],punctuation:mn["punctuation-dark"],collapseIcon:mn["collapse-icon-dark"],expandIcon:mn["expand-icon-dark"],collapsedContent:mn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:p2,stringifyStringValues:!1},Lz=()=>!0,Bz=e=>{let{data:t,style:n=dp,shouldExpandNode:r=Lz,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...u}=e;const f=c.useRef(null);return c.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:f,role:"tree"}),s&&d2(t)?Object.entries(t).map(m=>{let[p,g]=m;return c.createElement(Cg,{key:p,field:p,value:g,style:{...dp,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:f})}):c.createElement(Cg,{value:t,style:{...dp,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:l}))},Az={...zz,container:"rjv-container"};class Fz extends Y.Component{render(){const{data:t,defaultExpand:n}=this.props;if(t==null)return null;const r=n==="all"?()=>!0:n==="root"?o=>o<2:o=>o<1;return G.jsx("div",{style:{background:"#0d1117",borderRadius:6,border:"1px solid #2a2a2a",padding:"12px",fontSize:13,fontFamily:"monospace",overflow:"auto"},children:G.jsx(Bz,{data:t,shouldExpandNode:r,style:Az})})}}const{Text:Qo,Paragraph:Dz}=Ao;class Hz extends Y.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"}}}shouldComponentUpdate(t,n){return t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||n.bodyViewMode!==this.state.bodyViewMode}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var l;const{request:n}=this.props;if(!n)return;const r=t==="request"?n.body:(l=n.response)==null?void 0:l.body;if(r==null)return;const o=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(o).then(()=>r2.success(Ft("ui.copySuccess")))}renderHeaders(t){return!t||Object.keys(t).length===0?G.jsx(Qo,{type:"secondary",children:Ft("ui.noHeaders")}):G.jsx("div",{style:{fontSize:12},children:Object.entries(t).map(([n,r])=>G.jsxs("div",{style:{display:"flex",padding:"4px 0",borderBottom:"1px solid #1f1f1f"},children:[G.jsx(Qo,{code:!0,style:{minWidth:200,flexShrink:0},children:n}),G.jsx(Qo,{type:"secondary",style:{wordBreak:"break-all",marginLeft:8},children:String(r)})]},n))})}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return G.jsx(Qo,{type:"secondary",children:Ft("ui.noBody")});if(typeof t=="string"&&t.includes("Streaming Response"))return G.jsx("div",{style:{padding:20,background:"#1a1a1a",borderRadius:6,border:"1px solid #2a2a2a"},children:G.jsx(Qo,{type:"secondary",children:Ft("ui.streamingResponse")})});const o=r[n]==="json";return G.jsxs("div",{children:[G.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[G.jsx(zo,{size:"small",icon:o?G.jsx(bv,{}):G.jsx(z9,{}),onClick:()=>this.toggleBodyViewMode(n),children:o?"Text":"JSON"}),G.jsx(zo,{size:"small",icon:G.jsx(s2,{}),onClick:()=>this.copyBody(n),children:"复制"})]}),o?G.jsx(Fz,{data:t,defaultExpand:n==="response"?"all":"root"}):G.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 G.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:G.jsx(Co,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400,s=[{key:"request",label:"Request",children:G.jsxs("div",{style:{padding:"12px 0"},children:[G.jsx(na,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.headers)}],style:{marginBottom:16}}),G.jsxs("div",{children:[G.jsx(Qo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:G.jsx("div",{style:{padding:"12px 0"},children:t.response?G.jsxs(G.Fragment,{children:[G.jsx(na,{ghost:!0,defaultActiveKey:[],items:[{key:"headers",label:"Headers",children:this.renderHeaders(t.response.headers)}],style:{marginBottom:16}}),G.jsxs("div",{children:[G.jsx(Qo,{strong:!0,style:{display:"block",marginBottom:8},children:"Body"}),this.renderBody(t.response.body,"response")]})]}):G.jsx(Co,{description:Ft("ui.responseNotCaptured")})})}];return G.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 16px"},children:[G.jsxs("div",{style:{padding:"12px 0",borderBottom:"1px solid #1f1f1f"},children:[G.jsx(Dz,{style:{color:"#d1d5db",fontSize:13,marginBottom:8,wordBreak:"break-all"},ellipsis:{rows:2,expandable:!0},children:t.url}),G.jsxs(fl,{size:"small",wrap:!0,children:[G.jsx(jo,{color:t.method==="POST"?"blue":"green",children:t.method}),G.jsxs(Qo,{type:"secondary",style:{fontSize:12},children:["🕐 ",o]}),t.duration&&G.jsxs(Qo,{type:"secondary",style:{fontSize:12},children:["⏱️ ",t.duration,"ms"]}),t.response&&G.jsxs(jo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),G.jsx(Uw,{activeKey:n,onChange:r,items:s,size:"small"})]})}}function Rv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var la=Rv();function g2(e){la=e}var Qi={exec:()=>null};function tn(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Er.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var Vz=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Er={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)}}>`)},Wz=/^(?:[ \t]*(?:\n|$))+/,Uz=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qz=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Us=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gz=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ov=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,v2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h2=tn(v2).replace(/bull/g,Ov).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(),Kz=tn(v2).replace(/bull/g,Ov).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(),Iv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Xz=/^[^\n]+/,Pv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qz=tn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Pv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Yz=tn(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ov).getRegex(),Ld="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",Tv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zz=tn("^ {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",Tv).replace("tag",Ld).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),y2=tn(Iv).replace("hr",Us).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",Ld).getRegex(),Jz=tn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",y2).getRegex(),Mv={blockquote:Jz,code:Uz,def:Qz,fences:qz,heading:Gz,hr:Us,html:Zz,lheading:h2,list:Yz,newline:Wz,paragraph:y2,table:Qi,text:Xz},tC=tn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Us).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",Ld).getRegex(),eL={...Mv,lheading:Kz,table:tC,paragraph:tn(Iv).replace("hr",Us).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tC).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",Ld).getRegex()},tL={...Mv,html:tn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tv).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:Qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tn(Iv).replace("hr",Us).replace("heading",` *#{1,6} *[^
447
+ ]`).replace("lheading",h2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,b2=/^( {2,}|\\)\n(?!\s*$)/,oL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Bd=/[\p{P}\p{S}]/u,jv=/[\s\p{P}\p{S}]/u,C2=/[^\s\p{P}\p{S}]/u,iL=tn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,jv).getRegex(),S2=/(?!~)[\p{P}\p{S}]/u,aL=/(?!~)[\s\p{P}\p{S}]/u,lL=/(?:[^\s\p{P}\p{S}]|~)/u,x2=/(?![*_])[\p{P}\p{S}]/u,sL=/(?![*_])[\s\p{P}\p{S}]/u,cL=/(?:[^\s\p{P}\p{S}]|[*_])/u,uL=tn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Vz?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),w2=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,dL=tn(w2,"u").replace(/punct/g,Bd).getRegex(),fL=tn(w2,"u").replace(/punct/g,S2).getRegex(),$2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mL=tn($2,"gu").replace(/notPunctSpace/g,C2).replace(/punctSpace/g,jv).replace(/punct/g,Bd).getRegex(),pL=tn($2,"gu").replace(/notPunctSpace/g,lL).replace(/punctSpace/g,aL).replace(/punct/g,S2).getRegex(),gL=tn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,C2).replace(/punctSpace/g,jv).replace(/punct/g,Bd).getRegex(),vL=tn(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,x2).getRegex(),hL="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",yL=tn(hL,"gu").replace(/notPunctSpace/g,cL).replace(/punctSpace/g,sL).replace(/punct/g,x2).getRegex(),bL=tn(/\\(punct)/,"gu").replace(/punct/g,Bd).getRegex(),CL=tn(/^<(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(),SL=tn(Tv).replace("(?:-->|$)","-->").getRegex(),xL=tn("^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",SL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ku=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,wL=tn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ku).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),E2=tn(/^!?\[(label)\]\[(ref)\]/).replace("label",Ku).replace("ref",Pv).getRegex(),R2=tn(/^!?\[(ref)\](?:\[\])?/).replace("ref",Pv).getRegex(),$L=tn("reflink|nolink(?!\\()","g").replace("reflink",E2).replace("nolink",R2).getRegex(),nC=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kv={_backpedal:Qi,anyPunctuation:bL,autolink:CL,blockSkip:uL,br:b2,code:rL,del:Qi,delLDelim:Qi,delRDelim:Qi,emStrongLDelim:dL,emStrongRDelimAst:mL,emStrongRDelimUnd:gL,escape:nL,link:wL,nolink:R2,punctuation:iL,reflink:E2,reflinkSearch:$L,tag:xL,text:oL,url:Qi},EL={...kv,link:tn(/^!?\[(label)\]\((.*?)\)/).replace("label",Ku).getRegex(),reflink:tn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ku).getRegex()},Sg={...kv,emStrongRDelimAst:pL,emStrongLDelim:fL,delLDelim:vL,delRDelim:yL,url:tn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nC).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:tn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nC).getRegex()},RL={...Sg,br:tn(b2).replace("{2,}","*").getRegex(),text:tn(Sg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},lu={normal:Mv,gfm:eL,pedantic:tL},ns={normal:kv,gfm:Sg,breaks:RL,pedantic:EL},OL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rC=e=>OL[e];function Yo(e,t){if(t){if(Er.escapeTest.test(e))return e.replace(Er.escapeReplace,rC)}else if(Er.escapeTestNoEncode.test(e))return e.replace(Er.escapeReplaceNoEncode,rC);return e}function oC(e){try{e=encodeURI(e).replace(Er.percentDecode,"%")}catch{return null}return e}function iC(e,t){var l;let n=e.replace(Er.findPipe,(s,u,f)=>{let m=!1,p=u;for(;--p>=0&&f[p]==="\\";)m=!m;return m?"|":" |"}),r=n.split(Er.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((l=r.at(-1))!=null&&l.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Er.slashPipe,"|");return r}function rs(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function IL(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 PL(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let l=4-n%4;r+=" ".repeat(l),n+=l}else r+=o,n++;return r}function aC(e,t,n,r,o){let l=t.href,s=t.title||null,u=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,f}function TL(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
448
+ `).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[u]=s;return u.length>=o.length?l.slice(o.length):l}).join(`
449
+ `)}var Xu=class{constructor(e){Kt(this,"options");Kt(this,"rules");Kt(this,"lexer");this.options=e||la}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:rs(n,`
450
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=TL(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=rs(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:rs(t[0],`
451
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=rs(t[0],`
452
+ `).split(`
453
+ `),r="",o="",l=[];for(;n.length>0;){let s=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),s=!0;else if(!s)u.push(n[f]);else break;n=n.slice(f);let m=u.join(`
454
+ `),p=m.replace(this.rules.other.blockquoteSetextReplace,`
455
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
456
+ ${m}`:m,o=o?`${o}
457
+ ${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,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 y=h,S=y.raw+`
458
+ `+n.join(`
459
+ `),C=this.blockquote(S);l[l.length-1]=C,r=r.substring(0,r.length-y.raw.length)+C.raw,o=o.substring(0,o.length-y.text.length)+C.text;break}else if((h==null?void 0:h.type)==="list"){let y=h,S=y.raw+`
460
+ `+n.join(`
461
+ `),C=this.list(S);l[l.length-1]=C,r=r.substring(0,r.length-h.raw.length)+C.raw,o=o.substring(0,o.length-y.raw.length)+C.raw,n=S.substring(l.at(-1).raw.length).split(`
462
+ `);continue}}return{type:"blockquote",raw:r,tokens:l,text:o}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),l=o.length>1,s={type:"list",raw:"",ordered:l,start:l?+o.slice(0,-1):"",loose:!1,items:[]};o=l?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=l?o:"[*+-]");let u=this.rules.other.listItemRegex(o),f=!1;for(;e;){let p=!1,g="",h="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let y=PL(t[2].split(`
463
+ `,1)[0],t[1].length),S=e.split(`
464
+ `,1)[0],C=!y.trim(),b=0;if(this.options.pedantic?(b=2,h=y.trimStart()):C?b=t[1].length+1:(b=y.search(this.rules.other.nonSpaceChar),b=b>4?1:b,h=y.slice(b),b+=t[1].length),C&&this.rules.other.blankLine.test(S)&&(g+=S+`
465
+ `,e=e.substring(S.length+1),p=!0),!p){let $=this.rules.other.nextBulletRegex(b),w=this.rules.other.hrRegex(b),R=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),I=this.rules.other.htmlBeginRegex(b),P=this.rules.other.blockquoteBeginRegex(b);for(;e;){let T=e.split(`
466
+ `,1)[0],j;if(S=T,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),j=S):j=S.replace(this.rules.other.tabCharGlobal," "),R.test(S)||O.test(S)||I.test(S)||P.test(S)||$.test(S)||w.test(S))break;if(j.search(this.rules.other.nonSpaceChar)>=b||!S.trim())h+=`
467
+ `+j.slice(b);else{if(C||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(y)||O.test(y)||w.test(y))break;h+=`
468
+ `+S}C=!S.trim(),g+=T+`
469
+ `,e=e.substring(T.length+1),y=j.slice(b)}}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 p of s.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){if(p.text=p.text.replace(this.rules.other.listReplaceTask,""),((n=p.tokens[0])==null?void 0:n.type)==="text"||((r=p.tokens[0])==null?void 0:r.type)==="paragraph"){p.tokens[0].raw=p.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),p.tokens[0].text=p.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(p.raw);if(g){let h={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};p.checked=h.checked,s.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=h.raw+p.tokens[0].raw,p.tokens[0].text=h.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(h)):p.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):p.tokens.unshift(h)}}if(!s.loose){let g=p.tokens.filter(y=>y.type==="space"),h=g.length>0&&g.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=h}}if(s.loose)for(let p of s.items){p.loose=!0;for(let g of p.tokens)g.type==="text"&&(g.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=iC(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
470
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of o)l.rows.push(iC(u,l.header.length).map((f,m)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[m]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
471
+ `?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=rs(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=IL(t[2],"()");if(l===-2)return;if(l>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),aC(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return aC(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(r=m.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(s=[...l].length,r[3]||r[4]){u+=s;continue}else if((r[5]||r[6])&&o%3&&!((o+s)%3)){f+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+f);let p=[...r[0]][0].length,g=e.slice(0,o+r.index+p+s);if(Math.min(o,s)%2){let y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}let h=g.slice(2,-2);return{type:"strong",raw:g,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,u=o,f=this.rules.inline.delRDelim;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==o))continue;if(r[3]||r[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let m=[...r[0]][0].length,p=e.slice(0,o+r.index+m+s),g=p.slice(o,-o);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},yo=class xg{constructor(t){Kt(this,"tokens");Kt(this,"options");Kt(this,"state");Kt(this,"inlineQueue");Kt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||la,this.options.tokenizer=this.options.tokenizer||new Xu,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:Er,block:lu.normal,inline:ns.normal};this.options.pedantic?(n.block=lu.pedantic,n.inline=ns.pedantic):this.options.gfm&&(n.block=lu.gfm,this.options.breaks?n.inline=ns.breaks:n.inline=ns.gfm),this.tokenizer.rules=n}static get rules(){return{block:lu,inline:ns}}static lex(t,n){return new xg(n).lex(t)}static lexInline(t,n){return new xg(n).inlineTokens(t)}lex(t){t=t.replace(Er.carriageReturn,`
472
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,l,s;for(this.options.pedantic&&(t=t.replace(Er.tabCharGlobal," ").replace(Er.spaceLine,""));t;){let u;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(m=>(u=m.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let m=n.at(-1);u.raw.length===1&&m!==void 0?m.raw+=`
473
+ `:n.push(u);continue}if(u=this.tokenizer.code(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
474
+ `)?"":`
475
+ `)+u.raw,m.text+=`
476
+ `+u.text,this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(u=this.tokenizer.fences(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.heading(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.hr(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.blockquote(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.list(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.html(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.def(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
477
+ `)?"":`
478
+ `)+u.raw,m.text+=`
479
+ `+u.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},n.push(u));continue}if(u=this.tokenizer.table(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.lheading(t)){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((s=this.options.extensions)!=null&&s.startBlock){let m=1/0,p=t.slice(1),g;this.options.extensions.startBlock.forEach(h=>{g=h.call({lexer:this},p),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(u=this.tokenizer.paragraph(f))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
480
+ `)?"":`
481
+ `)+u.raw,m.text+=`
482
+ `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u),r=f.length!==t.length,t=t.substring(u.raw.length);continue}if(u=this.tokenizer.text(t)){t=t.substring(u.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
483
+ `)?"":`
484
+ `)+u.raw,m.text+=`
485
+ `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(u);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var f,m,p,g,h;let r=t,o=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)y.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=o[2]?o[2].length:0,r=r.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},r))??r;let s=!1,u="";for(;t;){s||(u=""),s=!1;let y;if((g=(p=this.options.extensions)==null?void 0:p.inline)!=null&&g.some(C=>(y=C.call({lexer:this},t,n))?(t=t.substring(y.raw.length),n.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let C=n.at(-1);y.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.text+=y.text):n.push(y);continue}if(y=this.tokenizer.emStrong(t,r,u)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.del(t,r,u)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),n.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),n.push(y);continue}let S=t;if((h=this.options.extensions)!=null&&h.startInline){let C=1/0,b=t.slice(1),$;this.options.extensions.startInline.forEach(w=>{$=w.call({lexer:this},b),typeof $=="number"&&$>=0&&(C=Math.min(C,$))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(y=this.tokenizer.inlineText(S)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(u=y.raw.slice(-1)),s=!0;let C=n.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.text+=y.text):n.push(y);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return n}},Qu=class{constructor(e){Kt(this,"options");Kt(this,"parser");this.options=e||la}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(Er.notSpaceStart))==null?void 0:l[0],o=e.replace(Er.endingNewline,"")+`
486
+ `;return r?'<pre><code class="language-'+Yo(r)+'">'+(n?o:Yo(o,!0))+`</code></pre>
487
+ `:"<pre><code>"+(n?o:Yo(o,!0))+`</code></pre>
488
+ `}blockquote({tokens:e}){return`<blockquote>
489
+ ${this.parser.parse(e)}</blockquote>
490
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
491
+ `}hr(e){return`<hr>
492
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let u=e.items[s];r+=this.listitem(u)}let o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
493
+ `+r+"</"+o+`>
494
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
495
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
496
+ `}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];n="";for(let s=0;s<l.length;s++)n+=this.tablecell(l[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
497
+ <thead>
498
+ `+t+`</thead>
499
+ `+r+`</table>
500
+ `}tablerow({text:e}){return`<tr>
501
+ ${e}</tr>
502
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
503
+ `}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>${Yo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=oC(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+Yo(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=oC(e);if(o===null)return Yo(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Yo(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Yo(e.text)}},Nv=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}},bo=class wg{constructor(t){Kt(this,"options");Kt(this,"renderer");Kt(this,"textRenderer");this.options=t||la,this.options.renderer=this.options.renderer||new Qu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Nv}static parse(t,n){return new wg(n).parse(t)}static parseInline(t,n){return new wg(n).parseInline(t)}parse(t){var r,o;let n="";for(let l=0;l<t.length;l++){let s=t[l];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){let f=s,m=this.options.extensions.renderers[f.type].call({parser:this},f);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=m||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,n=this.renderer){var o,l;let r="";for(let s=0;s<t.length;s++){let u=t[s];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[u.type]){let m=this.options.extensions.renderers[u.type].call({parser:this},u);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=m||"";continue}}let f=u;switch(f.type){case"escape":{r+=n.text(f);break}case"html":{r+=n.html(f);break}case"link":{r+=n.link(f);break}case"image":{r+=n.image(f);break}case"checkbox":{r+=n.checkbox(f);break}case"strong":{r+=n.strong(f);break}case"em":{r+=n.em(f);break}case"codespan":{r+=n.codespan(f);break}case"br":{r+=n.br(f);break}case"del":{r+=n.del(f);break}case"text":{r+=n.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},uu,ss=(uu=class{constructor(e){Kt(this,"options");Kt(this,"block");this.options=e||la}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?yo.lex:yo.lexInline}provideParser(){return this.block?bo.parse:bo.parseInline}},Kt(uu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Kt(uu,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),uu),ML=class{constructor(...e){Kt(this,"defaults",Rv());Kt(this,"options",this.setOptions);Kt(this,"parse",this.parseMarkdown(!0));Kt(this,"parseInline",this.parseMarkdown(!1));Kt(this,"Parser",bo);Kt(this,"Renderer",Qu);Kt(this,"TextRenderer",Nv);Kt(this,"Lexer",yo);Kt(this,"Tokenizer",Xu);Kt(this,"Hooks",ss);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let s=l;for(let u of s.header)n=n.concat(this.walkTokens(u.tokens,t));for(let u of s.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,t));break}case"list":{let s=l;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=l;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{let f=s[u].flat(1/0);n=n.concat(this.walkTokens(f,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...s){let u=o.renderer.apply(this,s);return u===!1&&(u=l.apply(this,s)),u}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new Qu(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,u=n.renderer[s],f=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Xu(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,u=n.tokenizer[s],f=o[s];o[s]=(...m)=>{let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new ss;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,u=n.hooks[s],f=o[s];ss.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&ss.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(o,m);return f.call(o,g)})();let p=u.call(o,m);return f.call(o,p)}:o[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(o,m);return g===!1&&(g=await f.apply(o,m)),g})();let p=u.apply(o,m);return p===!1&&(p=f.apply(o,m)),p}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(s){let u=[];return u.push(l.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return yo.lex(e,t??this.defaults)}parser(e,t){return bo.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(t):t,u=await(o.hooks?await o.hooks.provideLexer():e?yo.lex:yo.lexInline)(s,o),f=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(f,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?bo.parse:bo.parseInline)(f,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let s=(o.hooks?o.hooks.provideLexer():e?yo.lex:yo.lexInline)(t,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():e?bo.parse:bo.parseInline)(s,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(s){return l(s)}}}onError(e,t){return n=>{if(n.message+=`
504
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Yo(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},oa=new ML;function hn(e,t){return oa.parse(e,t)}hn.options=hn.setOptions=function(e){return oa.setOptions(e),hn.defaults=oa.defaults,g2(hn.defaults),hn};hn.getDefaults=Rv;hn.defaults=la;hn.use=function(...e){return oa.use(...e),hn.defaults=oa.defaults,g2(hn.defaults),hn};hn.walkTokens=function(e,t){return oa.walkTokens(e,t)};hn.parseInline=oa.parseInline;hn.Parser=bo;hn.parser=bo.parse;hn.Renderer=Qu;hn.TextRenderer=Nv;hn.Lexer=yo;hn.lexer=yo.lex;hn.Tokenizer=Xu;hn.Hooks=ss;hn.parse=hn;hn.options;hn.setOptions;hn.use;hn.walkTokens;hn.parseInline;bo.parse;yo.lex;function jL(e){if(!e)return"";try{return hn.parse(e,{breaks:!0})}catch{return kL(e)}}function kL(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}const NL=["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 _L(e){if(!e)return{segments:[]};const t=new RegExp("<("+NL.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const l=e.slice(r,o.index).trim();l&&n.push({type:"text",content:l})}n.push({type:"system-tag",tag:o[1],content:o[2].trim()}),r=o.index+o[0].length}if(r<e.length){const l=e.slice(r).trim();l&&n.push({type:"text",content:l})}return{segments:n}}function zL(e){const{segments:t}=_L(e);return t.length===0?{segments:[]}:{segments:t}}const{Text:lC}=Ao;function LL({file_path:e,old_string:t,new_string:n}){const[r,o]=c.useState(!1),l=t.split(`
505
+ `),s=n.split(`
506
+ `),u=[];return l.forEach(f=>{u.push({type:"del",text:f})}),s.forEach(f=>{u.push({type:"add",text:f})}),G.jsxs("div",{className:"diff-view",style:{margin:"6px 0"},children:[G.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[G.jsxs(lC,{style:{color:"#a78bfa",fontSize:12,fontWeight:600},children:["Edit: ",e]}),G.jsx(lC,{style:{color:"#6b7280",fontSize:11,cursor:"pointer",userSelect:"none"},onClick:()=>o(f=>!f),children:Ft(r?"ui.expand":"ui.collapse")})]}),!r&&G.jsx("pre",{style:{margin:0,fontSize:12,lineHeight:1.5,overflow:"auto"},children:u.map((f,m)=>G.jsxs("div",{className:f.type==="del"?"diff-line-del":"diff-line-add",children:[f.type==="del"?"- ":"+ ",f.text]},m))})]})}const{Text:fp}=Ao,qa={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",css:"css",scss:"css",less:"css",html:"html",htm:"html",xml:"xml",svg:"xml",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"shell",bash:"shell",zsh:"shell",md:"markdown",sql:"sql"},BL=["Read","Grep","Glob","Bash","Write","Edit"];function AL(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(qa[o])return qa[o]}if(e==="Bash")return"shell-output";if(e==="Glob")return"file-list";if(e==="Grep"){const o=t.glob||"";if(o){const l=o.replace(/[{}*]/g,",").split(",").filter(Boolean);for(const s of l){const u=s.replace(/^\./,"").toLowerCase();if(qa[u])return qa[u]}}if(t.output_mode==="files_with_matches"||!t.output_mode)return"file-list";if(t.output_mode==="content"&&n){const l=n.match(/^[\w/.~-]+\.([\w]+):\d+/m);if(l&&qa[l[1].toLowerCase()])return qa[l[1].toLowerCase()]}return"shell-output"}return n?FL(n):null}function FL(e){const t=e.substring(0,2e3);return/^\s*[\[{]/.test(t)&&/[}\]]\s*$/.test(t.trimEnd())?"json":/^\s*<!DOCTYPE|^\s*<html|^\s*<\?xml/i.test(t)?"html":/^#!.*python/m.test(t)||/\bdef\s+\w+\s*\(.*\)\s*:/m.test(t)||/\bclass\s+\w+.*:/m.test(t)||/^\s*(from\s+\w+\s+import|import\s+\w+)/m.test(t)&&/:$/.test(t)?"python":/\bfn\s+\w+\s*\(/.test(t)&&/\blet\s+(mut\s+)?\w+/.test(t)?"rust":/^package\s+\w+/m.test(t)&&/\bfunc\s+/.test(t)?"go":/\bpublic\s+(class|interface|static)\b/.test(t)?"java":/\bdef\s+\w+/.test(t)&&/\bend\b/.test(t)&&!/;/.test(t)?"ruby":/^#!.*\b(bash|sh|zsh)\b/m.test(t)?"shell":/\b(const|let|var)\s+\w+\s*=/.test(t)&&(/=>/.test(t)||/\brequire\s*\(/.test(t))||/^\s*import\s+.*\s+from\s+['"]/.test(t)||/^\s*export\s+(default\s+)?(function|class|const)\b/m.test(t)?"javascript":/[.#][\w-]+\s*\{[\s\S]*?:\s*[\w#]/.test(t)?"css":/^[\w-]+\s*:(\s+\S|$)/m.test(t)&&!/[{;]/.test(t)?"yaml":/\b(SELECT|INSERT|UPDATE|DELETE|CREATE\s+TABLE)\b/i.test(t)?"sql":null}const DL={javascript:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(const|let|var|function|return|if|else|for|while|class|import|export|from|default|new|this|async|await|try|catch|throw|switch|case|break|continue|typeof|instanceof|in|of|null|undefined|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],typescript:null,python:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('''[\s\S]*?'''|"""[\s\S]*?"""|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|class|return|if|elif|else|for|while|import|from|as|try|except|finally|raise|with|yield|lambda|pass|break|continue|and|or|not|in|is|None|True|False|self|async|await)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],go:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`[^`]*`)/g,cls:"hl-string"},{pattern:/\b(func|return|if|else|for|range|switch|case|default|break|continue|go|defer|select|chan|map|struct|interface|package|import|var|const|type|nil|true|false|make|new|append|len|cap)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],rust:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(fn|let|mut|return|if|else|for|while|loop|match|struct|enum|impl|trait|pub|use|mod|crate|self|super|where|async|await|move|ref|true|false|Some|None|Ok|Err)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],java:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(public|private|protected|class|interface|extends|implements|return|if|else|for|while|switch|case|break|continue|new|this|super|static|final|void|int|long|double|float|boolean|char|String|import|package|try|catch|throw|throws|null|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*[fFdDlL]?)\b/g,cls:"hl-number"}],ruby:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|end|class|module|return|if|elsif|else|unless|for|while|do|begin|rescue|ensure|raise|yield|block_given\?|nil|true|false|self|require|include|attr_accessor|attr_reader)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],css:[{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/([.#][\w-]+)/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*(px|em|rem|%|vh|vw|s|ms)?)\b/g,cls:"hl-number"}],json:[{pattern:/("(?:[^"\\]|\\.)*")\s*:/g,cls:"hl-keyword"},{pattern:/:\s*("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(true|false|null)\b/g,cls:"hl-keyword"},{pattern:/\b(-?\d+\.?\d*([eE][+-]?\d+)?)\b/g,cls:"hl-number"}],shell:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(if|then|else|elif|fi|for|while|do|done|case|esac|function|return|exit|export|source|alias|cd|ls|grep|find|echo|cat|mkdir|rm|cp|mv|chmod|sudo|apt|npm|pip|git)\b/g,cls:"hl-keyword"}],sql:[{pattern:/(--.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/\b(SELECT|FROM|WHERE|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER|TABLE|INDEX|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AND|OR|NOT|IN|IS|NULL|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|UNION|SET|VALUES|INTO|DISTINCT|COUNT|SUM|AVG|MAX|MIN|LIKE|BETWEEN|EXISTS|CASE|WHEN|THEN|ELSE|END)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],html:[{pattern:/(<!--[\s\S]*?-->)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/(<\/?[\w-]+|\/?>)/g,cls:"hl-keyword"}],xml:null,yaml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*:/gm,cls:"hl-keyword"},{pattern:/\b(true|false|null|yes|no)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],markdown:[{pattern:/^(#{1,6}\s.*$)/gm,cls:"hl-keyword"},{pattern:/(`[^`]+`)/g,cls:"hl-string"},{pattern:/(\*\*[^*]+\*\*|__[^_]+__)/g,cls:"hl-keyword"},{pattern:/(\[[^\]]+\]\([^)]+\))/g,cls:"hl-string"}],toml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*=/gm,cls:"hl-keyword"},{pattern:/(\[[\w.-]+\])/g,cls:"hl-keyword"},{pattern:/\b(true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}]},HL=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],VL=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],WL=[{pattern:/^(.*\.(jsx?|tsx?|mjs|cjs))$/gm,cls:"hl-string"},{pattern:/^(.*\.(py|rb|go|rs|java|c|cpp|h))$/gm,cls:"hl-keyword"},{pattern:/^(.*\.(json|ya?ml|toml|xml|html?|css|scss|less|md))$/gm,cls:"hl-number"},{pattern:/^(.*\.(log|txt|csv|jsonl))$/gm,cls:"hl-comment"}];function sC(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function UL(e,t){let n=t;n==="typescript"&&(n="javascript"),n==="xml"&&(n="html"),(n==="c"||n==="cpp")&&(n="javascript");let r;n==="shell-output"?r=VL:n==="file-list"?r=WL:r=DL[n]||HL;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,p=>{const g=l.length;return l.push(p),`L${g}`});const u=sC(s),f=[];let m=u;for(const p of r)p.pattern.lastIndex=0,m=m.replace(p.pattern,g=>{const h=f.length;return f.push(`<span class="${p.cls}">${g}</span>`),`P${h}`});return m=m.replace(/\x02P(\d+)\x02/g,(p,g)=>f[parseInt(g)]),m=m.replace(/\x01L(\d+)\x01/g,(p,g)=>`<span class="hl-linenum">${sC(l[parseInt(g)])}</span>`),m}function cC({toolName:e,toolInput:t,resultText:n}){const[r,o]=c.useState(!1),l=BL.includes(e),s=l?AL(e,t,n):null,u=n.length>5e3?n.substring(0,5e3)+`
507
+ ... (truncated)`:n;let f=e?Ft("ui.toolReturnNamed",{name:e}):"Result";if(t){const p=t.file_path||t.path||"";if(p){const g=p.split("/");f=`${e}: ${g[g.length-1]}`}}if(!l)return G.jsxs("div",{style:{background:"#111",borderRadius:6,padding:"8px 12px",fontSize:12},children:[G.jsx(fp,{type:"secondary",style:{fontSize:11,display:"block",marginBottom:4},children:f}),G.jsx("pre",{style:{color:"#d1d5db",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-all",fontSize:12},children:u})]});const m=UL(u,s||"fallback");return G.jsxs("div",{className:"tool-result-code",style:{background:"#0d1117",borderRadius:6,border:"1px solid #1e2a3a",overflow:"hidden"},children:[G.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 10px",background:"#161b22",borderBottom:"1px solid #1e2a3a"},children:[G.jsxs(fp,{style:{fontSize:11,color:"#8b949e"},children:[f,s?` (${s})`:""]}),G.jsx(fp,{style:{fontSize:11,color:"#484f58",cursor:"pointer",userSelect:"none"},onClick:()=>o(p=>!p),children:Ft(r?"ui.expand":"ui.collapse")})]}),!r&&G.jsx("pre",{className:"code-highlight",style:{margin:0,padding:"8px 12px",fontSize:12,lineHeight:1.5,overflow:"auto",maxHeight:500},dangerouslySetInnerHTML:{__html:m}})]})}const{Text:Ga}=Ao,su={width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},cu={borderRadius:12,padding:"10px 14px",maxWidth:"100%",fontSize:14,lineHeight:1.6,wordBreak:"break-word"};class Ka extends Y.Component{formatTime(t){if(!t)return null;try{const n=new Date(t),r=o=>String(o).padStart(2,"0");return`${r(n.getMonth()+1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}:${r(n.getSeconds())}`}catch{return null}}renderLabel(t,n){const{timestamp:r}=this.props,o=this.formatTime(r);return G.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:2},children:[G.jsxs(Ga,{type:"secondary",style:{fontSize:11},children:[t,n||""]}),o&&G.jsx(Ga,{style:{fontSize:10,color:"#6b7280",flexShrink:0,marginLeft:8},children:o})]})}renderSegments(t){return t.map((n,r)=>n.type==="system-tag"?G.jsx(na,{ghost:!0,size:"small",items:[{key:"1",label:G.jsx(Ga,{type:"secondary",style:{fontSize:12},children:n.tag}),children:G.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:n.content})}],style:{margin:"4px 0"}},r):G.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:jL(n.content)}},r))}renderToolCall(t){if(typeof t.input=="string")try{const m=t.input.replace(/^\[object Object\]/,"");t={...t,input:JSON.parse(m)}}catch{}if(t.name==="Edit"&&t.input&&t.input.old_string!=null&&t.input.new_string!=null)return G.jsx(LL,{file_path:t.input.file_path||"",old_string:t.input.old_string,new_string:t.input.new_string},t.id);const n=t.input&&typeof t.input=="object"?t.input:{},r=(m,p)=>G.jsxs("div",{style:{background:"#1a1a2e",border:"1px solid #2a2a3e",borderRadius:8,padding:"8px 12px",margin:"6px 0",fontSize:12},children:[G.jsx(Ga,{strong:!0,style:{color:"#a78bfa"},children:m}),p]},t.id),o=(m,p)=>G.jsx("pre",{style:{color:p,fontSize:12,margin:"4px 0 0",whiteSpace:"pre-wrap",wordBreak:"break-all",background:"#0d1117",borderRadius:4,padding:"6px 8px"},children:m}),l=m=>G.jsx("span",{style:{color:"#7dd3fc",fontSize:11},children:m});if(t.name==="Bash"){const m=n.command||"",p=n.description||"";return r(G.jsxs(G.Fragment,{children:["Bash",p?G.jsxs("span",{style:{color:"#6b7280",fontWeight:400},children:[" — ",p]}):""]}),o(m,"#c9d1d9"))}if(t.name==="Read"){const m=n.file_path||"",p=[];n.offset&&p.push(`offset: ${n.offset}`),n.limit&&p.push(`limit: ${n.limit}`);const g=p.length?` (${p.join(", ")})`:"";return r(G.jsxs(G.Fragment,{children:["Read: ",l(m),G.jsx("span",{style:{color:"#6b7280"},children:g})]}),null)}if(t.name==="Write"){const m=n.file_path||"",p=n.content||"",g=p.split(`
508
+ `),h=g.length>20?g.slice(0,20).join(`
509
+ `)+`
510
+ ... (${g.length} lines total)`:p;return r(G.jsxs(G.Fragment,{children:["Write: ",l(m)," ",G.jsxs("span",{style:{color:"#6b7280"},children:["(",g.length," lines)"]})]}),o(h,"#c9d1d9"))}if(t.name==="Glob"){const m=n.pattern||"",p=n.path||"";return r(G.jsxs(G.Fragment,{children:["Glob: ",G.jsx("span",{style:{color:"#fbbf24"},children:m}),p?G.jsxs("span",{style:{color:"#6b7280"},children:[" in ",p]}):""]}),null)}if(t.name==="Grep"){const m=n.pattern||"",p=n.path||"",g=[];n.glob&&g.push(`glob: ${n.glob}`),n.output_mode&&g.push(`mode: ${n.output_mode}`),n.head_limit&&g.push(`limit: ${n.head_limit}`);const h=g.length?` (${g.join(", ")})`:"";return r(G.jsxs(G.Fragment,{children:["Grep: ",G.jsxs("span",{style:{color:"#fbbf24"},children:["/",m,"/"]}),p?G.jsxs("span",{style:{color:"#6b7280"},children:[" in ",p]}):"",G.jsx("span",{style:{color:"#6b7280"},children:h})]}),null)}if(t.name==="Task"){const m=n.subagent_type||"",p=n.description||"";return r(G.jsxs(G.Fragment,{children:["Task(",m,p?": "+p:"",")"]}),null)}let s=t.name;const u=Object.keys(n);if(u.length===0)return r(s,null);const f=u.map(m=>{const p=n[m],g=typeof p=="string"?p:JSON.stringify(p),h=g.length>200?g.substring(0,200)+"...":g;return G.jsxs("div",{style:{margin:"2px 0"},children:[G.jsxs("span",{style:{color:"#7dd3fc"},children:[m,": "]}),G.jsx("span",{style:{color:"#9ca3af"},children:h})]},m)});return r(s,G.jsx("div",{style:{marginTop:4,fontSize:11},children:f}))}renderUserMessage(){const{text:t}=this.props;return G.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[G.jsx("div",{style:{...su,background:"#1e40af"},dangerouslySetInnerHTML:{__html:ls("user")}}),G.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel("User"),G.jsx("div",{style:{...cu,background:"#1e3a5f",color:"#e5e7eb"},children:Z9(t)})]})]})}renderToolResult(t){return t?G.jsxs("div",{style:{background:"#111827",border:"1px solid #1e293b",borderRadius:6,padding:"6px 10px",margin:"2px 0 6px",fontSize:11},children:[G.jsx(Ga,{type:"secondary",style:{fontSize:11},children:t.label}),G.jsx(cC,{toolName:t.toolName,toolInput:t.toolInput,resultText:t.resultText})]}):null}renderAssistantMessage(){const{content:t,toolResultMap:n={},modelInfo:r}=this.props,o=t.filter(f=>f.type==="thinking"),l=t.filter(f=>f.type==="text"),s=t.filter(f=>f.type==="tool_use");let u=[];return o.forEach((f,m)=>{u.push(G.jsx(na,{ghost:!0,size:"small",items:[{key:"1",label:G.jsx(Ga,{type:"secondary",style:{fontSize:12},children:"思考过程"}),children:G.jsx("pre",{style:{fontSize:12,color:"#9ca3af",whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:f.thinking||""})}],style:{margin:"4px 0"}},`think-${m}`))}),l.forEach((f,m)=>{if(f.text){const{segments:p}=zL(f.text);u.push(G.jsx("div",{children:this.renderSegments(p)},`text-${m}`))}}),s.forEach(f=>{u.push(this.renderToolCall(f));const m=n[f.id];m&&u.push(G.jsx(Y.Fragment,{children:this.renderToolResult(m)},`tr-${f.id}`))}),u.length===0?null:G.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[G.jsx("div",{style:{...su,background:(r==null?void 0:r.color)||"#065f46"},dangerouslySetInnerHTML:{__html:(r==null?void 0:r.svg)||ls("agent")}}),G.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel((r==null?void 0:r.name)||"MainAgent"),G.jsx("div",{style:{...cu,background:"#1a2332",color:"#e5e7eb"},children:u})]})]})}renderSubAgentMessage(){const{label:t,resultText:n,toolName:r,toolInput:o}=this.props;return G.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0"},children:[G.jsx("div",{style:{...su,background:"#4a1d96"},dangerouslySetInnerHTML:{__html:ls("sub")}}),G.jsxs("div",{style:{minWidth:0,flex:1},children:[this.renderLabel(t),G.jsx("div",{style:{...cu,background:"#1a1a2e",color:"#e5e7eb"},children:G.jsx(cC,{toolName:r,toolInput:o,resultText:n})})]})]})}renderUserSelectionMessage(){const{questions:t,answers:n}=this.props;return G.jsxs("div",{style:{display:"flex",gap:10,padding:"8px 0",justifyContent:"flex-end"},children:[G.jsxs("div",{style:{minWidth:0,maxWidth:"85%"},children:[this.renderLabel("User"," — 选择"),G.jsx("div",{style:{...cu,background:"#1a3a1a",color:"#e5e7eb"},children:t&&t.map((r,o)=>{const l=(n==null?void 0:n[r.question])||"未选择";return G.jsxs("div",{style:{marginBottom:o<t.length-1?10:0},children:[G.jsx("div",{style:{fontSize:13,color:"#ccc",marginBottom:4},children:r.question}),G.jsx("div",{style:{paddingLeft:8},children:r.options&&r.options.map((s,u)=>{const f=l===s.label;return G.jsxs("div",{style:{fontSize:12,padding:"1px 0",color:f?"#e5e5e5":"#666",fontWeight:f?600:"normal"},children:[f?"● ":"○ ",s.label,s.description&&G.jsxs("span",{style:{color:"#555",marginLeft:6,fontWeight:"normal"},children:["— ",s.description]})]},u)})})]},o)})})]}),G.jsx("div",{style:{...su,background:"#2ea043"},dangerouslySetInnerHTML:{__html:ls("user")}})]})}render(){const{role:t}=this.props;return t==="user"?this.renderUserMessage():t==="user-selection"?this.renderUserSelectionMessage():t==="assistant"?this.renderAssistantMessage():t==="sub-agent"?this.renderSubAgentMessage():null}}const{Text:uC}=Ao,qL=20;function GL(){return 1e3+Math.random()*500}class KL extends Y.Component{constructor(t){super(t),this.containerRef=Y.createRef(),this.state={visibleCount:0,loading:!1,allItems:[]},this._queueTimer=null,this._prevItemsLen=0}componentDidMount(){this.startRender()}componentDidUpdate(t){t.mainAgentSessions!==this.props.mainAgentSessions&&this.startRender()}componentWillUnmount(){this._queueTimer&&clearTimeout(this._queueTimer)}startRender(){this._queueTimer&&clearTimeout(this._queueTimer);const t=this.buildAllItems(),n=this._prevItemsLen;this._prevItemsLen=t.length;const r=t.length-n;if(r<=0||n>0&&r<=3){this.setState({allItems:t,visibleCount:t.length,loading:!1},()=>this.scrollToBottom());return}if(t.length>qL)this.setState({allItems:t,visibleCount:0,loading:!0}),this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t.length,loading:!1},()=>this.scrollToBottom())},300);else{const o=Math.max(0,n);this.setState({allItems:t,visibleCount:o,loading:!1}),this.queueNext(o,t.length)}}queueNext(t,n){t>=n||(this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t+1},()=>{this.scrollToBottom(),this.queueNext(t+1,n)})},GL()))}scrollToBottom(){const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}renderSessionMessages(t,n,r,o){var f;const l={};for(const m of t)if(m.role==="assistant"&&Array.isArray(m.content))for(const p of m.content)p.type==="tool_use"&&(l[p.id]=p);const s={};for(const m of t)if(m.role==="user"&&Array.isArray(m.content)){for(const p of m.content)if(p.type==="tool_result"){const g=l[p.tool_use_id];let h=Ft("ui.toolReturn"),y=null,S=null;if(g)if(y=g.name,S=g.input,g.name==="Task"&&g.input){const C=g.input.subagent_type||"",b=g.input.description||"";h=`SubAgent: ${C}${b?" — "+b:""}`}else h=Ft("ui.toolReturnNamed",{name:g.name});s[p.tool_use_id]={label:h,toolName:y,toolInput:S,resultText:J1(p)}}}const u=[];for(let m=0;m<t.length;m++){const p=t[m],g=p.content,h=r&&r[m]?r[m]:null;if(p.role==="user")if(Array.isArray(g)){const y=g.find(C=>C.type==="text"&&/^\[SUGGESTION MODE:/i.test((C.text||"").trim())),S=g.filter(C=>C.type==="tool_result");if(y&&S.length>0){let C=null,b={};for(const $ of S){const w=l[$.tool_use_id];if(w&&w.name==="AskUserQuestion"&&((f=w.input)!=null&&f.questions)){C=w.input.questions;const R=J1($);try{b=JSON.parse(R).answers||{}}catch{}break}}C&&u.push(G.jsx(Ka,{role:"user-selection",questions:C,answers:b,timestamp:h},`${n}-selection-${m}`))}else{const C=g.filter(b=>b.type==="text"&&!Uu(b.text));for(let b=0;b<C.length;b++)u.push(G.jsx(Ka,{role:"user",text:C[b].text,timestamp:h},`${n}-user-${m}-${b}`))}}else typeof g=="string"&&!Uu(g)&&u.push(G.jsx(Ka,{role:"user",text:g,timestamp:h},`${n}-user-${m}`));else p.role==="assistant"&&(Array.isArray(g)?u.push(G.jsx(Ka,{role:"assistant",content:g,toolResultMap:s,timestamp:h,modelInfo:o},`${n}-asst-${m}`)):typeof g=="string"&&u.push(G.jsx(Ka,{role:"assistant",content:[{type:"text",text:g}],toolResultMap:s,timestamp:h,modelInfo:o},`${n}-asst-${m}`)))}return u}buildAllItems(){var s;const{mainAgentSessions:t,requests:n}=this.props;if(!t||t.length===0)return[];let r=null;if(n){for(let u=n.length-1;u>=0;u--)if(n[u].mainAgent&&((s=n[u].body)!=null&&s.model)){r=n[u].body.model;break}}const o=ez(r),l=[];return t.forEach((u,f)=>{var m,p;if(f>0&&l.push(G.jsx(k1,{style:{borderColor:"#333",margin:"16px 0"},children:G.jsx(uC,{style:{fontSize:11,color:"#555"},children:"Session"})},`session-div-${f}`)),l.push(...this.renderSessionMessages(u.messages,`s${f}`,u.msgTimestamps,o)),f===t.length-1&&((p=(m=u.response)==null?void 0:m.body)!=null&&p.content)){const g=u.response.body.content;Array.isArray(g)&&(l.push(G.jsx(Y.Fragment,{children:G.jsx(k1,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:G.jsx(uC,{type:"secondary",style:{fontSize:11},children:Ft("ui.lastResponse")})})},"resp-divider")),l.push(G.jsx(Ka,{role:"assistant",content:g,modelInfo:o},"resp-asst")))}}),l}render(){const{mainAgentSessions:t}=this.props,{allItems:n,visibleCount:r,loading:o}=this.state;return!t||t.length===0?G.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:G.jsx(Co,{description:Ft("ui.noChat")})}):o?G.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:G.jsx(Nd,{size:"large"})}):G.jsx("div",{ref:this.containerRef,style:{height:"100%",overflow:"auto",padding:"16px 24px",display:"flex",flexDirection:"column"},children:n.slice(0,r)})}}class XL extends Y.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 G.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 QL=`
511
+ .chat-md pre {
512
+ background: #0d1117;
513
+ border: 1px solid #2a2a2a;
514
+ border-radius: 6px;
515
+ padding: 12px;
516
+ overflow-x: auto;
517
+ font-size: 13px;
518
+ line-height: 1.5;
519
+ }
520
+ .chat-md code {
521
+ background: #1a1a2e;
522
+ padding: 2px 6px;
523
+ border-radius: 4px;
524
+ font-size: 13px;
525
+ color: #e5e7eb;
526
+ }
527
+ .chat-md pre code {
528
+ background: none;
529
+ padding: 0;
530
+ }
531
+ .chat-md p { margin: 6px 0; }
532
+ .chat-md ul, .chat-md ol { padding-left: 20px; margin: 6px 0; }
533
+ .chat-md li { margin: 2px 0; }
534
+ .chat-md h1, .chat-md h2, .chat-md h3 { margin: 12px 0 6px 0; color: #fff; }
535
+ .chat-md h1 { font-size: 1.3em; }
536
+ .chat-md h2 { font-size: 1.15em; }
537
+ .chat-md h3 { font-size: 1.05em; }
538
+ .chat-md blockquote {
539
+ border-left: 3px solid #3b82f6;
540
+ margin: 8px 0;
541
+ padding: 4px 12px;
542
+ color: #9ca3af;
543
+ }
544
+ .chat-md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
545
+ .chat-md th, .chat-md td { border: 1px solid #2a2a2a; padding: 6px 10px; }
546
+ .chat-md th { background: #1a1a1a; color: #fff; }
547
+ .chat-md a { color: #60a5fa; }
548
+ .chat-md hr { border: none; border-top: 1px solid #2a2a2a; margin: 12px 0; }
549
+ .chat-md strong { color: #f1f5f9; }
550
+ .chat-md em { color: #cbd5e1; }
551
+ `;class YL extends Y.Component{constructor(n){super(n);Kt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n})});Kt(this,"handleToggleViewMode",()=>{this.setState(n=>({viewMode:n.viewMode==="raw"?"chat":"raw"}))});Kt(this,"handleLangChange",()=>{this.setState({lang:qu()})});Kt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Kt(this,"handleResize",n=>{const r=this.mainContainerRef.current;if(!r)return;const o=r.getBoundingClientRect(),l=n-o.left;l>=250&&l<=800&&this.setState({leftPanelWidth:l})});Kt(this,"handleImportLocalLogs",()=>{this.setState({importModalVisible:!0,localLogsLoading:!0}),fetch("/api/local-logs").then(n=>n.json()).then(n=>{this.setState({localLogs:n,localLogsLoading:!1})}).catch(()=>{this.setState({localLogs:{},localLogsLoading:!1})})});Kt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1})});Kt(this,"handleOpenLogFile",n=>{const r=window.location.port||window.location.host.split(":")[1]||"7008";window.open(`${window.location.protocol}//${window.location.hostname}:${r}?logfile=${encodeURIComponent(n)}`,"_blank"),this.setState({importModalVisible:!1})});this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:null,cacheType:null,leftPanelWidth:380,mainAgentSessions:[],importModalVisible:!1,localLogs:{},localLogsLoading:!1,showAll:!1,lang:qu()},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=Y.createRef()}componentDidMount(){fetch("/api/show-all").then(o=>o.json()).then(o=>this.setState({showAll:!!o.showAll})).catch(()=>{});const r=new URLSearchParams(window.location.search).get("logfile");r?this.loadLocalLogFile(r):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)}}loadLocalLogFile(n){this._isLocalLog=!0,this._localLogFile=n,fetch(`/api/local-log?file=${encodeURIComponent(n)}`).then(r=>r.json()).then(r=>{if(Array.isArray(r)){let o=[];for(const s of r)s.mainAgent&&s.body&&Array.isArray(s.body.messages)&&(o=this.mergeMainAgentSessions(o,s));const l=r.filter(s=>!s.isHeartbeat&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));this.setState({requests:r,selectedIndex:l.length>0?l.length-1:null,mainAgentSessions:o})}}).catch(r=>console.error("加载日志文件失败:",r))}handleEventMessage(n){try{const r=JSON.parse(n.data);this.setState(o=>{var g,h;const l=[...o.requests],s=l.findIndex(y=>y.timestamp===r.timestamp&&y.url===r.url);s>=0?l[s]=r:l.push(r);let u=o.cacheExpireAt,f=o.cacheType;if(r.mainAgent){const y=(h=(g=r.response)==null?void 0:g.body)==null?void 0:h.usage;if(y!=null&&y.cache_creation){const S=y.cache_creation;S.ephemeral_1h_input_tokens>0?(u=Date.now()+3600*1e3,f="1h"):S.ephemeral_5m_input_tokens>0&&(u=Date.now()+300*1e3,f="5m")}}let m=o.mainAgentSessions;return r.mainAgent&&r.body&&Array.isArray(r.body.messages)&&(m=this.mergeMainAgentSessions(o.mainAgentSessions,r)),o.selectedIndex===null&&l.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(y=>{if(y.selectedIndex===null&&y.requests.length>0){const S=y.showAll?y.requests:y.requests.filter(C=>!C.isHeartbeat&&!/\/api\/eval\/sdk-/.test(C.url||"")&&!/\/messages\/count_tokens/.test(C.url||""));return S.length>0?{selectedIndex:S.length-1}:null}return null})},200)),{requests:l,cacheExpireAt:u,cacheType:f,mainAgentSessions:m}})}catch(r){console.error("处理事件消息失败:",r)}}mergeMainAgentSessions(n,r){var g;const o=r.body.messages,l=r.response,s=((g=r.body.metadata)==null?void 0:g.user_id)||null,u=r.timestamp||new Date().toISOString();if(n.length===0){const h=o.map(()=>u);return[{userId:s,messages:o,response:l,msgTimestamps:h}]}const f=n[n.length-1],m=f.messages?f.messages.length:0,p=m>0&&o.length<m*.5&&m-o.length>4;if(s&&s===f.userId&&!p){const h=f.msgTimestamps||[],y=f.messages||[],S=o.map((b,$)=>{if($>=h.length)return u;const w=y[$];if(w&&b.role==="user"&&w.role==="user"){const R=JSON.stringify(w.content),O=JSON.stringify(b.content);if(R!==O)return u}return h[$]}),C=[...n];return C[C.length-1]={userId:s,messages:o,response:l,msgTimestamps:S},C}else{const h=o.map(()=>u);return[...n,{userId:s,messages:o,response:l,msgTimestamps:h}]}}formatTimestamp(n){return!n||n.length<15?n:`${n.slice(0,4)}-${n.slice(4,6)}-${n.slice(6,8)} ${n.slice(9,11)}:${n.slice(11,13)}:${n.slice(13,15)}`}formatSize(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/(1024*1024)).toFixed(1)+" MB"}render(){const{requests:n,selectedIndex:r,viewMode:o,currentTab:l,cacheExpireAt:s,cacheType:u,leftPanelWidth:f,mainAgentSessions:m,showAll:p}=this.state,g=p?n:n.filter(y=>!y.isHeartbeat&&!/\/api\/eval\/sdk-/.test(y.url||"")&&!/\/messages\/count_tokens/.test(y.url||"")),h=r!==null?g[r]:null;return G.jsxs(Bo,{theme:{algorithm:H_.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[G.jsx("style",{children:QL}),G.jsxs(Ii,{style:{height:"100vh",overflow:"hidden"},children:[G.jsx(Ii.Header,{style:{background:"#111",borderBottom:"1px solid #1f1f1f",padding:"0 24px",height:60,lineHeight:"60px"},children:G.jsx(fs,{requestCount:g.length,requests:g,viewMode:o,cacheExpireAt:s,cacheType:u,onToggleViewMode:this.handleToggleViewMode,onLangChange:this.handleLangChange,onImportLocalLogs:this.handleImportLocalLogs,isLocalLog:!!this._isLocalLog,localLogFile:this._localLogFile})}),G.jsx(Ii.Content,{style:{flex:1,overflow:"hidden"},children:o==="raw"?G.jsxs("div",{ref:this.mainContainerRef,style:{display:"flex",height:"100%"},children:[G.jsxs("div",{style:{width:f,flexShrink:0,borderRight:"1px solid #1f1f1f",display:"flex",flexDirection:"column",background:"#0a0a0a"},children:[G.jsxs("div",{style:{padding:"10px 16px",borderBottom:"1px solid #1f1f1f",fontSize:13,color:"#9ca3af",fontWeight:500,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[G.jsx("span",{children:Ft("ui.requestList")}),G.jsx("span",{style:{fontSize:12,color:"#555",fontWeight:400},children:Ft("ui.totalRequests",{count:g.length})})]}),G.jsx("div",{style:{flex:1,overflow:"hidden"},children:G.jsx(Ez,{requests:g,selectedIndex:r,onSelect:this.handleSelectRequest})})]}),G.jsx(XL,{onResize:this.handleResize}),G.jsx("div",{style:{flex:1,overflow:"hidden",background:"#0d0d0d"},children:G.jsx(Hz,{request:h,currentTab:l,onTabChange:this.handleTabChange})})]}):G.jsx(KL,{requests:g,mainAgentSessions:m})})]}),G.jsx(lo,{title:Ft("ui.importLocalLogs"),open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:600,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:this.state.localLogsLoading?G.jsx("div",{style:{textAlign:"center",padding:40},children:G.jsx(Nd,{})}):Object.keys(this.state.localLogs).length===0?G.jsx("div",{style:{textAlign:"center",color:"#999",padding:40},children:Ft("ui.noLogs")}):G.jsx(na,{defaultActiveKey:Object.keys(this.state.localLogs),items:Object.entries(this.state.localLogs).map(([y,S])=>({key:y,label:G.jsxs("span",{children:[G.jsx(P_,{style:{marginRight:8}}),y,G.jsx(jo,{style:{marginLeft:8},children:Ft("ui.logCount",{count:S.length})})]}),children:G.jsx(Os,{size:"small",dataSource:S,renderItem:C=>G.jsx(Os.Item,{style:{cursor:"pointer",padding:"8px 12px"},onClick:()=>this.handleOpenLogFile(C.file),children:G.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"},children:[G.jsxs("span",{children:[G.jsx(bv,{style:{marginRight:8,color:"#3b82f6"}}),this.formatTimestamp(C.timestamp)]}),G.jsx(jo,{color:"blue",children:this.formatSize(C.size)})]})})})}))})})]})}}const ZL=fE.createRoot(document.getElementById("root"));ZL.render(G.jsx(YL,{}));