sloth-d2c-mcp 1.0.4-beta100

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.
Files changed (34) hide show
  1. package/README.md +83 -0
  2. package/cli/run.js +328 -0
  3. package/cli/sloth-server.log +1622 -0
  4. package/dist/build/config-manager/index.js +240 -0
  5. package/dist/build/core/prompt-builder.js +366 -0
  6. package/dist/build/core/sampling.js +375 -0
  7. package/dist/build/core/types.js +1 -0
  8. package/dist/build/index.js +852 -0
  9. package/dist/build/interceptor/client.js +142 -0
  10. package/dist/build/interceptor/vscode.js +143 -0
  11. package/dist/build/interceptor/web.js +28 -0
  12. package/dist/build/plugin/index.js +4 -0
  13. package/dist/build/plugin/loader.js +349 -0
  14. package/dist/build/plugin/manager.js +129 -0
  15. package/dist/build/plugin/types.js +6 -0
  16. package/dist/build/server.js +2116 -0
  17. package/dist/build/socket-client.js +166 -0
  18. package/dist/build/socket-server.js +260 -0
  19. package/dist/build/utils/client-capabilities.js +143 -0
  20. package/dist/build/utils/extract.js +168 -0
  21. package/dist/build/utils/file-manager.js +868 -0
  22. package/dist/build/utils/image-matcher.js +154 -0
  23. package/dist/build/utils/logger.js +90 -0
  24. package/dist/build/utils/opencv-loader.js +70 -0
  25. package/dist/build/utils/prompt-parser.js +46 -0
  26. package/dist/build/utils/tj.js +139 -0
  27. package/dist/build/utils/update.js +100 -0
  28. package/dist/build/utils/utils.js +184 -0
  29. package/dist/build/utils/vscode-logger.js +133 -0
  30. package/dist/build/utils/webpack-substitutions.js +196 -0
  31. package/dist/interceptor-web/dist/build-report.json +18 -0
  32. package/dist/interceptor-web/dist/detail.html +1 -0
  33. package/dist/interceptor-web/dist/index.html +1 -0
  34. package/package.json +96 -0
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8" /><link rel="icon" type="image/svg+xml" href="/vite.svg" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>D2C-MCP预览</title><script type="module" crossorigin>function K8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();const AT="modulepreload",PT=function(e,t){return new URL(e,t).href},x4={},Ua=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let f=function(m){return Promise.all(m.map(h=>Promise.resolve(h).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const l=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=s?.nonce||s?.getAttribute("nonce");a=f(n.map(m=>{if(m=PT(m,r),m in x4)return;x4[m]=!0;const h=m.endsWith(".css"),v=h?'[rel="stylesheet"]':"";if(!!r)for(let C=l.length-1;C>=0;C--){const w=l[C];if(w.href===m&&(!h||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":AT,h||(S.as="script"),S.crossOrigin="",S.href=m,d&&S.setAttribute("nonce",d),document.head.appendChild(S),h)return new Promise((C,w)=>{S.addEventListener("load",C),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${m}`)))})}))}function o(l){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l}return a.then(l=>{for(const s of l||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};var M1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t2={exports:{}},Xg={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var S4;function zT(){if(S4)return Xg;S4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var s in a)s!=="key"&&(o[s]=a[s])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Xg.Fragment=t,Xg.jsx=n,Xg.jsxs=n,Xg}var C4;function DT(){return C4||(C4=1,t2.exports=zT()),t2.exports}var Q=DT(),n2={exports:{}},jn={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var w4;function jT(){if(w4)return jn;w4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=h&&P[h]||P["@@iterator"],typeof P=="function"?P:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function w(P,K,J){this.props=P,this.context=K,this.refs=C,this.updater=J||y}w.prototype.isReactComponent={},w.prototype.setState=function(P,K){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,K,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function E(){}E.prototype=w.prototype;function $(P,K,J){this.props=P,this.context=K,this.refs=C,this.updater=J||y}var O=$.prototype=new E;O.constructor=$,S(O,w.prototype),O.isPureReactComponent=!0;var N=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function _(P,K,J,j,Y,ne){return J=ne.ref,{$$typeof:e,type:P,key:K,ref:J!==void 0?J:null,props:ne}}function z(P,K){return _(P.type,K,void 0,void 0,void 0,P.props)}function D(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function L(P){var K={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(J){return K[J]})}var B=/\/+/g;function F(P,K){return typeof P=="object"&&P!==null&&P.key!=null?L(""+P.key):K.toString(36)}function H(){}function k(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(H,H):(P.status="pending",P.then(function(K){P.status==="pending"&&(P.status="fulfilled",P.value=K)},function(K){P.status==="pending"&&(P.status="rejected",P.reason=K)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function q(P,K,J,j,Y){var ne=typeof P;(ne==="undefined"||ne==="boolean")&&(P=null);var se=!1;if(P===null)se=!0;else switch(ne){case"bigint":case"string":case"number":se=!0;break;case"object":switch(P.$$typeof){case e:case t:se=!0;break;case m:return se=P._init,q(se(P._payload),K,J,j,Y)}}if(se)return Y=Y(P),se=j===""?"."+F(P,0):j,N(Y)?(J="",se!=null&&(J=se.replace(B,"$&/")+"/"),q(Y,K,J,"",function(Ce){return Ce})):Y!=null&&(D(Y)&&(Y=z(Y,J+(Y.key==null||P&&P.key===Y.key?"":(""+Y.key).replace(B,"$&/")+"/")+se)),K.push(Y)),1;se=0;var de=j===""?".":j+":";if(N(P))for(var pe=0;pe<P.length;pe++)j=P[pe],ne=de+F(j,pe),se+=q(j,K,J,ne,Y);else if(pe=v(P),typeof pe=="function")for(P=pe.call(P),pe=0;!(j=P.next()).done;)j=j.value,ne=de+F(j,pe++),se+=q(j,K,J,ne,Y);else if(ne==="object"){if(typeof P.then=="function")return q(k(P),K,J,j,Y);throw K=String(P),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return se}function V(P,K,J){if(P==null)return P;var j=[],Y=0;return q(P,j,"","",function(ne){return K.call(J,ne,Y++)}),j}function W(P){if(P._status===-1){var K=P._result;K=K(),K.then(function(J){(P._status===0||P._status===-1)&&(P._status=1,P._result=J)},function(J){(P._status===0||P._status===-1)&&(P._status=2,P._result=J)}),P._status===-1&&(P._status=0,P._result=K)}if(P._status===1)return P._result.default;throw P._result}var G=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function X(){}return jn.Children={map:V,forEach:function(P,K,J){V(P,function(){K.apply(this,arguments)},J)},count:function(P){var K=0;return V(P,function(){K++}),K},toArray:function(P){return V(P,function(K){return K})||[]},only:function(P){if(!D(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},jn.Component=w,jn.Fragment=n,jn.Profiler=a,jn.PureComponent=$,jn.StrictMode=r,jn.Suspense=d,jn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,jn.__COMPILER_RUNTIME={__proto__:null,c:function(P){return I.H.useMemoCache(P)}},jn.cache=function(P){return function(){return P.apply(null,arguments)}},jn.cloneElement=function(P,K,J){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var j=S({},P.props),Y=P.key,ne=void 0;if(K!=null)for(se in K.ref!==void 0&&(ne=void 0),K.key!==void 0&&(Y=""+K.key),K)!R.call(K,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&K.ref===void 0||(j[se]=K[se]);var se=arguments.length-2;if(se===1)j.children=J;else if(1<se){for(var de=Array(se),pe=0;pe<se;pe++)de[pe]=arguments[pe+2];j.children=de}return _(P.type,Y,void 0,void 0,ne,j)},jn.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},jn.createElement=function(P,K,J){var j,Y={},ne=null;if(K!=null)for(j in K.key!==void 0&&(ne=""+K.key),K)R.call(K,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(Y[j]=K[j]);var se=arguments.length-2;if(se===1)Y.children=J;else if(1<se){for(var de=Array(se),pe=0;pe<se;pe++)de[pe]=arguments[pe+2];Y.children=de}if(P&&P.defaultProps)for(j in se=P.defaultProps,se)Y[j]===void 0&&(Y[j]=se[j]);return _(P,ne,void 0,void 0,null,Y)},jn.createRef=function(){return{current:null}},jn.forwardRef=function(P){return{$$typeof:s,render:P}},jn.isValidElement=D,jn.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:W}},jn.memo=function(P,K){return{$$typeof:f,type:P,compare:K===void 0?null:K}},jn.startTransition=function(P){var K=I.T,J={};I.T=J;try{var j=P(),Y=I.S;Y!==null&&Y(J,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(X,G)}catch(ne){G(ne)}finally{I.T=K}},jn.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},jn.use=function(P){return I.H.use(P)},jn.useActionState=function(P,K,J){return I.H.useActionState(P,K,J)},jn.useCallback=function(P,K){return I.H.useCallback(P,K)},jn.useContext=function(P){return I.H.useContext(P)},jn.useDebugValue=function(){},jn.useDeferredValue=function(P,K){return I.H.useDeferredValue(P,K)},jn.useEffect=function(P,K,J){var j=I.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(P,K)},jn.useId=function(){return I.H.useId()},jn.useImperativeHandle=function(P,K,J){return I.H.useImperativeHandle(P,K,J)},jn.useInsertionEffect=function(P,K){return I.H.useInsertionEffect(P,K)},jn.useLayoutEffect=function(P,K){return I.H.useLayoutEffect(P,K)},jn.useMemo=function(P,K){return I.H.useMemo(P,K)},jn.useOptimistic=function(P,K){return I.H.useOptimistic(P,K)},jn.useReducer=function(P,K,J){return I.H.useReducer(P,K,J)},jn.useRef=function(P){return I.H.useRef(P)},jn.useState=function(P){return I.H.useState(P)},jn.useSyncExternalStore=function(P,K,J){return I.H.useSyncExternalStore(P,K,J)},jn.useTransition=function(){return I.H.useTransition()},jn.version="19.1.1",jn}var E4;function ww(){return E4||(E4=1,n2.exports=jT()),n2.exports}var u=ww();const Se=ac(u),ab=K8({__proto__:null,default:Se},[u]);var r2={exports:{}},Yg={},a2={exports:{}},o2={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $4;function kT(){return $4||($4=1,(function(e){function t(V,W){var G=V.length;V.push(W);e:for(;0<G;){var X=G-1>>>1,P=V[X];if(0<a(P,W))V[X]=W,V[G]=P,G=X;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var W=V[0],G=V.pop();if(G!==W){V[0]=G;e:for(var X=0,P=V.length,K=P>>>1;X<K;){var J=2*(X+1)-1,j=V[J],Y=J+1,ne=V[Y];if(0>a(j,G))Y<P&&0>a(ne,j)?(V[X]=ne,V[Y]=G,X=Y):(V[X]=j,V[J]=G,X=J);else if(Y<P&&0>a(ne,G))V[X]=ne,V[Y]=G,X=Y;else break e}}return W}function a(V,W){var G=V.sortIndex-W.sortIndex;return G!==0?G:V.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var d=[],f=[],m=1,h=null,v=3,y=!1,S=!1,C=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(V){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=V)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function I(V){if(C=!1,N(V),!S)if(n(d)!==null)S=!0,R||(R=!0,F());else{var W=n(f);W!==null&&q(I,W.startTime-V)}}var R=!1,_=-1,z=5,D=-1;function L(){return w?!0:!(e.unstable_now()-D<z)}function B(){if(w=!1,R){var V=e.unstable_now();D=V;var W=!0;try{e:{S=!1,C&&(C=!1,$(_),_=-1),y=!0;var G=v;try{t:{for(N(V),h=n(d);h!==null&&!(h.expirationTime>V&&L());){var X=h.callback;if(typeof X=="function"){h.callback=null,v=h.priorityLevel;var P=X(h.expirationTime<=V);if(V=e.unstable_now(),typeof P=="function"){h.callback=P,N(V),W=!0;break t}h===n(d)&&r(d),N(V)}else r(d);h=n(d)}if(h!==null)W=!0;else{var K=n(f);K!==null&&q(I,K.startTime-V),W=!1}}break e}finally{h=null,v=G,y=!1}W=void 0}}finally{W?F():R=!1}}}var F;if(typeof O=="function")F=function(){O(B)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,k=H.port2;H.port1.onmessage=B,F=function(){k.postMessage(null)}}else F=function(){E(B,0)};function q(V,W){_=E(function(){V(e.unstable_now())},W)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var W=3;break;default:W=v}var G=v;v=W;try{return V()}finally{v=G}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(V,W){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var G=v;v=V;try{return W()}finally{v=G}},e.unstable_scheduleCallback=function(V,W,G){var X=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?X+G:X):G=X,V){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=G+P,V={id:m++,callback:W,priorityLevel:V,startTime:G,expirationTime:P,sortIndex:-1},G>X?(V.sortIndex=G,t(f,V),n(d)===null&&V===n(f)&&(C?($(_),_=-1):C=!0,q(I,G-X))):(V.sortIndex=P,t(d,V),S||y||(S=!0,R||(R=!0,F()))),V},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(V){var W=v;return function(){var G=v;v=W;try{return V.apply(this,arguments)}finally{v=G}}}})(o2)),o2}var O4;function LT(){return O4||(O4=1,a2.exports=kT()),a2.exports}var i2={exports:{}},wo={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var M4;function BT(){if(M4)return wo;M4=1;var e=ww();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(d,f,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return wo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wo.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(d,f,null,m)},wo.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},wo.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},wo.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},wo.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,h=s(m,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:v,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:h,integrity:v,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},wo.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=s(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},wo.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,h=s(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},wo.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=s(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},wo.requestFormReset=function(d){r.d.r(d)},wo.unstable_batchedUpdates=function(d,f){return d(f)},wo.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},wo.useFormStatus=function(){return l.H.useHostTransitionStatus()},wo.version="19.1.1",wo}var R4;function W8(){if(R4)return i2.exports;R4=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(),i2.exports=BT(),i2.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var N4;function FT(){if(N4)return Yg;N4=1;var e=LT(),t=ww(),n=W8();function r(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var c=i,p=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,(c.flags&4098)!==0&&(p=c.return),i=c.return;while(i)}return c.tag===3?p:null}function l(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function s(i){if(o(i)!==i)throw Error(r(188))}function d(i){var c=i.alternate;if(!c){if(c=o(i),c===null)throw Error(r(188));return c!==i?null:i}for(var p=i,x=c;;){var M=p.return;if(M===null)break;var A=M.alternate;if(A===null){if(x=M.return,x!==null){p=x;continue}break}if(M.child===A.child){for(A=M.child;A;){if(A===p)return s(M),i;if(A===x)return s(M),c;A=A.sibling}throw Error(r(188))}if(p.return!==x.return)p=M,x=A;else{for(var Z=!1,ae=M.child;ae;){if(ae===p){Z=!0,p=M,x=A;break}if(ae===x){Z=!0,x=M,p=A;break}ae=ae.sibling}if(!Z){for(ae=A.child;ae;){if(ae===p){Z=!0,p=A,x=M;break}if(ae===x){Z=!0,x=A,p=M;break}ae=ae.sibling}if(!Z)throw Error(r(189))}}if(p.alternate!==x)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:c}function f(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=f(i),c!==null)return c;i=i.sibling}return null}var m=Object.assign,h=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),$=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function F(i){return i===null||typeof i!="object"?null:(i=B&&i[B]||i["@@iterator"],typeof i=="function"?i:null)}var H=Symbol.for("react.client.reference");function k(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===H?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case R:return"SuspenseList";case D:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case O:return(i.displayName||"Context")+".Provider";case $:return(i._context.displayName||"Context")+".Consumer";case N:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case _:return c=i.displayName||null,c!==null?c:k(i.type)||"Memo";case z:c=i._payload,i=i._init;try{return k(i(c))}catch{}}return null}var q=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},X=[],P=-1;function K(i){return{current:i}}function J(i){0>P||(i.current=X[P],X[P]=null,P--)}function j(i,c){P++,X[P]=i.current,i.current=c}var Y=K(null),ne=K(null),se=K(null),de=K(null);function pe(i,c){switch(j(se,c),j(ne,i),j(Y,null),c.nodeType){case 9:case 11:i=(i=c.documentElement)&&(i=i.namespaceURI)?qr(i):0;break;default:if(i=c.tagName,c=c.namespaceURI)c=qr(c),i=Jr(c,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}J(Y),j(Y,i)}function Ce(){J(Y),J(ne),J(se)}function he(i){i.memoizedState!==null&&j(de,i);var c=Y.current,p=Jr(c,i.type);c!==p&&(j(ne,i),j(Y,p))}function me(i){ne.current===i&&(J(Y),J(ne)),de.current===i&&(J(de),Gc._currentValue=G)}var be=Object.prototype.hasOwnProperty,fe=e.unstable_scheduleCallback,ge=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,Ne=e.unstable_requestPaint,je=e.unstable_now,Te=e.unstable_getCurrentPriorityLevel,Ue=e.unstable_ImmediatePriority,qe=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,Ve=e.unstable_LowPriority,Be=e.unstable_IdlePriority,De=e.log,ye=e.unstable_setDisableYieldValue,oe=null,we=null;function Fe(i){if(typeof De=="function"&&ye(i),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(oe,i)}catch{}}var xe=Math.clz32?Math.clz32:lt,_e=Math.log,rt=Math.LN2;function lt(i){return i>>>=0,i===0?32:31-(_e(i)/rt|0)|0}var ut=256,tt=4194304;function mt(i){var c=i&42;if(c!==0)return c;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function at(i,c,p){var x=i.pendingLanes;if(x===0)return 0;var M=0,A=i.suspendedLanes,Z=i.pingedLanes;i=i.warmLanes;var ae=x&134217727;return ae!==0?(x=ae&~A,x!==0?M=mt(x):(Z&=ae,Z!==0?M=mt(Z):p||(p=ae&~i,p!==0&&(M=mt(p))))):(ae=x&~A,ae!==0?M=mt(ae):Z!==0?M=mt(Z):p||(p=x&~i,p!==0&&(M=mt(p)))),M===0?0:c!==0&&c!==M&&(c&A)===0&&(A=M&-M,p=c&-c,A>=p||A===32&&(p&4194048)!==0)?c:M}function gt(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function Nt(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32: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 c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tn(){var i=ut;return ut<<=1,(ut&4194048)===0&&(ut=256),i}function Wt(){var i=tt;return tt<<=1,(tt&62914560)===0&&(tt=4194304),i}function dn(i){for(var c=[],p=0;31>p;p++)c.push(i);return c}function Qt(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function nn(i,c,p,x,M,A){var Z=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var ae=i.entanglements,$e=i.expirationTimes,Ze=i.hiddenUpdates;for(p=Z&~p;0<p;){var vt=31-xe(p),wt=1<<vt;ae[vt]=0,$e[vt]=-1;var it=Ze[vt];if(it!==null)for(Ze[vt]=null,vt=0;vt<it.length;vt++){var et=it[vt];et!==null&&(et.lane&=-536870913)}p&=~wt}x!==0&&Zt(i,x,0),A!==0&&M===0&&i.tag!==0&&(i.suspendedLanes|=A&~(Z&~c))}function Zt(i,c,p){i.pendingLanes|=c,i.suspendedLanes&=~c;var x=31-xe(c);i.entangledLanes|=c,i.entanglements[x]=i.entanglements[x]|1073741824|p&4194090}function Lt(i,c){var p=i.entangledLanes|=c;for(i=i.entanglements;p;){var x=31-xe(p),M=1<<x;M&c|i[x]&c&&(i[x]|=c),p&=~M}}function _t(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function It(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function ve(){var i=W.p;return i!==0?i:(i=window.event,i===void 0?32:S1(i.type))}function Me(i,c){var p=W.p;try{return W.p=i,c()}finally{W.p=p}}var Xe=Math.random().toString(36).slice(2),Qe="__reactFiber$"+Xe,ke="__reactProps$"+Xe,Ae="__reactContainer$"+Xe,He="__reactEvents$"+Xe,Ye="__reactListeners$"+Xe,$t="__reactHandles$"+Xe,xt="__reactResources$"+Xe,pt="__reactMarker$"+Xe;function ct(i){delete i[Qe],delete i[ke],delete i[He],delete i[Ye],delete i[$t]}function dt(i){var c=i[Qe];if(c)return c;for(var p=i.parentNode;p;){if(c=p[Ae]||p[Qe]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(i=c1(i);i!==null;){if(p=i[Qe])return p;i=c1(i)}return c}i=p,p=i.parentNode}return null}function ot(i){if(i=i[Qe]||i[Ae]){var c=i.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return i}return null}function nt(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(r(33))}function Tt(i){var c=i[xt];return c||(c=i[xt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Mt(i){i[pt]=!0}var zt=new Set,jt={};function rn(i,c){yt(i,c),yt(i+"Capture",c)}function yt(i,c){for(jt[i]=c,i=0;i<c.length;i++)zt.add(c[i])}var Ot=RegExp("^[: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]*$"),Ft={},Gt={};function Jt(i){return be.call(Gt,i)?!0:be.call(Ft,i)?!1:Ot.test(i)?Gt[i]=!0:(Ft[i]=!0,!1)}function un(i,c,p){if(Jt(c))if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var x=c.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+p)}}function On(i,c,p){if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+p)}}function Qn(i,c,p,x){if(x===null)i.removeAttribute(p);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(c,p,""+x)}}var Xt,an;function Bt(i){if(Xt===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);Xt=c&&c[1]||"",an=-1<p.stack.indexOf(` at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return` `+Xt+i+an}var gr=!1;function Lr(i,c){if(!i||gr)return"";gr=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(c){var wt=function(){throw Error()};if(Object.defineProperty(wt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(wt,[])}catch(et){var it=et}Reflect.construct(i,[],wt)}else{try{wt.call()}catch(et){it=et}i.call(wt.prototype)}}else{try{throw Error()}catch(et){it=et}(wt=i())&&typeof wt.catch=="function"&&wt.catch(function(){})}}catch(et){if(et&&it&&typeof et.stack=="string")return[et.stack,it.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=x.DetermineComponentFrameRoot(),Z=A[0],ae=A[1];if(Z&&ae){var $e=Z.split(` `),Ze=ae.split(` `);for(M=x=0;x<$e.length&&!$e[x].includes("DetermineComponentFrameRoot");)x++;for(;M<Ze.length&&!Ze[M].includes("DetermineComponentFrameRoot");)M++;if(x===$e.length||M===Ze.length)for(x=$e.length-1,M=Ze.length-1;1<=x&&0<=M&&$e[x]!==Ze[M];)M--;for(;1<=x&&0<=M;x--,M--)if($e[x]!==Ze[M]){if(x!==1||M!==1)do if(x--,M--,0>M||$e[x]!==Ze[M]){var vt=` `+$e[x].replace(" at new "," at ");return i.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",i.displayName)),vt}while(1<=x&&0<=M);break}}}finally{gr=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Bt(p):""}function so(i){switch(i.tag){case 26:case 27:case 5:return Bt(i.type);case 16:return Bt("Lazy");case 13:return Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return Lr(i.type,!1);case 11:return Lr(i.type.render,!1);case 1:return Lr(i.type,!0);case 31:return Bt("Activity");default:return""}}function Da(i){try{var c="";do c+=so(i),i=i.return;while(i);return c}catch(p){return` Error generating stack: `+p.message+` `+p.stack}}function fr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ea(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function fa(i){var c=Ea(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),x=""+i[c];if(!i.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var M=p.get,A=p.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return M.call(this)},set:function(Z){x=""+Z,A.call(this,Z)}}),Object.defineProperty(i,c,{enumerable:p.enumerable}),{getValue:function(){return x},setValue:function(Z){x=""+Z},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Br(i){i._valueTracker||(i._valueTracker=fa(i))}function xn(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var p=c.getValue(),x="";return i&&(x=Ea(i)?i.checked?"true":"false":i.value),i=x,i!==p?(c.setValue(i),!0):!1}function kt(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}}var fn=/[\n"\\]/g;function on(i){return i.replace(fn,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Mn(i,c,p,x,M,A,Z,ae){i.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?i.type=Z:i.removeAttribute("type"),c!=null?Z==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+fr(c)):i.value!==""+fr(c)&&(i.value=""+fr(c)):Z!=="submit"&&Z!=="reset"||i.removeAttribute("value"),c!=null?Ir(i,Z,fr(c)):p!=null?Ir(i,Z,fr(p)):x!=null&&i.removeAttribute("value"),M==null&&A!=null&&(i.defaultChecked=!!A),M!=null&&(i.checked=M&&typeof M!="function"&&typeof M!="symbol"),ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?i.name=""+fr(ae):i.removeAttribute("name")}function _n(i,c,p,x,M,A,Z,ae){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(i.type=A),c!=null||p!=null){if(!(A!=="submit"&&A!=="reset"||c!=null))return;p=p!=null?""+fr(p):"",c=c!=null?""+fr(c):p,ae||c===i.value||(i.value=c),i.defaultValue=c}x=x??M,x=typeof x!="function"&&typeof x!="symbol"&&!!x,i.checked=ae?i.checked:!!x,i.defaultChecked=!!x,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(i.name=Z)}function Ir(i,c,p){c==="number"&&kt(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function yr(i,c,p,x){if(i=i.options,c){c={};for(var M=0;M<p.length;M++)c["$"+p[M]]=!0;for(p=0;p<i.length;p++)M=c.hasOwnProperty("$"+i[p].value),i[p].selected!==M&&(i[p].selected=M),M&&x&&(i[p].defaultSelected=!0)}else{for(p=""+fr(p),c=null,M=0;M<i.length;M++){if(i[M].value===p){i[M].selected=!0,x&&(i[M].defaultSelected=!0);return}c!==null||i[M].disabled||(c=i[M])}c!==null&&(c.selected=!0)}}function ia(i,c,p){if(c!=null&&(c=""+fr(c),c!==i.value&&(i.value=c),p==null)){i.defaultValue!==c&&(i.defaultValue=c);return}i.defaultValue=p!=null?""+fr(p):""}function la(i,c,p,x){if(c==null){if(x!=null){if(p!=null)throw Error(r(92));if(q(x)){if(1<x.length)throw Error(r(93));x=x[0]}p=x}p==null&&(p=""),c=p}p=fr(c),i.defaultValue=p,x=i.textContent,x===p&&x!==""&&x!==null&&(i.value=x)}function wr(i,c){if(c){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=c;return}}i.textContent=c}var Fr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $a(i,c,p){var x=c.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?x?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="":x?i.setProperty(c,p):typeof p!="number"||p===0||Fr.has(c)?c==="float"?i.cssFloat=p:i[c]=(""+p).trim():i[c]=p+"px"}function Sn(i,c,p){if(c!=null&&typeof c!="object")throw Error(r(62));if(i=i.style,p!=null){for(var x in p)!p.hasOwnProperty(x)||c!=null&&c.hasOwnProperty(x)||(x.indexOf("--")===0?i.setProperty(x,""):x==="float"?i.cssFloat="":i[x]="");for(var M in c)x=c[M],c.hasOwnProperty(M)&&p[M]!==x&&$a(i,M,x)}else for(var A in c)c.hasOwnProperty(A)&&$a(i,A,c[A])}function gn(i){if(i.indexOf("-")===-1)return!1;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 _r=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ga=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qn(i){return ga.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Oa=null;function ja(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Hr=null,sa=null;function Io(i){var c=ot(i);if(c&&(i=c.stateNode)){var p=i[ke]||null;e:switch(i=c.stateNode,c.type){case"input":if(Mn(i,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),c=p.name,p.type==="radio"&&c!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+on(""+c)+'"][type="radio"]'),c=0;c<p.length;c++){var x=p[c];if(x!==i&&x.form===i.form){var M=x[ke]||null;if(!M)throw Error(r(90));Mn(x,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name)}}for(c=0;c<p.length;c++)x=p[c],x.form===i.form&&xn(x)}break e;case"textarea":ia(i,p.value,p.defaultValue);break e;case"select":c=p.value,c!=null&&yr(i,!!p.multiple,c,!1)}}}var Pl=!1;function sc(i,c,p){if(Pl)return i(c,p);Pl=!0;try{var x=i(c);return x}finally{if(Pl=!1,(Hr!==null||sa!==null)&&(qf(),Hr&&(c=Hr,i=sa,sa=Hr=null,Io(c),i)))for(c=0;c<i.length;c++)Io(i[c])}}function al(i,c){var p=i.stateNode;if(p===null)return null;var x=p[ke]||null;if(x===null)return null;p=x[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(i=i.type,x=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!x;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var _o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yt=!1;if(_o)try{var mn={};Object.defineProperty(mn,"passive",{get:function(){Yt=!0}}),window.addEventListener("test",mn,mn),window.removeEventListener("test",mn,mn)}catch{Yt=!1}var rr=null,Zr=null,Mr=null;function ws(){if(Mr)return Mr;var i,c=Zr,p=c.length,x,M="value"in rr?rr.value:rr.textContent,A=M.length;for(i=0;i<p&&c[i]===M[i];i++);var Z=p-i;for(x=1;x<=Z&&c[p-x]===M[A-x];x++);return Mr=M.slice(i,1<x?1-x:void 0)}function ur(i){var c=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&c===13&&(i=13)):i=c,i===10&&(i=13),32<=i||i===13?i:0}function dr(){return!0}function Es(){return!1}function co(i){function c(p,x,M,A,Z){this._reactName=p,this._targetInst=M,this.type=x,this.nativeEvent=A,this.target=Z,this.currentTarget=null;for(var ae in i)i.hasOwnProperty(ae)&&(p=i[ae],this[ae]=p?p(A):A[ae]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?dr:Es,this.isPropagationStopped=Es,this}return m(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=dr)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=dr)},persist:function(){},isPersistent:dr}),c}var $s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gd=co($s),yu=m({},$s,{view:0,detail:0}),Zb=co(yu),Xd,xp,ca,cc=m({},yu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zi,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!==ca&&(ca&&i.type==="mousemove"?(Xd=i.screenX-ca.screenX,xp=i.screenY-ca.screenY):xp=Xd=0,ca=i),Xd)},movementY:function(i){return"movementY"in i?i.movementY:xp}}),zl=co(cc),hv=m({},cc,{dataTransfer:0}),Sp=co(hv),Yo=m({},yu,{relatedTarget:0}),Yd=co(Yo),vv=m({},$s,{animationName:0,elapsedTime:0,pseudoElement:0}),yv=co(vv),bv=m({},$s,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),xv=co(bv),Sv=m({},$s,{data:0}),uo=co(Sv),Jb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qo={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"},ex={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cv(i){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(i):(i=ex[i])?!!c[i]:!1}function zi(){return Cv}var Qd=m({},yu,{key:function(i){if(i.key){var c=Jb[i.key]||i.key;if(c!=="Unidentified")return c}return i.type==="keypress"?(i=ur(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Qo[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zi,charCode:function(i){return i.type==="keypress"?ur(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?ur(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Cp=co(Qd),Vr=m({},cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ol=co(Vr),wp=m({},yu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zi}),tx=co(wp),Ep=m({},$s,{propertyName:0,elapsedTime:0,pseudoElement:0}),nx=co(Ep),rx=m({},cc,{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}),ax=co(rx),wv=m({},$s,{newState:0,oldState:0}),Zd=co(wv),uc=[9,13,27,32],$p=_o&&"CompositionEvent"in window,dc=null;_o&&"documentMode"in document&&(dc=document.documentMode);var Ev=_o&&"TextEvent"in window&&!dc,Jd=_o&&(!$p||dc&&8<dc&&11>=dc),ef=" ",Op=!1;function $v(i,c){switch(i){case"keyup":return uc.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Dl=!1;function ox(i,c){switch(i){case"compositionend":return tf(c);case"keypress":return c.which!==32?null:(Op=!0,ef);case"textInput":return i=c.data,i===ef&&Op?null:i;default:return null}}function Ov(i,c){if(Dl)return i==="compositionend"||!$p&&$v(i,c)?(i=ws(),Mr=Zr=rr=null,Dl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Jd&&c.locale!=="ko"?null:c.data;default:return null}}var Ao={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 nf(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c==="input"?!!Ao[i.type]:c==="textarea"}function fc(i,c,p,x){Hr?sa?sa.push(x):sa=[x]:Hr=x,c=em(c,"onChange"),0<c.length&&(p=new Gd("onChange","change",null,p,x),i.push({event:p,listeners:c}))}var mc=null,pc=null;function ix(i){t1(i,0)}function rf(i){var c=nt(i);if(xn(c))return i}function Mv(i,c){if(i==="change")return c}var Rv=!1;if(_o){var Mp;if(_o){var jl="oninput"in document;if(!jl){var Nv=document.createElement("div");Nv.setAttribute("oninput","return;"),jl=typeof Nv.oninput=="function"}Mp=jl}else Mp=!1;Rv=Mp&&(!document.documentMode||9<document.documentMode)}function Tv(){mc&&(mc.detachEvent("onpropertychange",af),pc=mc=null)}function af(i){if(i.propertyName==="value"&&rf(pc)){var c=[];fc(c,pc,i,ja(i)),sc(ix,c)}}function Iv(i,c,p){i==="focusin"?(Tv(),mc=c,pc=p,mc.attachEvent("onpropertychange",af)):i==="focusout"&&Tv()}function kl(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return rf(pc)}function of(i,c){if(i==="click")return rf(c)}function lx(i,c){if(i==="input"||i==="change")return rf(c)}function sx(i,c){return i===c&&(i!==0||1/i===1/c)||i!==i&&c!==c}var Po=typeof Object.is=="function"?Object.is:sx;function Di(i,c){if(Po(i,c))return!0;if(typeof i!="object"||i===null||typeof c!="object"||c===null)return!1;var p=Object.keys(i),x=Object.keys(c);if(p.length!==x.length)return!1;for(x=0;x<p.length;x++){var M=p[x];if(!be.call(c,M)||!Po(i[M],c[M]))return!1}return!0}function Zo(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Rp(i,c){var p=Zo(i);i=0;for(var x;p;){if(p.nodeType===3){if(x=i+p.textContent.length,i<=c&&x>=c)return{node:p,offset:c-i};i=x}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Zo(p)}}function _v(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?_v(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function Av(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=kt(i.document);c instanceof i.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)i=c.contentWindow;else break;c=kt(i.document)}return c}function Np(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}var cx=_o&&"documentMode"in document&&11>=document.documentMode,gc=null,Ll=null,Le=null,ht=!1;function ft(i,c,p){var x=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;ht||gc==null||gc!==kt(x)||(x=gc,"selectionStart"in x&&Np(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Le&&Di(Le,x)||(Le=x,x=em(Ll,"onSelect"),0<x.length&&(c=new Gd("onSelect","select",null,c,p),i.push({event:c,listeners:x}),c.target=gc)))}function Ut(i,c){var p={};return p[i.toLowerCase()]=c.toLowerCase(),p["Webkit"+i]="webkit"+c,p["Moz"+i]="moz"+c,p}var Cn={animationend:Ut("Animation","AnimationEnd"),animationiteration:Ut("Animation","AnimationIteration"),animationstart:Ut("Animation","AnimationStart"),transitionrun:Ut("Transition","TransitionRun"),transitionstart:Ut("Transition","TransitionStart"),transitioncancel:Ut("Transition","TransitionCancel"),transitionend:Ut("Transition","TransitionEnd")},ar={},ma={};_o&&(ma=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);function or(i){if(ar[i])return ar[i];if(!Cn[i])return i;var c=Cn[i],p;for(p in c)if(c.hasOwnProperty(p)&&p in ma)return ar[i]=c[p];return i}var lf=or("animationend"),Pv=or("animationiteration"),zo=or("animationstart"),sf=or("transitionrun"),ux=or("transitionstart"),hc=or("transitioncancel"),bu=or("transitionend"),xu=new Map,mr="abort auxClick beforeToggle 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(" ");mr.push("scrollEnd");function gi(i,c){xu.set(i,c),rn(c,[i])}var Tp=new WeakMap;function Ga(i,c){if(typeof i=="object"&&i!==null){var p=Tp.get(i);return p!==void 0?p:(c={value:i,source:c,stack:Da(c)},Tp.set(i,c),c)}return{value:i,source:c,stack:Da(c)}}var Jo=[],vc=0,Ip=0;function Os(){for(var i=vc,c=Ip=vc=0;c<i;){var p=Jo[c];Jo[c++]=null;var x=Jo[c];Jo[c++]=null;var M=Jo[c];Jo[c++]=null;var A=Jo[c];if(Jo[c++]=null,x!==null&&M!==null){var Z=x.pending;Z===null?M.next=M:(M.next=Z.next,Z.next=M),x.pending=M}A!==0&&Su(p,M,A)}}function hi(i,c,p,x){Jo[vc++]=i,Jo[vc++]=c,Jo[vc++]=p,Jo[vc++]=x,Ip|=x,i.lanes|=x,i=i.alternate,i!==null&&(i.lanes|=x)}function yc(i,c,p,x){return hi(i,c,p,x),Cu(i)}function Ms(i,c){return hi(i,null,null,c),Cu(i)}function Su(i,c,p){i.lanes|=p;var x=i.alternate;x!==null&&(x.lanes|=p);for(var M=!1,A=i.return;A!==null;)A.childLanes|=p,x=A.alternate,x!==null&&(x.childLanes|=p),A.tag===22&&(i=A.stateNode,i===null||i._visibility&1||(M=!0)),i=A,A=A.return;return i.tag===3?(A=i.stateNode,M&&c!==null&&(M=31-xe(p),i=A.hiddenUpdates,x=i[M],x===null?i[M]=[c]:x.push(c),c.lane=p|536870912),A):null}function Cu(i){if(50<Bc)throw Bc=0,$g=null,Error(r(185));for(var c=i.return;c!==null;)i=c,c=i.return;return i.tag===3?i.stateNode:null}var Rs={};function cf(i,c,p,x){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(i,c,p,x){return new cf(i,c,p,x)}function Ns(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Xa(i,c){var p=i.alternate;return p===null?(p=fo(i.tag,c,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=c,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&65011712,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,c=i.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function wu(i,c){i.flags&=65011714;var p=i.alternate;return p===null?(i.childLanes=0,i.lanes=c,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=p.childLanes,i.lanes=p.lanes,i.child=p.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=p.memoizedProps,i.memoizedState=p.memoizedState,i.updateQueue=p.updateQueue,i.type=p.type,c=p.dependencies,i.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),i}function uf(i,c,p,x,M,A){var Z=0;if(x=i,typeof i=="function")Ns(i)&&(Z=1);else if(typeof i=="string")Z=Fx(i,p,Y.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=fo(31,p,c,M),i.elementType=D,i.lanes=A,i;case S:return Ts(p.children,M,A,c);case C:Z=8,M|=24;break;case w:return i=fo(12,p,c,M|2),i.elementType=w,i.lanes=A,i;case I:return i=fo(13,p,c,M),i.elementType=I,i.lanes=A,i;case R:return i=fo(19,p,c,M),i.elementType=R,i.lanes=A,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case E:case O:Z=10;break e;case $:Z=9;break e;case N:Z=11;break e;case _:Z=14;break e;case z:Z=16,x=null;break e}Z=29,p=Error(r(130,i===null?"null":typeof i,"")),x=null}return c=fo(Z,p,c,M),c.elementType=i,c.type=x,c.lanes=A,c}function Ts(i,c,p,x){return i=fo(7,i,x,c),i.lanes=p,i}function _p(i,c,p){return i=fo(6,i,null,c),i.lanes=p,i}function bc(i,c,p){return c=fo(4,i.children!==null?i.children:[],i.key,c),c.lanes=p,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}var il=[],Bl=0,df=null,Eu=0,ei=[],ti=0,Dr=null,Kr=1,ll="";function Is(i,c){il[Bl++]=Eu,il[Bl++]=df,df=i,Eu=c}function Ap(i,c,p){ei[ti++]=Kr,ei[ti++]=ll,ei[ti++]=Dr,Dr=i;var x=Kr;i=ll;var M=32-xe(x)-1;x&=~(1<<M),p+=1;var A=32-xe(c)+M;if(30<A){var Z=M-M%5;A=(x&(1<<Z)-1).toString(32),x>>=Z,M-=Z,Kr=1<<32-xe(c)+M|p<<M|x,ll=A+i}else Kr=1<<A|p<<M|x,ll=i}function Pp(i){i.return!==null&&(Is(i,1),Ap(i,1,0))}function $u(i){for(;i===df;)df=il[--Bl],il[Bl]=null,Eu=il[--Bl],il[Bl]=null;for(;i===Dr;)Dr=ei[--ti],ei[ti]=null,ll=ei[--ti],ei[ti]=null,Kr=ei[--ti],ei[ti]=null}var ha=null,Wr=null,Gn=!1,vi=null,mo=!1,xc=Error(r(519));function ni(i){var c=Error(r(418,""));throw Fl(Ga(c,i)),xc}function zv(i){var c=i.stateNode,p=i.type,x=i.memoizedProps;switch(c[Qe]=i,c[ke]=x,p){case"dialog":Kn("cancel",c),Kn("close",c);break;case"iframe":case"object":case"embed":Kn("load",c);break;case"video":case"audio":for(p=0;p<md.length;p++)Kn(md[p],c);break;case"source":Kn("error",c);break;case"img":case"image":case"link":Kn("error",c),Kn("load",c);break;case"details":Kn("toggle",c);break;case"input":Kn("invalid",c),_n(c,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0),Br(c);break;case"select":Kn("invalid",c);break;case"textarea":Kn("invalid",c),la(c,x.value,x.defaultValue,x.children),Br(c)}p=x.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||c.textContent===""+p||x.suppressHydrationWarning===!0||a1(c.textContent,p)?(x.popover!=null&&(Kn("beforetoggle",c),Kn("toggle",c)),x.onScroll!=null&&Kn("scroll",c),x.onScrollEnd!=null&&Kn("scrollend",c),x.onClick!=null&&(c.onclick=tm),c=!0):c=!1,c||ni(i)}function Dv(i){for(ha=i.return;ha;)switch(ha.tag){case 5:case 13:mo=!1;return;case 27:case 3:mo=!0;return;default:ha=ha.return}}function Ou(i){if(i!==ha)return!1;if(!Gn)return Dv(i),Gn=!0,!1;var c=i.tag,p;if((p=c!==3&&c!==27)&&((p=c===5)&&(p=i.type,p=!(p!=="form"&&p!=="button")||rm(i.type,i.memoizedProps)),p=!p),p&&Wr&&ni(i),Dv(i),c===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,c=0;i;){if(i.nodeType===8)if(p=i.data,p==="/$"){if(c===0){Wr=wi(i.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++;i=i.nextSibling}Wr=null}}else c===27?(c=Wr,si(i.type)?(i=Lg,Lg=null,Wr=i):Wr=c):Wr=ha?wi(i.stateNode.nextSibling):null;return!0}function Mu(){Wr=ha=null,Gn=!1}function jv(){var i=vi;return i!==null&&(So===null?So=i:So.push.apply(So,i),vi=null),i}function Fl(i){vi===null?vi=[i]:vi.push(i)}var _s=K(null),Hl=null,re=null;function Do(i,c,p){j(_s,c._currentValue),c._currentValue=p}function ri(i){i._currentValue=_s.current,J(_s)}function po(i,c,p){for(;i!==null;){var x=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),i===p)break;i=i.return}}function Bn(i,c,p,x){var M=i.child;for(M!==null&&(M.return=i);M!==null;){var A=M.dependencies;if(A!==null){var Z=M.child;A=A.firstContext;e:for(;A!==null;){var ae=A;A=M;for(var $e=0;$e<c.length;$e++)if(ae.context===c[$e]){A.lanes|=p,ae=A.alternate,ae!==null&&(ae.lanes|=p),po(A.return,p,i),x||(Z=null);break e}A=ae.next}}else if(M.tag===18){if(Z=M.return,Z===null)throw Error(r(341));Z.lanes|=p,A=Z.alternate,A!==null&&(A.lanes|=p),po(Z,p,i),Z=null}else Z=M.child;if(Z!==null)Z.return=M;else for(Z=M;Z!==null;){if(Z===i){Z=null;break}if(M=Z.sibling,M!==null){M.return=Z.return,Z=M;break}Z=Z.return}M=Z}}function Ru(i,c,p,x){i=null;for(var M=c,A=!1;M!==null;){if(!A){if((M.flags&524288)!==0)A=!0;else if((M.flags&262144)!==0)break}if(M.tag===10){var Z=M.alternate;if(Z===null)throw Error(r(387));if(Z=Z.memoizedProps,Z!==null){var ae=M.type;Po(M.pendingProps.value,Z.value)||(i!==null?i.push(ae):i=[ae])}}else if(M===de.current){if(Z=M.alternate,Z===null)throw Error(r(387));Z.memoizedState.memoizedState!==M.memoizedState.memoizedState&&(i!==null?i.push(Gc):i=[Gc])}M=M.return}i!==null&&Bn(c,i,p,x),c.flags|=262144}function ff(i){for(i=i.firstContext;i!==null;){if(!Po(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function As(i){Hl=i,re=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ta(i){return kv(Hl,i)}function mf(i,c){return Hl===null&&As(i),kv(i,c)}function kv(i,c){var p=c._currentValue;if(c={context:c,memoizedValue:p,next:null},re===null){if(i===null)throw Error(r(308));re=c,i.dependencies={lanes:0,firstContext:c},i.flags|=524288}else re=re.next=c;return p}var dx=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(p,x){i.push(x)}};this.abort=function(){c.aborted=!0,i.forEach(function(p){return p()})}},fx=e.unstable_scheduleCallback,mx=e.unstable_NormalPriority,Rr={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zp(){return{controller:new dx,data:new Map,refCount:0}}function Nu(i){i.refCount--,i.refCount===0&&fx(mx,function(){i.controller.abort()})}var Tu=null,Dp=0,Sc=0,go=null;function px(i,c){if(Tu===null){var p=Tu=[];Dp=0,Sc=Jf(),go={status:"pending",value:void 0,then:function(x){p.push(x)}}}return Dp++,c.then(Lv,Lv),c}function Lv(){if(--Dp===0&&Tu!==null){go!==null&&(go.status="fulfilled");var i=Tu;Tu=null,Sc=0,go=null;for(var c=0;c<i.length;c++)(0,i[c])()}}function gx(i,c){var p=[],x={status:"pending",value:null,reason:null,then:function(M){p.push(M)}};return i.then(function(){x.status="fulfilled",x.value=c;for(var M=0;M<p.length;M++)(0,p[M])(c)},function(M){for(x.status="rejected",x.reason=M,M=0;M<p.length;M++)(0,p[M])(void 0)}),x}var Bv=V.S;V.S=function(i,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&px(i,c),Bv!==null&&Bv(i,c)};var Ps=K(null);function sl(){var i=Ps.current;return i!==null?i:Ar.pooledCache}function pf(i,c){c===null?j(Ps,Ps.current):j(Ps,c.pool)}function Fv(){var i=sl();return i===null?null:{parent:Rr._currentValue,pool:i}}var Ya=Error(r(460)),Hv=Error(r(474)),gf=Error(r(542)),jp={then:function(){}};function Vv(i){return i=i.status,i==="fulfilled"||i==="rejected"}function hf(){}function kp(i,c,p){switch(p=i[p],p===void 0?i.push(c):p!==c&&(c.then(hf,hf),c=p),c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,Wv(i),i;default:if(typeof c.status=="string")c.then(hf,hf);else{if(i=Ar,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=c,i.status="pending",i.then(function(x){if(c.status==="pending"){var M=c;M.status="fulfilled",M.value=x}},function(x){if(c.status==="pending"){var M=c;M.status="rejected",M.reason=x}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,Wv(i),i}throw Cc=c,Ya}}var Cc=null;function Kv(){if(Cc===null)throw Error(r(459));var i=Cc;return Cc=null,i}function Wv(i){if(i===Ya||i===gf)throw Error(r(483))}var ji=!1;function zs(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wc(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Vl(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function cl(i,c,p){var x=i.updateQueue;if(x===null)return null;if(x=x.shared,(xr&2)!==0){var M=x.pending;return M===null?c.next=c:(c.next=M.next,M.next=c),x.pending=c,c=Cu(i),Su(i,null,p),c}return hi(i,x,c,p),Cu(i)}function Iu(i,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194048)!==0)){var x=c.lanes;x&=i.pendingLanes,p|=x,c.lanes=p,Lt(i,p)}}function yi(i,c){var p=i.updateQueue,x=i.alternate;if(x!==null&&(x=x.updateQueue,p===x)){var M=null,A=null;if(p=p.firstBaseUpdate,p!==null){do{var Z={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};A===null?M=A=Z:A=A.next=Z,p=p.next}while(p!==null);A===null?M=A=c:A=A.next=c}else M=A=c;p={baseState:x.baseState,firstBaseUpdate:M,lastBaseUpdate:A,shared:x.shared,callbacks:x.callbacks},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=c:i.next=c,p.lastBaseUpdate=c}var _u=!1;function bi(){if(_u){var i=go;if(i!==null)throw i}}function Fa(i,c,p,x){_u=!1;var M=i.updateQueue;ji=!1;var A=M.firstBaseUpdate,Z=M.lastBaseUpdate,ae=M.shared.pending;if(ae!==null){M.shared.pending=null;var $e=ae,Ze=$e.next;$e.next=null,Z===null?A=Ze:Z.next=Ze,Z=$e;var vt=i.alternate;vt!==null&&(vt=vt.updateQueue,ae=vt.lastBaseUpdate,ae!==Z&&(ae===null?vt.firstBaseUpdate=Ze:ae.next=Ze,vt.lastBaseUpdate=$e))}if(A!==null){var wt=M.baseState;Z=0,vt=Ze=$e=null,ae=A;do{var it=ae.lane&-536870913,et=it!==ae.lane;if(et?(er&it)===it:(x&it)===it){it!==0&&it===Sc&&(_u=!0),vt!==null&&(vt=vt.next={lane:0,tag:ae.tag,payload:ae.payload,callback:null,next:null});e:{var yn=i,hn=ae;it=c;var $r=p;switch(hn.tag){case 1:if(yn=hn.payload,typeof yn=="function"){wt=yn.call($r,wt,it);break e}wt=yn;break e;case 3:yn.flags=yn.flags&-65537|128;case 0:if(yn=hn.payload,it=typeof yn=="function"?yn.call($r,wt,it):yn,it==null)break e;wt=m({},wt,it);break e;case 2:ji=!0}}it=ae.callback,it!==null&&(i.flags|=64,et&&(i.flags|=8192),et=M.callbacks,et===null?M.callbacks=[it]:et.push(it))}else et={lane:it,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},vt===null?(Ze=vt=et,$e=wt):vt=vt.next=et,Z|=it;if(ae=ae.next,ae===null){if(ae=M.shared.pending,ae===null)break;et=ae,ae=et.next,et.next=null,M.lastBaseUpdate=et,M.shared.pending=null}}while(!0);vt===null&&($e=wt),M.baseState=$e,M.firstBaseUpdate=Ze,M.lastBaseUpdate=vt,A===null&&(M.shared.lanes=0),Zl|=Z,i.lanes=Z,i.memoizedState=wt}}function Uv(i,c){if(typeof i!="function")throw Error(r(191,i));i.call(c)}function Lp(i,c){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)Uv(p[i],c)}var Ds=K(null),Kl=K(0);function ul(i,c){i=bl,j(Kl,i),j(Ds,c),bl=i|c.baseLanes}function vf(){j(Kl,bl),j(Ds,Ds.current)}function Bp(){bl=Kl.current,J(Ds),J(Kl)}var xi=0,Dn=null,br=null,Xn=null,Ec=!1,js=!1,Ha=!1,$c=0,Wl=0,ai=null,qv=0;function Zn(){throw Error(r(321))}function Au(i,c){if(c===null)return!1;for(var p=0;p<c.length&&p<i.length;p++)if(!Po(i[p],c[p]))return!1;return!0}function Fp(i,c,p,x,M,A){return xi=A,Dn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,V.H=i===null||i.memoizedState===null?i0:og,Ha=!1,A=p(x,M),Ha=!1,js&&(A=Xv(c,p,x,M)),Gv(i),A}function Gv(i){V.H=Ku;var c=br!==null&&br.next!==null;if(xi=0,Xn=br=Dn=null,Ec=!1,Wl=0,ai=null,c)throw Error(r(300));i===null||Ma||(i=i.dependencies,i!==null&&ff(i)&&(Ma=!0))}function Xv(i,c,p,x){Dn=i;var M=0;do{if(js&&(ai=null),Wl=0,js=!1,25<=M)throw Error(r(301));if(M+=1,Xn=br=null,i.updateQueue!=null){var A=i.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}V.H=l0,A=c(p,x)}while(js);return A}function Hp(){var i=V.H,c=i.useState()[0];return c=typeof c.then=="function"?Pu(c):c,i=i.useState()[0],(br!==null?br.memoizedState:null)!==i&&(Dn.flags|=1024),c}function Vp(){var i=$c!==0;return $c=0,i}function ks(i,c,p){c.updateQueue=i.updateQueue,c.flags&=-2053,i.lanes&=~p}function yf(i){if(Ec){for(i=i.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}Ec=!1}xi=0,Xn=br=Dn=null,js=!1,Wl=$c=0,ai=null}function ho(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?Dn.memoizedState=Xn=i:Xn=Xn.next=i,Xn}function pa(){if(br===null){var i=Dn.alternate;i=i!==null?i.memoizedState:null}else i=br.next;var c=Xn===null?Dn.memoizedState:Xn.next;if(c!==null)Xn=c,br=i;else{if(i===null)throw Dn.alternate===null?Error(r(467)):Error(r(310));br=i,i={memoizedState:br.memoizedState,baseState:br.baseState,baseQueue:br.baseQueue,queue:br.queue,next:null},Xn===null?Dn.memoizedState=Xn=i:Xn=Xn.next=i}return Xn}function Ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pu(i){var c=Wl;return Wl+=1,ai===null&&(ai=[]),i=kp(ai,i,c),c=Dn,(Xn===null?c.memoizedState:Xn.next)===null&&(c=c.alternate,V.H=c===null||c.memoizedState===null?i0:og),i}function bf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Pu(i);if(i.$$typeof===O)return ta(i)}throw Error(r(438,String(i)))}function zu(i){var c=null,p=Dn.updateQueue;if(p!==null&&(c=p.memoCache),c==null){var x=Dn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(c={data:x.data.map(function(M){return M.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),p===null&&(p=Ls(),Dn.updateQueue=p),p.memoCache=c,p=c.data[c.index],p===void 0)for(p=c.data[c.index]=Array(i),x=0;x<i;x++)p[x]=L;return c.index++,p}function ki(i,c){return typeof c=="function"?c(i):c}function xf(i){var c=pa();return Kp(c,br,i)}function Kp(i,c,p){var x=i.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=p;var M=i.baseQueue,A=x.pending;if(A!==null){if(M!==null){var Z=M.next;M.next=A.next,A.next=Z}c.baseQueue=M=A,x.pending=null}if(A=i.baseState,M===null)i.memoizedState=A;else{c=M.next;var ae=Z=null,$e=null,Ze=c,vt=!1;do{var wt=Ze.lane&-536870913;if(wt!==Ze.lane?(er&wt)===wt:(xi&wt)===wt){var it=Ze.revertLane;if(it===0)$e!==null&&($e=$e.next={lane:0,revertLane:0,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null}),wt===Sc&&(vt=!0);else if((xi&it)===it){Ze=Ze.next,it===Sc&&(vt=!0);continue}else wt={lane:0,revertLane:Ze.revertLane,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null},$e===null?(ae=$e=wt,Z=A):$e=$e.next=wt,Dn.lanes|=it,Zl|=it;wt=Ze.action,Ha&&p(A,wt),A=Ze.hasEagerState?Ze.eagerState:p(A,wt)}else it={lane:wt,revertLane:Ze.revertLane,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null},$e===null?(ae=$e=it,Z=A):$e=$e.next=it,Dn.lanes|=wt,Zl|=wt;Ze=Ze.next}while(Ze!==null&&Ze!==c);if($e===null?Z=A:$e.next=ae,!Po(A,i.memoizedState)&&(Ma=!0,vt&&(p=go,p!==null)))throw p;i.memoizedState=A,i.baseState=Z,i.baseQueue=$e,x.lastRenderedState=A}return M===null&&(x.lanes=0),[i.memoizedState,x.dispatch]}function Wp(i){var c=pa(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var x=p.dispatch,M=p.pending,A=c.memoizedState;if(M!==null){p.pending=null;var Z=M=M.next;do A=i(A,Z.action),Z=Z.next;while(Z!==M);Po(A,c.memoizedState)||(Ma=!0),c.memoizedState=A,c.baseQueue===null&&(c.baseState=A),p.lastRenderedState=A}return[A,x]}function Up(i,c,p){var x=Dn,M=pa(),A=Gn;if(A){if(p===void 0)throw Error(r(407));p=p()}else p=c();var Z=!Po((br||M).memoizedState,p);Z&&(M.memoizedState=p,Ma=!0),M=M.queue;var ae=Cf.bind(null,x,M,i);if(ku(2048,8,ae,[i]),M.getSnapshot!==c||Z||Xn!==null&&Xn.memoizedState.tag&1){if(x.flags|=2048,Oc(9,Mf(),Yv.bind(null,x,M,p,c),null),Ar===null)throw Error(r(349));A||(xi&124)!==0||Sf(x,c,p)}return p}function Sf(i,c,p){i.flags|=16384,i={getSnapshot:c,value:p},c=Dn.updateQueue,c===null?(c=Ls(),Dn.updateQueue=c,c.stores=[i]):(p=c.stores,p===null?c.stores=[i]:p.push(i))}function Yv(i,c,p,x){c.value=p,c.getSnapshot=x,qp(c)&&Gp(i)}function Cf(i,c,p){return p(function(){qp(c)&&Gp(i)})}function qp(i){var c=i.getSnapshot;i=i.value;try{var p=c();return!Po(i,p)}catch{return!0}}function Gp(i){var c=Ms(i,2);c!==null&&Fo(c,i,2)}function wf(i){var c=ho();if(typeof i=="function"){var p=i;if(i=p(),Ha){Fe(!0);try{p()}finally{Fe(!1)}}}return c.memoizedState=c.baseState=i,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:i},c}function Du(i,c,p,x){return i.baseState=p,Kp(i,br,typeof x=="function"?x:ki)}function hx(i,c,p,x,M){if(If(i))throw Error(r(485));if(i=c.action,i!==null){var A={payload:M,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){A.listeners.push(Z)}};V.T!==null?p(!0):A.isTransition=!1,x(A),p=c.pending,p===null?(A.next=c.pending=A,Xp(c,A)):(A.next=p.next,c.pending=p.next=A)}}function Xp(i,c){var p=c.action,x=c.payload,M=i.state;if(c.isTransition){var A=V.T,Z={};V.T=Z;try{var ae=p(M,x),$e=V.S;$e!==null&&$e(Z,ae),Yp(i,c,ae)}catch(Ze){Ef(i,c,Ze)}finally{V.T=A}}else try{A=p(M,x),Yp(i,c,A)}catch(Ze){Ef(i,c,Ze)}}function Yp(i,c,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(x){Qv(i,c,x)},function(x){return Ef(i,c,x)}):Qv(i,c,p)}function Qv(i,c,p){c.status="fulfilled",c.value=p,Zv(c),i.state=p,c=i.pending,c!==null&&(p=c.next,p===c?i.pending=null:(p=p.next,c.next=p,Xp(i,p)))}function Ef(i,c,p){var x=i.pending;if(i.pending=null,x!==null){x=x.next;do c.status="rejected",c.reason=p,Zv(c),c=c.next;while(c!==x)}i.action=null}function Zv(i){i=i.listeners;for(var c=0;c<i.length;c++)(0,i[c])()}function $f(i,c){return c}function Qp(i,c){if(Gn){var p=Ar.formState;if(p!==null){e:{var x=Dn;if(Gn){if(Wr){t:{for(var M=Wr,A=mo;M.nodeType!==8;){if(!A){M=null;break t}if(M=wi(M.nextSibling),M===null){M=null;break t}}A=M.data,M=A==="F!"||A==="F"?M:null}if(M){Wr=wi(M.nextSibling),x=M.data==="F!";break e}}ni(x)}x=!1}x&&(c=p[0])}}return p=ho(),p.memoizedState=p.baseState=c,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$f,lastRenderedState:c},p.queue=x,p=ng.bind(null,Dn,x),x.dispatch=p,x=wf(!1),A=rg.bind(null,Dn,!1,x.queue),x=ho(),M={state:c,dispatch:null,action:i,pending:null},x.queue=M,p=hx.bind(null,Dn,M,A,p),M.dispatch=p,x.memoizedState=i,[c,p,!1]}function Of(i){var c=pa();return Jv(c,br,i)}function Jv(i,c,p){if(c=Kp(i,c,$f)[0],i=xf(ki)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var x=Pu(c)}catch(Z){throw Z===Ya?gf:Z}else x=c;c=pa();var M=c.queue,A=M.dispatch;return p!==c.memoizedState&&(Dn.flags|=2048,Oc(9,Mf(),Zp.bind(null,M,p),null)),[x,A,i]}function Zp(i,c){i.action=c}function An(i){var c=pa(),p=br;if(p!==null)return Jv(c,p,i);pa(),c=c.memoizedState,p=pa();var x=p.queue.dispatch;return p.memoizedState=i,[c,x,!1]}function Oc(i,c,p,x){return i={tag:i,create:p,deps:x,inst:c,next:null},c=Dn.updateQueue,c===null&&(c=Ls(),Dn.updateQueue=c),p=c.lastEffect,p===null?c.lastEffect=i.next=i:(x=p.next,p.next=i,i.next=x,c.lastEffect=i),i}function Mf(){return{destroy:void 0,resource:void 0}}function Mc(){return pa().memoizedState}function ju(i,c,p,x){var M=ho();x=x===void 0?null:x,Dn.flags|=i,M.memoizedState=Oc(1|c,Mf(),p,x)}function ku(i,c,p,x){var M=pa();x=x===void 0?null:x;var A=M.memoizedState.inst;br!==null&&x!==null&&Au(x,br.memoizedState.deps)?M.memoizedState=Oc(c,A,p,x):(Dn.flags|=i,M.memoizedState=Oc(1|c,A,p,x))}function e0(i,c){ju(8390656,8,i,c)}function jo(i,c){ku(2048,8,i,c)}function t0(i,c){return ku(4,2,i,c)}function Lu(i,c){return ku(4,4,i,c)}function Rf(i,c){if(typeof c=="function"){i=i();var p=c(i);return function(){typeof p=="function"?p():c(null)}}if(c!=null)return i=i(),c.current=i,function(){c.current=null}}function Jp(i,c,p){p=p!=null?p.concat([i]):null,ku(4,4,Rf.bind(null,c,i),p)}function Nf(){}function vo(i,c){var p=pa();c=c===void 0?null:c;var x=p.memoizedState;return c!==null&&Au(c,x[1])?x[0]:(p.memoizedState=[i,c],i)}function dl(i,c){var p=pa();c=c===void 0?null:c;var x=p.memoizedState;if(c!==null&&Au(c,x[1]))return x[0];if(x=i(),Ha){Fe(!0);try{i()}finally{Fe(!1)}}return p.memoizedState=[x,c],x}function Bu(i,c,p){return p===void 0||(xi&1073741824)!==0?i.memoizedState=c:(i.memoizedState=p,i=P0(),Dn.lanes|=i,Zl|=i,p)}function eg(i,c,p,x){return Po(p,c)?p:Ds.current!==null?(i=Bu(i,p,x),Po(i,c)||(Ma=!0),i):(xi&42)===0?(Ma=!0,i.memoizedState=p):(i=P0(),Dn.lanes|=i,Zl|=i,c)}function Fu(i,c,p,x,M){var A=W.p;W.p=A!==0&&8>A?A:8;var Z=V.T,ae={};V.T=ae,rg(i,!1,c,p);try{var $e=M(),Ze=V.S;if(Ze!==null&&Ze(ae,$e),$e!==null&&typeof $e=="object"&&typeof $e.then=="function"){var vt=gx($e,x);Bs(i,c,vt,Ka(i))}else Bs(i,c,x,Ka(i))}catch(wt){Bs(i,c,{then:function(){},status:"rejected",reason:wt},Ka())}finally{W.p=A,V.T=Z}}function n0(){}function Hu(i,c,p,x){if(i.tag!==5)throw Error(r(476));var M=tg(i).queue;Fu(i,M,c,G,p===null?n0:function(){return Tf(i),p(x)})}function tg(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:G},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:p},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function Tf(i){var c=tg(i).next.queue;Bs(i,c,{},Ka())}function Vu(){return ta(Gc)}function fl(){return pa().memoizedState}function r0(){return pa().memoizedState}function Ul(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var p=Ka();i=Vl(p);var x=cl(c,i,p);x!==null&&(Fo(x,c,p),Iu(x,c,p)),c={cache:zp()},i.payload=c;return}c=c.return}}function a0(i,c,p){var x=Ka();p={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},If(i)?o0(c,p):(p=yc(i,c,p,x),p!==null&&(Fo(p,i,x),ag(p,c,x)))}function ng(i,c,p){var x=Ka();Bs(i,c,p,x)}function Bs(i,c,p,x){var M={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(If(i))o0(c,M);else{var A=i.alternate;if(i.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var Z=c.lastRenderedState,ae=A(Z,p);if(M.hasEagerState=!0,M.eagerState=ae,Po(ae,Z))return hi(i,c,M,0),Ar===null&&Os(),!1}catch{}finally{}if(p=yc(i,c,M,x),p!==null)return Fo(p,i,x),ag(p,c,x),!0}return!1}function rg(i,c,p,x){if(x={lane:2,revertLane:Jf(),action:x,hasEagerState:!1,eagerState:null,next:null},If(i)){if(c)throw Error(r(479))}else c=yc(i,p,x,2),c!==null&&Fo(c,i,2)}function If(i){var c=i.alternate;return i===Dn||c!==null&&c===Dn}function o0(i,c){js=Ec=!0;var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}function ag(i,c,p){if((p&4194048)!==0){var x=c.lanes;x&=i.pendingLanes,p|=x,c.lanes=p,Lt(i,p)}}var Ku={readContext:ta,use:bf,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useInsertionEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useSyncExternalStore:Zn,useId:Zn,useHostTransitionStatus:Zn,useFormState:Zn,useActionState:Zn,useOptimistic:Zn,useMemoCache:Zn,useCacheRefresh:Zn},i0={readContext:ta,use:bf,useCallback:function(i,c){return ho().memoizedState=[i,c===void 0?null:c],i},useContext:ta,useEffect:e0,useImperativeHandle:function(i,c,p){p=p!=null?p.concat([i]):null,ju(4194308,4,Rf.bind(null,c,i),p)},useLayoutEffect:function(i,c){return ju(4194308,4,i,c)},useInsertionEffect:function(i,c){ju(4,2,i,c)},useMemo:function(i,c){var p=ho();c=c===void 0?null:c;var x=i();if(Ha){Fe(!0);try{i()}finally{Fe(!1)}}return p.memoizedState=[x,c],x},useReducer:function(i,c,p){var x=ho();if(p!==void 0){var M=p(c);if(Ha){Fe(!0);try{p(c)}finally{Fe(!1)}}}else M=c;return x.memoizedState=x.baseState=M,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:M},x.queue=i,i=i.dispatch=a0.bind(null,Dn,i),[x.memoizedState,i]},useRef:function(i){var c=ho();return i={current:i},c.memoizedState=i},useState:function(i){i=wf(i);var c=i.queue,p=ng.bind(null,Dn,c);return c.dispatch=p,[i.memoizedState,p]},useDebugValue:Nf,useDeferredValue:function(i,c){var p=ho();return Bu(p,i,c)},useTransition:function(){var i=wf(!1);return i=Fu.bind(null,Dn,i.queue,!0,!1),ho().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,p){var x=Dn,M=ho();if(Gn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Ar===null)throw Error(r(349));(er&124)!==0||Sf(x,c,p)}M.memoizedState=p;var A={value:p,getSnapshot:c};return M.queue=A,e0(Cf.bind(null,x,A,i),[i]),x.flags|=2048,Oc(9,Mf(),Yv.bind(null,x,A,p,c),null),p},useId:function(){var i=ho(),c=Ar.identifierPrefix;if(Gn){var p=ll,x=Kr;p=(x&~(1<<32-xe(x)-1)).toString(32)+p,c="«"+c+"R"+p,p=$c++,0<p&&(c+="H"+p.toString(32)),c+="»"}else p=qv++,c="«"+c+"r"+p.toString(32)+"»";return i.memoizedState=c},useHostTransitionStatus:Vu,useFormState:Qp,useActionState:Qp,useOptimistic:function(i){var c=ho();c.memoizedState=c.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=p,c=rg.bind(null,Dn,!0,p),p.dispatch=c,[i,c]},useMemoCache:zu,useCacheRefresh:function(){return ho().memoizedState=Ul.bind(null,Dn)}},og={readContext:ta,use:bf,useCallback:vo,useContext:ta,useEffect:jo,useImperativeHandle:Jp,useInsertionEffect:t0,useLayoutEffect:Lu,useMemo:dl,useReducer:xf,useRef:Mc,useState:function(){return xf(ki)},useDebugValue:Nf,useDeferredValue:function(i,c){var p=pa();return eg(p,br.memoizedState,i,c)},useTransition:function(){var i=xf(ki)[0],c=pa().memoizedState;return[typeof i=="boolean"?i:Pu(i),c]},useSyncExternalStore:Up,useId:fl,useHostTransitionStatus:Vu,useFormState:Of,useActionState:Of,useOptimistic:function(i,c){var p=pa();return Du(p,br,i,c)},useMemoCache:zu,useCacheRefresh:r0},l0={readContext:ta,use:bf,useCallback:vo,useContext:ta,useEffect:jo,useImperativeHandle:Jp,useInsertionEffect:t0,useLayoutEffect:Lu,useMemo:dl,useReducer:Wp,useRef:Mc,useState:function(){return Wp(ki)},useDebugValue:Nf,useDeferredValue:function(i,c){var p=pa();return br===null?Bu(p,i,c):eg(p,br.memoizedState,i,c)},useTransition:function(){var i=Wp(ki)[0],c=pa().memoizedState;return[typeof i=="boolean"?i:Pu(i),c]},useSyncExternalStore:Up,useId:fl,useHostTransitionStatus:Vu,useFormState:An,useActionState:An,useOptimistic:function(i,c){var p=pa();return br!==null?Du(p,br,i,c):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:zu,useCacheRefresh:r0},va=null,yo=0;function _f(i){var c=yo;return yo+=1,va===null&&(va=[]),kp(va,i,c)}function Wu(i,c){c=c.props.ref,i.ref=c!==void 0?c:null}function Fs(i,c){throw c.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(c),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":i)))}function Hs(i){var c=i._init;return c(i._payload)}function ig(i){function c(Ke,Pe){if(i){var Ge=Ke.deletions;Ge===null?(Ke.deletions=[Pe],Ke.flags|=16):Ge.push(Pe)}}function p(Ke,Pe){if(!i)return null;for(;Pe!==null;)c(Ke,Pe),Pe=Pe.sibling;return null}function x(Ke){for(var Pe=new Map;Ke!==null;)Ke.key!==null?Pe.set(Ke.key,Ke):Pe.set(Ke.index,Ke),Ke=Ke.sibling;return Pe}function M(Ke,Pe){return Ke=Xa(Ke,Pe),Ke.index=0,Ke.sibling=null,Ke}function A(Ke,Pe,Ge){return Ke.index=Ge,i?(Ge=Ke.alternate,Ge!==null?(Ge=Ge.index,Ge<Pe?(Ke.flags|=67108866,Pe):Ge):(Ke.flags|=67108866,Pe)):(Ke.flags|=1048576,Pe)}function Z(Ke){return i&&Ke.alternate===null&&(Ke.flags|=67108866),Ke}function ae(Ke,Pe,Ge,bt){return Pe===null||Pe.tag!==6?(Pe=_p(Ge,Ke.mode,bt),Pe.return=Ke,Pe):(Pe=M(Pe,Ge),Pe.return=Ke,Pe)}function $e(Ke,Pe,Ge,bt){var en=Ge.type;return en===S?vt(Ke,Pe,Ge.props.children,bt,Ge.key):Pe!==null&&(Pe.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===z&&Hs(en)===Pe.type)?(Pe=M(Pe,Ge.props),Wu(Pe,Ge),Pe.return=Ke,Pe):(Pe=uf(Ge.type,Ge.key,Ge.props,null,Ke.mode,bt),Wu(Pe,Ge),Pe.return=Ke,Pe)}function Ze(Ke,Pe,Ge,bt){return Pe===null||Pe.tag!==4||Pe.stateNode.containerInfo!==Ge.containerInfo||Pe.stateNode.implementation!==Ge.implementation?(Pe=bc(Ge,Ke.mode,bt),Pe.return=Ke,Pe):(Pe=M(Pe,Ge.children||[]),Pe.return=Ke,Pe)}function vt(Ke,Pe,Ge,bt,en){return Pe===null||Pe.tag!==7?(Pe=Ts(Ge,Ke.mode,bt,en),Pe.return=Ke,Pe):(Pe=M(Pe,Ge),Pe.return=Ke,Pe)}function wt(Ke,Pe,Ge){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number"||typeof Pe=="bigint")return Pe=_p(""+Pe,Ke.mode,Ge),Pe.return=Ke,Pe;if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case v:return Ge=uf(Pe.type,Pe.key,Pe.props,null,Ke.mode,Ge),Wu(Ge,Pe),Ge.return=Ke,Ge;case y:return Pe=bc(Pe,Ke.mode,Ge),Pe.return=Ke,Pe;case z:var bt=Pe._init;return Pe=bt(Pe._payload),wt(Ke,Pe,Ge)}if(q(Pe)||F(Pe))return Pe=Ts(Pe,Ke.mode,Ge,null),Pe.return=Ke,Pe;if(typeof Pe.then=="function")return wt(Ke,_f(Pe),Ge);if(Pe.$$typeof===O)return wt(Ke,mf(Ke,Pe),Ge);Fs(Ke,Pe)}return null}function it(Ke,Pe,Ge,bt){var en=Pe!==null?Pe.key:null;if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return en!==null?null:ae(Ke,Pe,""+Ge,bt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case v:return Ge.key===en?$e(Ke,Pe,Ge,bt):null;case y:return Ge.key===en?Ze(Ke,Pe,Ge,bt):null;case z:return en=Ge._init,Ge=en(Ge._payload),it(Ke,Pe,Ge,bt)}if(q(Ge)||F(Ge))return en!==null?null:vt(Ke,Pe,Ge,bt,null);if(typeof Ge.then=="function")return it(Ke,Pe,_f(Ge),bt);if(Ge.$$typeof===O)return it(Ke,Pe,mf(Ke,Ge),bt);Fs(Ke,Ge)}return null}function et(Ke,Pe,Ge,bt,en){if(typeof bt=="string"&&bt!==""||typeof bt=="number"||typeof bt=="bigint")return Ke=Ke.get(Ge)||null,ae(Pe,Ke,""+bt,en);if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case v:return Ke=Ke.get(bt.key===null?Ge:bt.key)||null,$e(Pe,Ke,bt,en);case y:return Ke=Ke.get(bt.key===null?Ge:bt.key)||null,Ze(Pe,Ke,bt,en);case z:var Fn=bt._init;return bt=Fn(bt._payload),et(Ke,Pe,Ge,bt,en)}if(q(bt)||F(bt))return Ke=Ke.get(Ge)||null,vt(Pe,Ke,bt,en,null);if(typeof bt.then=="function")return et(Ke,Pe,Ge,_f(bt),en);if(bt.$$typeof===O)return et(Ke,Pe,Ge,mf(Pe,bt),en);Fs(Pe,bt)}return null}function yn(Ke,Pe,Ge,bt){for(var en=null,Fn=null,cn=Pe,bn=Pe=0,Ta=null;cn!==null&&bn<Ge.length;bn++){cn.index>bn?(Ta=cn,cn=null):Ta=cn.sibling;var ir=it(Ke,cn,Ge[bn],bt);if(ir===null){cn===null&&(cn=Ta);break}i&&cn&&ir.alternate===null&&c(Ke,cn),Pe=A(ir,Pe,bn),Fn===null?en=ir:Fn.sibling=ir,Fn=ir,cn=Ta}if(bn===Ge.length)return p(Ke,cn),Gn&&Is(Ke,bn),en;if(cn===null){for(;bn<Ge.length;bn++)cn=wt(Ke,Ge[bn],bt),cn!==null&&(Pe=A(cn,Pe,bn),Fn===null?en=cn:Fn.sibling=cn,Fn=cn);return Gn&&Is(Ke,bn),en}for(cn=x(cn);bn<Ge.length;bn++)Ta=et(cn,Ke,bn,Ge[bn],bt),Ta!==null&&(i&&Ta.alternate!==null&&cn.delete(Ta.key===null?bn:Ta.key),Pe=A(Ta,Pe,bn),Fn===null?en=Ta:Fn.sibling=Ta,Fn=Ta);return i&&cn.forEach(function(ss){return c(Ke,ss)}),Gn&&Is(Ke,bn),en}function hn(Ke,Pe,Ge,bt){if(Ge==null)throw Error(r(151));for(var en=null,Fn=null,cn=Pe,bn=Pe=0,Ta=null,ir=Ge.next();cn!==null&&!ir.done;bn++,ir=Ge.next()){cn.index>bn?(Ta=cn,cn=null):Ta=cn.sibling;var ss=it(Ke,cn,ir.value,bt);if(ss===null){cn===null&&(cn=Ta);break}i&&cn&&ss.alternate===null&&c(Ke,cn),Pe=A(ss,Pe,bn),Fn===null?en=ss:Fn.sibling=ss,Fn=ss,cn=Ta}if(ir.done)return p(Ke,cn),Gn&&Is(Ke,bn),en;if(cn===null){for(;!ir.done;bn++,ir=Ge.next())ir=wt(Ke,ir.value,bt),ir!==null&&(Pe=A(ir,Pe,bn),Fn===null?en=ir:Fn.sibling=ir,Fn=ir);return Gn&&Is(Ke,bn),en}for(cn=x(cn);!ir.done;bn++,ir=Ge.next())ir=et(cn,Ke,bn,ir.value,bt),ir!==null&&(i&&ir.alternate!==null&&cn.delete(ir.key===null?bn:ir.key),Pe=A(ir,Pe,bn),Fn===null?en=ir:Fn.sibling=ir,Fn=ir);return i&&cn.forEach(function(Zx){return c(Ke,Zx)}),Gn&&Is(Ke,bn),en}function $r(Ke,Pe,Ge,bt){if(typeof Ge=="object"&&Ge!==null&&Ge.type===S&&Ge.key===null&&(Ge=Ge.props.children),typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case v:e:{for(var en=Ge.key;Pe!==null;){if(Pe.key===en){if(en=Ge.type,en===S){if(Pe.tag===7){p(Ke,Pe.sibling),bt=M(Pe,Ge.props.children),bt.return=Ke,Ke=bt;break e}}else if(Pe.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===z&&Hs(en)===Pe.type){p(Ke,Pe.sibling),bt=M(Pe,Ge.props),Wu(bt,Ge),bt.return=Ke,Ke=bt;break e}p(Ke,Pe);break}else c(Ke,Pe);Pe=Pe.sibling}Ge.type===S?(bt=Ts(Ge.props.children,Ke.mode,bt,Ge.key),bt.return=Ke,Ke=bt):(bt=uf(Ge.type,Ge.key,Ge.props,null,Ke.mode,bt),Wu(bt,Ge),bt.return=Ke,Ke=bt)}return Z(Ke);case y:e:{for(en=Ge.key;Pe!==null;){if(Pe.key===en)if(Pe.tag===4&&Pe.stateNode.containerInfo===Ge.containerInfo&&Pe.stateNode.implementation===Ge.implementation){p(Ke,Pe.sibling),bt=M(Pe,Ge.children||[]),bt.return=Ke,Ke=bt;break e}else{p(Ke,Pe);break}else c(Ke,Pe);Pe=Pe.sibling}bt=bc(Ge,Ke.mode,bt),bt.return=Ke,Ke=bt}return Z(Ke);case z:return en=Ge._init,Ge=en(Ge._payload),$r(Ke,Pe,Ge,bt)}if(q(Ge))return yn(Ke,Pe,Ge,bt);if(F(Ge)){if(en=F(Ge),typeof en!="function")throw Error(r(150));return Ge=en.call(Ge),hn(Ke,Pe,Ge,bt)}if(typeof Ge.then=="function")return $r(Ke,Pe,_f(Ge),bt);if(Ge.$$typeof===O)return $r(Ke,Pe,mf(Ke,Ge),bt);Fs(Ke,Ge)}return typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint"?(Ge=""+Ge,Pe!==null&&Pe.tag===6?(p(Ke,Pe.sibling),bt=M(Pe,Ge),bt.return=Ke,Ke=bt):(p(Ke,Pe),bt=_p(Ge,Ke.mode,bt),bt.return=Ke,Ke=bt),Z(Ke)):p(Ke,Pe)}return function(Ke,Pe,Ge,bt){try{yo=0;var en=$r(Ke,Pe,Ge,bt);return va=null,en}catch(cn){if(cn===Ya||cn===gf)throw cn;var Fn=fo(29,cn,null,Ke.mode);return Fn.lanes=bt,Fn.return=Ke,Fn}finally{}}}var Vs=ig(!0),s0=ig(!1),ko=K(null),Qa=null;function oi(i){var c=i.alternate;j(na,na.current&1),j(ko,i),Qa===null&&(c===null||Ds.current!==null||c.memoizedState!==null)&&(Qa=i)}function c0(i){if(i.tag===22){if(j(na,na.current),j(ko,i),Qa===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(Qa=i)}}else ml()}function ml(){j(na,na.current),j(ko,ko.current)}function Li(i){J(ko),Qa===i&&(Qa=null),J(na)}var na=K(0);function Uu(i){for(var c=i;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||Ja(p)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function Rc(i,c,p,x){c=i.memoizedState,p=p(x,c),p=p==null?c:m({},c,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var qu={enqueueSetState:function(i,c,p){i=i._reactInternals;var x=Ka(),M=Vl(x);M.payload=c,p!=null&&(M.callback=p),c=cl(i,M,x),c!==null&&(Fo(c,i,x),Iu(c,i,x))},enqueueReplaceState:function(i,c,p){i=i._reactInternals;var x=Ka(),M=Vl(x);M.tag=1,M.payload=c,p!=null&&(M.callback=p),c=cl(i,M,x),c!==null&&(Fo(c,i,x),Iu(c,i,x))},enqueueForceUpdate:function(i,c){i=i._reactInternals;var p=Ka(),x=Vl(p);x.tag=2,c!=null&&(x.callback=c),c=cl(i,x,p),c!==null&&(Fo(c,i,p),Iu(c,i,p))}};function Gu(i,c,p,x,M,A,Z){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(x,A,Z):c.prototype&&c.prototype.isPureReactComponent?!Di(p,x)||!Di(M,A):!0}function u0(i,c,p,x){i=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,x),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,x),c.state!==i&&qu.enqueueReplaceState(c,c.state,null)}function ql(i,c){var p=c;if("ref"in c){p={};for(var x in c)x!=="ref"&&(p[x]=c[x])}if(i=i.defaultProps){p===c&&(p=m({},p));for(var M in i)p[M]===void 0&&(p[M]=i[M])}return p}var Ks=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function lg(i){Ks(i)}function Af(i){console.error(i)}function d0(i){Ks(i)}function Xu(i,c){try{var p=i.onUncaughtError;p(c.value,{componentStack:c.stack})}catch(x){setTimeout(function(){throw x})}}function Bi(i,c,p){try{var x=i.onCaughtError;x(p.value,{componentStack:p.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(M){setTimeout(function(){throw M})}}function Pf(i,c,p){return p=Vl(p),p.tag=3,p.payload={element:null},p.callback=function(){Xu(i,c)},p}function sg(i){return i=Vl(i),i.tag=3,i}function f0(i,c,p,x){var M=p.type.getDerivedStateFromError;if(typeof M=="function"){var A=x.value;i.payload=function(){return M(A)},i.callback=function(){Bi(c,p,x)}}var Z=p.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(i.callback=function(){Bi(c,p,x),typeof M!="function"&&(Jl===null?Jl=new Set([this]):Jl.add(this));var ae=x.stack;this.componentDidCatch(x.value,{componentStack:ae!==null?ae:""})})}function m0(i,c,p,x,M){if(p.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(c=p.alternate,c!==null&&Ru(c,p,M,!0),p=ko.current,p!==null){switch(p.tag){case 13:return Qa===null?Mg():p.alternate===null&&ra===0&&(ra=3),p.flags&=-257,p.flags|=65536,p.lanes=M,x===jp?p.flags|=16384:(c=p.updateQueue,c===null?p.updateQueue=new Set([x]):c.add(x),Tg(i,x,M)),!1;case 22:return p.flags|=65536,x===jp?p.flags|=16384:(c=p.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([x])},p.updateQueue=c):(p=c.retryQueue,p===null?c.retryQueue=new Set([x]):p.add(x)),Tg(i,x,M)),!1}throw Error(r(435,p.tag))}return Tg(i,x,M),Mg(),!1}if(Gn)return c=ko.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=M,x!==xc&&(i=Error(r(422),{cause:x}),Fl(Ga(i,p)))):(x!==xc&&(c=Error(r(423),{cause:x}),Fl(Ga(c,p))),i=i.current.alternate,i.flags|=65536,M&=-M,i.lanes|=M,x=Ga(x,p),M=Pf(i.stateNode,x,M),yi(i,M),ra!==4&&(ra=2)),!1;var A=Error(r(520),{cause:x});if(A=Ga(A,p),od===null?od=[A]:od.push(A),ra!==4&&(ra=2),c===null)return!0;x=Ga(x,p),p=c;do{switch(p.tag){case 3:return p.flags|=65536,i=M&-M,p.lanes|=i,i=Pf(p.stateNode,x,i),yi(p,i),!1;case 1:if(c=p.type,A=p.stateNode,(p.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Jl===null||!Jl.has(A))))return p.flags|=65536,M&=-M,p.lanes|=M,M=sg(M),f0(M,i,p,x),yi(p,M),!1}p=p.return}while(p!==null);return!1}var p0=Error(r(461)),Ma=!1;function jr(i,c,p,x){c.child=i===null?s0(c,null,p,x):Vs(c,i.child,p,x)}function zf(i,c,p,x,M){p=p.render;var A=c.ref;if("ref"in x){var Z={};for(var ae in x)ae!=="ref"&&(Z[ae]=x[ae])}else Z=x;return As(c),x=Fp(i,c,p,Z,A,M),ae=Vp(),i!==null&&!Ma?(ks(i,c,M),pl(i,c,M)):(Gn&&ae&&Pp(c),c.flags|=1,jr(i,c,x,M),c.child)}function Df(i,c,p,x,M){if(i===null){var A=p.type;return typeof A=="function"&&!Ns(A)&&A.defaultProps===void 0&&p.compare===null?(c.tag=15,c.type=A,jf(i,c,A,x,M)):(i=uf(p.type,null,x,c,c.mode,M),i.ref=c.ref,i.return=c,c.child=i)}if(A=i.child,!Si(i,M)){var Z=A.memoizedProps;if(p=p.compare,p=p!==null?p:Di,p(Z,x)&&i.ref===c.ref)return pl(i,c,M)}return c.flags|=1,i=Xa(A,x),i.ref=c.ref,i.return=c,c.child=i}function jf(i,c,p,x,M){if(i!==null){var A=i.memoizedProps;if(Di(A,x)&&i.ref===c.ref)if(Ma=!1,c.pendingProps=x=A,Si(i,M))(i.flags&131072)!==0&&(Ma=!0);else return c.lanes=i.lanes,pl(i,c,M)}return Nc(i,c,p,x,M)}function Yu(i,c,p){var x=c.pendingProps,M=x.children,A=i!==null?i.memoizedState:null;if(x.mode==="hidden"){if((c.flags&128)!==0){if(x=A!==null?A.baseLanes|p:p,i!==null){for(M=c.child=i.child,A=0;M!==null;)A=A|M.lanes|M.childLanes,M=M.sibling;c.childLanes=A&~x}else c.childLanes=0,c.child=null;return Ws(i,c,x,p)}if((p&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},i!==null&&pf(c,A!==null?A.cachePool:null),A!==null?ul(c,A):vf(),c0(c);else return c.lanes=c.childLanes=536870912,Ws(i,c,A!==null?A.baseLanes|p:p,p)}else A!==null?(pf(c,A.cachePool),ul(c,A),ml(),c.memoizedState=null):(i!==null&&pf(c,null),vf(),ml());return jr(i,c,M,p),c.child}function Ws(i,c,p,x){var M=sl();return M=M===null?null:{parent:Rr._currentValue,pool:M},c.memoizedState={baseLanes:p,cachePool:M},i!==null&&pf(c,null),vf(),c0(c),i!==null&&Ru(i,c,x,!0),null}function pn(i,c){var p=c.ref;if(p===null)i!==null&&i.ref!==null&&(c.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(i===null||i.ref!==p)&&(c.flags|=4194816)}}function Nc(i,c,p,x,M){return As(c),p=Fp(i,c,p,x,void 0,M),x=Vp(),i!==null&&!Ma?(ks(i,c,M),pl(i,c,M)):(Gn&&x&&Pp(c),c.flags|=1,jr(i,c,p,M),c.child)}function kf(i,c,p,x,M,A){return As(c),c.updateQueue=null,p=Xv(c,x,p,M),Gv(i),x=Vp(),i!==null&&!Ma?(ks(i,c,A),pl(i,c,A)):(Gn&&x&&Pp(c),c.flags|=1,jr(i,c,p,A),c.child)}function Gl(i,c,p,x,M){if(As(c),c.stateNode===null){var A=Rs,Z=p.contextType;typeof Z=="object"&&Z!==null&&(A=ta(Z)),A=new p(x,A),c.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=qu,c.stateNode=A,A._reactInternals=c,A=c.stateNode,A.props=x,A.state=c.memoizedState,A.refs={},zs(c),Z=p.contextType,A.context=typeof Z=="object"&&Z!==null?ta(Z):Rs,A.state=c.memoizedState,Z=p.getDerivedStateFromProps,typeof Z=="function"&&(Rc(c,p,Z,x),A.state=c.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(Z=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),Z!==A.state&&qu.enqueueReplaceState(A,A.state,null),Fa(c,x,A,M),bi(),A.state=c.memoizedState),typeof A.componentDidMount=="function"&&(c.flags|=4194308),x=!0}else if(i===null){A=c.stateNode;var ae=c.memoizedProps,$e=ql(p,ae);A.props=$e;var Ze=A.context,vt=p.contextType;Z=Rs,typeof vt=="object"&&vt!==null&&(Z=ta(vt));var wt=p.getDerivedStateFromProps;vt=typeof wt=="function"||typeof A.getSnapshotBeforeUpdate=="function",ae=c.pendingProps!==ae,vt||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(ae||Ze!==Z)&&u0(c,A,x,Z),ji=!1;var it=c.memoizedState;A.state=it,Fa(c,x,A,M),bi(),Ze=c.memoizedState,ae||it!==Ze||ji?(typeof wt=="function"&&(Rc(c,p,wt,x),Ze=c.memoizedState),($e=ji||Gu(c,p,$e,x,it,Ze,Z))?(vt||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(c.flags|=4194308)):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=x,c.memoizedState=Ze),A.props=x,A.state=Ze,A.context=Z,x=$e):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),x=!1)}else{A=c.stateNode,wc(i,c),Z=c.memoizedProps,vt=ql(p,Z),A.props=vt,wt=c.pendingProps,it=A.context,Ze=p.contextType,$e=Rs,typeof Ze=="object"&&Ze!==null&&($e=ta(Ze)),ae=p.getDerivedStateFromProps,(Ze=typeof ae=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(Z!==wt||it!==$e)&&u0(c,A,x,$e),ji=!1,it=c.memoizedState,A.state=it,Fa(c,x,A,M),bi();var et=c.memoizedState;Z!==wt||it!==et||ji||i!==null&&i.dependencies!==null&&ff(i.dependencies)?(typeof ae=="function"&&(Rc(c,p,ae,x),et=c.memoizedState),(vt=ji||Gu(c,p,vt,x,it,et,$e)||i!==null&&i.dependencies!==null&&ff(i.dependencies))?(Ze||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(x,et,$e),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(x,et,$e)),typeof A.componentDidUpdate=="function"&&(c.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof A.componentDidUpdate!="function"||Z===i.memoizedProps&&it===i.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&it===i.memoizedState||(c.flags|=1024),c.memoizedProps=x,c.memoizedState=et),A.props=x,A.state=et,A.context=$e,x=vt):(typeof A.componentDidUpdate!="function"||Z===i.memoizedProps&&it===i.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&it===i.memoizedState||(c.flags|=1024),x=!1)}return A=x,pn(i,c),x=(c.flags&128)!==0,A||x?(A=c.stateNode,p=x&&typeof p.getDerivedStateFromError!="function"?null:A.render(),c.flags|=1,i!==null&&x?(c.child=Vs(c,i.child,null,M),c.child=Vs(c,null,p,M)):jr(i,c,p,M),c.memoizedState=A.state,i=c.child):i=pl(i,c,M),i}function g0(i,c,p,x){return Mu(),c.flags|=256,jr(i,c,p,x),c.child}var Qu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lf(i){return{baseLanes:i,cachePool:Fv()}}function Ra(i,c,p){return i=i!==null?i.childLanes&~p:0,c&&(i|=li),i}function h0(i,c,p){var x=c.pendingProps,M=!1,A=(c.flags&128)!==0,Z;if((Z=A)||(Z=i!==null&&i.memoizedState===null?!1:(na.current&2)!==0),Z&&(M=!0,c.flags&=-129),Z=(c.flags&32)!==0,c.flags&=-33,i===null){if(Gn){if(M?oi(c):ml(),Gn){var ae=Wr,$e;if($e=ae){e:{for($e=ae,ae=mo;$e.nodeType!==8;){if(!ae){ae=null;break e}if($e=wi($e.nextSibling),$e===null){ae=null;break e}}ae=$e}ae!==null?(c.memoizedState={dehydrated:ae,treeContext:Dr!==null?{id:Kr,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},$e=fo(18,null,null,0),$e.stateNode=ae,$e.return=c,c.child=$e,ha=c,Wr=null,$e=!0):$e=!1}$e||ni(c)}if(ae=c.memoizedState,ae!==null&&(ae=ae.dehydrated,ae!==null))return Ja(ae)?c.lanes=32:c.lanes=536870912,null;Li(c)}return ae=x.children,x=x.fallback,M?(ml(),M=c.mode,ae=Zu({mode:"hidden",children:ae},M),x=Ts(x,M,p,null),ae.return=c,x.return=c,ae.sibling=x,c.child=ae,M=c.child,M.memoizedState=Lf(p),M.childLanes=Ra(i,Z,p),c.memoizedState=Qu,x):(oi(c),cg(c,ae))}if($e=i.memoizedState,$e!==null&&(ae=$e.dehydrated,ae!==null)){if(A)c.flags&256?(oi(c),c.flags&=-257,c=ug(i,c,p)):c.memoizedState!==null?(ml(),c.child=i.child,c.flags|=128,c=null):(ml(),M=x.fallback,ae=c.mode,x=Zu({mode:"visible",children:x.children},ae),M=Ts(M,ae,p,null),M.flags|=2,x.return=c,M.return=c,x.sibling=M,c.child=x,Vs(c,i.child,null,p),x=c.child,x.memoizedState=Lf(p),x.childLanes=Ra(i,Z,p),c.memoizedState=Qu,c=M);else if(oi(c),Ja(ae)){if(Z=ae.nextSibling&&ae.nextSibling.dataset,Z)var Ze=Z.dgst;Z=Ze,x=Error(r(419)),x.stack="",x.digest=Z,Fl({value:x,source:null,stack:null}),c=ug(i,c,p)}else if(Ma||Ru(i,c,p,!1),Z=(p&i.childLanes)!==0,Ma||Z){if(Z=Ar,Z!==null&&(x=p&-p,x=(x&42)!==0?1:_t(x),x=(x&(Z.suspendedLanes|p))!==0?0:x,x!==0&&x!==$e.retryLane))throw $e.retryLane=x,Ms(i,x),Fo(Z,i,x),p0;ae.data==="$?"||Mg(),c=ug(i,c,p)}else ae.data==="$?"?(c.flags|=192,c.child=i.child,c=null):(i=$e.treeContext,Wr=wi(ae.nextSibling),ha=c,Gn=!0,vi=null,mo=!1,i!==null&&(ei[ti++]=Kr,ei[ti++]=ll,ei[ti++]=Dr,Kr=i.id,ll=i.overflow,Dr=c),c=cg(c,x.children),c.flags|=4096);return c}return M?(ml(),M=x.fallback,ae=c.mode,$e=i.child,Ze=$e.sibling,x=Xa($e,{mode:"hidden",children:x.children}),x.subtreeFlags=$e.subtreeFlags&65011712,Ze!==null?M=Xa(Ze,M):(M=Ts(M,ae,p,null),M.flags|=2),M.return=c,x.return=c,x.sibling=M,c.child=x,x=M,M=c.child,ae=i.child.memoizedState,ae===null?ae=Lf(p):($e=ae.cachePool,$e!==null?(Ze=Rr._currentValue,$e=$e.parent!==Ze?{parent:Ze,pool:Ze}:$e):$e=Fv(),ae={baseLanes:ae.baseLanes|p,cachePool:$e}),M.memoizedState=ae,M.childLanes=Ra(i,Z,p),c.memoizedState=Qu,x):(oi(c),p=i.child,i=p.sibling,p=Xa(p,{mode:"visible",children:x.children}),p.return=c,p.sibling=null,i!==null&&(Z=c.deletions,Z===null?(c.deletions=[i],c.flags|=16):Z.push(i)),c.child=p,c.memoizedState=null,p)}function cg(i,c){return c=Zu({mode:"visible",children:c},i.mode),c.return=i,i.child=c}function Zu(i,c){return i=fo(22,i,null,c),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function ug(i,c,p){return Vs(c,i.child,null,p),i=cg(c,c.pendingProps.children),i.flags|=2,c.memoizedState=null,i}function dg(i,c,p){i.lanes|=c;var x=i.alternate;x!==null&&(x.lanes|=c),po(i.return,c,p)}function fg(i,c,p,x,M){var A=i.memoizedState;A===null?i.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:x,tail:p,tailMode:M}:(A.isBackwards=c,A.rendering=null,A.renderingStartTime=0,A.last=x,A.tail=p,A.tailMode=M)}function v0(i,c,p){var x=c.pendingProps,M=x.revealOrder,A=x.tail;if(jr(i,c,x.children,p),x=na.current,(x&2)!==0)x=x&1|2,c.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=c.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&dg(i,p,c);else if(i.tag===19)dg(i,p,c);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===c)break e;for(;i.sibling===null;){if(i.return===null||i.return===c)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}x&=1}switch(j(na,x),M){case"forwards":for(p=c.child,M=null;p!==null;)i=p.alternate,i!==null&&Uu(i)===null&&(M=p),p=p.sibling;p=M,p===null?(M=c.child,c.child=null):(M=p.sibling,p.sibling=null),fg(c,!1,M,p,A);break;case"backwards":for(p=null,M=c.child,c.child=null;M!==null;){if(i=M.alternate,i!==null&&Uu(i)===null){c.child=M;break}i=M.sibling,M.sibling=p,p=M,M=i}fg(c,!0,p,null,A);break;case"together":fg(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function pl(i,c,p){if(i!==null&&(c.dependencies=i.dependencies),Zl|=c.lanes,(p&c.childLanes)===0)if(i!==null){if(Ru(i,c,p,!1),(p&c.childLanes)===0)return null}else return null;if(i!==null&&c.child!==i.child)throw Error(r(153));if(c.child!==null){for(i=c.child,p=Xa(i,i.pendingProps),c.child=p,p.return=c;i.sibling!==null;)i=i.sibling,p=p.sibling=Xa(i,i.pendingProps),p.return=c;p.sibling=null}return c.child}function Si(i,c){return(i.lanes&c)!==0?!0:(i=i.dependencies,!!(i!==null&&ff(i)))}function Za(i,c,p){switch(c.tag){case 3:pe(c,c.stateNode.containerInfo),Do(c,Rr,i.memoizedState.cache),Mu();break;case 27:case 5:he(c);break;case 4:pe(c,c.stateNode.containerInfo);break;case 10:Do(c,c.type,c.memoizedProps.value);break;case 13:var x=c.memoizedState;if(x!==null)return x.dehydrated!==null?(oi(c),c.flags|=128,null):(p&c.child.childLanes)!==0?h0(i,c,p):(oi(c),i=pl(i,c,p),i!==null?i.sibling:null);oi(c);break;case 19:var M=(i.flags&128)!==0;if(x=(p&c.childLanes)!==0,x||(Ru(i,c,p,!1),x=(p&c.childLanes)!==0),M){if(x)return v0(i,c,p);c.flags|=128}if(M=c.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),j(na,na.current),x)break;return null;case 22:case 23:return c.lanes=0,Yu(i,c,p);case 24:Do(c,Rr,i.memoizedState.cache)}return pl(i,c,p)}function Bf(i,c,p){if(i!==null)if(i.memoizedProps!==c.pendingProps)Ma=!0;else{if(!Si(i,p)&&(c.flags&128)===0)return Ma=!1,Za(i,c,p);Ma=(i.flags&131072)!==0}else Ma=!1,Gn&&(c.flags&1048576)!==0&&Ap(c,Eu,c.index);switch(c.lanes=0,c.tag){case 16:e:{i=c.pendingProps;var x=c.elementType,M=x._init;if(x=M(x._payload),c.type=x,typeof x=="function")Ns(x)?(i=ql(x,i),c.tag=1,c=Gl(null,c,x,i,p)):(c.tag=0,c=Nc(null,c,x,i,p));else{if(x!=null){if(M=x.$$typeof,M===N){c.tag=11,c=zf(null,c,x,i,p);break e}else if(M===_){c.tag=14,c=Df(null,c,x,i,p);break e}}throw c=k(x)||x,Error(r(306,c,""))}}return c;case 0:return Nc(i,c,c.type,c.pendingProps,p);case 1:return x=c.type,M=ql(x,c.pendingProps),Gl(i,c,x,M,p);case 3:e:{if(pe(c,c.stateNode.containerInfo),i===null)throw Error(r(387));x=c.pendingProps;var A=c.memoizedState;M=A.element,wc(i,c),Fa(c,x,null,p);var Z=c.memoizedState;if(x=Z.cache,Do(c,Rr,x),x!==A.cache&&Bn(c,[Rr],p,!0),bi(),x=Z.element,A.isDehydrated)if(A={element:x,isDehydrated:!1,cache:Z.cache},c.updateQueue.baseState=A,c.memoizedState=A,c.flags&256){c=g0(i,c,x,p);break e}else if(x!==M){M=Ga(Error(r(424)),c),Fl(M),c=g0(i,c,x,p);break e}else{switch(i=c.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Wr=wi(i.firstChild),ha=c,Gn=!0,vi=null,mo=!0,p=s0(c,null,x,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Mu(),x===M){c=pl(i,c,p);break e}jr(i,c,x,p)}c=c.child}return c;case 26:return pn(i,c),i===null?(p=m1(c.type,null,c.pendingProps,null))?c.memoizedState=p:Gn||(p=c.type,i=c.pendingProps,x=Gs(se.current).createElement(p),x[Qe]=c,x[ke]=i,xa(x,p,i),Mt(x),c.stateNode=x):c.memoizedState=m1(c.type,i.memoizedProps,c.pendingProps,i.memoizedState),null;case 27:return he(c),i===null&&Gn&&(x=c.stateNode=u1(c.type,c.pendingProps,se.current),ha=c,mo=!0,M=Wr,si(c.type)?(Lg=M,Wr=wi(x.firstChild)):Wr=M),jr(i,c,c.pendingProps.children,p),pn(i,c),i===null&&(c.flags|=4194304),c.child;case 5:return i===null&&Gn&&((M=x=Wr)&&(x=s1(x,c.type,c.pendingProps,mo),x!==null?(c.stateNode=x,ha=c,Wr=wi(x.firstChild),mo=!1,M=!0):M=!1),M||ni(c)),he(c),M=c.type,A=c.pendingProps,Z=i!==null?i.memoizedProps:null,x=A.children,rm(M,A)?x=null:Z!==null&&rm(M,Z)&&(c.flags|=32),c.memoizedState!==null&&(M=Fp(i,c,Hp,null,null,p),Gc._currentValue=M),pn(i,c),jr(i,c,x,p),c.child;case 6:return i===null&&Gn&&((i=p=Wr)&&(p=om(p,c.pendingProps,mo),p!==null?(c.stateNode=p,ha=c,Wr=null,i=!0):i=!1),i||ni(c)),null;case 13:return h0(i,c,p);case 4:return pe(c,c.stateNode.containerInfo),x=c.pendingProps,i===null?c.child=Vs(c,null,x,p):jr(i,c,x,p),c.child;case 11:return zf(i,c,c.type,c.pendingProps,p);case 7:return jr(i,c,c.pendingProps,p),c.child;case 8:return jr(i,c,c.pendingProps.children,p),c.child;case 12:return jr(i,c,c.pendingProps.children,p),c.child;case 10:return x=c.pendingProps,Do(c,c.type,x.value),jr(i,c,x.children,p),c.child;case 9:return M=c.type._context,x=c.pendingProps.children,As(c),M=ta(M),x=x(M),c.flags|=1,jr(i,c,x,p),c.child;case 14:return Df(i,c,c.type,c.pendingProps,p);case 15:return jf(i,c,c.type,c.pendingProps,p);case 19:return v0(i,c,p);case 31:return x=c.pendingProps,p=c.mode,x={mode:x.mode,children:x.children},i===null?(p=Zu(x,p),p.ref=c.ref,c.child=p,p.return=c,c=p):(p=Xa(i.child,x),p.ref=c.ref,c.child=p,p.return=c,c=p),c;case 22:return Yu(i,c,p);case 24:return As(c),x=ta(Rr),i===null?(M=sl(),M===null&&(M=Ar,A=zp(),M.pooledCache=A,A.refCount++,A!==null&&(M.pooledCacheLanes|=p),M=A),c.memoizedState={parent:x,cache:M},zs(c),Do(c,Rr,M)):((i.lanes&p)!==0&&(wc(i,c),Fa(c,null,null,p),bi()),M=i.memoizedState,A=c.memoizedState,M.parent!==x?(M={parent:x,cache:x},c.memoizedState=M,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=M),Do(c,Rr,x)):(x=A.cache,Do(c,Rr,x),x!==M.cache&&Bn(c,[Rr],p,!0))),jr(i,c,c.pendingProps.children,p),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function gl(i){i.flags|=4}function Ff(i,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Sa(c)){if(c=ko.current,c!==null&&((er&4194048)===er?Qa!==null:(er&62914560)!==er&&(er&536870912)===0||c!==Qa))throw Cc=jp,Hv;i.flags|=8192}}function Hf(i,c){c!==null&&(i.flags|=4),i.flags&16384&&(c=i.tag!==22?Wt():536870912,i.lanes|=c,Dc|=c)}function Ju(i,c){if(!Gn)switch(i.tailMode){case"hidden":c=i.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var x=null;p!==null;)p.alternate!==null&&(x=p),p=p.sibling;x===null?c||i.tail===null?i.tail=null:i.tail.sibling=null:x.sibling=null}}function Nr(i){var c=i.alternate!==null&&i.alternate.child===i.child,p=0,x=0;if(c)for(var M=i.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags&65011712,x|=M.flags&65011712,M.return=i,M=M.sibling;else for(M=i.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags,x|=M.flags,M.return=i,M=M.sibling;return i.subtreeFlags|=x,i.childLanes=p,c}function y0(i,c,p){var x=c.pendingProps;switch($u(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nr(c),null;case 1:return Nr(c),null;case 3:return p=c.stateNode,x=null,i!==null&&(x=i.memoizedState.cache),c.memoizedState.cache!==x&&(c.flags|=2048),ri(Rr),Ce(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Ou(c)?gl(c):i===null||i.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,jv())),Nr(c),null;case 26:return p=c.memoizedState,i===null?(gl(c),p!==null?(Nr(c),Ff(c,p)):(Nr(c),c.flags&=-16777217)):p?p!==i.memoizedState?(gl(c),Nr(c),Ff(c,p)):(Nr(c),c.flags&=-16777217):(i.memoizedProps!==x&&gl(c),Nr(c),c.flags&=-16777217),null;case 27:me(c),p=se.current;var M=c.type;if(i!==null&&c.stateNode!=null)i.memoizedProps!==x&&gl(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return Nr(c),null}i=Y.current,Ou(c)?zv(c):(i=u1(M,x,p),c.stateNode=i,gl(c))}return Nr(c),null;case 5:if(me(c),p=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==x&&gl(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return Nr(c),null}if(i=Y.current,Ou(c))zv(c);else{switch(M=Gs(se.current),i){case 1:i=M.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:i=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":i=M.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":i=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":i=M.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof x.is=="string"?M.createElement("select",{is:x.is}):M.createElement("select"),x.multiple?i.multiple=!0:x.size&&(i.size=x.size);break;default:i=typeof x.is=="string"?M.createElement(p,{is:x.is}):M.createElement(p)}}i[Qe]=c,i[ke]=x;e:for(M=c.child;M!==null;){if(M.tag===5||M.tag===6)i.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===c)break e;for(;M.sibling===null;){if(M.return===null||M.return===c)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}c.stateNode=i;e:switch(xa(i,p,x),p){case"button":case"input":case"select":case"textarea":i=!!x.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&gl(c)}}return Nr(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==x&&gl(c);else{if(typeof x!="string"&&c.stateNode===null)throw Error(r(166));if(i=se.current,Ou(c)){if(i=c.stateNode,p=c.memoizedProps,x=null,M=ha,M!==null)switch(M.tag){case 27:case 5:x=M.memoizedProps}i[Qe]=c,i=!!(i.nodeValue===p||x!==null&&x.suppressHydrationWarning===!0||a1(i.nodeValue,p)),i||ni(c)}else i=Gs(i).createTextNode(x),i[Qe]=c,c.stateNode=i}return Nr(c),null;case 13:if(x=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(M=Ou(c),x!==null&&x.dehydrated!==null){if(i===null){if(!M)throw Error(r(318));if(M=c.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[Qe]=c}else Mu(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Nr(c),M=!1}else M=jv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=M),M=!0;if(!M)return c.flags&256?(Li(c),c):(Li(c),null)}if(Li(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=x!==null,i=i!==null&&i.memoizedState!==null,p){x=c.child,M=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(M=x.alternate.memoizedState.cachePool.pool);var A=null;x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(A=x.memoizedState.cachePool.pool),A!==M&&(x.flags|=2048)}return p!==i&&p&&(c.child.flags|=8192),Hf(c,c.updateQueue),Nr(c),null;case 4:return Ce(),i===null&&zg(c.stateNode.containerInfo),Nr(c),null;case 10:return ri(c.type),Nr(c),null;case 19:if(J(na),M=c.memoizedState,M===null)return Nr(c),null;if(x=(c.flags&128)!==0,A=M.rendering,A===null)if(x)Ju(M,!1);else{if(ra!==0||i!==null&&(i.flags&128)!==0)for(i=c.child;i!==null;){if(A=Uu(i),A!==null){for(c.flags|=128,Ju(M,!1),i=A.updateQueue,c.updateQueue=i,Hf(c,i),c.subtreeFlags=0,i=p,p=c.child;p!==null;)wu(p,i),p=p.sibling;return j(na,na.current&1|2),c.child}i=i.sibling}M.tail!==null&&je()>jc&&(c.flags|=128,x=!0,Ju(M,!1),c.lanes=4194304)}else{if(!x)if(i=Uu(A),i!==null){if(c.flags|=128,x=!0,i=i.updateQueue,c.updateQueue=i,Hf(c,i),Ju(M,!0),M.tail===null&&M.tailMode==="hidden"&&!A.alternate&&!Gn)return Nr(c),null}else 2*je()-M.renderingStartTime>jc&&p!==536870912&&(c.flags|=128,x=!0,Ju(M,!1),c.lanes=4194304);M.isBackwards?(A.sibling=c.child,c.child=A):(i=M.last,i!==null?i.sibling=A:c.child=A,M.last=A)}return M.tail!==null?(c=M.tail,M.rendering=c,M.tail=c.sibling,M.renderingStartTime=je(),c.sibling=null,i=na.current,j(na,x?i&1|2:i&1),c):(Nr(c),null);case 22:case 23:return Li(c),Bp(),x=c.memoizedState!==null,i!==null?i.memoizedState!==null!==x&&(c.flags|=8192):x&&(c.flags|=8192),x?(p&536870912)!==0&&(c.flags&128)===0&&(Nr(c),c.subtreeFlags&6&&(c.flags|=8192)):Nr(c),p=c.updateQueue,p!==null&&Hf(c,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),x=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(x=c.memoizedState.cachePool.pool),x!==p&&(c.flags|=2048),i!==null&&J(Ps),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),ri(Rr),Nr(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function b0(i,c){switch($u(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return ri(Rr),Ce(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return me(c),null;case 13:if(Li(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Mu()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return J(na),null;case 4:return Ce(),null;case 10:return ri(c.type),null;case 22:case 23:return Li(c),Bp(),i!==null&&J(Ps),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return ri(Rr),null;case 25:return null;default:return null}}function x0(i,c){switch($u(c),c.tag){case 3:ri(Rr),Ce();break;case 26:case 27:case 5:me(c);break;case 4:Ce();break;case 13:Li(c);break;case 19:J(na);break;case 10:ri(c.type);break;case 22:case 23:Li(c),Bp(),i!==null&&J(Ps);break;case 24:ri(Rr)}}function ed(i,c){try{var p=c.updateQueue,x=p!==null?p.lastEffect:null;if(x!==null){var M=x.next;p=M;do{if((p.tag&i)===i){x=void 0;var A=p.create,Z=p.inst;x=A(),Z.destroy=x}p=p.next}while(p!==M)}}catch(ae){Tr(c,c.return,ae)}}function Xl(i,c,p){try{var x=c.updateQueue,M=x!==null?x.lastEffect:null;if(M!==null){var A=M.next;x=A;do{if((x.tag&i)===i){var Z=x.inst,ae=Z.destroy;if(ae!==void 0){Z.destroy=void 0,M=c;var $e=p,Ze=ae;try{Ze()}catch(vt){Tr(M,$e,vt)}}}x=x.next}while(x!==A)}}catch(vt){Tr(c,c.return,vt)}}function S0(i){var c=i.updateQueue;if(c!==null){var p=i.stateNode;try{Lp(c,p)}catch(x){Tr(i,i.return,x)}}}function mg(i,c,p){p.props=ql(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(x){Tr(i,c,x)}}function Tc(i,c){try{var p=i.ref;if(p!==null){switch(i.tag){case 26:case 27:case 5:var x=i.stateNode;break;case 30:x=i.stateNode;break;default:x=i.stateNode}typeof p=="function"?i.refCleanup=p(x):p.current=x}}catch(M){Tr(i,c,M)}}function Fi(i,c){var p=i.ref,x=i.refCleanup;if(p!==null)if(typeof x=="function")try{x()}catch(M){Tr(i,c,M)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(M){Tr(i,c,M)}else p.current=null}function Vf(i){var c=i.type,p=i.memoizedProps,x=i.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":p.autoFocus&&x.focus();break e;case"img":p.src?x.src=p.src:p.srcSet&&(x.srcset=p.srcSet)}}catch(M){Tr(i,i.return,M)}}function Kf(i,c,p){try{var x=i.stateNode;Ix(x,i.type,p,c),x[ke]=c}catch(M){Tr(i,i.return,M)}}function Ic(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&si(i.type)||i.tag===4}function td(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Ic(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.tag===27&&si(i.type)||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 Wf(i,c,p){var x=i.tag;if(x===5||x===6)i=i.stateNode,c?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(i,c):(c=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,c.appendChild(i),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=tm));else if(x!==4&&(x===27&&si(i.type)&&(p=i.stateNode,c=null),i=i.child,i!==null))for(Wf(i,c,p),i=i.sibling;i!==null;)Wf(i,c,p),i=i.sibling}function nd(i,c,p){var x=i.tag;if(x===5||x===6)i=i.stateNode,c?p.insertBefore(i,c):p.appendChild(i);else if(x!==4&&(x===27&&si(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(nd(i,c,p),i=i.sibling;i!==null;)nd(i,c,p),i=i.sibling}function rd(i){var c=i.stateNode,p=i.memoizedProps;try{for(var x=i.type,M=c.attributes;M.length;)c.removeAttributeNode(M[0]);xa(c,x,p),c[Qe]=i,c[ke]=p}catch(A){Tr(i,i.return,A)}}var Hi=!1,hr=!1,hl=!1,C0=typeof WeakSet=="function"?WeakSet:Set,ya=null;function vx(i,c){if(i=i.containerInfo,Ci=cm,i=Av(i),Np(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var x=p.getSelection&&p.getSelection();if(x&&x.rangeCount!==0){p=x.anchorNode;var M=x.anchorOffset,A=x.focusNode;x=x.focusOffset;try{p.nodeType,A.nodeType}catch{p=null;break e}var Z=0,ae=-1,$e=-1,Ze=0,vt=0,wt=i,it=null;t:for(;;){for(var et;wt!==p||M!==0&&wt.nodeType!==3||(ae=Z+M),wt!==A||x!==0&&wt.nodeType!==3||($e=Z+x),wt.nodeType===3&&(Z+=wt.nodeValue.length),(et=wt.firstChild)!==null;)it=wt,wt=et;for(;;){if(wt===i)break t;if(it===p&&++Ze===M&&(ae=Z),it===A&&++vt===x&&($e=Z),(et=wt.nextSibling)!==null)break;wt=it,it=wt.parentNode}wt=et}p=ae===-1||$e===-1?null:{start:ae,end:$e}}else p=null}p=p||{start:0,end:0}}else p=null;for(nm={focusedElem:i,selectionRange:p},cm=!1,ya=c;ya!==null;)if(c=ya,i=c.child,(c.subtreeFlags&1024)!==0&&i!==null)i.return=c,ya=i;else for(;ya!==null;){switch(c=ya,A=c.alternate,i=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&A!==null){i=void 0,p=c,M=A.memoizedProps,A=A.memoizedState,x=p.stateNode;try{var yn=ql(p.type,M,p.elementType===p.type);i=x.getSnapshotBeforeUpdate(yn,A),x.__reactInternalSnapshotBeforeUpdate=i}catch(hn){Tr(p,p.return,hn)}}break;case 3:if((i&1024)!==0){if(i=c.stateNode.containerInfo,p=i.nodeType,p===9)kg(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":kg(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=c.sibling,i!==null){i.return=c.return,ya=i;break}ya=c.return}}function w0(i,c,p){var x=p.flags;switch(p.tag){case 0:case 11:case 15:Yl(i,p),x&4&&ed(5,p);break;case 1:if(Yl(i,p),x&4)if(i=p.stateNode,c===null)try{i.componentDidMount()}catch(Z){Tr(p,p.return,Z)}else{var M=ql(p.type,c.memoizedProps);c=c.memoizedState;try{i.componentDidUpdate(M,c,i.__reactInternalSnapshotBeforeUpdate)}catch(Z){Tr(p,p.return,Z)}}x&64&&S0(p),x&512&&Tc(p,p.return);break;case 3:if(Yl(i,p),x&64&&(i=p.updateQueue,i!==null)){if(c=null,p.child!==null)switch(p.child.tag){case 27:case 5:c=p.child.stateNode;break;case 1:c=p.child.stateNode}try{Lp(i,c)}catch(Z){Tr(p,p.return,Z)}}break;case 27:c===null&&x&4&&rd(p);case 26:case 5:Yl(i,p),c===null&&x&4&&Vf(p),x&512&&Tc(p,p.return);break;case 12:Yl(i,p);break;case 13:Yl(i,p),x&4&&O0(i,p),x&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=Yf.bind(null,p),Vc(i,p))));break;case 22:if(x=p.memoizedState!==null||Hi,!x){c=c!==null&&c.memoizedState!==null||hr,M=Hi;var A=hr;Hi=x,(hr=c)&&!A?yl(i,p,(p.subtreeFlags&8772)!==0):Yl(i,p),Hi=M,hr=A}break;case 30:break;default:Yl(i,p)}}function E0(i){var c=i.alternate;c!==null&&(i.alternate=null,E0(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&ct(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}var Ur=null,bo=!1;function vl(i,c,p){for(p=p.child;p!==null;)$0(i,c,p),p=p.sibling}function $0(i,c,p){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(oe,p)}catch{}switch(p.tag){case 26:hr||Fi(p,c),vl(i,c,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:hr||Fi(p,c);var x=Ur,M=bo;si(p.type)&&(Ur=p.stateNode,bo=!1),vl(i,c,p),pd(p.stateNode),Ur=x,bo=M;break;case 5:hr||Fi(p,c);case 6:if(x=Ur,M=bo,Ur=null,vl(i,c,p),Ur=x,bo=M,Ur!==null)if(bo)try{(Ur.nodeType===9?Ur.body:Ur.nodeName==="HTML"?Ur.ownerDocument.body:Ur).removeChild(p.stateNode)}catch(A){Tr(p,c,A)}else try{Ur.removeChild(p.stateNode)}catch(A){Tr(p,c,A)}break;case 18:Ur!==null&&(bo?(i=Ur,am(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),Cd(i)):am(Ur,p.stateNode));break;case 4:x=Ur,M=bo,Ur=p.stateNode.containerInfo,bo=!0,vl(i,c,p),Ur=x,bo=M;break;case 0:case 11:case 14:case 15:hr||Xl(2,p,c),hr||Xl(4,p,c),vl(i,c,p);break;case 1:hr||(Fi(p,c),x=p.stateNode,typeof x.componentWillUnmount=="function"&&mg(p,c,x)),vl(i,c,p);break;case 21:vl(i,c,p);break;case 22:hr=(x=hr)||p.memoizedState!==null,vl(i,c,p),hr=x;break;default:vl(i,c,p)}}function O0(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Cd(i)}catch(p){Tr(c,c.return,p)}}function yx(i){switch(i.tag){case 13:case 19:var c=i.stateNode;return c===null&&(c=i.stateNode=new C0),c;case 22:return i=i.stateNode,c=i._retryCache,c===null&&(c=i._retryCache=new C0),c;default:throw Error(r(435,i.tag))}}function pg(i,c){var p=yx(i);c.forEach(function(x){var M=Ex.bind(null,i,x);p.has(x)||(p.add(x),x.then(M,M))})}function Lo(i,c){var p=c.deletions;if(p!==null)for(var x=0;x<p.length;x++){var M=p[x],A=i,Z=c,ae=Z;e:for(;ae!==null;){switch(ae.tag){case 27:if(si(ae.type)){Ur=ae.stateNode,bo=!1;break e}break;case 5:Ur=ae.stateNode,bo=!1;break e;case 3:case 4:Ur=ae.stateNode.containerInfo,bo=!0;break e}ae=ae.return}if(Ur===null)throw Error(r(160));$0(A,Z,M),Ur=null,bo=!1,A=M.alternate,A!==null&&(A.return=null),M.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)gg(c,i),c=c.sibling}var ii=null;function gg(i,c){var p=i.alternate,x=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Lo(c,i),xo(i),x&4&&(Xl(3,i,i.return),ed(3,i),Xl(5,i,i.return));break;case 1:Lo(c,i),xo(i),x&512&&(hr||p===null||Fi(p,p.return)),x&64&&Hi&&(i=i.updateQueue,i!==null&&(x=i.callbacks,x!==null&&(p=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=p===null?x:p.concat(x))));break;case 26:var M=ii;if(Lo(c,i),xo(i),x&512&&(hr||p===null||Fi(p,p.return)),x&4){var A=p!==null?p.memoizedState:null;if(x=i.memoizedState,p===null)if(x===null)if(i.stateNode===null){e:{x=i.type,p=i.memoizedProps,M=M.ownerDocument||M;t:switch(x){case"title":A=M.getElementsByTagName("title")[0],(!A||A[pt]||A[Qe]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=M.createElement(x),M.head.insertBefore(A,M.querySelector("head > title"))),xa(A,x,p),A[Qe]=i,Mt(A),x=A;break e;case"link":var Z=h1("link","href",M).get(x+(p.href||""));if(Z){for(var ae=0;ae<Z.length;ae++)if(A=Z[ae],A.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&A.getAttribute("rel")===(p.rel==null?null:p.rel)&&A.getAttribute("title")===(p.title==null?null:p.title)&&A.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){Z.splice(ae,1);break t}}A=M.createElement(x),xa(A,x,p),M.head.appendChild(A);break;case"meta":if(Z=h1("meta","content",M).get(x+(p.content||""))){for(ae=0;ae<Z.length;ae++)if(A=Z[ae],A.getAttribute("content")===(p.content==null?null:""+p.content)&&A.getAttribute("name")===(p.name==null?null:p.name)&&A.getAttribute("property")===(p.property==null?null:p.property)&&A.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&A.getAttribute("charset")===(p.charSet==null?null:p.charSet)){Z.splice(ae,1);break t}}A=M.createElement(x),xa(A,x,p),M.head.appendChild(A);break;default:throw Error(r(468,x))}A[Qe]=i,Mt(A),x=A}i.stateNode=x}else v1(M,i.type,i.stateNode);else i.stateNode=g1(M,x,i.memoizedProps);else A!==x?(A===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):A.count--,x===null?v1(M,i.type,i.stateNode):g1(M,x,i.memoizedProps)):x===null&&i.stateNode!==null&&Kf(i,i.memoizedProps,p.memoizedProps)}break;case 27:Lo(c,i),xo(i),x&512&&(hr||p===null||Fi(p,p.return)),p!==null&&x&4&&Kf(i,i.memoizedProps,p.memoizedProps);break;case 5:if(Lo(c,i),xo(i),x&512&&(hr||p===null||Fi(p,p.return)),i.flags&32){M=i.stateNode;try{wr(M,"")}catch(et){Tr(i,i.return,et)}}x&4&&i.stateNode!=null&&(M=i.memoizedProps,Kf(i,M,p!==null?p.memoizedProps:M)),x&1024&&(hl=!0);break;case 6:if(Lo(c,i),xo(i),x&4){if(i.stateNode===null)throw Error(r(162));x=i.memoizedProps,p=i.stateNode;try{p.nodeValue=x}catch(et){Tr(i,i.return,et)}}break;case 3:if(qc=null,M=ii,ii=Tn(c.containerInfo),Lo(c,i),ii=M,xo(i),x&4&&p!==null&&p.memoizedState.isDehydrated)try{Cd(c.containerInfo)}catch(et){Tr(i,i.return,et)}hl&&(hl=!1,M0(i));break;case 4:x=ii,ii=Tn(i.stateNode.containerInfo),Lo(c,i),xo(i),ii=x;break;case 12:Lo(c,i),xo(i);break;case 13:Lo(c,i),xo(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Cg=je()),x&4&&(x=i.updateQueue,x!==null&&(i.updateQueue=null,pg(i,x)));break;case 22:M=i.memoizedState!==null;var $e=p!==null&&p.memoizedState!==null,Ze=Hi,vt=hr;if(Hi=Ze||M,hr=vt||$e,Lo(c,i),hr=vt,Hi=Ze,xo(i),x&8192)e:for(c=i.stateNode,c._visibility=M?c._visibility&-2:c._visibility|1,M&&(p===null||$e||Hi||hr||Us(i)),p=null,c=i;;){if(c.tag===5||c.tag===26){if(p===null){$e=p=c;try{if(A=$e.stateNode,M)Z=A.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{ae=$e.stateNode;var wt=$e.memoizedProps.style,it=wt!=null&&wt.hasOwnProperty("display")?wt.display:null;ae.style.display=it==null||typeof it=="boolean"?"":(""+it).trim()}}catch(et){Tr($e,$e.return,et)}}}else if(c.tag===6){if(p===null){$e=c;try{$e.stateNode.nodeValue=M?"":$e.memoizedProps}catch(et){Tr($e,$e.return,et)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===i)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break e;for(;c.sibling===null;){if(c.return===null||c.return===i)break e;p===c&&(p=null),c=c.return}p===c&&(p=null),c.sibling.return=c.return,c=c.sibling}x&4&&(x=i.updateQueue,x!==null&&(p=x.retryQueue,p!==null&&(x.retryQueue=null,pg(i,p))));break;case 19:Lo(c,i),xo(i),x&4&&(x=i.updateQueue,x!==null&&(i.updateQueue=null,pg(i,x)));break;case 30:break;case 21:break;default:Lo(c,i),xo(i)}}function xo(i){var c=i.flags;if(c&2){try{for(var p,x=i.return;x!==null;){if(Ic(x)){p=x;break}x=x.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var M=p.stateNode,A=td(i);nd(i,A,M);break;case 5:var Z=p.stateNode;p.flags&32&&(wr(Z,""),p.flags&=-33);var ae=td(i);nd(i,ae,Z);break;case 3:case 4:var $e=p.stateNode.containerInfo,Ze=td(i);Wf(i,Ze,$e);break;default:throw Error(r(161))}}catch(vt){Tr(i,i.return,vt)}i.flags&=-3}c&4096&&(i.flags&=-4097)}function M0(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var c=i;M0(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),i=i.sibling}}function Yl(i,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)w0(i,c.alternate,c),c=c.sibling}function Us(i){for(i=i.child;i!==null;){var c=i;switch(c.tag){case 0:case 11:case 14:case 15:Xl(4,c,c.return),Us(c);break;case 1:Fi(c,c.return);var p=c.stateNode;typeof p.componentWillUnmount=="function"&&mg(c,c.return,p),Us(c);break;case 27:pd(c.stateNode);case 26:case 5:Fi(c,c.return),Us(c);break;case 22:c.memoizedState===null&&Us(c);break;case 30:Us(c);break;default:Us(c)}i=i.sibling}}function yl(i,c,p){for(p=p&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var x=c.alternate,M=i,A=c,Z=A.flags;switch(A.tag){case 0:case 11:case 15:yl(M,A,p),ed(4,A);break;case 1:if(yl(M,A,p),x=A,M=x.stateNode,typeof M.componentDidMount=="function")try{M.componentDidMount()}catch(Ze){Tr(x,x.return,Ze)}if(x=A,M=x.updateQueue,M!==null){var ae=x.stateNode;try{var $e=M.shared.hiddenCallbacks;if($e!==null)for(M.shared.hiddenCallbacks=null,M=0;M<$e.length;M++)Uv($e[M],ae)}catch(Ze){Tr(x,x.return,Ze)}}p&&Z&64&&S0(A),Tc(A,A.return);break;case 27:rd(A);case 26:case 5:yl(M,A,p),p&&x===null&&Z&4&&Vf(A),Tc(A,A.return);break;case 12:yl(M,A,p);break;case 13:yl(M,A,p),p&&Z&4&&O0(M,A);break;case 22:A.memoizedState===null&&yl(M,A,p),Tc(A,A.return);break;case 30:break;default:yl(M,A,p)}c=c.sibling}}function hg(i,c){var p=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),i=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(i=c.memoizedState.cachePool.pool),i!==p&&(i!=null&&i.refCount++,p!=null&&Nu(p))}function vg(i,c){i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Nu(i))}function Vi(i,c,p,x){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)R0(i,c,p,x),c=c.sibling}function R0(i,c,p,x){var M=c.flags;switch(c.tag){case 0:case 11:case 15:Vi(i,c,p,x),M&2048&&ed(9,c);break;case 1:Vi(i,c,p,x);break;case 3:Vi(i,c,p,x),M&2048&&(i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Nu(i)));break;case 12:if(M&2048){Vi(i,c,p,x),i=c.stateNode;try{var A=c.memoizedProps,Z=A.id,ae=A.onPostCommit;typeof ae=="function"&&ae(Z,c.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch($e){Tr(c,c.return,$e)}}else Vi(i,c,p,x);break;case 13:Vi(i,c,p,x);break;case 23:break;case 22:A=c.stateNode,Z=c.alternate,c.memoizedState!==null?A._visibility&2?Vi(i,c,p,x):ad(i,c):A._visibility&2?Vi(i,c,p,x):(A._visibility|=2,_c(i,c,p,x,(c.subtreeFlags&10256)!==0)),M&2048&&hg(Z,c);break;case 24:Vi(i,c,p,x),M&2048&&vg(c.alternate,c);break;default:Vi(i,c,p,x)}}function _c(i,c,p,x,M){for(M=M&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var A=i,Z=c,ae=p,$e=x,Ze=Z.flags;switch(Z.tag){case 0:case 11:case 15:_c(A,Z,ae,$e,M),ed(8,Z);break;case 23:break;case 22:var vt=Z.stateNode;Z.memoizedState!==null?vt._visibility&2?_c(A,Z,ae,$e,M):ad(A,Z):(vt._visibility|=2,_c(A,Z,ae,$e,M)),M&&Ze&2048&&hg(Z.alternate,Z);break;case 24:_c(A,Z,ae,$e,M),M&&Ze&2048&&vg(Z.alternate,Z);break;default:_c(A,Z,ae,$e,M)}c=c.sibling}}function ad(i,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var p=i,x=c,M=x.flags;switch(x.tag){case 22:ad(p,x),M&2048&&hg(x.alternate,x);break;case 24:ad(p,x),M&2048&&vg(x.alternate,x);break;default:ad(p,x)}c=c.sibling}}var Va=8192;function Ac(i){if(i.subtreeFlags&Va)for(i=i.child;i!==null;)N0(i),i=i.sibling}function N0(i){switch(i.tag){case 26:Ac(i),i.flags&Va&&i.memoizedState!==null&&Vx(ii,i.memoizedState,i.memoizedProps);break;case 5:Ac(i);break;case 3:case 4:var c=ii;ii=Tn(i.stateNode.containerInfo),Ac(i),ii=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=Va,Va=16777216,Ac(i),Va=c):Ac(i));break;default:Ac(i)}}function T0(i){var c=i.alternate;if(c!==null&&(i=c.child,i!==null)){c.child=null;do c=i.sibling,i.sibling=null,i=c;while(i!==null)}}function Pc(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];ya=x,_0(x,i)}T0(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)I0(i),i=i.sibling}function I0(i){switch(i.tag){case 0:case 11:case 15:Pc(i),i.flags&2048&&Xl(9,i,i.return);break;case 3:Pc(i);break;case 12:Pc(i);break;case 22:var c=i.stateNode;i.memoizedState!==null&&c._visibility&2&&(i.return===null||i.return.tag!==13)?(c._visibility&=-3,Uf(i)):Pc(i);break;default:Pc(i)}}function Uf(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];ya=x,_0(x,i)}T0(i)}for(i=i.child;i!==null;){switch(c=i,c.tag){case 0:case 11:case 15:Xl(8,c,c.return),Uf(c);break;case 22:p=c.stateNode,p._visibility&2&&(p._visibility&=-3,Uf(c));break;default:Uf(c)}i=i.sibling}}function _0(i,c){for(;ya!==null;){var p=ya;switch(p.tag){case 0:case 11:case 15:Xl(8,p,c);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var x=p.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Nu(p.memoizedState.cache)}if(x=p.child,x!==null)x.return=p,ya=x;else e:for(p=i;ya!==null;){x=ya;var M=x.sibling,A=x.return;if(E0(x),x===p){ya=null;break e}if(M!==null){M.return=A,ya=M;break e}ya=A}}}var bx={getCacheForType:function(i){var c=ta(Rr),p=c.data.get(i);return p===void 0&&(p=i(),c.data.set(i,p)),p}},yg=typeof WeakMap=="function"?WeakMap:Map,xr=0,Ar=null,Vn=null,er=0,Sr=0,Bo=null,Ql=!1,zc=!1,bg=!1,bl=0,ra=0,Zl=0,qs=0,xg=0,li=0,Dc=0,od=null,So=null,Sg=!1,Cg=0,jc=1/0,id=null,Jl=null,ka=0,es=null,kc=null,Lc=0,wg=0,Eg=null,A0=null,Bc=0,$g=null;function Ka(){if((xr&2)!==0&&er!==0)return er&-er;if(V.T!==null){var i=Sc;return i!==0?i:Jf()}return ve()}function P0(){li===0&&(li=(er&536870912)===0||Gn?tn():536870912);var i=ko.current;return i!==null&&(i.flags|=32),li}function Fo(i,c,p){(i===Ar&&(Sr===2||Sr===9)||i.cancelPendingCommit!==null)&&(Fc(i,0),ts(i,er,li,!1)),Qt(i,p),((xr&2)===0||i!==Ar)&&(i===Ar&&((xr&2)===0&&(qs|=p),ra===4&&ts(i,er,li,!1)),Ki(i))}function z0(i,c,p){if((xr&6)!==0)throw Error(r(327));var x=!p&&(c&124)===0&&(c&i.expiredLanes)===0||gt(i,c),M=x?Cx(i,c):Rg(i,c,!0),A=x;do{if(M===0){zc&&!x&&ts(i,c,0,!1);break}else{if(p=i.current.alternate,A&&!xx(p)){M=Rg(i,c,!1),A=!1;continue}if(M===2){if(A=c,i.errorRecoveryDisabledLanes&A)var Z=0;else Z=i.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){c=Z;e:{var ae=i;M=od;var $e=ae.current.memoizedState.isDehydrated;if($e&&(Fc(ae,Z).flags|=256),Z=Rg(ae,Z,!1),Z!==2){if(bg&&!$e){ae.errorRecoveryDisabledLanes|=A,qs|=A,M=4;break e}A=So,So=M,A!==null&&(So===null?So=A:So.push.apply(So,A))}M=Z}if(A=!1,M!==2)continue}}if(M===1){Fc(i,0),ts(i,c,0,!0);break}e:{switch(x=i,A=M,A){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:ts(x,c,li,!Ql);break e;case 2:So=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(M=Cg+300-je(),10<M)){if(ts(x,c,li,!Ql),at(x,0,!0)!==0)break e;x.timeoutHandle=o1(D0.bind(null,x,p,So,id,Sg,c,li,qs,Dc,Ql,A,2,-0,0),M);break e}D0(x,p,So,id,Sg,c,li,qs,Dc,Ql,A,0,-0,0)}}break}while(!0);Ki(i)}function D0(i,c,p,x,M,A,Z,ae,$e,Ze,vt,wt,it,et){if(i.timeoutHandle=-1,wt=c.subtreeFlags,(wt&8192||(wt&16785408)===16785408)&&(Na={stylesheets:null,count:0,unsuspend:Hx},N0(c),wt=Kx(),wt!==null)){i.cancelPendingCommit=wt(ld.bind(null,i,c,A,p,x,M,Z,ae,$e,vt,1,it,et)),ts(i,A,Z,!Ze);return}ld(i,c,A,p,x,M,Z,ae,$e)}function xx(i){for(var c=i;;){var p=c.tag;if((p===0||p===11||p===15)&&c.flags&16384&&(p=c.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var x=0;x<p.length;x++){var M=p[x],A=M.getSnapshot;M=M.value;try{if(!Po(A(),M))return!1}catch{return!1}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ts(i,c,p,x){c&=~xg,c&=~qs,i.suspendedLanes|=c,i.pingedLanes&=~c,x&&(i.warmLanes|=c),x=i.expirationTimes;for(var M=c;0<M;){var A=31-xe(M),Z=1<<A;x[A]=-1,M&=~Z}p!==0&&Zt(i,p,c)}function qf(){return(xr&6)===0?(ud(0),!1):!0}function Og(){if(Vn!==null){if(Sr===0)var i=Vn.return;else i=Vn,re=Hl=null,yf(i),va=null,yo=0,i=Vn;for(;i!==null;)x0(i.alternate,i),i=i.return;Vn=null}}function Fc(i,c){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,Ax(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),Og(),Ar=i,Vn=p=Xa(i.current,null),er=c,Sr=0,Bo=null,Ql=!1,zc=gt(i,c),bg=!1,Dc=li=xg=qs=Zl=ra=0,So=od=null,Sg=!1,(c&8)!==0&&(c|=c&32);var x=i.entangledLanes;if(x!==0)for(i=i.entanglements,x&=c;0<x;){var M=31-xe(x),A=1<<M;c|=i[M],x&=~A}return bl=c,Os(),p}function j0(i,c){Dn=null,V.H=Ku,c===Ya||c===gf?(c=Kv(),Sr=3):c===Hv?(c=Kv(),Sr=4):Sr=c===p0?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Bo=c,Vn===null&&(ra=1,Xu(i,Ga(c,i.current)))}function k0(){var i=V.H;return V.H=Ku,i===null?Ku:i}function L0(){var i=V.A;return V.A=bx,i}function Mg(){ra=4,Ql||(er&4194048)!==er&&ko.current!==null||(zc=!0),(Zl&134217727)===0&&(qs&134217727)===0||Ar===null||ts(Ar,er,li,!1)}function Rg(i,c,p){var x=xr;xr|=2;var M=k0(),A=L0();(Ar!==i||er!==c)&&(id=null,Fc(i,c)),c=!1;var Z=ra;e:do try{if(Sr!==0&&Vn!==null){var ae=Vn,$e=Bo;switch(Sr){case 8:Og(),Z=6;break e;case 3:case 2:case 9:case 6:ko.current===null&&(c=!0);var Ze=Sr;if(Sr=0,Bo=null,Hc(i,ae,$e,Ze),p&&zc){Z=0;break e}break;default:Ze=Sr,Sr=0,Bo=null,Hc(i,ae,$e,Ze)}}Sx(),Z=ra;break}catch(vt){j0(i,vt)}while(!0);return c&&i.shellSuspendCounter++,re=Hl=null,xr=x,V.H=M,V.A=A,Vn===null&&(Ar=null,er=0,Os()),Z}function Sx(){for(;Vn!==null;)Ng(Vn)}function Cx(i,c){var p=xr;xr|=2;var x=k0(),M=L0();Ar!==i||er!==c?(id=null,jc=je()+500,Fc(i,c)):zc=gt(i,c);e:do try{if(Sr!==0&&Vn!==null){c=Vn;var A=Bo;t:switch(Sr){case 1:Sr=0,Bo=null,Hc(i,c,A,1);break;case 2:case 9:if(Vv(A)){Sr=0,Bo=null,F0(c);break}c=function(){Sr!==2&&Sr!==9||Ar!==i||(Sr=7),Ki(i)},A.then(c,c);break e;case 3:Sr=7;break e;case 4:Sr=5;break e;case 7:Vv(A)?(Sr=0,Bo=null,F0(c)):(Sr=0,Bo=null,Hc(i,c,A,7));break;case 5:var Z=null;switch(Vn.tag){case 26:Z=Vn.memoizedState;case 5:case 27:var ae=Vn;if(!Z||Sa(Z)){Sr=0,Bo=null;var $e=ae.sibling;if($e!==null)Vn=$e;else{var Ze=ae.return;Ze!==null?(Vn=Ze,Gf(Ze)):Vn=null}break t}}Sr=0,Bo=null,Hc(i,c,A,5);break;case 6:Sr=0,Bo=null,Hc(i,c,A,6);break;case 8:Og(),ra=6;break e;default:throw Error(r(462))}}B0();break}catch(vt){j0(i,vt)}while(!0);return re=Hl=null,V.H=x,V.A=M,xr=p,Vn!==null?0:(Ar=null,er=0,Os(),ra)}function B0(){for(;Vn!==null&&!Oe();)Ng(Vn)}function Ng(i){var c=Bf(i.alternate,i,bl);i.memoizedProps=i.pendingProps,c===null?Gf(i):Vn=c}function F0(i){var c=i,p=c.alternate;switch(c.tag){case 15:case 0:c=kf(p,c,c.pendingProps,c.type,void 0,er);break;case 11:c=kf(p,c,c.pendingProps,c.type.render,c.ref,er);break;case 5:yf(c);default:x0(p,c),c=Vn=wu(c,bl),c=Bf(p,c,bl)}i.memoizedProps=i.pendingProps,c===null?Gf(i):Vn=c}function Hc(i,c,p,x){re=Hl=null,yf(c),va=null,yo=0;var M=c.return;try{if(m0(i,M,c,p,er)){ra=1,Xu(i,Ga(p,i.current)),Vn=null;return}}catch(A){if(M!==null)throw Vn=M,A;ra=1,Xu(i,Ga(p,i.current)),Vn=null;return}c.flags&32768?(Gn||x===1?i=!0:zc||(er&536870912)!==0?i=!1:(Ql=i=!0,(x===2||x===9||x===3||x===6)&&(x=ko.current,x!==null&&x.tag===13&&(x.flags|=16384))),H0(c,i)):Gf(c)}function Gf(i){var c=i;do{if((c.flags&32768)!==0){H0(c,Ql);return}i=c.return;var p=y0(c.alternate,c,bl);if(p!==null){Vn=p;return}if(c=c.sibling,c!==null){Vn=c;return}Vn=c=i}while(c!==null);ra===0&&(ra=5)}function H0(i,c){do{var p=b0(i.alternate,i);if(p!==null){p.flags&=32767,Vn=p;return}if(p=i.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!c&&(i=i.sibling,i!==null)){Vn=i;return}Vn=i=p}while(i!==null);ra=6,Vn=null}function ld(i,c,p,x,M,A,Z,ae,$e){i.cancelPendingCommit=null;do Xf();while(ka!==0);if((xr&6)!==0)throw Error(r(327));if(c!==null){if(c===i.current)throw Error(r(177));if(A=c.lanes|c.childLanes,A|=Ip,nn(i,p,A,Z,ae,$e),i===Ar&&(Vn=Ar=null,er=0),kc=c,es=i,Lc=p,wg=A,Eg=M,A0=x,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Y0(ze,function(){return q0(),null})):(i.callbackNode=null,i.callbackPriority=0),x=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||x){x=V.T,V.T=null,M=W.p,W.p=2,Z=xr,xr|=4;try{vx(i,c,p)}finally{xr=Z,W.p=M,V.T=x}}ka=1,V0(),K0(),W0()}}function V0(){if(ka===1){ka=0;var i=es,c=kc,p=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||p){p=V.T,V.T=null;var x=W.p;W.p=2;var M=xr;xr|=4;try{gg(c,i);var A=nm,Z=Av(i.containerInfo),ae=A.focusedElem,$e=A.selectionRange;if(Z!==ae&&ae&&ae.ownerDocument&&_v(ae.ownerDocument.documentElement,ae)){if($e!==null&&Np(ae)){var Ze=$e.start,vt=$e.end;if(vt===void 0&&(vt=Ze),"selectionStart"in ae)ae.selectionStart=Ze,ae.selectionEnd=Math.min(vt,ae.value.length);else{var wt=ae.ownerDocument||document,it=wt&&wt.defaultView||window;if(it.getSelection){var et=it.getSelection(),yn=ae.textContent.length,hn=Math.min($e.start,yn),$r=$e.end===void 0?hn:Math.min($e.end,yn);!et.extend&&hn>$r&&(Z=$r,$r=hn,hn=Z);var Ke=Rp(ae,hn),Pe=Rp(ae,$r);if(Ke&&Pe&&(et.rangeCount!==1||et.anchorNode!==Ke.node||et.anchorOffset!==Ke.offset||et.focusNode!==Pe.node||et.focusOffset!==Pe.offset)){var Ge=wt.createRange();Ge.setStart(Ke.node,Ke.offset),et.removeAllRanges(),hn>$r?(et.addRange(Ge),et.extend(Pe.node,Pe.offset)):(Ge.setEnd(Pe.node,Pe.offset),et.addRange(Ge))}}}}for(wt=[],et=ae;et=et.parentNode;)et.nodeType===1&&wt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof ae.focus=="function"&&ae.focus(),ae=0;ae<wt.length;ae++){var bt=wt[ae];bt.element.scrollLeft=bt.left,bt.element.scrollTop=bt.top}}cm=!!Ci,nm=Ci=null}finally{xr=M,W.p=x,V.T=p}}i.current=c,ka=2}}function K0(){if(ka===2){ka=0;var i=es,c=kc,p=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||p){p=V.T,V.T=null;var x=W.p;W.p=2;var M=xr;xr|=4;try{w0(i,c.alternate,c)}finally{xr=M,W.p=x,V.T=p}}ka=3}}function W0(){if(ka===4||ka===3){ka=0,Ne();var i=es,c=kc,p=Lc,x=A0;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?ka=5:(ka=0,kc=es=null,U0(i,i.pendingLanes));var M=i.pendingLanes;if(M===0&&(Jl=null),It(p),c=c.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(oe,c,void 0,(c.current.flags&128)===128)}catch{}if(x!==null){c=V.T,M=W.p,W.p=2,V.T=null;try{for(var A=i.onRecoverableError,Z=0;Z<x.length;Z++){var ae=x[Z];A(ae.value,{componentStack:ae.stack})}}finally{V.T=c,W.p=M}}(Lc&3)!==0&&Xf(),Ki(i),M=i.pendingLanes,(p&4194090)!==0&&(M&42)!==0?i===$g?Bc++:(Bc=0,$g=i):Bc=0,ud(0)}}function U0(i,c){(i.pooledCacheLanes&=c)===0&&(c=i.pooledCache,c!=null&&(i.pooledCache=null,Nu(c)))}function Xf(i){return V0(),K0(),W0(),q0()}function q0(){if(ka!==5)return!1;var i=es,c=wg;wg=0;var p=It(Lc),x=V.T,M=W.p;try{W.p=32>p?32:p,V.T=null,p=Eg,Eg=null;var A=es,Z=Lc;if(ka=0,kc=es=null,Lc=0,(xr&6)!==0)throw Error(r(331));var ae=xr;if(xr|=4,I0(A.current),R0(A,A.current,Z,p),xr=ae,ud(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(oe,A)}catch{}return!0}finally{W.p=M,V.T=x,U0(i,c)}}function G0(i,c,p){c=Ga(p,c),c=Pf(i.stateNode,c,2),i=cl(i,c,2),i!==null&&(Qt(i,2),Ki(i))}function Tr(i,c,p){if(i.tag===3)G0(i,i,p);else for(;c!==null;){if(c.tag===3){G0(c,i,p);break}else if(c.tag===1){var x=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Jl===null||!Jl.has(x))){i=Ga(p,i),p=sg(2),x=cl(c,p,2),x!==null&&(f0(p,x,c,i),Qt(x,2),Ki(x));break}}c=c.return}}function Tg(i,c,p){var x=i.pingCache;if(x===null){x=i.pingCache=new yg;var M=new Set;x.set(c,M)}else M=x.get(c),M===void 0&&(M=new Set,x.set(c,M));M.has(p)||(bg=!0,M.add(p),i=wx.bind(null,i,c,p),c.then(i,i))}function wx(i,c,p){var x=i.pingCache;x!==null&&x.delete(c),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Ar===i&&(er&p)===p&&(ra===4||ra===3&&(er&62914560)===er&&300>je()-Cg?(xr&2)===0&&Fc(i,0):xg|=p,Dc===er&&(Dc=0)),Ki(i)}function X0(i,c){c===0&&(c=Wt()),i=Ms(i,c),i!==null&&(Qt(i,c),Ki(i))}function Yf(i){var c=i.memoizedState,p=0;c!==null&&(p=c.retryLane),X0(i,p)}function Ex(i,c){var p=0;switch(i.tag){case 13:var x=i.stateNode,M=i.memoizedState;M!==null&&(p=M.retryLane);break;case 19:x=i.stateNode;break;case 22:x=i.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(c),X0(i,p)}function Y0(i,c){return fe(i,c)}var sd=null,ns=null,Qf=!1,cd=!1,Zf=!1,rs=0;function Ki(i){i!==ns&&i.next===null&&(ns===null?sd=ns=i:ns=ns.next=i),cd=!0,Qf||(Qf=!0,Ig())}function ud(i,c){if(!Zf&&cd){Zf=!0;do for(var p=!1,x=sd;x!==null;){if(i!==0){var M=x.pendingLanes;if(M===0)var A=0;else{var Z=x.suspendedLanes,ae=x.pingedLanes;A=(1<<31-xe(42|i)+1)-1,A&=M&~(Z&~ae),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(p=!0,Z0(x,A))}else A=er,A=at(x,x===Ar?A:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(A&3)===0||gt(x,A)||(p=!0,Z0(x,A));x=x.next}while(p);Zf=!1}}function $x(){dd()}function dd(){cd=Qf=!1;var i=0;rs!==0&&(_x()&&(i=rs),rs=0);for(var c=je(),p=null,x=sd;x!==null;){var M=x.next,A=fd(x,c);A===0?(x.next=null,p===null?sd=M:p.next=M,M===null&&(ns=p)):(p=x,(i!==0||(A&3)!==0)&&(cd=!0)),x=M}ud(i)}function fd(i,c){for(var p=i.suspendedLanes,x=i.pingedLanes,M=i.expirationTimes,A=i.pendingLanes&-62914561;0<A;){var Z=31-xe(A),ae=1<<Z,$e=M[Z];$e===-1?((ae&p)===0||(ae&x)!==0)&&(M[Z]=Nt(ae,c)):$e<=c&&(i.expiredLanes|=ae),A&=~ae}if(c=Ar,p=er,p=at(i,i===c?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),x=i.callbackNode,p===0||i===c&&(Sr===2||Sr===9)||i.cancelPendingCommit!==null)return x!==null&&x!==null&&ge(x),i.callbackNode=null,i.callbackPriority=0;if((p&3)===0||gt(i,p)){if(c=p&-p,c===i.callbackPriority)return c;switch(x!==null&&ge(x),It(p)){case 2:case 8:p=qe;break;case 32:p=ze;break;case 268435456:p=Be;break;default:p=ze}return x=Q0.bind(null,i),p=fe(p,x),i.callbackPriority=c,i.callbackNode=p,c}return x!==null&&x!==null&&ge(x),i.callbackPriority=2,i.callbackNode=null,2}function Q0(i,c){if(ka!==0&&ka!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(Xf()&&i.callbackNode!==p)return null;var x=er;return x=at(i,i===Ar?x:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),x===0?null:(z0(i,x,c),fd(i,je()),i.callbackNode!=null&&i.callbackNode===p?Q0.bind(null,i):null)}function Z0(i,c){if(Xf())return null;z0(i,c,!0)}function Ig(){Px(function(){(xr&6)!==0?fe(Ue,$x):dd()})}function Jf(){return rs===0&&(rs=tn()),rs}function J0(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:qn(""+i)}function e1(i,c){var p=c.ownerDocument.createElement("input");return p.name=c.name,p.value=c.value,i.id&&p.setAttribute("form",i.id),c.parentNode.insertBefore(p,c),i=new FormData(i),p.parentNode.removeChild(p),i}function Ox(i,c,p,x,M){if(c==="submit"&&p&&p.stateNode===M){var A=J0((M[ke]||null).action),Z=x.submitter;Z&&(c=(c=Z[ke]||null)?J0(c.formAction):Z.getAttribute("formAction"),c!==null&&(A=c,Z=null));var ae=new Gd("action","action",null,x,M);i.push({event:ae,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(rs!==0){var $e=Z?e1(M,Z):new FormData(M);Hu(p,{pending:!0,data:$e,method:M.method,action:A},null,$e)}}else typeof A=="function"&&(ae.preventDefault(),$e=Z?e1(M,Z):new FormData(M),Hu(p,{pending:!0,data:$e,method:M.method,action:A},A,$e))},currentTarget:M}]})}}for(var _g=0;_g<mr.length;_g++){var Ag=mr[_g],Mx=Ag.toLowerCase(),Rx=Ag[0].toUpperCase()+Ag.slice(1);gi(Mx,"on"+Rx)}gi(lf,"onAnimationEnd"),gi(Pv,"onAnimationIteration"),gi(zo,"onAnimationStart"),gi("dblclick","onDoubleClick"),gi("focusin","onFocus"),gi("focusout","onBlur"),gi(sf,"onTransitionRun"),gi(ux,"onTransitionStart"),gi(hc,"onTransitionCancel"),gi(bu,"onTransitionEnd"),yt("onMouseEnter",["mouseout","mouseover"]),yt("onMouseLeave",["mouseout","mouseover"]),yt("onPointerEnter",["pointerout","pointerover"]),yt("onPointerLeave",["pointerout","pointerover"]),rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var md="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(" "),Nx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(md));function t1(i,c){c=(c&4)!==0;for(var p=0;p<i.length;p++){var x=i[p],M=x.event;x=x.listeners;e:{var A=void 0;if(c)for(var Z=x.length-1;0<=Z;Z--){var ae=x[Z],$e=ae.instance,Ze=ae.currentTarget;if(ae=ae.listener,$e!==A&&M.isPropagationStopped())break e;A=ae,M.currentTarget=Ze;try{A(M)}catch(vt){Ks(vt)}M.currentTarget=null,A=$e}else for(Z=0;Z<x.length;Z++){if(ae=x[Z],$e=ae.instance,Ze=ae.currentTarget,ae=ae.listener,$e!==A&&M.isPropagationStopped())break e;A=ae,M.currentTarget=Ze;try{A(M)}catch(vt){Ks(vt)}M.currentTarget=null,A=$e}}}}function Kn(i,c){var p=c[He];p===void 0&&(p=c[He]=new Set);var x=i+"__bubble";p.has(x)||(n1(c,i,2,!1),p.add(x))}function Pg(i,c,p){var x=0;c&&(x|=4),n1(p,i,x,c)}var Co="_reactListening"+Math.random().toString(36).slice(2);function zg(i){if(!i[Co]){i[Co]=!0,zt.forEach(function(p){p!=="selectionchange"&&(Nx.has(p)||Pg(p,!1,i),Pg(p,!0,i))});var c=i.nodeType===9?i:i.ownerDocument;c===null||c[Co]||(c[Co]=!0,Pg("selectionchange",!1,c))}}function n1(i,c,p,x){switch(S1(c)){case 2:var M=qx;break;case 8:M=Xc;break;default:M=Wg}p=M.bind(null,c,p,i),M=void 0,!Yt||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(M=!0),x?M!==void 0?i.addEventListener(c,p,{capture:!0,passive:M}):i.addEventListener(c,p,!0):M!==void 0?i.addEventListener(c,p,{passive:M}):i.addEventListener(c,p,!1)}function xl(i,c,p,x,M){var A=x;if((c&1)===0&&(c&2)===0&&x!==null)e:for(;;){if(x===null)return;var Z=x.tag;if(Z===3||Z===4){var ae=x.stateNode.containerInfo;if(ae===M)break;if(Z===4)for(Z=x.return;Z!==null;){var $e=Z.tag;if(($e===3||$e===4)&&Z.stateNode.containerInfo===M)return;Z=Z.return}for(;ae!==null;){if(Z=dt(ae),Z===null)return;if($e=Z.tag,$e===5||$e===6||$e===26||$e===27){x=A=Z;continue e}ae=ae.parentNode}}x=x.return}sc(function(){var Ze=A,vt=ja(p),wt=[];e:{var it=xu.get(i);if(it!==void 0){var et=Gd,yn=i;switch(i){case"keypress":if(ur(p)===0)break e;case"keydown":case"keyup":et=Cp;break;case"focusin":yn="focus",et=Yd;break;case"focusout":yn="blur",et=Yd;break;case"beforeblur":case"afterblur":et=Yd;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":et=zl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":et=Sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":et=tx;break;case lf:case Pv:case zo:et=yv;break;case bu:et=nx;break;case"scroll":case"scrollend":et=Zb;break;case"wheel":et=ax;break;case"copy":case"cut":case"paste":et=xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":et=ol;break;case"toggle":case"beforetoggle":et=Zd}var hn=(c&4)!==0,$r=!hn&&(i==="scroll"||i==="scrollend"),Ke=hn?it!==null?it+"Capture":null:it;hn=[];for(var Pe=Ze,Ge;Pe!==null;){var bt=Pe;if(Ge=bt.stateNode,bt=bt.tag,bt!==5&&bt!==26&&bt!==27||Ge===null||Ke===null||(bt=al(Pe,Ke),bt!=null&&hn.push($n(Pe,bt,Ge))),$r)break;Pe=Pe.return}0<hn.length&&(it=new et(it,yn,null,p,vt),wt.push({event:it,listeners:hn}))}}if((c&7)===0){e:{if(it=i==="mouseover"||i==="pointerover",et=i==="mouseout"||i==="pointerout",it&&p!==Oa&&(yn=p.relatedTarget||p.fromElement)&&(dt(yn)||yn[Ae]))break e;if((et||it)&&(it=vt.window===vt?vt:(it=vt.ownerDocument)?it.defaultView||it.parentWindow:window,et?(yn=p.relatedTarget||p.toElement,et=Ze,yn=yn?dt(yn):null,yn!==null&&($r=o(yn),hn=yn.tag,yn!==$r||hn!==5&&hn!==27&&hn!==6)&&(yn=null)):(et=null,yn=Ze),et!==yn)){if(hn=zl,bt="onMouseLeave",Ke="onMouseEnter",Pe="mouse",(i==="pointerout"||i==="pointerover")&&(hn=ol,bt="onPointerLeave",Ke="onPointerEnter",Pe="pointer"),$r=et==null?it:nt(et),Ge=yn==null?it:nt(yn),it=new hn(bt,Pe+"leave",et,p,vt),it.target=$r,it.relatedTarget=Ge,bt=null,dt(vt)===Ze&&(hn=new hn(Ke,Pe+"enter",yn,p,vt),hn.target=Ge,hn.relatedTarget=$r,bt=hn),$r=bt,et&&yn)t:{for(hn=et,Ke=yn,Pe=0,Ge=hn;Ge;Ge=ba(Ge))Pe++;for(Ge=0,bt=Ke;bt;bt=ba(bt))Ge++;for(;0<Pe-Ge;)hn=ba(hn),Pe--;for(;0<Ge-Pe;)Ke=ba(Ke),Ge--;for(;Pe--;){if(hn===Ke||Ke!==null&&hn===Ke.alternate)break t;hn=ba(hn),Ke=ba(Ke)}hn=null}else hn=null;et!==null&&aa(wt,it,et,hn,!1),yn!==null&&$r!==null&&aa(wt,$r,yn,hn,!0)}}e:{if(it=Ze?nt(Ze):window,et=it.nodeName&&it.nodeName.toLowerCase(),et==="select"||et==="input"&&it.type==="file")var en=Mv;else if(nf(it))if(Rv)en=lx;else{en=kl;var Fn=Iv}else et=it.nodeName,!et||et.toLowerCase()!=="input"||it.type!=="checkbox"&&it.type!=="radio"?Ze&&gn(Ze.elementType)&&(en=Mv):en=of;if(en&&(en=en(i,Ze))){fc(wt,en,p,vt);break e}Fn&&Fn(i,it,Ze),i==="focusout"&&Ze&&it.type==="number"&&Ze.memoizedProps.value!=null&&Ir(it,"number",it.value)}switch(Fn=Ze?nt(Ze):window,i){case"focusin":(nf(Fn)||Fn.contentEditable==="true")&&(gc=Fn,Ll=Ze,Le=null);break;case"focusout":Le=Ll=gc=null;break;case"mousedown":ht=!0;break;case"contextmenu":case"mouseup":case"dragend":ht=!1,ft(wt,p,vt);break;case"selectionchange":if(cx)break;case"keydown":case"keyup":ft(wt,p,vt)}var cn;if($p)e:{switch(i){case"compositionstart":var bn="onCompositionStart";break e;case"compositionend":bn="onCompositionEnd";break e;case"compositionupdate":bn="onCompositionUpdate";break e}bn=void 0}else Dl?$v(i,p)&&(bn="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(bn="onCompositionStart");bn&&(Jd&&p.locale!=="ko"&&(Dl||bn!=="onCompositionStart"?bn==="onCompositionEnd"&&Dl&&(cn=ws()):(rr=vt,Zr="value"in rr?rr.value:rr.textContent,Dl=!0)),Fn=em(Ze,bn),0<Fn.length&&(bn=new uo(bn,i,null,p,vt),wt.push({event:bn,listeners:Fn}),cn?bn.data=cn:(cn=tf(p),cn!==null&&(bn.data=cn)))),(cn=Ev?ox(i,p):Ov(i,p))&&(bn=em(Ze,"onBeforeInput"),0<bn.length&&(Fn=new uo("onBeforeInput","beforeinput",null,p,vt),wt.push({event:Fn,listeners:bn}),Fn.data=cn)),Ox(wt,i,Ze,p,vt)}t1(wt,c)})}function $n(i,c,p){return{instance:i,listener:c,currentTarget:p}}function em(i,c){for(var p=c+"Capture",x=[];i!==null;){var M=i,A=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||A===null||(M=al(i,p),M!=null&&x.unshift($n(i,M,A)),M=al(i,c),M!=null&&x.push($n(i,M,A))),i.tag===3)return x;i=i.return}return[]}function ba(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function aa(i,c,p,x,M){for(var A=c._reactName,Z=[];p!==null&&p!==x;){var ae=p,$e=ae.alternate,Ze=ae.stateNode;if(ae=ae.tag,$e!==null&&$e===x)break;ae!==5&&ae!==26&&ae!==27||Ze===null||($e=Ze,M?(Ze=al(p,A),Ze!=null&&Z.unshift($n(p,Ze,$e))):M||(Ze=al(p,A),Ze!=null&&Z.push($n(p,Ze,$e)))),p=p.return}Z.length!==0&&i.push({event:c,listeners:Z})}var Tx=/\r\n?/g,as=/\u0000|\uFFFD/g;function r1(i){return(typeof i=="string"?i:""+i).replace(Tx,` `).replace(as,"")}function a1(i,c){return c=r1(c),r1(i)===c}function tm(){}function Er(i,c,p,x,M,A){switch(p){case"children":typeof x=="string"?c==="body"||c==="textarea"&&x===""||wr(i,x):(typeof x=="number"||typeof x=="bigint")&&c!=="body"&&wr(i,""+x);break;case"className":On(i,"class",x);break;case"tabIndex":On(i,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":On(i,p,x);break;case"style":Sn(i,x,A);break;case"data":if(c!=="object"){On(i,"data",x);break}case"src":case"href":if(x===""&&(c!=="a"||p!=="href")){i.removeAttribute(p);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){i.removeAttribute(p);break}x=qn(""+x),i.setAttribute(p,x);break;case"action":case"formAction":if(typeof x=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(p==="formAction"?(c!=="input"&&Er(i,c,"name",M.name,M,null),Er(i,c,"formEncType",M.formEncType,M,null),Er(i,c,"formMethod",M.formMethod,M,null),Er(i,c,"formTarget",M.formTarget,M,null)):(Er(i,c,"encType",M.encType,M,null),Er(i,c,"method",M.method,M,null),Er(i,c,"target",M.target,M,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){i.removeAttribute(p);break}x=qn(""+x),i.setAttribute(p,x);break;case"onClick":x!=null&&(i.onclick=tm);break;case"onScroll":x!=null&&Kn("scroll",i);break;case"onScrollEnd":x!=null&&Kn("scrollend",i);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"multiple":i.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":i.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){i.removeAttribute("xlink:href");break}p=qn(""+x),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?i.setAttribute(p,""+x):i.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?i.setAttribute(p,""):i.removeAttribute(p);break;case"capture":case"download":x===!0?i.setAttribute(p,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?i.setAttribute(p,x):i.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?i.setAttribute(p,x):i.removeAttribute(p);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?i.removeAttribute(p):i.setAttribute(p,x);break;case"popover":Kn("beforetoggle",i),Kn("toggle",i),un(i,"popover",x);break;case"xlinkActuate":Qn(i,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Qn(i,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Qn(i,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Qn(i,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Qn(i,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Qn(i,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":un(i,"is",x);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=_r.get(p)||p,un(i,p,x))}}function Dg(i,c,p,x,M,A){switch(p){case"style":Sn(i,x,A);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"children":typeof x=="string"?wr(i,x):(typeof x=="number"||typeof x=="bigint")&&wr(i,""+x);break;case"onScroll":x!=null&&Kn("scroll",i);break;case"onScrollEnd":x!=null&&Kn("scrollend",i);break;case"onClick":x!=null&&(i.onclick=tm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jt.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(M=p.endsWith("Capture"),c=p.slice(2,M?p.length-7:void 0),A=i[ke]||null,A=A!=null?A[p]:null,typeof A=="function"&&i.removeEventListener(c,A,M),typeof x=="function")){typeof A!="function"&&A!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(c,x,M);break e}p in i?i[p]=x:x===!0?i.setAttribute(p,""):un(i,p,x)}}}function xa(i,c,p){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kn("error",i),Kn("load",i);var x=!1,M=!1,A;for(A in p)if(p.hasOwnProperty(A)){var Z=p[A];if(Z!=null)switch(A){case"src":x=!0;break;case"srcSet":M=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Er(i,c,A,Z,p,null)}}M&&Er(i,c,"srcSet",p.srcSet,p,null),x&&Er(i,c,"src",p.src,p,null);return;case"input":Kn("invalid",i);var ae=A=Z=M=null,$e=null,Ze=null;for(x in p)if(p.hasOwnProperty(x)){var vt=p[x];if(vt!=null)switch(x){case"name":M=vt;break;case"type":Z=vt;break;case"checked":$e=vt;break;case"defaultChecked":Ze=vt;break;case"value":A=vt;break;case"defaultValue":ae=vt;break;case"children":case"dangerouslySetInnerHTML":if(vt!=null)throw Error(r(137,c));break;default:Er(i,c,x,vt,p,null)}}_n(i,A,ae,$e,Ze,Z,M,!1),Br(i);return;case"select":Kn("invalid",i),x=Z=A=null;for(M in p)if(p.hasOwnProperty(M)&&(ae=p[M],ae!=null))switch(M){case"value":A=ae;break;case"defaultValue":Z=ae;break;case"multiple":x=ae;default:Er(i,c,M,ae,p,null)}c=A,p=Z,i.multiple=!!x,c!=null?yr(i,!!x,c,!1):p!=null&&yr(i,!!x,p,!0);return;case"textarea":Kn("invalid",i),A=M=x=null;for(Z in p)if(p.hasOwnProperty(Z)&&(ae=p[Z],ae!=null))switch(Z){case"value":x=ae;break;case"defaultValue":M=ae;break;case"children":A=ae;break;case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(91));break;default:Er(i,c,Z,ae,p,null)}la(i,x,M,A),Br(i);return;case"option":for($e in p)if(p.hasOwnProperty($e)&&(x=p[$e],x!=null))switch($e){case"selected":i.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:Er(i,c,$e,x,p,null)}return;case"dialog":Kn("beforetoggle",i),Kn("toggle",i),Kn("cancel",i),Kn("close",i);break;case"iframe":case"object":Kn("load",i);break;case"video":case"audio":for(x=0;x<md.length;x++)Kn(md[x],i);break;case"image":Kn("error",i),Kn("load",i);break;case"details":Kn("toggle",i);break;case"embed":case"source":case"link":Kn("error",i),Kn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ze in p)if(p.hasOwnProperty(Ze)&&(x=p[Ze],x!=null))switch(Ze){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Er(i,c,Ze,x,p,null)}return;default:if(gn(c)){for(vt in p)p.hasOwnProperty(vt)&&(x=p[vt],x!==void 0&&Dg(i,c,vt,x,p,void 0));return}}for(ae in p)p.hasOwnProperty(ae)&&(x=p[ae],x!=null&&Er(i,c,ae,x,p,null))}function Ix(i,c,p,x){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var M=null,A=null,Z=null,ae=null,$e=null,Ze=null,vt=null;for(et in p){var wt=p[et];if(p.hasOwnProperty(et)&&wt!=null)switch(et){case"checked":break;case"value":break;case"defaultValue":$e=wt;default:x.hasOwnProperty(et)||Er(i,c,et,null,x,wt)}}for(var it in x){var et=x[it];if(wt=p[it],x.hasOwnProperty(it)&&(et!=null||wt!=null))switch(it){case"type":A=et;break;case"name":M=et;break;case"checked":Ze=et;break;case"defaultChecked":vt=et;break;case"value":Z=et;break;case"defaultValue":ae=et;break;case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(r(137,c));break;default:et!==wt&&Er(i,c,it,et,x,wt)}}Mn(i,Z,ae,$e,Ze,vt,A,M);return;case"select":et=Z=ae=it=null;for(A in p)if($e=p[A],p.hasOwnProperty(A)&&$e!=null)switch(A){case"value":break;case"multiple":et=$e;default:x.hasOwnProperty(A)||Er(i,c,A,null,x,$e)}for(M in x)if(A=x[M],$e=p[M],x.hasOwnProperty(M)&&(A!=null||$e!=null))switch(M){case"value":it=A;break;case"defaultValue":ae=A;break;case"multiple":Z=A;default:A!==$e&&Er(i,c,M,A,x,$e)}c=ae,p=Z,x=et,it!=null?yr(i,!!p,it,!1):!!x!=!!p&&(c!=null?yr(i,!!p,c,!0):yr(i,!!p,p?[]:"",!1));return;case"textarea":et=it=null;for(ae in p)if(M=p[ae],p.hasOwnProperty(ae)&&M!=null&&!x.hasOwnProperty(ae))switch(ae){case"value":break;case"children":break;default:Er(i,c,ae,null,x,M)}for(Z in x)if(M=x[Z],A=p[Z],x.hasOwnProperty(Z)&&(M!=null||A!=null))switch(Z){case"value":it=M;break;case"defaultValue":et=M;break;case"children":break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:M!==A&&Er(i,c,Z,M,x,A)}ia(i,it,et);return;case"option":for(var yn in p)if(it=p[yn],p.hasOwnProperty(yn)&&it!=null&&!x.hasOwnProperty(yn))switch(yn){case"selected":i.selected=!1;break;default:Er(i,c,yn,null,x,it)}for($e in x)if(it=x[$e],et=p[$e],x.hasOwnProperty($e)&&it!==et&&(it!=null||et!=null))switch($e){case"selected":i.selected=it&&typeof it!="function"&&typeof it!="symbol";break;default:Er(i,c,$e,it,x,et)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var hn in p)it=p[hn],p.hasOwnProperty(hn)&&it!=null&&!x.hasOwnProperty(hn)&&Er(i,c,hn,null,x,it);for(Ze in x)if(it=x[Ze],et=p[Ze],x.hasOwnProperty(Ze)&&it!==et&&(it!=null||et!=null))switch(Ze){case"children":case"dangerouslySetInnerHTML":if(it!=null)throw Error(r(137,c));break;default:Er(i,c,Ze,it,x,et)}return;default:if(gn(c)){for(var $r in p)it=p[$r],p.hasOwnProperty($r)&&it!==void 0&&!x.hasOwnProperty($r)&&Dg(i,c,$r,void 0,x,it);for(vt in x)it=x[vt],et=p[vt],!x.hasOwnProperty(vt)||it===et||it===void 0&&et===void 0||Dg(i,c,vt,it,x,et);return}}for(var Ke in p)it=p[Ke],p.hasOwnProperty(Ke)&&it!=null&&!x.hasOwnProperty(Ke)&&Er(i,c,Ke,null,x,it);for(wt in x)it=x[wt],et=p[wt],!x.hasOwnProperty(wt)||it===et||it==null&&et==null||Er(i,c,wt,it,x,et)}var Ci=null,nm=null;function Gs(i){return i.nodeType===9?i:i.ownerDocument}function qr(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jr(i,c){if(i===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&c==="foreignObject"?0:i}function rm(i,c){return i==="textarea"||i==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var jg=null;function _x(){var i=window.event;return i&&i.type==="popstate"?i===jg?!1:(jg=i,!0):(jg=null,!1)}var o1=typeof setTimeout=="function"?setTimeout:void 0,Ax=typeof clearTimeout=="function"?clearTimeout:void 0,i1=typeof Promise=="function"?Promise:void 0,Px=typeof queueMicrotask=="function"?queueMicrotask:typeof i1<"u"?function(i){return i1.resolve(null).then(i).catch(l1)}:o1;function l1(i){setTimeout(function(){throw i})}function si(i){return i==="head"}function am(i,c){var p=c,x=0,M=0;do{var A=p.nextSibling;if(i.removeChild(p),A&&A.nodeType===8)if(p=A.data,p==="/$"){if(0<x&&8>x){p=x;var Z=i.ownerDocument;if(p&1&&pd(Z.documentElement),p&2&&pd(Z.body),p&4)for(p=Z.head,pd(p),Z=p.firstChild;Z;){var ae=Z.nextSibling,$e=Z.nodeName;Z[pt]||$e==="SCRIPT"||$e==="STYLE"||$e==="LINK"&&Z.rel.toLowerCase()==="stylesheet"||p.removeChild(Z),Z=ae}}if(M===0){i.removeChild(A),Cd(c);return}M--}else p==="$"||p==="$?"||p==="$!"?M++:x=p.charCodeAt(0)-48;else x=0;p=A}while(p);Cd(c)}function kg(i){var c=i.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var p=c;switch(c=c.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":kg(p),ct(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function s1(i,c,p,x){for(;i.nodeType===1;){var M=p;if(i.nodeName.toLowerCase()!==c.toLowerCase()){if(!x&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(x){if(!i[pt])switch(c){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(A=i.getAttribute("rel"),A==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(A!==M.rel||i.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||i.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||i.getAttribute("title")!==(M.title==null?null:M.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(A=i.getAttribute("src"),(A!==(M.src==null?null:M.src)||i.getAttribute("type")!==(M.type==null?null:M.type)||i.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&A&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(c==="input"&&i.type==="hidden"){var A=M.name==null?null:""+M.name;if(M.type==="hidden"&&i.getAttribute("name")===A)return i}else return i;if(i=wi(i.nextSibling),i===null)break}return null}function om(i,c,p){if(c==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!p||(i=wi(i.nextSibling),i===null))return null;return i}function Ja(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Vc(i,c){var p=i.ownerDocument;if(i.data!=="$?"||p.readyState==="complete")c();else{var x=function(){c(),p.removeEventListener("DOMContentLoaded",x)};p.addEventListener("DOMContentLoaded",x),i._reactRetry=x}}function wi(i){for(;i!=null;i=i.nextSibling){var c=i.nodeType;if(c===1||c===3)break;if(c===8){if(c=i.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return i}var Lg=null;function c1(i){i=i.previousSibling;for(var c=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return i;c--}else p==="/$"&&c++}i=i.previousSibling}return null}function u1(i,c,p){switch(c=Gs(p),i){case"html":if(i=c.documentElement,!i)throw Error(r(452));return i;case"head":if(i=c.head,!i)throw Error(r(453));return i;case"body":if(i=c.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function pd(i){for(var c=i.attributes;c.length;)i.removeAttributeNode(c[0]);ct(i)}var Ho=new Map,Wi=new Set;function Tn(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ui=W.d;W.d={f:ci,r:d1,D:zx,C:f1,L:im,m:Dx,X:kx,S:jx,M:Lx};function ci(){var i=Ui.f(),c=qf();return i||c}function d1(i){var c=ot(i);c!==null&&c.tag===5&&c.type==="form"?Tf(c):Ui.r(i)}var Kc=typeof document>"u"?null:document;function pr(i,c,p){var x=Kc;if(x&&typeof c=="string"&&c){var M=on(c);M='link[rel="'+i+'"][href="'+M+'"]',typeof p=="string"&&(M+='[crossorigin="'+p+'"]'),Wi.has(M)||(Wi.add(M),i={rel:i,crossOrigin:p,href:c},x.querySelector(M)===null&&(c=x.createElement("link"),xa(c,"link",i),Mt(c),x.head.appendChild(c)))}}function zx(i){Ui.D(i),pr("dns-prefetch",i,null)}function f1(i,c){Ui.C(i,c),pr("preconnect",i,c)}function im(i,c,p){Ui.L(i,c,p);var x=Kc;if(x&&i&&c){var M='link[rel="preload"][as="'+on(c)+'"]';c==="image"&&p&&p.imageSrcSet?(M+='[imagesrcset="'+on(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(M+='[imagesizes="'+on(p.imageSizes)+'"]')):M+='[href="'+on(i)+'"]';var A=M;switch(c){case"style":A=Wc(i);break;case"script":A=Uc(i)}Ho.has(A)||(i=m({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:i,as:c},p),Ho.set(A,i),x.querySelector(M)!==null||c==="style"&&x.querySelector(gd(A))||c==="script"&&x.querySelector(hd(A))||(c=x.createElement("link"),xa(c,"link",i),Mt(c),x.head.appendChild(c)))}}function Dx(i,c){Ui.m(i,c);var p=Kc;if(p&&i){var x=c&&typeof c.as=="string"?c.as:"script",M='link[rel="modulepreload"][as="'+on(x)+'"][href="'+on(i)+'"]',A=M;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Uc(i)}if(!Ho.has(A)&&(i=m({rel:"modulepreload",href:i},c),Ho.set(A,i),p.querySelector(M)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(hd(A)))return}x=p.createElement("link"),xa(x,"link",i),Mt(x),p.head.appendChild(x)}}}function jx(i,c,p){Ui.S(i,c,p);var x=Kc;if(x&&i){var M=Tt(x).hoistableStyles,A=Wc(i);c=c||"default";var Z=M.get(A);if(!Z){var ae={loading:0,preload:null};if(Z=x.querySelector(gd(A)))ae.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":c},p),(p=Ho.get(A))&&vd(i,p);var $e=Z=x.createElement("link");Mt($e),xa($e,"link",i),$e._p=new Promise(function(Ze,vt){$e.onload=Ze,$e.onerror=vt}),$e.addEventListener("load",function(){ae.loading|=1}),$e.addEventListener("error",function(){ae.loading|=2}),ae.loading|=4,lm(Z,c,x)}Z={type:"stylesheet",instance:Z,count:1,state:ae},M.set(A,Z)}}}function kx(i,c){Ui.X(i,c);var p=Kc;if(p&&i){var x=Tt(p).hoistableScripts,M=Uc(i),A=x.get(M);A||(A=p.querySelector(hd(M)),A||(i=m({src:i,async:!0},c),(c=Ho.get(M))&&Bg(i,c),A=p.createElement("script"),Mt(A),xa(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},x.set(M,A))}}function Lx(i,c){Ui.M(i,c);var p=Kc;if(p&&i){var x=Tt(p).hoistableScripts,M=Uc(i),A=x.get(M);A||(A=p.querySelector(hd(M)),A||(i=m({src:i,async:!0,type:"module"},c),(c=Ho.get(M))&&Bg(i,c),A=p.createElement("script"),Mt(A),xa(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},x.set(M,A))}}function m1(i,c,p,x){var M=(M=se.current)?Tn(M):null;if(!M)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=Wc(p.href),p=Tt(M).hoistableStyles,x=p.get(c),x||(x={type:"style",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=Wc(p.href);var A=Tt(M).hoistableStyles,Z=A.get(i);if(Z||(M=M.ownerDocument||M,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(i,Z),(A=M.querySelector(gd(i)))&&!A._p&&(Z.instance=A,Z.state.loading=5),Ho.has(i)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Ho.set(i,p),A||Bx(M,i,p,Z.state))),c&&x===null)throw Error(r(528,""));return Z}if(c&&x!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Uc(p),p=Tt(M).hoistableScripts,x=p.get(c),x||(x={type:"script",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Wc(i){return'href="'+on(i)+'"'}function gd(i){return'link[rel="stylesheet"]['+i+"]"}function p1(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function Bx(i,c,p,x){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?x.loading=1:(c=i.createElement("link"),x.preload=c,c.addEventListener("load",function(){return x.loading|=1}),c.addEventListener("error",function(){return x.loading|=2}),xa(c,"link",p),Mt(c),i.head.appendChild(c))}function Uc(i){return'[src="'+on(i)+'"]'}function hd(i){return"script[async]"+i}function g1(i,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var x=i.querySelector('style[data-href~="'+on(p.href)+'"]');if(x)return c.instance=x,Mt(x),x;var M=m({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return x=(i.ownerDocument||i).createElement("style"),Mt(x),xa(x,"style",M),lm(x,p.precedence,i),c.instance=x;case"stylesheet":M=Wc(p.href);var A=i.querySelector(gd(M));if(A)return c.state.loading|=4,c.instance=A,Mt(A),A;x=p1(p),(M=Ho.get(M))&&vd(x,M),A=(i.ownerDocument||i).createElement("link"),Mt(A);var Z=A;return Z._p=new Promise(function(ae,$e){Z.onload=ae,Z.onerror=$e}),xa(A,"link",x),c.state.loading|=4,lm(A,p.precedence,i),c.instance=A;case"script":return A=Uc(p.src),(M=i.querySelector(hd(A)))?(c.instance=M,Mt(M),M):(x=p,(M=Ho.get(A))&&(x=m({},p),Bg(x,M)),i=i.ownerDocument||i,M=i.createElement("script"),Mt(M),xa(M,"link",x),i.head.appendChild(M),c.instance=M);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(x=c.instance,c.state.loading|=4,lm(x,p.precedence,i));return c.instance}function lm(i,c,p){for(var x=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=x.length?x[x.length-1]:null,A=M,Z=0;Z<x.length;Z++){var ae=x[Z];if(ae.dataset.precedence===c)A=ae;else if(A!==M)break}A?A.parentNode.insertBefore(i,A.nextSibling):(c=p.nodeType===9?p.head:p,c.insertBefore(i,c.firstChild))}function vd(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.title==null&&(i.title=c.title)}function Bg(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.integrity==null&&(i.integrity=c.integrity)}var qc=null;function h1(i,c,p){if(qc===null){var x=new Map,M=qc=new Map;M.set(p,x)}else M=qc,x=M.get(p),x||(x=new Map,M.set(p,x));if(x.has(i))return x;for(x.set(i,null),p=p.getElementsByTagName(i),M=0;M<p.length;M++){var A=p[M];if(!(A[pt]||A[Qe]||i==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=A.getAttribute(c)||"";Z=i+Z;var ae=x.get(Z);ae?ae.push(A):x.set(Z,[A])}}return x}function v1(i,c,p){i=i.ownerDocument||i,i.head.insertBefore(p,c==="title"?i.querySelector("head > title"):null)}function Fx(i,c,p){if(p===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function Sa(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Na=null;function Hx(){}function Vx(i,c,p){if(Na===null)throw Error(r(475));var x=Na;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var M=Wc(p.href),A=i.querySelector(gd(M));if(A){i=A._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(x.count++,x=yd.bind(x),i.then(x,x)),c.state.loading|=4,c.instance=A,Mt(A);return}A=i.ownerDocument||i,p=p1(p),(M=Ho.get(M))&&vd(p,M),A=A.createElement("link"),Mt(A);var Z=A;Z._p=new Promise(function(ae,$e){Z.onload=ae,Z.onerror=$e}),xa(A,"link",p),c.instance=A}x.stylesheets===null&&(x.stylesheets=new Map),x.stylesheets.set(c,i),(i=c.state.preload)&&(c.state.loading&3)===0&&(x.count++,c=yd.bind(x),i.addEventListener("load",c),i.addEventListener("error",c))}}function Kx(){if(Na===null)throw Error(r(475));var i=Na;return i.stylesheets&&i.count===0&&Fg(i,i.stylesheets),0<i.count?function(c){var p=setTimeout(function(){if(i.stylesheets&&Fg(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(p)}}:null}function yd(){if(this.count--,this.count===0){if(this.stylesheets)Fg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var sm=null;function Fg(i,c){i.stylesheets=null,i.unsuspend!==null&&(i.count++,sm=new Map,c.forEach(Wx,i),sm=null,yd.call(i))}function Wx(i,c){if(!(c.state.loading&4)){var p=sm.get(i);if(p)var x=p.get(null);else{p=new Map,sm.set(i,p);for(var M=i.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<M.length;A++){var Z=M[A];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(p.set(Z.dataset.precedence,Z),x=Z)}x&&p.set(null,x)}M=c.instance,Z=M.getAttribute("data-precedence"),A=p.get(Z)||x,A===x&&p.set(null,M),p.set(Z,M),this.count++,x=yd.bind(this),M.addEventListener("load",x),M.addEventListener("error",x),A?A.parentNode.insertBefore(M,A.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(M,i.firstChild)),c.state.loading|=4}}var Gc={$$typeof:O,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function Ux(i,c,p,x,M,A,Z,ae){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=dn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dn(0),this.hiddenUpdates=dn(null),this.identifierPrefix=x,this.onUncaughtError=M,this.onCaughtError=A,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ae,this.incompleteTransitions=new Map}function y1(i,c,p,x,M,A,Z,ae,$e,Ze,vt,wt){return i=new Ux(i,c,p,Z,ae,$e,Ze,wt),c=1,A===!0&&(c|=24),A=fo(3,null,null,c),i.current=A,A.stateNode=i,c=zp(),c.refCount++,i.pooledCache=c,c.refCount++,A.memoizedState={element:x,isDehydrated:p,cache:c},zs(A),i}function b1(i){return i?(i=Rs,i):Rs}function Hg(i,c,p,x,M,A){M=b1(M),x.context===null?x.context=M:x.pendingContext=M,x=Vl(c),x.payload={element:p},A=A===void 0?null:A,A!==null&&(x.callback=A),p=cl(i,x,c),p!==null&&(Fo(p,i,c),Iu(p,i,c))}function Vg(i,c){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<c?p:c}}function Kg(i,c){Vg(i,c),(i=i.alternate)&&Vg(i,c)}function x1(i){if(i.tag===13){var c=Ms(i,67108864);c!==null&&Fo(c,i,67108864),Kg(i,67108864)}}var cm=!0;function qx(i,c,p,x){var M=V.T;V.T=null;var A=W.p;try{W.p=2,Wg(i,c,p,x)}finally{W.p=A,V.T=M}}function Xc(i,c,p,x){var M=V.T;V.T=null;var A=W.p;try{W.p=8,Wg(i,c,p,x)}finally{W.p=A,V.T=M}}function Wg(i,c,p,x){if(cm){var M=Ug(x);if(M===null)xl(i,c,x,um,p),C1(i,x);else if(Xx(M,i,c,p,x))x.stopPropagation();else if(C1(i,x),c&4&&-1<Gx.indexOf(i)){for(;M!==null;){var A=ot(M);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var Z=mt(A.pendingLanes);if(Z!==0){var ae=A;for(ae.pendingLanes|=2,ae.entangledLanes|=2;Z;){var $e=1<<31-xe(Z);ae.entanglements[1]|=$e,Z&=~$e}Ki(A),(xr&6)===0&&(jc=je()+500,ud(0))}}break;case 13:ae=Ms(A,2),ae!==null&&Fo(ae,A,2),qf(),Kg(A,2)}if(A=Ug(x),A===null&&xl(i,c,x,um,p),A===M)break;M=A}M!==null&&x.stopPropagation()}else xl(i,c,x,null,p)}}function Ug(i){return i=ja(i),qg(i)}var um=null;function qg(i){if(um=null,i=dt(i),i!==null){var c=o(i);if(c===null)i=null;else{var p=c.tag;if(p===13){if(i=l(c),i!==null)return i;i=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;i=null}else c!==i&&(i=null)}}return um=i,null}function S1(i){switch(i){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Te()){case Ue:return 2;case qe:return 8;case ze:case Ve:return 32;case Be:return 268435456;default:return 32}default:return 32}}var dm=!1,Sl=null,os=null,is=null,bd=new Map,xd=new Map,ls=[],Gx="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".split(" ");function C1(i,c){switch(i){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":bd.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":xd.delete(c.pointerId)}}function Sd(i,c,p,x,M,A){return i===null||i.nativeEvent!==A?(i={blockedOn:c,domEventName:p,eventSystemFlags:x,nativeEvent:A,targetContainers:[M]},c!==null&&(c=ot(c),c!==null&&x1(c)),i):(i.eventSystemFlags|=x,c=i.targetContainers,M!==null&&c.indexOf(M)===-1&&c.push(M),i)}function Xx(i,c,p,x,M){switch(c){case"focusin":return Sl=Sd(Sl,i,c,p,x,M),!0;case"dragenter":return os=Sd(os,i,c,p,x,M),!0;case"mouseover":return is=Sd(is,i,c,p,x,M),!0;case"pointerover":var A=M.pointerId;return bd.set(A,Sd(bd.get(A)||null,i,c,p,x,M)),!0;case"gotpointercapture":return A=M.pointerId,xd.set(A,Sd(xd.get(A)||null,i,c,p,x,M)),!0}return!1}function w1(i){var c=dt(i.target);if(c!==null){var p=o(c);if(p!==null){if(c=p.tag,c===13){if(c=l(p),c!==null){i.blockedOn=c,Me(i.priority,function(){if(p.tag===13){var x=Ka();x=_t(x);var M=Ms(p,x);M!==null&&Fo(M,p,x),Kg(p,x)}});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function fm(i){if(i.blockedOn!==null)return!1;for(var c=i.targetContainers;0<c.length;){var p=Ug(i.nativeEvent);if(p===null){p=i.nativeEvent;var x=new p.constructor(p.type,p);Oa=x,p.target.dispatchEvent(x),Oa=null}else return c=ot(p),c!==null&&x1(c),i.blockedOn=p,!1;c.shift()}return!0}function E1(i,c,p){fm(i)&&p.delete(c)}function Yx(){dm=!1,Sl!==null&&fm(Sl)&&(Sl=null),os!==null&&fm(os)&&(os=null),is!==null&&fm(is)&&(is=null),bd.forEach(E1),xd.forEach(E1)}function mm(i,c){i.blockedOn===c&&(i.blockedOn=null,dm||(dm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Yx)))}var pm=null;function $1(i){pm!==i&&(pm=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pm===i&&(pm=null);for(var c=0;c<i.length;c+=3){var p=i[c],x=i[c+1],M=i[c+2];if(typeof x!="function"){if(qg(x||p)===null)continue;break}var A=ot(p);A!==null&&(i.splice(c,3),c-=3,Hu(A,{pending:!0,data:M,method:p.method,action:x},x,M))}}))}function Cd(i){function c($e){return mm($e,i)}Sl!==null&&mm(Sl,i),os!==null&&mm(os,i),is!==null&&mm(is,i),bd.forEach(c),xd.forEach(c);for(var p=0;p<ls.length;p++){var x=ls[p];x.blockedOn===i&&(x.blockedOn=null)}for(;0<ls.length&&(p=ls[0],p.blockedOn===null);)w1(p),p.blockedOn===null&&ls.shift();if(p=(i.ownerDocument||i).$$reactFormReplay,p!=null)for(x=0;x<p.length;x+=3){var M=p[x],A=p[x+1],Z=M[ke]||null;if(typeof A=="function")Z||$1(p);else if(Z){var ae=null;if(A&&A.hasAttribute("formAction")){if(M=A,Z=A[ke]||null)ae=Z.formAction;else if(qg(M)!==null)continue}else ae=Z.action;typeof ae=="function"?p[x+1]=ae:(p.splice(x,3),x-=3),$1(p)}}}function Gg(i){this._internalRoot=i}gm.prototype.render=Gg.prototype.render=function(i){var c=this._internalRoot;if(c===null)throw Error(r(409));var p=c.current,x=Ka();Hg(p,x,i,c,null,null)},gm.prototype.unmount=Gg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var c=i.containerInfo;Hg(i.current,2,null,i,null,null),qf(),c[Ae]=null}};function gm(i){this._internalRoot=i}gm.prototype.unstable_scheduleHydration=function(i){if(i){var c=ve();i={blockedOn:null,target:i,priority:c};for(var p=0;p<ls.length&&c!==0&&c<ls[p].priority;p++);ls.splice(p,0,i),p===0&&w1(i)}};var O1=t.version;if(O1!=="19.1.1")throw Error(r(527,O1,"19.1.1"));W.findDOMNode=function(i){var c=i._reactInternals;if(c===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(c),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var Qx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hm.isDisabled&&hm.supportsFiber)try{oe=hm.inject(Qx),we=hm}catch{}}return Yg.createRoot=function(i,c){if(!a(i))throw Error(r(299));var p=!1,x="",M=lg,A=Af,Z=d0,ae=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onUncaughtError!==void 0&&(M=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(Z=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(ae=c.unstable_transitionCallbacks)),c=y1(i,1,!1,null,null,p,x,M,A,Z,ae,null),i[Ae]=c.current,zg(i),new Gg(c)},Yg.hydrateRoot=function(i,c,p){if(!a(i))throw Error(r(299));var x=!1,M="",A=lg,Z=Af,ae=d0,$e=null,Ze=null;return p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(M=p.identifierPrefix),p.onUncaughtError!==void 0&&(A=p.onUncaughtError),p.onCaughtError!==void 0&&(Z=p.onCaughtError),p.onRecoverableError!==void 0&&(ae=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&($e=p.unstable_transitionCallbacks),p.formState!==void 0&&(Ze=p.formState)),c=y1(i,1,!0,c,p??null,x,M,A,Z,ae,$e,Ze),c.context=b1(null),p=c.current,x=Ka(),x=_t(x),M=Vl(x),M.callback=null,cl(p,M,x),p=x,c.current.lanes=p,Qt(c,p),Ki(c),i[Ae]=c.current,zg(i),new gm(c)},Yg.version="19.1.1",Yg}var T4;function HT(){if(T4)return r2.exports;T4=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(),r2.exports=FT(),r2.exports}var ob=HT();const VT=ac(ob);var l2={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var I4;function KT(){return I4||(I4=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=a(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)t.call(o,s)&&o[s]&&(l=a(l,s));return l}function a(o,l){return l?o?o+" "+l:o+l:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(l2)),l2.exports}var WT=KT();const ue=ac(WT);function Je(){return Je=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},Je.apply(null,arguments)}function Vt(e){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(e)}var UT=Symbol.for("react.element"),qT=Symbol.for("react.transitional.element"),GT=Symbol.for("react.fragment");function U8(e){return e&&Vt(e)==="object"&&(e.$$typeof===UT||e.$$typeof===qT)&&e.type===GT}function ro(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ro(r)):U8(r)&&r.props?n=n.concat(ro(r.props.children,t)):n.push(r))}),n}var zS={},XT=function(t){};function YT(e,t){}function QT(e,t){}function ZT(){zS={}}function q8(e,t,n){!t&&!zS[n]&&(e(!1,n),zS[n]=!0)}function Yr(e,t){q8(YT,e,t)}function JT(e,t){q8(QT,e,t)}Yr.preMessage=XT;Yr.resetWarned=ZT;Yr.noteOnce=JT;function eI(e,t){if(Vt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G8(e){var t=eI(e,"string");return Vt(t)=="symbol"?t:t+""}function te(e,t,n){return(t=G8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_4(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tc=W8();const Pd=ac(tc),tI=K8({__proto__:null,default:Pd},[tc]);function Nh(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ew(e){return e&&Vt(e)==="object"&&Nh(e.nativeElement)?e.nativeElement:Nh(e)?e:null}function oy(e){var t=Ew(e);if(t)return t;if(e instanceof Se.Component){var n;return(n=Pd.findDOMNode)===null||n===void 0?void 0:n.call(Pd,e)}return null}var s2={exports:{}},Or={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var A4;function nI(){if(A4)return Or;A4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function C(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case e:switch(w=w.type,w){case n:case a:case r:case f:case m:return w;default:switch(w=w&&w.$$typeof,w){case s:case l:case d:case v:case h:case o:return w;default:return E}}case t:return E}}}return Or.ContextConsumer=l,Or.ContextProvider=o,Or.Element=e,Or.ForwardRef=d,Or.Fragment=n,Or.Lazy=v,Or.Memo=h,Or.Portal=t,Or.Profiler=a,Or.StrictMode=r,Or.Suspense=f,Or.SuspenseList=m,Or.isAsyncMode=function(){return!1},Or.isConcurrentMode=function(){return!1},Or.isContextConsumer=function(w){return C(w)===l},Or.isContextProvider=function(w){return C(w)===o},Or.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Or.isForwardRef=function(w){return C(w)===d},Or.isFragment=function(w){return C(w)===n},Or.isLazy=function(w){return C(w)===v},Or.isMemo=function(w){return C(w)===h},Or.isPortal=function(w){return C(w)===t},Or.isProfiler=function(w){return C(w)===a},Or.isStrictMode=function(w){return C(w)===r},Or.isSuspense=function(w){return C(w)===f},Or.isSuspenseList=function(w){return C(w)===m},Or.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===a||w===r||w===f||w===m||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===h||w.$$typeof===o||w.$$typeof===l||w.$$typeof===d||w.$$typeof===S||w.getModuleId!==void 0)},Or.typeOf=C,Or}var P4;function rI(){return P4||(P4=1,s2.exports=nI()),s2.exports}var c2=rI();function Hd(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var aI=Number(u.version.split(".")[0]),Th=function(t,n){typeof t=="function"?t(n):Vt(t)==="object"&&t&&"current"in t&&(t.current=n)},io=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(o){n.forEach(function(l){Th(l,o)})}},oc=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hd(function(){return io.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(l,s){return l!==o[s]})})},Il=function(t){var n,r;if(!t)return!1;if($w(t)&&aI>=19)return!0;var a=c2.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==c2.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==c2.ForwardRef)};function $w(e){return u.isValidElement(e)&&!U8(e)}var oI=function(t){return $w(t)&&Il(t)},Gh=function(t){if(t&&$w(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},DS=u.createContext(null);function iI(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),a=u.useRef([]),o=u.useContext(DS),l=u.useCallback(function(s,d,f){r.current+=1;var m=r.current;a.current.push({size:s,element:d,data:f}),Promise.resolve().then(function(){m===r.current&&(n?.(a.current),a.current=[])}),o?.(s,d,f)},[n,o]);return u.createElement(DS.Provider,{value:l},t)}var X8=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!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),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,o=this.__entries__;a<o.length;a++){var l=o[a];n.call(r,l[1],l[0])}},t})()})(),jS=typeof window<"u"&&typeof document<"u"&&window.document===document,Ry=(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")()})(),lI=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ry):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),sI=2;function cI(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&s()}function l(){lI(o)}function s(){var d=Date.now();if(n){if(d-a<sI)return;r=!0}else n=!0,r=!1,setTimeout(l,t);a=d}return s}var uI=20,dI=["top","right","bottom","left","width","height","size","weight"],fI=typeof MutationObserver<"u",mI=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=cI(this.refresh.bind(this),uI)}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(){!jS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fI?(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(){!jS||!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,a=dI.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Y8=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),qm=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ry}),Q8=ib(0,0,0,0);function Ny(e){return parseFloat(e)||0}function z4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var o=e["border-"+a+"-width"];return r+Ny(o)},0)}function pI(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],l=e["padding-"+o];n[o]=Ny(l)}return n}function gI(e){var t=e.getBBox();return ib(0,0,t.width,t.height)}function hI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q8;var r=qm(e).getComputedStyle(e),a=pI(r),o=a.left+a.right,l=a.top+a.bottom,s=Ny(r.width),d=Ny(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=z4(r,"left","right")+o),Math.round(d+l)!==n&&(d-=z4(r,"top","bottom")+l)),!yI(e)){var f=Math.round(s+o)-t,m=Math.round(d+l)-n;Math.abs(f)!==1&&(s-=f),Math.abs(m)!==1&&(d-=m)}return ib(a.left,a.top,s,d)}var vI=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof qm(e).SVGGraphicsElement}:function(e){return e instanceof qm(e).SVGElement&&typeof e.getBBox=="function"}})();function yI(e){return e===qm(e).document.documentElement}function bI(e){return jS?vI(e)?gI(e):hI(e):Q8}function xI(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(o.prototype);return Y8(l,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),l}function ib(e,t,n,r){return{x:e,y:t,width:n,height:r}}var SI=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ib(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=bI(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})(),CI=(function(){function e(t,n){var r=xI(n);Y8(this,{target:t,contentRect:r})}return e})(),wI=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new X8,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 qm(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new SI(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 qm(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 CI(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})(),Z8=typeof WeakMap<"u"?new WeakMap:new X8,J8=(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=mI.getInstance(),r=new wI(t,n,this);Z8.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){J8.prototype[e]=function(){var t;return(t=Z8.get(this))[e].apply(t,arguments)}});var EI=(function(){return typeof Ry.ResizeObserver<"u"?Ry.ResizeObserver:J8})(),ou=new Map;function $I(e){e.forEach(function(t){var n,r=t.target;(n=ou.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var e7=new EI($I);function OI(e,t){ou.has(e)||(ou.set(e,new Set),e7.observe(e)),ou.get(e).add(t)}function MI(e,t){ou.has(e)&&(ou.get(e).delete(t),ou.get(e).size||(e7.unobserve(e),ou.delete(e)))}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D4(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,G8(r.key),r)}}function da(e,t,n){return t&&D4(e.prototype,t),n&&D4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ih(e,t)}function nl(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&&Ih(e,t)}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zd(e)}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lb=function(){return!!e})()}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t7(e,t){if(t&&(Vt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return St(e)}function Al(e){var t=lb();return function(){var n,r=zd(e);if(t){var a=zd(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return t7(this,n)}}var RI=(function(e){nl(n,e);var t=Al(n);function n(){return ua(this,n),t.apply(this,arguments)}return da(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function NI(e,t){var n=e.children,r=e.disabled,a=u.useRef(null),o=u.useRef(null),l=u.useContext(DS),s=typeof n=="function",d=s?n(a):n,f=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!s&&u.isValidElement(d)&&Il(d),h=m?Gh(d):null,v=oc(h,a),y=function(){var E;return oy(a.current)||(a.current&&Vt(a.current)==="object"?oy((E=a.current)===null||E===void 0?void 0:E.nativeElement):null)||oy(o.current)};u.useImperativeHandle(t,function(){return y()});var S=u.useRef(e);S.current=e;var C=u.useCallback(function(w){var E=S.current,$=E.onResize,O=E.data,N=w.getBoundingClientRect(),I=N.width,R=N.height,_=w.offsetWidth,z=w.offsetHeight,D=Math.floor(I),L=Math.floor(R);if(f.current.width!==D||f.current.height!==L||f.current.offsetWidth!==_||f.current.offsetHeight!==z){var B={width:D,height:L,offsetWidth:_,offsetHeight:z};f.current=B;var F=_===Math.round(I)?I:_,H=z===Math.round(R)?R:z,k=le(le({},B),{},{offsetWidth:F,offsetHeight:H});l?.(k,w,O),$&&Promise.resolve().then(function(){$(k,w)})}},[]);return u.useEffect(function(){var w=y();return w&&!r&&OI(w,C),function(){return MI(w,C)}},[a.current,r]),u.createElement(RI,{ref:o},m?u.cloneElement(d,{ref:v}):d)}var TI=u.forwardRef(NI),II="rc-observer-key";function _I(e,t){var n=e.children,r=typeof n=="function"?[n]:ro(n);return r.map(function(a,o){var l=a?.key||"".concat(II,"-").concat(o);return u.createElement(TI,Je({},e,{key:l,ref:o===0?t:void 0}),a)})}var qo=u.forwardRef(_I);qo.Collection=iI;function Qr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function kS(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 AI(e){if(Array.isArray(e))return kS(e)}function n7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ow(e,t){if(e){if(typeof e=="string")return kS(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)?kS(e,t):void 0}}function PI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function st(e){return AI(e)||n7(e)||Ow(e)||PI()}var r7=function(t){return+setTimeout(t,16)},a7=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(r7=function(t){return window.requestAnimationFrame(t)},a7=function(t){return window.cancelAnimationFrame(t)});var j4=0,Mw=new Map;function o7(e){Mw.delete(e)}var sr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;j4+=1;var r=j4;function a(o){if(o===0)o7(r),t();else{var l=r7(function(){a(o-1)});Mw.set(r,l)}}return a(n),r};sr.cancel=function(e){var t=Mw.get(e);return o7(e),a7(t)};function i7(e){if(Array.isArray(e))return e}function zI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,s=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return s}}function l7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e,t){return i7(e)||zI(e,t)||Ow(e,t)||l7()}function _h(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 ao(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function LS(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 k4="data-rc-order",L4="data-rc-priority",DI="rc-util-key",BS=new Map;function s7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):DI}function sb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function jI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Rw(e){return Array.from((BS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function c7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ao())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,l=jI(r),s=l==="prependQueue",d=document.createElement("style");d.setAttribute(k4,l),s&&o&&d.setAttribute(L4,"".concat(o)),n!=null&&n.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;var f=sb(t),m=f.firstChild;if(r){if(s){var h=(t.styles||Rw(f)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(k4)))return!1;var y=Number(v.getAttribute(L4)||0);return o>=y});if(h.length)return f.insertBefore(d,h[h.length-1].nextSibling),d}f.insertBefore(d,m)}else f.appendChild(d);return d}function u7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sb(t);return(t.styles||Rw(n)).find(function(r){return r.getAttribute(s7(t))===e})}function Ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=u7(e,t);if(n){var r=sb(t);r.removeChild(n)}}function kI(e,t){var n=BS.get(e);if(!n||!LS(document,n)){var r=c7("",t),a=r.parentNode;BS.set(e,a),e.removeChild(r)}}function ec(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sb(n),a=Rw(r),o=le(le({},n),{},{styles:a});kI(r,o);var l=u7(t,o);if(l){var s,d;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&l.nonce!==((d=o.csp)===null||d===void 0?void 0:d.nonce)){var f;l.nonce=(f=o.csp)===null||f===void 0?void 0:f.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=c7(e,o);return m.setAttribute(s7(o),t),m}function LI(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 ln(e,t){if(e==null)return{};var n,r,a=LI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(o);if(Yr(!d,"Warning: There may be circular references"),d)return!1;if(o===l)return!0;if(n&&s>1)return!1;r.add(o);var f=s+1;if(Array.isArray(o)){if(!Array.isArray(l)||o.length!==l.length)return!1;for(var m=0;m<o.length;m++)if(!a(o[m],l[m],f))return!1;return!0}if(o&&l&&Vt(o)==="object"&&Vt(l)==="object"){var h=Object.keys(o);return h.length!==Object.keys(l).length?!1:h.every(function(v){return a(o[v],l[v],f)})}return!1}return a(e,t)}var BI="%";function FS(e){return e.join(BI)}var FI=(function(){function e(t){ua(this,e),te(this,"instanceId",void 0),te(this,"cache",new Map),te(this,"extracted",new Set),this.instanceId=t}return da(e,[{key:"get",value:function(n){return this.opGet(FS(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(FS(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),o=r(a);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e})(),Gm="data-token-hash",Nl="data-css-hash",iu="__cssinjs_instance__";function HI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Nl,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[iu]=a[iu]||e,a[iu]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Nl,"]"))).forEach(function(a){var o=a.getAttribute(Nl);if(r[o]){if(a[iu]===e){var l;(l=a.parentNode)===null||l===void 0||l.removeChild(a)}}else r[o]=!0})}return new FI(e)}var cb=u.createContext({hashPriority:"low",cache:HI(),defaultCache:!0});function VI(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 Nw=(function(){function e(){ua(this,e),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return da(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(s){if(!l)l=void 0;else{var d;l=(d=l)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(s)}}),(r=l)!==null&&r!==void 0&&r.value&&o&&(l.value[1]=this.cacheCallTimes++),(a=l)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(f,m){var h=Re(f,2),v=h[1];return a.internalGet(m)[1]<v?[m,a.internalGet(m)[1]]:f},[this.keys[0],this.cacheCallTimes]),l=Re(o,1),s=l[0];this.delete(s)}this.keys.push(n)}var d=this.cache;n.forEach(function(f,m){if(m===n.length-1)d.set(f,{value:[r,a.cacheCallTimes++]});else{var h=d.get(f);h?h.map||(h.map=new Map):d.set(f,{map:new Map}),d=d.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var o;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var l=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!VI(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();te(Nw,"MAX_CACHE_SIZE",20);te(Nw,"MAX_CACHE_OFFSET",5);var B4=0,d7=(function(){function e(t){ua(this,e),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=B4,t.length===0&&(t.length>0,void 0),B4+=1}return da(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),u2=new Nw;function HS(e){var t=Array.isArray(e)?e:[e];return u2.has(t)||u2.set(t,new d7(t)),u2.get(t)}var KI=new WeakMap,d2={};function WI(e,t){for(var n=KI,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(d2)||n.set(d2,e()),n.get(d2)}var F4=new WeakMap;function yh(e){var t=F4.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof d7?t+=r.id:r&&Vt(r)==="object"?t+=yh(r):t+=r}),t=_h(t),F4.set(e,t)),t}function H4(e,t){return _h("".concat(t,"_").concat(yh(e)))}var VS=ao();function ie(e){return typeof e=="number"?"".concat(e,"px"):e}function Ty(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=le(le({},r),{},te(te({},Gm,t),Nl,n)),l=Object.keys(o).map(function(s){var d=o[s];return d?"".concat(s,'="').concat(d,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var iy=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()},UI=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(a){var o=Re(a,2),l=o[0],s=o[1];return"".concat(l,":").concat(s,";")}).join(""),"}"):""},f7=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(l){var s,d,f=Re(l,2),m=f[0],h=f[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[m])o[m]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[m])){var v,y=iy(m,r?.prefix);a[y]=typeof h=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[m])?"".concat(h,"px"):String(h),o[m]="var(".concat(y,")")}}),[o,UI(a,n,{scope:r?.scope})]},V4=ao()?u.useLayoutEffect:u.useEffect,Ln=function(t,n){var r=u.useRef(!0);V4(function(){return t(r.current)},n),V4(function(){return r.current=!1,function(){r.current=!0}},[])},KS=function(t,n){Ln(function(r){if(!r)return t()},n)},qI=le({},ab),K4=qI.useInsertionEffect,GI=function(t,n,r){u.useMemo(t,r),Ln(function(){return n(!0)},r)},XI=K4?function(e,t,n){return K4(function(){return e(),t()},n)}:GI,YI=le({},ab),QI=YI.useInsertionEffect,ZI=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},JI=function(){return function(t){t()}},e_=typeof QI<"u"?ZI:JI;function Tw(e,t,n,r,a){var o=u.useContext(cb),l=o.cache,s=[e].concat(st(t)),d=FS(s),f=e_([d]),m=function(S){l.opUpdate(d,function(C){var w=C||[void 0,void 0],E=Re(w,2),$=E[0],O=$===void 0?0:$,N=E[1],I=N,R=I||n(),_=[O,R];return S?S(_):_})};u.useMemo(function(){m()},[d]);var h=l.opGet(d),v=h[1];return XI(function(){a?.(v)},function(y){return m(function(S){var C=Re(S,2),w=C[0],E=C[1];return y&&w===0&&a?.(v),[w+1,E]}),function(){l.opUpdate(d,function(S){var C=S||[],w=Re(C,2),E=w[0],$=E===void 0?0:E,O=w[1],N=$-1;return N===0?(f(function(){(y||!l.opGet(d))&&r?.(O,!1)}),null):[$-1,O]})}},[d]),v}var t_={},n_="css",Od=new Map;function r_(e){Od.set(e,(Od.get(e)||0)+1)}function a_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Gm,'="').concat(e,'"]'));n.forEach(function(r){if(r[iu]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var o_=0;function i_(e,t){Od.set(e,(Od.get(e)||0)-1);var n=new Set;Od.forEach(function(r,a){r<=0&&n.add(a)}),Od.size-n.size>o_&&n.forEach(function(r){a_(r,t),Od.delete(r)})}var l_=function(t,n,r,a){var o=r.getDerivativeToken(t),l=le(le({},o),n);return a&&(l=a(l)),l},m7="token";function s_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(cb),a=r.cache.instanceId,o=r.container,l=n.salt,s=l===void 0?"":l,d=n.override,f=d===void 0?t_:d,m=n.formatToken,h=n.getComputedToken,v=n.cssVar,y=WI(function(){return Object.assign.apply(Object,[{}].concat(st(t)))},t),S=yh(y),C=yh(f),w=v?yh(v):"",E=Tw(m7,[s,e.id,S,C,w],function(){var $,O=h?h(y,f,e):l_(y,f,e,m),N=le({},O),I="";if(v){var R=f7(O,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),_=Re(R,2);O=_[0],I=_[1]}var z=H4(O,s);O._tokenKey=z,N._tokenKey=H4(N,s);var D=($=v?.key)!==null&&$!==void 0?$:z;O._themeKey=D,r_(D);var L="".concat(n_,"-").concat(_h(z));return O._hashId=L,[O,L,N,I,v?.key||""]},function($){i_($[0]._themeKey,a)},function($){var O=Re($,4),N=O[0],I=O[3];if(v&&I){var R=ec(I,_h("css-variables-".concat(N._themeKey)),{mark:Nl,prepend:"queue",attachTo:o,priority:-999});R[iu]=a,R.setAttribute(Gm,N._themeKey)}});return E}var c_=function(t,n,r){var a=Re(t,5),o=a[2],l=a[3],s=a[4],d=r||{},f=d.plain;if(!l)return null;var m=o._tokenKey,h=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},y=Ty(l,s,m,v,f);return[h,m,y]},u_={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},p7="comm",g7="rule",h7="decl",d_="@import",f_="@namespace",m_="@keyframes",p_="@layer",v7=Math.abs,Iw=String.fromCharCode;function y7(e){return e.trim()}function ly(e,t,n){return e.replace(t,n)}function g_(e,t,n){return e.indexOf(t,n)}function Lm(e,t){return e.charCodeAt(t)|0}function Xm(e,t,n){return e.slice(t,n)}function ds(e){return e.length}function h_(e){return e.length}function R1(e,t){return t.push(e),e}var ub=1,Ym=1,b7=0,el=0,Aa=0,ap="";function _w(e,t,n,r,a,o,l,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:ub,column:Ym,length:l,return:"",siblings:s}}function v_(){return Aa}function y_(){return Aa=el>0?Lm(ap,--el):0,Ym--,Aa===10&&(Ym=1,ub--),Aa}function Tl(){return Aa=el<b7?Lm(ap,el++):0,Ym++,Aa===10&&(Ym=1,ub++),Aa}function lu(){return Lm(ap,el)}function sy(){return el}function db(e,t){return Xm(ap,e,t)}function Ph(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 b_(e){return ub=Ym=1,b7=ds(ap=e),el=0,[]}function x_(e){return ap="",e}function f2(e){return y7(db(el-1,WS(e===91?e+2:e===40?e+1:e)))}function S_(e){for(;(Aa=lu())&&Aa<33;)Tl();return Ph(e)>2||Ph(Aa)>3?"":" "}function C_(e,t){for(;--t&&Tl()&&!(Aa<48||Aa>102||Aa>57&&Aa<65||Aa>70&&Aa<97););return db(e,sy()+(t<6&&lu()==32&&Tl()==32))}function WS(e){for(;Tl();)switch(Aa){case e:return el;case 34:case 39:e!==34&&e!==39&&WS(Aa);break;case 40:e===41&&WS(e);break;case 92:Tl();break}return el}function w_(e,t){for(;Tl()&&e+Aa!==57;)if(e+Aa===84&&lu()===47)break;return"/*"+db(t,el-1)+"*"+Iw(e===47?e:Tl())}function E_(e){for(;!Ph(lu());)Tl();return db(e,el)}function $_(e){return x_(cy("",null,null,null,[""],e=b_(e),0,[0],e))}function cy(e,t,n,r,a,o,l,s,d){for(var f=0,m=0,h=l,v=0,y=0,S=0,C=1,w=1,E=1,$=0,O="",N=a,I=o,R=r,_=O;w;)switch(S=$,$=Tl()){case 40:if(S!=108&&Lm(_,h-1)==58){g_(_+=ly(f2($),"&","&\f"),"&\f",v7(f?s[f-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:_+=f2($);break;case 9:case 10:case 13:case 32:_+=S_(S);break;case 92:_+=C_(sy()-1,7);continue;case 47:switch(lu()){case 42:case 47:R1(O_(w_(Tl(),sy()),t,n,d),d),(Ph(S||1)==5||Ph(lu()||1)==5)&&ds(_)&&Xm(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*C:s[f++]=ds(_)*E;case 125*C:case 59:case 0:switch($){case 0:case 125:w=0;case 59+m:E==-1&&(_=ly(_,/\f/g,"")),y>0&&(ds(_)-h||C===0&&S===47)&&R1(y>32?U4(_+";",r,n,h-1,d):U4(ly(_," ","")+";",r,n,h-2,d),d);break;case 59:_+=";";default:if(R1(R=W4(_,t,n,f,m,a,s,O,N=[],I=[],h,o),o),$===123)if(m===0)cy(_,t,R,R,N,o,h,s,I);else{switch(v){case 99:if(Lm(_,3)===110)break;case 108:if(Lm(_,2)===97)break;default:m=0;case 100:case 109:case 115:}m?cy(e,R,R,r&&R1(W4(e,R,R,0,0,a,s,O,a,N=[],h,I),I),a,I,h,s,r?N:I):cy(_,R,R,R,[""],I,0,s,I)}}f=m=y=0,C=E=1,O=_="",h=l;break;case 58:h=1+ds(_),y=S;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&y_()==125)continue}switch(_+=Iw($),$*C){case 38:E=m>0?1:(_+="\f",-1);break;case 44:s[f++]=(ds(_)-1)*E,E=1;break;case 64:lu()===45&&(_+=f2(Tl())),v=lu(),m=h=ds(O=_+=E_(sy())),$++;break;case 45:S===45&&ds(_)==2&&(C=0)}}return o}function W4(e,t,n,r,a,o,l,s,d,f,m,h){for(var v=a-1,y=a===0?o:[""],S=h_(y),C=0,w=0,E=0;C<r;++C)for(var $=0,O=Xm(e,v+1,v=v7(w=l[C])),N=e;$<S;++$)(N=y7(w>0?y[$]+" "+O:ly(O,/&\f/g,y[$])))&&(d[E++]=N);return _w(e,t,n,a===0?g7:s,d,f,m,h)}function O_(e,t,n,r){return _w(e,t,n,p7,Iw(v_()),Xm(e,2,-2),0,r)}function U4(e,t,n,r,a){return _w(e,t,n,h7,Xm(e,0,r),Xm(e,r+1,-1),r,a)}function US(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function M_(e,t,n,r){switch(e.type){case p_:if(e.children.length)break;case d_:case f_:case h7:return e.return=e.return||e.value;case p7:return"";case m_:return e.return=e.value+"{"+US(e.children,r)+"}";case g7:if(!ds(e.value=e.props.join(",")))return""}return ds(n=US(e.children,r))?e.return=e.value+"{"+n+"}":""}var q4="data-ant-cssinjs-cache-path",x7="_FILE_STYLE__",Ad,S7=!0;function R_(){if(!Ad&&(Ad={},ao())){var e=document.createElement("div");e.className=q4,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(a){var o=a.split(":"),l=Re(o,2),s=l[0],d=l[1];Ad[s]=d});var n=document.querySelector("style[".concat(q4,"]"));if(n){var r;S7=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function N_(e){return R_(),!!Ad[e]}function T_(e){var t=Ad[e],n=null;if(t&&ao())if(S7)n=x7;else{var r=document.querySelector("style[".concat(Nl,'="').concat(Ad[e],'"]'));r?n=r.innerHTML:delete Ad[e]}return[n,t]}var I_="_skip_check_",C7="_multi_value_";function uy(e){var t=US($_(e),M_);return t.replace(/\{%%%\:[^;];}/g,";")}function __(e){return Vt(e)==="object"&&e&&(I_ in e||C7 in e)}function G4(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(l){var s,d=l.trim().split(/\s+/),f=d[0]||"",m=((s=f.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return f="".concat(m).concat(a).concat(f.slice(m.length)),[f].concat(st(d.slice(1))).join(" ")});return o.join(",")}var A_=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:[]},a=r.root,o=r.injectHash,l=r.parentSelectors,s=n.hashId,d=n.layer;n.path;var f=n.hashPriority,m=n.transformers,h=m===void 0?[]:m;n.linters;var v="",y={};function S(E){var $=E.getName(s);if(!y[$]){var O=e(E.style,n,{root:!1,parentSelectors:l}),N=Re(O,1),I=N[0];y[$]="@keyframes ".concat(E.getName(s)).concat(I)}}function C(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(O){Array.isArray(O)?C(O,$):O&&$.push(O)}),$}var w=C(Array.isArray(t)?t:[t]);return w.forEach(function(E){var $=typeof E=="string"&&!a?{}:E;if(typeof $=="string")v+="".concat($,` `);else if($._keyframe)S($);else{var O=h.reduce(function(N,I){var R;return(I==null||(R=I.visit)===null||R===void 0?void 0:R.call(I,N))||N},$);Object.keys(O).forEach(function(N){var I=O[N];if(Vt(I)==="object"&&I&&(N!=="animationName"||!I._keyframe)&&!__(I)){var R=!1,_=N.trim(),z=!1;(a||o)&&s?_.startsWith("@")?R=!0:_==="&"?_=G4("",s,f):_=G4(N,s,f):a&&!s&&(_==="&"||_==="")&&(_="",z=!0);var D=e(I,n,{root:z,injectHash:R,parentSelectors:[].concat(st(l),[_])}),L=Re(D,2),B=L[0],F=L[1];y=le(le({},y),F),v+="".concat(_).concat(B)}else{let q=function(V,W){var G=V.replace(/[A-Z]/g,function(P){return"-".concat(P.toLowerCase())}),X=W;!u_[V]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),V==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(S(W),X=W.getName(s)),v+="".concat(G,":").concat(X,";")};var H,k=(H=I?.value)!==null&&H!==void 0?H:I;Vt(I)==="object"&&I!==null&&I!==void 0&&I[C7]&&Array.isArray(k)?k.forEach(function(V){q(N,V)}):q(N,k)}})}}),a?d&&(v&&(v="@layer ".concat(d.name," {").concat(v,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(d.name,";")}).join(` `))):v="{".concat(v,"}"),[v,y]};function w7(e,t){return _h("".concat(e.join("%")).concat(t))}function P_(){return null}var E7="style";function qS(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,l=e.nonce,s=e.clientOnly,d=e.order,f=d===void 0?0:d,m=u.useContext(cb),h=m.autoClear;m.mock;var v=m.defaultCache,y=m.hashPriority,S=m.container,C=m.ssrInline,w=m.transformers,E=m.linters,$=m.cache,O=m.layer,N=n._tokenKey,I=[N];O&&I.push("layer"),I.push.apply(I,st(r));var R=VS,_=Tw(E7,I,function(){var F=I.join("|");if(N_(F)){var H=T_(F),k=Re(H,2),q=k[0],V=k[1];if(q)return[q,N,V,{},s,f]}var W=t(),G=A_(W,{hashId:a,hashPriority:y,layer:O?o:void 0,path:r.join("-"),transformers:w,linters:E}),X=Re(G,2),P=X[0],K=X[1],J=uy(P),j=w7(I,J);return[J,N,j,K,s,f]},function(F,H){var k=Re(F,3),q=k[2];(H||h)&&VS&&Ah(q,{mark:Nl,attachTo:S})},function(F){var H=Re(F,4),k=H[0];H[1];var q=H[2],V=H[3];if(R&&k!==x7){var W={mark:Nl,prepend:O?!1:"queue",attachTo:S,priority:f},G=typeof l=="function"?l():l;G&&(W.csp={nonce:G});var X=[],P=[];Object.keys(V).forEach(function(J){J.startsWith("@layer")?X.push(J):P.push(J)}),X.forEach(function(J){ec(uy(V[J]),"_layer-".concat(J),le(le({},W),{},{prepend:!0}))});var K=ec(k,q,W);K[iu]=$.instanceId,K.setAttribute(Gm,N),P.forEach(function(J){ec(uy(V[J]),"_effect-".concat(J),W)})}}),z=Re(_,3),D=z[0],L=z[1],B=z[2];return function(F){var H;return!C||R||!v?H=u.createElement(P_,null):H=u.createElement("style",Je({},te(te({},Gm,L),Nl,B),{dangerouslySetInnerHTML:{__html:D}})),u.createElement(u.Fragment,null,H,F)}}var z_=function(t,n,r){var a=Re(t,6),o=a[0],l=a[1],s=a[2],d=a[3],f=a[4],m=a[5],h=r||{},v=h.plain;if(f)return null;var y=o,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return y=Ty(o,l,s,S,v),d&&Object.keys(d).forEach(function(C){if(!n[C]){n[C]=!0;var w=uy(d[C]),E=Ty(w,l,"_effect-".concat(C),S,v);C.startsWith("@layer")?y=E+y:y+=E}}),[m,s,y]},$7="cssVar",D_=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,l=t.ignore,s=t.token,d=t.scope,f=d===void 0?"":d,m=u.useContext(cb),h=m.cache.instanceId,v=m.container,y=s._tokenKey,S=[].concat(st(t.path),[r,f,y]),C=Tw($7,S,function(){var w=n(),E=f7(w,r,{prefix:a,unitless:o,ignore:l,scope:f}),$=Re(E,2),O=$[0],N=$[1],I=w7(S,N);return[O,N,I,r]},function(w){var E=Re(w,3),$=E[2];VS&&Ah($,{mark:Nl,attachTo:v})},function(w){var E=Re(w,3),$=E[1],O=E[2];if($){var N=ec($,O,{mark:Nl,prepend:"queue",attachTo:v,priority:-999});N[iu]=h,N.setAttribute(Gm,r)}});return C},j_=function(t,n,r){var a=Re(t,4),o=a[1],l=a[2],s=a[3],d=r||{},f=d.plain;if(!o)return null;var m=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},v=Ty(o,s,l,h,f);return[m,l,v]};te(te(te({},E7,z_),m7,c_),$7,j_);var zn=(function(){function e(t,n){ua(this,e),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=t,this.style=n}return da(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 vm(e){return e.notSplit=!0,e}vm(["borderTop","borderBottom"]),vm(["borderTop"]),vm(["borderBottom"]),vm(["borderLeft","borderRight"]),vm(["borderLeft"]),vm(["borderRight"]);var Aw=u.createContext({});function O7(e){return i7(e)||n7(e)||Ow(e)||l7()}function _i(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function M7(e,t,n,r){if(!t.length)return n;var a=O7(t),o=a[0],l=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=st(e):s=le({},e),r&&n===void 0&&l.length===1?delete s[o][l[0]]:s[o]=M7(s[o],l,n,r),s}function $l(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!_i(e,t.slice(0,-1))?e:M7(e,t,n,r)}function k_(e){return Vt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function X4(e){return Array.isArray(e)?[]:{}}var L_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=X4(t[0]);return t.forEach(function(a){function o(l,s){var d=new Set(s),f=_i(a,l),m=Array.isArray(f);if(m||k_(f)){if(!d.has(f)){d.add(f);var h=_i(r,l);m?r=$l(r,l,[]):(!h||Vt(h)!=="object")&&(r=$l(r,l,X4(f))),L_(f).forEach(function(v){o([].concat(st(l),[v]),d)})}}else r=$l(r,l,f)}o([])}),r}function B_(){}const F_=u.createContext({}),gu=()=>{const e=()=>{};return e.deprecated=B_,e},R7=u.createContext(void 0);var N7={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"},H_={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},V_=le(le({},H_),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",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 T7={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y4={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"]},V_),timePickerLocale:Object.assign({},T7)},Oi="${label} is not a valid ${type}",ys={locale:"en",Pagination:N7,DatePicker:Y4,TimePicker:T7,Calendar:Y4,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Oi,method:Oi,array:Oi,object:Oi,number:Oi,date:Oi,boolean:Oi,integer:Oi,float:Oi,regexp:Oi,email:Oi,url:Oi,hex:Oi},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 dy=Object.assign({},ys.Modal),fy=[];const Q4=()=>fy.reduce((e,t)=>Object.assign(Object.assign({},e),t),ys.Modal);function K_(e){if(e){const t=Object.assign({},e);return fy.push(t),dy=Q4(),()=>{fy=fy.filter(n=>n!==t),dy=Q4()}}dy=Object.assign({},ys.Modal)}function I7(){return dy}const Pw=u.createContext(void 0),Cs=(e,t)=>{const n=u.useContext(Pw),r=u.useMemo(()=>{var o;const l=t||ys[e],s=(o=n?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),s||{})},[e,t,n]),a=u.useMemo(()=>{const o=n?.locale;return n?.exist&&!o?ys.locale:o},[n]);return[r,a]},W_="internalMark",U_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>K_(t?.Modal),[t]);const a=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Pw.Provider,{value:a},n)},Wa=Math.round;function m2(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Z4=(e,t,n)=>n===0?e:e/100;function Qg(e,t){const n=t||255;return e>n?n:e<0?0:e}class su{constructor(t){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof su)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=Qg(t.r),this.g=Qg(t.g),this.b=Qg(t.b),this.a=typeof t.a=="number"?Qg(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(o){const l=o/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Wa(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 a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],l={r:Wa(o("r")),g:Wa(o("g")),b:Wa(o("b")),a:Wa(o("a")*100)/100};return this._c(l)}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),a=o=>Wa((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("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 a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Wa(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Wa(this.getSaturation()*100),r=Wa(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 a=this.clone();return a[t]=Qg(n,r),a}_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(a,o){return parseInt(n[a]+n[o||a],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}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const v=Wa(r*255);this.r=v,this.g=v,this.b=v}let o=0,l=0,s=0;const d=t/60,f=(1-Math.abs(2*r-1))*n,m=f*(1-Math.abs(d%2-1));d>=0&&d<1?(o=f,l=m):d>=1&&d<2?(o=m,l=f):d>=2&&d<3?(l=f,s=m):d>=3&&d<4?(l=m,s=f):d>=4&&d<5?(o=m,s=f):d>=5&&d<6&&(o=f,s=m);const h=r-f/2;this.r=Wa((o+h)*255),this.g=Wa((l+h)*255),this.b=Wa((s+h)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=Wa(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const l=t/60,s=Math.floor(l),d=l-s,f=Wa(r*(1-n)*255),m=Wa(r*(1-n*d)*255),h=Wa(r*(1-n*(1-d))*255);switch(s){case 0:this.g=h,this.b=f;break;case 1:this.r=m,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=m;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=m;break}}fromHsvString(t){const n=m2(t,Z4);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=m2(t,Z4);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=m2(t,(r,a)=>a.includes("%")?Wa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var N1=2,J4=.16,q_=.05,G_=.05,X_=.15,_7=5,A7=4,Y_=[{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 e3(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-N1*t:Math.round(e.h)+N1*t:r=n?Math.round(e.h)+N1*t:Math.round(e.h)-N1*t,r<0?r+=360:r>=360&&(r-=360),r}function t3(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-J4*t:t===A7?r=e.s+J4:r=e.s+q_*t,r>1&&(r=1),n&&t===_7&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function n3(e,t,n){var r;return n?r=e.v+G_*t:r=e.v-X_*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function zh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new su(e),a=r.toHsv(),o=_7;o>0;o-=1){var l=new su({h:e3(a,o,!0),s:t3(a,o,!0),v:n3(a,o,!0)});n.push(l)}n.push(r);for(var s=1;s<=A7;s+=1){var d=new su({h:e3(a,s),s:t3(a,s),v:n3(a,s)});n.push(d)}return t.theme==="dark"?Y_.map(function(f){var m=f.index,h=f.amount;return new su(t.backgroundColor||"#141414").mix(n[m],h).toHexString()}):n.map(function(f){return f.toHexString()})}var p2={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"},GS=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];GS.primary=GS[5];var XS=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];XS.primary=XS[5];var YS=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];YS.primary=YS[5];var Iy=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Iy.primary=Iy[5];var QS=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];QS.primary=QS[5];var ZS=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ZS.primary=ZS[5];var JS=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];JS.primary=JS[5];var eC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];eC.primary=eC[5];var _y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_y.primary=_y[5];var tC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];tC.primary=tC[5];var nC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];nC.primary=nC[5];var rC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];rC.primary=rC[5];var aC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];aC.primary=aC[5];var g2={red:GS,volcano:XS,orange:YS,gold:Iy,yellow:QS,lime:ZS,green:JS,cyan:eC,blue:_y,geekblue:tC,purple:nC,magenta:rC,grey:aC};const P7={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"},Dh=Object.assign(Object.assign({},P7),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function no(e,t){Q_(e)&&(e="100%");var n=Z_(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function T1(e){return Math.min(1,Math.max(0,e))}function Q_(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Z_(e){return typeof e=="string"&&e.indexOf("%")!==-1}function z7(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I1(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rd(e){return e.length===1?"0"+e:String(e)}function J_(e,t,n){return{r:no(e,255)*255,g:no(t,255)*255,b:no(n,255)*255}}function r3(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,l=0,s=(r+a)/2;if(r===a)l=0,o=0;else{var d=r-a;switch(l=s>.5?d/(2-r-a):d/(r+a),r){case e:o=(t-n)/d+(t<n?6:0);break;case t:o=(n-e)/d+2;break;case n:o=(e-t)/d+4;break}o/=6}return{h:o,s:l,l:s}}function h2(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eA(e,t,n){var r,a,o;if(e=no(e,360),t=no(t,100),n=no(n,100),t===0)a=n,o=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=h2(s,l,e+1/3),a=h2(s,l,e),o=h2(s,l,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function a3(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,l=r,s=r-a,d=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:d,v:l}}function tA(e,t,n){e=no(e,360)*6,t=no(t,100),n=no(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),l=n*(1-a*t),s=n*(1-(1-a)*t),d=r%6,f=[n,l,o,o,s,n][d],m=[s,n,n,l,o,o][d],h=[o,o,s,n,n,l][d];return{r:f*255,g:m*255,b:h*255}}function o3(e,t,n,r){var a=[Rd(Math.round(e).toString(16)),Rd(Math.round(t).toString(16)),Rd(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function nA(e,t,n,r,a){var o=[Rd(Math.round(e).toString(16)),Rd(Math.round(t).toString(16)),Rd(Math.round(n).toString(16)),Rd(rA(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function rA(e){return Math.round(parseFloat(e)*255).toString(16)}function i3(e){return Ti(e)/255}function Ti(e){return parseInt(e,16)}function aA(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var oC={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oA(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,l=!1,s=!1;return typeof e=="string"&&(e=sA(e)),typeof e=="object"&&(Ys(e.r)&&Ys(e.g)&&Ys(e.b)?(t=J_(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ys(e.h)&&Ys(e.s)&&Ys(e.v)?(r=I1(e.s),a=I1(e.v),t=tA(e.h,r,a),l=!0,s="hsv"):Ys(e.h)&&Ys(e.s)&&Ys(e.l)&&(r=I1(e.s),o=I1(e.l),t=eA(e.h,r,o),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=z7(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var iA="[-\\+]?\\d+%?",lA="[-\\+]?\\d*\\.\\d+%?",cu="(?:".concat(lA,")|(?:").concat(iA,")"),v2="[\\s|\\(]+(".concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")\\s*\\)?"),y2="[\\s|\\(]+(".concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")\\s*\\)?"),wl={CSS_UNIT:new RegExp(cu),rgb:new RegExp("rgb"+v2),rgba:new RegExp("rgba"+y2),hsl:new RegExp("hsl"+v2),hsla:new RegExp("hsla"+y2),hsv:new RegExp("hsv"+v2),hsva:new RegExp("hsva"+y2),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function sA(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(oC[e])e=oC[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=wl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=wl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=wl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wl.hex8.exec(e),n?{r:Ti(n[1]),g:Ti(n[2]),b:Ti(n[3]),a:i3(n[4]),format:t?"name":"hex8"}:(n=wl.hex6.exec(e),n?{r:Ti(n[1]),g:Ti(n[2]),b:Ti(n[3]),format:t?"name":"hex"}:(n=wl.hex4.exec(e),n?{r:Ti(n[1]+n[1]),g:Ti(n[2]+n[2]),b:Ti(n[3]+n[3]),a:i3(n[4]+n[4]),format:t?"name":"hex8"}:(n=wl.hex3.exec(e),n?{r:Ti(n[1]+n[1]),g:Ti(n[2]+n[2]),b:Ti(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ys(e){return!!wl.CSS_UNIT.exec(String(e))}var zr=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=aA(t)),this.originalInput=t;var a=oA(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,l=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=z7(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=a3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=a3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=r3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=r3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),o3(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),nA(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(no(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(no(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+o3(this.r,this.g,this.b,!1),n=0,r=Object.entries(oC);n<r.length;n++){var a=r[n],o=a[0],l=a[1];if(t===l)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=T1(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=T1(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=T1(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=T1(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,l={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,l=1;l<t;l++)a.push(new e({h:(r+l*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function cA(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:d,colorBgBase:f,colorTextBase:m}=e,h=n(d),v=n(a),y=n(o),S=n(l),C=n(s),w=r(f,m),E=e.colorLink||e.colorInfo,$=n(E),O=new zr(S[1]).mix(new zr(S[3]),50).toHexString();return Object.assign(Object.assign({},w),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:O,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new zr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const uA=e=>{let t=e,n=e,r=e,a=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?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function dA(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=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:a+1},uA(r))}const fA=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function my(e){return(e+8)/e}function mA(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),l=r>1?Math.floor(o):Math.ceil(o);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:my(n)}))}const pA=e=>{const t=mA(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),a=n[1],o=n[0],l=n[2],s=r[1],d=r[0],f=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:f,lineHeightSM:d,fontHeight:Math.round(s*a),fontHeightLG:Math.round(f*l),fontHeightSM:Math.round(d*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function gA(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 qi=(e,t)=>new zr(e).setAlpha(t).toRgbString(),Zg=(e,t)=>new zr(e).darken(t).toHexString(),hA=e=>{const t=zh(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]}},vA=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qi(r,.88),colorTextSecondary:qi(r,.65),colorTextTertiary:qi(r,.45),colorTextQuaternary:qi(r,.25),colorFill:qi(r,.15),colorFillSecondary:qi(r,.06),colorFillTertiary:qi(r,.04),colorFillQuaternary:qi(r,.02),colorBgSolid:qi(r,1),colorBgSolidHover:qi(r,.75),colorBgSolidActive:qi(r,.95),colorBgLayout:Zg(n,4),colorBgContainer:Zg(n,0),colorBgElevated:Zg(n,0),colorBgSpotlight:qi(r,.85),colorBgBlur:"transparent",colorBorder:Zg(n,15),colorBorderSecondary:Zg(n,6)}};function yA(e){p2.pink=p2.magenta,g2.pink=g2.magenta;const t=Object.keys(P7).map(n=>{const r=e[n]===p2[n]?g2[n]:zh(e[n]);return new Array(10).fill(1).reduce((a,o,l)=>(a[`${n}-${l+1}`]=r[l],a[`${n}${l+1}`]=r[l],a),{})}).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),cA(e,{generateColorPalettes:hA,generateNeutralColorPalettes:vA})),pA(e.fontSize)),gA(e)),fA(e)),dA(e))}const D7=HS(yA),iC={token:Dh,override:{override:Dh},hashed:!0},j7=Se.createContext(iC),jh="ant",zw="anticon",bA=["outlined","borderless","filled"],xA=(e,t)=>t||(e?`${jh}-${e}`:jh),Dt=u.createContext({getPrefixCls:xA,iconPrefixCls:zw}),{Consumer:Wse}=Dt,SA=`-ant-${Date.now()}-${Math.random()}`;function CA(e,t){const n={},r=(l,s)=>{let d=l.clone();return d=s?.(d)||d,d.toRgbString()},a=(l,s)=>{const d=new zr(l),f=zh(d.toRgbString());n[`${s}-color`]=r(d),n[`${s}-color-disabled`]=f[1],n[`${s}-color-hover`]=f[4],n[`${s}-color-active`]=f[6],n[`${s}-color-outline`]=d.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=f[0],n[`${s}-color-deprecated-border`]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");const l=new zr(t.primaryColor),s=zh(l.toRgbString());s.forEach((f,m)=>{n[`primary-${m+1}`]=f}),n["primary-color-deprecated-l-35"]=r(l,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(l,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(l,f=>f.setAlpha(f.getAlpha()*.12));const d=new zr(s[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setAlpha(f.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(` `)} } `.trim()}function wA(e,t){const n=CA(e,t);ao()&&ec(n,`${SA}-dynamic-theme`)}const tl=u.createContext(!1),Dw=e=>{let{children:t,disabled:n}=e;const r=u.useContext(tl);return u.createElement(tl.Provider,{value:n??r},t)},Dd=u.createContext(void 0),EA=e=>{let{children:t,size:n}=e;const r=u.useContext(Dd);return u.createElement(Dd.Provider,{value:n||r},t)};function $A(){const e=u.useContext(tl),t=u.useContext(Dd);return{componentDisabled:e,componentSize:t}}var k7=da(function e(){ua(this,e)}),L7="CALC_UNIT",OA=new RegExp(L7,"g");function b2(e){return typeof e=="number"?"".concat(e).concat(L7):e}var MA=(function(e){nl(n,e);var t=Al(n);function n(r,a){var o;ua(this,n),o=t.call(this),te(St(o),"result",""),te(St(o),"unitlessCssVar",void 0),te(St(o),"lowPriority",void 0);var l=Vt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):l==="number"?o.result=b2(r):l==="string"&&(o.result=r),o}return da(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(b2(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(b2(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,l=a||{},s=l.unit,d=!0;return typeof s=="boolean"?d=s:Array.from(this.unitlessCssVar).some(function(f){return o.result.includes(f)})&&(d=!1),this.result=this.result.replace(OA,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(k7),RA=(function(e){nl(n,e);var t=Al(n);function n(r){var a;return ua(this,n),a=t.call(this),te(St(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return da(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(k7),NA=function(t,n){var r=t==="css"?MA:RA;return function(a){return new r(a,n)}},l3=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 vr(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function jd(e){var t=u.useRef(!1),n=u.useState(e),r=Re(n,2),a=r[0],o=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(s,d){d&&t.current||o(s)}return[a,l]}function x2(e){return e!==void 0}function kr(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,l=n.postState,s=jd(function(){return x2(a)?a:x2(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=Re(s,2),f=d[0],m=d[1],h=a!==void 0?a:f,v=l?l(h):h,y=vr(o),S=jd([h]),C=Re(S,2),w=C[0],E=C[1];KS(function(){var O=w[0];f!==O&&y(f,O)},[w]),KS(function(){x2(a)||m(a)},[a]);var $=vr(function(O,N){m(O,N),E([h],N)});return[v,$]}function s3(e,t,n,r){var a=le({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var d=Re(s,2),f=d[0],m=d[1];if(a!=null&&a[f]||a!=null&&a[m]){var h;(h=a[m])!==null&&h!==void 0||(a[m]=a?.[f])}})}var l=le(le({},n),a);return Object.keys(l).forEach(function(s){l[s]===t[s]&&delete l[s]}),l}var B7=typeof CSSINJS_STATISTIC<"u",lC=!0;function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!B7)return Object.assign.apply(Object,[{}].concat(t));lC=!1;var r={};return t.forEach(function(a){if(Vt(a)==="object"){var o=Object.keys(a);o.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return a[l]}})})}}),lC=!0,r}var c3={};function TA(){}var IA=function(t){var n,r=t,a=TA;return B7&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(l,s){if(lC){var d;(d=n)===null||d===void 0||d.add(s)}return l[s]}}),a=function(l,s){var d;c3[l]={global:Array.from(n),component:le(le({},(d=c3[l])===null||d===void 0?void 0:d.component),s)}}),{token:r,keys:n,flush:a}};function u3(e,t,n){if(typeof n=="function"){var r;return n(In(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function _A(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(o){return ie(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(o){return ie(o)}).join(","),")")}}}var AA=1e3*60*10,PA=(function(){function e(){ua(this,e),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return da(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(o){return o&&Vt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(Vt(o),"_").concat(o)});return a.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(a,o){r-a>AA&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),d3=new PA;function zA(e,t){return Se.useMemo(function(){var n=d3.get(t);if(n)return n;var r=e();return d3.set(t,r),r},t)}var DA=function(){return{}};function jA(e){var t=e.useCSP,n=t===void 0?DA:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function d(v,y,S,C){var w=Array.isArray(v)?v[0]:v;function E(z){return"".concat(String(w)).concat(z.slice(0,1).toUpperCase()).concat(z.slice(1))}var $=C?.unitless||{},O=typeof s=="function"?s(v):{},N=le(le({},O),{},te({},E("zIndexPopup"),!0));Object.keys($).forEach(function(z){N[E(z)]=$[z]});var I=le(le({},C),{},{unitless:N,prefixToken:E}),R=m(v,y,S,I),_=f(w,S,I);return function(z){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,L=R(z,D),B=Re(L,2),F=B[1],H=_(D),k=Re(H,2),q=k[0],V=k[1];return[q,F,V]}}function f(v,y,S){var C=S.unitless,w=S.injectStyle,E=w===void 0?!0:w,$=S.prefixToken,O=S.ignore,N=function(_){var z=_.rootCls,D=_.cssVar,L=D===void 0?{}:D,B=r(),F=B.realToken;return D_({path:[v],prefix:L.prefix,key:L.key,unitless:C,ignore:O,token:F,scope:z},function(){var H=u3(v,F,y),k=s3(v,F,H,{deprecatedTokens:S?.deprecatedTokens});return Object.keys(H).forEach(function(q){k[$(q)]=k[q],delete k[q]}),k}),null},I=function(_){var z=r(),D=z.cssVar;return[function(L){return E&&D?Se.createElement(Se.Fragment,null,Se.createElement(N,{rootCls:_,cssVar:D,component:v}),L):L},D?.key]};return I}function m(v,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=Array.isArray(v)?v:[v,v],E=Re(w,1),$=E[0],O=w.join("-"),N=e.layer||{name:"antd"};return function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,_=r(),z=_.theme,D=_.realToken,L=_.hashId,B=_.token,F=_.cssVar,H=a(),k=H.rootPrefixCls,q=H.iconPrefixCls,V=n(),W=F?"css":"js",G=zA(function(){var Y=new Set;return F&&Object.keys(C.unitless||{}).forEach(function(ne){Y.add(iy(ne,F.prefix)),Y.add(iy(ne,l3($,F.prefix)))}),NA(W,Y)},[W,$,F?.prefix]),X=_A(W),P=X.max,K=X.min,J={theme:z,token:B,hashId:L,nonce:function(){return V.nonce},clientOnly:C.clientOnly,layer:N,order:C.order||-999};typeof o=="function"&&qS(le(le({},J),{},{clientOnly:!1,path:["Shared",k]}),function(){return o(B,{prefix:{rootPrefixCls:k,iconPrefixCls:q},csp:V})});var j=qS(le(le({},J),{},{path:[O,I,q]}),function(){if(C.injectStyle===!1)return[];var Y=IA(B),ne=Y.token,se=Y.flush,de=u3($,D,S),pe=".".concat(I),Ce=s3($,D,de,{deprecatedTokens:C.deprecatedTokens});F&&de&&Vt(de)==="object"&&Object.keys(de).forEach(function(fe){de[fe]="var(".concat(iy(fe,l3($,F.prefix)),")")});var he=In(ne,{componentCls:pe,prefixCls:I,iconCls:".".concat(q),antCls:".".concat(k),calc:G,max:P,min:K},F?de:Ce),me=y(he,{hashId:L,prefixCls:I,rootPrefixCls:k,iconPrefixCls:q});se($,Ce);var be=typeof l=="function"?l(he,I,R,C.resetFont):null;return[C.resetStyle===!1?null:be,me]});return[j,L]}}function h(v,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=m(v,y,S,le({resetStyle:!1,order:-998},C)),E=function(O){var N=O.prefixCls,I=O.rootCls,R=I===void 0?N:I;return w(N,R),null};return E}return{genStyleHooks:d,genSubStyleComponent:h,genComponentStyleHook:m}}const kh=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],kA="5.21.6";function S2(e){return e>=0&&e<=255}function _1(e,t){const{r:n,g:r,b:a,a:o}=new zr(e).toRgb();if(o<1)return e;const{r:l,g:s,b:d}=new zr(t).toRgb();for(let f=.01;f<=1;f+=.01){const m=Math.round((n-l*(1-f))/f),h=Math.round((r-s*(1-f))/f),v=Math.round((a-d*(1-f))/f);if(S2(m)&&S2(h)&&S2(v))return new zr({r:m,g:h,b:v,a:Math.round(f*100)/100}).toRgbString()}return new zr({r:n,g:r,b:a,a:1}).toRgbString()}var LA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function F7(e){const{override:t}=e,n=LA(e,["override"]),r=Object.assign({},t);Object.keys(Dh).forEach(v=>{delete r[v]});const a=Object.assign(Object.assign({},n),r),o=480,l=576,s=768,d=992,f=1200,m=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:_1(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:_1(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:_1(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:_1(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:o,screenXSMin:o,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new zr("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new zr("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new zr("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var f3=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const H7={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},BA={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},FA={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},V7=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=f3(t,["override"]);let l=Object.assign(Object.assign({},r),{override:a});return l=F7(l),o&&Object.entries(o).forEach(s=>{let[d,f]=s;const{theme:m}=f,h=f3(f,["theme"]);let v=h;m&&(v=V7(Object.assign(Object.assign({},l),h),{override:h},m)),l[d]=v}),l};function lo(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=Se.useContext(j7),o=`${kA}-${t||""}`,l=n||D7,[s,d,f]=s_(l,[Dh,e],{salt:o,override:r,getComputedToken:V7,formatToken:F7,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:H7,ignore:BA,preserve:FA}});return[l,f,t?d:"",s,a]}const uu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},cr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Xh=()=>({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"}}),nc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),HA=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"}}}),VA=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),l),{[a]:l})}},du=e=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),bs=e=>({"&:focus-visible":Object.assign({},du(e))}),jw=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"},bs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),K7=(e,t)=>{const[n,r]=lo();return qS({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Xh()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:nr,genComponentStyleHook:KA,genSubStyleComponent:op}=jA({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=lo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=u.useContext(Dt);return K7(t,e),e??{}},getResetStyles:e=>[{"&":HA(e)}],getCommonStyle:VA,getCompUnitless:()=>H7});function fb(e,t){return kh.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],l=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:l,textColor:s}))},{})}const WA=Object.assign({},ab),{useId:m3}=WA,UA=()=>"",qA=typeof m3>"u"?UA:m3;function GA(e,t,n){var r;gu();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},iC),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:iC.hashed,cssVar:t?.cssVar}):t,l=qA();return Hd(()=>{var s,d;if(!e)return t;const f=Object.assign({},o.components);Object.keys(e.components||{}).forEach(v=>{f[v]=Object.assign(Object.assign({},f[v]),e.components[v])});const m=`css-var-${l.replace(/:/g,"")}`,h=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||m});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:f,cssVar:h})},[a,o],(s,d)=>s.some((f,m)=>{const h=d[m];return!vs(f,h,!0)}))}var XA=["children"],W7=u.createContext({});function YA(e){var t=e.children,n=ln(e,XA);return u.createElement(W7.Provider,{value:n},t)}var QA=(function(e){nl(n,e);var t=Al(n);function n(){return ua(this,n),t.apply(this,arguments)}return da(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function ZA(e){var t=u.useReducer(function(s){return s+1},0),n=Re(t,2),r=n[1],a=u.useRef(e),o=vr(function(){return a.current}),l=vr(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,l]}var Jc="none",A1="appear",P1="enter",z1="leave",p3="none",Ol="prepare",jm="start",km="active",kw="end",U7="prepared";function g3(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 JA(e,t){var n={animationend:g3("Animation","AnimationEnd"),transitionend:g3("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var eP=JA(ao(),typeof window<"u"?window:{}),q7={};if(ao()){var tP=document.createElement("div");q7=tP.style}var D1={};function G7(e){if(D1[e])return D1[e];var t=eP[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in q7)return D1[e]=t[o],D1[e]}return""}var X7=G7("animationend"),Y7=G7("transitionend"),Q7=!!(X7&&Y7),h3=X7||"animationend",v3=Y7||"transitionend";function y3(e,t){if(!e)return null;if(Vt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const nP=(function(e){var t=u.useRef();function n(a){a&&(a.removeEventListener(v3,e),a.removeEventListener(h3,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(v3,e),a.addEventListener(h3,e),t.current=a)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Z7=ao()?u.useLayoutEffect:u.useEffect;const rP=(function(){var e=u.useRef(null);function t(){sr.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=sr(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return u.useEffect(function(){return function(){t()}},[]),[n,t]});var aP=[Ol,jm,km,kw],oP=[Ol,U7],J7=!1,iP=!0;function eO(e){return e===km||e===kw}const lP=(function(e,t,n){var r=jd(p3),a=Re(r,2),o=a[0],l=a[1],s=rP(),d=Re(s,2),f=d[0],m=d[1];function h(){l(Ol,!0)}var v=t?oP:aP;return Z7(function(){if(o!==p3&&o!==kw){var y=v.indexOf(o),S=v[y+1],C=n(o);C===J7?l(S,!0):S&&f(function(w){function E(){w.isCanceled()||l(S,!0)}C===!0?E():Promise.resolve(C).then(E)})}},[e,o]),u.useEffect(function(){return function(){m()}},[]),[h,o]});function sP(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,l=r.motionAppear,s=l===void 0?!0:l,d=r.motionLeave,f=d===void 0?!0:d,m=r.motionDeadline,h=r.motionLeaveImmediately,v=r.onAppearPrepare,y=r.onEnterPrepare,S=r.onLeavePrepare,C=r.onAppearStart,w=r.onEnterStart,E=r.onLeaveStart,$=r.onAppearActive,O=r.onEnterActive,N=r.onLeaveActive,I=r.onAppearEnd,R=r.onEnterEnd,_=r.onLeaveEnd,z=r.onVisibleChanged,D=jd(),L=Re(D,2),B=L[0],F=L[1],H=ZA(Jc),k=Re(H,2),q=k[0],V=k[1],W=jd(null),G=Re(W,2),X=G[0],P=G[1],K=q(),J=u.useRef(!1),j=u.useRef(null);function Y(){return n()}var ne=u.useRef(!1);function se(){V(Jc),P(null,!0)}var de=vr(function(ze){var Ve=q();if(Ve!==Jc){var Be=Y();if(!(ze&&!ze.deadline&&ze.target!==Be)){var De=ne.current,ye;Ve===A1&&De?ye=I?.(Be,ze):Ve===P1&&De?ye=R?.(Be,ze):Ve===z1&&De&&(ye=_?.(Be,ze)),De&&ye!==!1&&se()}}}),pe=nP(de),Ce=Re(pe,1),he=Ce[0],me=function(Ve){switch(Ve){case A1:return te(te(te({},Ol,v),jm,C),km,$);case P1:return te(te(te({},Ol,y),jm,w),km,O);case z1:return te(te(te({},Ol,S),jm,E),km,N);default:return{}}},be=u.useMemo(function(){return me(K)},[K]),fe=lP(K,!e,function(ze){if(ze===Ol){var Ve=be[Ol];return Ve?Ve(Y()):J7}if(Ne in be){var Be;P(((Be=be[Ne])===null||Be===void 0?void 0:Be.call(be,Y(),null))||null)}return Ne===km&&K!==Jc&&(he(Y()),m>0&&(clearTimeout(j.current),j.current=setTimeout(function(){de({deadline:!0})},m))),Ne===U7&&se(),iP}),ge=Re(fe,2),Oe=ge[0],Ne=ge[1],je=eO(Ne);ne.current=je;var Te=u.useRef(null);Z7(function(){if(!(J.current&&Te.current===t)){F(t);var ze=J.current;J.current=!0;var Ve;!ze&&t&&s&&(Ve=A1),ze&&t&&o&&(Ve=P1),(ze&&!t&&f||!ze&&h&&!t&&f)&&(Ve=z1);var Be=me(Ve);Ve&&(e||Be[Ol])?(V(Ve),Oe()):V(Jc),Te.current=t}},[t]),u.useEffect(function(){(K===A1&&!s||K===P1&&!o||K===z1&&!f)&&V(Jc)},[s,o,f]),u.useEffect(function(){return function(){J.current=!1,clearTimeout(j.current)}},[]);var Ue=u.useRef(!1);u.useEffect(function(){B&&(Ue.current=!0),B!==void 0&&K===Jc&&((Ue.current||B)&&z?.(B),Ue.current=!0)},[B,K]);var qe=X;return be[Ol]&&Ne===jm&&(qe=le({transition:"none"},qe)),[K,Ne,qe,B??t]}function cP(e){var t=e;Vt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=u.forwardRef(function(a,o){var l=a.visible,s=l===void 0?!0:l,d=a.removeOnLeave,f=d===void 0?!0:d,m=a.forceRender,h=a.children,v=a.motionName,y=a.leavedClassName,S=a.eventProps,C=u.useContext(W7),w=C.motion,E=n(a,w),$=u.useRef(),O=u.useRef();function N(){try{return $.current instanceof HTMLElement?$.current:oy(O.current)}catch{return null}}var I=sP(E,s,N,a),R=Re(I,4),_=R[0],z=R[1],D=R[2],L=R[3],B=u.useRef(L);L&&(B.current=!0);var F=u.useCallback(function(G){$.current=G,Th(o,G)},[o]),H,k=le(le({},S),{},{visible:s});if(!h)H=null;else if(_===Jc)L?H=h(le({},k),F):!f&&B.current&&y?H=h(le(le({},k),{},{className:y}),F):m||!f&&!y?H=h(le(le({},k),{},{style:{display:"none"}}),F):H=null;else{var q;z===Ol?q="prepare":eO(z)?q="active":z===jm&&(q="start");var V=y3(v,"".concat(_,"-").concat(q));H=h(le(le({},k),{},{className:ue(y3(v,_),te(te({},V,V&&q),v,typeof v=="string")),style:D}),F)}if(u.isValidElement(H)&&Il(H)){var W=Gh(H);W||(H=u.cloneElement(H,{ref:F}))}return u.createElement(QA,{ref:O},H)});return r.displayName="CSSMotion",r}const Mo=cP(Q7);var sC="add",cC="keep",uC="remove",C2="removed";function uP(e){var t;return e&&Vt(e)==="object"&&"key"in e?t=e:t={key:e},le(le({},t),{},{key:String(t.key)})}function dC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(uP)}function dP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=dC(e),l=dC(t);o.forEach(function(f){for(var m=!1,h=r;h<a;h+=1){var v=l[h];if(v.key===f.key){r<h&&(n=n.concat(l.slice(r,h).map(function(y){return le(le({},y),{},{status:sC})})),r=h),n.push(le(le({},v),{},{status:cC})),r+=1,m=!0;break}}m||n.push(le(le({},f),{},{status:uC}))}),r<a&&(n=n.concat(l.slice(r).map(function(f){return le(le({},f),{},{status:sC})})));var s={};n.forEach(function(f){var m=f.key;s[m]=(s[m]||0)+1});var d=Object.keys(s).filter(function(f){return s[f]>1});return d.forEach(function(f){n=n.filter(function(m){var h=m.key,v=m.status;return h!==f||v!==uC}),n.forEach(function(m){m.key===f&&(m.status=cC)})}),n}var fP=["component","children","onVisibleChanged","onAllRemoved"],mP=["status"],pP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mo,n=(function(r){nl(o,r);var a=Al(o);function o(){var l;ua(this,o);for(var s=arguments.length,d=new Array(s),f=0;f<s;f++)d[f]=arguments[f];return l=a.call.apply(a,[this].concat(d)),te(St(l),"state",{keyEntities:[]}),te(St(l),"removeKey",function(m){l.setState(function(h){var v=h.keyEntities.map(function(y){return y.key!==m?y:le(le({},y),{},{status:C2})});return{keyEntities:v}},function(){var h=l.state.keyEntities,v=h.filter(function(y){var S=y.status;return S!==C2}).length;v===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return da(o,[{key:"render",value:function(){var s=this,d=this.state.keyEntities,f=this.props,m=f.component,h=f.children,v=f.onVisibleChanged;f.onAllRemoved;var y=ln(f,fP),S=m||u.Fragment,C={};return pP.forEach(function(w){C[w]=y[w],delete y[w]}),delete y.keys,u.createElement(S,y,d.map(function(w,E){var $=w.status,O=ln(w,mP),N=$===sC||$===cC;return u.createElement(t,Je({},C,{key:O.key,visible:N,eventProps:O,onVisibleChanged:function(R){v?.(R,{key:O.key}),R||s.removeKey(O.key)}}),function(I,R){return h(le(le({},I),{},{index:E}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,d){var f=s.keys,m=d.keyEntities,h=dC(f),v=dP(m,h);return{keyEntities:v.filter(function(y){var S=m.find(function(C){var w=C.key;return y.key===w});return!(S&&S.status===C2&&y.status===uC)})}}}]),o})(u.Component);return te(n,"defaultProps",{component:"div"}),n}const tO=gP(Q7);function hP(e){const{children:t}=e,[,n]=lo(),{motion:r}=n,a=u.useRef(!1);return a.current=a.current||r===!1,a.current?u.createElement(YA,{motion:r},t):t}const vP=()=>null;var yP=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const bP=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ay,nO,rO,aO;function py(){return Ay||jh}function xP(){return nO||zw}function SP(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const CP=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Ay=t),n!==void 0&&(nO=n),"holderRender"in e&&(aO=a),r&&(SP(r)?wA(py(),r):rO=r)},oO=()=>({getPrefixCls:(e,t)=>t||(e?`${py()}-${e}`:py()),getIconPrefixCls:xP,getRootPrefixCls:()=>Ay||py(),getTheme:()=>rO,holderRender:aO}),wP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:l,locale:s,componentSize:d,direction:f,space:m,splitter:h,virtual:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,popupOverflow:C,legacyLocale:w,parentContext:E,iconPrefixCls:$,theme:O,componentDisabled:N,segmented:I,statistic:R,spin:_,calendar:z,carousel:D,cascader:L,collapse:B,typography:F,checkbox:H,descriptions:k,divider:q,drawer:V,skeleton:W,steps:G,image:X,layout:P,list:K,mentions:J,modal:j,progress:Y,result:ne,slider:se,breadcrumb:de,menu:pe,pagination:Ce,input:he,textArea:me,empty:be,badge:fe,radio:ge,rate:Oe,switch:Ne,transfer:je,avatar:Te,message:Ue,tag:qe,table:ze,card:Ve,tabs:Be,timeline:De,timePicker:ye,upload:oe,notification:we,tree:Fe,colorPicker:xe,datePicker:_e,rangePicker:rt,flex:lt,wave:ut,dropdown:tt,warning:mt,tour:at,floatButtonGroup:gt,variant:Nt,inputNumber:tn,treeSelect:Wt}=e,dn=u.useCallback((ke,Ae)=>{const{prefixCls:He}=e;if(Ae)return Ae;const Ye=He||E.getPrefixCls("");return ke?`${Ye}-${ke}`:Ye},[E.getPrefixCls,e.prefixCls]),Qt=$||E.iconPrefixCls||zw,nn=n||E.csp;K7(Qt,nn);const Zt=GA(O,E.theme,{prefixCls:dn("")}),Lt={csp:nn,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||w,direction:f,space:m,splitter:h,virtual:v,popupMatchSelectWidth:S??y,popupOverflow:C,getPrefixCls:dn,iconPrefixCls:Qt,theme:Zt,segmented:I,statistic:R,spin:_,calendar:z,carousel:D,cascader:L,collapse:B,typography:F,checkbox:H,descriptions:k,divider:q,drawer:V,skeleton:W,steps:G,image:X,input:he,textArea:me,layout:P,list:K,mentions:J,modal:j,progress:Y,result:ne,slider:se,breadcrumb:de,menu:pe,pagination:Ce,empty:be,badge:fe,radio:ge,rate:Oe,switch:Ne,transfer:je,avatar:Te,message:Ue,tag:qe,table:ze,card:Ve,tabs:Be,timeline:De,timePicker:ye,upload:oe,notification:we,tree:Fe,colorPicker:xe,datePicker:_e,rangePicker:rt,flex:lt,wave:ut,dropdown:tt,warning:mt,tour:at,floatButtonGroup:gt,variant:Nt,inputNumber:tn,treeSelect:Wt},_t=Object.assign({},E);Object.keys(Lt).forEach(ke=>{Lt[ke]!==void 0&&(_t[ke]=Lt[ke])}),bP.forEach(ke=>{const Ae=e[ke];Ae&&(_t[ke]=Ae)}),typeof r<"u"&&(_t.button=Object.assign({autoInsertSpace:r},_t.button));const It=Hd(()=>_t,_t,(ke,Ae)=>{const He=Object.keys(ke),Ye=Object.keys(Ae);return He.length!==Ye.length||He.some($t=>ke[$t]!==Ae[$t])}),ve=u.useMemo(()=>({prefixCls:Qt,csp:nn}),[Qt,nn]);let Me=u.createElement(u.Fragment,null,u.createElement(vP,{dropdownMatchSelectWidth:y}),t);const Xe=u.useMemo(()=>{var ke,Ae,He,Ye;return Dm(((ke=ys.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((He=(Ae=It.locale)===null||Ae===void 0?void 0:Ae.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((Ye=It.form)===null||Ye===void 0?void 0:Ye.validateMessages)||{},l?.validateMessages||{})},[It,l?.validateMessages]);Object.keys(Xe).length>0&&(Me=u.createElement(R7.Provider,{value:Xe},Me)),s&&(Me=u.createElement(U_,{locale:s,_ANT_MARK__:W_},Me)),Me=u.createElement(Aw.Provider,{value:ve},Me),d&&(Me=u.createElement(EA,{size:d},Me)),Me=u.createElement(hP,null,Me);const Qe=u.useMemo(()=>{const ke=Zt||{},{algorithm:Ae,token:He,components:Ye,cssVar:$t}=ke,xt=yP(ke,["algorithm","token","components","cssVar"]),pt=Ae&&(!Array.isArray(Ae)||Ae.length>0)?HS(Ae):D7,ct={};Object.entries(Ye||{}).forEach(ot=>{let[nt,Tt]=ot;const Mt=Object.assign({},Tt);"algorithm"in Mt&&(Mt.algorithm===!0?Mt.theme=pt:(Array.isArray(Mt.algorithm)||typeof Mt.algorithm=="function")&&(Mt.theme=HS(Mt.algorithm)),delete Mt.algorithm),ct[nt]=Mt});const dt=Object.assign(Object.assign({},Dh),He);return Object.assign(Object.assign({},xt),{theme:pt,token:dt,components:ct,override:Object.assign({override:dt},ct),cssVar:$t})},[Zt]);return O&&(Me=u.createElement(j7.Provider,{value:Qe},Me)),It.warning&&(Me=u.createElement(F_.Provider,{value:It.warning},Me)),N!==void 0&&(Me=u.createElement(Dw,{disabled:N},Me)),u.createElement(Dt.Provider,{value:It},Me)},rl=e=>{const t=u.useContext(Dt),n=u.useContext(Pw);return u.createElement(wP,Object.assign({parentContext:t,legacyLocale:n},e))};rl.ConfigContext=Dt;rl.SizeContext=Dd;rl.config=CP;rl.useConfig=$A;Object.defineProperty(rl,"SizeContext",{get:()=>Dd});var EP={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 iO(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $P(e){return iO(e)instanceof ShadowRoot}function Py(e){return $P(e)?iO(e):null}function OP(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MP(e,t){Yr(e,"[@ant-design/icons] ".concat(t))}function b3(e){return Vt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Vt(e.icon)==="object"||typeof e.icon=="function")}function x3(){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[OP(n)]=r}return t},{})}function fC(e,t,n){return n?Se.createElement(e.tag,le(le({key:t},x3(e.attrs)),n),(e.children||[]).map(function(r,a){return fC(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Se.createElement(e.tag,le({key:t},x3(e.attrs)),(e.children||[]).map(function(r,a){return fC(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function lO(e){return zh(e)[0]}function sO(e){return e?Array.isArray(e)?e:[e]:[]}var RP=` .anticon { display: inline-flex; align-items: center; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,NP=function(t){var n=u.useContext(Aw),r=n.csp,a=n.prefixCls,o=RP;a&&(o=o.replace(/anticon/g,a)),u.useEffect(function(){var l=t.current,s=Py(l);ec(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},TP=["icon","className","onClick","style","primaryColor","secondaryColor"],bh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function IP(e){var t=e.primaryColor,n=e.secondaryColor;bh.primaryColor=t,bh.secondaryColor=n||lO(t),bh.calculated=!!n}function _P(){return le({},bh)}var ip=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,l=t.primaryColor,s=t.secondaryColor,d=ln(t,TP),f=u.useRef(),m=bh;if(l&&(m={primaryColor:l,secondaryColor:s||lO(l)}),NP(f),MP(b3(n),"icon should be icon definiton, but got ".concat(n)),!b3(n))return null;var h=n;return h&&typeof h.icon=="function"&&(h=le(le({},h),{},{icon:h.icon(m.primaryColor,m.secondaryColor)})),fC(h.icon,"svg-".concat(h.name),le(le({className:r,onClick:a,style:o,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};ip.displayName="IconReact";ip.getTwoToneColors=_P;ip.setTwoToneColors=IP;function cO(e){var t=sO(e),n=Re(t,2),r=n[0],a=n[1];return ip.setTwoToneColors({primaryColor:r,secondaryColor:a})}function AP(){var e=ip.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];cO(_y.primary);var vn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,l=e.tabIndex,s=e.onClick,d=e.twoToneColor,f=ln(e,PP),m=u.useContext(Aw),h=m.prefixCls,v=h===void 0?"anticon":h,y=m.rootClassName,S=ue(y,v,te(te({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!a||r.name==="loading"),n),C=l;C===void 0&&s&&(C=-1);var w=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,E=sO(d),$=Re(E,2),O=$[0],N=$[1];return u.createElement("span",Je({role:"img","aria-label":r.name},f,{ref:t,tabIndex:C,onClick:s,className:S}),u.createElement(ip,{icon:r,primaryColor:O,secondaryColor:N,style:w}))});vn.displayName="AntdIcon";vn.getTwoToneColor=AP;vn.setTwoToneColor=cO;var zP=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:EP}))},Yh=u.forwardRef(zP),DP={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"},jP=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:DP}))},Vd=u.forwardRef(jP),kP={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"},LP=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:kP}))},ic=u.forwardRef(LP),BP={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"},FP=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:BP}))},Kd=u.forwardRef(FP),HP={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"},VP=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:HP}))},Lw=u.forwardRef(VP),KP=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,WP=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UP="".concat(KP," ").concat(WP).split(/[\s\n]+/),qP="aria-",GP="data-";function S3(e,t){return e.indexOf(t)===0}function Pa(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=le({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||S3(a,qP))||n.data&&S3(a,GP)||n.attr&&UP.includes(a))&&(r[a]=e[a])}),r}function uO(e){return e&&Se.isValidElement(e)&&e.type===Se.Fragment}const Bw=(e,t,n)=>Se.isValidElement(e)?Se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function za(e,t){return Bw(e,e,t)}const j1=(e,t,n,r,a)=>({background:e,border:`${ie(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),XP=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:l,lineHeight:s,borderRadiusLG:d,motionEaseInOutCirc:f,withDescriptionIconSize:m,colorText:h,colorTextHeading:v,withDescriptionPadding:y,defaultPadding:S}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",display:"flex",alignItems:"center",padding:S,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${f}, opacity ${n} ${f}, padding-top ${n} ${f}, padding-bottom ${n} ${f}, margin-bottom ${n} ${f}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:a,fontSize:m,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:v,fontSize:l},[`${t}-description`]:{display:"block",color:h}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},YP=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:l,colorWarningBg:s,colorError:d,colorErrorBorder:f,colorErrorBg:m,colorInfo:h,colorInfoBorder:v,colorInfoBg:y}=e;return{[t]:{"&-success":j1(a,r,n,e,t),"&-info":j1(y,v,h,e,t),"&-warning":j1(s,l,o,e,t),"&-error":Object.assign(Object.assign({},j1(m,f,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},QP=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:l,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:ie(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:l,transition:`color ${r}`,"&:hover":{color:s}}}}},ZP=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),JP=nr("Alert",e=>[XP(e),YP(e),QP(e)],ZP);var C3=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ez={success:Yh,info:Lw,error:Vd,warning:Kd},tz=e=>{const{icon:t,prefixCls:n,type:r}=e,a=ez[r]||null;return t?Bw(t,u.createElement("span",{className:`${n}-icon`},t),()=>({className:ue(`${n}-icon`,{[t.props.className]:t.props.className})})):u.createElement(a,{className:`${n}-icon`})},nz=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,l=r===!0||r===void 0?u.createElement(ic,null):r;return t?u.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),l):null},dO=u.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:l,rootClassName:s,style:d,onMouseEnter:f,onMouseLeave:m,onClick:h,afterClose:v,showIcon:y,closable:S,closeText:C,closeIcon:w,action:E,id:$}=e,O=C3(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[N,I]=u.useState(!1),R=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:R.current}));const{getPrefixCls:_,direction:z,alert:D}=u.useContext(Dt),L=_("alert",r),[B,F,H]=JP(L),k=J=>{var j;I(!0),(j=e.onClose)===null||j===void 0||j.call(e,J)},q=u.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),V=u.useMemo(()=>typeof S=="object"&&S.closeIcon||C?!0:typeof S=="boolean"?S:w!==!1&&w!==null&&w!==void 0?!0:!!D?.closable,[C,w,S,D?.closable]),W=o&&y===void 0?!0:y,G=ue(L,`${L}-${q}`,{[`${L}-with-description`]:!!n,[`${L}-no-icon`]:!W,[`${L}-banner`]:!!o,[`${L}-rtl`]:z==="rtl"},D?.className,l,s,H,F),X=Pa(O,{aria:!0,data:!0}),P=u.useMemo(()=>{var J,j;return typeof S=="object"&&S.closeIcon?S.closeIcon:C||(w!==void 0?w:typeof D?.closable=="object"&&(!((J=D?.closable)===null||J===void 0)&&J.closeIcon)?(j=D?.closable)===null||j===void 0?void 0:j.closeIcon:D?.closeIcon)},[w,S,C,D?.closeIcon]),K=u.useMemo(()=>{const J=S??D?.closable;if(typeof J=="object"){const{closeIcon:j}=J;return C3(J,["closeIcon"])}return{}},[S,D?.closable]);return B(u.createElement(Mo,{visible:!N,motionName:`${L}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:J=>({maxHeight:J.offsetHeight}),onLeaveEnd:v},(J,j)=>{let{className:Y,style:ne}=J;return u.createElement("div",Object.assign({id:$,ref:io(R,j),"data-show":!N,className:ue(G,Y),style:Object.assign(Object.assign(Object.assign({},D?.style),d),ne),onMouseEnter:f,onMouseLeave:m,onClick:h,role:"alert"},X),W?u.createElement(tz,{description:n,icon:e.icon,prefixCls:L,type:q}):null,u.createElement("div",{className:`${L}-content`},a?u.createElement("div",{className:`${L}-message`},a):null,n?u.createElement("div",{className:`${L}-description`},n):null),E?u.createElement("div",{className:`${L}-action`},E):null,u.createElement(nz,{isClosable:V,prefixCls:L,closeIcon:P,handleClose:k,ariaProps:K}))}))});function rz(e,t,n){return t=zd(t),t7(e,lb()?Reflect.construct(t,n||[],zd(e).constructor):t.apply(e,n))}let az=(function(e){function t(){var n;return ua(this,t),n=rz(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return nl(t,e),da(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:l}=this.props,{error:s,info:d}=this.state,f=d?.componentStack||null,m=typeof r>"u"?(s||"").toString():r,h=typeof a>"u"?f:a;return s?u.createElement(dO,{id:o,type:"error",message:m,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},h)}):l}}])})(u.Component);const mC=dO;mC.ErrorBoundary=az;const w3=e=>typeof e=="object"&&e!=null&&e.nodeType===1,E3=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",k1=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return E3(n.overflowY,t)||E3(n.overflowX,t)||(r=>{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},L1=(e,t,n,r,a,o,l,s)=>o<e&&l>t||o>e&&l<t?0:o<=e&&s<=n||l>=t&&s>=n?o-e-r:l>t&&s<n||o<e&&s>n?l-t+a:0,oz=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},$3=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:l,block:s,inline:d,boundary:f,skipOverflowHiddenElements:m}=t,h=typeof f=="function"?f:V=>V!==f;if(!w3(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,y=[];let S=e;for(;w3(S)&&h(S);){if(S=oz(S),S===v){y.push(S);break}S!=null&&S===document.body&&k1(S)&&!k1(document.documentElement)||S!=null&&k1(S,m)&&y.push(S)}const C=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:E,scrollY:$}=window,{height:O,width:N,top:I,right:R,bottom:_,left:z}=e.getBoundingClientRect(),{top:D,right:L,bottom:B,left:F}=(V=>{const W=window.getComputedStyle(V);return{top:parseFloat(W.scrollMarginTop)||0,right:parseFloat(W.scrollMarginRight)||0,bottom:parseFloat(W.scrollMarginBottom)||0,left:parseFloat(W.scrollMarginLeft)||0}})(e);let H=s==="start"||s==="nearest"?I-D:s==="end"?_+B:I+O/2-D+B,k=d==="center"?z+N/2-F+L:d==="end"?R+L:z-F;const q=[];for(let V=0;V<y.length;V++){const W=y[V],{height:G,width:X,top:P,right:K,bottom:J,left:j}=W.getBoundingClientRect();if(l==="if-needed"&&I>=0&&z>=0&&_<=w&&R<=C&&(W===v&&!k1(W)||I>=P&&_<=J&&z>=j&&R<=K))return q;const Y=getComputedStyle(W),ne=parseInt(Y.borderLeftWidth,10),se=parseInt(Y.borderTopWidth,10),de=parseInt(Y.borderRightWidth,10),pe=parseInt(Y.borderBottomWidth,10);let Ce=0,he=0;const me="offsetWidth"in W?W.offsetWidth-W.clientWidth-ne-de:0,be="offsetHeight"in W?W.offsetHeight-W.clientHeight-se-pe:0,fe="offsetWidth"in W?W.offsetWidth===0?0:X/W.offsetWidth:0,ge="offsetHeight"in W?W.offsetHeight===0?0:G/W.offsetHeight:0;if(v===W)Ce=s==="start"?H:s==="end"?H-w:s==="nearest"?L1($,$+w,w,se,pe,$+H,$+H+O,O):H-w/2,he=d==="start"?k:d==="center"?k-C/2:d==="end"?k-C:L1(E,E+C,C,ne,de,E+k,E+k+N,N),Ce=Math.max(0,Ce+$),he=Math.max(0,he+E);else{Ce=s==="start"?H-P-se:s==="end"?H-J+pe+be:s==="nearest"?L1(P,J,G,se,pe+be,H,H+O,O):H-(P+G/2)+be/2,he=d==="start"?k-j-ne:d==="center"?k-(j+X/2)+me/2:d==="end"?k-K+de+me:L1(j,K,X,ne,de+me,k,k+N,N);const{scrollLeft:Oe,scrollTop:Ne}=W;Ce=ge===0?0:Math.max(0,Math.min(Ne+Ce/ge,W.scrollHeight-G/ge+be)),he=fe===0?0:Math.max(0,Math.min(Oe+he/fe,W.scrollWidth-X/fe+me)),H+=Ne-Ce,k+=Oe-he}q.push({el:W,top:Ce,left:he})}return q},iz=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function lz(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior($3(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:l}of $3(e,iz(t))){const s=o-n.top+n.bottom,d=l-n.left+n.right;a.scroll({top:s,left:d,behavior:r})}}function pC(e){return e!=null&&e===e.window}const sz=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return pC(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!pC(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function cz(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function uz(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),l=sz(o),s=Date.now(),d=()=>{const m=Date.now()-s,h=cz(m>a?a:m,l,e,a);pC(o)?o.scrollTo(window.pageXOffset,h):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=h:o.scrollTop=h,m<a?sr(d):typeof r=="function"&&r()};sr(d)}const Ba=e=>{const[,,,,t]=lo();return t?`${e}-css-var`:""};var Pt={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},fO=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,l=o===void 0?4.5:o,s=e.showProgress,d=e.pauseOnHover,f=d===void 0?!0:d,m=e.eventKey,h=e.content,v=e.closable,y=e.closeIcon,S=y===void 0?"x":y,C=e.props,w=e.onClick,E=e.onNoticeClose,$=e.times,O=e.hovering,N=u.useState(!1),I=Re(N,2),R=I[0],_=I[1],z=u.useState(0),D=Re(z,2),L=D[0],B=D[1],F=u.useState(0),H=Re(F,2),k=H[0],q=H[1],V=O||R,W=l>0&&s,G=function(){E(m)},X=function(ne){(ne.key==="Enter"||ne.code==="Enter"||ne.keyCode===Pt.ENTER)&&G()};u.useEffect(function(){if(!V&&l>0){var Y=Date.now()-k,ne=setTimeout(function(){G()},l*1e3-k);return function(){f&&clearTimeout(ne),q(Date.now()-Y)}}},[l,V,$]),u.useEffect(function(){if(!V&&W&&(f||k===0)){var Y=performance.now(),ne,se=function de(){cancelAnimationFrame(ne),ne=requestAnimationFrame(function(pe){var Ce=pe+k-Y,he=Math.min(Ce/(l*1e3),1);B(he*100),he<1&&de()})};return se(),function(){f&&cancelAnimationFrame(ne)}}},[l,k,V,W,$]);var P=u.useMemo(function(){return Vt(v)==="object"&&v!==null?v:v?{closeIcon:S}:{}},[v,S]),K=Pa(P,!0),J=100-(!L||L<0?0:L>100?100:L),j="".concat(n,"-notice");return u.createElement("div",Je({},C,{ref:t,className:ue(j,a,te({},"".concat(j,"-closable"),v)),style:r,onMouseEnter:function(ne){var se;_(!0),C==null||(se=C.onMouseEnter)===null||se===void 0||se.call(C,ne)},onMouseLeave:function(ne){var se;_(!1),C==null||(se=C.onMouseLeave)===null||se===void 0||se.call(C,ne)},onClick:w}),u.createElement("div",{className:"".concat(j,"-content")},h),v&&u.createElement("a",Je({tabIndex:0,className:"".concat(j,"-close"),onKeyDown:X,"aria-label":"Close"},K,{onClick:function(ne){ne.preventDefault(),ne.stopPropagation(),G()}}),P.closeIcon),W&&u.createElement("progress",{className:"".concat(j,"-progress"),max:"100",value:J},J+"%"))}),mO=Se.createContext({}),dz=function(t){var n=t.children,r=t.classNames;return Se.createElement(mO.Provider,{value:{classNames:r}},n)},O3=8,M3=3,R3=16,fz=function(t){var n={offset:O3,threshold:M3,gap:R3};if(t&&Vt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:O3,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:M3,n.gap=(o=t.gap)!==null&&o!==void 0?o:R3}return[!!t,n]},mz=["className","style","classNames","styles"],pz=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,l=t.style,s=t.motion,d=t.onAllNoticeRemoved,f=t.onNoticeClose,m=t.stack,h=u.useContext(mO),v=h.classNames,y=u.useRef({}),S=u.useState(null),C=Re(S,2),w=C[0],E=C[1],$=u.useState([]),O=Re($,2),N=O[0],I=O[1],R=n.map(function(V){return{config:V,key:String(V.key)}}),_=fz(m),z=Re(_,2),D=z[0],L=z[1],B=L.offset,F=L.threshold,H=L.gap,k=D&&(N.length>0||R.length<=F),q=typeof s=="function"?s(r):s;return u.useEffect(function(){D&&N.length>1&&I(function(V){return V.filter(function(W){return R.some(function(G){var X=G.key;return W===X})})})},[N,R,D]),u.useEffect(function(){var V;if(D&&y.current[(V=R[R.length-1])===null||V===void 0?void 0:V.key]){var W;E(y.current[(W=R[R.length-1])===null||W===void 0?void 0:W.key])}},[R,D]),Se.createElement(tO,Je({key:r,className:ue(a,"".concat(a,"-").concat(r),v?.list,o,te(te({},"".concat(a,"-stack"),!!D),"".concat(a,"-stack-expanded"),k)),style:l,keys:R,motionAppear:!0},q,{onAllRemoved:function(){d(r)}}),function(V,W){var G=V.config,X=V.className,P=V.style,K=V.index,J=G,j=J.key,Y=J.times,ne=String(j),se=G,de=se.className,pe=se.style,Ce=se.classNames,he=se.styles,me=ln(se,mz),be=R.findIndex(function(De){return De.key===ne}),fe={};if(D){var ge=R.length-1-(be>-1?be:K-1),Oe=r==="top"||r==="bottom"?"-50%":"0";if(ge>0){var Ne,je,Te;fe.height=k?(Ne=y.current[ne])===null||Ne===void 0?void 0:Ne.offsetHeight:w?.offsetHeight;for(var Ue=0,qe=0;qe<ge;qe++){var ze;Ue+=((ze=y.current[R[R.length-1-qe].key])===null||ze===void 0?void 0:ze.offsetHeight)+H}var Ve=(k?Ue:ge*B)*(r.startsWith("top")?1:-1),Be=!k&&w!==null&&w!==void 0&&w.offsetWidth&&(je=y.current[ne])!==null&&je!==void 0&&je.offsetWidth?(w?.offsetWidth-B*2*(ge<3?ge:3))/((Te=y.current[ne])===null||Te===void 0?void 0:Te.offsetWidth):1;fe.transform="translate3d(".concat(Oe,", ").concat(Ve,"px, 0) scaleX(").concat(Be,")")}else fe.transform="translate3d(".concat(Oe,", 0, 0)")}return Se.createElement("div",{ref:W,className:ue("".concat(a,"-notice-wrapper"),X,Ce?.wrapper),style:le(le(le({},P),fe),he?.wrapper),onMouseEnter:function(){return I(function(ye){return ye.includes(ne)?ye:[].concat(st(ye),[ne])})},onMouseLeave:function(){return I(function(ye){return ye.filter(function(oe){return oe!==ne})})}},Se.createElement(fO,Je({},me,{ref:function(ye){be>-1?y.current[ne]=ye:delete y.current[ne]},prefixCls:a,classNames:Ce,styles:he,className:ue(de,v?.notice),style:pe,times:Y,key:j,eventKey:j,onNoticeClose:f,hovering:D&&N.length>0})))})},gz=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,l=e.maxCount,s=e.className,d=e.style,f=e.onAllRemoved,m=e.stack,h=e.renderNotifications,v=u.useState([]),y=Re(v,2),S=y[0],C=y[1],w=function(D){var L,B=S.find(function(F){return F.key===D});B==null||(L=B.onClose)===null||L===void 0||L.call(B),C(function(F){return F.filter(function(H){return H.key!==D})})};u.useImperativeHandle(t,function(){return{open:function(D){C(function(L){var B=st(L),F=B.findIndex(function(q){return q.key===D.key}),H=le({},D);if(F>=0){var k;H.times=(((k=L[F])===null||k===void 0?void 0:k.times)||0)+1,B[F]=H}else H.times=0,B.push(H);return l>0&&B.length>l&&(B=B.slice(-l)),B})},close:function(D){w(D)},destroy:function(){C([])}}});var E=u.useState({}),$=Re(E,2),O=$[0],N=$[1];u.useEffect(function(){var z={};S.forEach(function(D){var L=D.placement,B=L===void 0?"topRight":L;B&&(z[B]=z[B]||[],z[B].push(D))}),Object.keys(O).forEach(function(D){z[D]=z[D]||[]}),N(z)},[S]);var I=function(D){N(function(L){var B=le({},L),F=B[D]||[];return F.length||delete B[D],B})},R=u.useRef(!1);if(u.useEffect(function(){Object.keys(O).length>0?R.current=!0:R.current&&(f?.(),R.current=!1)},[O]),!a)return null;var _=Object.keys(O);return tc.createPortal(u.createElement(u.Fragment,null,_.map(function(z){var D=O[z],L=u.createElement(pz,{key:z,configList:D,placement:z,prefixCls:r,className:s?.(z),style:d?.(z),motion:o,onNoticeClose:w,onAllNoticeRemoved:I,stack:m});return h?h(L,{prefixCls:r,key:z}):L})),a)}),hz=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],vz=function(){return document.body},N3=0;function yz(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(o){var l=a[o];l!==void 0&&(e[o]=l)})}),e}function bz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?vz:t,r=e.motion,a=e.prefixCls,o=e.maxCount,l=e.className,s=e.style,d=e.onAllRemoved,f=e.stack,m=e.renderNotifications,h=ln(e,hz),v=u.useState(),y=Re(v,2),S=y[0],C=y[1],w=u.useRef(),E=u.createElement(gz,{container:S,ref:w,prefixCls:a,motion:r,maxCount:o,className:l,style:s,onAllRemoved:d,stack:f,renderNotifications:m}),$=u.useState([]),O=Re($,2),N=O[0],I=O[1],R=vr(function(z){var D=yz(h,z);(D.key===null||D.key===void 0)&&(D.key="rc-notification-".concat(N3),N3+=1),I(function(L){return[].concat(st(L),[{type:"open",config:D}])})}),_=u.useMemo(function(){return{open:R,close:function(D){I(function(L){return[].concat(st(L),[{type:"close",key:D}])})},destroy:function(){I(function(D){return[].concat(st(D),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){C(n())}),u.useEffect(function(){if(w.current&&N.length){N.forEach(function(L){switch(L.type){case"open":w.current.open(L.config);break;case"close":w.current.close(L.key);break;case"destroy":w.current.destroy();break}});var z,D;I(function(L){return(z!==L||!D)&&(z=L,D=L.filter(function(B){return!N.includes(B)})),D})}},[N]),[_,E]}var xz={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"},Sz=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:xz}))},Wd=u.forwardRef(Sz);const Qh=Se.createContext(void 0),eu=100,Cz=10,pO=eu*Cz,gO={Modal:eu,Drawer:eu,Popover:eu,Popconfirm:eu,Tooltip:eu,Tour:eu,FloatButton:eu},wz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ez(e){return e in gO}const lp=(e,t)=>{const[,n]=lo(),r=Se.useContext(Qh),a=Ez(e);let o;if(t!==void 0)o=[t,t];else{let l=r??0;a?l+=(r?0:n.zIndexPopupBase)+gO[e]:l+=wz[e],o=[r===void 0?t:l,l]}return o},$z=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:l,colorWarning:s,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:m,motionDurationSlow:h,marginXS:v,paddingXS:y,borderRadiusLG:S,zIndexPopup:C,contentPadding:w,contentBg:E}=e,$=`${t}-notice`,O=new zn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),N=new zn("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:v,fontSize:f},[`${$}-content`]:{display:"inline-block",padding:w,background:E,borderRadius:S,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},cr(e)),{color:a,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:O,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:N,animationDuration:h,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},I)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},I),{padding:0,textAlign:"start"})}]},Oz=e=>({zIndexPopup:e.zIndexPopupBase+pO+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),hO=nr("Message",e=>{const t=In(e,{height:150});return[$z(t)]},Oz);var Mz=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Rz={info:u.createElement(Lw,null),success:u.createElement(Yh,null),error:u.createElement(Vd,null),warning:u.createElement(Kd,null),loading:u.createElement(Wd,null)},vO=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return u.createElement("div",{className:ue(`${t}-custom-content`,`${t}-${n}`)},r||Rz[n],u.createElement("span",null,a))},Nz=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,l=Mz(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=u.useContext(Dt),d=t||s("message"),f=Ba(d),[m,h,v]=hO(d,f);return m(u.createElement(fO,Object.assign({},l,{prefixCls:d,className:ue(n,h,`${d}-notice-pure-panel`,v,f),eventKey:"pure",duration:null,content:u.createElement(vO,{prefixCls:d,type:r,icon:a},o)})))};function Tz(e,t){return{motionName:t??`${e}-move-up`}}function Fw(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var Iz=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _z=8,Az=3,Pz=e=>{let{children:t,prefixCls:n}=e;const r=Ba(n),[a,o,l]=hO(n,r);return a(u.createElement(dz,{classNames:{list:ue(o,l,r)}},t))},zz=(e,t)=>{let{prefixCls:n,key:r}=t;return u.createElement(Pz,{prefixCls:n,key:r},e)},Dz=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:l=Az,rtl:s,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:m,getPopupContainer:h,message:v,direction:y}=u.useContext(Dt),S=r||m("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??_z}),w=()=>ue({[`${S}-rtl`]:s??y==="rtl"}),E=()=>Tz(S,d),$=u.createElement("span",{className:`${S}-close-x`},u.createElement(ic,{className:`${S}-close-icon`})),[O,N]=bz({prefixCls:S,style:C,className:w,motion:E,closable:!1,closeIcon:$,duration:l,getContainer:()=>a?.()||h?.()||document.body,maxCount:o,onAllRemoved:f,renderNotifications:zz});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:S,message:v})),N});let T3=0;function yO(e){const t=u.useRef(null);return gu(),[u.useMemo(()=>{const r=d=>{var f;(f=t.current)===null||f===void 0||f.close(d)},a=d=>{if(!t.current){const R=()=>{};return R.then=()=>{},R}const{open:f,prefixCls:m,message:h}=t.current,v=`${m}-notice`,{content:y,icon:S,type:C,key:w,className:E,style:$,onClose:O}=d,N=Iz(d,["content","icon","type","key","className","style","onClose"]);let I=w;return I==null&&(T3+=1,I=`antd-message-${T3}`),Fw(R=>(f(Object.assign(Object.assign({},N),{key:I,content:u.createElement(vO,{prefixCls:m,type:C,icon:S},y),placement:"top",className:ue(C&&`${v}-${C}`,E,h?.className),style:Object.assign(Object.assign({},h?.style),$),onClose:()=>{O?.(),R()}})),()=>{r(I)}))},l={open:a,destroy:d=>{var f;d!==void 0?r(d):(f=t.current)===null||f===void 0||f.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const f=(m,h,v)=>{let y;m&&typeof m=="object"&&"content"in m?y=m:y={content:m};let S,C;typeof h=="function"?C=h:(S=h,C=v);const w=Object.assign(Object.assign({onClose:C,duration:S},y),{type:d});return a(w)};l[d]=f}),l},[]),u.createElement(Dz,Object.assign({key:"message-holder"},e,{ref:t}))]}function jz(e){return yO(e)}function kz(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(a=>[].concat(st(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function bO(e,t){this.v=e,this.k=t}function Eo(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Eo=function(l,s,d,f){function m(h,v){Eo(l,h,function(y){return this._invoke(h,v,y)})}s?a?a(l,s,{value:d,enumerable:!f,configurable:!f,writable:!f}):l[s]=d:(m("next",0),m("throw",1),m("return",2))},Eo(e,t,n,r)}function Hw(){/*! 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",a=n.toStringTag||"@@toStringTag";function o(y,S,C,w){var E=S&&S.prototype instanceof s?S:s,$=Object.create(E.prototype);return Eo($,"_invoke",(function(O,N,I){var R,_,z,D=0,L=I||[],B=!1,F={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(q,V){return R=q,_=0,z=e,F.n=V,l}};function H(k,q){for(_=k,z=q,t=0;!B&&D&&!V&&t<L.length;t++){var V,W=L[t],G=F.p,X=W[2];k>3?(V=X===q)&&(z=W[(_=W[4])?5:(_=3,3)],W[4]=W[5]=e):W[0]<=G&&((V=k<2&&G<W[1])?(_=0,F.v=q,F.n=W[1]):G<X&&(V=k<3||W[0]>q||q>X)&&(W[4]=k,W[5]=q,F.n=X,_=0))}if(V||k>1)return l;throw B=!0,q}return function(k,q,V){if(D>1)throw TypeError("Generator is already running");for(B&&q===1&&H(q,V),_=q,z=V;(t=_<2?e:z)||!B;){R||(_?_<3?(_>1&&(F.n=-1),H(_,z)):F.n=z:F.v=z);try{if(D=2,R){if(_||(k="next"),t=R[k]){if(!(t=t.call(R,z)))throw TypeError("iterator result is not an object");if(!t.done)return t;z=t.value,_<2&&(_=0)}else _===1&&(t=R.return)&&t.call(R),_<2&&(z=TypeError("The iterator does not provide a '"+k+"' method"),_=1);R=e}else if((t=(B=F.n<0)?z:O.call(N,F))!==l)break}catch(W){R=e,_=1,z=W}finally{D=1}}return{value:t,done:B}}})(y,C,w),!0),$}var l={};function s(){}function d(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(Eo(t={},r,function(){return this}),t),h=f.prototype=s.prototype=Object.create(m);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,Eo(y,a,"GeneratorFunction")),y.prototype=Object.create(h),y}return d.prototype=f,Eo(h,"constructor",f),Eo(f,"constructor",d),d.displayName="GeneratorFunction",Eo(f,a,"GeneratorFunction"),Eo(h),Eo(h,a,"Generator"),Eo(h,r,function(){return this}),Eo(h,"toString",function(){return"[object Generator]"}),(Hw=function(){return{w:o,m:v}})()}function zy(e,t){function n(a,o,l,s){try{var d=e[a](o),f=d.value;return f instanceof bO?t.resolve(f.v).then(function(m){n("next",m,l,s)},function(m){n("throw",m,l,s)}):t.resolve(f).then(function(m){d.value=m,l(d)},function(m){return n("throw",m,l,s)})}catch(m){s(m)}}var r;this.next||(Eo(zy.prototype),Eo(zy.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Eo(this,"_invoke",function(a,o,l){function s(){return new t(function(d,f){n(a,l,d,f)})}return r=r?r.then(s,s):s()},!0)}function xO(e,t,n,r,a){return new zy(Hw().w(e,t,n,r),a||Promise)}function Lz(e,t,n,r,a){var o=xO(e,t,n,r,a);return o.next().then(function(l){return l.done?l.value:o.next()})}function Bz(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function I3(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Vt(e)+" is not iterable")}function Ro(){var e=Hw(),t=e.m(Ro),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(l){var s=typeof l=="function"&&l.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(l){var s,d;return function(f){s||(s={stop:function(){return d(f.a,2)},catch:function(){return f.v},abrupt:function(h,v){return d(f.a,a[h],v)},delegateYield:function(h,v,y){return s.resultName=v,d(f.d,I3(h),y)},finish:function(h){return d(f.f,h)}},d=function(h,v,y){f.p=s.prev,f.n=s.next;try{return h(v,y)}finally{s.next=f.n}}),s.resultName&&(s[s.resultName]=f.v,s.resultName=void 0),s.sent=f.v,s.next=f.n;try{return l.call(this,s)}finally{f.p=s.prev,f.n=s.next}}}return(Ro=function(){return{wrap:function(d,f,m,h){return e.w(o(d),f,m,h&&h.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,f){return new bO(d,f)},AsyncIterator:zy,async:function(d,f,m,h,v){return(r(f)?xO:Lz)(o(d),f,m,h,v)},keys:Bz,values:I3}})()}function _3(e,t,n,r,a,o,l){try{var s=e[o](l),d=s.value}catch(f){return void n(f)}s.done?t(d):Promise.resolve(d).then(r,a)}function Ud(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(d){_3(o,r,a,l,s,"next",d)}function s(d){_3(o,r,a,l,s,"throw",d)}l(void 0)})}}var Zh=le({},tI),Fz=Zh.version,w2=Zh.render,Hz=Zh.unmountComponentAtNode,mb;try{var Vz=Number((Fz||"").split(".")[0]);Vz>=18&&(mb=Zh.createRoot)}catch{}function A3(e){var t=Zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Vt(t)==="object"&&(t.usingClientEntryPoint=e)}var Dy="__rc_react_root__";function Kz(e,t){A3(!0);var n=t[Dy]||mb(t);A3(!1),n.render(e),t[Dy]=n}function Wz(e,t){w2?.(e,t)}function Vw(e,t){if(mb){Kz(e,t);return}Wz(e,t)}function Uz(e){return gC.apply(this,arguments)}function gC(){return gC=Ud(Ro().mark(function e(t){return Ro().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Dy])===null||a===void 0||a.unmount(),delete t[Dy]}));case 1:case"end":return r.stop()}},e)})),gC.apply(this,arguments)}function qz(e){Hz(e)}function SO(e){return hC.apply(this,arguments)}function hC(){return hC=Ud(Ro().mark(function e(t){return Ro().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(mb===void 0){r.next=2;break}return r.abrupt("return",Uz(t));case 2:qz(t);case 3:case"end":return r.stop()}},e)})),hC.apply(this,arguments)}const E2=()=>({height:0,opacity:0}),P3=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gz=e=>({height:e?e.offsetHeight:0}),$2=(e,t)=>t?.deadline===!0||t.propertyName==="height",Lh=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:jh}-motion-collapse`,onAppearStart:E2,onEnterStart:E2,onAppearActive:P3,onEnterActive:P3,onLeaveStart:Gz,onLeaveActive:E2,onAppearEnd:$2,onEnterEnd:$2,onLeaveEnd:$2,motionDeadline:500}},xs=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Jh=(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 a=e.getBoundingClientRect(),o=a.width,l=a.height;if(o||l)return!0}}return!1}),Xz=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(",")}}}}},Yz=KA("Wave",e=>[Xz(e)]),pb=`${jh}-wave-target`;function O2(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"}function Qz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return O2(t)?t:O2(n)?n:O2(r)?r:null}function M2(e){return Number.isNaN(e)?0:e}const Zz=e=>{const{className:t,target:n,component:r}=e,a=u.useRef(null),[o,l]=u.useState(null),[s,d]=u.useState([]),[f,m]=u.useState(0),[h,v]=u.useState(0),[y,S]=u.useState(0),[C,w]=u.useState(0),[E,$]=u.useState(!1),O={left:f,top:h,width:y,height:C,borderRadius:s.map(R=>`${R}px`).join(" ")};o&&(O["--wave-color"]=o);function N(){const R=getComputedStyle(n);l(Qz(n));const _=R.position==="static",{borderLeftWidth:z,borderTopWidth:D}=R;m(_?n.offsetLeft:M2(-parseFloat(z))),v(_?n.offsetTop:M2(-parseFloat(D))),S(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:B,borderBottomLeftRadius:F,borderBottomRightRadius:H}=R;d([L,B,H,F].map(k=>M2(parseFloat(k))))}if(u.useEffect(()=>{if(n){const R=sr(()=>{N(),$(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(N),_.observe(n)),()=>{sr.cancel(R),_?.disconnect()}}},[]),!E)return null;const I=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(pb);return u.createElement(Mo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,_)=>{var z;if(_.deadline||_.propertyName==="opacity"){const D=(z=a.current)===null||z===void 0?void 0:z.parentElement;SO(D).then(()=>{D?.remove()})}return!1}},(R,_)=>{let{className:z}=R;return u.createElement("div",{ref:io(a,_),className:ue(t,z,{"wave-quick":I}),style:O})})},Jz=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e?.insertBefore(a,e?.firstChild),Vw(u.createElement(Zz,Object.assign({},t,{target:e})),a)},eD=(e,t,n)=>{const{wave:r}=u.useContext(Dt),[,a,o]=lo(),l=vr(f=>{const m=e.current;if(r?.disabled||!m)return;const h=m.querySelector(`.${pb}`)||m,{showEffect:v}=r||{};(v||Jz)(h,{className:t,token:a,component:n,event:f,hashId:o})}),s=u.useRef();return f=>{sr.cancel(s.current),s.current=sr(()=>{l(f)})}},ev=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=u.useContext(Dt),o=u.useRef(null),l=a("wave"),[,s]=Yz(l),d=eD(o,ue(l,s),r);if(Se.useEffect(()=>{const m=o.current;if(!m||m.nodeType!==1||n)return;const h=v=>{!Jh(v.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")||m.className.includes("-leave")||d(v)};return m.addEventListener("click",h,!0),()=>{m.removeEventListener("click",h,!0)}},[n]),!Se.isValidElement(t))return t??null;const f=Il(t)?io(t.ref,o):o;return za(t,{ref:f})},No=e=>{const t=Se.useContext(Dd);return Se.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},tD=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},nD=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"}}}},rD=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}}}},CO=nr("Space",e=>{const t=In(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[nD(t),rD(t),tD(t)]},()=>({}),{resetStyle:!1});var wO=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gb=u.createContext(null),tv=(e,t)=>{const n=u.useContext(gb),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:l}=n,s=a==="vertical"?"-vertical-":"-";return ue(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:l,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},aD=e=>{let{children:t}=e;return u.createElement(gb.Provider,{value:null},t)},oD=e=>{var{children:t}=e,n=wO(e,["children"]);return u.createElement(gb.Provider,{value:n},t)},iD=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Dt),{size:r,direction:a,block:o,prefixCls:l,className:s,rootClassName:d,children:f}=e,m=wO(e,["size","direction","block","prefixCls","className","rootClassName","children"]),h=No(O=>r??O),v=t("space-compact",l),[y,S]=CO(v),C=ue(v,S,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,d),w=u.useContext(gb),E=ro(f),$=u.useMemo(()=>E.map((O,N)=>{const I=O?.key||`${v}-item-${N}`;return u.createElement(oD,{key:I,compactSize:h,compactDirection:a,isFirstItem:N===0&&(!w||w?.isFirstItem),isLastItem:N===E.length-1&&(!w||w?.isLastItem)},O)}),[r,E,w]);return E.length===0?null:y(u.createElement("div",Object.assign({className:C},m),$))};var lD=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const EO=u.createContext(void 0),sD=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Dt),{prefixCls:r,size:a,className:o}=e,l=lD(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,d]=lo();let f="";switch(a){case"large":f="lg";break;case"small":f="sm";break}const m=ue(s,{[`${s}-${f}`]:f,[`${s}-rtl`]:n==="rtl"},o,d);return u.createElement(EO.Provider,{value:a},u.createElement("div",Object.assign({},l,{className:m})))},z3=/^[\u4E00-\u9FA5]{2}$/,vC=z3.test.bind(z3);function Kw(e){return e==="danger"?{danger:!0}:{type:e}}function D3(e){return typeof e=="string"}function R2(e){return e==="text"||e==="link"}function cD(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&D3(e.type)&&vC(e.props.children)?za(e,{children:e.props.children.split("").join(n)}):D3(e)?vC(e)?Se.createElement("span",null,e.split("").join(n)):Se.createElement("span",null,e):uO(e)?Se.createElement("span",null,e):e}function uD(e,t){let n=!1;const r=[];return Se.Children.forEach(e,a=>{const o=typeof a,l=o==="string"||o==="number";if(n&&l){const s=r.length-1,d=r[s];r[s]=`${d}${a}`}else r.push(a);n=l}),Se.Children.map(r,a=>cD(a,t))}const $O=u.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,l=ue(`${o}-icon`,n);return Se.createElement("span",{ref:t,className:l,style:r},a)}),j3=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,l=ue(`${n}-loading-icon`,r);return Se.createElement($O,{prefixCls:n,className:l,style:a,ref:t},Se.createElement(Wd,{className:o}))}),N2=()=>({width:0,opacity:0,transform:"scale(0)"}),T2=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,l=!!n;return r?Se.createElement(j3,{prefixCls:t,className:a,style:o}):Se.createElement(Mo,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:N2,onAppearActive:T2,onEnterStart:N2,onEnterActive:T2,onLeaveStart:T2,onLeaveActive:N2},(s,d)=>{let{className:f,style:m}=s;return Se.createElement(j3,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),m),ref:d,iconClassName:f})})},k3=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=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}},k3(`${t}-primary`,a),k3(`${t}-danger`,o)]}};var mD=["b"],pD=["v"],I2=function(t){return Math.round(Number(t||0))},gD=function(t){if(t instanceof su)return t;if(t&&Vt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=ln(n,mD);return le(le({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bh=(function(e){nl(n,e);var t=Al(n);function n(r){return ua(this,n),t.call(this,gD(r))}return da(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=I2(a.s*100),l=I2(a.b*100),s=I2(a.h),d=a.a,f="hsb(".concat(s,", ").concat(o,"%, ").concat(l,"%)"),m="hsba(".concat(s,", ").concat(o,"%, ").concat(l,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:m}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,l=ln(a,pD);return le(le({},l),{},{b:o,a:this.a})}}]),n})(su),hD=function(t){return t instanceof Bh?t:new Bh(t)};hD("#1677ff");const vD=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",yD=(e,t)=>e?vD(e,t):"";let bD=(function(){function e(t){ua(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(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:o,percent:l}=a;return{color:new e(o),percent:l}}),this.metaColor=new Bh(this.colors[0].color.metaColor)):this.metaColor=new Bh(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return da(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return yD(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(a=>`${a.color.toRgbString()} ${a.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,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var xD={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"},SD=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:xD}))},jy=u.forwardRef(SD),OO=Se.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,l=e.children,s=e.isActive,d=e.role,f=e.classNames,m=e.styles,h=Se.useState(s||r),v=Re(h,2),y=v[0],S=v[1];return Se.useEffect(function(){(r||s)&&S(!0)},[r,s]),y?Se.createElement("div",{ref:t,className:ue("".concat(n,"-content"),te(te({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:d},Se.createElement("div",{className:ue("".concat(n,"-content-box"),f?.body),style:m?.body},l)):null});OO.displayName="PanelContent";var CD=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],MO=Se.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,l=e.onItemClick,s=e.forceRender,d=e.className,f=e.classNames,m=f===void 0?{}:f,h=e.styles,v=h===void 0?{}:h,y=e.prefixCls,S=e.collapsible,C=e.accordion,w=e.panelKey,E=e.extra,$=e.header,O=e.expandIcon,N=e.openMotion,I=e.destroyInactivePanel,R=e.children,_=ln(e,CD),z=S==="disabled",D=S==="header",L=S==="icon",B=E!=null&&typeof E!="boolean",F=function(){l?.(w)},H=function(X){(X.key==="Enter"||X.keyCode===Pt.ENTER||X.which===Pt.ENTER)&&F()},k=typeof O=="function"?O(e):Se.createElement("i",{className:"arrow"});k&&(k=Se.createElement("div",{className:"".concat(y,"-expand-icon"),onClick:["header","icon"].includes(S)?F:void 0},k));var q=ue(te(te(te({},"".concat(y,"-item"),!0),"".concat(y,"-item-active"),o),"".concat(y,"-item-disabled"),z),d),V=ue(a,te(te(te({},"".concat(y,"-header"),!0),"".concat(y,"-header-collapsible-only"),D),"".concat(y,"-icon-collapsible-only"),L),m.header),W={className:V,"aria-expanded":o,"aria-disabled":z,onKeyDown:H,style:v.header};return!D&&!L&&(W.onClick=F,W.role=C?"tab":"button",W.tabIndex=z?-1:0),Se.createElement("div",Je({},_,{ref:t,className:q}),Se.createElement("div",W,r&&k,Se.createElement("span",{className:"".concat(y,"-header-text"),onClick:S==="header"?F:void 0},$),B&&Se.createElement("div",{className:"".concat(y,"-extra")},E)),Se.createElement(Mo,Je({visible:o,leavedClassName:"".concat(y,"-content-hidden")},N,{forceRender:s,removeOnLeave:I}),function(G,X){var P=G.className,K=G.style;return Se.createElement(OO,{ref:X,prefixCls:y,className:P,classNames:m,style:K,styles:v,isActive:o,forceRender:s,role:C?"tabpanel":void 0},R)}))}),wD=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ED=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,d=n.activeKey,f=n.openMotion,m=n.expandIcon;return t.map(function(h,v){var y=h.children,S=h.label,C=h.key,w=h.collapsible,E=h.onItemClick,$=h.destroyInactivePanel,O=ln(h,wD),N=String(C??v),I=w??o,R=$??l,_=function(L){I!=="disabled"&&(s(L),E?.(L))},z=!1;return a?z=d[0]===N:z=d.indexOf(N)>-1,Se.createElement(MO,Je({},O,{prefixCls:r,key:N,panelKey:N,isActive:z,accordion:a,openMotion:f,expandIcon:m,header:S,collapsible:I,onItemClick:_,destroyInactivePanel:R}),y)})},$D=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,m=r.openMotion,h=r.expandIcon,v=t.key||String(n),y=t.props,S=y.header,C=y.headerClass,w=y.destroyInactivePanel,E=y.collapsible,$=y.onItemClick,O=!1;o?O=f[0]===v:O=f.indexOf(v)>-1;var N=E??l,I=function(z){N!=="disabled"&&(d(z),$?.(z))},R={key:v,panelKey:v,header:S,headerClass:C,isActive:O,prefixCls:a,destroyInactivePanel:w??s,openMotion:m,accordion:o,children:t.props.children,onItemClick:I,expandIcon:h,collapsible:N};return typeof t.type=="string"?t:(Object.keys(R).forEach(function(_){typeof R[_]>"u"&&delete R[_]}),Se.cloneElement(t,R))};function OD(e,t,n){return Array.isArray(e)?ED(e,n):ro(t).map(function(r,a){return $D(r,a,n)})}function MD(e){var t=e;if(!Array.isArray(t)){var n=Vt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var RD=Se.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,l=e.style,s=e.accordion,d=e.className,f=e.children,m=e.collapsible,h=e.openMotion,v=e.expandIcon,y=e.activeKey,S=e.defaultActiveKey,C=e.onChange,w=e.items,E=ue(r,d),$=kr([],{value:y,onChange:function(D){return C?.(D)},defaultValue:S,postState:MD}),O=Re($,2),N=O[0],I=O[1],R=function(D){return I(function(){if(s)return N[0]===D?[]:[D];var L=N.indexOf(D),B=L>-1;return B?N.filter(function(F){return F!==D}):[].concat(st(N),[D])})};Yr(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _=OD(w,f,{prefixCls:r,accordion:s,openMotion:h,expandIcon:v,collapsible:m,destroyInactivePanel:o,onItemClick:R,activeKey:N});return Se.createElement("div",Je({ref:t,className:E,style:l,role:s?"tablist":void 0},Pa(e,{aria:!0,data:!0})),_)});const Ww=Object.assign(RD,{Panel:MO});Ww.Panel;const ND=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Dt),{prefixCls:r,className:a,showArrow:o=!0}=e,l=n("collapse",r),s=ue({[`${l}-no-arrow`]:!o},a);return u.createElement(Ww.Panel,Object.assign({ref:t},e,{prefixCls:l,className:s}))}),hb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),TD=e=>({animationDuration:e,animationFillMode:"both"}),ID=e=>({animationDuration:e,animationFillMode:"both"}),vb=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${e}-enter, ${o}${e}-appear `]:Object.assign(Object.assign({},TD(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},ID(r)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},_D=new zn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),AD=new zn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),PD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[vb(r,_D,AD,e.motionDurationMid,t),{[` ${a}${r}-enter, ${a}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},zD=new zn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DD=new zn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),jD=new zn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kD=new zn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),LD=new zn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BD=new zn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FD=new zn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HD=new zn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),VD={"move-up":{inKeyframes:FD,outKeyframes:HD},"move-down":{inKeyframes:zD,outKeyframes:DD},"move-left":{inKeyframes:jD,outKeyframes:kD},"move-right":{inKeyframes:LD,outKeyframes:BD}},ky=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=VD[t];return[vb(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Uw=new zn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qw=new zn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gw=new zn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Xw=new zn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),KD=new zn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),WD=new zn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),UD=new zn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qD=new zn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),GD={"slide-up":{inKeyframes:Uw,outKeyframes:qw},"slide-down":{inKeyframes:Gw,outKeyframes:Xw},"slide-left":{inKeyframes:KD,outKeyframes:WD},"slide-right":{inKeyframes:UD,outKeyframes:qD}},fu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=GD[t];return[vb(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Yw=new zn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XD=new zn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),L3=new zn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B3=new zn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),YD=new zn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),QD=new zn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ZD=new zn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JD=new zn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ej=new zn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),tj=new zn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),nj=new zn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),rj=new zn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),aj={zoom:{inKeyframes:Yw,outKeyframes:XD},"zoom-big":{inKeyframes:L3,outKeyframes:B3},"zoom-big-fast":{inKeyframes:L3,outKeyframes:B3},"zoom-left":{inKeyframes:ZD,outKeyframes:JD},"zoom-right":{inKeyframes:ej,outKeyframes:tj},"zoom-up":{inKeyframes:YD,outKeyframes:QD},"zoom-down":{inKeyframes:nj,outKeyframes:rj}},nv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=aj[t];return[vb(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oj=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:d,lineWidth:f,lineType:m,colorBorder:h,colorText:v,colorTextHeading:y,colorTextDisabled:S,fontSizeLG:C,lineHeight:w,lineHeightLG:E,marginSM:$,paddingSM:O,paddingLG:N,paddingXS:I,motionDurationSlow:R,fontSizeIcon:_,contentPadding:z,fontHeight:D,fontHeightLG:L}=e,B=`${ie(f)} ${m} ${h}`;return{[t]:Object.assign(Object.assign({},cr(e)),{backgroundColor:a,border:B,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${ie(d)} ${ie(d)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:y,lineHeight:w,cursor:"pointer",transition:`all ${R}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:D,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},Xh()),{fontSize:_,transition:`transform ${R}`,svg:{transition:`transform ${R}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:v,backgroundColor:n,borderTop:B,[`& > ${t}-content-box`]:{padding:z},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:I,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(I).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:C,lineHeight:E,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:L,marginInlineStart:e.calc(N).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:N}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ie(d)} ${ie(d)}`}},[`& ${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:$}}}}})}},ij=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},lj=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},sj=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}}}}}},cj=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),uj=nr("Collapse",e=>{const t=In(e,{collapseHeaderPaddingSM:`${ie(e.paddingXS)} ${ie(e.paddingSM)}`,collapseHeaderPaddingLG:`${ie(e.padding)} ${ie(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[oj(t),lj(t),sj(t),ij(t),hb(t)]},cj),dj=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=u.useContext(Dt),{prefixCls:o,className:l,rootClassName:s,style:d,bordered:f=!0,ghost:m,size:h,expandIconPosition:v="start",children:y,expandIcon:S}=e,C=No(B=>{var F;return(F=h??B)!==null&&F!==void 0?F:"middle"}),w=n("collapse",o),E=n(),[$,O,N]=uj(w),I=u.useMemo(()=>v==="left"?"start":v==="right"?"end":v,[v]),R=S??a?.expandIcon,_=u.useCallback(function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const F=typeof R=="function"?R(B):u.createElement(jy,{rotate:B.isActive?90:void 0,"aria-label":B.isActive?"expanded":"collapsed"});return za(F,()=>{var H;return{className:ue((H=F?.props)===null||H===void 0?void 0:H.className,`${w}-arrow`)}})},[R,w]),z=ue(`${w}-icon-position-${I}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:r==="rtl",[`${w}-ghost`]:!!m,[`${w}-${C}`]:C!=="middle"},a?.className,l,s,O,N),D=Object.assign(Object.assign({},Lh(E)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),L=u.useMemo(()=>y?ro(y).map((B,F)=>{var H,k;if(!((H=B.props)===null||H===void 0)&&H.disabled){const q=(k=B.key)!==null&&k!==void 0?k:String(F),{disabled:V,collapsible:W}=B.props,G=Object.assign(Object.assign({},Qr(B.props,["disabled"])),{key:q,collapsible:W??(V?"disabled":void 0)});return za(B,G)}return B}):null,[y]);return $(u.createElement(Ww,Object.assign({ref:t,openMotion:D},Qr(e,["rootClassName"]),{expandIcon:_,prefixCls:w,className:z,style:Object.assign(Object.assign({},a?.style),d)}),L))}),fj=Object.assign(dj,{Panel:ND}),mj=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),l=new Bh(e.toRgbString()).onBackground(t).toHsv();return o<=.5?l.v>.5:n*.299+r*.587+a*.114>192},RO=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return In(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},NO=e=>{var t,n,r,a,o,l;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,m=(a=e.contentLineHeight)!==null&&a!==void 0?a:my(s),h=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:my(d),v=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:my(f),y=mj(new bD(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",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:s,contentFontSizeSM:d,contentFontSizeLG:f,contentLineHeight:m,contentLineHeightSM:h,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*h)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*v)/2-e.lineWidth,0)}},pj=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-flex"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},bs(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},TO=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),gj=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),hj=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),vj=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Qw=(e,t,n,r,a,o,l,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},TO(e,Object.assign({background:t},l),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),yj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},vj(e))}),bj=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yb=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?bj:yj;return Object.assign(Object.assign({},o(e)),TO(e.componentCls,t,n))},Zw=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},yb(e,r,a))}),Jw=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},yb(e,r,a))}),eE=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),tE=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},yb(e,n,r))}),Qm=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},yb(e,r,a,n))}),xj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Zw(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),eE(e)),tE(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Qm(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Qw(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Sj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Jw(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),eE(e)),tE(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Qm(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Qw(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Cj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Zw(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Jw(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eE(e)),tE(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Qm(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Qm(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Qw(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wj=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:xj(e),[`${t}-color-primary`]:Sj(e),[`${t}-color-dangerous`]:Cj(e)}},Ej=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Jw(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Qm(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Zw(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Qm(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),nE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:d,buttonPaddingVertical:f}=e,m=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${ie(f)} ${ie(s)}`,borderRadius:l,[`&${m}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[d]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:gj(e)},{[`${n}${n}-round${t}`]:hj(e)}]},$j=e=>{const t=In(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return nE(t,e.componentCls)},Oj=e=>{const t=In(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return nE(t,`${e.componentCls}-sm`)},Mj=e=>{const t=In(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return nE(t,`${e.componentCls}-lg`)},Rj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Nj=nr("Button",e=>{const t=RO(e);return[pj(t),$j(t),Oj(t),Mj(t),Rj(t),wj(t),Ej(t),fD(t)]},NO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tj(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,l=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function Ij(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function rE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Tj(e,r,t)),Ij(n,r,t))}}function _j(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Aj(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 Pj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_j(e,t)),Aj(e.componentCls,t))}}const zj=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ie(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ie(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Dj=op(["Button","compact"],e=>{const t=RO(e);return[rE(t),Pj(t),zj(t)]},NO);var jj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function kj(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Lj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Bj=Se.forwardRef((e,t)=>{var n,r,a,o;const{loading:l=!1,prefixCls:s,color:d,variant:f,type:m,danger:h=!1,shape:v="default",size:y,styles:S,disabled:C,className:w,rootClassName:E,children:$,icon:O,iconPosition:N="start",ghost:I=!1,block:R=!1,htmlType:_="button",classNames:z,style:D={},autoInsertSpace:L}=e,B=jj(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),F=m||"default",[H,k]=u.useMemo(()=>{if(d&&f)return[d,f];const rt=Lj[F]||[];return h?["danger",rt[1]]:rt},[m,d,f,h]),V=H==="danger"?"dangerous":H,{getPrefixCls:W,direction:G,button:X}=u.useContext(Dt),P=(n=L??X?.autoInsertSpace)!==null&&n!==void 0?n:!0,K=W("btn",s),[J,j,Y]=Nj(K),ne=u.useContext(tl),se=C??ne,de=u.useContext(EO),pe=u.useMemo(()=>kj(l),[l]),[Ce,he]=u.useState(pe.loading),[me,be]=u.useState(!1),ge=io(t,u.createRef()),Oe=u.Children.count($)===1&&!O&&!R2(k);u.useEffect(()=>{let rt=null;pe.delay>0?rt=setTimeout(()=>{rt=null,he(!0)},pe.delay):he(pe.loading);function lt(){rt&&(clearTimeout(rt),rt=null)}return lt},[pe]),u.useEffect(()=>{if(!ge||!ge.current||!P)return;const rt=ge.current.textContent;Oe&&vC(rt)?me||be(!0):me&&be(!1)},[ge]);const Ne=Se.useCallback(rt=>{var lt;if(Ce||se){rt.preventDefault();return}(lt=e.onClick)===null||lt===void 0||lt.call(e,rt)},[e.onClick,Ce,se]),{compactSize:je,compactItemClassnames:Te}=tv(K,G),Ue={large:"lg",small:"sm",middle:void 0},qe=No(rt=>{var lt,ut;return(ut=(lt=y??je)!==null&&lt!==void 0?lt:de)!==null&&ut!==void 0?ut:rt}),ze=qe&&(r=Ue[qe])!==null&&r!==void 0?r:"",Ve=Ce?"loading":O,Be=Qr(B,["navigate"]),De=ue(K,j,Y,{[`${K}-${v}`]:v!=="default"&&v,[`${K}-${F}`]:F,[`${K}-dangerous`]:h,[`${K}-color-${V}`]:V,[`${K}-variant-${k}`]:k,[`${K}-${ze}`]:ze,[`${K}-icon-only`]:!$&&$!==0&&!!Ve,[`${K}-background-ghost`]:I&&!R2(k),[`${K}-loading`]:Ce,[`${K}-two-chinese-chars`]:me&&P&&!Ce,[`${K}-block`]:R,[`${K}-rtl`]:G==="rtl",[`${K}-icon-end`]:N==="end"},Te,w,E,X?.className),ye=Object.assign(Object.assign({},X?.style),D),oe=ue(z?.icon,(a=X?.classNames)===null||a===void 0?void 0:a.icon),we=Object.assign(Object.assign({},S?.icon||{}),((o=X?.styles)===null||o===void 0?void 0:o.icon)||{}),Fe=O&&!Ce?Se.createElement($O,{prefixCls:K,className:oe,style:we},O):Se.createElement(dD,{existIcon:!!O,prefixCls:K,loading:Ce}),xe=$||$===0?uD($,Oe&&P):null;if(Be.href!==void 0)return J(Se.createElement("a",Object.assign({},Be,{className:ue(De,{[`${K}-disabled`]:se}),href:se?void 0:Be.href,style:ye,onClick:Ne,ref:ge,tabIndex:se?-1:0}),Fe,xe));let _e=Se.createElement("button",Object.assign({},B,{type:_,className:De,style:ye,onClick:Ne,disabled:se,ref:ge}),Fe,xe,!!Te&&Se.createElement(Dj,{key:"compact",prefixCls:K}));return R2(k)||(_e=Se.createElement(ev,{component:"Button",disabled:Ce},_e)),J(_e)}),Un=Bj;Un.Group=sD;Un.__ANT_BUTTON=!0;function _2(e){return!!e?.then}const aE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:l,emitEvent:s,isSilent:d,quitOnNullishReturnValue:f,actionFn:m}=e,h=u.useRef(!1),v=u.useRef(null),[y,S]=jd(!1),C=function(){o?.apply(void 0,arguments)};u.useEffect(()=>{let $=null;return l&&($=setTimeout(()=>{var O;(O=v.current)===null||O===void 0||O.focus()})),()=>{$&&clearTimeout($)}},[]);const w=$=>{_2($)&&(S(!0),$.then(function(){S(!1,!0),C.apply(void 0,arguments),h.current=!1},O=>{if(S(!1,!0),h.current=!1,!d?.())return Promise.reject(O)}))},E=$=>{if(h.current)return;if(h.current=!0,!m){C();return}let O;if(s){if(O=m($),f&&!_2(O)){h.current=!1,C($);return}}else if(m.length)O=m(o),h.current=!1;else if(O=m(),!_2(O)){C();return}w(O)};return u.createElement(Un,Object.assign({},Kw(t),{onClick:E,loading:y,prefixCls:r},a,{ref:v}),n)},rv=Se.createContext({}),{Provider:IO}=rv,F3=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:l,onCancel:s,onConfirm:d}=u.useContext(rv);return a?Se.createElement(aE,{isSilent:r,actionFn:s,close:function(){l?.apply(void 0,arguments),d?.(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},H3=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:l,onConfirm:s,onOk:d}=u.useContext(rv);return Se.createElement(aE,{isSilent:n,type:l||"primary",actionFn:d,close:function(){t?.apply(void 0,arguments),s?.(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var _O=u.createContext(null),V3=[];function Fj(e,t){var n=u.useState(function(){if(!ao())return null;var S=document.createElement("div");return S}),r=Re(n,1),a=r[0],o=u.useRef(!1),l=u.useContext(_O),s=u.useState(V3),d=Re(s,2),f=d[0],m=d[1],h=l||(o.current?void 0:function(S){m(function(C){var w=[S].concat(st(C));return w})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function y(){var S;(S=a.parentElement)===null||S===void 0||S.removeChild(a),o.current=!1}return Ln(function(){return e?l?l(v):v():y(),y},[e]),Ln(function(){f.length&&(f.forEach(function(S){return S()}),m(V3))},[f]),[a,h]}var A2;function AO(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 a,o;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(s.width,10),f=parseInt(s.height,10);try{var m=d?"width: ".concat(s.width,";"):"",h=f?"height: ".concat(s.height,";"):"";ec(` #`.concat(t,`::-webkit-scrollbar { `).concat(m,` `).concat(h,` }`),t)}catch(S){console.error(S),a=d,o=f}}document.body.appendChild(n);var v=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,y=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ah(t),{width:v,height:y}}function K3(e){return typeof document>"u"?0:(A2===void 0&&(A2=AO()),A2.width)}function yC(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:AO(e)}function Hj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Vj="rc-util-locker-".concat(Date.now()),W3=0;function Kj(e){var t=!!e,n=u.useState(function(){return W3+=1,"".concat(Vj,"_").concat(W3)}),r=Re(n,1),a=r[0];Ln(function(){if(t){var o=yC(document.body).width,l=Hj();ec(` html body { overflow-y: hidden; `.concat(l?"width: calc(100% - ".concat(o,"px);"):"",` }`),a)}else Ah(a);return function(){Ah(a)}},[t,a])}var Wj=!1;function Uj(e){return Wj}var U3=function(t){return t===!1?!1:!ao()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},bb=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,l=o===void 0?!0:o,s=e.children,d=u.useState(n),f=Re(d,2),m=f[0],h=f[1],v=m||n;u.useEffect(function(){(l||n)&&h(n)},[n,l]);var y=u.useState(function(){return U3(a)}),S=Re(y,2),C=S[0],w=S[1];u.useEffect(function(){var B=U3(a);w(B??null)});var E=Fj(v&&!C),$=Re(E,2),O=$[0],N=$[1],I=C??O;Kj(r&&n&&ao()&&(I===O||I===document.body));var R=null;if(s&&Il(s)&&t){var _=s;R=_.ref}var z=oc(R,t);if(!v||!ao()||C===void 0)return null;var D=I===!1||Uj(),L=s;return t&&(L=u.cloneElement(s,{ref:z})),u.createElement(_O.Provider,{value:N},D?L:tc.createPortal(L,I))}),PO=u.createContext({});function qj(){var e=le({},ab);return e.useId}var q3=0,G3=qj();const zO=G3?(function(t){var n=G3();return t||n}):(function(t){var n=u.useState("ssr-id"),r=Re(n,2),a=r[0],o=r[1];return u.useEffect(function(){var l=q3;q3+=1,o("rc_unique_".concat(l))},[]),t||a});function X3(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Y3(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function Gj(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Y3(a),n.top+=Y3(a,!0),n}const Xj=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Yj={width:0,height:0,overflow:"hidden",outline:"none"},Qj={outline:"none"},DO=Se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,l=e.ariaId,s=e.footer,d=e.closable,f=e.closeIcon,m=e.onClose,h=e.children,v=e.bodyStyle,y=e.bodyProps,S=e.modalRender,C=e.onMouseDown,w=e.onMouseUp,E=e.holderRef,$=e.visible,O=e.forceRender,N=e.width,I=e.height,R=e.classNames,_=e.styles,z=Se.useContext(PO),D=z.panel,L=oc(E,D),B=u.useRef(),F=u.useRef();Se.useImperativeHandle(t,function(){return{focus:function(){var J;(J=B.current)===null||J===void 0||J.focus({preventScroll:!0})},changeActive:function(J){var j=document,Y=j.activeElement;J&&Y===F.current?B.current.focus({preventScroll:!0}):!J&&Y===B.current&&F.current.focus({preventScroll:!0})}}});var H={};N!==void 0&&(H.width=N),I!==void 0&&(H.height=I);var k=s?Se.createElement("div",{className:ue("".concat(n,"-footer"),R?.footer),style:le({},_?.footer)},s):null,q=o?Se.createElement("div",{className:ue("".concat(n,"-header"),R?.header),style:le({},_?.header)},Se.createElement("div",{className:"".concat(n,"-title"),id:l},o)):null,V=u.useMemo(function(){return Vt(d)==="object"&&d!==null?d:d?{closeIcon:f??Se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),W=Pa(V,!0),G=Vt(d)==="object"&&d.disabled,X=d?Se.createElement("button",Je({type:"button",onClick:m,"aria-label":"Close"},W,{className:"".concat(n,"-close"),disabled:G}),V.closeIcon):null,P=Se.createElement("div",{className:ue("".concat(n,"-content"),R?.content),style:_?.content},X,q,Se.createElement("div",Je({className:ue("".concat(n,"-body"),R?.body),style:le(le({},v),_?.body)},y),h),k);return Se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?l:null,"aria-modal":"true",ref:L,style:le(le({},a),H),className:ue(n,r),onMouseDown:C,onMouseUp:w},Se.createElement("div",{ref:B,tabIndex:0,style:Qj},Se.createElement(Xj,{shouldUpdate:$||O},S?S(P):P)),Se.createElement("div",{tabIndex:0,ref:F,style:Yj}))}),jO=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,l=e.visible,s=e.forceRender,d=e.destroyOnClose,f=e.motionName,m=e.ariaId,h=e.onVisibleChanged,v=e.mousePosition,y=u.useRef(),S=u.useState(),C=Re(S,2),w=C[0],E=C[1],$={};w&&($.transformOrigin=w);function O(){var N=Gj(y.current);E(v&&(v.x||v.y)?"".concat(v.x-N.left,"px ").concat(v.y-N.top,"px"):"")}return u.createElement(Mo,{visible:l,onVisibleChanged:h,onAppearPrepare:O,onEnterPrepare:O,forceRender:s,motionName:f,removeOnLeave:d,ref:y},function(N,I){var R=N.className,_=N.style;return u.createElement(DO,Je({},e,{ref:t,title:r,ariaId:m,prefixCls:n,holderRef:I,style:le(le(le({},_),a),$),className:ue(o,R)}))})});jO.displayName="Content";var Zj=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,l=t.motionName,s=t.className;return u.createElement(Mo,{key:"mask",visible:a,motionName:l,leavedClassName:"".concat(n,"-mask-hidden")},function(d,f){var m=d.className,h=d.style;return u.createElement("div",Je({ref:f,style:le(le({},h),r),className:ue("".concat(n,"-mask"),m,s)},o))})},Jj=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,l=o===void 0?!1:o,s=t.keyboard,d=s===void 0?!0:s,f=t.focusTriggerAfterClose,m=f===void 0?!0:f,h=t.wrapStyle,v=t.wrapClassName,y=t.wrapProps,S=t.onClose,C=t.afterOpenChange,w=t.afterClose,E=t.transitionName,$=t.animation,O=t.closable,N=O===void 0?!0:O,I=t.mask,R=I===void 0?!0:I,_=t.maskTransitionName,z=t.maskAnimation,D=t.maskClosable,L=D===void 0?!0:D,B=t.maskStyle,F=t.maskProps,H=t.rootClassName,k=t.classNames,q=t.styles,V=u.useRef(),W=u.useRef(),G=u.useRef(),X=u.useState(l),P=Re(X,2),K=P[0],J=P[1],j=zO();function Y(){LS(W.current,document.activeElement)||(V.current=document.activeElement)}function ne(){if(!LS(W.current,document.activeElement)){var Oe;(Oe=G.current)===null||Oe===void 0||Oe.focus()}}function se(Oe){if(Oe)ne();else{if(J(!1),R&&V.current&&m){try{V.current.focus({preventScroll:!0})}catch{}V.current=null}K&&w?.()}C?.(Oe)}function de(Oe){S?.(Oe)}var pe=u.useRef(!1),Ce=u.useRef(),he=function(){clearTimeout(Ce.current),pe.current=!0},me=function(){Ce.current=setTimeout(function(){pe.current=!1})},be=null;L&&(be=function(Ne){pe.current?pe.current=!1:W.current===Ne.target&&de(Ne)});function fe(Oe){if(d&&Oe.keyCode===Pt.ESC){Oe.stopPropagation(),de(Oe);return}l&&Oe.keyCode===Pt.TAB&&G.current.changeActive(!Oe.shiftKey)}u.useEffect(function(){l&&(J(!0),Y())},[l]),u.useEffect(function(){return function(){clearTimeout(Ce.current)}},[]);var ge=le(le(le({zIndex:a},h),q?.wrapper),{},{display:K?null:"none"});return u.createElement("div",Je({className:ue("".concat(r,"-root"),H)},Pa(t,{data:!0})),u.createElement(Zj,{prefixCls:r,visible:R&&l,motionName:X3(r,_,z),style:le(le({zIndex:a},B),q?.mask),maskProps:F,className:k?.mask}),u.createElement("div",Je({tabIndex:-1,onKeyDown:fe,className:ue("".concat(r,"-wrap"),v,k?.wrapper),ref:W,onClick:be,style:ge},y),u.createElement(jO,Je({},t,{onMouseDown:he,onMouseUp:me,ref:G,closable:N,ariaId:j,prefixCls:r,visible:l&&K,onClose:de,onVisibleChanged:se,motionName:X3(r,E,$)}))))},kO=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,l=o===void 0?!1:o,s=t.afterClose,d=t.panelRef,f=u.useState(n),m=Re(f,2),h=m[0],v=m[1],y=u.useMemo(function(){return{panel:d}},[d]);return u.useEffect(function(){n&&v(!0)},[n]),!a&&l&&!h?null:u.createElement(PO.Provider,{value:y},u.createElement(bb,{open:n||a||h,autoDestroy:!1,getContainer:r,autoLock:n||h},u.createElement(Jj,Je({},t,{destroyOnClose:l,afterClose:function(){s?.(),v(!1)}}))))};kO.displayName="Dialog";var Nd="RC_FORM_INTERNAL_HOOKS",Pr=function(){Yr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kd=u.createContext({getFieldValue:Pr,getFieldsValue:Pr,getFieldError:Pr,getFieldWarning:Pr,getFieldsError:Pr,isFieldsTouched:Pr,isFieldTouched:Pr,isFieldValidating:Pr,isFieldsValidating:Pr,resetFields:Pr,setFields:Pr,setFieldValue:Pr,setFieldsValue:Pr,validateFields:Pr,submit:Pr,getInternalHooks:function(){return Pr(),{dispatch:Pr,initEntityValue:Pr,registerField:Pr,useSubscribe:Pr,setInitialValues:Pr,destroyForm:Pr,setCallbacks:Pr,registerWatch:Pr,getFields:Pr,setValidateMessages:Pr,setPreserve:Pr,getInitialValue:Pr}}}),Fh=u.createContext(null);function bC(e){return e==null?[]:Array.isArray(e)?e:[e]}function ek(e){return e&&!!e._init}function xC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var SC=xC();function tk(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function nk(e,t,n){if(lb())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Ih(a,n.prototype),a}function CC(e){var t=typeof Map=="function"?new Map:void 0;return CC=function(r){if(r===null||!tk(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,a)}function a(){return nk(r,arguments,zd(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ih(a,r)},CC(e)}var rk=/%[sdj%]/g,ak=function(){};function wC(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 Ai(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 a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(rk,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function ok(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function La(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ok(t)&&typeof e=="string"&&!e)}function ik(e,t,n){var r=[],a=0,o=e.length;function l(s){r.push.apply(r,st(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,l)})}function Q3(e,t,n){var r=0,a=e.length;function o(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s<a?t(e[s],o):n([])}o([])}function lk(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,st(e[n]||[]))}),t}var Z3=(function(e){nl(n,e);var t=Al(n);function n(r,a){var o;return ua(this,n),o=t.call(this,"Async Validation Error"),te(St(o),"errors",void 0),te(St(o),"fields",void 0),o.errors=r,o.fields=a,o}return da(n)})(CC(Error));function sk(e,t,n,r,a){if(t.first){var o=new Promise(function(v,y){var S=function(E){return r(E),E.length?y(new Z3(E,wC(E))):v(a)},C=lk(e);Q3(C,n,S)});return o.catch(function(v){return v}),o}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),d=s.length,f=0,m=[],h=new Promise(function(v,y){var S=function(w){if(m.push.apply(m,w),f++,f===d)return r(m),m.length?y(new Z3(m,wC(m))):v(a)};s.length||(r(m),v(a)),s.forEach(function(C){var w=e[C];l.indexOf(C)!==-1?Q3(w,n,S):ik(w,n,S)})});return h.catch(function(v){return v}),h}function ck(e){return!!(e&&e.message!==void 0)}function uk(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function J3(e,t){return function(n){var r;return e.fullFields?r=uk(t,e.fullFields):r=t[n.field||e.fullField],ck(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 e$(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Vt(r)==="object"&&Vt(e[n])==="object"?e[n]=le(le({},e[n]),r):e[n]=r}}return e}var ym="enum",dk=function(t,n,r,a,o){t[ym]=Array.isArray(t[ym])?t[ym]:[],t[ym].indexOf(n)===-1&&a.push(Ai(o.messages[ym],t.fullField,t[ym].join(", ")))},fk=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ai(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||a.push(Ai(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mk=function(t,n,r,a,o){var l=typeof t.len=="number",s=typeof t.min=="number",d=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,h=null,v=typeof n=="number",y=typeof n=="string",S=Array.isArray(n);if(v?h="number":y?h="string":S&&(h="array"),!h)return!1;S&&(m=n.length),y&&(m=n.replace(f,"_").length),l?m!==t.len&&a.push(Ai(o.messages[h].len,t.fullField,t.len)):s&&!d&&m<t.min?a.push(Ai(o.messages[h].min,t.fullField,t.min)):d&&!s&&m>t.max?a.push(Ai(o.messages[h].max,t.fullField,t.max)):s&&d&&(m<t.min||m>t.max)&&a.push(Ai(o.messages[h].range,t.fullField,t.min,t.max))},LO=function(t,n,r,a,o,l){t.required&&(!r.hasOwnProperty(t.field)||La(n,l||t.type))&&a.push(Ai(o.messages.required,t.fullField))},B1;const pk=(function(){if(B1)return B1;var e="[a-fA-F\\d:]",t=function(R){return R&&R.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}",a=["(?:".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}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",l="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(l,"$")),m=function(R){return R&&R.exact?s:new RegExp("(?:".concat(t(R)).concat(n).concat(t(R),")|(?:").concat(t(R)).concat(l).concat(t(R),")"),"g")};m.v4=function(I){return I&&I.exact?d:new RegExp("".concat(t(I)).concat(n).concat(t(I)),"g")},m.v6=function(I){return I&&I.exact?f:new RegExp("".concat(t(I)).concat(l).concat(t(I)),"g")};var h="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",y=m.v4().source,S=m.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",w="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',N="(?:".concat(h,"|www\\.)").concat(v,"(?:localhost|").concat(y,"|").concat(S,"|").concat(C).concat(w).concat(E,")").concat($).concat(O);return B1=new RegExp("(?:^".concat(N,"$)"),"i"),B1});var t$={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},dh={integer:function(t){return dh.number(t)&&parseInt(t,10)===t},float:function(t){return dh.number(t)&&!dh.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Vt(t)==="object"&&!dh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(t$.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(pk())},hex:function(t){return typeof t=="string"&&!!t.match(t$.hex)}},gk=function(t,n,r,a,o){if(t.required&&n===void 0){LO(t,n,r,a,o);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?dh[s](n)||a.push(Ai(o.messages.types[s],t.fullField,t.type)):s&&Vt(n)!==t.type&&a.push(Ai(o.messages.types[s],t.fullField,t.type))},hk=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Ai(o.messages.whitespace,t.fullField))};const tr={required:LO,whitespace:hk,type:gk,range:mk,enum:dk,pattern:fk};var vk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o)}r(l)},yk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();tr.required(t,n,a,l,o,"array"),n!=null&&(tr.type(t,n,a,l,o),tr.range(t,n,a,l,o))}r(l)},bk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&tr.type(t,n,a,l,o)}r(l)},xk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n,"date")&&!t.required)return r();if(tr.required(t,n,a,l,o),!La(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),tr.type(t,d,a,l,o),d&&tr.range(t,d.getTime(),a,l,o)}}r(l)},Sk="enum",Ck=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&tr[Sk](t,n,a,l,o)}r(l)},wk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&(tr.type(t,n,a,l,o),tr.range(t,n,a,l,o))}r(l)},Ek=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&(tr.type(t,n,a,l,o),tr.range(t,n,a,l,o))}r(l)},$k=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&tr.type(t,n,a,l,o)}r(l)},Ok=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&(tr.type(t,n,a,l,o),tr.range(t,n,a,l,o))}r(l)},Mk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),n!==void 0&&tr.type(t,n,a,l,o)}r(l)},Rk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n,"string")&&!t.required)return r();tr.required(t,n,a,l,o),La(n,"string")||tr.pattern(t,n,a,l,o)}r(l)},Nk=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n)&&!t.required)return r();tr.required(t,n,a,l,o),La(n)||tr.type(t,n,a,l,o)}r(l)},Tk=function(t,n,r,a,o){var l=[],s=Array.isArray(n)?"array":Vt(n);tr.required(t,n,a,l,o,s),r(l)},Ik=function(t,n,r,a,o){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(La(n,"string")&&!t.required)return r();tr.required(t,n,a,l,o,"string"),La(n,"string")||(tr.type(t,n,a,l,o),tr.range(t,n,a,l,o),tr.pattern(t,n,a,l,o),t.whitespace===!0&&tr.whitespace(t,n,a,l,o))}r(l)},P2=function(t,n,r,a,o){var l=t.type,s=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(La(n,l)&&!t.required)return r();tr.required(t,n,a,s,o,l),La(n,l)||tr.type(t,n,a,s,o)}r(s)};const xh={string:Ik,method:$k,number:Ok,boolean:bk,regexp:Nk,integer:Ek,float:wk,array:yk,object:Mk,enum:Ck,pattern:Rk,date:xk,url:P2,hex:P2,email:P2,required:Tk,any:vk};var av=(function(){function e(t){ua(this,e),te(this,"rules",null),te(this,"_messages",SC),this.define(t)}return da(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Vt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=e$(xC(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,s=a,d=o;if(typeof s=="function"&&(d=s,s={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,l),Promise.resolve(l);function f(S){var C=[],w={};function E(O){if(Array.isArray(O)){var N;C=(N=C).concat.apply(N,st(O))}else C.push(O)}for(var $=0;$<S.length;$++)E(S[$]);C.length?(w=wC(C),d(C,w)):d(null,l)}if(s.messages){var m=this.messages();m===SC&&(m=xC()),e$(m,s.messages),s.messages=m}else s.messages=this.messages();var h={},v=s.keys||Object.keys(this.rules);v.forEach(function(S){var C=r.rules[S],w=l[S];C.forEach(function(E){var $=E;typeof $.transform=="function"&&(l===n&&(l=le({},l)),w=l[S]=$.transform(w),w!=null&&($.type=$.type||(Array.isArray(w)?"array":Vt(w)))),typeof $=="function"?$={validator:$}:$=le({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=S,$.fullField=$.fullField||S,$.type=r.getType($),h[S]=h[S]||[],h[S].push({rule:$,value:w,source:l,field:S}))})});var y={};return sk(h,s,function(S,C){var w=S.rule,E=(w.type==="object"||w.type==="array")&&(Vt(w.fields)==="object"||Vt(w.defaultField)==="object");E=E&&(w.required||!w.required&&S.value),w.field=S.field;function $(_,z){return le(le({},z),{},{fullField:"".concat(w.fullField,".").concat(_),fullFields:w.fullFields?[].concat(st(w.fullFields),[_]):[_]})}function O(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=Array.isArray(_)?_:[_];!s.suppressWarning&&z.length&&e.warning("async-validator:",z),z.length&&w.message!==void 0&&(z=[].concat(w.message));var D=z.map(J3(w,l));if(s.first&&D.length)return y[w.field]=1,C(D);if(!E)C(D);else{if(w.required&&!S.value)return w.message!==void 0?D=[].concat(w.message).map(J3(w,l)):s.error&&(D=[s.error(w,Ai(s.messages.required,w.field))]),C(D);var L={};w.defaultField&&Object.keys(S.value).map(function(H){L[H]=w.defaultField}),L=le(le({},L),S.rule.fields);var B={};Object.keys(L).forEach(function(H){var k=L[H],q=Array.isArray(k)?k:[k];B[H]=q.map($.bind(null,H))});var F=new e(B);F.messages(s.messages),S.rule.options&&(S.rule.options.messages=s.messages,S.rule.options.error=s.error),F.validate(S.value,S.rule.options||s,function(H){var k=[];D&&D.length&&k.push.apply(k,st(D)),H&&H.length&&k.push.apply(k,st(H)),C(k.length?k:null)})}}var N;if(w.asyncValidator)N=w.asyncValidator(w,S.value,O,S.source,s);else if(w.validator){try{N=w.validator(w,S.value,O,S.source,s)}catch(_){var I,R;(I=(R=console).error)===null||I===void 0||I.call(R,_),s.suppressValidatorError||setTimeout(function(){throw _},0),O(_.message)}N===!0?O():N===!1?O(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||"".concat(w.fullField||w.field," fails")):N instanceof Array?O(N):N instanceof Error&&O(N.message)}N&&N.then&&N.then(function(){return O()},function(_){return O(_)})},function(S){f(S)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!xh.hasOwnProperty(n.type))throw new Error(Ai("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?xh.required:xh[this.getType(n)]||void 0}}]),e})();te(av,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");xh[t]=n});te(av,"warning",ak);te(av,"messages",SC);te(av,"validators",xh);var Mi="'${name}' is not a valid ${type}",BO={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:Mi,method:Mi,array:Mi,object:Mi,number:Mi,date:Mi,boolean:Mi,integer:Mi,float:Mi,regexp:Mi,email:Mi,url:Mi,hex:Mi},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}"}},n$=av;function _k(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 r$="CODE_LOGIC_ERROR";function EC(e,t,n,r,a){return $C.apply(this,arguments)}function $C(){return $C=Ud(Ro().mark(function e(t,n,r,a,o){var l,s,d,f,m,h,v,y,S;return Ro().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return l=le({},r),delete l.ruleIndex,n$.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(r$)}}),d=null,l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField),f=new n$(te({},t,[l])),m=Dm(BO,a.validateMessages),f.messages(m),h=[],w.prev=10,w.next=13,Promise.resolve(f.validate(te({},t,n),le({},a)));case 13:w.next=18;break;case 15:w.prev=15,w.t0=w.catch(10),w.t0.errors&&(h=w.t0.errors.map(function(E,$){var O=E.message,N=O===r$?m.default:O;return u.isValidElement(N)?u.cloneElement(N,{key:"error_".concat($)}):N}));case 18:if(!(!h.length&&d)){w.next=23;break}return w.next=21,Promise.all(n.map(function(E,$){return EC("".concat(t,".").concat($),E,d,a,o)}));case 21:return v=w.sent,w.abrupt("return",v.reduce(function(E,$){return[].concat(st(E),st($))},[]));case 23:return y=le(le({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),S=h.map(function(E){return typeof E=="string"?_k(E,y):E}),w.abrupt("return",S);case 26:case"end":return w.stop()}},e,null,[[10,15]])})),$C.apply(this,arguments)}function Ak(e,t,n,r,a,o){var l=e.join("."),s=n.map(function(m,h){var v=m.validator,y=le(le({},m),{},{ruleIndex:h});return v&&(y.validator=function(S,C,w){var E=!1,$=function(){for(var I=arguments.length,R=new Array(I),_=0;_<I;_++)R[_]=arguments[_];Promise.resolve().then(function(){Yr(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||w.apply(void 0,R)})},O=v(S,C,$);E=O&&typeof O.then=="function"&&typeof O.catch=="function",Yr(E,"`callback` is deprecated. Please return a promise instead."),E&&O.then(function(){w()}).catch(function(N){w(N||" ")})}),y}).sort(function(m,h){var v=m.warningOnly,y=m.ruleIndex,S=h.warningOnly,C=h.ruleIndex;return!!v==!!S?y-C:v?1:-1}),d;if(a===!0)d=new Promise((function(){var m=Ud(Ro().mark(function h(v,y){var S,C,w;return Ro().wrap(function($){for(;;)switch($.prev=$.next){case 0:S=0;case 1:if(!(S<s.length)){$.next=12;break}return C=s[S],$.next=5,EC(l,t,C,r,o);case 5:if(w=$.sent,!w.length){$.next=9;break}return y([{errors:w,rule:C}]),$.abrupt("return");case 9:S+=1,$.next=1;break;case 12:v([]);case 13:case"end":return $.stop()}},h)}));return function(h,v){return m.apply(this,arguments)}})());else{var f=s.map(function(m){return EC(l,t,m,r,o).then(function(h){return{errors:h,rule:m}})});d=(a?zk(f):Pk(f)).then(function(m){return Promise.reject(m)})}return d.catch(function(m){return m}),d}function Pk(e){return OC.apply(this,arguments)}function OC(){return OC=Ud(Ro().mark(function e(t){return Ro().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,l=(o=[]).concat.apply(o,st(a));return l}));case 1:case"end":return r.stop()}},e)})),OC.apply(this,arguments)}function zk(e){return MC.apply(this,arguments)}function MC(){return MC=Ud(Ro().mark(function e(t){var n;return Ro().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(l){l.then(function(s){s.errors.length&&o([s]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),MC.apply(this,arguments)}function wa(e){return bC(e)}function a$(e,t){var n={};return t.forEach(function(r){var a=_i(e,r);n=$l(n,r,a)}),n}function Bm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return FO(t,r,n)})}function FO(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,a){return e[a]===r})}function Dk(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Vt(e)!=="object"||Vt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return st(a).every(function(o){var l=e[o],s=t[o];return typeof l=="function"&&typeof s=="function"?!0:l===s})}function jk(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Vt(t.target)==="object"&&e in t.target?t.target[e]:t}function o$(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(st(e.slice(0,n)),[a],st(e.slice(n,t)),st(e.slice(t+1,r))):o<0?[].concat(st(e.slice(0,t)),st(e.slice(t+1,n+1)),[a],st(e.slice(n+1,r))):e}var kk=["name"],Gi=[];function z2(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var oE=(function(e){nl(n,e);var t=Al(n);function n(r){var a;if(ua(this,n),a=t.call(this,r),te(St(a),"state",{resetCount:0}),te(St(a),"cancelRegisterFunc",null),te(St(a),"mounted",!1),te(St(a),"touched",!1),te(St(a),"dirty",!1),te(St(a),"validatePromise",void 0),te(St(a),"prevValidating",void 0),te(St(a),"errors",Gi),te(St(a),"warnings",Gi),te(St(a),"cancelRegister",function(){var d=a.props,f=d.preserve,m=d.isListField,h=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(m,f,wa(h)),a.cancelRegisterFunc=null}),te(St(a),"getNamePath",function(){var d=a.props,f=d.name,m=d.fieldContext,h=m.prefixName,v=h===void 0?[]:h;return f!==void 0?[].concat(st(v),st(f)):[]}),te(St(a),"getRules",function(){var d=a.props,f=d.rules,m=f===void 0?[]:f,h=d.fieldContext;return m.map(function(v){return typeof v=="function"?v(h):v})}),te(St(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),te(St(a),"metaCache",null),te(St(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var m=le(le({},a.getMeta()),{},{destroy:d});vs(a.metaCache,m)||f(m),a.metaCache=m}else a.metaCache=null}),te(St(a),"onStoreChange",function(d,f,m){var h=a.props,v=h.shouldUpdate,y=h.dependencies,S=y===void 0?[]:y,C=h.onReset,w=m.store,E=a.getNamePath(),$=a.getValue(d),O=a.getValue(w),N=f&&Bm(f,E);switch(m.type==="valueUpdate"&&m.source==="external"&&!vs($,O)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Gi,a.warnings=Gi,a.triggerMetaEvent()),m.type){case"reset":if(!f||N){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Gi,a.warnings=Gi,a.triggerMetaEvent(),C?.(),a.refresh();return}break;case"remove":{if(v&&z2(v,d,w,$,O,m)){a.reRender();return}break}case"setField":{var I=m.data;if(N){"touched"in I&&(a.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(a.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(a.errors=I.errors||Gi),"warnings"in I&&(a.warnings=I.warnings||Gi),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in I&&Bm(f,E,!0)){a.reRender();return}if(v&&!E.length&&z2(v,d,w,$,O,m)){a.reRender();return}break}case"dependenciesUpdate":{var R=S.map(wa);if(R.some(function(_){return Bm(m.relatedFields,_)})){a.reRender();return}break}default:if(N||(!S.length||E.length||v)&&z2(v,d,w,$,O,m)){a.reRender();return}break}v===!0&&a.reRender()}),te(St(a),"validateRules",function(d){var f=a.getNamePath(),m=a.getValue(),h=d||{},v=h.triggerName,y=h.validateOnly,S=y===void 0?!1:y,C=Promise.resolve().then(Ud(Ro().mark(function w(){var E,$,O,N,I,R,_;return Ro().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(a.mounted){D.next=2;break}return D.abrupt("return",[]);case 2:if(E=a.props,$=E.validateFirst,O=$===void 0?!1:$,N=E.messageVariables,I=E.validateDebounce,R=a.getRules(),v&&(R=R.filter(function(L){return L}).filter(function(L){var B=L.validateTrigger;if(!B)return!0;var F=bC(B);return F.includes(v)})),!(I&&v)){D.next=10;break}return D.next=8,new Promise(function(L){setTimeout(L,I)});case 8:if(a.validatePromise===C){D.next=10;break}return D.abrupt("return",[]);case 10:return _=Ak(f,m,R,d,O,N),_.catch(function(L){return L}).then(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gi;if(a.validatePromise===C){var B;a.validatePromise=null;var F=[],H=[];(B=L.forEach)===null||B===void 0||B.call(L,function(k){var q=k.rule.warningOnly,V=k.errors,W=V===void 0?Gi:V;q?H.push.apply(H,st(W)):F.push.apply(F,st(W))}),a.errors=F,a.warnings=H,a.triggerMetaEvent(),a.reRender()}}),D.abrupt("return",_);case 13:case"end":return D.stop()}},w)})));return S||(a.validatePromise=C,a.dirty=!0,a.errors=Gi,a.warnings=Gi,a.triggerMetaEvent(),a.reRender()),C}),te(St(a),"isFieldValidating",function(){return!!a.validatePromise}),te(St(a),"isFieldTouched",function(){return a.touched}),te(St(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(Nd),m=f.getInitialValue;return m(a.getNamePath())!==void 0}),te(St(a),"getErrors",function(){return a.errors}),te(St(a),"getWarnings",function(){return a.warnings}),te(St(a),"isListField",function(){return a.props.isListField}),te(St(a),"isList",function(){return a.props.isList}),te(St(a),"isPreserve",function(){return a.props.preserve}),te(St(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),te(St(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return le(le({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var m=ro(d);return m.length!==1||!u.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),te(St(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,m=a.getNamePath();return _i(d||f(!0),m)}),te(St(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.props,m=f.name,h=f.trigger,v=f.validateTrigger,y=f.getValueFromEvent,S=f.normalize,C=f.valuePropName,w=f.getValueProps,E=f.fieldContext,$=v!==void 0?v:E.validateTrigger,O=a.getNamePath(),N=E.getInternalHooks,I=E.getFieldsValue,R=N(Nd),_=R.dispatch,z=a.getValue(),D=w||function(k){return te({},C,k)},L=d[h],B=m!==void 0?D(z):{},F=le(le({},d),B);F[h]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,q=arguments.length,V=new Array(q),W=0;W<q;W++)V[W]=arguments[W];y?k=y.apply(void 0,V):k=jk.apply(void 0,[C].concat(V)),S&&(k=S(k,z,I(!0))),_({type:"updateValue",namePath:O,value:k}),L&&L.apply(void 0,V)};var H=bC($||[]);return H.forEach(function(k){var q=F[k];F[k]=function(){q&&q.apply(void 0,arguments);var V=a.props.rules;V&&V.length&&_({type:"validateField",namePath:O,triggerName:k})}}),F}),r.fieldContext){var o=r.fieldContext.getInternalHooks,l=o(Nd),s=l.initEntityValue;s(St(a))}return a}return da(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,l=a.fieldContext;if(this.mounted=!0,l){var s=l.getInternalHooks,d=s(Nd),f=d.registerField;this.cancelRegisterFunc=f(this)}o===!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 a=this.state.resetCount,o=this.props.children,l=this.getOnlyChild(o),s=l.child,d=l.isFunction,f;return d?f=s:u.isValidElement(s)?f=u.cloneElement(s,this.getControlled(s.props)):(Yr(!s,"`children` of Field is not validate ReactElement."),f=s),u.createElement(u.Fragment,{key:a},f)}}]),n})(u.Component);te(oE,"contextType",kd);te(oE,"defaultProps",{trigger:"onChange",valuePropName:"value"});function iE(e){var t=e.name,n=ln(e,kk),r=u.useContext(kd),a=u.useContext(Fh),o=t!==void 0?wa(t):void 0,l="keep";return n.isListField||(l="_".concat((o||[]).join("_"))),u.createElement(oE,Je({key:l,name:o,isListField:!!a},n,{fieldContext:r}))}function HO(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,l=e.isListField,s=u.useContext(kd),d=u.useContext(Fh),f=u.useRef({keys:[],id:0}),m=f.current,h=u.useMemo(function(){var C=wa(s.prefixName)||[];return[].concat(st(C),st(wa(t)))},[s.prefixName,t]),v=u.useMemo(function(){return le(le({},s),{},{prefixName:h})},[s,h]),y=u.useMemo(function(){return{getKey:function(w){var E=h.length,$=w[E];return[m.keys[$],w.slice(E+1)]}}},[h]);if(typeof r!="function")return Yr(!1,"Form.List only accepts function as children."),null;var S=function(w,E,$){var O=$.source;return O==="internal"?!1:w!==E};return u.createElement(Fh.Provider,{value:y},u.createElement(kd.Provider,{value:v},u.createElement(iE,{name:[],shouldUpdate:S,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:l??!!d},function(C,w){var E=C.value,$=E===void 0?[]:E,O=C.onChange,N=s.getFieldValue,I=function(){var D=N(h||[]);return D||[]},R={add:function(D,L){var B=I();L>=0&&L<=B.length?(m.keys=[].concat(st(m.keys.slice(0,L)),[m.id],st(m.keys.slice(L))),O([].concat(st(B.slice(0,L)),[D],st(B.slice(L))))):(m.keys=[].concat(st(m.keys),[m.id]),O([].concat(st(B),[D]))),m.id+=1},remove:function(D){var L=I(),B=new Set(Array.isArray(D)?D:[D]);B.size<=0||(m.keys=m.keys.filter(function(F,H){return!B.has(H)}),O(L.filter(function(F,H){return!B.has(H)})))},move:function(D,L){if(D!==L){var B=I();D<0||D>=B.length||L<0||L>=B.length||(m.keys=o$(m.keys,D,L),O(o$(B,D,L)))}}},_=$||[];return Array.isArray(_)||(_=[]),r(_.map(function(z,D){var L=m.keys[D];return L===void 0&&(m.keys[D]=m.id,L=m.keys[D],m.id+=1),{name:D,key:L,isListField:!0}}),R,w)})))}function Lk(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(l,s){l.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[s]=d,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var VO="__@field_split__";function D2(e){return e.map(function(t){return"".concat(Vt(t),":").concat(t)}).join(VO)}var bm=(function(){function e(){ua(this,e),te(this,"kvs",new Map)}return da(e,[{key:"set",value:function(n,r){this.kvs.set(D2(n),r)}},{key:"get",value:function(n){return this.kvs.get(D2(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(D2(n))}},{key:"map",value:function(n){return st(this.kvs.entries()).map(function(r){var a=Re(r,2),o=a[0],l=a[1],s=o.split(VO);return n({key:s.map(function(d){var f=d.match(/^([^:]*):(.*)$/),m=Re(f,3),h=m[1],v=m[2];return h==="number"?Number(v):v}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),Bk=["name"],Fk=da(function e(t){var n=this;ua(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(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}}),te(this,"getInternalHooks",function(r){return r===Nd?(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}):(Yr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(r){n.subscribable=r}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,l=Dm(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var d=s.key;l=$l(l,d,_i(r,d))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),te(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new bm;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),te(this,"getInitialValue",function(r){var a=_i(n.initialValues,r);return r.length?Dm(a):a}),te(this,"setCallbacks",function(r){n.callbacks=r}),te(this,"setValidateMessages",function(r){n.validateMessages=r}),te(this,"setPreserve",function(r){n.preserve=r}),te(this,"watchList",[]),te(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),te(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(a,o,r)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){}),te(this,"updateStore",function(r){n.store=r}),te(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),te(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new bm;return n.getFieldEntities(r).forEach(function(o){var l=o.getNamePath();a.set(l,o)}),a}),te(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var l=wa(o);return a.get(l)||{INVALIDATE_NAME_PATH:wa(o)}})}),te(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,l,s;if(r===!0||Array.isArray(r)?(o=r,l=a):r&&Vt(r)==="object"&&(s=r.strict,l=r.filter),o===!0&&!l)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),f=[];return d.forEach(function(m){var h,v,y="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(s){var S,C;if((S=(C=m).isList)!==null&&S!==void 0&&S.call(C))return}else if(!o&&(h=(v=m).isListField)!==null&&h!==void 0&&h.call(v))return;if(!l)f.push(y);else{var w="getMeta"in m?m.getMeta():null;l(w)&&f.push(y)}}),a$(n.store,f.map(wa))}),te(this,"getFieldValue",function(r){n.warningUnhooked();var a=wa(r);return _i(n.store,a)}),te(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,l){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:wa(r[l]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(r){n.warningUnhooked();var a=wa(r),o=n.getFieldsError([a])[0];return o.errors}),te(this,"getFieldWarning",function(r){n.warningUnhooked();var a=wa(r),o=n.getFieldsError([a])[0];return o.warnings}),te(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a[0],s=a[1],d,f=!1;a.length===0?d=null:a.length===1?Array.isArray(l)?(d=l.map(wa),f=!1):(d=null,f=l):(d=l.map(wa),f=s);var m=n.getFieldEntities(!0),h=function(w){return w.isFieldTouched()};if(!d)return f?m.every(function(C){return h(C)||C.isList()}):m.some(h);var v=new bm;d.forEach(function(C){v.set(C,[])}),m.forEach(function(C){var w=C.getNamePath();d.forEach(function(E){E.every(function($,O){return w[O]===$})&&v.update(E,function($){return[].concat(st($),[C])})})});var y=function(w){return w.some(h)},S=v.map(function(C){var w=C.value;return w});return f?S.every(y):S.some(y)}),te(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),te(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(l){return l.isFieldValidating()});var o=r.map(wa);return a.some(function(l){var s=l.getNamePath();return Bm(o,s)&&l.isFieldValidating()})}),te(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),te(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new bm,o=n.getFieldEntities(!0);o.forEach(function(d){var f=d.props.initialValue,m=d.getNamePath();if(f!==void 0){var h=a.get(m)||new Set;h.add({entity:d,value:f}),a.set(m,h)}});var l=function(f){f.forEach(function(m){var h=m.props.initialValue;if(h!==void 0){var v=m.getNamePath(),y=n.getInitialValue(v);if(y!==void 0)Yr(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var S=a.get(v);if(S&&S.size>1)Yr(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var C=n.getFieldValue(v),w=m.isListField();!w&&(!r.skipExist||C===void 0)&&n.updateStore($l(n.store,v,st(S)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(d){var f=a.get(d);if(f){var m;(m=s).push.apply(m,st(st(f).map(function(h){return h.entity})))}})):s=o,l(s)}),te(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Dm(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(wa);o.forEach(function(l){var s=n.getInitialValue(l);n.updateStore($l(n.store,l,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),te(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(l){var s=l.name,d=ln(l,Bk),f=wa(s);o.push(f),"value"in d&&n.updateStore($l(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:l})}),n.notifyWatch(o)}),te(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var l=o.getNamePath(),s=o.getMeta(),d=le(le({},s),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),te(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),l=_i(n.store,o);l===void 0&&n.updateStore($l(n.store,o,a))}}),te(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),te(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,s){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(s)&&(!l||d.length>1)){var f=l?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==f&&n.fieldEntities.every(function(h){return!FO(h.getNamePath(),a)})){var m=n.store;n.updateStore($l(m,a,f,!0)),n.notifyObservers(m,[a],{type:"remove"}),n.triggerDependenciesUpdate(m,a)}}n.notifyWatch([a])}}),te(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var l=r.namePath,s=r.triggerName;n.validateFields([l],{triggerName:s});break}}}),te(this,"notifyObservers",function(r,a,o){if(n.subscribable){var l=le(le({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var d=s.onStoreChange;d(r,a,l)})}else n.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(st(o))}),o}),te(this,"updateValue",function(r,a){var o=wa(r),l=n.store;n.updateStore($l(n.store,o,a)),n.notifyObservers(l,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(l,o),d=n.callbacks.onValuesChange;if(d){var f=a$(n.store,[o]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(st(s)))}),te(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Dm(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),te(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),te(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],l=new bm;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(m){var h=wa(m);l.update(h,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(d),v})})});var s=function d(f){var m=l.get(f)||new Set;m.forEach(function(h){if(!a.has(h)){a.add(h);var v=h.getNamePath();h.isFieldDirty()&&v.length&&(o.push(v),d(v))}})};return s(r),o}),te(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var l=n.getFields();if(a){var s=new bm;a.forEach(function(f){var m=f.name,h=f.errors;s.set(m,h)}),l.forEach(function(f){f.errors=s.get(f.name)||f.errors})}var d=l.filter(function(f){var m=f.name;return Bm(r,m)});d.length&&o(d,l)}}),te(this,"validateFields",function(r,a){n.warningUnhooked();var o,l;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,l=a):l=r;var s=!!o,d=s?o.map(wa):[],f=[],m=String(Date.now()),h=new Set,v=l||{},y=v.recursive,S=v.dirty;n.getFieldEntities(!0).forEach(function($){if(s||d.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(S&&!$.isFieldDirty())){var O=$.getNamePath();if(h.add(O.join(m)),!s||Bm(d,O,y)){var N=$.validateRules(le({validateMessages:le(le({},BO),n.validateMessages)},l));f.push(N.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(I){var R,_=[],z=[];return(R=I.forEach)===null||R===void 0||R.call(I,function(D){var L=D.rule.warningOnly,B=D.errors;L?z.push.apply(z,st(B)):_.push.apply(_,st(B))}),_.length?Promise.reject({name:O,errors:_,warnings:z}):{name:O,errors:_,warnings:z}}))}}});var C=Lk(f);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var O=$.map(function(N){var I=N.name;return I});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,$)});var w=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function($){var O=$.filter(function(N){return N&&N.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:O,outOfDate:n.lastValidatePromise!==C})});w.catch(function($){return $});var E=d.filter(function($){return h.has($.join(m))});return n.triggerOnFieldsChange(E),w}),te(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function lE(e){var t=u.useRef(),n=u.useState({}),r=Re(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},l=new Fk(o);t.current=l.getForm()}return[t.current]}var RC=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),KO=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,l=u.useContext(RC),s=u.useRef({});return u.createElement(RC.Provider,{value:le(le({},l),{},{validateMessages:le(le({},l.validateMessages),n),triggerFormChange:function(f,m){r&&r(f,{changedFields:m,forms:s.current}),l.triggerFormChange(f,m)},triggerFormFinish:function(f,m){a&&a(f,{values:m,forms:s.current}),l.triggerFormFinish(f,m)},registerForm:function(f,m){f&&(s.current=le(le({},s.current),{},te({},f,m))),l.registerForm(f,m)},unregisterForm:function(f){var m=le({},s.current);delete m[f],s.current=m,l.unregisterForm(f)}})},o)},Hk=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Vk=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,l=t.form,s=t.preserve,d=t.children,f=t.component,m=f===void 0?"form":f,h=t.validateMessages,v=t.validateTrigger,y=v===void 0?"onChange":v,S=t.onValuesChange,C=t.onFieldsChange,w=t.onFinish,E=t.onFinishFailed,$=t.clearOnDestroy,O=ln(t,Hk),N=u.useRef(null),I=u.useContext(RC),R=lE(l),_=Re(R,1),z=_[0],D=z.getInternalHooks(Nd),L=D.useSubscribe,B=D.setInitialValues,F=D.setCallbacks,H=D.setValidateMessages,k=D.setPreserve,q=D.destroyForm;u.useImperativeHandle(n,function(){return le(le({},z),{},{nativeElement:N.current})}),u.useEffect(function(){return I.registerForm(r,z),function(){I.unregisterForm(r)}},[I,z,r]),H(le(le({},I.validateMessages),h)),F({onValuesChange:S,onFieldsChange:function(Y){if(I.triggerFormChange(r,Y),C){for(var ne=arguments.length,se=new Array(ne>1?ne-1:0),de=1;de<ne;de++)se[de-1]=arguments[de];C.apply(void 0,[Y].concat(se))}},onFinish:function(Y){I.triggerFormFinish(r,Y),w&&w(Y)},onFinishFailed:E}),k(s);var V=u.useRef(null);B(a,!V.current),V.current||(V.current=!0),u.useEffect(function(){return function(){return q($)}},[]);var W,G=typeof d=="function";if(G){var X=z.getFieldsValue(!0);W=d(X,z)}else W=d;L(!G);var P=u.useRef();u.useEffect(function(){Dk(P.current||[],o||[])||z.setFields(o||[]),P.current=o},[o,z]);var K=u.useMemo(function(){return le(le({},z),{},{validateTrigger:y})},[z,y]),J=u.createElement(Fh.Provider,{value:null},u.createElement(kd.Provider,{value:K},W));return m===!1?J:u.createElement(m,Je({},O,{ref:N,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),z.submit()},onReset:function(Y){var ne;Y.preventDefault(),z.resetFields(),(ne=O.onReset)===null||ne===void 0||ne.call(O,Y)}}),J)};function i$(e){try{return JSON.stringify(e)}catch{return Math.random()}}function WO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],o=a===void 0?{}:a,l=ek(o)?{form:o}:o,s=l.form,d=u.useState(),f=Re(d,2),m=f[0],h=f[1],v=u.useMemo(function(){return i$(m)},[m]),y=u.useRef(v);y.current=v;var S=u.useContext(kd),C=s||S,w=C&&C._init,E=wa(r),$=u.useRef(E);return $.current=E,u.useEffect(function(){if(w){var O=C.getFieldsValue,N=C.getInternalHooks,I=N(Nd),R=I.registerWatch,_=function(B,F){var H=l.preserve?F:B;return typeof r=="function"?r(H):_i(H,$.current)},z=R(function(L,B){var F=_(L,B),H=i$(F);y.current!==H&&(y.current=H,h(F))}),D=_(O(),O(!0));return m!==D&&h(D),z}},[w]),m}var Kk=u.forwardRef(Vk),sp=Kk;sp.FormProvider=KO;sp.Field=iE;sp.List=HO;sp.useForm=lE;sp.useWatch=WO;const rc=u.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),UO=u.createContext(null),qO=e=>{const t=Qr(e,["prefixCls"]);return u.createElement(KO,Object.assign({},t))},sE=u.createContext({prefixCls:""}),Go=u.createContext({}),Wk=e=>{let{children:t,status:n,override:r}=e;const a=u.useContext(Go),o=u.useMemo(()=>{const l=Object.assign({},a);return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,a]);return u.createElement(Go.Provider,{value:o},t)},GO=u.createContext(void 0),Zm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=Se.createElement(Wk,{override:!0,status:!0},a)),t&&(a=Se.createElement(aD,null,a)),a};function Jm(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function l$(e){const{closable:t,closeIcon:n}=e||{};return Se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function s$(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(a=>{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const Uk={};function cE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Uk;const r=l$(e),a=l$(t),o=typeof r!="boolean"?!!r?.disabled:!1,l=Se.useMemo(()=>Object.assign({closeIcon:Se.createElement(ic,null)},n),[n]),s=Se.useMemo(()=>r===!1?!1:r?s$(l,a,r):a===!1?!1:a?s$(l,a):l.closable?l:!1,[r,a,l]);return Se.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:d}=l,{closeIcon:f}=s;let m=f;if(m!=null){d&&(m=d(f));const h=Pa(s,!0);Object.keys(h).length&&(m=Se.isValidElement(m)?Se.cloneElement(m,h):Se.createElement("span",Object.assign({},h),m))}return[!0,m,o]},[s,l])}var XO=function(t){if(ao()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},qk=function(t,n){if(!XO(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function NC(e,t){return!Array.isArray(e)&&t!==void 0?qk(e,t):XO(e)}const Gk=()=>ao()&&window.document.documentElement,xb=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,l=ue({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ue({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),d=u.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return u.createElement("span",{className:ue(t,l,s,n),style:Object.assign(Object.assign({},d),r)})},Xk=new zn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sb=e=>({height:e,lineHeight:ie(e)}),Fm=e=>Object.assign({width:e},Sb(e)),Yk=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Xk,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),j2=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Sb(e)),Qk=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Fm(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Fm(a)),[`${t}${t}-sm`]:Object.assign({},Fm(o))}},Zk=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},j2(t,s)),[`${r}-lg`]:Object.assign({},j2(a,s)),[`${r}-sm`]:Object.assign({},j2(o,s))}},c$=e=>Object.assign({width:e},Sb(e)),Jk=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},c$(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},c$(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},k2=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},L2=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Sb(e)),eL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},L2(r,s))},k2(e,r,n)),{[`${n}-lg`]:Object.assign({},L2(a,s))}),k2(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},L2(o,s))}),k2(e,o,`${n}-sm`))},tL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:l,skeletonImageCls:s,controlHeight:d,controlHeightLG:f,controlHeightSM:m,gradientFromColor:h,padding:v,marginSM:y,borderRadius:S,titleHeight:C,blockRadius:w,paragraphLiHeight:E,controlHeightXS:$,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:h},Fm(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Fm(f)),[`${n}-sm`]:Object.assign({},Fm(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:h,borderRadius:w,[`+ ${a}`]:{marginBlockStart:m}},[a]:{padding:0,"> li":{width:"100%",height:E,listStyle:"none",background:h,borderRadius:w,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},eL(e)),Qk(e)),Zk(e)),Jk(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${o}, ${l}, ${s} `]:Object.assign({},Yk(e))}}},nL=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},cp=nr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=In(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[tL(r)]},nL,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),rL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:l="default"}=e,{getPrefixCls:s}=u.useContext(Dt),d=s("skeleton",t),[f,m,h]=cp(d),v=Qr(e,["prefixCls","className"]),y=ue(d,`${d}-element`,{[`${d}-active`]:a},n,r,m,h);return f(u.createElement("div",{className:y},u.createElement(xb,Object.assign({prefixCls:`${d}-avatar`,shape:o,size:l},v))))},aL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:l="default"}=e,{getPrefixCls:s}=u.useContext(Dt),d=s("skeleton",t),[f,m,h]=cp(d),v=Qr(e,["prefixCls"]),y=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:o},n,r,m,h);return f(u.createElement("div",{className:y},u.createElement(xb,Object.assign({prefixCls:`${d}-button`,size:l},v))))},oL="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",iL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:l}=u.useContext(Dt),s=l("skeleton",t),[d,f,m]=cp(s),h=ue(s,`${s}-element`,{[`${s}-active`]:o},n,r,f,m);return d(u.createElement("div",{className:h},u.createElement("div",{className:ue(`${s}-image`,n),style:a},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:oL,className:`${s}-image-path`})))))},lL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:l="default"}=e,{getPrefixCls:s}=u.useContext(Dt),d=s("skeleton",t),[f,m,h]=cp(d),v=Qr(e,["prefixCls"]),y=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:o},n,r,m,h);return f(u.createElement("div",{className:y},u.createElement(xb,Object.assign({prefixCls:`${d}-input`,size:l},v))))},sL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:l}=e,{getPrefixCls:s}=u.useContext(Dt),d=s("skeleton",t),[f,m,h]=cp(d),v=ue(d,`${d}-element`,{[`${d}-active`]:o},m,n,r,h);return f(u.createElement("div",{className:v},u.createElement("div",{className:ue(`${d}-image`,n),style:a},l)))},cL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},uL=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=st(new Array(a)).map((l,s)=>u.createElement("li",{key:s,style:{width:cL(s,e)}}));return u.createElement("ul",{className:ue(t,n),style:r},o)},dL=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return u.createElement("h3",{className:ue(t,n),style:Object.assign({width:r},a)})};function B2(e){return e&&typeof e=="object"?e:{}}function fL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function mL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function pL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const hu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:l,avatar:s=!1,title:d=!0,paragraph:f=!0,active:m,round:h}=e,{getPrefixCls:v,direction:y,skeleton:S}=u.useContext(Dt),C=v("skeleton",t),[w,E,$]=cp(C);if(n||!("loading"in e)){const O=!!s,N=!!d,I=!!f;let R;if(O){const D=Object.assign(Object.assign({prefixCls:`${C}-avatar`},fL(N,I)),B2(s));R=u.createElement("div",{className:`${C}-header`},u.createElement(xb,Object.assign({},D)))}let _;if(N||I){let D;if(N){const B=Object.assign(Object.assign({prefixCls:`${C}-title`},mL(O,I)),B2(d));D=u.createElement(dL,Object.assign({},B))}let L;if(I){const B=Object.assign(Object.assign({prefixCls:`${C}-paragraph`},pL(O,N)),B2(f));L=u.createElement(uL,Object.assign({},B))}_=u.createElement("div",{className:`${C}-content`},D,L)}const z=ue(C,{[`${C}-with-avatar`]:O,[`${C}-active`]:m,[`${C}-rtl`]:y==="rtl",[`${C}-round`]:h},S?.className,r,a,E,$);return w(u.createElement("div",{className:z,style:Object.assign(Object.assign({},S?.style),o)},R,_))}return l??null};hu.Button=aL;hu.Avatar=rL;hu.Input=lL;hu.Image=iL;hu.Node=sL;function u$(){}const gL=u.createContext({add:u$,remove:u$});function YO(e){const t=u.useContext(gL),n=u.useRef();return vr(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const d$=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(rv);return Se.createElement(Un,Object.assign({onClick:n},e),t)},f$=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=u.useContext(rv);return Se.createElement(Un,Object.assign({},Kw(n),{loading:e,onClick:a},t),r)};function QO(e,t){return Se.createElement("span",{className:`${e}-close-x`},t||Se.createElement(ic,{className:`${e}-close-icon`}))}const ZO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:l,okButtonProps:s,cancelButtonProps:d,footer:f}=e,[m]=Cs("Modal",I7()),h=t||m?.okText,v=r||m?.cancelText,y={confirmLoading:a,okButtonProps:s,cancelButtonProps:d,okTextLocale:h,cancelTextLocale:v,okType:n,onOk:o,onCancel:l},S=Se.useMemo(()=>y,st(Object.values(y)));let C;return typeof f=="function"||typeof f>"u"?(C=Se.createElement(Se.Fragment,null,Se.createElement(d$,null),Se.createElement(f$,null)),typeof f=="function"&&(C=f(C,{OkBtn:f$,CancelBtn:d$})),C=Se.createElement(IO,{value:S},C)):C=f,Se.createElement(Dw,{disabled:!1},C)};function m$(e){return{position:e,inset:0}}const hL=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({},m$("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},m$("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:PD(e)}]},vL=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:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},cr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(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:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},bs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(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:`${ie(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},yL=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},JO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return In(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()})},eM=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),tM=nr("Modal",e=>{const t=JO(e);return[vL(t),yL(t),hL(t),nv(t,"zoom")]},eM,{unitless:{titleLineHeight:!0}});var bL=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let TC;const xL=e=>{TC={x:e.pageX,y:e.pageY},setTimeout(()=>{TC=null},100)};Gk()&&document.documentElement.addEventListener("click",xL,!0);const nM=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=u.useContext(Dt),l=j=>{const{onCancel:Y}=e;Y?.(j)},s=j=>{const{onOk:Y}=e;Y?.(j)},{prefixCls:d,className:f,rootClassName:m,open:h,wrapClassName:v,centered:y,getContainer:S,focusTriggerAfterClose:C=!0,style:w,visible:E,width:$=520,footer:O,classNames:N,styles:I,children:R,loading:_}=e,z=bL(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),D=r("modal",d),L=r(),B=Ba(D),[F,H,k]=tM(D,B),q=ue(v,{[`${D}-centered`]:!!y,[`${D}-wrap-rtl`]:a==="rtl"}),V=O!==null&&!_?u.createElement(ZO,Object.assign({},e,{onOk:s,onCancel:l})):null,[W,G,X]=cE(Jm(e),Jm(o),{closable:!0,closeIcon:u.createElement(ic,{className:`${D}-close-icon`}),closeIconRender:j=>QO(D,j)}),P=YO(`.${D}-content`),[K,J]=lp("Modal",z.zIndex);return F(u.createElement(Zm,{form:!0,space:!0},u.createElement(Qh.Provider,{value:J},u.createElement(kO,Object.assign({width:$},z,{zIndex:K,getContainer:S===void 0?n:S,prefixCls:D,rootClassName:ue(H,m,k,B),footer:V,visible:h??E,mousePosition:(t=z.mousePosition)!==null&&t!==void 0?t:TC,onClose:l,closable:W&&{disabled:X,closeIcon:G},closeIcon:G,focusTriggerAfterClose:C,transitionName:xs(L,"zoom",e.transitionName),maskTransitionName:xs(L,"fade",e.maskTransitionName),className:ue(H,f,o?.className),style:Object.assign(Object.assign({},o?.style),w),classNames:Object.assign(Object.assign(Object.assign({},o?.classNames),N),{wrapper:ue(q,N?.wrapper)}),styles:Object.assign(Object.assign({},o?.styles),I),panelRef:P}),_?u.createElement(hu,{active:!0,title:!1,paragraph:{rows:4},className:`${D}-body-skeleton`}):R))))},SL=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:l,modalTitleHeight:s,fontHeight:d,confirmBodyPadding:f}=e,m=`${t}-confirm`;return{[m]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:Object.assign({},nc()),[`&${t} ${t}-body`]:{padding:f},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${ie(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${m}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${m}-content`]:{color:e.colorText,fontSize:o,lineHeight:l},[`${m}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${m}-error ${m}-body > ${e.iconCls}`]:{color:e.colorError},[`${m}-warning ${m}-body > ${e.iconCls}, ${m}-confirm ${m}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${m}-info ${m}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${m}-success ${m}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},CL=op(["Modal","confirm"],e=>{const t=JO(e);return[SL(t)]},eM,{order:-1e3});var wL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function rM(e){const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:o,type:l,okCancel:s,footer:d,locale:f}=e,m=wL(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let h=n;if(!n&&n!==null)switch(l){case"info":h=u.createElement(Lw,null);break;case"success":h=u.createElement(Yh,null);break;case"error":h=u.createElement(Vd,null);break;default:h=u.createElement(Kd,null)}const v=s??l==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[S]=Cs("Modal"),C=f||S,w=r||(v?C?.okText:C?.justOkText),E=a||C?.cancelText,$=Object.assign({autoFocusButton:y,cancelTextLocale:E,okTextLocale:w,mergedOkCancel:v},m),O=u.useMemo(()=>$,st(Object.values($))),N=u.createElement(u.Fragment,null,u.createElement(F3,null),u.createElement(H3,null)),I=e.title!==void 0&&e.title!==null,R=`${o}-body`;return u.createElement("div",{className:`${o}-body-wrapper`},u.createElement("div",{className:ue(R,{[`${R}-has-title`]:I})},h,u.createElement("div",{className:`${o}-paragraph`},I&&u.createElement("span",{className:`${o}-title`},e.title),u.createElement("div",{className:`${o}-content`},e.content))),d===void 0||typeof d=="function"?u.createElement(IO,{value:O},u.createElement("div",{className:`${o}-btns`},typeof d=="function"?d(N,{OkBtn:H3,CancelBtn:F3}):N)):d,u.createElement(CL,{prefixCls:t}))}const EL=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:l,getContainer:s,maskStyle:d,direction:f,prefixCls:m,wrapClassName:h,rootPrefixCls:v,bodyStyle:y,closable:S=!1,closeIcon:C,modalRender:w,focusTriggerAfterClose:E,onConfirm:$,styles:O}=e,N=`${m}-confirm`,I=e.width||416,R=e.style||{},_=e.mask===void 0?!0:e.mask,z=e.maskClosable===void 0?!1:e.maskClosable,D=ue(N,`${N}-${e.type}`,{[`${N}-rtl`]:f==="rtl"},e.className),[,L]=lo(),B=u.useMemo(()=>n!==void 0?n:L.zIndexPopupBase+pO,[n,L]);return u.createElement(nM,{prefixCls:m,className:D,wrapClassName:ue({[`${N}-centered`]:!!e.centered},h),onCancel:()=>{t?.({triggerCancel:!0}),$?.(!1)},open:a,title:"",footer:null,transitionName:xs(v||"","zoom",e.transitionName),maskTransitionName:xs(v||"","fade",e.maskTransitionName),mask:_,maskClosable:z,style:R,styles:Object.assign({body:y,mask:d},O),width:I,zIndex:B,afterClose:r,keyboard:o,centered:l,getContainer:s,closable:S,closeIcon:C,modalRender:w,focusTriggerAfterClose:E},u.createElement(rM,Object.assign({},e,{confirmPrefixCls:N})))},aM=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return u.createElement(rl,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},u.createElement(EL,Object.assign({},e)))},Td=[];let oM="";function iM(){return oM}const $L=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,l=I7(),s=u.useContext(Dt),d=iM()||s.getPrefixCls(),f=r||`${d}-modal`;let m=a;return m===!1&&(m=void 0),Se.createElement(aM,Object.assign({},e,{rootPrefixCls:d,prefixCls:f,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:l,getContainer:m}))};function ov(e){const t=oO(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var f,m=arguments.length,h=new Array(m),v=0;v<m;v++)h[v]=arguments[v];if(h.some(C=>C?.triggerCancel)){var S;(f=e.onCancel)===null||f===void 0||(S=f).call.apply(S,[e,()=>{}].concat(st(h.slice(1))))}for(let C=0;C<Td.length;C++)if(Td[C]===s){Td.splice(C,1);break}SO(n)}function l(f){clearTimeout(a),a=setTimeout(()=>{const m=t.getPrefixCls(void 0,iM()),h=t.getIconPrefixCls(),v=t.getTheme(),y=Se.createElement($L,Object.assign({},f));Vw(Se.createElement(rl,{prefixCls:m,iconPrefixCls:h,theme:v},t.holderRender?t.holderRender(y):y),n)})}function s(){for(var f=arguments.length,m=new Array(f),h=0;h<f;h++)m[h]=arguments[h];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,m)}}),r.visible&&delete r.visible,l(r)}function d(f){typeof f=="function"?r=f(r):r=Object.assign(Object.assign({},r),f),l(r)}return l(r),Td.push(s),{destroy:s,update:d}}function lM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function sM(e){return Object.assign(Object.assign({},e),{type:"info"})}function cM(e){return Object.assign(Object.assign({},e),{type:"success"})}function uM(e){return Object.assign(Object.assign({},e),{type:"error"})}function dM(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function OL(e){let{rootPrefixCls:t}=e;oM=t}var ML=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const RL=(e,t)=>{var n,{afterClose:r,config:a}=e,o=ML(e,["afterClose","config"]);const[l,s]=u.useState(!0),[d,f]=u.useState(a),{direction:m,getPrefixCls:h}=u.useContext(Dt),v=h("modal"),y=h(),S=()=>{var $;r(),($=d.afterClose)===null||$===void 0||$.call(d)},C=function(){var $;s(!1);for(var O=arguments.length,N=new Array(O),I=0;I<O;I++)N[I]=arguments[I];if(N.some(z=>z?.triggerCancel)){var _;($=d.onCancel)===null||$===void 0||(_=$).call.apply(_,[d,()=>{}].concat(st(N.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:C,update:$=>{f(O=>Object.assign(Object.assign({},O),$))}}));const w=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[E]=Cs("Modal",ys.Modal);return u.createElement(aM,Object.assign({prefixCls:v,rootPrefixCls:y},d,{close:C,open:l,afterClose:S,okText:d.okText||(w?E?.okText:E?.justOkText),direction:d.direction||m,cancelText:d.cancelText||E?.cancelText},o))},NL=u.forwardRef(RL);let p$=0;const TL=u.memo(u.forwardRef((e,t)=>{const[n,r]=kz();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function IL(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(st(t).forEach(l=>{l()}),n([]))},[t]);const r=u.useCallback(o=>function(s){var d;p$+=1;const f=u.createRef();let m;const h=new Promise(w=>{m=w});let v=!1,y;const S=u.createElement(NL,{key:`modal-${p$}`,config:o(s),ref:f,afterClose:()=>{y?.()},isSilent:()=>v,onConfirm:w=>{m(w)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(S),y&&Td.push(y),{destroy:()=>{function w(){var E;(E=f.current)===null||E===void 0||E.destroy()}f.current?w():n(E=>[].concat(st(E),[w]))},update:w=>{function E(){var $;($=f.current)===null||$===void 0||$.update(w)}f.current?E():n($=>[].concat(st($),[E]))},then:w=>(v=!0,h.then(w))}},[]);return[u.useMemo(()=>({info:r(sM),success:r(cM),error:r(uM),warning:r(lM),confirm:r(dM)}),[]),u.createElement(TL,{key:"modal-holder",ref:e})]}const _L=Se.createContext({});function fM(e){return t=>u.createElement(rl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const mM=(e,t,n,r)=>fM(o=>{const{prefixCls:l,style:s}=o,d=u.useRef(null),[f,m]=u.useState(0),[h,v]=u.useState(0),[y,S]=kr(!1,{value:o.open}),{getPrefixCls:C}=u.useContext(Dt),w=C(t||"select",l);u.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(I=>{const R=I[0].target;m(R.offsetHeight+8),v(R.offsetWidth)}),N=setInterval(()=>{var I;const R=n?`.${n(w)}`:`.${w}-dropdown`,_=(I=d.current)===null||I===void 0?void 0:I.querySelector(R);_&&(clearInterval(N),O.observe(_))},10);return()=>{clearInterval(N),O.disconnect()}}},[]);let E=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:y,visible:y,getPopupContainer:()=>d.current});r&&(E=r(E));const $={paddingBottom:f,position:"relative",minWidth:h};return u.createElement("div",{ref:d,style:$},u.createElement(e,Object.assign({},E)))}),uE=(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?.substr(0,4))});var Cb=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,l=t.onMouseDown,s=t.onClick,d=typeof r=="function"?r(a):r;return u.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),l?.(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},d!==void 0?d:u.createElement("span",{className:ue(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},o))},AL=function(t,n,r,a,o){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=Se.useMemo(function(){if(Vt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),m=Se.useMemo(function(){return!!(!l&&a&&(r.length||s)&&!(d==="combobox"&&s===""))},[a,l,r.length,s,d]);return{allowClear:m,clearIcon:Se.createElement(Cb,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},pM=u.createContext(null);function PL(){return u.useContext(pM)}function zL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=Re(t,2),r=n[0],a=n[1],o=u.useRef(null),l=function(){window.clearTimeout(o.current)};u.useEffect(function(){return l},[]);var s=function(f,m){l(),o.current=window.setTimeout(function(){a(f),m&&m()},e)};return[r,s,l]}function gM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function DL(e,t,n,r){var a=u.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function o(l){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var d=l.target;d.shadowRoot&&l.composed&&(d=l.composedPath()[0]||d),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function jL(e){return![Pt.ESC,Pt.SHIFT,Pt.BACKSPACE,Pt.TAB,Pt.WIN_KEY,Pt.ALT,Pt.META,Pt.WIN_KEY_RIGHT,Pt.CTRL,Pt.SEMICOLON,Pt.EQUALS,Pt.CAPS_LOCK,Pt.CONTEXT_MENU,Pt.F1,Pt.F2,Pt.F3,Pt.F4,Pt.F5,Pt.F6,Pt.F7,Pt.F8,Pt.F9,Pt.F10,Pt.F11,Pt.F12].includes(e)}var kL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xm=void 0;function LL(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,l=e.responsive,s=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,m=e.className,h=e.style,v=e.children,y=e.display,S=e.order,C=e.component,w=C===void 0?"div":C,E=ln(e,kL),$=l&&!y;function O(z){d(f,z)}u.useEffect(function(){return function(){O(null)}},[]);var N=o&&a!==xm?o(a,{index:S}):v,I;r||(I={opacity:$?0:1,height:$?0:xm,overflowY:$?"hidden":xm,order:l?S:xm,pointerEvents:$?"none":xm,position:$?"absolute":xm});var R={};$&&(R["aria-hidden"]=!0);var _=u.createElement(w,Je({className:ue(!r&&n,m),style:le(le({},I),h)},R,E,{ref:t}),N);return l&&(_=u.createElement(qo,{onResize:function(D){var L=D.offsetWidth;O(L)},disabled:s},_)),_}var Sh=u.forwardRef(LL);Sh.displayName="Item";function BL(e){if(typeof MessageChannel>"u")sr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FL(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],BL(function(){tc.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Jg(e,t){var n=u.useState(t),r=Re(n,2),a=r[0],o=r[1],l=vr(function(s){e(function(){o(s)})});return[a,l]}var Ly=Se.createContext(null),HL=["component"],VL=["className"],KL=["className"],WL=function(t,n){var r=u.useContext(Ly);if(!r){var a=t.component,o=a===void 0?"div":a,l=ln(t,HL);return u.createElement(o,Je({},l,{ref:n}))}var s=r.className,d=ln(r,VL),f=t.className,m=ln(t,KL);return u.createElement(Ly.Provider,{value:null},u.createElement(Sh,Je({ref:n,className:ue(s,f)},d,m)))},hM=u.forwardRef(WL);hM.displayName="RawItem";var UL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vM="responsive",yM="invalidate";function qL(e){return"+ ".concat(e.length," ...")}function GL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,l=e.renderItem,s=e.renderRawItem,d=e.itemKey,f=e.itemWidth,m=f===void 0?10:f,h=e.ssr,v=e.style,y=e.className,S=e.maxCount,C=e.renderRest,w=e.renderRawRest,E=e.suffix,$=e.component,O=$===void 0?"div":$,N=e.itemComponent,I=e.onVisibleChange,R=ln(e,UL),_=h==="full",z=FL(),D=Jg(z,null),L=Re(D,2),B=L[0],F=L[1],H=B||0,k=Jg(z,new Map),q=Re(k,2),V=q[0],W=q[1],G=Jg(z,0),X=Re(G,2),P=X[0],K=X[1],J=Jg(z,0),j=Re(J,2),Y=j[0],ne=j[1],se=Jg(z,0),de=Re(se,2),pe=de[0],Ce=de[1],he=u.useState(null),me=Re(he,2),be=me[0],fe=me[1],ge=u.useState(null),Oe=Re(ge,2),Ne=Oe[0],je=Oe[1],Te=u.useMemo(function(){return Ne===null&&_?Number.MAX_SAFE_INTEGER:Ne||0},[Ne,B]),Ue=u.useState(!1),qe=Re(Ue,2),ze=qe[0],Ve=qe[1],Be="".concat(r,"-item"),De=Math.max(P,Y),ye=S===vM,oe=o.length&&ye,we=S===yM,Fe=oe||typeof S=="number"&&o.length>S,xe=u.useMemo(function(){var It=o;return oe?B===null&&_?It=o:It=o.slice(0,Math.min(o.length,H/m)):typeof S=="number"&&(It=o.slice(0,S)),It},[o,m,B,S,oe]),_e=u.useMemo(function(){return oe?o.slice(Te+1):o.slice(xe.length)},[o,xe,oe,Te]),rt=u.useCallback(function(It,ve){var Me;return typeof d=="function"?d(It):(Me=d&&It?.[d])!==null&&Me!==void 0?Me:ve},[d]),lt=u.useCallback(l||function(It){return It},[l]);function ut(It,ve,Me){Ne===It&&(ve===void 0||ve===be)||(je(It),Me||(Ve(It<o.length-1),I?.(It)),ve!==void 0&&fe(ve))}function tt(It,ve){F(ve.clientWidth)}function mt(It,ve){W(function(Me){var Xe=new Map(Me);return ve===null?Xe.delete(It):Xe.set(It,ve),Xe})}function at(It,ve){ne(ve),K(Y)}function gt(It,ve){Ce(ve)}function Nt(It){return V.get(rt(xe[It],It))}Ln(function(){if(H&&typeof De=="number"&&xe){var It=pe,ve=xe.length,Me=ve-1;if(!ve){ut(0,null);return}for(var Xe=0;Xe<ve;Xe+=1){var Qe=Nt(Xe);if(_&&(Qe=Qe||0),Qe===void 0){ut(Xe-1,void 0,!0);break}if(It+=Qe,Me===0&&It<=H||Xe===Me-1&&It+Nt(Me)<=H){ut(Me,null);break}else if(It+De>H){ut(Xe-1,It-Qe-pe+Y);break}}E&&Nt(0)+pe>H&&fe(null)}},[H,V,Y,pe,rt,xe]);var tn=ze&&!!_e.length,Wt={};be!==null&&oe&&(Wt={position:"absolute",left:be,top:0});var dn={prefixCls:Be,responsive:oe,component:N,invalidate:we},Qt=s?function(It,ve){var Me=rt(It,ve);return u.createElement(Ly.Provider,{key:Me,value:le(le({},dn),{},{order:ve,item:It,itemKey:Me,registerSize:mt,display:ve<=Te})},s(It,ve))}:function(It,ve){var Me=rt(It,ve);return u.createElement(Sh,Je({},dn,{order:ve,key:Me,item:It,renderItem:lt,itemKey:Me,registerSize:mt,display:ve<=Te}))},nn={order:tn?Te:Number.MAX_SAFE_INTEGER,className:"".concat(Be,"-rest"),registerSize:at,display:tn},Zt=C||qL,Lt=w?u.createElement(Ly.Provider,{value:le(le({},dn),nn)},w(_e)):u.createElement(Sh,Je({},dn,nn),typeof Zt=="function"?Zt(_e):Zt),_t=u.createElement(O,Je({className:ue(!we&&r,y),style:v,ref:t},R),xe.map(Qt),Fe?Lt:null,E&&u.createElement(Sh,Je({},dn,{responsive:ye,responsiveDisabled:!oe,order:Te,className:"".concat(Be,"-suffix"),registerSize:gt,display:!0,style:Wt}),E));return ye?u.createElement(qo,{onResize:tt,disabled:!oe},_t):_t}var gs=u.forwardRef(GL);gs.displayName="Overflow";gs.Item=hM;gs.RESPONSIVE=vM;gs.INVALIDATE=yM;var XL=function(t,n){var r,a=t.prefixCls,o=t.id,l=t.inputElement,s=t.disabled,d=t.tabIndex,f=t.autoFocus,m=t.autoComplete,h=t.editable,v=t.activeDescendantId,y=t.value,S=t.maxLength,C=t.onKeyDown,w=t.onMouseDown,E=t.onChange,$=t.onPaste,O=t.onCompositionStart,N=t.onCompositionEnd,I=t.open,R=t.attrs,_=l||u.createElement("input",null),z=_,D=z.ref,L=z.props,B=L.onKeyDown,F=L.onChange,H=L.onMouseDown,k=L.onCompositionStart,q=L.onCompositionEnd,V=L.style;return"maxLength"in _.props,_=u.cloneElement(_,le(le(le({type:"search"},L),{},{id:o,ref:io(n,D),disabled:s,tabIndex:d,autoComplete:m||"off",autoFocus:f,className:ue("".concat(a,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":I||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":I?v:void 0},R),{},{value:h?y:"",maxLength:S,readOnly:!h,unselectable:h?null:"on",style:le(le({},V),{},{opacity:h?null:0}),onKeyDown:function(G){C(G),B&&B(G)},onMouseDown:function(G){w(G),H&&H(G)},onChange:function(G){E(G),F&&F(G)},onCompositionStart:function(G){O(G),k&&k(G)},onCompositionEnd:function(G){N(G),q&&q(G)},onPaste:$})),_},bM=u.forwardRef(XL);function xM(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var YL=typeof window<"u"&&window.document&&window.document.documentElement,QL=YL;function ZL(e){return e!=null}function JL(e){return!e&&e!==0}function g$(e){return["string","number"].includes(Vt(e))}function SM(e){var t=void 0;return e&&(g$(e.title)?t=e.title.toString():g$(e.label)&&(t=e.label.toString())),t}function eB(e,t){QL?u.useLayoutEffect(e,t):u.useEffect(e,t)}function tB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var h$=function(t){t.preventDefault(),t.stopPropagation()},nB=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,l=t.searchValue,s=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,m=t.disabled,h=t.mode,v=t.showSearch,y=t.autoFocus,S=t.autoComplete,C=t.activeDescendantId,w=t.tabIndex,E=t.removeIcon,$=t.maxTagCount,O=t.maxTagTextLength,N=t.maxTagPlaceholder,I=N===void 0?function(fe){return"+ ".concat(fe.length," ...")}:N,R=t.tagRender,_=t.onToggleOpen,z=t.onRemove,D=t.onInputChange,L=t.onInputPaste,B=t.onInputKeyDown,F=t.onInputMouseDown,H=t.onInputCompositionStart,k=t.onInputCompositionEnd,q=u.useRef(null),V=u.useState(0),W=Re(V,2),G=W[0],X=W[1],P=u.useState(!1),K=Re(P,2),J=K[0],j=K[1],Y="".concat(r,"-selection"),ne=o||h==="multiple"&&s===!1||h==="tags"?l:"",se=h==="tags"||h==="multiple"&&s===!1||v&&(o||J);eB(function(){X(q.current.scrollWidth)},[ne]);var de=function(ge,Oe,Ne,je,Te){return u.createElement("span",{title:SM(ge),className:ue("".concat(Y,"-item"),te({},"".concat(Y,"-item-disabled"),Ne))},u.createElement("span",{className:"".concat(Y,"-item-content")},Oe),je&&u.createElement(Cb,{className:"".concat(Y,"-item-remove"),onMouseDown:h$,onClick:Te,customizeIcon:E},"×"))},pe=function(ge,Oe,Ne,je,Te,Ue){var qe=function(Ve){h$(Ve),_(!o)};return u.createElement("span",{onMouseDown:qe},R({label:Oe,value:ge,disabled:Ne,closable:je,onClose:Te,isMaxTag:!!Ue}))},Ce=function(ge){var Oe=ge.disabled,Ne=ge.label,je=ge.value,Te=!m&&!Oe,Ue=Ne;if(typeof O=="number"&&(typeof Ne=="string"||typeof Ne=="number")){var qe=String(Ue);qe.length>O&&(Ue="".concat(qe.slice(0,O),"..."))}var ze=function(Be){Be&&Be.stopPropagation(),z(ge)};return typeof R=="function"?pe(je,Ue,Oe,Te,ze):de(ge,Ue,Oe,Te,ze)},he=function(ge){var Oe=typeof I=="function"?I(ge):I;return typeof R=="function"?pe(void 0,Oe,!1,!1,void 0,!0):de({title:Oe},Oe,!1)},me=u.createElement("div",{className:"".concat(Y,"-search"),style:{width:G},onFocus:function(){j(!0)},onBlur:function(){j(!1)}},u.createElement(bM,{ref:d,open:o,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:y,autoComplete:S,editable:se,activeDescendantId:C,value:ne,onKeyDown:B,onMouseDown:F,onChange:D,onPaste:L,onCompositionStart:H,onCompositionEnd:k,tabIndex:w,attrs:Pa(t,!0)}),u.createElement("span",{ref:q,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},ne," ")),be=u.createElement(gs,{prefixCls:"".concat(Y,"-overflow"),data:a,renderItem:Ce,renderRest:he,suffix:me,itemKey:tB,maxCount:$});return u.createElement(u.Fragment,null,be,!a.length&&!ne&&u.createElement("span",{className:"".concat(Y,"-placeholder")},f))},rB=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,l=t.disabled,s=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,m=t.mode,h=t.open,v=t.values,y=t.placeholder,S=t.tabIndex,C=t.showSearch,w=t.searchValue,E=t.activeValue,$=t.maxLength,O=t.onInputKeyDown,N=t.onInputMouseDown,I=t.onInputChange,R=t.onInputPaste,_=t.onInputCompositionStart,z=t.onInputCompositionEnd,D=t.title,L=u.useState(!1),B=Re(L,2),F=B[0],H=B[1],k=m==="combobox",q=k||C,V=v[0],W=w||"";k&&E&&!F&&(W=E),u.useEffect(function(){k&&H(!1)},[k,E]);var G=m!=="combobox"&&!h&&!C?!1:!!W,X=D===void 0?SM(V):D,P=u.useMemo(function(){return V?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},y)},[V,G,y,r]);return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(bM,{ref:o,prefixCls:r,id:a,open:h,inputElement:n,disabled:l,autoFocus:s,autoComplete:d,editable:q,activeDescendantId:f,value:W,onKeyDown:O,onMouseDown:N,onChange:function(J){H(!0),I(J)},onPaste:R,onCompositionStart:_,onCompositionEnd:z,tabIndex:S,attrs:Pa(t,!0),maxLength:k?$:void 0})),!k&&V?u.createElement("span",{className:"".concat(r,"-selection-item"),title:X,style:G?{visibility:"hidden"}:void 0},V.label):null,P)},aB=function(t,n){var r=u.useRef(null),a=u.useRef(!1),o=t.prefixCls,l=t.open,s=t.mode,d=t.showSearch,f=t.tokenWithEnter,m=t.disabled,h=t.autoClearSearchValue,v=t.onSearch,y=t.onSearchSubmit,S=t.onToggleOpen,C=t.onInputKeyDown,w=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(G){r.current.focus(G)},blur:function(){r.current.blur()}}});var E=gM(0),$=Re(E,2),O=$[0],N=$[1],I=function(G){var X=G.which;(X===Pt.UP||X===Pt.DOWN)&&G.preventDefault(),C&&C(G),X===Pt.ENTER&&s==="tags"&&!a.current&&!l&&y?.(G.target.value),jL(X)&&S(!0)},R=function(){N(!0)},_=u.useRef(null),z=function(G){v(G,!0,a.current)!==!1&&S(!0)},D=function(){a.current=!0},L=function(G){a.current=!1,s!=="combobox"&&z(G.target.value)},B=function(G){var X=G.target.value;if(f&&_.current&&/[\r\n]/.test(_.current)){var P=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");X=X.replace(P,_.current)}_.current=null,z(X)},F=function(G){var X=G.clipboardData,P=X?.getData("text");_.current=P||""},H=function(G){var X=G.target;if(X!==r.current){var P=document.body.style.msTouchAction!==void 0;P?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(G){var X=O();G.target!==r.current&&!X&&!(s==="combobox"&&m)&&G.preventDefault(),(s!=="combobox"&&(!d||!X)||!l)&&(l&&h!==!1&&v("",!0,!1),S())},q={inputRef:r,onInputKeyDown:I,onInputMouseDown:R,onInputChange:B,onInputPaste:F,onInputCompositionStart:D,onInputCompositionEnd:L},V=s==="multiple"||s==="tags"?u.createElement(nB,Je({},t,q)):u.createElement(rB,Je({},t,q));return u.createElement("div",{ref:w,className:"".concat(o,"-selector"),onClick:H,onMouseDown:k},V)},oB=u.forwardRef(aB);function iB(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},l=o.className,s=o.content,d=a.x,f=d===void 0?0:d,m=a.y,h=m===void 0?0:m,v=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],w=S[0],E=S[1],$=C[0],O=C[1];w===$||!["t","b"].includes(w)?y.top=h:w==="t"?y.top=0:y.bottom=0,E===O||!["l","r"].includes(E)?y.left=f:E==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:v,className:ue("".concat(t,"-arrow"),l),style:y},s)}function lB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?u.createElement(Mo,Je({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var s=l.className;return u.createElement("div",{style:{zIndex:r},className:ue("".concat(t,"-mask"),s)})}):null}var sB=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),cB=u.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,l=e.target,s=e.onVisibleChanged,d=e.open,f=e.keepDom,m=e.fresh,h=e.onClick,v=e.mask,y=e.arrow,S=e.arrowPos,C=e.align,w=e.motion,E=e.maskMotion,$=e.forceRender,O=e.getPopupContainer,N=e.autoDestroy,I=e.portal,R=e.zIndex,_=e.onMouseEnter,z=e.onMouseLeave,D=e.onPointerEnter,L=e.onPointerDownCapture,B=e.ready,F=e.offsetX,H=e.offsetY,k=e.offsetR,q=e.offsetB,V=e.onAlign,W=e.onPrepare,G=e.stretch,X=e.targetWidth,P=e.targetHeight,K=typeof n=="function"?n():n,J=d||f,j=O?.length>0,Y=u.useState(!O||!j),ne=Re(Y,2),se=ne[0],de=ne[1];if(Ln(function(){!se&&j&&l&&de(!0)},[se,j,l]),!se)return null;var pe="auto",Ce={left:"-1000vw",top:"-1000vh",right:pe,bottom:pe};if(B||!d){var he,me=C.points,be=C.dynamicInset||((he=C._experimental)===null||he===void 0?void 0:he.dynamicInset),fe=be&&me[0][1]==="r",ge=be&&me[0][0]==="b";fe?(Ce.right=k,Ce.left=pe):(Ce.left=F,Ce.right=pe),ge?(Ce.bottom=q,Ce.top=pe):(Ce.top=H,Ce.bottom=pe)}var Oe={};return G&&(G.includes("height")&&P?Oe.height=P:G.includes("minHeight")&&P&&(Oe.minHeight=P),G.includes("width")&&X?Oe.width=X:G.includes("minWidth")&&X&&(Oe.minWidth=X)),d||(Oe.pointerEvents="none"),u.createElement(I,{open:$||J,getContainer:O&&function(){return O(l)},autoDestroy:N},u.createElement(lB,{prefixCls:a,open:d,zIndex:R,mask:v,motion:E}),u.createElement(qo,{onResize:V,disabled:!d},function(Ne){return u.createElement(Mo,Je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},w,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(Te){var Ue;w==null||(Ue=w.onVisibleChanged)===null||Ue===void 0||Ue.call(w,Te),s(Te)}}),function(je,Te){var Ue=je.className,qe=je.style,ze=ue(a,Ue,r);return u.createElement("div",{ref:io(Ne,t,Te),className:ze,style:le(le(le(le({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},Ce),Oe),qe),{},{boxSizing:"border-box",zIndex:R},o),onMouseEnter:_,onMouseLeave:z,onPointerEnter:D,onClick:h,onPointerDownCapture:L},y&&u.createElement(iB,{prefixCls:a,arrow:y,arrowPos:S,align:C}),u.createElement(sB,{cache:!d&&!m},K))})}))}),uB=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Il(n),o=u.useCallback(function(s){Th(t,r?r(s):s)},[r]),l=oc(o,Gh(n));return a?u.cloneElement(n,{ref:l}):n}),v$=u.createContext(null);function y$(e){return e?Array.isArray(e)?e:[e]:[]}function dB(e,t,n,r){return u.useMemo(function(){var a=y$(n??t),o=y$(r??t),l=new Set(a),s=new Set(o);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[l,s]},[e,t,n,r])}function fB(){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 mB(e,t,n,r){for(var a=n.points,o=Object.keys(e),l=0;l<o.length;l+=1){var s,d=o[l];if(fB((s=e[d])===null||s===void 0?void 0:s.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function b$(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function iv(e){return e.ownerDocument.defaultView}function IC(e){for(var t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=iv(n).getComputedStyle(n),o=a.overflowX,l=a.overflowY,s=a.overflow;[o,l,s].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Hh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function eh(e){return Hh(parseFloat(e),0)}function x$(e,t){var n=le({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=iv(r).getComputedStyle(r),o=a.overflow,l=a.overflowClipMargin,s=a.borderTopWidth,d=a.borderBottomWidth,f=a.borderLeftWidth,m=a.borderRightWidth,h=r.getBoundingClientRect(),v=r.offsetHeight,y=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,w=eh(s),E=eh(d),$=eh(f),O=eh(m),N=Hh(Math.round(h.width/S*1e3)/1e3),I=Hh(Math.round(h.height/v*1e3)/1e3),R=(S-C-$-O)*N,_=(v-y-w-E)*I,z=w*I,D=E*I,L=$*N,B=O*N,F=0,H=0;if(o==="clip"){var k=eh(l);F=k*N,H=k*I}var q=h.x+L-F,V=h.y+z-H,W=q+h.width+2*F-L-B-R,G=V+h.height+2*H-z-D-_;n.left=Math.max(n.left,q),n.top=Math.max(n.top,V),n.right=Math.min(n.right,W),n.bottom=Math.min(n.bottom,G)}}),n}function S$(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 C$(e,t){var n=t||[],r=Re(n,2),a=r[0],o=r[1];return[S$(e.width,a),S$(e.height,o)]}function w$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sm(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Yc(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function pB(e,t,n,r,a,o,l){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=Re(s,2),f=d[0],m=d[1],h=u.useRef(0),v=u.useMemo(function(){return t?IC(t):[]},[t]),y=u.useRef({}),S=function(){y.current={}};e||S();var C=vr(function(){if(t&&n&&e){let qn=function(ja,Hr){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Io=J.x+ja,Pl=J.y+Hr,sc=Io+ge,al=Pl+fe,_o=Math.max(Io,sa.left),Yt=Math.max(Pl,sa.top),mn=Math.min(sc,sa.right),rr=Math.min(al,sa.bottom);return Math.max(0,(mn-_o)*(rr-Yt))},Oa=function(){Tt=J.y+Xe,Mt=Tt+fe,zt=J.x+Me,jt=zt+ge};var $,O,N,I,R=t,_=R.ownerDocument,z=iv(R),D=z.getComputedStyle(R),L=D.position,B=R.style.left,F=R.style.top,H=R.style.right,k=R.style.bottom,q=R.style.overflow,V=le(le({},a[r]),o),W=_.createElement("div");($=R.parentElement)===null||$===void 0||$.appendChild(W),W.style.left="".concat(R.offsetLeft,"px"),W.style.top="".concat(R.offsetTop,"px"),W.style.position=L,W.style.height="".concat(R.offsetHeight,"px"),W.style.width="".concat(R.offsetWidth,"px"),R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";var G;if(Array.isArray(n))G={x:n[0],y:n[1],width:0,height:0};else{var X,P,K=n.getBoundingClientRect();K.x=(X=K.x)!==null&&X!==void 0?X:K.left,K.y=(P=K.y)!==null&&P!==void 0?P:K.top,G={x:K.x,y:K.y,width:K.width,height:K.height}}var J=R.getBoundingClientRect(),j=z.getComputedStyle(R),Y=j.height,ne=j.width;J.x=(O=J.x)!==null&&O!==void 0?O:J.left,J.y=(N=J.y)!==null&&N!==void 0?N:J.top;var se=_.documentElement,de=se.clientWidth,pe=se.clientHeight,Ce=se.scrollWidth,he=se.scrollHeight,me=se.scrollTop,be=se.scrollLeft,fe=J.height,ge=J.width,Oe=G.height,Ne=G.width,je={left:0,top:0,right:de,bottom:pe},Te={left:-be,top:-me,right:Ce-be,bottom:he-me},Ue=V.htmlRegion,qe="visible",ze="visibleFirst";Ue!=="scroll"&&Ue!==ze&&(Ue=qe);var Ve=Ue===ze,Be=x$(Te,v),De=x$(je,v),ye=Ue===qe?De:Be,oe=Ve?De:ye;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";var we=R.getBoundingClientRect();R.style.left=B,R.style.top=F,R.style.right=H,R.style.bottom=k,R.style.overflow=q,(I=R.parentElement)===null||I===void 0||I.removeChild(W);var Fe=Hh(Math.round(ge/parseFloat(ne)*1e3)/1e3),xe=Hh(Math.round(fe/parseFloat(Y)*1e3)/1e3);if(Fe===0||xe===0||Nh(n)&&!Jh(n))return;var _e=V.offset,rt=V.targetOffset,lt=C$(J,_e),ut=Re(lt,2),tt=ut[0],mt=ut[1],at=C$(G,rt),gt=Re(at,2),Nt=gt[0],tn=gt[1];G.x-=Nt,G.y-=tn;var Wt=V.points||[],dn=Re(Wt,2),Qt=dn[0],nn=dn[1],Zt=w$(nn),Lt=w$(Qt),_t=Sm(G,Zt),It=Sm(J,Lt),ve=le({},V),Me=_t.x-It.x+tt,Xe=_t.y-It.y+mt,Qe=qn(Me,Xe),ke=qn(Me,Xe,De),Ae=Sm(G,["t","l"]),He=Sm(J,["t","l"]),Ye=Sm(G,["b","r"]),$t=Sm(J,["b","r"]),xt=V.overflow||{},pt=xt.adjustX,ct=xt.adjustY,dt=xt.shiftX,ot=xt.shiftY,nt=function(Hr){return typeof Hr=="boolean"?Hr:Hr>=0},Tt,Mt,zt,jt;Oa();var rn=nt(ct),yt=Lt[0]===Zt[0];if(rn&&Lt[0]==="t"&&(Mt>oe.bottom||y.current.bt)){var Ot=Xe;yt?Ot-=fe-Oe:Ot=Ae.y-$t.y-mt;var Ft=qn(Me,Ot),Gt=qn(Me,Ot,De);Ft>Qe||Ft===Qe&&(!Ve||Gt>=ke)?(y.current.bt=!0,Xe=Ot,mt=-mt,ve.points=[Yc(Lt,0),Yc(Zt,0)]):y.current.bt=!1}if(rn&&Lt[0]==="b"&&(Tt<oe.top||y.current.tb)){var Jt=Xe;yt?Jt+=fe-Oe:Jt=Ye.y-He.y-mt;var un=qn(Me,Jt),On=qn(Me,Jt,De);un>Qe||un===Qe&&(!Ve||On>=ke)?(y.current.tb=!0,Xe=Jt,mt=-mt,ve.points=[Yc(Lt,0),Yc(Zt,0)]):y.current.tb=!1}var Qn=nt(pt),Xt=Lt[1]===Zt[1];if(Qn&&Lt[1]==="l"&&(jt>oe.right||y.current.rl)){var an=Me;Xt?an-=ge-Ne:an=Ae.x-$t.x-tt;var Bt=qn(an,Xe),gr=qn(an,Xe,De);Bt>Qe||Bt===Qe&&(!Ve||gr>=ke)?(y.current.rl=!0,Me=an,tt=-tt,ve.points=[Yc(Lt,1),Yc(Zt,1)]):y.current.rl=!1}if(Qn&&Lt[1]==="r"&&(zt<oe.left||y.current.lr)){var Lr=Me;Xt?Lr+=ge-Ne:Lr=Ye.x-He.x-tt;var so=qn(Lr,Xe),Da=qn(Lr,Xe,De);so>Qe||so===Qe&&(!Ve||Da>=ke)?(y.current.lr=!0,Me=Lr,tt=-tt,ve.points=[Yc(Lt,1),Yc(Zt,1)]):y.current.lr=!1}Oa();var fr=dt===!0?0:dt;typeof fr=="number"&&(zt<De.left&&(Me-=zt-De.left-tt,G.x+Ne<De.left+fr&&(Me+=G.x-De.left+Ne-fr)),jt>De.right&&(Me-=jt-De.right-tt,G.x>De.right-fr&&(Me+=G.x-De.right+fr)));var Ea=ot===!0?0:ot;typeof Ea=="number"&&(Tt<De.top&&(Xe-=Tt-De.top-mt,G.y+Oe<De.top+Ea&&(Xe+=G.y-De.top+Oe-Ea)),Mt>De.bottom&&(Xe-=Mt-De.bottom-mt,G.y>De.bottom-Ea&&(Xe+=G.y-De.bottom+Ea)));var fa=J.x+Me,Br=fa+ge,xn=J.y+Xe,kt=xn+fe,fn=G.x,on=fn+Ne,Mn=G.y,_n=Mn+Oe,Ir=Math.max(fa,fn),yr=Math.min(Br,on),ia=(Ir+yr)/2,la=ia-fa,wr=Math.max(xn,Mn),Fr=Math.min(kt,_n),$a=(wr+Fr)/2,Sn=$a-xn;l?.(t,ve);var gn=we.right-J.x-(Me+J.width),_r=we.bottom-J.y-(Xe+J.height);Fe===1&&(Me=Math.round(Me),gn=Math.round(gn)),xe===1&&(Xe=Math.round(Xe),_r=Math.round(_r));var ga={ready:!0,offsetX:Me/Fe,offsetY:Xe/xe,offsetR:gn/Fe,offsetB:_r/xe,arrowX:la/Fe,arrowY:Sn/xe,scaleX:Fe,scaleY:xe,align:ve};m(ga)}}),w=function(){h.current+=1;var O=h.current;Promise.resolve().then(function(){h.current===O&&C()})},E=function(){m(function(O){return le(le({},O),{},{ready:!1})})};return Ln(E,[r]),Ln(function(){e||E()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,w]}function gB(e,t,n,r,a){Ln(function(){if(e&&t&&n){let h=function(){r(),a()};var o=t,l=n,s=IC(o),d=IC(l),f=iv(l),m=new Set([f].concat(st(s),st(d)));return m.forEach(function(v){v.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),r(),function(){m.forEach(function(v){v.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,n])}function hB(e,t,n,r,a,o,l,s){var d=u.useRef(e);d.current=e;var f=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!a||o)){var h=function(){f.current=!1},v=function(w){var E;d.current&&!l(((E=w.composedPath)===null||E===void 0||(E=E.call(w))===null||E===void 0?void 0:E[0])||w.target)&&!f.current&&s(!1)},y=iv(r);y.addEventListener("pointerdown",h,!0),y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0);var S=Py(n);return S&&(S.addEventListener("mousedown",v,!0),S.addEventListener("contextmenu",v,!0)),function(){y.removeEventListener("pointerdown",h,!0),y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0),S&&(S.removeEventListener("mousedown",v,!0),S.removeEventListener("contextmenu",v,!0))}}},[t,n,r,a,o]);function m(){f.current=!0}return m}var vB=["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 yB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bb,t=u.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,l=n.children,s=n.action,d=s===void 0?"hover":s,f=n.showAction,m=n.hideAction,h=n.popupVisible,v=n.defaultPopupVisible,y=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,w=n.mouseLeaveDelay,E=w===void 0?.1:w,$=n.focusDelay,O=n.blurDelay,N=n.mask,I=n.maskClosable,R=I===void 0?!0:I,_=n.getPopupContainer,z=n.forceRender,D=n.autoDestroy,L=n.destroyPopupOnHide,B=n.popup,F=n.popupClassName,H=n.popupStyle,k=n.popupPlacement,q=n.builtinPlacements,V=q===void 0?{}:q,W=n.popupAlign,G=n.zIndex,X=n.stretch,P=n.getPopupClassNameFromAlign,K=n.fresh,J=n.alignPoint,j=n.onPopupClick,Y=n.onPopupAlign,ne=n.arrow,se=n.popupMotion,de=n.maskMotion,pe=n.popupTransitionName,Ce=n.popupAnimation,he=n.maskTransitionName,me=n.maskAnimation,be=n.className,fe=n.getTriggerDOMNode,ge=ln(n,vB),Oe=D||L||!1,Ne=u.useState(!1),je=Re(Ne,2),Te=je[0],Ue=je[1];Ln(function(){Ue(uE())},[]);var qe=u.useRef({}),ze=u.useContext(v$),Ve=u.useMemo(function(){return{registerSubPopup:function(mn,rr){qe.current[mn]=rr,ze?.registerSubPopup(mn,rr)}}},[ze]),Be=zO(),De=u.useState(null),ye=Re(De,2),oe=ye[0],we=ye[1],Fe=u.useRef(null),xe=vr(function(Yt){Fe.current=Yt,Nh(Yt)&&oe!==Yt&&we(Yt),ze?.registerSubPopup(Be,Yt)}),_e=u.useState(null),rt=Re(_e,2),lt=rt[0],ut=rt[1],tt=u.useRef(null),mt=vr(function(Yt){Nh(Yt)&&lt!==Yt&&(ut(Yt),tt.current=Yt)}),at=u.Children.only(l),gt=at?.props||{},Nt={},tn=vr(function(Yt){var mn,rr,Zr=lt;return Zr?.contains(Yt)||((mn=Py(Zr))===null||mn===void 0?void 0:mn.host)===Yt||Yt===Zr||oe?.contains(Yt)||((rr=Py(oe))===null||rr===void 0?void 0:rr.host)===Yt||Yt===oe||Object.values(qe.current).some(function(Mr){return Mr?.contains(Yt)||Yt===Mr})}),Wt=b$(o,se,Ce,pe),dn=b$(o,de,me,he),Qt=u.useState(v||!1),nn=Re(Qt,2),Zt=nn[0],Lt=nn[1],_t=h??Zt,It=vr(function(Yt){h===void 0&&Lt(Yt)});Ln(function(){Lt(h||!1)},[h]);var ve=u.useRef(_t);ve.current=_t;var Me=u.useRef([]);Me.current=[];var Xe=vr(function(Yt){var mn;It(Yt),((mn=Me.current[Me.current.length-1])!==null&&mn!==void 0?mn:_t)!==Yt&&(Me.current.push(Yt),y?.(Yt))}),Qe=u.useRef(),ke=function(){clearTimeout(Qe.current)},Ae=function(mn){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ke(),rr===0?Xe(mn):Qe.current=setTimeout(function(){Xe(mn)},rr*1e3)};u.useEffect(function(){return ke},[]);var He=u.useState(!1),Ye=Re(He,2),$t=Ye[0],xt=Ye[1];Ln(function(Yt){(!Yt||_t)&&xt(!0)},[_t]);var pt=u.useState(null),ct=Re(pt,2),dt=ct[0],ot=ct[1],nt=u.useState(null),Tt=Re(nt,2),Mt=Tt[0],zt=Tt[1],jt=function(mn){zt([mn.clientX,mn.clientY])},rn=pB(_t,oe,J&&Mt!==null?Mt:lt,k,V,W,Y),yt=Re(rn,11),Ot=yt[0],Ft=yt[1],Gt=yt[2],Jt=yt[3],un=yt[4],On=yt[5],Qn=yt[6],Xt=yt[7],an=yt[8],Bt=yt[9],gr=yt[10],Lr=dB(Te,d,f,m),so=Re(Lr,2),Da=so[0],fr=so[1],Ea=Da.has("click"),fa=fr.has("click")||fr.has("contextMenu"),Br=vr(function(){$t||gr()}),xn=function(){ve.current&&J&&fa&&Ae(!1)};gB(_t,lt,oe,Br,xn),Ln(function(){Br()},[Mt,k]),Ln(function(){_t&&!(V!=null&&V[k])&&Br()},[JSON.stringify(W)]);var kt=u.useMemo(function(){var Yt=mB(V,o,Bt,J);return ue(Yt,P?.(Bt))},[Bt,P,V,o,J]);u.useImperativeHandle(r,function(){return{nativeElement:tt.current,popupElement:Fe.current,forceAlign:Br}});var fn=u.useState(0),on=Re(fn,2),Mn=on[0],_n=on[1],Ir=u.useState(0),yr=Re(Ir,2),ia=yr[0],la=yr[1],wr=function(){if(X&&lt){var mn=lt.getBoundingClientRect();_n(mn.width),la(mn.height)}},Fr=function(){wr(),Br()},$a=function(mn){xt(!1),gr(),S?.(mn)},Sn=function(){return new Promise(function(mn){wr(),ot(function(){return mn})})};Ln(function(){dt&&(gr(),dt(),ot(null))},[dt]);function gn(Yt,mn,rr,Zr){Nt[Yt]=function(Mr){var ws;Zr?.(Mr),Ae(mn,rr);for(var ur=arguments.length,dr=new Array(ur>1?ur-1:0),Es=1;Es<ur;Es++)dr[Es-1]=arguments[Es];(ws=gt[Yt])===null||ws===void 0||ws.call.apply(ws,[gt,Mr].concat(dr))}}(Ea||fa)&&(Nt.onClick=function(Yt){var mn;ve.current&&fa?Ae(!1):!ve.current&&Ea&&(jt(Yt),Ae(!0));for(var rr=arguments.length,Zr=new Array(rr>1?rr-1:0),Mr=1;Mr<rr;Mr++)Zr[Mr-1]=arguments[Mr];(mn=gt.onClick)===null||mn===void 0||mn.call.apply(mn,[gt,Yt].concat(Zr))});var _r=hB(_t,fa,lt,oe,N,R,tn,Ae),ga=Da.has("hover"),qn=fr.has("hover"),Oa,ja;ga&&(gn("onMouseEnter",!0,C,function(Yt){jt(Yt)}),gn("onPointerEnter",!0,C,function(Yt){jt(Yt)}),Oa=function(mn){(_t||$t)&&oe!==null&&oe!==void 0&&oe.contains(mn.target)&&Ae(!0,C)},J&&(Nt.onMouseMove=function(Yt){var mn;(mn=gt.onMouseMove)===null||mn===void 0||mn.call(gt,Yt)})),qn&&(gn("onMouseLeave",!1,E),gn("onPointerLeave",!1,E),ja=function(){Ae(!1,E)}),Da.has("focus")&&gn("onFocus",!0,$),fr.has("focus")&&gn("onBlur",!1,O),Da.has("contextMenu")&&(Nt.onContextMenu=function(Yt){var mn;ve.current&&fr.has("contextMenu")?Ae(!1):(jt(Yt),Ae(!0)),Yt.preventDefault();for(var rr=arguments.length,Zr=new Array(rr>1?rr-1:0),Mr=1;Mr<rr;Mr++)Zr[Mr-1]=arguments[Mr];(mn=gt.onContextMenu)===null||mn===void 0||mn.call.apply(mn,[gt,Yt].concat(Zr))}),be&&(Nt.className=ue(gt.className,be));var Hr=u.useRef(!1);Hr.current||(Hr.current=z||_t||$t);var sa=le(le({},gt),Nt),Io={},Pl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Pl.forEach(function(Yt){ge[Yt]&&(Io[Yt]=function(){for(var mn,rr=arguments.length,Zr=new Array(rr),Mr=0;Mr<rr;Mr++)Zr[Mr]=arguments[Mr];(mn=sa[Yt])===null||mn===void 0||mn.call.apply(mn,[sa].concat(Zr)),ge[Yt].apply(ge,Zr)})});var sc=u.cloneElement(at,le(le({},sa),Io)),al={x:On,y:Qn},_o=ne?le({},ne!==!0?ne:{}):null;return u.createElement(u.Fragment,null,u.createElement(qo,{disabled:!_t,ref:mt,onResize:Fr},u.createElement(uB,{getTriggerDOMNode:fe},sc)),Hr.current&&u.createElement(v$.Provider,{value:Ve},u.createElement(cB,{portal:e,ref:xe,prefixCls:o,popup:B,className:ue(F,kt),style:H,target:lt,onMouseEnter:Oa,onMouseLeave:ja,onPointerEnter:Oa,zIndex:G,open:_t,keepDom:$t,fresh:K,onClick:j,onPointerDownCapture:_r,mask:N,motion:Wt,maskMotion:dn,onVisibleChanged:$a,onPrepare:Sn,forceRender:z,autoDestroy:Oe,getPopupContainer:_,align:Bt,arrow:_o,arrowPos:al,ready:Ot,offsetX:Ft,offsetY:Gt,offsetR:Jt,offsetB:un,onAlign:Br,stretch:X,targetWidth:Mn/Xt,targetHeight:ia/an})))});return t}const wb=yB(bb);var bB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xB=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"}}},SB=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,l=t.popupElement,s=t.animation,d=t.transitionName,f=t.dropdownStyle,m=t.dropdownClassName,h=t.direction,v=h===void 0?"ltr":h,y=t.placement,S=t.builtinPlacements,C=t.dropdownMatchSelectWidth,w=t.dropdownRender,E=t.dropdownAlign,$=t.getPopupContainer,O=t.empty,N=t.getTriggerDOMNode,I=t.onPopupVisibleChange,R=t.onPopupMouseEnter,_=ln(t,bB),z="".concat(r,"-dropdown"),D=l;w&&(D=w(l));var L=u.useMemo(function(){return S||xB(C)},[S,C]),B=s?"".concat(z,"-").concat(s):d,F=typeof C=="number",H=u.useMemo(function(){return F?null:C===!1?"minWidth":"width"},[C,F]),k=f;F&&(k=le(le({},k),{},{width:C}));var q=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var W;return(W=q.current)===null||W===void 0?void 0:W.popupElement}}}),u.createElement(wb,Je({},_,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:y||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:z,popupTransitionName:B,popup:u.createElement("div",{onMouseEnter:R},D),ref:q,stretch:H,popupAlign:E,popupVisible:a,getPopupContainer:$,popupClassName:ue(m,te({},"".concat(z,"-empty"),O)),popupStyle:k,getTriggerDOMNode:N,onPopupVisibleChange:I}),o)},CB=u.forwardRef(SB);function E$(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 _C(e){return typeof e<"u"&&!Number.isNaN(e)}function CM(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,l=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:a||"value",options:o||"options",groupLabel:l||s}}function wB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=CM(n,!1),l=o.label,s=o.value,d=o.options,f=o.groupLabel;function m(h,v){Array.isArray(h)&&h.forEach(function(y){if(v||!(d in y)){var S=y[s];a.push({key:E$(y,a.length),groupOption:v,data:y,label:y[l],value:S})}else{var C=y[f];C===void 0&&r&&(C=y.label),a.push({key:E$(y,a.length),group:!0,data:y,label:C}),m(y[d],!0)}})}return m(e,!1),a}function AC(e){var t=le({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Yr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var EB=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(d,f){var m=O7(f),h=m[0],v=m.slice(1);if(!h)return[d];var y=d.split(h);return a=a||y.length>1,y.reduce(function(S,C){return[].concat(st(S),st(s(C,v)))},[]).filter(Boolean)},l=o(t,n);return a?typeof r<"u"?l.slice(0,r):l:null},dE=u.createContext(null);function $B(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,l=a.value;return["number","string"].includes(Vt(o))?o:l}).join(", ")),n.length>r?", ...":null)}var OB=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],MB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],PC=function(t){return t==="tags"||t==="multiple"},RB=u.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,l=e.showSearch,s=e.tagRender,d=e.direction,f=e.omitDomProps,m=e.displayValues,h=e.onDisplayValuesChange,v=e.emptyOptions,y=e.notFoundContent,S=y===void 0?"Not Found":y,C=e.onClear,w=e.mode,E=e.disabled,$=e.loading,O=e.getInputElement,N=e.getRawInputElement,I=e.open,R=e.defaultOpen,_=e.onDropdownVisibleChange,z=e.activeValue,D=e.onActiveValueChange,L=e.activeDescendantId,B=e.searchValue,F=e.autoClearSearchValue,H=e.onSearch,k=e.onSearchSplit,q=e.tokenSeparators,V=e.allowClear,W=e.suffixIcon,G=e.clearIcon,X=e.OptionList,P=e.animation,K=e.transitionName,J=e.dropdownStyle,j=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,ne=e.dropdownRender,se=e.dropdownAlign,de=e.placement,pe=e.builtinPlacements,Ce=e.getPopupContainer,he=e.showAction,me=he===void 0?[]:he,be=e.onFocus,fe=e.onBlur,ge=e.onKeyUp,Oe=e.onKeyDown,Ne=e.onMouseDown,je=ln(e,OB),Te=PC(w),Ue=(l!==void 0?l:Te)||w==="combobox",qe=le({},je);MB.forEach(function(xn){delete qe[xn]}),f?.forEach(function(xn){delete qe[xn]});var ze=u.useState(!1),Ve=Re(ze,2),Be=Ve[0],De=Ve[1];u.useEffect(function(){De(uE())},[]);var ye=u.useRef(null),oe=u.useRef(null),we=u.useRef(null),Fe=u.useRef(null),xe=u.useRef(null),_e=u.useRef(!1),rt=zL(),lt=Re(rt,3),ut=lt[0],tt=lt[1],mt=lt[2];u.useImperativeHandle(t,function(){var xn,kt;return{focus:(xn=Fe.current)===null||xn===void 0?void 0:xn.focus,blur:(kt=Fe.current)===null||kt===void 0?void 0:kt.blur,scrollTo:function(on){var Mn;return(Mn=xe.current)===null||Mn===void 0?void 0:Mn.scrollTo(on)},nativeElement:ye.current||oe.current}});var at=u.useMemo(function(){var xn;if(w!=="combobox")return B;var kt=(xn=m[0])===null||xn===void 0?void 0:xn.value;return typeof kt=="string"||typeof kt=="number"?String(kt):""},[B,w,m]),gt=w==="combobox"&&typeof O=="function"&&O()||null,Nt=typeof N=="function"&&N(),tn=oc(oe,Nt==null||(n=Nt.props)===null||n===void 0?void 0:n.ref),Wt=u.useState(!1),dn=Re(Wt,2),Qt=dn[0],nn=dn[1];Ln(function(){nn(!0)},[]);var Zt=kr(!1,{defaultValue:R,value:I}),Lt=Re(Zt,2),_t=Lt[0],It=Lt[1],ve=Qt?_t:!1,Me=!S&&v;(E||Me&&ve&&w==="combobox")&&(ve=!1);var Xe=Me?!1:ve,Qe=u.useCallback(function(xn){var kt=xn!==void 0?xn:!ve;E||(It(kt),ve!==kt&&_?.(kt))},[E,ve,It,_]),ke=u.useMemo(function(){return(q||[]).some(function(xn){return[` `,`\r `].includes(xn)})},[q]),Ae=u.useContext(dE)||{},He=Ae.maxCount,Ye=Ae.rawValues,$t=function(kt,fn,on){if(!(Te&&_C(He)&&Ye?.size>=He)){var Mn=!0,_n=kt;D?.(null);var Ir=EB(kt,q,_C(He)?He-Ye.size:void 0),yr=on?null:Ir;return w!=="combobox"&&yr&&(_n="",k?.(yr),Qe(!1),Mn=!1),H&&at!==_n&&H(_n,{source:fn?"typing":"effect"}),Mn}},xt=function(kt){!kt||!kt.trim()||H(kt,{source:"submit"})};u.useEffect(function(){!ve&&!Te&&w!=="combobox"&&$t("",!1,!1)},[ve]),u.useEffect(function(){_t&&E&&It(!1),E&&!_e.current&&tt(!1)},[E]);var pt=gM(),ct=Re(pt,2),dt=ct[0],ot=ct[1],nt=u.useRef(!1),Tt=function(kt){var fn=dt(),on=kt.key,Mn=on==="Enter";if(Mn&&(w!=="combobox"&&kt.preventDefault(),ve||Qe(!0)),ot(!!at),on==="Backspace"&&!fn&&Te&&!at&&m.length){for(var _n=st(m),Ir=null,yr=_n.length-1;yr>=0;yr-=1){var ia=_n[yr];if(!ia.disabled){_n.splice(yr,1),Ir=ia;break}}Ir&&h(_n,{type:"remove",values:[Ir]})}for(var la=arguments.length,wr=new Array(la>1?la-1:0),Fr=1;Fr<la;Fr++)wr[Fr-1]=arguments[Fr];if(ve&&(!Mn||!nt.current)){var $a;($a=xe.current)===null||$a===void 0||$a.onKeyDown.apply($a,[kt].concat(wr))}Mn&&(nt.current=!0),Oe?.apply(void 0,[kt].concat(wr))},Mt=function(kt){for(var fn=arguments.length,on=new Array(fn>1?fn-1:0),Mn=1;Mn<fn;Mn++)on[Mn-1]=arguments[Mn];if(ve){var _n;(_n=xe.current)===null||_n===void 0||_n.onKeyUp.apply(_n,[kt].concat(on))}kt.key==="Enter"&&(nt.current=!1),ge?.apply(void 0,[kt].concat(on))},zt=function(kt){var fn=m.filter(function(on){return on!==kt});h(fn,{type:"remove",values:[kt]})},jt=u.useRef(!1),rn=function(){tt(!0),E||(be&&!jt.current&&be.apply(void 0,arguments),me.includes("focus")&&Qe(!0)),jt.current=!0},yt=function(){_e.current=!0,tt(!1,function(){jt.current=!1,_e.current=!1,Qe(!1)}),!E&&(at&&(w==="tags"?H(at,{source:"submit"}):w==="multiple"&&H("",{source:"blur"})),fe&&fe.apply(void 0,arguments))},Ot=[];u.useEffect(function(){return function(){Ot.forEach(function(xn){return clearTimeout(xn)}),Ot.splice(0,Ot.length)}},[]);var Ft=function(kt){var fn,on=kt.target,Mn=(fn=we.current)===null||fn===void 0?void 0:fn.getPopupElement();if(Mn&&Mn.contains(on)){var _n=setTimeout(function(){var la=Ot.indexOf(_n);if(la!==-1&&Ot.splice(la,1),mt(),!Be&&!Mn.contains(document.activeElement)){var wr;(wr=Fe.current)===null||wr===void 0||wr.focus()}});Ot.push(_n)}for(var Ir=arguments.length,yr=new Array(Ir>1?Ir-1:0),ia=1;ia<Ir;ia++)yr[ia-1]=arguments[ia];Ne?.apply(void 0,[kt].concat(yr))},Gt=u.useState({}),Jt=Re(Gt,2),un=Jt[1];function On(){un({})}var Qn;Nt&&(Qn=function(kt){Qe(kt)}),DL(function(){var xn;return[ye.current,(xn=we.current)===null||xn===void 0?void 0:xn.getPopupElement()]},Xe,Qe,!!Nt);var Xt=u.useMemo(function(){return le(le({},e),{},{notFoundContent:S,open:ve,triggerOpen:Xe,id:r,showSearch:Ue,multiple:Te,toggleOpen:Qe})},[e,S,Xe,ve,r,Ue,Te,Qe]),an=!!W||$,Bt;an&&(Bt=u.createElement(Cb,{className:ue("".concat(a,"-arrow"),te({},"".concat(a,"-arrow-loading"),$)),customizeIcon:W,customizeIconProps:{loading:$,searchValue:at,open:ve,focused:ut,showSearch:Ue}}));var gr=function(){var kt;C?.(),(kt=Fe.current)===null||kt===void 0||kt.focus(),h([],{type:"clear",values:m}),$t("",!1,!1)},Lr=AL(a,gr,m,V,G,E,at,w),so=Lr.allowClear,Da=Lr.clearIcon,fr=u.createElement(X,{ref:xe}),Ea=ue(a,o,te(te(te(te(te(te(te(te(te(te({},"".concat(a,"-focused"),ut),"".concat(a,"-multiple"),Te),"".concat(a,"-single"),!Te),"".concat(a,"-allow-clear"),V),"".concat(a,"-show-arrow"),an),"".concat(a,"-disabled"),E),"".concat(a,"-loading"),$),"".concat(a,"-open"),ve),"".concat(a,"-customize-input"),gt),"".concat(a,"-show-search"),Ue)),fa=u.createElement(CB,{ref:we,disabled:E,prefixCls:a,visible:Xe,popupElement:fr,animation:P,transitionName:K,dropdownStyle:J,dropdownClassName:j,direction:d,dropdownMatchSelectWidth:Y,dropdownRender:ne,dropdownAlign:se,placement:de,builtinPlacements:pe,getPopupContainer:Ce,empty:v,getTriggerDOMNode:function(kt){return oe.current||kt},onPopupVisibleChange:Qn,onPopupMouseEnter:On},Nt?u.cloneElement(Nt,{ref:tn}):u.createElement(oB,Je({},e,{domRef:oe,prefixCls:a,inputElement:gt,ref:Fe,id:r,showSearch:Ue,autoClearSearchValue:F,mode:w,activeDescendantId:L,tagRender:s,values:m,open:ve,onToggleOpen:Qe,activeValue:z,searchValue:at,onSearch:$t,onSearchSubmit:xt,onRemove:zt,tokenWithEnter:ke}))),Br;return Nt?Br=fa:Br=u.createElement("div",Je({className:Ea},qe,{ref:ye,onMouseDown:Ft,onKeyDown:Tt,onKeyUp:Mt,onFocus:rn,onBlur:yt}),u.createElement($B,{visible:ut&&!ve,values:m}),fa,Bt,so&&Da),u.createElement(pM.Provider,{value:Xt},Br)}),fE=function(){return null};fE.isSelectOptGroup=!0;var mE=function(){return null};mE.isSelectOption=!0;var wM=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,o=e.children,l=e.prefixCls,s=e.onInnerResize,d=e.innerProps,f=e.rtl,m=e.extra,h={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(h={height:n,position:"relative",overflow:"hidden"},v=le(le({},v),{},te(te(te(te(te({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:h},u.createElement(qo,{onResize:function(S){var C=S.offsetHeight;C&&s&&s()}},u.createElement("div",Je({style:v,className:ue(te({},"".concat(l,"-holder-inner"),l)),ref:t},d),o,m)))});wM.displayName="Filler";function NB(e){var t=e.children,n=e.setRef,r=u.useCallback(function(a){n(a)},[]);return u.cloneElement(t,{ref:r})}function TB(e,t,n,r,a,o,l,s){var d=s.getKey;return e.slice(t,n+1).map(function(f,m){var h=t+m,v=l(f,h,{style:{width:r},offsetX:a}),y=d(f);return u.createElement(NB,{key:y,setRef:function(C){return o(f,C)}},v)})}function IB(e,t,n){var r=e.length,a=t.length,o,l;if(r===0&&a===0)return null;r<a?(o=e,l=t):(o=t,l=e);var s={__EMPTY_ITEM__:!0};function d(S){return S!==void 0?n(S):s}for(var f=null,m=Math.abs(r-a)!==1,h=0;h<l.length;h+=1){var v=d(o[h]),y=d(l[h]);if(v!==y){f=h,m=m||v!==d(l[h+1]);break}}return f===null?null:{index:f,multiple:m}}function _B(e,t,n){var r=u.useState(e),a=Re(r,2),o=a[0],l=a[1],s=u.useState(null),d=Re(s,2),f=d[0],m=d[1];return u.useEffect(function(){var h=IB(o||[],e||[],t);h?.index!==void 0&&m(e[h.index]),l(e)},[e]),[f]}var $$=(typeof navigator>"u"?"undefined":Vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const EM=(function(e,t,n,r){var a=u.useRef(!1),o=u.useRef(null);function l(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=u.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(d,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=d?f<0&&s.current.left||f>0&&s.current.right:f<0&&s.current.top||f>0&&s.current.bottom;return m&&h?(clearTimeout(o.current),a.current=!1):(!h||a.current)&&l(),!a.current&&h}});function AB(e,t,n,r,a,o,l){var s=u.useRef(0),d=u.useRef(null),f=u.useRef(null),m=u.useRef(!1),h=EM(t,n,r,a);function v($,O){if(sr.cancel(d.current),!h(!1,O)){var N=$;if(!N._virtualHandled)N._virtualHandled=!0;else return;s.current+=O,f.current=O,$$||N.preventDefault(),d.current=sr(function(){var I=m.current?10:1;l(s.current*I,!1),s.current=0})}}function y($,O){l(O,!0),$$||$.preventDefault()}var S=u.useRef(null),C=u.useRef(null);function w($){if(e){sr.cancel(C.current),C.current=sr(function(){S.current=null},2);var O=$.deltaX,N=$.deltaY,I=$.shiftKey,R=O,_=N;(S.current==="sx"||!S.current&&I&&N&&!O)&&(R=N,_=0,S.current="sx");var z=Math.abs(R),D=Math.abs(_);S.current===null&&(S.current=o&&z>D?"x":"y"),S.current==="y"?v($,_):y($,R)}}function E($){e&&(m.current=$.detail===f.current)}return[w,E]}function PB(e,t,n,r){var a=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Re(a,2),l=o[0],s=o[1],d=function(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=l.get(m),y=l.get(h);if(v===void 0||y===void 0)for(var S=e.length,C=s.length;C<S;C+=1){var w,E=e[C],$=t(E);l.set($,C);var O=(w=n.get($))!==null&&w!==void 0?w:r;if(s[C]=(s[C-1]||0)+O,$===m&&(v=C),$===h&&(y=C),v!==void 0&&y!==void 0)break}return{top:s[v-1]||0,bottom:s[y]}};return d}var zB=(function(){function e(){ua(this,e),te(this,"maps",void 0),te(this,"id",0),te(this,"diffRecords",new Map),this.maps=Object.create(null)}return da(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 O$(e){var t=parseFloat(e);return isNaN(t)?0:t}function DB(e,t,n){var r=u.useState(0),a=Re(r,2),o=a[0],l=a[1],s=u.useRef(new Map),d=u.useRef(new zB),f=u.useRef(0);function m(){f.current+=1}function h(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var S=function(){var E=!1;s.current.forEach(function($,O){if($&&$.offsetParent){var N=$.offsetHeight,I=getComputedStyle($),R=I.marginTop,_=I.marginBottom,z=O$(R),D=O$(_),L=N+z+D;d.current.get(O)!==L&&(d.current.set(O,L),E=!0)}}),E&&l(function($){return $+1})};if(y)S();else{f.current+=1;var C=f.current;Promise.resolve().then(function(){C===f.current&&S()})}}function v(y,S){var C=e(y);s.current.get(C),S?(s.current.set(C,S),h()):s.current.delete(C)}return u.useEffect(function(){return m},[]),[v,h,d.current,o]}var M$=14/15;function jB(e,t,n){var r=u.useRef(!1),a=u.useRef(0),o=u.useRef(0),l=u.useRef(null),s=u.useRef(null),d,f=function(y){if(r.current){var S=Math.ceil(y.touches[0].pageX),C=Math.ceil(y.touches[0].pageY),w=a.current-S,E=o.current-C,$=Math.abs(w)>Math.abs(E);$?a.current=S:o.current=C;var O=n($,$?w:E,!1,y);O&&y.preventDefault(),clearInterval(s.current),O&&(s.current=setInterval(function(){$?w*=M$:E*=M$;var N=Math.floor($?w:E);(!n($,N,!0)||Math.abs(N)<=.1)&&clearInterval(s.current)},16))}},m=function(){r.current=!1,d()},h=function(y){d(),y.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(y.touches[0].pageX),o.current=Math.ceil(y.touches[0].pageY),l.current=y.target,l.current.addEventListener("touchmove",f,{passive:!1}),l.current.addEventListener("touchend",m,{passive:!0}))};d=function(){l.current&&(l.current.removeEventListener("touchmove",f),l.current.removeEventListener("touchend",m))},Ln(function(){return e&&t.current.addEventListener("touchstart",h,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",h),d(),clearInterval(s.current)}},[e])}function R$(e){return Math.floor(Math.pow(e,.5))}function zC(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function kB(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,l,s=function(){sr.cancel(o)},d=function v(){s(),o=sr(function(){n(l),v()})},f=function(y){if(!(y.target.draggable||y.button!==0)){var S=y;S._virtualHandled||(S._virtualHandled=!0,a=!0)}},m=function(){a=!1,s()},h=function(y){if(a){var S=zC(y,!1),C=r.getBoundingClientRect(),w=C.top,E=C.bottom;if(S<=w){var $=w-S;l=-R$($),d()}else if(S>=E){var O=S-E;l=R$(O),d()}else s()}};return r.addEventListener("mousedown",f),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",h),function(){r.removeEventListener("mousedown",f),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",h),s()}}},[e])}var LB=10;function BB(e,t,n,r,a,o,l,s){var d=u.useRef(),f=u.useState(null),m=Re(f,2),h=m[0],v=m[1];return Ln(function(){if(h&&h.times<LB){if(!e.current){v(function(X){return le({},X)});return}o();var y=h.targetAlign,S=h.originAlign,C=h.index,w=h.offset,E=e.current.clientHeight,$=!1,O=y,N=null;if(E){for(var I=y||S,R=0,_=0,z=0,D=Math.min(t.length-1,C),L=0;L<=D;L+=1){var B=a(t[L]);_=R;var F=n.get(B);z=_+(F===void 0?r:F),R=z}for(var H=I==="top"?w:E-w,k=D;k>=0;k-=1){var q=a(t[k]),V=n.get(q);if(V===void 0){$=!0;break}if(H-=V,H<=0)break}switch(I){case"top":N=_-w;break;case"bottom":N=z-E+w;break;default:{var W=e.current.scrollTop,G=W+E;_<W?O="top":z>G&&(O="bottom")}}N!==null&&l(N),N!==h.lastTop&&($=!0)}$&&v(le(le({},h),{},{times:h.times+1,targetAlign:O,lastTop:N}))}},[h,e.current]),function(y){if(y==null){s();return}if(sr.cancel(d.current),typeof y=="number")l(y);else if(y&&Vt(y)==="object"){var S,C=y.align;"index"in y?S=y.index:S=t.findIndex(function($){return a($)===y.key});var w=y.offset,E=w===void 0?0:w;v({times:0,index:S,offset:E,originAlign:C})}}}var N$=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,l=e.onStartMove,s=e.onStopMove,d=e.onScroll,f=e.horizontal,m=e.spinSize,h=e.containerSize,v=e.style,y=e.thumbStyle,S=e.showScrollBar,C=u.useState(!1),w=Re(C,2),E=w[0],$=w[1],O=u.useState(null),N=Re(O,2),I=N[0],R=N[1],_=u.useState(null),z=Re(_,2),D=z[0],L=z[1],B=!r,F=u.useRef(),H=u.useRef(),k=u.useState(S),q=Re(k,2),V=q[0],W=q[1],G=u.useRef(),X=function(){S===!0||S===!1||(clearTimeout(G.current),W(!0),G.current=setTimeout(function(){W(!1)},3e3))},P=o-h||0,K=h-m||0,J=u.useMemo(function(){if(a===0||P===0)return 0;var me=a/P;return me*K},[a,P,K]),j=function(be){be.stopPropagation(),be.preventDefault()},Y=u.useRef({top:J,dragging:E,pageY:I,startTop:D});Y.current={top:J,dragging:E,pageY:I,startTop:D};var ne=function(be){$(!0),R(zC(be,f)),L(Y.current.top),l(),be.stopPropagation(),be.preventDefault()};u.useEffect(function(){var me=function(Oe){Oe.preventDefault()},be=F.current,fe=H.current;return be.addEventListener("touchstart",me,{passive:!1}),fe.addEventListener("touchstart",ne,{passive:!1}),function(){be.removeEventListener("touchstart",me),fe.removeEventListener("touchstart",ne)}},[]);var se=u.useRef();se.current=P;var de=u.useRef();de.current=K,u.useEffect(function(){if(E){var me,be=function(Oe){var Ne=Y.current,je=Ne.dragging,Te=Ne.pageY,Ue=Ne.startTop;sr.cancel(me);var qe=F.current.getBoundingClientRect(),ze=h/(f?qe.width:qe.height);if(je){var Ve=(zC(Oe,f)-Te)*ze,Be=Ue;!B&&f?Be-=Ve:Be+=Ve;var De=se.current,ye=de.current,oe=ye?Be/ye:0,we=Math.ceil(oe*De);we=Math.max(we,0),we=Math.min(we,De),me=sr(function(){d(we,f)})}},fe=function(){$(!1),s()};return window.addEventListener("mousemove",be,{passive:!0}),window.addEventListener("touchmove",be,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",be),window.removeEventListener("touchmove",be),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),sr.cancel(me)}}},[E]),u.useEffect(function(){return X(),function(){clearTimeout(G.current)}},[a]),u.useImperativeHandle(t,function(){return{delayHidden:X}});var pe="".concat(n,"-scrollbar"),Ce={position:"absolute",visibility:V?null:"hidden"},he={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(Ce,{height:8,left:0,right:0,bottom:0}),Object.assign(he,te({height:"100%",width:m},B?"left":"right",J))):(Object.assign(Ce,te({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(he,{width:"100%",height:m,top:J})),u.createElement("div",{ref:F,className:ue(pe,te(te(te({},"".concat(pe,"-horizontal"),f),"".concat(pe,"-vertical"),!f),"".concat(pe,"-visible"),V)),style:le(le({},Ce),v),onMouseDown:j,onMouseMove:X},u.createElement("div",{ref:H,className:ue("".concat(pe,"-thumb"),te({},"".concat(pe,"-thumb-moving"),E)),style:le(le({},he),y),onMouseDown:ne}))}),FB=20;function T$(){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,FB),Math.floor(n)}var HB=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],VB=[],KB={overflowY:"auto",overflowAnchor:"none"};function WB(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,l=e.itemHeight,s=e.fullHeight,d=s===void 0?!0:s,f=e.style,m=e.data,h=e.children,v=e.itemKey,y=e.virtual,S=e.direction,C=e.scrollWidth,w=e.component,E=w===void 0?"div":w,$=e.onScroll,O=e.onVirtualScroll,N=e.onVisibleChange,I=e.innerProps,R=e.extraRender,_=e.styles,z=e.showScrollBar,D=z===void 0?"optional":z,L=ln(e,HB),B=u.useCallback(function(yt){return typeof v=="function"?v(yt):yt?.[v]},[v]),F=DB(B),H=Re(F,4),k=H[0],q=H[1],V=H[2],W=H[3],G=!!(y!==!1&&o&&l),X=u.useMemo(function(){return Object.values(V.maps).reduce(function(yt,Ot){return yt+Ot},0)},[V.id,V.maps]),P=G&&m&&(Math.max(l*m.length,X)>o||!!C),K=S==="rtl",J=ue(r,te({},"".concat(r,"-rtl"),K),a),j=m||VB,Y=u.useRef(),ne=u.useRef(),se=u.useRef(),de=u.useState(0),pe=Re(de,2),Ce=pe[0],he=pe[1],me=u.useState(0),be=Re(me,2),fe=be[0],ge=be[1],Oe=u.useState(!1),Ne=Re(Oe,2),je=Ne[0],Te=Ne[1],Ue=function(){Te(!0)},qe=function(){Te(!1)},ze={getKey:B};function Ve(yt){he(function(Ot){var Ft;typeof yt=="function"?Ft=yt(Ot):Ft=yt;var Gt=Zt(Ft);return Y.current.scrollTop=Gt,Gt})}var Be=u.useRef({start:0,end:j.length}),De=u.useRef(),ye=_B(j,B),oe=Re(ye,1),we=oe[0];De.current=we;var Fe=u.useMemo(function(){if(!G)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!P){var yt;return{scrollHeight:((yt=ne.current)===null||yt===void 0?void 0:yt.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var Ot=0,Ft,Gt,Jt,un=j.length,On=0;On<un;On+=1){var Qn=j[On],Xt=B(Qn),an=V.get(Xt),Bt=Ot+(an===void 0?l:an);Bt>=Ce&&Ft===void 0&&(Ft=On,Gt=Ot),Bt>Ce+o&&Jt===void 0&&(Jt=On),Ot=Bt}return Ft===void 0&&(Ft=0,Gt=0,Jt=Math.ceil(o/l)),Jt===void 0&&(Jt=j.length-1),Jt=Math.min(Jt+1,j.length-1),{scrollHeight:Ot,start:Ft,end:Jt,offset:Gt}},[P,G,Ce,j,W,o]),xe=Fe.scrollHeight,_e=Fe.start,rt=Fe.end,lt=Fe.offset;Be.current.start=_e,Be.current.end=rt,u.useLayoutEffect(function(){var yt=V.getRecord();if(yt.size===1){var Ot=Array.from(yt.keys())[0],Ft=yt.get(Ot),Gt=j[_e];if(Gt&&Ft===void 0){var Jt=B(Gt);if(Jt===Ot){var un=V.get(Ot),On=un-l;Ve(function(Qn){return Qn+On})}}}V.resetRecord()},[xe]);var ut=u.useState({width:0,height:o}),tt=Re(ut,2),mt=tt[0],at=tt[1],gt=function(Ot){at({width:Ot.offsetWidth,height:Ot.offsetHeight})},Nt=u.useRef(),tn=u.useRef(),Wt=u.useMemo(function(){return T$(mt.width,C)},[mt.width,C]),dn=u.useMemo(function(){return T$(mt.height,xe)},[mt.height,xe]),Qt=xe-o,nn=u.useRef(Qt);nn.current=Qt;function Zt(yt){var Ot=yt;return Number.isNaN(nn.current)||(Ot=Math.min(Ot,nn.current)),Ot=Math.max(Ot,0),Ot}var Lt=Ce<=0,_t=Ce>=Qt,It=fe<=0,ve=fe>=C,Me=EM(Lt,_t,It,ve),Xe=function(){return{x:K?-fe:fe,y:Ce}},Qe=u.useRef(Xe()),ke=vr(function(yt){if(O){var Ot=le(le({},Xe()),yt);(Qe.current.x!==Ot.x||Qe.current.y!==Ot.y)&&(O(Ot),Qe.current=Ot)}});function Ae(yt,Ot){var Ft=yt;Ot?(tc.flushSync(function(){ge(Ft)}),ke()):Ve(Ft)}function He(yt){var Ot=yt.currentTarget.scrollTop;Ot!==Ce&&Ve(Ot),$?.(yt),ke()}var Ye=function(Ot){var Ft=Ot,Gt=C?C-mt.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Gt),Ft},$t=vr(function(yt,Ot){Ot?(tc.flushSync(function(){ge(function(Ft){var Gt=Ft+(K?-yt:yt);return Ye(Gt)})}),ke()):Ve(function(Ft){var Gt=Ft+yt;return Gt})}),xt=AB(G,Lt,_t,It,ve,!!C,$t),pt=Re(xt,2),ct=pt[0],dt=pt[1];jB(G,Y,function(yt,Ot,Ft,Gt){var Jt=Gt;return Me(yt,Ot,Ft)?!1:!Jt||!Jt._virtualHandled?(Jt&&(Jt._virtualHandled=!0),ct({preventDefault:function(){},deltaX:yt?Ot:0,deltaY:yt?0:Ot}),!0):!1}),kB(P,Y,function(yt){Ve(function(Ot){return Ot+yt})}),Ln(function(){function yt(Ft){var Gt=Lt&&Ft.detail<0,Jt=_t&&Ft.detail>0;G&&!Gt&&!Jt&&Ft.preventDefault()}var Ot=Y.current;return Ot.addEventListener("wheel",ct,{passive:!1}),Ot.addEventListener("DOMMouseScroll",dt,{passive:!0}),Ot.addEventListener("MozMousePixelScroll",yt,{passive:!1}),function(){Ot.removeEventListener("wheel",ct),Ot.removeEventListener("DOMMouseScroll",dt),Ot.removeEventListener("MozMousePixelScroll",yt)}},[G,Lt,_t]),Ln(function(){if(C){var yt=Ye(fe);ge(yt),ke({x:yt})}},[mt.width,C]);var ot=function(){var Ot,Ft;(Ot=Nt.current)===null||Ot===void 0||Ot.delayHidden(),(Ft=tn.current)===null||Ft===void 0||Ft.delayHidden()},nt=BB(Y,j,V,l,B,function(){return q(!0)},Ve,ot);u.useImperativeHandle(t,function(){return{nativeElement:se.current,getScrollInfo:Xe,scrollTo:function(Ot){function Ft(Gt){return Gt&&Vt(Gt)==="object"&&("left"in Gt||"top"in Gt)}Ft(Ot)?(Ot.left!==void 0&&ge(Ye(Ot.left)),nt(Ot.top)):nt(Ot)}}}),Ln(function(){if(N){var yt=j.slice(_e,rt+1);N(yt,j)}},[_e,rt,j]);var Tt=PB(j,B,V,l),Mt=R?.({start:_e,end:rt,virtual:P,offsetX:fe,offsetY:lt,rtl:K,getSize:Tt}),zt=TB(j,_e,rt,C,fe,k,h,ze),jt=null;o&&(jt=le(te({},d?"height":"maxHeight",o),KB),G&&(jt.overflowY="hidden",C&&(jt.overflowX="hidden"),je&&(jt.pointerEvents="none")));var rn={};return K&&(rn.dir="rtl"),u.createElement("div",Je({ref:se,style:le(le({},f),{},{position:"relative"}),className:J},rn,L),u.createElement(qo,{onResize:gt},u.createElement(E,{className:"".concat(r,"-holder"),style:jt,ref:Y,onScroll:He,onMouseEnter:ot},u.createElement(wM,{prefixCls:r,height:xe,offsetX:fe,offsetY:lt,scrollWidth:C,onInnerResize:q,ref:ne,innerProps:I,rtl:K,extra:Mt},zt))),P&&xe>o&&u.createElement(N$,{ref:Nt,prefixCls:r,scrollOffset:Ce,scrollRange:xe,rtl:K,onScroll:Ae,onStartMove:Ue,onStopMove:qe,spinSize:dn,containerSize:mt.height,style:_?.verticalScrollBar,thumbStyle:_?.verticalScrollBarThumb,showScrollBar:D}),P&&C>mt.width&&u.createElement(N$,{ref:tn,prefixCls:r,scrollOffset:fe,scrollRange:C,rtl:K,onScroll:Ae,onStartMove:Ue,onStopMove:qe,spinSize:Wt,containerSize:mt.width,horizontal:!0,style:_?.horizontalScrollBar,thumbStyle:_?.horizontalScrollBarThumb,showScrollBar:D}))}var Eb=u.forwardRef(WB);Eb.displayName="List";function UB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qB=["disabled","title","children","style","className"];function I$(e){return typeof e=="string"||typeof e=="number"}var GB=function(t,n){var r=PL(),a=r.prefixCls,o=r.id,l=r.open,s=r.multiple,d=r.mode,f=r.searchValue,m=r.toggleOpen,h=r.notFoundContent,v=r.onPopupScroll,y=u.useContext(dE),S=y.maxCount,C=y.flattenOptions,w=y.onActiveValue,E=y.defaultActiveFirstOption,$=y.onSelect,O=y.menuItemSelectedIcon,N=y.rawValues,I=y.fieldNames,R=y.virtual,_=y.direction,z=y.listHeight,D=y.listItemHeight,L=y.optionRender,B="".concat(a,"-item"),F=Hd(function(){return C},[l,C],function(he,me){return me[0]&&he[1]!==me[1]}),H=u.useRef(null),k=u.useMemo(function(){return s&&_C(S)&&N?.size>=S},[s,S,N?.size]),q=function(me){me.preventDefault()},V=function(me){var be;(be=H.current)===null||be===void 0||be.scrollTo(typeof me=="number"?{index:me}:me)},W=function(me){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=F.length,ge=0;ge<fe;ge+=1){var Oe=(me+ge*be+fe)%fe,Ne=F[Oe]||{},je=Ne.group,Te=Ne.data;if(!je&&!(Te!=null&&Te.disabled)&&!k)return Oe}return-1},G=u.useState(function(){return W(0)}),X=Re(G,2),P=X[0],K=X[1],J=function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(me);var fe={source:be?"keyboard":"mouse"},ge=F[me];if(!ge){w(null,-1,fe);return}w(ge.value,me,fe)};u.useEffect(function(){J(E!==!1?W(0):-1)},[F.length,f]);var j=u.useCallback(function(he){return N.has(he)&&d!=="combobox"},[d,st(N).toString(),N.size]);u.useEffect(function(){var he=setTimeout(function(){if(!s&&l&&N.size===1){var be=Array.from(N)[0],fe=F.findIndex(function(ge){var Oe=ge.data;return Oe.value===be});fe!==-1&&(J(fe),V(fe))}});if(l){var me;(me=H.current)===null||me===void 0||me.scrollTo(void 0)}return function(){return clearTimeout(he)}},[l,f]);var Y=function(me){me!==void 0&&$(me,{selected:!N.has(me)}),s||m(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(me){var be=me.which,fe=me.ctrlKey;switch(be){case Pt.N:case Pt.P:case Pt.UP:case Pt.DOWN:{var ge=0;if(be===Pt.UP?ge=-1:be===Pt.DOWN?ge=1:UB()&&fe&&(be===Pt.N?ge=1:be===Pt.P&&(ge=-1)),ge!==0){var Oe=W(P+ge,ge);V(Oe),J(Oe,!0)}break}case Pt.ENTER:{var Ne,je=F[P];je&&!(je!=null&&(Ne=je.data)!==null&&Ne!==void 0&&Ne.disabled)&&!k?Y(je.value):Y(void 0),l&&me.preventDefault();break}case Pt.ESC:m(!1),l&&me.stopPropagation()}},onKeyUp:function(){},scrollTo:function(me){V(me)}}}),F.length===0)return u.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(B,"-empty"),onMouseDown:q},h);var ne=Object.keys(I).map(function(he){return I[he]}),se=function(me){return me.label};function de(he,me){var be=he.group;return{role:be?"presentation":"option",id:"".concat(o,"_list_").concat(me)}}var pe=function(me){var be=F[me];if(!be)return null;var fe=be.data||{},ge=fe.value,Oe=be.group,Ne=Pa(fe,!0),je=se(be);return be?u.createElement("div",Je({"aria-label":typeof je=="string"&&!Oe?je:null},Ne,{key:me},de(be,me),{"aria-selected":j(ge)}),ge):null},Ce={role:"listbox",id:"".concat(o,"_list")};return u.createElement(u.Fragment,null,R&&u.createElement("div",Je({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),pe(P-1),pe(P),pe(P+1)),u.createElement(Eb,{itemKey:"key",ref:H,data:F,height:z,itemHeight:D,fullHeight:!1,onMouseDown:q,onScroll:v,virtual:R,direction:_,innerProps:R?null:Ce},function(he,me){var be=he.group,fe=he.groupOption,ge=he.data,Oe=he.label,Ne=he.value,je=ge.key;if(be){var Te,Ue=(Te=ge.title)!==null&&Te!==void 0?Te:I$(Oe)?Oe.toString():void 0;return u.createElement("div",{className:ue(B,"".concat(B,"-group"),ge.className),title:Ue},Oe!==void 0?Oe:je)}var qe=ge.disabled,ze=ge.title;ge.children;var Ve=ge.style,Be=ge.className,De=ln(ge,qB),ye=Qr(De,ne),oe=j(Ne),we=qe||!oe&&k,Fe="".concat(B,"-option"),xe=ue(B,Fe,Be,te(te(te(te({},"".concat(Fe,"-grouped"),fe),"".concat(Fe,"-active"),P===me&&!we),"".concat(Fe,"-disabled"),we),"".concat(Fe,"-selected"),oe)),_e=se(he),rt=!O||typeof O=="function"||oe,lt=typeof _e=="number"?_e:_e||Ne,ut=I$(lt)?lt.toString():void 0;return ze!==void 0&&(ut=ze),u.createElement("div",Je({},Pa(ye),R?{}:de(he,me),{"aria-selected":oe,className:xe,title:ut,onMouseMove:function(){P===me||we||J(me)},onClick:function(){we||Y(Ne)},style:Ve}),u.createElement("div",{className:"".concat(Fe,"-content")},typeof L=="function"?L(he,{index:me}):lt),u.isValidElement(O)||oe,rt&&u.createElement(Cb,{className:"".concat(B,"-option-state"),customizeIcon:O,customizeIconProps:{value:Ne,disabled:we,isSelected:oe}},oe?"✓":null))}))},XB=u.forwardRef(GB);const YB=(function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var o=n.current,l=o.values,s=o.options,d=e.map(function(h){if(h.label===void 0){var v;return le(le({},h),{},{label:(v=l.get(h.value))===null||v===void 0?void 0:v.label})}return h}),f=new Map,m=new Map;return d.forEach(function(h){f.set(h.value,h),m.set(h.value,t.get(h.value)||s.get(h.value))}),n.current.values=f,n.current.options=m,d},[e,t]),a=u.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function F2(e,t){return xM(e).join("").toUpperCase().includes(t)}const QB=(function(e,t,n,r,a){return u.useMemo(function(){if(!n||r===!1)return e;var o=t.options,l=t.label,s=t.value,d=[],f=typeof r=="function",m=n.toUpperCase(),h=f?r:function(y,S){return a?F2(S[a],m):S[o]?F2(S[l!=="children"?l:"label"],m):F2(S[s],m)},v=f?function(y){return AC(y)}:function(y){return y};return e.forEach(function(y){if(y[o]){var S=h(n,v(y));if(S)d.push(y);else{var C=y[o].filter(function(w){return h(n,v(w))});C.length&&d.push(le(le({},y),{},te({},o,C)))}return}h(n,v(y))&&d.push(y)}),d},[e,r,a,n,t])});var _$=0,ZB=ao();function JB(){var e;return ZB?(e=_$,_$+=1):e="TEST_OR_SSR",e}function eF(e){var t=u.useState(),n=Re(t,2),r=n[0],a=n[1];return u.useEffect(function(){a("rc_select_".concat(JB()))},[]),e||r}var tF=["children","value"],nF=["children"];function rF(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,l=ln(r,tF);return le({key:n,value:o!==void 0?o:n,children:a},l)}function $M(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ro(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,l=a.key,s=a.props,d=s.children,f=ln(s,nF);return t||!o?rF(n):le(le({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},f),{},{options:$M(d)})}).filter(function(n){return n})}var aF=function(t,n,r,a,o){return u.useMemo(function(){var l=t,s=!t;s&&(l=$M(n));var d=new Map,f=new Map,m=function(y,S,C){C&&typeof C=="string"&&y.set(S[C],S)},h=function v(y){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<y.length;C+=1){var w=y[C];!w[r.options]||S?(d.set(w[r.value],w),m(f,w,r.label),m(f,w,a),m(f,w,o)):v(w[r.options],!0)}};return h(l),{options:l,valueOptions:d,labelOptions:f}},[t,n,r,a,o])};function A$(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var oF=["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"],iF=["inputValue"];function lF(e){return!e||Vt(e)!=="object"}var sF=u.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,l=e.backfill,s=e.fieldNames,d=e.inputValue,f=e.searchValue,m=e.onSearch,h=e.autoClearSearchValue,v=h===void 0?!0:h,y=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,w=C===void 0?!0:C,E=e.filterOption,$=e.filterSort,O=e.optionFilterProp,N=e.optionLabelProp,I=e.options,R=e.optionRender,_=e.children,z=e.defaultActiveFirstOption,D=e.menuItemSelectedIcon,L=e.virtual,B=e.direction,F=e.listHeight,H=F===void 0?200:F,k=e.listItemHeight,q=k===void 0?20:k,V=e.labelRender,W=e.value,G=e.defaultValue,X=e.labelInValue,P=e.onChange,K=e.maxCount,J=ln(e,oF),j=eF(n),Y=PC(r),ne=!!(!I&&_),se=u.useMemo(function(){return E===void 0&&r==="combobox"?!1:E},[E,r]),de=u.useMemo(function(){return CM(s,ne)},[JSON.stringify(s),ne]),pe=kr("",{value:f!==void 0?f:d,postState:function(Ae){return Ae||""}}),Ce=Re(pe,2),he=Ce[0],me=Ce[1],be=aF(I,_,de,O,N),fe=be.valueOptions,ge=be.labelOptions,Oe=be.options,Ne=u.useCallback(function(ke){var Ae=xM(ke);return Ae.map(function(He){var Ye,$t,xt,pt,ct;if(lF(He))Ye=He;else{var dt;xt=He.key,$t=He.label,Ye=(dt=He.value)!==null&&dt!==void 0?dt:xt}var ot=fe.get(Ye);if(ot){var nt;$t===void 0&&($t=ot?.[N||de.label]),xt===void 0&&(xt=(nt=ot?.key)!==null&&nt!==void 0?nt:Ye),pt=ot?.disabled,ct=ot?.title}return{label:$t,value:Ye,key:xt,disabled:pt,title:ct}})},[de,N,fe]),je=kr(G,{value:W}),Te=Re(je,2),Ue=Te[0],qe=Te[1],ze=u.useMemo(function(){var ke,Ae=Y&&Ue===null?[]:Ue,He=Ne(Ae);return r==="combobox"&&JL((ke=He[0])===null||ke===void 0?void 0:ke.value)?[]:He},[Ue,Ne,r,Y]),Ve=YB(ze,fe),Be=Re(Ve,2),De=Be[0],ye=Be[1],oe=u.useMemo(function(){if(!r&&De.length===1){var ke=De[0];if(ke.value===null&&(ke.label===null||ke.label===void 0))return[]}return De.map(function(Ae){var He;return le(le({},Ae),{},{label:(He=typeof V=="function"?V(Ae):Ae.label)!==null&&He!==void 0?He:Ae.value})})},[r,De,V]),we=u.useMemo(function(){return new Set(De.map(function(ke){return ke.value}))},[De]);u.useEffect(function(){if(r==="combobox"){var ke,Ae=(ke=De[0])===null||ke===void 0?void 0:ke.value;me(ZL(Ae)?String(Ae):"")}},[De]);var Fe=A$(function(ke,Ae){var He=Ae??ke;return te(te({},de.value,ke),de.label,He)}),xe=u.useMemo(function(){if(r!=="tags")return Oe;var ke=st(Oe),Ae=function(Ye){return fe.has(Ye)};return st(De).sort(function(He,Ye){return He.value<Ye.value?-1:1}).forEach(function(He){var Ye=He.value;Ae(Ye)||ke.push(Fe(Ye,He.label))}),ke},[Fe,Oe,fe,De,r]),_e=QB(xe,de,he,se,O),rt=u.useMemo(function(){return r!=="tags"||!he||_e.some(function(ke){return ke[O||"value"]===he})||_e.some(function(ke){return ke[de.value]===he})?_e:[Fe(he)].concat(st(_e))},[Fe,O,r,_e,he,de]),lt=function ke(Ae){var He=st(Ae).sort(function(Ye,$t){return $(Ye,$t,{searchValue:he})});return He.map(function(Ye){return Array.isArray(Ye.options)?le(le({},Ye),{},{options:Ye.options.length>0?ke(Ye.options):Ye.options}):Ye})},ut=u.useMemo(function(){return $?lt(rt):rt},[rt,$,he]),tt=u.useMemo(function(){return wB(ut,{fieldNames:de,childrenAsData:ne})},[ut,de,ne]),mt=function(Ae){var He=Ne(Ae);if(qe(He),P&&(He.length!==De.length||He.some(function(xt,pt){var ct;return((ct=De[pt])===null||ct===void 0?void 0:ct.value)!==xt?.value}))){var Ye=X?He:He.map(function(xt){return xt.value}),$t=He.map(function(xt){return AC(ye(xt.value))});P(Y?Ye:Ye[0],Y?$t:$t[0])}},at=u.useState(null),gt=Re(at,2),Nt=gt[0],tn=gt[1],Wt=u.useState(0),dn=Re(Wt,2),Qt=dn[0],nn=dn[1],Zt=z!==void 0?z:r!=="combobox",Lt=u.useCallback(function(ke,Ae){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ye=He.source,$t=Ye===void 0?"keyboard":Ye;nn(Ae),l&&r==="combobox"&&ke!==null&&$t==="keyboard"&&tn(String(ke))},[l,r]),_t=function(Ae,He,Ye){var $t=function(){var jt,rn=ye(Ae);return[X?{label:rn?.[de.label],value:Ae,key:(jt=rn?.key)!==null&&jt!==void 0?jt:Ae}:Ae,AC(rn)]};if(He&&y){var xt=$t(),pt=Re(xt,2),ct=pt[0],dt=pt[1];y(ct,dt)}else if(!He&&S&&Ye!=="clear"){var ot=$t(),nt=Re(ot,2),Tt=nt[0],Mt=nt[1];S(Tt,Mt)}},It=A$(function(ke,Ae){var He,Ye=Y?Ae.selected:!0;Ye?He=Y?[].concat(st(De),[ke]):[ke]:He=De.filter(function($t){return $t.value!==ke}),mt(He),_t(ke,Ye),r==="combobox"?tn(""):(!PC||v)&&(me(""),tn(""))}),ve=function(Ae,He){mt(Ae);var Ye=He.type,$t=He.values;(Ye==="remove"||Ye==="clear")&&$t.forEach(function(xt){_t(xt.value,!1,Ye)})},Me=function(Ae,He){if(me(Ae),tn(null),He.source==="submit"){var Ye=(Ae||"").trim();if(Ye){var $t=Array.from(new Set([].concat(st(we),[Ye])));mt($t),_t(Ye,!0),me("")}return}He.source!=="blur"&&(r==="combobox"&&mt(Ae),m?.(Ae))},Xe=function(Ae){var He=Ae;r!=="tags"&&(He=Ae.map(function($t){var xt=ge.get($t);return xt?.value}).filter(function($t){return $t!==void 0}));var Ye=Array.from(new Set([].concat(st(we),st(He))));mt(Ye),Ye.forEach(function($t){_t($t,!0)})},Qe=u.useMemo(function(){var ke=L!==!1&&w!==!1;return le(le({},be),{},{flattenOptions:tt,onActiveValue:Lt,defaultActiveFirstOption:Zt,onSelect:It,menuItemSelectedIcon:D,rawValues:we,fieldNames:de,virtual:ke,direction:B,listHeight:H,listItemHeight:q,childrenAsData:ne,maxCount:K,optionRender:R})},[K,be,tt,Lt,Zt,It,D,we,de,L,w,B,H,q,ne,R]);return u.createElement(dE.Provider,{value:Qe},u.createElement(RB,Je({},J,{id:j,prefixCls:o,ref:t,omitDomProps:iF,mode:r,displayValues:oe,onDisplayValuesChange:ve,direction:B,searchValue:he,onSearch:Me,autoClearSearchValue:v,onSearchSplit:Xe,dropdownMatchSelectWidth:w,OptionList:XB,emptyOptions:!tt.length,activeValue:Nt,activeDescendantId:"".concat(j,"_list_").concat(Qt)})))}),pE=sF;pE.Option=mE;pE.OptGroup=fE;function By(e,t,n){return ue({[`${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 $b=(e,t)=>t||e,cF=()=>{const[,e]=lo(),[t]=Cs("Empty"),r=new zr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,t?.description||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},uF=()=>{const[,e]=lo(),[t]=Cs("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:l,shadowColor:s,contentColor:d}=u.useMemo(()=>({borderColor:new zr(n).onBackground(o).toHexShortString(),shadowColor:new zr(r).onBackground(o).toHexShortString(),contentColor:new zr(a).onBackground(o).toHexShortString()}),[n,r,a,o]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,t?.description||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:l},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},dF=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:l,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:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},fF=nr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=In(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[dF(a)]});var mF=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const OM=u.createElement(cF,null),MM=u.createElement(uF,null),fi=e=>{var{className:t,rootClassName:n,prefixCls:r,image:a=OM,description:o,children:l,imageStyle:s,style:d}=e,f=mF(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:h,empty:v}=u.useContext(Dt),y=m("empty",r),[S,C,w]=fF(y),[E]=Cs("Empty"),$=typeof o<"u"?o:E?.description,O=typeof $=="string"?$:"empty";let N=null;return typeof a=="string"?N=u.createElement("img",{alt:O,src:a}):N=a,S(u.createElement("div",Object.assign({className:ue(C,w,y,v?.className,{[`${y}-normal`]:a===MM,[`${y}-rtl`]:h==="rtl"},t,n),style:Object.assign(Object.assign({},v?.style),d)},f),u.createElement("div",{className:`${y}-image`,style:s},N),$&&u.createElement("div",{className:`${y}-description`},$),l&&u.createElement("div",{className:`${y}-footer`},l)))};fi.PRESENTED_IMAGE_DEFAULT=OM;fi.PRESENTED_IMAGE_SIMPLE=MM;const gE=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(Dt),r=n("empty");switch(t){case"Table":case"List":return Se.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Se.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Se.createElement(fi,null)}},hE=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:l}=u.useContext(Dt),s=u.useContext(GO),d=l?.variant;let f;typeof t<"u"?f=t:n===!1?f="borderless":f=(a=(r=s??d)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const m=bA.includes(f);return[f,m]},pF=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 gF(e,t){return e||pF(t)}const P$=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},hF=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},cr(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,[` ${a}${s}bottomLeft, ${o}${s}bottomLeft `]:{animationName:Uw},[` ${a}${s}topLeft, ${o}${s}topLeft, ${a}${s}topRight, ${o}${s}topRight `]:{animationName:Gw},[`${l}${s}bottomLeft`]:{animationName:qw},[` ${l}${s}topLeft, ${l}${s}topRight `]:{animationName:Xw},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},P$(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"},uu),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},P$(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},fu(e,"slide-up"),fu(e,"slide-down"),ky(e,"move-up"),ky(e,"move-down")]},vF=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:l,itemHeight:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},yF=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},bF=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:s,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:m}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(m).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Xh()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},xF=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,l=yF(e),s=t?`${n}-${t}`:"",d=vF(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},bF(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ie(r)} 0`,lineHeight:ie(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:ie(d.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ie(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function H2(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[xF(e,t),a]}const SF=e=>{const{componentCls:t}=e,n=In(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=In(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[H2(e),H2(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},H2(r,"lg")]};function V2(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a,fontSizeIcon:o}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=e.calc(r).add(o).equal(),d=t?`${n}-${t}`:"";return{[`${n}-single${d}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},cr(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:ie(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:ie(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"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${ie(r)}`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:ie(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 ${ie(r)}`,"&:after":{display:"none"}}}}}}}function CF(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[V2(e),V2(In(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${ie(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},V2(In(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const wF=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:m,fontWeightStrong:h,controlItemBgActive:v,controlItemBgHover:y,colorBgContainer:S,colorFillSecondary:C,colorBgContainerDisabled:w,colorTextDisabled:E,colorPrimaryHover:$,colorPrimary:O,controlOutline:N}=e,I=s*2,R=r*2,_=Math.min(a-I,a-R),z=Math.min(o-I,o-R),D=Math.min(l-I,l-R);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:f+50,optionSelectedColor:m,optionSelectedFontWeight:h,optionSelectedBg:v,optionActiveBg:y,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:S,clearBg:S,singleItemHeightLG:l,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:z,multipleItemHeightLG:D,multipleSelectorBgDisabled:w,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:O,activeOutlineColor:N}},RM=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ie(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 ${ie(a)} ${t.activeOutlineColor}`,outline:0}}}},z$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},RM(e,t))}),EF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},RM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),z$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),z$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ie(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}}}},D$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NM(e,t))}),$F=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},NM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),D$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),D$(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),OF=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),MF=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},EF(e)),$F(e)),OF(e))}),RF=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"}}}},NF=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},TF=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},cr(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},RF(e)),NF(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},uu),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},uu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Xh()),{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`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},IF=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},TF(e),CF(e),SF(e),hF(e),{[`${t}-rtl`]:{direction:"rtl"}},rE(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_F=nr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=In(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[IF(r),MF(r)]},wF,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var AF={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"},PF=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:AF}))},Ob=u.forwardRef(PF),zF={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"},DF=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:zF}))},TM=u.forwardRef(DF),jF={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"},kF=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:jF}))},lv=u.forwardRef(kF);function LF(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:l,hasFeedback:s,prefixCls:d,showSuffixIcon:f,feedbackIcon:m,showArrow:h,componentName:v}=e;const y=n??u.createElement(Vd,null),S=$=>t===null&&!s&&!h?null:u.createElement(u.Fragment,null,f!==!1&&$,s&&m);let C=null;if(t!==void 0)C=S(t);else if(o)C=S(u.createElement(Wd,{spin:!0}));else{const $=`${d}-suffix`;C=O=>{let{open:N,showSearch:I}=O;return S(N&&I?u.createElement(lv,{className:$}):u.createElement(TM,{className:$}))}}let w=null;r!==void 0?w=r:l?w=u.createElement(Ob,null):w=null;let E=null;return a!==void 0?E=a:E=u.createElement(ic,null),{clearIcon:y,suffixIcon:C,itemIcon:w,removeIcon:E}}function BF(e,t){return t!==void 0?t:e!==null}var FF=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IM="SECRET_COMBOBOX_MODE_DO_NOT_USE",HF=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:l,getPopupContainer:s,popupClassName:d,dropdownClassName:f,listHeight:m=256,placement:h,listItemHeight:v,size:y,disabled:S,notFoundContent:C,status:w,builtinPlacements:E,dropdownMatchSelectWidth:$,popupMatchSelectWidth:O,direction:N,style:I,allowClear:R,variant:_,dropdownStyle:z,transitionName:D,tagRender:L,maxCount:B}=e,F=FF(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:H,getPrefixCls:k,renderEmpty:q,direction:V,virtual:W,popupMatchSelectWidth:G,popupOverflow:X,select:P}=u.useContext(Dt),[,K]=lo(),J=v??K?.controlHeight,j=k("select",r),Y=k(),ne=N??V,{compactSize:se,compactItemClassnames:de}=tv(j,ne),[pe,Ce]=hE("select",_,a),he=Ba(j),[me,be,fe]=_F(j,he),ge=u.useMemo(()=>{const{mode:gt}=e;if(gt!=="combobox")return gt===IM?"combobox":gt},[e.mode]),Oe=ge==="multiple"||ge==="tags",Ne=BF(e.suffixIcon,e.showArrow),je=(n=O??$)!==null&&n!==void 0?n:G,{status:Te,hasFeedback:Ue,isFormItemInput:qe,feedbackIcon:ze}=u.useContext(Go),Ve=$b(Te,w);let Be;C!==void 0?Be=C:ge==="combobox"?Be=null:Be=q?.("Select")||u.createElement(gE,{componentName:"Select"});const{suffixIcon:De,itemIcon:ye,removeIcon:oe,clearIcon:we}=LF(Object.assign(Object.assign({},F),{multiple:Oe,hasFeedback:Ue,feedbackIcon:ze,showSuffixIcon:Ne,prefixCls:j,componentName:"Select"})),Fe=R===!0?{clearIcon:we}:R,xe=Qr(F,["suffixIcon","itemIcon"]),_e=ue(d||f,{[`${j}-dropdown-${ne}`]:ne==="rtl"},l,fe,he,be),rt=No(gt=>{var Nt;return(Nt=y??se)!==null&&Nt!==void 0?Nt:gt}),lt=u.useContext(tl),ut=S??lt,tt=ue({[`${j}-lg`]:rt==="large",[`${j}-sm`]:rt==="small",[`${j}-rtl`]:ne==="rtl",[`${j}-${pe}`]:Ce,[`${j}-in-form-item`]:qe},By(j,Ve,Ue),de,P?.className,o,l,fe,he,be),mt=u.useMemo(()=>h!==void 0?h:ne==="rtl"?"bottomRight":"bottomLeft",[h,ne]),[at]=lp("SelectLike",z?.zIndex);return me(u.createElement(pE,Object.assign({ref:t,virtual:W,showSearch:P?.showSearch},xe,{style:Object.assign(Object.assign({},P?.style),I),dropdownMatchSelectWidth:je,transitionName:xs(Y,"slide-up",D),builtinPlacements:gF(E,X),listHeight:m,listItemHeight:J,mode:ge,prefixCls:j,placement:mt,direction:ne,suffixIcon:De,menuItemSelectedIcon:ye,removeIcon:oe,allowClear:Fe,notFoundContent:Be,className:tt,getPopupContainer:s||H,dropdownClassName:_e,disabled:ut,dropdownStyle:Object.assign(Object.assign({},z),{zIndex:at}),maxCount:Oe?B:void 0,tagRender:Oe?L:void 0})))},Zi=u.forwardRef(HF),VF=mM(Zi);Zi.SECRET_COMBOBOX_MODE_DO_NOT_USE=IM;Zi.Option=mE;Zi.OptGroup=fE;Zi._InternalPanelDoNotUseOrYouWillBeFired=VF;const Ld=["xxl","xl","lg","md","sm","xs"],KF=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)`}),WF=e=>{const t=e,n=[].concat(Ld).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),l=`screen${o}Min`,s=`screen${o}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(a<n.length-1){const d=`screen${o}Max`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`);const m=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[m]))throw new Error(`${d}<=${m} fails : !(${t[d]}<=${t[m]})`)}}),e};function _M(){const[,e]=lo(),t=KF(WF(e));return Se.useMemo(()=>{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(l=>l(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const l=t[o],s=this.matchHandlers[l];s?.mql.removeListener(s?.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const l=t[o],s=f=>{let{matches:m}=f;this.dispatch(Object.assign(Object.assign({},a),{[o]:m}))},d=window.matchMedia(l);d.addListener(s),this.matchHandlers[l]={mql:d,listener:s},s(d)})},responsiveMap:t}},[e])}function AM(){const[,e]=u.useReducer(t=>t+1,0);return e}function vE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=AM(),r=_M();return Ln(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const ep=e=>e?typeof e=="function"?e():e:null;function yE(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,l=e.style;return u.createElement("div",{className:ue("".concat(n,"-content"),o),style:l},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Cm={shiftX:64,adjustY:1},wm={adjustX:1,shiftY:!0},Xi=[0,0],UF={left:{points:["cr","cl"],overflow:wm,offset:[-4,0],targetOffset:Xi},right:{points:["cl","cr"],overflow:wm,offset:[4,0],targetOffset:Xi},top:{points:["bc","tc"],overflow:Cm,offset:[0,-4],targetOffset:Xi},bottom:{points:["tc","bc"],overflow:Cm,offset:[0,4],targetOffset:Xi},topLeft:{points:["bl","tl"],overflow:Cm,offset:[0,-4],targetOffset:Xi},leftTop:{points:["tr","tl"],overflow:wm,offset:[-4,0],targetOffset:Xi},topRight:{points:["br","tr"],overflow:Cm,offset:[0,-4],targetOffset:Xi},rightTop:{points:["tl","tr"],overflow:wm,offset:[4,0],targetOffset:Xi},bottomRight:{points:["tr","br"],overflow:Cm,offset:[0,4],targetOffset:Xi},rightBottom:{points:["bl","br"],overflow:wm,offset:[4,0],targetOffset:Xi},bottomLeft:{points:["tl","bl"],overflow:Cm,offset:[0,4],targetOffset:Xi},leftBottom:{points:["br","bl"],overflow:wm,offset:[-4,0],targetOffset:Xi}},qF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],GF=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,l=t.mouseEnterDelay,s=l===void 0?0:l,d=t.mouseLeaveDelay,f=d===void 0?.1:d,m=t.overlayStyle,h=t.prefixCls,v=h===void 0?"rc-tooltip":h,y=t.children,S=t.onVisibleChange,C=t.afterVisibleChange,w=t.transitionName,E=t.animation,$=t.motion,O=t.placement,N=O===void 0?"right":O,I=t.align,R=I===void 0?{}:I,_=t.destroyTooltipOnHide,z=_===void 0?!1:_,D=t.defaultVisible,L=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,H=t.id,k=t.showArrow,q=k===void 0?!0:k,V=ln(t,qF),W=u.useRef(null);u.useImperativeHandle(n,function(){return W.current});var G=le({},V);"visible"in t&&(G.popupVisible=t.visible);var X=function(){return u.createElement(yE,{key:"content",prefixCls:v,id:H,overlayInnerStyle:B},F)};return u.createElement(wb,Je({popupClassName:r,prefixCls:v,popup:X,action:o,builtinPlacements:UF,popupPlacement:N,ref:W,popupAlign:R,getPopupContainer:L,onPopupVisibleChange:S,afterPopupVisibleChange:C,popupTransitionName:w,popupAnimation:E,popupMotion:$,defaultPopupVisible:D,autoDestroy:z,mouseLeaveDelay:f,popupStyle:m,mouseEnterDelay:s,arrow:q},G),y)};const XF=u.forwardRef(GF);function bE(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,l=a,s=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),f=a-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*a-f,v=m,y=2*a-s,S=d,C=2*a-o,w=l,E=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),O=`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,N=`path('M ${o} ${l} A ${r} ${r} 0 0 0 ${s} ${d} L ${f} ${m} A ${n} ${n} 0 0 1 ${h} ${v} L ${y} ${S} A ${r} ${r} 0 0 0 ${C} ${w} Z')`;return{arrowShadowWidth:E,arrowPath:N,arrowPolygon:O}}const YF=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:l,borderRadiusXS:s,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},PM=8;function Mb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?PM:r}}function F1(e,t){return e?t:{}}function xE(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:l}=e,{arrowDistance:s=0,arrowPlacement:d={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"},YF(e,t,a)),{"&:before":{background:t}})]},F1(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),F1(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),F1(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),F1(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function QF(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const l=Object.assign(Object.assign({},o),a);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const j$={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"]}},ZF={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"]}},JF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:l}=e,s=t/2,d={};return Object.keys(j$).forEach(f=>{const m=r&&ZF[f]||j$[f],h=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(d[f]=h,JF.has(f)&&(h.autoArrow=!1),f){case"top":case"topLeft":case"topRight":h.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=s+a;break}const v=Mb({contentRadius:o,limitVerticalRadius:!0});if(r)switch(f){case"topLeft":case"bottomLeft":h.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":h.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":h.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":h.offset[1]=v.arrowOffsetHorizontal*2-s;break}h.overflow=QF(f,v,t,n),l&&(h.htmlRegion="visibleFirst")}),d}const eH=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:l,controlHeight:s,boxShadowSecondary:d,paddingSM:f,paddingXS:m}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ie(e.calc(f).div(2).equal())} ${ie(m)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:d,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,PM)}},[`${t}-content`]:{position:"relative"}}),fb(e,(h,v)=>{let{darkColor:y}=v;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},xE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},tH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Mb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bE(In(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),DM=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return nr("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:l}=r,s=In(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:l});return[eH(s),nv(r,"zoom-big-fast")]},tH,{resetStyle:!1,injectStyle:t})(e)}),nH=kh.map(e=>`${e}-inverse`),rH=["success","processing","error","default","warning"];function Rb(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(st(nH),st(kh)).includes(e):kh.includes(e)}function aH(e){return rH.includes(e)}function jM(e,t){const n=Rb(t),r=ue({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const oH=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:l}=e,{getPrefixCls:s}=u.useContext(Dt),d=s("tooltip",t),[f,m,h]=DM(d),v=jM(d,o),y=v.arrowStyle,S=Object.assign(Object.assign({},l),v.overlayStyle),C=ue(m,h,d,`${d}-pure`,`${d}-placement-${r}`,n,v.className);return f(u.createElement("div",{className:C,style:y},u.createElement("div",{className:`${d}-arrow`}),u.createElement(yE,Object.assign({},e,{className:m,prefixCls:d,overlayInnerStyle:S}),a)))};var iH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const lH=u.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:l,overlayClassName:s,color:d,overlayInnerStyle:f,children:m,afterOpenChange:h,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:S=!0,title:C,overlay:w,builtinPlacements:E,arrowPointAtCenter:$=!1,autoAdjustOverflow:O=!0}=e,N=!!S,[,I]=lo(),{getPopupContainer:R,getPrefixCls:_,direction:z}=u.useContext(Dt),D=gu(),L=u.useRef(null),B=()=>{var Be;(Be=L.current)===null||Be===void 0||Be.forceAlign()};u.useImperativeHandle(t,()=>{var Be;return{forceAlign:B,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:(Be=L.current)===null||Be===void 0?void 0:Be.nativeElement}});const[F,H]=kr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=!C&&!w&&C!==0,q=Be=>{var De,ye;H(k?!1:Be),k||((De=e.onOpenChange)===null||De===void 0||De.call(e,Be),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,Be))},V=u.useMemo(()=>{var Be,De;let ye=$;return typeof S=="object"&&(ye=(De=(Be=S.pointAtCenter)!==null&&Be!==void 0?Be:S.arrowPointAtCenter)!==null&&De!==void 0?De:$),E||zM({arrowPointAtCenter:ye,autoAdjustOverflow:O,arrowWidth:N?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[$,S,E,I]),W=u.useMemo(()=>C===0?C:w||C||"",[w,C]),G=u.createElement(Zm,{space:!0},typeof W=="function"?W():W),{getPopupContainer:X,placement:P="top",mouseEnterDelay:K=.1,mouseLeaveDelay:J=.1,overlayStyle:j,rootClassName:Y}=e,ne=iH(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),se=_("tooltip",a),de=_(),pe=e["data-popover-inject"];let Ce=F;!("open"in e)&&!("visible"in e)&&k&&(Ce=!1);const he=u.isValidElement(m)&&!uO(m)?m:u.createElement("span",null,m),me=he.props,be=!me.className||typeof me.className=="string"?ue(me.className,o||`${se}-open`):me.className,[fe,ge,Oe]=DM(se,!pe),Ne=jM(se,d),je=Ne.arrowStyle,Te=Object.assign(Object.assign({},f),Ne.overlayStyle),Ue=ue(s,{[`${se}-rtl`]:z==="rtl"},Ne.className,Y,ge,Oe),[qe,ze]=lp("Tooltip",ne.zIndex),Ve=u.createElement(XF,Object.assign({},ne,{zIndex:qe,showArrow:N,placement:P,mouseEnterDelay:K,mouseLeaveDelay:J,prefixCls:se,overlayClassName:Ue,overlayStyle:Object.assign(Object.assign({},je),j),getTooltipContainer:X||l||R,ref:L,builtinPlacements:V,overlay:G,visible:Ce,onVisibleChange:q,afterVisibleChange:h??v,overlayInnerStyle:Te,arrowContent:u.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:xs(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),Ce?za(he,{className:be}):he);return fe(u.createElement(Qh.Provider,{value:ze},Ve))}),Oo=lH;Oo._InternalPanelDoNotUseOrYouWillBeFired=oH;const sH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:m,colorBgElevated:h,popoverBg:v,titleBorderBottom:y,innerContentPadding:S,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},cr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,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":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:v,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:m,color:s,fontWeight:a,borderBottom:y,padding:C},[`${t}-inner-content`]:{color:n,padding:S}})},xE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},cH=e=>{const{componentCls:t}=e;return{[t]:kh.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},uH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:l,borderRadiusLG:s,marginXS:d,lineType:f,colorSplit:m,paddingSM:h}=e,v=n-r,y=v/2,S=v/2-t,C=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},bE(e)),Mb({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:d,titlePadding:o?`${y}px ${C}px ${S}px`:0,titleBorderBottom:o?`${t}px ${f} ${m}`:"none",innerContentPadding:o?`${h}px ${C}px`:0})},kM=nr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=In(e,{popoverBg:t,popoverColor:n});return[sH(r),cH(r),nv(r,"zoom-big")]},uH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var dH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const LM=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:u.createElement(u.Fragment,null,t&&u.createElement("div",{className:`${r}-title`},t),n&&u.createElement("div",{className:`${r}-inner-content`},n))},fH=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:l,content:s,children:d}=e,f=ep(l),m=ep(s),h=ue(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return u.createElement("div",{className:h,style:a},u.createElement("div",{className:`${n}-arrow`}),u.createElement(yE,Object.assign({},e,{className:t,prefixCls:n}),d||u.createElement(LM,{prefixCls:n,title:f,content:m})))},BM=e=>{const{prefixCls:t,className:n}=e,r=dH(e,["prefixCls","className"]),{getPrefixCls:a}=u.useContext(Dt),o=a("popover",t),[l,s,d]=kM(o);return l(u.createElement(fH,Object.assign({},r,{prefixCls:o,hashId:s,className:ue(n,d)})))};var mH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pH=u.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:o,content:l,overlayClassName:s,placement:d="top",trigger:f="hover",children:m,mouseEnterDelay:h=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:S={}}=e,C=mH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:w}=u.useContext(Dt),E=w("popover",a),[$,O,N]=kM(E),I=w(),R=ue(s,O,N),[_,z]=kr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=(k,q)=>{z(k,!0),y?.(k,q)},L=k=>{k.keyCode===Pt.ESC&&D(!1,k)},B=k=>{D(k)},F=ep(o),H=ep(l);return $(u.createElement(Oo,Object.assign({placement:d,trigger:f,mouseEnterDelay:h,mouseLeaveDelay:v,overlayStyle:S},C,{prefixCls:E,overlayClassName:R,ref:t,open:_,onOpenChange:B,overlay:F||H?u.createElement(LM,{prefixCls:E,title:F,content:H}):null,transitionName:xs(I,"zoom-big",C.transitionName),"data-popover-inject":!0}),za(m,{onKeyDown:k=>{var q,V;u.isValidElement(m)&&((V=m==null?void 0:(q=m.props).onKeyDown)===null||V===void 0||V.call(q,k)),L(k)}})))}),Fy=pH;Fy._InternalPanelDoNotUseOrYouWillBeFired=BM;const gH=new zn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),hH=new zn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),vH=new zn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),yH=new zn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),bH=new zn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xH=new zn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SH=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:l,statusSize:s,dotSize:d,textFontWeight:f,indicatorHeight:m,indicatorHeightSM:h,marginXS:v,calc:y}=e,S=`${r}-scroll-number`,C=fb(e,(w,E)=>{let{darkColor:$}=E;return{[`&${t} ${t}-color-${w}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:m,height:m,color:e.badgeTextColor,fontWeight:f,fontSize:o,lineHeight:ie(m),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(m).div(2).equal(),boxShadow:`0 0 0 ${ie(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:l,lineHeight:ie(h),borderRadius:y(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ie(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ie(a)} ${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:xH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,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:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:gH,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:v,color:e.colorText,fontSize:e.fontSize}}}),C),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:hH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:vH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:yH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:bH,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:m,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${S}-only-unit`]:{height:m,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%)"}}})}},FM=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,l=n,s=e.colorTextLightSolid,d=e.colorError,f=e.colorErrorHover;return In(e,{badgeFontHeight:o,badgeShadowSize:l,badgeTextColor:s,badgeColor:d,badgeColorHover:f,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},HM=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},CH=nr("Badge",e=>{const t=FM(e);return SH(t)},HM),wH=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,l=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,d=fb(e,(f,m)=>{let{darkColor:h}=m;return{[`&${l}-color-${f}`]:{background:h,color:h}}});return{[s]:{position:"relative"},[l]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{position:"absolute",top:r,padding:`0 ${ie(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ie(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${l}-text`]:{color:e.badgeTextColor},[`${l}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${ie(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${l}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},EH=nr(["Badge","Ribbon"],e=>{const t=FM(e);return wH(t)},HM),$H=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:l,placement:s="end",rootClassName:d}=e,{getPrefixCls:f,direction:m}=u.useContext(Dt),h=f("ribbon",n),v=`${h}-wrapper`,[y,S,C]=EH(h,v),w=Rb(a,!1),E=ue(h,`${h}-placement-${s}`,{[`${h}-rtl`]:m==="rtl",[`${h}-color-${a}`]:w},t),$={},O={};return a&&!w&&($.background=a,O.color=a),y(u.createElement("div",{className:ue(v,d,S,C)},o,u.createElement("div",{className:ue(E,S),style:Object.assign(Object.assign({},$),r)},u.createElement("span",{className:`${h}-text`},l),u.createElement("div",{className:`${h}-corner`,style:O}))))},k$=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),u.createElement("span",{style:o,className:ue(`${t}-only-unit`,{current:r})},n)};function OH(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const MH=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[l,s]=u.useState(a),[d,f]=u.useState(o),m=()=>{s(a),f(o)};u.useEffect(()=>{const y=setTimeout(m,1e3);return()=>clearTimeout(y)},[a]);let h,v;if(l===a||Number.isNaN(a)||Number.isNaN(l))h=[u.createElement(k$,Object.assign({},e,{key:a,current:!0}))],v={transition:"none"};else{h=[];const y=a+10,S=[];for(let E=a;E<=y;E+=1)S.push(E);const C=S.findIndex(E=>E%10===l);h=S.map((E,$)=>{const O=E%10;return u.createElement(k$,Object.assign({},e,{key:E,value:O,offset:$-C,current:$===C}))});const w=d<o?1:-1;v={transform:`translateY(${-OH(l,a,w)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:m},h)};var RH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const NH=u.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:o,style:l,title:s,show:d,component:f="sup",children:m}=e,h=RH(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:v}=u.useContext(Dt),y=v("scroll-number",n),S=Object.assign(Object.assign({},h),{"data-show":d,style:l,className:ue(y,a,o),title:s});let C=r;if(r&&Number(r)%1===0){const w=String(r).split("");C=u.createElement("bdi",null,w.map((E,$)=>u.createElement(MH,{prefixCls:y,count:Number(r),value:E,key:w.length-$})))}return l?.borderColor&&(S.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),m?za(m,w=>({className:ue(`${y}-custom-component`,w?.className,o)})):u.createElement(f,Object.assign({},S,{ref:t}),C)});var TH=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IH=u.forwardRef((e,t)=>{var n,r,a,o,l;const{prefixCls:s,scrollNumberPrefixCls:d,children:f,status:m,text:h,color:v,count:y=null,overflowCount:S=99,dot:C=!1,size:w="default",title:E,offset:$,style:O,className:N,rootClassName:I,classNames:R,styles:_,showZero:z=!1}=e,D=TH(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:L,direction:B,badge:F}=u.useContext(Dt),H=L("badge",s),[k,q,V]=CH(H),W=y>S?`${S}+`:y,G=W==="0"||W===0,X=y===null||G&&!z,P=(m!=null||v!=null)&&X,K=C&&!G,J=K?"":W,j=u.useMemo(()=>(J==null||J===""||G&&!z)&&!K,[J,G,z,K]),Y=u.useRef(y);j||(Y.current=y);const ne=Y.current,se=u.useRef(J);j||(se.current=J);const de=se.current,pe=u.useRef(K);j||(pe.current=K);const Ce=u.useMemo(()=>{if(!$)return Object.assign(Object.assign({},F?.style),O);const je={marginTop:$[1]};return B==="rtl"?je.left=parseInt($[0],10):je.right=-parseInt($[0],10),Object.assign(Object.assign(Object.assign({},je),F?.style),O)},[B,$,O,F?.style]),he=E??(typeof ne=="string"||typeof ne=="number"?ne:void 0),me=j||!h?null:u.createElement("span",{className:`${H}-status-text`},h),be=!ne||typeof ne!="object"?void 0:za(ne,je=>({style:Object.assign(Object.assign({},Ce),je.style)})),fe=Rb(v,!1),ge=ue(R?.indicator,(n=F?.classNames)===null||n===void 0?void 0:n.indicator,{[`${H}-status-dot`]:P,[`${H}-status-${m}`]:!!m,[`${H}-color-${v}`]:fe}),Oe={};v&&!fe&&(Oe.color=v,Oe.background=v);const Ne=ue(H,{[`${H}-status`]:P,[`${H}-not-a-wrapper`]:!f,[`${H}-rtl`]:B==="rtl"},N,I,F?.className,(r=F?.classNames)===null||r===void 0?void 0:r.root,R?.root,q,V);if(!f&&P){const je=Ce.color;return k(u.createElement("span",Object.assign({},D,{className:Ne,style:Object.assign(Object.assign(Object.assign({},_?.root),(a=F?.styles)===null||a===void 0?void 0:a.root),Ce)}),u.createElement("span",{className:ge,style:Object.assign(Object.assign(Object.assign({},_?.indicator),(o=F?.styles)===null||o===void 0?void 0:o.indicator),Oe)}),h&&u.createElement("span",{style:{color:je},className:`${H}-status-text`},h)))}return k(u.createElement("span",Object.assign({ref:t},D,{className:Ne,style:Object.assign(Object.assign({},(l=F?.styles)===null||l===void 0?void 0:l.root),_?.root)}),f,u.createElement(Mo,{visible:!j,motionName:`${H}-zoom`,motionAppear:!1,motionDeadline:1e3},je=>{let{className:Te}=je;var Ue,qe;const ze=L("scroll-number",d),Ve=pe.current,Be=ue(R?.indicator,(Ue=F?.classNames)===null||Ue===void 0?void 0:Ue.indicator,{[`${H}-dot`]:Ve,[`${H}-count`]:!Ve,[`${H}-count-sm`]:w==="small",[`${H}-multiple-words`]:!Ve&&de&&de.toString().length>1,[`${H}-status-${m}`]:!!m,[`${H}-color-${v}`]:fe});let De=Object.assign(Object.assign(Object.assign({},_?.indicator),(qe=F?.styles)===null||qe===void 0?void 0:qe.indicator),Ce);return v&&!fe&&(De=De||{},De.background=v),u.createElement(NH,{prefixCls:ze,show:!j,motionClassName:Te,className:Be,count:de,title:he,style:De,key:"scrollNumber"},be)}),me))}),fh=IH;fh.Ribbon=$H;var _H=Pt.ESC,AH=Pt.TAB;function PH(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,l=u.useRef(!1),s=function(){if(t){var h,v;(h=n.current)===null||h===void 0||(v=h.focus)===null||v===void 0||v.call(h),r?.(!1)}},d=function(){var h;return(h=o.current)!==null&&h!==void 0&&h.focus?(o.current.focus(),l.current=!0,!0):!1},f=function(h){switch(h.keyCode){case _H:s();break;case AH:{var v=!1;l.current||(v=d()),v?h.preventDefault():s();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&sr(d,3),function(){window.removeEventListener("keydown",f),l.current=!1}):function(){l.current=!1}},[t])}var zH=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=u.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=io(t,Gh(o));return Se.createElement(Se.Fragment,null,r&&Se.createElement("div",{className:"".concat(a,"-arrow")}),Se.cloneElement(o,{ref:Il(o)?l:void 0}))}),Em={adjustX:1,adjustY:1},$m=[0,0],DH={topLeft:{points:["bl","tl"],overflow:Em,offset:[0,-4],targetOffset:$m},top:{points:["bc","tc"],overflow:Em,offset:[0,-4],targetOffset:$m},topRight:{points:["br","tr"],overflow:Em,offset:[0,-4],targetOffset:$m},bottomLeft:{points:["tl","bl"],overflow:Em,offset:[0,4],targetOffset:$m},bottom:{points:["tc","bc"],overflow:Em,offset:[0,4],targetOffset:$m},bottomRight:{points:["tr","br"],overflow:Em,offset:[0,4],targetOffset:$m}},jH=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function kH(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,l=o===void 0?"rc-dropdown":o,s=e.transitionName,d=e.animation,f=e.align,m=e.placement,h=m===void 0?"bottomLeft":m,v=e.placements,y=v===void 0?DH:v,S=e.getPopupContainer,C=e.showAction,w=e.hideAction,E=e.overlayClassName,$=e.overlayStyle,O=e.visible,N=e.trigger,I=N===void 0?["hover"]:N,R=e.autoFocus,_=e.overlay,z=e.children,D=e.onVisibleChange,L=ln(e,jH),B=Se.useState(),F=Re(B,2),H=F[0],k=F[1],q="visible"in e?O:H,V=Se.useRef(null),W=Se.useRef(null),G=Se.useRef(null);Se.useImperativeHandle(t,function(){return V.current});var X=function(pe){k(pe),D?.(pe)};PH({visible:q,triggerRef:G,onVisibleChange:X,autoFocus:R,overlayRef:W});var P=function(pe){var Ce=e.onOverlayClick;k(!1),Ce&&Ce(pe)},K=function(){return Se.createElement(zH,{ref:W,overlay:_,prefixCls:l,arrow:a})},J=function(){return typeof _=="function"?K:K()},j=function(){var pe=e.minOverlayWidthMatchTrigger,Ce=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?pe:!Ce},Y=function(){var pe=e.openClassName;return pe!==void 0?pe:"".concat(l,"-open")},ne=Se.cloneElement(z,{className:ue((n=z.props)===null||n===void 0?void 0:n.className,q&&Y()),ref:Il(z)?io(G,Gh(z)):void 0}),se=w;return!se&&I.indexOf("contextMenu")!==-1&&(se=["click"]),Se.createElement(wb,Je({builtinPlacements:y},L,{prefixCls:l,ref:V,popupClassName:ue(E,te({},"".concat(l,"-show-arrow"),a)),popupStyle:$,action:I,showAction:C,hideAction:se,popupPlacement:h,popupAlign:f,popupTransitionName:s,popupAnimation:d,popupVisible:q,stretch:j()?"minWidth":"",popup:J(),onPopupVisibleChange:X,onPopupClick:P,getPopupContainer:S}),ne)}const VM=Se.forwardRef(kH);var KM=u.createContext(null);function WM(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function UM(e){var t=u.useContext(KM);return WM(t,e)}var LH=["children","locked"],_l=u.createContext(null);function BH(e,t){var n=le({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Vh(e){var t=e.children,n=e.locked,r=ln(e,LH),a=u.useContext(_l),o=Hd(function(){return BH(a,r)},[a,r],function(l,s){return!n&&(l[0]!==s[0]||!vs(l[1],s[1],!0))});return u.createElement(_l.Provider,{value:o},t)}var FH=[],qM=u.createContext(null);function Nb(){return u.useContext(qM)}var GM=u.createContext(FH);function up(e){var t=u.useContext(GM);return u.useMemo(function(){return e!==void 0?[].concat(st(t),[e]):t},[t,e])}var XM=u.createContext(null),SE=u.createContext({});function L$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Jh(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),l=null;return a&&!Number.isNaN(o)?l=o:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function HH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=st(e.querySelectorAll("*")).filter(function(r){return L$(r,t)});return L$(e,t)&&n.unshift(e),n}var DC=Pt.LEFT,jC=Pt.RIGHT,kC=Pt.UP,gy=Pt.DOWN,hy=Pt.ENTER,YM=Pt.ESC,th=Pt.HOME,nh=Pt.END,B$=[kC,gy,DC,jC];function VH(e,t,n,r){var a,o="prev",l="next",s="children",d="parent";if(e==="inline"&&r===hy)return{inlineTrigger:!0};var f=te(te({},kC,o),gy,l),m=te(te(te(te({},DC,n?l:o),jC,n?o:l),gy,s),hy,s),h=te(te(te(te(te(te({},kC,o),gy,l),hy,s),YM,d),DC,n?s:d),jC,n?d:s),v={inline:f,horizontal:m,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h},y=(a=v["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(y){case o:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function KH(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function WH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function CE(e,t){var n=HH(e,!0);return n.filter(function(r){return t.has(r)})}function F$(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=CE(e,t),o=a.length,l=a.findIndex(function(s){return n===s});return r<0?l===-1?l=o-1:l-=1:r>0&&(l+=1),l=(l+o)%o,a[l]}var LC=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(WM(n,l),"']"));s&&(r.add(s),o.set(s,l),a.set(l,s))}),{elements:r,key2element:a,element2key:o}};function UH(e,t,n,r,a,o,l,s,d,f){var m=u.useRef(),h=u.useRef();h.current=t;var v=function(){sr.cancel(m.current)};return u.useEffect(function(){return function(){v()}},[]),function(y){var S=y.which;if([].concat(B$,[hy,YM,th,nh]).includes(S)){var C=o(),w=LC(C,r),E=w,$=E.elements,O=E.key2element,N=E.element2key,I=O.get(t),R=WH(I,$),_=N.get(R),z=VH(e,l(_,!0).length===1,n,S);if(!z&&S!==th&&S!==nh)return;(B$.includes(S)||[th,nh].includes(S))&&y.preventDefault();var D=function(W){if(W){var G=W,X=W.querySelector("a");X!=null&&X.getAttribute("href")&&(G=X);var P=N.get(W);s(P),v(),m.current=sr(function(){h.current===P&&G.focus()})}};if([th,nh].includes(S)||z.sibling||!R){var L;!R||e==="inline"?L=a.current:L=KH(R);var B,F=CE(L,$);S===th?B=F[0]:S===nh?B=F[F.length-1]:B=F$(L,$,R,z.offset),D(B)}else if(z.inlineTrigger)d(_);else if(z.offset>0)d(_,!0),v(),m.current=sr(function(){w=LC(C,r);var V=R.getAttribute("aria-controls"),W=document.getElementById(V),G=F$(W,w.elements);D(G)},5);else if(z.offset<0){var H=l(_,!0),k=H[H.length-2],q=O.get(k);d(k,!1),D(q)}}f?.(y)}}function qH(e){Promise.resolve().then(e)}var wE="__RC_UTIL_PATH_SPLIT__",H$=function(t){return t.join(wE)},GH=function(t){return t.split(wE)},BC="rc-menu-more";function XH(){var e=u.useState({}),t=Re(e,2),n=t[1],r=u.useRef(new Map),a=u.useRef(new Map),o=u.useState([]),l=Re(o,2),s=l[0],d=l[1],f=u.useRef(0),m=u.useRef(!1),h=function(){m.current||n({})},v=u.useCallback(function(O,N){var I=H$(N);a.current.set(I,O),r.current.set(O,I),f.current+=1;var R=f.current;qH(function(){R===f.current&&h()})},[]),y=u.useCallback(function(O,N){var I=H$(N);a.current.delete(I),r.current.delete(O)},[]),S=u.useCallback(function(O){d(O)},[]),C=u.useCallback(function(O,N){var I=r.current.get(O)||"",R=GH(I);return N&&s.includes(R[0])&&R.unshift(BC),R},[s]),w=u.useCallback(function(O,N){return O.filter(function(I){return I!==void 0}).some(function(I){var R=C(I,!0);return R.includes(N)})},[C]),E=function(){var N=st(r.current.keys());return s.length&&N.push(BC),N},$=u.useCallback(function(O){var N="".concat(r.current.get(O)).concat(wE),I=new Set;return st(a.current.keys()).forEach(function(R){R.startsWith(N)&&I.add(a.current.get(R))}),I},[]);return u.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:v,unregisterPath:y,refreshOverflowKeys:S,isSubPathKey:w,getKeyPath:C,getKeys:E,getSubPathKeys:$}}function mh(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var YH=Math.random().toFixed(5).toString().slice(2),V$=0;function QH(e){var t=kr(e,{value:e}),n=Re(t,2),r=n[0],a=n[1];return u.useEffect(function(){V$+=1;var o="".concat(YH,"-").concat(V$);a("rc-menu-uuid-".concat(o))},[]),r}function QM(e,t,n,r){var a=u.useContext(_l),o=a.activeKey,l=a.onActive,s=a.onInactive,d={active:o===e};return t||(d.onMouseEnter=function(f){n?.({key:e,domEvent:f}),l(e)},d.onMouseLeave=function(f){r?.({key:e,domEvent:f}),s(e)}),d}function ZM(e){var t=u.useContext(_l),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*a}:{paddingLeft:o*a}}function JM(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=u.createElement(t,le({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var ZH=["item"];function Hy(e){var t=e.item,n=ln(e,ZH);return Object.defineProperty(n,"item",{get:function(){return Yr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var JH=["title","attribute","elementRef"],eV=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],tV=["active"],nV=(function(e){nl(n,e);var t=Al(n);function n(){return ua(this,n),t.apply(this,arguments)}return da(n,[{key:"render",value:function(){var a=this.props,o=a.title,l=a.attribute,s=a.elementRef,d=ln(a,JH),f=Qr(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Yr(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(gs.Item,Je({},l,{title:typeof o=="string"?o:void 0},f,{ref:s}))}}]),n})(u.Component),rV=u.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var o=e.disabled,l=e.itemIcon,s=e.children,d=e.role,f=e.onMouseEnter,m=e.onMouseLeave,h=e.onClick,v=e.onKeyDown,y=e.onFocus,S=ln(e,eV),C=UM(a),w=u.useContext(_l),E=w.prefixCls,$=w.onItemClick,O=w.disabled,N=w.overflowDisabled,I=w.itemIcon,R=w.selectedKeys,_=w.onActive,z=u.useContext(SE),D=z._internalRenderMenuItem,L="".concat(E,"-item"),B=u.useRef(),F=u.useRef(),H=O||o,k=oc(t,F),q=up(a),V=function(Ce){return{key:a,keyPath:st(q).reverse(),item:B.current,domEvent:Ce}},W=l||I,G=QM(a,H,f,m),X=G.active,P=ln(G,tV),K=R.includes(a),J=ZM(q.length),j=function(Ce){if(!H){var he=V(Ce);h?.(Hy(he)),$(he)}},Y=function(Ce){if(v?.(Ce),Ce.which===Pt.ENTER){var he=V(Ce);h?.(Hy(he)),$(he)}},ne=function(Ce){_(a),y?.(Ce)},se={};e.role==="option"&&(se["aria-selected"]=K);var de=u.createElement(nV,Je({ref:B,elementRef:k,role:d===null?"none":d||"menuitem",tabIndex:o?null:-1,"data-menu-id":N&&C?null:C},S,P,se,{component:"li","aria-disabled":o,style:le(le({},J),n),className:ue(L,te(te(te({},"".concat(L,"-active"),X),"".concat(L,"-selected"),K),"".concat(L,"-disabled"),H),r),onClick:j,onKeyDown:Y,onFocus:ne}),s,u.createElement(JM,{props:le(le({},e),{},{isSelected:K}),icon:W}));return D&&(de=D(de,e,{selected:K})),de});function aV(e,t){var n=e.eventKey,r=Nb(),a=up(n);return u.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:u.createElement(rV,Je({},e,{ref:t}))}const sv=u.forwardRef(aV);var oV=["className","children"],iV=function(t,n){var r=t.className,a=t.children,o=ln(t,oV),l=u.useContext(_l),s=l.prefixCls,d=l.mode,f=l.rtl;return u.createElement("ul",Je({className:ue(s,f&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),a)},EE=u.forwardRef(iV);EE.displayName="SubMenuList";function $E(e,t){return ro(e).map(function(n,r){if(u.isValidElement(n)){var a,o,l=n.key,s=(a=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:l,d=s==null;d&&(s="tmp_key-".concat([].concat(st(t),[r]).join("-")));var f={key:s,eventKey:s};return u.cloneElement(n,f)}return n})}var $o={adjustX:1,adjustY:1},lV={topLeft:{points:["bl","tl"],overflow:$o},topRight:{points:["br","tr"],overflow:$o},bottomLeft:{points:["tl","bl"],overflow:$o},bottomRight:{points:["tr","br"],overflow:$o},leftTop:{points:["tr","tl"],overflow:$o},leftBottom:{points:["br","bl"],overflow:$o},rightTop:{points:["tl","tr"],overflow:$o},rightBottom:{points:["bl","br"],overflow:$o}},sV={topLeft:{points:["bl","tl"],overflow:$o},topRight:{points:["br","tr"],overflow:$o},bottomLeft:{points:["tl","bl"],overflow:$o},bottomRight:{points:["tr","br"],overflow:$o},rightTop:{points:["tr","tl"],overflow:$o},rightBottom:{points:["br","bl"],overflow:$o},leftTop:{points:["tl","tr"],overflow:$o},leftBottom:{points:["bl","br"],overflow:$o}};function eR(e,t,n){if(t)return t;if(n)return n[e]||n.other}var cV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function uV(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,o=e.popupStyle,l=e.popupClassName,s=e.popupOffset,d=e.disabled,f=e.mode,m=e.onVisibleChange,h=u.useContext(_l),v=h.getPopupContainer,y=h.rtl,S=h.subMenuOpenDelay,C=h.subMenuCloseDelay,w=h.builtinPlacements,E=h.triggerSubMenuAction,$=h.forceSubMenuRender,O=h.rootClassName,N=h.motion,I=h.defaultMotions,R=u.useState(!1),_=Re(R,2),z=_[0],D=_[1],L=le(y?le({},sV):le({},lV),w),B=cV[f],F=eR(f,N,I),H=u.useRef(F);f!=="inline"&&(H.current=F);var k=le(le({},H.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),q=u.useRef();return u.useEffect(function(){return q.current=sr(function(){D(n)}),function(){sr.cancel(q.current)}},[n]),u.createElement(wb,{prefixCls:t,popupClassName:ue("".concat(t,"-popup"),te({},"".concat(t,"-rtl"),y),l,O),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:L,popupPlacement:B,popupVisible:z,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:d?[]:[E],mouseEnterDelay:S,mouseLeaveDelay:C,onPopupVisibleChange:m,forceRender:$,popupMotion:k,fresh:!0},r)}function dV(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,o="inline",l=u.useContext(_l),s=l.prefixCls,d=l.forceSubMenuRender,f=l.motion,m=l.defaultMotions,h=l.mode,v=u.useRef(!1);v.current=h===o;var y=u.useState(!v.current),S=Re(y,2),C=S[0],w=S[1],E=v.current?n:!1;u.useEffect(function(){v.current&&w(!1)},[h]);var $=le({},eR(o,f,m));r.length>1&&($.motionAppear=!1);var O=$.onVisibleChanged;return $.onVisibleChanged=function(N){return!v.current&&!N&&w(!0),O?.(N)},C?null:u.createElement(Vh,{mode:o,locked:!v.current},u.createElement(Mo,Je({visible:E},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(N){var I=N.className,R=N.style;return u.createElement(EE,{id:t,className:I,style:R},a)}))}var fV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],mV=["active"],pV=u.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,d=e.children,f=e.itemIcon,m=e.expandIcon,h=e.popupClassName,v=e.popupOffset,y=e.popupStyle,S=e.onClick,C=e.onMouseEnter,w=e.onMouseLeave,E=e.onTitleClick,$=e.onTitleMouseEnter,O=e.onTitleMouseLeave,N=ln(e,fV),I=UM(o),R=u.useContext(_l),_=R.prefixCls,z=R.mode,D=R.openKeys,L=R.disabled,B=R.overflowDisabled,F=R.activeKey,H=R.selectedKeys,k=R.itemIcon,q=R.expandIcon,V=R.onItemClick,W=R.onOpenChange,G=R.onActive,X=u.useContext(SE),P=X._internalRenderSubMenuItem,K=u.useContext(XM),J=K.isSubPathKey,j=up(),Y="".concat(_,"-submenu"),ne=L||l,se=u.useRef(),de=u.useRef(),pe=f??k,Ce=m??q,he=D.includes(o),me=!B&&he,be=J(H,o),fe=QM(o,ne,$,O),ge=fe.active,Oe=ln(fe,mV),Ne=u.useState(!1),je=Re(Ne,2),Te=je[0],Ue=je[1],qe=function(mt){ne||Ue(mt)},ze=function(mt){qe(!0),C?.({key:o,domEvent:mt})},Ve=function(mt){qe(!1),w?.({key:o,domEvent:mt})},Be=u.useMemo(function(){return ge||(z!=="inline"?Te||J([F],o):!1)},[z,ge,F,Te,o,J]),De=ZM(j.length),ye=function(mt){ne||(E?.({key:o,domEvent:mt}),z==="inline"&&W(o,!he))},oe=mh(function(tt){S?.(Hy(tt)),V(tt)}),we=function(mt){z!=="inline"&&W(o,mt)},Fe=function(){G(o)},xe=I&&"".concat(I,"-popup"),_e=u.createElement("div",Je({role:"menuitem",style:De,className:"".concat(Y,"-title"),tabIndex:ne?null:-1,ref:se,title:typeof a=="string"?a:null,"data-menu-id":B&&I?null:I,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":xe,"aria-disabled":ne,onClick:ye,onFocus:Fe},Oe),a,u.createElement(JM,{icon:z!=="horizontal"?Ce:void 0,props:le(le({},e),{},{isOpen:me,isSubMenu:!0})},u.createElement("i",{className:"".concat(Y,"-arrow")}))),rt=u.useRef(z);if(z!=="inline"&&j.length>1?rt.current="vertical":rt.current=z,!B){var lt=rt.current;_e=u.createElement(uV,{mode:lt,prefixCls:Y,visible:!s&&me&&z!=="inline",popupClassName:h,popupOffset:v,popupStyle:y,popup:u.createElement(Vh,{mode:lt==="horizontal"?"vertical":lt},u.createElement(EE,{id:xe,ref:de},d)),disabled:ne,onVisibleChange:we},_e)}var ut=u.createElement(gs.Item,Je({ref:t,role:"none"},N,{component:"li",style:n,className:ue(Y,"".concat(Y,"-").concat(z),r,te(te(te(te({},"".concat(Y,"-open"),me),"".concat(Y,"-active"),Be),"".concat(Y,"-selected"),be),"".concat(Y,"-disabled"),ne)),onMouseEnter:ze,onMouseLeave:Ve}),_e,!B&&u.createElement(dV,{id:xe,open:me,keyPath:j},d));return P&&(ut=P(ut,e,{selected:be,active:Be,open:me,disabled:ne})),u.createElement(Vh,{onItemClick:oe,mode:z==="horizontal"?"vertical":z,itemIcon:pe,expandIcon:Ce},ut)}),Tb=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=up(n),o=$E(r,a),l=Nb();u.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]);var s;return l?s=o:s=u.createElement(pV,Je({ref:t},e),o),u.createElement(GM.Provider,{value:a},s)});function OE(e){var t=e.className,n=e.style,r=u.useContext(_l),a=r.prefixCls,o=Nb();return o?null:u.createElement("li",{role:"separator",className:ue("".concat(a,"-item-divider"),t),style:n})}var gV=["className","title","eventKey","children"],hV=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=ln(e,gV),l=u.useContext(_l),s=l.prefixCls,d="".concat(s,"-item-group");return u.createElement("li",Je({ref:t,role:"presentation"},o,{onClick:function(m){return m.stopPropagation()},className:ue(d,n)}),u.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),ME=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=up(n),o=$E(r,a),l=Nb();return l?o:u.createElement(hV,Je({ref:t},Qr(e,["warnKey"])),o)}),vV=["label","children","key","type","extra"];function FC(e,t,n){var r=t.item,a=t.group,o=t.submenu,l=t.divider;return(e||[]).map(function(s,d){if(s&&Vt(s)==="object"){var f=s,m=f.label,h=f.children,v=f.key,y=f.type,S=f.extra,C=ln(f,vV),w=v??"tmp-".concat(d);return h||y==="group"?y==="group"?u.createElement(a,Je({key:w},C,{title:m}),FC(h,t,n)):u.createElement(o,Je({key:w},C,{title:m}),FC(h,t,n)):y==="divider"?u.createElement(l,Je({key:w},C)):u.createElement(r,Je({key:w},C),m,(!!S||S===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},S))}return null}).filter(function(s){return s})}function K$(e,t,n,r,a){var o=e,l=le({divider:OE,item:sv,group:ME,submenu:Tb},r);return t&&(o=FC(t,l,a)),$E(o,n)}var yV=["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"],wd=[],bV=u.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,l=r.rootClassName,s=r.style,d=r.className,f=r.tabIndex,m=f===void 0?0:f,h=r.items,v=r.children,y=r.direction,S=r.id,C=r.mode,w=C===void 0?"vertical":C,E=r.inlineCollapsed,$=r.disabled,O=r.disabledOverflow,N=r.subMenuOpenDelay,I=N===void 0?.1:N,R=r.subMenuCloseDelay,_=R===void 0?.1:R,z=r.forceSubMenuRender,D=r.defaultOpenKeys,L=r.openKeys,B=r.activeKey,F=r.defaultActiveFirst,H=r.selectable,k=H===void 0?!0:H,q=r.multiple,V=q===void 0?!1:q,W=r.defaultSelectedKeys,G=r.selectedKeys,X=r.onSelect,P=r.onDeselect,K=r.inlineIndent,J=K===void 0?24:K,j=r.motion,Y=r.defaultMotions,ne=r.triggerSubMenuAction,se=ne===void 0?"hover":ne,de=r.builtinPlacements,pe=r.itemIcon,Ce=r.expandIcon,he=r.overflowedIndicator,me=he===void 0?"...":he,be=r.overflowedIndicatorPopupClassName,fe=r.getPopupContainer,ge=r.onClick,Oe=r.onOpenChange,Ne=r.onKeyDown;r.openAnimation,r.openTransitionName;var je=r._internalRenderMenuItem,Te=r._internalRenderSubMenuItem,Ue=r._internalComponents,qe=ln(r,yV),ze=u.useMemo(function(){return[K$(v,h,wd,Ue,o),K$(v,h,wd,{},o)]},[v,h,Ue]),Ve=Re(ze,2),Be=Ve[0],De=Ve[1],ye=u.useState(!1),oe=Re(ye,2),we=oe[0],Fe=oe[1],xe=u.useRef(),_e=QH(S),rt=y==="rtl",lt=kr(D,{value:L,postState:function(fn){return fn||wd}}),ut=Re(lt,2),tt=ut[0],mt=ut[1],at=function(fn){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mn(){mt(fn),Oe?.(fn)}on?tc.flushSync(Mn):Mn()},gt=u.useState(tt),Nt=Re(gt,2),tn=Nt[0],Wt=Nt[1],dn=u.useRef(!1),Qt=u.useMemo(function(){return(w==="inline"||w==="vertical")&&E?["vertical",E]:[w,!1]},[w,E]),nn=Re(Qt,2),Zt=nn[0],Lt=nn[1],_t=Zt==="inline",It=u.useState(Zt),ve=Re(It,2),Me=ve[0],Xe=ve[1],Qe=u.useState(Lt),ke=Re(Qe,2),Ae=ke[0],He=ke[1];u.useEffect(function(){Xe(Zt),He(Lt),dn.current&&(_t?mt(tn):at(wd))},[Zt,Lt]);var Ye=u.useState(0),$t=Re(Ye,2),xt=$t[0],pt=$t[1],ct=xt>=Be.length-1||Me!=="horizontal"||O;u.useEffect(function(){_t&&Wt(tt)},[tt]),u.useEffect(function(){return dn.current=!0,function(){dn.current=!1}},[]);var dt=XH(),ot=dt.registerPath,nt=dt.unregisterPath,Tt=dt.refreshOverflowKeys,Mt=dt.isSubPathKey,zt=dt.getKeyPath,jt=dt.getKeys,rn=dt.getSubPathKeys,yt=u.useMemo(function(){return{registerPath:ot,unregisterPath:nt}},[ot,nt]),Ot=u.useMemo(function(){return{isSubPathKey:Mt}},[Mt]);u.useEffect(function(){Tt(ct?wd:Be.slice(xt+1).map(function(kt){return kt.key}))},[xt,ct]);var Ft=kr(B||F&&((n=Be[0])===null||n===void 0?void 0:n.key),{value:B}),Gt=Re(Ft,2),Jt=Gt[0],un=Gt[1],On=mh(function(kt){un(kt)}),Qn=mh(function(){un(void 0)});u.useImperativeHandle(t,function(){return{list:xe.current,focus:function(fn){var on,Mn=jt(),_n=LC(Mn,_e),Ir=_n.elements,yr=_n.key2element,ia=_n.element2key,la=CE(xe.current,Ir),wr=Jt??(la[0]?ia.get(la[0]):(on=Be.find(function(Sn){return!Sn.props.disabled}))===null||on===void 0?void 0:on.key),Fr=yr.get(wr);if(wr&&Fr){var $a;Fr==null||($a=Fr.focus)===null||$a===void 0||$a.call(Fr,fn)}}}});var Xt=kr(W||[],{value:G,postState:function(fn){return Array.isArray(fn)?fn:fn==null?wd:[fn]}}),an=Re(Xt,2),Bt=an[0],gr=an[1],Lr=function(fn){if(k){var on=fn.key,Mn=Bt.includes(on),_n;V?Mn?_n=Bt.filter(function(yr){return yr!==on}):_n=[].concat(st(Bt),[on]):_n=[on],gr(_n);var Ir=le(le({},fn),{},{selectedKeys:_n});Mn?P?.(Ir):X?.(Ir)}!V&&tt.length&&Me!=="inline"&&at(wd)},so=mh(function(kt){ge?.(Hy(kt)),Lr(kt)}),Da=mh(function(kt,fn){var on=tt.filter(function(_n){return _n!==kt});if(fn)on.push(kt);else if(Me!=="inline"){var Mn=rn(kt);on=on.filter(function(_n){return!Mn.has(_n)})}vs(tt,on,!0)||at(on,!0)}),fr=function(fn,on){var Mn=on??!tt.includes(fn);Da(fn,Mn)},Ea=UH(Me,Jt,rt,_e,xe,jt,zt,un,fr,Ne);u.useEffect(function(){Fe(!0)},[]);var fa=u.useMemo(function(){return{_internalRenderMenuItem:je,_internalRenderSubMenuItem:Te}},[je,Te]),Br=Me!=="horizontal"||O?Be:Be.map(function(kt,fn){return u.createElement(Vh,{key:kt.key,overflowDisabled:fn>xt},kt)}),xn=u.createElement(gs,Je({id:S,ref:xe,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:sv,className:ue(o,"".concat(o,"-root"),"".concat(o,"-").concat(Me),d,te(te({},"".concat(o,"-inline-collapsed"),Ae),"".concat(o,"-rtl"),rt),l),dir:y,style:s,role:"menu",tabIndex:m,data:Br,renderRawItem:function(fn){return fn},renderRawRest:function(fn){var on=fn.length,Mn=on?Be.slice(-on):null;return u.createElement(Tb,{eventKey:BC,title:me,disabled:ct,internalPopupClose:on===0,popupClassName:be},Mn)},maxCount:Me!=="horizontal"||O?gs.INVALIDATE:gs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(fn){pt(fn)},onKeyDown:Ea},qe));return u.createElement(SE.Provider,{value:fa},u.createElement(KM.Provider,{value:_e},u.createElement(Vh,{prefixCls:o,rootClassName:l,mode:Me,openKeys:tt,rtl:rt,disabled:$,motion:we?j:null,defaultMotions:we?Y:null,activeKey:Jt,onActive:On,onInactive:Qn,selectedKeys:Bt,inlineIndent:J,subMenuOpenDelay:I,subMenuCloseDelay:_,forceSubMenuRender:z,builtinPlacements:de,triggerSubMenuAction:se,getPopupContainer:fe,itemIcon:pe,expandIcon:Ce,onItemClick:so,onOpenChange:Da},u.createElement(XM.Provider,{value:Ot},xn),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(qM.Provider,{value:yt},De)))))}),dp=bV;dp.Item=sv;dp.SubMenu=Tb;dp.ItemGroup=ME;dp.Divider=OE;var xV={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"},SV=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:xV}))},W$=u.forwardRef(SV);const tR=u.createContext({});var CV={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"},wV=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:CV}))},RE=u.forwardRef(wV);const Vy=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var EV=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nR=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=EV(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=u.useContext(Dt),l=o("menu",t),s=ue({[`${l}-item-divider-dashed`]:!!r},n);return u.createElement(OE,Object.assign({className:s},a))},rR=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:l}=e,{prefixCls:s,firstLevel:d,direction:f,disableMenuItemTitleTooltip:m,inlineCollapsed:h}=u.useContext(Vy),v=$=>{const O=r?.[0],N=u.createElement("span",{className:`${s}-title-content`},r);return(!a||u.isValidElement(r)&&r.type==="span")&&r&&$&&d&&typeof O=="string"?u.createElement("div",{className:`${s}-inline-collapsed-noicon`},O.charAt(0)):N},{siderCollapsed:y}=u.useContext(tR);let S=o;typeof o>"u"?S=d?r:"":o===!1&&(S="");const C={title:S};!y&&!h&&(C.title=null,C.open=!1);const w=ro(r).length;let E=u.createElement(sv,Object.assign({},Qr(e,["title","icon","danger"]),{className:ue({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:(a?w+1:w)===1},n),title:typeof o=="string"?o:void 0}),za(a,{className:ue(u.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),v(h));return m||(E=u.createElement(Oo,Object.assign({},C,{placement:f==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),E)),E};var $V=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ky=u.createContext(null),aR=u.forwardRef((e,t)=>{const{children:n}=e,r=$V(e,["children"]),a=u.useContext(Ky),o=u.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=oI(n),s=oc(t,l?n.ref:null);return u.createElement(Ky.Provider,{value:o},u.createElement(Zm,{space:!0},l?u.cloneElement(n,{ref:s}):n))}),OV=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:l,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ie(o)} ${l} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${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"}}}},MV=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ie(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ie(n)})`}}}}},U$=e=>Object.assign({},du(e)),q$=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:l,subMenuItemBg:s,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:m,activeBarBorderWidth:h,motionDurationSlow:v,motionEaseInOut:y,motionEaseOut:S,itemPaddingInline:C,motionDurationMid:w,itemHoverColor:E,lineType:$,colorSplit:O,itemDisabledColor:N,dangerItemColor:I,dangerItemHoverColor:R,dangerItemSelectedColor:_,dangerItemActiveBg:z,dangerItemSelectedBg:D,popupBg:L,itemHoverBg:B,itemActiveBg:F,menuSubMenuBg:H,horizontalItemSelectedColor:k,horizontalItemSelectedBg:q,horizontalItemBorderRadius:V,horizontalItemHoverBg:W}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},U$(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},U$(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${N} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:E}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:F}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:F}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:R}},[`&${n}-item:active`]:{background:z}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:H},[`&${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:V,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${ie(f)} solid transparent`,transition:`border-color ${v} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:W,"&::after":{borderBottomWidth:f,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:q,"&:hover":{backgroundColor:q},"&::after":{borderBottomWidth:f,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ie(h)} ${$} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie(m)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${S}`,`opacity ${w} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${y}`,`opacity ${w} ${y}`].join(",")}}}}}},G$=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:l,itemMarginBlock:s,itemWidth:d,itemPaddingInline:f}=e,m=e.calc(o).add(a).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ie(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:d},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ie(n)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:m}}},RV=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:l,motionEaseOut:s,paddingXL:d,itemMarginInline:f,fontSizeLG:m,motionDurationFast:h,motionDurationSlow:v,paddingXS:y,boxShadowSecondary:S,collapsedWidth:C,collapsedIconSize:w}=e,E={height:r,lineHeight:ie(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},G$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},G$(e)),{boxShadow:S})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ie(e.calc(l).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 ${v}`,`background ${v}`,`padding ${h} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:E,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:E}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ie(e.calc(m).div(2).equal())} - ${ie(f)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:w,lineHeight:ie(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:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},uu),{paddingInline:y})}}]},X$=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:l,iconSize:s,iconMarginInlineEnd:d}=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) ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Xh()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Y$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ie(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ie(l)})`}}}}},NV=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:l,paddingXS:s,padding:d,colorSplit:f,lineWidth:m,zIndexPopup:h,borderRadiusLG:v,subMenuItemBorderRadius:y,menuArrowSize:S,menuArrowOffset:C,lineType:w,groupTitleLineHeight:E,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},nc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),nc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} 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:`${ie(s)} ${ie(d)}`,fontSize:$,lineHeight:E,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${l}`,`background ${a} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${l}`,`background ${a} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${a}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:w,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),X$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ie(e.calc(r).mul(2).equal())} ${ie(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:v,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:v},X$(e)),Y$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${l}`}})},"\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}}}),Y$(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie(C)})`},"&::after":{transform:`rotate(45deg) translateX(${ie(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ie(e.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ie(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ie(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},TV=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:l,colorErrorBg:s,colorText:d,colorTextDescription:f,colorBgContainer:m,colorFillAlter:h,colorFillContent:v,lineWidth:y,lineWidthBold:S,controlItemBgActive:C,colorBgTextHover:w,controlHeightLG:E,lineHeight:$,colorBgElevated:O,marginXXS:N,padding:I,fontSize:R,controlHeightSM:_,fontSizeLG:z,colorTextLightSolid:D,colorErrorHover:L}=e,B=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,F=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,H=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,k=new zr(D).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:m,itemBg:m,colorItemBgHover:w,itemHoverBg:w,colorItemBgActive:v,itemActiveBg:C,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:S,activeBarHeight:S,colorActiveBarBorderSize:y,activeBarBorderWidth:F,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:H,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:E,groupTitleLineHeight:$,collapsedWidth:E*2,popupBg:O,itemMarginBlock:N,itemPaddingInline:I,horizontalLineHeight:`${E*1.15}px`,iconSize:R,iconMarginInlineEnd:_-R,collapsedIconSize:z,groupTitleFontSize:R,darkItemDisabledColor:new zr(D).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:D,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:D,darkDangerItemHoverColor:L,darkDangerItemSelectedColor:D,darkDangerItemActiveBg:o,itemWidth:B?`calc(100% + ${F}px)`:`calc(100% - ${H*2}px)`}},IV=(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return nr("Menu",a=>{const{colorBgElevated:o,controlHeightLG:l,fontSize:s,darkItemColor:d,darkDangerItemColor:f,darkItemBg:m,darkSubMenuItemBg:h,darkItemSelectedColor:v,darkItemSelectedBg:y,darkDangerItemSelectedBg:S,darkItemHoverBg:C,darkGroupTitleColor:w,darkItemHoverColor:E,darkItemDisabledColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:I,popupBg:R,darkPopupBg:_}=a,z=a.calc(s).div(7).mul(5).equal(),D=In(a,{menuArrowSize:z,menuHorizontalHeight:a.calc(l).mul(1.15).equal(),menuArrowOffset:a.calc(z).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:R}),L=In(D,{itemColor:d,itemHoverColor:E,groupTitleColor:w,itemSelectedColor:v,itemBg:m,popupBg:_,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:$,dangerItemColor:f,dangerItemHoverColor:O,dangerItemSelectedColor:N,dangerItemActiveBg:I,dangerItemSelectedBg:S,menuSubMenuBg:h,horizontalItemSelectedColor:v,horizontalItemSelectedBg:y});return[NV(D),OV(D),RV(D),q$(D,"light"),q$(L,"dark"),MV(D),hb(D),fu(D,"slide-up"),fu(D,"slide-down"),nv(D,"zoom-big")]},TV,{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)}),oR=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,l=u.useContext(Vy),{prefixCls:s,inlineCollapsed:d,theme:f}=l,m=up();let h;if(!r)h=d&&!m.length&&a&&typeof a=="string"?u.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):u.createElement("span",{className:`${s}-title-content`},a);else{const S=u.isValidElement(a)&&a.type==="span";h=u.createElement(u.Fragment,null,za(r,{className:ue(u.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),S?a:u.createElement("span",{className:`${s}-title-content`},a))}const v=u.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[y]=lp("Menu");return u.createElement(Vy.Provider,{value:v},u.createElement(Tb,Object.assign({},Qr(e,["icon"]),{title:h,popupClassName:ue(s,n,`${s}-${o||f}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var _V=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function K2(e){return e===null||e===!1}const AV={item:rR,submenu:oR,divider:nR},PV=u.forwardRef((e,t)=>{var n;const r=u.useContext(Ky),a=r||{},{getPrefixCls:o,getPopupContainer:l,direction:s,menu:d}=u.useContext(Dt),f=o(),{prefixCls:m,className:h,style:v,theme:y="light",expandIcon:S,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:w,siderCollapsed:E,rootClassName:$,mode:O,selectable:N,onClick:I,overflowedIndicatorPopupClassName:R}=e,_=_V(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),z=Qr(_,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:O});const D=vr(function(){var J;I?.apply(void 0,arguments),(J=a.onClick)===null||J===void 0||J.call(a)}),L=a.mode||O,B=N??a.selectable,F=u.useMemo(()=>E!==void 0?E:w,[w,E]),H={horizontal:{motionName:`${f}-slide-up`},inline:Lh(f),other:{motionName:`${f}-zoom-big`}},k=o("menu",m||a.prefixCls),q=Ba(k),[V,W,G]=IV(k,q,!r),X=ue(`${k}-${y}`,d?.className,h),P=u.useMemo(()=>{var J,j;if(typeof S=="function"||K2(S))return S||null;if(typeof a.expandIcon=="function"||K2(a.expandIcon))return a.expandIcon||null;if(typeof d?.expandIcon=="function"||K2(d?.expandIcon))return d?.expandIcon||null;const Y=(J=S??a?.expandIcon)!==null&&J!==void 0?J:d?.expandIcon;return za(Y,{className:ue(`${k}-submenu-expand-icon`,u.isValidElement(Y)?(j=Y.props)===null||j===void 0?void 0:j.className:void 0)})},[S,a?.expandIcon,d?.expandIcon,k]),K=u.useMemo(()=>({prefixCls:k,inlineCollapsed:F||!1,direction:s,firstLevel:!0,theme:y,mode:L,disableMenuItemTitleTooltip:C}),[k,F,s,C,y]);return V(u.createElement(Ky.Provider,{value:null},u.createElement(Vy.Provider,{value:K},u.createElement(dp,Object.assign({getPopupContainer:l,overflowedIndicator:u.createElement(RE,null),overflowedIndicatorPopupClassName:ue(k,`${k}-${y}`,R),mode:L,selectable:B,onClick:D},z,{inlineCollapsed:F,style:Object.assign(Object.assign({},d?.style),v),className:X,prefixCls:k,direction:s,defaultMotions:H,expandIcon:P,ref:t,rootClassName:ue($,W,a.rootClassName,G,q),_internalComponents:AV})))))}),fp=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u.useContext(tR);return u.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),u.createElement(PV,Object.assign({ref:n},e,r))});fp.Item=rR;fp.SubMenu=oR;fp.Divider=nR;fp.ItemGroup=ME;const zV=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},DV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:l,iconCls:s,motionDurationMid:d,paddingBlock:f,fontSize:m,dropdownEdgeChildPadding:h,colorTextDisabled:v,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(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:y},[`${s}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft, &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom, &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight, &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Uw},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft, &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top, &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight, &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Gw},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft, &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom, &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:qw},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft, &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top, &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Xw}}},xE(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({},cr(e)),{[n]:Object.assign(Object.assign({padding:h,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},bs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ie(f)} ${ie(S)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${d}`,"&: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:`${ie(f)} ${ie(S)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},bs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie(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.colorTextDescription,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ie(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:v,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[fu(e,"slide-up"),fu(e,"slide-down"),ky(e,"move-up"),ky(e,"move-down"),nv(e,"zoom-big")]]},jV=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Mb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),bE(e)),kV=nr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=In(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[DV(o),zV(o)]},jV,{resetStyle:!1}),Ib=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:l,disabled:s,dropdownRender:d,getPopupContainer:f,overlayClassName:m,rootClassName:h,overlayStyle:v,open:y,onOpenChange:S,visible:C,onVisibleChange:w,mouseEnterDelay:E=.15,mouseLeaveDelay:$=.1,autoAdjustOverflow:O=!0,placement:N="",overlay:I,transitionName:R}=e,{getPopupContainer:_,getPrefixCls:z,direction:D,dropdown:L}=u.useContext(Dt);gu();const B=u.useMemo(()=>{const fe=z();return R!==void 0?R:N.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[z,N,R]),F=u.useMemo(()=>N?N.includes("Center")?N.slice(0,N.indexOf("Center")):N:D==="rtl"?"bottomRight":"bottomLeft",[N,D]),H=z("dropdown",a),k=Ba(H),[q,V,W]=kV(H,k),[,G]=lo(),X=u.Children.only(o),P=za(X,{className:ue(`${H}-trigger`,{[`${H}-rtl`]:D==="rtl"},X.props.className),disabled:(t=X.props.disabled)!==null&&t!==void 0?t:s}),K=s?[]:l,J=!!K?.includes("contextMenu"),[j,Y]=kr(!1,{value:y??C}),ne=vr(fe=>{S?.(fe,{source:"trigger"}),w?.(fe),Y(fe)}),se=ue(m,h,V,W,k,L?.className,{[`${H}-rtl`]:D==="rtl"}),de=zM({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:O,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),pe=u.useCallback(()=>{n?.selectable&&n?.multiple||(S?.(!1,{source:"menu"}),Y(!1))},[n?.selectable,n?.multiple]),Ce=()=>{let fe;return n?.items?fe=u.createElement(fp,Object.assign({},n)):typeof I=="function"?fe=I():fe=I,d&&(fe=d(fe)),fe=u.Children.only(typeof fe=="string"?u.createElement("span",null,fe):fe),u.createElement(aR,{prefixCls:`${H}-menu`,rootClassName:ue(W,k),expandIcon:u.createElement("span",{className:`${H}-menu-submenu-arrow`},u.createElement(jy,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:pe,validator:ge=>{let{mode:Oe}=ge}},fe)},[he,me]=lp("Dropdown",v?.zIndex);let be=u.createElement(VM,Object.assign({alignPoint:J},Qr(e,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:$,visible:j,builtinPlacements:de,arrow:!!r,overlayClassName:se,prefixCls:H,getPopupContainer:f||_,transitionName:B,trigger:K,overlay:Ce,placement:F,onVisibleChange:ne,overlayStyle:Object.assign(Object.assign(Object.assign({},L?.style),v),{zIndex:he})}),P);return he&&(be=u.createElement(Qh.Provider,{value:me},be)),q(be)};function LV(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const BV=mM(Ib,"dropdown",e=>e,LV),FV=e=>u.createElement(BV,Object.assign({},e),u.createElement("span",null));Ib._InternalPanelDoNotUseOrYouWillBeFired=FV;const iR=u.createContext(null),HV=iR.Provider,lR=u.createContext(null),VV=lR.Provider;var KV=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],sR=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,l=e.checked,s=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,m=e.type,h=m===void 0?"checkbox":m,v=e.title,y=e.onChange,S=ln(e,KV),C=u.useRef(null),w=u.useRef(null),E=kr(f,{value:l}),$=Re(E,2),O=$[0],N=$[1];u.useImperativeHandle(t,function(){return{focus:function(z){var D;(D=C.current)===null||D===void 0||D.focus(z)},blur:function(){var z;(z=C.current)===null||z===void 0||z.blur()},input:C.current,nativeElement:w.current}});var I=ue(r,a,te(te({},"".concat(r,"-checked"),O),"".concat(r,"-disabled"),s)),R=function(z){s||("checked"in e||N(z.target.checked),y?.({target:le(le({},e),{},{type:h,checked:z.target.checked}),stopPropagation:function(){z.stopPropagation()},preventDefault:function(){z.preventDefault()},nativeEvent:z.nativeEvent}))};return u.createElement("span",{className:I,title:v,style:o,ref:w},u.createElement("input",Je({},S,{className:"".concat(r,"-input"),ref:C,onChange:R,disabled:s,checked:!!O,type:h})),u.createElement("span",{className:"".concat(r,"-inner")}))});const WV=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},cr(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},UV=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:d,colorBorder:f,lineWidth:m,colorBgContainerDisabled:h,colorTextDisabled:v,paddingXS:y,dotColorDisabled:S,lineType:C,radioColor:w,radioBgColor:E,calc:$}=e,O=`${t}-inner`,I=$(a).sub($(4).mul(2)),R=$(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},cr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ie(m)} ${C} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${O}`]:{borderColor:r},[`${t}-input:focus-visible + ${O}`]:Object.assign({},du(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:R,height:R,marginBlockStart:$(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:$(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:w,borderBlockStart:0,borderInlineStart:0,borderRadius:R,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:R,height:R,backgroundColor:d,borderColor:f,borderStyle:"solid",borderWidth:m,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[O]:{borderColor:r,backgroundColor:E,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[O]:{backgroundColor:h,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:S}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[O]:{"&::after":{transform:`scale(${$(I).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},qV=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:l,motionDurationSlow:s,motionDurationMid:d,buttonPaddingInline:f,fontSize:m,buttonBg:h,fontSizeLG:v,controlHeightLG:y,controlHeightSM:S,paddingXS:C,borderRadius:w,borderRadiusSM:E,borderRadiusLG:$,buttonCheckedBg:O,buttonSolidCheckedColor:N,colorTextDisabled:I,colorBgContainerDisabled:R,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:z,colorPrimary:D,colorPrimaryHover:L,colorPrimaryActive:B,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:H,buttonSolidCheckedActiveBg:k,calc:q}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:m,lineHeight:ie(q(n).sub(q(a).mul(2)).equal()),background:h,border:`${ie(a)} ${o} ${l}`,borderBlockStartWidth:q(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${d}`,`background ${d}`,`box-shadow ${d}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:q(a).mul(-1).equal(),insetInlineStart:q(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:l,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ie(a)} ${o} ${l}`,borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w},"&:first-child:last-child":{borderRadius:w},[`${r}-group-large &`]:{height:y,fontSize:v,lineHeight:ie(q(y).sub(q(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:S,paddingInline:q(C).sub(a).equal(),paddingBlock:0,lineHeight:ie(q(S).sub(q(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:E,borderEndStartRadius:E},"&:last-child":{borderStartEndRadius:E,borderEndEndRadius:E}},"&:hover":{position:"relative",color:D},"&:has(:focus-visible)":Object.assign({},du(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:D,background:O,borderColor:D,"&::before":{backgroundColor:D},"&:first-child":{borderColor:D},"&:hover":{color:L,borderColor:L,"&::before":{backgroundColor:L}},"&:active":{color:B,borderColor:B,"&::before":{backgroundColor:B}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:N,background:F,borderColor:F,"&:hover":{color:N,background:H,borderColor:H},"&:active":{color:N,background:k,borderColor:k}},"&-disabled":{color:I,backgroundColor:R,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:R,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:z,backgroundColor:_,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},GV=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:l,colorBgContainer:s,colorTextDisabled:d,controlItemBgActiveDisabled:f,colorTextLightSolid:m,colorPrimary:h,colorPrimaryHover:v,colorPrimaryActive:y,colorWhite:S}=e,C=4,w=o,E=t?w-C*2:w-(C+a)*2;return{radioSize:w,dotSize:E,dotColorDisabled:d,buttonSolidCheckedColor:m,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:y,buttonBg:s,buttonCheckedBg:s,buttonColor:l,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?h:S,radioBgColor:t?s:h}},cR=nr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ie(n)} ${t}`,o=In(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[WV(o),UV(o),qV(o)]},GV,{unitless:{radioSize:!0,dotSize:!0}});var XV=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YV=(e,t)=>{var n,r;const a=u.useContext(iR),o=u.useContext(lR),{getPrefixCls:l,direction:s,radio:d}=u.useContext(Dt),f=u.useRef(null),m=io(t,f),{isFormItemInput:h}=u.useContext(Go),v=k=>{var q,V;(q=e.onChange)===null||q===void 0||q.call(e,k),(V=a?.onChange)===null||V===void 0||V.call(a,k)},{prefixCls:y,className:S,rootClassName:C,children:w,style:E,title:$}=e,O=XV(e,["prefixCls","className","rootClassName","children","style","title"]),N=l("radio",y),I=(a?.optionType||o)==="button",R=I?`${N}-button`:N,_=Ba(N),[z,D,L]=cR(N,_),B=Object.assign({},O),F=u.useContext(tl);a&&(B.name=a.name,B.onChange=v,B.checked=e.value===a.value,B.disabled=(n=B.disabled)!==null&&n!==void 0?n:a.disabled),B.disabled=(r=B.disabled)!==null&&r!==void 0?r:F;const H=ue(`${R}-wrapper`,{[`${R}-wrapper-checked`]:B.checked,[`${R}-wrapper-disabled`]:B.disabled,[`${R}-wrapper-rtl`]:s==="rtl",[`${R}-wrapper-in-form-item`]:h,[`${R}-wrapper-block`]:!!a?.block},d?.className,S,C,D,L,_);return z(u.createElement(ev,{component:"Radio",disabled:B.disabled},u.createElement("label",{className:H,style:Object.assign(Object.assign({},d?.style),E),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$},u.createElement(sR,Object.assign({},B,{className:ue(B.className,{[pb]:!I}),type:"radio",prefixCls:R,ref:m})),w!==void 0?u.createElement("span",null,w):null)))},Wy=u.forwardRef(YV),QV=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Dt),{prefixCls:a,className:o,rootClassName:l,options:s,buttonStyle:d="outline",disabled:f,children:m,size:h,style:v,id:y,optionType:S,name:C,defaultValue:w,value:E,block:$=!1,onChange:O,onMouseEnter:N,onMouseLeave:I,onFocus:R,onBlur:_}=e,[z,D]=kr(w,{value:E}),L=u.useCallback(K=>{const J=z,j=K.target.value;"value"in e||D(j),j!==J&&O?.(K)},[z,D,O]),B=n("radio",a),F=`${B}-group`,H=Ba(B),[k,q,V]=cR(B,H);let W=m;s&&s.length>0&&(W=s.map(K=>typeof K=="string"||typeof K=="number"?u.createElement(Wy,{key:K.toString(),prefixCls:B,disabled:f,value:K,checked:z===K},K):u.createElement(Wy,{key:`radio-group-value-options-${K.value}`,prefixCls:B,disabled:K.disabled||f,value:K.value,checked:z===K.value,title:K.title,style:K.style,id:K.id,required:K.required},K.label)));const G=No(h),X=ue(F,`${F}-${d}`,{[`${F}-${G}`]:G,[`${F}-rtl`]:r==="rtl",[`${F}-block`]:$},o,l,q,V,H),P=u.useMemo(()=>({onChange:L,value:z,disabled:f,name:C,optionType:S,block:$}),[L,z,f,C,S,$]);return k(u.createElement("div",Object.assign({},Pa(e,{aria:!0,data:!0}),{className:X,style:v,onMouseEnter:N,onMouseLeave:I,onFocus:R,onBlur:_,id:y,ref:t}),u.createElement(HV,{value:P},W)))}),ZV=u.memo(QV);var JV=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const eK=(e,t)=>{const{getPrefixCls:n}=u.useContext(Dt),{prefixCls:r}=e,a=JV(e,["prefixCls"]),o=n("radio",r);return u.createElement(VV,{value:"button"},u.createElement(Wy,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},tK=u.forwardRef(eK),Js=Wy;Js.Button=tK;Js.Group=ZV;Js.__ANT_RADIO=!0;function NE(e){return In(e,{inputAffixPadding:e.paddingXXS})}const TE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:l,fontSizeLG:s,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:m,controlPaddingHorizontal:h,colorFillAlter:v,colorPrimaryHover:y,colorPrimary:S,controlOutlineWidth:C,controlOutline:w,colorErrorOutline:E,colorWarningOutline:$,colorBgContainer:O}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((l-s*d)/2*10)/10-a,paddingInline:f-a,paddingInlineSM:m-a,paddingInlineLG:h-a,addonBg:v,activeBorderColor:S,hoverBorderColor:y,activeShadow:`0 0 0 ${C}px ${w}`,errorActiveShadow:`0 0 0 ${C}px ${E}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:O,activeBg:O,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},nK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_b=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({},nK(In(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),IE=(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}}),Q$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},IE(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({},IE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_b(e))}),Q$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Q$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Z$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),aK=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Z$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Z$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_b(e))}})}),oK=(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)}},uR=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),J$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uR(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),iK=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uR(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_b(e))}),J$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),J$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),e6=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),lK=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},e6(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),e6(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),sK=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dR=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ie(t)} ${ie(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},_E=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),AE=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},sK(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},dR(e)),"&-sm":Object.assign({},_E(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cK=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({},dR(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_E(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 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(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:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(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"},nc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},uK=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,l=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),AE(e)),rK(e)),iK(e)),oK(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},dK=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},fK=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:l,iconCls:s}=e,d=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},AE(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dK(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:l}}}),[f]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},mK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},cr(e)),cK(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}}},aK(e)),lK(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}}})})}},pK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${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, > ${t}, ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},gK=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},hK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},PE=nr("Input",e=>{const t=In(e,NE(e));return[uK(t),gK(t),fK(t),mK(t),pK(t),hK(t),rE(t)]},TE,{resetFont:!1});var vK={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"},yK=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:vK}))},Ab=u.forwardRef(yK);const Pb=u.createContext(null);var bK=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,l=o===void 0?{}:o,s=l.size,d=l.align,f=d===void 0?"center":d,m=u.useState(),h=Re(m,2),v=h[0],y=h[1],S=u.useRef(),C=Se.useCallback(function(E){return typeof s=="function"?s(E):typeof s=="number"?s:E},[s]);function w(){sr.cancel(S.current)}return u.useEffect(function(){var E={};if(n)if(r){E.width=C(n.width);var $=a?"right":"left";f==="start"&&(E[$]=n[$]),f==="center"&&(E[$]=n[$]+n.width/2,E.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&(E[$]=n[$]+n.width,E.transform="translateX(-100%)")}else E.height=C(n.height),f==="start"&&(E.top=n.top),f==="center"&&(E.top=n.top+n.height/2,E.transform="translateY(-50%)"),f==="end"&&(E.top=n.top+n.height,E.transform="translateY(-100%)");return w(),S.current=sr(function(){y(E)}),w},[n,r,a,f,C]),{style:v}},t6={width:0,height:0,left:0,top:0};function xK(e,t,n){return u.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||t6,l=o.left+o.width,s=0;s<e.length;s+=1){var d=e[s].key,f=t.get(d);if(!f){var m;f=t.get((m=e[s-1])===null||m===void 0?void 0:m.key)||t6}var h=a.get(d)||le({},f);h.right=l-h.left-h.width,a.set(d,h)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function n6(e,t){var n=u.useRef(e),r=u.useState({}),a=Re(r,2),o=a[1];function l(s){var d=typeof s=="function"?s(n.current):s;d!==n.current&&t(d,n.current),n.current=d,o({})}return[n.current,l]}var SK=.1,r6=.01,vy=20,a6=Math.pow(.995,vy);function CK(e,t){var n=u.useState(),r=Re(n,2),a=r[0],o=r[1],l=u.useState(0),s=Re(l,2),d=s[0],f=s[1],m=u.useState(0),h=Re(m,2),v=h[0],y=h[1],S=u.useState(),C=Re(S,2),w=C[0],E=C[1],$=u.useRef();function O(D){var L=D.touches[0],B=L.screenX,F=L.screenY;o({x:B,y:F}),window.clearInterval($.current)}function N(D){if(a){var L=D.touches[0],B=L.screenX,F=L.screenY;o({x:B,y:F});var H=B-a.x,k=F-a.y;t(H,k);var q=Date.now();f(q),y(q-d),E({x:H,y:k})}}function I(){if(a&&(o(null),E(null),w)){var D=w.x/v,L=w.y/v,B=Math.abs(D),F=Math.abs(L);if(Math.max(B,F)<SK)return;var H=D,k=L;$.current=window.setInterval(function(){if(Math.abs(H)<r6&&Math.abs(k)<r6){window.clearInterval($.current);return}H*=a6,k*=a6,t(H*vy,k*vy)},vy)}}var R=u.useRef();function _(D){var L=D.deltaX,B=D.deltaY,F=0,H=Math.abs(L),k=Math.abs(B);H===k?F=R.current==="x"?L:B:H>k?(F=L,R.current="x"):(F=B,R.current="y"),t(-F,-F)&&D.preventDefault()}var z=u.useRef(null);z.current={onTouchStart:O,onTouchMove:N,onTouchEnd:I,onWheel:_},u.useEffect(function(){function D(H){z.current.onTouchStart(H)}function L(H){z.current.onTouchMove(H)}function B(H){z.current.onTouchEnd(H)}function F(H){z.current.onWheel(H)}return document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("touchend",B,{passive:!0}),e.current.addEventListener("touchstart",D,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",L),document.removeEventListener("touchend",B)}},[])}function fR(e){var t=u.useState(0),n=Re(t,2),r=n[0],a=n[1],o=u.useRef(0),l=u.useRef();return l.current=e,KS(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function wK(e){var t=u.useRef([]),n=u.useState({}),r=Re(n,2),a=r[1],o=u.useRef(typeof e=="function"?e():e),l=fR(function(){var d=o.current;t.current.forEach(function(f){d=f(d)}),t.current=[],o.current=d,a({})});function s(d){t.current.push(d),l()}return[o.current,s]}var o6={width:0,height:0,left:0,top:0,right:0};function EK(e,t,n,r,a,o,l){var s=l.tabs,d=l.tabPosition,f=l.rtl,m,h,v;return["top","bottom"].includes(d)?(m="width",h=f?"right":"left",v=Math.abs(n)):(m="height",h="top",v=-n),u.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,S=y,C=0;C<y;C+=1){var w=e.get(s[C].key)||o6;if(Math.floor(w[h]+w[m])>Math.floor(v+t)){S=C-1;break}}for(var E=0,$=y-1;$>=0;$-=1){var O=e.get(s[$].key)||o6;if(O[h]<v){E=$+1;break}}return E>=S?[0,0]:[E,S]},[e,t,r,a,o,v,d,s.map(function(y){return y.key}).join("_"),f])}function i6(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var $K="TABS_DQ";function mR(e){return String(e).replace(/"/g,$K)}function pR(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var gR=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":a?.addAriaLabel||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),l6=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,l={};return Vt(a)==="object"&&!u.isValidElement(a)?l=a:l.right=a,n==="right"&&(o=l.right),n==="left"&&(o=l.left),o?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),OK=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,l=e.mobile,s=e.more,d=s===void 0?{}:s,f=e.style,m=e.className,h=e.editable,v=e.tabBarGutter,y=e.rtl,S=e.removeAriaLabel,C=e.onTabClick,w=e.getPopupContainer,E=e.popupClassName,$=u.useState(!1),O=Re($,2),N=O[0],I=O[1],R=u.useState(null),_=Re(R,2),z=_[0],D=_[1],L=d.icon,B=L===void 0?"More":L,F="".concat(r,"-more-popup"),H="".concat(n,"-dropdown"),k=z!==null?"".concat(F,"-").concat(z):null,q=o?.dropdownAriaLabel;function V(j,Y){j.preventDefault(),j.stopPropagation(),h.onEdit("remove",{key:Y,event:j})}var W=u.createElement(dp,{onClick:function(Y){var ne=Y.key,se=Y.domEvent;C(ne,se),I(!1)},prefixCls:"".concat(H,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[z],"aria-label":q!==void 0?q:"expanded dropdown"},a.map(function(j){var Y=j.closable,ne=j.disabled,se=j.closeIcon,de=j.key,pe=j.label,Ce=pR(Y,se,h,ne);return u.createElement(sv,{key:de,id:"".concat(F,"-").concat(de),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(de),disabled:ne},u.createElement("span",null,pe),Ce&&u.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:"".concat(H,"-menu-item-remove"),onClick:function(me){me.stopPropagation(),V(me,de)}},se||h.removeIcon||"×"))}));function G(j){for(var Y=a.filter(function(Ce){return!Ce.disabled}),ne=Y.findIndex(function(Ce){return Ce.key===z})||0,se=Y.length,de=0;de<se;de+=1){ne=(ne+j+se)%se;var pe=Y[ne];if(!pe.disabled){D(pe.key);return}}}function X(j){var Y=j.which;if(!N){[Pt.DOWN,Pt.SPACE,Pt.ENTER].includes(Y)&&(I(!0),j.preventDefault());return}switch(Y){case Pt.UP:G(-1),j.preventDefault();break;case Pt.DOWN:G(1),j.preventDefault();break;case Pt.ESC:I(!1);break;case Pt.SPACE:case Pt.ENTER:z!==null&&C(z,j);break}}u.useEffect(function(){var j=document.getElementById(k);j&&j.scrollIntoView&&j.scrollIntoView(!1)},[z]),u.useEffect(function(){N||D(null)},[N]);var P=te({},y?"marginRight":"marginLeft",v);a.length||(P.visibility="hidden",P.order=1);var K=ue(te({},"".concat(H,"-rtl"),y)),J=l?null:u.createElement(VM,Je({prefixCls:H,overlay:W,visible:a.length?N:!1,onVisibleChange:I,overlayClassName:ue(K,E),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},d),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:P,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(r,"-more"),"aria-expanded":N,onKeyDown:X},B));return u.createElement("div",{className:ue("".concat(n,"-nav-operations"),m),style:f,ref:t},J,u.createElement(gR,{prefixCls:n,locale:o,editable:h}))});const MK=u.memo(OK,function(e,t){return t.tabMoving});var RK=function(t){var n=t.prefixCls,r=t.id,a=t.active,o=t.tab,l=o.key,s=o.label,d=o.disabled,f=o.closeIcon,m=o.icon,h=t.closable,v=t.renderWrapper,y=t.removeAriaLabel,S=t.editable,C=t.onClick,w=t.onFocus,E=t.style,$="".concat(n,"-tab"),O=pR(h,f,S,d);function N(z){d||C(z)}function I(z){z.preventDefault(),z.stopPropagation(),S.onEdit("remove",{key:l,event:z})}var R=u.useMemo(function(){return m&&typeof s=="string"?u.createElement("span",null,s):s},[s,m]),_=u.createElement("div",{key:l,"data-node-key":mR(l),className:ue($,te(te(te({},"".concat($,"-with-remove"),O),"".concat($,"-active"),a),"".concat($,"-disabled"),d)),style:E,onClick:N},u.createElement("div",{role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat($,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":d,tabIndex:d?null:0,onClick:function(D){D.stopPropagation(),N(D)},onKeyDown:function(D){[Pt.SPACE,Pt.ENTER].includes(D.which)&&(D.preventDefault(),N(D))},onFocus:w},m&&u.createElement("span",{className:"".concat($,"-icon")},m),s&&R),O&&u.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat($,"-remove"),onClick:function(D){D.stopPropagation(),I(D)}},f||S.removeIcon||"×"));return v?v(_):_},NK=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),d=s.width,f=s.height,m=s.left,h=s.top;return Math.abs(d-r)<1?[d,f,m-n.left,h-n.top]:[r,a,l,o]},Om=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,o=n.offsetHeight,l=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),d=s.width,f=s.height;if(Math.abs(d-a)<1)return[d,f]}return[a,l]},H1=function(t,n){return t[n?0:1]},s6=u.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,o=e.animated,l=e.activeKey,s=e.rtl,d=e.extra,f=e.editable,m=e.locale,h=e.tabPosition,v=e.tabBarGutter,y=e.children,S=e.onTabClick,C=e.onTabScroll,w=e.indicator,E=u.useContext(Pb),$=E.prefixCls,O=E.tabs,N=u.useRef(null),I=u.useRef(null),R=u.useRef(null),_=u.useRef(null),z=u.useRef(null),D=u.useRef(null),L=u.useRef(null),B=h==="top"||h==="bottom",F=n6(0,function(ct,dt){B&&C&&C({direction:ct>dt?"left":"right"})}),H=Re(F,2),k=H[0],q=H[1],V=n6(0,function(ct,dt){!B&&C&&C({direction:ct>dt?"top":"bottom"})}),W=Re(V,2),G=W[0],X=W[1],P=u.useState([0,0]),K=Re(P,2),J=K[0],j=K[1],Y=u.useState([0,0]),ne=Re(Y,2),se=ne[0],de=ne[1],pe=u.useState([0,0]),Ce=Re(pe,2),he=Ce[0],me=Ce[1],be=u.useState([0,0]),fe=Re(be,2),ge=fe[0],Oe=fe[1],Ne=wK(new Map),je=Re(Ne,2),Te=je[0],Ue=je[1],qe=xK(O,Te,se[0]),ze=H1(J,B),Ve=H1(se,B),Be=H1(he,B),De=H1(ge,B),ye=Math.floor(ze)<Math.floor(Ve+Be),oe=ye?ze-De:ze-Be,we="".concat($,"-nav-operations-hidden"),Fe=0,xe=0;B&&s?(Fe=0,xe=Math.max(0,Ve-oe)):(Fe=Math.min(0,oe-Ve),xe=0);function _e(ct){return ct<Fe?Fe:ct>xe?xe:ct}var rt=u.useRef(null),lt=u.useState(),ut=Re(lt,2),tt=ut[0],mt=ut[1];function at(){mt(Date.now())}function gt(){rt.current&&clearTimeout(rt.current)}CK(_,function(ct,dt){function ot(nt,Tt){nt(function(Mt){var zt=_e(Mt+Tt);return zt})}return ye?(B?ot(q,ct):ot(X,dt),gt(),at(),!0):!1}),u.useEffect(function(){return gt(),tt&&(rt.current=setTimeout(function(){mt(0)},100)),gt},[tt]);var Nt=EK(qe,oe,B?k:G,Ve,Be,De,le(le({},e),{},{tabs:O})),tn=Re(Nt,2),Wt=tn[0],dn=tn[1],Qt=vr(function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,dt=qe.get(ct)||{width:0,height:0,left:0,right:0,top:0};if(B){var ot=k;s?dt.right<k?ot=dt.right:dt.right+dt.width>k+oe&&(ot=dt.right+dt.width-oe):dt.left<-k?ot=-dt.left:dt.left+dt.width>-k+oe&&(ot=-(dt.left+dt.width-oe)),X(0),q(_e(ot))}else{var nt=G;dt.top<-G?nt=-dt.top:dt.top+dt.height>-G+oe&&(nt=-(dt.top+dt.height-oe)),q(0),X(_e(nt))}}),nn={};h==="top"||h==="bottom"?nn[s?"marginRight":"marginLeft"]=v:nn.marginTop=v;var Zt=O.map(function(ct,dt){var ot=ct.key;return u.createElement(RK,{id:a,prefixCls:$,key:ot,tab:ct,style:dt===0?void 0:nn,closable:ct.closable,editable:f,active:ot===l,renderWrapper:y,removeAriaLabel:m?.removeAriaLabel,onClick:function(Tt){S(ot,Tt)},onFocus:function(){Qt(ot),at(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)}})}),Lt=function(){return Ue(function(){var dt,ot=new Map,nt=(dt=z.current)===null||dt===void 0?void 0:dt.getBoundingClientRect();return O.forEach(function(Tt){var Mt,zt=Tt.key,jt=(Mt=z.current)===null||Mt===void 0?void 0:Mt.querySelector('[data-node-key="'.concat(mR(zt),'"]'));if(jt){var rn=NK(jt,nt),yt=Re(rn,4),Ot=yt[0],Ft=yt[1],Gt=yt[2],Jt=yt[3];ot.set(zt,{width:Ot,height:Ft,left:Gt,top:Jt})}}),ot})};u.useEffect(function(){Lt()},[O.map(function(ct){return ct.key}).join("_")]);var _t=fR(function(){var ct=Om(N),dt=Om(I),ot=Om(R);j([ct[0]-dt[0]-ot[0],ct[1]-dt[1]-ot[1]]);var nt=Om(L);me(nt);var Tt=Om(D);Oe(Tt);var Mt=Om(z);de([Mt[0]-nt[0],Mt[1]-nt[1]]),Lt()}),It=O.slice(0,Wt),ve=O.slice(dn+1),Me=[].concat(st(It),st(ve)),Xe=qe.get(l),Qe=bK({activeTabOffset:Xe,horizontal:B,indicator:w,rtl:s}),ke=Qe.style;u.useEffect(function(){Qt()},[l,Fe,xe,i6(Xe),i6(qe),B]),u.useEffect(function(){_t()},[s]);var Ae=!!Me.length,He="".concat($,"-nav-wrap"),Ye,$t,xt,pt;return B?s?($t=k>0,Ye=k!==xe):(Ye=k<0,$t=k!==Fe):(xt=G<0,pt=G!==Fe),u.createElement(qo,{onResize:_t},u.createElement("div",{ref:oc(t,N),role:"tablist",className:ue("".concat($,"-nav"),n),style:r,onKeyDown:function(){at()}},u.createElement(l6,{ref:I,position:"left",extra:d,prefixCls:$}),u.createElement(qo,{onResize:_t},u.createElement("div",{className:ue(He,te(te(te(te({},"".concat(He,"-ping-left"),Ye),"".concat(He,"-ping-right"),$t),"".concat(He,"-ping-top"),xt),"".concat(He,"-ping-bottom"),pt)),ref:_},u.createElement(qo,{onResize:_t},u.createElement("div",{ref:z,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(G,"px)"),transition:tt?"none":void 0}},Zt,u.createElement(gR,{ref:L,prefixCls:$,locale:m,editable:f,style:le(le({},Zt.length===0?void 0:nn),{},{visibility:Ae?"hidden":null})}),u.createElement("div",{className:ue("".concat($,"-ink-bar"),te({},"".concat($,"-ink-bar-animated"),o.inkBar)),style:ke}))))),u.createElement(MK,Je({},e,{removeAriaLabel:m?.removeAriaLabel,ref:D,prefixCls:$,tabs:Me,className:!Ae&&we,tabMoving:!!tt})),u.createElement(l6,{ref:R,position:"right",extra:d,prefixCls:$})))}),hR=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,l=e.active,s=e.tabKey,d=e.children;return u.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!l,style:a,className:ue(n,l&&"".concat(n,"-active"),r),ref:t},d)}),TK=["renderTabBar"],IK=["label","key"],_K=function(t){var n=t.renderTabBar,r=ln(t,TK),a=u.useContext(Pb),o=a.tabs;if(n){var l=le(le({},r),{},{panes:o.map(function(s){var d=s.label,f=s.key,m=ln(s,IK);return u.createElement(hR,Je({tab:d,key:f,tabKey:f},m))})});return n(l,s6)}return u.createElement(s6,r)},AK=["key","forceRender","style","className","destroyInactiveTabPane"],PK=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,l=t.destroyInactiveTabPane,s=u.useContext(Pb),d=s.prefixCls,f=s.tabs,m=a.tabPane,h="".concat(d,"-tabpane");return u.createElement("div",{className:ue("".concat(d,"-content-holder"))},u.createElement("div",{className:ue("".concat(d,"-content"),"".concat(d,"-content-").concat(o),te({},"".concat(d,"-content-animated"),m))},f.map(function(v){var y=v.key,S=v.forceRender,C=v.style,w=v.className,E=v.destroyInactiveTabPane,$=ln(v,AK),O=y===r;return u.createElement(Mo,Je({key:y,visible:O,forceRender:S,removeOnLeave:!!(l||E),leavedClassName:"".concat(h,"-hidden")},a.tabPaneMotion),function(N,I){var R=N.style,_=N.className;return u.createElement(hR,Je({},$,{prefixCls:h,id:n,tabKey:y,animated:m,active:O,style:le(le({},C),R),className:ue(w,_),ref:I}))})})))};function zK(){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=le({inkBar:!0},Vt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var DK=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],c6=0,jK=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,l=e.items,s=e.direction,d=e.activeKey,f=e.defaultActiveKey,m=e.editable,h=e.animated,v=e.tabPosition,y=v===void 0?"top":v,S=e.tabBarGutter,C=e.tabBarStyle,w=e.tabBarExtraContent,E=e.locale,$=e.more,O=e.destroyInactiveTabPane,N=e.renderTabBar,I=e.onChange,R=e.onTabClick,_=e.onTabScroll,z=e.getPopupContainer,D=e.popupClassName,L=e.indicator,B=ln(e,DK),F=u.useMemo(function(){return(l||[]).filter(function(ge){return ge&&Vt(ge)==="object"&&"key"in ge})},[l]),H=s==="rtl",k=zK(h),q=u.useState(!1),V=Re(q,2),W=V[0],G=V[1];u.useEffect(function(){G(uE())},[]);var X=kr(function(){var ge;return(ge=F[0])===null||ge===void 0?void 0:ge.key},{value:d,defaultValue:f}),P=Re(X,2),K=P[0],J=P[1],j=u.useState(function(){return F.findIndex(function(ge){return ge.key===K})}),Y=Re(j,2),ne=Y[0],se=Y[1];u.useEffect(function(){var ge=F.findIndex(function(Ne){return Ne.key===K});if(ge===-1){var Oe;ge=Math.max(0,Math.min(ne,F.length-1)),J((Oe=F[ge])===null||Oe===void 0?void 0:Oe.key)}se(ge)},[F.map(function(ge){return ge.key}).join("_"),K,ne]);var de=kr(null,{value:n}),pe=Re(de,2),Ce=pe[0],he=pe[1];u.useEffect(function(){n||(he("rc-tabs-".concat(c6)),c6+=1)},[]);function me(ge,Oe){R?.(ge,Oe);var Ne=ge!==K;J(ge),Ne&&I?.(ge)}var be={id:Ce,activeKey:K,animated:k,tabPosition:y,rtl:H,mobile:W},fe=le(le({},be),{},{editable:m,locale:E,more:$,tabBarGutter:S,onTabClick:me,onTabScroll:_,extra:w,style:C,panes:null,getPopupContainer:z,popupClassName:D,indicator:L});return u.createElement(Pb.Provider,{value:{tabs:F,prefixCls:a}},u.createElement("div",Je({ref:t,id:n,className:ue(a,"".concat(a,"-").concat(y),te(te(te({},"".concat(a,"-mobile"),W),"".concat(a,"-editable"),m),"".concat(a,"-rtl"),H),o)},B),u.createElement(_K,Je({},fe,{renderTabBar:N})),u.createElement(PK,Je({destroyInactiveTabPane:O},be,{animated:k}))))});const kK={motionAppear:!1,motionEnter:!0,motionLeave:!0};function LK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},kK),{motionName:xs(e,"switch")})),n}var BK=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function FK(e){return e.filter(t=>t)}function HK(e,t){if(e)return e;const n=ro(t).map(r=>{if(u.isValidElement(r)){const{key:a,props:o}=r,l=o||{},{tab:s}=l,d=BK(l,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:s})}return null});return FK(n)}const VK=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}`}}}}},[fu(e,"slide-up"),fu(e,"slide-down")]]},KK=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ie(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ie(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ie(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadiusLG)} 0 0 ${ie(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 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},WK=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},cr(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:`${ie(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({},uu),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ie(e.paddingXXS)} ${ie(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},UK=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:ie(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},qK=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadius)} ${ie(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ie(e.borderRadius)} ${ie(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ie(e.borderRadius)} ${ie(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadius)} 0 0 ${ie(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},GK=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:l,itemSelectedColor:s,itemColor:d}=e,f=`${t}-tab`;return{[f]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},bs(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${f}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${f}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${f}-disabled ${f}-btn, &${f}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${f}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${f} + ${f}`]:{margin:{_skip_check_:!0,value:o}}}},XK=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=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:ie(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ie(e.marginXS)},marginLeft:{_skip_check_:!0,value:ie(o(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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},YK=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(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:a},padding:`0 ${ie(e.paddingXS)}`,background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:l}},bs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),GK(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},QK=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},ZK=nr("Tabs",e=>{const t=In(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ie(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ie(e.horizontalItemGutter)}`});return[qK(t),XK(t),UK(t),WK(t),KK(t),YK(t),VK(t)]},QK),JK=()=>null;var eW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zE=e=>{var t,n,r,a,o,l,s,d,f,m,h;const{type:v,className:y,rootClassName:S,size:C,onEdit:w,hideAdd:E,centered:$,addIcon:O,removeIcon:N,moreIcon:I,more:R,popupClassName:_,children:z,items:D,animated:L,style:B,indicatorSize:F,indicator:H}=e,k=eW(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:q}=k,{direction:V,tabs:W,getPrefixCls:G,getPopupContainer:X}=u.useContext(Dt),P=G("tabs",q),K=Ba(P),[J,j,Y]=ZK(P,K);let ne;v==="editable-card"&&(ne={onEdit:(be,fe)=>{let{key:ge,event:Oe}=fe;w?.(be==="add"?Oe:ge,be)},removeIcon:(t=N??W?.removeIcon)!==null&&t!==void 0?t:u.createElement(ic,null),addIcon:(O??W?.addIcon)||u.createElement(Ab,null),showAdd:E!==!0});const se=G(),de=No(C),pe=HK(D,z),Ce=LK(P,L),he=Object.assign(Object.assign({},W?.style),B),me={align:(n=H?.align)!==null&&n!==void 0?n:(r=W?.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=H?.size)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:(l=W?.indicator)===null||l===void 0?void 0:l.size)!==null&&s!==void 0?s:W?.indicatorSize};return J(u.createElement(jK,Object.assign({direction:V,getPopupContainer:X},k,{items:pe,className:ue({[`${P}-${de}`]:de,[`${P}-card`]:["card","editable-card"].includes(v),[`${P}-editable-card`]:v==="editable-card",[`${P}-centered`]:$},W?.className,y,S,j,Y,K),popupClassName:ue(_,j,Y,K),style:he,editable:ne,more:Object.assign({icon:(h=(m=(f=(d=W?.more)===null||d===void 0?void 0:d.icon)!==null&&f!==void 0?f:W?.moreIcon)!==null&&m!==void 0?m:I)!==null&&h!==void 0?h:u.createElement(RE,null),transitionName:`${se}-slide-up`},R),prefixCls:P,animated:Ce,indicator:me})))};zE.TabPane=JK;var tW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vR=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=tW(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=u.useContext(Dt),l=o("card",t),s=ue(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},a,{className:s}))},nW=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ie(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},nc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},uu),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},rW=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${ie(a)} 0 0 0 ${n}, 0 ${ie(a)} 0 0 ${n}, ${ie(a)} ${ie(a)} 0 0 ${n}, ${ie(a)} 0 0 0 ${n} inset, 0 ${ie(a)} 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},aW=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},nc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ie(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ie(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${o}`}}})},oW=e=>Object.assign(Object.assign({margin:`${ie(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},nc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},uu),"&-description":{color:e.colorTextDescription}}),iW=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${ie(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ie(e.padding)} ${ie(n)}`}}},lW=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},sW=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:nW(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},nc()),[`${t}-grid`]:rW(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:aW(e),[`${t}-meta`]:oW(e)}),[`${t}-bordered`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:iW(e),[`${t}-loading`]:lW(e),[`${t}-rtl`]:{direction:"rtl"}}},cW=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${ie(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uW=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),dW=nr("Card",e=>{const t=In(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[sW(t),cW(t)]},uW);var u6=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fW=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((a,o)=>{const l=`action-${o}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:l},u.createElement("span",null,a))}))},mW=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:l,headStyle:s={},bodyStyle:d={},title:f,loading:m,bordered:h=!0,size:v,type:y,cover:S,actions:C,tabList:w,children:E,activeTabKey:$,defaultActiveTabKey:O,tabBarExtraContent:N,hoverable:I,tabProps:R={},classNames:_,styles:z}=e,D=u6(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:L,direction:B,card:F}=u.useContext(Dt),H=Te=>{var Ue;(Ue=e.onTabChange)===null||Ue===void 0||Ue.call(e,Te)},k=Te=>{var Ue;return ue((Ue=F?.classNames)===null||Ue===void 0?void 0:Ue[Te],_?.[Te])},q=Te=>{var Ue;return Object.assign(Object.assign({},(Ue=F?.styles)===null||Ue===void 0?void 0:Ue[Te]),z?.[Te])},V=u.useMemo(()=>{let Te=!1;return u.Children.forEach(E,Ue=>{Ue?.type===vR&&(Te=!0)}),Te},[E]),W=L("card",n),[G,X,P]=dW(W),K=u.createElement(hu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},E),J=$!==void 0,j=Object.assign(Object.assign({},R),{[J?"activeKey":"defaultActiveKey"]:J?$:O,tabBarExtraContent:N});let Y;const ne=No(v),se=!ne||ne==="default"?"large":ne,de=w?u.createElement(zE,Object.assign({size:se},j,{className:`${W}-head-tabs`,onChange:H,items:w.map(Te=>{var{tab:Ue}=Te,qe=u6(Te,["tab"]);return Object.assign({label:Ue},qe)})})):null;if(f||l||de){const Te=ue(`${W}-head`,k("header")),Ue=ue(`${W}-head-title`,k("title")),qe=ue(`${W}-extra`,k("extra")),ze=Object.assign(Object.assign({},s),q("header"));Y=u.createElement("div",{className:Te,style:ze},u.createElement("div",{className:`${W}-head-wrapper`},f&&u.createElement("div",{className:Ue,style:q("title")},f),l&&u.createElement("div",{className:qe,style:q("extra")},l)),de)}const pe=ue(`${W}-cover`,k("cover")),Ce=S?u.createElement("div",{className:pe,style:q("cover")},S):null,he=ue(`${W}-body`,k("body")),me=Object.assign(Object.assign({},d),q("body")),be=u.createElement("div",{className:he,style:me},m?K:E),fe=ue(`${W}-actions`,k("actions")),ge=C?.length?u.createElement(fW,{actionClasses:fe,actionStyle:q("actions"),actions:C}):null,Oe=Qr(D,["onTabChange"]),Ne=ue(W,F?.className,{[`${W}-loading`]:m,[`${W}-bordered`]:h,[`${W}-hoverable`]:I,[`${W}-contain-grid`]:V,[`${W}-contain-tabs`]:w?.length,[`${W}-${ne}`]:ne,[`${W}-type-${y}`]:!!y,[`${W}-rtl`]:B==="rtl"},r,a,X,P),je=Object.assign(Object.assign({},F?.style),o);return G(u.createElement("div",Object.assign({ref:t},Oe,{className:Ne,style:je}),Y,Ce,be,ge))});var pW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gW=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,l=pW(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=u.useContext(Dt),d=s("card",t),f=ue(`${d}-meta`,n),m=r?u.createElement("div",{className:`${d}-meta-avatar`},r):null,h=a?u.createElement("div",{className:`${d}-meta-title`},a):null,v=o?u.createElement("div",{className:`${d}-meta-description`},o):null,y=h||v?u.createElement("div",{className:`${d}-meta-detail`},h,v):null;return u.createElement("div",Object.assign({},l,{className:f}),m,y)},Ml=mW;Ml.Grid=vR;Ml.Meta=gW;function hW(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,l=r.noLeading,s=l===void 0?!1:l,d=r.debounceMode,f=d===void 0?void 0:d,m,h=!1,v=0;function y(){m&&clearTimeout(m)}function S(w){var E=w||{},$=E.upcomingOnly,O=$===void 0?!1:$;y(),h=!O}function C(){for(var w=arguments.length,E=new Array(w),$=0;$<w;$++)E[$]=arguments[$];var O=this,N=Date.now()-v;if(h)return;function I(){v=Date.now(),t.apply(O,E)}function R(){m=void 0}!s&&f&&!m&&I(),y(),f===void 0&&N>e?s?(v=Date.now(),o||(m=setTimeout(f?R:I,e))):I():o!==!0&&(m=setTimeout(f?R:I,f===void 0?e-N:e))}return C.cancel=S,C}function vW(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return hW(e,t,{debounceMode:o!==!1})}function di(e,t){return e[t]}var yW=["children"];function yR(e,t){return"".concat(e,"-").concat(t)}function bW(e){return e&&e.type&&e.type.isTreeNode}function cv(e,t){return e??t}function tp(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,l=n||"title";return{title:l,_title:r||[l],key:a||"key",children:o||"children"}}function bR(e){function t(n){var r=ro(n);return r.map(function(a){if(!bW(a))return Yr(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,l=a.props,s=l.children,d=ln(l,yW),f=le({key:o},d),m=t(s);return m.length&&(f.children=m),f}).filter(function(a){return a})}return t(e)}function W2(e,t,n){var r=tp(n),a=r._title,o=r.key,l=r.children,s=new Set(t===!0?[]:t),d=[];function f(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(v,y){for(var S=yR(h?h.pos:"0",y),C=cv(v[o],S),w,E=0;E<a.length;E+=1){var $=a[E];if(v[$]!==void 0){w=v[$];break}}var O=Object.assign(Qr(v,[].concat(st(a),[o,l])),{title:w,key:C,parent:h,pos:S,children:null,data:v,isStart:[].concat(st(h?h.isStart:[]),[y===0]),isEnd:[].concat(st(h?h.isEnd:[]),[y===m.length-1])});return d.push(O),t===!0||s.has(C)?O.children=f(v[l]||[],O):O.children=[],O})}return f(e),d}function xW(e,t,n){var r={};Vt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,o=a.childrenPropName,l=a.externalGetKey,s=a.fieldNames,d=tp(s),f=d.key,m=d.children,h=o||m,v;l?typeof l=="string"?v=function(C){return C[l]}:typeof l=="function"&&(v=function(C){return l(C)}):v=function(C,w){return cv(C[f],w)};function y(S,C,w,E){var $=S?S[h]:e,O=S?yR(w.pos,C):"0",N=S?[].concat(st(E),[S]):[];if(S){var I=v(S,O),R={node:S,index:C,pos:O,key:I,parentPos:w.node?w.pos:null,level:w.level+1,nodes:N};t(R)}$&&$.forEach(function(_,z){y(_,z,{node:S,pos:O,level:w?w.level+1:-1},N)})}y(null)}function DE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,l=t.childrenPropName,s=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=o||d,m={},h={},v={posEntities:m,keyEntities:h};return n&&(v=n(v)||v),xW(e,function(y){var S=y.node,C=y.index,w=y.pos,E=y.key,$=y.parentPos,O=y.level,N=y.nodes,I={node:S,nodes:N,index:C,key:E,pos:w,level:O},R=cv(E,w);m[w]=I,h[R]=I,I.parent=m[$],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,v)},{externalGetKey:f,childrenPropName:l,fieldNames:s}),a&&a(v),v}function Ch(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,l=t.checkedKeys,s=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,m=t.keyEntities,h=di(m,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(h?h.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return v}function _a(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,l=e.loading,s=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,m=e.dragOverGapBottom,h=e.pos,v=e.active,y=e.eventKey,S=le(le({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:l,halfChecked:s,dragOver:d,dragOverGapTop:f,dragOverGapBottom:m,pos:h,active:v,key:y});return"props"in S||Object.defineProperty(S,"props",{get:function(){return Yr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),S}function xR(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function SW(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function CW(e,t,n,r){for(var a=new Set(e),o=new Set,l=0;l<=n;l+=1){var s=t.get(l)||new Set;s.forEach(function(h){var v=h.key,y=h.node,S=h.children,C=S===void 0?[]:S;a.has(v)&&!r(y)&&C.filter(function(w){return!r(w.node)}).forEach(function(w){a.add(w.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var m=t.get(f)||new Set;m.forEach(function(h){var v=h.parent,y=h.node;if(!(r(y)||!h.parent||d.has(h.parent.key))){if(r(h.parent.node)){d.add(v.key);return}var S=!0,C=!1;(v.children||[]).filter(function(w){return!r(w.node)}).forEach(function(w){var E=w.key,$=a.has(E);S&&!$&&(S=!1),!C&&($||o.has(E))&&(C=!0)}),S&&a.add(v.key),C&&o.add(v.key),d.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(xR(o,a))}}function wW(e,t,n,r,a){for(var o=new Set(e),l=new Set(t),s=0;s<=r;s+=1){var d=n.get(s)||new Set;d.forEach(function(v){var y=v.key,S=v.node,C=v.children,w=C===void 0?[]:C;!o.has(y)&&!l.has(y)&&!a(S)&&w.filter(function(E){return!a(E.node)}).forEach(function(E){o.delete(E.key)})})}l=new Set;for(var f=new Set,m=r;m>=0;m-=1){var h=n.get(m)||new Set;h.forEach(function(v){var y=v.parent,S=v.node;if(!(a(S)||!v.parent||f.has(v.parent.key))){if(a(v.parent.node)){f.add(y.key);return}var C=!0,w=!1;(y.children||[]).filter(function(E){return!a(E.node)}).forEach(function(E){var $=E.key,O=o.has($);C&&!O&&(C=!1),!w&&(O||l.has($))&&(w=!0)}),C||o.delete(y.key),w&&l.add(y.key),f.add(y.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(xR(l,o))}}function Hm(e,t,n,r){var a=[],o;r?o=r:o=SW;var l=new Set(e.filter(function(m){var h=!!di(n,m);return h||a.push(m),h})),s=new Map,d=0;Object.keys(n).forEach(function(m){var h=n[m],v=h.level,y=s.get(v);y||(y=new Set,s.set(v,y)),y.add(h),d=Math.max(d,v)}),Yr(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(m){return"'".concat(m,"'")}).join(", ")));var f;return t===!0?f=CW(l,s,d,o):f=wW(l,t.halfCheckedKeys,s,d,o),f}const EW=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},cr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},cr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},du(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ie(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function SR(e,t){const n=In(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[EW(n)]}const CR=nr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[SR(n,e)]}),wR=Se.createContext(null);var $W=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const OW=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:o,children:l,indeterminate:s=!1,style:d,onMouseEnter:f,onMouseLeave:m,skipGroup:h=!1,disabled:v}=e,y=$W(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:C,checkbox:w}=u.useContext(Dt),E=u.useContext(wR),{isFormItemInput:$}=u.useContext(Go),O=u.useContext(tl),N=(n=E?.disabled||v)!==null&&n!==void 0?n:O,I=u.useRef(y.value),R=u.useRef(null),_=io(t,R);u.useEffect(()=>{E?.registerValue(y.value)},[]),u.useEffect(()=>{if(!h)return y.value!==I.current&&(E?.cancelValue(I.current),E?.registerValue(y.value),I.current=y.value),()=>E?.cancelValue(y.value)},[y.value]),u.useEffect(()=>{var V;!((V=R.current)===null||V===void 0)&&V.input&&(R.current.input.indeterminate=s)},[s]);const z=S("checkbox",r),D=Ba(z),[L,B,F]=CR(z,D),H=Object.assign({},y);E&&!h&&(H.onChange=function(){y.onChange&&y.onChange.apply(y,arguments),E.toggleOption&&E.toggleOption({label:l,value:y.value})},H.name=E.name,H.checked=E.value.includes(y.value));const k=ue(`${z}-wrapper`,{[`${z}-rtl`]:C==="rtl",[`${z}-wrapper-checked`]:H.checked,[`${z}-wrapper-disabled`]:N,[`${z}-wrapper-in-form-item`]:$},w?.className,a,o,F,D,B),q=ue({[`${z}-indeterminate`]:s},pb,B);return L(u.createElement(ev,{component:"Checkbox",disabled:N},u.createElement("label",{className:k,style:Object.assign(Object.assign({},w?.style),d),onMouseEnter:f,onMouseLeave:m},u.createElement(sR,Object.assign({},H,{prefixCls:z,className:q,disabled:N,ref:_})),l!==void 0&&u.createElement("span",null,l))))},ER=u.forwardRef(OW);var MW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const RW=u.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:l,rootClassName:s,style:d,onChange:f}=e,m=MW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:h,direction:v}=u.useContext(Dt),[y,S]=u.useState(m.value||n||[]),[C,w]=u.useState([]);u.useEffect(()=>{"value"in m&&S(m.value||[])},[m.value]);const E=u.useMemo(()=>a.map(q=>typeof q=="string"||typeof q=="number"?{label:q,value:q}:q),[a]),$=q=>{w(V=>V.filter(W=>W!==q))},O=q=>{w(V=>[].concat(st(V),[q]))},N=q=>{const V=y.indexOf(q.value),W=st(y);V===-1?W.push(q.value):W.splice(V,1),"value"in m||S(W),f?.(W.filter(G=>C.includes(G)).sort((G,X)=>{const P=E.findIndex(J=>J.value===G),K=E.findIndex(J=>J.value===X);return P-K}))},I=h("checkbox",o),R=`${I}-group`,_=Ba(I),[z,D,L]=CR(I,_),B=Qr(m,["value","disabled"]),F=a.length?E.map(q=>u.createElement(ER,{prefixCls:I,key:q.value.toString(),disabled:"disabled"in q?q.disabled:m.disabled,value:q.value,checked:y.includes(q.value),onChange:q.onChange,className:`${R}-item`,style:q.style,title:q.title,id:q.id,required:q.required},q.label)):r,H={toggleOption:N,value:y,disabled:m.disabled,name:m.name,registerValue:O,cancelValue:$},k=ue(R,{[`${R}-rtl`]:v==="rtl"},l,s,L,_,D);return z(u.createElement("div",Object.assign({className:k,style:d},B,{ref:t}),u.createElement(wR.Provider,{value:H},F)))}),mu=ER;mu.Group=RW;mu.__ANT_CHECKBOX=!0;const $R=u.createContext({}),NW=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"}}}},TW=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},IW=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let l=a;l>=0;l--)l===0?(o[`${r}${t}-${l}`]={display:"none"},o[`${r}-push-${l}`]={insetInlineStart:"auto"},o[`${r}-pull-${l}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${l}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${l}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${l}`]={marginInlineStart:0},o[`${r}${t}-order-${l}`]={order:0}):(o[`${r}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/a*100}%`,maxWidth:`${l/a*100}%`}],o[`${r}${t}-push-${l}`]={insetInlineStart:`${l/a*100}%`},o[`${r}${t}-pull-${l}`]={insetInlineEnd:`${l/a*100}%`},o[`${r}${t}-offset-${l}`]={marginInlineStart:`${l/a*100}%`},o[`${r}${t}-order-${l}`]={order:l});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},HC=(e,t)=>IW(e,t),_W=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},HC(e,n))}),AW=()=>({}),PW=()=>({}),zW=nr("Grid",NW,AW),DW=nr("Grid",e=>{const t=In(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[TW(t),HC(t,""),HC(t,"-xs"),Object.keys(n).map(r=>_W(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},PW);var jW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function d6(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const kW=["xs","sm","md","lg","xl","xxl"],jE=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Dt),{gutter:a,wrap:o}=u.useContext($R),{prefixCls:l,span:s,order:d,offset:f,push:m,pull:h,className:v,children:y,flex:S,style:C}=e,w=jW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=n("col",l),[$,O,N]=DW(E),I={};let R={};kW.forEach(D=>{let L={};const B=e[D];typeof B=="number"?L.span=B:typeof B=="object"&&(L=B||{}),delete w[D],R=Object.assign(Object.assign({},R),{[`${E}-${D}-${L.span}`]:L.span!==void 0,[`${E}-${D}-order-${L.order}`]:L.order||L.order===0,[`${E}-${D}-offset-${L.offset}`]:L.offset||L.offset===0,[`${E}-${D}-push-${L.push}`]:L.push||L.push===0,[`${E}-${D}-pull-${L.pull}`]:L.pull||L.pull===0,[`${E}-rtl`]:r==="rtl"}),L.flex&&(R[`${E}-${D}-flex`]=!0,I[`--${E}-${D}-flex`]=d6(L.flex))});const _=ue(E,{[`${E}-${s}`]:s!==void 0,[`${E}-order-${d}`]:d,[`${E}-offset-${f}`]:f,[`${E}-push-${m}`]:m,[`${E}-pull-${h}`]:h},v,R,O,N),z={};if(a&&a[0]>0){const D=a[0]/2;z.paddingLeft=D,z.paddingRight=D}return S&&(z.flex=d6(S),o===!1&&!z.minWidth&&(z.minWidth=0)),$(u.createElement("div",Object.assign({},w,{style:Object.assign(Object.assign(Object.assign({},z),C),I),className:_,ref:t}),y))});var LW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function f6(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<Ld.length;o++){const l=Ld[o];if(!t[l])continue;const s=e[l];if(s!==void 0){r(s);return}}};return u.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const OR=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:l,children:s,gutter:d=0,wrap:f}=e,m=LW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:v}=u.useContext(Dt),[y,S]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,w]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=f6(a,C),$=f6(r,C),O=u.useRef(d),N=_M();u.useEffect(()=>{const W=N.subscribe(G=>{w(G);const X=O.current||0;(!Array.isArray(X)&&typeof X=="object"||Array.isArray(X)&&(typeof X[0]=="object"||typeof X[1]=="object"))&&S(G)});return()=>N.unsubscribe(W)},[]);const I=()=>{const W=[void 0,void 0];return(Array.isArray(d)?d:[d,void 0]).forEach((X,P)=>{if(typeof X=="object")for(let K=0;K<Ld.length;K++){const J=Ld[K];if(y[J]&&X[J]!==void 0){W[P]=X[J];break}}else W[P]=X}),W},R=h("row",n),[_,z,D]=zW(R),L=I(),B=ue(R,{[`${R}-no-wrap`]:f===!1,[`${R}-${$}`]:$,[`${R}-${E}`]:E,[`${R}-rtl`]:v==="rtl"},o,z,D),F={},H=L[0]!=null&&L[0]>0?L[0]/-2:void 0;H&&(F.marginLeft=H,F.marginRight=H);const[k,q]=L;F.rowGap=q;const V=u.useMemo(()=>({gutter:[k,q],wrap:f}),[k,q,f]);return _(u.createElement($R.Provider,{value:V},u.createElement("div",Object.assign({},m,{className:B,style:Object.assign(Object.assign({},F),l),ref:t}),s)))}),BW=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{borderBlockStart:`${ie(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ie(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ie(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ie(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:`${ie(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ie(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ie(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},FW=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),HW=nr("Divider",e=>{const t=In(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[BW(t)]},FW,{unitless:{orientationMargin:!0}});var VW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const KW=e=>{const{getPrefixCls:t,direction:n,divider:r}=u.useContext(Dt),{prefixCls:a,type:o="horizontal",orientation:l="center",orientationMargin:s,className:d,rootClassName:f,children:m,dashed:h,variant:v="solid",plain:y,style:S}=e,C=VW(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),w=t("divider",a),[E,$,O]=HW(w),N=!!m,I=l==="left"&&s!=null,R=l==="right"&&s!=null,_=ue(w,r?.className,$,O,`${w}-${o}`,{[`${w}-with-text`]:N,[`${w}-with-text-${l}`]:N,[`${w}-dashed`]:!!h,[`${w}-${v}`]:v!=="solid",[`${w}-plain`]:!!y,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-left`]:I,[`${w}-no-default-orientation-margin-right`]:R},d,f),z=u.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),D=Object.assign(Object.assign({},I&&{marginLeft:z}),R&&{marginRight:z});return E(u.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},r?.style),S)},C,{role:"separator"}),m&&o!=="vertical"&&u.createElement("span",{className:`${w}-inner-text`,style:D},m)))};function WW(e){return!!(e.addonBefore||e.addonAfter)}function UW(e){return!!(e.prefix||e.suffix||e.allowClear)}function m6(e,t,n){var r=t.cloneNode(!0),a=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)},a}function Uy(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=m6(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=m6(t,e,r),n(a);return}n(a)}}function qW(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var MR=Se.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,l=e.prefixCls,s=e.prefix,d=e.suffix,f=e.addonBefore,m=e.addonAfter,h=e.className,v=e.style,y=e.disabled,S=e.readOnly,C=e.focused,w=e.triggerFocus,E=e.allowClear,$=e.value,O=e.handleReset,N=e.hidden,I=e.classes,R=e.classNames,_=e.dataAttrs,z=e.styles,D=e.components,L=e.onClear,B=o??a,F=D?.affixWrapper||"span",H=D?.groupWrapper||"span",k=D?.wrapper||"span",q=D?.groupAddon||"span",V=u.useRef(null),W=function(ge){var Oe;(Oe=V.current)!==null&&Oe!==void 0&&Oe.contains(ge.target)&&w?.()},G=UW(e),X=u.cloneElement(B,{value:$,className:ue(B.props.className,!G&&R?.variant)||null}),P=u.useRef(null);if(Se.useImperativeHandle(t,function(){return{nativeElement:P.current||V.current}}),G){var K=null;if(E){var J=!y&&!S&&$,j="".concat(l,"-clear-icon"),Y=Vt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";K=Se.createElement("span",{onClick:function(ge){O?.(ge),L?.()},onMouseDown:function(ge){return ge.preventDefault()},className:ue(j,te(te({},"".concat(j,"-hidden"),!J),"".concat(j,"-has-suffix"),!!d)),role:"button",tabIndex:-1},Y)}var ne="".concat(l,"-affix-wrapper"),se=ue(ne,te(te(te(te(te({},"".concat(l,"-disabled"),y),"".concat(ne,"-disabled"),y),"".concat(ne,"-focused"),C),"".concat(ne,"-readonly"),S),"".concat(ne,"-input-with-clear-btn"),d&&E&&$),I?.affixWrapper,R?.affixWrapper,R?.variant),de=(d||E)&&Se.createElement("span",{className:ue("".concat(l,"-suffix"),R?.suffix),style:z?.suffix},K,d);X=Se.createElement(F,Je({className:se,style:z?.affixWrapper,onClick:W},_?.affixWrapper,{ref:V}),s&&Se.createElement("span",{className:ue("".concat(l,"-prefix"),R?.prefix),style:z?.prefix},s),X,de)}if(WW(e)){var pe="".concat(l,"-group"),Ce="".concat(pe,"-addon"),he="".concat(pe,"-wrapper"),me=ue("".concat(l,"-wrapper"),pe,I?.wrapper,R?.wrapper),be=ue(he,te({},"".concat(he,"-disabled"),y),I?.group,R?.groupWrapper);X=Se.createElement(H,{className:be,ref:P},Se.createElement(k,{className:me},f&&Se.createElement(q,{className:Ce},f),X,m&&Se.createElement(q,{className:Ce},m)))}return Se.cloneElement(X,{className:ue((n=X.props)===null||n===void 0?void 0:n.className,h)||null,style:le(le({},(r=X.props)===null||r===void 0?void 0:r.style),v),hidden:N})}),GW=["show"];function RR(e,t){return u.useMemo(function(){var n={};t&&(n.show=Vt(t)==="object"&&t.formatter?t.formatter:!!t),n=le(le({},n),e);var r=n,a=r.show,o=ln(r,GW);return le(le({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(l){return l.length}})},[e,t])}var XW=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],YW=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,d=e.onKeyUp,f=e.prefixCls,m=f===void 0?"rc-input":f,h=e.disabled,v=e.htmlSize,y=e.className,S=e.maxLength,C=e.suffix,w=e.showCount,E=e.count,$=e.type,O=$===void 0?"text":$,N=e.classes,I=e.classNames,R=e.styles,_=e.onCompositionStart,z=e.onCompositionEnd,D=ln(e,XW),L=u.useState(!1),B=Re(L,2),F=B[0],H=B[1],k=u.useRef(!1),q=u.useRef(!1),V=u.useRef(null),W=u.useRef(null),G=function(De){V.current&&qW(V.current,De)},X=kr(e.defaultValue,{value:e.value}),P=Re(X,2),K=P[0],J=P[1],j=K==null?"":String(K),Y=u.useState(null),ne=Re(Y,2),se=ne[0],de=ne[1],pe=RR(E,w),Ce=pe.max||S,he=pe.strategy(j),me=!!Ce&&he>Ce;u.useImperativeHandle(t,function(){var Be;return{focus:G,blur:function(){var ye;(ye=V.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,oe,we){var Fe;(Fe=V.current)===null||Fe===void 0||Fe.setSelectionRange(ye,oe,we)},select:function(){var ye;(ye=V.current)===null||ye===void 0||ye.select()},input:V.current,nativeElement:((Be=W.current)===null||Be===void 0?void 0:Be.nativeElement)||V.current}}),u.useEffect(function(){q.current&&(q.current=!1),H(function(Be){return Be&&h?!1:Be})},[h]);var be=function(De,ye,oe){var we=ye;if(!k.current&&pe.exceedFormatter&&pe.max&&pe.strategy(ye)>pe.max){if(we=pe.exceedFormatter(ye,{max:pe.max}),ye!==we){var Fe,xe;de([((Fe=V.current)===null||Fe===void 0?void 0:Fe.selectionStart)||0,((xe=V.current)===null||xe===void 0?void 0:xe.selectionEnd)||0])}}else if(oe.source==="compositionEnd")return;J(we),V.current&&Uy(V.current,De,r,we)};u.useEffect(function(){if(se){var Be;(Be=V.current)===null||Be===void 0||Be.setSelectionRange.apply(Be,st(se))}},[se]);var fe=function(De){be(De,De.target.value,{source:"change"})},ge=function(De){k.current=!1,be(De,De.currentTarget.value,{source:"compositionEnd"}),z?.(De)},Oe=function(De){l&&De.key==="Enter"&&!q.current&&(q.current=!0,l(De)),s?.(De)},Ne=function(De){De.key==="Enter"&&(q.current=!1),d?.(De)},je=function(De){H(!0),a?.(De)},Te=function(De){q.current&&(q.current=!1),H(!1),o?.(De)},Ue=function(De){J(""),G(),V.current&&Uy(V.current,De,r)},qe=me&&"".concat(m,"-out-of-range"),ze=function(){var De=Qr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Se.createElement("input",Je({autoComplete:n},De,{onChange:fe,onFocus:je,onBlur:Te,onKeyDown:Oe,onKeyUp:Ne,className:ue(m,te({},"".concat(m,"-disabled"),h),I?.input),style:R?.input,ref:V,size:v,type:O,onCompositionStart:function(oe){k.current=!0,_?.(oe)},onCompositionEnd:ge}))},Ve=function(){var De=Number(Ce)>0;if(C||pe.show){var ye=pe.showFormatter?pe.showFormatter({value:j,count:he,maxLength:Ce}):"".concat(he).concat(De?" / ".concat(Ce):"");return Se.createElement(Se.Fragment,null,pe.show&&Se.createElement("span",{className:ue("".concat(m,"-show-count-suffix"),te({},"".concat(m,"-show-count-has-suffix"),!!C),I?.count),style:le({},R?.count)},ye),C)}return null};return Se.createElement(MR,Je({},D,{prefixCls:m,className:ue(y,qe),handleReset:Ue,value:j,focused:F,triggerFocus:G,suffix:Ve(),disabled:h,classes:N,classNames:I,styles:R}),ze())});const QW=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Dt),{prefixCls:r,className:a}=e,o=t("input-group",r),l=t("input"),[s,d]=PE(l),f=ue(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},d,a),m=u.useContext(Go),h=u.useMemo(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return s(u.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(Go.Provider,{value:h},e.children)))},NR=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:Se.createElement(Vd,null)}),t};function TR(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,l,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function ZW(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var JW=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function eU(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const zb=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,status:o,size:l,disabled:s,onBlur:d,onFocus:f,suffix:m,allowClear:h,addonAfter:v,addonBefore:y,className:S,style:C,styles:w,rootClassName:E,onChange:$,classNames:O,variant:N}=e,I=JW(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:R,direction:_,input:z}=Se.useContext(Dt),D=R("input",r),L=u.useRef(null),B=Ba(D),[F,H,k]=PE(D,B),{compactSize:q,compactItemClassnames:V}=tv(D,_),W=No(fe=>{var ge;return(ge=l??q)!==null&&ge!==void 0?ge:fe}),G=Se.useContext(tl),X=s??G,{status:P,hasFeedback:K,feedbackIcon:J}=u.useContext(Go),j=$b(P,o),Y=ZW(e)||!!K;u.useRef(Y);const ne=TR(L,!0),se=fe=>{ne(),d?.(fe)},de=fe=>{ne(),f?.(fe)},pe=fe=>{ne(),$?.(fe)},Ce=(K||m)&&Se.createElement(Se.Fragment,null,m,K&&J),he=NR(h??z?.allowClear),[me,be]=hE("input",N,a);return F(Se.createElement(YW,Object.assign({ref:io(t,L),prefixCls:D,autoComplete:z?.autoComplete},I,{disabled:X,onBlur:se,onFocus:de,style:Object.assign(Object.assign({},z?.style),C),styles:Object.assign(Object.assign({},z?.styles),w),suffix:Ce,allowClear:he,className:ue(S,E,k,B,V,z?.className),onChange:pe,addonBefore:y&&Se.createElement(Zm,{form:!0,space:!0},y),addonAfter:v&&Se.createElement(Zm,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},O),z?.classNames),{input:ue({[`${D}-sm`]:W==="small",[`${D}-lg`]:W==="large",[`${D}-rtl`]:_==="rtl"},O?.input,(n=z?.classNames)===null||n===void 0?void 0:n.input,H),variant:ue({[`${D}-${me}`]:be},By(D,j)),affixWrapper:ue({[`${D}-affix-wrapper-sm`]:W==="small",[`${D}-affix-wrapper-lg`]:W==="large",[`${D}-affix-wrapper-rtl`]:_==="rtl"},H),wrapper:ue({[`${D}-group-rtl`]:_==="rtl"},H),groupWrapper:ue({[`${D}-group-wrapper-sm`]:W==="small",[`${D}-group-wrapper-lg`]:W==="large",[`${D}-group-wrapper-rtl`]:_==="rtl",[`${D}-group-wrapper-${me}`]:be},By(`${D}-group-wrapper`,j,K),H)})})))}),tU=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},nU=nr(["Input","OTP"],e=>{const t=In(e,NE(e));return[tU(t)]},TE);var rU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aU=u.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:a,index:o,mask:l}=e,s=rU(e,["value","onChange","onActiveChange","index","mask"]),d=n&&typeof l=="string"?l:n,f=S=>{r(o,S.target.value)},m=u.useRef(null);u.useImperativeHandle(t,()=>m.current);const h=()=>{sr(()=>{var S;const C=(S=m.current)===null||S===void 0?void 0:S.input;document.activeElement===C&&C&&C.select()})},v=S=>{let{key:C}=S;C==="ArrowLeft"?a(o-1):C==="ArrowRight"&&a(o+1),h()},y=S=>{S.key==="Backspace"&&!n&&a(o-1),h()};return u.createElement(zb,Object.assign({type:l===!0?"password":"text"},s,{ref:m,value:d,onInput:f,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h}))});var oU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function V1(e){return(e||"").split("")}const iU=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:l,onChange:s,formatter:d,variant:f,disabled:m,status:h,autoFocus:v,mask:y,type:S}=e,C=oU(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]),{getPrefixCls:w,direction:E}=u.useContext(Dt),$=w("otp",n),O=Pa(C,{aria:!0,data:!0,attr:!0}),N=Ba($),[I,R,_]=nU($,N),z=No(J=>a??J),D=u.useContext(Go),L=$b(D.status,h),B=u.useMemo(()=>Object.assign(Object.assign({},D),{status:L,hasFeedback:!1,feedbackIcon:null}),[D,L]),F=u.useRef(null),H=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var J;(J=H.current[0])===null||J===void 0||J.focus()},blur:()=>{var J;for(let j=0;j<r;j+=1)(J=H.current[j])===null||J===void 0||J.blur()},nativeElement:F.current}));const k=J=>d?d(J):J,[q,V]=u.useState(V1(k(o||"")));u.useEffect(()=>{l!==void 0&&V(V1(l))},[l]);const W=vr(J=>{V(J),s&&J.length===r&&J.every(j=>j)&&J.some((j,Y)=>q[Y]!==j)&&s(J.join(""))}),G=vr((J,j)=>{let Y=st(q);for(let se=0;se<J;se+=1)Y[se]||(Y[se]="");j.length<=1?Y[J]=j:Y=Y.slice(0,J).concat(V1(j)),Y=Y.slice(0,r);for(let se=Y.length-1;se>=0&&!Y[se];se-=1)Y.pop();const ne=k(Y.map(se=>se||" ").join(""));return Y=V1(ne).map((se,de)=>se===" "&&!Y[de]?Y[de]:se),Y}),X=(J,j)=>{var Y;const ne=G(J,j),se=Math.min(J+j.length,r-1);se!==J&&((Y=H.current[se])===null||Y===void 0||Y.focus()),W(ne)},P=J=>{var j;(j=H.current[J])===null||j===void 0||j.focus()},K={variant:f,disabled:m,status:L,mask:y,type:S};return I(u.createElement("div",Object.assign({},O,{ref:F,className:ue($,{[`${$}-sm`]:z==="small",[`${$}-lg`]:z==="large",[`${$}-rtl`]:E==="rtl"},_,R)}),u.createElement(Go.Provider,{value:B},Array.from({length:r}).map((J,j)=>{const Y=`otp-${j}`,ne=q[j]||"";return u.createElement(aU,Object.assign({ref:se=>{H.current[j]=se},key:Y,index:j,size:z,htmlSize:1,className:`${$}-input`,onChange:X,value:ne,onActiveChange:P,autoFocus:j===0&&v},K))}))))});var lU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},sU=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:lU}))},cU=u.forwardRef(sU),uU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},dU=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:uU}))},IR=u.forwardRef(dU),fU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mU=e=>e?u.createElement(IR,null):u.createElement(cU,null),pU={click:"onClick",hover:"onMouseOver"},gU=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=mU}=e,l=u.useContext(tl),s=n??l,d=typeof a=="object"&&a.visible!==void 0,[f,m]=u.useState(()=>d?a.visible:!1),h=u.useRef(null);u.useEffect(()=>{d&&m(a.visible)},[d,a]);const v=TR(h),y=()=>{s||(f&&v(),m(L=>{var B;const F=!L;return typeof a=="object"&&((B=a.onVisibleChange)===null||B===void 0||B.call(a,F)),F}))},S=L=>{const B=pU[r]||"",F=o(f),H={[B]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:k=>{k.preventDefault()},onMouseUp:k=>{k.preventDefault()}};return u.cloneElement(u.isValidElement(F)?F:u.createElement("span",null,F),H)},{className:C,prefixCls:w,inputPrefixCls:E,size:$}=e,O=fU(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:N}=u.useContext(Dt),I=N("input",E),R=N("input-password",w),_=a&&S(R),z=ue(R,C,{[`${R}-${$}`]:!!$}),D=Object.assign(Object.assign({},Qr(O,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:z,prefixCls:I,suffix:_});return $&&(D.size=$),u.createElement(zb,Object.assign({ref:io(t,h)},D))});var hU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vU=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:l,enterButton:s=!1,addonAfter:d,loading:f,disabled:m,onSearch:h,onChange:v,onCompositionStart:y,onCompositionEnd:S}=e,C=hU(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:E}=u.useContext(Dt),$=u.useRef(!1),O=w("input-search",n),N=w("input",r),{compactSize:I}=tv(O,E),R=No(P=>{var K;return(K=o??I)!==null&&K!==void 0?K:P}),_=u.useRef(null),z=P=>{P?.target&&P.type==="click"&&h&&h(P.target.value,P,{source:"clear"}),v?.(P)},D=P=>{var K;document.activeElement===((K=_.current)===null||K===void 0?void 0:K.input)&&P.preventDefault()},L=P=>{var K,J;h&&h((J=(K=_.current)===null||K===void 0?void 0:K.input)===null||J===void 0?void 0:J.value,P,{source:"input"})},B=P=>{$.current||f||L(P)},F=typeof s=="boolean"?u.createElement(lv,null):null,H=`${O}-button`;let k;const q=s||{},V=q.type&&q.type.__ANT_BUTTON===!0;V||q.type==="button"?k=za(q,Object.assign({onMouseDown:D,onClick:P=>{var K,J;(J=(K=q?.props)===null||K===void 0?void 0:K.onClick)===null||J===void 0||J.call(K,P),L(P)},key:"enterButton"},V?{className:H,size:R}:{})):k=u.createElement(Un,{className:H,type:s?"primary":void 0,size:R,disabled:m,key:"enterButton",onMouseDown:D,onClick:L,loading:f,icon:F},s),d&&(k=[k,za(d,{key:"addonAfter"})]);const W=ue(O,{[`${O}-rtl`]:E==="rtl",[`${O}-${R}`]:!!R,[`${O}-with-button`]:!!s},a),G=P=>{$.current=!0,y?.(P)},X=P=>{$.current=!1,S?.(P)};return u.createElement(zb,Object.assign({ref:io(_,t),onPressEnter:B},C,{size:R,onCompositionStart:G,onCompositionEnd:X,prefixCls:N,addonAfter:k,suffix:l,onChange:z,className:W,disabled:m}))});var yU=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,bU=["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"],U2={},Ri;function xU(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&&U2[n])return U2[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=bU.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:s,paddingSize:o,borderSize:l,boxSizing:a};return t&&n&&(U2[n]=d),d}function SU(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;Ri||(Ri=document.createElement("textarea"),Ri.setAttribute("tab-index","-1"),Ri.setAttribute("aria-hidden","true"),Ri.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ri)),e.getAttribute("wrap")?Ri.setAttribute("wrap",e.getAttribute("wrap")):Ri.removeAttribute("wrap");var a=xU(e,t),o=a.paddingSize,l=a.borderSize,s=a.boxSizing,d=a.sizingStyle;Ri.setAttribute("style","".concat(d,";").concat(yU)),Ri.value=e.value||e.placeholder||"";var f=void 0,m=void 0,h,v=Ri.scrollHeight;if(s==="border-box"?v+=l:s==="content-box"&&(v-=o),n!==null||r!==null){Ri.value=" ";var y=Ri.scrollHeight-o;n!==null&&(f=y*n,s==="border-box"&&(f=f+o+l),v=Math.max(f,v)),r!==null&&(m=y*r,s==="border-box"&&(m=m+o+l),h=v>m?"":"hidden",v=Math.min(m,v))}var S={height:v,overflowY:h,resize:"none"};return f&&(S.minHeight=f),m&&(S.maxHeight=m),S}var CU=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],q2=0,G2=1,X2=2,wU=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,l=n.autoSize,s=n.onResize,d=n.className,f=n.style,m=n.disabled,h=n.onChange;n.onInternalAutoSize;var v=ln(n,CU),y=kr(a,{value:o,postState:function(Y){return Y??""}}),S=Re(y,2),C=S[0],w=S[1],E=function(Y){w(Y.target.value),h?.(Y)},$=u.useRef();u.useImperativeHandle(t,function(){return{textArea:$.current}});var O=u.useMemo(function(){return l&&Vt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),N=Re(O,2),I=N[0],R=N[1],_=!!l,z=function(){try{if(document.activeElement===$.current){var Y=$.current,ne=Y.selectionStart,se=Y.selectionEnd,de=Y.scrollTop;$.current.setSelectionRange(ne,se),$.current.scrollTop=de}}catch{}},D=u.useState(X2),L=Re(D,2),B=L[0],F=L[1],H=u.useState(),k=Re(H,2),q=k[0],V=k[1],W=function(){F(q2)};Ln(function(){_&&W()},[o,I,R,_]),Ln(function(){if(B===q2)F(G2);else if(B===G2){var j=SU($.current,!1,I,R);F(X2),V(j)}else z()},[B]);var G=u.useRef(),X=function(){sr.cancel(G.current)},P=function(Y){B===X2&&(s?.(Y),l&&(X(),G.current=sr(function(){W()})))};u.useEffect(function(){return X},[]);var K=_?q:null,J=le(le({},f),K);return(B===q2||B===G2)&&(J.overflowY="hidden",J.overflowX="hidden"),u.createElement(qo,{onResize:P,disabled:!(l||s)},u.createElement("textarea",Je({},v,{ref:$,style:J,className:ue(r,d,te({},"".concat(r,"-disabled"),m)),disabled:m,value:C,onChange:E})))}),EU=["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"],$U=Se.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,l=e.onBlur,s=e.onChange,d=e.allowClear,f=e.maxLength,m=e.onCompositionStart,h=e.onCompositionEnd,v=e.suffix,y=e.prefixCls,S=y===void 0?"rc-textarea":y,C=e.showCount,w=e.count,E=e.className,$=e.style,O=e.disabled,N=e.hidden,I=e.classNames,R=e.styles,_=e.onResize,z=e.onClear,D=e.onPressEnter,L=e.readOnly,B=e.autoSize,F=e.onKeyDown,H=ln(e,EU),k=kr(r,{value:a,defaultValue:r}),q=Re(k,2),V=q[0],W=q[1],G=V==null?"":String(V),X=Se.useState(!1),P=Re(X,2),K=P[0],J=P[1],j=Se.useRef(!1),Y=Se.useState(null),ne=Re(Y,2),se=ne[0],de=ne[1],pe=u.useRef(null),Ce=u.useRef(null),he=function(){var tt;return(tt=Ce.current)===null||tt===void 0?void 0:tt.textArea},me=function(){he().focus()};u.useImperativeHandle(t,function(){var ut;return{resizableTextArea:Ce.current,focus:me,blur:function(){he().blur()},nativeElement:((ut=pe.current)===null||ut===void 0?void 0:ut.nativeElement)||he()}}),u.useEffect(function(){J(function(ut){return!O&&ut})},[O]);var be=Se.useState(null),fe=Re(be,2),ge=fe[0],Oe=fe[1];Se.useEffect(function(){if(ge){var ut;(ut=he()).setSelectionRange.apply(ut,st(ge))}},[ge]);var Ne=RR(w,C),je=(n=Ne.max)!==null&&n!==void 0?n:f,Te=Number(je)>0,Ue=Ne.strategy(G),qe=!!je&&Ue>je,ze=function(tt,mt){var at=mt;!j.current&&Ne.exceedFormatter&&Ne.max&&Ne.strategy(mt)>Ne.max&&(at=Ne.exceedFormatter(mt,{max:Ne.max}),mt!==at&&Oe([he().selectionStart||0,he().selectionEnd||0])),W(at),Uy(tt.currentTarget,tt,s,at)},Ve=function(tt){j.current=!0,m?.(tt)},Be=function(tt){j.current=!1,ze(tt,tt.currentTarget.value),h?.(tt)},De=function(tt){ze(tt,tt.target.value)},ye=function(tt){tt.key==="Enter"&&D&&D(tt),F?.(tt)},oe=function(tt){J(!0),o?.(tt)},we=function(tt){J(!1),l?.(tt)},Fe=function(tt){W(""),me(),Uy(he(),tt,s)},xe=v,_e;Ne.show&&(Ne.showFormatter?_e=Ne.showFormatter({value:G,count:Ue,maxLength:je}):_e="".concat(Ue).concat(Te?" / ".concat(je):""),xe=Se.createElement(Se.Fragment,null,xe,Se.createElement("span",{className:ue("".concat(S,"-data-count"),I?.count),style:R?.count},_e)));var rt=function(tt){var mt;_?.(tt),(mt=he())!==null&&mt!==void 0&&mt.style.height&&de(!0)},lt=!B&&!C&&!d;return Se.createElement(MR,{ref:pe,value:G,allowClear:d,handleReset:Fe,suffix:xe,prefixCls:S,classNames:le(le({},I),{},{affixWrapper:ue(I?.affixWrapper,te(te({},"".concat(S,"-show-count"),C),"".concat(S,"-textarea-allow-clear"),d))}),disabled:O,focused:K,className:ue(E,qe&&"".concat(S,"-out-of-range")),style:le(le({},$),se&&!lt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _e=="string"?_e:void 0}},hidden:N,readOnly:L,onClear:z},Se.createElement(wU,Je({},H,{autoSize:B,maxLength:f,onKeyDown:ye,onChange:De,onFocus:oe,onBlur:we,onCompositionStart:Ve,onCompositionEnd:Be,className:ue(I?.textarea),style:le(le({},R?.textarea),{},{resize:$?.resize}),disabled:O,prefixCls:S,onResize:rt,ref:Ce,readOnly:L})))}),OU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _R=u.forwardRef((e,t)=>{var n,r;const{prefixCls:a,bordered:o=!0,size:l,disabled:s,status:d,allowClear:f,classNames:m,rootClassName:h,className:v,style:y,styles:S,variant:C}=e,w=OU(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:E,direction:$,textArea:O}=u.useContext(Dt),N=No(l),I=u.useContext(tl),R=s??I,{status:_,hasFeedback:z,feedbackIcon:D}=u.useContext(Go),L=$b(_,d),B=u.useRef(null);u.useImperativeHandle(t,()=>{var P;return{resizableTextArea:(P=B.current)===null||P===void 0?void 0:P.resizableTextArea,focus:K=>{var J,j;eU((j=(J=B.current)===null||J===void 0?void 0:J.resizableTextArea)===null||j===void 0?void 0:j.textArea,K)},blur:()=>{var K;return(K=B.current)===null||K===void 0?void 0:K.blur()}}});const F=E("input",a),H=Ba(F),[k,q,V]=PE(F,H),[W,G]=hE("textArea",C,o),X=NR(f??O?.allowClear);return k(u.createElement($U,Object.assign({autoComplete:O?.autoComplete},w,{style:Object.assign(Object.assign({},O?.style),y),styles:Object.assign(Object.assign({},O?.styles),S),disabled:R,allowClear:X,className:ue(V,H,v,h,O?.className),classNames:Object.assign(Object.assign(Object.assign({},m),O?.classNames),{textarea:ue({[`${F}-sm`]:N==="small",[`${F}-lg`]:N==="large"},q,m?.textarea,(n=O?.classNames)===null||n===void 0?void 0:n.textarea),variant:ue({[`${F}-${W}`]:G},By(F,L)),affixWrapper:ue(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:$==="rtl",[`${F}-affix-wrapper-sm`]:N==="small",[`${F}-affix-wrapper-lg`]:N==="large",[`${F}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},q)}),prefixCls:F,suffix:z&&u.createElement("span",{className:`${F}-textarea-suffix`},D),ref:B})))}),Pn=zb;Pn.Group=QW;Pn.Search=vU;Pn.TextArea=_R;Pn.Password=gU;Pn.OTP=iU;var MU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},RU=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:MU}))},NU=u.forwardRef(RU),p6=u.createContext(null),AR=u.createContext({}),TU=["prefixCls","className","containerRef"],IU=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=ln(t,TU),l=u.useContext(AR),s=l.panel,d=oc(s,a);return u.createElement("div",Je({className:ue("".concat(n,"-content"),r),role:"dialog",ref:d},Pa(t,{aria:!0}),{"aria-modal":"true"},o))};function g6(e){return typeof e=="string"&&String(Number(e))===e?(Yr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var h6={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _U(e,t){var n,r,a,o=e.prefixCls,l=e.open,s=e.placement,d=e.inline,f=e.push,m=e.forceRender,h=e.autoFocus,v=e.keyboard,y=e.classNames,S=e.rootClassName,C=e.rootStyle,w=e.zIndex,E=e.className,$=e.id,O=e.style,N=e.motion,I=e.width,R=e.height,_=e.children,z=e.mask,D=e.maskClosable,L=e.maskMotion,B=e.maskClassName,F=e.maskStyle,H=e.afterOpenChange,k=e.onClose,q=e.onMouseEnter,V=e.onMouseOver,W=e.onMouseLeave,G=e.onClick,X=e.onKeyDown,P=e.onKeyUp,K=e.styles,J=e.drawerRender,j=u.useRef(),Y=u.useRef(),ne=u.useRef();u.useImperativeHandle(t,function(){return j.current});var se=function(Ve){var Be=Ve.keyCode,De=Ve.shiftKey;switch(Be){case Pt.TAB:{if(Be===Pt.TAB){if(!De&&document.activeElement===ne.current){var ye;(ye=Y.current)===null||ye===void 0||ye.focus({preventScroll:!0})}else if(De&&document.activeElement===Y.current){var oe;(oe=ne.current)===null||oe===void 0||oe.focus({preventScroll:!0})}}break}case Pt.ESC:{k&&v&&(Ve.stopPropagation(),k(Ve));break}}};u.useEffect(function(){if(l&&h){var ze;(ze=j.current)===null||ze===void 0||ze.focus({preventScroll:!0})}},[l]);var de=u.useState(!1),pe=Re(de,2),Ce=pe[0],he=pe[1],me=u.useContext(p6),be;typeof f=="boolean"?be=f?{}:{distance:0}:be=f||{};var fe=(n=(r=(a=be)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:me?.pushDistance)!==null&&n!==void 0?n:180,ge=u.useMemo(function(){return{pushDistance:fe,push:function(){he(!0)},pull:function(){he(!1)}}},[fe]);u.useEffect(function(){if(l){var ze;me==null||(ze=me.push)===null||ze===void 0||ze.call(me)}else{var Ve;me==null||(Ve=me.pull)===null||Ve===void 0||Ve.call(me)}},[l]),u.useEffect(function(){return function(){var ze;me==null||(ze=me.pull)===null||ze===void 0||ze.call(me)}},[]);var Oe=z&&u.createElement(Mo,Je({key:"mask"},L,{visible:l}),function(ze,Ve){var Be=ze.className,De=ze.style;return u.createElement("div",{className:ue("".concat(o,"-mask"),Be,y?.mask,B),style:le(le(le({},De),F),K?.mask),onClick:D&&l?k:void 0,ref:Ve})}),Ne=typeof N=="function"?N(s):N,je={};if(Ce&&fe)switch(s){case"top":je.transform="translateY(".concat(fe,"px)");break;case"bottom":je.transform="translateY(".concat(-fe,"px)");break;case"left":je.transform="translateX(".concat(fe,"px)");break;default:je.transform="translateX(".concat(-fe,"px)");break}s==="left"||s==="right"?je.width=g6(I):je.height=g6(R);var Te={onMouseEnter:q,onMouseOver:V,onMouseLeave:W,onClick:G,onKeyDown:X,onKeyUp:P},Ue=u.createElement(Mo,Je({key:"panel"},Ne,{visible:l,forceRender:m,onVisibleChanged:function(Ve){H?.(Ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(ze,Ve){var Be=ze.className,De=ze.style,ye=u.createElement(IU,Je({id:$,containerRef:Ve,prefixCls:o,className:ue(E,y?.content),style:le(le({},O),K?.content)},Pa(e,{aria:!0}),Te),_);return u.createElement("div",Je({className:ue("".concat(o,"-content-wrapper"),y?.wrapper,Be),style:le(le(le({},je),De),K?.wrapper)},Pa(e,{data:!0})),J?J(ye):ye)}),qe=le({},C);return w&&(qe.zIndex=w),u.createElement(p6.Provider,{value:ge},u.createElement("div",{className:ue(o,"".concat(o,"-").concat(s),S,te(te({},"".concat(o,"-open"),l),"".concat(o,"-inline"),d)),style:qe,tabIndex:-1,ref:j,onKeyDown:se},Oe,u.createElement("div",{tabIndex:0,ref:Y,style:h6,"aria-hidden":"true","data-sentinel":"start"}),Ue,u.createElement("div",{tabIndex:0,ref:ne,style:h6,"aria-hidden":"true","data-sentinel":"end"})))}var AU=u.forwardRef(_U),PU=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,l=t.placement,s=l===void 0?"right":l,d=t.autoFocus,f=d===void 0?!0:d,m=t.keyboard,h=m===void 0?!0:m,v=t.width,y=v===void 0?378:v,S=t.mask,C=S===void 0?!0:S,w=t.maskClosable,E=w===void 0?!0:w,$=t.getContainer,O=t.forceRender,N=t.afterOpenChange,I=t.destroyOnClose,R=t.onMouseEnter,_=t.onMouseOver,z=t.onMouseLeave,D=t.onClick,L=t.onKeyDown,B=t.onKeyUp,F=t.panelRef,H=u.useState(!1),k=Re(H,2),q=k[0],V=k[1],W=u.useState(!1),G=Re(W,2),X=G[0],P=G[1];Ln(function(){P(!0)},[]);var K=X?r:!1,J=u.useRef(),j=u.useRef();Ln(function(){K&&(j.current=document.activeElement)},[K]);var Y=function(Ce){var he;if(V(Ce),N?.(Ce),!Ce&&j.current&&!((he=J.current)!==null&&he!==void 0&&he.contains(j.current))){var me;(me=j.current)===null||me===void 0||me.focus({preventScroll:!0})}},ne=u.useMemo(function(){return{panel:F}},[F]);if(!O&&!q&&!K&&I)return null;var se={onMouseEnter:R,onMouseOver:_,onMouseLeave:z,onClick:D,onKeyDown:L,onKeyUp:B},de=le(le({},t),{},{open:K,prefixCls:o,placement:s,autoFocus:f,keyboard:h,width:y,mask:C,maskClosable:E,inline:$===!1,afterOpenChange:Y,ref:J},se);return u.createElement(AR.Provider,{value:ne},u.createElement(bb,{open:K||O||q,autoDestroy:!1,getContainer:$,autoLock:C&&(K||q)},u.createElement(AU,de)))};const PR=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:l,loading:s,onClose:d,headerStyle:f,bodyStyle:m,footerStyle:h,children:v,classNames:y,styles:S}=e,{drawer:C}=u.useContext(Dt),w=u.useCallback(I=>u.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:`${r}-close`},I),[d]),[E,$]=cE(Jm(e),Jm(C),{closable:!0,closeIconRender:w}),O=u.useMemo(()=>{var I,R;return!a&&!E?null:u.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(I=C?.styles)===null||I===void 0?void 0:I.header),f),S?.header),className:ue(`${r}-header`,{[`${r}-header-close-only`]:E&&!a&&!l},(R=C?.classNames)===null||R===void 0?void 0:R.header,y?.header)},u.createElement("div",{className:`${r}-header-title`},$,a&&u.createElement("div",{className:`${r}-title`},a)),l&&u.createElement("div",{className:`${r}-extra`},l))},[E,$,l,f,r,a]),N=u.useMemo(()=>{var I,R;if(!o)return null;const _=`${r}-footer`;return u.createElement("div",{className:ue(_,(I=C?.classNames)===null||I===void 0?void 0:I.footer,y?.footer),style:Object.assign(Object.assign(Object.assign({},(R=C?.styles)===null||R===void 0?void 0:R.footer),h),S?.footer)},o)},[o,h,r]);return u.createElement(u.Fragment,null,O,u.createElement("div",{className:ue(`${r}-body`,y?.body,(t=C?.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=C?.styles)===null||n===void 0?void 0:n.body),m),S?.body)},s?u.createElement(hu,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):v),N)},zU=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},zR=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),DR=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},zR({opacity:e},{opacity:1})),DU=(e,t)=>[DR(.7,t),zR({transform:zU(e)},{transform:"none"})],jU=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:DR(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:DU(a,n)}),{})}}},kU=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:l,motionDurationMid:s,paddingXS:d,padding:f,paddingLG:m,fontSizeLG:h,lineHeightLG:v,lineWidth:y,lineType:S,colorSplit:C,marginXS:w,colorIcon:E,colorIconHover:$,colorBgTextHover:O,colorBgTextActive:N,colorText:I,fontWeightStrong:R,footerPaddingBlock:_,footerPaddingInline:z,calc:D}=e,L=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:I,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[L]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${L}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${L}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${L}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${L}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ie(f)} ${ie(m)}`,fontSize:h,lineHeight:v,borderBottom:`${ie(y)} ${S} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:D(h).add(d).equal(),height:D(h).add(d).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:w,color:E,fontWeight:R,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:$,backgroundColor:O,textDecoration:"none"},"&:active":{backgroundColor:N}},bs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:v},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:m,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${ie(_)} ${ie(z)}`,borderTop:`${ie(y)} ${S} ${C}`},"&-rtl":{direction:"rtl"}}}},LU=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),jR=nr("Drawer",e=>{const t=In(e,{});return[kU(t),jU(t)]},LU);var kR=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const BU={distance:180},LR=e=>{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:l=BU,open:s,afterOpenChange:d,onClose:f,prefixCls:m,getContainer:h,style:v,className:y,visible:S,afterVisibleChange:C,maskStyle:w,drawerStyle:E,contentWrapperStyle:$}=e,O=kR(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:N,getPrefixCls:I,direction:R,drawer:_}=u.useContext(Dt),z=I("drawer",m),[D,L,B]=jR(z),F=h===void 0&&N?()=>N(document.body):h,H=ue({"no-mask":!o,[`${z}-rtl`]:R==="rtl"},t,L,B),k=u.useMemo(()=>n??(a==="large"?736:378),[n,a]),q=u.useMemo(()=>r??(a==="large"?736:378),[r,a]),V={motionName:xs(z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},W=ne=>({motionName:xs(z,`panel-motion-${ne}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),G=YO(),[X,P]=lp("Drawer",O.zIndex),{classNames:K={},styles:J={}}=O,{classNames:j={},styles:Y={}}=_||{};return D(u.createElement(Zm,{form:!0,space:!0},u.createElement(Qh.Provider,{value:P},u.createElement(PU,Object.assign({prefixCls:z,onClose:f,maskMotion:V,motion:W},O,{classNames:{mask:ue(K.mask,j.mask),content:ue(K.content,j.content),wrapper:ue(K.wrapper,j.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},J.mask),w),Y.mask),content:Object.assign(Object.assign(Object.assign({},J.content),E),Y.content),wrapper:Object.assign(Object.assign(Object.assign({},J.wrapper),$),Y.wrapper)},open:s??S,mask:o,push:l,width:k,height:q,style:Object.assign(Object.assign({},_?.style),v),className:ue(_?.className,y),rootClassName:H,getContainer:F,afterOpenChange:d??C,panelRef:G,zIndex:X}),u.createElement(PR,Object.assign({prefixCls:z},O,{onClose:f}))))))},FU=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=kR(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=u.useContext(Dt),s=l("drawer",t),[d,f,m]=jR(s),h=ue(s,`${s}-pure`,`${s}-${a}`,f,m,r);return d(u.createElement("div",{className:h,style:n},u.createElement(PR,Object.assign({prefixCls:s},o))))};LR._InternalPanelDoNotUseOrYouWillBeFired=FU;function v6(e){return["small","middle","large"].includes(e)}function y6(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const BR=Se.createContext({latestIndex:0}),HU=BR.Provider,VU=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:l}=u.useContext(BR);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:o},r),n<l&&a&&u.createElement("span",{className:`${t}-split`},a))};var KU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const WU=u.forwardRef((e,t)=>{var n,r,a;const{getPrefixCls:o,space:l,direction:s}=u.useContext(Dt),{size:d=(n=l?.size)!==null&&n!==void 0?n:"small",align:f,className:m,rootClassName:h,children:v,direction:y="horizontal",prefixCls:S,split:C,style:w,wrap:E=!1,classNames:$,styles:O}=e,N=KU(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[I,R]=Array.isArray(d)?d:[d,d],_=v6(R),z=v6(I),D=y6(R),L=y6(I),B=ro(v,{keepEmpty:!0}),F=f===void 0&&y==="horizontal"?"center":f,H=o("space",S),[k,q,V]=CO(H),W=ue(H,l?.className,q,`${H}-${y}`,{[`${H}-rtl`]:s==="rtl",[`${H}-align-${F}`]:F,[`${H}-gap-row-${R}`]:_,[`${H}-gap-col-${I}`]:z},m,h,V),G=ue(`${H}-item`,(r=$?.item)!==null&&r!==void 0?r:(a=l?.classNames)===null||a===void 0?void 0:a.item);let X=0;const P=B.map((j,Y)=>{var ne,se;j!=null&&(X=Y);const de=j?.key||`${G}-${Y}`;return u.createElement(VU,{className:G,key:de,index:Y,split:C,style:(ne=O?.item)!==null&&ne!==void 0?ne:(se=l?.styles)===null||se===void 0?void 0:se.item},j)}),K=u.useMemo(()=>({latestIndex:X}),[X]);if(B.length===0)return null;const J={};return E&&(J.flexWrap="wrap"),!z&&L&&(J.columnGap=I),!_&&D&&(J.rowGap=R),k(u.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},J),l?.style),w)},N),u.createElement(HU,{value:K},P)))}),to=WU;to.Compact=iD;var UU=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const FR=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u.useContext(Dt),{prefixCls:a,type:o="default",danger:l,disabled:s,loading:d,onClick:f,htmlType:m,children:h,className:v,menu:y,arrow:S,autoFocus:C,overlay:w,trigger:E,align:$,open:O,onOpenChange:N,placement:I,getPopupContainer:R,href:_,icon:z=u.createElement(RE,null),title:D,buttonsRender:L=pe=>pe,mouseEnterDelay:B,mouseLeaveDelay:F,overlayClassName:H,overlayStyle:k,destroyPopupOnHide:q,dropdownRender:V}=e,W=UU(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","destroyPopupOnHide","dropdownRender"]),G=n("dropdown",a),X=`${G}-button`,P={menu:y,arrow:S,autoFocus:C,align:$,disabled:s,trigger:s?[]:E,onOpenChange:N,getPopupContainer:R||t,mouseEnterDelay:B,mouseLeaveDelay:F,overlayClassName:H,overlayStyle:k,destroyPopupOnHide:q,dropdownRender:V},{compactSize:K,compactItemClassnames:J}=tv(G,r),j=ue(X,J,v);"overlay"in e&&(P.overlay=w),"open"in e&&(P.open=O),"placement"in e?P.placement=I:P.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=u.createElement(Un,{type:o,danger:l,disabled:s,loading:d,onClick:f,htmlType:m,href:_,title:D},h),ne=u.createElement(Un,{type:o,danger:l,icon:z}),[se,de]=L([Y,ne]);return u.createElement(to.Compact,Object.assign({className:j,size:K,block:!0},W),se,u.createElement(Ib,Object.assign({},P),de))};FR.__ANT_BUTTON=!0;const Db=Ib;Db.Button=FR;var qU={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"},GU=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:qU}))},XU=u.forwardRef(GU);function qy(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const YU=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},QU=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),b6=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ZU=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},cr(e)),QU(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},b6(e,e.controlHeightSM)),"&-large":Object.assign({},b6(e,e.controlHeightLG))})}},JU=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,antCls:o,labelRequiredMarkColor:l,labelColor:s,labelFontSize:d,labelHeight:f,labelColonMarginInlineStart:m,labelColonMarginInlineEnd:h,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{marginBottom:v,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:f,color:s,fontSize:d,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:m,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Yw,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},x6=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},eq=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Rl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),HR=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Rl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},tq=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, ${r}-col-xl-24${n}-label`]:Rl(e)}},[`@media (max-width: ${ie(e.screenXSMax)})`]:[HR(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Rl(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Rl(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Rl(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Rl(e)}}}}},nq=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, ${n}-col-xl-24${t}-label`]:Rl(e),[`@media (max-width: ${ie(e.screenXSMax)})`]:[HR(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Rl(e)}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Rl(e)}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Rl(e)}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Rl(e)}}}},rq=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),VR=(e,t)=>In(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),kE=nr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=VR(e,n);return[ZU(r),JU(r),YU(r),x6(r,r.componentCls),x6(r,r.formItemCls),eq(r),tq(r),nq(r),hb(r),Yw]},rq,{order:-1e3}),S6=[];function Y2(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const KR=e=>{let{help:t,helpStatus:n,errors:r=S6,warnings:a=S6,className:o,fieldId:l,onVisibleChanged:s}=e;const{prefixCls:d}=u.useContext(sE),f=`${d}-item-explain`,m=Ba(d),[h,v,y]=kE(d,m),S=u.useMemo(()=>Lh(d),[d]),C=qy(r),w=qy(a),E=u.useMemo(()=>t!=null?[Y2(t,"help",n)]:[].concat(st(C.map((O,N)=>Y2(O,"error","error",N))),st(w.map((O,N)=>Y2(O,"warning","warning",N)))),[t,n,C,w]),$={};return l&&($.id=`${l}_help`),h(u.createElement(Mo,{motionDeadline:S.motionDeadline,motionName:`${d}-show-help`,visible:!!E.length,onVisibleChanged:s},O=>{const{className:N,style:I}=O;return u.createElement("div",Object.assign({},$,{className:ue(f,N,y,m,o,v),style:I,role:"alert"}),u.createElement(tO,Object.assign({keys:E},Lh(d),{motionName:`${d}-show-help-item`,component:!1}),R=>{const{key:_,error:z,errorStatus:D,className:L,style:B}=R;return u.createElement("div",{key:_,className:ue(L,{[`${f}-${D}`]:D}),style:B},z)}))}))},aq=["parentNode"],oq="form_item";function wh(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function WR(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:aq.includes(n)?`${oq}_${n}`:n}function UR(e,t,n,r,a,o){let l=r;return o!==void 0?l=o:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||a&&n.validated)&&(l="success"),l}function C6(e){return wh(e).join("_")}function iq(e,t){const n=t.getFieldInstance(e),r=Ew(n);if(r)return r;const a=WR(wh(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function qR(e){const[t]=lE(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const l=C6(a);o?n.current[l]=o:delete n.current[l]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=iq(a,r);l&&lz(l,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=C6(a);return n.current[o]}}),[e,t]);return[r]}var lq=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sq=(e,t)=>{const n=u.useContext(tl),{getPrefixCls:r,direction:a,form:o}=u.useContext(Dt),{prefixCls:l,className:s,rootClassName:d,size:f,disabled:m=n,form:h,colon:v,labelAlign:y,labelWrap:S,labelCol:C,wrapperCol:w,hideRequiredMark:E,layout:$="horizontal",scrollToFirstError:O,requiredMark:N,onFinishFailed:I,name:R,style:_,feedbackIcons:z,variant:D}=e,L=lq(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),B=No(f),F=u.useContext(R7),H=u.useMemo(()=>N!==void 0?N:E?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[E,N,o]),k=v??o?.colon,q=r("form",l),V=Ba(q),[W,G,X]=kE(q,V),P=ue(q,`${q}-${$}`,{[`${q}-hide-required-mark`]:H===!1,[`${q}-rtl`]:a==="rtl",[`${q}-${B}`]:B},X,V,G,o?.className,s,d),[K]=qR(h),{__INTERNAL__:J}=K;J.name=R;const j=u.useMemo(()=>({name:R,labelAlign:y,labelCol:C,labelWrap:S,wrapperCol:w,vertical:$==="vertical",colon:k,requiredMark:H,itemRef:J.itemRef,form:K,feedbackIcons:z}),[R,y,C,w,$,k,H,K,z]),Y=u.useRef(null);u.useImperativeHandle(t,()=>{var de;return Object.assign(Object.assign({},K),{nativeElement:(de=Y.current)===null||de===void 0?void 0:de.nativeElement})});const ne=(de,pe)=>{if(de){let Ce={block:"nearest"};typeof de=="object"&&(Ce=de),K.scrollToField(pe,Ce)}},se=de=>{if(I?.(de),de.errorFields.length){const pe=de.errorFields[0].name;if(O!==void 0){ne(O,pe);return}o&&o.scrollToFirstError!==void 0&&ne(o.scrollToFirstError,pe)}};return W(u.createElement(GO.Provider,{value:D},u.createElement(Dw,{disabled:m},u.createElement(Dd.Provider,{value:B},u.createElement(qO,{validateMessages:F},u.createElement(rc.Provider,{value:j},u.createElement(sp,Object.assign({id:R},L,{name:R,onFinishFailed:se,form:K,ref:Y,style:Object.assign(Object.assign({},o?.style),_),className:P}))))))))},cq=u.forwardRef(sq);function uq(e){if(typeof e=="function")return e;const t=ro(e);return t.length<=1?t[0]:t}const GR=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(Go);return{status:e,errors:t,warnings:n}};GR.Context=Go;function dq(e){const[t,n]=u.useState(e),r=u.useRef(null),a=u.useRef([]),o=u.useRef(!1);u.useEffect(()=>(o.current=!1,()=>{o.current=!0,sr.cancel(r.current),r.current=null}),[]);function l(s){o.current||(r.current===null&&(a.current=[],r.current=sr(()=>{r.current=null,n(d=>{let f=d;return a.current.forEach(m=>{f=m(f)}),f})})),a.current.push(s))}return[t,l]}function fq(){const{itemRef:e}=u.useContext(rc),t=u.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,l=r.join("_");return(t.current.name!==l||t.current.originRef!==o)&&(t.current.name=l,t.current.originRef=o,t.current.ref=io(e(r),o)),t.current.ref}return n}const mq=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},pq=op(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=VR(e,n);return[mq(r)]}),gq=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:l,_internalItemRender:s,extra:d,help:f,fieldId:m,marginBottom:h,onErrorVisibleChanged:v}=e,y=`${t}-item`,S=u.useContext(rc),C=r||S.wrapperCol||{},w=ue(`${y}-control`,C.className),E=u.useMemo(()=>Object.assign({},S),[S]);delete E.labelCol,delete E.wrapperCol;const $=u.createElement("div",{className:`${y}-control-input`},u.createElement("div",{className:`${y}-control-input-content`},a)),O=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=h!==null||o.length||l.length?u.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},u.createElement(sE.Provider,{value:O},u.createElement(KR,{fieldId:m,errors:o,warnings:l,help:f,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:v})),!!h&&u.createElement("div",{style:{width:0,height:h}})):null,I={};m&&(I.id=`${m}_extra`);const R=d?u.createElement("div",Object.assign({},I,{className:`${y}-extra`}),d):null,_=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:$,errorList:N,extra:R}):u.createElement(u.Fragment,null,$,N,R);return u.createElement(rc.Provider,{value:E},u.createElement(jE,Object.assign({},C,{className:w}),_),u.createElement(pq,{prefixCls:t}))};var hq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},vq=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:hq}))},yq=u.forwardRef(vq),bq=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function xq(e){return e?typeof e=="object"&&!u.isValidElement(e)?e:{title:e}:null}const Sq=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:l,required:s,requiredMark:d,tooltip:f,vertical:m}=e;var h;const[v]=Cs("Form"),{labelAlign:y,labelCol:S,labelWrap:C,colon:w}=u.useContext(rc);if(!n)return null;const E=a||S||{},$=o||y,O=`${t}-item-label`,N=ue(O,$==="left"&&`${O}-left`,E.className,{[`${O}-wrap`]:!!C});let I=n;const R=l===!0||w!==!1&&l!==!1;R&&!m&&typeof n=="string"&&n.trim()&&(I=n.replace(/[:|:]\s*$/,""));const z=xq(f);if(z){const{icon:F=u.createElement(yq,null)}=z,H=bq(z,["icon"]),k=u.createElement(Oo,Object.assign({},H),u.cloneElement(F,{className:`${t}-item-tooltip`,title:"",onClick:q=>{q.preventDefault()},tabIndex:null}));I=u.createElement(u.Fragment,null,I,k)}const D=d==="optional",L=typeof d=="function";L?I=d(I,{required:!!s}):D&&!s&&(I=u.createElement(u.Fragment,null,I,u.createElement("span",{className:`${t}-item-optional`,title:""},v?.optional||((h=ys.Form)===null||h===void 0?void 0:h.optional))));const B=ue({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:D||L,[`${t}-item-no-colon`]:!R});return u.createElement(jE,Object.assign({},E,{className:N}),u.createElement("label",{htmlFor:r,className:B,title:typeof n=="string"?n:""},I))},Cq={success:Yh,warning:Kd,error:Vd,validating:Wd};function XR(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:l,meta:s,noStyle:d}=e;const f=`${l}-item`,{feedbackIcons:m}=u.useContext(rc),h=UR(n,r,s,null,!!a,o),{isFormItemInput:v,status:y,hasFeedback:S,feedbackIcon:C}=u.useContext(Go),w=u.useMemo(()=>{var E;let $;if(a){const N=a!==!0&&a.icons||m,I=h&&((E=N?.({status:h,errors:n,warnings:r}))===null||E===void 0?void 0:E[h]),R=h&&Cq[h];$=I!==!1&&R?u.createElement("span",{className:ue(`${f}-feedback-icon`,`${f}-feedback-icon-${h}`)},I||u.createElement(R,null)):null}const O={status:h||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:$,isFormItemInput:!0};return d&&(O.status=(h??y)||"",O.isFormItemInput=v,O.hasFeedback=!!(a??S),O.feedbackIcon=a!==void 0?O.feedbackIcon:C),O},[h,a,d,v,y]);return u.createElement(Go.Provider,{value:w},t)}var wq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Eq(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:o,errors:l,warnings:s,validateStatus:d,meta:f,hasFeedback:m,hidden:h,children:v,fieldId:y,required:S,isRequired:C,onSubItemMetaChange:w,layout:E}=e,$=wq(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),O=`${t}-item`,{requiredMark:N,vertical:I}=u.useContext(rc),R=I||E==="vertical",_=u.useRef(null),z=qy(l),D=qy(s),L=o!=null,B=!!(L||l.length||s.length),F=!!_.current&&Jh(_.current),[H,k]=u.useState(null);Ln(()=>{if(B&&_.current){const X=getComputedStyle(_.current);k(parseInt(X.marginBottom,10))}},[B,F]);const q=X=>{X||k(null)},W=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const P=X?z:f.errors,K=X?D:f.warnings;return UR(P,K,f,"",!!m,d)}(),G=ue(O,n,r,{[`${O}-with-help`]:L||z.length||D.length,[`${O}-has-feedback`]:W&&m,[`${O}-has-success`]:W==="success",[`${O}-has-warning`]:W==="warning",[`${O}-has-error`]:W==="error",[`${O}-is-validating`]:W==="validating",[`${O}-hidden`]:h,[`${O}-${E}`]:E});return u.createElement("div",{className:G,style:a,ref:_},u.createElement(OR,Object.assign({className:`${O}-row`},Qr($,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),u.createElement(Sq,Object.assign({htmlFor:y},e,{requiredMark:N,required:S??C,prefixCls:t,vertical:R})),u.createElement(gq,Object.assign({},e,f,{errors:z,warnings:D,prefixCls:t,status:W,help:o,marginBottom:H,onErrorVisibleChanged:q}),u.createElement(UO.Provider,{value:w},u.createElement(XR,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:W},v)))),!!H&&u.createElement("div",{className:`${O}-margin-offset`,style:{marginBottom:-H}}))}const $q="__SPLIT__";function Oq(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],l=t[a];return o===l||typeof o=="function"||typeof l=="function"})}const Mq=u.memo(e=>{let{children:t}=e;return t},(e,t)=>Oq(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function w6(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Rq(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:l,rules:s,children:d,required:f,label:m,messageVariables:h,trigger:v="onChange",validateTrigger:y,hidden:S,help:C,layout:w}=e,{getPrefixCls:E}=u.useContext(Dt),{name:$}=u.useContext(rc),O=uq(d),N=typeof O=="function",I=u.useContext(UO),{validateTrigger:R}=u.useContext(kd),_=y!==void 0?y:R,z=t!=null,D=E("form",o),L=Ba(D),[B,F,H]=kE(D,L);gu();const k=u.useContext(Fh),q=u.useRef(),[V,W]=dq({}),[G,X]=jd(()=>w6()),P=de=>{const pe=k?.getKey(de.name);if(X(de.destroy?w6():de,!0),n&&C!==!1&&I){let Ce=de.name;if(de.destroy)Ce=q.current||Ce;else if(pe!==void 0){const[he,me]=pe;Ce=[he].concat(st(me)),q.current=Ce}I(de,Ce)}},K=(de,pe)=>{W(Ce=>{const he=Object.assign({},Ce),be=[].concat(st(de.name.slice(0,-1)),st(pe)).join($q);return de.destroy?delete he[be]:he[be]=de,he})},[J,j]=u.useMemo(()=>{const de=st(G.errors),pe=st(G.warnings);return Object.values(V).forEach(Ce=>{de.push.apply(de,st(Ce.errors||[])),pe.push.apply(pe,st(Ce.warnings||[]))}),[de,pe]},[V,G.errors,G.warnings]),Y=fq();function ne(de,pe,Ce){return n&&!S?u.createElement(XR,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:G,errors:J,warnings:j,noStyle:!0},de):u.createElement(Eq,Object.assign({key:"row"},e,{className:ue(r,H,L,F),prefixCls:D,fieldId:pe,isRequired:Ce,errors:J,warnings:j,meta:G,onSubItemMetaChange:K,layout:w}),de)}if(!z&&!N&&!a)return B(ne(O));let se={};return typeof m=="string"?se.label=m:t&&(se.label=String(t)),h&&(se=Object.assign(Object.assign({},se),h)),B(u.createElement(iE,Object.assign({},e,{messageVariables:se,trigger:v,validateTrigger:_,onMetaChange:P}),(de,pe,Ce)=>{const he=wh(t).length&&pe?pe.name:[],me=WR(he,$),be=f!==void 0?f:!!s?.some(Oe=>{if(Oe&&typeof Oe=="object"&&Oe.required&&!Oe.warningOnly)return!0;if(typeof Oe=="function"){const Ne=Oe(Ce);return Ne?.required&&!Ne?.warningOnly}return!1}),fe=Object.assign({},de);let ge=null;if(Array.isArray(O)&&z)ge=O;else if(!(N&&(!(l||a)||z))){if(!(a&&!N&&!z))if(u.isValidElement(O)){const Oe=Object.assign(Object.assign({},O.props),fe);if(Oe.id||(Oe.id=me),C||J.length>0||j.length>0||e.extra){const Te=[];(C||J.length>0)&&Te.push(`${me}_help`),e.extra&&Te.push(`${me}_extra`),Oe["aria-describedby"]=Te.join(" ")}J.length>0&&(Oe["aria-invalid"]="true"),be&&(Oe["aria-required"]="true"),Il(O)&&(Oe.ref=Y(he,O)),new Set([].concat(st(wh(v)),st(wh(_)))).forEach(Te=>{Oe[Te]=function(){for(var Ue,qe,ze,Ve,Be,De=arguments.length,ye=new Array(De),oe=0;oe<De;oe++)ye[oe]=arguments[oe];(ze=fe[Te])===null||ze===void 0||(Ue=ze).call.apply(Ue,[fe].concat(ye)),(Be=(Ve=O.props)[Te])===null||Be===void 0||(qe=Be).call.apply(qe,[Ve].concat(ye))}});const je=[Oe["aria-required"],Oe["aria-invalid"],Oe["aria-describedby"]];ge=u.createElement(Mq,{control:fe,update:O,childProps:je},za(O,Oe))}else N&&(l||a)&&!z?ge=O(Ce):ge=O}return ne(ge,me,be)}))}const YR=Rq;YR.useStatus=GR;var Nq=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Tq=e=>{var{prefixCls:t,children:n}=e,r=Nq(e,["prefixCls","children"]);const{getPrefixCls:a}=u.useContext(Dt),o=a("form",t),l=u.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return u.createElement(HO,Object.assign({},r),(s,d,f)=>u.createElement(sE.Provider,{value:l},n(s.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),d,{errors:f.errors,warnings:f.warnings})))};function Iq(){const{form:e}=u.useContext(rc);return e}const oa=cq;oa.Item=YR;oa.List=Tq;oa.ErrorList=KR;oa.useForm=qR;oa.useFormInstance=Iq;oa.useWatch=WO;oa.Provider=qO;oa.create=()=>{};function E6(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function K1(e,t,n,r){var a=Pd.unstable_batchedUpdates?function(l){Pd.unstable_batchedUpdates(n,l)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}const QR=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var _q={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"},Aq=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:_q}))},$6=u.forwardRef(Aq),Pq={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"},zq=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:Pq}))},O6=u.forwardRef(zq),Dq={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:"页码"},jq=["10","20","50","100"],kq=function(t){var n=t.pageSizeOptions,r=n===void 0?jq:n,a=t.locale,o=t.changeSize,l=t.pageSize,s=t.goButton,d=t.quickGo,f=t.rootPrefixCls,m=t.selectComponentClass,h=t.selectPrefixCls,v=t.disabled,y=t.buildOptionText,S=t.showSizeChanger,C=Se.useState(""),w=Re(C,2),E=w[0],$=w[1],O=function(){return!E||Number.isNaN(E)?void 0:Number(E)},N=typeof y=="function"?y:function(G){return"".concat(G," ").concat(a.items_per_page)},I=function(X,P){if(o?.(Number(X)),Vt(S)==="object"){var K;(K=S.onChange)===null||K===void 0||K.call(S,X,P)}},R=function(X){$(X.target.value)},_=function(X){s||E===""||($(""),!(X.relatedTarget&&(X.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||X.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&d?.(O()))},z=function(X){E!==""&&(X.keyCode===Pt.ENTER||X.type==="click")&&($(""),d?.(O()))},D=function(){return r.some(function(X){return X.toString()===l.toString()})?r:r.concat([l.toString()]).sort(function(X,P){var K=Number.isNaN(Number(X))?0:Number(X),J=Number.isNaN(Number(P))?0:Number(P);return K-J})},L="".concat(f,"-options");if(!S&&!d)return null;var B=null,F=null,H=null;if(S&&m){var k=Vt(S)==="object"?S:{},q=k.options,V=k.className,W=q?void 0:D().map(function(G,X){return Se.createElement(m.Option,{key:X,value:G.toString()},N(G))});B=Se.createElement(m,Je({disabled:v,prefixCls:h,showSearch:!1,optionLabelProp:q?"label":"children",popupMatchSelectWidth:!1,value:(l||r[0]).toString(),getPopupContainer:function(X){return X.parentNode},"aria-label":a.page_size,defaultOpen:!1},Vt(S)==="object"?S:null,{className:ue("".concat(L,"-size-changer"),V),options:q,onChange:I}),W)}return d&&(s&&(H=typeof s=="boolean"?Se.createElement("button",{type:"button",onClick:z,onKeyUp:z,disabled:v,className:"".concat(L,"-quick-jumper-button")},a.jump_to_confirm):Se.createElement("span",{onClick:z,onKeyUp:z},s)),F=Se.createElement("div",{className:"".concat(L,"-quick-jumper")},a.jump_to,Se.createElement("input",{disabled:v,type:"text",value:E,onChange:R,onKeyUp:z,onBlur:_,"aria-label":a.page}),a.page,H)),Se.createElement("li",{className:L},B,F)},rh=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,l=t.showTitle,s=t.onClick,d=t.onKeyPress,f=t.itemRender,m="".concat(n,"-item"),h=ue(m,"".concat(m,"-").concat(r),te(te({},"".concat(m,"-active"),a),"".concat(m,"-disabled"),!r),o),v=function(){s(r)},y=function(w){d(w,s,r)},S=f(r,"page",Se.createElement("a",{rel:"nofollow"},r));return S?Se.createElement("li",{title:l?String(r):null,className:h,onClick:v,onKeyDown:y,tabIndex:0},S):null},Lq=function(t,n,r){return r};function M6(){}function R6(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ed(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Bq=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,l=t.className,s=t.selectComponentClass,d=t.current,f=t.defaultCurrent,m=f===void 0?1:f,h=t.total,v=h===void 0?0:h,y=t.pageSize,S=t.defaultPageSize,C=S===void 0?10:S,w=t.onChange,E=w===void 0?M6:w,$=t.hideOnSinglePage,O=t.align,N=t.showPrevNextJumpers,I=N===void 0?!0:N,R=t.showQuickJumper,_=t.showLessItems,z=t.showTitle,D=z===void 0?!0:z,L=t.onShowSizeChange,B=L===void 0?M6:L,F=t.locale,H=F===void 0?Dq:F,k=t.style,q=t.totalBoundaryShowSizeChanger,V=q===void 0?50:q,W=t.disabled,G=t.simple,X=t.showTotal,P=t.showSizeChanger,K=P===void 0?v>V:P,J=t.pageSizeOptions,j=t.itemRender,Y=j===void 0?Lq:j,ne=t.jumpPrevIcon,se=t.jumpNextIcon,de=t.prevIcon,pe=t.nextIcon,Ce=Se.useRef(null),he=kr(10,{value:y,defaultValue:C}),me=Re(he,2),be=me[0],fe=me[1],ge=kr(1,{value:d,defaultValue:m,postState:function(an){return Math.max(1,Math.min(an,Ed(void 0,be,v)))}}),Oe=Re(ge,2),Ne=Oe[0],je=Oe[1],Te=Se.useState(Ne),Ue=Re(Te,2),qe=Ue[0],ze=Ue[1];u.useEffect(function(){ze(Ne)},[Ne]);var Ve=Math.max(1,Ne-(_?3:5)),Be=Math.min(Ed(void 0,be,v),Ne+(_?3:5));function De(Xt,an){var Bt=Xt||Se.createElement("button",{type:"button","aria-label":an,className:"".concat(r,"-item-link")});return typeof Xt=="function"&&(Bt=Se.createElement(Xt,le({},t))),Bt}function ye(Xt){var an=Xt.target.value,Bt=Ed(void 0,be,v),gr;return an===""?gr=an:Number.isNaN(Number(an))?gr=qe:an>=Bt?gr=Bt:gr=Number(an),gr}function oe(Xt){return R6(Xt)&&Xt!==Ne&&R6(v)&&v>0}var we=v>be?R:!1;function Fe(Xt){(Xt.keyCode===Pt.UP||Xt.keyCode===Pt.DOWN)&&Xt.preventDefault()}function xe(Xt){var an=ye(Xt);switch(an!==qe&&ze(an),Xt.keyCode){case Pt.ENTER:lt(an);break;case Pt.UP:lt(an-1);break;case Pt.DOWN:lt(an+1);break}}function _e(Xt){lt(ye(Xt))}function rt(Xt){var an=Ed(Xt,be,v),Bt=Ne>an&&an!==0?an:Ne;fe(Xt),ze(Bt),B?.(Ne,Xt),je(Bt),E?.(Bt,Xt)}function lt(Xt){if(oe(Xt)&&!W){var an=Ed(void 0,be,v),Bt=Xt;return Xt>an?Bt=an:Xt<1&&(Bt=1),Bt!==qe&&ze(Bt),je(Bt),E?.(Bt,be),Bt}return Ne}var ut=Ne>1,tt=Ne<Ed(void 0,be,v);function mt(){ut&&lt(Ne-1)}function at(){tt&&lt(Ne+1)}function gt(){lt(Ve)}function Nt(){lt(Be)}function tn(Xt,an){if(Xt.key==="Enter"||Xt.charCode===Pt.ENTER||Xt.keyCode===Pt.ENTER){for(var Bt=arguments.length,gr=new Array(Bt>2?Bt-2:0),Lr=2;Lr<Bt;Lr++)gr[Lr-2]=arguments[Lr];an.apply(void 0,gr)}}function Wt(Xt){tn(Xt,mt)}function dn(Xt){tn(Xt,at)}function Qt(Xt){tn(Xt,gt)}function nn(Xt){tn(Xt,Nt)}function Zt(Xt){var an=Y(Xt,"prev",De(de,"prev page"));return Se.isValidElement(an)?Se.cloneElement(an,{disabled:!ut}):an}function Lt(Xt){var an=Y(Xt,"next",De(pe,"next page"));return Se.isValidElement(an)?Se.cloneElement(an,{disabled:!tt}):an}function _t(Xt){(Xt.type==="click"||Xt.keyCode===Pt.ENTER)&&lt(qe)}var It=null,ve=Pa(t,{aria:!0,data:!0}),Me=X&&Se.createElement("li",{className:"".concat(r,"-total-text")},X(v,[v===0?0:(Ne-1)*be+1,Ne*be>v?v:Ne*be])),Xe=null,Qe=Ed(void 0,be,v);if($&&v<=be)return null;var ke=[],Ae={rootPrefixCls:r,onClick:lt,onKeyPress:tn,showTitle:D,itemRender:Y,page:-1},He=Ne-1>0?Ne-1:0,Ye=Ne+1<Qe?Ne+1:Qe,$t=R&&R.goButton,xt=Vt(G)==="object"?G.readOnly:!G,pt=$t,ct=null;G&&($t&&(typeof $t=="boolean"?pt=Se.createElement("button",{type:"button",onClick:_t,onKeyUp:_t},H.jump_to_confirm):pt=Se.createElement("span",{onClick:_t,onKeyUp:_t},$t),pt=Se.createElement("li",{title:D?"".concat(H.jump_to).concat(Ne,"/").concat(Qe):null,className:"".concat(r,"-simple-pager")},pt)),ct=Se.createElement("li",{title:D?"".concat(Ne,"/").concat(Qe):null,className:"".concat(r,"-simple-pager")},xt?qe:Se.createElement("input",{type:"text",value:qe,disabled:W,onKeyDown:Fe,onKeyUp:xe,onChange:xe,onBlur:_e,size:3}),Se.createElement("span",{className:"".concat(r,"-slash")},"/"),Qe));var dt=_?1:2;if(Qe<=3+dt*2){Qe||ke.push(Se.createElement(rh,Je({},Ae,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ot=1;ot<=Qe;ot+=1)ke.push(Se.createElement(rh,Je({},Ae,{key:ot,page:ot,active:Ne===ot})))}else{var nt=_?H.prev_3:H.prev_5,Tt=_?H.next_3:H.next_5,Mt=Y(Ve,"jump-prev",De(ne,"prev page")),zt=Y(Be,"jump-next",De(se,"next page"));I&&(It=Mt?Se.createElement("li",{title:D?nt:null,key:"prev",onClick:gt,tabIndex:0,onKeyDown:Qt,className:ue("".concat(r,"-jump-prev"),te({},"".concat(r,"-jump-prev-custom-icon"),!!ne))},Mt):null,Xe=zt?Se.createElement("li",{title:D?Tt:null,key:"next",onClick:Nt,tabIndex:0,onKeyDown:nn,className:ue("".concat(r,"-jump-next"),te({},"".concat(r,"-jump-next-custom-icon"),!!se))},zt):null);var jt=Math.max(1,Ne-dt),rn=Math.min(Ne+dt,Qe);Ne-1<=dt&&(rn=1+dt*2),Qe-Ne<=dt&&(jt=Qe-dt*2);for(var yt=jt;yt<=rn;yt+=1)ke.push(Se.createElement(rh,Je({},Ae,{key:yt,page:yt,active:Ne===yt})));if(Ne-1>=dt*2&&Ne!==3&&(ke[0]=Se.cloneElement(ke[0],{className:ue("".concat(r,"-item-after-jump-prev"),ke[0].props.className)}),ke.unshift(It)),Qe-Ne>=dt*2&&Ne!==Qe-2){var Ot=ke[ke.length-1];ke[ke.length-1]=Se.cloneElement(Ot,{className:ue("".concat(r,"-item-before-jump-next"),Ot.props.className)}),ke.push(Xe)}jt!==1&&ke.unshift(Se.createElement(rh,Je({},Ae,{key:1,page:1}))),rn!==Qe&&ke.push(Se.createElement(rh,Je({},Ae,{key:Qe,page:Qe})))}var Ft=Zt(He);if(Ft){var Gt=!ut||!Qe;Ft=Se.createElement("li",{title:D?H.prev_page:null,onClick:mt,tabIndex:Gt?null:0,onKeyDown:Wt,className:ue("".concat(r,"-prev"),te({},"".concat(r,"-disabled"),Gt)),"aria-disabled":Gt},Ft)}var Jt=Lt(Ye);if(Jt){var un,On;G?(un=!tt,On=ut?0:null):(un=!tt||!Qe,On=un?null:0),Jt=Se.createElement("li",{title:D?H.next_page:null,onClick:at,tabIndex:On,onKeyDown:dn,className:ue("".concat(r,"-next"),te({},"".concat(r,"-disabled"),un)),"aria-disabled":un},Jt)}var Qn=ue(r,l,te(te(te(te(te({},"".concat(r,"-start"),O==="start"),"".concat(r,"-center"),O==="center"),"".concat(r,"-end"),O==="end"),"".concat(r,"-simple"),G),"".concat(r,"-disabled"),W));return Se.createElement("ul",Je({className:Qn,style:k,ref:Ce},ve),Me,Ft,G?ct:ke,Jt,Se.createElement(kq,{locale:H,rootPrefixCls:r,disabled:W,selectComponentClass:s,selectPrefixCls:o,changeSize:rt,pageSize:be,pageSizeOptions:J,quickGo:we?lt:null,goButton:pt,showSizeChanger:K}))};const ZR=e=>u.createElement(Zi,Object.assign({},e,{showSearch:!0,size:"small"})),JR=e=>u.createElement(Zi,Object.assign({},e,{showSearch:!0,size:"middle"}));ZR.Option=Zi.Option;JR.Option=Zi.Option;const Fq=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Hq=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(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"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM),input:Object.assign(Object.assign({},_E(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Vq=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ie(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ie(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:`${ie(e.inputOutlineOffset)} 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Kq=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}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ie(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:`${ie(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:ie(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},AE(e)),IE(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},_b(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Wq=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ie(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ie(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Uq=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{display:"flex","&-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:ie(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Wq(e)),Kq(e)),Vq(e)),Hq(e)),Fq(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"}}},qq=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},bs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},du(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},du(e))}}}},e9=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},TE(e)),t9=e=>In(e,{inputOutlineOffset:0,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"},NE(e)),Gq=nr("Pagination",e=>{const t=t9(e);return[Uq(t),qq(t)]},e9),Xq=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:`${ie(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}}}}},Yq=op(["Pagination","bordered"],e=>{const t=t9(e);return[Xq(t)]},e9);var Qq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const LE=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:l,size:s,locale:d,selectComponentClass:f,responsive:m,showSizeChanger:h}=e,v=Qq(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:y}=vE(m),[,S]=lo(),{getPrefixCls:C,direction:w,pagination:E={}}=u.useContext(Dt),$=C("pagination",n),[O,N,I]=Gq($),R=h??E.showSizeChanger,_=u.useMemo(()=>{const q=u.createElement("span",{className:`${$}-item-ellipsis`},"•••"),V=u.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(jy,null):u.createElement(W$,null)),W=u.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(W$,null):u.createElement(jy,null)),G=u.createElement("a",{className:`${$}-item-link`},u.createElement("div",{className:`${$}-item-container`},w==="rtl"?u.createElement(O6,{className:`${$}-item-link-icon`}):u.createElement($6,{className:`${$}-item-link-icon`}),q)),X=u.createElement("a",{className:`${$}-item-link`},u.createElement("div",{className:`${$}-item-container`},w==="rtl"?u.createElement($6,{className:`${$}-item-link-icon`}):u.createElement(O6,{className:`${$}-item-link-icon`}),q));return{prevIcon:V,nextIcon:W,jumpPrevIcon:G,jumpNextIcon:X}},[w,$]),[z]=Cs("Pagination",N7),D=Object.assign(Object.assign({},z),d),L=No(s),B=L==="small"||!!(y&&!L&&m),F=C("select",r),H=ue({[`${$}-${t}`]:!!t,[`${$}-mini`]:B,[`${$}-rtl`]:w==="rtl",[`${$}-bordered`]:S.wireframe},E?.className,a,o,N,I),k=Object.assign(Object.assign({},E?.style),l);return O(u.createElement(u.Fragment,null,S.wireframe&&u.createElement(Yq,{prefixCls:$}),u.createElement(Bq,Object.assign({},_,v,{style:k,prefixCls:$,selectPrefixCls:F,className:H,selectComponentClass:f||(B?ZR:JR),locale:D,showSizeChanger:R}))))},Gy=100,n9=Gy/5,r9=Gy/2-n9/2,Q2=r9*2*Math.PI,N6=50,T6=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:ue(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:r9,cx:N6,cy:N6,strokeWidth:n9,style:n})},Zq=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[l,s]=u.useState(!1);Ln(()=>{t!==0&&s(!0)},[t!==0]);const d=Math.max(Math.min(t,100),0);if(!l)return null;const f={strokeDashoffset:`${Q2/4}`,strokeDasharray:`${Q2*d/100} ${Q2*(100-d)/100}`};return u.createElement("span",{className:ue(a,`${r}-progress`,d<=0&&o)},u.createElement("svg",{viewBox:`0 0 ${Gy} ${Gy}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},u.createElement(T6,{dotClassName:r,hasCircleCls:!0}),u.createElement(T6,{dotClassName:r,style:f})))};function Jq(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:ue(a,n>0&&o)},u.createElement("span",{className:ue(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>u.createElement("i",{className:`${t}-dot-item`,key:l})))),u.createElement(Zq,{prefixCls:t,percent:n}))}function eG(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&u.isValidElement(n)?za(n,{className:ue(n.props.className,a),percent:r}):u.createElement(Jq,{prefixCls:t,percent:r})}const tG=new zn("antSpinMove",{to:{opacity:1}}),nG=new zn("antRotate",{to:{transform:"rotate(405deg)"}}),rG=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},cr(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",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${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:tG,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:nG,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"}})}},aG=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},oG=nr("Spin",e=>{const t=In(e,{spinDotDefault:e.colorTextDescription});return[rG(t)]},aG),iG=200,I6=[[30,.05],[70,.03],[96,.01]];function lG(e,t){const[n,r]=u.useState(0),a=u.useRef(),o=t==="auto";return u.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(l=>{const s=100-l;for(let d=0;d<I6.length;d+=1){const[f,m]=I6[d];if(l<=f)return l+s*m}return l})},iG)),()=>{clearInterval(a.current)}),[o,e]),o?n:t}var sG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let a9;function cG(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Bd=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:l,size:s="default",tip:d,wrapperClassName:f,style:m,children:h,fullscreen:v=!1,indicator:y,percent:S}=e,C=sG(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:w,direction:E,spin:$}=u.useContext(Dt),O=w("spin",n),[N,I,R]=oG(O),[_,z]=u.useState(()=>r&&!cG(r,a)),D=lG(_,S);u.useEffect(()=>{if(r){const V=vW(a,()=>{z(!0)});return V(),()=>{var W;(W=V?.cancel)===null||W===void 0||W.call(V)}}z(!1)},[a,r]);const L=u.useMemo(()=>typeof h<"u"&&!v,[h,v]),B=ue(O,$?.className,{[`${O}-sm`]:s==="small",[`${O}-lg`]:s==="large",[`${O}-spinning`]:_,[`${O}-show-text`]:!!d,[`${O}-rtl`]:E==="rtl"},o,!v&&l,I,R),F=ue(`${O}-container`,{[`${O}-blur`]:_}),H=(t=y??$?.indicator)!==null&&t!==void 0?t:a9,k=Object.assign(Object.assign({},$?.style),m),q=u.createElement("div",Object.assign({},C,{style:k,className:B,"aria-live":"polite","aria-busy":_}),u.createElement(eG,{prefixCls:O,indicator:H,percent:D}),d&&(L||v)?u.createElement("div",{className:`${O}-text`},d):null);return N(L?u.createElement("div",Object.assign({},C,{className:ue(`${O}-nested-loading`,f,I,R)}),_&&u.createElement("div",{key:"loading"},q),u.createElement("div",{className:F,key:"container"},h)):v?u.createElement("div",{className:ue(`${O}-fullscreen`,{[`${O}-fullscreen-show`]:_},l,I,R)},q):q)};Bd.setDefaultIndicator=e=>{a9=e};const BE=Se.createContext({});BE.Consumer;var o9=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uG=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,l=o9(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=u.useContext(Dt),d=s("list",t),f=ue(`${d}-item-meta`,n),m=Se.createElement("div",{className:`${d}-item-meta-content`},a&&Se.createElement("h4",{className:`${d}-item-meta-title`},a),o&&Se.createElement("div",{className:`${d}-item-meta-description`},o));return Se.createElement("div",Object.assign({},l,{className:f}),r&&Se.createElement("div",{className:`${d}-item-meta-avatar`},r),(a||o)&&m)},dG=Se.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:l,className:s,classNames:d,colStyle:f}=e,m=o9(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:h,itemLayout:v}=u.useContext(BE),{getPrefixCls:y,list:S}=u.useContext(Dt),C=_=>{var z,D;return ue((D=(z=S?.item)===null||z===void 0?void 0:z.classNames)===null||D===void 0?void 0:D[_],d?.[_])},w=_=>{var z,D;return Object.assign(Object.assign({},(D=(z=S?.item)===null||z===void 0?void 0:z.styles)===null||D===void 0?void 0:D[_]),l?.[_])},E=()=>{let _=!1;return u.Children.forEach(r,z=>{typeof z=="string"&&(_=!0)}),_&&u.Children.count(r)>1},$=()=>v==="vertical"?!!o:!E(),O=y("list",n),N=a&&a.length>0&&Se.createElement("ul",{className:ue(`${O}-item-action`,C("actions")),key:"actions",style:w("actions")},a.map((_,z)=>Se.createElement("li",{key:`${O}-item-action-${z}`},_,z!==a.length-1&&Se.createElement("em",{className:`${O}-item-action-split`})))),I=h?"div":"li",R=Se.createElement(I,Object.assign({},m,h?{}:{ref:t},{className:ue(`${O}-item`,{[`${O}-item-no-flex`]:!$()},s)}),v==="vertical"&&o?[Se.createElement("div",{className:`${O}-item-main`,key:"content"},r,N),Se.createElement("div",{className:ue(`${O}-item-extra`,C("extra")),key:"extra",style:w("extra")},o)]:[r,N,za(o,{key:"extra"})]);return h?Se.createElement(jE,{ref:t,flex:1,style:f},R):R}),i9=dG;i9.Meta=uG;const fG=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:l,marginLG:s,borderRadiusLG:d}=e;return{[t]:{border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ie(a)} ${ie(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}}}},mG=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:l}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ie(l)}`}}}}}},pG=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:l,padding:s,itemPadding:d,colorPrimary:f,itemPaddingSM:m,itemPaddingLG:h,paddingXS:v,margin:y,colorText:S,colorTextDescription:C,motionDurationSlow:w,lineWidth:E,headerBg:$,footerBg:O,emptyTextPadding:N,metaMarginBottom:I,avatarMarginRight:R,titleMarginBottom:_,descriptionFontSize:z}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:$},[`${t}-footer`]:{background:O},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:l,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:S,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:S},[`${t}-item-meta-title`]:{margin:`0 0 ${ie(e.marginXXS)} 0`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:S,transition:`all ${w}`,"&:hover":{color:f}}},[`${t}-item-meta-description`]:{color:C,fontSize:z,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 ${ie(v)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:E,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ie(s)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:N,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:l},[`${t}-item-meta`]:{marginBlockEnd:I,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:_,color:S,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${ie(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ie(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:m},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},gG=e=>({contentWidth:220,itemPadding:`${ie(e.paddingContentVertical)} 0`,itemPaddingSM:`${ie(e.paddingContentVerticalSM)} ${ie(e.paddingContentHorizontal)}`,itemPaddingLG:`${ie(e.paddingContentVerticalLG)} ${ie(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),hG=nr("List",e=>{const t=In(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[pG(t),fG(t),mG(t)]},gG);var vG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function yG(e,t){var{pagination:n=!1,prefixCls:r,bordered:a=!1,split:o=!0,className:l,rootClassName:s,style:d,children:f,itemLayout:m,loadMore:h,grid:v,dataSource:y=[],size:S,header:C,footer:w,loading:E=!1,rowKey:$,renderItem:O,locale:N}=e,I=vG(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const R=n&&typeof n=="object"?n:{},[_,z]=u.useState(R.defaultCurrent||1),[D,L]=u.useState(R.defaultPageSize||10),{getPrefixCls:B,renderEmpty:F,direction:H,list:k}=u.useContext(Dt),q={current:1,total:0},V=ze=>(Ve,Be)=>{var De;z(Ve),L(Be),n&&((De=n?.[ze])===null||De===void 0||De.call(n,Ve,Be))},W=V("onChange"),G=V("onShowSizeChange"),X=(ze,Ve)=>{if(!O)return null;let Be;return typeof $=="function"?Be=$(ze):$?Be=ze[$]:Be=ze.key,Be||(Be=`list-item-${Ve}`),u.createElement(u.Fragment,{key:Be},O(ze,Ve))},P=()=>!!(h||n||w),K=B("list",r),[J,j,Y]=hG(K);let ne=E;typeof ne=="boolean"&&(ne={spinning:ne});const se=!!ne?.spinning,de=No(S);let pe="";switch(de){case"large":pe="lg";break;case"small":pe="sm";break}const Ce=ue(K,{[`${K}-vertical`]:m==="vertical",[`${K}-${pe}`]:pe,[`${K}-split`]:o,[`${K}-bordered`]:a,[`${K}-loading`]:se,[`${K}-grid`]:!!v,[`${K}-something-after-last-item`]:P(),[`${K}-rtl`]:H==="rtl"},k?.className,l,s,j,Y),he=QR(q,{total:y.length,current:_,pageSize:D},n||{}),me=Math.ceil(he.total/he.pageSize);he.current>me&&(he.current=me);const be=n&&u.createElement("div",{className:ue(`${K}-pagination`)},u.createElement(LE,Object.assign({align:"end"},he,{onChange:W,onShowSizeChange:G})));let fe=st(y);n&&y.length>(he.current-1)*he.pageSize&&(fe=st(y).splice((he.current-1)*he.pageSize,he.pageSize));const ge=Object.keys(v||{}).some(ze=>["xs","sm","md","lg","xl","xxl"].includes(ze)),Oe=vE(ge),Ne=u.useMemo(()=>{for(let ze=0;ze<Ld.length;ze+=1){const Ve=Ld[ze];if(Oe[Ve])return Ve}},[Oe]),je=u.useMemo(()=>{if(!v)return;const ze=Ne&&v[Ne]?v[Ne]:v.column;if(ze)return{width:`${100/ze}%`,maxWidth:`${100/ze}%`}},[JSON.stringify(v),Ne]);let Te=se&&u.createElement("div",{style:{minHeight:53}});if(fe.length>0){const ze=fe.map((Ve,Be)=>X(Ve,Be));Te=v?u.createElement(OR,{gutter:v.gutter},u.Children.map(ze,Ve=>u.createElement("div",{key:Ve?.key,style:je},Ve))):u.createElement("ul",{className:`${K}-items`},ze)}else!f&&!se&&(Te=u.createElement("div",{className:`${K}-empty-text`},N?.emptyText||F?.("List")||u.createElement(gE,{componentName:"List"})));const Ue=he.position||"bottom",qe=u.useMemo(()=>({grid:v,itemLayout:m}),[JSON.stringify(v),m]);return J(u.createElement(BE.Provider,{value:qe},u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},k?.style),d),className:Ce},I),(Ue==="top"||Ue==="both")&&be,C&&u.createElement("div",{className:`${K}-header`},C),u.createElement(Bd,Object.assign({},ne),Te,f),w&&u.createElement("div",{className:`${K}-footer`},w),h||(Ue==="bottom"||Ue==="both")&&be)))}const bG=u.forwardRef(yG),VC=bG;VC.Item=i9;function xG(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let Yi=null,Id=e=>e(),Kh=[],Wh={};function _6(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Wh,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const SG=Se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=u.useContext(Dt),o=Wh.prefixCls||a("message"),l=u.useContext(_L),[s,d]=yO(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),l.message));return Se.useImperativeHandle(t,()=>{const f=Object.assign({},s);return Object.keys(f).forEach(m=>{f[m]=function(){return r(),s[m].apply(s,arguments)}}),{instance:f,sync:r}}),d}),CG=Se.forwardRef((e,t)=>{const[n,r]=Se.useState(_6),a=()=>{r(_6)};Se.useEffect(a,[]);const o=oO(),l=o.getRootPrefixCls(),s=o.getIconPrefixCls(),d=o.getTheme(),f=Se.createElement(SG,{ref:t,sync:a,messageConfig:n});return Se.createElement(rl,{prefixCls:l,iconPrefixCls:s,theme:d},o.holderRender?o.holderRender(f):f)});function jb(){if(!Yi){const e=document.createDocumentFragment(),t={fragment:e};Yi=t,Id(()=>{Vw(Se.createElement(CG,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,jb())})}}),e)});return}Yi.instance&&(Kh.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Id(()=>{const r=Yi.instance.open(Object.assign(Object.assign({},Wh),e.config));r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Id(()=>{Yi?.instance.destroy(e.key)});break;default:Id(()=>{var r;const a=(r=Yi.instance)[t].apply(r,st(e.args));a?.then(e.resolve),e.setCloseFn(a)})}}),Kh=[])}function wG(e){Wh=Object.assign(Object.assign({},Wh),e),Id(()=>{var t;(t=Yi?.sync)===null||t===void 0||t.call(Yi)})}function EG(e){const t=Fw(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Kh.push(a),()=>{r?Id(()=>{r()}):a.skipped=!0}});return jb(),t}function $G(e,t){const n=Fw(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:l=>{a=l}};return Kh.push(o),()=>{a?Id(()=>{a()}):o.skipped=!0}});return jb(),n}const OG=e=>{Kh.push({type:"destroy",key:e}),jb()},MG=["success","info","warning","error","loading"],RG={open:EG,destroy:OG,config:wG,useMessage:jz,_InternalPanelDoNotUseOrYouWillBeFired:Nz},uv=RG;MG.forEach(e=>{uv[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $G(e,n)}});var NG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TG=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:l,children:s,footer:d}=e,f=NG(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:m}=u.useContext(Dt),h=m(),v=t||m("modal"),y=Ba(h),[S,C,w]=tM(v,y),E=`${v}-confirm`;let $={};return o?$={closable:a??!1,title:"",footer:"",children:u.createElement(rM,Object.assign({},e,{prefixCls:v,confirmPrefixCls:E,rootPrefixCls:h,content:s}))}:$={closable:a??!0,title:l,footer:d!==null&&u.createElement(ZO,Object.assign({},e)),children:s},S(u.createElement(DO,Object.assign({prefixCls:v,className:ue(C,`${v}-pure-panel`,o&&E,o&&`${E}-${o}`,n,w,y)},f,{closeIcon:QO(v,r),closable:a},$)))},IG=fM(TG);function l9(e){return ov(lM(e))}const qa=nM;qa.useModal=IL;qa.info=function(t){return ov(sM(t))};qa.success=function(t){return ov(cM(t))};qa.error=function(t){return ov(uM(t))};qa.warning=l9;qa.warn=l9;qa.confirm=function(t){return ov(dM(t))};qa.destroyAll=function(){for(;Td.length;){const t=Td.pop();t&&t()}};qa.config=OL;qa._InternalPanelDoNotUseOrYouWillBeFired=IG;const _G=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:l,marginXXS:s,marginXS:d,fontSize:f,fontWeightStrong:m,colorTextHeading:h}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:f},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:f,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:m,color:h,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},AG=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},s9=nr("Popconfirm",e=>_G(e),AG,{resetStyle:!1});var PG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const c9=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:o,cancelText:l,okText:s,okType:d="primary",icon:f=u.createElement(Kd,null),showCancel:m=!0,close:h,onConfirm:v,onCancel:y,onPopupClick:S}=e,{getPrefixCls:C}=u.useContext(Dt),[w]=Cs("Popconfirm",ys.Popconfirm),E=ep(a),$=ep(o);return u.createElement("div",{className:`${t}-inner-content`,onClick:S},u.createElement("div",{className:`${t}-message`},f&&u.createElement("span",{className:`${t}-message-icon`},f),u.createElement("div",{className:`${t}-message-text`},E&&u.createElement("div",{className:`${t}-title`},E),$&&u.createElement("div",{className:`${t}-description`},$))),u.createElement("div",{className:`${t}-buttons`},m&&u.createElement(Un,Object.assign({onClick:y,size:"small"},r),l||w?.cancelText),u.createElement(aE,{buttonProps:Object.assign(Object.assign({size:"small"},Kw(d)),n),actionFn:v,close:h,prefixCls:C("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||w?.okText)))},zG=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,o=PG(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=u.useContext(Dt),s=l("popconfirm",t),[d]=s9(s);return d(u.createElement(BM,{placement:n,className:ue(s,r),style:a,content:u.createElement(c9,Object.assign({prefixCls:s},o))}))};var DG=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const jG=u.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:o="top",trigger:l="click",okType:s="primary",icon:d=u.createElement(Kd,null),children:f,overlayClassName:m,onOpenChange:h,onVisibleChange:v}=e,y=DG(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:S}=u.useContext(Dt),[C,w]=kr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),E=(D,L)=>{w(D,!0),v?.(D),h?.(D,L)},$=D=>{E(!1,D)},O=D=>{var L;return(L=e.onConfirm)===null||L===void 0?void 0:L.call(void 0,D)},N=D=>{var L;E(!1,D),(L=e.onCancel)===null||L===void 0||L.call(void 0,D)},I=(D,L)=>{const{disabled:B=!1}=e;B||E(D,L)},R=S("popconfirm",a),_=ue(R,m),[z]=s9(R);return z(u.createElement(Fy,Object.assign({},Qr(y,["title"]),{trigger:l,placement:o,onOpenChange:I,open:C,ref:t,overlayClassName:_,content:u.createElement(c9,Object.assign({okType:s,icon:d},e,{prefixCls:R,close:$,onConfirm:O,onCancel:N})),"data-popover-inject":!0}),f))}),yy=jG;yy._InternalPanelDoNotUseOrYouWillBeFired=zG;var kG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},LG=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:kG}))},BG=u.forwardRef(LG),FG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},HG=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:FG}))},VG=u.forwardRef(HG),KG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},WG=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:KG}))},UG=u.forwardRef(WG),qG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},GG=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:qG}))},XG=u.forwardRef(GG),YG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},QG=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:YG}))},ZG=u.forwardRef(QG),JG={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},eX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:JG}))},tX=u.forwardRef(eX),nX={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"},rX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:nX}))},aX=u.forwardRef(rX),oX={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"},iX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:oX}))},lX=u.forwardRef(iX),sX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},cX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:sX}))},uX=u.forwardRef(cX),dX={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"},fX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:dX}))},ps=u.forwardRef(fX),mX={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"},pX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:mX}))},gX=u.forwardRef(pX),hX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},vX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:hX}))},yX=u.forwardRef(vX),bX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},xX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:bX}))},kb=u.forwardRef(xX),SX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},CX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:SX}))},wX=u.forwardRef(CX),EX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},$X=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:EX}))},OX=u.forwardRef($X),MX={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"},RX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:MX}))},u9=u.forwardRef(RX),NX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},TX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:NX}))},IX=u.forwardRef(TX),_X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},AX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:_X}))},PX=u.forwardRef(AX),zX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},DX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:zX}))},d9=u.forwardRef(DX),jX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},kX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:jX}))},LX=u.forwardRef(kX),BX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},FX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:BX}))},HX=u.forwardRef(FX),VX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},KX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:VX}))},WX=u.forwardRef(KX),UX={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V160a16 16 0 0116-16zm-52 68H212v200h200zm493.33 87.69a16 16 0 010 22.62L724.31 503.33a16 16 0 01-22.62 0L520.67 322.31a16 16 0 010-22.62l181.02-181.02a16 16 0 0122.62 0zm-84.85 11.3L713 203.53 605.52 311 713 418.48zM464 544a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V560a16 16 0 0116-16zm-52 68H212v200h200zm452-68a16 16 0 0116 16v304a16 16 0 01-16 16H560a16 16 0 01-16-16V560a16 16 0 0116-16zm-52 68H612v200h200z"}}]},name:"product",theme:"outlined"},qX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:UX}))},GX=u.forwardRef(qX),XX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},YX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:XX}))},QX=u.forwardRef(YX),ZX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},JX=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:ZX}))},A6=u.forwardRef(JX),eY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},tY=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:eY}))},f9=u.forwardRef(tY),nY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},rY=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:nY}))},aY=u.forwardRef(rY),oY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},iY=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:oY}))},lY=u.forwardRef(iY),sY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},cY=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:sY}))},uY=u.forwardRef(cY),dY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},fY=function(t,n){return u.createElement(vn,Je({},t,{ref:n,icon:dY}))},P6=u.forwardRef(fY);const mY=()=>u.createElement("svg",{width:"252",height:"294"},u.createElement("title",null,"No Found"),u.createElement("defs",null,u.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .012)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),u.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),u.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),u.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),u.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),u.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),u.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),u.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),u.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),u.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),u.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),u.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),u.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),u.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),u.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),u.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),u.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),u.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),u.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),u.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),u.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),u.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),u.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),u.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),u.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),u.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),u.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),u.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),u.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),u.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),u.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),u.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),u.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),u.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),u.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),pY=()=>u.createElement("svg",{width:"254",height:"294"},u.createElement("title",null,"Server Error"),u.createElement("defs",null,u.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),u.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .067)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),u.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),u.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),u.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),u.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),u.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),u.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),u.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),u.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),u.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),u.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),u.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),u.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),u.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),u.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),u.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),u.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),u.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),u.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),u.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),u.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),u.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),u.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),u.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),u.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),u.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),u.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),u.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),u.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),u.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),u.createElement("mask",{fill:"#fff"}),u.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),u.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),u.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),u.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),gY=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:o,paddingXS:l,paddingLG:s,marginXS:d,lineHeight:f}=e;return{[t]:{padding:`${ie(e.calc(s).mul(2).equal())} ${ie(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:d,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:f,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${ie(s)} ${ie(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},hY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},vY=e=>[gY(e),hY(e)],yY=e=>vY(e),bY=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),xY=nr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,o=In(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[yY(o)]},bY),SY=()=>u.createElement("svg",{width:"251",height:"294"},u.createElement("title",null,"Unauthorized"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),u.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),u.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),u.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),u.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),u.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),u.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),u.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),u.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),u.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),u.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),u.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),u.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),u.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),u.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),u.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),u.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),u.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),u.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),u.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),u.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),u.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),u.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),u.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),u.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),u.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),u.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),u.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),u.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),u.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),u.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),u.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),u.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),CY={success:Yh,error:Vd,info:Kd,warning:uY},dv={404:mY,500:pY,403:SY},wY=Object.keys(dv),EY=e=>{let{prefixCls:t,icon:n,status:r}=e;const a=ue(`${t}-icon`);if(wY.includes(`${r}`)){const l=dv[r];return u.createElement("div",{className:`${a} ${t}-image`},u.createElement(l,null))}const o=u.createElement(CY[r]);return n===null||n===!1?null:u.createElement("div",{className:a},n||o)},$Y=e=>{let{prefixCls:t,extra:n}=e;return n?u.createElement("div",{className:`${t}-extra`},n):null},Lb=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:a,title:o,style:l,children:s,status:d="info",icon:f,extra:m}=e;const{getPrefixCls:h,direction:v,result:y}=u.useContext(Dt),S=h("result",t),[C,w,E]=xY(S),$=ue(S,`${S}-${d}`,n,y?.className,r,{[`${S}-rtl`]:v==="rtl"},w,E),O=Object.assign(Object.assign({},y?.style),l);return C(u.createElement("div",{className:$,style:O},u.createElement(EY,{prefixCls:S,status:d,icon:f}),u.createElement("div",{className:`${S}-title`},o),a&&u.createElement("div",{className:`${S}-subtitle`},a),u.createElement($Y,{prefixCls:S,extra:m}),s&&u.createElement("div",{className:`${S}-content`},s)))};Lb.PRESENTED_IMAGE_403=dv[403];Lb.PRESENTED_IMAGE_404=dv[404];Lb.PRESENTED_IMAGE_500=dv[500];var OY=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m9=u.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,l=e.checked,s=e.defaultChecked,d=e.disabled,f=e.loadingIcon,m=e.checkedChildren,h=e.unCheckedChildren,v=e.onClick,y=e.onChange,S=e.onKeyDown,C=ln(e,OY),w=kr(!1,{value:l,defaultValue:s}),E=Re(w,2),$=E[0],O=E[1];function N(z,D){var L=$;return d||(L=z,O(L),y?.(L,D)),L}function I(z){z.which===Pt.LEFT?N(!1,z):z.which===Pt.RIGHT&&N(!0,z),S?.(z)}function R(z){var D=N(!$,z);v?.(D,z)}var _=ue(a,o,(n={},te(n,"".concat(a,"-checked"),$),te(n,"".concat(a,"-disabled"),d),n));return u.createElement("button",Je({},C,{type:"button",role:"switch","aria-checked":$,disabled:d,className:_,ref:t,onKeyDown:I,onClick:R}),f,u.createElement("span",{className:"".concat(a,"-inner")},u.createElement("span",{className:"".concat(a,"-inner-checked")},m),u.createElement("span",{className:"".concat(a,"-inner-unchecked")},h)))});m9.displayName="Switch";const MY=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:l,handleSizeSM:s,calc:d}=e,f=`${t}-inner`,m=ie(d(s).add(d(r).mul(2)).equal()),h=ie(d(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ie(n),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:o,[`${f}-checked, ${f}-unchecked`]:{minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${h})`,marginInlineEnd:`calc(100% - ${m} + ${h})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:d(d(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:l,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${h})`,marginInlineEnd:`calc(-100% + ${m} - ${h})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(d(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},RY=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},NY=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:l}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:l(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(l(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},TY=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:l,calc:s}=e,d=`${t}-inner`,f=ie(s(l).add(s(r).mul(2)).equal()),m=ie(s(o).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${m})`,marginInlineEnd:`calc(100% - ${f} + ${m})`},[`${d}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${m})`,marginInlineEnd:`calc(-100% + ${f} - ${m})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},IY=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ie(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),bs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},_Y=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,l=r/2,s=2,d=o-s*2,f=l-s*2;return{trackHeight:o,trackHeightSM:l,trackMinWidth:d*2+s*4,trackMinWidthSM:f*2+s*2,trackPadding:s,handleBg:a,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new zr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+s+s*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+s+s*2}},AY=nr("Switch",e=>{const t=In(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[IY(t),TY(t),NY(t),RY(t),MY(t)]},_Y);var PY=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zY=u.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:o,className:l,rootClassName:s,style:d,checked:f,value:m,defaultChecked:h,defaultValue:v,onChange:y}=e,S=PY(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,w]=kr(!1,{value:f??m,defaultValue:h??v}),{getPrefixCls:E,direction:$,switch:O}=u.useContext(Dt),N=u.useContext(tl),I=(a??N)||o,R=E("switch",n),_=u.createElement("div",{className:`${R}-handle`},o&&u.createElement(Wd,{className:`${R}-loading-icon`})),[z,D,L]=AY(R),B=No(r),F=ue(O?.className,{[`${R}-small`]:B==="small",[`${R}-loading`]:o,[`${R}-rtl`]:$==="rtl"},l,s,D,L),H=Object.assign(Object.assign({},O?.style),d),k=function(){w(arguments.length<=0?void 0:arguments[0]),y?.apply(void 0,arguments)};return z(u.createElement(ev,{component:"Switch"},u.createElement(m9,Object.assign({},S,{checked:C,onChange:k,prefixCls:R,className:F,style:H,disabled:I,ref:t,loadingIcon:_}))))}),p9=zY;p9.__ANT_SWITCH=!0;var ru={},fv="rc-table-internal-hook";function FE(e){var t=u.createContext(void 0),n=function(a){var o=a.value,l=a.children,s=u.useRef(o);s.current=o;var d=u.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),f=Re(d,1),m=f[0];return Ln(function(){tc.unstable_batchedUpdates(function(){m.listeners.forEach(function(h){h(o)})})},[o]),u.createElement(t.Provider,{value:m},l)};return{Context:t,Provider:n,defaultValue:e}}function oo(e,t){var n=vr(typeof t=="function"?t:function(h){if(t===void 0)return h;if(!Array.isArray(t))return h[t];var v={};return t.forEach(function(y){v[y]=h[y]}),v}),r=u.useContext(e?.Context),a=r||{},o=a.listeners,l=a.getValue,s=u.useRef();s.current=n(r?l():e?.defaultValue);var d=u.useState({}),f=Re(d,2),m=f[1];return Ln(function(){if(!r)return;function h(v){var y=n(v);vs(s.current,y,!0)||m({})}return o.add(h),function(){o.delete(h)}},[r]),s.current}function DY(){var e=u.createContext(null);function t(){return u.useContext(e)}function n(a,o){var l=Il(a),s=function(f,m){var h=l?{ref:m}:{},v=u.useRef(0),y=u.useRef(f),S=t();return S!==null?u.createElement(a,Je({},f,h)):((!o||o(y.current,f))&&(v.current+=1),y.current=f,u.createElement(e.Provider,{value:v.current},u.createElement(a,Je({},f,h))))};return l?u.forwardRef(s):s}function r(a,o){var l=Il(a),s=function(f,m){var h=l?{ref:m}:{};return t(),u.createElement(a,Je({},f,h))};return l?u.memo(u.forwardRef(s),o):u.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var HE=DY(),g9=HE.makeImmutable,mp=HE.responseImmutable,jY=HE.useImmutableMark,Xo=FE(),h9=u.createContext({renderWithProps:!1}),kY="RC_TABLE_KEY";function LY(e){return e==null?[]:Array.isArray(e)?e:[e]}function Bb(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,l=a.dataIndex,s=o||LY(l).join("-")||kY;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function KC(e){return e!=null}function BY(e){return typeof e=="number"&&!Number.isNaN(e)}function FY(e){return e&&Vt(e)==="object"&&!Array.isArray(e)&&!u.isValidElement(e)}function HY(e,t,n,r,a,o){var l=u.useContext(h9),s=jY(),d=Hd(function(){if(KC(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],m=_i(e,f),h=m,v=void 0;if(a){var y=a(m,e,n);FY(y)?(h=y.children,v=y.props,l.renderWithProps=!0):h=y}return[h,v]},[s,e,r,t,a,n],function(f,m){if(o){var h=Re(f,2),v=h[1],y=Re(m,2),S=y[1];return o(S,v)}return l.renderWithProps?!0:!vs(f,m,!0)});return d}function VY(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function KY(e,t){return oo(Xo,function(n){var r=VY(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var WY=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,l=n===!0?{showTitle:!0}:n;return l&&(l.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():u.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function UY(e){var t,n,r,a,o,l,s,d,f=e.component,m=e.children,h=e.ellipsis,v=e.scope,y=e.prefixCls,S=e.className,C=e.align,w=e.record,E=e.render,$=e.dataIndex,O=e.renderIndex,N=e.shouldCellUpdate,I=e.index,R=e.rowType,_=e.colSpan,z=e.rowSpan,D=e.fixLeft,L=e.fixRight,B=e.firstFixLeft,F=e.lastFixLeft,H=e.firstFixRight,k=e.lastFixRight,q=e.appendNode,V=e.additionalProps,W=V===void 0?{}:V,G=e.isSticky,X="".concat(y,"-cell"),P=oo(Xo,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=P.supportSticky,J=P.allColumnsFixedLeft,j=P.rowHoverable,Y=HY(w,$,O,m,E,N),ne=Re(Y,2),se=ne[0],de=ne[1],pe={},Ce=typeof D=="number"&&K,he=typeof L=="number"&&K;Ce&&(pe.position="sticky",pe.left=D),he&&(pe.position="sticky",pe.right=L);var me=(t=(n=(r=de?.colSpan)!==null&&r!==void 0?r:W.colSpan)!==null&&n!==void 0?n:_)!==null&&t!==void 0?t:1,be=(a=(o=(l=de?.rowSpan)!==null&&l!==void 0?l:W.rowSpan)!==null&&o!==void 0?o:z)!==null&&a!==void 0?a:1,fe=KY(I,be),ge=Re(fe,2),Oe=ge[0],Ne=ge[1],je=vr(function(De){var ye;w&&Ne(I,I+be-1),W==null||(ye=W.onMouseEnter)===null||ye===void 0||ye.call(W,De)}),Te=vr(function(De){var ye;w&&Ne(-1,-1),W==null||(ye=W.onMouseLeave)===null||ye===void 0||ye.call(W,De)});if(me===0||be===0)return null;var Ue=(s=W.title)!==null&&s!==void 0?s:WY({rowType:R,ellipsis:h,children:se}),qe=ue(X,S,(d={},te(te(te(te(te(te(te(te(te(te(d,"".concat(X,"-fix-left"),Ce&&K),"".concat(X,"-fix-left-first"),B&&K),"".concat(X,"-fix-left-last"),F&&K),"".concat(X,"-fix-left-all"),F&&J&&K),"".concat(X,"-fix-right"),he&&K),"".concat(X,"-fix-right-first"),H&&K),"".concat(X,"-fix-right-last"),k&&K),"".concat(X,"-ellipsis"),h),"".concat(X,"-with-append"),q),"".concat(X,"-fix-sticky"),(Ce||he)&&G&&K),te(d,"".concat(X,"-row-hover"),!de&&Oe)),W.className,de?.className),ze={};C&&(ze.textAlign=C);var Ve=le(le(le(le({},pe),W.style),ze),de?.style),Be=se;return Vt(Be)==="object"&&!Array.isArray(Be)&&!u.isValidElement(Be)&&(Be=null),h&&(F||H)&&(Be=u.createElement("span",{className:"".concat(X,"-content")},Be)),u.createElement(f,Je({},de,W,{className:qe,style:Ve,title:Ue,scope:v,onMouseEnter:j?je:void 0,onMouseLeave:j?Te:void 0,colSpan:me!==1?me:null,rowSpan:be!==1?be:null}),q,Be)}const pp=u.memo(UY);function VE(e,t,n,r,a){var o=n[e]||{},l=n[t]||{},s,d;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:l.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var f=!1,m=!1,h=!1,v=!1,y=n[t+1],S=n[e-1],C=y&&!y.fixed||S&&!S.fixed||n.every(function(N){return N.fixed==="left"});if(a==="rtl"){if(s!==void 0){var w=S&&S.fixed==="left";v=!w&&C}else if(d!==void 0){var E=y&&y.fixed==="right";h=!E&&C}}else if(s!==void 0){var $=y&&y.fixed==="left";f=!$&&C}else if(d!==void 0){var O=S&&S.fixed==="right";m=!O&&C}return{fixLeft:s,fixRight:d,lastFixLeft:f,firstFixRight:m,lastFixRight:h,firstFixLeft:v,isSticky:r.isSticky}}var v9=u.createContext({});function qY(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,l=e.rowSpan,s=e.align,d=oo(Xo,["prefixCls","direction"]),f=d.prefixCls,m=d.direction,h=u.useContext(v9),v=h.scrollColumnIndex,y=h.stickyOffsets,S=h.flattenColumns,C=n+o-1,w=C+1===v?o+1:o,E=VE(n,n+w-1,S,y,m);return u.createElement(pp,Je({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:s,colSpan:w,rowSpan:l,render:function(){return r}},E))}var GY=["children"];function XY(e){var t=e.children,n=ln(e,GY);return u.createElement("tr",n,t)}function Fb(e){var t=e.children;return t}Fb.Row=XY;Fb.Cell=qY;function YY(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=oo(Xo,"prefixCls"),o=r.length-1,l=r[o],s=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?o:null}},[l,r,o,n]);return u.createElement(v9.Provider,{value:s},u.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const W1=mp(YY);var y9=Fb;function QY(e){return null}function ZY(e){return null}function b9(e,t,n,r,a,o,l){e.push({record:t,indent:n,index:l});var s=o(t),d=a?.has(s);if(t&&Array.isArray(t[r])&&d)for(var f=0;f<t[r].length;f+=1)b9(e,t[r][f],n+1,r,a,o,f)}function x9(e,t,n,r){var a=u.useMemo(function(){if(n!=null&&n.size){for(var o=[],l=0;l<e?.length;l+=1){var s=e[l];b9(o,s,0,t,n,r,l)}return o}return e?.map(function(d,f){return{record:d,indent:0,index:f}})},[e,t,n,r]);return a}function S9(e,t,n,r){var a=oo(Xo,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=a.flattenColumns,l=a.expandableType,s=a.expandedKeys,d=a.childrenColumnName,f=a.onTriggerExpand,m=a.rowExpandable,h=a.onRow,v=a.expandRowByClick,y=a.rowClassName,S=l==="nest",C=l==="row"&&(!m||m(e)),w=C||S,E=s&&s.has(t),$=d&&e&&e[d],O=vr(f),N=h?.(e,n),I=N?.onClick,R=function(L){v&&w&&f(e,L);for(var B=arguments.length,F=new Array(B>1?B-1:0),H=1;H<B;H++)F[H-1]=arguments[H];I?.apply(void 0,[L].concat(F))},_;typeof y=="string"?_=y:typeof y=="function"&&(_=y(e,n,r));var z=Bb(o);return le(le({},a),{},{columnsKey:z,nestExpandable:S,expanded:E,hasNestChildren:$,record:e,onTriggerExpand:O,rowSupportExpand:C,expandable:w,rowProps:le(le({},N),{},{className:ue(_,N?.className),onClick:R})})}function C9(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,l=e.expanded,s=e.colSpan,d=e.isEmpty,f=oo(Xo,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,h=f.fixHeader,v=f.fixColumn,y=f.componentWidth,S=f.horizonScroll,C=n;return(d?S&&y:v)&&(C=u.createElement("div",{style:{width:y-(h&&!d?m:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},C)),u.createElement(r,{className:o,style:{display:l?null:"none"}},u.createElement(pp,{component:a,prefixCls:t,colSpan:s},C))}function w9(e,t,n,r,a){var o=e.record,l=e.prefixCls,s=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,m=e.nestExpandable,h=e.indentSize,v=e.expandIcon,y=e.expanded,S=e.hasNestChildren,C=e.onTriggerExpand,w=s[n],E=d[n],$;n===(f||0)&&m&&($=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(l,"-row-indent indent-level-").concat(r)}),v({prefixCls:l,expanded:y,expandable:S,record:o,onExpand:C})));var O;return t.onCell&&(O=t.onCell(o,a)),{key:w,fixedInfo:E,appendCellNode:$,additionalCellProps:O||{}}}function JY(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,l=e.rowKey,s=e.indent,d=s===void 0?0:s,f=e.rowComponent,m=e.cellComponent,h=e.scopeCellComponent,v=S9(r,l,a,d),y=v.prefixCls,S=v.flattenColumns,C=v.expandedRowClassName,w=v.expandedRowRender,E=v.rowProps,$=v.expanded,O=v.rowSupportExpand,N=u.useRef(!1);N.current||(N.current=$);var I=C&&C(r,a,d),R=u.createElement(f,Je({},E,{"data-row-key":l,className:ue(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(d),E?.className,d>=1?I:""),style:le(le({},n),E?.style)}),S.map(function(D,L){var B=D.render,F=D.dataIndex,H=D.className,k=w9(v,D,L,d,a),q=k.key,V=k.fixedInfo,W=k.appendCellNode,G=k.additionalCellProps;return u.createElement(pp,Je({className:H,ellipsis:D.ellipsis,align:D.align,scope:D.rowScope,component:D.rowScope?h:m,prefixCls:y,key:q,record:r,index:a,renderIndex:o,dataIndex:F,render:B,shouldCellUpdate:D.shouldCellUpdate},V,{appendNode:W,additionalProps:G}))})),_;if(O&&(N.current||$)){var z=w(r,a,d+1,$);_=u.createElement(C9,{expanded:$,className:ue("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(d+1),I),prefixCls:y,component:f,cellComponent:m,colSpan:S.length,isEmpty:!1},z)}return u.createElement(u.Fragment,null,R,_)}const eQ=mp(JY);function tQ(e){var t=e.columnKey,n=e.onColumnResize,r=u.useRef();return u.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),u.createElement(qo,{data:t},u.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function nQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},u.createElement(qo.Collection,{onBatchResize:function(o){o.forEach(function(l){var s=l.data,d=l.size;r(s,d.offsetWidth)})}},n.map(function(a){return u.createElement(tQ,{key:a,columnKey:a,onColumnResize:r})})))}function rQ(e){var t=e.data,n=e.measureColumnWidth,r=oo(Xo,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,d=r.getRowKey,f=r.expandedKeys,m=r.childrenColumnName,h=r.emptyNode,v=x9(t,m,f,d),y=u.useRef({renderWithProps:!1}),S=o(["body","wrapper"],"tbody"),C=o(["body","row"],"tr"),w=o(["body","cell"],"td"),E=o(["body","cell"],"th"),$;t.length?$=v.map(function(N,I){var R=N.record,_=N.indent,z=N.index,D=d(R,I);return u.createElement(eQ,{key:D,rowKey:D,record:R,index:I,renderIndex:z,rowComponent:C,cellComponent:w,scopeCellComponent:E,getRowKey:d,indent:_})}):$=u.createElement(C9,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:C,cellComponent:w,colSpan:s.length,isEmpty:!0},h);var O=Bb(s);return u.createElement(h9.Provider,{value:y.current},u.createElement(S,{className:"".concat(a,"-tbody")},n&&u.createElement(nQ,{prefixCls:a,columnsKey:O,onColumnResize:l}),$))}const aQ=mp(rQ);var oQ=["expandable"],Eh="RC_TABLE_INTERNAL_COL_DEFINE";function iQ(e){var t=e.expandable,n=ln(e,oQ),r;return"expandable"in e?r=le(le({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var lQ=["columnType"];function E9(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=oo(Xo,["tableLayout"]),o=a.tableLayout,l=[],s=r||n.length,d=!1,f=s-1;f>=0;f-=1){var m=t[f],h=n&&n[f],v=void 0,y=void 0;if(h&&(v=h[Eh],o==="auto"&&(y=h.minWidth)),m||y||v||d){var S=v||{};S.columnType;var C=ln(S,lQ);l.unshift(u.createElement("col",Je({key:f,style:{width:m,minWidth:y}},C))),d=!0}}return u.createElement("colgroup",null,l)}var sQ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function cQ(e,t){return u.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(a!==void 0)n[r]=a;else return null}return n},[e.join("_"),t])}var uQ=u.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,o=e.flattenColumns,l=e.colWidths,s=e.columCount,d=e.stickyOffsets,f=e.direction,m=e.fixHeader,h=e.stickyTopOffset,v=e.stickyBottomOffset,y=e.stickyClassName,S=e.onScroll,C=e.maxContentScroll,w=e.children,E=ln(e,sQ),$=oo(Xo,["prefixCls","scrollbarSize","isSticky","getComponent"]),O=$.prefixCls,N=$.scrollbarSize,I=$.isSticky,R=$.getComponent,_=R(["header","table"],"table"),z=I&&!m?0:N,D=u.useRef(null),L=u.useCallback(function(G){Th(t,G),Th(D,G)},[]);u.useEffect(function(){var G;function X(P){var K=P,J=K.currentTarget,j=K.deltaX;j&&(S({currentTarget:J,scrollLeft:J.scrollLeft+j}),P.preventDefault())}return(G=D.current)===null||G===void 0||G.addEventListener("wheel",X,{passive:!1}),function(){var P;(P=D.current)===null||P===void 0||P.removeEventListener("wheel",X)}},[]);var B=u.useMemo(function(){return o.every(function(G){return G.width})},[o]),F=o[o.length-1],H={fixed:F?F.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(O,"-cell-scrollbar")}}},k=u.useMemo(function(){return z?[].concat(st(a),[H]):a},[z,a]),q=u.useMemo(function(){return z?[].concat(st(o),[H]):o},[z,o]),V=u.useMemo(function(){var G=d.right,X=d.left;return le(le({},d),{},{left:f==="rtl"?[].concat(st(X.map(function(P){return P+z})),[0]):X,right:f==="rtl"?G:[].concat(st(G.map(function(P){return P+z})),[0]),isSticky:I})},[z,d,I]),W=cQ(l,s);return u.createElement("div",{style:le({overflow:"hidden"},I?{top:h,bottom:v}:{}),ref:L,className:ue(n,te({},y,!!y))},u.createElement(_,{style:{tableLayout:"fixed",visibility:r||W?null:"hidden"}},(!r||!C||B)&&u.createElement(E9,{colWidths:W?[].concat(st(W),[z]):[],columCount:s+1,columns:q}),w(le(le({},E),{},{stickyOffsets:V,columns:k,flattenColumns:q}))))});const z6=u.memo(uQ);var dQ=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,o=t.rowComponent,l=t.cellComponent,s=t.onHeaderRow,d=t.index,f=oo(Xo,["prefixCls","direction"]),m=f.prefixCls,h=f.direction,v;s&&(v=s(n.map(function(S){return S.column}),d));var y=Bb(n.map(function(S){return S.column}));return u.createElement(o,v,n.map(function(S,C){var w=S.column,E=VE(S.colStart,S.colEnd,a,r,h),$;return w&&w.onHeaderCell&&($=S.column.onHeaderCell(w)),u.createElement(pp,Je({},S,{scope:w.title?S.colSpan>1?"colgroup":"col":null,ellipsis:w.ellipsis,align:w.align,component:l,prefixCls:m,key:y[C]},E,{additionalProps:$,rowType:"header"}))}))};function fQ(e){var t=[];function n(l,s){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var f=s,m=l.filter(Boolean).map(function(h){var v={key:h.key,className:h.className||"",children:h.title,column:h,colStart:f},y=1,S=h.children;return S&&S.length>0&&(y=n(S,f,d+1).reduce(function(C,w){return C+w},0),v.hasSubColumns=!0),"colSpan"in h&&(y=h.colSpan),"rowSpan"in h&&(v.rowSpan=h.rowSpan),v.colSpan=y,v.colEnd=v.colStart+y-1,t[d].push(v),f+=y,y});return m}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-s)})},o=0;o<r;o+=1)a(o);return t}var mQ=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,o=t.onHeaderRow,l=oo(Xo,["prefixCls","getComponent"]),s=l.prefixCls,d=l.getComponent,f=u.useMemo(function(){return fQ(r)},[r]),m=d(["header","wrapper"],"thead"),h=d(["header","row"],"tr"),v=d(["header","cell"],"th");return u.createElement(m,{className:"".concat(s,"-thead")},f.map(function(y,S){var C=u.createElement(dQ,{key:S,flattenColumns:a,cells:y,stickyOffsets:n,rowComponent:h,cellComponent:v,onHeaderRow:o,index:S});return C}))};const D6=mp(mQ);function j6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function pQ(e,t,n){return u.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(v){var y=j6(t,v.width);y?r+=y:a+=1});var o=Math.max(t,n),l=Math.max(o-r,a),s=a,d=l/a,f=0,m=e.map(function(v){var y=le({},v),S=j6(t,y.width);if(S)y.width=S;else{var C=Math.floor(d);y.width=s===1?l:C,l-=C,s-=1}return f+=y.width,y});if(f<o){var h=o/f;l=o,m.forEach(function(v,y){var S=Math.floor(v.width*h);v.width=y===m.length-1?l:S,l-=S})}return[m,Math.max(f,o)]}return[e,t]},[e,t,n])}var gQ=["children"],hQ=["fixed"];function KE(e){return ro(e).filter(function(t){return u.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,o=ln(r,gQ),l=le({key:n},o);return a&&(l.children=KE(a)),l})}function $9(e){return e.filter(function(t){return t&&Vt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?le(le({},t),{},{children:$9(n)}):t})}function WC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Vt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,l=o===!0?"left":o,s="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(st(n),st(WC(d,s).map(function(f){return le({fixed:l},f)}))):[].concat(st(n),[le(le({key:s},r),{},{fixed:l})])},[])}function vQ(e){return e.map(function(t){var n=t.fixed,r=ln(t,hQ),a=n;return n==="left"?a="right":n==="right"&&(a="left"),le({fixed:a},r)})}function yQ(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,l=e.expandedKeys,s=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,m=e.expandIcon,h=e.rowExpandable,v=e.expandIconColumnIndex,y=e.direction,S=e.expandRowByClick,C=e.columnWidth,w=e.fixed,E=e.scrollWidth,$=e.clientWidth,O=u.useMemo(function(){var F=r||KE(a)||[];return $9(F.slice())},[r,a]),N=u.useMemo(function(){if(o){var F=O.slice();if(!F.includes(ru)){var H=v||0;H>=0&&F.splice(H,0,ru)}var k=F.indexOf(ru);F=F.filter(function(G,X){return G!==ru||X===k});var q=O[k],V;(w==="left"||w)&&!v?V="left":(w==="right"||w)&&v===O.length?V="right":V=q?q.fixed:null;var W=te(te(te(te(te(te({},Eh,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",V),"className","".concat(n,"-row-expand-icon-cell")),"width",C),"render",function(X,P,K){var J=d(P,K),j=l.has(J),Y=h?h(P):!0,ne=m({prefixCls:n,expanded:j,expandable:Y,record:P,onExpand:f});return S?u.createElement("span",{onClick:function(de){return de.stopPropagation()}},ne):ne});return F.map(function(G){return G===ru?W:G})}return O.filter(function(G){return G!==ru})},[o,O,d,l,m,y]),I=u.useMemo(function(){var F=N;return t&&(F=t(F)),F.length||(F=[{render:function(){return null}}]),F},[t,N,y]),R=u.useMemo(function(){return y==="rtl"?vQ(WC(I)):WC(I)},[I,y,E]),_=u.useMemo(function(){for(var F=-1,H=R.length-1;H>=0;H-=1){var k=R[H].fixed;if(k==="left"||k===!0){F=H;break}}if(F>=0)for(var q=0;q<=F;q+=1){var V=R[q].fixed;if(V!=="left"&&V!==!0)return!0}var W=R.findIndex(function(P){var K=P.fixed;return K==="right"});if(W>=0)for(var G=W;G<R.length;G+=1){var X=R[G].fixed;if(X!=="right")return!0}return!1},[R]),z=pQ(R,E,$),D=Re(z,2),L=D[0],B=D[1];return[I,L,B,_]}function bQ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,o=e.expandable,l="".concat(t,"-row-expand-icon");if(!o)return u.createElement("span",{className:ue(l,"".concat(t,"-row-spaced"))});var s=function(f){r(n,f),f.stopPropagation()};return u.createElement("span",{className:ue(l,te(te({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:s})}function xQ(e,t,n){var r=[];function a(o){(o||[]).forEach(function(l,s){r.push(t(l,s)),a(l[n])})}return a(e),r}function SQ(e,t,n){var r=iQ(e),a=r.expandIcon,o=r.expandedRowKeys,l=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,d=r.expandedRowRender,f=r.onExpand,m=r.onExpandedRowsChange,h=r.childrenColumnName,v=a||bQ,y=h||"children",S=u.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===fv&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(I){return I&&Vt(I)==="object"&&I[y]})?"nest":!1},[!!d,t]),C=u.useState(function(){return l||(s?xQ(t,n,y):[])}),w=Re(C,2),E=w[0],$=w[1],O=u.useMemo(function(){return new Set(o||E||[])},[o,E]),N=u.useCallback(function(I){var R=n(I,t.indexOf(I)),_,z=O.has(R);z?(O.delete(R),_=st(O)):_=[].concat(st(O),[R]),$(_),f&&f(!z,I),m&&m(_)},[n,O,t,f,m]);return[r,S,O,v,y,N]}function CQ(e,t,n){var r=e.map(function(a,o){return VE(o,o,e,t,n)});return Hd(function(){return r},[r],function(a,o){return!vs(a,o)})}function O9(e){var t=u.useRef(e),n=u.useState({}),r=Re(n,2),a=r[1],o=u.useRef(null),l=u.useRef([]);function s(d){l.current.push(d);var f=Promise.resolve();o.current=f,f.then(function(){if(o.current===f){var m=l.current,h=t.current;l.current=[],m.forEach(function(v){t.current=v(t.current)}),o.current=null,h!==t.current&&a({})}})}return u.useEffect(function(){return function(){o.current=null}},[]),[t.current,s]}function wQ(e){var t=u.useRef(null),n=u.useRef();function r(){window.clearTimeout(n.current)}function a(l){t.current=l,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return u.useEffect(function(){return r},[]),[a,o]}function EQ(){var e=u.useState(-1),t=Re(e,2),n=t[0],r=t[1],a=u.useState(-1),o=Re(a,2),l=o[0],s=o[1],d=u.useCallback(function(f,m){r(f),s(m)},[]);return[n,l,d]}var k6=ao()?window:null;function $Q(e,t){var n=Vt(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,o=n.offsetSummary,l=o===void 0?0:o,s=n.offsetScroll,d=s===void 0?0:s,f=n.getContainer,m=f===void 0?function(){return k6}:f,h=m()||k6,v=!!e;return u.useMemo(function(){return{isSticky:v,stickyClassName:v?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:l,offsetScroll:d,container:h}},[v,d,a,l,t,h])}function OQ(e,t,n){var r=u.useMemo(function(){var a=t.length,o=function(f,m,h){for(var v=[],y=0,S=f;S!==m;S+=h)v.push(y),t[S].fixed&&(y+=e[S]||0);return v},l=o(0,a,1),s=o(a-1,-1,-1).reverse();return n==="rtl"?{left:s,right:l}:{left:l,right:s}},[e,t,n]);return r}function L6(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)}var MQ=function(t,n){var r,a,o=t.scrollBodyRef,l=t.onScroll,s=t.offsetScroll,d=t.container,f=oo(Xo,"prefixCls"),m=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,h=((a=o.current)===null||a===void 0?void 0:a.clientWidth)||0,v=m&&h*(h/m),y=u.useRef(),S=O9({scrollLeft:0,isHiddenScrollBar:!0}),C=Re(S,2),w=C[0],E=C[1],$=u.useRef({delta:0,x:0}),O=u.useState(!1),N=Re(O,2),I=N[0],R=N[1],_=u.useRef(null);u.useEffect(function(){return function(){sr.cancel(_.current)}},[]);var z=function(){R(!1)},D=function(k){k.persist(),$.current.delta=k.pageX-w.scrollLeft,$.current.x=0,R(!0),k.preventDefault()},L=function(k){var q,V=k||((q=window)===null||q===void 0?void 0:q.event),W=V.buttons;if(!I||W===0){I&&R(!1);return}var G=$.current.x+k.pageX-$.current.x-$.current.delta;G<=0&&(G=0),G+v>=h&&(G=h-v),l({scrollLeft:G/h*(m+2)}),$.current.x=k.pageX},B=function(){_.current=sr(function(){if(o.current){var k=E6(o.current).top,q=k+o.current.offsetHeight,V=d===window?document.documentElement.scrollTop+window.innerHeight:E6(d).top+d.clientHeight;q-K3()<=V||k>=V-s?E(function(W){return le(le({},W),{},{isHiddenScrollBar:!0})}):E(function(W){return le(le({},W),{},{isHiddenScrollBar:!1})})}})},F=function(k){E(function(q){return le(le({},q),{},{scrollLeft:k/m*h||0})})};return u.useImperativeHandle(n,function(){return{setScrollLeft:F,checkScrollBarVisible:B}}),u.useEffect(function(){var H=K1(document.body,"mouseup",z,!1),k=K1(document.body,"mousemove",L,!1);return B(),function(){H.remove(),k.remove()}},[v,I]),u.useEffect(function(){var H=K1(d,"scroll",B,!1),k=K1(window,"resize",B,!1);return function(){H.remove(),k.remove()}},[d]),u.useEffect(function(){w.isHiddenScrollBar||E(function(H){var k=o.current;return k?le(le({},H),{},{scrollLeft:k.scrollLeft/k.scrollWidth*k.clientWidth}):H})},[w.isHiddenScrollBar]),m<=h||!v||w.isHiddenScrollBar?null:u.createElement("div",{style:{height:K3(),width:h,bottom:s},className:"".concat(f,"-sticky-scroll")},u.createElement("div",{onMouseDown:D,ref:y,className:ue("".concat(f,"-sticky-scroll-bar"),te({},"".concat(f,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const RQ=u.forwardRef(MQ);var M9="rc-table",NQ=[],TQ={};function IQ(){return"No Data"}function _Q(e,t){var n=le({rowKey:"key",prefixCls:M9,emptyText:IQ},e),r=n.prefixCls,a=n.className,o=n.rowClassName,l=n.style,s=n.data,d=n.rowKey,f=n.scroll,m=n.tableLayout,h=n.direction,v=n.title,y=n.footer,S=n.summary,C=n.caption,w=n.id,E=n.showHeader,$=n.components,O=n.emptyText,N=n.onRow,I=n.onHeaderRow,R=n.onScroll,_=n.internalHooks,z=n.transformColumns,D=n.internalRefs,L=n.tailor,B=n.getContainerWidth,F=n.sticky,H=n.rowHoverable,k=H===void 0?!0:H,q=s||NQ,V=!!q.length,W=_===fv,G=u.useCallback(function(Sn,gn){return _i($,Sn)||gn},[$]),X=u.useMemo(function(){return typeof d=="function"?d:function(Sn){var gn=Sn&&Sn[d];return gn}},[d]),P=G(["body"]),K=EQ(),J=Re(K,3),j=J[0],Y=J[1],ne=J[2],se=SQ(n,q,X),de=Re(se,6),pe=de[0],Ce=de[1],he=de[2],me=de[3],be=de[4],fe=de[5],ge=f?.x,Oe=u.useState(0),Ne=Re(Oe,2),je=Ne[0],Te=Ne[1],Ue=yQ(le(le(le({},n),pe),{},{expandable:!!pe.expandedRowRender,columnTitle:pe.columnTitle,expandedKeys:he,getRowKey:X,onTriggerExpand:fe,expandIcon:me,expandIconColumnIndex:pe.expandIconColumnIndex,direction:h,scrollWidth:W&&L&&typeof ge=="number"?ge:null,clientWidth:je}),W?z:null),qe=Re(Ue,4),ze=qe[0],Ve=qe[1],Be=qe[2],De=qe[3],ye=Be??ge,oe=u.useMemo(function(){return{columns:ze,flattenColumns:Ve}},[ze,Ve]),we=u.useRef(),Fe=u.useRef(),xe=u.useRef(),_e=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:we.current,scrollTo:function(gn){var _r;if(xe.current instanceof HTMLElement){var ga=gn.index,qn=gn.top,Oa=gn.key;if(BY(qn)){var ja;(ja=xe.current)===null||ja===void 0||ja.scrollTo({top:qn})}else{var Hr,sa=Oa??X(q[ga]);(Hr=xe.current.querySelector('[data-row-key="'.concat(sa,'"]')))===null||Hr===void 0||Hr.scrollIntoView()}}else(_r=xe.current)!==null&&_r!==void 0&&_r.scrollTo&&xe.current.scrollTo(gn)}}});var rt=u.useRef(),lt=u.useState(!1),ut=Re(lt,2),tt=ut[0],mt=ut[1],at=u.useState(!1),gt=Re(at,2),Nt=gt[0],tn=gt[1],Wt=O9(new Map),dn=Re(Wt,2),Qt=dn[0],nn=dn[1],Zt=Bb(Ve),Lt=Zt.map(function(Sn){return Qt.get(Sn)}),_t=u.useMemo(function(){return Lt},[Lt.join("_")]),It=OQ(_t,Ve,h),ve=f&&KC(f.y),Me=f&&KC(ye)||!!pe.fixed,Xe=Me&&Ve.some(function(Sn){var gn=Sn.fixed;return gn}),Qe=u.useRef(),ke=$Q(F,r),Ae=ke.isSticky,He=ke.offsetHeader,Ye=ke.offsetSummary,$t=ke.offsetScroll,xt=ke.stickyClassName,pt=ke.container,ct=u.useMemo(function(){return S?.(q)},[S,q]),dt=(ve||Ae)&&u.isValidElement(ct)&&ct.type===Fb&&ct.props.fixed,ot,nt,Tt;ve&&(nt={overflowY:V?"scroll":"auto",maxHeight:f.y}),Me&&(ot={overflowX:"auto"},ve||(nt={overflowY:"hidden"}),Tt={width:ye===!0?"auto":ye,minWidth:"100%"});var Mt=u.useCallback(function(Sn,gn){Jh(we.current)&&nn(function(_r){if(_r.get(Sn)!==gn){var ga=new Map(_r);return ga.set(Sn,gn),ga}return _r})},[]),zt=wQ(),jt=Re(zt,2),rn=jt[0],yt=jt[1];function Ot(Sn,gn){gn&&(typeof gn=="function"?gn(Sn):gn.scrollLeft!==Sn&&(gn.scrollLeft=Sn,gn.scrollLeft!==Sn&&setTimeout(function(){gn.scrollLeft=Sn},0)))}var Ft=vr(function(Sn){var gn=Sn.currentTarget,_r=Sn.scrollLeft,ga=h==="rtl",qn=typeof _r=="number"?_r:gn.scrollLeft,Oa=gn||TQ;if(!yt()||yt()===Oa){var ja;rn(Oa),Ot(qn,Fe.current),Ot(qn,xe.current),Ot(qn,rt.current),Ot(qn,(ja=Qe.current)===null||ja===void 0?void 0:ja.setScrollLeft)}var Hr=gn||Fe.current;if(Hr){var sa=typeof ye=="number"?ye:Hr.scrollWidth,Io=Hr.clientWidth;if(sa===Io){mt(!1),tn(!1);return}ga?(mt(-qn<sa-Io),tn(-qn>0)):(mt(qn>0),tn(qn<sa-Io))}}),Gt=vr(function(Sn){Ft(Sn),R?.(Sn)}),Jt=function(){if(Me&&xe.current){var gn;Ft({currentTarget:Ew(xe.current),scrollLeft:(gn=xe.current)===null||gn===void 0?void 0:gn.scrollLeft})}else mt(!1),tn(!1)},un=function(gn){var _r,ga=gn.width;(_r=Qe.current)===null||_r===void 0||_r.checkScrollBarVisible();var qn=we.current?we.current.offsetWidth:ga;W&&B&&we.current&&(qn=B(we.current,qn)||qn),qn!==je&&(Jt(),Te(qn))},On=u.useRef(!1);u.useEffect(function(){On.current&&Jt()},[Me,s,ze.length]),u.useEffect(function(){On.current=!0},[]);var Qn=u.useState(0),Xt=Re(Qn,2),an=Xt[0],Bt=Xt[1],gr=u.useState(!0),Lr=Re(gr,2),so=Lr[0],Da=Lr[1];u.useEffect(function(){(!L||!W)&&(xe.current instanceof Element?Bt(yC(xe.current).width):Bt(yC(_e.current).width)),Da(NC("position","sticky"))},[]),u.useEffect(function(){W&&D&&(D.body.current=xe.current)});var fr=u.useCallback(function(Sn){return u.createElement(u.Fragment,null,u.createElement(D6,Sn),dt==="top"&&u.createElement(W1,Sn,ct))},[dt,ct]),Ea=u.useCallback(function(Sn){return u.createElement(W1,Sn,ct)},[ct]),fa=G(["table"],"table"),Br=u.useMemo(function(){return m||(Xe?ye==="max-content"?"auto":"fixed":ve||Ae||Ve.some(function(Sn){var gn=Sn.ellipsis;return gn})?"fixed":"auto")},[ve,Xe,Ve,m,Ae]),xn,kt={colWidths:_t,columCount:Ve.length,stickyOffsets:It,onHeaderRow:I,fixHeader:ve,scroll:f},fn=u.useMemo(function(){return V?null:typeof O=="function"?O():O},[V,O]),on=u.createElement(aQ,{data:q,measureColumnWidth:ve||Me||Ae}),Mn=u.createElement(E9,{colWidths:Ve.map(function(Sn){var gn=Sn.width;return gn}),columns:Ve}),_n=C!=null?u.createElement("caption",{className:"".concat(r,"-caption")},C):void 0,Ir=Pa(n,{data:!0}),yr=Pa(n,{aria:!0});if(ve||Ae){var ia;typeof P=="function"?(ia=P(q,{scrollbarSize:an,ref:xe,onScroll:Ft}),kt.colWidths=Ve.map(function(Sn,gn){var _r=Sn.width,ga=gn===Ve.length-1?_r-an:_r;return typeof ga=="number"&&!Number.isNaN(ga)?ga:0})):ia=u.createElement("div",{style:le(le({},ot),nt),onScroll:Gt,ref:xe,className:ue("".concat(r,"-body"))},u.createElement(fa,Je({style:le(le({},Tt),{},{tableLayout:Br})},yr),_n,Mn,on,!dt&&ct&&u.createElement(W1,{stickyOffsets:It,flattenColumns:Ve},ct)));var la=le(le(le({noData:!q.length,maxContentScroll:Me&&ye==="max-content"},kt),oe),{},{direction:h,stickyClassName:xt,onScroll:Ft});xn=u.createElement(u.Fragment,null,E!==!1&&u.createElement(z6,Je({},la,{stickyTopOffset:He,className:"".concat(r,"-header"),ref:Fe}),fr),ia,dt&&dt!=="top"&&u.createElement(z6,Je({},la,{stickyBottomOffset:Ye,className:"".concat(r,"-summary"),ref:rt}),Ea),Ae&&xe.current&&xe.current instanceof Element&&u.createElement(RQ,{ref:Qe,offsetScroll:$t,scrollBodyRef:xe,onScroll:Ft,container:pt}))}else xn=u.createElement("div",{style:le(le({},ot),nt),className:ue("".concat(r,"-content")),onScroll:Ft,ref:xe},u.createElement(fa,Je({style:le(le({},Tt),{},{tableLayout:Br})},yr),_n,Mn,E!==!1&&u.createElement(D6,Je({},kt,oe)),on,ct&&u.createElement(W1,{stickyOffsets:It,flattenColumns:Ve},ct)));var wr=u.createElement("div",Je({className:ue(r,a,te(te(te(te(te(te(te(te(te(te({},"".concat(r,"-rtl"),h==="rtl"),"".concat(r,"-ping-left"),tt),"".concat(r,"-ping-right"),Nt),"".concat(r,"-layout-fixed"),m==="fixed"),"".concat(r,"-fixed-header"),ve),"".concat(r,"-fixed-column"),Xe),"".concat(r,"-fixed-column-gapped"),Xe&&De),"".concat(r,"-scroll-horizontal"),Me),"".concat(r,"-has-fix-left"),Ve[0]&&Ve[0].fixed),"".concat(r,"-has-fix-right"),Ve[Ve.length-1]&&Ve[Ve.length-1].fixed==="right")),style:l,id:w,ref:we},Ir),v&&u.createElement(L6,{className:"".concat(r,"-title")},v(q)),u.createElement("div",{ref:_e,className:"".concat(r,"-container")},xn),y&&u.createElement(L6,{className:"".concat(r,"-footer")},y(q)));Me&&(wr=u.createElement(qo,{onResize:un},wr));var Fr=CQ(Ve,It,h),$a=u.useMemo(function(){return{scrollX:ye,prefixCls:r,getComponent:G,scrollbarSize:an,direction:h,fixedInfoList:Fr,isSticky:Ae,supportSticky:so,componentWidth:je,fixHeader:ve,fixColumn:Xe,horizonScroll:Me,tableLayout:Br,rowClassName:o,expandedRowClassName:pe.expandedRowClassName,expandIcon:me,expandableType:Ce,expandRowByClick:pe.expandRowByClick,expandedRowRender:pe.expandedRowRender,onTriggerExpand:fe,expandIconColumnIndex:pe.expandIconColumnIndex,indentSize:pe.indentSize,allColumnsFixedLeft:Ve.every(function(Sn){return Sn.fixed==="left"}),emptyNode:fn,columns:ze,flattenColumns:Ve,onColumnResize:Mt,hoverStartRow:j,hoverEndRow:Y,onHover:ne,rowExpandable:pe.rowExpandable,onRow:N,getRowKey:X,expandedKeys:he,childrenColumnName:be,rowHoverable:k}},[ye,r,G,an,h,Fr,Ae,so,je,ve,Xe,Me,Br,o,pe.expandedRowClassName,me,Ce,pe.expandRowByClick,pe.expandedRowRender,fe,pe.expandIconColumnIndex,pe.indentSize,fn,ze,Ve,Mt,j,Y,ne,pe.rowExpandable,N,X,he,be,k]);return u.createElement(Xo.Provider,{value:$a},wr)}var AQ=u.forwardRef(_Q);function R9(e){return g9(AQ,e)}var gp=R9();gp.EXPAND_COLUMN=ru;gp.INTERNAL_HOOKS=fv;gp.Column=QY;gp.ColumnGroup=ZY;gp.Summary=y9;var WE=FE(null),N9=FE(null);function PQ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function zQ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,o=e.index,l=e.component,s=e.renderIndex,d=e.record,f=e.style,m=e.className,h=e.inverse,v=e.getHeight,y=n.render,S=n.dataIndex,C=n.className,w=n.width,E=oo(N9,["columnsOffset"]),$=E.columnsOffset,O=w9(t,n,r,a,o),N=O.key,I=O.fixedInfo,R=O.appendCellNode,_=O.additionalCellProps,z=_.style,D=_.colSpan,L=D===void 0?1:D,B=_.rowSpan,F=B===void 0?1:B,H=r-1,k=PQ(H,L,$),q=L>1?w-k:0,V=le(le(le({},z),f),{},{flex:"0 0 ".concat(k,"px"),width:"".concat(k,"px"),marginRight:q,pointerEvents:"auto"}),W=u.useMemo(function(){return h?F<=1:L===0||F===0||F>1},[F,L,h]);W?V.visibility="hidden":h&&(V.height=v?.(F));var G=W?function(){return null}:y,X={};return(F===0||L===0)&&(X.rowSpan=1,X.colSpan=1),u.createElement(pp,Je({className:ue(C,m),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:N,record:d,index:o,renderIndex:s,dataIndex:S,render:G,shouldCellUpdate:n.shouldCellUpdate},I,{appendNode:R,additionalProps:le(le({},_),{},{style:V},X)}))}var DQ=["data","index","className","rowKey","style","extra","getHeight"],jQ=u.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,l=e.style,s=e.extra,d=e.getHeight,f=ln(e,DQ),m=n.record,h=n.indent,v=n.index,y=oo(Xo,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),S=y.scrollX,C=y.flattenColumns,w=y.prefixCls,E=y.fixColumn,$=y.componentWidth,O=oo(WE,["getComponent"]),N=O.getComponent,I=S9(m,o,r,h),R=N(["body","row"],"div"),_=N(["body","cell"],"div"),z=I.rowSupportExpand,D=I.expanded,L=I.rowProps,B=I.expandedRowRender,F=I.expandedRowClassName,H;if(z&&D){var k=B(m,r,h+1,D),q=F?.(m,r,h),V={};E&&(V={style:te({},"--virtual-width","".concat($,"px"))});var W="".concat(w,"-expanded-row-cell");H=u.createElement(R,{className:ue("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(h+1),q)},u.createElement(pp,{component:_,prefixCls:w,className:ue(W,te({},"".concat(W,"-fixed"),E)),additionalProps:V},k))}var G=le(le({},l),{},{width:S});s&&(G.position="absolute",G.pointerEvents="none");var X=u.createElement(R,Je({},L,f,{"data-row-key":o,ref:z?null:t,className:ue(a,"".concat(w,"-row"),L?.className,te({},"".concat(w,"-row-extra"),s)),style:le(le({},G),L?.style)}),C.map(function(P,K){return u.createElement(zQ,{key:K,component:_,rowInfo:I,column:P,colIndex:K,indent:h,index:r,renderIndex:v,record:m,inverse:s,getHeight:d})}));return z?u.createElement("div",{ref:t},X,H):X}),B6=mp(jQ),kQ=u.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=oo(Xo,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),o=a.flattenColumns,l=a.onColumnResize,s=a.getRowKey,d=a.expandedKeys,f=a.prefixCls,m=a.childrenColumnName,h=a.scrollX,v=oo(WE),y=v.sticky,S=v.scrollY,C=v.listItemHeight,w=v.getComponent,E=v.onScroll,$=u.useRef(),O=x9(n,m,d,s),N=u.useMemo(function(){var F=0;return o.map(function(H){var k=H.width,q=H.key;return F+=k,[q,k,F]})},[o]),I=u.useMemo(function(){return N.map(function(F){return F[2]})},[N]);u.useEffect(function(){N.forEach(function(F){var H=Re(F,2),k=H[0],q=H[1];l(k,q)})},[N]),u.useImperativeHandle(t,function(){var F,H={scrollTo:function(q){var V;(V=$.current)===null||V===void 0||V.scrollTo(q)},nativeElement:(F=$.current)===null||F===void 0?void 0:F.nativeElement};return Object.defineProperty(H,"scrollLeft",{get:function(){var q;return((q=$.current)===null||q===void 0?void 0:q.getScrollInfo().x)||0},set:function(q){var V;(V=$.current)===null||V===void 0||V.scrollTo({left:q})}}),H});var R=function(H,k){var q,V=(q=O[k])===null||q===void 0?void 0:q.record,W=H.onCell;if(W){var G,X=W(V,k);return(G=X?.rowSpan)!==null&&G!==void 0?G:1}return 1},_=function(H){var k=H.start,q=H.end,V=H.getSize,W=H.offsetY;if(q<0)return null;for(var G=o.filter(function(he){return R(he,k)===0}),X=k,P=function(me){if(G=G.filter(function(be){return R(be,me)===0}),!G.length)return X=me,1},K=k;K>=0&&!P(K);K-=1);for(var J=o.filter(function(he){return R(he,q)!==1}),j=q,Y=function(me){if(J=J.filter(function(be){return R(be,me)!==1}),!J.length)return j=Math.max(me-1,q),1},ne=q;ne<O.length&&!Y(ne);ne+=1);for(var se=[],de=function(me){var be=O[me];if(!be)return 1;o.some(function(fe){return R(fe,me)>1})&&se.push(me)},pe=X;pe<=j;pe+=1)de(pe);var Ce=se.map(function(he){var me=O[he],be=s(me.record,he),fe=function(Ne){var je=he+Ne-1,Te=s(O[je].record,je),Ue=V(be,Te);return Ue.bottom-Ue.top},ge=V(be);return u.createElement(B6,{key:he,data:me,rowKey:be,index:he,style:{top:-W+ge.top},extra:!0,getHeight:fe})});return Ce},z=u.useMemo(function(){return{columnsOffset:I}},[I]),D="".concat(f,"-tbody"),L=w(["body","wrapper"]),B={};return y&&(B.position="sticky",B.bottom=0,Vt(y)==="object"&&y.offsetScroll&&(B.bottom=y.offsetScroll)),u.createElement(N9.Provider,{value:z},u.createElement(Eb,{fullHeight:!1,ref:$,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:B},className:D,height:S,itemHeight:C||24,data:O,itemKey:function(H){return s(H.record)},component:L,scrollWidth:h,onVirtualScroll:function(H){var k,q=H.x;r({currentTarget:(k=$.current)===null||k===void 0?void 0:k.nativeElement,scrollLeft:q})},onScroll:E,extraRender:_},function(F,H,k){var q=s(F.record,H);return u.createElement(B6,{data:F,rowKey:q,index:H,style:k.style})}))}),LQ=mp(kQ),BQ=function(t,n){var r=n.ref,a=n.onScroll;return u.createElement(LQ,{ref:r,data:t,onScroll:a})};function FQ(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,l=e.prefixCls,s=l===void 0?M9:l,d=e.className,f=e.listItemHeight,m=e.components,h=e.onScroll,v=a||{},y=v.x,S=v.y;typeof y!="number"&&(y=1),typeof S!="number"&&(S=500);var C=vr(function($,O){return _i(m,$)||O}),w=vr(h),E=u.useMemo(function(){return{sticky:o,scrollY:S,listItemHeight:f,getComponent:C,onScroll:w}},[o,S,f,C,w]);return u.createElement(WE.Provider,{value:E},u.createElement(gp,Je({},e,{className:ue(d,"".concat(s,"-virtual")),scroll:le(le({},a),{},{x:y}),components:le(le({},m),{},{body:n!=null&&n.length?BQ:void 0}),columns:r,internalHooks:fv,tailor:!0,ref:t})))}var HQ=u.forwardRef(FQ);function T9(e){return g9(HQ,e)}T9();const VQ=e=>null,KQ=e=>null;var UE=u.createContext(null),WQ=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,l="".concat(n,"-indent-unit"),s=[],d=0;d<r;d+=1)s.push(u.createElement("span",{key:d,className:ue(l,te(te({},"".concat(l,"-start"),a[d]),"".concat(l,"-end"),o[d]))}));return u.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const UQ=u.memo(WQ);var qQ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],F6="open",H6="close",GQ="---",XQ=(function(e){nl(n,e);var t=Al(n);function n(){var r;ua(this,n);for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o)),te(St(r),"state",{dragNodeHighlight:!1}),te(St(r),"selectHandle",void 0),te(St(r),"cacheIndent",void 0),te(St(r),"onSelectorClick",function(s){var d=r.props.context.onNodeClick;d(s,_a(r.props)),r.isSelectable()?r.onSelect(s):r.onCheck(s)}),te(St(r),"onSelectorDoubleClick",function(s){var d=r.props.context.onNodeDoubleClick;d(s,_a(r.props))}),te(St(r),"onSelect",function(s){if(!r.isDisabled()){var d=r.props.context.onNodeSelect;d(s,_a(r.props))}}),te(St(r),"onCheck",function(s){if(!r.isDisabled()){var d=r.props,f=d.disableCheckbox,m=d.checked,h=r.props.context.onNodeCheck;if(!(!r.isCheckable()||f)){var v=!m;h(s,_a(r.props),v)}}}),te(St(r),"onMouseEnter",function(s){var d=r.props.context.onNodeMouseEnter;d(s,_a(r.props))}),te(St(r),"onMouseLeave",function(s){var d=r.props.context.onNodeMouseLeave;d(s,_a(r.props))}),te(St(r),"onContextMenu",function(s){var d=r.props.context.onNodeContextMenu;d(s,_a(r.props))}),te(St(r),"onDragStart",function(s){var d=r.props.context.onNodeDragStart;s.stopPropagation(),r.setState({dragNodeHighlight:!0}),d(s,St(r));try{s.dataTransfer.setData("text/plain","")}catch{}}),te(St(r),"onDragEnter",function(s){var d=r.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),d(s,St(r))}),te(St(r),"onDragOver",function(s){var d=r.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),d(s,St(r))}),te(St(r),"onDragLeave",function(s){var d=r.props.context.onNodeDragLeave;s.stopPropagation(),d(s,St(r))}),te(St(r),"onDragEnd",function(s){var d=r.props.context.onNodeDragEnd;s.stopPropagation(),r.setState({dragNodeHighlight:!1}),d(s,St(r))}),te(St(r),"onDrop",function(s){var d=r.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),r.setState({dragNodeHighlight:!1}),d(s,St(r))}),te(St(r),"onExpand",function(s){var d=r.props,f=d.loading,m=d.context.onNodeExpand;f||m(s,_a(r.props))}),te(St(r),"setSelectHandle",function(s){r.selectHandle=s}),te(St(r),"getNodeState",function(){var s=r.props.expanded;return r.isLeaf()?null:s?F6:H6}),te(St(r),"hasChildren",function(){var s=r.props.eventKey,d=r.props.context.keyEntities,f=di(d,s)||{},m=f.children;return!!(m||[]).length}),te(St(r),"isLeaf",function(){var s=r.props,d=s.isLeaf,f=s.loaded,m=r.props.context.loadData,h=r.hasChildren();return d===!1?!1:d||!m&&!h||m&&f&&!h}),te(St(r),"isDisabled",function(){var s=r.props.disabled,d=r.props.context.disabled;return!!(d||s)}),te(St(r),"isCheckable",function(){var s=r.props.checkable,d=r.props.context.checkable;return!d||s===!1?!1:d}),te(St(r),"syncLoadData",function(s){var d=s.expanded,f=s.loading,m=s.loaded,h=r.props.context,v=h.loadData,y=h.onNodeLoad;f||v&&d&&!r.isLeaf()&&!m&&y(_a(r.props))}),te(St(r),"isDraggable",function(){var s=r.props,d=s.data,f=s.context.draggable;return!!(f&&(!f.nodeDraggable||f.nodeDraggable(d)))}),te(St(r),"renderDragHandler",function(){var s=r.props.context,d=s.draggable,f=s.prefixCls;return d!=null&&d.icon?u.createElement("span",{className:"".concat(f,"-draggable-icon")},d.icon):null}),te(St(r),"renderSwitcherIconDom",function(s){var d=r.props.switcherIcon,f=r.props.context.switcherIcon,m=d||f;return typeof m=="function"?m(le(le({},r.props),{},{isLeaf:s})):m}),te(St(r),"renderSwitcher",function(){var s=r.props.expanded,d=r.props.context.prefixCls;if(r.isLeaf()){var f=r.renderSwitcherIconDom(!0);return f!==!1?u.createElement("span",{className:ue("".concat(d,"-switcher"),"".concat(d,"-switcher-noop"))},f):null}var m=ue("".concat(d,"-switcher"),"".concat(d,"-switcher_").concat(s?F6:H6)),h=r.renderSwitcherIconDom(!1);return h!==!1?u.createElement("span",{onClick:r.onExpand,className:m},h):null}),te(St(r),"renderCheckbox",function(){var s=r.props,d=s.checked,f=s.halfChecked,m=s.disableCheckbox,h=r.props.context.prefixCls,v=r.isDisabled(),y=r.isCheckable();if(!y)return null;var S=typeof y!="boolean"?y:null;return u.createElement("span",{className:ue("".concat(h,"-checkbox"),d&&"".concat(h,"-checkbox-checked"),!d&&f&&"".concat(h,"-checkbox-indeterminate"),(v||m)&&"".concat(h,"-checkbox-disabled")),onClick:r.onCheck},S)}),te(St(r),"renderIcon",function(){var s=r.props.loading,d=r.props.context.prefixCls;return u.createElement("span",{className:ue("".concat(d,"-iconEle"),"".concat(d,"-icon__").concat(r.getNodeState()||"docu"),s&&"".concat(d,"-icon_loading"))})}),te(St(r),"renderSelector",function(){var s=r.state.dragNodeHighlight,d=r.props,f=d.title,m=f===void 0?GQ:f,h=d.selected,v=d.icon,y=d.loading,S=d.data,C=r.props.context,w=C.prefixCls,E=C.showIcon,$=C.icon,O=C.loadData,N=C.titleRender,I=r.isDisabled(),R="".concat(w,"-node-content-wrapper"),_;if(E){var z=v||$;_=z?u.createElement("span",{className:ue("".concat(w,"-iconEle"),"".concat(w,"-icon__customize"))},typeof z=="function"?z(r.props):z):r.renderIcon()}else O&&y&&(_=r.renderIcon());var D;typeof m=="function"?D=m(S):N?D=N(S):D=m;var L=u.createElement("span",{className:"".concat(w,"-title")},D);return u.createElement("span",{ref:r.setSelectHandle,title:typeof m=="string"?m:"",className:ue("".concat(R),"".concat(R,"-").concat(r.getNodeState()||"normal"),!I&&(h||s)&&"".concat(w,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},_,L,r.renderDropIndicator())}),te(St(r),"renderDropIndicator",function(){var s=r.props,d=s.disabled,f=s.eventKey,m=r.props.context,h=m.draggable,v=m.dropLevelOffset,y=m.dropPosition,S=m.prefixCls,C=m.indent,w=m.dropIndicatorRender,E=m.dragOverNodeKey,$=m.direction,O=!!h,N=!d&&O&&E===f,I=C??r.cacheIndent;return r.cacheIndent=C,N?w({dropPosition:y,dropLevelOffset:v,indent:I,prefixCls:S,direction:$}):null}),r}return da(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var a=this.props.selectable,o=this.props.context.selectable;return typeof a=="boolean"?a:o}},{key:"render",value:function(){var a,o=this.props,l=o.eventKey,s=o.className,d=o.style,f=o.dragOver,m=o.dragOverGapTop,h=o.dragOverGapBottom,v=o.isLeaf,y=o.isStart,S=o.isEnd,C=o.expanded,w=o.selected,E=o.checked,$=o.halfChecked,O=o.loading,N=o.domRef,I=o.active;o.data;var R=o.onMouseMove,_=o.selectable,z=ln(o,qQ),D=this.props.context,L=D.prefixCls,B=D.filterTreeNode,F=D.keyEntities,H=D.dropContainerKey,k=D.dropTargetKey,q=D.draggingNodeKey,V=this.isDisabled(),W=Pa(z,{aria:!0,data:!0}),G=di(F,l)||{},X=G.level,P=S[S.length-1],K=this.isDraggable(),J=!V&&K,j=q===l,Y=_!==void 0?{"aria-selected":!!_}:void 0;return u.createElement("div",Je({ref:N,className:ue(s,"".concat(L,"-treenode"),(a={},te(te(te(te(te(te(te(te(te(te(a,"".concat(L,"-treenode-disabled"),V),"".concat(L,"-treenode-switcher-").concat(C?"open":"close"),!v),"".concat(L,"-treenode-checkbox-checked"),E),"".concat(L,"-treenode-checkbox-indeterminate"),$),"".concat(L,"-treenode-selected"),w),"".concat(L,"-treenode-loading"),O),"".concat(L,"-treenode-active"),I),"".concat(L,"-treenode-leaf-last"),P),"".concat(L,"-treenode-draggable"),K),"dragging",j),te(te(te(te(te(te(a,"drop-target",k===l),"drop-container",H===l),"drag-over",!V&&f),"drag-over-gap-top",!V&&m),"drag-over-gap-bottom",!V&&h),"filter-node",B&&B(_a(this.props))))),style:d,draggable:J,"aria-grabbed":j,onDragStart:J?this.onDragStart:void 0,onDragEnter:K?this.onDragEnter:void 0,onDragOver:K?this.onDragOver:void 0,onDragLeave:K?this.onDragLeave:void 0,onDrop:K?this.onDrop:void 0,onDragEnd:K?this.onDragEnd:void 0,onMouseMove:R},Y,W),u.createElement(UQ,{prefixCls:L,level:X,isStart:y,isEnd:S}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n})(u.Component),np=function(t){return u.createElement(UE.Consumer,null,function(n){return u.createElement(XQ,Je({},t,{context:n}))})};np.displayName="TreeNode";np.isTreeNode=1;function cs(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Qs(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function qE(e){return e.split("-")}function YQ(e,t){var n=[],r=di(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(l){var s=l.key,d=l.children;n.push(s),a(d)})}return a(r.children),n}function QQ(e){if(e.parent){var t=qE(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function ZQ(e){var t=qE(e.pos);return Number(t[t.length-1])===0}function V6(e,t,n,r,a,o,l,s,d,f){var m,h=e.clientX,v=e.clientY,y=e.target.getBoundingClientRect(),S=y.top,C=y.height,w=(f==="rtl"?-1:1)*((a?.x||0)-h),E=(w-12)/r,$=d.filter(function(V){var W;return(W=s[V])===null||W===void 0||(W=W.children)===null||W===void 0?void 0:W.length}),O=di(s,n.props.eventKey);if(v<S+C/2){var N=l.findIndex(function(V){return V.key===O.key}),I=N<=0?0:N-1,R=l[I].key;O=di(s,R)}var _=O.key,z=O,D=O.key,L=0,B=0;if(!$.includes(_))for(var F=0;F<E&&QQ(O);F+=1)O=O.parent,B+=1;var H=t.props.data,k=O.node,q=!0;return ZQ(O)&&O.level===0&&v<S+C/2&&o({dragNode:H,dropNode:k,dropPosition:-1})&&O.key===n.props.eventKey?L=-1:(z.children||[]).length&&$.includes(D)?o({dragNode:H,dropNode:k,dropPosition:0})?L=0:q=!1:B===0?E>-1.5?o({dragNode:H,dropNode:k,dropPosition:1})?L=1:q=!1:o({dragNode:H,dropNode:k,dropPosition:0})?L=0:o({dragNode:H,dropNode:k,dropPosition:1})?L=1:q=!1:o({dragNode:H,dropNode:k,dropPosition:1})?L=1:q=!1,{dropPosition:L,dropLevelOffset:B,dropTargetKey:O.key,dropTargetPos:O.pos,dragOverNodeKey:D,dropContainerKey:L===0?null:((m=O.parent)===null||m===void 0?void 0:m.key)||null,dropAllowed:q}}function K6(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Z2(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Vt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function UC(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=di(t,a);if(o){n.add(a);var l=o.parent,s=o.node;s.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(a){r(a)}),st(n)}function JQ(e){const[t,n]=u.useState(null);return[u.useCallback((o,l,s)=>{const d=t??o,f=Math.min(d||0,o),m=Math.max(d||0,o),h=l.slice(f,m+1).map(S=>e(S)),v=h.some(S=>!s.has(S)),y=[];return h.forEach(S=>{v?(s.has(S)||y.push(S),s.add(S)):(s.delete(S),y.push(S))}),n(v?m:null),y},[t]),o=>{n(o)}]}const tu={},qC="SELECT_ALL",GC="SELECT_INVERT",XC="SELECT_NONE",W6=[],I9=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(st(n),st(I9(e,r[e]))))}),n},eZ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:l,onSelect:s,onSelectAll:d,onSelectInvert:f,onSelectNone:m,onSelectMultiple:h,columnWidth:v,type:y,selections:S,fixed:C,renderCell:w,hideSelectAll:E,checkStrictly:$=!0}=t||{},{prefixCls:O,data:N,pageData:I,getRecordByKey:R,getRowKey:_,expandType:z,childrenColumnName:D,locale:L,getPopupContainer:B}=e,F=gu(),[H,k]=JQ(me=>me),[q,V]=kr(r||a||W6,{value:r}),W=u.useRef(new Map),G=u.useCallback(me=>{if(n){const be=new Map;me.forEach(fe=>{let ge=R(fe);!ge&&W.current.has(fe)&&(ge=W.current.get(fe)),be.set(fe,ge)}),W.current=be}},[R,n]);u.useEffect(()=>{G(q)},[q]);const X=u.useMemo(()=>I9(D,I),[D,I]),{keyEntities:P}=u.useMemo(()=>{if($)return{keyEntities:null};let me=N;if(n){const be=new Set(X.map((ge,Oe)=>_(ge,Oe))),fe=Array.from(W.current).reduce((ge,Oe)=>{let[Ne,je]=Oe;return be.has(Ne)?ge:ge.concat(je)},[]);me=[].concat(st(me),st(fe))}return DE(me,{externalGetKey:_,childrenPropName:D})},[N,_,$,D,n,X]),K=u.useMemo(()=>{const me=new Map;return X.forEach((be,fe)=>{const ge=_(be,fe),Oe=(o?o(be):null)||{};me.set(ge,Oe)}),me},[X,_,o]),J=u.useCallback(me=>{var be;return!!(!((be=K.get(_(me)))===null||be===void 0)&&be.disabled)},[K,_]),[j,Y]=u.useMemo(()=>{if($)return[q||[],[]];const{checkedKeys:me,halfCheckedKeys:be}=Hm(q,!0,P,J);return[me||[],be]},[q,$,P,J]),ne=u.useMemo(()=>{const me=y==="radio"?j.slice(0,1):j;return new Set(me)},[j,y]),se=u.useMemo(()=>y==="radio"?new Set:new Set(Y),[Y,y]);u.useEffect(()=>{t||V(W6)},[!!t]);const de=u.useCallback((me,be)=>{let fe,ge;G(me),n?(fe=me,ge=me.map(Oe=>W.current.get(Oe))):(fe=[],ge=[],me.forEach(Oe=>{const Ne=R(Oe);Ne!==void 0&&(fe.push(Oe),ge.push(Ne))})),V(fe),l?.(fe,ge,{type:be})},[V,R,l,n]),pe=u.useCallback((me,be,fe,ge)=>{if(s){const Oe=fe.map(Ne=>R(Ne));s(R(me),be,Oe,ge)}de(fe,"single")},[s,R,de]),Ce=u.useMemo(()=>!S||E?null:(S===!0?[qC,GC,XC]:S).map(be=>be===qC?{key:"all",text:L.selectionAll,onSelect(){de(N.map((fe,ge)=>_(fe,ge)).filter(fe=>{const ge=K.get(fe);return!ge?.disabled||ne.has(fe)}),"all")}}:be===GC?{key:"invert",text:L.selectInvert,onSelect(){const fe=new Set(ne);I.forEach((Oe,Ne)=>{const je=_(Oe,Ne),Te=K.get(je);Te?.disabled||(fe.has(je)?fe.delete(je):fe.add(je))});const ge=Array.from(fe);f&&(F.deprecated(!1,"onSelectInvert","onChange"),f(ge)),de(ge,"invert")}}:be===XC?{key:"none",text:L.selectNone,onSelect(){m?.(),de(Array.from(ne).filter(fe=>{const ge=K.get(fe);return ge?.disabled}),"none")}}:be).map(be=>Object.assign(Object.assign({},be),{onSelect:function(){for(var fe,ge,Oe=arguments.length,Ne=new Array(Oe),je=0;je<Oe;je++)Ne[je]=arguments[je];(ge=be.onSelect)===null||ge===void 0||(fe=ge).call.apply(fe,[be].concat(Ne)),k(null)}})),[S,ne,I,_,f,de]);return[u.useCallback(me=>{var be;if(!t)return me.filter(_e=>_e!==tu);let fe=st(me);const ge=new Set(ne),Oe=X.map(_).filter(_e=>!K.get(_e).disabled),Ne=Oe.every(_e=>ge.has(_e)),je=Oe.some(_e=>ge.has(_e)),Te=()=>{const _e=[];Ne?Oe.forEach(lt=>{ge.delete(lt),_e.push(lt)}):Oe.forEach(lt=>{ge.has(lt)||(ge.add(lt),_e.push(lt))});const rt=Array.from(ge);d?.(!Ne,rt.map(lt=>R(lt)),_e.map(lt=>R(lt))),de(rt,"all"),k(null)};let Ue,qe;if(y!=="radio"){let _e;if(Ce){const mt={getPopupContainer:B,items:Ce.map((at,gt)=>{const{key:Nt,text:tn,onSelect:Wt}=at;return{key:Nt??gt,onClick:()=>{Wt?.(Oe)},label:tn}})};_e=u.createElement("div",{className:`${O}-selection-extra`},u.createElement(Db,{menu:mt,getPopupContainer:B},u.createElement("span",null,u.createElement(TM,null))))}const rt=X.map((mt,at)=>{const gt=_(mt,at),Nt=K.get(gt)||{};return Object.assign({checked:ge.has(gt)},Nt)}).filter(mt=>{let{disabled:at}=mt;return at}),lt=!!rt.length&&rt.length===X.length,ut=lt&&rt.every(mt=>{let{checked:at}=mt;return at}),tt=lt&&rt.some(mt=>{let{checked:at}=mt;return at});qe=u.createElement(mu,{checked:lt?ut:!!X.length&&Ne,indeterminate:lt?!ut&&tt:!Ne&&je,onChange:Te,disabled:X.length===0||lt,"aria-label":_e?"Custom selection":"Select all",skipGroup:!0}),Ue=!E&&u.createElement("div",{className:`${O}-selection`},qe,_e)}let ze;y==="radio"?ze=(_e,rt,lt)=>{const ut=_(rt,lt),tt=ge.has(ut);return{node:u.createElement(Js,Object.assign({},K.get(ut),{checked:tt,onClick:mt=>mt.stopPropagation(),onChange:mt=>{ge.has(ut)||pe(ut,!0,[ut],mt.nativeEvent)}})),checked:tt}}:ze=(_e,rt,lt)=>{var ut;const tt=_(rt,lt),mt=ge.has(tt),at=se.has(tt),gt=K.get(tt);let Nt;return z==="nest"?Nt=at:Nt=(ut=gt?.indeterminate)!==null&&ut!==void 0?ut:at,{node:u.createElement(mu,Object.assign({},gt,{indeterminate:Nt,checked:mt,skipGroup:!0,onClick:tn=>tn.stopPropagation(),onChange:tn=>{let{nativeEvent:Wt}=tn;const{shiftKey:dn}=Wt,Qt=Oe.findIndex(Zt=>Zt===tt),nn=j.some(Zt=>Oe.includes(Zt));if(dn&&$&&nn){const Zt=H(Qt,Oe,ge),Lt=Array.from(ge);h?.(!mt,Lt.map(_t=>R(_t)),Zt.map(_t=>R(_t))),de(Lt,"multiple")}else{const Zt=j;if($){const Lt=mt?cs(Zt,tt):Qs(Zt,tt);pe(tt,!mt,Lt,Wt)}else{const Lt=Hm([].concat(st(Zt),[tt]),!0,P,J),{checkedKeys:_t,halfCheckedKeys:It}=Lt;let ve=_t;if(mt){const Me=new Set(_t);Me.delete(tt),ve=Hm(Array.from(Me),{halfCheckedKeys:It},P,J).checkedKeys}pe(tt,!mt,ve,Wt)}}k(mt?null:Qt)}})),checked:mt}};const Ve=(_e,rt,lt)=>{const{node:ut,checked:tt}=ze(_e,rt,lt);return w?w(tt,rt,lt,ut):ut};if(!fe.includes(tu))if(fe.findIndex(_e=>{var rt;return((rt=_e[Eh])===null||rt===void 0?void 0:rt.columnType)==="EXPAND_COLUMN"})===0){const[_e,...rt]=fe;fe=[_e,tu].concat(st(rt))}else fe=[tu].concat(st(fe));const Be=fe.indexOf(tu);fe=fe.filter((_e,rt)=>_e!==tu||rt===Be);const De=fe[Be-1],ye=fe[Be+1];let oe=C;oe===void 0&&(ye?.fixed!==void 0?oe=ye.fixed:De?.fixed!==void 0&&(oe=De.fixed)),oe&&De&&((be=De[Eh])===null||be===void 0?void 0:be.columnType)==="EXPAND_COLUMN"&&De.fixed===void 0&&(De.fixed=oe);const we=ue(`${O}-selection-col`,{[`${O}-selection-col-with-dropdown`]:S&&y==="checkbox"}),Fe=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(qe):t.columnTitle:Ue,xe={fixed:oe,width:v,className:`${O}-selection-column`,title:Fe(),render:Ve,onCell:t.onCell,[Eh]:{className:we}};return fe.map(_e=>_e===tu?xe:_e)},[_,X,t,j,ne,se,v,Ce,z,K,h,pe,J]),ne]};function tZ(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function nZ(e,t){return u.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):tZ(r,n)})}function rZ(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:l}=t,s=`${n}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:ue(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&o,[`${s}-collapsed`]:l&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function aZ(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const l=getComputedStyle(a),s=parseInt(l.borderLeftWidth,10),d=parseInt(l.borderRightWidth,10);o=r-s-d}return o}}const pu=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function hp(e,t){return t?`${t}-${e}`:`${e}`}const Hb=(e,t)=>typeof e=="function"?e(t):e,oZ=(e,t)=>{const n=Hb(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function iZ(e){const t=u.useRef(e),n=AM();return[()=>t.current,r=>{t.current=r,n()}]}function lZ(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return u.createElement("div",{style:a})}function _9(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function sZ(e,t){var n=u.useState(!1),r=Re(n,2),a=r[0],o=r[1];Ln(function(){if(a)return e(),function(){t()}},[a]),Ln(function(){return o(!0),function(){o(!1)}},[])}var cZ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],A9=function(t,n){var r=t.className,a=t.style,o=t.motion,l=t.motionNodes,s=t.motionType,d=t.onMotionStart,f=t.onMotionEnd,m=t.active,h=t.treeNodeRequiredProps,v=ln(t,cZ),y=u.useState(!0),S=Re(y,2),C=S[0],w=S[1],E=u.useContext(UE),$=E.prefixCls,O=l&&s!=="hide";Ln(function(){l&&O!==C&&w(O)},[l]);var N=function(){l&&d()},I=u.useRef(!1),R=function(){l&&!I.current&&(I.current=!0,f())};sZ(N,R);var _=function(D){O===D&&R()};return l?u.createElement(Mo,Je({ref:n,visible:C},o,{motionAppear:s==="show",onVisibleChanged:_}),function(z,D){var L=z.className,B=z.style;return u.createElement("div",{ref:D,className:ue("".concat($,"-treenode-motion"),L),style:B},l.map(function(F){var H=Object.assign({},(_9(F.data),F.data)),k=F.title,q=F.key,V=F.isStart,W=F.isEnd;delete H.children;var G=Ch(q,h);return u.createElement(np,Je({},H,G,{title:k,active:m,data:F.data,key:q,isStart:V,isEnd:W}))}))}):u.createElement(np,Je({domRef:n,className:r,style:a},v,{active:m}))};A9.displayName="MotionTreeNode";var uZ=u.forwardRef(A9);function dZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,l){var s=new Map;o.forEach(function(f){s.set(f,!0)});var d=l.filter(function(f){return!s.has(f)});return d.length===1?d[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function U6(e,t,n){var r=e.findIndex(function(s){return s.key===n}),a=e[r+1],o=t.findIndex(function(s){return s.key===n});if(a){var l=t.findIndex(function(s){return s.key===a.key});return t.slice(o+1,l)}return t.slice(o+1)}var fZ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],q6={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mZ=function(){},Fd="RC_TREE_MOTION_".concat(Math.random()),YC={key:Fd},P9={key:Fd,level:0,index:0,pos:"0",node:YC,nodes:[YC]},G6={parent:null,children:[],pos:P9.pos,data:YC,title:null,key:Fd,isStart:[],isEnd:[]};function X6(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Y6(e){var t=e.key,n=e.pos;return cv(t,n)}function pZ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var z9=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,m=e.keyEntities,h=e.disabled,v=e.dragging,y=e.dragOverNodeKey,S=e.dropPosition,C=e.motion,w=e.height,E=e.itemHeight,$=e.virtual,O=e.focusable,N=e.activeItem,I=e.focused,R=e.tabIndex,_=e.onKeyDown,z=e.onFocus,D=e.onBlur,L=e.onActiveChange,B=e.onListChangeStart,F=e.onListChangeEnd,H=ln(e,fZ),k=u.useRef(null),q=u.useRef(null);u.useImperativeHandle(t,function(){return{scrollTo:function(ze){k.current.scrollTo(ze)},getIndentWidth:function(){return q.current.offsetWidth}}});var V=u.useState(a),W=Re(V,2),G=W[0],X=W[1],P=u.useState(r),K=Re(P,2),J=K[0],j=K[1],Y=u.useState(r),ne=Re(Y,2),se=ne[0],de=ne[1],pe=u.useState([]),Ce=Re(pe,2),he=Ce[0],me=Ce[1],be=u.useState(null),fe=Re(be,2),ge=fe[0],Oe=fe[1],Ne=u.useRef(r);Ne.current=r;function je(){var qe=Ne.current;j(qe),de(qe),me([]),Oe(null),F()}Ln(function(){X(a);var qe=dZ(G,a);if(qe.key!==null)if(qe.add){var ze=J.findIndex(function(we){var Fe=we.key;return Fe===qe.key}),Ve=X6(U6(J,r,qe.key),$,w,E),Be=J.slice();Be.splice(ze+1,0,G6),de(Be),me(Ve),Oe("show")}else{var De=r.findIndex(function(we){var Fe=we.key;return Fe===qe.key}),ye=X6(U6(r,J,qe.key),$,w,E),oe=r.slice();oe.splice(De+1,0,G6),de(oe),me(ye),Oe("hide")}else J!==r&&(j(r),de(r))},[a,r]),u.useEffect(function(){v||je()},[v]);var Te=C?se:r,Ue={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:d,checkedKeys:l,halfCheckedKeys:f,dragOverNodeKey:y,dropPosition:S,keyEntities:m};return u.createElement(u.Fragment,null,I&&N&&u.createElement("span",{style:q6,"aria-live":"assertive"},pZ(N)),u.createElement("div",null,u.createElement("input",{style:q6,disabled:O===!1||h,tabIndex:O!==!1?R:null,onKeyDown:_,onFocus:z,onBlur:D,value:"",onChange:mZ,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},u.createElement("div",{className:"".concat(n,"-indent")},u.createElement("div",{ref:q,className:"".concat(n,"-indent-unit")}))),u.createElement(Eb,Je({},H,{data:Te,itemKey:Y6,height:w,fullHeight:!1,virtual:$,itemHeight:E,prefixCls:"".concat(n,"-list"),ref:k,onVisibleChange:function(ze){ze.every(function(Ve){return Y6(Ve)!==Fd})&&je()}}),function(qe){var ze=qe.pos,Ve=Object.assign({},(_9(qe.data),qe.data)),Be=qe.title,De=qe.key,ye=qe.isStart,oe=qe.isEnd,we=cv(De,ze);delete Ve.key,delete Ve.children;var Fe=Ch(we,Ue);return u.createElement(uZ,Je({},Ve,Fe,{title:Be,active:!!N&&De===N.key,pos:ze,data:qe.data,isStart:ye,isEnd:oe,motion:C,motionNodes:De===Fd?he:null,motionType:ge,onMotionStart:B,onMotionEnd:je,treeNodeRequiredProps:Ue,onMouseMove:function(){L(null)}}))}))});z9.displayName="NodeList";var gZ=10,GE=(function(e){nl(n,e);var t=Al(n);function n(){var r;ua(this,n);for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o)),te(St(r),"destroyed",!1),te(St(r),"delayedDragEnterLogic",void 0),te(St(r),"loadingRetryTimes",{}),te(St(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:tp()}),te(St(r),"dragStartMousePosition",null),te(St(r),"dragNode",void 0),te(St(r),"currentMouseOverDroppableNodeKey",null),te(St(r),"listRef",u.createRef()),te(St(r),"onNodeDragStart",function(s,d){var f=r.state,m=f.expandedKeys,h=f.keyEntities,v=r.props.onDragStart,y=d.props.eventKey;r.dragNode=d,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var S=cs(m,y);r.setState({draggingNodeKey:y,dragChildrenKeys:YQ(y,h),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(S),window.addEventListener("dragend",r.onWindowDragEnd),v?.({event:s,node:_a(d.props)})}),te(St(r),"onNodeDragEnter",function(s,d){var f=r.state,m=f.expandedKeys,h=f.keyEntities,v=f.dragChildrenKeys,y=f.flattenNodes,S=f.indent,C=r.props,w=C.onDragEnter,E=C.onExpand,$=C.allowDrop,O=C.direction,N=d.props,I=N.pos,R=N.eventKey,_=St(r),z=_.dragNode;if(r.currentMouseOverDroppableNodeKey!==R&&(r.currentMouseOverDroppableNodeKey=R),!z){r.resetDragState();return}var D=V6(s,z,d,S,r.dragStartMousePosition,$,y,h,m,O),L=D.dropPosition,B=D.dropLevelOffset,F=D.dropTargetKey,H=D.dropContainerKey,k=D.dropTargetPos,q=D.dropAllowed,V=D.dragOverNodeKey;if(v.indexOf(F)!==-1||!q){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(W){clearTimeout(r.delayedDragEnterLogic[W])}),z.props.eventKey!==d.props.eventKey&&(s.persist(),r.delayedDragEnterLogic[I]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var W=st(m),G=di(h,d.props.eventKey);G&&(G.children||[]).length&&(W=Qs(m,d.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(W),E?.(W,{node:_a(d.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),z.props.eventKey===F&&B===0){r.resetDragState();return}r.setState({dragOverNodeKey:V,dropPosition:L,dropLevelOffset:B,dropTargetKey:F,dropContainerKey:H,dropTargetPos:k,dropAllowed:q}),w?.({event:s,node:_a(d.props),expandedKeys:m})}),te(St(r),"onNodeDragOver",function(s,d){var f=r.state,m=f.dragChildrenKeys,h=f.flattenNodes,v=f.keyEntities,y=f.expandedKeys,S=f.indent,C=r.props,w=C.onDragOver,E=C.allowDrop,$=C.direction,O=St(r),N=O.dragNode;if(N){var I=V6(s,N,d,S,r.dragStartMousePosition,E,h,v,y,$),R=I.dropPosition,_=I.dropLevelOffset,z=I.dropTargetKey,D=I.dropContainerKey,L=I.dropAllowed,B=I.dropTargetPos,F=I.dragOverNodeKey;m.indexOf(z)!==-1||!L||(N.props.eventKey===z&&_===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():R===r.state.dropPosition&&_===r.state.dropLevelOffset&&z===r.state.dropTargetKey&&D===r.state.dropContainerKey&&B===r.state.dropTargetPos&&L===r.state.dropAllowed&&F===r.state.dragOverNodeKey||r.setState({dropPosition:R,dropLevelOffset:_,dropTargetKey:z,dropContainerKey:D,dropTargetPos:B,dropAllowed:L,dragOverNodeKey:F}),w?.({event:s,node:_a(d.props)}))}}),te(St(r),"onNodeDragLeave",function(s,d){r.currentMouseOverDroppableNodeKey===d.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var f=r.props.onDragLeave;f?.({event:s,node:_a(d.props)})}),te(St(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),te(St(r),"onNodeDragEnd",function(s,d){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f?.({event:s,node:_a(d.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),te(St(r),"onNodeDrop",function(s,d){var f,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=r.state,v=h.dragChildrenKeys,y=h.dropPosition,S=h.dropTargetKey,C=h.dropTargetPos,w=h.dropAllowed;if(w){var E=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),S!==null){var $=le(le({},Ch(S,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===S,data:di(r.state.keyEntities,S).node}),O=v.indexOf(S)!==-1;Yr(!O,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var N=qE(C),I={event:s,node:_a($),dragNode:r.dragNode?_a(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(v),dropToGap:y!==0,dropPosition:y+Number(N[N.length-1])};m||E?.(I),r.dragNode=null}}}),te(St(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),te(St(r),"triggerExpandActionExpand",function(s,d){var f=r.state,m=f.expandedKeys,h=f.flattenNodes,v=d.expanded,y=d.key,S=d.isLeaf;if(!(S||s.shiftKey||s.metaKey||s.ctrlKey)){var C=h.filter(function(E){return E.key===y})[0],w=_a(le(le({},Ch(y,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(v?cs(m,y):Qs(m,y)),r.onNodeExpand(s,w)}}),te(St(r),"onNodeClick",function(s,d){var f=r.props,m=f.onClick,h=f.expandAction;h==="click"&&r.triggerExpandActionExpand(s,d),m?.(s,d)}),te(St(r),"onNodeDoubleClick",function(s,d){var f=r.props,m=f.onDoubleClick,h=f.expandAction;h==="doubleClick"&&r.triggerExpandActionExpand(s,d),m?.(s,d)}),te(St(r),"onNodeSelect",function(s,d){var f=r.state.selectedKeys,m=r.state,h=m.keyEntities,v=m.fieldNames,y=r.props,S=y.onSelect,C=y.multiple,w=d.selected,E=d[v.key],$=!w;$?C?f=Qs(f,E):f=[E]:f=cs(f,E);var O=f.map(function(N){var I=di(h,N);return I?I.node:null}).filter(function(N){return N});r.setUncontrolledState({selectedKeys:f}),S?.(f,{event:"select",selected:$,node:d,selectedNodes:O,nativeEvent:s.nativeEvent})}),te(St(r),"onNodeCheck",function(s,d,f){var m=r.state,h=m.keyEntities,v=m.checkedKeys,y=m.halfCheckedKeys,S=r.props,C=S.checkStrictly,w=S.onCheck,E=d.key,$,O={event:"check",node:d,checked:f,nativeEvent:s.nativeEvent};if(C){var N=f?Qs(v,E):cs(v,E),I=cs(y,E);$={checked:N,halfChecked:I},O.checkedNodes=N.map(function(B){return di(h,B)}).filter(function(B){return B}).map(function(B){return B.node}),r.setUncontrolledState({checkedKeys:N})}else{var R=Hm([].concat(st(v),[E]),!0,h),_=R.checkedKeys,z=R.halfCheckedKeys;if(!f){var D=new Set(_);D.delete(E);var L=Hm(Array.from(D),{halfCheckedKeys:z},h);_=L.checkedKeys,z=L.halfCheckedKeys}$=_,O.checkedNodes=[],O.checkedNodesPositions=[],O.halfCheckedKeys=z,_.forEach(function(B){var F=di(h,B);if(F){var H=F.node,k=F.pos;O.checkedNodes.push(H),O.checkedNodesPositions.push({node:H,pos:k})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:z})}w?.($,O)}),te(St(r),"onNodeLoad",function(s){var d,f=s.key,m=r.state.keyEntities,h=di(m,f);if(!(h!=null&&(d=h.children)!==null&&d!==void 0&&d.length)){var v=new Promise(function(y,S){r.setState(function(C){var w=C.loadedKeys,E=w===void 0?[]:w,$=C.loadingKeys,O=$===void 0?[]:$,N=r.props,I=N.loadData,R=N.onLoad;if(!I||E.indexOf(f)!==-1||O.indexOf(f)!==-1)return null;var _=I(s);return _.then(function(){var z=r.state.loadedKeys,D=Qs(z,f);R?.(D,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:D}),r.setState(function(L){return{loadingKeys:cs(L.loadingKeys,f)}}),y()}).catch(function(z){if(r.setState(function(L){return{loadingKeys:cs(L.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=gZ){var D=r.state.loadedKeys;Yr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Qs(D,f)}),y()}S(z)}),{loadingKeys:Qs(O,f)}})});return v.catch(function(){}),v}}),te(St(r),"onNodeMouseEnter",function(s,d){var f=r.props.onMouseEnter;f?.({event:s,node:d})}),te(St(r),"onNodeMouseLeave",function(s,d){var f=r.props.onMouseLeave;f?.({event:s,node:d})}),te(St(r),"onNodeContextMenu",function(s,d){var f=r.props.onRightClick;f&&(s.preventDefault(),f({event:s,node:d}))}),te(St(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];s?.apply(void 0,f)}),te(St(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];s?.apply(void 0,f)}),te(St(r),"getTreeNodeRequiredProps",function(){var s=r.state,d=s.expandedKeys,f=s.selectedKeys,m=s.loadedKeys,h=s.loadingKeys,v=s.checkedKeys,y=s.halfCheckedKeys,S=s.dragOverNodeKey,C=s.dropPosition,w=s.keyEntities;return{expandedKeys:d||[],selectedKeys:f||[],loadedKeys:m||[],loadingKeys:h||[],checkedKeys:v||[],halfCheckedKeys:y||[],dragOverNodeKey:S,dropPosition:C,keyEntities:w}}),te(St(r),"setExpandedKeys",function(s){var d=r.state,f=d.treeData,m=d.fieldNames,h=W2(f,s,m);r.setUncontrolledState({expandedKeys:s,flattenNodes:h},!0)}),te(St(r),"onNodeExpand",function(s,d){var f=r.state.expandedKeys,m=r.state,h=m.listChanging,v=m.fieldNames,y=r.props,S=y.onExpand,C=y.loadData,w=d.expanded,E=d[v.key];if(!h){var $=f.indexOf(E),O=!w;if(Yr(w&&$!==-1||!w&&$===-1,"Expand state not sync with index check"),O?f=Qs(f,E):f=cs(f,E),r.setExpandedKeys(f),S?.(f,{node:d,expanded:O,nativeEvent:s.nativeEvent}),O&&C){var N=r.onNodeLoad(d);N&&N.then(function(){var I=W2(r.state.treeData,f,v);r.setUncontrolledState({flattenNodes:I})}).catch(function(){var I=r.state.expandedKeys,R=cs(I,E);r.setExpandedKeys(R)})}}}),te(St(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),te(St(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),te(St(r),"onActiveChange",function(s){var d=r.state.activeKey,f=r.props,m=f.onActiveChange,h=f.itemScrollOffset,v=h===void 0?0:h;d!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:v}),m?.(s))}),te(St(r),"getActiveItem",function(){var s=r.state,d=s.activeKey,f=s.flattenNodes;return d===null?null:f.find(function(m){var h=m.key;return h===d})||null}),te(St(r),"offsetActiveKey",function(s){var d=r.state,f=d.flattenNodes,m=d.activeKey,h=f.findIndex(function(S){var C=S.key;return C===m});h===-1&&s<0&&(h=f.length),h=(h+s+f.length)%f.length;var v=f[h];if(v){var y=v.key;r.onActiveChange(y)}else r.onActiveChange(null)}),te(St(r),"onKeyDown",function(s){var d=r.state,f=d.activeKey,m=d.expandedKeys,h=d.checkedKeys,v=d.fieldNames,y=r.props,S=y.onKeyDown,C=y.checkable,w=y.selectable;switch(s.which){case Pt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Pt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var E=r.getActiveItem();if(E&&E.data){var $=r.getTreeNodeRequiredProps(),O=E.data.isLeaf===!1||!!(E.data[v.children]||[]).length,N=_a(le(le({},Ch(f,$)),{},{data:E.data,active:!0}));switch(s.which){case Pt.LEFT:{O&&m.includes(f)?r.onNodeExpand({},N):E.parent&&r.onActiveChange(E.parent.key),s.preventDefault();break}case Pt.RIGHT:{O&&!m.includes(f)?r.onNodeExpand({},N):E.children&&E.children.length&&r.onActiveChange(E.children[0].key),s.preventDefault();break}case Pt.ENTER:case Pt.SPACE:{C&&!N.disabled&&N.checkable!==!1&&!N.disableCheckbox?r.onNodeCheck({},N,!h.includes(f)):!C&&w&&!N.disabled&&N.selectable!==!1&&r.onNodeSelect({},N);break}}}S?.(s)}),te(St(r),"setUncontrolledState",function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var m=!1,h=!0,v={};Object.keys(s).forEach(function(y){if(y in r.props){h=!1;return}m=!0,v[y]=s[y]}),m&&(!d||h)&&r.setState(le(le({},v),f))}}),te(St(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return da(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,l=a.itemScrollOffset,s=l===void 0?0:l;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,l=a.flattenNodes,s=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,m=a.dropLevelOffset,h=a.dropContainerKey,v=a.dropTargetKey,y=a.dropPosition,S=a.dragOverNodeKey,C=a.indent,w=this.props,E=w.prefixCls,$=w.className,O=w.style,N=w.showLine,I=w.focusable,R=w.tabIndex,_=R===void 0?0:R,z=w.selectable,D=w.showIcon,L=w.icon,B=w.switcherIcon,F=w.draggable,H=w.checkable,k=w.checkStrictly,q=w.disabled,V=w.motion,W=w.loadData,G=w.filterTreeNode,X=w.height,P=w.itemHeight,K=w.virtual,J=w.titleRender,j=w.dropIndicatorRender,Y=w.onContextMenu,ne=w.onScroll,se=w.direction,de=w.rootClassName,pe=w.rootStyle,Ce=Pa(this.props,{aria:!0,data:!0}),he;return F&&(Vt(F)==="object"?he=F:typeof F=="function"?he={nodeDraggable:F}:he={}),u.createElement(UE.Provider,{value:{prefixCls:E,selectable:z,showIcon:D,icon:L,switcherIcon:B,draggable:he,draggingNodeKey:d,checkable:H,checkStrictly:k,disabled:q,keyEntities:s,dropLevelOffset:m,dropContainerKey:h,dropTargetKey:v,dropPosition:y,dragOverNodeKey:S,indent:C,direction:se,dropIndicatorRender:j,loadData:W,filterTreeNode:G,titleRender:J,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},u.createElement("div",{role:"tree",className:ue(E,$,de,te(te(te({},"".concat(E,"-show-line"),N),"".concat(E,"-focused"),o),"".concat(E,"-active-focused"),f!==null)),style:pe},u.createElement(z9,Je({ref:this.listRef,prefixCls:E,style:O,data:l,disabled:q,selectable:z,checkable:!!H,motion:V,dragging:d!==null,height:X,itemHeight:P,virtual:K,focusable:I,focused:o,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:ne},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var l=o.prevProps,s={prevProps:a};function d(_){return!l&&_ in a||l&&l[_]!==a[_]}var f,m=o.fieldNames;if(d("fieldNames")&&(m=tp(a.fieldNames),s.fieldNames=m),d("treeData")?f=a.treeData:d("children")&&(Yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=bR(a.children)),f){s.treeData=f;var h=DE(f,{fieldNames:m});s.keyEntities=le(te({},Fd,P9),h.keyEntities)}var v=s.keyEntities||o.keyEntities;if(d("expandedKeys")||l&&d("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!l&&a.defaultExpandParent?UC(a.expandedKeys,v):a.expandedKeys;else if(!l&&a.defaultExpandAll){var y=le({},v);delete y[Fd];var S=[];Object.keys(y).forEach(function(_){var z=y[_];z.children&&z.children.length&&S.push(z.key)}),s.expandedKeys=S}else!l&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?UC(a.defaultExpandedKeys,v):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,f||s.expandedKeys){var C=W2(f||o.treeData,s.expandedKeys||o.expandedKeys,m);s.flattenNodes=C}if(a.selectable&&(d("selectedKeys")?s.selectedKeys=K6(a.selectedKeys,a):!l&&a.defaultSelectedKeys&&(s.selectedKeys=K6(a.defaultSelectedKeys,a))),a.checkable){var w;if(d("checkedKeys")?w=Z2(a.checkedKeys)||{}:!l&&a.defaultCheckedKeys?w=Z2(a.defaultCheckedKeys)||{}:f&&(w=Z2(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),w){var E=w,$=E.checkedKeys,O=$===void 0?[]:$,N=E.halfCheckedKeys,I=N===void 0?[]:N;if(!a.checkStrictly){var R=Hm(O,!0,v);O=R.checkedKeys,I=R.halfCheckedKeys}s.checkedKeys=O,s.halfCheckedKeys=I}}return d("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n})(u.Component);te(GE,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:lZ,allowDrop:function(){return!0},expandAction:!1});te(GE,"TreeNode",np);const hZ=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:a,motionDurationMid:o,borderRadius:l,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:l},"&:hover:before":{background:s}},[`${t}-switcher`]:{marginInlineEnd:0},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:a,zIndex:1},[`${t}-node-content-wrapper`]:{color:a,background:"transparent","&:before, &:hover:before":{background:r}}}}}},vZ=new zn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),yZ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),bZ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ie(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),xZ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:d}=t,f=t.marginXXS;return{[n]:Object.assign(Object.assign({},cr(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},du(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:vZ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:ie(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},yZ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:f,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,padding:`0 ${t.paddingXS}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},bZ(e,t)),{"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ie(t.calc(o).div(2).equal())} !important`}})}},SZ=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=In(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[xZ(e,o),hZ(o)]},CZ=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},wZ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},CZ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},EZ=nr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:SR(`${n}-checkbox`,e)},SZ(n,e),hb(e)]},wZ),Q6=4;function $Z(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,l=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",d={[l]:-n*a+Q6,[s]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[l]=a+Q6;break}return Se.createElement("div",{style:d,className:`${r}-drop-indicator`})}const OZ=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:l,expanded:s,loading:d}=r;if(d)return u.isValidElement(o)?o:u.createElement(Wd,{className:`${t}-switcher-loading-icon`});let f;if(a&&typeof a=="object"&&(f=a.showLeafIcon),l){if(!a)return null;if(typeof f!="boolean"&&f){const v=typeof f=="function"?f(r):f,y=`${t}-switcher-line-custom-icon`;return u.isValidElement(v)?za(v,{className:ue(v.props.className||"",y)}):v}return f?u.createElement(kb,{className:`${t}-switcher-line-icon`}):u.createElement("span",{className:`${t}-switcher-leaf-line`})}const m=`${t}-switcher-icon`,h=typeof n=="function"?n(r):n;return u.isValidElement(h)?za(h,{className:ue(h.props.className||"",m)}):h!==void 0?h:a?s?u.createElement(LX,{className:`${t}-switcher-line-icon`}):u.createElement(WX,{className:`${t}-switcher-line-icon`}):u.createElement(UG,{className:m})},D9=Se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:l}=Se.useContext(Dt),{prefixCls:s,className:d,showIcon:f=!1,showLine:m,switcherIcon:h,switcherLoadingIcon:v,blockNode:y=!1,children:S,checkable:C=!1,selectable:w=!0,draggable:E,motion:$,style:O}=e,N=r("tree",s),I=r(),R=$??Object.assign(Object.assign({},Lh(I)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:C,selectable:w,showIcon:f,motion:R,blockNode:y,showLine:!!m,dropIndicatorRender:$Z}),[z,D,L]=EZ(N),[,B]=lo(),F=B.paddingXS/2+(((n=B.Tree)===null||n===void 0?void 0:n.titleHeight)||B.controlHeightSM),H=Se.useMemo(()=>{if(!E)return!1;let q={};switch(typeof E){case"function":q.nodeDraggable=E;break;case"object":q=Object.assign({},E);break}return q.icon!==!1&&(q.icon=q.icon||Se.createElement(IX,null)),q},[E]),k=q=>Se.createElement(OZ,{prefixCls:N,switcherIcon:h,switcherLoadingIcon:v,treeNodeProps:q,showLine:m});return z(Se.createElement(GE,Object.assign({itemHeight:F,ref:t,virtual:o},_,{style:Object.assign(Object.assign({},l?.style),O),prefixCls:N,className:ue({[`${N}-icon-hide`]:!f,[`${N}-block-node`]:y,[`${N}-unselectable`]:!w,[`${N}-rtl`]:a==="rtl"},l?.className,d,D,L),direction:a,checkable:C&&Se.createElement("span",{className:`${N}-checkbox-inner`}),selectable:w,switcherIcon:k,draggable:H}),S))}),Z6=0,J2=1,J6=2;function XE(e,t,n){const{key:r,children:a}=n;function o(l){const s=l[r],d=l[a];t(s,l)!==!1&&XE(d||[],t,n)}e.forEach(o)}function MZ(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const l=[];let s=Z6;if(r&&r===a)return[r];if(!r||!a)return[];function d(f){return f===r||f===a}return XE(t,f=>{if(s===J6)return!1;if(d(f)){if(l.push(f),s===Z6)s=J2;else if(s===J2)return s=J6,!1}else s===J2&&l.push(f);return n.includes(f)},tp(o)),l}function eS(e,t,n){const r=st(t),a=[];return XE(e,(o,l)=>{const s=r.indexOf(o);return s!==-1&&(a.push(l),r.splice(s,1)),!!r.length},tp(n)),a}var e5=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function RZ(e){const{isLeaf:t,expanded:n}=e;return t?u.createElement(kb,null):n?u.createElement(OX,null):u.createElement(u9,null)}function t5(e){let{treeData:t,children:n}=e;return t||bR(n)}const NZ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=e5(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=u.useRef(),s=u.useRef(),d=()=>{const{keyEntities:z}=DE(t5(o));let D;return n?D=Object.keys(z):r?D=UC(o.expandedKeys||a||[],z):D=o.expandedKeys||a||[],D},[f,m]=u.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[h,v]=u.useState(()=>d());u.useEffect(()=>{"selectedKeys"in o&&m(o.selectedKeys)},[o.selectedKeys]),u.useEffect(()=>{"expandedKeys"in o&&v(o.expandedKeys)},[o.expandedKeys]);const y=(z,D)=>{var L;return"expandedKeys"in o||v(z),(L=o.onExpand)===null||L===void 0?void 0:L.call(o,z,D)},S=(z,D)=>{var L;const{multiple:B,fieldNames:F}=o,{node:H,nativeEvent:k}=D,{key:q=""}=H,V=t5(o),W=Object.assign(Object.assign({},D),{selected:!0}),G=k?.ctrlKey||k?.metaKey,X=k?.shiftKey;let P;B&&G?(P=z,l.current=q,s.current=P,W.selectedNodes=eS(V,P,F)):B&&X?(P=Array.from(new Set([].concat(st(s.current||[]),st(MZ({treeData:V,expandedKeys:h,startKey:q,endKey:l.current,fieldNames:F}))))),W.selectedNodes=eS(V,P,F)):(P=[q],l.current=q,s.current=P,W.selectedNodes=eS(V,P,F)),(L=o.onSelect)===null||L===void 0||L.call(o,P,W),"selectedKeys"in o||m(P)},{getPrefixCls:C,direction:w}=u.useContext(Dt),{prefixCls:E,className:$,showIcon:O=!0,expandAction:N="click"}=o,I=e5(o,["prefixCls","className","showIcon","expandAction"]),R=C("tree",E),_=ue(`${R}-directory`,{[`${R}-directory-rtl`]:w==="rtl"},$);return u.createElement(D9,Object.assign({icon:RZ,ref:t,blockNode:!0},I,{showIcon:O,expandAction:N,prefixCls:R,className:_,expandedKeys:h,selectedKeys:f,onSelect:S,onExpand:y}))},TZ=u.forwardRef(NZ),Vb=D9;Vb.DirectoryTree=TZ;Vb.TreeNode=np;const n5=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?u.createElement("div",{className:`${r}-filter-dropdown-search`},u.createElement(Pn,{prefix:u.createElement(lv,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},IZ=e=>{const{keyCode:t}=e;t===Pt.ENTER&&e.stopPropagation()},_Z=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:IZ,ref:t},e.children));function Vm(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(st(t),st(Vm(a))))}),t}function AZ(e){return e.some(t=>{let{children:n}=t;return n})}function j9(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function k9(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:l}=e;return t.map((s,d)=>{const f=String(s.value);if(s.children)return{key:f||d,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:k9({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:l})};const m=a?mu:Js,h={key:s.value!==void 0?f:d,label:u.createElement(u.Fragment,null,u.createElement(m,{checked:r.includes(f)}),u.createElement("span",null,s.text))};return o.trim()?typeof l=="function"?l(o,s)?h:null:j9(o,s.text)?h:null:h})}function tS(e){return e||[]}const PZ=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:l,columnKey:s,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:h=!1,filterState:v,triggerFilter:y,locale:S,children:C,getPopupContainer:w,rootClassName:E}=e,{filterDropdownOpen:$,onFilterDropdownOpenChange:O,filterResetToDefaultFilteredValue:N,defaultFilteredValue:I,filterDropdownVisible:R,onFilterDropdownVisibleChange:_}=o,[z,D]=u.useState(!1),L=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),B=Te=>{D(Te),O?.(Te),_?.(Te)},F=(n=$??R)!==null&&n!==void 0?n:z,H=v?.filteredKeys,[k,q]=iZ(tS(H)),V=Te=>{let{selectedKeys:Ue}=Te;q(Ue)},W=(Te,Ue)=>{let{node:qe,checked:ze}=Ue;V(f?{selectedKeys:Te}:{selectedKeys:ze&&qe.key?[qe.key]:[]})};u.useEffect(()=>{z&&V({selectedKeys:tS(H)})},[H]);const[G,X]=u.useState([]),P=Te=>{X(Te)},[K,J]=u.useState(""),j=Te=>{const{value:Ue}=Te.target;J(Ue)};u.useEffect(()=>{z||J("")},[z]);const Y=Te=>{const Ue=Te?.length?Te:null;if(Ue===null&&(!v||!v.filteredKeys)||vs(Ue,v?.filteredKeys,!0))return null;y({column:o,key:s,filteredKeys:Ue})},ne=()=>{B(!1),Y(k())},se=function(){let{confirm:Te,closeDropdown:Ue}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Te&&Y([]),Ue&&B(!1),J(""),q(N?(I||[]).map(qe=>String(qe)):[])},de=function(){let{closeDropdown:Te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Te&&B(!1),Y(k())},pe=(Te,Ue)=>{Ue.source==="trigger"&&(Te&&H!==void 0&&q(tS(H)),B(Te),!Te&&!o.filterDropdown&&d&&ne())},Ce=ue({[`${l}-menu-without-submenu`]:!AZ(o.filters||[])}),he=Te=>{if(Te.target.checked){const Ue=Vm(o?.filters).map(qe=>String(qe));q(Ue)}else q([])},me=Te=>{let{filters:Ue}=Te;return(Ue||[]).map((qe,ze)=>{const Ve=String(qe.value),Be={title:qe.text,key:qe.value!==void 0?Ve:String(ze)};return qe.children&&(Be.children=me({filters:qe.children})),Be})},be=Te=>{var Ue;return Object.assign(Object.assign({},Te),{text:Te.title,value:Te.key,children:((Ue=Te.children)===null||Ue===void 0?void 0:Ue.map(qe=>be(qe)))||[]})};let fe;const{direction:ge,renderEmpty:Oe}=u.useContext(Dt);if(typeof o.filterDropdown=="function")fe=o.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:Te=>V({selectedKeys:Te}),selectedKeys:k(),confirm:de,clearFilters:se,filters:o.filters,visible:F,close:()=>{B(!1)}});else if(o.filterDropdown)fe=o.filterDropdown;else{const Te=k()||[],Ue=()=>{var ze;const Ve=(ze=Oe?.("Table.filter"))!==null&&ze!==void 0?ze:u.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,description:S.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return Ve;if(m==="tree")return u.createElement(u.Fragment,null,u.createElement(n5,{filterSearch:h,value:K,onChange:j,tablePrefixCls:r,locale:S}),u.createElement("div",{className:`${r}-filter-dropdown-tree`},f?u.createElement(mu,{checked:Te.length===Vm(o.filters).length,indeterminate:Te.length>0&&Te.length<Vm(o.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:he},S.filterCheckall):null,u.createElement(Vb,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${l}-menu`,onCheck:W,checkedKeys:Te,selectedKeys:Te,showIcon:!1,treeData:me({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:K.trim()?ye=>typeof h=="function"?h(K,be(ye)):j9(K,ye.title):void 0})));const Be=k9({filters:o.filters||[],filterSearch:h,prefixCls:a,filteredKeys:k(),filterMultiple:f,searchValue:K}),De=Be.every(ye=>ye===null);return u.createElement(u.Fragment,null,u.createElement(n5,{filterSearch:h,value:K,onChange:j,tablePrefixCls:r,locale:S}),De?Ve:u.createElement(fp,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:Ce,onSelect:V,onDeselect:V,selectedKeys:Te,getPopupContainer:w,openKeys:G,onOpenChange:P,items:Be}))},qe=()=>N?vs((I||[]).map(ze=>String(ze)),Te,!0):Te.length===0;fe=u.createElement(u.Fragment,null,Ue(),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(Un,{type:"link",size:"small",disabled:qe(),onClick:()=>se()},S.filterReset),u.createElement(Un,{type:"primary",size:"small",onClick:ne},S.filterConfirm)))}o.filterDropdown&&(fe=u.createElement(aR,{selectable:void 0},fe));const Ne=()=>u.createElement(_Z,{className:`${a}-dropdown`},fe);let je;return typeof o.filterIcon=="function"?je=o.filterIcon(L):o.filterIcon?je=o.filterIcon:je=u.createElement(wX,null),u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${r}-column-title`},C),u.createElement(Db,{dropdownRender:Ne,trigger:["click"],open:F,onOpenChange:pe,getPopupContainer:w,placement:ge==="rtl"?"bottomLeft":"bottomRight",rootClassName:E},u.createElement("span",{role:"button",tabIndex:-1,className:ue(`${a}-trigger`,{active:L}),onClick:Te=>{Te.stopPropagation()}},je)))},QC=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var l;const s=hp(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let d=a.filteredValue;"filterDropdown"in a||(d=(l=d?.map(String))!==null&&l!==void 0?l:d),r.push({column:a,key:pu(a,s),filteredKeys:d,forceFiltered:a.filtered})}else r.push({column:a,key:pu(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(st(r),st(QC(a.children,t,s))))}),r};function L9(e,t,n,r,a,o,l,s,d){return n.map((f,m)=>{const h=hp(m,s),{filterOnClose:v=!0,filterMultiple:y=!0,filterMode:S,filterSearch:C}=f;let w=f;if(w.filters||w.filterDropdown){const E=pu(w,h),$=r.find(O=>{let{key:N}=O;return E===N});w=Object.assign(Object.assign({},w),{title:O=>u.createElement(PZ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:w,columnKey:E,filterState:$,filterOnClose:v,filterMultiple:y,filterMode:S,filterSearch:C,triggerFilter:o,locale:a,getPopupContainer:l,rootClassName:d},Hb(f.title,O))})}return"children"in w&&(w=Object.assign(Object.assign({},w),{children:L9(e,t,w.children,r,a,o,l,h,d)})),w})}const r5=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const l=r,{filters:s,filterDropdown:d}=o;if(d)t[l]=a||null;else if(Array.isArray(a)){const f=Vm(s);t[l]=f.filter(m=>a.includes(String(m)))}else t[l]=null}),t},ZC=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:l,filters:s},filteredKeys:d}=o;return l&&d&&d.length?a.map(f=>Object.assign({},f)).filter(f=>d.some(m=>{const h=Vm(s),v=h.findIndex(S=>String(S)===String(m)),y=v!==-1?h[v]:m;return f[n]&&(f[n]=ZC(f[n],t,n)),l(y,f)})):a},e),B9=e=>e.flatMap(t=>"children"in t?[t].concat(st(B9(t.children||[]))):[t]),zZ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:l,rootClassName:s}=e;gu();const d=u.useMemo(()=>B9(r||[]),[r]),[f,m]=u.useState(()=>QC(d,!0)),h=u.useMemo(()=>{const C=QC(d,!1);if(C.length===0)return C;let w=!0;if(C.forEach(E=>{let{filteredKeys:$}=E;$!==void 0&&(w=!1)}),w){const E=(d||[]).map(($,O)=>pu($,hp(O)));return f.filter($=>{let{key:O}=$;return E.includes(O)}).map($=>{const O=d[E.findIndex(N=>N===$.key)];return Object.assign(Object.assign({},$),{column:Object.assign(Object.assign({},$.column),O),forceFiltered:O.filtered})})}return C},[d,f]),v=u.useMemo(()=>r5(h),[h]),y=C=>{const w=h.filter(E=>{let{key:$}=E;return $!==C.key});w.push(C),m(w),a(r5(w),w)};return[C=>L9(t,n,C,h,l,y,o,void 0,s),h,v]},DZ=(e,t,n)=>{const r=u.useRef({});function a(o){var l;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let d=function(f){f.forEach((m,h)=>{const v=n(m,h);s.set(v,m),m&&typeof m=="object"&&t in m&&d(m[t]||[])})};const s=new Map;d(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(l=r.current.kvMap)===null||l===void 0?void 0:l.get(o)}return[a]};var jZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const F9=10;function kZ(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function LZ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=jZ(r,["total"]),[l,s]=u.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:F9})),d=QR(l,o,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const m=(v,y)=>{s({current:v??1,pageSize:y||d.pageSize})},h=(v,y)=>{var S;n&&((S=n.onChange)===null||S===void 0||S.call(n,v,y)),m(v,y),t(v,y||d?.pageSize)};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:h}),m]}const by="ascend",nS="descend",Xy=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,a5=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,BZ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],JC=(e,t,n)=>{let r=[];const a=(o,l)=>{r.push({column:o,key:pu(o,l),multiplePriority:Xy(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,l)=>{const s=hp(l,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(st(r),st(JC(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:pu(o,s),multiplePriority:Xy(o),sortOrder:o.defaultSortOrder}))}),r},H9=(e,t,n,r,a,o,l,s)=>(t||[]).map((f,m)=>{const h=hp(m,s);let v=f;if(v.sorter){const y=v.sortDirections||a,S=v.showSorterTooltip===void 0?l:v.showSorterTooltip,C=pu(v,h),w=n.find(D=>{let{key:L}=D;return L===C}),E=w?w.sortOrder:null,$=BZ(y,E);let O;if(f.sortIcon)O=f.sortIcon({sortOrder:E});else{const D=y.includes(by)&&u.createElement(ZG,{className:ue(`${e}-column-sorter-up`,{active:E===by})}),L=y.includes(nS)&&u.createElement(XG,{className:ue(`${e}-column-sorter-down`,{active:E===nS})});O=u.createElement("span",{className:ue(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(D&&L)})},u.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},D,L))}const{cancelSort:N,triggerAsc:I,triggerDesc:R}=o||{};let _=N;$===nS?_=R:$===by&&(_=I);const z=typeof S=="object"?Object.assign({title:_},S):{title:_};v=Object.assign(Object.assign({},v),{className:ue(v.className,{[`${e}-column-sort`]:E}),title:D=>{const L=`${e}-column-sorters`,B=u.createElement("span",{className:`${e}-column-title`},Hb(f.title,D)),F=u.createElement("div",{className:L},B,O);return S?typeof S!="boolean"&&S?.target==="sorter-icon"?u.createElement("div",{className:`${L} ${e}-column-sorters-tooltip-target-sorter`},B,u.createElement(Oo,Object.assign({},z),O)):u.createElement(Oo,Object.assign({},z),F):F},onHeaderCell:D=>{var L;const B=((L=f.onHeaderCell)===null||L===void 0?void 0:L.call(f,D))||{},F=B.onClick,H=B.onKeyDown;B.onClick=V=>{r({column:f,key:C,sortOrder:$,multiplePriority:Xy(f)}),F?.(V)},B.onKeyDown=V=>{V.keyCode===Pt.ENTER&&(r({column:f,key:C,sortOrder:$,multiplePriority:Xy(f)}),H?.(V))};const k=oZ(f.title,{}),q=k?.toString();return E?B["aria-sort"]=E==="ascend"?"ascending":"descending":B["aria-label"]=q||"",B.className=ue(B.className,`${e}-column-has-sorters`),B.tabIndex=0,f.ellipsis&&(B.title=(k??"").toString()),B}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:H9(e,v.children,n,r,a,o,l,h)})),v}),o5=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},i5=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(o5);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},o5(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},ew=(e,t,n)=>{const r=t.slice().sort((l,s)=>s.multiplePriority-l.multiplePriority),a=e.slice(),o=r.filter(l=>{let{column:{sorter:s},sortOrder:d}=l;return a5(s)&&d});return o.length?a.sort((l,s)=>{for(let d=0;d<o.length;d+=1){const f=o[d],{column:{sorter:m},sortOrder:h}=f,v=a5(m);if(v&&h){const y=v(l,s,h);if(y!==0)return h===by?y:-y}}return 0}).map(l=>{const s=l[n];return s?Object.assign(Object.assign({},l),{[n]:ew(s,t,n)}):l}):a},FZ=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:l}=e,[s,d]=u.useState(JC(n,!0)),f=(C,w)=>{const E=[];return C.forEach(($,O)=>{const N=hp(O,w);if(E.push(pu($,N)),Array.isArray($.children)){const I=f($.children,N);E.push.apply(E,st(I))}}),E},m=u.useMemo(()=>{let C=!0;const w=JC(n,!1);if(!w.length){const N=f(n);return s.filter(I=>{let{key:R}=I;return N.includes(R)})}const E=[];function $(N){C?E.push(N):E.push(Object.assign(Object.assign({},N),{sortOrder:null}))}let O=null;return w.forEach(N=>{O===null?($(N),N.sortOrder&&(N.multiplePriority===!1?C=!1:O=!0)):(O&&N.multiplePriority!==!1||(C=!1),$(N))}),E},[n,s]),h=u.useMemo(()=>{var C,w;const E=m.map($=>{let{column:O,sortOrder:N}=$;return{column:O,order:N}});return{sortColumns:E,sortColumn:(C=E[0])===null||C===void 0?void 0:C.column,sortOrder:(w=E[0])===null||w===void 0?void 0:w.order}},[m]),v=C=>{let w;C.multiplePriority===!1||!m.length||m[0].multiplePriority===!1?w=[C]:w=[].concat(st(m.filter(E=>{let{key:$}=E;return $!==C.key})),[C]),d(w),l(i5(w),w)};return[C=>H9(t,C,m,v,r,a,o),m,h,()=>i5(m)]},V9=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=Hb(r.title,t),"children"in a&&(a.children=V9(a.children,t)),a}),HZ=e=>[u.useCallback(n=>V9(n,e),[e])],VZ=R9((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),KZ=T9((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),WZ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:d}=e,f=`${ie(n)} ${r} ${a}`,m=(h,v,y)=>({[`&${t}-${h}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(d(v).mul(-1).equal())} ${ie(d(d(y).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(d(l).mul(-1).equal())} ${ie(d(d(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},m("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),m("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ie(n)} 0 ${ie(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},UZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},uu),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},qZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},GZ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:l,tableBorderColor:s,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:m,tablePaddingVertical:h,tablePaddingHorizontal:v,tableExpandedRowBg:y,paddingXXS:S,expandIconMarginTop:C,expandIconSize:w,expandIconHalfInner:E,expandIconScale:$,calc:O}=e,N=`${ie(a)} ${l} ${s}`,I=O(S).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},jw(e)),{position:"relative",float:"left",width:w,height:w,color:"inherit",lineHeight:ie(w),background:d,border:N,borderRadius:m,transform:`scale(${$})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:E,insetInlineEnd:I,insetInlineStart:I,height:a},"&::after":{top:I,bottom:I,insetInlineStart:E,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:C,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ie(O(h).mul(-1).equal())} ${ie(O(v).mul(-1).equal())}`,padding:`${ie(h)} ${ie(v)}`}}}},XZ=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:l,paddingXS:s,colorText:d,lineWidth:f,lineType:m,tableBorderColor:h,headerIconColor:v,fontSizeSM:y,tablePaddingHorizontal:S,borderRadius:C,motionDurationSlow:w,colorTextDescription:E,colorPrimary:$,tableHeaderFilterActiveBg:O,colorTextDisabled:N,tableFilterDropdownBg:I,tableFilterDropdownHeight:R,controlItemBgHover:_,controlItemBgActive:z,boxShadowSecondary:D,filterDropdownMenuBg:L,calc:B}=e,F=`${n}-dropdown`,H=`${t}-filter-dropdown`,k=`${n}-tree`,q=`${ie(f)} ${m} ${h}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:B(l).mul(-1).equal(),marginInline:`${ie(l)} ${ie(B(S).div(2).mul(-1).equal())}`,padding:`0 ${ie(l)}`,color:v,fontSize:y,borderRadius:C,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:E,background:O},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[H]:Object.assign(Object.assign({},cr(e)),{minWidth:a,backgroundColor:I,borderRadius:C,boxShadow:D,overflow:"hidden",[`${F}-menu`]:{maxHeight:R,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:L,"&:empty::after":{display:"block",padding:`${ie(s)} 0`,color:N,fontSize:y,textAlign:"center",content:'"Not Found"'}},[`${H}-tree`]:{paddingBlock:`${ie(s)} 0`,paddingInline:s,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:_},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:z}}},[`${H}-search`]:{padding:s,borderBottom:q,"&-input":{input:{minWidth:o},[r]:{color:N}}},[`${H}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${H}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ie(B(s).sub(f).equal())} ${ie(s)}`,overflow:"hidden",borderTop:q}})}},{[`${n}-dropdown ${H}, ${H}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},YZ=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:l,zIndexTableSticky:s,calc:d}=e,f=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:o,background:l},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${f}`},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${f}`}},[`${t}-fixed-column-gapped`]:{[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:"none"}}}}},QZ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ie(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ZZ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ie(n)} ${ie(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ie(n)} ${ie(n)}`}}}}},JZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},eJ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:l,headerIconColor:s,headerIconHoverColor:d,tableSelectionColumnWidth:f,tableSelectedRowBg:m,tableSelectedRowHoverBg:h,tableRowHoverBg:v,tablePaddingHorizontal:y,calc:S}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:S(f).add(a).add(S(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:S(f).add(S(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:S(f).add(a).add(S(o).div(4)).add(S(l).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:S(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ie(S(y).div(4).equal()),[r]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:m,"&-row-hover":{background:h}}},[`> ${t}-cell-row-hover`]:{background:v}}}}}},tJ=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,l,s,d)=>({[`${t}${t}-${o}`]:{fontSize:d,[` ${t}-title, ${t}-footer, ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${ie(l)} ${ie(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ie(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ie(r(l).mul(-1).equal())} ${ie(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ie(r(l).mul(-1).equal()),marginInline:`${ie(r(n).sub(s).equal())} ${ie(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ie(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},nJ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},rJ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:d,lineWidth:f,lineType:m,tableBorderColor:h}=e,v=`${ie(f)} ${m} ${h}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ie(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:v,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},l5=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${ie(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ie(a(n).mul(-1).equal())} 0 ${r}`}}}},aJ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:l}=e,s=`${ie(r)} ${a} ${o}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ie(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},oJ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:l,lineType:s,tableBorderColor:d,tableFontSize:f,tableBg:m,tableRadius:h,tableHeaderTextColor:v,motionDurationMid:y,tableHeaderBg:S,tableHeaderCellSplitColor:C,tableFooterTextColor:w,tableFooterBg:E,calc:$}=e,O=`${ie(l)} ${s} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},nc()),{[t]:Object.assign(Object.assign({},cr(e)),{fontSize:f,background:m,borderRadius:`${ie(h)} ${ie(h)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ie(h)} ${ie(h)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${ie(r)} ${ie(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ie(r)} ${ie(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:S,borderBottom:O,transition:`background ${y} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${y}, border-color ${y}`,borderBottom:O,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:ie($(r).mul(-1).equal()),marginInline:`${ie($(o).sub(a).equal())} ${ie($(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:S,borderBottom:O,transition:`background ${y} ease`}}},[`${t}-footer`]:{padding:`${ie(r)} ${ie(a)}`,color:w,background:E}})}},iJ=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:l,controlItemBgActiveHover:s,padding:d,paddingSM:f,paddingXS:m,colorBorderSecondary:h,borderRadiusLG:v,controlHeight:y,colorTextPlaceholder:S,fontSize:C,fontSizeSM:w,lineHeight:E,lineWidth:$,colorIcon:O,colorIconHover:N,opacityLoading:I,controlInteractiveSize:R}=e,_=new zr(a).onBackground(n).toHexShortString(),z=new zr(o).onBackground(n).toHexShortString(),D=new zr(t).onBackground(n).toHexShortString(),L=new zr(O),B=new zr(N),F=R/2-$,H=F*2+$*3;return{headerBg:D,headerColor:r,headerSortActiveBg:_,headerSortHoverBg:z,bodySortBg:D,rowHoverBg:D,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:f,cellPaddingInlineMD:m,cellPaddingBlockSM:m,cellPaddingInlineSM:m,borderColor:h,headerBorderRadius:v,footerBg:D,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:h,fixedHeaderSortActiveBg:_,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:y,stickyScrollBarBg:S,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*E-$*3)/2-Math.ceil((w*1.4-$*3)/2),headerIconColor:L.clone().setAlpha(L.getAlpha()*I).toRgbString(),headerIconHoverColor:B.clone().setAlpha(B.getAlpha()*I).toRgbString(),expandIconHalfInner:F,expandIconSize:H,expandIconScale:R/H}},s5=2,lJ=nr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:l,headerSortActiveBg:s,headerSortHoverBg:d,bodySortBg:f,rowHoverBg:m,rowSelectedBg:h,rowSelectedHoverBg:v,rowExpandedBg:y,cellPaddingBlock:S,cellPaddingInline:C,cellPaddingBlockMD:w,cellPaddingInlineMD:E,cellPaddingBlockSM:$,cellPaddingInlineSM:O,borderColor:N,footerBg:I,footerColor:R,headerBorderRadius:_,cellFontSize:z,cellFontSizeMD:D,cellFontSizeSM:L,headerSplitColor:B,fixedHeaderSortActiveBg:F,headerFilterHoverBg:H,filterDropdownBg:k,expandIconBg:q,selectionColumnWidth:V,stickyScrollBarBg:W,calc:G}=e,X=In(e,{tableFontSize:z,tableBg:r,tableRadius:_,tablePaddingVertical:S,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:w,tablePaddingHorizontalMiddle:E,tablePaddingVerticalSmall:$,tablePaddingHorizontalSmall:O,tableBorderColor:N,tableHeaderTextColor:l,tableHeaderBg:o,tableFooterTextColor:R,tableFooterBg:I,tableHeaderCellSplitColor:B,tableHeaderSortBg:s,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:F,tableHeaderFilterActiveBg:H,tableFilterDropdownBg:k,tableRowHoverBg:m,tableSelectedRowBg:h,tableSelectedRowHoverBg:v,zIndexTableFixed:s5,zIndexTableSticky:G(s5).add(1).equal({unit:!1}),tableFontSizeMiddle:D,tableFontSizeSmall:L,tableSelectionColumnWidth:V,tableExpandIconBg:q,tableExpandColumnWidth:G(a).add(G(e.padding).mul(2)).equal(),tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:W,tableScrollThumbBgHover:t,tableScrollBg:n});return[oJ(X),QZ(X),l5(X),nJ(X),XZ(X),WZ(X),ZZ(X),GZ(X),l5(X),qZ(X),eJ(X),YZ(X),rJ(X),UZ(X),tJ(X),JZ(X),aJ(X)]},iJ,{unitless:{expandIconScale:!0}}),sJ=[],cJ=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:l,style:s,size:d,bordered:f,dropdownPrefixCls:m,dataSource:h,pagination:v,rowSelection:y,rowKey:S="key",rowClassName:C,columns:w,children:E,childrenColumnName:$,onChange:O,getPopupContainer:N,loading:I,expandIcon:R,expandable:_,expandedRowRender:z,expandIconColumnIndex:D,indentSize:L,scroll:B,sortDirections:F,locale:H,showSorterTooltip:k={target:"full-header"},virtual:q}=e;gu();const V=u.useMemo(()=>w||KE(E),[w,E]),W=u.useMemo(()=>V.some(pt=>pt.responsive),[V]),G=vE(W),X=u.useMemo(()=>{const pt=new Set(Object.keys(G).filter(ct=>G[ct]));return V.filter(ct=>!ct.responsive||ct.responsive.some(dt=>pt.has(dt)))},[V,G]),P=Qr(e,["className","style","columns"]),{locale:K=ys,direction:J,table:j,renderEmpty:Y,getPrefixCls:ne,getPopupContainer:se}=u.useContext(Dt),de=No(d),pe=Object.assign(Object.assign({},K.Table),H),Ce=h||sJ,he=ne("table",a),me=ne("dropdown",m),[,be]=lo(),fe=Ba(he),[ge,Oe,Ne]=lJ(he,fe),je=Object.assign(Object.assign({childrenColumnName:$,expandIconColumnIndex:D},_),{expandIcon:(n=_?.expandIcon)!==null&&n!==void 0?n:(r=j?.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Te="children"}=je,Ue=u.useMemo(()=>Ce.some(pt=>pt?.[Te])?"nest":z||_?.expandedRowRender?"row":null,[Ce]),qe={body:u.useRef()},ze=aZ(he),Ve=u.useRef(null),Be=u.useRef(null);nZ(t,()=>Object.assign(Object.assign({},Be.current),{nativeElement:Ve.current}));const De=u.useMemo(()=>typeof S=="function"?S:pt=>pt?.[S],[S]),[ye]=DZ(Ce,Te,De),oe={},we=function(pt,ct){let dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ot,nt,Tt,Mt;const zt=Object.assign(Object.assign({},oe),pt);dt&&((ot=oe.resetPagination)===null||ot===void 0||ot.call(oe),!((nt=zt.pagination)===null||nt===void 0)&&nt.current&&(zt.pagination.current=1),v&&((Tt=v.onChange)===null||Tt===void 0||Tt.call(v,1,(Mt=zt.pagination)===null||Mt===void 0?void 0:Mt.pageSize))),B&&B.scrollToFirstRowOnChange!==!1&&qe.body.current&&uz(0,{getContainer:()=>qe.body.current}),O?.(zt.pagination,zt.filters,zt.sorter,{currentDataSource:ZC(ew(Ce,zt.sorterStates,Te),zt.filterStates,Te),action:ct})},Fe=(pt,ct)=>{we({sorter:pt,sorterStates:ct},"sort",!1)},[xe,_e,rt,lt]=FZ({prefixCls:he,mergedColumns:X,onSorterChange:Fe,sortDirections:F||["ascend","descend"],tableLocale:pe,showSorterTooltip:k}),ut=u.useMemo(()=>ew(Ce,_e,Te),[Ce,_e]);oe.sorter=lt(),oe.sorterStates=_e;const tt=(pt,ct)=>{we({filters:pt,filterStates:ct},"filter",!0)},[mt,at,gt]=zZ({prefixCls:he,locale:pe,dropdownPrefixCls:me,mergedColumns:X,onFilterChange:tt,getPopupContainer:N||se,rootClassName:ue(l,fe)}),Nt=ZC(ut,at,Te);oe.filters=gt,oe.filterStates=at;const tn=u.useMemo(()=>{const pt={};return Object.keys(gt).forEach(ct=>{gt[ct]!==null&&(pt[ct]=gt[ct])}),Object.assign(Object.assign({},rt),{filters:pt})},[rt,gt]),[Wt]=HZ(tn),dn=(pt,ct)=>{we({pagination:Object.assign(Object.assign({},oe.pagination),{current:pt,pageSize:ct})},"paginate")},[Qt,nn]=LZ(Nt.length,dn,v);oe.pagination=v===!1?{}:kZ(Qt,v),oe.resetPagination=nn;const Zt=u.useMemo(()=>{if(v===!1||!Qt.pageSize)return Nt;const{current:pt=1,total:ct,pageSize:dt=F9}=Qt;return Nt.length<ct?Nt.length>dt?Nt.slice((pt-1)*dt,pt*dt):Nt:Nt.slice((pt-1)*dt,pt*dt)},[!!v,Nt,Qt?.current,Qt?.pageSize,Qt?.total]),[Lt,_t]=eZ({prefixCls:he,data:Nt,pageData:Zt,getRowKey:De,getRecordByKey:ye,expandType:Ue,childrenColumnName:Te,locale:pe,getPopupContainer:N||se},y),It=(pt,ct,dt)=>{let ot;return typeof C=="function"?ot=ue(C(pt,ct,dt)):ot=ue(C),ue({[`${he}-row-selected`]:_t.has(De(pt,ct))},ot)};je.__PARENT_RENDER_ICON__=je.expandIcon,je.expandIcon=je.expandIcon||R||rZ(pe),Ue==="nest"&&je.expandIconColumnIndex===void 0?je.expandIconColumnIndex=y?1:0:je.expandIconColumnIndex>0&&y&&(je.expandIconColumnIndex-=1),typeof je.indentSize!="number"&&(je.indentSize=typeof L=="number"?L:15);const ve=u.useCallback(pt=>Wt(Lt(mt(xe(pt)))),[xe,mt,Lt]);let Me,Xe;if(v!==!1&&Qt?.total){let pt;Qt.size?pt=Qt.size:pt=de==="small"||de==="middle"?"small":void 0;const ct=nt=>u.createElement(LE,Object.assign({},Qt,{className:ue(`${he}-pagination ${he}-pagination-${nt}`,Qt.className),size:pt})),dt=J==="rtl"?"left":"right",{position:ot}=Qt;if(ot!==null&&Array.isArray(ot)){const nt=ot.find(zt=>zt.includes("top")),Tt=ot.find(zt=>zt.includes("bottom")),Mt=ot.every(zt=>`${zt}`=="none");!nt&&!Tt&&!Mt&&(Xe=ct(dt)),nt&&(Me=ct(nt.toLowerCase().replace("top",""))),Tt&&(Xe=ct(Tt.toLowerCase().replace("bottom","")))}else Xe=ct(dt)}let Qe;typeof I=="boolean"?Qe={spinning:I}:typeof I=="object"&&(Qe=Object.assign({spinning:!0},I));const ke=ue(Ne,fe,`${he}-wrapper`,j?.className,{[`${he}-wrapper-rtl`]:J==="rtl"},o,l,Oe),Ae=Object.assign(Object.assign({},j?.style),s),He=typeof H?.emptyText<"u"?H.emptyText:Y?.("Table")||u.createElement(gE,{componentName:"Table"}),Ye=q?KZ:VZ,$t={},xt=u.useMemo(()=>{const{fontSize:pt,lineHeight:ct,padding:dt,paddingXS:ot,paddingSM:nt}=be,Tt=Math.floor(pt*ct);switch(de){case"large":return dt*2+Tt;case"small":return ot*2+Tt;default:return nt*2+Tt}},[be,de]);return q&&($t.listItemHeight=xt),ge(u.createElement("div",{ref:Ve,className:ke,style:Ae},u.createElement(Bd,Object.assign({spinning:!1},Qe),Me,u.createElement(Ye,Object.assign({},$t,P,{ref:Be,columns:X,direction:J,expandable:je,prefixCls:he,className:ue({[`${he}-middle`]:de==="middle",[`${he}-small`]:de==="small",[`${he}-bordered`]:f,[`${he}-empty`]:Ce.length===0},Ne,fe,Oe),data:Zt,rowKey:De,rowClassName:It,emptyText:He,internalHooks:fv,internalRefs:qe,transformColumns:ve,getContainerWidth:ze})),Xe)))},uJ=u.forwardRef(cJ),dJ=(e,t)=>{const n=u.useRef(0);return n.current+=1,u.createElement(uJ,Object.assign({},e,{ref:t,_renderTimes:n.current}))},lc=u.forwardRef(dJ);lc.SELECTION_COLUMN=tu;lc.EXPAND_COLUMN=ru;lc.SELECTION_ALL=qC;lc.SELECTION_INVERT=GC;lc.SELECTION_NONE=XC;lc.Column=VQ;lc.ColumnGroup=KQ;lc.Summary=y9;const fJ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,l=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},cr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-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(${a}-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:l}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},YE=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return In(e,{tagFontSize:a,tagLineHeight:ie(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},QE=e=>({defaultBg:new zr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),K9=nr("Tag",e=>{const t=YE(e);return fJ(t)},QE);var mJ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pJ=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:o,onChange:l,onClick:s}=e,d=mJ(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:m}=u.useContext(Dt),h=E=>{l?.(!o),s?.(E)},v=f("tag",n),[y,S,C]=K9(v),w=ue(v,`${v}-checkable`,{[`${v}-checkable-checked`]:o},m?.className,a,S,C);return y(u.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m?.style),className:w,onClick:h})))}),gJ=e=>fb(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:l}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),hJ=op(["Tag","preset"],e=>{const t=YE(e);return gJ(t)},QE);function vJ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const U1=(e,t,n)=>{const r=vJ(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"}}}},yJ=op(["Tag","status"],e=>{const t=YE(e);return[U1(t,"success","Success"),U1(t,"processing","Info"),U1(t,"error","Error"),U1(t,"warning","Warning")]},QE);var bJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const xJ=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,children:l,icon:s,color:d,onClose:f,bordered:m=!0,visible:h}=e,v=bJ(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:S,tag:C}=u.useContext(Dt),[w,E]=u.useState(!0),$=Qr(v,["closeIcon","closable"]);u.useEffect(()=>{h!==void 0&&E(h)},[h]);const O=Rb(d),N=aH(d),I=O||N,R=Object.assign(Object.assign({backgroundColor:d&&!I?d:void 0},C?.style),o),_=y("tag",n),[z,D,L]=K9(_),B=ue(_,C?.className,{[`${_}-${d}`]:I,[`${_}-has-color`]:d&&!I,[`${_}-hidden`]:!w,[`${_}-rtl`]:S==="rtl",[`${_}-borderless`]:!m},r,a,D,L),F=G=>{G.stopPropagation(),f?.(G),!G.defaultPrevented&&E(!1)},[,H]=cE(Jm(e),Jm(C),{closable:!1,closeIconRender:G=>{const X=u.createElement("span",{className:`${_}-close-icon`,onClick:F},G);return Bw(G,X,P=>({onClick:K=>{var J;(J=P?.onClick)===null||J===void 0||J.call(P,K),F(K)},className:ue(P?.className,`${_}-close-icon`)}))}}),k=typeof v.onClick=="function"||l&&l.type==="a",q=s||null,V=q?u.createElement(u.Fragment,null,q,l&&u.createElement("span",null,l)):l,W=u.createElement("span",Object.assign({},$,{ref:t,className:B,style:R}),V,H,O&&u.createElement(hJ,{key:"preset",prefixCls:_}),N&&u.createElement(yJ,{key:"status",prefixCls:_}));return z(k?u.createElement(ev,{component:"Tag"},W):W)}),Wo=xJ;Wo.CheckableTag=pJ;const SJ=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},CJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} `]=SJ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},wJ=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},jw(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},EJ=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:Iy[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ie(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},OJ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),MJ=()=>({"\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"}}),RJ=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.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},CJ(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{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}}}),EJ(e)),wJ(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy `]:Object.assign(Object.assign({},jw(e)),{marginInlineStart:e.marginXXS})}),$J(e)),OJ(e)),MJ()),{"&-rtl":{direction:"rtl"}})}},NJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),W9=nr("Typography",e=>[RJ(e)],NJ),TJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:l,autoSize:s=!0,value:d,onSave:f,onCancel:m,onEnd:h,component:v,enterIcon:y=u.createElement(gX,null)}=e,S=u.useRef(null),C=u.useRef(!1),w=u.useRef(),[E,$]=u.useState(d);u.useEffect(()=>{$(d)},[d]),u.useEffect(()=>{var k;if(!((k=S.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:q}=S.current.resizableTextArea;q.focus();const{length:V}=q.value;q.setSelectionRange(V,V)}},[]);const O=k=>{let{target:q}=k;$(q.value.replace(/[\n\r]/g,""))},N=()=>{C.current=!0},I=()=>{C.current=!1},R=k=>{let{keyCode:q}=k;C.current||(w.current=q)},_=()=>{f(E.trim())},z=k=>{let{keyCode:q,ctrlKey:V,altKey:W,metaKey:G,shiftKey:X}=k;w.current!==q||C.current||V||W||G||X||(q===Pt.ENTER?(_(),h?.()):q===Pt.ESC&&m())},D=()=>{_()},[L,B,F]=W9(t),H=ue(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${v}`]:!!v},r,B,F);return L(u.createElement("div",{className:H,style:a},u.createElement(_R,{ref:S,maxLength:l,value:E,onChange:O,onKeyDown:R,onKeyUp:z,onCompositionStart:N,onCompositionEnd:I,onBlur:D,"aria-label":n,rows:1,autoSize:s}),y!==null?za(y,{className:`${t}-edit-content-confirm`}):null))};var rS,c5;function IJ(){return c5||(c5=1,rS=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(a){e.addRange(a)}),t&&t.focus()}}),rS}var aS,u5;function _J(){if(u5)return aS;u5=1;var e=IJ(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,l)}function a(o,l){var s,d,f,m,h,v,y=!1;l||(l={}),s=l.debug||!1;try{f=e(),m=document.createRange(),h=document.getSelection(),v=document.createElement("span"),v.textContent=o,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(C){if(C.stopPropagation(),l.format)if(C.preventDefault(),typeof C.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var w=t[l.format]||t.default;window.clipboardData.setData(w,o)}else C.clipboardData.clearData(),C.clipboardData.setData(l.format,o);l.onCopy&&(C.preventDefault(),l.onCopy(C.clipboardData))}),document.body.appendChild(v),m.selectNodeContents(v),h.addRange(m);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");y=!0}catch(C){s&&console.error("unable to copy using execCommand: ",C),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",o),l.onCopy&&l.onCopy(window.clipboardData),y=!0}catch(w){s&&console.error("unable to copy using clipboardData: ",w),s&&console.error("falling back to prompt"),d=r("message"in l?l.message:n),window.prompt(d,o)}}finally{h&&(typeof h.removeRange=="function"?h.removeRange(m):h.removeAllRanges()),v&&document.body.removeChild(v),f()}return y}return aS=a,aS}var AJ=_J();const PJ=ac(AJ);var zJ=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function s(m){try{f(r.next(m))}catch(h){l(h)}}function d(m){try{f(r.throw(m))}catch(h){l(h)}}function f(m){m.done?o(m.value):a(m.value).then(s,d)}f((r=r.apply(e,t||[])).next())})};const DJ=e=>{let{copyConfig:t,children:n}=e;const[r,a]=u.useState(!1),[o,l]=u.useState(!1),s=u.useRef(null),d=()=>{s.current&&clearTimeout(s.current)},f={};t.format&&(f.format=t.format),u.useEffect(()=>d,[]);const m=vr(h=>zJ(void 0,void 0,void 0,function*(){var v;h?.preventDefault(),h?.stopPropagation(),l(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;PJ(y||xG(n,!0).join("")||"",f),l(!1),a(!0),d(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,h)}catch(y){throw l(!1),y}}));return{copied:r,copyLoading:o,onClick:m}};function oS(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const jJ=e=>{const t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current},kJ=(e,t,n)=>u.useMemo(()=>e===!0?{title:t??n}:u.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var LJ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const U9=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:l,children:s,direction:d,style:f}=e,m=LJ(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:h,direction:v,typography:y}=u.useContext(Dt),S=d??v,C=l?io(t,l):t,w=h("typography",n),[E,$,O]=W9(w),N=ue(w,y?.className,{[`${w}-rtl`]:S==="rtl"},a,o,$,O),I=Object.assign(Object.assign({},y?.style),f);return E(u.createElement(r,Object.assign({className:N,style:I,ref:C},m),s))});function d5(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function iS(e,t,n){return e===!0||e===void 0?t:e||n&&t}function BJ(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 ZE=e=>["string","number"].includes(typeof e),FJ=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:l,tabIndex:s,onCopy:d,loading:f}=e;const m=d5(o),h=d5(l),{copied:v,copy:y}=r??{},S=n?v:y,C=iS(m[n?1:0],S),w=typeof C=="string"?C:S;return u.createElement(Oo,{title:C},u.createElement("button",{type:"button",className:ue(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:d,"aria-label":w,tabIndex:s},n?iS(h[1],u.createElement(Ob,null),!0):iS(h[0],f?u.createElement(Wd,null):u.createElement(lX,null),!0)))},q1=u.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),HJ=e=>e.reduce((t,n)=>t+(ZE(n)?String(n).length:1),0);function f5(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const o=e[a],s=ZE(o)?String(o).length:1,d=n+s;if(d>t){const f=t-n;return r.push(String(o).slice(0,f)),r}r.push(o),n=d}return e}const lS=0,sS=1,cS=2,uS=3,m5=4,G1={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function VJ(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:l,miscDeps:s,onEllipsis:d}=e,f=u.useMemo(()=>ro(r),[r]),m=u.useMemo(()=>HJ(f),[r]),h=u.useMemo(()=>a(f,!1),[r]),[v,y]=u.useState(null),S=u.useRef(null),C=u.useRef(null),w=u.useRef(null),E=u.useRef(null),$=u.useRef(null),[O,N]=u.useState(!1),[I,R]=u.useState(lS),[_,z]=u.useState(0),[D,L]=u.useState(null);Ln(()=>{R(t&&n&&m?sS:lS)},[n,r,o,t,f]),Ln(()=>{var k,q,V,W;if(I===sS){R(cS);const G=C.current&&getComputedStyle(C.current).whiteSpace;L(G)}else if(I===cS){const G=!!(!((k=w.current)===null||k===void 0)&&k.isExceed());R(G?uS:m5),y(G?[0,m]:null),N(G);const X=((q=w.current)===null||q===void 0?void 0:q.getHeight())||0,P=o===1?0:((V=E.current)===null||V===void 0?void 0:V.getHeight())||0,K=((W=$.current)===null||W===void 0?void 0:W.getHeight())||0,J=Math.max(X,P+K);z(J+1),d(G)}},[I]);const B=v?Math.ceil((v[0]+v[1])/2):0;Ln(()=>{var k;const[q,V]=v||[0,0];if(q!==V){const G=(((k=S.current)===null||k===void 0?void 0:k.getHeight())||0)>_;let X=B;V-q===1&&(X=G?q:V),y(G?[q,X]:[X,V])}},[v,B]);const F=u.useMemo(()=>{if(!t)return a(f,!1);if(I!==uS||!v||v[0]!==v[1]){const k=a(f,!1);return[m5,lS].includes(I)?k:u.createElement("span",{style:Object.assign(Object.assign({},G1),{WebkitLineClamp:o})},k)}return a(l?f:f5(f,v[0]),O)},[l,I,v,f].concat(st(s))),H={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,F,I===cS&&u.createElement(u.Fragment,null,u.createElement(q1,{style:Object.assign(Object.assign(Object.assign({},H),G1),{WebkitLineClamp:o}),ref:w},h),u.createElement(q1,{style:Object.assign(Object.assign(Object.assign({},H),G1),{WebkitLineClamp:o-1}),ref:E},h),u.createElement(q1,{style:Object.assign(Object.assign(Object.assign({},H),G1),{WebkitLineClamp:1}),ref:$},a([],!0))),I===uS&&v&&v[0]!==v[1]&&u.createElement(q1,{style:Object.assign(Object.assign({},H),{top:400}),ref:S},a(f5(f,B),!0)),I===sS&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const KJ=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!a?.title||!t?r:u.createElement(Oo,Object.assign({open:n?void 0:!1},a),r)};var WJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function UJ(e,t){let{mark:n,code:r,underline:a,delete:o,strong:l,keyboard:s,italic:d}=e,f=t;function m(h,v){v&&(f=u.createElement(h,{},f))}return m("strong",l),m("u",a),m("del",o),m("code",r),m("mark",n),m("kbd",s),m("i",d),f}const qJ="...",Kb=u.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:o,type:l,disabled:s,children:d,ellipsis:f,editable:m,copyable:h,component:v,title:y}=e,S=WJ(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:w}=u.useContext(Dt),[E]=Cs("Text"),$=u.useRef(null),O=u.useRef(null),N=C("typography",r),I=Qr(S,["mark","code","delete","underline","strong","keyboard","italic"]),[R,_]=oS(m),[z,D]=kr(!1,{value:_.editing}),{triggerType:L=["icon"]}=_,B=at=>{var gt;at&&((gt=_.onStart)===null||gt===void 0||gt.call(_)),D(at)},F=jJ(z);Ln(()=>{var at;!z&&F&&((at=O.current)===null||at===void 0||at.focus())},[z]);const H=at=>{at?.preventDefault(),B(!0)},k=at=>{var gt;(gt=_.onChange)===null||gt===void 0||gt.call(_,at),B(!1)},q=()=>{var at;(at=_.onCancel)===null||at===void 0||at.call(_),B(!1)},[V,W]=oS(h),{copied:G,copyLoading:X,onClick:P}=DJ({copyConfig:W,children:d}),[K,J]=u.useState(!1),[j,Y]=u.useState(!1),[ne,se]=u.useState(!1),[de,pe]=u.useState(!1),[Ce,he]=u.useState(!0),[me,be]=oS(f,{expandable:!1,symbol:at=>at?E?.collapse:E?.expand}),[fe,ge]=kr(be.defaultExpanded||!1,{value:be.expanded}),Oe=me&&(!fe||be.expandable==="collapsible"),{rows:Ne=1}=be,je=u.useMemo(()=>Oe&&(be.suffix!==void 0||be.onEllipsis||be.expandable||R||V),[Oe,be,R,V]);Ln(()=>{me&&!je&&(J(NC("webkitLineClamp")),Y(NC("textOverflow")))},[je,me]);const[Te,Ue]=u.useState(Oe),qe=u.useMemo(()=>je?!1:Ne===1?j:K,[je,j,K]);Ln(()=>{Ue(qe&&Oe)},[qe,Oe]);const ze=Oe&&(Te?de:ne),Ve=Oe&&Ne===1&&Te,Be=Oe&&Ne>1&&Te,De=(at,gt)=>{var Nt;ge(gt.expanded),(Nt=be.onExpand)===null||Nt===void 0||Nt.call(be,at,gt)},[ye,oe]=u.useState(0),we=at=>{let{offsetWidth:gt}=at;oe(gt)},Fe=at=>{var gt;se(at),ne!==at&&((gt=be.onEllipsis)===null||gt===void 0||gt.call(be,at))};u.useEffect(()=>{const at=$.current;if(me&&Te&&at){const gt=BJ(at);de!==gt&&pe(gt)}},[me,Te,d,Be,Ce,ye]),u.useEffect(()=>{const at=$.current;if(typeof IntersectionObserver>"u"||!at||!Te||!Oe)return;const gt=new IntersectionObserver(()=>{he(!!at.offsetParent)});return gt.observe(at),()=>{gt.disconnect()}},[Te,Oe]);const xe=kJ(be.tooltip,_.text,d),_e=u.useMemo(()=>{if(!(!me||Te))return[_.text,d,y,xe.title].find(ZE)},[me,Te,y,xe.title,ze]);if(z)return u.createElement(TJ,{value:(n=_.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:k,onCancel:q,onEnd:_.onEnd,prefixCls:N,className:a,style:o,direction:w,component:v,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const rt=()=>{const{expandable:at,symbol:gt}=be;return at?u.createElement("button",{type:"button",key:"expand",className:`${N}-${fe?"collapse":"expand"}`,onClick:Nt=>De(Nt,{expanded:!fe}),"aria-label":fe?E.collapse:E?.expand},typeof gt=="function"?gt(fe):gt):null},lt=()=>{if(!R)return;const{icon:at,tooltip:gt,tabIndex:Nt}=_,tn=ro(gt)[0]||E?.edit,Wt=typeof tn=="string"?tn:"";return L.includes("icon")?u.createElement(Oo,{key:"edit",title:gt===!1?"":tn},u.createElement("button",{type:"button",ref:O,className:`${N}-edit`,onClick:H,"aria-label":Wt,tabIndex:Nt},at||u.createElement(ps,{role:"button"}))):null},ut=()=>V?u.createElement(FJ,Object.assign({key:"copy"},W,{prefixCls:N,copied:G,locale:E,onCopy:P,loading:X,iconOnly:d==null})):null,tt=at=>[at&&rt(),lt(),ut()],mt=at=>[at&&!fe&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},qJ),be.suffix,tt(at)];return u.createElement(qo,{onResize:we,disabled:!Oe},at=>u.createElement(KJ,{tooltipProps:xe,enableEllipsis:Oe,isEllipsis:ze},u.createElement(U9,Object.assign({className:ue({[`${N}-${l}`]:l,[`${N}-disabled`]:s,[`${N}-ellipsis`]:me,[`${N}-ellipsis-single-line`]:Ve,[`${N}-ellipsis-multiple-line`]:Be},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Be?Ne:void 0}),component:v,ref:io(at,$,t),direction:w,onClick:L.includes("text")?H:void 0,"aria-label":_e?.toString(),title:y},I),u.createElement(VJ,{enableMeasure:Oe&&!Te,text:d,rows:Ne,width:ye,onEllipsis:Fe,expanded:fe,miscDeps:[G,fe,X,R,V]},(gt,Nt)=>UJ(e,u.createElement(u.Fragment,null,gt.length>0&&Nt&&!fe&&_e?u.createElement("span",{key:"show-content","aria-hidden":!0},gt):gt,mt(Nt)))))))});var GJ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const XJ=u.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=GJ(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,u.createElement(Kb,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),YJ=u.forwardRef((e,t)=>u.createElement(Kb,Object.assign({ref:t},e,{component:"div"})));var QJ=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZJ=(e,t)=>{var{ellipsis:n}=e,r=QJ(e,["ellipsis"]);const a=u.useMemo(()=>n&&typeof n=="object"?Qr(n,["expandable","rows"]):n,[n]);return u.createElement(Kb,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},JJ=u.forwardRef(ZJ);var eee=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tee=[1,2,3,4,5],nee=u.forwardRef((e,t)=>{const{level:n=1}=e,r=eee(e,["level"]),a=tee.includes(n)?`h${n}`:"h1";return u.createElement(Kb,Object.assign({ref:t},r,{component:a}))}),Ko=U9;Ko.Text=JJ;Ko.Link=XJ;Ko.Title=nee;Ko.Paragraph=YJ;const ree=[{label:"React",value:"react"},{label:"iOS",value:"ios"}],aee=[{label:"本地路径",value:"local"},{label:"OSS上传",value:"oss"},{label:"接口上传",value:"api"}],oee=[.5,1,1.5,2,3,4],iee=[{label:"SVG",value:"svg"},{label:"PNG",value:"png"}],lee=[{label:"HEX",value:"hex"},{label:"RGB",value:"rgb"}],p5={mcp:{figmaApiKey:""},convertSetting:{framework:"react",convertScale:1,colorValue:"hex"},imageSetting:{imageStorageType:"local",imageStorageScale:1,imageIconType:"svg",imageStoragePath:"./static",imageStorageNamingRule:"[name]_[contenthash:6]",ossRegion:"",ossAccessKeyId:"",ossAccessKeySecret:"",ossBucket:"",ossPath:"",ossCdnDomain:"",imageStorageApiUrl:"",imageStorageApiFileField:"file",imageStorageApiUrlField:"url",imageStorageApiCustomHeader:"",imageStorageApiCustomBody:""},promptSetting:{chunkOptimizePrompt:"",aggregationOptimizePrompt:"",finalOptimizePrompt:""},pluginSetting:[]},see={frameworks:[{label:"React",value:"react"},{value:"vue",label:"Vue"}],defaultFramework:"react",promptSetting:{react:{chunkOptimizePrompt:"",aggregationOptimizePrompt:"",finalOptimizePrompt:"",frameworkGuidePrompt:"",enableFrameworkGuide:!1,componentAnalysisPrompt:""}}},cee=["frameworkGuidePrompt","chunkOptimizePrompt","aggregationOptimizePrompt","finalOptimizePrompt","noSamplingAggregationPrompt","componentAnalysisPrompt"],xy={frameworkGuidePrompt:{title:"框架理解提示词",description:"用于帮助大模型理解框架语言",placeholder:`示例: # 框架说明 这是一个 [框架名称] 项目,请注意: - **语法特点**:描述框架的特殊语法 - **组件系统**:说明组件的定义方式 - **状态管理**:解释状态管理机制`,optional:!0},chunkOptimizePrompt:{title:"分块采样",description:"用于优化单个代码分块,提升代码质量和可读性",placeholder:`示例: # 代码优化指南 请优化以下代码片段,确保: - **代码规范**:遵循最佳实践 - **性能优化**:减少不必要的渲染 - **可读性**:清晰的命名和注释`},aggregationOptimizePrompt:{title:"聚合模块",description:"用于整合多个代码分块,确保模块间的协调性",placeholder:`示例: # 模块整合指南 整合以下代码模块时,请注意: 1. 接口一致性 2. 依赖关系 3. 代码复用`},finalOptimizePrompt:{title:"写入优化",description:"用于最终代码输出前的整体优化和检查,确保代码能正确运行",placeholder:`示例: # 最终检查清单 输出代码前请确认: - [ ] 代码完整性 - [ ] 类型安全 - [ ] 错误处理 - [ ] 性能优化`},componentAnalysisPrompt:{title:"组件识别",description:"用于分析和识别组件代码结构,提取组件信息",placeholder:""},noSamplingAggregationPrompt:{title:"转换代码",description:"用于优化代码分块,提升代码质量和可读性",placeholder:`示例: # 代码优化指南 请优化以下代码片段,确保: - **代码规范**:遵循最佳实践 - **性能优化**:减少不必要的渲染 - **可读性**:清晰的命名和注释`}};function uee(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const dee=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fee=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mee={};function g5(e,t){return(mee.jsx?fee:dee).test(e)}const pee=/[ \t\n\f\r]/g;function gee(e){return typeof e=="object"?e.type==="text"?h5(e.value):!1:h5(e)}function h5(e){return e.replace(pee,"")===""}class mv{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}mv.prototype.normal={};mv.prototype.property={};mv.prototype.space=void 0;function q9(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new mv(n,r,t)}function tw(e){return e.toLowerCase()}class pi{constructor(t,n){this.attribute=n,this.property=t}}pi.prototype.attribute="";pi.prototype.booleanish=!1;pi.prototype.boolean=!1;pi.prototype.commaOrSpaceSeparated=!1;pi.prototype.commaSeparated=!1;pi.prototype.defined=!1;pi.prototype.mustUseProperty=!1;pi.prototype.number=!1;pi.prototype.overloadedBoolean=!1;pi.prototype.property="";pi.prototype.spaceSeparated=!1;pi.prototype.space=void 0;let hee=0;const kn=qd(),Ia=qd(),nw=qd(),At=qd(),Gr=qd(),Km=qd(),Ii=qd();function qd(){return 2**++hee}const rw=Object.freeze(Object.defineProperty({__proto__:null,boolean:kn,booleanish:Ia,commaOrSpaceSeparated:Ii,commaSeparated:Km,number:At,overloadedBoolean:nw,spaceSeparated:Gr},Symbol.toStringTag,{value:"Module"})),dS=Object.keys(rw);class JE extends pi{constructor(t,n,r,a){let o=-1;if(super(t,n),v5(this,"space",a),typeof r=="number")for(;++o<dS.length;){const l=dS[o];v5(this,dS[o],(r&rw[l])===rw[l])}}}JE.prototype.defined=!0;function v5(e,t,n){n&&(e[t]=n)}function vp(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new JE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[tw(r)]=r,n[tw(o.attribute)]=r}return new mv(t,n,e.space)}const G9=vp({properties:{ariaActiveDescendant:null,ariaAtomic:Ia,ariaAutoComplete:null,ariaBusy:Ia,ariaChecked:Ia,ariaColCount:At,ariaColIndex:At,ariaColSpan:At,ariaControls:Gr,ariaCurrent:null,ariaDescribedBy:Gr,ariaDetails:null,ariaDisabled:Ia,ariaDropEffect:Gr,ariaErrorMessage:null,ariaExpanded:Ia,ariaFlowTo:Gr,ariaGrabbed:Ia,ariaHasPopup:null,ariaHidden:Ia,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gr,ariaLevel:At,ariaLive:null,ariaModal:Ia,ariaMultiLine:Ia,ariaMultiSelectable:Ia,ariaOrientation:null,ariaOwns:Gr,ariaPlaceholder:null,ariaPosInSet:At,ariaPressed:Ia,ariaReadOnly:Ia,ariaRelevant:null,ariaRequired:Ia,ariaRoleDescription:Gr,ariaRowCount:At,ariaRowIndex:At,ariaRowSpan:At,ariaSelected:Ia,ariaSetSize:At,ariaSort:null,ariaValueMax:At,ariaValueMin:At,ariaValueNow:At,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function X9(e,t){return t in e?e[t]:t}function Y9(e,t){return X9(e,t.toLowerCase())}const vee=vp({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Km,acceptCharset:Gr,accessKey:Gr,action:null,allow:null,allowFullScreen:kn,allowPaymentRequest:kn,allowUserMedia:kn,alt:null,as:null,async:kn,autoCapitalize:null,autoComplete:Gr,autoFocus:kn,autoPlay:kn,blocking:Gr,capture:null,charSet:null,checked:kn,cite:null,className:Gr,cols:At,colSpan:null,content:null,contentEditable:Ia,controls:kn,controlsList:Gr,coords:At|Km,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kn,defer:kn,dir:null,dirName:null,disabled:kn,download:nw,draggable:Ia,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kn,formTarget:null,headers:Gr,height:At,hidden:nw,high:At,href:null,hrefLang:null,htmlFor:Gr,httpEquiv:Gr,id:null,imageSizes:null,imageSrcSet:null,inert:kn,inputMode:null,integrity:null,is:null,isMap:kn,itemId:null,itemProp:Gr,itemRef:Gr,itemScope:kn,itemType:Gr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kn,low:At,manifest:null,max:null,maxLength:At,media:null,method:null,min:null,minLength:At,multiple:kn,muted:kn,name:null,nonce:null,noModule:kn,noValidate:kn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kn,optimum:At,pattern:null,ping:Gr,placeholder:null,playsInline:kn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kn,referrerPolicy:null,rel:Gr,required:kn,reversed:kn,rows:At,rowSpan:At,sandbox:Gr,scope:null,scoped:kn,seamless:kn,selected:kn,shadowRootClonable:kn,shadowRootDelegatesFocus:kn,shadowRootMode:null,shape:null,size:At,sizes:null,slot:null,span:At,spellCheck:Ia,src:null,srcDoc:null,srcLang:null,srcSet:null,start:At,step:null,style:null,tabIndex:At,target:null,title:null,translate:null,type:null,typeMustMatch:kn,useMap:null,value:Ia,width:At,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gr,axis:null,background:null,bgColor:null,border:At,borderColor:null,bottomMargin:At,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kn,declare:kn,event:null,face:null,frame:null,frameBorder:null,hSpace:At,leftMargin:At,link:null,longDesc:null,lowSrc:null,marginHeight:At,marginWidth:At,noResize:kn,noHref:kn,noShade:kn,noWrap:kn,object:null,profile:null,prompt:null,rev:null,rightMargin:At,rules:null,scheme:null,scrolling:Ia,standby:null,summary:null,text:null,topMargin:At,valueType:null,version:null,vAlign:null,vLink:null,vSpace:At,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kn,disableRemotePlayback:kn,prefix:null,property:null,results:At,security:null,unselectable:null},space:"html",transform:Y9}),yee=vp({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ii,accentHeight:At,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:At,amplitude:At,arabicForm:null,ascent:At,attributeName:null,attributeType:null,azimuth:At,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:At,by:null,calcMode:null,capHeight:At,className:Gr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:At,diffuseConstant:At,direction:null,display:null,dur:null,divisor:At,dominantBaseline:null,download:kn,dx:null,dy:null,edgeMode:null,editable:null,elevation:At,enableBackground:null,end:null,event:null,exponent:At,externalResourcesRequired:null,fill:null,fillOpacity:At,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Km,g2:Km,glyphName:Km,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:At,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:At,horizOriginX:At,horizOriginY:At,id:null,ideographic:At,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:At,k:At,k1:At,k2:At,k3:At,k4:At,kernelMatrix:Ii,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:At,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:At,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:At,overlineThickness:At,paintOrder:null,panose1:null,path:null,pathLength:At,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:At,pointsAtY:At,pointsAtZ:At,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ii,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ii,rev:Ii,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ii,requiredFeatures:Ii,requiredFonts:Ii,requiredFormats:Ii,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:At,specularExponent:At,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:At,strikethroughThickness:At,string:null,stroke:null,strokeDashArray:Ii,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:At,strokeOpacity:At,strokeWidth:null,style:null,surfaceScale:At,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ii,tabIndex:At,tableValues:null,target:null,targetX:At,targetY:At,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ii,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:At,underlineThickness:At,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:At,values:null,vAlphabetic:At,vMathematical:At,vectorEffect:null,vHanging:At,vIdeographic:At,version:null,vertAdvY:At,vertOriginX:At,vertOriginY:At,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:At,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:X9}),Q9=vp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Z9=vp({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Y9}),J9=vp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bee={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xee=/[A-Z]/g,y5=/-[a-z]/g,See=/^data[-\w.:]+$/i;function Cee(e,t){const n=tw(t);let r=t,a=pi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&See.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(y5,Eee);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!y5.test(o)){let l=o.replace(xee,wee);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=JE}return new a(r,t)}function wee(e){return"-"+e.toLowerCase()}function Eee(e){return e.charAt(1).toUpperCase()}const $ee=q9([G9,vee,Q9,Z9,J9],"html"),e4=q9([G9,yee,Q9,Z9,J9],"svg");function Oee(e){return e.join(" ").trim()}var Mm={},fS,b5;function Mee(){if(b5)return fS;b5=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,d=` `,f="/",m="*",h="",v="comment",y="declaration";fS=function(C,w){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];w=w||{};var E=1,$=1;function O(H){var k=H.match(t);k&&(E+=k.length);var q=H.lastIndexOf(d);$=~q?H.length-q:$+H.length}function N(){var H={line:E,column:$};return function(k){return k.position=new I(H),z(),k}}function I(H){this.start=H,this.end={line:E,column:$},this.source=w.source}I.prototype.content=C;function R(H){var k=new Error(w.source+":"+E+":"+$+": "+H);if(k.reason=H,k.filename=w.source,k.line=E,k.column=$,k.source=C,!w.silent)throw k}function _(H){var k=H.exec(C);if(k){var q=k[0];return O(q),C=C.slice(q.length),k}}function z(){_(n)}function D(H){var k;for(H=H||[];k=L();)k!==!1&&H.push(k);return H}function L(){var H=N();if(!(f!=C.charAt(0)||m!=C.charAt(1))){for(var k=2;h!=C.charAt(k)&&(m!=C.charAt(k)||f!=C.charAt(k+1));)++k;if(k+=2,h===C.charAt(k-1))return R("End of comment missing");var q=C.slice(2,k-2);return $+=2,O(q),C=C.slice(k),$+=2,H({type:v,comment:q})}}function B(){var H=N(),k=_(r);if(k){if(L(),!_(a))return R("property missing ':'");var q=_(o),V=H({type:y,property:S(k[0].replace(e,h)),value:q?S(q[0].replace(e,h)):h});return _(l),V}}function F(){var H=[];D(H);for(var k;k=B();)k!==!1&&(H.push(k),D(H));return H}return z(),F()};function S(C){return C?C.replace(s,h):h}return fS}var x5;function Ree(){if(x5)return Mm;x5=1;var e=Mm&&Mm.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=n;const t=e(Mee());function n(r,a){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),s=typeof a=="function";return l.forEach(d=>{if(d.type!=="declaration")return;const{property:f,value:m}=d;s?a(f,m,d):m&&(o=o||{},o[f]=m)}),o}return Mm}var ah={},S5;function Nee(){if(S5)return ah;S5=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},l=function(f,m){return m.toUpperCase()},s=function(f,m){return"".concat(m,"-")},d=function(f,m){return m===void 0&&(m={}),o(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(a,s):f=f.replace(r,s),f.replace(t,l))};return ah.camelCase=d,ah}var oh,C5;function Tee(){if(C5)return oh;C5=1;var e=oh&&oh.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Ree()),n=Nee();function r(a,o){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(s,d){s&&d&&(l[(0,n.camelCase)(s,o)]=d)}),l}return r.default=r,oh=r,oh}var Iee=Tee();const _ee=ac(Iee),eN=tN("end"),t4=tN("start");function tN(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Aee(e){const t=t4(e),n=eN(e);if(t&&n)return{start:t,end:n}}function $h(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?w5(e.position):"start"in e||"end"in e?w5(e):"line"in e||"column"in e?aw(e):""}function aw(e){return E5(e&&e.line)+":"+E5(e&&e.column)}function w5(e){return aw(e&&e.start)+"-"+aw(e&&e.end)}function E5(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=$h(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const n4={}.hasOwnProperty,Pee=new Map,zee=/[A-Z]/g,Dee=new Set(["table","tbody","thead","tfoot","tr"]),jee=new Set(["td","th"]),nN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kee(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Uee(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Wee(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?e4:$ee,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=rN(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function rN(e,t,n){if(t.type==="element")return Lee(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Bee(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Hee(e,t,n);if(t.type==="mdxjsEsm")return Fee(e,t);if(t.type==="root")return Vee(e,t,n);if(t.type==="text")return Kee(e,t)}function Lee(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=e4,e.schema=a),e.ancestors.push(t);const o=oN(e,t.tagName,!1),l=qee(e,t);let s=a4(e,t);return Dee.has(t.tagName)&&(s=s.filter(function(d){return typeof d=="string"?!gee(d):!0})),aN(e,l,o,t),r4(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Bee(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Uh(e,t.position)}function Fee(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Uh(e,t.position)}function Hee(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=e4,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:oN(e,t.name,!0),l=Gee(e,t),s=a4(e,t);return aN(e,l,o,t),r4(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Vee(e,t,n){const r={};return r4(r,a4(e,t)),e.create(t,e.Fragment,r,n)}function Kee(e,t){return t.value}function aN(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function r4(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Wee(e,t,n){return r;function r(a,o,l,s){const f=Array.isArray(l.children)?n:t;return s?f(o,l,s):f(o,l)}}function Uee(e,t){return n;function n(r,a,o,l){const s=Array.isArray(o.children),d=t4(r);return t(a,o,l,s,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function qee(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&n4.call(t.properties,a)){const o=Xee(e,a,t.properties[a]);if(o){const[l,s]=o;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&jee.has(t.tagName)?r=s:n[l]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Gee(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const s=l.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Uh(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Uh(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function a4(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Pee;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const s=rN(e,o,l);s!==void 0&&n.push(s)}return n}function Xee(e,t,n){const r=Cee(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?uee(n):Oee(n)),r.property==="style"){let a=typeof n=="object"?n:Yee(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Qee(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?bee[r.property]||r.property:r.attribute,n]}}function Yee(e,t){try{return _ee(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new To("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=nN+"#cannot-parse-style-attribute",a}}function oN(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const s=g5(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=l}else r=g5(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return n4.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Uh(e)}function Uh(e,t){const n=new To("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nN+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Qee(e){const t={};let n;for(n in e)n4.call(e,n)&&(t[Zee(n)]=e[n]);return t}function Zee(e){let t=e.replace(zee,Jee);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Jee(e){return"-"+e.toLowerCase()}const mS={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ete={};function tte(e,t){const n=ete,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return iN(e,r,a)}function iN(e,t,n){if(nte(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $5(e.children,t,n)}return Array.isArray(e)?$5(e,t,n):""}function $5(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=iN(e[a],t,n);return r.join("")}function nte(e){return!!(e&&typeof e=="object")}const O5=document.createElement("i");function o4(e){const t="&"+e+";";O5.innerHTML=t;const n=O5.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ss(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function Qi(e,t){return e.length>0?(Ss(e,e.length,0,t),e):t}const M5={}.hasOwnProperty;function rte(e){const t={};let n=-1;for(;++n<e.length;)ate(t,e[n]);return t}function ate(e,t){let n;for(n in t){const a=(M5.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){M5.call(a,l)||(a[l]=[]);const s=o[l];ote(a[l],Array.isArray(s)?s:s?[s]:[])}}}function ote(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ss(e,0,0,r)}function lN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Wm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ms=vu(/[A-Za-z]/),Pi=vu(/[\dA-Za-z]/),ite=vu(/[#-'*+\--9=?A-Z^-~]/);function ow(e){return e!==null&&(e<32||e===127)}const iw=vu(/\d/),lte=vu(/[\dA-Fa-f]/),ste=vu(/[!-/:-@[-`{-~]/);function Nn(e){return e!==null&&e<-2}function mi(e){return e!==null&&(e<0||e===32)}function Cr(e){return e===-2||e===-1||e===32}const cte=vu(new RegExp("\\p{P}|\\p{S}","u")),ute=vu(/\s/);function vu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function yp(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Pi(e.charCodeAt(n+1))&&Pi(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(l=String.fromCharCode(o,s),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Xr(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(d){return Cr(d)?(e.enter(n),s(d)):t(d)}function s(d){return Cr(d)&&o++<a?(e.consume(d),s):(e.exit(n),t(d))}}const dte={tokenize:fte};function fte(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Xr(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),o(s)}function o(s){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Nn(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),l)}}const mte={tokenize:pte},R5={tokenize:gte};function pte(e){const t=this,n=[];let r=0,a,o,l;return s;function s(O){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,d,f)(O)}return f(O)}function d(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&$();const N=t.events.length;let I=N,R;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){R=t.events[I][1].end;break}E(r);let _=N;for(;_<t.events.length;)t.events[_][1].end={...R},_++;return Ss(t.events,I+1,0,t.events.slice(N)),t.events.length=_,f(O)}return s(O)}function f(O){if(r===n.length){if(!a)return v(O);if(a.currentConstruct&&a.currentConstruct.concrete)return S(O);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(R5,m,h)(O)}function m(O){return a&&$(),E(r),v(O)}function h(O){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,S(O)}function v(O){return t.containerState={},e.attempt(R5,y,S)(O)}function y(O){return r++,n.push([t.currentConstruct,t.containerState]),v(O)}function S(O){if(O===null){a&&$(),E(0),e.consume(O);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),C(O)}function C(O){if(O===null){w(e.exit("chunkFlow"),!0),E(0),e.consume(O);return}return Nn(O)?(e.consume(O),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(O),C)}function w(O,N){const I=t.sliceStream(O);if(N&&I.push(null),O.previous=o,o&&(o.next=O),o=O,a.defineSkip(O.start),a.write(I),t.parser.lazy[O.start.line]){let R=a.events.length;for(;R--;)if(a.events[R][1].start.offset<l&&(!a.events[R][1].end||a.events[R][1].end.offset>l))return;const _=t.events.length;let z=_,D,L;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(D){L=t.events[z][1].end;break}D=!0}for(E(r),R=_;R<t.events.length;)t.events[R][1].end={...L},R++;Ss(t.events,z+1,0,t.events.slice(_)),t.events.length=R}}function E(O){let N=n.length;for(;N-- >O;){const I=n[N];t.containerState=I[1],I[0].exit.call(t,e)}n.length=O}function $(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function gte(e,t,n){return Xr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function N5(e){if(e===null||mi(e)||ute(e))return 1;if(cte(e))return 2}function i4(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lw={name:"attention",resolveAll:hte,tokenize:vte};function hte(e,t){let n=-1,r,a,o,l,s,d,f,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},v={...e[n][1].start};T5(h,-d),T5(v,d),l={type:d>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},s={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[r][1].end={...l.start},e[n][1].start={...s.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Qi(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Qi(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=Qi(f,i4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Qi(f,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,f=Qi(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Ss(e,r-1,n-r+3,f),n=r+f.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function vte(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=N5(r);let o;return l;function l(d){return o=d,e.enter("attentionSequence"),s(d)}function s(d){if(d===o)return e.consume(d),s;const f=e.exit("attentionSequence"),m=N5(d),h=!m||m===2&&a||n.includes(d),v=!a||a===2&&m||n.includes(r);return f._open=!!(o===42?h:h&&(a||!v)),f._close=!!(o===42?v:v&&(m||!h)),t(d)}}function T5(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yte={name:"autolink",tokenize:bte};function bte(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return ms(y)?(e.consume(y),l):y===64?n(y):f(y)}function l(y){return y===43||y===45||y===46||Pi(y)?(r=1,s(y)):f(y)}function s(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||Pi(y))&&r++<32?(e.consume(y),s):(r=0,f(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||ow(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),m):ite(y)?(e.consume(y),f):n(y)}function m(y){return Pi(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):v(y)}function v(y){if((y===45||Pi(y))&&r++<63){const S=y===45?v:h;return e.consume(y),S}return n(y)}}const Wb={partial:!0,tokenize:xte};function xte(e,t,n){return r;function r(o){return Cr(o)?Xr(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Nn(o)?t(o):n(o)}}const sN={continuation:{tokenize:Cte},exit:wte,name:"blockQuote",tokenize:Ste};function Ste(e,t,n){const r=this;return a;function a(l){if(l===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return Cr(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Cte(e,t,n){const r=this;return a;function a(l){return Cr(l)?Xr(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(sN,t,n)(l)}}function wte(e){e.exit("blockQuote")}const cN={name:"characterEscape",tokenize:Ete};function Ete(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return ste(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const uN={name:"characterReference",tokenize:$te};function $te(e,t,n){const r=this;let a=0,o,l;return s;function s(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d}function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=Pi,m(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=lte,m):(e.enter("characterReferenceValue"),o=7,l=iw,m(h))}function m(h){if(h===59&&a){const v=e.exit("characterReferenceValue");return l===Pi&&!o4(r.sliceSerialize(v))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(h)&&a++<o?(e.consume(h),m):n(h)}}const I5={partial:!0,tokenize:Mte},_5={concrete:!0,name:"codeFenced",tokenize:Ote};function Ote(e,t,n){const r=this,a={partial:!0,tokenize:I};let o=0,l=0,s;return d;function d(R){return f(R)}function f(R){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===s?(l++,e.consume(R),m):l<3?n(R):(e.exit("codeFencedFenceSequence"),Cr(R)?Xr(e,h,"whitespace")(R):h(R))}function h(R){return R===null||Nn(R)?(e.exit("codeFencedFence"),r.interrupt?t(R):e.check(I5,C,N)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||Nn(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(R)):Cr(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xr(e,y,"whitespace")(R)):R===96&&R===s?n(R):(e.consume(R),v)}function y(R){return R===null||Nn(R)?h(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||Nn(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(R)):R===96&&R===s?n(R):(e.consume(R),S)}function C(R){return e.attempt(a,N,w)(R)}function w(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return o>0&&Cr(R)?Xr(e,$,"linePrefix",o+1)(R):$(R)}function $(R){return R===null||Nn(R)?e.check(I5,C,N)(R):(e.enter("codeFlowValue"),O(R))}function O(R){return R===null||Nn(R)?(e.exit("codeFlowValue"),$(R)):(e.consume(R),O)}function N(R){return e.exit("codeFenced"),t(R)}function I(R,_,z){let D=0;return L;function L(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),B}function B(q){return R.enter("codeFencedFence"),Cr(q)?Xr(R,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):F(q)}function F(q){return q===s?(R.enter("codeFencedFenceSequence"),H(q)):z(q)}function H(q){return q===s?(D++,R.consume(q),H):D>=l?(R.exit("codeFencedFenceSequence"),Cr(q)?Xr(R,k,"whitespace")(q):k(q)):z(q)}function k(q){return q===null||Nn(q)?(R.exit("codeFencedFence"),_(q)):z(q)}}}function Mte(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const pS={name:"codeIndented",tokenize:Nte},Rte={partial:!0,tokenize:Tte};function Nte(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),Xr(e,o,"linePrefix",5)(f)}function o(f){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Nn(f)?e.attempt(Rte,l,d)(f):(e.enter("codeFlowValue"),s(f))}function s(f){return f===null||Nn(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),s)}function d(f){return e.exit("codeIndented"),t(f)}}function Tte(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Nn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Xr(e,o,"linePrefix",5)(l)}function o(l){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):Nn(l)?a(l):n(l)}}const Ite={name:"codeText",previous:Ate,resolve:_te,tokenize:Pte};function _te(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Ate(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pte(e,t,n){let r=0,a,o;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),s(h)}function s(h){return h===96?(e.consume(h),r++,s):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(o=e.enter("codeTextSequence"),a=0,m(h)):Nn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||Nn(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),f)}function m(h){return h===96?(e.consume(h),a++,m):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",f(h))}}class zte{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ih(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ih(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ih(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ih(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ih(this.left,n.reverse())}}}function ih(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function dN(e){const t={};let n=-1,r,a,o,l,s,d,f;const m=new zte(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Dte(m,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=m.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...m.get(a)[1].start},s=m.slice(a,n),s.unshift(r),m.splice(a,n-a+1,s))}}return Ss(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function Dte(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,d=[],f={};let m,h,v=-1,y=n,S=0,C=0;const w=[C];for(;y;){for(;e.get(++a)[1]!==y;);o.push(a),y._tokenizer||(m=r.sliceStream(y),y.next||m.push(null),h&&l.defineSkip(y.start),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++v<s.length;)s[v][0]==="exit"&&s[v-1][0]==="enter"&&s[v][1].type===s[v-1][1].type&&s[v][1].start.line!==s[v][1].end.line&&(C=v+1,w.push(C),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(l.events=[],y?(y._tokenizer=void 0,y.previous=void 0):w.pop(),v=w.length;v--;){const E=s.slice(w[v],w[v+1]),$=o.pop();d.push([$,$+E.length-1]),e.splice($,2,E)}for(d.reverse(),v=-1;++v<d.length;)f[S+d[v][0]]=S+d[v][1],S+=d[v][1]-d[v][0]-1;return f}const jte={resolve:Lte,tokenize:Bte},kte={partial:!0,tokenize:Fte};function Lte(e){return dN(e),e}function Bte(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?o(s):Nn(s)?e.check(kte,l,o)(s):(e.consume(s),a)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Fte(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Xr(e,o,"linePrefix")}function o(l){if(l===null||Nn(l))return n(l);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function fN(e,t,n,r,a,o,l,s,d){const f=d||Number.POSITIVE_INFINITY;let m=0;return h;function h(E){return E===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(E),e.exit(o),v):E===null||E===32||E===41||ow(E)?n(E):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),C(E))}function v(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(s),v(E)):E===null||E===60||Nn(E)?n(E):(e.consume(E),E===92?S:y)}function S(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function C(E){return!m&&(E===null||E===41||mi(E))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(E)):m<f&&E===40?(e.consume(E),m++,C):E===41?(e.consume(E),m--,C):E===null||E===32||E===40||ow(E)?n(E):(e.consume(E),E===92?w:C)}function w(E){return E===40||E===41||E===92?(e.consume(E),C):C(E)}}function mN(e,t,n,r,a,o){const l=this;let s=0,d;return f;function f(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(o),m}function m(y){return s>999||y===null||y===91||y===93&&!d||y===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(y):y===93?(e.exit(o),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Nn(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Nn(y)||s++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!Cr(y)),y===92?v:h)}function v(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}}function pN(e,t,n,r,a,o){let l;return s;function s(v){return v===34||v===39||v===40?(e.enter(r),e.enter(a),e.consume(v),e.exit(a),l=v===40?41:v,d):n(v)}function d(v){return v===l?(e.enter(a),e.consume(v),e.exit(a),e.exit(r),t):(e.enter(o),f(v))}function f(v){return v===l?(e.exit(o),d(l)):v===null?n(v):Nn(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Xr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===l||v===null||Nn(v)?(e.exit("chunkString"),f(v)):(e.consume(v),v===92?h:m)}function h(v){return v===l||v===92?(e.consume(v),m):m(v)}}function Oh(e,t){let n;return r;function r(a){return Nn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Cr(a)?Xr(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Hte={name:"definition",tokenize:Kte},Vte={partial:!0,tokenize:Wte};function Kte(e,t,n){const r=this;let a;return o;function o(y){return e.enter("definition"),l(y)}function l(y){return mN.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function s(y){return a=Wm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return mi(y)?Oh(e,f)(y):f(y)}function f(y){return fN(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(Vte,h,h)(y)}function h(y){return Cr(y)?Xr(e,v,"whitespace")(y):v(y)}function v(y){return y===null||Nn(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function Wte(e,t,n){return r;function r(s){return mi(s)?Oh(e,a)(s):n(s)}function a(s){return pN(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Cr(s)?Xr(e,l,"whitespace")(s):l(s)}function l(s){return s===null||Nn(s)?t(s):n(s)}}const Ute={name:"hardBreakEscape",tokenize:qte};function qte(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Nn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Gte={name:"headingAtx",resolve:Xte,tokenize:Yte};function Xte(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ss(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function Yte(e,t,n){let r=0;return a;function a(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(e.consume(m),l):m===null||mi(m)?(e.exit("atxHeadingSequence"),s(m)):n(m)}function s(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Nn(m)?(e.exit("atxHeading"),t(m)):Cr(m)?Xr(e,s,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),s(m))}function f(m){return m===null||m===35||mi(m)?(e.exit("atxHeadingText"),s(m)):(e.consume(m),f)}}const Qte=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],A5=["pre","script","style","textarea"],Zte={concrete:!0,name:"htmlFlow",resolveTo:tne,tokenize:nne},Jte={partial:!0,tokenize:ane},ene={partial:!0,tokenize:rne};function tne(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nne(e,t,n){const r=this;let a,o,l,s,d;return f;function f(j){return m(j)}function m(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),h}function h(j){return j===33?(e.consume(j),v):j===47?(e.consume(j),o=!0,C):j===63?(e.consume(j),a=3,r.interrupt?t:P):ms(j)?(e.consume(j),l=String.fromCharCode(j),w):n(j)}function v(j){return j===45?(e.consume(j),a=2,y):j===91?(e.consume(j),a=5,s=0,S):ms(j)?(e.consume(j),a=4,r.interrupt?t:P):n(j)}function y(j){return j===45?(e.consume(j),r.interrupt?t:P):n(j)}function S(j){const Y="CDATA[";return j===Y.charCodeAt(s++)?(e.consume(j),s===Y.length?r.interrupt?t:F:S):n(j)}function C(j){return ms(j)?(e.consume(j),l=String.fromCharCode(j),w):n(j)}function w(j){if(j===null||j===47||j===62||mi(j)){const Y=j===47,ne=l.toLowerCase();return!Y&&!o&&A5.includes(ne)?(a=1,r.interrupt?t(j):F(j)):Qte.includes(l.toLowerCase())?(a=6,Y?(e.consume(j),E):r.interrupt?t(j):F(j)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):o?$(j):O(j))}return j===45||Pi(j)?(e.consume(j),l+=String.fromCharCode(j),w):n(j)}function E(j){return j===62?(e.consume(j),r.interrupt?t:F):n(j)}function $(j){return Cr(j)?(e.consume(j),$):L(j)}function O(j){return j===47?(e.consume(j),L):j===58||j===95||ms(j)?(e.consume(j),N):Cr(j)?(e.consume(j),O):L(j)}function N(j){return j===45||j===46||j===58||j===95||Pi(j)?(e.consume(j),N):I(j)}function I(j){return j===61?(e.consume(j),R):Cr(j)?(e.consume(j),I):O(j)}function R(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),d=j,_):Cr(j)?(e.consume(j),R):z(j)}function _(j){return j===d?(e.consume(j),d=null,D):j===null||Nn(j)?n(j):(e.consume(j),_)}function z(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||mi(j)?I(j):(e.consume(j),z)}function D(j){return j===47||j===62||Cr(j)?O(j):n(j)}function L(j){return j===62?(e.consume(j),B):n(j)}function B(j){return j===null||Nn(j)?F(j):Cr(j)?(e.consume(j),B):n(j)}function F(j){return j===45&&a===2?(e.consume(j),V):j===60&&a===1?(e.consume(j),W):j===62&&a===4?(e.consume(j),K):j===63&&a===3?(e.consume(j),P):j===93&&a===5?(e.consume(j),X):Nn(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Jte,J,H)(j)):j===null||Nn(j)?(e.exit("htmlFlowData"),H(j)):(e.consume(j),F)}function H(j){return e.check(ene,k,J)(j)}function k(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),q}function q(j){return j===null||Nn(j)?H(j):(e.enter("htmlFlowData"),F(j))}function V(j){return j===45?(e.consume(j),P):F(j)}function W(j){return j===47?(e.consume(j),l="",G):F(j)}function G(j){if(j===62){const Y=l.toLowerCase();return A5.includes(Y)?(e.consume(j),K):F(j)}return ms(j)&&l.length<8?(e.consume(j),l+=String.fromCharCode(j),G):F(j)}function X(j){return j===93?(e.consume(j),P):F(j)}function P(j){return j===62?(e.consume(j),K):j===45&&a===2?(e.consume(j),P):F(j)}function K(j){return j===null||Nn(j)?(e.exit("htmlFlowData"),J(j)):(e.consume(j),K)}function J(j){return e.exit("htmlFlow"),t(j)}}function rne(e,t,n){const r=this;return a;function a(l){return Nn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function ane(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Wb,t,n)}}const one={name:"htmlText",tokenize:ine};function ine(e,t,n){const r=this;let a,o,l;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),I):P===63?(e.consume(P),O):ms(P)?(e.consume(P),z):n(P)}function f(P){return P===45?(e.consume(P),m):P===91?(e.consume(P),o=0,S):ms(P)?(e.consume(P),$):n(P)}function m(P){return P===45?(e.consume(P),y):n(P)}function h(P){return P===null?n(P):P===45?(e.consume(P),v):Nn(P)?(l=h,W(P)):(e.consume(P),h)}function v(P){return P===45?(e.consume(P),y):h(P)}function y(P){return P===62?V(P):P===45?v(P):h(P)}function S(P){const K="CDATA[";return P===K.charCodeAt(o++)?(e.consume(P),o===K.length?C:S):n(P)}function C(P){return P===null?n(P):P===93?(e.consume(P),w):Nn(P)?(l=C,W(P)):(e.consume(P),C)}function w(P){return P===93?(e.consume(P),E):C(P)}function E(P){return P===62?V(P):P===93?(e.consume(P),E):C(P)}function $(P){return P===null||P===62?V(P):Nn(P)?(l=$,W(P)):(e.consume(P),$)}function O(P){return P===null?n(P):P===63?(e.consume(P),N):Nn(P)?(l=O,W(P)):(e.consume(P),O)}function N(P){return P===62?V(P):O(P)}function I(P){return ms(P)?(e.consume(P),R):n(P)}function R(P){return P===45||Pi(P)?(e.consume(P),R):_(P)}function _(P){return Nn(P)?(l=_,W(P)):Cr(P)?(e.consume(P),_):V(P)}function z(P){return P===45||Pi(P)?(e.consume(P),z):P===47||P===62||mi(P)?D(P):n(P)}function D(P){return P===47?(e.consume(P),V):P===58||P===95||ms(P)?(e.consume(P),L):Nn(P)?(l=D,W(P)):Cr(P)?(e.consume(P),D):V(P)}function L(P){return P===45||P===46||P===58||P===95||Pi(P)?(e.consume(P),L):B(P)}function B(P){return P===61?(e.consume(P),F):Nn(P)?(l=B,W(P)):Cr(P)?(e.consume(P),B):D(P)}function F(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,H):Nn(P)?(l=F,W(P)):Cr(P)?(e.consume(P),F):(e.consume(P),k)}function H(P){return P===a?(e.consume(P),a=void 0,q):P===null?n(P):Nn(P)?(l=H,W(P)):(e.consume(P),H)}function k(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||mi(P)?D(P):(e.consume(P),k)}function q(P){return P===47||P===62||mi(P)?D(P):n(P)}function V(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function W(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),G}function G(P){return Cr(P)?Xr(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):X(P)}function X(P){return e.enter("htmlTextData"),l(P)}}const l4={name:"labelEnd",resolveAll:une,resolveTo:dne,tokenize:fne},lne={tokenize:mne},sne={tokenize:pne},cne={tokenize:gne};function une(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Ss(e,0,e.length,n),e}function dne(e,t){let n=e.length,r=0,a,o,l,s;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},m={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",d,t],["enter",f,t]],s=Qi(s,e.slice(o+1,o+r+3)),s=Qi(s,[["enter",m,t]]),s=Qi(s,i4(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),s=Qi(s,[["exit",m,t],e[l-2],e[l-1],["exit",f,t]]),s=Qi(s,e.slice(l+1)),s=Qi(s,[["exit",d,t]]),Ss(e,o,e.length,s),e}function fne(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return s;function s(v){return o?o._inactive?h(v):(l=r.parser.defined.includes(Wm(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):n(v)}function d(v){return v===40?e.attempt(lne,m,l?m:h)(v):v===91?e.attempt(sne,m,l?f:h)(v):l?m(v):h(v)}function f(v){return e.attempt(cne,m,h)(v)}function m(v){return t(v)}function h(v){return o._balanced=!0,n(v)}}function mne(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return mi(h)?Oh(e,o)(h):o(h)}function o(h){return h===41?m(h):fN(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function l(h){return mi(h)?Oh(e,d)(h):m(h)}function s(h){return n(h)}function d(h){return h===34||h===39||h===40?pN(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):m(h)}function f(h){return mi(h)?Oh(e,m)(h):m(h)}function m(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function pne(e,t,n){const r=this;return a;function a(s){return mN.call(r,e,o,l,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Wm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function l(s){return n(s)}}function gne(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const hne={name:"labelStartImage",resolveAll:l4.resolveAll,tokenize:vne};function vne(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):n(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const yne={name:"labelStartLink",resolveAll:l4.resolveAll,tokenize:bne};function bne(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const gS={name:"lineEnding",tokenize:xne};function xne(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Xr(e,t,"linePrefix")}}const Sy={name:"thematicBreak",tokenize:Sne};function Sne(e,t,n){let r=0,a;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,s(f)}function s(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Nn(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),Cr(f)?Xr(e,s,"whitespace")(f):s(f))}}const ui={continuation:{tokenize:$ne},exit:Mne,name:"list",tokenize:Ene},Cne={partial:!0,tokenize:Rne},wne={partial:!0,tokenize:One};function Ene(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return s;function s(y){const S=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:iw(y)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Sy,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return iw(y)&&++l<10?(e.consume(y),d):(!r.interrupt||l<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Wb,r.interrupt?n:m,e.attempt(Cne,v,h))}function m(y){return r.containerState.initialBlankLine=!0,o++,v(y)}function h(y){return Cr(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),v):n(y)}function v(y){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function $ne(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wb,a,o);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xr(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Cr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(wne,t,l)(s))}function l(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xr(e,e.attempt(ui,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function One(e,t,n){const r=this;return Xr(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Mne(e){e.exit(this.containerState.type)}function Rne(e,t,n){const r=this;return Xr(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!Cr(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const P5={name:"setextUnderline",resolveTo:Nne,tokenize:Tne};function Nne(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Tne(e,t,n){const r=this;let a;return o;function o(f){let m=r.events.length,h;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){h=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),s(f)}function s(f){return f===a?(e.consume(f),s):(e.exit("setextHeadingLineSequence"),Cr(f)?Xr(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Nn(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const Ine={tokenize:_ne};function _ne(e){const t=this,n=e.attempt(Wb,r,e.attempt(this.parser.constructs.flowInitial,a,Xr(e,e.attempt(this.parser.constructs.flow,a,e.attempt(jte,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ane={resolveAll:hN()},Pne=gN("string"),zne=gN("text");function gN(e){return{resolveAll:hN(e==="text"?Dne:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,s);return l;function l(m){return f(m)?o(m):s(m)}function s(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return f(m)?(n.exit("data"),o(m)):(n.consume(m),d)}function f(m){if(m===null)return!0;const h=a[m];let v=-1;if(h)for(;++v<h.length;){const y=h[v];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function hN(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function Dne(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,l=-1,s=0,d;for(;o--;){const f=a[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(f===-2)d=!0,s++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const f={type:n===e.length||d||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const jne={42:ui,43:ui,45:ui,48:ui,49:ui,50:ui,51:ui,52:ui,53:ui,54:ui,55:ui,56:ui,57:ui,62:sN},kne={91:Hte},Lne={[-2]:pS,[-1]:pS,32:pS},Bne={35:Gte,42:Sy,45:[P5,Sy],60:Zte,61:P5,95:Sy,96:_5,126:_5},Fne={38:uN,92:cN},Hne={[-5]:gS,[-4]:gS,[-3]:gS,33:hne,38:uN,42:lw,60:[yte,one],91:yne,92:[Ute,cN],93:l4,95:lw,96:Ite},Vne={null:[lw,Ane]},Kne={null:[42,95]},Wne={null:[]},Une=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Kne,contentInitial:kne,disable:Wne,document:jne,flow:Bne,flowInitial:Lne,insideSpan:Vne,string:Fne,text:Hne},Symbol.toStringTag,{value:"Module"}));function qne(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let l=[],s=[];const d={attempt:_(I),check:_(R),consume:$,enter:O,exit:N,interrupt:_(R,{interrupt:!0})},f={code:null,containerState:{},defineSkip:C,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:y,write:h};let m=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function h(B){return l=Qi(l,B),w(),l[l.length-1]!==null?[]:(z(t,0),f.events=i4(o,f.events,f),f.events)}function v(B,F){return Xne(y(B),F)}function y(B){return Gne(l,B)}function S(){const{_bufferIndex:B,_index:F,line:H,column:k,offset:q}=r;return{_bufferIndex:B,_index:F,line:H,column:k,offset:q}}function C(B){a[B.line]=B.column,L()}function w(){let B;for(;r._index<l.length;){const F=l[r._index];if(typeof F=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<F.length;)E(F.charCodeAt(r._bufferIndex));else E(F)}}function E(B){m=m(B)}function $(B){Nn(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,L()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=B}function O(B,F){const H=F||{};return H.type=B,H.start=S(),f.events.push(["enter",H,f]),s.push(H),H}function N(B){const F=s.pop();return F.end=S(),f.events.push(["exit",F,f]),F}function I(B,F){z(B,F.from)}function R(B,F){F.restore()}function _(B,F){return H;function H(k,q,V){let W,G,X,P;return Array.isArray(k)?J(k):"tokenize"in k?J([k]):K(k);function K(se){return de;function de(pe){const Ce=pe!==null&&se[pe],he=pe!==null&&se.null,me=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(he)?he:he?[he]:[]];return J(me)(pe)}}function J(se){return W=se,G=0,se.length===0?V:j(se[G])}function j(se){return de;function de(pe){return P=D(),X=se,se.partial||(f.currentConstruct=se),se.name&&f.parser.constructs.disable.null.includes(se.name)?ne():se.tokenize.call(F?Object.assign(Object.create(f),F):f,d,Y,ne)(pe)}}function Y(se){return B(X,P),q}function ne(se){return P.restore(),++G<W.length?j(W[G]):V}}}function z(B,F){B.resolveAll&&!o.includes(B)&&o.push(B),B.resolve&&Ss(f.events,F,f.events.length-F,B.resolve(f.events.slice(F),f)),B.resolveTo&&(f.events=B.resolveTo(f.events,f))}function D(){const B=S(),F=f.previous,H=f.currentConstruct,k=f.events.length,q=Array.from(s);return{from:k,restore:V};function V(){r=B,f.previous=F,f.currentConstruct=H,f.events.length=k,s=q,L()}}function L(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Gne(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function Xne(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=` `;break}case-3:{l=`\r `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function Yne(e){const r={constructs:rte([Une,...(e||{}).extensions||[]]),content:a(dte),defined:[],document:a(mte),flow:a(Ine),lazy:{},string:a(Pne),text:a(zne)};return r;function a(o){return l;function l(s){return qne(r,o,s)}}}function Qne(e){for(;!dN(e););return e}const z5=/[\0\t\n\r]/g;function Zne(){let e=1,t="",n=!0,r;return a;function a(o,l,s){const d=[];let f,m,h,v,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(z5.lastIndex=h,f=z5.exec(o),v=f&&f.index!==void 0?f.index:o.length,y=o.charCodeAt(v),!f){t=o.slice(h);break}if(y===10&&h===v&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),h<v&&(d.push(o.slice(h,v)),e+=v-h),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}h=v+1}return s&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const Jne=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ere(e){return e.replace(Jne,tre)}function tre(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return lN(n.slice(o?2:1),o?16:10)}return o4(n)||e}const vN={}.hasOwnProperty;function nre(e,t,n){return typeof t!="string"&&(n=t,t=void 0),rre(n)(Qne(Yne(n).document().write(Zne()(e,t,!0))))}function rre(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ue),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(Oe),blockQuote:o(he),characterEscape:D,characterReference:D,codeFenced:o(me),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(me,l),codeText:o(be,l),codeTextData:D,data:D,codeFlowValue:D,definition:o(fe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ge),hardBreakEscape:o(Ne),hardBreakTrailing:o(Ne),htmlFlow:o(je,l),htmlFlowData:D,htmlText:o(je,l),htmlTextData:D,image:o(Te),label:l,link:o(Ue),listItem:o(ze),listItemValue:v,listOrdered:o(qe,h),listUnordered:o(qe),paragraph:o(Ve),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Oe),strong:o(Be),thematicBreak:o(ye)},exit:{atxHeading:d(),atxHeadingSequence:I,autolink:d(),autolinkEmail:Ce,autolinkProtocol:pe,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:se,characterReference:de,codeFenced:d(w),codeFencedFence:C,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:L,codeIndented:d(E),codeText:d(q),codeTextData:L,data:L,definition:d(),definitionDestinationString:N,definitionLabelString:$,definitionTitleString:O,emphasis:d(),hardBreakEscape:d(F),hardBreakTrailing:d(F),htmlFlow:d(H),htmlFlowData:L,htmlText:d(k),htmlTextData:L,image:d(W),label:X,labelText:G,lineEnding:B,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Y,resourceDestinationString:P,resourceTitleString:K,resource:J,setextHeading:d(z),setextHeadingLineSequence:_,setextHeadingText:R,strong:d(),thematicBreak:d()}};yN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(oe){let we={type:"root",children:[]};const Fe={stack:[we],tokenStack:[],config:t,enter:s,exit:f,buffer:l,resume:m,data:n},xe=[];let _e=-1;for(;++_e<oe.length;)if(oe[_e][1].type==="listOrdered"||oe[_e][1].type==="listUnordered")if(oe[_e][0]==="enter")xe.push(_e);else{const rt=xe.pop();_e=a(oe,rt,_e)}for(_e=-1;++_e<oe.length;){const rt=t[oe[_e][0]];vN.call(rt,oe[_e][1].type)&&rt[oe[_e][1].type].call(Object.assign({sliceSerialize:oe[_e][2].sliceSerialize},Fe),oe[_e][1])}if(Fe.tokenStack.length>0){const rt=Fe.tokenStack[Fe.tokenStack.length-1];(rt[1]||D5).call(Fe,void 0,rt[0])}for(we.position={start:Qc(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Qc(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<t.transforms.length;)we=t.transforms[_e](we)||we;return we}function a(oe,we,Fe){let xe=we-1,_e=-1,rt=!1,lt,ut,tt,mt;for(;++xe<=Fe;){const at=oe[xe];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?_e++:_e--,mt=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(lt&&!mt&&!_e&&!tt&&(tt=xe),mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mt=void 0}if(!_e&&at[0]==="enter"&&at[1].type==="listItemPrefix"||_e===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(lt){let gt=xe;for(ut=void 0;gt--;){const Nt=oe[gt];if(Nt[1].type==="lineEnding"||Nt[1].type==="lineEndingBlank"){if(Nt[0]==="exit")continue;ut&&(oe[ut][1].type="lineEndingBlank",rt=!0),Nt[1].type="lineEnding",ut=gt}else if(!(Nt[1].type==="linePrefix"||Nt[1].type==="blockQuotePrefix"||Nt[1].type==="blockQuotePrefixWhitespace"||Nt[1].type==="blockQuoteMarker"||Nt[1].type==="listItemIndent"))break}tt&&(!ut||tt<ut)&&(lt._spread=!0),lt.end=Object.assign({},ut?oe[ut][1].start:at[1].end),oe.splice(ut||xe,0,["exit",lt,at[2]]),xe++,Fe++}if(at[1].type==="listItemPrefix"){const gt={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};lt=gt,oe.splice(xe,0,["enter",gt,at[2]]),xe++,Fe++,tt=void 0,mt=!0}}}return oe[we][1]._spread=rt,Fe}function o(oe,we){return Fe;function Fe(xe){s.call(this,oe(xe),xe),we&&we.call(this,xe)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(oe,we,Fe){this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([we,Fe||void 0]),oe.position={start:Qc(we.start),end:void 0}}function d(oe){return we;function we(Fe){oe&&oe.call(this,Fe),f.call(this,Fe)}}function f(oe,we){const Fe=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==oe.type&&(we?we.call(this,oe,xe[0]):(xe[1]||D5).call(this,oe,xe[0]));else throw new Error("Cannot close `"+oe.type+"` ("+$h({start:oe.start,end:oe.end})+"): it’s not open");Fe.position.end=Qc(oe.end)}function m(){return tte(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function v(oe){if(this.data.expectingFirstListItemValue){const we=this.stack[this.stack.length-2];we.start=Number.parseInt(this.sliceSerialize(oe),10),this.data.expectingFirstListItemValue=void 0}}function y(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.lang=oe}function S(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.meta=oe}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.value=oe.replace(/(\r?\n|\r)$/g,"")}function $(oe){const we=this.resume(),Fe=this.stack[this.stack.length-1];Fe.label=we,Fe.identifier=Wm(this.sliceSerialize(oe)).toLowerCase()}function O(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.title=oe}function N(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.url=oe}function I(oe){const we=this.stack[this.stack.length-1];if(!we.depth){const Fe=this.sliceSerialize(oe).length;we.depth=Fe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function _(oe){const we=this.stack[this.stack.length-1];we.depth=this.sliceSerialize(oe).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function D(oe){const Fe=this.stack[this.stack.length-1].children;let xe=Fe[Fe.length-1];(!xe||xe.type!=="text")&&(xe=De(),xe.position={start:Qc(oe.start),end:void 0},Fe.push(xe)),this.stack.push(xe)}function L(oe){const we=this.stack.pop();we.value+=this.sliceSerialize(oe),we.position.end=Qc(oe.end)}function B(oe){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Fe=we.children[we.children.length-1];Fe.position.end=Qc(oe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(we.type)&&(D.call(this,oe),L.call(this,oe))}function F(){this.data.atHardBreak=!0}function H(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.value=oe}function k(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.value=oe}function q(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.value=oe}function V(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=we,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function W(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=we,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function G(oe){const we=this.sliceSerialize(oe),Fe=this.stack[this.stack.length-2];Fe.label=ere(we),Fe.identifier=Wm(we).toLowerCase()}function X(){const oe=this.stack[this.stack.length-1],we=this.resume(),Fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Fe.type==="link"){const xe=oe.children;Fe.children=xe}else Fe.alt=we}function P(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.url=oe}function K(){const oe=this.resume(),we=this.stack[this.stack.length-1];we.title=oe}function J(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function Y(oe){const we=this.resume(),Fe=this.stack[this.stack.length-1];Fe.label=we,Fe.identifier=Wm(this.sliceSerialize(oe)).toLowerCase(),this.data.referenceType="full"}function ne(oe){this.data.characterReferenceType=oe.type}function se(oe){const we=this.sliceSerialize(oe),Fe=this.data.characterReferenceType;let xe;Fe?(xe=lN(we,Fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=o4(we);const _e=this.stack[this.stack.length-1];_e.value+=xe}function de(oe){const we=this.stack.pop();we.position.end=Qc(oe.end)}function pe(oe){L.call(this,oe);const we=this.stack[this.stack.length-1];we.url=this.sliceSerialize(oe)}function Ce(oe){L.call(this,oe);const we=this.stack[this.stack.length-1];we.url="mailto:"+this.sliceSerialize(oe)}function he(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ge(){return{type:"emphasis",children:[]}}function Oe(){return{type:"heading",depth:0,children:[]}}function Ne(){return{type:"break"}}function je(){return{type:"html",value:""}}function Te(){return{type:"image",title:null,url:"",alt:null}}function Ue(){return{type:"link",title:null,url:"",children:[]}}function qe(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function ze(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function Ve(){return{type:"paragraph",children:[]}}function Be(){return{type:"strong",children:[]}}function De(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}function Qc(e){return{line:e.line,column:e.column,offset:e.offset}}function yN(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?yN(e,r):are(e,r)}}function are(e,t){let n;for(n in t)if(vN.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function D5(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$h({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$h({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$h({start:t.start,end:t.end})+") is still open")}function ore(e){const t=this;t.parser=n;function n(r){return nre(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ire(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lre(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` `}]}function sre(e,t){const n=t.value?t.value+` `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function cre(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ure(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dre(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=yp(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,s+=1,e.footnoteCounts.set(r,s);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function fre(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mre(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function pre(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bN(e,t);const a={src:yp(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function gre(e,t){const n={src:yp(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function hre(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function vre(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bN(e,t);const a={href:yp(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function yre(e,t){const n={href:yp(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bre(e,t,n){const r=e.all(t),a=n?xre(n):xN(t),o={},l=[];if(typeof t.checked=="boolean"){const m=r[0];let h;m&&m.type==="element"&&m.tagName==="p"?h=m:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const m=r[s];(a||s!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:` `}),m.type==="element"&&m.tagName==="p"&&!a?l.push(...m.children):l.push(m)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:` `});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function xre(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=xN(n[r])}return t}function xN(e){const t=e.spread;return t??e.children.length>1}function Sre(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Cre(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wre(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ere(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $re(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=t4(t.children[1]),d=eN(t.children[t.children.length-1]);s&&d&&(l.position={start:s,end:d}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function Ore(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:t.children.length;let d=-1;const f=[];for(;++d<s;){const h=t.children[d],v={},y=l?l[d]:void 0;y&&(v.align=y);let S={type:"element",tagName:o,properties:v,children:[]};h&&(S.children=e.all(h),e.patch(h,S),S=e.applyData(h,S)),f.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function Mre(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const j5=9,k5=32;function Rre(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(L5(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(L5(t.slice(a),a>0,!1)),o.join("")}function L5(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===j5||o===k5;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===j5||o===k5;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Nre(e,t){const n={type:"text",value:Rre(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Tre(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ire={blockquote:ire,break:lre,code:sre,delete:cre,emphasis:ure,footnoteReference:dre,heading:fre,html:mre,imageReference:pre,image:gre,inlineCode:hre,linkReference:vre,link:yre,listItem:bre,list:Sre,paragraph:Cre,root:wre,strong:Ere,table:$re,tableCell:Mre,tableRow:Ore,text:Nre,thematicBreak:Tre,toml:X1,yaml:X1,definition:X1,footnoteDefinition:X1};function X1(){}const SN=-1,Ub=0,Mh=1,Yy=2,s4=3,c4=4,u4=5,d4=6,CN=7,wN=8,B5=typeof self=="object"?self:globalThis,_re=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case Ub:case SN:return n(l,a);case Mh:{const s=n([],a);for(const d of l)s.push(r(d));return s}case Yy:{const s=n({},a);for(const[d,f]of l)s[r(d)]=r(f);return s}case s4:return n(new Date(l),a);case c4:{const{source:s,flags:d}=l;return n(new RegExp(s,d),a)}case u4:{const s=n(new Map,a);for(const[d,f]of l)s.set(r(d),r(f));return s}case d4:{const s=n(new Set,a);for(const d of l)s.add(r(d));return s}case CN:{const{name:s,message:d}=l;return n(new B5[s](d),a)}case wN:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new B5[o](l),a)};return r},F5=e=>_re(new Map,e)(0),Rm="",{toString:Are}={},{keys:Pre}=Object,lh=e=>{const t=typeof e;if(t!=="object"||!e)return[Ub,t];const n=Are.call(e).slice(8,-1);switch(n){case"Array":return[Mh,Rm];case"Object":return[Yy,Rm];case"Date":return[s4,Rm];case"RegExp":return[c4,Rm];case"Map":return[u4,Rm];case"Set":return[d4,Rm];case"DataView":return[Mh,n]}return n.includes("Array")?[Mh,n]:n.includes("Error")?[CN,n]:[Yy,n]},Y1=([e,t])=>e===Ub&&(t==="function"||t==="symbol"),zre=(e,t,n,r)=>{const a=(l,s)=>{const d=r.push(l)-1;return n.set(s,d),d},o=l=>{if(n.has(l))return n.get(l);let[s,d]=lh(l);switch(s){case Ub:{let m=l;switch(d){case"bigint":s=wN,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([SN],l)}return a([s,m],l)}case Mh:{if(d){let v=l;return d==="DataView"?v=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(l)),a([d,[...v]],l)}const m=[],h=a([s,m],l);for(const v of l)m.push(o(v));return h}case Yy:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const m=[],h=a([s,m],l);for(const v of Pre(l))(e||!Y1(lh(l[v])))&&m.push([o(v),o(l[v])]);return h}case s4:return a([s,l.toISOString()],l);case c4:{const{source:m,flags:h}=l;return a([s,{source:m,flags:h}],l)}case u4:{const m=[],h=a([s,m],l);for(const[v,y]of l)(e||!(Y1(lh(v))||Y1(lh(y))))&&m.push([o(v),o(y)]);return h}case d4:{const m=[],h=a([s,m],l);for(const v of l)(e||!Y1(lh(v)))&&m.push(o(v));return h}}const{message:f}=l;return a([s,{name:d,message:f}],l)};return o},H5=(e,{json:t,lossy:n}={})=>{const r=[];return zre(!(t||n),!!t,new Map,r)(e),r},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F5(H5(e,t)):structuredClone(e):(e,t)=>F5(H5(e,t));function Dre(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function jre(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kre(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dre,r=e.options.footnoteBackLabel||jre,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const m=e.all(f),h=String(f.identifier).toUpperCase(),v=yp(h.toLowerCase());let y=0;const S=[],C=e.footnoteCounts.get(h);for(;C!==void 0&&++y<=C;){S.length>0&&S.push({type:"text",value:" "});let $=typeof n=="string"?n:n(d,y);typeof $=="string"&&($={type:"text",value:$}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const w=m[m.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const $=w.children[w.children.length-1];$&&$.type==="text"?$.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...S)}else m.push(...S);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(f,E),s.push(E)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Qy(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` `}]}}const EN=(function(e){if(e==null)return Hre;if(typeof e=="function")return qb(e);if(typeof e=="object")return Array.isArray(e)?Lre(e):Bre(e);if(typeof e=="string")return Fre(e);throw new Error("Expected function, string, or object as test")});function Lre(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=EN(e[n]);return qb(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Bre(e){const t=e;return qb(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function Fre(e){return qb(t);function t(n){return n&&n.type===e}}function qb(e){return t;function t(n,r,a){return!!(Vre(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Hre(){return!0}function Vre(e){return e!==null&&typeof e=="object"&&"type"in e}const $N=[],Kre=!0,V5=!1,Wre="skip";function Ure(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=EN(a),l=r?-1:1;s(e,void 0,[])();function s(d,f,m){const h=d&&typeof d=="object"?d:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return v;function v(){let y=$N,S,C,w;if((!t||o(d,f,m[m.length-1]||void 0))&&(y=qre(n(d,m)),y[0]===V5))return y;if("children"in d&&d.children){const E=d;if(E.children&&y[0]!==Wre)for(C=(r?E.children.length:-1)+l,w=m.concat(E);C>-1&&C<E.children.length;){const $=E.children[C];if(S=s($,C,w)(),S[0]===V5)return S;C=typeof S[1]=="number"?S[1]:C+l}}return y}}}function qre(e){return Array.isArray(e)?e:typeof e=="number"?[Kre,e]:e==null?$N:[e]}function ON(e,t,n,r){let a,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,a=n):(o=t,l=n,a=r),Ure(e,o,s,a);function s(d,f){const m=f[f.length-1],h=m?m.children.indexOf(d):void 0;return l(d,h,m)}}const sw={}.hasOwnProperty,Gre={};function Xre(e,t){const n=t||Gre,r=new Map,a=new Map,o=new Map,l={...Ire,...n.handlers},s={all:f,applyData:Qre,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:l,one:d,options:n,patch:Yre,wrap:Jre};return ON(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const h=m.type==="definition"?r:a,v=String(m.identifier).toUpperCase();h.has(v)||h.set(v,m)}}),s;function d(m,h){const v=m.type,y=s.handlers[v];if(sw.call(s.handlers,v)&&y)return y(s,m,h);if(s.options.passThrough&&s.options.passThrough.includes(v)){if("children"in m){const{children:C,...w}=m,E=Qy(w);return E.children=s.all(m),E}return Qy(m)}return(s.options.unknownHandler||Zre)(s,m,h)}function f(m){const h=[];if("children"in m){const v=m.children;let y=-1;for(;++y<v.length;){const S=s.one(v[y],m);if(S){if(y&&v[y-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=K5(S.value)),!Array.isArray(S)&&S.type==="element")){const C=S.children[0];C&&C.type==="text"&&(C.value=K5(C.value))}Array.isArray(S)?h.push(...S):h.push(S)}}}return h}}function Yre(e,t){e.position&&(t.position=Aee(e))}function Qre(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Qy(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Zre(e,t){const n=t.data||{},r="value"in t&&!(sw.call(n,"hProperties")||sw.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Jre(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` `});++r<e.length;)r&&n.push({type:"text",value:` `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` `}),n}function K5(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function W5(e,t){const n=Xre(e,t),r=n.one(e,void 0),a=kre(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:` `},a),o}function eae(e,t){return e&&"run"in e?async function(n,r){const a=W5(n,{file:r,...t});await e.run(a,r)}:function(n,r){return W5(n,{file:r,...e||t})}}function U5(e){if(e)throw e}var hS,q5;function tae(){if(q5)return hS;q5=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!h)return!1;var v;for(v in f);return typeof v>"u"||e.call(f,v)},l=function(f,m){n&&m.name==="__proto__"?n(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},s=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(r)return r(f,m).value}else return;return f[m]};return hS=function d(){var f,m,h,v,y,S,C=arguments[0],w=1,E=arguments.length,$=!1;for(typeof C=="boolean"&&($=C,C=arguments[1]||{},w=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});w<E;++w)if(f=arguments[w],f!=null)for(m in f)h=s(C,m),v=s(f,m),C!==v&&($&&v&&(o(v)||(y=a(v)))?(y?(y=!1,S=h&&a(h)?h:[]):S=h&&o(h)?h:{},l(C,{name:m,newValue:d($,S,v)})):typeof v<"u"&&l(C,{name:m,newValue:v}));return C},hS}var nae=tae();const vS=ac(nae);function cw(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rae(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...a);function s(d,...f){const m=e[++o];let h=-1;if(d){l(d);return}for(;++h<a.length;)(f[h]===null||f[h]===void 0)&&(f[h]=a[h]);a=f,m?aae(m,s)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function aae(e,t){let n;return r;function r(...l){const s=e.length>l.length;let d;s&&l.push(a);try{d=e.apply(this,l)}catch(f){const m=f;if(s&&n)throw m;return a(m)}s||(d&&d.then&&typeof d.then=="function"?d.then(o,a):d instanceof Error?a(d):o(d))}function a(l,...s){n||(n=!0,t(l,...s))}function o(l){a(null,l)}}const us={basename:oae,dirname:iae,extname:lae,join:sae,sep:"/"};function oae(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pv(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function iae(e){if(pv(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function lae(e){pv(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),s===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function sae(...e){let t=-1,n;for(;++t<e.length;)pv(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cae(n)}function cae(e){pv(e);const t=e.codePointAt(0)===47;let n=uae(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uae(e,t){let n="",r=0,a=-1,o=0,l=-1,s,d;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else s===46&&o>-1?o++:o=-1}return n}function pv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dae={cwd:fae};function fae(){return"/"}function uw(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mae(e){if(typeof e=="string")e=new URL(e);else if(!uw(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pae(e)}function pae(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const yS=["history","path","basename","stem","extname","dirname"];class MN{constructor(t){let n;t?uw(t)?n={path:t}:typeof t=="string"||gae(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dae.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<yS.length;){const o=yS[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)yS.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?us.basename(this.path):void 0}set basename(t){xS(t,"basename"),bS(t,"basename"),this.path=us.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?us.dirname(this.path):void 0}set dirname(t){G5(this.basename,"dirname"),this.path=us.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?us.extname(this.path):void 0}set extname(t){if(bS(t,"extname"),G5(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=us.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){uw(t)&&(t=mae(t)),xS(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?us.basename(this.path,this.extname):void 0}set stem(t){xS(t,"stem"),bS(t,"stem"),this.path=us.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new To(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function bS(e,t){if(e&&e.includes(us.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+us.sep+"`")}function xS(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function G5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gae(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hae=(function(e){const r=this.constructor.prototype,a=r[e],o=function(){return a.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),vae={}.hasOwnProperty;class f4 extends hae{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rae()}copy(){const t=new f4;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(vS(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wS("data",this.frozen),this.namespace[t]=n,this):vae.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wS("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Q1(t),r=this.parser||this.Parser;return SS("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),SS("process",this.parser||this.Parser),CS("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const s=Q1(t),d=r.parse(s);r.run(d,s,function(m,h,v){if(m||!h||!v)return f(m);const y=h,S=r.stringify(y,v);xae(S)?v.value=S:v.result=S,f(m,v)});function f(m,h){m||!h?l(m):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),SS("processSync",this.parser||this.Parser),CS("processSync",this.compiler||this.Compiler),this.process(t,a),Y5("processSync","process",n),r;function a(o,l){n=!0,U5(o),r=l}}run(t,n,r){X5(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,s){const d=Q1(n);a.run(t,d,f);function f(m,h,v){const y=h||t;m?s(m):l?l(y):r(void 0,y,v)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),Y5("runSync","run",r),a;function o(l,s){U5(l),a=s,r=!0}}stringify(t,n){this.freeze();const r=Q1(n),a=this.compiler||this.Compiler;return CS("stringify",a),X5(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(wS("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...h]=f;d(m,h)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(f.plugins),f.settings&&(a.settings=vS(!0,a.settings,f.settings))}function s(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const h=f[m];o(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,m){let h=-1,v=-1;for(;++h<r.length;)if(r[h][0]===f){v=h;break}if(v===-1)r.push([f,...m]);else if(m.length>0){let[y,...S]=m;const C=r[v][1];cw(C)&&cw(y)&&(y=vS(!0,C,y)),r[v]=[f,y,...S]}}}}const yae=new f4().freeze();function SS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function CS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function X5(e){if(!cw(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Y5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Q1(e){return bae(e)?e:new MN(e)}function bae(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xae(e){return typeof e=="string"||Sae(e)}function Sae(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Cae="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Q5=[],Z5={allowDangerousHtml:!0},wae=/^(https?|ircs?|mailto|xmpp)$/i,Eae=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $ae(e){const t=Oae(e),n=Mae(e);return Rae(t.runSync(t.parse(n),n),e)}function Oae(e){const t=e.rehypePlugins||Q5,n=e.remarkPlugins||Q5,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Z5}:Z5;return yae().use(ore).use(n).use(eae,r).use(t)}function Mae(e){const t=e.children||"",n=new MN;return typeof t=="string"&&(n.value=t),n}function Rae(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,d=t.urlTransform||Nae;for(const m of Eae)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+Cae+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),ON(e,f),kee(e,{Fragment:Q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function f(m,h,v){if(m.type==="raw"&&v&&typeof h=="number")return l?v.children.splice(h,1):v.children[h]={type:"text",value:m.value},h;if(m.type==="element"){let y;for(y in mS)if(Object.hasOwn(mS,y)&&Object.hasOwn(m.properties,y)){const S=m.properties[y],C=mS[y];(C===null||C.includes(m.tagName))&&(m.properties[y]=d(String(S||""),y,m))}}if(m.type==="element"){let y=n?!n.includes(m.tagName):o?o.includes(m.tagName):!1;if(!y&&r&&typeof h=="number"&&(y=!r(m,h,v)),y&&v&&typeof h=="number")return s&&m.children?v.children.splice(h,1,...m.children):v.children.splice(h,1),h}}}function Nae(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||wae.test(e.slice(0,t))?e:""}const{TextArea:Tae}=Pn,{Text:sh,Title:Iae}=Ko,_ae=({open:e,onClose:t,value:n,globalPrompt:r,title:a,framework:o,onChange:l,placeholder:s,description:d})=>{const[f,m]=u.useState(!1),[h,v]=u.useState(n),y=u.useMemo(()=>{const S=[];return r&&S.push({key:"global",label:"重置为全局提示词",onClick:()=>v(r)}),S},[r]);return u.useEffect(()=>{v(n)},[n]),Q.jsx(qa,{open:e,onCancel:()=>{t(),v(n)},onOk:()=>{l(h),t()},width:1200,zIndex:1e10,title:Q.jsxs(to,{direction:"vertical",size:0,children:[Q.jsxs(Iae,{level:4,className:"!m-0",children:[a,"(框架:",o?.label,")"]}),d&&Q.jsx(sh,{type:"secondary",className:"text-xs",children:d})]}),okText:"完成",cancelText:"取消",styles:{body:{padding:"16px 24px"}},children:Q.jsxs("div",{className:"flex gap-6",children:[Q.jsxs("div",{className:"flex-1 flex flex-col",children:[Q.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[Q.jsx(ps,{className:"text-blue-500"}),Q.jsx(sh,{strong:!0,className:"text-sm",children:"编辑"})]}),Q.jsxs("div",{className:"flex flex-col",children:[Q.jsxs("div",{className:"relative",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[Q.jsx(Tae,{value:h,onChange:S=>v(S.target.value),placeholder:s||"请输入提示词内容,支持 Markdown 语法...",className:"relative font-mono text-sm leading-relaxed rounded-lg border border-gray-300 hover:border-blue-400 focus:border-blue-500 focus:shadow-[0_0_0_2px_rgba(24,144,255,0.1)] transition-all",style:{height:"500px",resize:"none"}}),f&&y.length>0&&Q.jsx("div",{className:"absolute top-6 right-6 z-10",children:Q.jsx(Db,{menu:{items:[{key:"1",type:"group",label:"重置",children:y}]},placement:"bottomRight",trigger:["click"],children:Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(QX,{}),className:"bg-white/90 backdrop-blur-sm border border-gray-200 shadow-sm hover:bg-white hover:shadow-md transition-all",style:{width:28,height:28}})})})]}),Q.jsxs("div",{className:"flex items-center mt-3 px-3 py-2 bg-blue-50 rounded-md border-l-[3px] border-blue-500",children:[Q.jsx(VG,{className:"text-blue-500 text-xs"}),Q.jsx(sh,{type:"secondary",className:"text-xs ml-2",children:"支持 Markdown 语法:# 标题、**粗体**、*斜体*、`代码`、列表等"})]})]})]}),Q.jsx("div",{className:"w-px bg-gray-200 self-stretch"}),Q.jsxs("div",{className:"flex-1 flex flex-col",children:[Q.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[Q.jsx(IR,{className:"text-green-500"}),Q.jsx(sh,{strong:!0,className:"text-sm",children:"预览"})]}),Q.jsx("div",{className:"h-[550px] overflow-y-auto p-4 bg-gray-50 rounded-lg border border-gray-200 scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200 hover:scrollbar-thumb-gray-500",children:h?Q.jsx("div",{className:`prose prose-sm max-w-none prose-headings:text-gray-900 prose-headings:font-semibold prose-h1:text-xl prose-h1:mt-4 prose-h1:mb-3 prose-h1:pb-2 prose-h1:border-b-2 prose-h1:border-gray-200 prose-h2:text-lg prose-h2:mt-3 prose-h2:mb-2 prose-h2:pb-1.5 prose-h2:border-b prose-h2:border-gray-200 prose-h3:text-base prose-h3:mt-3 prose-h3:mb-2 prose-h3:text-gray-800 prose-h4:text-sm prose-h4:mt-2 prose-h4:mb-1.5 prose-h4:text-gray-800 prose-p:text-gray-700 prose-p:mb-3 prose-p:leading-6 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-[0.85em] prose-code:font-mono prose-pre:bg-gray-800 prose-pre:text-gray-100 prose-pre:p-3 prose-pre:rounded-md prose-pre:overflow-x-auto prose-pre:my-3 prose-pre:whitespace-pre-wrap prose-pre:code:bg-transparent prose-pre:code:text-gray-300 prose-pre:code:p-0 prose-pre:code:border-0 prose-pre:code:text-xs prose-pre:code:leading-5 prose-pre:code:whitespace-pre-wrap prose-pre:code:break-words prose-ul:pl-6 prose-ul:mb-3 prose-ol:pl-6 prose-ol:mb-3 prose-li:mb-1 prose-li:text-gray-700 prose-li:text-sm prose-blockquote:my-3 prose-blockquote:px-3 prose-blockquote:py-2 prose-blockquote:bg-gray-100 prose-blockquote:border-l-4 prose-blockquote:border-blue-500 prose-blockquote:text-gray-600 prose-blockquote:italic prose-blockquote:text-sm prose-strong:font-semibold prose-strong:text-gray-900 prose-em:italic prose-em:text-gray-600 prose-a:text-blue-500 prose-a:no-underline hover:prose-a:text-blue-400 hover:prose-a:underline prose-a:transition-colors prose-hr:border-0 prose-hr:border-t prose-hr:border-gray-200 prose-hr:my-4 `,children:Q.jsx($ae,{children:h})}):Q.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:Q.jsx(sh,{type:"secondary",className:"text-sm",children:"暂无内容,在左侧编辑区输入提示词即可实时预览"})})})]})]})})},Aae=e=>{const t=u.useRef(null),{assets:n=[],pluginName:r="",open:a,configSettings:o,updateConfigSetting:l,onCancel:s}=e,[d,f]=u.useState(!1),[m,h]=u.useState(0);u.useEffect(()=>{a&&(h(y=>y+1),f(!1))},[a]),u.useEffect(()=>{n.length>0&&(h(y=>y+1),f(!1))},[n]);const v=()=>{f(!0)};return console.log("configSettings",o),u.useEffect(()=>{if(!a||!d||n.length===0)return;const y=t.current,S=y?.contentDocument,C=y?.contentWindow;if(!S||!C)return;const w=S.createElement("script");w.src="https://cdn.tailwindcss.com",S.head.appendChild(w),C.React=Se,C.ReactDOM=Pd,C.ReactDOMClient=VT,C.previewContainer=document.getElementById("preview-content"),C.configSetting=o,C.pluginSetting=o.pluginSetting.find(O=>O.name===r)?.config,C.updatePluginSetting=function(O){const N=o.pluginSetting.findIndex(I=>I.name===r);console.log("pluginSetting index",N,O),l?.(`pluginSetting[${N}]`,{name:r,config:O})};const E=S.createElement("div");E.id="root",E.innerHTML=` <div class="text-center">暂无配置</div> `,S.body.appendChild(E),(async()=>{try{for(const N of n)await new Promise((I,R)=>{const _=S.createElement(N.type==="css"?"link":"script");N.type==="css"?(_.rel="stylesheet",_.href=`${N.src}?pluginName=${r}`):_.src=`${N.src}?pluginName=${r}`,_.onload=()=>I(),_.onerror=()=>R(new Error(`Failed to load ${N.src}`)),N.type==="css"?S.head.appendChild(_):S.body.appendChild(_)});const O=S.createElement("script");O.innerHTML=` try { var root = document.getElementById('root'); console.log('window.SlothConfigForm', window.SlothConfigForm); if (window.SlothConfigForm) { var ConfigForm = window.SlothConfigForm.default || window.SlothConfigForm; var reactRoot = window.ReactDOMClient.createRoot(root); reactRoot.render( window.React.createElement(ConfigForm, { previewContainer: window.previewContainer, configSetting: window.configSetting, pluginSetting: window.pluginSetting, updatePluginSetting: window.updatePluginSetting }) ); } } catch (err) { console.error('Render error:', err); } `,S.body.appendChild(O)}catch(O){console.error("sandbox error:",O)}})()},[a,d,n,r]),Q.jsx(qa,{destroyOnClose:!0,open:a,onCancel:s,title:"插件配置",width:500,footer:Q.jsx(Un,{onClick:s,type:"primary",children:"好的"}),children:Q.jsx("iframe",{ref:t,onLoad:v,title:"component preview render",style:{width:"100%",height:"500px",border:"none"}},m)})},Pae=({globalConfigSetting:e,configSettings:t,updateConfigSetting:n,activeTab:r,setActiveTab:a,onFrameworkChange:o,supportSampling:l=!0})=>{const[s,d]=u.useState(!1),[f,m]=u.useState("chunkOptimizePrompt"),[h,v]=u.useState({pluginName:"",visible:!1,assets:[{type:"js",src:"http://localhost:3100/pluginRenderer"}]}),y=u.useCallback(R=>{m(R),d(!0)},[]),S=t.convertSetting.framework||e.defaultFramework||"react",C=t.promptSetting?.[f]||e.promptSetting?.[S]?.[f]||"",w=u.useMemo(()=>e.frameworks||ree,[e.frameworks]),E=u.useCallback(R=>{n("convertSetting.framework",R),o&&o(R)},[o,n]),$=u.useMemo(()=>Q.jsxs(to,{direction:"vertical",style:{width:"100%"},children:[Q.jsx(oa.Item,{label:"框架选择",children:Q.jsx(Zi,{value:S,onChange:E,options:w,optionRender:R=>Q.jsxs(to,{children:[Q.jsx("span",{children:R.label}),R.value==="kuikly"&&Q.jsx(Wo,{color:"blue",children:"Beta"})]})})}),Q.jsx(oa.Item,{label:"颜色格式",children:Q.jsx(Js.Group,{value:t.convertSetting.colorValue,onChange:R=>n("convertSetting.colorValue",R.target.value),children:lee.map(R=>Q.jsx(Js.Button,{value:R.value,children:R.label},R.value))})}),Q.jsx(oa.Item,{label:"已加载插件",children:t.pluginSetting?.map(R=>Q.jsx(Wo,{icon:Q.jsx(GX,{}),onClick:()=>v(_=>({..._,pluginName:R.name,visible:!0})),color:"#55acee",style:{marginBottom:8},children:R.name}))})]}),[S,E,w,t.convertSetting.convertScale,t.convertSetting.colorValue,n]),O=u.useMemo(()=>Q.jsxs(to,{direction:"vertical",style:{width:"100%"},children:[Q.jsx(oa.Item,{label:"存储方式",children:Q.jsx(Zi,{value:t.imageSetting.imageStorageType,onChange:R=>n("imageSetting.imageStorageType",R),options:aee})}),Q.jsx(oa.Item,{label:"默认倍率",children:Q.jsx(Zi,{value:t.imageSetting.imageStorageScale,onChange:R=>n("imageSetting.imageStorageScale",R),options:oee.map(R=>({label:`${R}倍图`,value:R}))})}),Q.jsx(oa.Item,{label:"ICON格式",children:Q.jsx(Js.Group,{value:t.imageSetting.imageIconType,onChange:R=>n("imageSetting.imageIconType",R.target.value),optionType:"button",buttonStyle:"solid",children:iee.map(R=>Q.jsx(Js.Button,{value:R.value,children:R.label},R.value))})}),Q.jsx(oa.Item,{label:"图片命名规则",children:Q.jsx(Pn,{value:t.imageSetting.imageStorageNamingRule||"[name]_[contenthash:6]",onChange:R=>n("imageSetting.imageStorageNamingRule",R.target.value),placeholder:"类似 Webpack substitutions 支持[name],[contenthash]"})}),t.imageSetting.imageStorageType==="local"&&Q.jsx(oa.Item,{label:"本地存储路径",children:Q.jsx(Pn,{value:t.imageSetting.imageStoragePath||"./static",onChange:R=>n("imageSetting.imageStoragePath",R.target.value),placeholder:"请输入图片存储的本地路径"})}),t.imageSetting.imageStorageType==="oss"&&Q.jsx(Ml,{title:"OSS 配置",bordered:!0,children:Q.jsxs(to,{direction:"vertical",style:{width:"100%"},children:[Q.jsx(Pn,{placeholder:"区域",value:t.imageSetting.ossRegion||"",onChange:R=>n("imageSetting.ossRegion",R.target.value)}),Q.jsx(Pn,{placeholder:"AccessKey ID",value:t.imageSetting.ossAccessKeyId||"",onChange:R=>n("imageSetting.ossAccessKeyId",R.target.value)}),Q.jsx(Pn.Password,{placeholder:"AccessKey Secret",value:t.imageSetting.ossAccessKeySecret||"",onChange:R=>n("imageSetting.ossAccessKeySecret",R.target.value)}),Q.jsx(Pn,{placeholder:"桶名称",value:t.imageSetting.ossBucket||"",onChange:R=>n("imageSetting.ossBucket",R.target.value)}),Q.jsx(Pn,{placeholder:"上传路径",value:t.imageSetting.ossPath||"",onChange:R=>n("imageSetting.ossPath",R.target.value)}),Q.jsx(Pn,{placeholder:"CDN 加速域名 (可选)",value:t.imageSetting.ossCdnDomain||"",onChange:R=>n("imageSetting.ossCdnDomain",R.target.value)})]})}),t.imageSetting.imageStorageType==="api"&&Q.jsx(Ml,{title:"接口上传配置",bordered:!0,children:Q.jsxs(to,{direction:"vertical",style:{width:"100%"},children:[Q.jsx(Pn,{placeholder:"上传地址",value:t.imageSetting.imageStorageApiUrl||"",onChange:R=>n("imageSetting.imageStorageApiUrl",R.target.value)}),Q.jsx(Pn,{placeholder:"文件字段名 (默认 file)",value:t.imageSetting.imageStorageApiFileField||"file",onChange:R=>n("imageSetting.imageStorageApiFileField",R.target.value)}),Q.jsx(Pn,{placeholder:"URL 字段名 (默认 url)",value:t.imageSetting.imageStorageApiUrlField||"url",onChange:R=>n("imageSetting.imageStorageApiUrlField",R.target.value)}),Q.jsx(Pn.TextArea,{placeholder:'自定义请求头 JSON 例如 {"Authorization": "Bearer token"}',value:t.imageSetting.imageStorageApiCustomHeader||"",onChange:R=>n("imageSetting.imageStorageApiCustomHeader",R.target.value),autoSize:{minRows:2,maxRows:4}}),Q.jsx(Pn.TextArea,{placeholder:'自定义请求体 JSON 例如 {"type": "image"}',value:t.imageSetting.imageStorageApiCustomBody||"",onChange:R=>n("imageSetting.imageStorageApiCustomBody",R.target.value),autoSize:{minRows:2,maxRows:4}})]})})]}),[t.imageSetting,n]),N=u.useMemo(()=>{const R=e.promptSetting?.[S]||{},_=z=>t.promptSetting?.[z]||R[z]||"";return Q.jsx(to,{direction:"vertical",style:{width:"100%"},size:"large",children:l?Q.jsxs(Q.Fragment,{children:[Q.jsxs(Ml,{hoverable:!0,onClick:()=>y("chunkOptimizePrompt"),className:"transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:shadow-lg rounded-lg cursor-pointer",children:[Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsxs(to,{children:[Q.jsx(fh,{status:_("chunkOptimizePrompt")?"success":"default"}),Q.jsx(Ko.Text,{strong:!0,children:"分块采样"})]}),Q.jsx(Un,{type:"link",icon:Q.jsx(ps,{}),onClick:z=>{z.stopPropagation(),y("chunkOptimizePrompt")},className:"!p-0 !h-auto",children:"编辑"})]}),Q.jsx(Ko.Paragraph,{type:"secondary",className:"text-xs !mt-2 !mb-0",ellipsis:{rows:2},children:_("chunkOptimizePrompt")||"用于优化单个代码分块,提升代码质量和可读性"})]}),Q.jsxs(Ml,{hoverable:!0,onClick:()=>y("aggregationOptimizePrompt"),className:"transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:shadow-lg rounded-lg cursor-pointer",children:[Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsxs(to,{children:[Q.jsx(fh,{status:_("aggregationOptimizePrompt")?"success":"default"}),Q.jsx(Ko.Text,{strong:!0,children:"聚合模块"})]}),Q.jsx(Un,{type:"link",icon:Q.jsx(ps,{}),onClick:z=>{z.stopPropagation(),y("aggregationOptimizePrompt")},className:"!p-0 !h-auto",children:"编辑"})]}),Q.jsx(Ko.Paragraph,{type:"secondary",className:"text-xs !mt-2 !mb-0",ellipsis:{rows:2},children:_("aggregationOptimizePrompt")||"用于整合多个代码分块,确保模块能正确组装页面 "})]}),Q.jsxs(Ml,{hoverable:!0,onClick:()=>y("finalOptimizePrompt"),className:"transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:shadow-lg rounded-lg cursor-pointer",children:[Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsxs(to,{children:[Q.jsx(fh,{status:_("finalOptimizePrompt")?"success":"default"}),Q.jsx(Ko.Text,{strong:!0,children:"写入优化"})]}),Q.jsx(Un,{type:"link",icon:Q.jsx(ps,{}),onClick:z=>{z.stopPropagation(),y("finalOptimizePrompt")},className:"!p-0 !h-auto",children:"编辑"})]}),Q.jsx(Ko.Paragraph,{type:"secondary",className:"text-xs !mt-2 !mb-0",ellipsis:{rows:2},children:_("finalOptimizePrompt")||"用于最终代码输出前的整体优化和检查"})]})]}):Q.jsxs(Ml,{hoverable:!0,onClick:()=>y("noSamplingAggregationPrompt"),className:"transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:shadow-lg rounded-lg cursor-pointer",children:[Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsxs(to,{children:[Q.jsx(fh,{status:_("noSamplingAggregationPrompt")?"success":"default"}),Q.jsx(Ko.Text,{strong:!0,children:"转换代码"})]}),Q.jsx(Un,{type:"link",icon:Q.jsx(ps,{}),onClick:z=>{z.stopPropagation(),y("noSamplingAggregationPrompt")},className:"!p-0 !h-auto",children:"编辑"})]}),Q.jsx(Ko.Paragraph,{type:"secondary",className:"text-xs !mt-2 !mb-0",ellipsis:{rows:2},children:_("noSamplingAggregationPrompt")||"用于优化代码分块,提升代码质量和可读性"})]})})},[t.promptSetting,e.promptSetting,S,y,l]),I=u.useMemo(()=>[{key:"convert",label:Q.jsxs("span",{children:[Q.jsx(f9,{})," 转码"]}),children:$},{key:"image",label:Q.jsxs("span",{children:[Q.jsx(HX,{})," 图片"]}),children:O},{key:"prompt",label:Q.jsxs("span",{children:[Q.jsx(XU,{})," 提示词"]}),children:N}],[$,O,N]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs(oa,{layout:"vertical",children:[Q.jsxs(oa.Item,{label:Q.jsxs("span",{children:[Q.jsx(PX,{})," Figma API Key"]}),children:[Q.jsx(Pn,{value:t.mcp.figmaApiKey||"",onChange:R=>n("mcp.figmaApiKey",R.target.value),placeholder:"请输入 Figma API Key"}),Q.jsx(Ko.Text,{type:"secondary",style:{fontSize:10},children:"用于访问 Figma API,在账户设置中生成个人令牌"})]}),Q.jsx(KW,{style:{margin:"8px 0"}}),Q.jsx(zE,{activeKey:r,onChange:R=>a(R),items:I,tabBarStyle:{marginBottom:16}})]}),Q.jsx(_ae,{open:s,onClose:()=>d(!1),title:xy[f].title,description:xy[f].description,globalPrompt:e.promptSetting?.[S]?.[f],framework:w.find(R=>R.value===S),value:C,onChange:R=>n(`promptSetting.${f}`,R),placeholder:xy[f].placeholder}),Q.jsx(Aae,{open:h.visible,pluginName:h.pluginName,onCancel:()=>v(R=>({...R,visible:!1})),configSettings:t,updateConfigSetting:n,assets:h.assets})]})};function zae(e){const{container:t,selectable:n="img",exclude:r,selectionMode:a="intersects",minOverlapRatio:o=0,overlapMetric:l="element",selectedClass:s="selected",onChange:d,preventAncestorSelection:f=!0,conflictStrategy:m,groupMode:h=!1,groupOverlayClass:v,groupColor:y,groupRandomColor:S=!1,groupColorPalette:C,multi:w=!1,combineMode:E,hoverHighlight:$=!1,hoverClass:O="hovered",onSelectionEnd:N,quickGroupOnDblClick:I=!1,quickGroupSelector:R,allowIntersectionSelection:_=!0,allowUnionSelection:z=!0,allowContainmentSelection:D=!0,toolbarButtons:L}=e,B=Array.isArray(r)?r.filter(Boolean):r?[r]:[],F=ve=>{if(!ve||!B.length)return!1;for(const Me of B)try{if(ve instanceof Element&&ve.matches(Me))return!0}catch{}return!1};if(!t)throw new Error("container is required");let H=0,k=0,q=!1,V=null,W=!1,G=new Set,X=null,P="replace",K=[],J=[],j=[],Y=[],ne=[];const se=()=>(L??[]).map(ve=>({label:ve?.label??"",title:ve?.title??""})),de=ve=>!L||L.length===0?null:(ne[ve]||(ne[ve]=se()),ne[ve]),pe=()=>`hsl(${Math.floor(Math.random()*360)}, 70%, 55%)`,Ce=()=>{if(y&&typeof y=="string")return y;if(S){if(Array.isArray(C)&&C.length>0){const ve=Math.floor(Math.random()*C.length);return C[ve]}return pe()}return"rgba(255, 165, 0, 0.9)"};let he=null;const me=[],be=[];let fe=null;const ge=ve=>{if(!ve.length)return null;const Me=new Set(ve);for(let Xe=0;Xe<K.length;Xe++){const Qe=K[Xe]||[];if(Qe.length!==Me.size)continue;let ke=!0;const Ae=new Set(Qe);if(Ae.size!==Me.size&&(ke=!1),ke){for(const He of Me)if(!Ae.has(He)){ke=!1;break}}if(ke)return Xe}return null};let Oe=null;const Ne=ve=>{const Me=!!j[ve],Xe=K[ve]||[];for(const Qe of Xe)Qe.style.visibility=Me?"hidden":""},je=(ve,Me)=>ve<0||ve>=K.length?!1:(j[ve]=Me,Ne(ve),!0);let Te=null;const Ue=ve=>{$&&(Te&&Te!==ve&&Te.classList.remove(O),ve&&Te!==ve&&ve.classList.add(O),Te=ve)},qe=()=>{const ve=document.createElement("div");return ve.style.position="fixed",ve.style.left="0px",ve.style.top="0px",ve.style.width="0px",ve.style.height="0px",ve.style.outline="1px dashed #268aff",ve.style.background="rgba(38,138,255,0.12)",ve.style.pointerEvents="none",ve.style.zIndex="2147483647",ve.style.boxSizing="border-box",document.body.appendChild(ve),ve},ze=(ve,Me)=>ve.left<Me.right&&ve.right>Me.left&&ve.top<Me.bottom&&ve.bottom>Me.top,Ve=(ve,Me)=>ve.left<=Me.left&&ve.right>=Me.right&&ve.top<=Me.top&&ve.bottom>=Me.bottom,Be=(ve,Me)=>{const Xe=Math.max(ve.left,Me.left),Qe=Math.min(ve.right,Me.right),ke=Math.max(ve.top,Me.top),Ae=Math.min(ve.bottom,Me.bottom),He=Math.max(0,Qe-Xe),Ye=Math.max(0,Ae-ke),$t=He*Ye,xt=Math.max(1,Me.width*Me.height);return $t/xt},De=(ve,Me)=>{const Xe=Math.max(ve.left,Me.left),Qe=Math.min(ve.right,Me.right),ke=Math.max(ve.top,Me.top),Ae=Math.min(ve.bottom,Me.bottom),He=Math.max(0,Qe-Xe),Ye=Math.max(0,Ae-ke),$t=He*Ye,xt=Math.max(1,ve.width*ve.height),pt=Math.max(1,Me.width*Me.height),ct=xt+pt-$t;return $t/ct},ye=(ve,Me)=>l==="iou"?De(ve,Me):Be(ve,Me),oe=(ve,Me,Xe,Qe)=>{const ke=Math.min(ve,Xe),Ae=Math.min(Me,Qe),He=Math.abs(Xe-ve),Ye=Math.abs(Qe-Me);return{left:ke,top:Ae,width:He,height:Ye}},we=ve=>{const Me=ve.map(He=>He.getBoundingClientRect()).filter(He=>He.width>0&&He.height>0);if(!Me.length)return null;const Xe=Math.min(...Me.map(He=>He.left)),Qe=Math.min(...Me.map(He=>He.top)),ke=Math.max(...Me.map(He=>He.right)),Ae=Math.max(...Me.map(He=>He.bottom));return{left:Xe,top:Qe,width:ke-Xe,height:Ae-Qe}},Fe=()=>{J.forEach(ve=>ve.remove()),J=[]},xe=()=>{if(Fe(),!h)return;const ve=[],Me=(Xe,Qe)=>Xe.left<Qe.right&&Xe.right>Qe.left&&Xe.top<Qe.bottom&&Xe.bottom>Qe.top;K.forEach((Xe,Qe)=>{const ke=we(Xe);if(!ke)return;const Ae=Y[Qe]||"rgba(255, 165, 0, 0.9)",He=document.createElement("div");He.style.position="fixed",He.style.pointerEvents="none",He.style.zIndex="2147483646",He.style.left=`${ke.left}px`,He.style.top=`${ke.top}px`,He.style.width=`${ke.width}px`,He.style.height=`${ke.height}px`,He.style.boxSizing="border-box",He.style.outline=`1px solid ${Ae}`,He.style.background="transparent",document.body.appendChild(He);const Ye=document.createElement("div");Ye.style.position="absolute",Ye.style.display="inline-flex",Ye.style.alignItems="center",Ye.style.gap="6px",Ye.style.minWidth="max-content",Ye.style.padding="2px 6px",Ye.style.fontSize="12px",Ye.style.lineHeight="16px",Ye.style.color="#fff",Ye.style.background=Ae,Ye.style.borderRadius="4px",Ye.style.pointerEvents="auto";const $t=document.createElement("span");$t.textContent=`组 ${Qe+1}`;const xt=document.createElement("button");xt.textContent=j[Qe]?"显示":"隐藏",xt.style.background="rgba(0,0,0,0.15)",xt.style.border="none",xt.style.color="#fff",xt.style.padding="2px 6px",xt.style.borderRadius="3px",xt.style.cursor="pointer",xt.onclick=ot=>{ot.stopPropagation(),je(Qe,!j[Qe]),xe(),_t()};const pt=document.createElement("button");pt.textContent="取消组",pt.style.background="rgba(0,0,0,0.15)",pt.style.border="none",pt.style.color="#fff",pt.style.padding="2px 6px",pt.style.borderRadius="3px",pt.style.cursor="pointer",pt.onclick=ot=>{ot.stopPropagation(),je(Qe,!1),lt(Qe)},Ye.appendChild($t),Ye.appendChild(xt),Ye.appendChild(pt);const ct=ot=>{const nt=ke?new DOMRect(ke.left,ke.top,ke.width,ke.height):null;if(!nt)return[];const Tt=[];return K.forEach((Mt,zt)=>{if(zt===ot)return;const jt=we(Mt);if(!jt)return;const rn=new DOMRect(jt.left,jt.top,jt.width,jt.height);ze(nt,rn)&&Tt.push(zt)}),Tt};if((()=>{if(he!==Qe)return;const ot=ct(Qe);if(ot.length===0)return;const nt=document.createElement("button");nt.textContent="合并",nt.style.background="rgba(0,0,0,0.15)",nt.style.border="none",nt.style.color="#fff",nt.style.padding="2px 6px",nt.style.borderRadius="3px",nt.style.cursor="pointer";const Tt=()=>{const Mt=Ye.querySelector(".merge-panel");Mt&&Mt.remove();const zt=document.createElement("div");zt.className="merge-panel",zt.style.position="absolute",zt.style.left="0",zt.style.top="22px",zt.style.minWidth="160px",zt.style.padding="8px",zt.style.background="#fff",zt.style.color="#333",zt.style.border="1px solid rgba(0,0,0,0.15)",zt.style.borderRadius="6px",zt.style.boxShadow="0 4px 12px rgba(0,0,0,0.15)",zt.style.pointerEvents="auto",zt.style.zIndex="2147483647";const jt=document.createElement("div");jt.textContent="选择要合并的组",jt.style.fontSize="12px",jt.style.marginBottom="6px",zt.appendChild(jt);const rn=document.createElement("div");rn.style.maxHeight="200px",rn.style.overflow="auto";const yt=[];ot.forEach(Jt=>{const un=document.createElement("label");un.style.display="flex",un.style.alignItems="center",un.style.gap="6px",un.style.fontSize="12px",un.style.margin="4px 0";const On=document.createElement("input");On.type="checkbox",On.checked=!0,On.value=String(Jt);const Qn=document.createElement("span");Qn.textContent=`组 ${Jt+1}`,un.appendChild(On),un.appendChild(Qn),rn.appendChild(un),yt.push(On)}),zt.appendChild(rn);const Ot=document.createElement("div");Ot.style.display="flex",Ot.style.gap="8px",Ot.style.marginTop="8px";const Ft=document.createElement("button");Ft.textContent="确认",Ft.style.padding="2px 8px",Ft.style.cursor="pointer";const Gt=document.createElement("button");Gt.textContent="取消",Gt.style.padding="2px 8px",Gt.style.cursor="pointer",Ot.appendChild(Ft),Ot.appendChild(Gt),zt.appendChild(Ot),Gt.onclick=Jt=>{Jt.stopPropagation(),zt.remove()},Ft.onclick=Jt=>{Jt.stopPropagation();const un=yt.filter(Bt=>Bt.checked).map(Bt=>parseInt(Bt.value,10)).filter(Bt=>!Number.isNaN(Bt));if(un.length===0){zt.remove();return}const On=new Set;(K[Qe]||[]).forEach(Bt=>On.add(Bt)),un.forEach(Bt=>{(K[Bt]||[]).forEach(gr=>On.add(gr))}),K[Qe]=Array.from(On);const Qn=[...un].sort((Bt,gr)=>gr-Bt);let Xt=Qe;Qn.forEach(Bt=>{Bt<0||Bt>=K.length||Bt===Qe||(je(Bt,!1),K.splice(Bt,1),j.splice(Bt,1),Y.splice(Bt,1),ne.length>Bt&&ne.splice(Bt,1),he!==null&&(he===Bt?he=null:he>Bt&&he--),Bt<Xt&&Xt--)}),he=Xt;const an=new Set;K.forEach(Bt=>Bt.forEach(gr=>an.add(gr))),at(an),xe(),zt.remove(),_t()},Ye.appendChild(zt)};nt.onclick=Mt=>{Mt.stopPropagation(),Tt()},Ye.appendChild(nt)})(),He.appendChild(Ye),L&&L.length){const ot=(nt,Tt)=>{const Mt=document.createElement("button"),zt=de(Qe);if(!zt)return;const jt=zt[Tt]??(zt[Tt]={label:nt.label||"按钮",title:nt.title||""}),rn=()=>{Mt.textContent=jt.label||"",Mt.title=jt.title||""};rn(),Mt.style.background="rgba(0,0,0,0.15)",Mt.style.border="none",Mt.style.color="#fff",Mt.style.padding="2px 6px",Mt.style.borderRadius="3px",Mt.style.cursor="pointer",nt.className&&(Mt.className+=(Mt.className?" ":"")+nt.className),Mt.onclick=yt=>{var Ot;yt.stopPropagation();const Ft={index:Qe,group:K[Qe]||[],controller:Oe,getSnapshot:()=>Lt(),refresh:()=>{xe(),_t()},mouseX:yt.clientX,mouseY:yt.clientY,anchorRect:Ye.getBoundingClientRect(),anchorEl:Ye,overlayEl:He,label:jt.label,title:jt.title,buttonEl:Mt},Gt=Jt=>{Object.defineProperty(Ft,Jt,{configurable:!0,get:()=>jt[Jt],set:un=>{const On=un??"";jt[Jt]!==On&&(jt[Jt]=On,rn())}})};Gt("label"),Gt("title");try{(Ot=nt.onClick)==null||Ot.call(nt,Ft)}catch{}},Ye.appendChild(Mt)};L.forEach((nt,Tt)=>ot(nt,Tt))}(()=>{const ot=["tl","tr","bl","br"],nt=Ye.style.visibility;Ye.style.visibility="hidden";const Tt=28,Mt=6;e:for(let zt=0;zt<ot.length;zt++)for(let jt=0;jt<6;jt++){Ye.style.left="",Ye.style.right="",Ye.style.top="",Ye.style.bottom="";const rn=Ye.offsetHeight||22;ot[zt]==="tl"?(Ye.style.left="0",Ye.style.top=`${-rn-Mt+jt*Tt}px`):ot[zt]==="tr"?(Ye.style.right="0",Ye.style.top=`${-rn-Mt+jt*Tt}px`):ot[zt]==="bl"?(Ye.style.left="0",Ye.style.top=`${ke.height+Mt+jt*Tt}px`):(Ye.style.right="0",Ye.style.top=`${ke.height+Mt+jt*Tt}px`);const yt=Ye.getBoundingClientRect(),Ot={left:yt.left,top:yt.top,right:yt.right,bottom:yt.bottom};let Ft=!1;for(const Gt of ve)if(Me(Ot,Gt)){Ft=!0;break}if(!Ft){ve.push(Ot);break e}}Ye.style.visibility=nt})(),Ye.addEventListener("mouseenter",()=>{try{J.forEach(ot=>ot.style.zIndex="2147483646"),He.style.zIndex="2147483647"}catch{}});const dt=ot=>{const nt=document.createElement("div");nt.style.position="absolute",nt.style.pointerEvents="auto",nt.style.background="transparent",nt.style.zIndex="2147483647";const Tt=8;ot==="top"?(nt.style.cursor="ns-resize",nt.style.left="-4px",nt.style.right="-4px",nt.style.top=`-${Tt/2|0}px`,nt.style.height=`${Tt}px`):ot==="bottom"?(nt.style.cursor="ns-resize",nt.style.left="-4px",nt.style.right="-4px",nt.style.bottom=`-${Tt/2|0}px`,nt.style.height=`${Tt}px`):ot==="left"?(nt.style.cursor="ew-resize",nt.style.top="-4px",nt.style.bottom="-4px",nt.style.left=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`):ot==="right"?(nt.style.cursor="ew-resize",nt.style.top="-4px",nt.style.bottom="-4px",nt.style.right=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`):ot==="nw"?(nt.style.cursor="nwse-resize",nt.style.left=`-${Tt/2|0}px`,nt.style.top=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`,nt.style.height=`${Tt}px`):ot==="ne"?(nt.style.cursor="nesw-resize",nt.style.right=`-${Tt/2|0}px`,nt.style.top=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`,nt.style.height=`${Tt}px`):ot==="sw"?(nt.style.cursor="nesw-resize",nt.style.left=`-${Tt/2|0}px`,nt.style.bottom=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`,nt.style.height=`${Tt}px`):ot==="se"&&(nt.style.cursor="nwse-resize",nt.style.right=`-${Tt/2|0}px`,nt.style.bottom=`-${Tt/2|0}px`,nt.style.width=`${Tt}px`,nt.style.height=`${Tt}px`),nt.onmousedown=Mt=>{Mt.preventDefault(),Mt.stopPropagation();const zt={left:parseFloat(He.style.left||"0"),top:parseFloat(He.style.top||"0"),width:parseFloat(He.style.width||"0"),height:parseFloat(He.style.height||"0")};fe={idx:Qe,side:ot,startX:Mt.clientX,startY:Mt.clientY,startRect:zt,overlay:He},document.addEventListener("mousemove",_e),document.addEventListener("mouseup",rt,{once:!0})},He.appendChild(nt)};dt("top"),dt("right"),dt("bottom"),dt("left"),dt("nw"),dt("ne"),dt("sw"),dt("se"),v&&He.classList.add(v),J.push(He)})},_e=ve=>{if(!fe)return;const{idx:Me,side:Xe,startX:Qe,startY:ke,startRect:Ae,overlay:He}=fe,Ye=ve.clientX-Qe,$t=ve.clientY-ke;let xt=Ae.left,pt=Ae.top,ct=Ae.width,dt=Ae.height;const ot=4;Xe==="left"||Xe==="nw"||Xe==="sw"?(xt=Ae.left+Ye,ct=Ae.width-Ye,ct<ot&&(xt=Ae.left+(Ae.width-ot),ct=ot)):(Xe==="right"||Xe==="ne"||Xe==="se")&&(ct=Ae.width+Ye,ct<ot&&(ct=ot)),Xe==="top"||Xe==="nw"||Xe==="ne"?(pt=Ae.top+$t,dt=Ae.height-$t,dt<ot&&(pt=Ae.top+(Ae.height-ot),dt=ot)):(Xe==="bottom"||Xe==="sw"||Xe==="se")&&(dt=Ae.height+$t,dt<ot&&(dt=ot)),He.style.left=`${xt}px`,He.style.top=`${pt}px`,He.style.width=`${ct}px`,He.style.height=`${dt}px`;const nt=nn(xt,pt,ct,dt),Tt=new Set(K[Me]||[]),Mt=new Set;K.forEach((Gt,Jt)=>{Jt!==Me&&Gt.forEach(un=>Mt.add(un))});const zt=new Set(nt);let jt=!1,rn=!1;for(let Gt=0;Gt<K.length;Gt++){if(Gt===Me)continue;const Jt=new Set(K[Gt]||[]);let un=0;for(const On of zt)Jt.has(On)&&un++;if(un!==0&&!(un===Jt.size&&un===zt.size))if(un===Jt.size)rn=!0;else if(un===zt.size)rn=!0;else{jt=!0;break}}const yt=nt.filter(Gt=>!Tt.has(Gt)).length,Ot=!_&&(jt||!D&&rn),Ft=!z&&yt>0;if(Ot||Ft){He.style.outline="1px dashed #ff4d4f",He.style.background="rgba(255,77,79,0.06)";const Gt=new Set;K.forEach((Jt,un)=>{(un===Me?K[Me]||[]:Jt).forEach(On=>Gt.add(On))}),at(Gt)}else{const Gt=Y[Me]||"rgba(255, 165, 0, 0.9)";He.style.outline=`1px solid ${Gt}`,He.style.background="transparent";const Jt=new Set;K.forEach((un,On)=>{(On===Me?nt:un).forEach(Qn=>Jt.add(Qn))}),at(Jt)}},rt=ve=>{if(!fe)return;const{idx:Me,overlay:Xe,startRect:Qe}=fe,ke=parseFloat(Xe.style.left||"0"),Ae=parseFloat(Xe.style.top||"0"),He=parseFloat(Xe.style.width||"0"),Ye=parseFloat(Xe.style.height||"0"),$t=nn(ke,Ae,He,Ye),xt=new Set(K[Me]||[]),pt=new Set;K.forEach((jt,rn)=>{rn!==Me&&jt.forEach(yt=>pt.add(yt))});const ct=new Set($t);let dt=!1,ot=!1;for(let jt=0;jt<K.length;jt++){if(jt===Me)continue;const rn=new Set(K[jt]||[]);let yt=0;for(const Ot of ct)rn.has(Ot)&&yt++;if(yt!==0&&!(yt===rn.size&&yt===ct.size))if(yt===rn.size||yt===ct.size)ot=!0;else{dt=!0;break}}const nt=$t.filter(jt=>!xt.has(jt)).length,Tt=!_&&(dt||!D&&ot),Mt=!z&&nt>0;if(Tt||Mt){const jt=new Set;K.forEach(rn=>rn.forEach(yt=>jt.add(yt))),at(jt),xe(),fe=null,document.removeEventListener("mousemove",_e),_t();return}K[Me]=$t;const zt=new Set;K.forEach(jt=>jt.forEach(rn=>zt.add(rn))),at(zt),xe(),fe=null,document.removeEventListener("mousemove",_e),_t()},lt=ve=>{if(ve<0||ve>=K.length)return!1;const Me=K[ve];Me&&Me.forEach(Qe=>Qe.style.visibility=""),K.splice(ve,1),j.splice(ve,1),Y.splice(ve,1),ne.length>ve&&ne.splice(ve,1),he!==null&&(he===ve?he=null:he>ve&&he--),Fe(),xe();const Xe=new Set;return K.forEach(Qe=>Qe.forEach(ke=>Xe.add(ke))),at(Xe),_t(),!0},ut=(ve,Me,Xe)=>{if(!h||!L||L.length===0||ve<0||ve>=K.length||Me<0||Me>=L.length)return!1;const Qe=de(ve);if(!Qe)return!1;const ke=Qe[Me];if(!ke)return!1;let Ae=!1;if(Xe.label!==void 0){const He=Xe.label??"";ke.label!==He&&(ke.label=He,Ae=!0)}if(Xe.title!==void 0){const He=Xe.title??"";ke.title!==He&&(ke.title=He,Ae=!0)}return Ae&&xe(),Ae},tt=ve=>{if(!h||!Array.isArray(ve)||ve.length===0)return!1;const Me=Array.from(new Set(ve)).filter(xt=>{var pt;try{return!!xt&&t.contains(xt)&&!F(xt)&&((pt=xt.matches)==null?void 0:pt.call(xt,n))}catch{return!1}});if(Me.length===0||ge(Me)!==null)return!1;const Xe=new Set(Me);let Qe=!1,ke=!1;for(const xt of K){const pt=new Set(xt);let ct=0;for(const dt of Xe)pt.has(dt)&&ct++;if(ct!==0&&!(ct===pt.size&&ct===Xe.size))if(ct===pt.size||ct===Xe.size)ke=!0;else{Qe=!0;break}}const Ae=new Set(G),He=!_&&(Qe||!D&&ke),Ye=!z&&Ae.size>0&&Me.length>0;if(He||Ye)return!1;K.push(Me),j.push(!1),Y.push(Ce()),L!=null&&L.length&&de(K.length-1),he=K.length-1;const $t=new Set;return K.forEach(xt=>xt.forEach(pt=>$t.add(pt))),at($t),xe(),_t(),!0},mt=ve=>h?"add":w?E==="auto"?ve.shiftKey?"add":ve.altKey?"subtract":ve.metaKey||ve.ctrlKey?"toggle":"add":E??(w?E??"add":"replace"):"replace",at=ve=>{for(const Me of Array.from(G))ve.has(Me)||Me.classList.remove(s);for(const Me of Array.from(ve))G.has(Me)||Me.classList.add(s);G=ve,d&&d(h?{type:"groups",groups:K.slice(),flat:Array.from(G)}:{type:"single",selected:Array.from(G)})},gt=(ve,Me,Xe)=>{if(Xe==="replace")return new Set(Me);const Qe=new Set(ve);if(Xe==="add")for(const ke of Me)Qe.add(ke);else if(Xe==="subtract")for(const ke of Me)Qe.delete(ke);else if(Xe==="toggle")for(const ke of Me)Qe.has(ke)?Qe.delete(ke):Qe.add(ke);return Qe},Nt=ve=>{if(ve.button!==0)return;const Me=ve.target;!t.contains(Me)&&Me!==document.body||(H=ve.clientX,k=ve.clientY,q=!0,V=qe(),P=mt(ve),X=new Set(G),ve.preventDefault())},tn=ve=>{var Me;if(!q&&$){const ot=ve.target,nt=(Me=ot?.closest)==null?void 0:Me.call(ot,n);nt&&t.contains(nt)&&!F(nt)?Ue(nt):Ue(null)}if(!q||!V)return;const{left:Xe,top:Qe,width:ke,height:Ae}=oe(H,k,ve.clientX,ve.clientY);V.style.left=`${Xe}px`,V.style.top=`${Qe}px`,V.style.width=`${ke}px`,V.style.height=`${Ae}px`;const He=nn(Xe,Qe,ke,Ae),Ye=X??new Set,$t=new Set(He);let xt=0;for(const ot of $t)Ye.has(ot)&&xt++;let pt="disjoint";xt===0?pt="disjoint":xt===$t.size&&xt===Ye.size?pt="equal":xt===$t.size||xt===Ye.size?pt="containment":pt="partial";const ct=!_&&(pt==="partial"||!D&&pt==="containment"),dt=!z&&Ye.size>0&&He.length>0;if(W=ct||dt,V&&(W?(V.style.outline="1px dashed #ff4d4f",V.style.background="rgba(255,77,79,0.12)"):(V.style.outline="1px dashed #268aff",V.style.background="rgba(38,138,255,0.12)")),W)at(Ye);else{const ot=gt(Ye,He,P);at(ot)}},Wt=ve=>{if(!q)return;q=!1,V&&V.parentNode&&V.parentNode.removeChild(V),V=null;const{left:Me,top:Xe,width:Qe,height:ke}=oe(H,k,ve.clientX,ve.clientY),Ae=nn(Me,Xe,Qe,ke),He=X??new Set,Ye=new Set(Ae);let $t=0;for(const ot of Ye)He.has(ot)&&$t++;let xt="disjoint";$t===0?xt="disjoint":$t===Ye.size&&$t===He.size?xt="equal":$t===Ye.size||$t===He.size?xt="containment":xt="partial";const pt=!_&&(xt==="partial"||!D&&xt==="containment"),ct=!z&&He.size>0&&Ae.length>0;if(pt||ct){at(He),X=null,_t();return}const dt=gt(He,Ae,P);if(at(dt),h&&Ae.length>0){const ot=ge(Ae);if(ot!==null){try{console.warn(`重复编组被阻止:与已存在的第${ot+1}组元素完全一致`)}catch{}X=null,_t();return}K.push(Ae),he=K.length-1,j.push(!1),Y.push(Ce()),L!=null&&L.length&&de(K.length-1);const nt=new Set;K.forEach(Tt=>Tt.forEach(Mt=>nt.add(Mt))),at(nt),xe()}X=null,_t()},dn=ve=>{var Me;if(!I||!h)return;const Xe=ve.target;if(!Xe)return;let Qe=Xe;if(R&&(Qe=((Me=Xe.closest)==null?void 0:Me.call(Xe,R))||null),!Qe||!t.contains(Qe))return;const ke=Qe.getBoundingClientRect(),Ae=nn(ke.left,ke.top,ke.width,ke.height),He=new Set(G),Ye=new Set(Ae);let $t=0;for(const nt of Ye)He.has(nt)&&$t++;let xt="disjoint";$t===0?xt="disjoint":$t===Ye.size&&$t===He.size?xt="equal":$t===Ye.size||$t===He.size?xt="containment":xt="partial";const pt=!_&&(xt==="partial"||!D&&xt==="containment"),ct=!z&&He.size>0&&Ae.length>0;if(Ae.length===0||pt||ct){_t();return}const dt=ge(Ae);if(dt!==null){try{console.warn(`重复编组被阻止:与已存在的第${dt+1}组元素完全一致`)}catch{}_t();return}K.push(Ae),he=K.length-1,j.push(!1),Y.push(Ce()),L!=null&&L.length&&de(K.length-1);const ot=new Set;K.forEach(nt=>nt.forEach(Tt=>ot.add(Tt))),at(ot),xe(),_t()},Qt=()=>Ue(null);function nn(ve,Me,Xe,Qe){if(Xe===0||Qe===0)return[];const ke=t.getBoundingClientRect(),Ae=new DOMRect(ve,Me,Xe,Qe);if(!ze(Ae,ke))return[];const He=Array.from(t.querySelectorAll(n));let Ye=[];const $t=new Map;for(const pt of He){if(F(pt))continue;const ct=pt.getBoundingClientRect();if(!ze(ct,ke))continue;let dt=!1;if(a==="contains")dt=Ve(Ae,ct);else if(a==="center"){const ot=ct.left+ct.width/2,nt=ct.top+ct.height/2;dt=ot>=Ae.left&&ot<=Ae.right&&nt>=Ae.top&&nt<=Ae.bottom}else ze(Ae,ct)&&(dt=ye(Ae,ct)>=Math.max(0,Math.min(1,o)));if(dt){const ot=a==="contains"?1:ye(Ae,ct);$t.set(pt,ot),Ye.push(pt)}}const xt=m??(f?"leaf":"none");if(xt!=="none"&&Ye.length>1){if(xt==="leaf")Ye=Ye.filter(pt=>!Ye.some(ct=>ct!==pt&&pt.contains(ct)));else if(xt==="best"){const pt=[...Ye].sort((dt,ot)=>($t.get(ot)||0)-($t.get(dt)||0)),ct=[];for(const dt of pt)ct.find(ot=>ot.contains(dt)||dt.contains(ot))||ct.push(dt);Ye=ct}}return Ye}document.addEventListener("mousedown",Nt,!0),document.addEventListener("mousemove",tn),document.addEventListener("mouseup",Wt),$&&t.addEventListener("mouseleave",Qt),h&&I&&t.addEventListener("dblclick",dn);const Zt=()=>xe();h&&(window.addEventListener("scroll",Zt,!0),window.addEventListener("resize",Zt));const Lt=()=>{if(h){const ve=K.map(Ae=>we(Ae)),Me=Array(K.length).fill(null),Xe=ve.map(Ae=>Ae?Math.max(0,Ae.width*Ae.height):Number.POSITIVE_INFINITY);for(let Ae=0;Ae<K.length;Ae++){const He=ve[Ae];if(!He)continue;let Ye=null,$t=Number.POSITIVE_INFINITY;for(let xt=0;xt<K.length;xt++){if(Ae===xt)continue;const pt=ve[xt];if(pt&&pt.left<=He.left&&pt.top<=He.top&&pt.left+pt.width>=He.left+He.width&&pt.top+pt.height>=He.top+He.height){const ct=Number(Xe[xt]);ct<$t&&($t=ct,Ye=xt)}}Me[Ae]=Ye}const Qe=Array.from({length:K.length},()=>[]);for(let Ae=0;Ae<K.length;Ae++){const He=Me[Ae];He!=null&&Qe[He]&&Qe[He].push(Ae)}const ke=[];for(let Ae=0;Ae<K.length;Ae++)(Me[Ae]===null||Me[Ae]===void 0)&&ke.push(Ae);return{type:"groups",groups:K.map(Ae=>Ae.slice()),flat:Array.from(G),hidden:j.slice(),groupRects:ve,groupNesting:{parents:Me,children:Qe,roots:ke}}}return{type:"single",selected:Array.from(G)}},_t=()=>{const ve=Lt();if(N)try{N(ve)}catch{}for(const Xe of me)try{Xe(ve)}catch{}const Me=be.splice(0);for(const Xe of Me)try{Xe(ve)}catch{}},It={destroy(){document.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",Wt),V&&V.parentNode&&V.parentNode.removeChild(V),V=null,t.querySelectorAll(`.${s}`).forEach(ve=>ve.classList.remove(s)),$&&(t.removeEventListener("mouseleave",Qt),Ue(null)),h&&(window.removeEventListener("scroll",Zt,!0),window.removeEventListener("resize",Zt)),h&&I&&t.removeEventListener("dblclick",dn),Fe(),K.forEach(ve=>ve.forEach(Me=>Me.style.visibility="")),K=[],j=[],Y=[],ne=[],he=null,G.clear(),me.splice(0),be.splice(0)},getGroups(){return K.slice()},clearGroups(){K.forEach(ve=>ve.forEach(Me=>Me.style.visibility="")),K=[],j=[],Y=[],ne=[],he=null,Fe(),at(new Set)},removeGroup(ve){return lt(ve)},addGroup(ve){return tt(ve)},setGroupVisibility(ve,Me){return je(ve,Me)},toggleGroupVisibility(ve){return ve<0||ve>=K.length?!1:(j[ve]=!j[ve],Ne(ve),xe(),!0)},getSelectionResult(){return Lt()},refresh(){xe()},hideOverlays(){Fe()},showAndRefreshOverlays(){xe()},getGroupNesting(){const ve=Lt();return ve.type==="groups"?ve.groupNesting:null},setToolbarButtonProps(ve,Me,Xe){return ut(ve,Me,Xe)},onSelectionEnd(ve){return me.push(ve),()=>{const Me=me.indexOf(ve);Me>=0&&me.splice(Me,1)}},waitForSelectionEnd(){return new Promise(ve=>{be.push(ve)})}};return Oe=It,It}function Dae(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function jae(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function kae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Zy(e){return Dae(e)||jae(e)||kae()}function Ji(){return Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ji.apply(this,arguments)}function Lae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bae(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,r.key,r)}}function Fae(e,t,n){return t&&Bae(e.prototype,t),e}function Yn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){return dw=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},dw(e,t)}function Hae(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}}),t&&dw(e,t)}function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function Cy(e){return typeof Symbol=="function"&&Um(Symbol.iterator)==="symbol"?Cy=function(n){return Um(n)}:Cy=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":Um(n)},Cy(e)}function Vae(e,t){return t&&(Cy(t)==="object"||typeof t=="function")?t:Yn(e)}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ES,J5;function Kae(){if(J5)return ES;J5=1;var e=function(t,n,r,a,o,l,s,d){if(!t){var f;if(n===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,a,o,l,s,d],h=0;f=new Error(n.replace(/%s/g,function(){return m[h++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};return ES=e,ES}var Wae=Kae();const rp=ac(Wae);function Uae(e){if(Array.isArray(e))return e}function qae(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),s;!(r=(s=l.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,o=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}function Gae(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function eb(e,t){return Uae(e)||qae(e,t)||Gae()}function Xae(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Yae(e,t){if(e==null)return{};var n=Xae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var bp=function(t){return t===Object(t)?Object.keys(t):[]},RN=function(t){return t===Object(t)?Object.values(t):[]};function NN(e,t){var n=Object.assign({},e);return wy(e)&&wy(t)&&bp(t).forEach(function(r){wy(t[r])?r in e?n[r]=NN(e[r],t[r]):Object.assign(n,te({},r,t[r])):Object.assign(n,te({},r,t[r]))}),n}var fw=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(function(o,l){return NN(o,l)},t)},Qae=function(t,n){var r=Object.assign({},t);if(n)for(var a=0;a<n.length;a++)delete r[n[a]];return r},wy=function(t){return t===Object(t)&&!(t instanceof Date)&&!Array.isArray(t)},Zae=function(t){return(t||[]).filter(Boolean)},m4=function(t){return t[0]==="&"},Jae=function(t){return!m4(t)},e8=function(t){return t.replace(/-(\w)/g,function(n,r){return r.toUpperCase()})},eoe=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=bp(t),a={},o=0,l=r.length;o<l;o+=1){var s=r[o],d=Object.prototype.toString.call(t[s])!=="[object Object]"||s[0]===":"||s[0]==="@"||n.indexOf(s)>=0;d&&(a[s]=t[s])}return a},TN=function(t,n){for(var r=n.map(e8),a=bp(t),o={},l=0,s=a.length;l<s;l+=1){var d=a[l];(n.indexOf(d)>=0||r.indexOf(e8(d))>=0)&&(o[d]=t[d])}return o},toe=function e(t,n){for(var r=fw.apply(void 0,[{},Qae(t,n)].concat(st(RN(TN(t,n))))),a=bp(r).filter(m4),o=0,l=a.length;o<l;o+=1){var s=a[o],d=e(r[s],n);n.indexOf(s)>=0?(delete r[s],r=fw({},r,d)):r[s]=d}return r};function t8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function n8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var noe=["animationName"],IN=function(t){var n=t.style,r=t.className;return n8(n8({},n?{style:eoe(n,noe)}:{}),r?{className:r}:{})},_N=u.createContext(IN);_N.Provider;var AN=function(t){if(t){if(typeof t=="string")return[t];if(!Array.isArray(t)){var n=t;return bp(t).reduce(function(r,a){return r.concat(n[a]?[a]:[])},[])}}else return[];return t},roe={},aoe=function(t){return function(n,r){var a=r||roe;t.memoize=t.memoize||new WeakMap;var o;t.memoize.has(a)?o=t.memoize.get(a):(o={},t.memoize.set(a,o));var l=AN(n).join(" ");return l in o?o[l]:o[l]=t(n||[],r)}};function r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r8(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ooe=function(t){var n=t&&bp(t)[0];return n&&n.split("__")[0].split("--")[0]},ioe=function(t,n,r){if(t){var a=t.split(" ")[0],o=[].concat(st(n.length===0?r.map(function(l){return"".concat(a,"--").concat(l.substring(1))}):[]),st(n.map(function(l){return"".concat(a,"__").concat(l)})));return n.length===0?[t].concat(st(o)):o}};function PN(e){var t=e.style,n=e.className,r=e.classNames,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IN,o=n||ooe(r)||t?.className,l=typeof t=="function"?t:aoe(function(h,v){var y=AN(h);rp(Array.isArray(y),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),rp(!v||wy(v),"Optional second parameter must be a plain object.");var S=y.filter(m4),C=y.filter(Jae),w=C.length>0?function(O){return RN(TN(O,C))}:function(O){return[O]},E=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return w(toe(N,S))},$=ioe(o,C,S);return PN(Nm(Nm(Nm({},(t||v)&&{style:fw.apply(void 0,[{}].concat(st(E(v)),st(E(t))))}),$&&{className:$.join(" ")}),r&&{classNames:r}),a)}),s=Nm({},typeof t=="function"?t:{style:t}),d=st(new Set([].concat(st(s.className?s.className.split(" "):[]),st(o?o.split(" "):[])))),f=r?Zae(d.map(function(h){return r[h]})):d,m=a(Nm(Nm({},s),f.length>0?{className:f.join(" ")}:{}));return Object.assign(l,m),l}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var loe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(a,o){return ch(ch(ch({},a),typeof o=="function"?o:{}),{},{style:ch(ch({},a.style),typeof o=="function"?o.style:o)})},{})},p4=function(t,n,r){var a=n.style,o=n.className,l=n.classNames,s=u.useContext(_N),d=u.useMemo(function(){return PN({style:a,className:o,classNames:l},s)},[a,o,l,s]);return d(r,t)},$S={exports:{}},OS,o8;function soe(){if(o8)return OS;o8=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return OS=e,OS}var MS,i8;function coe(){if(i8)return MS;i8=1;var e=soe();function t(){}function n(){}return n.resetWarningCache=t,MS=function(){function r(l,s,d,f,m,h){if(h!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},MS}var l8;function uoe(){return l8||(l8=1,$S.exports=coe()()),$S.exports}var doe=uoe();const Ht=ac(doe);var Ey=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},fs={id:"__id__",display:"__display__"},s8=function(t,n){rp(n==="id"||n==="display",'Second arg must be either "id" or "display", got: "'.concat(n,'"'));var r=t.indexOf(fs.display),a=t.indexOf(fs.id);return r<0&&(r=null),a<0&&(a=null),rp(r!==null||a!==null,"The markup '".concat(t,"' does not contain either of the placeholders '__id__' or '__display__'")),r!==null&&a!==null?n==="id"&&a<=r||n==="display"&&r<=a?0:1:0},foe=function(t){var n=/^\/(.+)\/(\w+)?$/;return new RegExp(t.map(function(r){var a=n.exec(r.toString()),o=eb(a,3),l=o[1],s=o[2];return rp(!s,"RegExp flags are not supported. Change /".concat(l,"/").concat(s," into /").concat(l,"/")),"(".concat(l,")")}).join("|"),"g")},zN=function(t){var n=0;return t.indexOf("__id__")>=0&&n++,t.indexOf("__display__")>=0&&n++,n},moe=function(){},gv=function(t,n,r){for(var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:moe,o=foe(n.map(function(I){return I.regex})),l=2,s=n.map(function(I){var R=I.markup,_=l;return l+=zN(R)+1,_}),d,f=0,m=0;(d=o.exec(t))!==null;){var h=s.find(function(I){return!!d[I]}),v=s.indexOf(h),y=n[v],S=y.markup,C=y.displayTransform,w=h+s8(S,"id"),E=h+s8(S,"display"),$=d[w],O=C($,d[E]),N=t.substring(f,d.index);a(N,f,m),m+=N.length,r(d[0],d.index,m,$,O,v,f),m+=O.length,f=o.lastIndex}f<t.length&&a(t.substring(f),f,m)},Md=function(t,n){var r="";return gv(t,n,function(a,o,l,s,d){r+=d},function(a){r+=a}),r},Uo=function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"START";if(typeof r!="number")return r;var o,l=function(f,m,h){o===void 0&&h+f.length>=r&&(o=m+r-h)},s=function(f,m,h,v,y,S,C){o===void 0&&h+y.length>r&&(a==="NULL"?o=null:o=m+(a==="END"?f.length:0))};return gv(t,n,s,l),o===void 0?t.length:o},Rh=function(t,n,r,a){return t.substring(0,n)+a+t.substring(r)},poe=function(t,n,r,a){var o=r.selectionStartBefore,l=r.selectionEndBefore,s=r.selectionEndAfter,d=Md(t,a),f=d.length-n.length;o==="undefined"&&(o=s+f),l==="undefined"&&(l=o),o===l&&l===s&&d.length===n.length&&(o=o-1);var m=n.slice(o,s),h=Math.min(o,s),v=l;o===s&&(v=Math.max(l,o+f));var y=Uo(t,a,h,"START"),S=Uo(t,a,v,"END"),C=Uo(t,a,h,"NULL"),w=Uo(t,a,v,"NULL"),E=C===null||w===null,$=Rh(t,y,S,m);if(!E){var O=Md($,a);if(O!==n){for(h=0;n[h]===O[h];)h++;m=n.slice(h,s),v=d.lastIndexOf(n.substring(s)),y=Uo(t,a,h,"START"),S=Uo(t,a,v,"END"),$=Rh(t,y,S,m)}}return $},c8=function(t,n,r){var a=r,o=!1,l=function(d,f,m,h,v,y,S){m<=r&&m+v.length>r&&(a=m,o=!0)};if(gv(t,n,l),o)return a},ph=function(t,n){var r=[];return gv(t,n,function(a,o,l,s,d,f,m){r.push({id:s,display:d,childIndex:f,index:o,plainTextIndex:l})}),r},DN=function(t,n){return"".concat(t,"-").concat(n)},Z1=function(t){return Object.values(t).reduce(function(n,r){var a=r.results;return n+a.length},0)},goe=function(t,n){var r=ph(t,n),a=r[r.length-1];return a?a.plainTextIndex+a.display.length:0},hoe=function(t){var n=Ey(t),r=t[t.indexOf(fs.display)+fs.display.length],a=t[t.indexOf(fs.id)+fs.id.length];return new RegExp(n.replace(fs.display,"([^".concat(Ey(r||""),"]+?)")).replace(fs.id,"([^".concat(Ey(a||""),"]+?)")))},nu=function(t){return u.Children.toArray(t).map(function(n){var r=n.props,a=r.markup,o=r.regex,l=r.displayTransform;return{markup:a,regex:o?voe(o,a):hoe(a),displayTransform:l||function(s,d){return d||s}}})},voe=function(t,n){var r=new RegExp(t.toString()+"|").exec("").length-1,a=zN(n);return rp(r===a,"Number of capturing groups in RegExp ".concat(t.toString()," (").concat(r,") does not match the number of placeholders in the markup '").concat(n,"' (").concat(a,")")),t},yoe=function(t,n,r){return t.replace(fs.id,n).replace(fs.display,r)},boe=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],xoe=function(t){var n=t;return boe.forEach(function(r){n=n.replace(r.letters,r.base)}),n},u8=function(t){return xoe(t).toLowerCase()},jN=function(t,n,r){return r?u8(t).indexOf(u8(n)):t.toLowerCase().indexOf(n.toLowerCase())},Soe=function(){return!!document.documentMode},mw=function(t){return typeof t=="number"},Coe=function(t){return t===Object(t)?Object.keys(t):[]},woe=function(t){for(var n,r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];var l=(n=[]).concat.apply(n,a);return Object.keys(t).reduce(function(s,d){return t.hasOwnProperty(d)&&!l.includes(d)&&t[d]!==void 0&&(s[d]=t[d]),s},{})},Eoe=["style","className","classNames"];function d8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function f8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(n),!0).forEach(function(r){Wn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gb(e,t){var n=function(a){var o=function(d){var f=d.style,m=d.className,h=d.classNames,v=Yae(d,Eoe),y=t?t(v):void 0,S=p4(e,{style:f,className:m,classNames:h},y);return Se.createElement(a,Ji({},v,{style:S}))},l=a.displayName||a.name||"Component";return o.displayName="defaultStyle(".concat(l,")"),Se.forwardRef(function(s,d){return o(f8(f8({},s),{},{ref:d}))})};return n}var $oe=function(t,n){return t.hasOwnProperty(n)?t[n]++:t[n]=0,n+"_"+t[n]};function kN(e){var t=e.selectionStart,n=e.selectionEnd,r=e.value,a=r===void 0?"":r,o=e.onCaretPositionChange,l=e.containerRef,s=e.children;e.singleLine;var d=e.style,f=u.useState({left:void 0,top:void 0}),m=eb(f,2),h=m[0],v=m[1],y=u.useState(),S=eb(y,2),C=S[0],w=S[1];u.useEffect(function(){E()});var E=function(){if(C){var k=C.offsetLeft,q=C.offsetTop;if(!(h.left===k&&h.top===q)){var V={left:k,top:q};v(V),o(V)}}},$=nu(s),O;n===t&&(O=Uo(a,$,t,"START"));var N=[],I={},R=N,_=0,z=function(k,q,V){if(mw(O)&&O>=q&&O<=q+k.length){var W=O-q;R.push(L(k.substring(0,W),_)),R=[L(k.substring(W),_)]}else R.push(L(k,_));_++},D=function(k,q,V,W,G,X,P){var K=$oe(I,W);R.push(B(W,G,X,K))},L=function(k,q){return Se.createElement("span",Ji({},d("substring"),{key:q}),k)},B=function(k,q,V,W){var G={id:k,display:q,key:W},X=u.Children.toArray(s)[V];return Se.cloneElement(X,G)},F=function(k){return Se.createElement("span",Ji({},d("caret"),{ref:w,key:"caret"}),k)};return gv(a,$,D,z),R.push(" "),R!==N&&N.push(F(R)),Se.createElement("div",Ji({},d,{ref:l}),N)}kN.propTypes={selectionStart:Ht.number,selectionEnd:Ht.number,value:Ht.string.isRequired,onCaretPositionChange:Ht.func.isRequired,containerRef:Ht.oneOfType([Ht.func,Ht.shape({current:typeof Element>"u"?Ht.any:Ht.instanceOf(Element)})]),children:Ht.oneOfType([Ht.element,Ht.arrayOf(Ht.element)]).isRequired};var Ooe=Gb({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},function(e){return{"&singleLine":e.singleLine}}),Moe=Ooe(kN);function LN(e){var t=e.id,n=e.focused,r=e.ignoreAccents,a=e.index,o=e.onClick,l=e.onMouseEnter,s=e.query,d=e.renderSuggestion,f=e.suggestion,m=e.style;e.className,e.classNames;var h={onClick:o,onMouseEnter:l},v=function(){var w=y(),E=S(w);return d?d(f,s,E,a,n):E},y=function(){if(typeof f=="string")return f;var w=f.id,E=f.display;return w===void 0||!E?w:E},S=function(w){var E=jN(w,s,r);return E===-1?Se.createElement("span",m("display"),w):Se.createElement("span",m("display"),w.substring(0,E),Se.createElement("b",m("highlight"),w.substring(E,E+s.length)),w.substring(E+s.length))};return Se.createElement("li",Ji({id:t,role:"option","aria-selected":n},h,m),v())}LN.propTypes={id:Ht.string.isRequired,query:Ht.string.isRequired,index:Ht.number.isRequired,ignoreAccents:Ht.bool,suggestion:Ht.oneOfType([Ht.string,Ht.shape({id:Ht.oneOfType([Ht.string,Ht.number]).isRequired,display:Ht.string})]).isRequired,renderSuggestion:Ht.func,focused:Ht.bool};var Roe=Gb({cursor:"pointer"},function(e){return{"&focused":e.focused}}),Noe=Roe(LN);function Toe(e){var t=e.style,n=e.className,r=e.classNames,a=p4(Ioe,{style:t,className:n,classNames:r}),o=a("spinner");return Se.createElement("div",a,Se.createElement("div",o,Se.createElement("div",o(["element","element1"])),Se.createElement("div",o(["element","element2"])),Se.createElement("div",o(["element","element3"])),Se.createElement("div",o(["element","element4"])),Se.createElement("div",o(["element","element5"]))))}var Ioe={};function BN(e){var t=e.id,n=e.suggestions,r=n===void 0?{}:n,a=e.a11ySuggestionsListLabel,o=e.focusIndex,l=e.position,s=e.left,d=e.right,f=e.top,m=e.scrollFocusedIntoView,h=e.isLoading,v=e.isOpened,y=e.onSelect,S=y===void 0?function(){return null}:y,C=e.ignoreAccents,w=e.containerRef,E=e.children,$=e.style,O=e.customSuggestionsContainer,N=e.onMouseDown,I=e.onMouseEnter,R=u.useState(void 0),_=eb(R,2),z=_[0],D=_[1];u.useEffect(function(){if(!(!z||z.offsetHeight>=z.scrollHeight||!m)){var V=z.scrollTop,W=z.children[o].getBoundingClientRect(),G=W.top,X=W.bottom,P=z.getBoundingClientRect(),K=P.top;G=G-K+V,X=X-K+V,G<V?z.scrollTop=G:X>z.offsetHeight&&(z.scrollTop=X-z.offsetHeight)}},[o,m,z]);var L=function(){var W=Se.createElement("ul",Ji({ref:D,id:t,role:"listbox","aria-label":a},$("list")),Object.values(r).reduce(function(G,X){var P=X.results,K=X.queryInfo;return[].concat(Zy(G),Zy(P.map(function(J,j){return B(J,K,G.length+j)})))},[]));return O?O(W):W},B=function(W,G,X){var P=X===o,K=G.childIndex,J=G.query,j=u.Children.toArray(E)[K].props.renderSuggestion;return Se.createElement(Noe,{style:$("item"),key:"".concat(K,"-").concat(q(W)),id:DN(t,X),query:J,index:X,ignoreAccents:C,renderSuggestion:j,suggestion:W,focused:P,onClick:function(){return k(W,G)},onMouseEnter:function(){return H(X)}})},F=function(){if(h)return Se.createElement(Toe,{style:$("loadingIndicator")})},H=function(W,G){I&&I(W)},k=function(W,G){S(W,G)},q=function(W){return typeof W=="string"?W:W.id};return v?Se.createElement("div",Ji({},loe({position:l||"absolute",left:s,right:d,top:f},$),{onMouseDown:N,ref:w}),L(),F()):null}BN.propTypes={id:Ht.string.isRequired,suggestions:Ht.object.isRequired,a11ySuggestionsListLabel:Ht.string,focusIndex:Ht.number,position:Ht.string,left:Ht.number,right:Ht.number,top:Ht.number,scrollFocusedIntoView:Ht.bool,isLoading:Ht.bool,isOpened:Ht.bool.isRequired,onSelect:Ht.func,ignoreAccents:Ht.bool,customSuggestionsContainer:Ht.func,containerRef:Ht.oneOfType([Ht.func,Ht.shape({current:typeof Element>"u"?Ht.any:Ht.instanceOf(Element)})])};var _oe=Gb({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}}),Aoe=_oe(BN);function m8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m8(Object(n),!0).forEach(function(r){Wn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Poe(e){var t=zoe();return function(){var r=Jy(e),a;if(t){var o=Jy(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return Vae(this,a)}}function zoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Doe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t instanceof RegExp)return t;var r=n.allowSpaceInQuery,a=Ey(t);return new RegExp("(?:^|\\s)(".concat(a,"([^").concat(r?"":"\\s").concat(a,"]*))$"))},joe=function(t,n){return t instanceof Array?function(r,a){for(var o=[],l=0,s=t.length;l<s;++l){var d=t[l].display||t[l].id;jN(d,r,n)>=0&&o.push(t[l])}return o}:t},Tm={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},J1=!1,FN={singleLine:Ht.bool,allowSpaceInQuery:Ht.bool,allowSuggestionsAboveCursor:Ht.bool,forceSuggestionsAboveCursor:Ht.bool,ignoreAccents:Ht.bool,a11ySuggestionsListLabel:Ht.string,value:Ht.string,onKeyDown:Ht.func,customSuggestionsContainer:Ht.func,onSelect:Ht.func,onBlur:Ht.func,onChange:Ht.func,suggestionsPortalHost:typeof Element>"u"?Ht.any:Ht.PropTypes.instanceOf(Element),inputRef:Ht.oneOfType([Ht.func,Ht.shape({current:typeof Element>"u"?Ht.any:Ht.instanceOf(Element)})]),children:Ht.oneOfType([Ht.element,Ht.arrayOf(Ht.element)]).isRequired},g4=(function(e){Hae(n,e);var t=Poe(n);function n(r){var a;return Lae(this,n),a=t.call(this,r),Wn(Yn(a),"setContainerElement",function(o){a.containerElement=o}),Wn(Yn(a),"getInputProps",function(){var o=a.props,l=o.readOnly,s=o.disabled,d=o.style,f=woe(a.props,["style","classNames","className"],Coe(FN));return El(El(El(El({},f),d("input")),{},{value:a.getPlainText(),onScroll:a.updateHighlighterScroll},!l&&!s&&{onChange:a.handleChange,onSelect:a.handleSelect,onKeyDown:a.handleKeyDown,onBlur:a.handleBlur,onCompositionStart:a.handleCompositionStart,onCompositionEnd:a.handleCompositionEnd}),a.isOpened()&&{role:"combobox","aria-controls":a.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":DN(a.uuidSuggestionsOverlay,a.state.focusIndex)})}),Wn(Yn(a),"renderControl",function(){var o=a.props,l=o.singleLine,s=o.style,d=a.getInputProps();return Se.createElement("div",s("control"),a.renderHighlighter(),l?a.renderInput(d):a.renderTextarea(d))}),Wn(Yn(a),"renderInput",function(o){return Se.createElement("input",Ji({type:"text",ref:a.setInputRef},o))}),Wn(Yn(a),"renderTextarea",function(o){return Se.createElement("textarea",Ji({ref:a.setInputRef},o))}),Wn(Yn(a),"setInputRef",function(o){a.inputElement=o;var l=a.props.inputRef;typeof l=="function"?l(o):l&&(l.current=o)}),Wn(Yn(a),"setSuggestionsElement",function(o){a.suggestionsElement=o}),Wn(Yn(a),"renderSuggestionsOverlay",function(){if(!mw(a.state.selectionStart))return null;var o=a.state.suggestionsPosition,l=o.position,s=o.left,d=o.top,f=o.right,m=Se.createElement(Aoe,{id:a.uuidSuggestionsOverlay,style:a.props.style("suggestions"),position:l,left:s,top:d,right:f,focusIndex:a.state.focusIndex,scrollFocusedIntoView:a.state.scrollFocusedIntoView,containerRef:a.setSuggestionsElement,suggestions:a.state.suggestions,customSuggestionsContainer:a.props.customSuggestionsContainer,onSelect:a.addMention,onMouseDown:a.handleSuggestionsMouseDown,onMouseEnter:a.handleSuggestionsMouseEnter,isLoading:a.isLoading(),isOpened:a.isOpened(),ignoreAccents:a.props.ignoreAccents,a11ySuggestionsListLabel:a.props.a11ySuggestionsListLabel},a.props.children);return a.props.suggestionsPortalHost?Pd.createPortal(m,a.props.suggestionsPortalHost):m}),Wn(Yn(a),"renderHighlighter",function(){var o=a.state,l=o.selectionStart,s=o.selectionEnd,d=a.props,f=d.singleLine,m=d.children,h=d.value,v=d.style;return Se.createElement(Moe,{containerRef:a.setHighlighterElement,style:v("highlighter"),value:h,singleLine:f,selectionStart:l,selectionEnd:s,onCaretPositionChange:a.handleCaretPositionChange},m)}),Wn(Yn(a),"setHighlighterElement",function(o){a.highlighterElement=o}),Wn(Yn(a),"handleCaretPositionChange",function(o){a.setState({caretPosition:o})}),Wn(Yn(a),"getPlainText",function(){return Md(a.props.value||"",nu(a.props.children))}),Wn(Yn(a),"executeOnChange",function(o){for(var l=arguments.length,s=new Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];if(a.props.onChange){var f;return(f=a.props).onChange.apply(f,[o].concat(s))}if(a.props.valueLink){var m;return(m=a.props.valueLink).requestChange.apply(m,[o.target.value].concat(s))}}),Wn(Yn(a),"handleChange",function(o){if(J1=!1,Soe()){var l=document.activeElement&&document.activeElement.contentDocument||document;if(l.activeElement!==o.target)return}var s=a.props.value||"",d=nu(a.props.children),f=o.target.value,m=a.state.selectionStart;m==null&&(m=o.target.selectionStart);var h=a.state.selectionEnd;h==null&&(h=o.target.selectionEnd);var v=poe(s,f,{selectionStartBefore:m,selectionEndBefore:h,selectionEndAfter:o.target.selectionEnd},d);f=Md(v,d);var y=o.target.selectionStart,S=o.target.selectionEnd,C=!1,w=c8(s,d,y);w!==void 0&&a.state.selectionEnd>w&&(y=w+(o.nativeEvent.data?o.nativeEvent.data.length:0),S=y,C=!0),a.setState({selectionStart:y,selectionEnd:S,setSelectionAfterMentionChange:C});var E=ph(v,d);o.nativeEvent.isComposing&&y===S&&a.updateMentionsQueries(a.inputElement.value,y);var $={target:{value:v}};a.executeOnChange($,v,f,E)}),Wn(Yn(a),"handleSelect",function(o){if(a.setState({selectionStart:o.target.selectionStart,selectionEnd:o.target.selectionEnd}),!J1){var l=a.inputElement;o.target.selectionStart===o.target.selectionEnd?a.updateMentionsQueries(l.value,o.target.selectionStart):a.clearSuggestions(),a.updateHighlighterScroll(),a.props.onSelect(o)}}),Wn(Yn(a),"handleKeyDown",function(o){var l=Z1(a.state.suggestions);if(l===0||!a.suggestionsElement){a.props.onKeyDown(o);return}switch(Object.values(Tm).indexOf(o.keyCode)>=0&&(o.preventDefault(),o.stopPropagation()),o.keyCode){case Tm.ESC:{a.clearSuggestions();return}case Tm.DOWN:{a.shiftFocus(1);return}case Tm.UP:{a.shiftFocus(-1);return}case Tm.RETURN:{a.selectFocused();return}case Tm.TAB:{a.selectFocused();return}default:return}}),Wn(Yn(a),"shiftFocus",function(o){var l=Z1(a.state.suggestions);a.setState({focusIndex:(l+a.state.focusIndex+o)%l,scrollFocusedIntoView:!0})}),Wn(Yn(a),"selectFocused",function(){var o=a.state,l=o.suggestions,s=o.focusIndex,d=Object.values(l).reduce(function(h,v){var y=v.results,S=v.queryInfo;return[].concat(Zy(h),Zy(y.map(function(C){return{result:C,queryInfo:S}})))},[])[s],f=d.result,m=d.queryInfo;a.addMention(f,m),a.setState({focusIndex:0})}),Wn(Yn(a),"handleBlur",function(o){var l=a._suggestionsMouseDown;a._suggestionsMouseDown=!1,l||a.setState({selectionStart:null,selectionEnd:null}),window.setTimeout(function(){a.updateHighlighterScroll()},1),a.props.onBlur(o,l)}),Wn(Yn(a),"handleSuggestionsMouseDown",function(o){a._suggestionsMouseDown=!0}),Wn(Yn(a),"handleSuggestionsMouseEnter",function(o){a.setState({focusIndex:o,scrollFocusedIntoView:!1})}),Wn(Yn(a),"updateSuggestionsPosition",function(){var o=a.state.caretPosition,l=a.props,s=l.suggestionsPortalHost,d=l.allowSuggestionsAboveCursor,f=l.forceSuggestionsAboveCursor;if(!(!o||!a.suggestionsElement)){var m=a.suggestionsElement,h=a.highlighterElement,v=h.getBoundingClientRect(),y=RS(h,"font-size"),S={left:v.left+o.left,top:v.top+o.top+y},C=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(m){var w={};if(s){w.position="fixed";var E=S.left,$=S.top;E-=RS(m,"margin-left"),$-=RS(m,"margin-top"),E-=h.scrollLeft,$-=h.scrollTop;var O=Math.max(document.documentElement.clientWidth,window.innerWidth||0);E+m.offsetWidth>O?w.left=Math.max(0,O-m.offsetWidth):w.left=E,d&&$+m.offsetHeight>C&&m.offsetHeight<$-y||f?w.top=Math.max(0,$-m.offsetHeight-y):w.top=$}else{var N=o.left-h.scrollLeft,I=o.top-h.scrollTop;N+m.offsetWidth>a.containerElement.offsetWidth?w.right=0:w.left=N,d&&S.top-h.scrollTop+m.offsetHeight>C&&m.offsetHeight<v.top-y-h.scrollTop||f?w.top=I-m.offsetHeight-y:w.top=I}w.left===a.state.suggestionsPosition.left&&w.top===a.state.suggestionsPosition.top&&w.position===a.state.suggestionsPosition.position||a.setState({suggestionsPosition:w})}}}),Wn(Yn(a),"updateHighlighterScroll",function(){var o=a.inputElement,l=a.highlighterElement;!o||!l||(l.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,l.height=o.height)}),Wn(Yn(a),"handleCompositionStart",function(){J1=!0}),Wn(Yn(a),"handleCompositionEnd",function(){J1=!1}),Wn(Yn(a),"setSelection",function(o,l){if(!(o===null||l===null)){var s=a.inputElement;if(s.setSelectionRange)s.setSelectionRange(o,l);else if(s.createTextRange){var d=s.createTextRange();d.collapse(!0),d.moveEnd("character",l),d.moveStart("character",o),d.select()}}}),Wn(Yn(a),"updateMentionsQueries",function(o,l){a._queryId++,a.suggestions={},a.setState({suggestions:{}});var s=a.props.value||"",d=a.props.children,f=nu(d),m=Uo(s,f,l,"NULL");if(m!==null){var h=goe(s.substring(0,m),f),v=o.substring(h,l);Se.Children.forEach(d,function(y,S){if(y){var C=Doe(y.props.trigger,a.props),w=v.match(C);if(w){var E=h+v.indexOf(w[1],w.index);a.queryData(w[2],S,E,E+w[1].length,o)}}})}}),Wn(Yn(a),"clearSuggestions",function(){a._queryId++,a.suggestions={},a.setState({suggestions:{},focusIndex:0})}),Wn(Yn(a),"queryData",function(o,l,s,d,f){var m=a.props,h=m.children,v=m.ignoreAccents,y=u.Children.toArray(h)[l],S=joe(y.props.data,v),C=S(o,a.updateSuggestions.bind(null,a._queryId,l,o,s,d,f));C instanceof Array&&a.updateSuggestions(a._queryId,l,o,s,d,f,C)}),Wn(Yn(a),"updateSuggestions",function(o,l,s,d,f,m,h){if(o===a._queryId){a.suggestions=El(El({},a.suggestions),{},Wn({},l,{queryInfo:{childIndex:l,query:s,querySequenceStart:d,querySequenceEnd:f,plainTextValue:m},results:h}));var v=a.state.focusIndex,y=Z1(a.suggestions);a.setState({suggestions:a.suggestions,focusIndex:v>=y?Math.max(y-1,0):v})}}),Wn(Yn(a),"addMention",function(o,l){var s=o.id,d=o.display,f=l.childIndex,m=l.querySequenceStart,h=l.querySequenceEnd,v=l.plainTextValue,y=a.props.value||"",S=nu(a.props.children),C=u.Children.toArray(a.props.children)[f],w=C.props,E=w.markup,$=w.displayTransform,O=w.appendSpaceOnAdd,N=w.onAdd,I=Uo(y,S,m,"START"),R=I+h-m,_=yoe(E,s,d);O&&(_+=" ");var z=Rh(y,I,R,_);a.inputElement.focus();var D=$(s,d);O&&(D+=" ");var L=m+D.length;a.setState({selectionStart:L,selectionEnd:L,setSelectionAfterMentionChange:!0});var B={target:{value:z}},F=ph(z,S),H=Rh(v,m,h,D);a.executeOnChange(B,z,H,F),N&&N(s,d,I,R),a.clearSuggestions()}),Wn(Yn(a),"isLoading",function(){var o=!1;return Se.Children.forEach(a.props.children,function(l){o=o||l&&l.props.isLoading}),o}),Wn(Yn(a),"isOpened",function(){return mw(a.state.selectionStart)&&(Z1(a.state.suggestions)!==0||a.isLoading())}),Wn(Yn(a),"_queryId",0),a.suggestions={},a.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),a.handleCopy=a.handleCopy.bind(Yn(a)),a.handleCut=a.handleCut.bind(Yn(a)),a.handlePaste=a.handlePaste.bind(Yn(a)),a.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{},setSelectionAfterHandlePaste:!1},a}return Fae(n,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(a,o){o.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd)),this.state.setSelectionAfterHandlePaste&&(this.setState({setSelectionAfterHandlePaste:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return Se.createElement("div",Ji({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(a){if(a.target===this.inputElement&&this.supportsClipboardActions(a)){a.preventDefault();var o=this.state,l=o.selectionStart,s=o.selectionEnd,d=this.props,f=d.value,m=d.children,h=nu(m),v=Uo(f,h,l,"START"),y=Uo(f,h,s,"END"),S=a.clipboardData.getData("text/react-mentions"),C=a.clipboardData.getData("text/plain"),w=Rh(f,v,y,S||C).replace(/\r/g,""),E=Md(w,h),$={target:El(El({},a.target),{},{value:w})};this.executeOnChange($,w,E,ph(w,h));var O=c8(f,h,l),N=(O||l)+Md(S||C,h).length;this.setState({selectionStart:N,selectionEnd:N,setSelectionAfterHandlePaste:!0})}}},{key:"saveSelectionToClipboard",value:function(a){var o=this.inputElement.selectionStart,l=this.inputElement.selectionEnd,s=this.props,d=s.children,f=s.value,m=nu(d),h=Uo(f,m,o,"START"),v=Uo(f,m,l,"END");a.clipboardData.setData("text/plain",a.target.value.slice(o,l)),a.clipboardData.setData("text/react-mentions",f.slice(h,v))}},{key:"supportsClipboardActions",value:function(a){return!!a.clipboardData}},{key:"handleCopy",value:function(a){a.target===this.inputElement&&this.supportsClipboardActions(a)&&(a.preventDefault(),this.saveSelectionToClipboard(a))}},{key:"handleCut",value:function(a){if(a.target===this.inputElement&&this.supportsClipboardActions(a)){a.preventDefault(),this.saveSelectionToClipboard(a);var o=this.state,l=o.selectionStart,s=o.selectionEnd,d=this.props,f=d.children,m=d.value,h=nu(f),v=Uo(m,h,l,"START"),y=Uo(m,h,s,"END"),S=[m.slice(0,v),m.slice(y)].join(""),C=Md(S,h),w={target:El(El({},a.target),{},{value:C})};this.executeOnChange(w,S,C,ph(m,h))}}}]),n})(Se.Component);Wn(g4,"propTypes",FN);Wn(g4,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var RS=function(t,n){var r=parseFloat(window.getComputedStyle(t,null).getPropertyValue(n));return isFinite(r)?r:0},koe=typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent),Loe=Gb({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:El({height:"100%",bottom:0,overflow:"hidden",resize:"none"},koe?{marginTop:1,marginLeft:-3}:null)}},function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}),HN=Loe(g4),Boe={fontWeight:"inherit"},Xb=function(t){var n=t.display,r=t.style,a=t.className,o=t.classNames,l=p4(Boe,{style:r,className:a,classNames:o});return Se.createElement("strong",l,n)};Xb.propTypes={onAdd:Ht.func,onRemove:Ht.func,renderSuggestion:Ht.func,trigger:Ht.oneOfType([Ht.string,Ht.instanceOf(RegExp)]),markup:Ht.string,displayTransform:Ht.func,allowSpaceInQuery:Ht.bool,isLoading:Ht.bool};Xb.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(t,n){return n||t},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const Foe=({value:e,placeholder:t,projectComponents:n=[],markdownFiles:r=[],onChange:a,onMentionsChange:o,onKeyDown:l})=>{const s=u.useRef(null),[d,f]=u.useState(n),[m,h]=u.useState(r);u.useEffect(()=>{f(n),window.addEventListener("projectComponentsUpdated",$=>{setProjectProjectComponents($.detail)})},[n]),u.useEffect(()=>{h(r),window.addEventListener("markdownFilesUpdated",$=>{h($.detail)})},[r]);const v=$=>{const O=/@\[([^\]]+)\]\(([^)]+)\)/g,N=[],I=[];let R;for(;(R=O.exec($))!==null;){const _=R[2];_.includes("/")||_.includes("\\")?I.push(_):N.push(_)}return{components:N,files:I}},y=u.useRef({components:[],files:[]});u.useEffect(()=>{if(!o)return;const $=v(e),O=y.current;if($.components.length!==O.components.length||$.files.length!==O.files.length||$.components.some((I,R)=>I!==O.components[R])||$.files.some((I,R)=>I!==O.files[R])){const I=$.components.map(_=>d.find(z=>z.name===_)).filter(_=>_!==void 0),R=$.files.map(_=>m.find(z=>z.path===_)).filter(_=>_!==void 0);o(I,R),y.current=$}},[e,d,m,o]);const S=u.useMemo(()=>{const $=d.map(N=>({id:N.name,display:N.name,type:"component",component:N})),O=m.map(N=>({id:N.path,display:N.name,type:"file",file:N}));return[...$,...O]},[d,m]),C=($,O,N,I,R)=>{const _=$.display||String($.id),D=$.type==="component"?$.component?.description:$.file?.path;return Q.jsxs("div",{className:`flex items-center gap-2 py-1 px-2 ${R?"bg-blue-50":"bg-white"} hover:bg-blue-50 cursor-pointer`,children:[Q.jsx("span",{className:"font-medium text-gray-900",children:_}),D&&Q.jsx("span",{className:"text-xs text-gray-400 truncate max-w-[300px]",children:D})]})},w=($,O,N,I)=>{a(O)},E=$=>{l&&l($)};return Q.jsx("div",{className:"w-full",children:Q.jsx(HN,{value:e,onChange:w,onKeyDown:E,placeholder:t,inputRef:s,className:"mentions-input",allowSuggestionsAboveCursor:!0,a11ySuggestionsListLabel:"引用建议列表",children:Q.jsx(Xb,{trigger:"@",data:S,renderSuggestion:C,markup:"@[__display__](__id__)",displayTransform:($,O)=>`@${O}`,appendSpaceOnAdd:!0,style:{backgroundColor:"#dbeafe"}})})})};let NS=2147492e3;const Hoe=(e,t,n,r,a)=>new Promise(o=>{const l=typeof e?.index=="number"&&e.index>=0?e.index:null,s=l!==null?`ai-dialog-${l}`:`ai-dialog-${Date.now()}`;let d=document.getElementById(s);if(d){d.style.zIndex=String(++NS);const j=d.__mentionsInstance;return j&&j.focus(),new Promise(Y=>{const ne=()=>{const Ce=d.__mentionsInstance,he=Ce?Ce.getValue().trim():"";he&&(Y(he),d.remove())},se=d.querySelector("button");se&&(se.onclick=()=>{Y(null),d.remove()});const de=d.querySelector("button:last-child");de&&(de.onclick=ne);const pe=d.querySelector("textarea");pe&&(pe.onkeydown=Ce=>{(Ce.metaKey||Ce.ctrlKey)&&Ce.key==="Enter"&&(Ce.preventDefault(),ne())})})}d=document.createElement("div"),d.id=s,d.className="ai-dialog",d.style.position="fixed",d.style.left="0",d.style.top="0",d.style.width="560px",d.style.maxWidth="92vw",d.style.background="#fff",d.style.border="1px solid #e5e7eb",d.style.borderRadius="10px",d.style.boxShadow="0 12px 28px rgba(0,0,0,0.18)",d.style.padding="12px",d.style.fontSize="14px",d.style.color="#111827",d.style.display="flex",d.style.flexDirection="column",d.style.gap="10px",d.style.zIndex=String(++NS),d.style.cursor="default";const f=document.createElement("div");f.style.display="flex",f.style.alignItems="center",f.style.justifyContent="space-between",f.style.userSelect="none",f.style.cursor="move";const m=document.createElement("div"),h=typeof e?.index=="number"?e.index+1:"-",v=(e?.group||[]).length;m.textContent=`自定义提示词 · 组 ${h}(元素 ${v})`,m.style.fontWeight="600";const y=document.createElement("button");y.textContent="×",y.style.fontSize="18px",y.style.lineHeight="18px",y.style.width="28px",y.style.height="28px",y.style.border="none",y.style.borderRadius="6px",y.style.background="transparent",y.style.cursor="pointer",y.onclick=()=>{o(null),d.remove()},f.appendChild(m),f.appendChild(y);const S=document.createElement("div");S.style.width="100%",S.style.minHeight="110px";const C=document.createElement("div");C.style.display="flex",C.style.justifyContent="flex-end",C.style.gap="8px";const w=document.createElement("button");w.textContent="保存",w.style.padding="6px 12px",w.style.border="1px solid #2563eb",w.style.background="#2563eb",w.style.color="#fff",w.style.borderRadius="8px",w.style.cursor="pointer";let E=t||"";const $=()=>{const j=E.trim();if(!j)return;const Y=e?.getSnapshot?e.getSnapshot():null;console.log("[AI] prompt:",j,{groupIndex:e?.index,group:e?.group,snapshot:Y}),o(j);const ne=d.__mentionsInstance;ne&&ne.destroy(),d.remove()};w.onclick=$,C.appendChild(w),d.appendChild(f),d.appendChild(S),d.appendChild(C),document.body.appendChild(d);const O=ob.createRoot(S),N=j=>{O.render(Q.jsx(Foe,{value:j,placeholder:"请输入 Prompt(例如: 切换Tab下方数据源更新;使用@组件名或@文档名来引用上下文)",projectComponents:n||[],onChange:Y=>{E=Y,N(Y)},markdownFiles:r||[],onMentionsChange:(Y,ne)=>{a&&a(Y,ne)},onKeyDown:Y=>{(Y.metaKey||Y.ctrlKey)&&Y.key==="Enter"&&(Y.preventDefault(),$())}}))},I={getValue:()=>E,setValue:j=>{E=j,N(j)},focus:()=>{setTimeout(()=>{S.querySelector("textarea")?.focus()},0)},destroy:()=>{O.unmount()}};d.__mentionsInstance=I,N(t||"");const R=10;let _=0,z=0,D=null,L=null;const B=()=>{const j=typeof e?.index=="number"&&e.index>=0?e.index:null;if(j!==null&&e?.getSnapshot){const Y=e.getSnapshot();if(Y&&Y.type==="groups"){const ne=Y.groupRects[j];if(ne)return{left:ne.left,top:ne.top,right:ne.left+ne.width,bottom:ne.top+ne.height}}}if(e?.anchorEl){const Y=e.anchorEl.getBoundingClientRect();return{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom}}if(e?.anchorRect){const Y=e.anchorRect;return{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom}}return null};(()=>{const j=d.offsetWidth,Y=d.offsetHeight;let ne=typeof e?.mouseX=="number"?e.mouseX+R:window.innerWidth-j-20,se=typeof e?.mouseY=="number"?e.mouseY+R:20;const de=B();de&&(ne=de.right+R,se=Math.max(R,de.bottom+R)),ne=Math.min(Math.max(R,ne),window.innerWidth-j-R),se=Math.min(Math.max(R,se),window.innerHeight-Y-R),d.style.left=ne+"px",d.style.top=se+"px",de?(D=de.right+R,L=de.bottom+R):typeof e?.mouseX=="number"&&typeof e?.mouseY=="number"?(D=e.mouseX+R,L=e.mouseY+R):(D=ne,L=se),_=ne-(D??0),z=se-(L??0)})(),setTimeout(()=>{const j=d.__mentionsInstance;j&&j.focus()},0);const H=()=>{window.removeEventListener("keydown",k),window.removeEventListener("scroll",K,!0),window.removeEventListener("resize",K)},k=j=>{if(j.key!=="Escape")return;const ne=Array.from(document.querySelectorAll(".ai-dialog")).reduce((de,pe)=>Math.max(de,parseInt(getComputedStyle(pe).zIndex||"0",10)||0),0);(parseInt(getComputedStyle(d).zIndex||"0",10)||0)===ne&&(H(),d.remove())};window.addEventListener("keydown",k);let q=!1,V=0,W=0;const G=j=>{q=!0,d.style.zIndex=String(++NS);const Y=d.getBoundingClientRect();V=j.clientX-Y.left,W=j.clientY-Y.top,document.addEventListener("mousemove",X),document.addEventListener("mouseup",P,{once:!0})},X=j=>{if(!q)return;const Y=Math.min(Math.max(0,j.clientX-V),window.innerWidth-d.offsetWidth),ne=Math.min(Math.max(0,j.clientY-W),window.innerHeight-d.offsetHeight);d.style.left=Y+"px",d.style.top=ne+"px"},P=()=>{q=!1,document.removeEventListener("mousemove",X);const j=B(),Y=j?j.right+R:D??0,ne=j?j.bottom+R:L??0,se=parseFloat(d.style.left||"0"),de=parseFloat(d.style.top||"0");_=se-Y,z=de-ne};f.addEventListener("mousedown",G);const K=()=>{if(q)return;const j=B();if(!j)return;const Y=j.right+R+_,ne=j.bottom+R+z;d.style.left=Y+"px",d.style.top=ne+"px"};window.addEventListener("scroll",K,!0),window.addEventListener("resize",K);const J=y.onclick;y.onclick=()=>{H(),J&&J.call(y,new MouseEvent("click"))}}),{Text:Ni}=Ko,TS=10,Voe=({groupIndex:e,elementCount:t,projectComponents:n,savedComponent:r,componentContext:a=[],onClose:o,onDirectReplace:l,onCancelReplace:s,onRefreshComponents:d,zIndex:f=2147493e3,supportSampling:m=!0})=>{const h=u.useRef(null),[v,y]=uv.useMessage({getContainer:()=>h.current||document.body}),[S,C]=u.useState(""),[w,E]=u.useState(1),[$,O]=u.useState(!1),[N,I]=u.useState(n),[R,_]=u.useState(a),[z,D]=u.useState(r),[L,B]=u.useState(!1),[F,H]=u.useState([]),[k,q]=u.useState([]),[V,W]=u.useState(!1),[G,X]=u.useState(!1),[P,K]=u.useState([]),[J]=oa.useForm(),[j,Y]=u.useState("");u.useEffect(()=>{I(n),window.addEventListener("projectComponentsUpdated",ye=>{I(ye.detail)})},[n]),u.useEffect(()=>{_(a)},[a]),u.useEffect(()=>{D(r)},[r]);const ne=u.useMemo(()=>{if(!S.trim())return N;const ye=S.toLowerCase();return N.filter(oe=>oe.name.toLowerCase().includes(ye)||oe.path.toLowerCase().includes(ye))},[N,S]),se=u.useMemo(()=>{const ye=(w-1)*TS,oe=ye+TS;return ne.slice(ye,oe)},[ne,w]),de=ye=>z?.id===ye.id,pe=(ye,oe)=>{oe.stopPropagation(),D(ye),_([]),l&&l(ye),v.success("直接替换成功,LLM生成时将跳过该区域代码生成,直接引用对应组件~")},Ce=ye=>{ye.stopPropagation(),D(void 0),s&&s()},he=ye=>ye.map(oe=>{const we=oe.children&&oe.children.length>0;return{...oe,checkable:!we,icon:we?Q.jsx(u9,{}):Q.jsx(kb,{}),children:we?he(oe.children):void 0}}),me=async()=>{W(!0);try{const oe=await(await fetch("/getProjectFiles")).json();if(oe.success){const we=he(oe.data.files);H(we)}else v.error("加载文件树失败: "+oe.message)}catch(ye){const oe=ye instanceof Error?ye.message:String(ye);v.error("加载文件树失败: "+oe)}finally{W(!1)}},be=()=>{B(!0),me()},fe=async()=>{O(!0);try{const oe=await(await fetch("/saveComponents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({components:P})})).json();oe.success?(v.success(`已导入 ${oe.data.added} 个组件`),q([]),X(!1),K([]),d&&d()):v.error("保存失败: "+oe.message)}catch(ye){const oe=ye instanceof Error?ye.message:String(ye);v.error("保存失败: "+oe)}finally{O(!1)}},ge=(ye,oe,we)=>{const Fe=[...P];Fe[ye]={...Fe[ye],[oe]:we},K(Fe)},Oe=(ye,oe,we,Fe)=>{const xe=[...P],_e=[...xe[ye].props];_e[oe]={..._e[oe],[we]:Fe},xe[ye]={...xe[ye],props:_e},K(xe)},Ne=(ye,oe,we,Fe)=>{const xe=[...P],_e=[...xe[ye].functions||[]];_e[oe]={..._e[oe],[we]:Fe},xe[ye]={...xe[ye],functions:_e},K(xe)},je=(ye,oe,we,Fe,xe)=>{const _e=[...P],rt=[..._e[ye].functions||[]],lt=[...rt[oe].params];lt[we]={...lt[we],[Fe]:xe},rt[oe]={...rt[oe],params:lt},_e[ye]={..._e[ye],functions:rt},K(_e)},Te=async()=>{if(k.length===0){v.warning("请先选择文件");return}O(!0),B(!1);try{const oe=await(await fetch("/analyzeComponents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePaths:k})})).json();if(oe.success){const{succeeded:we,failed:Fe,components:xe,errors:_e}=oe.data;if(we>0&&(v.success(`成功分析 ${we} 个组件`),K(JSON.parse(JSON.stringify(xe))),X(!0)),Fe>0){const rt=_e.map(lt=>`${lt.filename}: ${lt.error}`).join(` `);v.error(`${Fe} 个文件分析失败: ${rt}`)}}else v.error("分析失败: "+oe.message)}catch(ye){const oe=ye instanceof Error?ye.message:String(ye);v.error("处理失败: "+oe)}finally{O(!1)}},Ue=ye=>ye.id===j,qe=ye=>{J.setFieldsValue({name:ye.name,type:ye.type,description:ye.description||"",import:ye.import}),Y(ye.id)},ze=()=>{Y("")},Ve=async ye=>{try{const oe=await J.validateFields(),we=[...N],Fe=we.findIndex(xe=>ye===xe.id);if(Fe>-1){const _e={...we[Fe],...oe};we.splice(Fe,1,_e);const lt=await(await fetch("/saveComponents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({components:[_e]})})).json();lt.success?(I(we),Y(""),v.success("保存成功")):v.error("保存失败: "+lt.message)}}catch(oe){console.log("Validate Failed:",oe)}},Be=u.useMemo(()=>N.some(ye=>ye.functions&&ye.functions.length>0),[N]),De=[{title:"组件名称",dataIndex:"name",key:"name",width:140,render:(ye,oe)=>Ue(oe)?Q.jsx(oa.Item,{name:"name",style:{margin:0},rules:[{required:!0,message:"组件名称不能为空"}],children:Q.jsx(Pn,{size:"small"})}):Q.jsx(Ni,{strong:!0,className:"text-sm",children:ye})},{title:"类型",dataIndex:"type",key:"type",width:80,render:(ye,oe)=>Ue(oe)?Q.jsx(oa.Item,{name:"type",style:{margin:0},children:Q.jsx(Pn,{size:"small"})}):Q.jsx(Wo,{color:"default",className:"m-0",children:ye||"custom"})},{title:"描述",dataIndex:"description",key:"description",width:120,ellipsis:!0,render:(ye,oe)=>Ue(oe)?Q.jsx(oa.Item,{name:"description",style:{margin:0},children:Q.jsx(Pn.TextArea,{autoSize:{minRows:1,maxRows:2},size:"small"})}):Q.jsx(Oo,{title:ye,children:Q.jsx(Ni,{type:"secondary",className:"text-xs",children:ye||"-"})})},{title:"导入语句",dataIndex:"import",key:"import",width:200,ellipsis:!0,render:(ye,oe)=>Ue(oe)?Q.jsx(oa.Item,{name:"import",style:{margin:0},children:Q.jsx(Pn,{size:"small",className:"font-mono text-xs"})}):Q.jsx(Oo,{title:ye,children:Q.jsx(Ni,{className:"text-xs font-mono text-gray-600",children:ye||"-"})})},{title:"路径",dataIndex:"path",key:"path",width:100,ellipsis:!0,render:ye=>Q.jsx(Oo,{title:ye,children:Q.jsx(Ni,{type:"secondary",className:"text-xs",children:ye})})},{title:"Props",dataIndex:"props",key:"props",width:90,render:ye=>{if(!ye||ye.length===0)return Q.jsx(Ni,{type:"secondary",className:"text-xs",children:"-"});const oe=Q.jsx("div",{className:"flex flex-wrap gap-1 max-w-[300px]",children:ye.map(we=>Q.jsxs(Wo,{color:we.required?"red":"default",className:"m-0 text-xs",children:[we.name,we.required&&Q.jsx("span",{className:"ml-0.5 text-red-500",children:"*"}),we.type&&Q.jsxs("span",{className:"ml-1 text-gray-400",children:[": ",we.type]})]},we.name))});return Q.jsx(Fy,{content:oe,title:"Props 列表",trigger:"hover",children:Q.jsxs(Wo,{color:"processing",className:"cursor-pointer",children:[ye.length," 个"]})})}},...Be?[{title:"Functions",dataIndex:"functions",key:"functions",width:100,render:ye=>{if(!ye||ye.length===0)return Q.jsx(Ni,{type:"secondary",className:"text-xs",children:"-"});const oe=Q.jsx("div",{className:"max-w-[350px] space-y-2",children:ye.map(we=>Q.jsxs("div",{className:"p-2 bg-gray-50 rounded border",children:[Q.jsxs("div",{className:"font-mono text-sm font-medium text-blue-600",children:[we.name,"(",we.params.map(Fe=>`${Fe.name}: ${Fe.type}`).join(", "),"): ",we.returnType]}),we.description&&Q.jsx("div",{className:"text-xs text-gray-500 mt-1",children:we.description})]},we.name))});return Q.jsx(Fy,{content:oe,title:"公开方法列表",trigger:"hover",children:Q.jsxs(Wo,{color:"purple",className:"cursor-pointer",children:[ye.length," 个"]})})}}]:[],{title:"操作",key:"action",width:140,fixed:"right",render:(ye,oe)=>{const we=Ue(oe),Fe=de(oe);return we?Q.jsxs(to,{size:"small",children:[Q.jsx(Un,{type:"link",size:"small",icon:Q.jsx(Ob,{}),onClick:()=>Ve(oe.id),className:"!px-1",children:"保存"}),Q.jsx(Un,{type:"link",size:"small",icon:Q.jsx(tX,{}),onClick:ze,className:"!px-1 !text-gray-500",children:"取消"})]}):Q.jsxs(to,{size:"small",children:[Q.jsx(Un,{type:"link",size:"small",icon:Q.jsx(ps,{}),disabled:j!=="",onClick:()=>qe(oe),className:"!px-1",children:"编辑"}),Fe?Q.jsx(Un,{type:"link",size:"small",onClick:Ce,className:"!px-1 !text-gray-500",children:"取消替换"}):Q.jsx(Un,{type:"link",size:"small",onClick:xe=>pe(oe,xe),disabled:R.length>0,className:"!px-1",children:"直接替换"})]})}}];return Q.jsxs(Q.Fragment,{children:[y,Q.jsxs(qa,{open:!0,onCancel:o,footer:null,width:900,zIndex:f,title:Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"}),Q.jsxs(Ni,{strong:!0,className:"text-base text-gray-800",children:["组件映射 · 组 ",e,"(元素 ",t,")"]}),ne.length!==N.length&&Q.jsxs(Wo,{color:"blue",className:"ml-2",children:["已过滤 ",ne.length,"/",N.length]})]}),closeIcon:Q.jsx(ic,{}),className:"component-map-modal",styles:{body:{padding:0}},maskClosable:!0,children:[Q.jsxs("div",{ref:h,className:"flex flex-col overflow-hidden",children:[Q.jsxs("div",{className:"pt-4 bg-white flex gap-2",children:[Q.jsx(Pn,{size:"large",placeholder:"搜索组件名称",prefix:Q.jsx(lv,{className:"text-gray-400"}),value:S,onChange:ye=>{C(ye.target.value),E(1)},allowClear:!0,className:"flex-1 rounded-lg"}),Q.jsx(Oo,{title:m?void 0:"当前 MCP 客户端不支持 Sampling 能力,请在 AI Coding 中使用 @组件 + #mark_components 进行组件标记",children:Q.jsx(Un,{className:"!h-10",icon:Q.jsx(lY,{}),onClick:be,disabled:$||!m,loading:$,children:$?"分析中...":"导入组件"})})]}),Q.jsx("div",{className:"flex-1 overflow-hidden py-4 bg-white",children:ne.length===0?Q.jsx(fi,{description:S?Q.jsx("span",{className:"text-gray-500",children:"未找到匹配的组件"}):Q.jsx("div",{className:"flex flex-col items-center gap-2",children:Q.jsx("span",{className:"text-gray-500",children:"暂无组件,请上传组件文件"})}),className:"py-12"}):Q.jsx(oa,{form:J,component:!1,children:Q.jsx(lc,{dataSource:se,columns:De,rowKey:"id",size:"small",pagination:!1,scroll:{x:850,y:"calc(80vh - 280px)"},rowClassName:ye=>de(ye)?"bg-blue-50":""})})}),ne.length>0&&Q.jsxs("div",{className:"py-4 border-t border-gray-200 bg-white flex items-center justify-between",children:[Q.jsxs(Ni,{type:"secondary",className:"text-sm",children:["共 ",ne.length," 个组件"]}),Q.jsx(LE,{current:w,total:ne.length,pageSize:TS,showSizeChanger:!1,showQuickJumper:!0,showTotal:(ye,oe)=>`${oe[0]}-${oe[1]} / ${ye}`,onChange:ye=>E(ye),className:"m-0"})]})]}),Q.jsx(qa,{title:"从项目中选择组件文件",open:L,onCancel:()=>{B(!1),q([])},zIndex:(f||2147493e3)+1,onOk:Te,width:700,okText:`导入选中的文件 (${k.length})`,cancelText:"取消",confirmLoading:$,okButtonProps:{disabled:k.length===0},children:Q.jsx("div",{className:"py-4",children:V?Q.jsx("div",{className:"text-center py-8 text-gray-500",children:"加载文件树中..."}):F.length===0?Q.jsx(fi,{description:"未找到可用的文件"}):Q.jsxs("div",{children:[Q.jsxs("div",{className:"mb-3 text-sm text-gray-600",children:[Q.jsx("span",{children:"已选择 "}),Q.jsx(Wo,{color:"blue",children:k.length}),Q.jsx("span",{children:" 个文件"})]}),Q.jsx("div",{className:"border rounded p-2 max-h-[500px] overflow-auto",children:Q.jsx(Vb,{checkable:!0,showIcon:!0,showLine:{showLeafIcon:!1},defaultExpandAll:!0,treeData:F,onCheck:ye=>{const oe=Array.isArray(ye)?ye:ye.checked||[];q(oe)},checkedKeys:k})})]})})}),Q.jsx(qa,{title:Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx(ps,{}),Q.jsx("span",{children:"确认导入组件信息"}),Q.jsxs(Wo,{color:"blue",children:[P.length," 个组件"]})]}),open:G,onCancel:()=>{X(!1),K([])},onOk:fe,width:900,okText:"确认导入",cancelText:"取消",confirmLoading:$,zIndex:(f||2147493e3)+2,styles:{body:{maxHeight:"70vh",overflowY:"auto"}},children:Q.jsxs("div",{className:"py-4",children:[Q.jsx("div",{className:"mb-4 text-sm text-gray-600",children:'请检查并修改组件信息,确认无误后点击"确认导入"'}),Q.jsx(fj,{defaultActiveKey:P.map((ye,oe)=>String(oe)),items:P.map((ye,oe)=>({key:String(oe),label:Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx(Ni,{strong:!0,children:ye.name}),Q.jsx(Wo,{color:"default",children:ye.type||"custom"}),Q.jsx(Ni,{type:"secondary",className:"text-xs",children:ye.path})]}),children:Q.jsxs("div",{className:"py-2 space-y-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"组件名称"}),Q.jsx(Pn,{value:ye.name,onChange:we=>ge(oe,"name",we.target.value),placeholder:"组件名称"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"组件描述"}),Q.jsx(Pn.TextArea,{value:ye.description||"",onChange:we=>ge(oe,"description",we.target.value),placeholder:"组件描述(可选)",rows:2})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"组件类型"}),Q.jsx(Pn,{value:ye.type,onChange:we=>ge(oe,"type",we.target.value),placeholder:"组件类型"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"导入语句"}),Q.jsx(Pn,{value:ye.import,onChange:we=>ge(oe,"import",we.target.value),placeholder:"import 语句",className:"font-mono text-xs"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Props"}),Q.jsx("div",{className:"space-y-2 border rounded p-3 bg-gray-50",children:ye.props&&ye.props.length>0?ye.props.map((we,Fe)=>Q.jsxs("div",{className:"flex items-center gap-2 p-2 bg-white rounded border",children:[Q.jsx(Pn,{size:"small",value:we.name,onChange:xe=>Oe(oe,Fe,"name",xe.target.value),placeholder:"属性名",style:{width:"150px"}}),Q.jsx(Pn,{size:"small",value:we.type,onChange:xe=>Oe(oe,Fe,"type",xe.target.value),placeholder:"类型",style:{width:"120px"}}),Q.jsxs("div",{className:"flex items-center gap-1",children:[Q.jsx("input",{type:"checkbox",checked:we.required,onChange:xe=>Oe(oe,Fe,"required",xe.target.checked),className:"cursor-pointer"}),Q.jsx("span",{className:"text-xs text-gray-600",children:"必填"})]})]},Fe)):Q.jsx(Ni,{type:"secondary",className:"text-xs",children:"无 Props"})})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"父类 (Super)"}),Q.jsx(Pn,{value:ye.super||"",onChange:we=>ge(oe,"super",we.target.value||void 0),placeholder:"父类名称(可选)"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"公开方法 (Functions)"}),Q.jsx("div",{className:"space-y-3 border rounded p-3 bg-gray-50",children:ye.functions&&ye.functions.length>0?ye.functions.map((we,Fe)=>Q.jsxs("div",{className:"p-3 bg-white rounded border space-y-2",children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx(Pn,{size:"small",value:we.name,onChange:xe=>Ne(oe,Fe,"name",xe.target.value),placeholder:"方法名",style:{width:"150px"},addonBefore:"名称"}),Q.jsx(Pn,{size:"small",value:we.returnType,onChange:xe=>Ne(oe,Fe,"returnType",xe.target.value),placeholder:"返回类型",style:{width:"150px"},addonBefore:"返回"})]}),Q.jsx(Pn,{size:"small",value:we.description||"",onChange:xe=>Ne(oe,Fe,"description",xe.target.value),placeholder:"方法描述(可选)",addonBefore:"描述"}),Q.jsxs("div",{className:"pl-4 border-l-2 border-gray-200",children:[Q.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"参数:"}),we.params&&we.params.length>0?we.params.map((xe,_e)=>Q.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[Q.jsx(Pn,{size:"small",value:xe.name,onChange:rt=>je(oe,Fe,_e,"name",rt.target.value),placeholder:"参数名",style:{width:"120px"}}),Q.jsx("span",{className:"text-gray-400",children:":"}),Q.jsx(Pn,{size:"small",value:xe.type,onChange:rt=>je(oe,Fe,_e,"type",rt.target.value),placeholder:"类型",style:{width:"120px"}})]},_e)):Q.jsx(Ni,{type:"secondary",className:"text-xs",children:"无参数"})]})]},Fe)):Q.jsx(Ni,{type:"secondary",className:"text-xs",children:"无公开方法"})})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"文件路径"}),Q.jsx(Pn,{value:ye.path,disabled:!0,className:"bg-gray-50"})]})]})}))})]})})]})]})};let p8=2147493e3;const ey=new Map,Koe=({groupIndex:e,elementCount:t,projectComponents:n,savedComponent:r,componentContext:a,onClose:o,onAddToContext:l,onRemoveFromContext:s,onDirectReplace:d,onCancelReplace:f,onRefreshComponents:m,zIndex:h,supportSampling:v})=>Q.jsx(rl,{children:Q.jsx(Voe,{groupIndex:e,elementCount:t,projectComponents:n,savedComponent:r,componentContext:a,onClose:o,onAddToContext:l,onRemoveFromContext:s,onDirectReplace:d,onCancelReplace:f,onRefreshComponents:m,zIndex:h,supportSampling:v})}),Woe=(e,t,n,r,a,o,l,s,d,f)=>{const m=typeof e?.index=="number"&&e.index>=0?e.index:null,h=m!==null?m:`temp-${Date.now()}`,v=ey.get(h);if(v){const O=++p8,N=v.container.querySelector(".ant-modal-wrap"),I=v.container.querySelector(".ant-modal-mask");N&&(N.style.zIndex=String(O)),I&&(I.style.zIndex=String(O));return}const y=document.createElement("div");document.body.appendChild(y);const S=typeof e?.index=="number"?e.index+1:0,C=(e?.group||[]).length,w=++p8,E=()=>{const O=ey.get(h);O&&(O.root.unmount(),O.container.remove(),ey.delete(h))},$=ob.createRoot(y);$.render(Q.jsx(Koe,{groupIndex:S,elementCount:C,projectComponents:t,savedComponent:n,componentContext:r,onClose:E,onAddToContext:a,onRemoveFromContext:o,onDirectReplace:l,onCancelReplace:s,onRefreshComponents:d,zIndex:w,supportSampling:f})),ey.set(h,{root:$,container:y})};function Uoe(e){return e instanceof Element}function qoe(e){const{lastSnapshot:t}=e,[n,r]=u.useState(!1),a=f=>{if(!Uoe(f))return String(f);const m=f.id?`#${f.id}`:"",h=(f.firstChild?.textContent||"").trim().slice(0,20);return`<span class="text-vscode-foreground">${f.tagName.toLowerCase()}${m}${h?`<span class="text-vscode-description ml-1">${h}</span>`:""}</span>`},o=f=>{const m=f.filter(v=>!f.some(y=>y!==v&&y.contains(v))),h=v=>{const y=f.filter(S=>S!==v&&v.contains(S)&&!f.some(C=>C!==S&&C!==v&&C.contains(S)&&v.contains(C)));return{el:v,children:y.map(h)}};return m.map(h)},l=f=>{const m=h=>`<ul class="list-none pl-3">${h.map(v=>`<li class="my-0.5">${a(v.el)}${v.children?.length?m(v.children):""}</li>`).join("")}</ul>`;return`<div>${m(f)}</div>`},s=f=>{if(f.type==="groups"){const h=f,v=[`组数:${h.groups.length}`,`并集元素:${h.flat.length}`].map(S=>`<div class="my-0.5 text-vscode-description">${S}</div>`).join(""),y=h.groups.map((S,C)=>{const w=h.groupRects?.[C],E=h.hidden?.[C]?"隐藏":"显示",$=`第${C+1}组:元素${S.length}个,${E}${w?`,框(${Math.round(w.left)},${Math.round(w.top)} ${Math.round(w.width)}×${Math.round(w.height)})`:""}`,O=l(o(S));return`<details class="border border-vscode-panel-border rounded-md p-1.5 mb-1.5 bg-vscode-editor-bg"><summary class="cursor-pointer outline-none">${$}</summary>${O}</details>`}).join("");return Q.jsx("div",{dangerouslySetInnerHTML:{__html:v+y}})}const m=f;return Q.jsxs("div",{children:["单次选中:",m.selected?.length||0]})},d=f=>{if(f.type!=="groups"){const $=l(o(f.selected||[]));return Q.jsx("div",{dangerouslySetInnerHTML:{__html:`<details class="border border-vscode-panel-border rounded-md p-1.5 mb-1.5 bg-vscode-editor-bg" open><summary class="cursor-pointer outline-none">单次选中嵌套</summary>${$}</details>`}})}const m=f,h=m.groupNesting||null,v=h?.children||[],y=h?.roots||[],S=E=>{const $=m.groups[E],O=m.groupRects?.[E],N=m.hidden?.[E]?"隐藏":"显示";return`第${E+1}组:元素${$.length}个,${N}${O?`,框(${Math.round(O.left)},${Math.round(O.top)} ${Math.round(O.width)}×${Math.round(O.height)})`:""}`},C=E=>{const $=l(o(m.groups[E])),O=(v?.[E]||[])?.map(C).join("")||"";return`<details class="group"><summary>${S(E)}</summary>${$}${O}</details>`},w=["组嵌套查看",`组数:${m.groups.length}`].map(E=>`<div class="my-0.5 text-vscode-description">${E}</div>`).join("");return Q.jsx("div",{dangerouslySetInnerHTML:{__html:w+y.map(C).join("")}})};return Q.jsxs("div",{className:"absolute right-2 top-2 w-[240px] max-h-[60%] overflow-auto bg-vscode-sideBar-background/90 text-vscode-foreground border border-vscode-panel-border rounded-lg p-2 text-xs",children:[Q.jsx("div",{className:"font-semibold mb-1.5",children:"圈选结果"}),Q.jsx("div",{className:"flex gap-2 items-center mb-1.5",children:Q.jsx("button",{onClick:f=>{f.stopPropagation(),r(m=>!m)},className:"px-2 py-0.5 border border-vscode-input-border rounded-md bg-vscode-input-bg text-vscode-foreground cursor-pointer hover:bg-vscode-button-secondary-hover",children:n?"平铺查看":"组嵌套查看"})}),t?Q.jsx(Q.Fragment,{children:n?d(t):s(t)}):Q.jsx("div",{className:"text-vscode-description",children:"暂无"})]})}let IS=!1,ty=null;const Goe=()=>IS?Promise.resolve():ty||(ty=new Promise(e=>{if(document.querySelector('script[src*="tailwindcss"]')){IS=!0,e();return}const t=document.createElement("script");t.src="https://cdn.tailwindcss.com",t.onload=()=>{IS=!0,e()},document.head.appendChild(t)}),ty),Xoe=u.memo(({html:e,style:t})=>{const n=u.useRef(null);return u.useEffect(()=>{const r=n.current;if(!r)return;const o=new DOMParser().parseFromString(e,"text/html"),l=o.body.innerHTML,s=o.querySelectorAll("style"),d=Array.from(s).map(m=>m.textContent).join(` `);if(r.innerHTML="",d){const m=document.createElement("style");m.textContent=d,r.appendChild(m)}const f=document.createElement("div");f.setAttribute("id","safe-html-wrapper"),f.setAttribute("data-safe-html-content","true"),f.innerHTML=l,r.appendChild(f),Goe()},[e]),Q.jsx("div",{id:"preview-content",ref:n,style:t})}),VN=u.forwardRef(({configSettings:e,html:t,groupsData:n,projectComponents:r=[],markdownFiles:a=[],onRefreshComponents:o,supportSampling:l=!0},s)=>{const d=u.useRef(null),[f,m]=u.useState(0),[h,v]=u.useState(0),[y,S]=u.useState(1),[C,w]=u.useState(!1),E=u.useRef(null),$=u.useRef(e),[O,N]=u.useState(),[I,R]=uv.useMessage(),_=u.useRef({}),z=u.useRef({}),D=u.useRef({}),L=u.useRef({}),B=u.useRef({}),F=u.useRef({});u.useEffect(()=>{$.current=e},[e]);const H=(G,X)=>{_.current[G]=X},k=G=>{if(!E.current||!d.current||!G.length)return;console.log("🔄 开始恢复分组数据:",G),E.current.clearGroups(),G.forEach((P,K)=>{P.userPrompt&&(_.current[K]=P.userPrompt),P.componentMapping&&(z.current[K]=P.componentMapping),P.componentContext&&Array.isArray(P.componentContext)&&(D.current[K]=P.componentContext),P.markdownContext&&Array.isArray(P.markdownContext)&&(L.current[K]=P.markdownContext),P.marked!==void 0&&(B.current[K]=P.marked),P.screenshot&&(F.current[K]=P.screenshot)});let X=0;G.forEach((P,K)=>{const J=[];P.elements.forEach(j=>{const Y=d.current?.querySelector(`[data-id="${j}"]`);Y&&J.push(Y)}),J.length>0&&(E.current?.addGroup(J)?(X++,console.log(`✅ 成功恢复分组 ${K+1}:`,J.length,"个元素")):console.warn(`⚠️ 恢复分组 ${K+1} 失败`),P.componentMapping&&E.current?.setToolbarButtonProps(K,1,{label:"已映射"}),P.marked&&E.current?.setToolbarButtonProps(K,2,{label:"已标记"}))}),X>0&&(E.current.showAndRefreshOverlays(),console.log(`✨ 恢复分组完成,成功恢复 ${X}/${G.length} 个分组`))};u.useImperativeHandle(s,()=>({getGroupsData:()=>{if(!O||O.type!=="groups")return null;const G=O,P=(G.groupNesting||null)?.children||[],K=d.current?.querySelector(":scope > div"),J=K?.getBoundingClientRect();let j=1;if(K){const Y=window.getComputedStyle(K).transform;if(Y&&Y!=="none"){const ne=Y.match(/matrix\(([^)]+)\)/);ne&&(j=ne[1].split(",").map(parseFloat)[0]||1)}}return G.groups.map((Y,ne)=>{const se=G.groupRects?.[ne];let de=se;return se&&J&&(de={left:(se.left-J.left)/j,top:(se.top-J.top)/j,width:se.width/j,height:se.height/j}),{groupIndex:ne,elements:Y.map(Ce=>Ce.getAttribute("data-id")||""),rect:de,userPrompt:_.current[ne]||void 0,componentMapping:z.current[ne]||void 0,componentContext:D.current[ne]||void 0,markdownContext:L.current[ne]||void 0,children:P[ne]&&P[ne].length>0?P[ne]:void 0,marked:B.current[ne]||void 0,screenshot:F.current[ne]||void 0}})},setGroupsData:k}),[O]);const q=u.useMemo(()=>({transform:`translate(${f}px, ${h}px) scale(${y})`,transformOrigin:"0 0"}),[f,h,y]),V=()=>{if(!d.current)return;const X=d.current.parentElement;if(!X)return;const P=qe=>{const{width:ze,marginLeft:Ve,marginRight:Be}=getComputedStyle(qe);return parseFloat(ze)+parseFloat(Ve)+parseFloat(Be)},K=qe=>{const{height:ze,marginTop:Ve,marginBottom:Be}=getComputedStyle(qe);return parseFloat(ze)+parseFloat(Ve)+parseFloat(Be)},J=d.current.querySelector(":scope > div");if(!J)return;const j=J.querySelector("[data-safe-html-content]");if(!j)return;const Y=j.firstElementChild;if(!Y)return;const ne=P(Y),se=K(Y);if(ne===0||se===0)return;const de=X.getBoundingClientRect(),pe=100,Ce=100,he=de.width-pe,me=de.height-Ce,be=he,fe=me;let ge=be/ne;fe/be<se/ne&&(ge=fe/se),console.log(ge,"xxxxx"),ge=Math.min(ge,1);const Ne=ne*ge,je=se*ge;let Te=(he-Ne)/2,Ue=(me-je)/2;je>me&&(Ue=0),Ne>he&&(Te=0),m(Te),v(Ue),S(ge),w(!0)};u.useEffect(()=>{if(!t)return;const G=setTimeout(()=>{V()},1e3);return setTimeout(()=>{w(!0)},3e3),()=>clearTimeout(G)},[t]);const W=u.useRef(r);return u.useEffect(()=>{W.current=r},[r]),u.useEffect(()=>{if(!d.current||!t)return;E.current&&(E.current.destroy(),E.current=null);const G=zae({container:d.current,selectable:"*",exclude:["#preview-panel","#preview-content","#safe-html-wrapper"],toolbarButtons:[{label:"提示词",title:"自定义提示词",onClick:async X=>{const P=typeof X?.index=="number"?X.index:-1,K=P>=0?_.current[P]:void 0,j=await Hoe(X,K,r,a,(Y,ne)=>{P>=0&&(D.current[P]=Y,L.current[P]=ne)});j&&P>=0&&H(P,j)}},{label:"组件映射",title:"组件映射",onClick:X=>{const P=typeof X?.index=="number"?X.index:-1,K=z.current[P],J=P>=0?D.current[P]||[]:[];if(B.current[P]){I.warning("组件已进行标记,不能加入上下文");return}const j=de=>{if(P>=0){const pe=D.current[P]||[];pe.some(Ce=>Ce.id===de.id)||(D.current[P]=[...pe,de],O&&N({...O})),X.label="已映射"}},Y=de=>{if(P>=0){const pe=D.current[P]||[];D.current[P]=pe.filter(Ce=>Ce.id!==de.id),D.current[P]?.length===0&&(X.label="组件映射"),O&&N({...O})}},ne=de=>{P>=0&&(z.current[P]=de,D.current[P]=[],X.label="已映射",O&&N({...O}))},se=()=>{P>=0&&(delete z.current[P],X.label="组件映射",O&&N({...O}))};Woe(X,W.current||[],K,J,j,Y,ne,se,o,l)}},{label:"标记为组件",title:"标记/取消标记此组件代码将用于后续复用",onClick:async X=>{const P=typeof X?.index=="number"?X.index:-1;if(P>=0)if(B.current[P]||!1)confirm("确定要取消标记吗?")&&(delete B.current[P],O&&N({...O}),X.label="标记为组件");else{if(console.log(D.current[P],"xxxxx"),D.current[P]?.length||z.current[P]){I.warning("该模块已进行组件映射,不能进行标记为组件");return}B.current[P]=!0,I.success("已标记组件,存储到.components.json,其他设计稿类似模块可直接复用,无需重复生成"),O&&N({...O}),X.label="已标记"}}}],quickGroupOnDblClick:!0,selectionMode:"contains",minOverlapRatio:.95,overlapMetric:"element",conflictStrategy:"none",multi:!0,combineMode:"auto",groupMode:!0,hoverHighlight:!0,hoverClass:"hovered",allowIntersectionSelection:!1,allowContainmentSelection:!0,allowUnionSelection:!0,groupRandomColor:!0,onSelectionEnd:X=>{N(X)}});return E.current=G,n&&n.length>0&&setTimeout(()=>{k(n)},1500),()=>{E.current&&(console.log("🧹 Cleanup: destroying marqueeSelection"),E.current.destroy(),E.current=null)}},[t,n]),Q.jsxs(Q.Fragment,{children:[R,Q.jsxs("div",{className:"flex-1 h-full overflow-auto bg-vscode-editor-bg relative",children:[Q.jsx("div",{ref:d,id:"preview-panel",className:"relative w-full h-full p-5 overflow-hidden",style:{visibility:C?"visible":"hidden"},children:Q.jsx(Xoe,{html:t,style:q})}),Q.jsx(qoe,{lastSnapshot:O})]})]})});VN.displayName="PreviewPanel";var gh={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */var Yoe=gh.exports,g8;function Qoe(){return g8||(g8=1,(function(e,t){(function(){var n,r="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",s="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",h=1,v=2,y=4,S=1,C=2,w=1,E=2,$=4,O=8,N=16,I=32,R=64,_=128,z=256,D=512,L=30,B="...",F=800,H=16,k=1,q=2,V=3,W=1/0,G=9007199254740991,X=17976931348623157e292,P=NaN,K=4294967295,J=K-1,j=K>>>1,Y=[["ary",_],["bind",w],["bindKey",E],["curry",O],["curryRight",N],["flip",D],["partial",I],["partialRight",R],["rearg",z]],ne="[object Arguments]",se="[object Array]",de="[object AsyncFunction]",pe="[object Boolean]",Ce="[object Date]",he="[object DOMException]",me="[object Error]",be="[object Function]",fe="[object GeneratorFunction]",ge="[object Map]",Oe="[object Number]",Ne="[object Null]",je="[object Object]",Te="[object Promise]",Ue="[object Proxy]",qe="[object RegExp]",ze="[object Set]",Ve="[object String]",Be="[object Symbol]",De="[object Undefined]",ye="[object WeakMap]",oe="[object WeakSet]",we="[object ArrayBuffer]",Fe="[object DataView]",xe="[object Float32Array]",_e="[object Float64Array]",rt="[object Int8Array]",lt="[object Int16Array]",ut="[object Int32Array]",tt="[object Uint8Array]",mt="[object Uint8ClampedArray]",at="[object Uint16Array]",gt="[object Uint32Array]",Nt=/\b__p \+= '';/g,tn=/\b(__p \+=) '' \+/g,Wt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dn=/&(?:amp|lt|gt|quot|#39);/g,Qt=/[&<>"']/g,nn=RegExp(dn.source),Zt=RegExp(Qt.source),Lt=/<%-([\s\S]+?)%>/g,_t=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qe=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(Qe.source),Ae=/^\s+/,He=/\s/,Ye=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$t=/\{\n\/\* \[wrapped with (.+)\] \*/,xt=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,Tt=/^[-+]0x[0-9a-f]+$/i,Mt=/^0b[01]+$/i,zt=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,rn=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,Ft=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",Jt="\\u0300-\\u036f",un="\\ufe20-\\ufe2f",On="\\u20d0-\\u20ff",Qn=Jt+un+On,Xt="\\u2700-\\u27bf",an="a-z\\xdf-\\xf6\\xf8-\\xff",Bt="\\xac\\xb1\\xd7\\xf7",gr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lr="\\u2000-\\u206f",so=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Da="A-Z\\xc0-\\xd6\\xd8-\\xde",fr="\\ufe0e\\ufe0f",Ea=Bt+gr+Lr+so,fa="['’]",Br="["+Gt+"]",xn="["+Ea+"]",kt="["+Qn+"]",fn="\\d+",on="["+Xt+"]",Mn="["+an+"]",_n="[^"+Gt+Ea+fn+Xt+an+Da+"]",Ir="\\ud83c[\\udffb-\\udfff]",yr="(?:"+kt+"|"+Ir+")",ia="[^"+Gt+"]",la="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+Da+"]",$a="\\u200d",Sn="(?:"+Mn+"|"+_n+")",gn="(?:"+Fr+"|"+_n+")",_r="(?:"+fa+"(?:d|ll|m|re|s|t|ve))?",ga="(?:"+fa+"(?:D|LL|M|RE|S|T|VE))?",qn=yr+"?",Oa="["+fr+"]?",ja="(?:"+$a+"(?:"+[ia,la,wr].join("|")+")"+Oa+qn+")*",Hr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Io=Oa+qn+ja,Pl="(?:"+[on,la,wr].join("|")+")"+Io,sc="(?:"+[ia+kt+"?",kt,la,wr,Br].join("|")+")",al=RegExp(fa,"g"),_o=RegExp(kt,"g"),Yt=RegExp(Ir+"(?="+Ir+")|"+sc+Io,"g"),mn=RegExp([Fr+"?"+Mn+"+"+_r+"(?="+[xn,Fr,"$"].join("|")+")",gn+"+"+ga+"(?="+[xn,Fr+Sn,"$"].join("|")+")",Fr+"?"+Sn+"+"+_r,Fr+"+"+ga,sa,Hr,fn,Pl].join("|"),"g"),rr=RegExp("["+$a+Gt+Qn+fr+"]"),Zr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ws=-1,ur={};ur[xe]=ur[_e]=ur[rt]=ur[lt]=ur[ut]=ur[tt]=ur[mt]=ur[at]=ur[gt]=!0,ur[ne]=ur[se]=ur[we]=ur[pe]=ur[Fe]=ur[Ce]=ur[me]=ur[be]=ur[ge]=ur[Oe]=ur[je]=ur[qe]=ur[ze]=ur[Ve]=ur[ye]=!1;var dr={};dr[ne]=dr[se]=dr[we]=dr[Fe]=dr[pe]=dr[Ce]=dr[xe]=dr[_e]=dr[rt]=dr[lt]=dr[ut]=dr[ge]=dr[Oe]=dr[je]=dr[qe]=dr[ze]=dr[Ve]=dr[Be]=dr[tt]=dr[mt]=dr[at]=dr[gt]=!0,dr[me]=dr[be]=dr[ye]=!1;var Es={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},co={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Gd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yu=parseFloat,Zb=parseInt,Xd=typeof M1=="object"&&M1&&M1.Object===Object&&M1,xp=typeof self=="object"&&self&&self.Object===Object&&self,ca=Xd||xp||Function("return this")(),cc=t&&!t.nodeType&&t,zl=cc&&!0&&e&&!e.nodeType&&e,hv=zl&&zl.exports===cc,Sp=hv&&Xd.process,Yo=(function(){try{var Le=zl&&zl.require&&zl.require("util").types;return Le||Sp&&Sp.binding&&Sp.binding("util")}catch{}})(),Yd=Yo&&Yo.isArrayBuffer,vv=Yo&&Yo.isDate,yv=Yo&&Yo.isMap,bv=Yo&&Yo.isRegExp,xv=Yo&&Yo.isSet,Sv=Yo&&Yo.isTypedArray;function uo(Le,ht,ft){switch(ft.length){case 0:return Le.call(ht);case 1:return Le.call(ht,ft[0]);case 2:return Le.call(ht,ft[0],ft[1]);case 3:return Le.call(ht,ft[0],ft[1],ft[2])}return Le.apply(ht,ft)}function Jb(Le,ht,ft,Ut){for(var Cn=-1,ar=Le==null?0:Le.length;++Cn<ar;){var ma=Le[Cn];ht(Ut,ma,ft(ma),Le)}return Ut}function Qo(Le,ht){for(var ft=-1,Ut=Le==null?0:Le.length;++ft<Ut&&ht(Le[ft],ft,Le)!==!1;);return Le}function ex(Le,ht){for(var ft=Le==null?0:Le.length;ft--&&ht(Le[ft],ft,Le)!==!1;);return Le}function Cv(Le,ht){for(var ft=-1,Ut=Le==null?0:Le.length;++ft<Ut;)if(!ht(Le[ft],ft,Le))return!1;return!0}function zi(Le,ht){for(var ft=-1,Ut=Le==null?0:Le.length,Cn=0,ar=[];++ft<Ut;){var ma=Le[ft];ht(ma,ft,Le)&&(ar[Cn++]=ma)}return ar}function Qd(Le,ht){var ft=Le==null?0:Le.length;return!!ft&&uc(Le,ht,0)>-1}function Cp(Le,ht,ft){for(var Ut=-1,Cn=Le==null?0:Le.length;++Ut<Cn;)if(ft(ht,Le[Ut]))return!0;return!1}function Vr(Le,ht){for(var ft=-1,Ut=Le==null?0:Le.length,Cn=Array(Ut);++ft<Ut;)Cn[ft]=ht(Le[ft],ft,Le);return Cn}function ol(Le,ht){for(var ft=-1,Ut=ht.length,Cn=Le.length;++ft<Ut;)Le[Cn+ft]=ht[ft];return Le}function wp(Le,ht,ft,Ut){var Cn=-1,ar=Le==null?0:Le.length;for(Ut&&ar&&(ft=Le[++Cn]);++Cn<ar;)ft=ht(ft,Le[Cn],Cn,Le);return ft}function tx(Le,ht,ft,Ut){var Cn=Le==null?0:Le.length;for(Ut&&Cn&&(ft=Le[--Cn]);Cn--;)ft=ht(ft,Le[Cn],Cn,Le);return ft}function Ep(Le,ht){for(var ft=-1,Ut=Le==null?0:Le.length;++ft<Ut;)if(ht(Le[ft],ft,Le))return!0;return!1}var nx=Jd("length");function rx(Le){return Le.split("")}function ax(Le){return Le.match(pt)||[]}function wv(Le,ht,ft){var Ut;return ft(Le,function(Cn,ar,ma){if(ht(Cn,ar,ma))return Ut=ar,!1}),Ut}function Zd(Le,ht,ft,Ut){for(var Cn=Le.length,ar=ft+(Ut?1:-1);Ut?ar--:++ar<Cn;)if(ht(Le[ar],ar,Le))return ar;return-1}function uc(Le,ht,ft){return ht===ht?sx(Le,ht,ft):Zd(Le,dc,ft)}function $p(Le,ht,ft,Ut){for(var Cn=ft-1,ar=Le.length;++Cn<ar;)if(Ut(Le[Cn],ht))return Cn;return-1}function dc(Le){return Le!==Le}function Ev(Le,ht){var ft=Le==null?0:Le.length;return ft?tf(Le,ht)/ft:P}function Jd(Le){return function(ht){return ht==null?n:ht[Le]}}function ef(Le){return function(ht){return Le==null?n:Le[ht]}}function Op(Le,ht,ft,Ut,Cn){return Cn(Le,function(ar,ma,or){ft=Ut?(Ut=!1,ar):ht(ft,ar,ma,or)}),ft}function $v(Le,ht){var ft=Le.length;for(Le.sort(ht);ft--;)Le[ft]=Le[ft].value;return Le}function tf(Le,ht){for(var ft,Ut=-1,Cn=Le.length;++Ut<Cn;){var ar=ht(Le[Ut]);ar!==n&&(ft=ft===n?ar:ft+ar)}return ft}function Dl(Le,ht){for(var ft=-1,Ut=Array(Le);++ft<Le;)Ut[ft]=ht(ft);return Ut}function ox(Le,ht){return Vr(ht,function(ft){return[ft,Le[ft]]})}function Ov(Le){return Le&&Le.slice(0,Rp(Le)+1).replace(Ae,"")}function Ao(Le){return function(ht){return Le(ht)}}function nf(Le,ht){return Vr(ht,function(ft){return Le[ft]})}function fc(Le,ht){return Le.has(ht)}function mc(Le,ht){for(var ft=-1,Ut=Le.length;++ft<Ut&&uc(ht,Le[ft],0)>-1;);return ft}function pc(Le,ht){for(var ft=Le.length;ft--&&uc(ht,Le[ft],0)>-1;);return ft}function ix(Le,ht){for(var ft=Le.length,Ut=0;ft--;)Le[ft]===ht&&++Ut;return Ut}var rf=ef(Es),Mv=ef(co);function Rv(Le){return"\\"+Gd[Le]}function Mp(Le,ht){return Le==null?n:Le[ht]}function jl(Le){return rr.test(Le)}function Nv(Le){return Zr.test(Le)}function Tv(Le){for(var ht,ft=[];!(ht=Le.next()).done;)ft.push(ht.value);return ft}function af(Le){var ht=-1,ft=Array(Le.size);return Le.forEach(function(Ut,Cn){ft[++ht]=[Cn,Ut]}),ft}function Iv(Le,ht){return function(ft){return Le(ht(ft))}}function kl(Le,ht){for(var ft=-1,Ut=Le.length,Cn=0,ar=[];++ft<Ut;){var ma=Le[ft];(ma===ht||ma===m)&&(Le[ft]=m,ar[Cn++]=ft)}return ar}function of(Le){var ht=-1,ft=Array(Le.size);return Le.forEach(function(Ut){ft[++ht]=Ut}),ft}function lx(Le){var ht=-1,ft=Array(Le.size);return Le.forEach(function(Ut){ft[++ht]=[Ut,Ut]}),ft}function sx(Le,ht,ft){for(var Ut=ft-1,Cn=Le.length;++Ut<Cn;)if(Le[Ut]===ht)return Ut;return-1}function Po(Le,ht,ft){for(var Ut=ft+1;Ut--;)if(Le[Ut]===ht)return Ut;return Ut}function Di(Le){return jl(Le)?Av(Le):nx(Le)}function Zo(Le){return jl(Le)?Np(Le):rx(Le)}function Rp(Le){for(var ht=Le.length;ht--&&He.test(Le.charAt(ht)););return ht}var _v=ef($s);function Av(Le){for(var ht=Yt.lastIndex=0;Yt.test(Le);)++ht;return ht}function Np(Le){return Le.match(Yt)||[]}function cx(Le){return Le.match(mn)||[]}var gc=(function Le(ht){ht=ht==null?ca:Ll.defaults(ca.Object(),ht,Ll.pick(ca,Mr));var ft=ht.Array,Ut=ht.Date,Cn=ht.Error,ar=ht.Function,ma=ht.Math,or=ht.Object,lf=ht.RegExp,Pv=ht.String,zo=ht.TypeError,sf=ft.prototype,ux=ar.prototype,hc=or.prototype,bu=ht["__core-js_shared__"],xu=ux.toString,mr=hc.hasOwnProperty,gi=0,Tp=(function(){var g=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""})(),Ga=hc.toString,Jo=xu.call(or),vc=ca._,Ip=lf("^"+xu.call(mr).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Os=hv?ht.Buffer:n,hi=ht.Symbol,yc=ht.Uint8Array,Ms=Os?Os.allocUnsafe:n,Su=Iv(or.getPrototypeOf,or),Cu=or.create,Rs=hc.propertyIsEnumerable,cf=sf.splice,fo=hi?hi.isConcatSpreadable:n,Ns=hi?hi.iterator:n,Xa=hi?hi.toStringTag:n,wu=(function(){try{var g=Gl(or,"defineProperty");return g({},"",{}),g}catch{}})(),uf=ht.clearTimeout!==ca.clearTimeout&&ht.clearTimeout,Ts=Ut&&Ut.now!==ca.Date.now&&Ut.now,_p=ht.setTimeout!==ca.setTimeout&&ht.setTimeout,bc=ma.ceil,il=ma.floor,Bl=or.getOwnPropertySymbols,df=Os?Os.isBuffer:n,Eu=ht.isFinite,ei=sf.join,ti=Iv(or.keys,or),Dr=ma.max,Kr=ma.min,ll=Ut.now,Is=ht.parseInt,Ap=ma.random,Pp=sf.reverse,$u=Gl(ht,"DataView"),ha=Gl(ht,"Map"),Wr=Gl(ht,"Promise"),Gn=Gl(ht,"Set"),vi=Gl(ht,"WeakMap"),mo=Gl(or,"create"),xc=vi&&new vi,ni={},zv=hl($u),Dv=hl(ha),Ou=hl(Wr),Mu=hl(Gn),jv=hl(vi),Fl=hi?hi.prototype:n,_s=Fl?Fl.valueOf:n,Hl=Fl?Fl.toString:n;function re(g){if(Jr(g)&&!$n(g)&&!(g instanceof Bn)){if(g instanceof po)return g;if(mr.call(g,"__wrapped__"))return ya(g)}return new po(g)}var Do=(function(){function g(){}return function(b){if(!qr(b))return{};if(Cu)return Cu(b);g.prototype=b;var T=new g;return g.prototype=n,T}})();function ri(){}function po(g,b){this.__wrapped__=g,this.__actions__=[],this.__chain__=!!b,this.__index__=0,this.__values__=n}re.templateSettings={escape:Lt,evaluate:_t,interpolate:It,variable:"",imports:{_:re}},re.prototype=ri.prototype,re.prototype.constructor=re,po.prototype=Do(ri.prototype),po.prototype.constructor=po;function Bn(g){this.__wrapped__=g,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Ru(){var g=new Bn(this.__wrapped__);return g.__actions__=va(this.__actions__),g.__dir__=this.__dir__,g.__filtered__=this.__filtered__,g.__iteratees__=va(this.__iteratees__),g.__takeCount__=this.__takeCount__,g.__views__=va(this.__views__),g}function ff(){if(this.__filtered__){var g=new Bn(this);g.__dir__=-1,g.__filtered__=!0}else g=this.clone(),g.__dir__*=-1;return g}function As(){var g=this.__wrapped__.value(),b=this.__dir__,T=$n(g),U=b<0,ee=T?g.length:0,ce=h0(0,ee,this.__views__),Ee=ce.start,Ie=ce.end,We=Ie-Ee,Ct=U?Ie:Ee-1,Et=this.__iteratees__,Rt=Et.length,qt=0,sn=Kr(We,this.__takeCount__);if(!T||!U&&ee==We&&sn==We)return n0(g,this.__actions__);var wn=[];e:for(;We--&&qt<sn;){Ct+=b;for(var Hn=-1,En=g[Ct];++Hn<Rt;){var Jn=Et[Hn],lr=Jn.iteratee,Ei=Jn.type,Vo=lr(En);if(Ei==q)En=Vo;else if(!Vo){if(Ei==k)continue e;break e}}wn[qt++]=En}return wn}Bn.prototype=Do(ri.prototype),Bn.prototype.constructor=Bn;function ta(g){var b=-1,T=g==null?0:g.length;for(this.clear();++b<T;){var U=g[b];this.set(U[0],U[1])}}function mf(){this.__data__=mo?mo(null):{},this.size=0}function kv(g){var b=this.has(g)&&delete this.__data__[g];return this.size-=b?1:0,b}function dx(g){var b=this.__data__;if(mo){var T=b[g];return T===d?n:T}return mr.call(b,g)?b[g]:n}function fx(g){var b=this.__data__;return mo?b[g]!==n:mr.call(b,g)}function mx(g,b){var T=this.__data__;return this.size+=this.has(g)?0:1,T[g]=mo&&b===n?d:b,this}ta.prototype.clear=mf,ta.prototype.delete=kv,ta.prototype.get=dx,ta.prototype.has=fx,ta.prototype.set=mx;function Rr(g){var b=-1,T=g==null?0:g.length;for(this.clear();++b<T;){var U=g[b];this.set(U[0],U[1])}}function zp(){this.__data__=[],this.size=0}function Nu(g){var b=this.__data__,T=wc(b,g);if(T<0)return!1;var U=b.length-1;return T==U?b.pop():cf.call(b,T,1),--this.size,!0}function Tu(g){var b=this.__data__,T=wc(b,g);return T<0?n:b[T][1]}function Dp(g){return wc(this.__data__,g)>-1}function Sc(g,b){var T=this.__data__,U=wc(T,g);return U<0?(++this.size,T.push([g,b])):T[U][1]=b,this}Rr.prototype.clear=zp,Rr.prototype.delete=Nu,Rr.prototype.get=Tu,Rr.prototype.has=Dp,Rr.prototype.set=Sc;function go(g){var b=-1,T=g==null?0:g.length;for(this.clear();++b<T;){var U=g[b];this.set(U[0],U[1])}}function px(){this.size=0,this.__data__={hash:new ta,map:new(ha||Rr),string:new ta}}function Lv(g){var b=Nc(this,g).delete(g);return this.size-=b?1:0,b}function gx(g){return Nc(this,g).get(g)}function Bv(g){return Nc(this,g).has(g)}function Ps(g,b){var T=Nc(this,g),U=T.size;return T.set(g,b),this.size+=T.size==U?0:1,this}go.prototype.clear=px,go.prototype.delete=Lv,go.prototype.get=gx,go.prototype.has=Bv,go.prototype.set=Ps;function sl(g){var b=-1,T=g==null?0:g.length;for(this.__data__=new go;++b<T;)this.add(g[b])}function pf(g){return this.__data__.set(g,d),this}function Fv(g){return this.__data__.has(g)}sl.prototype.add=sl.prototype.push=pf,sl.prototype.has=Fv;function Ya(g){var b=this.__data__=new Rr(g);this.size=b.size}function Hv(){this.__data__=new Rr,this.size=0}function gf(g){var b=this.__data__,T=b.delete(g);return this.size=b.size,T}function jp(g){return this.__data__.get(g)}function Vv(g){return this.__data__.has(g)}function hf(g,b){var T=this.__data__;if(T instanceof Rr){var U=T.__data__;if(!ha||U.length<a-1)return U.push([g,b]),this.size=++T.size,this;T=this.__data__=new go(U)}return T.set(g,b),this.size=T.size,this}Ya.prototype.clear=Hv,Ya.prototype.delete=gf,Ya.prototype.get=jp,Ya.prototype.has=Vv,Ya.prototype.set=hf;function kp(g,b){var T=$n(g),U=!T&&xl(g),ee=!T&&!U&&as(g),ce=!T&&!U&&!ee&&Vc(g),Ee=T||U||ee||ce,Ie=Ee?Dl(g.length,Pv):[],We=Ie.length;for(var Ct in g)(b||mr.call(g,Ct))&&!(Ee&&(Ct=="length"||ee&&(Ct=="offset"||Ct=="parent")||ce&&(Ct=="buffer"||Ct=="byteLength"||Ct=="byteOffset")||Si(Ct,We)))&&Ie.push(Ct);return Ie}function Cc(g){var b=g.length;return b?g[Of(0,b-1)]:n}function Kv(g,b){return rd(va(g),bi(b,0,g.length))}function Wv(g){return rd(va(g))}function ji(g,b,T){(T!==n&&!Co(g[b],T)||T===n&&!(b in g))&&yi(g,b,T)}function zs(g,b,T){var U=g[b];(!(mr.call(g,b)&&Co(U,T))||T===n&&!(b in g))&&yi(g,b,T)}function wc(g,b){for(var T=g.length;T--;)if(Co(g[T][0],b))return T;return-1}function Vl(g,b,T,U){return ul(g,function(ee,ce,Ee){b(U,ee,T(ee),Ee)}),U}function cl(g,b){return g&&yo(b,Sa(b),g)}function Iu(g,b){return g&&yo(b,Na(b),g)}function yi(g,b,T){b=="__proto__"&&wu?wu(g,b,{configurable:!0,enumerable:!0,value:T,writable:!0}):g[b]=T}function _u(g,b){for(var T=-1,U=b.length,ee=ft(U),ce=g==null;++T<U;)ee[T]=ce?n:vd(g,b[T]);return ee}function bi(g,b,T){return g===g&&(T!==n&&(g=g<=T?g:T),b!==n&&(g=g>=b?g:b)),g}function Fa(g,b,T,U,ee,ce){var Ee,Ie=b&h,We=b&v,Ct=b&y;if(T&&(Ee=ee?T(g,U,ee,ce):T(g)),Ee!==n)return Ee;if(!qr(g))return g;var Et=$n(g);if(Et){if(Ee=ug(g),!Ie)return va(g,Ee)}else{var Rt=Ra(g),qt=Rt==be||Rt==fe;if(as(g))return ng(g,Ie);if(Rt==je||Rt==ne||qt&&!ee){if(Ee=We||qt?{}:dg(g),!Ie)return We?Wu(g,Iu(Ee,g)):_f(g,cl(Ee,g))}else{if(!dr[Rt])return ee?g:{};Ee=fg(g,Rt,Ie)}}ce||(ce=new Ya);var sn=ce.get(g);if(sn)return sn;ce.set(g,Ee),s1(g)?g.forEach(function(En){Ee.add(Fa(En,b,T,En,g,ce))}):rm(g)&&g.forEach(function(En,Jn){Ee.set(Jn,Fa(En,b,T,Jn,g,ce))});var wn=Ct?We?Df:zf:We?Na:Sa,Hn=Et?n:wn(g);return Qo(Hn||g,function(En,Jn){Hn&&(Jn=En,En=g[Jn]),zs(Ee,Jn,Fa(En,b,T,Jn,g,ce))}),Ee}function Uv(g){var b=Sa(g);return function(T){return Lp(T,g,b)}}function Lp(g,b,T){var U=T.length;if(g==null)return!U;for(g=or(g);U--;){var ee=T[U],ce=b[ee],Ee=g[ee];if(Ee===n&&!(ee in g)||!ce(Ee))return!1}return!0}function Ds(g,b,T){if(typeof g!="function")throw new zo(l);return Ic(function(){g.apply(n,T)},b)}function Kl(g,b,T,U){var ee=-1,ce=Qd,Ee=!0,Ie=g.length,We=[],Ct=b.length;if(!Ie)return We;T&&(b=Vr(b,Ao(T))),U?(ce=Cp,Ee=!1):b.length>=a&&(ce=fc,Ee=!1,b=new sl(b));e:for(;++ee<Ie;){var Et=g[ee],Rt=T==null?Et:T(Et);if(Et=U||Et!==0?Et:0,Ee&&Rt===Rt){for(var qt=Ct;qt--;)if(b[qt]===Rt)continue e;We.push(Et)}else ce(b,Rt,U)||We.push(Et)}return We}var ul=ig(Ha),vf=ig($c,!0);function Bp(g,b){var T=!0;return ul(g,function(U,ee,ce){return T=!!b(U,ee,ce),T}),T}function xi(g,b,T){for(var U=-1,ee=g.length;++U<ee;){var ce=g[U],Ee=b(ce);if(Ee!=null&&(Ie===n?Ee===Ee&&!Ja(Ee):T(Ee,Ie)))var Ie=Ee,We=ce}return We}function Dn(g,b,T,U){var ee=g.length;for(T=Tn(T),T<0&&(T=-T>ee?0:ee+T),U=U===n||U>ee?ee:Tn(U),U<0&&(U+=ee),U=T>U?0:Ui(U);T<U;)g[T++]=b;return g}function br(g,b){var T=[];return ul(g,function(U,ee,ce){b(U,ee,ce)&&T.push(U)}),T}function Xn(g,b,T,U,ee){var ce=-1,Ee=g.length;for(T||(T=pl),ee||(ee=[]);++ce<Ee;){var Ie=g[ce];b>0&&T(Ie)?b>1?Xn(Ie,b-1,T,U,ee):ol(ee,Ie):U||(ee[ee.length]=Ie)}return ee}var Ec=Vs(),js=Vs(!0);function Ha(g,b){return g&&Ec(g,b,Sa)}function $c(g,b){return g&&js(g,b,Sa)}function Wl(g,b){return zi(b,function(T){return Ci(g[T])})}function ai(g,b){b=fl(b,g);for(var T=0,U=b.length;g!=null&&T<U;)g=g[hr(b[T++])];return T&&T==U?g:n}function qv(g,b,T){var U=b(g);return $n(g)?U:ol(U,T(g))}function Zn(g){return g==null?g===n?De:Ne:Xa&&Xa in or(g)?g0(g):S0(g)}function Au(g,b){return g>b}function Fp(g,b){return g!=null&&mr.call(g,b)}function Gv(g,b){return g!=null&&b in or(g)}function Xv(g,b,T){return g>=Kr(b,T)&&g<Dr(b,T)}function Hp(g,b,T){for(var U=T?Cp:Qd,ee=g[0].length,ce=g.length,Ee=ce,Ie=ft(ce),We=1/0,Ct=[];Ee--;){var Et=g[Ee];Ee&&b&&(Et=Vr(Et,Ao(b))),We=Kr(Et.length,We),Ie[Ee]=!T&&(b||ee>=120&&Et.length>=120)?new sl(Ee&&Et):n}Et=g[0];var Rt=-1,qt=Ie[0];e:for(;++Rt<ee&&Ct.length<We;){var sn=Et[Rt],wn=b?b(sn):sn;if(sn=T||sn!==0?sn:0,!(qt?fc(qt,wn):U(Ct,wn,T))){for(Ee=ce;--Ee;){var Hn=Ie[Ee];if(!(Hn?fc(Hn,wn):U(g[Ee],wn,T)))continue e}qt&&qt.push(wn),Ct.push(sn)}}return Ct}function Vp(g,b,T,U){return Ha(g,function(ee,ce,Ee){b(U,T(ee),ce,Ee)}),U}function ks(g,b,T){b=fl(b,g),g=Tc(g,b);var U=g==null?g:g[hr(Va(b))];return U==null?n:uo(U,g,T)}function yf(g){return Jr(g)&&Zn(g)==ne}function ho(g){return Jr(g)&&Zn(g)==we}function pa(g){return Jr(g)&&Zn(g)==Ce}function Ls(g,b,T,U,ee){return g===b?!0:g==null||b==null||!Jr(g)&&!Jr(b)?g!==g&&b!==b:Pu(g,b,T,U,Ls,ee)}function Pu(g,b,T,U,ee,ce){var Ee=$n(g),Ie=$n(b),We=Ee?se:Ra(g),Ct=Ie?se:Ra(b);We=We==ne?je:We,Ct=Ct==ne?je:Ct;var Et=We==je,Rt=Ct==je,qt=We==Ct;if(qt&&as(g)){if(!as(b))return!1;Ee=!0,Et=!1}if(qt&&!Et)return ce||(ce=new Ya),Ee||Vc(g)?m0(g,b,T,U,ee,ce):p0(g,b,We,T,U,ee,ce);if(!(T&S)){var sn=Et&&mr.call(g,"__wrapped__"),wn=Rt&&mr.call(b,"__wrapped__");if(sn||wn){var Hn=sn?g.value():g,En=wn?b.value():b;return ce||(ce=new Ya),ee(Hn,En,T,U,ce)}}return qt?(ce||(ce=new Ya),Ma(g,b,T,U,ee,ce)):!1}function bf(g){return Jr(g)&&Ra(g)==ge}function zu(g,b,T,U){var ee=T.length,ce=ee,Ee=!U;if(g==null)return!ce;for(g=or(g);ee--;){var Ie=T[ee];if(Ee&&Ie[2]?Ie[1]!==g[Ie[0]]:!(Ie[0]in g))return!1}for(;++ee<ce;){Ie=T[ee];var We=Ie[0],Ct=g[We],Et=Ie[1];if(Ee&&Ie[2]){if(Ct===n&&!(We in g))return!1}else{var Rt=new Ya;if(U)var qt=U(Ct,Et,We,g,b,Rt);if(!(qt===n?Ls(Et,Ct,S|C,U,Rt):qt))return!1}}return!0}function ki(g){if(!qr(g)||Hf(g))return!1;var b=Ci(g)?Ip:zt;return b.test(hl(g))}function xf(g){return Jr(g)&&Zn(g)==qe}function Kp(g){return Jr(g)&&Ra(g)==ze}function Wp(g){return Jr(g)&&Gs(g.length)&&!!ur[Zn(g)]}function Up(g){return typeof g=="function"?g:g==null?et:typeof g=="object"?$n(g)?wf(g[0],g[1]):Gp(g):ir(g)}function Sf(g){if(!Nr(g))return ti(g);var b=[];for(var T in or(g))mr.call(g,T)&&T!="constructor"&&b.push(T);return b}function Yv(g){if(!qr(g))return Xl(g);var b=Nr(g),T=[];for(var U in g)U=="constructor"&&(b||!mr.call(g,U))||T.push(U);return T}function Cf(g,b){return g<b}function qp(g,b){var T=-1,U=ba(g)?ft(g.length):[];return ul(g,function(ee,ce,Ee){U[++T]=b(ee,ce,Ee)}),U}function Gp(g){var b=kf(g);return b.length==1&&b[0][2]?b0(b[0][0],b[0][1]):function(T){return T===g||zu(T,g,b)}}function wf(g,b){return Bf(g)&&y0(b)?b0(hr(g),b):function(T){var U=vd(T,g);return U===n&&U===b?qc(T,g):Ls(b,U,S|C)}}function Du(g,b,T,U,ee){g!==b&&Ec(b,function(ce,Ee){if(ee||(ee=new Ya),qr(ce))hx(g,b,Ee,T,Du,U,ee);else{var Ie=U?U(Vf(g,Ee),ce,Ee+"",g,b,ee):n;Ie===n&&(Ie=ce),ji(g,Ee,Ie)}},Na)}function hx(g,b,T,U,ee,ce,Ee){var Ie=Vf(g,T),We=Vf(b,T),Ct=Ee.get(We);if(Ct){ji(g,T,Ct);return}var Et=ce?ce(Ie,We,T+"",g,b,Ee):n,Rt=Et===n;if(Rt){var qt=$n(We),sn=!qt&&as(We),wn=!qt&&!sn&&Vc(We);Et=We,qt||sn||wn?$n(Ie)?Et=Ie:aa(Ie)?Et=va(Ie):sn?(Rt=!1,Et=ng(We,!0)):wn?(Rt=!1,Et=ag(We,!0)):Et=[]:si(We)||xl(We)?(Et=Ie,xl(Ie)?Et=d1(Ie):(!qr(Ie)||Ci(Ie))&&(Et=dg(We))):Rt=!1}Rt&&(Ee.set(We,Et),ee(Et,We,U,ce,Ee),Ee.delete(We)),ji(g,T,Et)}function Xp(g,b){var T=g.length;if(T)return b+=b<0?T:0,Si(b,T)?g[b]:n}function Yp(g,b,T){b.length?b=Vr(b,function(ce){return $n(ce)?function(Ee){return ai(Ee,ce.length===1?ce[0]:ce)}:ce}):b=[et];var U=-1;b=Vr(b,Ao(pn()));var ee=qp(g,function(ce,Ee,Ie){var We=Vr(b,function(Ct){return Ct(ce)});return{criteria:We,index:++U,value:ce}});return $v(ee,function(ce,Ee){return i0(ce,Ee,T)})}function Qv(g,b){return Ef(g,b,function(T,U){return qc(g,U)})}function Ef(g,b,T){for(var U=-1,ee=b.length,ce={};++U<ee;){var Ee=b[U],Ie=ai(g,Ee);T(Ie,Ee)&&Mc(ce,fl(Ee,g),Ie)}return ce}function Zv(g){return function(b){return ai(b,g)}}function $f(g,b,T,U){var ee=U?$p:uc,ce=-1,Ee=b.length,Ie=g;for(g===b&&(b=va(b)),T&&(Ie=Vr(g,Ao(T)));++ce<Ee;)for(var We=0,Ct=b[ce],Et=T?T(Ct):Ct;(We=ee(Ie,Et,We,U))>-1;)Ie!==g&&cf.call(Ie,We,1),cf.call(g,We,1);return g}function Qp(g,b){for(var T=g?b.length:0,U=T-1;T--;){var ee=b[T];if(T==U||ee!==ce){var ce=ee;Si(ee)?cf.call(g,ee,1):Bu(g,ee)}}return g}function Of(g,b){return g+il(Ap()*(b-g+1))}function Jv(g,b,T,U){for(var ee=-1,ce=Dr(bc((b-g)/(T||1)),0),Ee=ft(ce);ce--;)Ee[U?ce:++ee]=g,g+=T;return Ee}function Zp(g,b){var T="";if(!g||b<1||b>G)return T;do b%2&&(T+=g),b=il(b/2),b&&(g+=g);while(b);return T}function An(g,b){return td(mg(g,b,et),g+"")}function Oc(g){return Cc(Xc(g))}function Mf(g,b){var T=Xc(g);return rd(T,bi(b,0,T.length))}function Mc(g,b,T,U){if(!qr(g))return g;b=fl(b,g);for(var ee=-1,ce=b.length,Ee=ce-1,Ie=g;Ie!=null&&++ee<ce;){var We=hr(b[ee]),Ct=T;if(We==="__proto__"||We==="constructor"||We==="prototype")return g;if(ee!=Ee){var Et=Ie[We];Ct=U?U(Et,We,Ie):n,Ct===n&&(Ct=qr(Et)?Et:Si(b[ee+1])?[]:{})}zs(Ie,We,Ct),Ie=Ie[We]}return g}var ju=xc?function(g,b){return xc.set(g,b),g}:et,ku=wu?function(g,b){return wu(g,"toString",{configurable:!0,enumerable:!1,value:Ze(b),writable:!0})}:et;function e0(g){return rd(Xc(g))}function jo(g,b,T){var U=-1,ee=g.length;b<0&&(b=-b>ee?0:ee+b),T=T>ee?ee:T,T<0&&(T+=ee),ee=b>T?0:T-b>>>0,b>>>=0;for(var ce=ft(ee);++U<ee;)ce[U]=g[U+b];return ce}function t0(g,b){var T;return ul(g,function(U,ee,ce){return T=b(U,ee,ce),!T}),!!T}function Lu(g,b,T){var U=0,ee=g==null?U:g.length;if(typeof b=="number"&&b===b&&ee<=j){for(;U<ee;){var ce=U+ee>>>1,Ee=g[ce];Ee!==null&&!Ja(Ee)&&(T?Ee<=b:Ee<b)?U=ce+1:ee=ce}return ee}return Rf(g,b,et,T)}function Rf(g,b,T,U){var ee=0,ce=g==null?0:g.length;if(ce===0)return 0;b=T(b);for(var Ee=b!==b,Ie=b===null,We=Ja(b),Ct=b===n;ee<ce;){var Et=il((ee+ce)/2),Rt=T(g[Et]),qt=Rt!==n,sn=Rt===null,wn=Rt===Rt,Hn=Ja(Rt);if(Ee)var En=U||wn;else Ct?En=wn&&(U||qt):Ie?En=wn&&qt&&(U||!sn):We?En=wn&&qt&&!sn&&(U||!Hn):sn||Hn?En=!1:En=U?Rt<=b:Rt<b;En?ee=Et+1:ce=Et}return Kr(ce,J)}function Jp(g,b){for(var T=-1,U=g.length,ee=0,ce=[];++T<U;){var Ee=g[T],Ie=b?b(Ee):Ee;if(!T||!Co(Ie,We)){var We=Ie;ce[ee++]=Ee===0?0:Ee}}return ce}function Nf(g){return typeof g=="number"?g:Ja(g)?P:+g}function vo(g){if(typeof g=="string")return g;if($n(g))return Vr(g,vo)+"";if(Ja(g))return Hl?Hl.call(g):"";var b=g+"";return b=="0"&&1/g==-W?"-0":b}function dl(g,b,T){var U=-1,ee=Qd,ce=g.length,Ee=!0,Ie=[],We=Ie;if(T)Ee=!1,ee=Cp;else if(ce>=a){var Ct=b?null:d0(g);if(Ct)return of(Ct);Ee=!1,ee=fc,We=new sl}else We=b?[]:Ie;e:for(;++U<ce;){var Et=g[U],Rt=b?b(Et):Et;if(Et=T||Et!==0?Et:0,Ee&&Rt===Rt){for(var qt=We.length;qt--;)if(We[qt]===Rt)continue e;b&&We.push(Rt),Ie.push(Et)}else ee(We,Rt,T)||(We!==Ie&&We.push(Rt),Ie.push(Et))}return Ie}function Bu(g,b){return b=fl(b,g),g=Tc(g,b),g==null||delete g[hr(Va(b))]}function eg(g,b,T,U){return Mc(g,b,T(ai(g,b)),U)}function Fu(g,b,T,U){for(var ee=g.length,ce=U?ee:-1;(U?ce--:++ce<ee)&&b(g[ce],ce,g););return T?jo(g,U?0:ce,U?ce+1:ee):jo(g,U?ce+1:0,U?ee:ce)}function n0(g,b){var T=g;return T instanceof Bn&&(T=T.value()),wp(b,function(U,ee){return ee.func.apply(ee.thisArg,ol([U],ee.args))},T)}function Hu(g,b,T){var U=g.length;if(U<2)return U?dl(g[0]):[];for(var ee=-1,ce=ft(U);++ee<U;)for(var Ee=g[ee],Ie=-1;++Ie<U;)Ie!=ee&&(ce[ee]=Kl(ce[ee]||Ee,g[Ie],b,T));return dl(Xn(ce,1),b,T)}function tg(g,b,T){for(var U=-1,ee=g.length,ce=b.length,Ee={};++U<ee;){var Ie=U<ce?b[U]:n;T(Ee,g[U],Ie)}return Ee}function Tf(g){return aa(g)?g:[]}function Vu(g){return typeof g=="function"?g:et}function fl(g,b){return $n(g)?g:Bf(g,b)?[g]:Hi(pr(g))}var r0=An;function Ul(g,b,T){var U=g.length;return T=T===n?U:T,!b&&T>=U?g:jo(g,b,T)}var a0=uf||function(g){return ca.clearTimeout(g)};function ng(g,b){if(b)return g.slice();var T=g.length,U=Ms?Ms(T):new g.constructor(T);return g.copy(U),U}function Bs(g){var b=new g.constructor(g.byteLength);return new yc(b).set(new yc(g)),b}function rg(g,b){var T=b?Bs(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.byteLength)}function If(g){var b=new g.constructor(g.source,nt.exec(g));return b.lastIndex=g.lastIndex,b}function o0(g){return _s?or(_s.call(g)):{}}function ag(g,b){var T=b?Bs(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.length)}function Ku(g,b){if(g!==b){var T=g!==n,U=g===null,ee=g===g,ce=Ja(g),Ee=b!==n,Ie=b===null,We=b===b,Ct=Ja(b);if(!Ie&&!Ct&&!ce&&g>b||ce&&Ee&&We&&!Ie&&!Ct||U&&Ee&&We||!T&&We||!ee)return 1;if(!U&&!ce&&!Ct&&g<b||Ct&&T&&ee&&!U&&!ce||Ie&&T&&ee||!Ee&&ee||!We)return-1}return 0}function i0(g,b,T){for(var U=-1,ee=g.criteria,ce=b.criteria,Ee=ee.length,Ie=T.length;++U<Ee;){var We=Ku(ee[U],ce[U]);if(We){if(U>=Ie)return We;var Ct=T[U];return We*(Ct=="desc"?-1:1)}}return g.index-b.index}function og(g,b,T,U){for(var ee=-1,ce=g.length,Ee=T.length,Ie=-1,We=b.length,Ct=Dr(ce-Ee,0),Et=ft(We+Ct),Rt=!U;++Ie<We;)Et[Ie]=b[Ie];for(;++ee<Ee;)(Rt||ee<ce)&&(Et[T[ee]]=g[ee]);for(;Ct--;)Et[Ie++]=g[ee++];return Et}function l0(g,b,T,U){for(var ee=-1,ce=g.length,Ee=-1,Ie=T.length,We=-1,Ct=b.length,Et=Dr(ce-Ie,0),Rt=ft(Et+Ct),qt=!U;++ee<Et;)Rt[ee]=g[ee];for(var sn=ee;++We<Ct;)Rt[sn+We]=b[We];for(;++Ee<Ie;)(qt||ee<ce)&&(Rt[sn+T[Ee]]=g[ee++]);return Rt}function va(g,b){var T=-1,U=g.length;for(b||(b=ft(U));++T<U;)b[T]=g[T];return b}function yo(g,b,T,U){var ee=!T;T||(T={});for(var ce=-1,Ee=b.length;++ce<Ee;){var Ie=b[ce],We=U?U(T[Ie],g[Ie],Ie,T,g):n;We===n&&(We=g[Ie]),ee?yi(T,Ie,We):zs(T,Ie,We)}return T}function _f(g,b){return yo(g,Qu(g),b)}function Wu(g,b){return yo(g,Lf(g),b)}function Fs(g,b){return function(T,U){var ee=$n(T)?Jb:Vl,ce=b?b():{};return ee(T,g,pn(U,2),ce)}}function Hs(g){return An(function(b,T){var U=-1,ee=T.length,ce=ee>1?T[ee-1]:n,Ee=ee>2?T[2]:n;for(ce=g.length>3&&typeof ce=="function"?(ee--,ce):n,Ee&&Za(T[0],T[1],Ee)&&(ce=ee<3?n:ce,ee=1),b=or(b);++U<ee;){var Ie=T[U];Ie&&g(b,Ie,U,ce)}return b})}function ig(g,b){return function(T,U){if(T==null)return T;if(!ba(T))return g(T,U);for(var ee=T.length,ce=b?ee:-1,Ee=or(T);(b?ce--:++ce<ee)&&U(Ee[ce],ce,Ee)!==!1;);return T}}function Vs(g){return function(b,T,U){for(var ee=-1,ce=or(b),Ee=U(b),Ie=Ee.length;Ie--;){var We=Ee[g?Ie:++ee];if(T(ce[We],We,ce)===!1)break}return b}}function s0(g,b,T){var U=b&w,ee=oi(g);function ce(){var Ee=this&&this!==ca&&this instanceof ce?ee:g;return Ee.apply(U?T:this,arguments)}return ce}function ko(g){return function(b){b=pr(b);var T=jl(b)?Zo(b):n,U=T?T[0]:b.charAt(0),ee=T?Ul(T,1).join(""):b.slice(1);return U[g]()+ee}}function Qa(g){return function(b){return wp(M(Sl(b).replace(al,"")),g,"")}}function oi(g){return function(){var b=arguments;switch(b.length){case 0:return new g;case 1:return new g(b[0]);case 2:return new g(b[0],b[1]);case 3:return new g(b[0],b[1],b[2]);case 4:return new g(b[0],b[1],b[2],b[3]);case 5:return new g(b[0],b[1],b[2],b[3],b[4]);case 6:return new g(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new g(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var T=Do(g.prototype),U=g.apply(T,b);return qr(U)?U:T}}function c0(g,b,T){var U=oi(g);function ee(){for(var ce=arguments.length,Ee=ft(ce),Ie=ce,We=Ws(ee);Ie--;)Ee[Ie]=arguments[Ie];var Ct=ce<3&&Ee[0]!==We&&Ee[ce-1]!==We?[]:kl(Ee,We);if(ce-=Ct.length,ce<T)return lg(g,b,na,ee.placeholder,n,Ee,Ct,n,n,T-ce);var Et=this&&this!==ca&&this instanceof ee?U:g;return uo(Et,this,Ee)}return ee}function ml(g){return function(b,T,U){var ee=or(b);if(!ba(b)){var ce=pn(T,3);b=Sa(b),T=function(Ie){return ce(ee[Ie],Ie,ee)}}var Ee=g(b,T,U);return Ee>-1?ee[ce?b[Ee]:Ee]:n}}function Li(g){return jr(function(b){var T=b.length,U=T,ee=po.prototype.thru;for(g&&b.reverse();U--;){var ce=b[U];if(typeof ce!="function")throw new zo(l);if(ee&&!Ee&&Yu(ce)=="wrapper")var Ee=new po([],!0)}for(U=Ee?U:T;++U<T;){ce=b[U];var Ie=Yu(ce),We=Ie=="wrapper"?jf(ce):n;We&&Ff(We[0])&&We[1]==(_|O|I|z)&&!We[4].length&&We[9]==1?Ee=Ee[Yu(We[0])].apply(Ee,We[3]):Ee=ce.length==1&&Ff(ce)?Ee[Ie]():Ee.thru(ce)}return function(){var Ct=arguments,Et=Ct[0];if(Ee&&Ct.length==1&&$n(Et))return Ee.plant(Et).value();for(var Rt=0,qt=T?b[Rt].apply(this,Ct):Et;++Rt<T;)qt=b[Rt].call(this,qt);return qt}})}function na(g,b,T,U,ee,ce,Ee,Ie,We,Ct){var Et=b&_,Rt=b&w,qt=b&E,sn=b&(O|N),wn=b&D,Hn=qt?n:oi(g);function En(){for(var Jn=arguments.length,lr=ft(Jn),Ei=Jn;Ei--;)lr[Ei]=arguments[Ei];if(sn)var Vo=Ws(En),$i=ix(lr,Vo);if(U&&(lr=og(lr,U,ee,sn)),ce&&(lr=l0(lr,ce,Ee,sn)),Jn-=$i,sn&&Jn<Ct){var Ca=kl(lr,Vo);return lg(g,b,na,En.placeholder,T,lr,Ca,Ie,We,Ct-Jn)}var Cl=Rt?T:this,Xs=qt?Cl[g]:g;return Jn=lr.length,Ie?lr=Fi(lr,Ie):wn&&Jn>1&&lr.reverse(),Et&&We<Jn&&(lr.length=We),this&&this!==ca&&this instanceof En&&(Xs=Hn||oi(Xs)),Xs.apply(Cl,lr)}return En}function Uu(g,b){return function(T,U){return Vp(T,g,b(U),{})}}function Rc(g,b){return function(T,U){var ee;if(T===n&&U===n)return b;if(T!==n&&(ee=T),U!==n){if(ee===n)return U;typeof T=="string"||typeof U=="string"?(T=vo(T),U=vo(U)):(T=Nf(T),U=Nf(U)),ee=g(T,U)}return ee}}function qu(g){return jr(function(b){return b=Vr(b,Ao(pn())),An(function(T){var U=this;return g(b,function(ee){return uo(ee,U,T)})})})}function Gu(g,b){b=b===n?" ":vo(b);var T=b.length;if(T<2)return T?Zp(b,g):b;var U=Zp(b,bc(g/Di(b)));return jl(b)?Ul(Zo(U),0,g).join(""):U.slice(0,g)}function u0(g,b,T,U){var ee=b&w,ce=oi(g);function Ee(){for(var Ie=-1,We=arguments.length,Ct=-1,Et=U.length,Rt=ft(Et+We),qt=this&&this!==ca&&this instanceof Ee?ce:g;++Ct<Et;)Rt[Ct]=U[Ct];for(;We--;)Rt[Ct++]=arguments[++Ie];return uo(qt,ee?T:this,Rt)}return Ee}function ql(g){return function(b,T,U){return U&&typeof U!="number"&&Za(b,T,U)&&(T=U=n),b=Wi(b),T===n?(T=b,b=0):T=Wi(T),U=U===n?b<T?1:-1:Wi(U),Jv(b,T,U,g)}}function Ks(g){return function(b,T){return typeof b=="string"&&typeof T=="string"||(b=ci(b),T=ci(T)),g(b,T)}}function lg(g,b,T,U,ee,ce,Ee,Ie,We,Ct){var Et=b&O,Rt=Et?Ee:n,qt=Et?n:Ee,sn=Et?ce:n,wn=Et?n:ce;b|=Et?I:R,b&=~(Et?R:I),b&$||(b&=-4);var Hn=[g,b,ee,sn,Rt,wn,qt,Ie,We,Ct],En=T.apply(n,Hn);return Ff(g)&&Kf(En,Hn),En.placeholder=U,Wf(En,g,b)}function Af(g){var b=ma[g];return function(T,U){if(T=ci(T),U=U==null?0:Kr(Tn(U),292),U&&Eu(T)){var ee=(pr(T)+"e").split("e"),ce=b(ee[0]+"e"+(+ee[1]+U));return ee=(pr(ce)+"e").split("e"),+(ee[0]+"e"+(+ee[1]-U))}return b(T)}}var d0=Gn&&1/of(new Gn([,-0]))[1]==W?function(g){return new Gn(g)}:en;function Xu(g){return function(b){var T=Ra(b);return T==ge?af(b):T==ze?lx(b):ox(b,g(b))}}function Bi(g,b,T,U,ee,ce,Ee,Ie){var We=b&E;if(!We&&typeof g!="function")throw new zo(l);var Ct=U?U.length:0;if(Ct||(b&=-97,U=ee=n),Ee=Ee===n?Ee:Dr(Tn(Ee),0),Ie=Ie===n?Ie:Tn(Ie),Ct-=ee?ee.length:0,b&R){var Et=U,Rt=ee;U=ee=n}var qt=We?n:jf(g),sn=[g,b,T,U,ee,Et,Rt,ce,Ee,Ie];if(qt&&ed(sn,qt),g=sn[0],b=sn[1],T=sn[2],U=sn[3],ee=sn[4],Ie=sn[9]=sn[9]===n?We?0:g.length:Dr(sn[9]-Ct,0),!Ie&&b&(O|N)&&(b&=-25),!b||b==w)var wn=s0(g,b,T);else b==O||b==N?wn=c0(g,b,Ie):(b==I||b==(w|I))&&!ee.length?wn=u0(g,b,T,U):wn=na.apply(n,sn);var Hn=qt?ju:Kf;return Wf(Hn(wn,sn),g,b)}function Pf(g,b,T,U){return g===n||Co(g,hc[T])&&!mr.call(U,T)?b:g}function sg(g,b,T,U,ee,ce){return qr(g)&&qr(b)&&(ce.set(b,g),Du(g,b,n,sg,ce),ce.delete(b)),g}function f0(g){return si(g)?n:g}function m0(g,b,T,U,ee,ce){var Ee=T&S,Ie=g.length,We=b.length;if(Ie!=We&&!(Ee&&We>Ie))return!1;var Ct=ce.get(g),Et=ce.get(b);if(Ct&&Et)return Ct==b&&Et==g;var Rt=-1,qt=!0,sn=T&C?new sl:n;for(ce.set(g,b),ce.set(b,g);++Rt<Ie;){var wn=g[Rt],Hn=b[Rt];if(U)var En=Ee?U(Hn,wn,Rt,b,g,ce):U(wn,Hn,Rt,g,b,ce);if(En!==n){if(En)continue;qt=!1;break}if(sn){if(!Ep(b,function(Jn,lr){if(!fc(sn,lr)&&(wn===Jn||ee(wn,Jn,T,U,ce)))return sn.push(lr)})){qt=!1;break}}else if(!(wn===Hn||ee(wn,Hn,T,U,ce))){qt=!1;break}}return ce.delete(g),ce.delete(b),qt}function p0(g,b,T,U,ee,ce,Ee){switch(T){case Fe:if(g.byteLength!=b.byteLength||g.byteOffset!=b.byteOffset)return!1;g=g.buffer,b=b.buffer;case we:return!(g.byteLength!=b.byteLength||!ce(new yc(g),new yc(b)));case pe:case Ce:case Oe:return Co(+g,+b);case me:return g.name==b.name&&g.message==b.message;case qe:case Ve:return g==b+"";case ge:var Ie=af;case ze:var We=U&S;if(Ie||(Ie=of),g.size!=b.size&&!We)return!1;var Ct=Ee.get(g);if(Ct)return Ct==b;U|=C,Ee.set(g,b);var Et=m0(Ie(g),Ie(b),U,ee,ce,Ee);return Ee.delete(g),Et;case Be:if(_s)return _s.call(g)==_s.call(b)}return!1}function Ma(g,b,T,U,ee,ce){var Ee=T&S,Ie=zf(g),We=Ie.length,Ct=zf(b),Et=Ct.length;if(We!=Et&&!Ee)return!1;for(var Rt=We;Rt--;){var qt=Ie[Rt];if(!(Ee?qt in b:mr.call(b,qt)))return!1}var sn=ce.get(g),wn=ce.get(b);if(sn&&wn)return sn==b&&wn==g;var Hn=!0;ce.set(g,b),ce.set(b,g);for(var En=Ee;++Rt<We;){qt=Ie[Rt];var Jn=g[qt],lr=b[qt];if(U)var Ei=Ee?U(lr,Jn,qt,b,g,ce):U(Jn,lr,qt,g,b,ce);if(!(Ei===n?Jn===lr||ee(Jn,lr,T,U,ce):Ei)){Hn=!1;break}En||(En=qt=="constructor")}if(Hn&&!En){var Vo=g.constructor,$i=b.constructor;Vo!=$i&&"constructor"in g&&"constructor"in b&&!(typeof Vo=="function"&&Vo instanceof Vo&&typeof $i=="function"&&$i instanceof $i)&&(Hn=!1)}return ce.delete(g),ce.delete(b),Hn}function jr(g){return td(mg(g,n,xo),g+"")}function zf(g){return qv(g,Sa,Qu)}function Df(g){return qv(g,Na,Lf)}var jf=xc?function(g){return xc.get(g)}:en;function Yu(g){for(var b=g.name+"",T=ni[b],U=mr.call(ni,b)?T.length:0;U--;){var ee=T[U],ce=ee.func;if(ce==null||ce==g)return ee.name}return b}function Ws(g){var b=mr.call(re,"placeholder")?re:g;return b.placeholder}function pn(){var g=re.iteratee||yn;return g=g===yn?Up:g,arguments.length?g(arguments[0],arguments[1]):g}function Nc(g,b){var T=g.__data__;return gl(b)?T[typeof b=="string"?"string":"hash"]:T.map}function kf(g){for(var b=Sa(g),T=b.length;T--;){var U=b[T],ee=g[U];b[T]=[U,ee,y0(ee)]}return b}function Gl(g,b){var T=Mp(g,b);return ki(T)?T:n}function g0(g){var b=mr.call(g,Xa),T=g[Xa];try{g[Xa]=n;var U=!0}catch{}var ee=Ga.call(g);return U&&(b?g[Xa]=T:delete g[Xa]),ee}var Qu=Bl?function(g){return g==null?[]:(g=or(g),zi(Bl(g),function(b){return Rs.call(g,b)}))}:Jx,Lf=Bl?function(g){for(var b=[];g;)ol(b,Qu(g)),g=Su(g);return b}:Jx,Ra=Zn;($u&&Ra(new $u(new ArrayBuffer(1)))!=Fe||ha&&Ra(new ha)!=ge||Wr&&Ra(Wr.resolve())!=Te||Gn&&Ra(new Gn)!=ze||vi&&Ra(new vi)!=ye)&&(Ra=function(g){var b=Zn(g),T=b==je?g.constructor:n,U=T?hl(T):"";if(U)switch(U){case zv:return Fe;case Dv:return ge;case Ou:return Te;case Mu:return ze;case jv:return ye}return b});function h0(g,b,T){for(var U=-1,ee=T.length;++U<ee;){var ce=T[U],Ee=ce.size;switch(ce.type){case"drop":g+=Ee;break;case"dropRight":b-=Ee;break;case"take":b=Kr(b,g+Ee);break;case"takeRight":g=Dr(g,b-Ee);break}}return{start:g,end:b}}function cg(g){var b=g.match($t);return b?b[1].split(xt):[]}function Zu(g,b,T){b=fl(b,g);for(var U=-1,ee=b.length,ce=!1;++U<ee;){var Ee=hr(b[U]);if(!(ce=g!=null&&T(g,Ee)))break;g=g[Ee]}return ce||++U!=ee?ce:(ee=g==null?0:g.length,!!ee&&Gs(ee)&&Si(Ee,ee)&&($n(g)||xl(g)))}function ug(g){var b=g.length,T=new g.constructor(b);return b&&typeof g[0]=="string"&&mr.call(g,"index")&&(T.index=g.index,T.input=g.input),T}function dg(g){return typeof g.constructor=="function"&&!Nr(g)?Do(Su(g)):{}}function fg(g,b,T){var U=g.constructor;switch(b){case we:return Bs(g);case pe:case Ce:return new U(+g);case Fe:return rg(g,T);case xe:case _e:case rt:case lt:case ut:case tt:case mt:case at:case gt:return ag(g,T);case ge:return new U;case Oe:case Ve:return new U(g);case qe:return If(g);case ze:return new U;case Be:return o0(g)}}function v0(g,b){var T=b.length;if(!T)return g;var U=T-1;return b[U]=(T>1?"& ":"")+b[U],b=b.join(T>2?", ":" "),g.replace(Ye,`{ /* [wrapped with `+b+`] */ `)}function pl(g){return $n(g)||xl(g)||!!(fo&&g&&g[fo])}function Si(g,b){var T=typeof g;return b=b??G,!!b&&(T=="number"||T!="symbol"&&rn.test(g))&&g>-1&&g%1==0&&g<b}function Za(g,b,T){if(!qr(T))return!1;var U=typeof b;return(U=="number"?ba(T)&&Si(b,T.length):U=="string"&&b in T)?Co(T[b],g):!1}function Bf(g,b){if($n(g))return!1;var T=typeof g;return T=="number"||T=="symbol"||T=="boolean"||g==null||Ja(g)?!0:Me.test(g)||!ve.test(g)||b!=null&&g in or(b)}function gl(g){var b=typeof g;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?g!=="__proto__":g===null}function Ff(g){var b=Yu(g),T=re[b];if(typeof T!="function"||!(b in Bn.prototype))return!1;if(g===T)return!0;var U=jf(T);return!!U&&g===U[0]}function Hf(g){return!!Tp&&Tp in g}var Ju=bu?Ci:e2;function Nr(g){var b=g&&g.constructor,T=typeof b=="function"&&b.prototype||hc;return g===T}function y0(g){return g===g&&!qr(g)}function b0(g,b){return function(T){return T==null?!1:T[g]===b&&(b!==n||g in or(T))}}function x0(g){var b=dd(g,function(U){return T.size===f&&T.clear(),U}),T=b.cache;return b}function ed(g,b){var T=g[1],U=b[1],ee=T|U,ce=ee<(w|E|_),Ee=U==_&&T==O||U==_&&T==z&&g[7].length<=b[8]||U==(_|z)&&b[7].length<=b[8]&&T==O;if(!(ce||Ee))return g;U&w&&(g[2]=b[2],ee|=T&w?0:$);var Ie=b[3];if(Ie){var We=g[3];g[3]=We?og(We,Ie,b[4]):Ie,g[4]=We?kl(g[3],m):b[4]}return Ie=b[5],Ie&&(We=g[5],g[5]=We?l0(We,Ie,b[6]):Ie,g[6]=We?kl(g[5],m):b[6]),Ie=b[7],Ie&&(g[7]=Ie),U&_&&(g[8]=g[8]==null?b[8]:Kr(g[8],b[8])),g[9]==null&&(g[9]=b[9]),g[0]=b[0],g[1]=ee,g}function Xl(g){var b=[];if(g!=null)for(var T in or(g))b.push(T);return b}function S0(g){return Ga.call(g)}function mg(g,b,T){return b=Dr(b===n?g.length-1:b,0),function(){for(var U=arguments,ee=-1,ce=Dr(U.length-b,0),Ee=ft(ce);++ee<ce;)Ee[ee]=U[b+ee];ee=-1;for(var Ie=ft(b+1);++ee<b;)Ie[ee]=U[ee];return Ie[b]=T(Ee),uo(g,this,Ie)}}function Tc(g,b){return b.length<2?g:ai(g,jo(b,0,-1))}function Fi(g,b){for(var T=g.length,U=Kr(b.length,T),ee=va(g);U--;){var ce=b[U];g[U]=Si(ce,T)?ee[ce]:n}return g}function Vf(g,b){if(!(b==="constructor"&&typeof g[b]=="function")&&b!="__proto__")return g[b]}var Kf=nd(ju),Ic=_p||function(g,b){return ca.setTimeout(g,b)},td=nd(ku);function Wf(g,b,T){var U=b+"";return td(g,v0(U,C0(cg(U),T)))}function nd(g){var b=0,T=0;return function(){var U=ll(),ee=H-(U-T);if(T=U,ee>0){if(++b>=F)return arguments[0]}else b=0;return g.apply(n,arguments)}}function rd(g,b){var T=-1,U=g.length,ee=U-1;for(b=b===n?U:b;++T<b;){var ce=Of(T,ee),Ee=g[ce];g[ce]=g[T],g[T]=Ee}return g.length=b,g}var Hi=x0(function(g){var b=[];return g.charCodeAt(0)===46&&b.push(""),g.replace(Xe,function(T,U,ee,ce){b.push(ee?ce.replace(dt,"$1"):U||T)}),b});function hr(g){if(typeof g=="string"||Ja(g))return g;var b=g+"";return b=="0"&&1/g==-W?"-0":b}function hl(g){if(g!=null){try{return xu.call(g)}catch{}try{return g+""}catch{}}return""}function C0(g,b){return Qo(Y,function(T){var U="_."+T[0];b&T[1]&&!Qd(g,U)&&g.push(U)}),g.sort()}function ya(g){if(g instanceof Bn)return g.clone();var b=new po(g.__wrapped__,g.__chain__);return b.__actions__=va(g.__actions__),b.__index__=g.__index__,b.__values__=g.__values__,b}function vx(g,b,T){(T?Za(g,b,T):b===n)?b=1:b=Dr(Tn(b),0);var U=g==null?0:g.length;if(!U||b<1)return[];for(var ee=0,ce=0,Ee=ft(bc(U/b));ee<U;)Ee[ce++]=jo(g,ee,ee+=b);return Ee}function w0(g){for(var b=-1,T=g==null?0:g.length,U=0,ee=[];++b<T;){var ce=g[b];ce&&(ee[U++]=ce)}return ee}function E0(){var g=arguments.length;if(!g)return[];for(var b=ft(g-1),T=arguments[0],U=g;U--;)b[U-1]=arguments[U];return ol($n(T)?va(T):[T],Xn(b,1))}var Ur=An(function(g,b){return aa(g)?Kl(g,Xn(b,1,aa,!0)):[]}),bo=An(function(g,b){var T=Va(b);return aa(T)&&(T=n),aa(g)?Kl(g,Xn(b,1,aa,!0),pn(T,2)):[]}),vl=An(function(g,b){var T=Va(b);return aa(T)&&(T=n),aa(g)?Kl(g,Xn(b,1,aa,!0),n,T):[]});function $0(g,b,T){var U=g==null?0:g.length;return U?(b=T||b===n?1:Tn(b),jo(g,b<0?0:b,U)):[]}function O0(g,b,T){var U=g==null?0:g.length;return U?(b=T||b===n?1:Tn(b),b=U-b,jo(g,0,b<0?0:b)):[]}function yx(g,b){return g&&g.length?Fu(g,pn(b,3),!0,!0):[]}function pg(g,b){return g&&g.length?Fu(g,pn(b,3),!0):[]}function Lo(g,b,T,U){var ee=g==null?0:g.length;return ee?(T&&typeof T!="number"&&Za(g,b,T)&&(T=0,U=ee),Dn(g,b,T,U)):[]}function ii(g,b,T){var U=g==null?0:g.length;if(!U)return-1;var ee=T==null?0:Tn(T);return ee<0&&(ee=Dr(U+ee,0)),Zd(g,pn(b,3),ee)}function gg(g,b,T){var U=g==null?0:g.length;if(!U)return-1;var ee=U-1;return T!==n&&(ee=Tn(T),ee=T<0?Dr(U+ee,0):Kr(ee,U-1)),Zd(g,pn(b,3),ee,!0)}function xo(g){var b=g==null?0:g.length;return b?Xn(g,1):[]}function M0(g){var b=g==null?0:g.length;return b?Xn(g,W):[]}function Yl(g,b){var T=g==null?0:g.length;return T?(b=b===n?1:Tn(b),Xn(g,b)):[]}function Us(g){for(var b=-1,T=g==null?0:g.length,U={};++b<T;){var ee=g[b];U[ee[0]]=ee[1]}return U}function yl(g){return g&&g.length?g[0]:n}function hg(g,b,T){var U=g==null?0:g.length;if(!U)return-1;var ee=T==null?0:Tn(T);return ee<0&&(ee=Dr(U+ee,0)),uc(g,b,ee)}function vg(g){var b=g==null?0:g.length;return b?jo(g,0,-1):[]}var Vi=An(function(g){var b=Vr(g,Tf);return b.length&&b[0]===g[0]?Hp(b):[]}),R0=An(function(g){var b=Va(g),T=Vr(g,Tf);return b===Va(T)?b=n:T.pop(),T.length&&T[0]===g[0]?Hp(T,pn(b,2)):[]}),_c=An(function(g){var b=Va(g),T=Vr(g,Tf);return b=typeof b=="function"?b:n,b&&T.pop(),T.length&&T[0]===g[0]?Hp(T,n,b):[]});function ad(g,b){return g==null?"":ei.call(g,b)}function Va(g){var b=g==null?0:g.length;return b?g[b-1]:n}function Ac(g,b,T){var U=g==null?0:g.length;if(!U)return-1;var ee=U;return T!==n&&(ee=Tn(T),ee=ee<0?Dr(U+ee,0):Kr(ee,U-1)),b===b?Po(g,b,ee):Zd(g,dc,ee,!0)}function N0(g,b){return g&&g.length?Xp(g,Tn(b)):n}var T0=An(Pc);function Pc(g,b){return g&&g.length&&b&&b.length?$f(g,b):g}function I0(g,b,T){return g&&g.length&&b&&b.length?$f(g,b,pn(T,2)):g}function Uf(g,b,T){return g&&g.length&&b&&b.length?$f(g,b,n,T):g}var _0=jr(function(g,b){var T=g==null?0:g.length,U=_u(g,b);return Qp(g,Vr(b,function(ee){return Si(ee,T)?+ee:ee}).sort(Ku)),U});function bx(g,b){var T=[];if(!(g&&g.length))return T;var U=-1,ee=[],ce=g.length;for(b=pn(b,3);++U<ce;){var Ee=g[U];b(Ee,U,g)&&(T.push(Ee),ee.push(U))}return Qp(g,ee),T}function yg(g){return g==null?g:Pp.call(g)}function xr(g,b,T){var U=g==null?0:g.length;return U?(T&&typeof T!="number"&&Za(g,b,T)?(b=0,T=U):(b=b==null?0:Tn(b),T=T===n?U:Tn(T)),jo(g,b,T)):[]}function Ar(g,b){return Lu(g,b)}function Vn(g,b,T){return Rf(g,b,pn(T,2))}function er(g,b){var T=g==null?0:g.length;if(T){var U=Lu(g,b);if(U<T&&Co(g[U],b))return U}return-1}function Sr(g,b){return Lu(g,b,!0)}function Bo(g,b,T){return Rf(g,b,pn(T,2),!0)}function Ql(g,b){var T=g==null?0:g.length;if(T){var U=Lu(g,b,!0)-1;if(Co(g[U],b))return U}return-1}function zc(g){return g&&g.length?Jp(g):[]}function bg(g,b){return g&&g.length?Jp(g,pn(b,2)):[]}function bl(g){var b=g==null?0:g.length;return b?jo(g,1,b):[]}function ra(g,b,T){return g&&g.length?(b=T||b===n?1:Tn(b),jo(g,0,b<0?0:b)):[]}function Zl(g,b,T){var U=g==null?0:g.length;return U?(b=T||b===n?1:Tn(b),b=U-b,jo(g,b<0?0:b,U)):[]}function qs(g,b){return g&&g.length?Fu(g,pn(b,3),!1,!0):[]}function xg(g,b){return g&&g.length?Fu(g,pn(b,3)):[]}var li=An(function(g){return dl(Xn(g,1,aa,!0))}),Dc=An(function(g){var b=Va(g);return aa(b)&&(b=n),dl(Xn(g,1,aa,!0),pn(b,2))}),od=An(function(g){var b=Va(g);return b=typeof b=="function"?b:n,dl(Xn(g,1,aa,!0),n,b)});function So(g){return g&&g.length?dl(g):[]}function Sg(g,b){return g&&g.length?dl(g,pn(b,2)):[]}function Cg(g,b){return b=typeof b=="function"?b:n,g&&g.length?dl(g,n,b):[]}function jc(g){if(!(g&&g.length))return[];var b=0;return g=zi(g,function(T){if(aa(T))return b=Dr(T.length,b),!0}),Dl(b,function(T){return Vr(g,Jd(T))})}function id(g,b){if(!(g&&g.length))return[];var T=jc(g);return b==null?T:Vr(T,function(U){return uo(b,n,U)})}var Jl=An(function(g,b){return aa(g)?Kl(g,b):[]}),ka=An(function(g){return Hu(zi(g,aa))}),es=An(function(g){var b=Va(g);return aa(b)&&(b=n),Hu(zi(g,aa),pn(b,2))}),kc=An(function(g){var b=Va(g);return b=typeof b=="function"?b:n,Hu(zi(g,aa),n,b)}),Lc=An(jc);function wg(g,b){return tg(g||[],b||[],zs)}function Eg(g,b){return tg(g||[],b||[],Mc)}var A0=An(function(g){var b=g.length,T=b>1?g[b-1]:n;return T=typeof T=="function"?(g.pop(),T):n,id(g,T)});function Bc(g){var b=re(g);return b.__chain__=!0,b}function $g(g,b){return b(g),g}function Ka(g,b){return b(g)}var P0=jr(function(g){var b=g.length,T=b?g[0]:0,U=this.__wrapped__,ee=function(ce){return _u(ce,g)};return b>1||this.__actions__.length||!(U instanceof Bn)||!Si(T)?this.thru(ee):(U=U.slice(T,+T+(b?1:0)),U.__actions__.push({func:Ka,args:[ee],thisArg:n}),new po(U,this.__chain__).thru(function(ce){return b&&!ce.length&&ce.push(n),ce}))});function Fo(){return Bc(this)}function z0(){return new po(this.value(),this.__chain__)}function D0(){this.__values__===n&&(this.__values__=Ho(this.value()));var g=this.__index__>=this.__values__.length,b=g?n:this.__values__[this.__index__++];return{done:g,value:b}}function xx(){return this}function ts(g){for(var b,T=this;T instanceof ri;){var U=ya(T);U.__index__=0,U.__values__=n,b?ee.__wrapped__=U:b=U;var ee=U;T=T.__wrapped__}return ee.__wrapped__=g,b}function qf(){var g=this.__wrapped__;if(g instanceof Bn){var b=g;return this.__actions__.length&&(b=new Bn(this)),b=b.reverse(),b.__actions__.push({func:Ka,args:[yg],thisArg:n}),new po(b,this.__chain__)}return this.thru(yg)}function Og(){return n0(this.__wrapped__,this.__actions__)}var Fc=Fs(function(g,b,T){mr.call(g,T)?++g[T]:yi(g,T,1)});function j0(g,b,T){var U=$n(g)?Cv:Bp;return T&&Za(g,b,T)&&(b=n),U(g,pn(b,3))}function k0(g,b){var T=$n(g)?zi:br;return T(g,pn(b,3))}var L0=ml(ii),Mg=ml(gg);function Rg(g,b){return Xn(ld(g,b),1)}function Sx(g,b){return Xn(ld(g,b),W)}function Cx(g,b,T){return T=T===n?1:Tn(T),Xn(ld(g,b),T)}function B0(g,b){var T=$n(g)?Qo:ul;return T(g,pn(b,3))}function Ng(g,b){var T=$n(g)?ex:vf;return T(g,pn(b,3))}var F0=Fs(function(g,b,T){mr.call(g,T)?g[T].push(b):yi(g,T,[b])});function Hc(g,b,T,U){g=ba(g)?g:Xc(g),T=T&&!U?Tn(T):0;var ee=g.length;return T<0&&(T=Dr(ee+T,0)),om(g)?T<=ee&&g.indexOf(b,T)>-1:!!ee&&uc(g,b,T)>-1}var Gf=An(function(g,b,T){var U=-1,ee=typeof b=="function",ce=ba(g)?ft(g.length):[];return ul(g,function(Ee){ce[++U]=ee?uo(b,Ee,T):ks(Ee,b,T)}),ce}),H0=Fs(function(g,b,T){yi(g,T,b)});function ld(g,b){var T=$n(g)?Vr:qp;return T(g,pn(b,3))}function V0(g,b,T,U){return g==null?[]:($n(b)||(b=b==null?[]:[b]),T=U?n:T,$n(T)||(T=T==null?[]:[T]),Yp(g,b,T))}var K0=Fs(function(g,b,T){g[T?0:1].push(b)},function(){return[[],[]]});function W0(g,b,T){var U=$n(g)?wp:Op,ee=arguments.length<3;return U(g,pn(b,4),T,ee,ul)}function U0(g,b,T){var U=$n(g)?tx:Op,ee=arguments.length<3;return U(g,pn(b,4),T,ee,vf)}function Xf(g,b){var T=$n(g)?zi:br;return T(g,fd(pn(b,3)))}function q0(g){var b=$n(g)?Cc:Oc;return b(g)}function G0(g,b,T){(T?Za(g,b,T):b===n)?b=1:b=Tn(b);var U=$n(g)?Kv:Mf;return U(g,b)}function Tr(g){var b=$n(g)?Wv:e0;return b(g)}function Tg(g){if(g==null)return 0;if(ba(g))return om(g)?Di(g):g.length;var b=Ra(g);return b==ge||b==ze?g.size:Sf(g).length}function wx(g,b,T){var U=$n(g)?Ep:t0;return T&&Za(g,b,T)&&(b=n),U(g,pn(b,3))}var X0=An(function(g,b){if(g==null)return[];var T=b.length;return T>1&&Za(g,b[0],b[1])?b=[]:T>2&&Za(b[0],b[1],b[2])&&(b=[b[0]]),Yp(g,Xn(b,1),[])}),Yf=Ts||function(){return ca.Date.now()};function Ex(g,b){if(typeof b!="function")throw new zo(l);return g=Tn(g),function(){if(--g<1)return b.apply(this,arguments)}}function Y0(g,b,T){return b=T?n:b,b=g&&b==null?g.length:b,Bi(g,_,n,n,n,n,b)}function sd(g,b){var T;if(typeof b!="function")throw new zo(l);return g=Tn(g),function(){return--g>0&&(T=b.apply(this,arguments)),g<=1&&(b=n),T}}var ns=An(function(g,b,T){var U=w;if(T.length){var ee=kl(T,Ws(ns));U|=I}return Bi(g,U,b,T,ee)}),Qf=An(function(g,b,T){var U=w|E;if(T.length){var ee=kl(T,Ws(Qf));U|=I}return Bi(b,U,g,T,ee)});function cd(g,b,T){b=T?n:b;var U=Bi(g,O,n,n,n,n,n,b);return U.placeholder=cd.placeholder,U}function Zf(g,b,T){b=T?n:b;var U=Bi(g,N,n,n,n,n,n,b);return U.placeholder=Zf.placeholder,U}function rs(g,b,T){var U,ee,ce,Ee,Ie,We,Ct=0,Et=!1,Rt=!1,qt=!0;if(typeof g!="function")throw new zo(l);b=ci(b)||0,qr(T)&&(Et=!!T.leading,Rt="maxWait"in T,ce=Rt?Dr(ci(T.maxWait)||0,b):ce,qt="trailing"in T?!!T.trailing:qt);function sn(Ca){var Cl=U,Xs=ee;return U=ee=n,Ct=Ca,Ee=g.apply(Xs,Cl),Ee}function wn(Ca){return Ct=Ca,Ie=Ic(Jn,b),Et?sn(Ca):Ee}function Hn(Ca){var Cl=Ca-We,Xs=Ca-Ct,b4=b-Cl;return Rt?Kr(b4,ce-Xs):b4}function En(Ca){var Cl=Ca-We,Xs=Ca-Ct;return We===n||Cl>=b||Cl<0||Rt&&Xs>=ce}function Jn(){var Ca=Yf();if(En(Ca))return lr(Ca);Ie=Ic(Jn,Hn(Ca))}function lr(Ca){return Ie=n,qt&&U?sn(Ca):(U=ee=n,Ee)}function Ei(){Ie!==n&&a0(Ie),Ct=0,U=We=ee=Ie=n}function Vo(){return Ie===n?Ee:lr(Yf())}function $i(){var Ca=Yf(),Cl=En(Ca);if(U=arguments,ee=this,We=Ca,Cl){if(Ie===n)return wn(We);if(Rt)return a0(Ie),Ie=Ic(Jn,b),sn(We)}return Ie===n&&(Ie=Ic(Jn,b)),Ee}return $i.cancel=Ei,$i.flush=Vo,$i}var Ki=An(function(g,b){return Ds(g,1,b)}),ud=An(function(g,b,T){return Ds(g,ci(b)||0,T)});function $x(g){return Bi(g,D)}function dd(g,b){if(typeof g!="function"||b!=null&&typeof b!="function")throw new zo(l);var T=function(){var U=arguments,ee=b?b.apply(this,U):U[0],ce=T.cache;if(ce.has(ee))return ce.get(ee);var Ee=g.apply(this,U);return T.cache=ce.set(ee,Ee)||ce,Ee};return T.cache=new(dd.Cache||go),T}dd.Cache=go;function fd(g){if(typeof g!="function")throw new zo(l);return function(){var b=arguments;switch(b.length){case 0:return!g.call(this);case 1:return!g.call(this,b[0]);case 2:return!g.call(this,b[0],b[1]);case 3:return!g.call(this,b[0],b[1],b[2])}return!g.apply(this,b)}}function Q0(g){return sd(2,g)}var Z0=r0(function(g,b){b=b.length==1&&$n(b[0])?Vr(b[0],Ao(pn())):Vr(Xn(b,1),Ao(pn()));var T=b.length;return An(function(U){for(var ee=-1,ce=Kr(U.length,T);++ee<ce;)U[ee]=b[ee].call(this,U[ee]);return uo(g,this,U)})}),Ig=An(function(g,b){var T=kl(b,Ws(Ig));return Bi(g,I,n,b,T)}),Jf=An(function(g,b){var T=kl(b,Ws(Jf));return Bi(g,R,n,b,T)}),J0=jr(function(g,b){return Bi(g,z,n,n,n,b)});function e1(g,b){if(typeof g!="function")throw new zo(l);return b=b===n?b:Tn(b),An(g,b)}function Ox(g,b){if(typeof g!="function")throw new zo(l);return b=b==null?0:Dr(Tn(b),0),An(function(T){var U=T[b],ee=Ul(T,0,b);return U&&ol(ee,U),uo(g,this,ee)})}function _g(g,b,T){var U=!0,ee=!0;if(typeof g!="function")throw new zo(l);return qr(T)&&(U="leading"in T?!!T.leading:U,ee="trailing"in T?!!T.trailing:ee),rs(g,b,{leading:U,maxWait:b,trailing:ee})}function Ag(g){return Y0(g,1)}function Mx(g,b){return Ig(Vu(b),g)}function Rx(){if(!arguments.length)return[];var g=arguments[0];return $n(g)?g:[g]}function md(g){return Fa(g,y)}function Nx(g,b){return b=typeof b=="function"?b:n,Fa(g,y,b)}function t1(g){return Fa(g,h|y)}function Kn(g,b){return b=typeof b=="function"?b:n,Fa(g,h|y,b)}function Pg(g,b){return b==null||Lp(g,b,Sa(b))}function Co(g,b){return g===b||g!==g&&b!==b}var zg=Ks(Au),n1=Ks(function(g,b){return g>=b}),xl=yf((function(){return arguments})())?yf:function(g){return Jr(g)&&mr.call(g,"callee")&&!Rs.call(g,"callee")},$n=ft.isArray,em=Yd?Ao(Yd):ho;function ba(g){return g!=null&&Gs(g.length)&&!Ci(g)}function aa(g){return Jr(g)&&ba(g)}function Tx(g){return g===!0||g===!1||Jr(g)&&Zn(g)==pe}var as=df||e2,r1=vv?Ao(vv):pa;function a1(g){return Jr(g)&&g.nodeType===1&&!si(g)}function tm(g){if(g==null)return!0;if(ba(g)&&($n(g)||typeof g=="string"||typeof g.splice=="function"||as(g)||Vc(g)||xl(g)))return!g.length;var b=Ra(g);if(b==ge||b==ze)return!g.size;if(Nr(g))return!Sf(g).length;for(var T in g)if(mr.call(g,T))return!1;return!0}function Er(g,b){return Ls(g,b)}function Dg(g,b,T){T=typeof T=="function"?T:n;var U=T?T(g,b):n;return U===n?Ls(g,b,n,T):!!U}function xa(g){if(!Jr(g))return!1;var b=Zn(g);return b==me||b==he||typeof g.message=="string"&&typeof g.name=="string"&&!si(g)}function Ix(g){return typeof g=="number"&&Eu(g)}function Ci(g){if(!qr(g))return!1;var b=Zn(g);return b==be||b==fe||b==de||b==Ue}function nm(g){return typeof g=="number"&&g==Tn(g)}function Gs(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=G}function qr(g){var b=typeof g;return g!=null&&(b=="object"||b=="function")}function Jr(g){return g!=null&&typeof g=="object"}var rm=yv?Ao(yv):bf;function jg(g,b){return g===b||zu(g,b,kf(b))}function _x(g,b,T){return T=typeof T=="function"?T:n,zu(g,b,kf(b),T)}function o1(g){return l1(g)&&g!=+g}function Ax(g){if(Ju(g))throw new Cn(o);return ki(g)}function i1(g){return g===null}function Px(g){return g==null}function l1(g){return typeof g=="number"||Jr(g)&&Zn(g)==Oe}function si(g){if(!Jr(g)||Zn(g)!=je)return!1;var b=Su(g);if(b===null)return!0;var T=mr.call(b,"constructor")&&b.constructor;return typeof T=="function"&&T instanceof T&&xu.call(T)==Jo}var am=bv?Ao(bv):xf;function kg(g){return nm(g)&&g>=-G&&g<=G}var s1=xv?Ao(xv):Kp;function om(g){return typeof g=="string"||!$n(g)&&Jr(g)&&Zn(g)==Ve}function Ja(g){return typeof g=="symbol"||Jr(g)&&Zn(g)==Be}var Vc=Sv?Ao(Sv):Wp;function wi(g){return g===n}function Lg(g){return Jr(g)&&Ra(g)==ye}function c1(g){return Jr(g)&&Zn(g)==oe}var u1=Ks(Cf),pd=Ks(function(g,b){return g<=b});function Ho(g){if(!g)return[];if(ba(g))return om(g)?Zo(g):va(g);if(Ns&&g[Ns])return Tv(g[Ns]());var b=Ra(g),T=b==ge?af:b==ze?of:Xc;return T(g)}function Wi(g){if(!g)return g===0?g:0;if(g=ci(g),g===W||g===-W){var b=g<0?-1:1;return b*X}return g===g?g:0}function Tn(g){var b=Wi(g),T=b%1;return b===b?T?b-T:b:0}function Ui(g){return g?bi(Tn(g),0,K):0}function ci(g){if(typeof g=="number")return g;if(Ja(g))return P;if(qr(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=qr(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=Ov(g);var T=Mt.test(g);return T||jt.test(g)?Zb(g.slice(2),T?2:8):Tt.test(g)?P:+g}function d1(g){return yo(g,Na(g))}function Kc(g){return g?bi(Tn(g),-G,G):g===0?g:0}function pr(g){return g==null?"":vo(g)}var zx=Hs(function(g,b){if(Nr(b)||ba(b)){yo(b,Sa(b),g);return}for(var T in b)mr.call(b,T)&&zs(g,T,b[T])}),f1=Hs(function(g,b){yo(b,Na(b),g)}),im=Hs(function(g,b,T,U){yo(b,Na(b),g,U)}),Dx=Hs(function(g,b,T,U){yo(b,Sa(b),g,U)}),jx=jr(_u);function kx(g,b){var T=Do(g);return b==null?T:cl(T,b)}var Lx=An(function(g,b){g=or(g);var T=-1,U=b.length,ee=U>2?b[2]:n;for(ee&&Za(b[0],b[1],ee)&&(U=1);++T<U;)for(var ce=b[T],Ee=Na(ce),Ie=-1,We=Ee.length;++Ie<We;){var Ct=Ee[Ie],Et=g[Ct];(Et===n||Co(Et,hc[Ct])&&!mr.call(g,Ct))&&(g[Ct]=ce[Ct])}return g}),m1=An(function(g){return g.push(n,sg),uo(yd,n,g)});function Wc(g,b){return wv(g,pn(b,3),Ha)}function gd(g,b){return wv(g,pn(b,3),$c)}function p1(g,b){return g==null?g:Ec(g,pn(b,3),Na)}function Bx(g,b){return g==null?g:js(g,pn(b,3),Na)}function Uc(g,b){return g&&Ha(g,pn(b,3))}function hd(g,b){return g&&$c(g,pn(b,3))}function g1(g){return g==null?[]:Wl(g,Sa(g))}function lm(g){return g==null?[]:Wl(g,Na(g))}function vd(g,b,T){var U=g==null?n:ai(g,b);return U===n?T:U}function Bg(g,b){return g!=null&&Zu(g,b,Fp)}function qc(g,b){return g!=null&&Zu(g,b,Gv)}var h1=Uu(function(g,b,T){b!=null&&typeof b.toString!="function"&&(b=Ga.call(b)),g[b]=T},Ze(et)),v1=Uu(function(g,b,T){b!=null&&typeof b.toString!="function"&&(b=Ga.call(b)),mr.call(g,b)?g[b].push(T):g[b]=[T]},pn),Fx=An(ks);function Sa(g){return ba(g)?kp(g):Sf(g)}function Na(g){return ba(g)?kp(g,!0):Yv(g)}function Hx(g,b){var T={};return b=pn(b,3),Ha(g,function(U,ee,ce){yi(T,b(U,ee,ce),U)}),T}function Vx(g,b){var T={};return b=pn(b,3),Ha(g,function(U,ee,ce){yi(T,ee,b(U,ee,ce))}),T}var Kx=Hs(function(g,b,T){Du(g,b,T)}),yd=Hs(function(g,b,T,U){Du(g,b,T,U)}),sm=jr(function(g,b){var T={};if(g==null)return T;var U=!1;b=Vr(b,function(ce){return ce=fl(ce,g),U||(U=ce.length>1),ce}),yo(g,Df(g),T),U&&(T=Fa(T,h|v|y,f0));for(var ee=b.length;ee--;)Bu(T,b[ee]);return T});function Fg(g,b){return Gc(g,fd(pn(b)))}var Wx=jr(function(g,b){return g==null?{}:Qv(g,b)});function Gc(g,b){if(g==null)return{};var T=Vr(Df(g),function(U){return[U]});return b=pn(b),Ef(g,T,function(U,ee){return b(U,ee[0])})}function Ux(g,b,T){b=fl(b,g);var U=-1,ee=b.length;for(ee||(ee=1,g=n);++U<ee;){var ce=g==null?n:g[hr(b[U])];ce===n&&(U=ee,ce=T),g=Ci(ce)?ce.call(g):ce}return g}function y1(g,b,T){return g==null?g:Mc(g,b,T)}function b1(g,b,T,U){return U=typeof U=="function"?U:n,g==null?g:Mc(g,b,T,U)}var Hg=Xu(Sa),Vg=Xu(Na);function Kg(g,b,T){var U=$n(g),ee=U||as(g)||Vc(g);if(b=pn(b,4),T==null){var ce=g&&g.constructor;ee?T=U?new ce:[]:qr(g)?T=Ci(ce)?Do(Su(g)):{}:T={}}return(ee?Qo:Ha)(g,function(Ee,Ie,We){return b(T,Ee,Ie,We)}),T}function x1(g,b){return g==null?!0:Bu(g,b)}function cm(g,b,T){return g==null?g:eg(g,b,Vu(T))}function qx(g,b,T,U){return U=typeof U=="function"?U:n,g==null?g:eg(g,b,Vu(T),U)}function Xc(g){return g==null?[]:nf(g,Sa(g))}function Wg(g){return g==null?[]:nf(g,Na(g))}function Ug(g,b,T){return T===n&&(T=b,b=n),T!==n&&(T=ci(T),T=T===T?T:0),b!==n&&(b=ci(b),b=b===b?b:0),bi(ci(g),b,T)}function um(g,b,T){return b=Wi(b),T===n?(T=b,b=0):T=Wi(T),g=ci(g),Xv(g,b,T)}function qg(g,b,T){if(T&&typeof T!="boolean"&&Za(g,b,T)&&(b=T=n),T===n&&(typeof b=="boolean"?(T=b,b=n):typeof g=="boolean"&&(T=g,g=n)),g===n&&b===n?(g=0,b=1):(g=Wi(g),b===n?(b=g,g=0):b=Wi(b)),g>b){var U=g;g=b,b=U}if(T||g%1||b%1){var ee=Ap();return Kr(g+ee*(b-g+yu("1e-"+((ee+"").length-1))),b)}return Of(g,b)}var S1=Qa(function(g,b,T){return b=b.toLowerCase(),g+(T?dm(b):b)});function dm(g){return x(pr(g).toLowerCase())}function Sl(g){return g=pr(g),g&&g.replace(yt,rf).replace(_o,"")}function os(g,b,T){g=pr(g),b=vo(b);var U=g.length;T=T===n?U:bi(Tn(T),0,U);var ee=T;return T-=b.length,T>=0&&g.slice(T,ee)==b}function is(g){return g=pr(g),g&&Zt.test(g)?g.replace(Qt,Mv):g}function bd(g){return g=pr(g),g&&ke.test(g)?g.replace(Qe,"\\$&"):g}var xd=Qa(function(g,b,T){return g+(T?"-":"")+b.toLowerCase()}),ls=Qa(function(g,b,T){return g+(T?" ":"")+b.toLowerCase()}),Gx=ko("toLowerCase");function C1(g,b,T){g=pr(g),b=Tn(b);var U=b?Di(g):0;if(!b||U>=b)return g;var ee=(b-U)/2;return Gu(il(ee),T)+g+Gu(bc(ee),T)}function Sd(g,b,T){g=pr(g),b=Tn(b);var U=b?Di(g):0;return b&&U<b?g+Gu(b-U,T):g}function Xx(g,b,T){g=pr(g),b=Tn(b);var U=b?Di(g):0;return b&&U<b?Gu(b-U,T)+g:g}function w1(g,b,T){return T||b==null?b=0:b&&(b=+b),Is(pr(g).replace(Ae,""),b||0)}function fm(g,b,T){return(T?Za(g,b,T):b===n)?b=1:b=Tn(b),Zp(pr(g),b)}function E1(){var g=arguments,b=pr(g[0]);return g.length<3?b:b.replace(g[1],g[2])}var Yx=Qa(function(g,b,T){return g+(T?"_":"")+b.toLowerCase()});function mm(g,b,T){return T&&typeof T!="number"&&Za(g,b,T)&&(b=T=n),T=T===n?K:T>>>0,T?(g=pr(g),g&&(typeof b=="string"||b!=null&&!am(b))&&(b=vo(b),!b&&jl(g))?Ul(Zo(g),0,T):g.split(b,T)):[]}var pm=Qa(function(g,b,T){return g+(T?" ":"")+x(b)});function $1(g,b,T){return g=pr(g),T=T==null?0:bi(Tn(T),0,g.length),b=vo(b),g.slice(T,T+b.length)==b}function Cd(g,b,T){var U=re.templateSettings;T&&Za(g,b,T)&&(b=n),g=pr(g),b=im({},b,U,Pf);var ee=im({},b.imports,U.imports,Pf),ce=Sa(ee),Ee=nf(ee,ce),Ie,We,Ct=0,Et=b.interpolate||Ot,Rt="__p += '",qt=lf((b.escape||Ot).source+"|"+Et.source+"|"+(Et===It?ot:Ot).source+"|"+(b.evaluate||Ot).source+"|$","g"),sn="//# sourceURL="+(mr.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ws+"]")+` `;g.replace(qt,function(En,Jn,lr,Ei,Vo,$i){return lr||(lr=Ei),Rt+=g.slice(Ct,$i).replace(Ft,Rv),Jn&&(Ie=!0,Rt+=`' + __e(`+Jn+`) + '`),Vo&&(We=!0,Rt+=`'; `+Vo+`; __p += '`),lr&&(Rt+=`' + ((__t = (`+lr+`)) == null ? '' : __t) + '`),Ct=$i+En.length,En}),Rt+=`'; `;var wn=mr.call(b,"variable")&&b.variable;if(!wn)Rt=`with (obj) { `+Rt+` } `;else if(ct.test(wn))throw new Cn(s);Rt=(We?Rt.replace(Nt,""):Rt).replace(tn,"$1").replace(Wt,"$1;"),Rt="function("+(wn||"obj")+`) { `+(wn?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Ie?", __e = _.escape":"")+(We?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Rt+`return __p }`;var Hn=A(function(){return ar(ce,sn+"return "+Rt).apply(n,Ee)});if(Hn.source=Rt,xa(Hn))throw Hn;return Hn}function Gg(g){return pr(g).toLowerCase()}function gm(g){return pr(g).toUpperCase()}function O1(g,b,T){if(g=pr(g),g&&(T||b===n))return Ov(g);if(!g||!(b=vo(b)))return g;var U=Zo(g),ee=Zo(b),ce=mc(U,ee),Ee=pc(U,ee)+1;return Ul(U,ce,Ee).join("")}function Qx(g,b,T){if(g=pr(g),g&&(T||b===n))return g.slice(0,Rp(g)+1);if(!g||!(b=vo(b)))return g;var U=Zo(g),ee=pc(U,Zo(b))+1;return Ul(U,0,ee).join("")}function hm(g,b,T){if(g=pr(g),g&&(T||b===n))return g.replace(Ae,"");if(!g||!(b=vo(b)))return g;var U=Zo(g),ee=mc(U,Zo(b));return Ul(U,ee).join("")}function i(g,b){var T=L,U=B;if(qr(b)){var ee="separator"in b?b.separator:ee;T="length"in b?Tn(b.length):T,U="omission"in b?vo(b.omission):U}g=pr(g);var ce=g.length;if(jl(g)){var Ee=Zo(g);ce=Ee.length}if(T>=ce)return g;var Ie=T-Di(U);if(Ie<1)return U;var We=Ee?Ul(Ee,0,Ie).join(""):g.slice(0,Ie);if(ee===n)return We+U;if(Ee&&(Ie+=We.length-Ie),am(ee)){if(g.slice(Ie).search(ee)){var Ct,Et=We;for(ee.global||(ee=lf(ee.source,pr(nt.exec(ee))+"g")),ee.lastIndex=0;Ct=ee.exec(Et);)var Rt=Ct.index;We=We.slice(0,Rt===n?Ie:Rt)}}else if(g.indexOf(vo(ee),Ie)!=Ie){var qt=We.lastIndexOf(ee);qt>-1&&(We=We.slice(0,qt))}return We+U}function c(g){return g=pr(g),g&&nn.test(g)?g.replace(dn,_v):g}var p=Qa(function(g,b,T){return g+(T?" ":"")+b.toUpperCase()}),x=ko("toUpperCase");function M(g,b,T){return g=pr(g),b=T?n:b,b===n?Nv(g)?cx(g):ax(g):g.match(b)||[]}var A=An(function(g,b){try{return uo(g,n,b)}catch(T){return xa(T)?T:new Cn(T)}}),Z=jr(function(g,b){return Qo(b,function(T){T=hr(T),yi(g,T,ns(g[T],g))}),g});function ae(g){var b=g==null?0:g.length,T=pn();return g=b?Vr(g,function(U){if(typeof U[1]!="function")throw new zo(l);return[T(U[0]),U[1]]}):[],An(function(U){for(var ee=-1;++ee<b;){var ce=g[ee];if(uo(ce[0],this,U))return uo(ce[1],this,U)}})}function $e(g){return Uv(Fa(g,h))}function Ze(g){return function(){return g}}function vt(g,b){return g==null||g!==g?b:g}var wt=Li(),it=Li(!0);function et(g){return g}function yn(g){return Up(typeof g=="function"?g:Fa(g,h))}function hn(g){return Gp(Fa(g,h))}function $r(g,b){return wf(g,Fa(b,h))}var Ke=An(function(g,b){return function(T){return ks(T,g,b)}}),Pe=An(function(g,b){return function(T){return ks(g,T,b)}});function Ge(g,b,T){var U=Sa(b),ee=Wl(b,U);T==null&&!(qr(b)&&(ee.length||!U.length))&&(T=b,b=g,g=this,ee=Wl(b,Sa(b)));var ce=!(qr(T)&&"chain"in T)||!!T.chain,Ee=Ci(g);return Qo(ee,function(Ie){var We=b[Ie];g[Ie]=We,Ee&&(g.prototype[Ie]=function(){var Ct=this.__chain__;if(ce||Ct){var Et=g(this.__wrapped__),Rt=Et.__actions__=va(this.__actions__);return Rt.push({func:We,args:arguments,thisArg:g}),Et.__chain__=Ct,Et}return We.apply(g,ol([this.value()],arguments))})}),g}function bt(){return ca._===this&&(ca._=vc),this}function en(){}function Fn(g){return g=Tn(g),An(function(b){return Xp(b,g)})}var cn=qu(Vr),bn=qu(Cv),Ta=qu(Ep);function ir(g){return Bf(g)?Jd(hr(g)):Zv(g)}function ss(g){return function(b){return g==null?n:ai(g,b)}}var Zx=ql(),dT=ql(!0);function Jx(){return[]}function e2(){return!1}function fT(){return{}}function mT(){return""}function pT(){return!0}function gT(g,b){if(g=Tn(g),g<1||g>G)return[];var T=K,U=Kr(g,K);b=pn(b),g-=K;for(var ee=Dl(U,b);++T<g;)b(T);return ee}function hT(g){return $n(g)?Vr(g,hr):Ja(g)?[g]:va(Hi(pr(g)))}function vT(g){var b=++gi;return pr(g)+b}var yT=Rc(function(g,b){return g+b},0),bT=Af("ceil"),xT=Rc(function(g,b){return g/b},1),ST=Af("floor");function CT(g){return g&&g.length?xi(g,et,Au):n}function wT(g,b){return g&&g.length?xi(g,pn(b,2),Au):n}function ET(g){return Ev(g,et)}function $T(g,b){return Ev(g,pn(b,2))}function OT(g){return g&&g.length?xi(g,et,Cf):n}function MT(g,b){return g&&g.length?xi(g,pn(b,2),Cf):n}var RT=Rc(function(g,b){return g*b},1),NT=Af("round"),TT=Rc(function(g,b){return g-b},0);function IT(g){return g&&g.length?tf(g,et):0}function _T(g,b){return g&&g.length?tf(g,pn(b,2)):0}return re.after=Ex,re.ary=Y0,re.assign=zx,re.assignIn=f1,re.assignInWith=im,re.assignWith=Dx,re.at=jx,re.before=sd,re.bind=ns,re.bindAll=Z,re.bindKey=Qf,re.castArray=Rx,re.chain=Bc,re.chunk=vx,re.compact=w0,re.concat=E0,re.cond=ae,re.conforms=$e,re.constant=Ze,re.countBy=Fc,re.create=kx,re.curry=cd,re.curryRight=Zf,re.debounce=rs,re.defaults=Lx,re.defaultsDeep=m1,re.defer=Ki,re.delay=ud,re.difference=Ur,re.differenceBy=bo,re.differenceWith=vl,re.drop=$0,re.dropRight=O0,re.dropRightWhile=yx,re.dropWhile=pg,re.fill=Lo,re.filter=k0,re.flatMap=Rg,re.flatMapDeep=Sx,re.flatMapDepth=Cx,re.flatten=xo,re.flattenDeep=M0,re.flattenDepth=Yl,re.flip=$x,re.flow=wt,re.flowRight=it,re.fromPairs=Us,re.functions=g1,re.functionsIn=lm,re.groupBy=F0,re.initial=vg,re.intersection=Vi,re.intersectionBy=R0,re.intersectionWith=_c,re.invert=h1,re.invertBy=v1,re.invokeMap=Gf,re.iteratee=yn,re.keyBy=H0,re.keys=Sa,re.keysIn=Na,re.map=ld,re.mapKeys=Hx,re.mapValues=Vx,re.matches=hn,re.matchesProperty=$r,re.memoize=dd,re.merge=Kx,re.mergeWith=yd,re.method=Ke,re.methodOf=Pe,re.mixin=Ge,re.negate=fd,re.nthArg=Fn,re.omit=sm,re.omitBy=Fg,re.once=Q0,re.orderBy=V0,re.over=cn,re.overArgs=Z0,re.overEvery=bn,re.overSome=Ta,re.partial=Ig,re.partialRight=Jf,re.partition=K0,re.pick=Wx,re.pickBy=Gc,re.property=ir,re.propertyOf=ss,re.pull=T0,re.pullAll=Pc,re.pullAllBy=I0,re.pullAllWith=Uf,re.pullAt=_0,re.range=Zx,re.rangeRight=dT,re.rearg=J0,re.reject=Xf,re.remove=bx,re.rest=e1,re.reverse=yg,re.sampleSize=G0,re.set=y1,re.setWith=b1,re.shuffle=Tr,re.slice=xr,re.sortBy=X0,re.sortedUniq=zc,re.sortedUniqBy=bg,re.split=mm,re.spread=Ox,re.tail=bl,re.take=ra,re.takeRight=Zl,re.takeRightWhile=qs,re.takeWhile=xg,re.tap=$g,re.throttle=_g,re.thru=Ka,re.toArray=Ho,re.toPairs=Hg,re.toPairsIn=Vg,re.toPath=hT,re.toPlainObject=d1,re.transform=Kg,re.unary=Ag,re.union=li,re.unionBy=Dc,re.unionWith=od,re.uniq=So,re.uniqBy=Sg,re.uniqWith=Cg,re.unset=x1,re.unzip=jc,re.unzipWith=id,re.update=cm,re.updateWith=qx,re.values=Xc,re.valuesIn=Wg,re.without=Jl,re.words=M,re.wrap=Mx,re.xor=ka,re.xorBy=es,re.xorWith=kc,re.zip=Lc,re.zipObject=wg,re.zipObjectDeep=Eg,re.zipWith=A0,re.entries=Hg,re.entriesIn=Vg,re.extend=f1,re.extendWith=im,Ge(re,re),re.add=yT,re.attempt=A,re.camelCase=S1,re.capitalize=dm,re.ceil=bT,re.clamp=Ug,re.clone=md,re.cloneDeep=t1,re.cloneDeepWith=Kn,re.cloneWith=Nx,re.conformsTo=Pg,re.deburr=Sl,re.defaultTo=vt,re.divide=xT,re.endsWith=os,re.eq=Co,re.escape=is,re.escapeRegExp=bd,re.every=j0,re.find=L0,re.findIndex=ii,re.findKey=Wc,re.findLast=Mg,re.findLastIndex=gg,re.findLastKey=gd,re.floor=ST,re.forEach=B0,re.forEachRight=Ng,re.forIn=p1,re.forInRight=Bx,re.forOwn=Uc,re.forOwnRight=hd,re.get=vd,re.gt=zg,re.gte=n1,re.has=Bg,re.hasIn=qc,re.head=yl,re.identity=et,re.includes=Hc,re.indexOf=hg,re.inRange=um,re.invoke=Fx,re.isArguments=xl,re.isArray=$n,re.isArrayBuffer=em,re.isArrayLike=ba,re.isArrayLikeObject=aa,re.isBoolean=Tx,re.isBuffer=as,re.isDate=r1,re.isElement=a1,re.isEmpty=tm,re.isEqual=Er,re.isEqualWith=Dg,re.isError=xa,re.isFinite=Ix,re.isFunction=Ci,re.isInteger=nm,re.isLength=Gs,re.isMap=rm,re.isMatch=jg,re.isMatchWith=_x,re.isNaN=o1,re.isNative=Ax,re.isNil=Px,re.isNull=i1,re.isNumber=l1,re.isObject=qr,re.isObjectLike=Jr,re.isPlainObject=si,re.isRegExp=am,re.isSafeInteger=kg,re.isSet=s1,re.isString=om,re.isSymbol=Ja,re.isTypedArray=Vc,re.isUndefined=wi,re.isWeakMap=Lg,re.isWeakSet=c1,re.join=ad,re.kebabCase=xd,re.last=Va,re.lastIndexOf=Ac,re.lowerCase=ls,re.lowerFirst=Gx,re.lt=u1,re.lte=pd,re.max=CT,re.maxBy=wT,re.mean=ET,re.meanBy=$T,re.min=OT,re.minBy=MT,re.stubArray=Jx,re.stubFalse=e2,re.stubObject=fT,re.stubString=mT,re.stubTrue=pT,re.multiply=RT,re.nth=N0,re.noConflict=bt,re.noop=en,re.now=Yf,re.pad=C1,re.padEnd=Sd,re.padStart=Xx,re.parseInt=w1,re.random=qg,re.reduce=W0,re.reduceRight=U0,re.repeat=fm,re.replace=E1,re.result=Ux,re.round=NT,re.runInContext=Le,re.sample=q0,re.size=Tg,re.snakeCase=Yx,re.some=wx,re.sortedIndex=Ar,re.sortedIndexBy=Vn,re.sortedIndexOf=er,re.sortedLastIndex=Sr,re.sortedLastIndexBy=Bo,re.sortedLastIndexOf=Ql,re.startCase=pm,re.startsWith=$1,re.subtract=TT,re.sum=IT,re.sumBy=_T,re.template=Cd,re.times=gT,re.toFinite=Wi,re.toInteger=Tn,re.toLength=Ui,re.toLower=Gg,re.toNumber=ci,re.toSafeInteger=Kc,re.toString=pr,re.toUpper=gm,re.trim=O1,re.trimEnd=Qx,re.trimStart=hm,re.truncate=i,re.unescape=c,re.uniqueId=vT,re.upperCase=p,re.upperFirst=x,re.each=B0,re.eachRight=Ng,re.first=yl,Ge(re,(function(){var g={};return Ha(re,function(b,T){mr.call(re.prototype,T)||(g[T]=b)}),g})(),{chain:!1}),re.VERSION=r,Qo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){re[g].placeholder=re}),Qo(["drop","take"],function(g,b){Bn.prototype[g]=function(T){T=T===n?1:Dr(Tn(T),0);var U=this.__filtered__&&!b?new Bn(this):this.clone();return U.__filtered__?U.__takeCount__=Kr(T,U.__takeCount__):U.__views__.push({size:Kr(T,K),type:g+(U.__dir__<0?"Right":"")}),U},Bn.prototype[g+"Right"]=function(T){return this.reverse()[g](T).reverse()}}),Qo(["filter","map","takeWhile"],function(g,b){var T=b+1,U=T==k||T==V;Bn.prototype[g]=function(ee){var ce=this.clone();return ce.__iteratees__.push({iteratee:pn(ee,3),type:T}),ce.__filtered__=ce.__filtered__||U,ce}}),Qo(["head","last"],function(g,b){var T="take"+(b?"Right":"");Bn.prototype[g]=function(){return this[T](1).value()[0]}}),Qo(["initial","tail"],function(g,b){var T="drop"+(b?"":"Right");Bn.prototype[g]=function(){return this.__filtered__?new Bn(this):this[T](1)}}),Bn.prototype.compact=function(){return this.filter(et)},Bn.prototype.find=function(g){return this.filter(g).head()},Bn.prototype.findLast=function(g){return this.reverse().find(g)},Bn.prototype.invokeMap=An(function(g,b){return typeof g=="function"?new Bn(this):this.map(function(T){return ks(T,g,b)})}),Bn.prototype.reject=function(g){return this.filter(fd(pn(g)))},Bn.prototype.slice=function(g,b){g=Tn(g);var T=this;return T.__filtered__&&(g>0||b<0)?new Bn(T):(g<0?T=T.takeRight(-g):g&&(T=T.drop(g)),b!==n&&(b=Tn(b),T=b<0?T.dropRight(-b):T.take(b-g)),T)},Bn.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Bn.prototype.toArray=function(){return this.take(K)},Ha(Bn.prototype,function(g,b){var T=/^(?:filter|find|map|reject)|While$/.test(b),U=/^(?:head|last)$/.test(b),ee=re[U?"take"+(b=="last"?"Right":""):b],ce=U||/^find/.test(b);ee&&(re.prototype[b]=function(){var Ee=this.__wrapped__,Ie=U?[1]:arguments,We=Ee instanceof Bn,Ct=Ie[0],Et=We||$n(Ee),Rt=function(Jn){var lr=ee.apply(re,ol([Jn],Ie));return U&&qt?lr[0]:lr};Et&&T&&typeof Ct=="function"&&Ct.length!=1&&(We=Et=!1);var qt=this.__chain__,sn=!!this.__actions__.length,wn=ce&&!qt,Hn=We&&!sn;if(!ce&&Et){Ee=Hn?Ee:new Bn(this);var En=g.apply(Ee,Ie);return En.__actions__.push({func:Ka,args:[Rt],thisArg:n}),new po(En,qt)}return wn&&Hn?g.apply(this,Ie):(En=this.thru(Rt),wn?U?En.value()[0]:En.value():En)})}),Qo(["pop","push","shift","sort","splice","unshift"],function(g){var b=sf[g],T=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",U=/^(?:pop|shift)$/.test(g);re.prototype[g]=function(){var ee=arguments;if(U&&!this.__chain__){var ce=this.value();return b.apply($n(ce)?ce:[],ee)}return this[T](function(Ee){return b.apply($n(Ee)?Ee:[],ee)})}}),Ha(Bn.prototype,function(g,b){var T=re[b];if(T){var U=T.name+"";mr.call(ni,U)||(ni[U]=[]),ni[U].push({name:b,func:T})}}),ni[na(n,E).name]=[{name:"wrapper",func:n}],Bn.prototype.clone=Ru,Bn.prototype.reverse=ff,Bn.prototype.value=As,re.prototype.at=P0,re.prototype.chain=Fo,re.prototype.commit=z0,re.prototype.next=D0,re.prototype.plant=ts,re.prototype.reverse=qf,re.prototype.toJSON=re.prototype.valueOf=re.prototype.value=Og,re.prototype.first=re.prototype.head,Ns&&(re.prototype[Ns]=xx),re}),Ll=gc();zl?((zl.exports=Ll)._=Ll,cc._=Ll):ca._=Ll}).call(Yoe)})(gh,gh.exports)),gh.exports}var tb=Qoe();async function h8(e){const{fileKey:t,nodeId:n,framework:r}=e;let a="/getConfig";const o=[];return t&&o.push(`fileKey=${encodeURIComponent(t)}`),n&&o.push(`nodeId=${encodeURIComponent(n)}`),r&&o.push(`framework=${encodeURIComponent(r)}`),o.length>0&&(a+=`?${o.join("&")}`),(await fetch(a,{headers:{"Content-Type":"application/json"}})).json()}async function Zoe(e){const{fileKey:t,nodeId:n}=e,r=`/getHtml?fileKey=${t}${n?`&nodeId=${n}`:""}`;return(await fetch(r,{headers:{"Content-Type":"application/json"}})).json()}async function v8(e){const t=e?`/getGlobalConfig?framework=${encodeURIComponent(e)}`:"/getGlobalConfig";return(await fetch(t,{headers:{"Content-Type":"application/json"}})).json()}async function y8(e){return await fetch("/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function Joe(e){return await fetch("/saveGlobalConfig",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function eie(e){const t=`/getFrameworkConfig?framework=${encodeURIComponent(e)}`;return(await fetch(t,{headers:{"Content-Type":"application/json"}})).json()}async function b8(e){const t=`/getDefaultFrameworkConfig?framework=${encodeURIComponent(e)}`;return(await fetch(t,{headers:{"Content-Type":"application/json"}})).json()}async function tie(){return(await fetch("/getMarkdownFiles",{headers:{"Content-Type":"application/json"}})).json()}const nie=({value:e,placeholder:t,markdownFiles:n=[],onChange:r,onKeyDown:a,className:o})=>{const l=u.useRef(null),[s,d]=u.useState(n);u.useEffect(()=>{d(n)},[n]);const f=u.useMemo(()=>s.map(y=>({id:y.path,display:y.name,file:y})),[s]),m=(y,S,C,w,E)=>{const $=y.file,O=y.display||String(y.id);return Q.jsxs("div",{className:`flex items-center gap-2 py-1 px-2 ${E?"bg-blue-50":"bg-white"} hover:bg-blue-50 cursor-pointer`,children:[Q.jsx("span",{className:"text-blue-500",children:"📄"}),Q.jsx("span",{className:"font-medium text-gray-900",children:O}),$?.path&&Q.jsx("span",{className:"text-xs text-gray-400 truncate max-w-[300px]",children:$.path})]})},h=(y,S,C,w)=>{r(S)},v=y=>{a&&a(y)};return Q.jsx("div",{className:"w-full",children:Q.jsx(HN,{value:e,onChange:h,onKeyDown:v,placeholder:t,inputRef:l,className:`mentions-input ${o||""}`,allowSuggestionsAboveCursor:!0,a11ySuggestionsListLabel:"文档建议列表",children:Q.jsx(Xb,{trigger:"@",data:f,renderSuggestion:m,markup:"@[__display__](__id__)",displayTransform:(y,S)=>`@${S}`,appendSpaceOnAdd:!0,style:{backgroundColor:"#dbeafe"}})})})},rie=({open:e,onClose:t,curFramework:n,globalConfigSetting:r,onSave:a,supportSampling:o=!0,markdownFiles:l})=>{const[s,d]=uv.useMessage(),[f,m]=u.useState(r),h=u.useCallback((Y,ne)=>{m(se=>tb.set(tb.cloneDeep(se),Y,ne))},[]),v=f.frameworks||[],[y,S]=u.useState(!1),[C,w]=u.useState(""),[E,$]=u.useState(""),[O,N]=u.useState(n||f.defaultFramework||"react"),[I,R]=u.useState(!1),[_,z]=u.useState(null),[D,L]=u.useState(!1),B=async Y=>{z(Y);try{const se=(await b8(O)).data?.[Y]||"";h(`promptSetting.${O}.${Y}`,se),s.success("已重置为默认提示词")}catch(ne){console.error("获取默认提示词失败:",ne),s.error("重置失败,请稍后重试")}finally{z(null)}},F=async()=>{L(!0);try{const ne=(await b8(O)).data||{};m(se=>({...se,promptSetting:{...se.promptSetting,[O]:{...se.promptSetting?.[O],...ne}}})),s.success("已重置所有提示词为默认值")}catch(Y){console.error("获取默认提示词失败:",Y),s.error("重置失败,请稍后重试")}finally{L(!1)}},H=()=>{const Y=v.map(ne=>{const se=ne.isNew&&(!f.promptSetting?.[ne.value]?.chunkOptimizePrompt||!f.promptSetting?.[ne.value]?.aggregationOptimizePrompt||!f.promptSetting?.[ne.value]?.finalOptimizePrompt||!f.promptSetting?.[ne.value]?.componentAnalysisPrompt);return se?{...ne,isEmptyError:se}:{...ne,isEmptyError:!1}});return h("frameworks",Y),Y.some(ne=>ne.isEmptyError)?(R(!0),!1):(R(!1),!0)},k=()=>H(),[q,V]=u.useState(!1);u.useEffect(()=>{e&&!q&&(V(!0),m(r))},[e,q,r]),u.useEffect(()=>{e&&n&&N(n)},[e,n]),u.useEffect(()=>{!e&&q&&(w(""),$(""),S(!1),V(!1))},[q,e]),u.useEffect(()=>{e&&m(Y=>({...Y,promptSetting:r.promptSetting}))},[e,r.promptSetting]);const W=Y=>{h("defaultFramework",Y)},G=Y=>/^[a-zA-Z0-9-]+$/.test(Y)?v.some(se=>se.value===Y.toLowerCase())?($("框架已存在"),!1):($(""),!0):($("框架名称只能包含英文字母、数字和横杠"),!1),X=()=>{if(!C.trim()){w(""),S(!1);return}if(!G(C.trim()))return;const Y={label:C.trim(),value:C.trim().toLowerCase(),isCustom:!0,isNew:!0};h("frameworks",[...v,Y]),w(""),S(!1),$(""),s.success(`已添加框架 ${Y.label}`)},P=Y=>{if(f.defaultFramework===Y){s.error("不能删除当前默认框架");return}if(O===Y){const ne=f.defaultFramework||v.find(se=>se.value!==Y)?.value||"react";N(ne),j(ne)}h("frameworks",v.filter(ne=>ne.value!==Y)),s.success("删除成功")},K=()=>{w(""),S(!1),$("")},J=Y=>{const ne=Y.target.value;w(ne),E&&ne.trim()&&G(ne.trim())},j=async Y=>{if(!f.promptSetting?.[Y])try{const se=await eie(Y);m(de=>({...de,promptSetting:{...de.promptSetting,[Y]:{...de.promptSetting?.[Y],...se.data}}}))}catch(se){console.error("获取框架配置失败:",se),m(de=>({...de,promptSetting:{...de.promptSetting,[Y]:{...de.promptSetting?.[Y]}}}))}};return Q.jsxs(rl,{theme:{token:{fontSize:12}},children:[d,Q.jsx(LR,{title:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsx("span",{children:"全局设置"}),Q.jsxs("div",{className:"flex gap-2",children:[Q.jsx(Un,{type:"primary",onClick:()=>{k()&&a({...f,frameworks:f.frameworks.map(Y=>({label:Y.label,value:Y.value,isCustom:Y.isCustom}))})},children:"保存"}),Q.jsx(Un,{onClick:t,children:"取消"})]})]}),open:e,onClose:t,maskClosable:!1,placement:"right",width:"65vw",zIndex:9999999999,styles:{header:{padding:"8px 16px"},wrapper:{minWidth:"800px"},body:{padding:0}},children:Q.jsxs("div",{className:"h-full flex",children:[Q.jsxs("div",{className:"w-[200px] border-r border-gray-200 p-4 flex flex-col",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-3",children:[Q.jsx("h3",{className:"font-semibold",children:"框架列表"}),Q.jsx(Oo,{title:"添加自定义框架",children:Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(Ab,{}),onClick:()=>S(!0),className:"text-gray-600 hover:text-black"})})]}),y&&Q.jsxs("div",{className:"mb-3",children:[Q.jsx(Pn,{placeholder:"框架名称",value:C,onChange:J,onPressEnter:X,size:"small",status:E?"error":void 0,className:"mb-1",autoFocus:!0,suffix:Q.jsxs("div",{className:"flex items-center gap-x-1",children:[Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(Ob,{}),onClick:Y=>{Y.stopPropagation(),X()},className:"text-green-600 hover:text-green-700",disabled:!C.trim()||!!E}),Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(ic,{}),onClick:Y=>{Y.stopPropagation(),K()},className:"text-red-600 hover:text-red-700"})]})}),E&&Q.jsx("div",{className:"text-red-500",children:E})]}),Q.jsx("div",{className:"flex-1 overflow-y-auto space-y-1",children:v.map(Y=>{const ne=f.defaultFramework===Y.value,se=O===Y.value,pe=v.find(Ce=>Ce.value===Y.value)?.isEmptyError;return Q.jsxs("div",{className:`group relative px-3 py-2 rounded cursor-pointer transition-colors border ${se?"bg-blue-50 border-blue-300":pe?"border-red-300 hover:bg-gray-50":"border-gray-200 hover:bg-gray-50 hover:border-gray-300"}`,onClick:Ce=>{Ce.stopPropagation(),O!==Y.value&&(N(Y.value),j(Y.value))},children:[Q.jsxs("div",{className:"flex items-center justify-between mb-1 h-[24px]",children:[Q.jsxs("div",{className:"flex items-center min-w-0 flex-1",children:[Q.jsx(aX,{className:`mr-2 flex-shrink-0 ${se?"text-blue-600":""}`}),Q.jsxs("span",{className:`text-sm font-medium truncate ${se?"text-blue-600":""}`,children:[Y.label,Y.value==="kuikly"&&Q.jsx(Wo,{color:"blue",className:"ml-2",children:"Beta"})]})]}),Y.isCustom&&Q.jsx(yy,{title:"删除框架",description:`确认删除 ${Y.label}?`,onConfirm:()=>P(Y.value),okText:"确定",cancelText:"取消",children:Q.jsx(Un,{type:"text",size:"small",danger:!0,icon:Q.jsx(uX,{}),onClick:Ce=>Ce.stopPropagation(),className:"opacity-0 group-hover:opacity-100 transition-opacity",disabled:ne})})]}),Q.jsx("div",{className:"flex items-center justify-between min-h-[20px]",children:ne?Q.jsx("span",{className:"text-sm text-gray-400",children:"默认框架"}):Q.jsx(Un,{type:"link",size:"small",onClick:Ce=>{Ce.stopPropagation(),W(Y.value)},className:"!text-sm !p-0 !h-auto opacity-0 group-hover:opacity-100 transition-opacity",children:"设为默认"})})]},Y.value)})})]}),Q.jsxs("div",{className:"flex-1 p-4 overflow-y-auto",children:[Q.jsx("div",{className:"mb-4 pb-3 border-b border-gray-200",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsxs("h3",{className:"font-semibold mb-1",children:[v.find(Y=>Y.value===O)?.label||""," 提示词配置"]}),Q.jsx("p",{className:"text-gray-500",children:"配置当前框架的全局提示词"})]}),Q.jsx(yy,{title:"重置全部提示词",description:"确定要重置当前框架的所有提示词为默认值吗?",onConfirm:F,okText:"确定",cancelText:"取消",children:Q.jsx(Un,{type:"default",icon:D?Q.jsx(Bd,{size:"small"}):Q.jsx(A6,{}),disabled:D||_!==null,children:"重置全部"})})]})}),Q.jsx("div",{className:"space-y-6",children:cee.filter(Y=>o?Y!=="noSamplingAggregationPrompt":!["chunkOptimizePrompt","aggregationOptimizePrompt","finalOptimizePrompt"].includes(Y)).map((Y,ne)=>{const se=xy[Y],de=v.find(me=>me.value===O),pe=!se.optional&&de?.isEmptyError&&!f.promptSetting?.[O]?.[Y],Ce=f.promptSetting?.[O]?.[Y]||"",he=Y==="frameworkGuidePrompt"?f.promptSetting?.[O]?.enableFrameworkGuide??!1:!0;return Q.jsxs("div",{className:"pb-6 border-b border-gray-100 last:border-b-0",children:[Q.jsxs("div",{className:"mb-3",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-1",children:[Q.jsxs("h4",{className:"font-semibold",children:[ne+1,". ",se.title,pe&&Q.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),Y==="frameworkGuidePrompt"&&Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("span",{className:"text-sm text-gray-600",children:"启用"}),Q.jsx(p9,{checked:he,onChange:me=>{h(`promptSetting.${O}.enableFrameworkGuide`,me)}})]})]}),Q.jsx("p",{className:"text-gray-500",children:se.description}),pe&&Q.jsxs("div",{className:"text-red-500 mt-1 bg-red-50 px-2 py-1 rounded",children:["请配置 ",se.title," 提示词"]})]}),Y==="frameworkGuidePrompt"&&!he?null:Q.jsx("div",{className:"flex gap-4",children:Q.jsxs("div",{className:"flex-1 flex flex-col",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-2",children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx(ps,{className:"text-blue-500"}),Q.jsx("span",{className:"font-medium text-gray-600",children:"编辑"})]}),Q.jsx(yy,{title:"重置提示词",description:"确定要重置为默认提示词吗?当前内容将被覆盖。",onConfirm:()=>B(Y),okText:"确定",cancelText:"取消",children:Q.jsx(Un,{type:"text",size:"small",icon:_===Y?Q.jsx(Bd,{size:"small"}):Q.jsx(A6,{}),disabled:_!==null,className:"text-gray-500 hover:text-blue-500",children:"重置"})})]}),Q.jsx(nie,{value:Ce,onChange:me=>{h(`promptSetting.${O}.${Y}`,me),I&&setTimeout(()=>{H()},100)},placeholder:se.placeholder||"请输入提示词内容,支持 Markdown 语法...",className:"font-mono leading-relaxed resize-none",rows:8,markdownFiles:l}),Q.jsx("div",{className:"mt-2 text-sm text-gray-500",children:"💡 支持 Markdown 语法和 @ 引用文档(.sloth/doc 目录)"})]})})]},Y)})})]})]})})]})};function aie({open:e,onClose:t,onSelect:n,currentFileKey:r,currentNodeId:a}){const[o,l]=u.useState([]),[s,d]=u.useState(!1),[f,m]=u.useState("");u.useEffect(()=>{e&&(d(!0),fetch("/listDesignSnapshots").then(y=>y.json()).then(y=>{if(y.success&&y.snapshots){const S=y.snapshots.filter(C=>!(C.fileKey===r&&C.nodeId===a));l(S)}}).catch(y=>{console.error("获取设计稿快照失败:",y)}).finally(()=>{d(!1)}))},[e,r,a]);const h=o.filter(y=>{if(!f)return!0;const S=f.toLowerCase();return y.name.toLowerCase().includes(S)||y.fileKey.toLowerCase().includes(S)||y.nodeId.toLowerCase().includes(S)}),v=y=>{const S=new Date(y),w=new Date().getTime()-S.getTime(),E=Math.floor(w/(1e3*60*60*24));return E===0?"今天 "+S.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):E===1?"昨天 "+S.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):E<7?`${E}天前`:S.toLocaleDateString("zh-CN",{month:"short",day:"numeric"})};return Q.jsxs(qa,{title:Q.jsx("div",{className:"flex items-center gap-2",children:Q.jsx("span",{className:"text-lg",children:"选择原本的设计稿快照"})}),open:e,onCancel:t,footer:null,width:800,zIndex:2147493100,styles:{body:{maxHeight:"60vh",overflowY:"auto"}},children:[Q.jsx("div",{className:"mb-4",children:Q.jsx(Pn,{placeholder:"搜索设计稿名称、FileKey...",prefix:Q.jsx(lv,{}),value:f,onChange:y=>m(y.target.value),allowClear:!0})}),s?Q.jsx("div",{className:"flex justify-center items-center py-12",children:Q.jsx(Bd,{tip:"加载中..."})}):h.length===0?Q.jsx(fi,{description:f?"没有找到匹配的设计稿":"暂无历史设计稿",className:"py-12"}):Q.jsx("div",{className:"grid grid-cols-3 gap-4",children:h.map(y=>Q.jsx(Ml,{hoverable:!0,className:"cursor-pointer transition-all hover:shadow-lg",onClick:()=>{n(y),t()},cover:y.screenshotBase64?Q.jsx("div",{className:"h-32 overflow-hidden bg-gray-100 flex items-center justify-center",children:Q.jsx("img",{src:y.screenshotBase64,alt:y.name,className:"w-full h-full object-contain",onError:S=>{S.target.style.display="none"}})}):Q.jsx("div",{className:"h-32 bg-gray-100 flex items-center justify-center",children:Q.jsx(kb,{className:"text-4xl text-gray-400"})}),children:Q.jsx(Ml.Meta,{title:Q.jsx(Oo,{title:y.name,children:Q.jsx("div",{className:"truncate text-sm",children:y.name})}),description:Q.jsxs("div",{className:"flex flex-col gap-1 text-xs",children:[Q.jsxs("div",{className:"flex items-center gap-1 text-gray-500",children:[Q.jsx(NU,{}),Q.jsx("span",{children:v(y.timestamp)})]}),y.groupCount!==void 0&&Q.jsxs("div",{className:"text-gray-400",children:[y.groupCount," 个分组"]})]})})},`${y.fileKey}-${y.nodeId}`))})]})}const oie={layout:"blue",style:"purple",content:"green",structure:"orange"},iie={layout:Q.jsx(BG,{}),style:Q.jsx(ps,{}),content:Q.jsx(Ab,{}),structure:Q.jsx(d9,{})},lie={layout:"布局",style:"样式",content:"内容",structure:"结构"};function sie({open:e,loading:t,analysisResult:n,onClose:r,onConfirm:a}){const[o,l]=u.useState([]);u.useEffect(()=>{n?.aiSummary&&l(n.aiSummary.map(y=>({...y,accepted:!0,userPrompt:""})))},[n]);const s=y=>{l(S=>S.map(C=>C.id===y?{...C,accepted:!C.accepted}:C))},d=(y,S)=>{l(C=>C.map(w=>w.id===y?{...w,userPrompt:S}:w))},f=()=>{const y=o.filter(S=>S.accepted);a(y)},m=y=>{l(S=>S.map(C=>({...C,accepted:y})))},h=o.length>0&&o.every(y=>y.accepted),v=o.some(y=>y.accepted);return Q.jsx(qa,{title:Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx(yX,{className:"text-orange-500"}),Q.jsx("span",{className:"text-lg",children:"确认设计稿变更"})]}),open:e,onCancel:r,width:800,zIndex:2147493100,footer:Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsx(mu,{checked:h,indeterminate:v&&!h,onChange:y=>m(y.target.checked),children:"全选"}),Q.jsxs(to,{children:[Q.jsx(Un,{onClick:r,children:"取消"}),Q.jsxs(Un,{type:"primary",onClick:f,disabled:!v,children:["确认变更 (",o.filter(y=>y.accepted).length,")"]})]})]}),styles:{body:{maxHeight:"60vh",overflowY:"auto"}},children:t?Q.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[Q.jsx(Bd,{size:"large"}),Q.jsx("p",{className:"mt-4 text-gray-500",children:"正在分析设计稿变更..."})]}):n?Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"mb-4 p-3 bg-gray-50 rounded-lg",children:Q.jsxs("div",{className:"flex gap-4 text-sm",children:[Q.jsxs("span",{className:"text-green-600",children:[Q.jsx(Ab,{className:"mr-1"}),"新增 ",n.changeSummary.addedLines," 行"]}),Q.jsxs("span",{className:"text-red-600",children:[Q.jsx(d9,{className:"mr-1"}),"删除 ",n.changeSummary.removedLines," 行"]}),Q.jsxs("span",{className:"text-gray-500",children:["变更比例: ",n.changeSummary.changeRatio,"%"]})]})}),o.length===0?Q.jsx(fi,{description:"未检测到明显变更"}):Q.jsx(VC,{dataSource:o,renderItem:y=>Q.jsx(VC.Item,{className:"!px-0",children:Q.jsx(Ml,{className:`w-full transition-all ${y.accepted?"border-blue-300":"opacity-60"}`,size:"small",children:Q.jsxs("div",{className:"flex flex-col gap-2",children:[Q.jsxs("div",{className:"flex items-start gap-2",children:[Q.jsx(mu,{checked:y.accepted,onChange:()=>s(y.id)}),Q.jsxs("div",{className:"flex-1",children:[Q.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[Q.jsx(Wo,{color:oie[y.type],icon:iie[y.type],children:lie[y.type]||y.type}),Q.jsx("strong",{children:y.title})]}),Q.jsx("p",{className:"text-gray-600 text-sm mb-2",children:y.description}),Q.jsxs("p",{className:"text-blue-600 text-xs",children:["💡 建议: ",y.suggestedAction]})]})]}),y.accepted&&Q.jsx(Pn.TextArea,{placeholder:"添加额外的提示信息(可选)",value:y.userPrompt,onChange:S=>d(y.id,S.target.value),autoSize:{minRows:1,maxRows:3},className:"mt-2"})]})})})})]}):Q.jsx(fi,{description:"暂无分析结果"})})}const eo=e=>typeof window>"u"?"":getComputedStyle(document.documentElement).getPropertyValue(e).trim(),cie=()=>{const e=eo("--vscode-foreground"),t=eo("--vscode-editor-background"),n=eo("--vscode-sideBar-background"),r=eo("--vscode-input-background"),a=eo("--vscode-input-foreground"),o=eo("--vscode-input-border"),l=eo("--vscode-focusBorder"),s=eo("--vscode-descriptionForeground"),d=eo("--vscode-input-placeholderForeground"),f=eo("--vscode-panel-border"),m=eo("--vscode-list-hoverBackground"),h=eo("--vscode-dropdown-background"),v=eo("--vscode-dropdown-foreground"),y=eo("--vscode-dropdown-border"),S=eo("--vscode-radio-activeBackground"),C=eo("--vscode-radio-activeForeground"),w=eo("--vscode-radio-inactiveBorder");return e?{token:{colorPrimary:l,colorBgContainer:t,colorBgElevated:n,colorBgLayout:t,colorText:e,colorTextSecondary:s,colorTextPlaceholder:d,colorBorder:o,colorBorderSecondary:f,colorBgContainerDisabled:r,colorTextDisabled:s,colorBgBase:r,borderRadius:4,borderRadiusLG:6,borderRadiusSM:2,fontSize:14,fontFamily:'var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif)',boxShadow:"none",boxShadowSecondary:"none",boxShadowTertiary:"none"},components:{Form:{itemMarginBottom:16,labelColor:e,labelFontSize:14},Input:{colorBgContainer:r,colorText:a,colorBorder:o,colorPrimaryHover:l,activeBorderColor:l,hoverBorderColor:l,paddingBlock:8,paddingInline:12},Select:{colorBgContainer:h,colorText:v,colorBorder:y,colorPrimaryHover:l,optionSelectedBg:m,optionActiveBg:m,selectorBg:h},Radio:{colorPrimary:e,colorBgContainer:t,colorText:e,colorBorder:w,buttonBg:r,buttonColor:C,buttonCheckedBg:S},Button:{colorPrimary:l,colorPrimaryHover:l,colorPrimaryActive:l,colorText:e,colorBgContainer:r,colorBgContainerDisabled:r,colorBorder:o,borderColorDisabled:o,defaultBg:r,defaultColor:e,defaultHoverBg:m,defaultHoverColor:e,defaultActiveBg:m,defaultActiveColor:e,defaultHoverBorderColor:l,defaultActiveBorderColor:l,paddingBlock:8,paddingInline:16,boxShadow:"none",primaryShadow:"none",defaultShadow:"none",dangerShadow:"none"},Tabs:{colorBgContainer:t,colorText:e,colorTextSecondary:s,colorPrimary:e,colorBorder:f,inkBarColor:l,itemColor:s,itemHoverColor:e,itemSelectedColor:e,cardBg:n},Card:{colorBgContainer:n,colorText:e,colorTextHeading:e,colorBorderSecondary:f,headerBg:n,headerHeight:48,paddingLG:16},Typography:{colorText:e,colorTextSecondary:s,titleMarginBottom:8,titleMarginTop:0},Divider:{colorSplit:f,marginLG:16},Space:{},Result:{colorTextHeading:e,colorTextDescription:s,titleFontSize:20,subtitleFontSize:14,paddingContentVertical:32}}}:{}},uie=()=>cie();var Kt={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function die(e="soft"){switch(Kt.session.__counterEpoch=(Kt.session.__counterEpoch||0)+1,e){case"auto":{Kt.session.styleMap=new Map,Kt.session.nodeMap=new Map;return}case"soft":{Kt.session.styleMap=new Map,Kt.session.nodeMap=new Map,Kt.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{Kt.session.styleMap=new Map,Kt.session.nodeMap=new Map,Kt.session.styleCache=new WeakMap,Kt.computedStyle=new WeakMap,Kt.baseStyle=new Map,Kt.defaultStyle=new Map,Kt.image=new Map,Kt.background=new Map,Kt.resource=new Map,Kt.font=new Set;return}default:{Kt.session.styleMap=new Map,Kt.session.nodeMap=new Map,Kt.session.styleCache=new WeakMap;return}}}function h4(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let n=t[2].trim();return n.startsWith("#")?null:n}function fie(e){if(!e||e==="none")return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(n,r)=>{let a=r.split(",").map(o=>o.trim());return a.length!==6?`matrix(${r})`:(a[4]="0",a[5]="0",`matrix(${a.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(n,r)=>{let a=r.split(",").map(o=>o.trim());return a.length!==16?`matrix3d(${r})`:(a[12]="0",a[13]="0",`matrix3d(${a.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function nb(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function mie(e="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:n=12}={}){let r=new Map,a=0;function o(l,s,d){if(a>=n)return;let f=Date.now();(r.get(s)||0)>f||(r.set(s,f+t),a++,l==="warn"&&console&&console.warn?console.warn(`${e} ${d}`):console&&console.error&&console.error(`${e} ${d}`))}return{warnOnce(l,s){o("warn",l,s)},errorOnce(l,s){o("error",l,s)},reset(){r.clear(),a=0}}}var x8=mie("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),_S=new Map,ny=new Map;function pie(e){return/^data:|^blob:|^about:blank$/i.test(e)}function gie(e,t){try{let n=typeof location<"u"&&location.href?location.href:"http://localhost/",r=t.includes("{url}")?t.split("{url}")[0]:t,a=new URL(r||".",n),o=new URL(e,n);if(o.origin===a.origin)return!0;let l=o.searchParams;if(l&&(l.has("url")||l.has("target")))return!0}catch{}return!1}function hie(e,t){if(!t||pie(e)||gie(e,t))return!1;try{let n=typeof location<"u"&&location.href?location.href:"http://localhost/",r=new URL(e,n);return typeof location<"u"?r.origin!==location.origin:!0}catch{return!!t}}function vie(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",nb(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${nb(e)}`;let n=t.includes("?")?"&":"?";return`${t}${n}url=${encodeURIComponent(e)}`}function S8(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>n(new Error("read_failed")),r.readAsDataURL(e)})}function yie(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}async function hs(e,t={}){let n=t.as??"blob",r=t.timeout??3e3,a=t.useProxy||"",o=t.errorTTL??8e3,l=t.headers||{},s=!!t.silent;if(/^data:/i.test(e))try{if(n==="text")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if(n==="dataURL")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,w="",E=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],$=/;base64/i.test(w)?atob(E):decodeURIComponent(E),O=new Uint8Array([...$].map(I=>I.charCodeAt(0))),N=new Blob([O],{type:(w||"").split(";")[0]||""});return{ok:!0,data:N,status:200,url:e,fromCache:!1,mime:N.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let w=await fetch(e);if(!w.ok)return{ok:!1,data:null,status:w.status,url:e,fromCache:!1,reason:"http_error"};let E=await w.blob(),$=E.type||w.headers.get("content-type")||"";return n==="dataURL"?{ok:!0,data:await S8(E),status:w.status,url:e,fromCache:!1,mime:$}:n==="text"?{ok:!0,data:await E.text(),status:w.status,url:e,fromCache:!1,mime:$}:{ok:!0,data:E,status:w.status,url:e,fromCache:!1,mime:$}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return n==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:n==="text"?"":new Blob([]),status:200,url:e,fromCache:!1};let d=yie(e,{as:n,timeout:r,useProxy:a,errorTTL:o}),f=ny.get(d);if(f&&f.until>Date.now())return{...f.result,fromCache:!0};f&&ny.delete(d);let m=_S.get(d);if(m)return m;let h=hie(e,a)?vie(e,a):e,v=t.credentials;if(!v)try{let w=typeof location<"u"&&location.href?location.href:"http://localhost/",E=new URL(e,w);v=typeof location<"u"&&E.origin===location.origin?"include":"omit"}catch{v="omit"}let y=new AbortController,S=setTimeout(()=>y.abort("timeout"),r),C=(async()=>{try{let w=await fetch(h,{signal:y.signal,credentials:v,headers:l});if(!w.ok){let O={ok:!1,data:null,status:w.status,url:h,fromCache:!1,reason:"http_error"};if(o>0&&ny.set(d,{until:Date.now()+o,result:O}),!s){let N=`${w.status} ${w.statusText||""}`.trim();x8.warnOnce(`http:${w.status}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,`HTTP error ${N} while fetching ${n} ${e}`)}return t.onError&&t.onError(O),O}if(n==="text")return{ok:!0,data:await w.text(),status:w.status,url:h,fromCache:!1};let E=await w.blob(),$=E.type||w.headers.get("content-type")||"";return n==="dataURL"?{ok:!0,data:await S8(E),status:w.status,url:h,fromCache:!1,mime:$}:{ok:!0,data:E,status:w.status,url:h,fromCache:!1,mime:$}}catch(w){let E=w&&typeof w=="object"&&"name"in w&&w.name==="AbortError"?String(w.message||"").includes("timeout")?"timeout":"abort":"network",$={ok:!1,data:null,status:0,url:h,fromCache:!1,reason:E};if(!/^blob:/i.test(e)&&o>0&&ny.set(d,{until:Date.now()+o,result:$}),!s){let O=`${E}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,N=E==="timeout"?`Timeout after ${r}ms. Consider increasing timeout or using a proxy for ${e}`:E==="abort"?`Request aborted while fetching ${n} ${e}`:`Network/CORS issue while fetching ${n} ${e}. A proxy may be required`;x8.errorOnce(O,N)}return t.onError&&t.onError($),$}finally{clearTimeout(S),_S.delete(d)}})();return _S.set(d,C),C}async function KN(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||e.trim()==="none")return e;let n=h4(e);if(!n)return e;let r=nb(n);if(Kt.background.has(r)){let a=Kt.background.get(r);return a?`url("${a}")`:"none"}try{let a=await hs(r,{as:"dataURL",useProxy:t.useProxy});return a.ok?(Kt.background.set(r,a.data),`url("${a.data}")`):(Kt.background.set(r,null),"none")}catch{return Kt.background.set(r,null),"none"}}var bie=new Set(["meta","script","noscript","title","link","template"]),v4=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]);function xie(e){if(e=String(e).toLowerCase(),v4.has(e)){let o={};return Kt.defaultStyle.set(e,o),o}if(Kt.defaultStyle.has(e))return Kt.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let n=document.createElement(e);n.style.all="initial",t.appendChild(n);let r=getComputedStyle(n),a={};for(let o of r){if(WN(o))continue;let l=r.getPropertyValue(o);a[o]=l}return t.removeChild(n),Kt.defaultStyle.set(e,a),a}var Sie=/(?:^|-)(animation|transition)(?:-|$)/i,Cie=/^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,wie=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope"]);function WN(e){let t=String(e).toLowerCase();return!!(wie.has(t)||Cie.test(t)||Sie.test(t))}function pw(e,t){if(t=String(t||"").toLowerCase(),v4.has(t))return"";let n=[],r=xie(t);for(let[a,o]of Object.entries(e)){if(WN(a))continue;let l=r[a];o&&o!==l&&n.push(`${a}:${o}`)}return n.sort(),n.join(";")}function Eie(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),typeof e.querySelectorAll=="function"&&e.querySelectorAll("*").forEach(n=>t.add(n.tagName.toLowerCase())),Array.from(t))}function $ie(e){let t=new Map;for(let r of e){let a=Kt.defaultStyle.get(r);if(!a)continue;let o=Object.entries(a).map(([l,s])=>`${l}:${s};`).sort().join("");o&&(t.has(o)||t.set(o,[]),t.get(o).push(r))}let n="";for(let[r,a]of t.entries())n+=`${a.join(",")} { ${r} } `;return n}function Oie(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),n=new Map,r=1;for(let a of t)n.set(a,`c${r++}`);return n}function UN(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let n=Kt.computedStyle.get(e);if(n||(n=new Map,Kt.computedStyle.set(e,n)),!n.has(t)){let r=window.getComputedStyle(e,t);n.set(t,r)}return n.get(t)}function C8(e){let t={};for(let n of e)t[n]=e.getPropertyValue(n);return t}function qN(e){let t=[],n=0,r=0;for(let a=0;a<e.length;a++){let o=e[a];o==="("&&n++,o===")"&&n--,o===","&&n===0&&(t.push(e.slice(r,a).trim()),r=a+1)}return t.push(e.slice(r).trim()),t}var Mie=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],Im=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),gw=[];function Rie(e){let t=Array.isArray(e)?e:[e];for(let n of t)n instanceof RegExp?gw.push(n):typeof n=="string"?gw.push(new RegExp(n,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",n)}function Zs(e){let t=typeof e=="string"?e:"",n=[...Mie,...gw];for(let r of n)if(r instanceof RegExp&&r.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}function Nie(e=""){let t=String(e).toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var w8=new Map;function Tie(e=""){let t=Object.create(null),n=String(e||""),r=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g,a;for(;a=r.exec(n);)t[a[1].toUpperCase()]=Number(a[2]);return t}async function Iie(e,t,n){let r=String(e||""),a=r.toLowerCase(),o=String(t||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(a)&&!/\bsymbols\b/.test(a))return{familyForMeasure:r,familyForCanvas:r};if(!/\bmaterial\s*symbols\b/.test(a))return{familyForMeasure:r,familyForCanvas:r};let l=n&&(n.FILL??n.fill),s="outlined";/\brounded\b/.test(o)||/\bround\b/.test(o)?s="rounded":/\bsharp\b/.test(o)?s="sharp":/\boutlined\b/.test(o)&&(s="outlined");let d=l===1,f=null;if(d&&(s==="outlined"&&Im.materialIconsFilled?f={url:Im.materialIconsFilled,alias:"snapdom-mi-filled"}:s==="rounded"&&Im.materialIconsRound?f={url:Im.materialIconsRound,alias:"snapdom-mi-round"}:s==="sharp"&&Im.materialIconsSharp&&(f={url:Im.materialIconsSharp,alias:"snapdom-mi-sharp"})),!f)return{familyForMeasure:r,familyForCanvas:r};if(!w8.has(f.alias))try{let h=new FontFace(f.alias,`url(${f.url})`,{style:"normal",weight:"400"});document.fonts.add(h),await h.load(),w8.set(f.alias,!0)}catch{return{familyForMeasure:r,familyForCanvas:r}}let m=`"${f.alias}"`;return{familyForMeasure:m,familyForCanvas:m}}async function _ie(e="Material Icons",t=24){try{await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g,"")}"`),document.fonts.ready])}catch{}}function Aie(e){let t=e.getPropertyValue("-webkit-text-fill-color")?.trim()||"",n=/^transparent$/i.test(t)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);if(t&&!n&&t.toLowerCase()!=="currentcolor")return t;let r=e.color?.trim();return r&&r!=="inherit"?r:"#000"}async function Pie(e,{family:t="Material Icons",weight:n="normal",fontSize:r=32,color:a="#000",variation:o="",className:l=""}={}){let s=String(t||"").replace(/^['"]+|['"]+$/g,""),d=window.devicePixelRatio||1,f=Tie(o),{familyForMeasure:m,familyForCanvas:h}=await Iie(s,l,f);await _ie(h.replace(/^["']+|["']+$/g,""),r);let v=document.createElement("span");v.textContent=e,v.style.position="absolute",v.style.visibility="hidden",v.style.left="-99999px",v.style.whiteSpace="nowrap",v.style.fontFamily=m,v.style.fontWeight=String(n||"normal"),v.style.fontSize=`${r}px`,v.style.lineHeight="1",v.style.margin="0",v.style.padding="0",v.style.fontFeatureSettings="'liga' 1",v.style.fontVariantLigatures="normal",v.style.color=a,document.body.appendChild(v);let y=v.getBoundingClientRect(),S=Math.max(1,Math.ceil(y.width)),C=Math.max(1,Math.ceil(y.height));document.body.removeChild(v);let w=document.createElement("canvas");w.width=S*d,w.height=C*d;let E=w.getContext("2d");E.scale(d,d),E.font=`${n?`${n} `:""}${r}px ${h}`,E.textAlign="left",E.textBaseline="top",E.fillStyle=a;try{E.fontKerning="normal"}catch{}return E.fillText(e,0,0),{dataUrl:w.toDataURL(),width:S,height:C}}async function zie(e,t){if(!(e instanceof Element))return 0;let n='.material-icons, [class*="material-symbols"]',r=Array.from(e.querySelectorAll(n)).filter(l=>l&&l.textContent&&l.textContent.trim());if(r.length===0)return 0;let a=t instanceof Element?Array.from(t.querySelectorAll(n)).filter(l=>l&&l.textContent&&l.textContent.trim()):[],o=0;for(let l=0;l<r.length;l++){let s=r[l],d=a[l]||null;try{let f=getComputedStyle(d||s),m=f.fontFamily||"Material Icons";if(!Nie(m))continue;let h=(d||s).textContent.trim();if(!h)continue;let v=parseInt(f.fontSize,10)||24,y=f.fontWeight&&f.fontWeight!=="normal"?f.fontWeight:"normal",S=Aie(f),C=f.fontVariationSettings&&f.fontVariationSettings!=="normal"?f.fontVariationSettings:"",w=(d||s).className||"",{dataUrl:E,width:$,height:O}=await Pie(h,{family:m,weight:y,fontSize:v,color:S,variation:C,className:w});s.textContent="";let N=s.ownerDocument.createElement("img");N.src=E,N.alt=h,N.style.height=`${v}px`,N.style.width=`${Math.max(1,Math.round($/O*v))}px`,N.style.objectFit="contain",N.style.verticalAlign=getComputedStyle(s).verticalAlign||"baseline",s.appendChild(N),o++}catch{}}return o}async function Die(e,t,n,r=32,a="#000"){t=t.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let l=document.createElement("span");l.textContent=e,l.style.position="absolute",l.style.visibility="hidden",l.style.fontFamily=`"${t}"`,l.style.fontWeight=n||"normal",l.style.fontSize=`${r}px`,l.style.lineHeight="1",l.style.whiteSpace="nowrap",l.style.padding="0",l.style.margin="0",document.body.appendChild(l);let s=l.getBoundingClientRect(),d=Math.ceil(s.width),f=Math.ceil(s.height);document.body.removeChild(l);let m=document.createElement("canvas");m.width=Math.max(1,d*o),m.height=Math.max(1,f*o);let h=m.getContext("2d");return h.scale(o,o),h.font=n?`${n} ${r}px "${t}"`:`${r}px "${t}"`,h.textAlign="left",h.textBaseline="top",h.fillStyle=a,h.fillText(e,0,0),{dataUrl:m.toDataURL(),width:d,height:f}}var jie=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function Yb(e){if(!e)return"";for(let t of e.split(",")){let n=t.trim().replace(/^['"]+|['"]+$/g,"");if(n&&!jie.has(n.toLowerCase()))return n}return""}function $y(e){let t=String(e??"400").trim().toLowerCase();if(t==="normal")return 400;if(t==="bold")return 700;let n=parseInt(t,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function Oy(e){let t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function kie(e){let t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}function Lie(e){let t=String(e||"400").trim(),n=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){let a=$y(n[1]),o=$y(n[2]);return{min:Math.min(a,o),max:Math.max(a,o)}}let r=$y(t);return{min:r,max:r}}function Bie(e){let t=String(e||"normal").trim().toLowerCase();return t==="italic"?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}function Fie(e){let t=String(e||"100%").trim(),n=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){let o=parseFloat(n[1]),l=parseFloat(n[2]);return{min:Math.min(o,l),max:Math.max(o,l)}}let r=t.match(/(\d+(?:\.\d+)?)\s*%/),a=r?parseFloat(r[1]):100;return{min:a,max:a}}function Hie(e,t){if(!e)return!1;try{let n=new URL(e,location.href);if(n.origin===location.origin)return!0;let r=n.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com"].some(o=>r.endsWith(o)))return!0;let a=(n.pathname+n.search).toLowerCase();if(/\bfont(s)?\b/.test(a)||/\.woff2?(\b|$)/.test(a))return!0;for(let o of t){let l=o.toLowerCase().replace(/\s+/g,"+"),s=o.toLowerCase().replace(/\s+/g,"-");if(a.includes(l)||a.includes(s))return!0}return!1}catch{return!1}}function Vie(e){let t=new Set;for(let n of e||[]){let r=String(n).split("__")[0]?.trim();r&&t.add(r)}return t}function E8(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(n,r,a)=>{let o=(a||"").trim();if(!o||/^data:|^blob:|^https?:|^file:|^about:/i.test(o))return n;let l=o;try{l=new URL(o,t||location.href).href}catch{}return`url("${l}")`})}var hw=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g,rb=4;async function Kie(e,t,n){if(!e)return e;let r=new Set;function a(s,d){try{return new URL(s,d||location.href).href}catch{return s}}async function o(s,d,f=0){if(f>rb)return console.warn(`[snapDOM] @import depth exceeded (${rb}) at ${d}`),s;let m="",h=0,v;for(;v=hw.exec(s);){m+=s.slice(h,v.index),h=hw.lastIndex;let y=(v[2]||v[4]||"").trim(),S=a(y,d);if(r.has(S)){console.warn(`[snapDOM] Skipping circular @import: ${S}`);continue}r.add(S);let C="";try{let w=await hs(S,{as:"text",useProxy:n,silent:!0});w.ok&&typeof w.data=="string"&&(C=w.data)}catch{}C?(C=E8(C,S),C=await o(C,S,f+1),m+=` /* inlined: ${S} */ ${C} `):m+=v[0]}return m+=s.slice(h),m}let l=E8(e,t||location.href);return l=await o(l,t||location.href,0),l}var GN=/url\((["']?)([^"')]+)\1\)/g,Wie=/@font-face[^{}]*\{[^}]*\}/g;function XN(e){if(!e)return[];let t=[],n=e.split(",").map(r=>r.trim()).filter(Boolean);for(let r of n){let a=r.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!a)continue;let o=a[1],l=a[2],s=d=>{if(!d.includes("?"))return parseInt(d,16);let f=parseInt(d.replace(/\?/g,"0"),16),m=parseInt(d.replace(/\?/g,"F"),16);return[f,m]};if(l){let d=s(o),f=s(l),m=Array.isArray(d)?d[0]:d,h=Array.isArray(f)?f[1]:f;t.push([Math.min(m,h),Math.max(m,h)])}else{let d=s(o);Array.isArray(d)?t.push([d[0],d[1]]):t.push([d,d])}}return t}function YN(e,t){if(!t.length||!e||e.size===0)return!0;for(let n of e)for(let[r,a]of t)if(n>=r&&n<=a)return!0;return!1}function y4(e,t){let n=[];if(!e)return n;for(let r of e.matchAll(GN)){let a=(r[2]||"").trim();if(!(!a||a.startsWith("data:"))){if(!/^https?:/i.test(a))try{a=new URL(a,t||location.href).href}catch{}n.push(a)}}return n}async function QN(e,t,n=""){let r=e;for(let a of e.matchAll(GN)){let o=h4(a[0]);if(!o)continue;let l=o;if(!l.startsWith("http")&&!l.startsWith("data:"))try{l=new URL(l,t||location.href).href}catch{}if(!Zs(l)){if(Kt.resource?.has(l)){Kt.font?.add(l),r=r.replace(a[0],`url(${Kt.resource.get(l)})`);continue}if(!Kt.font?.has(l))try{let s=await hs(l,{as:"dataURL",useProxy:n,silent:!0});if(s.ok&&typeof s.data=="string"){let d=s.data;Kt.resource?.set(l,d),Kt.font?.add(l),r=r.replace(a[0],`url(${d})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",l)}}}return r}function Uie(e){if(!e.length)return null;let t=(l,s)=>e.some(([d,f])=>!(f<l||d>s)),n=t(0,255)||t(305,305),r=t(256,591)||t(7680,7935),a=t(880,1023),o=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":o?"cyrillic":a?"greek":r?"latin-ext":n?"latin":null}function $8(e={}){let t=new Set((e.families||[]).map(a=>String(a).toLowerCase())),n=new Set((e.domains||[]).map(a=>String(a).toLowerCase())),r=new Set((e.subsets||[]).map(a=>String(a).toLowerCase()));return(a,o)=>{if(t.size&&t.has(a.family.toLowerCase()))return!0;if(n.size)for(let l of a.srcUrls)try{if(n.has(new URL(l).host.toLowerCase()))return!0}catch{}if(r.size){let l=Uie(o);if(l&&r.has(l))return!0}return!1}}function qie(e){if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,r=[];for(let o of e.match(t)||[]){let l=o.match(/font-family:\s*([^;]+);/i)?.[1]||"",s=Yb(l),d=(o.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),f=(o.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),m=(o.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),h=(o.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),v=(o.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),y=y4(v,location.href),S=y.length?y.map(w=>String(w).toLowerCase()).sort().join("|"):v.toLowerCase(),C=[String(s||"").toLowerCase(),d,f,m,h.toLowerCase(),S].join("|");n.has(C)||(n.add(C),r.push(o))}if(r.length===0)return e;let a=0;return e.replace(t,()=>r[a++]||"")}function Gie(e,t,n,r){let a=Array.from(e||[]).sort().join("|"),o=t?JSON.stringify({families:(t.families||[]).map(s=>String(s).toLowerCase()).sort(),domains:(t.domains||[]).map(s=>String(s).toLowerCase()).sort(),subsets:(t.subsets||[]).map(s=>String(s).toLowerCase()).sort()}):"",l=(n||[]).map(s=>`${(s.family||"").toLowerCase()}::${s.weight||"normal"}::${s.style||"normal"}::${s.src||""}`).sort().join("|");return`fonts-embed-css::req=${a}::ex=${o}::lf=${l}::px=${r||""}`}async function ZN(e,t,n,r){let a;try{a=e.cssRules||[]}catch{return}let o=(l,s)=>{try{return new URL(l,s||location.href).href}catch{return l}};for(let l of a){if(l.type===CSSRule.IMPORT_RULE&&l.styleSheet){let s=l.href?o(l.href,t):t;if(r.depth>=rb){console.warn(`[snapDOM] CSSOM import depth exceeded (${rb}) at ${s}`);continue}if(s&&r.visitedSheets.has(s)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${s}`);continue}s&&r.visitedSheets.add(s);let d={...r,depth:(r.depth||0)+1};await ZN(l.styleSheet,s,n,d);continue}if(l.type===CSSRule.FONT_FACE_RULE){let s=(l.style.getPropertyValue("font-family")||"").trim(),d=Yb(s);if(!d||Zs(d))continue;let f=(l.style.getPropertyValue("font-weight")||"400").trim(),m=(l.style.getPropertyValue("font-style")||"normal").trim(),h=(l.style.getPropertyValue("font-stretch")||"100%").trim(),v=(l.style.getPropertyValue("src")||"").trim(),y=(l.style.getPropertyValue("unicode-range")||"").trim();if(!r.faceMatchesRequired(d,m,f,h))continue;let S=XN(y);if(!YN(r.usedCodepoints,S))continue;let C={family:d,weightSpec:f,styleSpec:m,stretchSpec:h,unicodeRange:y,srcRaw:v,srcUrls:y4(v,t||location.href),href:t||location.href};if(r.simpleExcluder&&r.simpleExcluder(C,S))continue;if(/url\(/i.test(v)){let w=await QN(v,t||location.href,r.useProxy);await n(`@font-face{font-family:${d};src:${w};font-style:${m};font-weight:${f};font-stretch:${h};${y?`unicode-range:${y};`:""}}`)}else await n(`@font-face{font-family:${d};src:${v};font-style:${m};font-weight:${f};font-stretch:${h};${y?`unicode-range:${y};`:""}}`)}}}async function Xie({required:e,usedCodepoints:t,exclude:n=void 0,localFonts:r=[],useProxy:a=""}={}){e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let o=new Map;for(let C of e){let[w,E,$,O]=String(C).split("__");if(!w)continue;let N=o.get(w)||[];N.push({w:parseInt(E,10),s:$,st:parseInt(O,10)}),o.set(w,N)}function l(C,w,E,$){if(!o.has(C))return!1;let O=o.get(C),N=Lie(E),I=Bie(w),R=Fie($),_=N.min!==N.max,z=N.min,D=B=>I.kind==="normal"&&B==="normal"||I.kind!=="normal"&&(B==="italic"||B==="oblique"),L=!1;for(let B of O){let F=_?B.w>=N.min&&B.w<=N.max:B.w===z,H=D(Oy(B.s)),k=B.st>=R.min&&B.st<=R.max;if(F&&H&&k){L=!0;break}}if(L)return!0;if(!_)for(let B of O){let F=D(Oy(B.s)),H=B.st>=R.min&&B.st<=R.max;if(Math.abs(z-B.w)<=300&&F&&H)return!0}if(!_&&I.kind==="normal"&&O.some(B=>Oy(B.s)!=="normal"))for(let B of O){let F=Math.abs(z-B.w)<=300,H=B.st>=R.min&&B.st<=R.max;if(F&&H)return!0}return!1}let s=$8(n),d=Gie(e,n,r,a);if(Kt.resource?.has(d))return Kt.resource.get(d);let f=Vie(e),m=[],h=hw;for(let C of document.querySelectorAll("style")){let w=C.textContent||"";for(let E of w.matchAll(h)){let $=(E[2]||E[4]||"").trim();!$||Zs($)||document.querySelector(`link[rel="stylesheet"][href="${$}"]`)||m.push($)}}m.length&&await Promise.all(m.map(C=>new Promise(w=>{if(document.querySelector(`link[rel="stylesheet"][href="${C}"]`))return w(null);let E=document.createElement("link");E.rel="stylesheet",E.href=C,E.setAttribute("data-snapdom","injected-import"),E.onload=()=>w(E),E.onerror=()=>w(null),document.head.appendChild(E)})));let v="",y=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(C=>!!C.href);for(let C of y)try{if(Zs(C.href))continue;let w="",E=!1;try{E=new URL(C.href,location.href).origin===location.origin}catch{}if(!E&&!Hie(C.href,f))continue;if(E){let O=Array.from(document.styleSheets).find(N=>N.href===C.href);if(O)try{let N=O.cssRules||[];w=Array.from(N).map(I=>I.cssText).join("")}catch{}}if(!w&&(w=(await hs(C.href,{as:"text",useProxy:a})).data,Zs(C.href)))continue;w=await Kie(w,C.href,a);let $="";for(let O of w.match(Wie)||[]){let N=(O.match(/font-family:\s*([^;]+);/i)?.[1]||"").trim(),I=Yb(N);if(!I||Zs(I))continue;let R=(O.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),_=(O.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),z=(O.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),D=(O.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),L=(O.match(/src\s*:\s*([^;}]+)[;}]/i)?.[1]||"").trim(),B=y4(L,C.href);if(!l(I,_,R,z))continue;let F=XN(D);if(!YN(t,F))continue;let H={family:I,weightSpec:R,styleSpec:_,stretchSpec:z,unicodeRange:D,srcRaw:L,srcUrls:B,href:C.href};if(n&&s(H,F))continue;let k=/url\(/i.test(L)?await QN(O,C.href,a):O;$+=k}$.trim()&&(v+=$)}catch{console.warn("[snapDOM] Failed to process stylesheet:",C.href)}let S={requiredIndex:o,usedCodepoints:t,faceMatchesRequired:l,simpleExcluder:n?$8(n):null,useProxy:a,visitedSheets:new Set,depth:0};for(let C of document.styleSheets)if(!(C.href&&y.some(w=>w.href===C.href)))try{let w=C.href||location.href;w&&S.visitedSheets.add(w),await ZN(C,w,async E=>{v+=E},S)}catch{}try{for(let C of document.fonts||[]){if(!C||!C.family||C.status!=="loaded"||!C._snapdomSrc)continue;let w=String(C.family).replace(/^['"]+|['"]+$/g,"");if(Zs(w)||!o.has(w)||n?.families&&n.families.some($=>String($).toLowerCase()===w.toLowerCase()))continue;let E=C._snapdomSrc;if(!String(E).startsWith("data:")){if(Kt.resource?.has(C._snapdomSrc))E=Kt.resource.get(C._snapdomSrc),Kt.font?.add(C._snapdomSrc);else if(!Kt.font?.has(C._snapdomSrc))try{let $=await hs(C._snapdomSrc,{as:"dataURL",useProxy:a,silent:!0});if($.ok&&typeof $.data=="string")E=$.data,Kt.resource?.set(C._snapdomSrc,E),Kt.font?.add(C._snapdomSrc);else continue}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",C._snapdomSrc);continue}}v+=`@font-face{font-family:'${w}';src:url(${E});font-style:${C.style||"normal"};font-weight:${C.weight||"normal"};}`}}catch{}for(let C of r){if(!C||typeof C!="object")continue;let w=String(C.family||"").replace(/^['"]+|['"]+$/g,"");if(!w||Zs(w)||!o.has(w)||n?.families&&n.families.some(R=>String(R).toLowerCase()===w.toLowerCase()))continue;let E=C.weight!=null?String(C.weight):"normal",$=C.style!=null?String(C.style):"normal",O=C.stretchPct!=null?`${C.stretchPct}%`:"100%",N=String(C.src||""),I=N;if(!I.startsWith("data:")){if(Kt.resource?.has(N))I=Kt.resource.get(N),Kt.font?.add(N);else if(!Kt.font?.has(N))try{let R=await hs(N,{as:"dataURL",useProxy:a,silent:!0});if(R.ok&&typeof R.data=="string")I=R.data,Kt.resource?.set(N,I),Kt.font?.add(N);else continue}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",N);continue}}v+=`@font-face{font-family:'${w}';src:url(${I});font-style:${$};font-weight:${E};font-stretch:${O};}`}return v&&(v=qie(v),Kt.resource?.set(d,v)),v}function Yie(e){let t=new Set;if(!e)return t;let n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),r=l=>{let s=Yb(l.fontFamily);if(!s)return;let d=(f,m,h)=>`${s}__${$y(f)}__${Oy(m)}__${kie(h)}`;t.add(d(l.fontWeight,l.fontStyle,l.fontStretch))};r(getComputedStyle(e));let a=getComputedStyle(e,"::before");a&&a.content&&a.content!=="none"&&r(a);let o=getComputedStyle(e,"::after");for(o&&o.content&&o.content!=="none"&&r(o);n.nextNode();){let l=n.currentNode,s=getComputedStyle(l);r(s);let d=getComputedStyle(l,"::before");d&&d.content&&d.content!=="none"&&r(d);let f=getComputedStyle(l,"::after");f&&f.content&&f.content!=="none"&&r(f)}return t}function Qie(e){let t=new Set,n=a=>{if(a)for(let o of a)t.add(o.codePointAt(0))},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;r.nextNode();){let a=r.currentNode;if(a.nodeType===Node.TEXT_NODE)n(a.nodeValue||"");else if(a.nodeType===Node.ELEMENT_NODE){let o=a;for(let l of["::before","::after"]){let s=getComputedStyle(o,l)?.getPropertyValue("content");if(!(!s||s==="none"))if(/^"/.test(s)||/^'/.test(s))n(s.slice(1,-1));else{let d=s.match(/\\[0-9A-Fa-f]{1,6}/g);if(d)for(let f of d)try{t.add(parseInt(f.slice(1),16))}catch{}}}}}return t}async function Zie(e,t=2){try{await document.fonts.ready}catch{}let n=Array.from(e||[]).filter(Boolean);if(n.length===0)return;let r=()=>{let a=document.createElement("div");a.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let o of n){let l=document.createElement("span");l.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",l.style.fontFamily=`"${o}"`,l.style.fontWeight="700",l.style.fontStyle="italic",l.style.fontSize="32px",l.style.lineHeight="1",l.style.whiteSpace="nowrap",l.style.margin="0",l.style.padding="0",a.appendChild(l)}document.body.appendChild(a),a.offsetWidth,document.body.removeChild(a)};for(let a=0;a<Math.max(1,t);a++)r(),await new Promise(o=>requestAnimationFrame(()=>requestAnimationFrame(o)))}async function Jie(e,t,n,r={}){let a=[[e,t]],o=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],l=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],s=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],d=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;a.length;){let[f,m]=a.shift(),h=n.get(f)||UN(f);n.has(f)||n.set(f,h);let v=(()=>{let C=h.getPropertyValue("border-image"),w=h.getPropertyValue("border-image-source");return C&&C!=="none"||w&&w!=="none"})();for(let C of s){let w=h.getPropertyValue(C);w&&m.style.setProperty(C,w)}for(let C of o){let w=h.getPropertyValue(C);if(!w||w==="none")continue;let E=qN(w),$=await Promise.all(E.map(O=>KN(O,r)));$.some(O=>O&&O!=="none"&&!/^url\(undefined/.test(O))&&m.style.setProperty(C,$.join(", "))}for(let C of l){let w=h.getPropertyValue(C);!w||w==="initial"||m.style.setProperty(C,w)}if(v)for(let C of d){let w=h.getPropertyValue(C);!w||w==="initial"||m.style.setProperty(C,w)}let y=Array.from(f.children),S=Array.from(m.children).filter(C=>!(C.dataset&&C.dataset.snapdomPseudo));for(let C=0;C<Math.min(y.length,S.length);C++)a.push([y[C],S[C]])}}function Am(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function _d(){if(typeof navigator>"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),n=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),r=/applewebkit/i.test(e),a=/mobile/i.test(e),o=!/safari/i.test(e),l=r&&a&&o,s=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),d=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),f=/ipad|iphone|ipod/.test(t)&&r;return n||l||s||d||f}var qh=[];function JN(e){if(!e)return null;if(Array.isArray(e)){let[t,n]=e;return typeof t=="function"?t(n):t}if(typeof e=="object"&&"plugin"in e){let{plugin:t,options:n}=e;return typeof t=="function"?t(n):t}return typeof e=="function"?e():e}function ele(...e){let t=e.flat();for(let n of t){let r=JN(n);r&&(qh.some(a=>a&&a.name&&r.name&&a.name===r.name)||qh.push(r))}}function eT(e){return(e&&Array.isArray(e.plugins)?e.plugins:qh)||qh}async function au(e,t,n){let r=n,a=eT(t);for(let o of a){let l=o&&typeof o[e]=="function"?o[e]:null;if(!l)continue;let s=await l(t,r);typeof s<"u"&&(r=s)}return r}async function tle(e,t,n){let r=[],a=eT(t);for(let o of a){let l=o&&typeof o[e]=="function"?o[e]:null;if(!l)continue;let s=await l(t,n);typeof s<"u"&&r.push(s)}return r}function nle(e){let t=[];if(Array.isArray(e))for(let n of e){let r=JN(n);if(!r||!r.name)continue;let a=t.findIndex(o=>o&&o.name===r.name);a>=0&&t.splice(a,1),t.push(r)}for(let n of qh)n&&n.name&&!t.some(r=>r.name===n.name)&&t.push(n);return Object.freeze(t)}function rle(e,t,n=!1){return!e||e.plugins&&!n||(e.plugins=nle(t)),e}var O8=new WeakMap,vw=new Map,yw=0;function hh(){yw++}var M8=!1;function ale(e=document.documentElement){if(!M8){M8=!0;try{new MutationObserver(()=>hh()).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>hh()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let t=document.fonts;t&&(t.addEventListener?.("loadingdone",hh),t.ready?.then(()=>hh()).catch(()=>{}))}catch{}}}function ole(e,t={}){let n={},r=e.getPropertyValue("visibility");for(let o=0;o<e.length;o++){let l=e[o],s=e.getPropertyValue(l);(l==="background-image"||l==="content")&&s.includes("url(")&&!s.includes("data:")&&(s="none"),n[l]=s}let a=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let o of a)if(!n[o])try{let l=e.getPropertyValue(o);l&&(n[o]=l)}catch{}if(t.embedFonts){let o=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let l of o)if(!n[l])try{let s=e.getPropertyValue(l);s&&(n[l]=s)}catch{}}return r==="hidden"&&(n.opacity="0"),n}var R8=new WeakMap;function ile(e){let t=R8.get(e);return t||(t=Object.entries(e).sort((n,r)=>n[0]<r[0]?-1:n[0]>r[0]?1:0).map(([n,r])=>`${n}:${r}`).join(";"),R8.set(e,t),t)}function lle(e,t=null,n={}){let r=O8.get(e);if(r&&r.epoch===yw)return r.snapshot;let a=t||getComputedStyle(e),o=ole(a,n);return mle(e,a,o),O8.set(e,{epoch:yw,snapshot:o}),o}function sle(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:vw,defaultStyle:Kt.defaultStyle,baseStyle:Kt.baseStyle,image:Kt.image,resource:Kt.resource,background:Kt.background,font:Kt.font},options:t||{}}:{session:Kt.session,persist:{snapshotKeyCache:vw,defaultStyle:Kt.defaultStyle,baseStyle:Kt.baseStyle,image:Kt.image,resource:Kt.resource,background:Kt.background,font:Kt.font},options:e||t||{}}}async function Pm(e,t,n,r){if(e.tagName==="STYLE")return;let a=sle(n,r),o=a.options&&a.options.cache||"auto";if(o!=="disabled"&&ale(document.documentElement),o==="disabled"&&!a.session.__bumpedForDisabled&&(hh(),vw.clear(),a.session.__bumpedForDisabled=!0),v4.has(e.tagName?.toLowerCase())){let v=e.getAttribute?.("style");v&&t.setAttribute("style",v)}let{session:l,persist:s}=a;l.styleCache.has(e)||l.styleCache.set(e,getComputedStyle(e));let d=l.styleCache.get(e),f=lle(e,d,a.options),m=ile(f),h=s.snapshotKeyCache.get(m);if(!h){let v=e.tagName?.toLowerCase()||"div";h=pw(f,v),s.snapshotKeyCache.set(m,h)}l.styleMap.set(t,h)}function cle(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function ule(e){return e.backgroundImage&&e.backgroundImage!=="none"||e.backgroundColor&&e.backgroundColor!=="rgba(0, 0, 0, 0)"&&e.backgroundColor!=="transparent"||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0?!0:(e.overflowBlock||e.overflowY||"visible")!=="visible"}function dle(e){let t=e.parentElement;if(!t)return!1;let n=getComputedStyle(t).display||"";return n.includes("flex")||n.includes("grid")}function fle(e,t){if(e.textContent&&/\S/.test(e.textContent))return!0;let n=e.firstElementChild,r=e.lastElementChild;if(n&&n.tagName==="BR"||r&&r.tagName==="BR")return!0;let a=e.scrollHeight;if(a===0)return!1;let o=parseFloat(t.paddingTop)||0,l=parseFloat(t.paddingBottom)||0;return a>o+l}function mle(e,t,n){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let r=e.tagName&&e.tagName.toLowerCase();if(!r||r!=="div"&&r!=="section"&&r!=="article"&&r!=="main"&&r!=="aside"&&r!=="header"&&r!=="footer"&&r!=="nav"&&r!=="ol"&&r!=="ul"&&r!=="li")return;let a=t.display||"";if(a.includes("flex")||a.includes("grid")||cle(e))return;let o=t.position;if(o==="absolute"||o==="fixed"||o==="sticky"||t.transform!=="none"||ule(t)||dle(e))return;let l=t.overflowX||t.overflow||"visible",s=t.overflowY||t.overflow||"visible";if(l!=="visible"||s!=="visible")return;let d=t.clip;d&&d!=="auto"&&d!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||fle(e,t)&&(delete n.height,delete n["block-size"])}var tT=["fill","stroke","color","background-color","stop-color"],N8=new Map;function ple(e,t){let n=t+"::"+e.toLowerCase(),r=N8.get(n);if(r)return r;let a=document,o=t==="http://www.w3.org/2000/svg"?a.createElementNS(t,e):a.createElement(e),l=a.createElement("div");l.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",l.appendChild(o),a.documentElement.appendChild(l);let s=getComputedStyle(o),d={};for(let f of tT)d[f]=s.getPropertyValue(f)||"";return l.remove(),N8.set(n,d),d}function gle(e,t){if(!(e instanceof Element)||!(t instanceof Element))return;let n=e.getAttribute?.("style"),r=!!(n&&n.includes("var("));if(!r&&e.attributes?.length){let o=e.attributes;for(let l=0;l<o.length;l++){let s=o[l];if(s&&typeof s.value=="string"&&s.value.includes("var(")){r=!0;break}}}let a=null;if(r)try{a=getComputedStyle(e)}catch{}if(r){let o=e.style;if(o&&o.length)for(let l=0;l<o.length;l++){let s=o[l],d=o.getPropertyValue(s);if(!d||!d.includes("var("))continue;let f=a&&a.getPropertyValue(s);if(f)try{t.style.setProperty(s,f.trim(),o.getPropertyPriority(s))}catch{}}}if(r&&e.attributes?.length){let o=e.attributes;for(let l=0;l<o.length;l++){let s=o[l];if(!s||typeof s.value!="string"||!s.value.includes("var("))continue;let d=s.name,f=a&&a.getPropertyValue(d);if(f)try{t.style.setProperty(d,f.trim())}catch{}}}if(!r){if(!a)try{a=getComputedStyle(e)}catch{a=null}if(!a)return;let o=e.namespaceURI||"html",l=ple(e.tagName,o);for(let s of tT){let d=a.getPropertyValue(s)||"",f=l[s]||"";if(d&&d!==f)try{t.style.setProperty(s,d.trim())}catch{}}}}function AS(e,t,n){return Promise.all(e.map(r=>new Promise(a=>{function o(){Am(l=>{!(l&&typeof l.timeRemaining=="function")||l.timeRemaining()>0?t(r,a):o()},{fast:n})}o()})))}function hle(e){return e=e.trim(),!e||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e)?e:`${e}:not([data-sd-slotted])`}function vle(e,t,n=!0){return e.split(",").map(r=>r.trim()).filter(Boolean).map(r=>{if(r.startsWith(":where(")||r.startsWith("@"))return r;let a=n?hle(r):r;return`:where(${t} ${a})`}).join(", ")}function yle(e,t){return e?(e=e.replace(/:host\(([^)]+)\)/g,(n,r)=>`:where(${t}:is(${r.trim()}))`),e=e.replace(/:host\b/g,`:where(${t})`),e=e.replace(/:host-context\(([^)]+)\)/g,(n,r)=>`:where(:where(${r.trim()}) ${t})`),e=e.replace(/::slotted\(([^)]+)\)/g,(n,r)=>`:where(${t} ${r.trim()})`),e=e.replace(/(^|})(\s*)([^@}{]+){/g,(n,r,a,o)=>{let l=vle(o,t,!0);return`${r}${a}${l}{`}),e):""}function ble(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}function xle(e){let t="";try{e.querySelectorAll("style").forEach(r=>{t+=(r.textContent||"")+` `});let n=e.adoptedStyleSheets||[];for(let r of n)try{if(r&&r.cssRules)for(let a of r.cssRules)t+=a.cssText+` `}catch{}}catch{}return t}function Sle(e,t,n){if(!t)return;let r=document.createElement("style");r.setAttribute("data-sd",n),r.textContent=t,e.insertBefore(r,e.firstChild||null)}function Cle(e,t){try{let n=e.currentSrc||e.src||"";if(!n)return;t.setAttribute("src",n),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}function wle(e){let t=new Set;if(!e)return t;let n=/var\(\s*(--[A-Za-z0-9_-]+)\b/g,r;for(;r=n.exec(e);)t.add(r[1]);return t}function Ele(e,t){try{let n=getComputedStyle(e).getPropertyValue(t).trim();if(n)return n}catch{}try{let n=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(n)return n}catch{}return""}function $le(e,t,n){let r=[];for(let a of t){let o=Ele(e,a);o&&r.push(`${a}: ${o};`)}return r.length?`${n}{${r.join("")}} `:""}function Ole(e){e&&(e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-sd-slotted",""),e.querySelectorAll&&e.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted","")))}async function Mle(e,t=3){let n=()=>{try{return e.contentDocument||e.contentWindow?.document||null}catch{return null}},r=n(),a=0;for(;a<t&&(!r||!r.body&&!r.documentElement);)await new Promise(o=>setTimeout(o,0)),r=n(),a++;return r&&(r.body||r.documentElement)?r:null}function Rle(e){let t=e.getBoundingClientRect(),n=0,r=0,a=0,o=0;try{let d=getComputedStyle(e);n=parseFloat(d.borderLeftWidth)||0,r=parseFloat(d.borderRightWidth)||0,a=parseFloat(d.borderTopWidth)||0,o=parseFloat(d.borderBottomWidth)||0}catch{}let l=Math.max(0,Math.round(t.width-(n+r))),s=Math.max(0,Math.round(t.height-(a+o)));return{contentWidth:l,contentHeight:s,rect:t}}function Nle(e,t,n){let r=e.createElement("style");return r.setAttribute("data-sd-iframe-pin",""),r.textContent=`html, body {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${n}px !important;min-width: ${t}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(r),()=>{try{r.remove()}catch{}}}async function Tle(e,t,n){let r=await Mle(e,3);if(!r)throw new Error("iframe document not accessible/ready");let{contentWidth:a,contentHeight:o,rect:l}=Rle(e),s=n?.snap;if(!s||typeof s.toPng!="function")throw new Error("snapdom.toPng not available in iframe or window");let d={...n,scale:1},f=Nle(r,a,o),m;try{m=await s.toPng(r.documentElement,d)}finally{f()}m.style.display="block",m.style.width=`${a}px`,m.style.height=`${o}px`;let h=document.createElement("div");return t.nodeMap.set(h,e),Pm(e,h,t,n),h.style.overflow="hidden",h.style.display="block",h.style.width||(h.style.width=`${Math.round(l.width)}px`),h.style.height||(h.style.height=`${Math.round(l.height)}px`),h.appendChild(m),h}var uh=new Map;async function vh(e){if(Kt.resource?.has(e))return Kt.resource.get(e);if(uh.has(e))return uh.get(e);let t=(async()=>{let n=await hs(e,{as:"dataURL",silent:!0});if(!n.ok||typeof n.data!="string")throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return Kt.resource?.set(e,n.data),n.data})();uh.set(e,t);try{let n=await t;return uh.set(e,n),n}catch(n){throw uh.delete(e),n}}var Ile=/\bblob:[^)"'\s]+/g;async function T8(e){if(!e||e.indexOf("blob:")===-1)return e;let t=Array.from(new Set(e.match(Ile)||[]));if(t.length===0)return e;let n=e;for(let r of t)try{let a=await vh(r);n=n.split(r).join(a)}catch{}return n}function ry(e){return typeof e=="string"&&e.startsWith("blob:")}function _le(e){return(e||"").split(",").map(t=>t.trim()).filter(Boolean).map(t=>{let n=t.match(/^(\S+)(\s+.+)?$/);return n?{url:n[1],desc:n[2]||""}:null}).filter(Boolean)}function Ale(e){return e.map(t=>t.desc?`${t.url} ${t.desc.trim()}`:t.url).join(", ")}async function Ple(e){if(!e)return;let t=e.querySelectorAll?e.querySelectorAll("img"):[];for(let l of t)try{let s=l.getAttribute("src")||l.currentSrc||"";if(ry(s)){let f=await vh(s);l.setAttribute("src",f)}let d=l.getAttribute("srcset");if(d&&d.includes("blob:")){let f=_le(d),m=!1;for(let h of f)if(ry(h.url))try{h.url=await vh(h.url),m=!0}catch{}m&&l.setAttribute("srcset",Ale(f))}}catch{}let n=e.querySelectorAll?e.querySelectorAll("image"):[];for(let l of n)try{let s="http://www.w3.org/1999/xlink",d=l.getAttribute("href")||l.getAttributeNS?.(s,"href");if(ry(d)){let f=await vh(d);l.setAttribute("href",f),l.removeAttributeNS?.(s,"href")}}catch{}let r=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(let l of r)try{let s=l.getAttribute("style");if(s&&s.includes("blob:")){let d=await T8(s);l.setAttribute("style",d)}}catch{}let a=e.querySelectorAll?e.querySelectorAll("style"):[];for(let l of a)try{let s=l.textContent||"";s.includes("blob:")&&(l.textContent=await T8(s))}catch{}let o=["poster"];for(let l of o){let s=e.querySelectorAll?e.querySelectorAll(`[${l}^='blob:']`):[];for(let d of s)try{let f=d.getAttribute(l);ry(f)&&d.setAttribute(l,await vh(f))}catch{}}}async function My(e,t,n){if(!e)throw new Error("Invalid node");let r=new Set,a=null,o=null;if(e.nodeType===Node.ELEMENT_NODE){let f=(e.localName||e.tagName||"").toLowerCase();if(e.id==="snapdom-sandbox"||e.hasAttribute("data-snapdom-sandbox")||bie.has(f))return null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if(e.getAttribute("data-capture")==="exclude"){if(n.excludeMode==="hide"){let f=document.createElement("div"),m=e.getBoundingClientRect();return f.style.cssText=`display:inline-block;width:${m.width}px;height:${m.height}px;visibility:hidden;`,f}else if(n.excludeMode==="remove")return null}if(n.exclude&&Array.isArray(n.exclude))for(let f of n.exclude)try{if(e.matches?.(f)){if(n.excludeMode==="hide"){let m=document.createElement("div"),h=e.getBoundingClientRect();return m.style.cssText=`display:inline-block;width:${h.width}px;height:${h.height}px;visibility:hidden;`,m}else if(n.excludeMode==="remove")return null}}catch(m){console.warn(`Invalid selector in exclude option: ${f}`,m)}if(typeof n.filter=="function")try{if(!n.filter(e)){if(n.filterMode==="hide"){let f=document.createElement("div"),m=e.getBoundingClientRect();return f.style.cssText=`display:inline-block;width:${m.width}px;height:${m.height}px;visibility:hidden;`,f}else if(n.filterMode==="remove")return null}}catch(f){console.warn("Error in filter function:",f)}if(e.tagName==="IFRAME"){let f=!1;try{f=!!(e.contentDocument||e.contentWindow?.document)}catch{f=!1}if(f)try{return await Tle(e,t,n)}catch(m){console.warn("[SnapDOM] iframe rasterization failed, fallback:",m)}if(n.placeholders){let m=document.createElement("div");return m.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,Pm(e,m,t,n),m}else{let m=e.getBoundingClientRect(),h=document.createElement("div");return h.style.cssText=`display:inline-block;width:${m.width}px;height:${m.height}px;visibility:hidden;`,Pm(e,h,t,n),h}}if(e.getAttribute("data-capture")==="placeholder"){let f=e.cloneNode(!1);t.nodeMap.set(f,e),Pm(e,f,t,n);let m=document.createElement("div");return m.textContent=e.getAttribute("data-placeholder-text")||"",m.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",f.appendChild(m),f}if(e.tagName==="CANVAS"){let f="";try{let h=e.getContext("2d",{willReadFrequently:!0});try{h&&h.getImageData(0,0,1,1)}catch{}if(await new Promise(v=>requestAnimationFrame(v)),f=e.toDataURL("image/png"),!f||f==="data:,"){try{h&&h.getImageData(0,0,1,1)}catch{}if(await new Promise(v=>requestAnimationFrame(v)),f=e.toDataURL("image/png"),!f||f==="data:,"){let v=document.createElement("canvas");v.width=e.width,v.height=e.height;let y=v.getContext("2d");y&&(y.drawImage(e,0,0),f=v.toDataURL("image/png"))}}}catch{}let m=document.createElement("img");try{m.decoding="sync",m.loading="eager"}catch{}f&&(m.src=f),m.width=e.width,m.height=e.height;try{let h=getComputedStyle(e);h.width&&(m.style.width=h.width),h.height&&(m.style.height=h.height)}catch{}return t.nodeMap.set(m,e),Pm(e,m,t,n),m}let l;try{if(l=e.cloneNode(!1),gle(e,l),t.nodeMap.set(l,e),e.tagName==="IMG"){Cle(e,l);try{let f=e.getBoundingClientRect(),m=Math.round(f.width||0),h=Math.round(f.height||0);if(!m||!h){let v=window.getComputedStyle(e),y=parseFloat(v.width)||0,S=parseFloat(v.height)||0,C=parseInt(e.getAttribute("width")||"",10)||0,w=parseInt(e.getAttribute("height")||"",10)||0,E=e.width||e.naturalWidth||0,$=e.height||e.naturalHeight||0;m=Math.round(m||y||C||E||0),h=Math.round(h||S||w||$||0)}m&&(l.dataset.snapdomWidth=String(m)),h&&(l.dataset.snapdomHeight=String(h))}catch{}try{let f=e.getAttribute("style")||"",m=window.getComputedStyle(e),h=w=>{let E=f.match(new RegExp(`${w}\\s*:\\s*([^;]+)`,"i")),$=E?E[1].trim():m.getPropertyValue(w);return/%|auto/i.test(String($||""))},v=parseInt(l.dataset.snapdomWidth||"0",10),y=parseInt(l.dataset.snapdomHeight||"0",10),S=h("width")||!v,C=h("height")||!y;S&&v&&(l.style.width=`${v}px`),C&&y&&(l.style.height=`${y}px`),v&&(l.style.minWidth=`${v}px`),y&&(l.style.minHeight=`${y}px`)}catch{}}}catch(f){throw console.error("[Snapdom] Failed to clone node:",e,f),f}if(e instanceof HTMLTextAreaElement){let f=e.getBoundingClientRect();l.style.width=`${f.width}px`,l.style.height=`${f.height}px`}if(e instanceof HTMLInputElement&&(l.value=e.value,l.setAttribute("value",e.value),e.checked!==void 0&&(l.checked=e.checked,e.checked&&l.setAttribute("checked",""),e.indeterminate&&(l.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(a=e.value),e instanceof HTMLTextAreaElement&&(o=e.value),Pm(e,l,t,n),e.shadowRoot){let f=function($,O){if($.nodeType===Node.ELEMENT_NODE&&$.tagName==="STYLE")return O(null);My($,t,n).then(N=>{O(N||null)}).catch(()=>{O(null)})};try{let $=e.shadowRoot.querySelectorAll("slot");for(let O of $){let N=[];try{N=O.assignedNodes?.({flatten:!0})||O.assignedNodes?.()||[]}catch{N=O.assignedNodes?.()||[]}for(let I of N)r.add(I)}}catch{}let m=ble(t),h=`[data-sd="${m}"]`;try{l.setAttribute("data-sd",m)}catch{}let v=xle(e.shadowRoot),y=yle(v,h),S=wle(v),C=$le(e,S,h);Sle(l,C+y,m);let w=document.createDocumentFragment(),E=await AS(Array.from(e.shadowRoot.childNodes),f,n.fast);w.append(...E.filter($=>!!$)),l.appendChild(w)}if(e.tagName==="SLOT"){let f=function(S,C){My(S,t,n).then(w=>{w&&Ole(w),C(w||null)}).catch(()=>{C(null)})},m=e.assignedNodes?.({flatten:!0})||[],h=m.length>0?m:Array.from(e.childNodes),v=document.createDocumentFragment(),y=await AS(Array.from(h),f,n.fast);return v.append(...y.filter(S=>!!S)),v}function s(f,m){if(r.has(f))return m(null);My(f,t,n).then(h=>{m(h||null)}).catch(()=>{m(null)})}let d=await AS(Array.from(e.childNodes),s,n.fast);if(l.append(...d.filter(f=>!!f)),a!==null&&l instanceof HTMLSelectElement){l.value=a;for(let f of l.options)f.value===a?f.setAttribute("selected",""):f.removeAttribute("selected")}return o!==null&&l instanceof HTMLTextAreaElement&&(l.textContent=o),l}function zle(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}function Dle(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function I8(e,t=!1){let n="",r=Math.max(1,e);for(;r>0;)r--,n=String.fromCharCode(97+r%26)+n,r=Math.floor(r/26);return t?n.toUpperCase():n}function _8(e,t=!0){let n=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],r=Math.max(1,Math.min(3999,e)),a="";for(let[o,l]of n)for(;r>=o;)a+=l,r-=o;return t?a:a.toLowerCase()}function A8(e,t){switch((t||"decimal").toLowerCase()){case"decimal":return String(Math.max(0,e));case"decimal-leading-zero":return(e<10?"0":"")+String(Math.max(0,e));case"lower-alpha":return I8(e,!1);case"upper-alpha":return I8(e,!0);case"lower-roman":return _8(e,!1);case"upper-roman":return _8(e,!0);default:return String(Math.max(0,e))}}function jle(e){let t=()=>Kt?.session?.__counterEpoch??0,n=t(),r=new WeakMap,a=e instanceof Document?e.documentElement:e,o=v=>v&&v.tagName==="LI",l=v=>{let y=0,S=v?.parentElement;if(!S)return 0;for(let C of S.children){if(C===v)break;C.tagName==="LI"&&y++}return y},s=v=>{let y=new Map;for(let[S,C]of v)y.set(S,C.slice());return y},d=(v,y,S)=>{let C=s(v),w;try{w=S.style?.counterReset||getComputedStyle(S).counterReset}catch{}if(w&&w!=="none")for(let $ of w.split(",")){let O=$.trim().split(/\s+/),N=O[0],I=Number.isFinite(Number(O[1]))?Number(O[1]):0;if(!N)continue;let R=y.get(N);if(R&&R.length){let _=R.slice();_.push(I),C.set(N,_)}else C.set(N,[I])}let E;try{E=S.style?.counterIncrement||getComputedStyle(S).counterIncrement}catch{}if(E&&E!=="none")for(let $ of E.split(",")){let O=$.trim().split(/\s+/),N=O[0],I=Number.isFinite(Number(O[1]))?Number(O[1]):1;if(!N)continue;let R=C.get(N)||[];R.length===0&&R.push(0),R[R.length-1]+=I,C.set(N,R)}try{if(getComputedStyle(S).display==="list-item"&&o(S)){let $=S.parentElement,O=1;if($&&$.tagName==="OL"){let I=$.getAttribute("start"),R=Number.isFinite(Number(I))?Number(I):1,_=l(S),z=S.getAttribute("value");O=Number.isFinite(Number(z))?Number(z):R+_}else O=1+l(S);let N=C.get("list-item")||[];N.length===0&&N.push(0),N[N.length-1]=O,C.set("list-item",N)}}catch{}return C},f=(v,y,S)=>{let C=d(S,y,v);r.set(v,C);let w=C;for(let E of v.children)w=f(E,C,w);return C},m=new Map;f(a,m,m);function h(){let v=t();if(v!==n){n=v;let y=new Map;f(a,y,y)}}return{get(v,y){h();let S=r.get(v)?.get(y);return S&&S.length?S[S.length-1]:0},getStack(v,y){h();let S=r.get(v)?.get(y);return S?S.slice():[]}}}function kle(e,t,n){if(!e||e==="none")return e;try{let r=/\b(counter|counters)\s*\(([^)]+)\)/g,a=e.replace(r,(o,l,s)=>{let d=String(s).split(",").map(f=>f.trim());if(l==="counter"){let f=d[0]?.replace(/^["']|["']$/g,""),m=(d[1]||"decimal").toLowerCase(),h=n.get(t,f);return A8(h,m)}else{let f=d[0]?.replace(/^["']|["']$/g,""),m=d[1]?.replace(/^["']|["']$/g,"")??"",h=(d[2]||"decimal").toLowerCase(),v=n.getStack(t,f);return v.length?v.map(y=>A8(y,h)).join(m):""}});return Dle(a)}catch{return"- "}}var _m=new WeakMap,P8=300;function Lle(e,t){let n=nT(e);return t?(t.__pseudoPreflightFp!==n&&(t.__pseudoPreflight=D8(e),t.__pseudoPreflightFp=n),!!t.__pseudoPreflight):D8(e)}function bw(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function nT(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),n=`n:${t.length}|`,r=0;for(let o=0;o<t.length;o++){let l=t[o];if(l.tagName==="STYLE"){let s=l.textContent?l.textContent.length:0;n+=`S${s}|`;let d=l.sheet,f=d?bw(d):null;f&&(r+=f.length)}else{let s=l.getAttribute("href")||"",d=l.getAttribute("media")||"all";n+=`L${s}|m:${d}|`;let f=l.sheet,m=f?bw(f):null;m&&(r+=m.length)}}let a=e.adoptedStyleSheets;return n+=`ass:${Array.isArray(a)?a.length:0}|tr:${r}`,n}function z8(e,t,n){let r=bw(e);if(!r)return!1;for(let a=0;a<r.length;a++){if(n.budget<=0)return!1;let o=r[a],l=o&&o.cssText?o.cssText:"";n.budget--;for(let s of t)if(l.includes(s))return!0;if(o&&o.cssRules&&o.cssRules.length)for(let s=0;s<o.cssRules.length&&n.budget>0;s++){let d=o.cssRules[s],f=d&&d.cssText?d.cssText:"";n.budget--;for(let m of t)if(f.includes(m))return!0}if(n.budget<=0)return!1}return!1}function D8(e=document){let t=nT(e),n=_m.get(e);if(n&&n.fingerprint===t)return n.result;let r=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],a=e.querySelectorAll("style");for(let l=0;l<a.length;l++){let s=a[l].textContent||"";for(let d of r)if(s.includes(d))return _m.set(e,{fingerprint:t,result:!0}),!0}let o=e.adoptedStyleSheets;if(Array.isArray(o)&&o.length){let l={budget:P8};try{for(let s of o)if(z8(s,r,l))return _m.set(e,{fingerprint:t,result:!0}),!0}catch{}}{let l=e.querySelectorAll('style,link[rel~="stylesheet"]'),s={budget:P8};for(let d=0;d<l.length&&s.budget>0;d++){let f=l[d],m=null;if(f.tagName,m=f.sheet||null,m&&z8(m,r,s))return _m.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(_m.set(e,{fingerprint:t,result:!0}),!0):(_m.set(e,{fingerprint:t,result:!1}),!1)}var zm=new WeakMap,j8=-1;function Ble(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function Fle(e){if(!e)return"";let t=[],n=/"([^"]*)"/g,r;for(;r=n.exec(e);)t.push(r[1]);return t.length?t.join(""):Ble(e)}function xw(e,t){let n=e.parentElement,r=n?zm.get(n):null;return r?{get(a,o){let l=t.get(a,o),s=r.get(o);return typeof s=="number"?Math.max(l,s):l},getStack(a,o){let l=t.getStack(a,o);if(!l.length)return l;let s=r.get(o);if(typeof s=="number"){let d=l.slice();return d[d.length-1]=Math.max(d[d.length-1],s),d}return l}}:t}function Sw(e,t,n){let r=new Map;function a(d){let f=[];if(!d||d==="none")return f;for(let m of String(d).split(",")){let h=m.trim().split(/\s+/),v=h[0],y=Number.isFinite(Number(h[1]))?Number(h[1]):void 0;v&&f.push({name:v,num:y})}return f}let o=a(t?.counterReset),l=a(t?.counterIncrement);function s(d){if(r.has(d))return r.get(d).slice();let f=n.getStack(e,d);f=f.length?f.slice():[];let m=o.find(v=>v.name===d);if(m){let v=Number.isFinite(m.num)?m.num:0;f=f.length?[...f,v]:[v]}let h=l.find(v=>v.name===d);if(h){let v=Number.isFinite(h.num)?h.num:1;f.length===0&&(f=[0]),f[f.length-1]+=v}return r.set(d,f.slice()),f}return{get(d,f){let m=s(f);return m.length?m[m.length-1]:0},getStack(d,f){return s(f)},__incs:l}}function Hle(e,t,n){let r;try{r=getComputedStyle(e,t)}catch{}let a=r?.content;if(!a||a==="none"||a==="normal")return{text:"",incs:[]};let o=xw(e,n),l=Sw(e,r,o),s=zle(a)?kle(a,e,l):a;return{text:Fle(s),incs:l.__incs||[]}}async function rT(e,t,n,r){if(!(e instanceof Element)||!(t instanceof Element))return;let a=e.ownerDocument||document;if(!Lle(a,n))return;let o=Kt?.session?.__counterEpoch??0;if(j8!==o&&(zm=new WeakMap,n&&(n.__counterCtx=null),j8=o),!n.__counterCtx)try{n.__counterCtx=jle(e.ownerDocument||document)}catch{}let l=n.__counterCtx;for(let f of["::before","::after","::first-letter"])try{let m=UN(e,f);if(!m||m.content==="none"&&m.backgroundImage==="none"&&m.backgroundColor==="transparent"&&(m.borderStyle==="none"||parseFloat(m.borderWidth)===0)&&(!m.transform||m.transform==="none")&&m.display==="inline")continue;if(f==="::first-letter"){let G=getComputedStyle(e);if(!(m.color!==G.color||m.fontSize!==G.fontSize||m.fontWeight!==G.fontWeight))continue;let X=Array.from(t.childNodes).find(de=>de.nodeType===Node.TEXT_NODE&&de.textContent?.trim().length>0);if(!X)continue;let P=X.textContent,K=P.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0],J=P.slice(K?.length||0);if(!K||/[\uD800-\uDFFF]/.test(K))continue;let j=document.createElement("span");j.textContent=K,j.dataset.snapdomPseudo="::first-letter";let Y=C8(m),ne=pw(Y,"span");n.styleMap.set(j,ne);let se=document.createTextNode(J);t.replaceChild(se,X),t.insertBefore(j,se);continue}let h=m.content??"",v=h===""||h==="none"||h==="normal",{text:y,incs:S}=Hle(e,f,l),C=m.backgroundImage,w=m.backgroundColor,E=m.fontFamily,$=parseInt(m.fontSize)||32,O=parseInt(m.fontWeight)||!1,N=m.color||"#000",I=m.borderStyle,R=parseFloat(m.borderWidth),_=m.transform,z=Zs(E),D=!v&&y!=="",L=C&&C!=="none",B=w&&w!=="transparent"&&w!=="rgba(0, 0, 0, 0)",F=I&&I!=="none"&&R>0,H=_&&_!=="none";if(!(D||L||B||F||H)){if(S&&S.length&&e.parentElement){let G=zm.get(e.parentElement)||new Map;for(let{name:X}of S){if(!X)continue;let P=xw(e,l),K=Sw(e,getComputedStyle(e,f),P).get(e,X);G.set(X,K)}zm.set(e.parentElement,G)}continue}let k=document.createElement("span");k.dataset.snapdomPseudo=f,k.style.pointerEvents="none";let q=C8(m),V=pw(q,"span");if(n.styleMap.set(k,V),z&&y&&y.length===1){let{dataUrl:G,width:X,height:P}=await Die(y,E,O,$,N),K=document.createElement("img");K.src=G,K.style=`height:${$}px;width:${X/P*$}px;object-fit:contain;`,k.appendChild(K),t.dataset.snapdomHasIcon="true"}else if(y&&y.startsWith("url(")){let G=h4(y);if(G?.trim())try{let X=document.createElement("img"),P=await hs(nb(G),{as:"dataURL",useProxy:r.useProxy});X.src=P.data,X.style=`width:${$}px;height:auto;object-fit:contain;`,k.appendChild(X)}catch(X){console.error(`[snapdom] Error in pseudo ${f} for`,e,X)}}else!z&&D&&(k.textContent=y);k.style.backgroundImage="none","maskImage"in k.style&&(k.style.maskImage="none"),"webkitMaskImage"in k.style&&(k.style.webkitMaskImage="none");try{k.style.backgroundRepeat=m.backgroundRepeat,k.style.backgroundSize=m.backgroundSize,m.backgroundPositionX&&m.backgroundPositionY?(k.style.backgroundPositionX=m.backgroundPositionX,k.style.backgroundPositionY=m.backgroundPositionY):k.style.backgroundPosition=m.backgroundPosition,k.style.backgroundOrigin=m.backgroundOrigin,k.style.backgroundClip=m.backgroundClip,k.style.backgroundAttachment=m.backgroundAttachment,k.style.backgroundBlendMode=m.backgroundBlendMode}catch{}if(L)try{let G=qN(C),X=await Promise.all(G.map(KN));k.style.backgroundImage=X.join(", ")}catch(G){console.warn(`[snapdom] Failed to inline background-image for ${f}`,G)}B&&(k.style.backgroundColor=w);let W=k.childNodes.length>0||k.textContent?.trim()!==""||L||B||F||H;if(S&&S.length&&e.parentElement){let G=zm.get(e.parentElement)||new Map,X=xw(e,l),P=Sw(e,getComputedStyle(e,f),X);for(let{name:K}of S){if(!K)continue;let J=P.get(e,K);G.set(K,J)}zm.set(e.parentElement,G)}if(!W)continue;f==="::before"?t.insertBefore(k,t.firstChild):t.appendChild(k)}catch(m){console.warn(`[snapdom] Failed to capture ${f} for`,e,m)}let s=Array.from(e.children),d=Array.from(t.children).filter(f=>!f.dataset.snapdomPseudo);for(let f=0;f<Math.min(s.length,d.length);f++)await rT(s[f],d[f],n,r)}function Vle(e,t){if(!e||!(e instanceof Element))return;let n=e.ownerDocument||document,r=n,a=e instanceof SVGSVGElement?[e]:Array.from(e.querySelectorAll("svg"));if(a.length===0)return;let o=/url\(\s*#([^)]+)\)/g,l=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],s=N=>window.CSS&&CSS.escape?CSS.escape(N):N.replace(/[^a-zA-Z0-9_-]/g,"\\$&"),d="http://www.w3.org/1999/xlink",f=N=>{if(!N||!N.getAttribute)return null;let I=N.getAttribute("href")||N.getAttribute("xlink:href")||(typeof N.getAttributeNS=="function"?N.getAttributeNS(d,"href"):null);if(I)return I;let R=N.attributes;if(!R)return null;for(let _=0;_<R.length;_++){let z=R[_];if(!z||!z.name)continue;if(z.name==="href")return z.value;let D=z.name.indexOf(":");if(D!==-1&&z.name.slice(D+1)==="href")return z.value}return null},m=new Set(Array.from(e.querySelectorAll("[id]")).map(N=>N.id)),h=new Set,v=!1,y=(N,I=null)=>{if(!N)return;o.lastIndex=0;let R;for(;R=o.exec(N);){v=!0;let _=(R[1]||"").trim();_&&(m.has(_)||(h.add(_),I&&!I.has(_)&&I.add(_)))}},S=N=>{let I=N.querySelectorAll("use");for(let _ of I){let z=f(_);if(!z||!z.startsWith("#"))continue;v=!0;let D=z.slice(1).trim();D&&!m.has(D)&&h.add(D)}let R=N.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let _ of R){y(_.getAttribute("style")||"");for(let z of l)y(_.getAttribute(z))}};for(let N of a)S(N);if(!v)return;let C=e.querySelector("svg.inline-defs-container");C||(C=n.createElementNS("http://www.w3.org/2000/svg","svg"),C.classList.add("inline-defs-container"),C.setAttribute("aria-hidden","true"),C.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(C,e.firstChild||null));let w=C.querySelector("defs")||null,E=N=>{if(!N||m.has(N))return null;let I=s(N),R=_=>{let z=r.querySelector(_);return z&&!e.contains(z)?z:null};return R(`svg defs > *#${I}`)||R(`svg > symbol#${I}`)||R(`*#${I}`)};if(!h.size)return;let $=new Set(h),O=new Set;for(;$.size;){let N=$.values().next().value;if($.delete(N),!N||m.has(N)||O.has(N))continue;let I=E(N);if(!I){O.add(N);continue}w||(w=n.createElementNS("http://www.w3.org/2000/svg","defs"),C.appendChild(w));let R=I.cloneNode(!0);R.id||R.setAttribute("id",N),w.appendChild(R),O.add(N),m.add(N);let _=[R,...R.querySelectorAll("*")];for(let z of _){let D=f(z);if(D&&D.startsWith("#")){let B=D.slice(1).trim();B&&!m.has(B)&&!O.has(B)&&$.add(B)}let L=z.getAttribute?.("style")||"";L&&y(L,$);for(let B of l){let F=z.getAttribute?.(B);F&&y(F,$)}}}}function Kle(e,t){if(!e||!t)return;let n=e.scrollTop||0;if(!n)return;getComputedStyle(t).position==="static"&&(t.style.position="relative");let r=e.getBoundingClientRect(),a=e.clientHeight,o="data-snap-ph",l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;l.nextNode();){let s=l.currentNode,d=getComputedStyle(s),f=d.position;if(f!=="sticky"&&f!=="-webkit-sticky")continue;let m=k8(d.top),h=k8(d.bottom);if(m==null&&h==null)continue;let v=Wle(s,e),y=Ule(t,v,o);if(!y)continue;let S=s.getBoundingClientRect(),C=S.width,w=S.height,E=S.left-r.left;if(!(C>0&&w>0)||!Number.isFinite(E))continue;let $=m!=null?m+n:n+(a-w-h);if(!Number.isFinite($))continue;let O=Number.parseInt(d.zIndex,10),N=Number.isFinite(O),I=N?Math.max(O,1)+1:2,R=N?O-1:0,_=y.cloneNode(!1);_.setAttribute(o,"1"),_.style.position="sticky",_.style.left=`${E}px`,_.style.top=`${$}px`,_.style.width=`${C}px`,_.style.height=`${w}px`,_.style.visibility="hidden",_.style.zIndex=String(R),_.style.overflow="hidden",_.style.background="transparent",_.style.boxShadow="none",_.style.filter="none",y.parentElement?.insertBefore(_,y),y.style.position="absolute",y.style.left=`${E}px`,y.style.top=`${$}px`,y.style.bottom="auto",y.style.zIndex=String(I),y.style.pointerEvents="none"}}function k8(e){if(!e||e==="auto")return null;let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}function Wle(e,t){let n=[];for(let r=e;r&&r!==t;){let a=r.parentElement;if(!a)break;n.push(Array.prototype.indexOf.call(a.children,r)),r=a}return n.reverse()}function Ule(e,t,n){let r=e;for(let a=0;a<t.length;a++)if(r=qle(r,n)[t[a]],!r)return null;return r instanceof HTMLElement?r:null}function qle(e,t){let n=[],r=e.children;for(let a=0;a<r.length;a++){let o=r[a];o.hasAttribute(t)||n.push(o)}return n}function Gle(e){let t=getComputedStyle(e),n=t.outlineStyle,r=t.outlineWidth,a=t.borderStyle,o=t.borderWidth,l=n!=="none"&&parseFloat(r)>0,s=a==="none"||parseFloat(o)===0;l&&s&&(e.style.border=`${r} solid transparent`)}async function Xle(e,t={}){let n={styleMap:Kt.session.styleMap,styleCache:Kt.session.styleCache,nodeMap:Kt.session.nodeMap},r,a="",o="";Gle(e);try{Vle(e)}catch(d){console.warn("inlineExternal defs or symbol failed:",d)}try{r=await My(e,n,t,e)}catch(d){throw console.warn("deepClone failed:",d),d}try{await rT(e,r,n,t)}catch(d){console.warn("inlinePseudoElements failed:",d)}await Ple(r);try{let d=r.querySelectorAll("style[data-sd]");for(let f of d)o+=f.textContent||"",f.remove()}catch{}let l=Oie(n.styleMap);a=Array.from(l.entries()).map(([d,f])=>`.${f}{${d}}`).join(""),a=o+a;for(let[d,f]of n.styleMap.entries()){if(d.tagName==="STYLE")continue;if(d.getRootNode&&d.getRootNode()instanceof ShadowRoot){d.setAttribute("style",f.replace(/;/g,"; "));continue}let m=l.get(f);m&&d.classList.add(m);let h=d.style?.backgroundImage,v=d.dataset?.snapdomHasIcon;h&&h!=="none"&&(d.style.backgroundImage=h),v&&(d.style.verticalAlign="middle",d.style.display="inline")}for(let[d,f]of n.nodeMap.entries()){let m=f.scrollLeft,h=f.scrollTop;if((m||h)&&d instanceof HTMLElement){d.style.overflow="hidden",d.style.scrollbarWidth="none",d.style.msOverflowStyle="none";let v=document.createElement("div");for(v.style.transform=`translate(${-m}px, ${-h}px)`,v.style.willChange="transform",v.style.display="inline-block",v.style.width="100%";d.firstChild;)v.appendChild(d.firstChild);d.appendChild(v)}}let s=r instanceof HTMLElement&&r.firstElementChild instanceof HTMLElement?r.firstElementChild:r;if(Kle(e,s),e===n.nodeMap.get(r)){let d=n.styleCache.get(e)||window.getComputedStyle(e);n.styleCache.set(e,d);let f=fie(d.transform);r.style.margin="0",r.style.top="auto",r.style.left="auto",r.style.right="auto",r.style.bottom="auto",r.style.animation="none",r.style.transition="none",r.style.willChange="auto",r.style.float="none",r.style.clear="none",r.style.transform=f||""}for(let[d,f]of n.nodeMap.entries())f.tagName==="PRE"&&(d.style.marginTop="0",d.style.marginBlockStart="0");return{clone:r,classCSS:a,styleCache:n.styleCache}}function Yle(e){let t=parseInt(e.dataset?.snapdomWidth||"",10)||0,n=parseInt(e.dataset?.snapdomHeight||"",10)||0,r=parseInt(e.getAttribute("width")||"",10)||0,a=parseInt(e.getAttribute("height")||"",10)||0,o=parseFloat(e.style?.width||"")||0,l=parseFloat(e.style?.height||"")||0,s=t||o||r||e.width||e.naturalWidth||100,d=n||l||a||e.height||e.naturalHeight||100;return{width:s,height:d}}async function Qle(e,t={}){let n=Array.from(e.querySelectorAll("img")),r=async a=>{if(!a.getAttribute("src")){let m=a.currentSrc||a.src||"";m&&a.setAttribute("src",m)}a.removeAttribute("srcset"),a.removeAttribute("sizes");let o=a.src||"";if(!o)return;let l=await hs(o,{as:"dataURL",useProxy:t.useProxy});if(l.ok&&typeof l.data=="string"&&l.data.startsWith("data:")){a.src=l.data,a.width||(a.width=a.naturalWidth||100),a.height||(a.height=a.naturalHeight||100);return}let{width:s,height:d}=Yle(a),{fallbackURL:f}=t||{};if(f)try{let m=typeof f=="function"?await f({width:s,height:d,src:o,element:a}):f;if(m){let h=await hs(m,{as:"dataURL",useProxy:t.useProxy});a.src=h.data,a.width||(a.width=s),a.height||(a.height=d);return}}catch{}if(t.placeholders!==!1){let m=document.createElement("div");m.style.cssText=[`width:${s}px`,`height:${d}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${d}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),m.textContent="img",a.replaceWith(m)}else{let m=document.createElement("div");m.style.cssText=`display:inline-block;width:${s}px;height:${d}px;visibility:hidden;`,a.replaceWith(m)}};for(let a=0;a<n.length;a+=4){let o=n.slice(a,a+4).map(r);await Promise.allSettled(o)}}function Zle(e){if(!e)return()=>{};let t=Jle(e);if(t<=0)return()=>{};if(!nse(e))return()=>{};let n=getComputedStyle(e),r=Math.round(ese(n)*t+tse(n)),a=e.textContent??"",o=a;if(e.scrollHeight<=r+.5)return()=>{};let l=0,s=a.length,d=-1;for(;l<=s;){let f=l+s>>1;e.textContent=a.slice(0,f)+"…",e.scrollHeight<=r+.5?(d=f,l=f+1):s=f-1}return e.textContent=(d>=0?a.slice(0,d):"")+"…",()=>{e.textContent=o}}function Jle(e){let t=getComputedStyle(e),n=t.getPropertyValue("-webkit-line-clamp")||t.getPropertyValue("line-clamp");n=(n||"").trim();let r=parseInt(n,10);return Number.isFinite(r)&&r>0?r:0}function ese(e){let t=(e.lineHeight||"").trim(),n=parseFloat(e.fontSize)||16;return!t||t==="normal"?Math.round(n*1.2):t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*n):t.endsWith("%")?Math.round(parseFloat(t)/100*n):Math.round(n*1.2)}function tse(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}function nse(e){return e.childElementCount>0?!1:Array.from(e.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)}function rse(e,t){if(!e||!t||!t.style)return;let n=getComputedStyle(e);try{t.style.boxShadow="none"}catch{}try{t.style.textShadow="none"}catch{}try{t.style.outline="none"}catch{}let r=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=r.length?r:"none"}catch{}}function ase(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(;t.nextNode();)n.push(t.currentNode);for(let r of n)r.remove()}function ose(e,t={}){let{stripFrameworkDirectives:n=!0}=t,r=new Set(["xml","xlink"]),a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;a.nextNode();){let o=a.currentNode;for(let l of Array.from(o.attributes)){let s=l.name;if(s.includes("@")){o.removeAttribute(s);continue}if(s.includes(":")){let d=s.split(":",1)[0];if(!r.has(d)){o.removeAttribute(s);continue}}if(n&&(s.startsWith("x-")||s.startsWith("v-")||s.startsWith(":")||s.startsWith("on:")||s.startsWith("bind:")||s.startsWith("let:")||s.startsWith("class:"))){o.removeAttribute(s);continue}}}}function ise(e,t={}){e&&(ose(e,t),ase(e))}function lse(e){try{let t=e.getAttribute?.("style")||"";return/\b(height|width|block-size|inline-size)\s*:/.test(t)}catch{return!1}}function sse(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function cse(e,t){if(!(e instanceof Element)||lse(e)||sse(e))return!1;let n=t.position;if(n==="absolute"||n==="fixed"||n==="sticky")return!1;let r=t.display||"";return!(r.includes("flex")||r.includes("grid")||r.startsWith("table")||t.transform&&t.transform!=="none")}function use(e,t,n=new Map){function r(a,o){if(!(a instanceof Element)||!(o instanceof Element))return;let l=a.childElementCount>o.childElementCount,s=n.get(a)||getComputedStyle(a);if(n.has(a)||n.set(a,s),l&&cse(a,s)){o.style.height||(o.style.height="auto"),o.style.width||(o.style.width="auto"),o.style.removeProperty("block-size"),o.style.removeProperty("inline-size"),o.style.minHeight||(o.style.minHeight="0"),o.style.minWidth||(o.style.minWidth="0"),o.style.maxHeight||(o.style.maxHeight="none"),o.style.maxWidth||(o.style.maxWidth="none");let m=s.overflowY||s.overflowBlock||"visible",h=s.overflowX||s.overflowInline||"visible";(m!=="visible"||h!=="visible")&&(o.style.overflow="visible")}let d=Array.from(a.children),f=Array.from(o.children);for(let m=0;m<Math.min(d.length,f.length);m++)r(d[m],f[m])}r(e,t)}function dse(e){let t=getComputedStyle(e);return!(t.display==="none"||t.position==="absolute"||t.position==="fixed"||t.position==="sticky"||(t.cssFloat||t.float||"none")!=="none"||t.transform&&t.transform!=="none")}function fse(e,t){if(!(e instanceof Element))return!1;if(e.getAttribute("data-capture")==="exclude"&&t?.excludeMode==="remove")return!0;if(Array.isArray(t?.exclude))for(let n of t.exclude)try{if(e.matches(n))return t.excludeMode==="remove"}catch{}return!1}function mse(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),a=1/0,o=-1/0,l=!1,s=Array.from(e.children);for(let y of s){if(fse(y,t)||!dse(y))continue;let S=y.getBoundingClientRect(),C=S.top-r.top,w=S.bottom-r.top;w<=C||(C<a&&(a=C),w>o&&(o=w),l=!0)}let d=l?Math.max(0,o-a):0,f=parseFloat(n.borderTopWidth)||0,m=parseFloat(n.borderBottomWidth)||0,h=parseFloat(n.paddingTop)||0,v=parseFloat(n.paddingBottom)||0;return f+m+h+v+d}var Rn=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e;function pse(e){let t=e.boxShadow||"";if(!t||t==="none")return{top:0,right:0,bottom:0,left:0};let n=t.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(s=>s.trim()),r=0,a=0,o=0,l=0;for(let s of n){let d=s.match(/-?\d+(\.\d+)?px/g)?.map(C=>parseFloat(C))||[];if(d.length<2)continue;let[f,m,h=0,v=0]=d,y=Math.abs(f)+h+v,S=Math.abs(m)+h+v;a=Math.max(a,y+Math.max(f,0)),l=Math.max(l,y+Math.max(-f,0)),o=Math.max(o,S+Math.max(m,0)),r=Math.max(r,S+Math.max(-m,0))}return{top:Math.ceil(r),right:Math.ceil(a),bottom:Math.ceil(o),left:Math.ceil(l)}}function gse(e){let t=(e.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),n=t?Math.ceil(parseFloat(t[1])||0):0;return{top:n,right:n,bottom:n,left:n}}function hse(e){if((e.outlineStyle||"none")==="none")return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0);return{top:t,right:t,bottom:t,left:t}}function vse(e){let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||t==="none")return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],r=0,a=0,o=0,l=0,s=!1;for(let d of n){s=!0;let f=d.match(/-?\d+(?:\.\d+)?px/gi)?.map(C=>parseFloat(C))||[],[m=0,h=0,v=0]=f,y=Math.abs(m)+v,S=Math.abs(h)+v;a=Math.max(a,y+Math.max(m,0)),l=Math.max(l,y+Math.max(-m,0)),o=Math.max(o,S+Math.max(h,0)),r=Math.max(r,S+Math.max(-h,0))}return{bleed:{top:Rn(r),right:Rn(a),bottom:Rn(o),left:Rn(l)},has:s}}function yse(e,t){if(!e||!t||!t.style)return null;let n=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let r=n.transform||"none";if(r==="none")try{let o=aT(e);if(o.a===1&&o.b===0&&o.c===0&&o.d===1)return t.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}let a=r.match(/^matrix\(\s*([^)]+)\)$/i);if(a){let o=a[1].split(",").map(l=>parseFloat(l.trim()));if(o.length===6&&o.every(Number.isFinite)){let[l,s,d,f]=o,m=Math.sqrt(l*l+s*s)||0,h=0,v=0,y=0,S=0,C=0,w=0;m>0&&(h=l/m,v=s/m,y=h*d+v*f,S=d-h*y,C=f-v*y,w=Math.sqrt(S*S+C*C)||0,w>0?y=y/w:y=0);let E=m,$=0,O=y*w,N=w;try{t.style.transform=`matrix(${E}, ${$}, ${O}, ${N}, 0, 0)`}catch{}return{a:E,b:$,c:O,d:N}}}try{let o=String(r).trim();return t.style.transform=o+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}function L8(e,t,n,r,a){let o=n.a,l=n.b,s=n.c,d=n.d,f=n.e||0,m=n.f||0;function h(E,$){let O=E-r,N=$-a,I=o*O+s*N,R=l*O+d*N;return I+=r+f,R+=a+m,[I,R]}let v=[h(0,0),h(e,0),h(0,t),h(e,t)],y=1/0,S=1/0,C=-1/0,w=-1/0;for(let[E,$]of v)E<y&&(y=E),$<S&&(S=$),E>C&&(C=E),$>w&&(w=$);return{minX:y,minY:S,maxX:C,maxY:w,width:C-y,height:w-S}}function bse(e,t,n){let r=(e.transformOrigin||"0 0").trim().split(/\s+/),[a,o]=[r[0]||"0",r[1]||"0"],l=(s,d)=>{let f=s.toLowerCase();return f==="left"||f==="top"?0:f==="center"?d/2:f==="right"||f==="bottom"?d:f.endsWith("px")?parseFloat(f)||0:f.endsWith("%")?(parseFloat(f)||0)*d/100:/^-?\d+(\.\d+)?$/.test(f)&&parseFloat(f)||0};return{ox:l(a,t),oy:l(o,n)}}function xse(e){let t={rotate:"0deg",scale:null,translate:null},n=typeof e.computedStyleMap=="function"?e.computedStyleMap():null;if(n){let a=d=>{try{return typeof n.has=="function"&&!n.has(d)||typeof n.get!="function"?null:n.get(d)}catch{return null}},o=a("rotate");if(o)if(o.angle){let d=o.angle;t.rotate=d.unit==="rad"?d.value*180/Math.PI+"deg":d.value+d.unit}else o.unit?t.rotate=o.unit==="rad"?o.value*180/Math.PI+"deg":o.value+o.unit:t.rotate=String(o);else{let d=getComputedStyle(e);t.rotate=d.rotate&&d.rotate!=="none"?d.rotate:"0deg"}let l=a("scale");if(l){let d="x"in l&&l.x?.value!=null?l.x.value:Array.isArray(l)?l[0]?.value:Number(l)||1,f="y"in l&&l.y?.value!=null?l.y.value:Array.isArray(l)?l[1]?.value:d;t.scale=`${d} ${f}`}else{let d=getComputedStyle(e);t.scale=d.scale&&d.scale!=="none"?d.scale:null}let s=a("translate");if(s){let d="x"in s&&"value"in s.x?s.x.value:Array.isArray(s)?s[0]?.value:0,f="y"in s&&"value"in s.y?s.y.value:Array.isArray(s)?s[1]?.value:0,m="x"in s&&s.x?.unit?s.x.unit:"px",h="y"in s&&s.y?.unit?s.y.unit:"px";t.translate=`${d}${m} ${f}${h}`}else{let d=getComputedStyle(e);t.translate=d.translate&&d.translate!=="none"?d.translate:null}return t}let r=getComputedStyle(e);return t.rotate=r.rotate&&r.rotate!=="none"?r.rotate:"0deg",t.scale=r.scale&&r.scale!=="none"?r.scale:null,t.translate=r.translate&&r.translate!=="none"?r.translate:null,t}var PS=null;function Sse(){if(PS)return PS;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),PS=e,e}function Cse(e){let t=Sse(),n=document.createElement("div");n.style.transformOrigin="0 0",e.baseTransform&&(n.style.transform=e.baseTransform),e.rotate&&(n.style.rotate=e.rotate),e.scale&&(n.style.scale=e.scale),e.translate&&(n.style.translate=e.translate),t.appendChild(n);let r=aT(n);return t.removeChild(n),r}function wse(e){let t=getComputedStyle(e),n=t.transform||"none";if(n!=="none"&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let r=t.rotate&&t.rotate!=="none"&&t.rotate!=="0deg",a=t.scale&&t.scale!=="none"&&t.scale!=="1",o=t.translate&&t.translate!=="none"&&t.translate!=="0px 0px";return!!(r||a||o)}function aT(e){let t=getComputedStyle(e).transform;if(!t||t==="none")return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}async function oT(e,t){if(!e)throw new Error("Element cannot be null or undefined");die(t.cache);let n=t.fast,r=t.outerTransforms!==!1,a=!!t.outerShadows,o={element:e,options:t,plugins:t.plugins},l,s,d,f="",m="",h,v,y=null;await au("beforeSnap",o),await au("beforeClone",o);let S=Zle(o.element);try{({clone:l,classCSS:s,styleCache:d}=await Xle(o.element,o.options)),!r&&l&&(y=yse(o.element,l)),!a&&l&&rse(o.element,l)}finally{S()}if(o={clone:l,classCSS:s,styleCache:d,...o},await au("afterClone",o),ise(o.clone),o.options?.excludeMode==="remove")try{use(o.element,o.clone,o.styleCache)}catch($){console.warn("[snapdom] shrink pass failed:",$)}try{await zie(o.clone,o.element)}catch{}await new Promise($=>{Am(async()=>{await Qle(o.clone,o.options),$()},{fast:n})}),await new Promise($=>{Am(async()=>{await Jie(o.element,o.clone,o.styleCache,o.options),$()},{fast:n})}),t.embedFonts&&await new Promise($=>{Am(async()=>{let O=Yie(o.element),N=Qie(o.element);if(_d()){let I=new Set(Array.from(O).map(R=>String(R).split("__")[0]).filter(Boolean));await Zie(I,1)}f=await Xie({required:O,usedCodepoints:N,exclude:o.options.excludeFonts,useProxy:o.options.useProxy}),$()},{fast:n})});let C=Eie(o.clone).sort(),w=C.join(",");Kt.baseStyle.has(w)?m=Kt.baseStyle.get(w):await new Promise($=>{Am(()=>{m=$ie(C),Kt.baseStyle.set(w,m),$()},{fast:n})}),o={fontsCSS:f,baseCSS:m,...o},await au("beforeRender",o),await new Promise($=>{Am(()=>{let O=getComputedStyle(o.element),N=o.element.getBoundingClientRect(),I=Math.max(1,Rn(o.element.offsetWidth||parseFloat(O.width)||N.width||1)),R=Math.max(1,Rn(o.element.offsetHeight||parseFloat(O.height)||N.height||1));if(o.options?.excludeMode==="remove"){let De=mse(o.element,o.options);Number.isFinite(De)&&De>0&&(R=Math.max(1,Math.min(R,Rn(De+1))))}let _=(De,ye=NaN)=>{let oe=typeof De=="string"?parseFloat(De):De;return Number.isFinite(oe)?oe:ye},z=_(o.options.width),D=_(o.options.height),L=I,B=R,F=Number.isFinite(z),H=Number.isFinite(D),k=R>0?I/R:1;F&&H?(L=Math.max(1,Rn(z)),B=Math.max(1,Rn(D))):F?(L=Math.max(1,Rn(z)),B=Math.max(1,Rn(L/(k||1)))):H?(B=Math.max(1,Rn(D)),L=Math.max(1,Rn(B*(k||1)))):(L=I,B=R);let q=0,V=0,W=I,G=R;if(!r&&y&&Number.isFinite(y.a)){let De={a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0},ye=L8(I,R,De,0,0);q=Rn(ye.minX),V=Rn(ye.minY),W=Rn(ye.maxX),G=Rn(ye.maxY)}else if(r&&Ese(o.element)){let De=O.transform&&O.transform!=="none"?O.transform:"",ye=xse(o.element),oe=Cse({baseTransform:De,rotate:ye.rotate||"0deg",scale:ye.scale,translate:ye.translate}),{ox:we,oy:Fe}=bse(O,I,R),xe=oe.is2D?oe:new DOMMatrix(oe.toString()),_e=L8(I,R,xe,we,Fe);q=Rn(_e.minX),V=Rn(_e.minY),W=Rn(_e.maxX),G=Rn(_e.maxY)}let X=pse(O),P=gse(O),K=hse(O),J=vse(O),j=a?{top:Rn(X.top+P.top+K.top+J.bleed.top),right:Rn(X.right+P.right+K.right+J.bleed.right),bottom:Rn(X.bottom+P.bottom+K.bottom+J.bleed.bottom),left:Rn(X.left+P.left+K.left+J.bleed.left)}:{top:0,right:0,bottom:0,left:0};q=Rn(q-j.left),V=Rn(V-j.top),W=Rn(W+j.right),G=Rn(G+j.bottom);let Y=Math.max(1,Rn(W-q)),ne=Math.max(1,Rn(G-V)),se=F||H?Rn(L/I):1,de=H||F?Rn(B/R):1,pe=Math.max(1,Rn(Y*se)),Ce=Math.max(1,Rn(ne*de)),he="http://www.w3.org/2000/svg",me=_d()?1:0,be=Rn(me+(r?0:1)),fe=document.createElementNS(he,"foreignObject"),ge=Rn(q),Oe=Rn(V);fe.setAttribute("x",String(Rn(-(ge-be)))),fe.setAttribute("y",String(Rn(-(Oe-be)))),fe.setAttribute("width",String(Rn(I+be*2))),fe.setAttribute("height",String(Rn(R+be*2))),fe.style.overflow="visible";let Ne=document.createElement("style");Ne.textContent=o.baseCSS+o.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+o.classCSS,fe.appendChild(Ne);let je=document.createElement("div");je.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),je.style.width=`${Rn(I)}px`,je.style.height=`${Rn(R)}px`,je.style.overflow="visible",o.clone.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),je.appendChild(o.clone),fe.appendChild(je);let Te=new XMLSerializer().serializeToString(fe),Ue=Rn(Y+be*2),qe=Rn(ne+be*2),ze=F||H;t.meta={w0:I,h0:R,vbW:Ue,vbH:qe,targetW:L,targetH:B};let Ve=_d()&&ze?Ue:Rn(pe+be*2),Be=_d()&&ze?qe:Rn(Ce+be*2);v=`<svg xmlns="${he}" width="${Ve}" height="${Be}" viewBox="0 0 ${Ue} ${qe}">`+Te+"</svg>",h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(v)}`,o={svgString:v,dataURL:h,...o},$()},{fast:n})}),await au("afterRender",o);let E=document.getElementById("snapdom-sandbox");return E&&E.style.position==="absolute"&&E.remove(),o.dataURL}function Ese(e){return wse(e)}function $se(e){if(typeof e=="string"){let t=e.toLowerCase().trim();if(t==="disabled"||t==="full"||t==="auto"||t==="soft")return t}return"soft"}function Ose(e={}){let t=e.format??"png";t==="jpg"&&(t="jpeg");let n=$se(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:e.placeholders!==!1,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fallbackURL:e.fallbackURL??void 0,cache:n,useProxy:typeof e.useProxy=="string"?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1}}function iT(...e){return ele(...e),ea}var ea=Object.assign(Mse,{plugins:iT}),lT=Symbol("snapdom.internal"),Zc=Symbol("snapdom.internal.silent"),Cw=!1;async function Mse(e,t){if(!e)throw new Error("Element cannot be null or undefined");let n=Ose(t);if(rle(n,t&&t.plugins),_d()&&(n.embedFonts===!0||Nse(e)))for(let r=0;r<3;r++)try{await Rse(e,t),Cw=!1}catch{}return n.iconFonts&&n.iconFonts.length>0&&Rie(n.iconFonts),n.snap||(n.snap={toPng:(r,a)=>ea.toPng(r,a),toSvg:(r,a)=>ea.toSvg(r,a)}),ea.capture(e,n,lT)}ea.capture=async(e,t,n)=>{if(n!==lT)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let r=await oT(e,t),a={img:async(S,C)=>{let{toImg:w}=await Ua(()=>Promise.resolve().then(()=>ay),void 0,import.meta.url);return w(r,{...S,...C||{}})},svg:async(S,C)=>{let{toSvg:w}=await Ua(()=>Promise.resolve().then(()=>ay),void 0,import.meta.url);return w(r,{...S,...C||{}})},canvas:async(S,C)=>{let{toCanvas:w}=await Ua(()=>Promise.resolve().then(()=>H8),void 0,import.meta.url);return w(r,{...S,...C||{}})},blob:async(S,C)=>{let{toBlob:w}=await Ua(()=>Promise.resolve().then(()=>V8),void 0,import.meta.url);return w(r,{...S,...C||{}})},png:async(S,C)=>{let{rasterize:w}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return w(r,{...S,...C||{},format:"png"})},jpeg:async(S,C)=>{let{rasterize:w}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return w(r,{...S,...C||{},format:"jpeg"})},webp:async(S,C)=>{let{rasterize:w}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return w(r,{...S,...C||{},format:"webp"})},download:async(S,C)=>{let{download:w}=await Ua(()=>Promise.resolve().then(()=>Kse),void 0,import.meta.url);return w(r,{...S,...C||{}})}},o={...t,export:{url:r},exports:{svg:async S=>{let{toSvg:C}=await Ua(()=>Promise.resolve().then(()=>ay),void 0,import.meta.url);return C(r,{...t,...S||{},[Zc]:!0})},canvas:async S=>{let{toCanvas:C}=await Ua(()=>Promise.resolve().then(()=>H8),void 0,import.meta.url);return C(r,{...t,...S||{},[Zc]:!0})},png:async S=>{let{rasterize:C}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return C(r,{...t,...S||{},format:"png",[Zc]:!0})},jpeg:async S=>{let{rasterize:C}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return C(r,{...t,...S||{},format:"jpeg",[Zc]:!0})},jpg:async S=>{let{rasterize:C}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return C(r,{...t,...S||{},format:"jpeg",[Zc]:!0})},webp:async S=>{let{rasterize:C}=await Ua(()=>Promise.resolve().then(()=>$d),void 0,import.meta.url);return C(r,{...t,...S||{},format:"webp",[Zc]:!0})},blob:async S=>{let{toBlob:C}=await Ua(()=>Promise.resolve().then(()=>V8),void 0,import.meta.url);return C(r,{...t,...S||{},[Zc]:!0})},img:async S=>{let{toImg:C}=await Ua(()=>Promise.resolve().then(()=>ay),void 0,import.meta.url);return C(r,{...t,...S||{},[Zc]:!0})}}},l=await tle("defineExports",o),s=Object.assign({},...l.filter(S=>S&&typeof S=="object")),d={...a,...s};d.jpeg&&!d.jpg&&(d.jpg=(S,C)=>d.jpeg(S,C));function f(S,C){let w={...t,...C||{}};return(S==="jpeg"||S==="jpg")&&(w.backgroundColor==null||w.backgroundColor==="transparent")&&(w.backgroundColor="#ffffff"),w}let m=!1,h=Promise.resolve();async function v(S,C){let w=async()=>{let E=d[S];if(!E)throw new Error(`[snapdom] Unknown export type: ${S}`);let $=f(S,C),O={...t,export:{type:S,options:$,url:r}};await au("beforeExport",O);let N=await E(O,$);return await au("afterExport",O,N),m||(m=!0,await au("afterSnap",t)),N};return h=h.then(w)}let y={url:r,toRaw:()=>r,to:(S,C)=>v(S,C),toImg:S=>v("img",S),toSvg:S=>v("svg",S),toCanvas:S=>v("canvas",S),toBlob:S=>v("blob",S),toPng:S=>v("png",S),toJpg:S=>v("jpg",S),toWebp:S=>v("webp",S),download:S=>v("download",S)};for(let S of Object.keys(d)){let C="to"+S.charAt(0).toUpperCase()+S.slice(1);y[C]||(y[C]=w=>v(S,w))}return y};ea.toRaw=(e,t)=>ea(e,t).then(n=>n.toRaw());ea.toImg=(e,t)=>ea(e,t).then(n=>n.toImg());ea.toSvg=(e,t)=>ea(e,t).then(n=>n.toSvg());ea.toCanvas=(e,t)=>ea(e,t).then(n=>n.toCanvas());ea.toBlob=(e,t)=>ea(e,t).then(n=>n.toBlob());ea.toPng=(e,t)=>ea(e,{...t,format:"png"}).then(n=>n.toPng());ea.toJpg=(e,t)=>ea(e,{...t,format:"jpeg"}).then(n=>n.toJpg());ea.toWebp=(e,t)=>ea(e,{...t,format:"webp"}).then(n=>n.toWebp());ea.download=(e,t)=>ea(e,t).then(n=>n.download());async function Rse(e,t){if(Cw)return;let n={...t,fast:!0,embedFonts:!0,scale:.2},r;try{r=await oT(e,n)}catch{}await new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(a))),r&&await new Promise(a=>{let o=new Image;try{o.decoding="sync",o.loading="eager"}catch{}o.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",o.src=r,document.body.appendChild(o),(async()=>{try{typeof o.decode=="function"&&await o.decode()}catch{}let l=performance.now();for(;!(o.complete&&o.naturalWidth>0)&&performance.now()-l<900;)await new Promise(s=>setTimeout(s,200));await new Promise(s=>requestAnimationFrame(s));try{o.remove()}catch{}a()})()}),e.querySelectorAll("canvas").forEach(a=>{try{let o=a.getContext("2d",{willReadFrequently:!0});o&&o.getImageData(0,0,1,1)}catch{}}),Cw=!0}function Nse(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;t.nextNode();){let n=t.currentNode,r=getComputedStyle(n),a=r.backgroundImage&&r.backgroundImage!=="none",o=r.maskImage&&r.maskImage!=="none"||r.webkitMaskImage&&r.webkitMaskImage!=="none";if(a||o||n.tagName==="CANVAS")return!0}return!1}const B8=Object.freeze(Object.defineProperty({__proto__:null,plugins:iT,snapdom:ea},Symbol.toStringTag,{value:"Module"}));async function Tse(e,t){const n=document.createElement("div");n.style.cssText=` position: absolute; left: -9999px; top: 0; transform: none; transform-origin: 0 0; zoom: 1; `,n.innerHTML=e,document.body.appendChild(n);try{const r=n.getBoundingClientRect(),o=await(await ea(n,{dpr:1,width:r.width,height:r.height})).toCanvas();document.body.removeChild(n);const l=document.createElement("canvas"),s=Math.round(t.left),d=Math.round(t.top),f=Math.round(t.width),m=Math.round(t.height);l.width=f,l.height=m;const h=l.getContext("2d");if(!h)throw new Error("无法获取 canvas 2d 上下文");return h.drawImage(o,s,d,f,m,0,0,f,m),{blob:await new Promise((y,S)=>{l.toBlob(C=>{C?y(C):S(new Error("截图转换为 Blob 失败"))},"image/png",1)}),width:l.width,height:l.height}}catch(r){throw n.parentNode&&document.body.removeChild(n),r}}async function Ise(e){try{const t=await e.arrayBuffer(),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return`fallback_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}}async function _se(e,t,n,r){try{const a=new FormData;a.append("file",e,`${t}.png`),a.append("fileKey",n),a.append("nodeId",r),a.append("hash",t);const o=await fetch("/uploadScreenshot",{method:"POST",body:a});return o.ok?(await o.json()).success===!0:!1}catch{return!1}}async function Ase(e,t,n,r){const a=[];for(const o of t)if(o.rect){if(o.marked||o.componentMapping&&!o.componentMapping?.signature)console.log(`组${o.groupIndex}需要进行截图`);else continue;try{const{blob:l}=await Tse(e,o.rect),s=await Ise(l);await _se(l,s,n,r)&&a.push({groupIndex:o.groupIndex,screenshot:s})}catch{}}return a}function Pse(){const[e,t]=u.useState(""),[n,r]=u.useState(!1),[a,o]=u.useState(2),[l,s]=u.useState(!1),[d,f]=u.useState(!1),[m,h]=u.useState(null),[v,y]=u.useState("convert"),[S,C]=u.useState(p5),[w,E]=u.useState([]),[$,O]=u.useState(""),[N,I]=u.useState([]),R=u.useRef(null),_=uie(),[z,D]=uv.useMessage(),[L,B]=u.useState("create"),[F,H]=u.useState(!1),[k,q]=u.useState(null),[V,W]=u.useState(!1),[G,X]=u.useState(!1),[P,K]=u.useState(null),[J,j]=u.useState(!1),[Y,ne]=u.useState(!1),se=()=>{try{return localStorage.getItem("mcp_capability_warning_shown")==="true"}catch{return!1}},de=()=>{try{localStorage.setItem("mcp_capability_warning_shown","true")}catch{}},pe=new URLSearchParams(new URL(location.href).search),Ce=pe.get("nodeId")||"",he=pe.get("mode"),me=pe.get("oldFileKey")||"",be=pe.get("oldNodeId")||"",fe=pe.get("supportSampling")==="1",ge=pe.get("supportRoots")==="1";u.useEffect(()=>{he==="update"&&(B("update"),me&&be?q({fileKey:me,nodeId:be,name:`${me}/${be}`,screenshotBase64:"",timestamp:new Date().toISOString()}):H(!0))},[he,me,be]),u.useEffect(()=>{if(pe.get("token")&&(!fe||!ge)&&(ne(!0),!se())){de();const _e=setTimeout(()=>{j(!0)},500);return()=>clearTimeout(_e)}},[fe,ge]);const Oe=(xe,_e)=>{console.log("🧭 findElementsInRect 开始",{rect:_e});const rt=[],lt=xe.querySelectorAll("[data-id]"),ut=xe.getBoundingClientRect(),tt=window.getComputedStyle(xe).transform;console.log("transform",tt);const mt=tt.match(/matrix\(([^)]+)\)/);console.log("matrixMatch",mt);const at=mt?.[1]?.split(",").map(parseFloat)||[];console.log("values",at);const gt=at[0]||1;return lt.forEach(Nt=>{const tn=Nt.getBoundingClientRect(),Wt={left:Math.round((tn.left-ut.left)/gt),top:Math.round((tn.top-ut.top)/gt),right:Math.round((tn.right-ut.left)/gt),bottom:Math.round((tn.bottom-ut.top)/gt)},dn=_e.left+_e.width,Qt=_e.top+_e.height;if(Wt.left>=_e.left&&Wt.right<=dn&&Wt.top>=_e.top&&Wt.bottom<=Qt){const Zt=Nt.getAttribute("data-id");Zt&&rt.push(Zt)}}),console.log("✅ findElementsInRect 结束",{rect:_e,count:rt.length}),rt},Ne=()=>{fetch("/scanComponents",{headers:{"Content-Type":"application/json"}}).then(xe=>xe.json()).then(xe=>{if(console.log("扫描组件结果:",xe),xe.success&&xe.data){const _e=[...xe.data.projectComponents||[],...xe.data.externalComponents||[]];I(_e),window.dispatchEvent(new CustomEvent("projectComponentsUpdated",{detail:_e}))}}).catch(xe=>{console.error("获取组件失败:",xe)})},[je,Te]=u.useState({...see}),[Ue,qe]=u.useState(!1),[ze,Ve]=u.useState([]);u.useEffect(()=>{tie().then(xe=>{xe.success&&xe.data&&(Ve(xe.data),window.dispatchEvent(new CustomEvent("markdownFilesUpdated",{detail:xe.data})))}).catch(xe=>{console.error("获取 Markdown 文件列表失败:",xe)})},[]),u.useEffect(()=>{if(typeof window<"u"&&window.acquireVsCodeApi){f(!0);const xe=window.acquireVsCodeApi();h(xe);const _e=rt=>{const lt=rt.data;lt.command==="setInitialConfig"&&lt.config&&(C(ut=>({...ut,...lt.config,convertSetting:{...ut.convertSetting,framework:ut.convertSetting.framework||lt.config.defaultFramework,...lt.config.convertSetting},imageSetting:{...ut.imageSetting,...lt.config.imageSetting},promptSetting:{...ut.promptSetting,...lt.config.promptSetting}})),lt.config.fileKey&&O(lt.config.fileKey),lt.config.groupsData&&E(lt.config.groupsData)),lt.command==="setAbsoluteHtml"&&t(lt.config.absoluteHtml||"")};return window.addEventListener("message",_e),xe.postMessage({command:"ready"}),()=>{window.removeEventListener("message",_e)}}else{const xe=new URLSearchParams(new URL(location.href).search);if(xe.get("token")){const rt=xe.get("fileKey"),lt=xe.get("nodeId");h8({fileKey:rt||void 0,nodeId:lt||void 0}).then(ut=>{const tt=ut.data||{};C(mt=>({...mt,...tt,convertSetting:{...mt.convertSetting,framework:tt.defaultFramework,...tt.convertSetting},imageSetting:{...mt.imageSetting,...tt.imageSetting},promptSetting:{...mt.promptSetting,...tt.promptSetting}})),ut.data.groupsData&&E(ut.data.groupsData),rt&&O(rt)}).catch(ut=>{console.error("获取配置失败:",ut)}),rt&&Zoe({fileKey:rt,nodeId:lt||void 0}).then(ut=>{t(ut.data)}).catch(ut=>{console.error("获取html失败:",ut)})}}},[]),u.useEffect(()=>{Ne()},[]),u.useEffect(()=>{if(e&&$&&!l){const xe=setTimeout(async()=>{try{const _e=document.createElement("div");_e.style.position="absolute",_e.style.left="-9999px",_e.style.top="0",_e.innerHTML=e,document.body.appendChild(_e);const{snapdom:rt}=await Ua(async()=>{const{snapdom:Nt}=await Promise.resolve().then(()=>B8);return{snapdom:Nt}},void 0,import.meta.url),ut=await(await rt(_e,{dpr:1})).toCanvas();document.body.removeChild(_e);const tt=await new Promise((Nt,tn)=>{ut.toBlob(Wt=>{Wt?Nt(Wt):tn(new Error("截图失败"))},"image/png")}),mt=new FormData;mt.append("currentScreenshot",tt,"current.png"),mt.append("fileKey",$),mt.append("nodeId",Ce),mt.append("threshold","0.6");const gt=await(await fetch("/suggestMappings",{method:"POST",body:mt})).json();if(gt.success&&gt.data&&gt.data.suggestions&&gt.data.suggestions.length>0){const Nt=document.querySelector("#preview-panel")?.querySelector("div"),tn=gt.data.suggestions.map((Wt,dn)=>{console.log("📐 接收到建议",Wt);const Qt=Oe(Nt,Wt.position);console.log("🧩 建议覆盖元素",{index:dn,count:Qt.length,相似度:Wt.confidence,截图Hash:Wt.component?.signature});let nn;return Wt.component?.signature&&N.length>0?(nn=N.find(Zt=>Zt.signature===Wt.component?.signature),nn?console.log("✅ 通过 signature 精确匹配到组件:",nn.name,"signature:",nn.signature):(console.log("🔍 未找到 signature 匹配的组件,尝试备用方案..."),Wt.component?.id&&(nn=N.find(Zt=>Zt.id===Wt.component?.id),nn&&console.log("⚠️ 通过组件名称匹配到:",nn.name,"(但 signature 不匹配,可能是组件更新了)")))):Wt.component?.name&&N.length>0&&(nn=N.find(Zt=>Zt.name===Wt.component?.name),nn&&console.log("⚠️ 无 signature 信息,通过组件名称匹配到:",nn.name)),nn||console.warn("❌ 未能在当前组件库中找到匹配的组件:",{名称:Wt.component?.name,截图Hash:Wt.component?.signature}),{groupIndex:w.length+dn,elements:Qt,rect:Wt.position,componentMapping:nn,marked:!1,componentName:Wt.component?.name||`Component${w.length+dn+1}`}});E(Wt=>{const dn=[...Wt,...tn];return console.log("🆕 合并建议后的 groupsData",dn),dn}),z.success(`识别到 ${tn.length} 个历史组件,已自动匹配,LLM 生成时将跳过该区域代码生成,直接引用对应组件~`)}}catch(_e){console.error("自动请求组件建议失败:",_e)}},500);return()=>clearTimeout(xe)}},[e,$,l]),u.useEffect(()=>{if(new URLSearchParams(new URL(location.href).search).get("token")){const rt=S.convertSetting.framework;v8(rt||void 0).then(lt=>{const ut=lt.data||{},tt=rt||ut.defaultFramework;Te(mt=>({...mt,...ut,promptSetting:{...mt.promptSetting,[tt]:{...mt.promptSetting?.[tt],...ut.promptSetting?.[tt]}}}))}).catch(lt=>{console.error("获取配置失败:",lt)})}},[S.convertSetting.framework]),console.log("groupsData",w);const Be=xe=>{if(!xe.convertSetting.framework||!xe.imageSetting.imageStorageType||!xe.mcp.figmaApiKey)return!1;switch(xe.imageSetting.imageStorageType){case"local":return!!xe.imageSetting.imageStoragePath;case"oss":return!!(xe.imageSetting.ossRegion&&xe.imageSetting.ossAccessKeyId&&xe.imageSetting.ossAccessKeySecret&&xe.imageSetting.ossBucket&&xe.imageSetting.ossPath);case"api":return!!(xe.imageSetting.imageStorageApiUrl&&xe.imageSetting.imageStorageApiFileField&&xe.imageSetting.imageStorageApiUrlField);default:return!0}},De=async xe=>{xe.preventDefault();const _e=Be(S),{mcp:rt,convertSetting:lt,imageSetting:ut,promptSetting:tt,pluginSetting:mt}=S;if(_e){const at=R.current?.getGroupsData(),gt=new URLSearchParams(new URL(location.href).search),Nt=gt.get("nodeId")||"",tn=lt.framework||je.defaultFramework||"react",Wt=je.promptSetting?.[tn]||{},dn={chunkOptimizePrompt:tt?.chunkOptimizePrompt||Wt.chunkOptimizePrompt||"",aggregationOptimizePrompt:tt?.aggregationOptimizePrompt||Wt.aggregationOptimizePrompt||"",finalOptimizePrompt:tt?.finalOptimizePrompt||Wt.finalOptimizePrompt||"",frameworkGuidePrompt:tt?.frameworkGuidePrompt||Wt.frameworkGuidePrompt||"",enableFrameworkGuide:tt?.enableFrameworkGuide??Wt.enableFrameworkGuide??!1,componentAnalysisPrompt:tt?.componentAnalysisPrompt||Wt.componentAnalysisPrompt||"",noSamplingAggregationPrompt:tt?.noSamplingAggregationPrompt||Wt.noSamplingAggregationPrompt||""};if(e&&$)try{const Lt=document.createElement("div");Lt.style.position="absolute",Lt.style.left="-9999px",Lt.style.top="0",Lt.innerHTML=e,document.body.appendChild(Lt);const{snapdom:_t}=await Ua(async()=>{const{snapdom:Qe}=await Promise.resolve().then(()=>B8);return{snapdom:Qe}},void 0,import.meta.url),ve=await(await _t(Lt,{dpr:1})).toCanvas();document.body.removeChild(Lt);const Me=await new Promise((Qe,ke)=>{ve.toBlob(Ae=>{Ae?Qe(Ae):ke(new Error("截图失败"))},"image/png")}),Xe=new FormData;Xe.append("file",Me,"index.png"),Xe.append("fileKey",$),Xe.append("nodeId",Nt),Xe.append("hash","index"),await fetch("/uploadScreenshot",{method:"POST",body:Xe}),console.log("整个设计稿截图已保存为 index.png")}catch(Lt){console.error("保存整个设计稿截图失败:",Lt)}if(at&&at.length>0&&$)try{const Lt=await Ase(e,at,$,Nt),_t=[];for(const{groupIndex:It,screenshot:ve}of Lt){const Me=at.find(Xe=>Xe.groupIndex===It);Me&&(Me.screenshot=ve,Me.componentMapping&&!Me.componentMapping.signature&&(Me.componentMapping.signature=ve,_t.push(Me.componentMapping)))}if(_t.length>0)try{await fetch("/saveComponents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({components:_t})}),console.log("已更新组件截图 signature:",_t.map(It=>It.name))}catch(It){console.error("保存组件 signature 失败:",It)}}catch(Lt){console.error("截图上传失败:",Lt)}const Qt={mcp:rt,convertSetting:lt,imageSetting:ut,promptSetting:dn,groupsData:at||null,pluginSetting:mt};if(d&&m)m.postMessage({command:"submitForm",text:Qt});else{const Lt=gt.get("token"),_t=gt.get("nodeId");Lt&&y8({token:Lt,value:Qt,fileKey:$,nodeId:_t||void 0}).then(()=>{document.body.innerHTML=` <div class="w-screen h-screen bg-gray-50 flex items-center justify-center font-sans"><div class="text-center text-xl text-gray-700 p-8 bg-white rounded-2xl shadow-lg"> 🎉 配置已提交,即将启动AI Coding进行代码生成,窗口即将自动关闭... </div></div> `,setTimeout(()=>window.close(),2e3)}).catch(It=>{alert("Error submit: "+It.message)})}r(!0),s(!0);let nn=2;const Zt=setInterval(()=>{nn--,o(nn),nn<=0&&clearInterval(Zt)},1e3)}else d&&m?m.postMessage({command:"alert",text:"请配置参数后再提交!"}):alert("请配置参数后再提交!")},ye=()=>{C(p5)},oe=(xe,_e)=>{const rt=tb.set(tb.cloneDeep(S),xe,_e);C(rt)},we=xe=>{const _e=new URLSearchParams(new URL(location.href).search);if(_e.get("token")){const lt=_e.get("fileKey"),ut=_e.get("nodeId");h8({fileKey:lt||void 0,nodeId:ut||void 0,framework:xe}).then(tt=>{C(mt=>({...mt,promptSetting:{...tt.data.promptSetting}}))}).catch(tt=>{console.error("获取框架配置失败:",tt)})}},Fe=xe=>{const rt=new URLSearchParams(new URL(location.href).search).get("token"),lt=S.convertSetting.framework;Te(xe),rt&&Joe({token:rt,value:xe}).then(()=>{z.success("全局配置已更新"),qe(!1),v8(lt||void 0).then(ut=>{const tt=ut.data||{},mt=lt||tt.defaultFramework;Te(at=>({...at,...tt,promptSetting:{...at.promptSetting,[mt]:{...at.promptSetting?.[mt],...tt.promptSetting?.[mt]}}}))}).catch(ut=>{console.error("获取配置失败:",ut)})}).catch(ut=>{console.log("全局配置更新失败",ut),z.error("全局配置更新失败")})};return Q.jsxs(rl,{theme:_,children:[D,Q.jsxs("div",{className:"h-screen flex flex-col font-vscode bg-vscode-editor-bg text-vscode-foreground",children:[Q.jsxs("div",{className:"px-5 py-3 flex items-center justify-between min-h-[48px] bg-vscode-sideBar-background border-b",children:[Q.jsxs("div",{className:"text-base font-semibold flex items-center gap-3 text-vscode-foreground",children:["Sloth D2C 转码",Q.jsx("span",{className:"text-xs px-2 py-1 rounded-xl font-medium bg-vscode-button-secondary-bg text-vscode-button-secondary-text",children:d?"🔌 VS Code":"🌐 Web"}),$&&Q.jsxs("span",{className:"text-xs px-2 py-1 rounded-xl font-medium bg-vscode-info-bg text-vscode-info-text border border-vscode-info-border",children:["📄 ",$]})]}),Q.jsxs("div",{className:"flex items-center gap-3",children:[L==="update"?Q.jsxs(Wo,{color:L==="update"?"purple":"blue",className:"flex items-center gap-1",children:[Q.jsx(aY,{className:"mr-1"}),"更新模式"]}):null,L==="update"&&k&&Q.jsxs(Wo,{color:"green",closable:!0,onClose:()=>{q(null)},className:"cursor-pointer",onClick:()=>H(!0),children:["对比: ",k.name]}),L==="update"&&!k&&Q.jsx(Un,{size:"small",type:"link",onClick:()=>H(!0),children:"选择旧设计稿"}),Y&&Q.jsx(Oo,{title:"MCP 客户端兼容性问题",children:Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(P6,{className:"text-orange-500"}),onClick:()=>j(!0),className:"!text-base"})}),Q.jsx(Un,{type:"text",size:"small",icon:Q.jsx(f9,{}),onClick:()=>qe(!0),rootClassName:"!text-base",children:"全局配置"})]})]}),Q.jsxs("div",{className:"flex-1 flex h-[calc(100vh-48px)]",children:[Q.jsxs("div",{className:"w-[280px] relative bg-vscode-sideBar-background border-r",children:[Q.jsxs("div",{className:"h-full overflow-y-auto p-5 pb-24",children:[n&&Q.jsx(Lb,{status:"success",title:`提交成功!窗口将在 ${a} 秒后自动关闭`,subTitle:$?`FileKey: ${$}`:void 0}),!n&&Q.jsx("div",{className:"flex flex-col gap-4",children:Q.jsx(Pae,{globalConfigSetting:je,configSettings:S,updateConfigSetting:oe,activeTab:v,setActiveTab:y,onFrameworkChange:we,supportSampling:fe})})]}),!n&&Q.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-vscode-sideBar-background border-t border-vscode-sideBar-border p-5",children:Q.jsx("form",{onSubmit:De,className:"w-full",children:Q.jsxs(to,{className:"w-full justify-center",children:[Q.jsx(Un,{onClick:ye,disabled:l,children:"重置"}),Q.jsx(Un,{type:"primary",htmlType:"submit",disabled:l,children:"提交"})]})})})]}),Q.jsx("div",{style:{flex:1,overflow:"hidden"},children:Q.jsx(VN,{ref:R,configSettings:S,html:e,groupsData:w,projectComponents:N,markdownFiles:ze,onRefreshComponents:()=>Ne(),supportSampling:fe})})]}),Q.jsx(rie,{open:Ue,onClose:()=>qe(!1),onSave:Fe,curFramework:S.convertSetting.framework,globalConfigSetting:je,supportSampling:fe,markdownFiles:ze}),Q.jsx(aie,{open:F,onClose:()=>H(!1),onSelect:async xe=>{if(q(xe),H(!1),$&&Ce){X(!0),W(!0);try{const rt=await(await fetch("/analyzeChange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldFileKey:xe.fileKey,oldNodeId:xe.nodeId,newFileKey:$,newNodeId:Ce})})).json();rt.success?(K(rt.data),z.success(`已分析出 ${rt.data.aiSummary?.length||0} 个变更点`)):(z.error(`分析失败: ${rt.message}`),W(!1))}catch(_e){console.error("分析变更失败:",_e),z.error("分析变更失败,请重试"),W(!1)}finally{X(!1)}}else z.success(`已选择旧设计稿: ${xe.name}`)},currentFileKey:$,currentNodeId:Ce}),Q.jsx(sie,{open:V,loading:G,analysisResult:P,onClose:()=>{W(!1),K(null)},onConfirm:xe=>{W(!1);const _e={fileKey:$,confirmedChanges:xe,htmlDiff:P?.diffText||""};if(d&&m)m.postMessage({command:"submitForm",text:_e}),r(!0),s(!0);else{const rt=pe.get("token");rt&&y8({token:rt,value:_e,fileKey:$,nodeId:Ce||void 0}).then(()=>{document.body.innerHTML=` <div class="h-screen w-screen bg-gray-50 flex items-center justify-center font-sans"><div class="text-center text-xl text-gray-700 p-8 bg-white rounded-2xl shadow-lg"> 🎉 变更已提交,即将启动 AI Coding 进行代码修改,窗口即将自动关闭... </div></div> `,setTimeout(()=>window.close(),2e3)}).catch(lt=>{z.error("提交失败: "+lt.message)})}z.success(`已确认 ${xe.length} 个变更点,正在启动 AI 进行代码修改...`)}}),Q.jsx(qa,{title:Q.jsxs("span",{className:"flex items-center gap-2",children:[Q.jsx(P6,{className:"text-orange-500"}),"MCP 客户端兼容性提示"]}),open:J,onOk:()=>j(!1),onCancel:()=>j(!1),okText:"我已了解",cancelButtonProps:{style:{display:"none"}},width:520,zIndex:2147493100,children:Q.jsxs("div",{className:"flex flex-col gap-3 py-2",children:[Q.jsx("p",{className:"text-gray-600 mb-2",children:"检测到当前 MCP 客户端部分能力不支持,可能会影响转码效果:"}),!ge&&Q.jsx(mC,{type:"warning",showIcon:!0,message:"不支持 Roots 能力",description:Q.jsxs("div",{className:"text-sm",children:[Q.jsx("p",{children:"MCP 可能无法正常识别项目路径,以下功能可能受影响:"}),Q.jsxs("ul",{className:"list-disc list-inside mt-1 text-gray-600",children:[Q.jsx("li",{children:"图片资源下载到项目目录"}),Q.jsx("li",{children:"组件映射导入路径解析"}),Q.jsx("li",{children:"项目结构识别"})]})]})}),!fe&&Q.jsx(mC,{type:"info",showIcon:!0,message:"不支持 Sampling 能力",description:Q.jsxs("div",{className:"text-sm",children:[Q.jsx("p",{children:"框选区域时,大模型不会对设计稿进行分块单独转换,而是整体转换。"}),Q.jsxs("ul",{className:"list-disc list-inside mt-1 text-gray-600",children:[Q.jsx("li",{children:"框选的结构和组件映射仍会保留"}),Q.jsx("li",{children:"局部提示词仍然有效"}),Q.jsx("li",{children:"但转换效果可能受限于模型幻觉问题"})]})]})}),Q.jsx("p",{className:"text-xs text-gray-400 mt-2",children:"提示:建议使用支持完整 MCP 协议的客户端(如 Copilot、 TME Continue)以获得最佳体验。"})]})})]})]})}ob.createRoot(document.getElementById("root")).render(Q.jsx(u.StrictMode,{children:Q.jsx(Pse,{})}));function zse(e){return typeof e=="string"&&/^data:image\/svg\+xml/i.test(e)}function Dse(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function jse(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function kse(e){let t=[],n="",r=0;for(let a=0;a<e.length;a++){let o=e[a];o==="("&&r++,o===")"&&(r=Math.max(0,r-1)),o===";"&&r===0?(t.push(n),n=""):n+=o}return n.trim()&&t.push(n),t.map(a=>a.trim()).filter(Boolean)}function Lse(e){let t=[],n="",r=0;for(let o=0;o<e.length;o++){let l=e[o];l==="("&&r++,l===")"&&(r=Math.max(0,r-1)),l===","&&r===0?(t.push(n.trim()),n=""):n+=l}n.trim()&&t.push(n.trim());let a=[];for(let o of t){if(/\binset\b/i.test(o))continue;let l=o.match(/-?\d+(?:\.\d+)?px/gi)||[],[s="0px",d="0px",f="0px"]=l,m=o.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),h=!!m&&m!==",";a.push(`drop-shadow(${s} ${d} ${f}${h?` ${m}`:""})`)}return a.join(" ")}function sT(e){let t=kse(e),n=null,r=null,a=null,o=[];for(let s of t){let d=s.indexOf(":");if(d<0)continue;let f=s.slice(0,d).trim().toLowerCase(),m=s.slice(d+1).trim();f==="box-shadow"?a=m:f==="filter"?n=m:f==="-webkit-filter"?r=m:o.push([f,m])}if(a){let s=Lse(a);s&&(n=n?`${n} ${s}`:s,r=r?`${r} ${s}`:s)}let l=[...o];return n&&l.push(["filter",n]),r&&l.push(["-webkit-filter",r]),l.map(([s,d])=>`${s}:${d}`).join(";")}function Bse(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(t,n,r)=>`${n}{${sT(r)}}`)}function Fse(e){return e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,n)=>t.replace(n,Bse(n))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(t,n,r)=>`style=${n}${sT(r)}${n}`),e}function Hse(e){if(!_d()||!zse(e))return e;try{let t=Dse(e),n=Fse(t);return jse(n)}catch{return e}}async function Qb(e,t){let{width:n,height:r,scale:a=1,dpr:o=1,meta:l={},backgroundColor:s}=t;e=Hse(e);let d=new Image;d.loading="eager",d.decoding="sync",d.crossOrigin="anonymous",d.src=e,await d.decode();let f=d.naturalWidth,m=d.naturalHeight,h=Number.isFinite(l.w0)?l.w0:f,v=Number.isFinite(l.h0)?l.h0:m,y,S,C=Number.isFinite(n),w=Number.isFinite(r);if(C&&w)y=Math.max(1,n),S=Math.max(1,r);else if(C){let O=n/Math.max(1,h);y=n,S=v*O}else if(w){let O=r/Math.max(1,v);S=r,y=h*O}else y=f,S=m;y=y*a,S=S*a;let E=document.createElement("canvas");E.width=y*o,E.height=S*o,E.style.width=`${y}px`,E.style.height=`${S}px`;let $=E.getContext("2d");return o!==1&&$.scale(o,o),s&&($.save(),$.fillStyle=s,$.fillRect(0,0,y,S),$.restore()),$.drawImage(d,0,0,y,S),E}async function cT(e,t){let n=await Qb(e,t),r=new Image;return r.src=n.toDataURL(`image/${t.format}`,t.quality),await r.decode(),r.style.width=`${n.width/t.dpr}px`,r.style.height=`${n.height/t.dpr}px`,r}async function F8(e,t){let{scale:n=1,width:r,height:a,meta:o={}}=t,l=Number.isFinite(r),s=Number.isFinite(a),d=Number.isFinite(n)&&n!==1||l||s;if(_d()&&d)return await cT(e,{...t,format:"png",quality:1,meta:o});let f=new Image;if(f.decoding="sync",f.loading="eager",f.src=e,await f.decode(),l&&s)f.style.width=`${r}px`,f.style.height=`${a}px`;else if(l){let m=Number.isFinite(o.w0)?o.w0:f.naturalWidth,h=Number.isFinite(o.h0)?o.h0:f.naturalHeight,v=r/Math.max(1,m);f.style.width=`${r}px`,f.style.height=`${Math.round(h*v)}px`}else if(s){let m=Number.isFinite(o.w0)?o.w0:f.naturalWidth,h=Number.isFinite(o.h0)?o.h0:f.naturalHeight,v=a/Math.max(1,h);f.style.height=`${a}px`,f.style.width=`${Math.round(m*v)}px`}else{let m=Math.round(f.naturalWidth*n),h=Math.round(f.naturalHeight*n);if(f.style.width=`${m}px`,f.style.height=`${h}px`,typeof e=="string"&&e.startsWith("data:image/svg+xml"))try{let v=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${m}"`).replace(/height="[^"]*"/,`height="${h}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(v)}`,f.src=e}catch{}}return f}const ay=Object.freeze(Object.defineProperty({__proto__:null,toImg:F8,toSvg:F8},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,toCanvas:Qb},Symbol.toStringTag,{value:"Module"}));async function uT(e,t){let n=t.type;if(n==="svg"){let a=decodeURIComponent(e.split(",")[1]);return new Blob([a],{type:"image/svg+xml"})}let r=await Qb(e,t);return new Promise(a=>r.toBlob(o=>a(o),`image/${n}`,t.quality))}const V8=Object.freeze(Object.defineProperty({__proto__:null,toBlob:uT},Symbol.toStringTag,{value:"Module"})),$d=Object.freeze(Object.defineProperty({__proto__:null,rasterize:cT},Symbol.toStringTag,{value:"Module"}));async function Vse(e,t){let n=(t?.format||t?.type||"").toLowerCase(),r=n==="jpg"?"jpeg":n||"png",a=t?.filename||`snapdom.${r}`,o={...t||{},format:r,type:r};if(o.dpr=1,r==="svg"){let d=await uT(e,{...o,type:"svg"}),f=URL.createObjectURL(d),m=document.createElement("a");m.href=f,m.download=a,m.click(),URL.revokeObjectURL(f);return}let l=await Qb(e,o),s=document.createElement("a");s.href=l.toDataURL(`image/${r}`,t?.quality),s.download=a,s.click()}const Kse=Object.freeze(Object.defineProperty({__proto__:null,download:Vse},Symbol.toStringTag,{value:"Module"}));</script><style rel="stylesheet" crossorigin>/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-500:oklch(70.5% .213 47.604);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-50:oklch(97% .014 254.604);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-vscode-foreground:var(--vscode-foreground);--color-vscode-sideBar-background:var(--vscode-sideBar-background,#fff);--color-vscode-panel-border:var(--vscode-panel-border);--color-vscode-input-border:var(--vscode-input-border)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-2{top:calc(var(--spacing)*2)}.top-6{top:calc(var(--spacing)*6)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-6{right:calc(var(--spacing)*6)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.m-0{margin:calc(var(--spacing)*0)}.my-0\.5{margin-block:calc(var(--spacing)*.5)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px rgb(var(--tw-prose-kbd-shadows)/10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:NaN NaN NaN;--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.\!mt-2{margin-top:calc(var(--spacing)*2)!important}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.\!mb-0{margin-bottom:calc(var(--spacing)*0)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.\!h-10{height:calc(var(--spacing)*10)!important}.\!h-auto{height:auto!important}.h-2{height:calc(var(--spacing)*2)}.h-32{height:calc(var(--spacing)*32)}.h-\[24px\]{height:24px}.h-\[200px\]{height:200px}.h-\[550px\]{height:550px}.h-\[calc\(100vh-48px\)\]{height:calc(100vh - 48px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[60\%\]{max-height:60%}.max-h-\[500px\]{max-height:500px}.min-h-\[20px\]{min-height:20px}.min-h-\[24px\]{min-height:24px}.min-h-\[48px\]{min-height:48px}.w-2{width:calc(var(--spacing)*2)}.w-\[200px\]{width:200px}.w-\[240px\]{width:240px}.w-\[280px\]{width:280px}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\[300px\]{max-width:300px}.max-w-\[350px\]{max-width:350px}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-\[3px\]{border-left-style:var(--tw-border-style);border-left-width:3px}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-300{border-color:var(--color-red-300)}.border-vscode-input-border{border-color:var(--color-vscode-input-border)}.border-vscode-panel-border{border-color:var(--color-vscode-panel-border)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-red-50{background-color:var(--color-red-50)}.bg-vscode-sideBar-background,.bg-vscode-sideBar-background\/90{background-color:var(--color-vscode-sideBar-background)}@supports (color:color-mix(in lab,red,red)){.bg-vscode-sideBar-background\/90{background-color:color-mix(in oklab,var(--color-vscode-sideBar-background)90%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.object-contain{object-fit:contain}.\!p-0{padding:calc(var(--spacing)*0)!important}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-8{padding:calc(var(--spacing)*8)}.\!px-0{padding-inline:calc(var(--spacing)*0)!important}.\!px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-5{padding-inline:calc(var(--spacing)*5)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pb-24{padding-bottom:calc(var(--spacing)*24)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.indent-0{text-indent:calc(var(--spacing)*0)}.indent-1{text-indent:calc(var(--spacing)*1)}.indent-2{text-indent:calc(var(--spacing)*2)}.indent-3{text-indent:calc(var(--spacing)*3)}.indent-4{text-indent:calc(var(--spacing)*4)}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.\!text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.\!text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\!leading-7{--tw-leading:calc(var(--spacing)*7)!important;line-height:calc(var(--spacing)*7)!important}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\!text-gray-500{color:var(--color-gray-500)!important}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-orange-500{color:var(--color-orange-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-vscode-foreground{color:var(--color-vscode-foreground)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.\!transition-transform{transition-property:transform,translate,scale,rotate!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\!duration-200{--tw-duration:.2s!important;transition-duration:.2s!important}.duration-300{--tw-duration:.3s;transition-duration:.3s}.\!ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-green-700:hover{color:var(--color-green-700)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:shadow-\[0_0_0_2px_rgba\(24\,144\,255\,0\.1\)\]:focus{--tw-shadow:0 0 0 2px var(--tw-shadow-color,#1890ff1a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.prose-headings\:font-semibold :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-headings\:text-gray-900 :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-900)}.prose-h1\:mt-4 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing)*4)}.prose-h1\:mb-3 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*3)}.prose-h1\:border-b-2 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.prose-h1\:border-gray-200 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--color-gray-200)}.prose-h1\:pb-2 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--spacing)*2)}.prose-h1\:text-2xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.prose-h1\:text-xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.prose-h2\:mt-3 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing)*3)}.prose-h2\:mb-2 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*2)}.prose-h2\:border-b :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.prose-h2\:border-gray-200 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--color-gray-200)}.prose-h2\:pb-1\.5 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--spacing)*1.5)}.prose-h2\:text-lg :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-h2\:text-xl :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.prose-h3\:mt-3 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing)*3)}.prose-h3\:mb-2 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*2)}.prose-h3\:text-base :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.prose-h3\:text-lg :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-h3\:text-gray-800 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-800)}.prose-h4\:mt-2 :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing)*2)}.prose-h4\:mb-1\.5 :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*1.5)}.prose-h4\:text-base :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.prose-h4\:text-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.prose-h4\:text-gray-800 :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-800)}.prose-p\:mb-3 :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*3)}.prose-p\:leading-6 :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.prose-p\:text-gray-700 :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-700)}.prose-a\:text-blue-500 :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-blue-500)}.prose-a\:no-underline :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:none}.prose-a\:transition-colors :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:prose-a\:text-blue-400:hover :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-blue-400)}.hover\:prose-a\:underline:hover :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:underline}}.prose-blockquote\:my-3 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*3)}.prose-blockquote\:border-l-4 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-style:var(--tw-border-style);border-left-width:4px}.prose-blockquote\:border-blue-500 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--color-blue-500)}.prose-blockquote\:bg-gray-100 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--color-gray-100)}.prose-blockquote\:px-3 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing)*3)}.prose-blockquote\:py-2 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing)*2)}.prose-blockquote\:text-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.prose-blockquote\:text-gray-600 :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-600)}.prose-blockquote\:italic :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:italic}.prose-strong\:font-semibold :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-strong\:text-gray-900 :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-900)}.prose-em\:text-gray-600 :where(em):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-600)}.prose-em\:italic :where(em):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:italic}.prose-code\:rounded :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem}.prose-code\:px-1\.5 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing)*1.5)}.prose-code\:py-0\.5 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing)*.5)}.prose-code\:font-mono :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-family:var(--font-mono)}.prose-code\:text-\[0\.85em\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.85em}.prose-pre\:my-3 :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*3)}.prose-pre\:overflow-x-auto :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){overflow-x:auto}.prose-pre\:rounded-md :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius-md)}.prose-pre\:bg-gray-800 :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--color-gray-800)}.prose-pre\:p-3 :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding:calc(var(--spacing)*3)}.prose-pre\:whitespace-pre-wrap :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){white-space:pre-wrap}.prose-pre\:text-gray-100 :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-100)}.prose-ol\:mb-3 :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*3)}.prose-ol\:pl-6 :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:calc(var(--spacing)*6)}.prose-ul\:mb-3 :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*3)}.prose-ul\:pl-6 :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:calc(var(--spacing)*6)}.prose-li\:mb-1 :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing)*1)}.prose-li\:text-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.prose-li\:text-gray-700 :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-gray-700)}.prose-hr\:my-4 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*4)}.prose-hr\:border-0 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:0}.prose-hr\:border-t :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-style:var(--tw-border-style);border-top-width:1px}.prose-hr\:border-gray-200 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--color-gray-200)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}html{transition:background-color .3s ease-in-out,color .3s ease-in-out}*{box-sizing:border-box;transition:background-color .3s ease-in-out,border-color .3s ease-in-out,color .3s ease-in-out}body{min-width:320px;min-height:100vh;font-family:var(--font-family);place-items:center;margin:0;padding:0;display:flex}#root{width:100vw;height:100vh}input:focus,select:focus,textarea:focus,button:focus{outline:none!important}.hovered{outline:1px dashed #268affb3;background-color:#268aff1f!important}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}</style><meta name="page-type" content="main"><meta name="build-time" content="2026-01-27T12:00:52.005Z"><meta name="generator" content="D2C-MCP Multi-Page Builder"></head><body data-page="main" data-build-time="2026-01-27T12:00:52.005Z"><div id="root"></div></body></html>