Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.145.43.92
import{ag as wn,aF as Ro,r as s,f as Ht,I as nt,a as le,g as mt,c as q,aY as Va,ae as pr,aZ as Xa,aq as At,ax as Yt,a_ as qa,u as Ga,q as Ua,k as B,a$ as fn,aT as ko,j as en,m as Lt,b0 as En,b1 as Po,aS as Jn,X as xt,aJ as zt,b2 as Ya,b3 as Ja,o as To,b4 as Qa,b5 as yt,$ as gn,b6 as Za,b7 as Ko,a0 as Bo,b8 as ei,b9 as ti,ba as ni,bb as ri,bc as oi,l as Qn,bd as zr,ay as Pn,be as Tn,aW as In,bf as ai,z as ii,bg as li,aG as gt,a1 as me,d as W,w as It,_ as vt,aP as ie,af as si,a5 as ci,bh as di,bi as ui,bj as fi,B as Nn,bk as Hr,b as ye,K as Ye,e as R,p as pn,G as Kn,bl as pi,bm as mi,bn as gi,bo as vi,bp as hi,bq as bi,ai as yi,aj as Ci,br as xi,a6 as Do,T as Si,bs as mn,aw as Lr,bt as Mo,bu as mr,bv as gr,bw as jr,bx as _r,ap as $i,by as Ar,bz as zo,aK as Ho,aL as Lo,aM as jo,aN as F,aO as _o,bA as wi,C as Ei,aI as Ii,ao as Ni,F as Oi,aX as Ri,bB as Fr,bC as ki,bD as Pi,ak as Ti}from"./index-C8M3lyNu.js";import{u as Ao,T as Zn,g as Fo,a as Ki,b as Bi,c as Di,d as Mi,C as zi,R as Wo}from"./index-C1EEZ13m.js";import{S as Hi}from"./index-Bhb34QNg.js";import{u as Li}from"./responsiveObserver-iG098kB7.js";const ji=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function er(e){return e!=null&&e===e.window}const _i=e=>{var t,r;if(typeof window>"u")return 0;let n=0;return er(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!er(e)&&typeof n!="number"&&(n=(r=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||r===void 0?void 0:r.scrollTop),n};function Ai(e,t,r,n){const o=r-t;return e/=n/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Fi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:r=()=>window,callback:n,duration:o=450}=t,l=r(),d=_i(l),a=Date.now(),i=()=>{const f=Date.now()-a,u=Ai(f>o?o:f,d,e,o);er(l)?l.scrollTo(window.pageXOffset,u):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=u:l.scrollTop=u,f<o?wn(i):typeof n=="function"&&n()};wn(i)}var Vo=function(t){if(Ro()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(o){return o in n.style})}return!1},Wi=function(t,r){if(!Vo(t))return!1;var n=document.createElement("div"),o=n.style[t];return n.style[t]=r,n.style[t]!==o};function Vi(e,t){return!Array.isArray(e)&&t!==void 0?Wi(e,t):Vo(e)}function Xo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=s.useRef({}),r=Ao(),n=Li();return Ht(()=>{const o=n.subscribe(l=>{t.current=l,e&&r()});return()=>n.unsubscribe(o)},[]),t.current}var Xi={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"},qi=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Xi}))},tr=s.forwardRef(qi),Gi={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"},Ui=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Gi}))},Wr=s.forwardRef(Ui);const qo=s.createContext({}),On=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Yi=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Go=e=>{const{prefixCls:t,className:r,dashed:n}=e,o=Yi(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=s.useContext(mt),d=l("menu",t),a=q({[`${d}-item-divider-dashed`]:!!n},r);return s.createElement(Va,Object.assign({className:a},o))},Uo=e=>{var t;const{className:r,children:n,icon:o,title:l,danger:d}=e,{prefixCls:a,firstLevel:i,direction:c,disableMenuItemTitleTooltip:f,inlineCollapsed:u}=s.useContext(On),m=y=>{const C=s.createElement("span",{className:`${a}-title-content`},n);return(!o||s.isValidElement(n)&&n.type==="span")&&n&&y&&i&&typeof n=="string"?s.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):C},{siderCollapsed:p}=s.useContext(qo);let g=l;typeof l>"u"?g=i?n:"":l===!1&&(g="");const b={title:g};!p&&!u&&(b.title=null,b.open=!1);const v=pr(n).length;let h=s.createElement(Xa,Object.assign({},At(e,["title","icon","danger"]),{className:q({[`${a}-item-danger`]:d,[`${a}-item-only-child`]:(o?v+1:v)===1},r),title:typeof l=="string"?l:void 0}),Yt(o,{className:q(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),m(u));return f||(h=s.createElement(Zn,Object.assign({},b,{placement:c==="rtl"?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),h)),h};var Ji=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Rn=s.createContext(null),Yo=s.forwardRef((e,t)=>{const{children:r}=e,n=Ji(e,["children"]),o=s.useContext(Rn),l=s.useMemo(()=>Object.assign(Object.assign({},o),n),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=qa(r),a=Ga(t,d?r.ref:null);return s.createElement(Rn.Provider,{value:l},s.createElement(Ua,{space:!0},d?s.cloneElement(r,{ref:a}):r))}),Qi=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:l,lineType:d,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${B(l)} ${d} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Zi=e=>{let{componentCls:t,menuArrowOffset:r,calc:n}=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(${B(n(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${B(r)})`}}}}},Vr=e=>Object.assign({},fn(e)),Xr=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:o,groupTitleColor:l,itemBg:d,subMenuItemBg:a,itemSelectedBg:i,activeBarHeight:c,activeBarWidth:f,activeBarBorderWidth:u,motionDurationSlow:m,motionEaseInOut:p,motionEaseOut:g,itemPaddingInline:b,motionDurationMid:v,itemHoverColor:h,lineType:y,colorSplit:C,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:I,dangerItemSelectedColor:O,dangerItemActiveBg:k,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:M,itemActiveBg:T,menuSubMenuBg:P,horizontalItemSelectedColor:$,horizontalItemSelectedBg:N,horizontalItemBorderRadius:D,horizontalItemHoverBg:K}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:d,[`&${r}-root:focus-visible`]:Object.assign({},Vr(e)),[`${r}-item-group-title`]:{color:l},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:o}},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},Vr(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:h}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}}},[`${r}-item-danger`]:{color:S,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:I}},[`&${r}-item:active`]:{background:k}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:i,[`&${r}-item-danger`]:{backgroundColor:w}},[`&${r}-submenu > ${r}`]:{backgroundColor:P},[`&${r}-popup > ${r}`]:{backgroundColor:E},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:E},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${B(c)} solid transparent`,transition:`border-color ${m} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:c,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:$}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${B(u)} ${y} ${C}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:a},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${B(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},qr=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:l,marginXS:d,itemMarginBlock:a,itemWidth:i}=e,c=e.calc(l).add(o).add(d).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:B(r),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:i},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:B(r)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:c}}},el=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:d,motionDurationMid:a,motionEaseOut:i,paddingXL:c,itemMarginInline:f,fontSizeLG:u,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:v}=e,h={height:n,lineHeight:B(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},qr(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},qr(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${B(e.calc(d).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${a} ${i}`,`padding-inline calc(50% - ${B(e.calc(u).div(2).equal())} - ${B(f)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,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% - ${B(e.calc(u).div(2).equal())} - ${B(f)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:v,lineHeight:B(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ko),{paddingInline:p})}}]},Gr=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:l,iconCls:d,iconSize:a,iconMarginInlineEnd:i}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${t}-item-icon, ${d}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${l}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:i,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Ya()),[`&${t}-item-only-child`]:{[`> ${d}, > ${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"}}}},Ur=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:l,menuArrowOffset:d}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${B(e.calc(d).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${B(d)})`}}}}},tl=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:d,paddingXS:a,padding:i,colorSplit:c,lineWidth:f,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:b,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:y}=e;return[{"":{[`${r}`]:Object.assign(Object.assign({},Jn()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xt(e)),Jn()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${B(a)} ${B(i)}`,fontSize:y,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${d}`,`background ${o} ${d}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${d}`,`background ${o} ${d}`,`padding ${l} ${d}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${d}`,`padding ${o} ${d}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Gr(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${B(e.calc(n).mul(2).equal())} ${B(i)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Gr(e)),Ur(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:p},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${d}`}})},"\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}}}),Ur(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
&-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${B(b)})`},"&::after":{transform:`rotate(45deg) translateX(${B(e.calc(b).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${B(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${B(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${B(b)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},nl=e=>{var t,r,n;const{colorPrimary:o,colorError:l,colorTextDisabled:d,colorErrorBg:a,colorText:i,colorTextDescription:c,colorBgContainer:f,colorFillAlter:u,colorFillContent:m,lineWidth:p,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:v,controlHeightLG:h,lineHeight:y,colorBgElevated:C,marginXXS:x,padding:S,fontSize:I,controlHeightSM:O,fontSizeLG:k,colorTextLightSolid:w,colorErrorHover:E}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,T=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:p,P=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,$=new zt(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:f,itemBg:f,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:T,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:y,collapsedWidth:h*2,popupBg:C,itemMarginBlock:x,itemPaddingInline:S,horizontalLineHeight:`${h*1.15}px`,iconSize:I,iconMarginInlineEnd:O-I,collapsedIconSize:k,groupTitleFontSize:I,darkItemDisabledColor:new zt(w).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:l,itemWidth:M?`calc(100% + ${T}px)`:`calc(100% - ${P*2}px)`}},rl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return en("Menu",o=>{const{colorBgElevated:l,controlHeightLG:d,fontSize:a,darkItemColor:i,darkDangerItemColor:c,darkItemBg:f,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:b,darkGroupTitleColor:v,darkItemHoverColor:h,darkItemDisabledColor:y,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:S,popupBg:I,darkPopupBg:O}=o,k=o.calc(a).div(7).mul(5).equal(),w=Lt(o,{menuArrowSize:k,menuHorizontalHeight:o.calc(d).mul(1.15).equal(),menuArrowOffset:o.calc(k).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:I}),E=Lt(w,{itemColor:i,itemHoverColor:h,groupTitleColor:v,itemSelectedColor:m,itemBg:f,popupBg:O,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:x,dangerItemActiveBg:S,dangerItemSelectedBg:g,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[tl(w),Qi(w),el(w),Xr(w,"light"),Xr(E,"dark"),Zi(w),Fo(w),En(w,"slide-up"),En(w,"slide-down"),Po(w,"zoom-big")]},nl,{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:r,unitless:{groupTitleLineHeight:!0}})(e,t)},Jo=e=>{var t;const{popupClassName:r,icon:n,title:o,theme:l}=e,d=s.useContext(On),{prefixCls:a,inlineCollapsed:i,theme:c}=d,f=Ja();let u;if(!n)u=i&&!f.length&&o&&typeof o=="string"?s.createElement("div",{className:`${a}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${a}-title-content`},o);else{const g=s.isValidElement(o)&&o.type==="span";u=s.createElement(s.Fragment,null,Yt(n,{className:q(s.isValidElement(n)?(t=n.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),g?o:s.createElement("span",{className:`${a}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]),[p]=To("Menu");return s.createElement(On.Provider,{value:m},s.createElement(Qa,Object.assign({},At(e,["icon"]),{title:u,popupClassName:q(a,r,`${a}-${l||c}`),popupStyle:{zIndex:p}})))};var ol=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Wn(e){return e===null||e===!1}const al={item:Uo,submenu:Jo,divider:Go},il=s.forwardRef((e,t)=>{var r;const n=s.useContext(Rn),o=n||{},{getPrefixCls:l,getPopupContainer:d,direction:a,menu:i}=s.useContext(mt),c=l(),{prefixCls:f,className:u,style:m,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:h,rootClassName:y,mode:C,selectable:x,onClick:S,overflowedIndicatorPopupClassName:I}=e,O=ol(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=At(O,["collapsedWidth"]);(r=o.validator)===null||r===void 0||r.call(o,{mode:C});const w=yt(function(){var Y;S==null||S.apply(void 0,arguments),(Y=o.onClick)===null||Y===void 0||Y.call(o)}),E=o.mode||C,M=x??o.selectable,T=s.useMemo(()=>h!==void 0?h:v,[v,h]),P={horizontal:{motionName:`${c}-slide-up`},inline:Bo(c),other:{motionName:`${c}-zoom-big`}},$=l("menu",f||o.prefixCls),N=gn($),[D,K,z]=rl($,N,!n),H=q(`${$}-${p}`,i==null?void 0:i.className,u),L=s.useMemo(()=>{var Y,J;if(typeof g=="function"||Wn(g))return g||null;if(typeof o.expandIcon=="function"||Wn(o.expandIcon))return o.expandIcon||null;if(typeof(i==null?void 0:i.expandIcon)=="function"||Wn(i==null?void 0:i.expandIcon))return(i==null?void 0:i.expandIcon)||null;const de=(Y=g??(o==null?void 0:o.expandIcon))!==null&&Y!==void 0?Y:i==null?void 0:i.expandIcon;return Yt(de,{className:q(`${$}-submenu-expand-icon`,s.isValidElement(de)?(J=de.props)===null||J===void 0?void 0:J.className:void 0)})},[g,o==null?void 0:o.expandIcon,i==null?void 0:i.expandIcon,$]),A=s.useMemo(()=>({prefixCls:$,inlineCollapsed:T||!1,direction:a,firstLevel:!0,theme:p,mode:E,disableMenuItemTitleTooltip:b}),[$,T,a,b,p]);return D(s.createElement(Rn.Provider,{value:null},s.createElement(On.Provider,{value:A},s.createElement(Za,Object.assign({getPopupContainer:d,overflowedIndicator:s.createElement(Ko,null),overflowedIndicatorPopupClassName:q($,`${$}-${p}`,I),mode:E,selectable:M,onClick:w},k,{inlineCollapsed:T,style:Object.assign(Object.assign({},i==null?void 0:i.style),m),className:H,prefixCls:$,direction:a,defaultMotions:P,expandIcon:L,ref:t,rootClassName:q(y,K,o.rootClassName,z,N),_internalComponents:al})))))}),tn=s.forwardRef((e,t)=>{const r=s.useRef(null),n=s.useContext(qo);return s.useImperativeHandle(t,()=>({menu:r.current,focus:o=>{var l;(l=r.current)===null||l===void 0||l.focus(o)}})),s.createElement(il,Object.assign({ref:r},e,n))});tn.Item=Uo;tn.SubMenu=Jo;tn.Divider=Go;tn.ItemGroup=ei;const ll=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:o}=e,l=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:n,"&:hover":{color:o,backgroundColor:n}}}}}},sl=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:l,antCls:d,iconCls:a,motionDurationMid:i,paddingBlock:c,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${d}-btn`]:{[`& > ${a}-down, & > ${d}-btn-icon > ${a}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${d}-btn > ${a}-down`]:{fontSize:p},[`${a}-down::before`]:{transition:`transform ${i}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomLeft,
&${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomLeft,
&${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottom,
&${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottom,
&${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomRight,
&${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ti},[`&${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topLeft,
&${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topLeft,
&${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-top,
&${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-top,
&${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topRight,
&${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ni},[`&${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomLeft,
&${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottom,
&${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ri},[`&${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topLeft,
&${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-top,
&${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topRight`]:{animationName:oi}}},Ki(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},xt(e)),{[r]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Qn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${B(c)} ${B(g)}`,color:e.colorTextDescription,transition:`all ${i}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${i}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${B(c)} ${B(g)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${i}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Qn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${B(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:p,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${B(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[En(e,"slide-up"),En(e,"slide-down"),zr(e,"move-up"),zr(e,"move-down"),Po(e,"zoom-big")]]},cl=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Bi({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Di(e)),dl=en("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,l=Lt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[sl(l),ll(l)]},cl,{resetStyle:!1}),Bn=e=>{var t;const{menu:r,arrow:n,prefixCls:o,children:l,trigger:d,disabled:a,dropdownRender:i,getPopupContainer:c,overlayClassName:f,rootClassName:u,overlayStyle:m,open:p,onOpenChange:g,visible:b,onVisibleChange:v,mouseEnterDelay:h=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:C=!0,placement:x="",overlay:S,transitionName:I}=e,{getPopupContainer:O,getPrefixCls:k,direction:w,dropdown:E}=s.useContext(mt);Pn();const M=s.useMemo(()=>{const _=k();return I!==void 0?I:x.includes("top")?`${_}-slide-down`:`${_}-slide-up`},[k,x,I]),T=s.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:w==="rtl"?"bottomRight":"bottomLeft",[x,w]),P=k("dropdown",o),$=gn(P),[N,D,K]=dl(P,$),[,z]=Tn(),H=s.Children.only(l),L=Yt(H,{className:q(`${P}-trigger`,{[`${P}-rtl`]:w==="rtl"},H.props.className),disabled:(t=H.props.disabled)!==null&&t!==void 0?t:a}),A=a?[]:d,Y=!!(A!=null&&A.includes("contextMenu")),[J,de]=In(!1,{value:p??b}),ge=yt(_=>{g==null||g(_,{source:"trigger"}),v==null||v(_),de(_)}),$e=q(f,u,D,K,$,E==null?void 0:E.className,{[`${P}-rtl`]:w==="rtl"}),ee=Mi({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:C,offset:z.marginXXS,arrowWidth:n?z.sizePopupArrow:0,borderRadius:z.borderRadius}),pe=s.useCallback(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(g==null||g(!1,{source:"menu"}),de(!1))},[r==null?void 0:r.selectable,r==null?void 0:r.multiple]),ae=()=>{let _;return r!=null&&r.items?_=s.createElement(tn,Object.assign({},r)):typeof S=="function"?_=S():_=S,i&&(_=i(_)),_=s.Children.only(typeof _=="string"?s.createElement("span",null,_):_),s.createElement(Yo,{prefixCls:`${P}-menu`,rootClassName:q(K,$),expandIcon:s.createElement("span",{className:`${P}-menu-submenu-arrow`},s.createElement(tr,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:pe,validator:V=>{}},_)},[ce,te]=To("Dropdown",m==null?void 0:m.zIndex);let G=s.createElement(ai,Object.assign({alignPoint:Y},At(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:y,visible:J,builtinPlacements:ee,arrow:!!n,overlayClassName:$e,prefixCls:P,getPopupContainer:c||O,transitionName:M,trigger:A,overlay:ae,placement:T,onVisibleChange:ge,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),m),{zIndex:ce})}),L);return ce&&(G=s.createElement(ii.Provider,{value:te},G)),N(G)};function ul(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const fl=li(Bn,"dropdown",e=>e,ul),pl=e=>s.createElement(fl,Object.assign({},e),s.createElement("span",null));Bn._InternalPanelDoNotUseOrYouWillBeFired=pl;function tt(e,t){return e[t]}var ml=["children"];function Qo(e,t){return"".concat(e,"-").concat(t)}function gl(e){return e&&e.type&&e.type.isTreeNode}function vn(e,t){return e??t}function Jt(e){var t=e||{},r=t.title,n=t._title,o=t.key,l=t.children,d=r||"title";return{title:d,_title:n||[d],key:o||"key",children:l||"children"}}function Zo(e){function t(r){var n=pr(r);return n.map(function(o){if(!gl(o))return It(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var l=o.key,d=o.props,a=d.children,i=vt(d,ml),c=W({key:l},i),f=t(a);return f.length&&(c.children=f),c}).filter(function(o){return o})}return t(e)}function Vn(e,t,r){var n=Jt(r),o=n._title,l=n.key,d=n.children,a=new Set(t===!0?[]:t),i=[];function c(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(m,p){for(var g=Qo(u?u.pos:"0",p),b=vn(m[l],g),v,h=0;h<o.length;h+=1){var y=o[h];if(m[y]!==void 0){v=m[y];break}}var C=Object.assign(At(m,[].concat(me(o),[l,d])),{title:v,key:b,parent:u,pos:g,children:null,data:m,isStart:[].concat(me(u?u.isStart:[]),[p===0]),isEnd:[].concat(me(u?u.isEnd:[]),[p===f.length-1])});return i.push(C),t===!0||a.has(b)?C.children=c(m[d]||[],C):C.children=[],C})}return c(e),i}function vl(e,t,r){var n={};gt(r)==="object"?n=r:n={externalGetKey:r},n=n||{};var o=n,l=o.childrenPropName,d=o.externalGetKey,a=o.fieldNames,i=Jt(a),c=i.key,f=i.children,u=l||f,m;d?typeof d=="string"?m=function(b){return b[d]}:typeof d=="function"&&(m=function(b){return d(b)}):m=function(b,v){return vn(b[c],v)};function p(g,b,v,h){var y=g?g[u]:e,C=g?Qo(v.pos,b):"0",x=g?[].concat(me(h),[g]):[];if(g){var S=m(g,C),I={node:g,index:b,pos:C,key:S,parentPos:v.node?v.pos:null,level:v.level+1,nodes:x};t(I)}y&&y.forEach(function(O,k){p(O,k,{node:g,pos:C,level:v?v.level+1:-1},x)})}p(null)}function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,o=t.onProcessFinished,l=t.externalGetKey,d=t.childrenPropName,a=t.fieldNames,i=arguments.length>2?arguments[2]:void 0,c=l||i,f={},u={},m={posEntities:f,keyEntities:u};return r&&(m=r(m)||m),vl(e,function(p){var g=p.node,b=p.index,v=p.pos,h=p.key,y=p.parentPos,C=p.level,x=p.nodes,S={node:g,nodes:x,index:b,key:h,pos:v,level:C},I=vn(h,v);f[v]=S,u[I]=S,S.parent=f[y],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),n&&n(S,m)},{externalGetKey:c,childrenPropName:d,fieldNames:a}),o&&o(m),m}function dn(e,t){var r=t.expandedKeys,n=t.selectedKeys,o=t.loadedKeys,l=t.loadingKeys,d=t.checkedKeys,a=t.halfCheckedKeys,i=t.dragOverNodeKey,c=t.dropPosition,f=t.keyEntities,u=tt(f,e),m={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:d.indexOf(e)!==-1,halfChecked:a.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:i===e&&c===0,dragOverGapTop:i===e&&c===-1,dragOverGapBottom:i===e&&c===1};return m}function Fe(e){var t=e.data,r=e.expanded,n=e.selected,o=e.checked,l=e.loaded,d=e.loading,a=e.halfChecked,i=e.dragOver,c=e.dragOverGapTop,f=e.dragOverGapBottom,u=e.pos,m=e.active,p=e.eventKey,g=W(W({},t),{},{expanded:r,selected:n,checked:o,loaded:l,loading:d,halfChecked:a,dragOver:i,dragOverGapTop:c,dragOverGapBottom:f,pos:u,active:m,key:p});return"props"in g||Object.defineProperty(g,"props",{get:function(){return It(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function ea(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function hl(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,o=t.checkable;return!!(r||n)||o===!1}function bl(e,t,r,n){for(var o=new Set(e),l=new Set,d=0;d<=r;d+=1){var a=t.get(d)||new Set;a.forEach(function(u){var m=u.key,p=u.node,g=u.children,b=g===void 0?[]:g;o.has(m)&&!n(p)&&b.filter(function(v){return!n(v.node)}).forEach(function(v){o.add(v.key)})})}for(var i=new Set,c=r;c>=0;c-=1){var f=t.get(c)||new Set;f.forEach(function(u){var m=u.parent,p=u.node;if(!(n(p)||!u.parent||i.has(u.parent.key))){if(n(u.parent.node)){i.add(m.key);return}var g=!0,b=!1;(m.children||[]).filter(function(v){return!n(v.node)}).forEach(function(v){var h=v.key,y=o.has(h);g&&!y&&(g=!1),!b&&(y||l.has(h))&&(b=!0)}),g&&o.add(m.key),b&&l.add(m.key),i.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ea(l,o))}}function yl(e,t,r,n,o){for(var l=new Set(e),d=new Set(t),a=0;a<=n;a+=1){var i=r.get(a)||new Set;i.forEach(function(m){var p=m.key,g=m.node,b=m.children,v=b===void 0?[]:b;!l.has(p)&&!d.has(p)&&!o(g)&&v.filter(function(h){return!o(h.node)}).forEach(function(h){l.delete(h.key)})})}d=new Set;for(var c=new Set,f=n;f>=0;f-=1){var u=r.get(f)||new Set;u.forEach(function(m){var p=m.parent,g=m.node;if(!(o(g)||!m.parent||c.has(m.parent.key))){if(o(m.parent.node)){c.add(p.key);return}var b=!0,v=!1;(p.children||[]).filter(function(h){return!o(h.node)}).forEach(function(h){var y=h.key,C=l.has(y);b&&!C&&(b=!1),!v&&(C||d.has(y))&&(v=!0)}),b||l.delete(p.key),v&&d.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(ea(d,l))}}function Gt(e,t,r,n){var o=[],l;n?l=n:l=hl;var d=new Set(e.filter(function(f){var u=!!tt(r,f);return u||o.push(f),u})),a=new Map,i=0;Object.keys(r).forEach(function(f){var u=r[f],m=u.level,p=a.get(m);p||(p=new Set,a.set(m,p)),p.add(u),i=Math.max(i,m)}),It(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var c;return t===!0?c=bl(d,a,i,l):c=yl(d,t.halfCheckedKeys,a,i,l),c}const Cl=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},xt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},xt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},xt(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({},fn(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${B(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:`${B(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}})},{[`
${r}:not(${r}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}}},[`
${r}-checked:not(${r}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}-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 ta(e,t){const r=Lt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cl(r)]}const na=en("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[ta(r,e)]}),ra=ie.createContext(null);var xl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Sl=(e,t)=>{var r;const{prefixCls:n,className:o,rootClassName:l,children:d,indeterminate:a=!1,style:i,onMouseEnter:c,onMouseLeave:f,skipGroup:u=!1,disabled:m}=e,p=xl(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:b,checkbox:v}=s.useContext(mt),h=s.useContext(ra),{isFormItemInput:y}=s.useContext(si),C=s.useContext(ci),x=(r=(h==null?void 0:h.disabled)||m)!==null&&r!==void 0?r:C,S=s.useRef(p.value);s.useEffect(()=>{h==null||h.registerValue(p.value)},[]),s.useEffect(()=>{if(!u)return p.value!==S.current&&(h==null||h.cancelValue(S.current),h==null||h.registerValue(p.value),S.current=p.value),()=>h==null?void 0:h.cancelValue(p.value)},[p.value]);const I=g("checkbox",n),O=gn(I),[k,w,E]=na(I,O),M=Object.assign({},p);h&&!u&&(M.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),h.toggleOption&&h.toggleOption({label:d,value:p.value})},M.name=h.name,M.checked=h.value.includes(p.value));const T=q(`${I}-wrapper`,{[`${I}-rtl`]:b==="rtl",[`${I}-wrapper-checked`]:M.checked,[`${I}-wrapper-disabled`]:x,[`${I}-wrapper-in-form-item`]:y},v==null?void 0:v.className,o,l,E,O,w),P=q({[`${I}-indeterminate`]:a},di,w),$=a?"mixed":void 0;return k(s.createElement(ui,{component:"Checkbox",disabled:x},s.createElement("label",{className:T,style:Object.assign(Object.assign({},v==null?void 0:v.style),i),onMouseEnter:c,onMouseLeave:f},s.createElement(zi,Object.assign({"aria-checked":$},M,{prefixCls:I,className:P,disabled:x,ref:t})),d!==void 0&&s.createElement("span",null,d))))},oa=s.forwardRef(Sl);var $l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const wl=s.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:o=[],prefixCls:l,className:d,rootClassName:a,style:i,onChange:c}=e,f=$l(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:u,direction:m}=s.useContext(mt),[p,g]=s.useState(f.value||r||[]),[b,v]=s.useState([]);s.useEffect(()=>{"value"in f&&g(f.value||[])},[f.value]);const h=s.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),y=N=>{v(D=>D.filter(K=>K!==N))},C=N=>{v(D=>[].concat(me(D),[N]))},x=N=>{const D=p.indexOf(N.value),K=me(p);D===-1?K.push(N.value):K.splice(D,1),"value"in f||g(K),c==null||c(K.filter(z=>b.includes(z)).sort((z,H)=>{const L=h.findIndex(Y=>Y.value===z),A=h.findIndex(Y=>Y.value===H);return L-A}))},S=u("checkbox",l),I=`${S}-group`,O=gn(S),[k,w,E]=na(S,O),M=At(f,["value","disabled"]),T=o.length?h.map(N=>s.createElement(oa,{prefixCls:S,key:N.value.toString(),disabled:"disabled"in N?N.disabled:f.disabled,value:N.value,checked:p.includes(N.value),onChange:N.onChange,className:`${I}-item`,style:N.style,title:N.title,id:N.id,required:N.required},N.label)):n,P={toggleOption:x,value:p,disabled:f.disabled,name:f.name,registerValue:C,cancelValue:y},$=q(I,{[`${I}-rtl`]:m==="rtl"},d,a,E,O,w);return k(s.createElement("div",Object.assign({className:$,style:i},M,{ref:t}),s.createElement(ra.Provider,{value:P},T)))}),Qt=oa;Qt.Group=wl;Qt.__ANT_CHECKBOX=!0;var El=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const aa=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:n}=s.useContext(mt),{prefixCls:o,type:l="default",danger:d,disabled:a,loading:i,onClick:c,htmlType:f,children:u,className:m,menu:p,arrow:g,autoFocus:b,overlay:v,trigger:h,align:y,open:C,onOpenChange:x,placement:S,getPopupContainer:I,href:O,icon:k=s.createElement(Ko,null),title:w,buttonsRender:E=pe=>pe,mouseEnterDelay:M,mouseLeaveDelay:T,overlayClassName:P,overlayStyle:$,destroyPopupOnHide:N,dropdownRender:D}=e,K=El(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"]),z=r("dropdown",o),H=`${z}-button`,L={menu:p,arrow:g,autoFocus:b,align:y,disabled:a,trigger:a?[]:h,onOpenChange:x,getPopupContainer:I||t,mouseEnterDelay:M,mouseLeaveDelay:T,overlayClassName:P,overlayStyle:$,destroyPopupOnHide:N,dropdownRender:D},{compactSize:A,compactItemClassnames:Y}=fi(z,n),J=q(H,Y,m);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=C),"placement"in e?L.placement=S:L.placement=n==="rtl"?"bottomLeft":"bottomRight";const de=s.createElement(Nn,{type:l,danger:d,disabled:a,loading:i,onClick:c,htmlType:f,href:O,title:w},u),ge=s.createElement(Nn,{type:l,danger:d,icon:k}),[$e,ee]=E([de,ge]);return s.createElement(Hi.Compact,Object.assign({className:J,size:A,block:!0},K),$e,s.createElement(Bn,Object.assign({},L),ee))};aa.__ANT_BUTTON=!0;const hr=Bn;hr.Button=aa;function Yr(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function xn(e,t,r,n){var o=Hr.unstable_batchedUpdates?function(d){Hr.unstable_batchedUpdates(r,d)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,o,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,n)}}}const Il=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const r=t<0||arguments.length<=t?void 0:arguments[t];r&&Object.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(e[n]=o)})}return e};var Nl={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"},Ol=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Nl}))},Jr=s.forwardRef(Ol),Rl={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"},kl=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Rl}))},Qr=s.forwardRef(kl),Pl={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:"页码"},Tl=["10","20","50","100"],Kl=function(t){var r=t.pageSizeOptions,n=r===void 0?Tl:r,o=t.locale,l=t.changeSize,d=t.pageSize,a=t.goButton,i=t.quickGo,c=t.rootPrefixCls,f=t.selectComponentClass,u=t.selectPrefixCls,m=t.disabled,p=t.buildOptionText,g=ie.useState(""),b=ye(g,2),v=b[0],h=b[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},C=typeof p=="function"?p:function($){return"".concat($," ").concat(o.items_per_page)},x=function(N){l==null||l(Number(N))},S=function(N){h(N.target.value)},I=function(N){a||v===""||(h(""),!(N.relatedTarget&&(N.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||N.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(i==null||i(y())))},O=function(N){v!==""&&(N.keyCode===Ye.ENTER||N.type==="click")&&(h(""),i==null||i(y()))},k=function(){return n.some(function(N){return N.toString()===d.toString()})?n:n.concat([d.toString()]).sort(function(N,D){var K=Number.isNaN(Number(N))?0:Number(N),z=Number.isNaN(Number(D))?0:Number(D);return K-z})},w="".concat(c,"-options");if(!l&&!i)return null;var E=null,M=null,T=null;if(l&&f){var P=k().map(function($,N){return ie.createElement(f.Option,{key:N,value:$.toString()},C($))});E=ie.createElement(f,{disabled:m,prefixCls:u,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(d||n[0]).toString(),onChange:x,getPopupContainer:function(N){return N.parentNode},"aria-label":o.page_size,defaultOpen:!1},P)}return i&&(a&&(T=typeof a=="boolean"?ie.createElement("button",{type:"button",onClick:O,onKeyUp:O,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):ie.createElement("span",{onClick:O,onKeyUp:O},a)),M=ie.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,ie.createElement("input",{disabled:m,type:"text",value:v,onChange:S,onKeyUp:O,onBlur:I,"aria-label":o.page}),o.page,T)),ie.createElement("li",{className:w},E,M)},cn=function(t){var r,n=t.rootPrefixCls,o=t.page,l=t.active,d=t.className,a=t.showTitle,i=t.onClick,c=t.onKeyPress,f=t.itemRender,u="".concat(n,"-item"),m=q(u,"".concat(u,"-").concat(o),(r={},R(r,"".concat(u,"-active"),l),R(r,"".concat(u,"-disabled"),!o),r),d),p=function(){i(o)},g=function(h){c(h,i,o)},b=f(o,"page",ie.createElement("a",{rel:"nofollow"},o));return b?ie.createElement("li",{title:a?String(o):null,className:m,onClick:p,onKeyDown:g,tabIndex:0},b):null},Bl=function(t,r,n){return n};function Zr(){}function eo(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Mt(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var Dl=function(t){var r,n=t.prefixCls,o=n===void 0?"rc-pagination":n,l=t.selectPrefixCls,d=l===void 0?"rc-select":l,a=t.className,i=t.selectComponentClass,c=t.current,f=t.defaultCurrent,u=f===void 0?1:f,m=t.total,p=m===void 0?0:m,g=t.pageSize,b=t.defaultPageSize,v=b===void 0?10:b,h=t.onChange,y=h===void 0?Zr:h,C=t.hideOnSinglePage,x=t.align,S=t.showPrevNextJumpers,I=S===void 0?!0:S,O=t.showQuickJumper,k=t.showLessItems,w=t.showTitle,E=w===void 0?!0:w,M=t.onShowSizeChange,T=M===void 0?Zr:M,P=t.locale,$=P===void 0?Pl:P,N=t.style,D=t.totalBoundaryShowSizeChanger,K=D===void 0?50:D,z=t.disabled,H=t.simple,L=t.showTotal,A=t.showSizeChanger,Y=t.pageSizeOptions,J=t.itemRender,de=J===void 0?Bl:J,ge=t.jumpPrevIcon,$e=t.jumpNextIcon,ee=t.prevIcon,pe=t.nextIcon,ae=ie.useRef(null),ce=In(10,{value:g,defaultValue:v}),te=ye(ce,2),G=te[0],_=te[1],V=In(1,{value:c,defaultValue:u,postState:function(ve){return Math.max(1,Math.min(ve,Mt(void 0,G,p)))}}),U=ye(V,2),X=U[0],j=U[1],re=ie.useState(X),xe=ye(re,2),ne=xe[0],be=xe[1];s.useEffect(function(){be(X)},[X]);var Ne=Math.max(1,X-(k?3:5)),Q=Math.min(Mt(void 0,G,p),X+(k?3:5));function Ce(oe,ve){var ze=oe||ie.createElement("button",{type:"button","aria-label":ve,className:"".concat(o,"-item-link")});return typeof oe=="function"&&(ze=ie.createElement(oe,W({},t))),ze}function Pe(oe){var ve=oe.target.value,ze=Mt(void 0,G,p),ht;return ve===""?ht=ve:Number.isNaN(Number(ve))?ht=ne:ve>=ze?ht=ze:ht=Number(ve),ht}function we(oe){return eo(oe)&&oe!==X&&eo(p)&&p>0}var Je=p>G?O:!1;function We(oe){(oe.keyCode===Ye.UP||oe.keyCode===Ye.DOWN)&&oe.preventDefault()}function lt(oe){var ve=Pe(oe);switch(ve!==ne&&be(ve),oe.keyCode){case Ye.ENTER:ue(ve);break;case Ye.UP:ue(ve-1);break;case Ye.DOWN:ue(ve+1);break}}function Z(oe){ue(Pe(oe))}function Oe(oe){var ve=Mt(oe,G,p),ze=X>ve&&ve!==0?ve:X;_(oe),be(ze),T==null||T(X,oe),j(ze),y==null||y(ze,oe)}function ue(oe){if(we(oe)&&!z){var ve=Mt(void 0,G,p),ze=oe;return oe>ve?ze=ve:oe<1&&(ze=1),ze!==ne&&be(ze),j(ze),y==null||y(ze,G),ze}return X}var Be=X>1,Te=X<Mt(void 0,G,p),Re=A??p>K;function He(){Be&&ue(X-1)}function je(){Te&&ue(X+1)}function Ke(){ue(Ne)}function st(){ue(Q)}function _e(oe,ve){if(oe.key==="Enter"||oe.charCode===Ye.ENTER||oe.keyCode===Ye.ENTER){for(var ze=arguments.length,ht=new Array(ze>2?ze-2:0),Kt=2;Kt<ze;Kt++)ht[Kt-2]=arguments[Kt];ve.apply(void 0,ht)}}function Ot(oe){_e(oe,He)}function ke(oe){_e(oe,je)}function Rt(oe){_e(oe,Ke)}function Qe(oe){_e(oe,st)}function ot(oe){var ve=de(oe,"prev",Ce(ee,"prev page"));return ie.isValidElement(ve)?ie.cloneElement(ve,{disabled:!Be}):ve}function at(oe){var ve=de(oe,"next",Ce(pe,"next page"));return ie.isValidElement(ve)?ie.cloneElement(ve,{disabled:!Te}):ve}function ut(oe){(oe.type==="click"||oe.keyCode===Ye.ENTER)&&ue(ne)}var ct=null,Ve=pn(t,{aria:!0,data:!0}),qe=L&&ie.createElement("li",{className:"".concat(o,"-total-text")},L(p,[p===0?0:(X-1)*G+1,X*G>p?p:X*G])),it=null,De=Mt(void 0,G,p);if(C&&p<=G)return null;var Me=[],Ze={rootPrefixCls:o,onClick:ue,onKeyPress:_e,showTitle:E,itemRender:de,page:-1},on=X-1>0?X-1:0,Wt=X+1<De?X+1:De,St=O&&O.goButton,se=gt(H)==="object"?H.readOnly:!H,he=St,Ee=null;H&&(St&&(typeof St=="boolean"?he=ie.createElement("button",{type:"button",onClick:ut,onKeyUp:ut},$.jump_to_confirm):he=ie.createElement("span",{onClick:ut,onKeyUp:ut},St),he=ie.createElement("li",{title:E?"".concat($.jump_to).concat(X,"/").concat(De):null,className:"".concat(o,"-simple-pager")},he)),Ee=ie.createElement("li",{title:E?"".concat(X,"/").concat(De):null,className:"".concat(o,"-simple-pager")},se?ne:ie.createElement("input",{type:"text",value:ne,disabled:z,onKeyDown:We,onKeyUp:lt,onChange:lt,onBlur:Z,size:3}),ie.createElement("span",{className:"".concat(o,"-slash")},"/"),De));var Ie=k?1:2;if(De<=3+Ie*2){De||Me.push(ie.createElement(cn,le({},Ze,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var Le=1;Le<=De;Le+=1)Me.push(ie.createElement(cn,le({},Ze,{key:Le,page:Le,active:X===Le})))}else{var Xe=k?$.prev_3:$.prev_5,ft=k?$.next_3:$.next_5,Ae=de(Ne,"jump-prev",Ce(ge,"prev page")),yn=de(Q,"jump-next",Ce($e,"next page"));I&&(ct=Ae?ie.createElement("li",{title:E?Xe:null,key:"prev",onClick:Ke,tabIndex:0,onKeyDown:Rt,className:q("".concat(o,"-jump-prev"),R({},"".concat(o,"-jump-prev-custom-icon"),!!ge))},Ae):null,it=yn?ie.createElement("li",{title:E?ft:null,key:"next",onClick:st,tabIndex:0,onKeyDown:Qe,className:q("".concat(o,"-jump-next"),R({},"".concat(o,"-jump-next-custom-icon"),!!$e))},yn):null);var Vt=Math.max(1,X-Ie),an=Math.min(X+Ie,De);X-1<=Ie&&(an=1+Ie*2),De-X<=Ie&&(Vt=De-Ie*2);for(var $t=Vt;$t<=an;$t+=1)Me.push(ie.createElement(cn,le({},Ze,{key:$t,page:$t,active:X===$t})));if(X-1>=Ie*2&&X!==3&&(Me[0]=ie.cloneElement(Me[0],{className:q("".concat(o,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(ct)),De-X>=Ie*2&&X!==De-2){var kt=Me[Me.length-1];Me[Me.length-1]=ie.cloneElement(kt,{className:q("".concat(o,"-item-before-jump-next"),kt.props.className)}),Me.push(it)}Vt!==1&&Me.unshift(ie.createElement(cn,le({},Ze,{key:1,page:1}))),an!==De&&Me.push(ie.createElement(cn,le({},Ze,{key:De,page:De})))}var pt=ot(on);if(pt){var ln=!Be||!De;pt=ie.createElement("li",{title:E?$.prev_page:null,onClick:He,tabIndex:ln?null:0,onKeyDown:Ot,className:q("".concat(o,"-prev"),R({},"".concat(o,"-disabled"),ln)),"aria-disabled":ln},pt)}var Pt=at(Wt);if(Pt){var Tt,Xt;H?(Tt=!Te,Xt=Be?0:null):(Tt=!Te||!De,Xt=Tt?null:0),Pt=ie.createElement("li",{title:E?$.next_page:null,onClick:je,tabIndex:Xt,onKeyDown:ke,className:q("".concat(o,"-next"),R({},"".concat(o,"-disabled"),Tt)),"aria-disabled":Tt},Pt)}var Hn=q(o,a,(r={},R(r,"".concat(o,"-start"),x==="start"),R(r,"".concat(o,"-center"),x==="center"),R(r,"".concat(o,"-end"),x==="end"),R(r,"".concat(o,"-simple"),H),R(r,"".concat(o,"-disabled"),z),r));return ie.createElement("ul",le({className:Hn,style:N,ref:ae},Ve),qe,pt,H?Ee:Me,Pt,ie.createElement(Kl,{locale:$,rootPrefixCls:o,disabled:z,selectComponentClass:i,selectPrefixCls:d,changeSize:Re?Oe:null,pageSize:G,pageSizeOptions:Y,quickGo:Je?ue:null,goButton:he}))};const ia=e=>s.createElement(Kn,Object.assign({},e,{showSearch:!0,size:"small"})),la=e=>s.createElement(Kn,Object.assign({},e,{showSearch:!0,size:"middle"}));ia.Option=Kn.Option;la.Option=Kn.Option;const Ml=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"}}}}}},zl=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(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:B(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:B(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),input:Object.assign(Object.assign({},gi(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Hl=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:B(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:B(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${B(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${B(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:`${B(e.inputOutlineOffset)} 0 ${B(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Ll=e=>{const{componentCls:t,antCls:r}=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,fontFamily:"Arial, Helvetica, sans-serif",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:`${B(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${B(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",[`${r}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:B(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vi(e)),hi(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},bi(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},jl=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${B(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}}}}},_l=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xt(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:B(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),jl(e)),Ll(e)),Hl(e)),zl(e)),Ml(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"}}},Al=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},fn(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},fn(e))}}}},sa=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},pi(e)),ca=e=>Lt(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"},mi(e)),Fl=en("Pagination",e=>{const t=ca(e);return[_l(t),Al(t)]},sa),Wl=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:`${B(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}}}}},Vl=yi(["Pagination","bordered"],e=>{const t=ca(e);return[Wl(t)]},sa);var Xl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const ql=e=>{const{align:t,prefixCls:r,selectPrefixCls:n,className:o,rootClassName:l,style:d,size:a,locale:i,selectComponentClass:c,responsive:f,showSizeChanger:u}=e,m=Xl(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=Xo(f),[,g]=Tn(),{getPrefixCls:b,direction:v,pagination:h={}}=s.useContext(mt),y=b("pagination",r),[C,x,S]=Fl(y),I=u??h.showSizeChanger,O=s.useMemo(()=>{const N=s.createElement("span",{className:`${y}-item-ellipsis`},"•••"),D=s.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?s.createElement(tr,null):s.createElement(Wr,null)),K=s.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?s.createElement(Wr,null):s.createElement(tr,null)),z=s.createElement("a",{className:`${y}-item-link`},s.createElement("div",{className:`${y}-item-container`},v==="rtl"?s.createElement(Qr,{className:`${y}-item-link-icon`}):s.createElement(Jr,{className:`${y}-item-link-icon`}),N)),H=s.createElement("a",{className:`${y}-item-link`},s.createElement("div",{className:`${y}-item-container`},v==="rtl"?s.createElement(Jr,{className:`${y}-item-link-icon`}):s.createElement(Qr,{className:`${y}-item-link-icon`}),N));return{prevIcon:D,nextIcon:K,jumpPrevIcon:z,jumpNextIcon:H}},[v,y]),[k]=Ci("Pagination",xi),w=Object.assign(Object.assign({},k),i),E=Do(a),M=E==="small"||!!(p&&!E&&f),T=b("select",n),P=q({[`${y}-${t}`]:!!t,[`${y}-mini`]:M,[`${y}-rtl`]:v==="rtl",[`${y}-bordered`]:g.wireframe},h==null?void 0:h.className,o,l,x,S),$=Object.assign(Object.assign({},h==null?void 0:h.style),d);return C(s.createElement(s.Fragment,null,g.wireframe&&s.createElement(Vl,{prefixCls:y}),s.createElement(Dl,Object.assign({},O,m,{style:$,prefixCls:y,selectPrefixCls:T,className:P,selectComponentClass:c||(M?ia:la),locale:w,showSizeChanger:I}))))};var Et={},hn="rc-table-internal-hook";function br(e){var t=s.createContext(void 0),r=function(o){var l=o.value,d=o.children,a=s.useRef(l);a.current=l;var i=s.useState(function(){return{getValue:function(){return a.current},listeners:new Set}}),c=ye(i,1),f=c[0];return Ht(function(){Si.unstable_batchedUpdates(function(){f.listeners.forEach(function(u){u(l)})})},[l]),s.createElement(t.Provider,{value:f},d)};return{Context:t,Provider:r,defaultValue:e}}function et(e,t){var r=yt(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var m={};return t.forEach(function(p){m[p]=u[p]}),m}),n=s.useContext(e==null?void 0:e.Context),o=n||{},l=o.listeners,d=o.getValue,a=s.useRef();a.current=r(n?d():e==null?void 0:e.defaultValue);var i=s.useState({}),c=ye(i,2),f=c[1];return Ht(function(){if(!n)return;function u(m){var p=r(m);mn(a.current,p,!0)||f({})}return l.add(u),function(){l.delete(u)}},[n]),a.current}function Gl(){var e=s.createContext(null);function t(){return s.useContext(e)}function r(o,l){var d=Lr(o),a=function(c,f){var u=d?{ref:f}:{},m=s.useRef(0),p=s.useRef(c),g=t();return g!==null?s.createElement(o,le({},c,u)):((!l||l(p.current,c))&&(m.current+=1),p.current=c,s.createElement(e.Provider,{value:m.current},s.createElement(o,le({},c,u))))};return d?s.forwardRef(a):a}function n(o,l){var d=Lr(o),a=function(c,f){var u=d?{ref:f}:{};return t(),s.createElement(o,le({},c,u))};return d?s.memo(s.forwardRef(a),l):s.memo(a,l)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var yr=Gl(),da=yr.makeImmutable,nn=yr.responseImmutable,Ul=yr.useImmutableMark,rt=br(),ua=s.createContext({renderWithProps:!1}),Yl="RC_TABLE_KEY";function Jl(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dn(e){var t=[],r={};return e.forEach(function(n){for(var o=n||{},l=o.key,d=o.dataIndex,a=l||Jl(d).join("-")||Yl;r[a];)a="".concat(a,"_next");r[a]=!0,t.push(a)}),t}function nr(e){return e!=null}function Ql(e){return e&>(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function Zl(e,t,r,n,o,l){var d=s.useContext(ua),a=Ul(),i=Mo(function(){if(nr(n))return[n];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],f=mr(e,c),u=f,m=void 0;if(o){var p=o(f,e,r);Ql(p)?(u=p.children,m=p.props,d.renderWithProps=!0):u=p}return[u,m]},[a,e,n,t,o,r],function(c,f){if(l){var u=ye(c,2),m=u[1],p=ye(f,2),g=p[1];return l(g,m)}return d.renderWithProps?!0:!mn(c,f,!0)});return i}function es(e,t,r,n){var o=e+t-1;return e<=n&&o>=r}function ts(e,t){return et(rt,function(r){var n=es(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var ns=function(t){var r=t.ellipsis,n=t.rowType,o=t.children,l,d=r===!0?{showTitle:!0}:r;return d&&(d.showTitle||n==="header")&&(typeof o=="string"||typeof o=="number"?l=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(l=o.props.children)),l};function rs(e){var t,r,n,o,l,d,a,i,c=e.component,f=e.children,u=e.ellipsis,m=e.scope,p=e.prefixCls,g=e.className,b=e.align,v=e.record,h=e.render,y=e.dataIndex,C=e.renderIndex,x=e.shouldCellUpdate,S=e.index,I=e.rowType,O=e.colSpan,k=e.rowSpan,w=e.fixLeft,E=e.fixRight,M=e.firstFixLeft,T=e.lastFixLeft,P=e.firstFixRight,$=e.lastFixRight,N=e.appendNode,D=e.additionalProps,K=D===void 0?{}:D,z=e.isSticky,H="".concat(p,"-cell"),L=et(rt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),A=L.supportSticky,Y=L.allColumnsFixedLeft,J=L.rowHoverable,de=Zl(v,y,C,f,h,x),ge=ye(de,2),$e=ge[0],ee=ge[1],pe={},ae=typeof w=="number"&&A,ce=typeof E=="number"&&A;ae&&(pe.position="sticky",pe.left=w),ce&&(pe.position="sticky",pe.right=E);var te=(t=(r=(n=ee==null?void 0:ee.colSpan)!==null&&n!==void 0?n:K.colSpan)!==null&&r!==void 0?r:O)!==null&&t!==void 0?t:1,G=(o=(l=(d=ee==null?void 0:ee.rowSpan)!==null&&d!==void 0?d:K.rowSpan)!==null&&l!==void 0?l:k)!==null&&o!==void 0?o:1,_=ts(S,G),V=ye(_,2),U=V[0],X=V[1],j=yt(function(Ce){var Pe;v&&X(S,S+G-1),K==null||(Pe=K.onMouseEnter)===null||Pe===void 0||Pe.call(K,Ce)}),re=yt(function(Ce){var Pe;v&&X(-1,-1),K==null||(Pe=K.onMouseLeave)===null||Pe===void 0||Pe.call(K,Ce)});if(te===0||G===0)return null;var xe=(a=K.title)!==null&&a!==void 0?a:ns({rowType:I,ellipsis:u,children:$e}),ne=q(H,g,(i={},R(i,"".concat(H,"-fix-left"),ae&&A),R(i,"".concat(H,"-fix-left-first"),M&&A),R(i,"".concat(H,"-fix-left-last"),T&&A),R(i,"".concat(H,"-fix-left-all"),T&&Y&&A),R(i,"".concat(H,"-fix-right"),ce&&A),R(i,"".concat(H,"-fix-right-first"),P&&A),R(i,"".concat(H,"-fix-right-last"),$&&A),R(i,"".concat(H,"-ellipsis"),u),R(i,"".concat(H,"-with-append"),N),R(i,"".concat(H,"-fix-sticky"),(ae||ce)&&z&&A),R(i,"".concat(H,"-row-hover"),!ee&&U),i),K.className,ee==null?void 0:ee.className),be={};b&&(be.textAlign=b);var Ne=W(W(W(W({},pe),K.style),be),ee==null?void 0:ee.style),Q=$e;return gt(Q)==="object"&&!Array.isArray(Q)&&!s.isValidElement(Q)&&(Q=null),u&&(T||P)&&(Q=s.createElement("span",{className:"".concat(H,"-content")},Q)),s.createElement(c,le({},ee,K,{className:ne,style:Ne,title:xe,scope:m,onMouseEnter:J?j:void 0,onMouseLeave:J?re:void 0,colSpan:te!==1?te:null,rowSpan:G!==1?G:null}),N,Q)}const Ft=s.memo(rs);function Cr(e,t,r,n,o){var l=r[e]||{},d=r[t]||{},a,i;l.fixed==="left"?a=n.left[o==="rtl"?t:e]:d.fixed==="right"&&(i=n.right[o==="rtl"?e:t]);var c=!1,f=!1,u=!1,m=!1,p=r[t+1],g=r[e-1],b=p&&!p.fixed||g&&!g.fixed||r.every(function(x){return x.fixed==="left"});if(o==="rtl"){if(a!==void 0){var v=g&&g.fixed==="left";m=!v&&b}else if(i!==void 0){var h=p&&p.fixed==="right";u=!h&&b}}else if(a!==void 0){var y=p&&p.fixed==="left";c=!y&&b}else if(i!==void 0){var C=g&&g.fixed==="right";f=!C&&b}return{fixLeft:a,fixRight:i,lastFixLeft:c,firstFixRight:f,lastFixRight:u,firstFixLeft:m,isSticky:n.isSticky}}var fa=s.createContext({});function os(e){var t=e.className,r=e.index,n=e.children,o=e.colSpan,l=o===void 0?1:o,d=e.rowSpan,a=e.align,i=et(rt,["prefixCls","direction"]),c=i.prefixCls,f=i.direction,u=s.useContext(fa),m=u.scrollColumnIndex,p=u.stickyOffsets,g=u.flattenColumns,b=r+l-1,v=b+1===m?l+1:l,h=Cr(r,r+v-1,g,p,f);return s.createElement(Ft,le({className:t,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,align:a,colSpan:v,rowSpan:d,render:function(){return n}},h))}var as=["children"];function is(e){var t=e.children,r=vt(e,as);return s.createElement("tr",r,t)}function Mn(e){var t=e.children;return t}Mn.Row=is;Mn.Cell=os;function ls(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,o=et(rt,"prefixCls"),l=n.length-1,d=n[l],a=s.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:d!=null&&d.scrollbar?l:null}},[d,n,l,r]);return s.createElement(fa.Provider,{value:a},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Sn=nn(ls);var pa=Mn;function ss(e){return null}function cs(e){return null}function ma(e,t,r,n,o,l,d){e.push({record:t,indent:r,index:d});var a=l(t),i=o==null?void 0:o.has(a);if(t&&Array.isArray(t[n])&&i)for(var c=0;c<t[n].length;c+=1)ma(e,t[n][c],r+1,n,o,l,c)}function ga(e,t,r,n){var o=s.useMemo(function(){if(r!=null&&r.size){for(var l=[],d=0;d<(e==null?void 0:e.length);d+=1){var a=e[d];ma(l,a,0,t,r,n,d)}return l}return e==null?void 0:e.map(function(i,c){return{record:i,indent:0,index:c}})},[e,t,r,n]);return o}function va(e,t,r,n){var o=et(rt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=o.flattenColumns,d=o.expandableType,a=o.expandedKeys,i=o.childrenColumnName,c=o.onTriggerExpand,f=o.rowExpandable,u=o.onRow,m=o.expandRowByClick,p=o.rowClassName,g=d==="nest",b=d==="row"&&(!f||f(e)),v=b||g,h=a&&a.has(t),y=i&&e&&e[i],C=yt(c),x=u==null?void 0:u(e,r),S=x==null?void 0:x.onClick,I=function(E){m&&v&&c(e,E);for(var M=arguments.length,T=new Array(M>1?M-1:0),P=1;P<M;P++)T[P-1]=arguments[P];S==null||S.apply(void 0,[E].concat(T))},O;typeof p=="string"?O=p:typeof p=="function"&&(O=p(e,r,n));var k=Dn(l);return W(W({},o),{},{columnsKey:k,nestExpandable:g,expanded:h,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:b,expandable:v,rowProps:W(W({},x),{},{className:q(O,x==null?void 0:x.className),onClick:I})})}function ha(e){var t=e.prefixCls,r=e.children,n=e.component,o=e.cellComponent,l=e.className,d=e.expanded,a=e.colSpan,i=e.isEmpty,c=et(rt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=c.scrollbarSize,u=c.fixHeader,m=c.fixColumn,p=c.componentWidth,g=c.horizonScroll,b=r;return(i?g&&p:m)&&(b=s.createElement("div",{style:{width:p-(u?f:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),s.createElement(n,{className:l,style:{display:d?null:"none"}},s.createElement(Ft,{component:o,prefixCls:t,colSpan:a},b))}function ba(e,t,r,n,o){var l=e.record,d=e.prefixCls,a=e.columnsKey,i=e.fixedInfoList,c=e.expandIconColumnIndex,f=e.nestExpandable,u=e.indentSize,m=e.expandIcon,p=e.expanded,g=e.hasNestChildren,b=e.onTriggerExpand,v=a[r],h=i[r],y;r===(c||0)&&f&&(y=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(u*n,"px")},className:"".concat(d,"-row-indent indent-level-").concat(n)}),m({prefixCls:d,expanded:p,expandable:g,record:l,onExpand:b})));var C;return t.onCell&&(C=t.onCell(l,o)),{key:v,fixedInfo:h,appendCellNode:y,additionalCellProps:C||{}}}function ds(e){var t=e.className,r=e.style,n=e.record,o=e.index,l=e.renderIndex,d=e.rowKey,a=e.indent,i=a===void 0?0:a,c=e.rowComponent,f=e.cellComponent,u=e.scopeCellComponent,m=va(n,d,o,i),p=m.prefixCls,g=m.flattenColumns,b=m.expandedRowClassName,v=m.expandedRowRender,h=m.rowProps,y=m.expanded,C=m.rowSupportExpand,x=s.useRef(!1);x.current||(x.current=y);var S=b&&b(n,o,i),I=s.createElement(c,le({},h,{"data-row-key":d,className:q(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(i),h==null?void 0:h.className,i>=1?S:""),style:W(W({},r),h==null?void 0:h.style)}),g.map(function(w,E){var M=w.render,T=w.dataIndex,P=w.className,$=ba(m,w,E,i,o),N=$.key,D=$.fixedInfo,K=$.appendCellNode,z=$.additionalCellProps;return s.createElement(Ft,le({className:P,ellipsis:w.ellipsis,align:w.align,scope:w.rowScope,component:w.rowScope?u:f,prefixCls:p,key:N,record:n,index:o,renderIndex:l,dataIndex:T,render:M,shouldCellUpdate:w.shouldCellUpdate},D,{appendNode:K,additionalProps:z}))})),O;if(C&&(x.current||y)){var k=v(n,o,i+1,y);O=s.createElement(ha,{expanded:y,className:q("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(i+1),S),prefixCls:p,component:c,cellComponent:f,colSpan:g.length,isEmpty:!1},k)}return s.createElement(s.Fragment,null,I,O)}const us=nn(ds);function fs(e){var t=e.columnKey,r=e.onColumnResize,n=s.useRef();return s.useEffect(function(){n.current&&r(t,n.current.offsetWidth)},[]),s.createElement(gr,{data:t},s.createElement("td",{ref:n,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ps(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(gr.Collection,{onBatchResize:function(l){l.forEach(function(d){var a=d.data,i=d.size;n(a,i.offsetWidth)})}},r.map(function(o){return s.createElement(fs,{key:o,columnKey:o,onColumnResize:n})})))}function ms(e){var t=e.data,r=e.measureColumnWidth,n=et(rt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=n.prefixCls,l=n.getComponent,d=n.onColumnResize,a=n.flattenColumns,i=n.getRowKey,c=n.expandedKeys,f=n.childrenColumnName,u=n.emptyNode,m=ga(t,f,c,i),p=s.useRef({renderWithProps:!1}),g=l(["body","wrapper"],"tbody"),b=l(["body","row"],"tr"),v=l(["body","cell"],"td"),h=l(["body","cell"],"th"),y;t.length?y=m.map(function(x,S){var I=x.record,O=x.indent,k=x.index,w=i(I,S);return s.createElement(us,{key:w,rowKey:w,record:I,index:S,renderIndex:k,rowComponent:b,cellComponent:v,scopeCellComponent:h,getRowKey:i,indent:O})}):y=s.createElement(ha,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:b,cellComponent:v,colSpan:a.length,isEmpty:!0},u);var C=Dn(a);return s.createElement(ua.Provider,{value:p.current},s.createElement(g,{className:"".concat(o,"-tbody")},r&&s.createElement(ps,{prefixCls:o,columnsKey:C,onColumnResize:d}),y))}const gs=nn(ms);var vs=["expandable"],un="RC_TABLE_INTERNAL_COL_DEFINE";function hs(e){var t=e.expandable,r=vt(e,vs),n;return"expandable"in e?n=W(W({},r),t):n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}var bs=["columnType"];function ya(e){for(var t=e.colWidths,r=e.columns,n=e.columCount,o=[],l=n||r.length,d=!1,a=l-1;a>=0;a-=1){var i=t[a],c=r&&r[a],f=c&&c[un];if(i||f||d){var u=f||{};u.columnType;var m=vt(u,bs);o.unshift(s.createElement("col",le({key:a,style:{width:i}},m))),d=!0}}return s.createElement("colgroup",null,o)}var ys=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Cs(e,t){return s.useMemo(function(){for(var r=[],n=0;n<t;n+=1){var o=e[n];if(o!==void 0)r[n]=o;else return null}return r},[e.join("_"),t])}var xs=s.forwardRef(function(e,t){var r=e.className,n=e.noData,o=e.columns,l=e.flattenColumns,d=e.colWidths,a=e.columCount,i=e.stickyOffsets,c=e.direction,f=e.fixHeader,u=e.stickyTopOffset,m=e.stickyBottomOffset,p=e.stickyClassName,g=e.onScroll,b=e.maxContentScroll,v=e.children,h=vt(e,ys),y=et(rt,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=y.prefixCls,x=y.scrollbarSize,S=y.isSticky,I=y.getComponent,O=I(["header","table"],"table"),k=S&&!f?0:x,w=s.useRef(null),E=s.useCallback(function(z){jr(t,z),jr(w,z)},[]);s.useEffect(function(){var z;function H(L){var A=L,Y=A.currentTarget,J=A.deltaX;J&&(g({currentTarget:Y,scrollLeft:Y.scrollLeft+J}),L.preventDefault())}return(z=w.current)===null||z===void 0||z.addEventListener("wheel",H,{passive:!1}),function(){var L;(L=w.current)===null||L===void 0||L.removeEventListener("wheel",H)}},[]);var M=s.useMemo(function(){return l.every(function(z){return z.width})},[l]),T=l[l.length-1],P={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},$=s.useMemo(function(){return k?[].concat(me(o),[P]):o},[k,o]),N=s.useMemo(function(){return k?[].concat(me(l),[P]):l},[k,l]),D=s.useMemo(function(){var z=i.right,H=i.left;return W(W({},i),{},{left:c==="rtl"?[].concat(me(H.map(function(L){return L+k})),[0]):H,right:c==="rtl"?z:[].concat(me(z.map(function(L){return L+k})),[0]),isSticky:S})},[k,i,S]),K=Cs(d,a);return s.createElement("div",{style:W({overflow:"hidden"},S?{top:u,bottom:m}:{}),ref:E,className:q(r,R({},p,!!p))},s.createElement(O,{style:{tableLayout:"fixed",visibility:n||K?null:"hidden"}},(!n||!b||M)&&s.createElement(ya,{colWidths:K?[].concat(me(K),[k]):[],columCount:a+1,columns:N}),v(W(W({},h),{},{stickyOffsets:D,columns:$,flattenColumns:N}))))});const to=s.memo(xs);var Ss=function(t){var r=t.cells,n=t.stickyOffsets,o=t.flattenColumns,l=t.rowComponent,d=t.cellComponent,a=t.onHeaderRow,i=t.index,c=et(rt,["prefixCls","direction"]),f=c.prefixCls,u=c.direction,m;a&&(m=a(r.map(function(g){return g.column}),i));var p=Dn(r.map(function(g){return g.column}));return s.createElement(l,m,r.map(function(g,b){var v=g.column,h=Cr(g.colStart,g.colEnd,o,n,u),y;return v&&v.onHeaderCell&&(y=g.column.onHeaderCell(v)),s.createElement(Ft,le({},g,{scope:v.title?g.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:d,prefixCls:f,key:p[b]},h,{additionalProps:y,rowType:"header"}))}))};function $s(e){var t=[];function r(d,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];var c=a,f=d.filter(Boolean).map(function(u){var m={key:u.key,className:u.className||"",children:u.title,column:u,colStart:c},p=1,g=u.children;return g&&g.length>0&&(p=r(g,c,i+1).reduce(function(b,v){return b+v},0),m.hasSubColumns=!0),"colSpan"in u&&(p=u.colSpan),"rowSpan"in u&&(m.rowSpan=u.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[i].push(m),c+=p,p});return f}r(e,0);for(var n=t.length,o=function(a){t[a].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=n-a)})},l=0;l<n;l+=1)o(l);return t}var ws=function(t){var r=t.stickyOffsets,n=t.columns,o=t.flattenColumns,l=t.onHeaderRow,d=et(rt,["prefixCls","getComponent"]),a=d.prefixCls,i=d.getComponent,c=s.useMemo(function(){return $s(n)},[n]),f=i(["header","wrapper"],"thead"),u=i(["header","row"],"tr"),m=i(["header","cell"],"th");return s.createElement(f,{className:"".concat(a,"-thead")},c.map(function(p,g){var b=s.createElement(Ss,{key:g,flattenColumns:o,cells:p,stickyOffsets:r,rowComponent:u,cellComponent:m,onHeaderRow:l,index:g});return b}))};const no=nn(ws);function ro(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 Es(e,t,r){return s.useMemo(function(){if(t&&t>0){var n=0,o=0;e.forEach(function(m){var p=ro(t,m.width);p?n+=p:o+=1});var l=Math.max(t,r),d=Math.max(l-n,o),a=o,i=d/o,c=0,f=e.map(function(m){var p=W({},m),g=ro(t,p.width);if(g)p.width=g;else{var b=Math.floor(i);p.width=a===1?d:b,d-=b,a-=1}return c+=p.width,p});if(c<l){var u=l/c;d=l,f.forEach(function(m,p){var g=Math.floor(m.width*u);m.width=p===f.length-1?d:g,d-=g})}return[f,Math.max(c,l)]}return[e,t]},[e,t,r])}var Is=["children"],Ns=["fixed"];function xr(e){return pr(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var r=t.key,n=t.props,o=n.children,l=vt(n,Is),d=W({key:r},l);return o&&(d.children=xr(o)),d})}function Ca(e){return e.filter(function(t){return t&>(t)==="object"&&!t.hidden}).map(function(t){var r=t.children;return r&&r.length>0?W(W({},t),{},{children:Ca(r)}):t})}function rr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&>(r)==="object"}).reduce(function(r,n,o){var l=n.fixed,d=l===!0?"left":l,a="".concat(t,"-").concat(o),i=n.children;return i&&i.length>0?[].concat(me(r),me(rr(i,a).map(function(c){return W({fixed:d},c)}))):[].concat(me(r),[W(W({key:a},n),{},{fixed:d})])},[])}function Os(e){return e.map(function(t){var r=t.fixed,n=vt(t,Ns),o=r;return r==="left"?o="right":r==="right"&&(o="left"),W({fixed:o},n)})}function Rs(e,t){var r=e.prefixCls,n=e.columns,o=e.children,l=e.expandable,d=e.expandedKeys,a=e.columnTitle,i=e.getRowKey,c=e.onTriggerExpand,f=e.expandIcon,u=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,g=e.expandRowByClick,b=e.columnWidth,v=e.fixed,h=e.scrollWidth,y=e.clientWidth,C=s.useMemo(function(){var T=n||xr(o)||[];return Ca(T.slice())},[n,o]),x=s.useMemo(function(){if(l){var T,P=C.slice();if(!P.includes(Et)){var $=m||0;$>=0&&P.splice($,0,Et)}var N=P.indexOf(Et);P=P.filter(function(H,L){return H!==Et||L===N});var D=C[N],K;(v==="left"||v)&&!m?K="left":(v==="right"||v)&&m===C.length?K="right":K=D?D.fixed:null;var z=(T={},R(T,un,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),R(T,"title",a),R(T,"fixed",K),R(T,"className","".concat(r,"-row-expand-icon-cell")),R(T,"width",b),R(T,"render",function(L,A,Y){var J=i(A,Y),de=d.has(J),ge=u?u(A):!0,$e=f({prefixCls:r,expanded:de,expandable:ge,record:A,onExpand:c});return g?s.createElement("span",{onClick:function(pe){return pe.stopPropagation()}},$e):$e}),T);return P.map(function(H){return H===Et?z:H})}return C.filter(function(H){return H!==Et})},[l,C,i,d,f,p]),S=s.useMemo(function(){var T=x;return t&&(T=t(T)),T.length||(T=[{render:function(){return null}}]),T},[t,x,p]),I=s.useMemo(function(){return p==="rtl"?Os(rr(S)):rr(S)},[S,p,h]),O=s.useMemo(function(){for(var T=-1,P=I.length-1;P>=0;P-=1){var $=I[P].fixed;if($==="left"||$===!0){T=P;break}}if(T>=0)for(var N=0;N<=T;N+=1){var D=I[N].fixed;if(D!=="left"&&D!==!0)return!0}var K=I.findIndex(function(L){var A=L.fixed;return A==="right"});if(K>=0)for(var z=K;z<I.length;z+=1){var H=I[z].fixed;if(H!=="right")return!0}return!1},[I]),k=Es(I,h,y),w=ye(k,2),E=w[0],M=w[1];return[S,E,M,O]}function ks(e){var t,r=e.prefixCls,n=e.record,o=e.onExpand,l=e.expanded,d=e.expandable,a="".concat(r,"-row-expand-icon");if(!d)return s.createElement("span",{className:q(a,"".concat(r,"-row-spaced"))});var i=function(f){o(n,f),f.stopPropagation()};return s.createElement("span",{className:q(a,(t={},R(t,"".concat(r,"-row-expanded"),l),R(t,"".concat(r,"-row-collapsed"),!l),t)),onClick:i})}function Ps(e,t,r){var n=[];function o(l){(l||[]).forEach(function(d,a){n.push(t(d,a)),o(d[r])})}return o(e),n}function Ts(e,t,r){var n=hs(e),o=n.expandIcon,l=n.expandedRowKeys,d=n.defaultExpandedRowKeys,a=n.defaultExpandAllRows,i=n.expandedRowRender,c=n.onExpand,f=n.onExpandedRowsChange,u=n.childrenColumnName,m=o||ks,p=u||"children",g=s.useMemo(function(){return i?"row":e.expandable&&e.internalHooks===hn&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&>(S)==="object"&&S[p]})?"nest":!1},[!!i,t]),b=s.useState(function(){return d||(a?Ps(t,r,p):[])}),v=ye(b,2),h=v[0],y=v[1],C=s.useMemo(function(){return new Set(l||h||[])},[l,h]),x=s.useCallback(function(S){var I=r(S,t.indexOf(S)),O,k=C.has(I);k?(C.delete(I),O=me(C)):O=[].concat(me(C),[I]),y(O),c&&c(!k,S),f&&f(O)},[r,C,t,c,f]);return[n,g,C,m,p,x]}function Ks(e,t,r){var n=e.map(function(o,l){return Cr(l,l,e,t,r)});return Mo(function(){return n},[n],function(o,l){return!mn(o,l)})}function xa(e){var t=s.useRef(e),r=s.useState({}),n=ye(r,2),o=n[1],l=s.useRef(null),d=s.useRef([]);function a(i){d.current.push(i);var c=Promise.resolve();l.current=c,c.then(function(){if(l.current===c){var f=d.current,u=t.current;d.current=[],f.forEach(function(m){t.current=m(t.current)}),l.current=null,u!==t.current&&o({})}})}return s.useEffect(function(){return function(){l.current=null}},[]),[t.current,a]}function Bs(e){var t=s.useRef(null),r=s.useRef();function n(){window.clearTimeout(r.current)}function o(d){t.current=d,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function l(){return t.current}return s.useEffect(function(){return n},[]),[o,l]}function Ds(){var e=s.useState(-1),t=ye(e,2),r=t[0],n=t[1],o=s.useState(-1),l=ye(o,2),d=l[0],a=l[1],i=s.useCallback(function(c,f){n(c),a(f)},[]);return[r,d,i]}var oo=Ro()?window:null;function Ms(e,t){var r=gt(e)==="object"?e:{},n=r.offsetHeader,o=n===void 0?0:n,l=r.offsetSummary,d=l===void 0?0:l,a=r.offsetScroll,i=a===void 0?0:a,c=r.getContainer,f=c===void 0?function(){return oo}:c,u=f()||oo;return s.useMemo(function(){var m=!!e;return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:d,offsetScroll:i,container:u}},[i,o,d,t,u])}function zs(e,t,r){var n=s.useMemo(function(){var o=t.length,l=function(c,f,u){for(var m=[],p=0,g=c;g!==f;g+=u)m.push(p),t[g].fixed&&(p+=e[g]||0);return m},d=l(0,o,1),a=l(o-1,-1,-1).reverse();return r==="rtl"?{left:a,right:d}:{left:d,right:a}},[e,t,r]);return n}function ao(e){var t=e.className,r=e.children;return s.createElement("div",{className:t},r)}var Hs=function(t,r){var n,o,l=t.scrollBodyRef,d=t.onScroll,a=t.offsetScroll,i=t.container,c=et(rt,"prefixCls"),f=((n=l.current)===null||n===void 0?void 0:n.scrollWidth)||0,u=((o=l.current)===null||o===void 0?void 0:o.clientWidth)||0,m=f&&u*(u/f),p=s.useRef(),g=xa({scrollLeft:0,isHiddenScrollBar:!1}),b=ye(g,2),v=b[0],h=b[1],y=s.useRef({delta:0,x:0}),C=s.useState(!1),x=ye(C,2),S=x[0],I=x[1],O=s.useRef(null);s.useEffect(function(){return function(){wn.cancel(O.current)}},[]);var k=function(){I(!1)},w=function($){$.persist(),y.current.delta=$.pageX-v.scrollLeft,y.current.x=0,I(!0),$.preventDefault()},E=function($){var N,D=$||((N=window)===null||N===void 0?void 0:N.event),K=D.buttons;if(!S||K===0){S&&I(!1);return}var z=y.current.x+$.pageX-y.current.x-y.current.delta;z<=0&&(z=0),z+m>=u&&(z=u-m),d({scrollLeft:z/u*(f+2)}),y.current.x=$.pageX},M=function(){O.current=wn(function(){if(l.current){var $=Yr(l.current).top,N=$+l.current.offsetHeight,D=i===window?document.documentElement.scrollTop+window.innerHeight:Yr(i).top+i.clientHeight;N-_r()<=D||$>=D-a?h(function(K){return W(W({},K),{},{isHiddenScrollBar:!0})}):h(function(K){return W(W({},K),{},{isHiddenScrollBar:!1})})}})},T=function($){h(function(N){return W(W({},N),{},{scrollLeft:$/f*u||0})})};return s.useImperativeHandle(r,function(){return{setScrollLeft:T,checkScrollBarVisible:M}}),s.useEffect(function(){var P=xn(document.body,"mouseup",k,!1),$=xn(document.body,"mousemove",E,!1);return M(),function(){P.remove(),$.remove()}},[m,S]),s.useEffect(function(){var P=xn(i,"scroll",M,!1),$=xn(window,"resize",M,!1);return function(){P.remove(),$.remove()}},[i]),s.useEffect(function(){v.isHiddenScrollBar||h(function(P){var $=l.current;return $?W(W({},P),{},{scrollLeft:$.scrollLeft/$.scrollWidth*$.clientWidth}):P})},[v.isHiddenScrollBar]),f<=u||!m||v.isHiddenScrollBar?null:s.createElement("div",{style:{height:_r(),width:u,bottom:a},className:"".concat(c,"-sticky-scroll")},s.createElement("div",{onMouseDown:w,ref:p,className:q("".concat(c,"-sticky-scroll-bar"),R({},"".concat(c,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const Ls=s.forwardRef(Hs);var Sa="rc-table",js=[],_s={};function As(){return"No Data"}function Fs(e,t){var r,n=W({rowKey:"key",prefixCls:Sa,emptyText:As},e),o=n.prefixCls,l=n.className,d=n.rowClassName,a=n.style,i=n.data,c=n.rowKey,f=n.scroll,u=n.tableLayout,m=n.direction,p=n.title,g=n.footer,b=n.summary,v=n.caption,h=n.id,y=n.showHeader,C=n.components,x=n.emptyText,S=n.onRow,I=n.onHeaderRow,O=n.onScroll,k=n.internalHooks,w=n.transformColumns,E=n.internalRefs,M=n.tailor,T=n.getContainerWidth,P=n.sticky,$=n.rowHoverable,N=$===void 0?!0:$,D=i||js,K=!!D.length,z=k===hn,H=s.useCallback(function(fe,Se){return mr(C,fe)||Se},[C]),L=s.useMemo(function(){return typeof c=="function"?c:function(fe){var Se=fe&&fe[c];return Se}},[c]),A=H(["body"]),Y=Ds(),J=ye(Y,3),de=J[0],ge=J[1],$e=J[2],ee=Ts(n,D,L),pe=ye(ee,6),ae=pe[0],ce=pe[1],te=pe[2],G=pe[3],_=pe[4],V=pe[5],U=f==null?void 0:f.x,X=s.useState(0),j=ye(X,2),re=j[0],xe=j[1],ne=Rs(W(W(W({},n),ae),{},{expandable:!!ae.expandedRowRender,columnTitle:ae.columnTitle,expandedKeys:te,getRowKey:L,onTriggerExpand:V,expandIcon:G,expandIconColumnIndex:ae.expandIconColumnIndex,direction:m,scrollWidth:z&&M&&typeof U=="number"?U:null,clientWidth:re}),z?w:null),be=ye(ne,4),Ne=be[0],Q=be[1],Ce=be[2],Pe=be[3],we=Ce??U,Je=s.useMemo(function(){return{columns:Ne,flattenColumns:Q}},[Ne,Q]),We=s.useRef(),lt=s.useRef(),Z=s.useRef(),Oe=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:We.current,scrollTo:function(Se){var Ge;if(Z.current instanceof HTMLElement){var dt=Se.index,Ue=Se.top,qt=Se.key;if(Ue){var Bt;(Bt=Z.current)===null||Bt===void 0||Bt.scrollTo({top:Ue})}else{var Dt,sn=qt??L(D[dt]);(Dt=Z.current.querySelector('[data-row-key="'.concat(sn,'"]')))===null||Dt===void 0||Dt.scrollIntoView()}}else(Ge=Z.current)!==null&&Ge!==void 0&&Ge.scrollTo&&Z.current.scrollTo(Se)}}});var ue=s.useRef(),Be=s.useState(!1),Te=ye(Be,2),Re=Te[0],He=Te[1],je=s.useState(!1),Ke=ye(je,2),st=Ke[0],_e=Ke[1],Ot=xa(new Map),ke=ye(Ot,2),Rt=ke[0],Qe=ke[1],ot=Dn(Q),at=ot.map(function(fe){return Rt.get(fe)}),ut=s.useMemo(function(){return at},[at.join("_")]),ct=zs(ut,Q,m),Ve=f&&nr(f.y),qe=f&&nr(we)||!!ae.fixed,it=qe&&Q.some(function(fe){var Se=fe.fixed;return Se}),De=s.useRef(),Me=Ms(P,o),Ze=Me.isSticky,on=Me.offsetHeader,Wt=Me.offsetSummary,St=Me.offsetScroll,se=Me.stickyClassName,he=Me.container,Ee=s.useMemo(function(){return b==null?void 0:b(D)},[b,D]),Ie=(Ve||Ze)&&s.isValidElement(Ee)&&Ee.type===Mn&&Ee.props.fixed,Le,Xe,ft;Ve&&(Xe={overflowY:"scroll",maxHeight:f.y}),qe&&(Le={overflowX:"auto"},Ve||(Xe={overflowY:"hidden"}),ft={width:we===!0?"auto":we,minWidth:"100%"});var Ae=s.useCallback(function(fe,Se){$i(We.current)&&Qe(function(Ge){if(Ge.get(fe)!==Se){var dt=new Map(Ge);return dt.set(fe,Se),dt}return Ge})},[]),yn=Bs(),Vt=ye(yn,2),an=Vt[0],$t=Vt[1];function kt(fe,Se){Se&&(typeof Se=="function"?Se(fe):Se.scrollLeft!==fe&&(Se.scrollLeft=fe,Se.scrollLeft!==fe&&setTimeout(function(){Se.scrollLeft=fe},0)))}var pt=yt(function(fe){var Se=fe.currentTarget,Ge=fe.scrollLeft,dt=m==="rtl",Ue=typeof Ge=="number"?Ge:Se.scrollLeft,qt=Se||_s;if(!$t()||$t()===qt){var Bt;an(qt),kt(Ue,lt.current),kt(Ue,Z.current),kt(Ue,ue.current),kt(Ue,(Bt=De.current)===null||Bt===void 0?void 0:Bt.setScrollLeft)}var Dt=Se||lt.current;if(Dt){var sn=Dt.scrollWidth,Fn=Dt.clientWidth;if(sn===Fn){He(!1),_e(!1);return}dt?(He(-Ue<sn-Fn),_e(-Ue>0)):(He(Ue>0),_e(Ue<sn-Fn))}}),ln=yt(function(fe){pt(fe),O==null||O(fe)}),Pt=function(){qe&&Z.current?pt({currentTarget:Z.current}):(He(!1),_e(!1))},Tt=function(Se){var Ge,dt=Se.width;(Ge=De.current)===null||Ge===void 0||Ge.checkScrollBarVisible();var Ue=We.current?We.current.offsetWidth:dt;z&&T&&We.current&&(Ue=T(We.current,Ue)||Ue),Ue!==re&&(Pt(),xe(Ue))},Xt=s.useRef(!1);s.useEffect(function(){Xt.current&&Pt()},[qe,i,Ne.length]),s.useEffect(function(){Xt.current=!0},[]);var Hn=s.useState(0),oe=ye(Hn,2),ve=oe[0],ze=oe[1],ht=s.useState(!0),Kt=ye(ht,2),Or=Kt[0],ja=Kt[1];s.useEffect(function(){(!M||!z)&&(Z.current instanceof Element?ze(Ar(Z.current).width):ze(Ar(Oe.current).width)),ja(Vi("position","sticky"))},[]),s.useEffect(function(){z&&E&&(E.body.current=Z.current)});var _a=s.useCallback(function(fe){return s.createElement(s.Fragment,null,s.createElement(no,fe),Ie==="top"&&s.createElement(Sn,fe,Ee))},[Ie,Ee]),Aa=s.useCallback(function(fe){return s.createElement(Sn,fe,Ee)},[Ee]),Rr=H(["table"],"table"),Cn=s.useMemo(function(){return u||(it?we==="max-content"?"auto":"fixed":Ve||Ze||Q.some(function(fe){var Se=fe.ellipsis;return Se})?"fixed":"auto")},[Ve,it,Q,u,Ze]),Ln,jn={colWidths:ut,columCount:Q.length,stickyOffsets:ct,onHeaderRow:I,fixHeader:Ve,scroll:f},kr=s.useMemo(function(){return K?null:typeof x=="function"?x():x},[K,x]),Pr=s.createElement(gs,{data:D,measureColumnWidth:Ve||qe||Ze}),Tr=s.createElement(ya,{colWidths:Q.map(function(fe){var Se=fe.width;return Se}),columns:Q}),Kr=v!=null?s.createElement("caption",{className:"".concat(o,"-caption")},v):void 0,Fa=pn(n,{data:!0}),Br=pn(n,{aria:!0});if(Ve||Ze){var _n;typeof A=="function"?(_n=A(D,{scrollbarSize:ve,ref:Z,onScroll:pt}),jn.colWidths=Q.map(function(fe,Se){var Ge=fe.width,dt=Se===Q.length-1?Ge-ve:Ge;return typeof dt=="number"&&!Number.isNaN(dt)?dt:0})):_n=s.createElement("div",{style:W(W({},Le),Xe),onScroll:ln,ref:Z,className:q("".concat(o,"-body"))},s.createElement(Rr,le({style:W(W({},ft),{},{tableLayout:Cn})},Br),Kr,Tr,Pr,!Ie&&Ee&&s.createElement(Sn,{stickyOffsets:ct,flattenColumns:Q},Ee)));var Dr=W(W(W({noData:!D.length,maxContentScroll:qe&&we==="max-content"},jn),Je),{},{direction:m,stickyClassName:se,onScroll:pt});Ln=s.createElement(s.Fragment,null,y!==!1&&s.createElement(to,le({},Dr,{stickyTopOffset:on,className:"".concat(o,"-header"),ref:lt}),_a),_n,Ie&&Ie!=="top"&&s.createElement(to,le({},Dr,{stickyBottomOffset:Wt,className:"".concat(o,"-summary"),ref:ue}),Aa),Ze&&Z.current&&Z.current instanceof Element&&s.createElement(Ls,{ref:De,offsetScroll:St,scrollBodyRef:Z,onScroll:pt,container:he}))}else Ln=s.createElement("div",{style:W(W({},Le),Xe),className:q("".concat(o,"-content")),onScroll:pt,ref:Z},s.createElement(Rr,le({style:W(W({},ft),{},{tableLayout:Cn})},Br),Kr,Tr,y!==!1&&s.createElement(no,le({},jn,Je)),Pr,Ee&&s.createElement(Sn,{stickyOffsets:ct,flattenColumns:Q},Ee)));var An=s.createElement("div",le({className:q(o,l,(r={},R(r,"".concat(o,"-rtl"),m==="rtl"),R(r,"".concat(o,"-ping-left"),Re),R(r,"".concat(o,"-ping-right"),st),R(r,"".concat(o,"-layout-fixed"),u==="fixed"),R(r,"".concat(o,"-fixed-header"),Ve),R(r,"".concat(o,"-fixed-column"),it),R(r,"".concat(o,"-fixed-column-gapped"),it&&Pe),R(r,"".concat(o,"-scroll-horizontal"),qe),R(r,"".concat(o,"-has-fix-left"),Q[0]&&Q[0].fixed),R(r,"".concat(o,"-has-fix-right"),Q[Q.length-1]&&Q[Q.length-1].fixed==="right"),r)),style:a,id:h,ref:We},Fa),p&&s.createElement(ao,{className:"".concat(o,"-title")},p(D)),s.createElement("div",{ref:Oe,className:"".concat(o,"-container")},Ln),g&&s.createElement(ao,{className:"".concat(o,"-footer")},g(D)));qe&&(An=s.createElement(gr,{onResize:Tt},An));var Mr=Ks(Q,ct,m),Wa=s.useMemo(function(){return{scrollX:we,prefixCls:o,getComponent:H,scrollbarSize:ve,direction:m,fixedInfoList:Mr,isSticky:Ze,supportSticky:Or,componentWidth:re,fixHeader:Ve,fixColumn:it,horizonScroll:qe,tableLayout:Cn,rowClassName:d,expandedRowClassName:ae.expandedRowClassName,expandIcon:G,expandableType:ce,expandRowByClick:ae.expandRowByClick,expandedRowRender:ae.expandedRowRender,onTriggerExpand:V,expandIconColumnIndex:ae.expandIconColumnIndex,indentSize:ae.indentSize,allColumnsFixedLeft:Q.every(function(fe){return fe.fixed==="left"}),emptyNode:kr,columns:Ne,flattenColumns:Q,onColumnResize:Ae,hoverStartRow:de,hoverEndRow:ge,onHover:$e,rowExpandable:ae.rowExpandable,onRow:S,getRowKey:L,expandedKeys:te,childrenColumnName:_,rowHoverable:N}},[we,o,H,ve,m,Mr,Ze,Or,re,Ve,it,qe,Cn,d,ae.expandedRowClassName,G,ce,ae.expandRowByClick,ae.expandedRowRender,V,ae.expandIconColumnIndex,ae.indentSize,kr,Ne,Q,Ae,de,ge,$e,ae.rowExpandable,S,L,te,_,N]);return s.createElement(rt.Provider,{value:Wa},An)}var Ws=s.forwardRef(Fs);function $a(e){return da(Ws,e)}var rn=$a();rn.EXPAND_COLUMN=Et;rn.INTERNAL_HOOKS=hn;rn.Column=ss;rn.ColumnGroup=cs;rn.Summary=pa;var Sr=br(null),wa=br(null);function Vs(e,t,r){var n=t||1;return r[e+n]-(r[e]||0)}function Xs(e){var t=e.rowInfo,r=e.column,n=e.colIndex,o=e.indent,l=e.index,d=e.component,a=e.renderIndex,i=e.record,c=e.style,f=e.className,u=e.inverse,m=e.getHeight,p=r.render,g=r.dataIndex,b=r.className,v=r.width,h=et(wa,["columnsOffset"]),y=h.columnsOffset,C=ba(t,r,n,o,l),x=C.key,S=C.fixedInfo,I=C.appendCellNode,O=C.additionalCellProps,k=O.style,w=O.colSpan,E=w===void 0?1:w,M=O.rowSpan,T=M===void 0?1:M,P=n-1,$=Vs(P,E,y),N=E>1?v-$:0,D=W(W(W({},k),c),{},{flex:"0 0 ".concat($,"px"),width:"".concat($,"px"),marginRight:N,pointerEvents:"auto"}),K=s.useMemo(function(){return u?T<=1:E===0||T===0||T>1},[T,E,u]);K?D.visibility="hidden":u&&(D.height=m==null?void 0:m(T));var z=K?function(){return null}:p,H={};return(T===0||E===0)&&(H.rowSpan=1,H.colSpan=1),s.createElement(Ft,le({className:q(b,f),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:d,prefixCls:t.prefixCls,key:x,record:i,index:l,renderIndex:a,dataIndex:g,render:z,shouldCellUpdate:r.shouldCellUpdate},S,{appendNode:I,additionalProps:W(W({},O),{},{style:D},H)}))}var qs=["data","index","className","rowKey","style","extra","getHeight"],Gs=s.forwardRef(function(e,t){var r=e.data,n=e.index,o=e.className,l=e.rowKey,d=e.style,a=e.extra,i=e.getHeight,c=vt(e,qs),f=r.record,u=r.indent,m=r.index,p=et(rt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=p.scrollX,b=p.flattenColumns,v=p.prefixCls,h=p.fixColumn,y=p.componentWidth,C=et(Sr,["getComponent"]),x=C.getComponent,S=va(f,l,n,u),I=x(["body","row"],"div"),O=x(["body","cell"],"div"),k=S.rowSupportExpand,w=S.expanded,E=S.rowProps,M=S.expandedRowRender,T=S.expandedRowClassName,P;if(k&&w){var $=M(f,n,u+1,w),N=T==null?void 0:T(f,n,u),D={};h&&(D={style:R({},"--virtual-width","".concat(y,"px"))});var K="".concat(v,"-expanded-row-cell");P=s.createElement(I,{className:q("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(u+1),N)},s.createElement(Ft,{component:O,prefixCls:v,className:q(K,R({},"".concat(K,"-fixed"),h)),additionalProps:D},$))}var z=W(W({},d),{},{width:g});a&&(z.position="absolute",z.pointerEvents="none");var H=s.createElement(I,le({},E,c,{"data-row-key":l,ref:k?null:t,className:q(o,"".concat(v,"-row"),E==null?void 0:E.className,R({},"".concat(v,"-row-extra"),a)),style:W(W({},z),E==null?void 0:E.style)}),b.map(function(L,A){return s.createElement(Xs,{key:A,component:O,rowInfo:S,column:L,colIndex:A,indent:u,index:n,renderIndex:m,record:f,inverse:a,getHeight:i})}));return k?s.createElement("div",{ref:t},H,P):H}),io=nn(Gs),Us=s.forwardRef(function(e,t){var r=e.data,n=e.onScroll,o=et(rt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),l=o.flattenColumns,d=o.onColumnResize,a=o.getRowKey,i=o.expandedKeys,c=o.prefixCls,f=o.childrenColumnName,u=o.emptyNode,m=o.scrollX,p=et(Sr),g=p.sticky,b=p.scrollY,v=p.listItemHeight,h=p.getComponent,y=p.onScroll,C=s.useRef(),x=ga(r,f,i,a),S=s.useMemo(function(){var D=0;return l.map(function(K){var z=K.width,H=K.key;return D+=z,[H,z,D]})},[l]),I=s.useMemo(function(){return S.map(function(D){return D[2]})},[S]);s.useEffect(function(){S.forEach(function(D){var K=ye(D,2),z=K[0],H=K[1];d(z,H)})},[S]),s.useImperativeHandle(t,function(){var D={scrollTo:function(z){var H;(H=C.current)===null||H===void 0||H.scrollTo(z)}};return Object.defineProperty(D,"scrollLeft",{get:function(){var z;return((z=C.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var H;(H=C.current)===null||H===void 0||H.scrollTo({left:z})}}),D});var O=function(K,z){var H,L=(H=x[z])===null||H===void 0?void 0:H.record,A=K.onCell;if(A){var Y,J=A(L,z);return(Y=J==null?void 0:J.rowSpan)!==null&&Y!==void 0?Y:1}return 1},k=function(K){var z=K.start,H=K.end,L=K.getSize,A=K.offsetY;if(H<0)return null;for(var Y=l.filter(function(V){return O(V,z)===0}),J=z,de=function(U){if(Y=Y.filter(function(X){return O(X,U)===0}),!Y.length)return J=U,1},ge=z;ge>=0&&!de(ge);ge-=1);for(var $e=l.filter(function(V){return O(V,H)!==1}),ee=H,pe=function(U){if($e=$e.filter(function(X){return O(X,U)!==1}),!$e.length)return ee=Math.max(U-1,H),1},ae=H;ae<x.length&&!pe(ae);ae+=1);for(var ce=[],te=function(U){var X=x[U];if(!X)return 1;l.some(function(j){return O(j,U)>1})&&ce.push(U)},G=J;G<=ee;G+=1)te(G);var _=ce.map(function(V){var U=x[V],X=a(U.record,V),j=function(ne){var be=V+ne-1,Ne=a(x[be].record,be),Q=L(X,Ne);return Q.bottom-Q.top},re=L(X);return s.createElement(io,{key:V,data:U,rowKey:X,index:V,style:{top:-A+re.top},extra:!0,getHeight:j})});return _},w=s.useMemo(function(){return{columnsOffset:I}},[I]),E="".concat(c,"-tbody"),M=h(["body","wrapper"]),T=h(["body","row"],"div"),P=h(["body","cell"],"div"),$;if(x.length){var N={};g&&(N.position="sticky",N.bottom=0,gt(g)==="object"&&g.offsetScroll&&(N.bottom=g.offsetScroll)),$=s.createElement(zo,{fullHeight:!1,ref:C,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:N},className:E,height:b,itemHeight:v||24,data:x,itemKey:function(K){return a(K.record)},component:M,scrollWidth:m,onVirtualScroll:function(K){var z=K.x;n({scrollLeft:z})},onScroll:y,extraRender:k},function(D,K,z){var H=a(D.record,K);return s.createElement(io,{data:D,rowKey:H,index:K,style:z.style})})}else $=s.createElement(T,{className:q("".concat(c,"-placeholder"))},s.createElement(Ft,{component:P,prefixCls:c},u));return s.createElement(wa.Provider,{value:w},$)}),Ys=nn(Us),Js=function(t,r){var n=r.ref,o=r.onScroll;return s.createElement(Ys,{ref:n,data:t,onScroll:o})};function Qs(e,t){var r=e.columns,n=e.scroll,o=e.sticky,l=e.prefixCls,d=l===void 0?Sa:l,a=e.className,i=e.listItemHeight,c=e.components,f=e.onScroll,u=n||{},m=u.x,p=u.y;typeof m!="number"&&(m=1),typeof p!="number"&&(p=500);var g=yt(function(h,y){return mr(c,h)||y}),b=yt(f),v=s.useMemo(function(){return{sticky:o,scrollY:p,listItemHeight:i,getComponent:g,onScroll:b}},[o,p,i,g,b]);return s.createElement(Sr.Provider,{value:v},s.createElement(rn,le({},e,{className:q(a,"".concat(d,"-virtual")),scroll:W(W({},n),{},{x:m}),components:W(W({},c),{},{body:Js}),columns:r,internalHooks:hn,tailor:!0,ref:t})))}var Zs=s.forwardRef(Qs);function Ea(e){return da(Zs,e)}Ea();function ec(e){return null}function tc(e){return null}var $r=s.createContext(null),nc=function(t){for(var r=t.prefixCls,n=t.level,o=t.isStart,l=t.isEnd,d="".concat(r,"-indent-unit"),a=[],i=0;i<n;i+=1)a.push(s.createElement("span",{key:i,className:q(d,R(R({},"".concat(d,"-start"),o[i]),"".concat(d,"-end"),l[i]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},a)};const rc=s.memo(nc);var oc=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],lo="open",so="close",ac="---",ic=function(e){Ho(r,e);var t=Lo(r);function r(){var n;jo(this,r);for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];return n=t.call.apply(t,[this].concat(l)),R(F(n),"state",{dragNodeHighlight:!1}),R(F(n),"selectHandle",void 0),R(F(n),"cacheIndent",void 0),R(F(n),"onSelectorClick",function(a){var i=n.props.context.onNodeClick;i(a,Fe(n.props)),n.isSelectable()?n.onSelect(a):n.onCheck(a)}),R(F(n),"onSelectorDoubleClick",function(a){var i=n.props.context.onNodeDoubleClick;i(a,Fe(n.props))}),R(F(n),"onSelect",function(a){if(!n.isDisabled()){var i=n.props.context.onNodeSelect;i(a,Fe(n.props))}}),R(F(n),"onCheck",function(a){if(!n.isDisabled()){var i=n.props,c=i.disableCheckbox,f=i.checked,u=n.props.context.onNodeCheck;if(!(!n.isCheckable()||c)){var m=!f;u(a,Fe(n.props),m)}}}),R(F(n),"onMouseEnter",function(a){var i=n.props.context.onNodeMouseEnter;i(a,Fe(n.props))}),R(F(n),"onMouseLeave",function(a){var i=n.props.context.onNodeMouseLeave;i(a,Fe(n.props))}),R(F(n),"onContextMenu",function(a){var i=n.props.context.onNodeContextMenu;i(a,Fe(n.props))}),R(F(n),"onDragStart",function(a){var i=n.props.context.onNodeDragStart;a.stopPropagation(),n.setState({dragNodeHighlight:!0}),i(a,F(n));try{a.dataTransfer.setData("text/plain","")}catch{}}),R(F(n),"onDragEnter",function(a){var i=n.props.context.onNodeDragEnter;a.preventDefault(),a.stopPropagation(),i(a,F(n))}),R(F(n),"onDragOver",function(a){var i=n.props.context.onNodeDragOver;a.preventDefault(),a.stopPropagation(),i(a,F(n))}),R(F(n),"onDragLeave",function(a){var i=n.props.context.onNodeDragLeave;a.stopPropagation(),i(a,F(n))}),R(F(n),"onDragEnd",function(a){var i=n.props.context.onNodeDragEnd;a.stopPropagation(),n.setState({dragNodeHighlight:!1}),i(a,F(n))}),R(F(n),"onDrop",function(a){var i=n.props.context.onNodeDrop;a.preventDefault(),a.stopPropagation(),n.setState({dragNodeHighlight:!1}),i(a,F(n))}),R(F(n),"onExpand",function(a){var i=n.props,c=i.loading,f=i.context.onNodeExpand;c||f(a,Fe(n.props))}),R(F(n),"setSelectHandle",function(a){n.selectHandle=a}),R(F(n),"getNodeState",function(){var a=n.props.expanded;return n.isLeaf()?null:a?lo:so}),R(F(n),"hasChildren",function(){var a=n.props.eventKey,i=n.props.context.keyEntities,c=tt(i,a)||{},f=c.children;return!!(f||[]).length}),R(F(n),"isLeaf",function(){var a=n.props,i=a.isLeaf,c=a.loaded,f=n.props.context.loadData,u=n.hasChildren();return i===!1?!1:i||!f&&!u||f&&c&&!u}),R(F(n),"isDisabled",function(){var a=n.props.disabled,i=n.props.context.disabled;return!!(i||a)}),R(F(n),"isCheckable",function(){var a=n.props.checkable,i=n.props.context.checkable;return!i||a===!1?!1:i}),R(F(n),"syncLoadData",function(a){var i=a.expanded,c=a.loading,f=a.loaded,u=n.props.context,m=u.loadData,p=u.onNodeLoad;c||m&&i&&!n.isLeaf()&&!f&&p(Fe(n.props))}),R(F(n),"isDraggable",function(){var a=n.props,i=a.data,c=a.context.draggable;return!!(c&&(!c.nodeDraggable||c.nodeDraggable(i)))}),R(F(n),"renderDragHandler",function(){var a=n.props.context,i=a.draggable,c=a.prefixCls;return i!=null&&i.icon?s.createElement("span",{className:"".concat(c,"-draggable-icon")},i.icon):null}),R(F(n),"renderSwitcherIconDom",function(a){var i=n.props.switcherIcon,c=n.props.context.switcherIcon,f=i||c;return typeof f=="function"?f(W(W({},n.props),{},{isLeaf:a})):f}),R(F(n),"renderSwitcher",function(){var a=n.props.expanded,i=n.props.context.prefixCls;if(n.isLeaf()){var c=n.renderSwitcherIconDom(!0);return c!==!1?s.createElement("span",{className:q("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},c):null}var f=q("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(a?lo:so)),u=n.renderSwitcherIconDom(!1);return u!==!1?s.createElement("span",{onClick:n.onExpand,className:f},u):null}),R(F(n),"renderCheckbox",function(){var a=n.props,i=a.checked,c=a.halfChecked,f=a.disableCheckbox,u=n.props.context.prefixCls,m=n.isDisabled(),p=n.isCheckable();if(!p)return null;var g=typeof p!="boolean"?p:null;return s.createElement("span",{className:q("".concat(u,"-checkbox"),i&&"".concat(u,"-checkbox-checked"),!i&&c&&"".concat(u,"-checkbox-indeterminate"),(m||f)&&"".concat(u,"-checkbox-disabled")),onClick:n.onCheck},g)}),R(F(n),"renderIcon",function(){var a=n.props.loading,i=n.props.context.prefixCls;return s.createElement("span",{className:q("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(n.getNodeState()||"docu"),a&&"".concat(i,"-icon_loading"))})}),R(F(n),"renderSelector",function(){var a=n.state.dragNodeHighlight,i=n.props,c=i.title,f=c===void 0?ac:c,u=i.selected,m=i.icon,p=i.loading,g=i.data,b=n.props.context,v=b.prefixCls,h=b.showIcon,y=b.icon,C=b.loadData,x=b.titleRender,S=n.isDisabled(),I="".concat(v,"-node-content-wrapper"),O;if(h){var k=m||y;O=k?s.createElement("span",{className:q("".concat(v,"-iconEle"),"".concat(v,"-icon__customize"))},typeof k=="function"?k(n.props):k):n.renderIcon()}else C&&p&&(O=n.renderIcon());var w;typeof f=="function"?w=f(g):x?w=x(g):w=f;var E=s.createElement("span",{className:"".concat(v,"-title")},w);return s.createElement("span",{ref:n.setSelectHandle,title:typeof f=="string"?f:"",className:q("".concat(I),"".concat(I,"-").concat(n.getNodeState()||"normal"),!S&&(u||a)&&"".concat(v,"-node-selected")),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onContextMenu:n.onContextMenu,onClick:n.onSelectorClick,onDoubleClick:n.onSelectorDoubleClick},O,E,n.renderDropIndicator())}),R(F(n),"renderDropIndicator",function(){var a=n.props,i=a.disabled,c=a.eventKey,f=n.props.context,u=f.draggable,m=f.dropLevelOffset,p=f.dropPosition,g=f.prefixCls,b=f.indent,v=f.dropIndicatorRender,h=f.dragOverNodeKey,y=f.direction,C=!!u,x=!i&&C&&h===c,S=b??n.cacheIndent;return n.cacheIndent=b,x?v({dropPosition:p,dropLevelOffset:m,indent:S,prefixCls:g,direction:y}):null}),n}return _o(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,l=this.props.context.selectable;return typeof o=="boolean"?o:l}},{key:"render",value:function(){var o,l=this.props,d=l.eventKey,a=l.className,i=l.style,c=l.dragOver,f=l.dragOverGapTop,u=l.dragOverGapBottom,m=l.isLeaf,p=l.isStart,g=l.isEnd,b=l.expanded,v=l.selected,h=l.checked,y=l.halfChecked,C=l.loading,x=l.domRef,S=l.active;l.data;var I=l.onMouseMove,O=l.selectable,k=vt(l,oc),w=this.props.context,E=w.prefixCls,M=w.filterTreeNode,T=w.keyEntities,P=w.dropContainerKey,$=w.dropTargetKey,N=w.draggingNodeKey,D=this.isDisabled(),K=pn(k,{aria:!0,data:!0}),z=tt(T,d)||{},H=z.level,L=g[g.length-1],A=this.isDraggable(),Y=!D&&A,J=N===d,de=O!==void 0?{"aria-selected":!!O}:void 0;return s.createElement("div",le({ref:x,className:q(a,"".concat(E,"-treenode"),(o={},R(R(R(R(R(R(R(R(R(R(o,"".concat(E,"-treenode-disabled"),D),"".concat(E,"-treenode-switcher-").concat(b?"open":"close"),!m),"".concat(E,"-treenode-checkbox-checked"),h),"".concat(E,"-treenode-checkbox-indeterminate"),y),"".concat(E,"-treenode-selected"),v),"".concat(E,"-treenode-loading"),C),"".concat(E,"-treenode-active"),S),"".concat(E,"-treenode-leaf-last"),L),"".concat(E,"-treenode-draggable"),A),"dragging",J),R(R(R(R(R(R(o,"drop-target",$===d),"drop-container",P===d),"drag-over",!D&&c),"drag-over-gap-top",!D&&f),"drag-over-gap-bottom",!D&&u),"filter-node",M&&M(Fe(this.props))))),style:i,draggable:Y,"aria-grabbed":J,onDragStart:Y?this.onDragStart:void 0,onDragEnter:A?this.onDragEnter:void 0,onDragOver:A?this.onDragOver:void 0,onDragLeave:A?this.onDragLeave:void 0,onDrop:A?this.onDrop:void 0,onDragEnd:A?this.onDragEnd:void 0,onMouseMove:I},de,K),s.createElement(rc,{prefixCls:E,level:H,isStart:p,isEnd:g}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(s.Component),Zt=function(t){return s.createElement($r.Consumer,null,function(r){return s.createElement(ic,le({},t,{context:r}))})};Zt.displayName="TreeNode";Zt.isTreeNode=1;function bt(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function Ct(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function wr(e){return e.split("-")}function lc(e,t){var r=[],n=tt(t,e);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(d){var a=d.key,i=d.children;r.push(a),o(i)})}return o(n.children),r}function sc(e){if(e.parent){var t=wr(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function cc(e){var t=wr(e.pos);return Number(t[t.length-1])===0}function co(e,t,r,n,o,l,d,a,i,c){var f,u=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),g=p.top,b=p.height,v=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-u),h=(v-12)/n,y=i.filter(function(D){var K;return(K=a[D])===null||K===void 0||(K=K.children)===null||K===void 0?void 0:K.length}),C=tt(a,r.props.eventKey);if(m<g+b/2){var x=d.findIndex(function(D){return D.key===C.key}),S=x<=0?0:x-1,I=d[S].key;C=tt(a,I)}var O=C.key,k=C,w=C.key,E=0,M=0;if(!y.includes(O))for(var T=0;T<h&&sc(C);T+=1)C=C.parent,M+=1;var P=t.props.data,$=C.node,N=!0;return cc(C)&&C.level===0&&m<g+b/2&&l({dragNode:P,dropNode:$,dropPosition:-1})&&C.key===r.props.eventKey?E=-1:(k.children||[]).length&&y.includes(w)?l({dragNode:P,dropNode:$,dropPosition:0})?E=0:N=!1:M===0?h>-1.5?l({dragNode:P,dropNode:$,dropPosition:1})?E=1:N=!1:l({dragNode:P,dropNode:$,dropPosition:0})?E=0:l({dragNode:P,dropNode:$,dropPosition:1})?E=1:N=!1:l({dragNode:P,dropNode:$,dropPosition:1})?E=1:N=!1,{dropPosition:E,dropLevelOffset:M,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:w,dropContainerKey:E===0?null:((f=C.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:N}}function uo(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function Xn(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(gt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return It(!1,"`checkedKeys` is not an array or an object"),null;return t}function or(e,t){var r=new Set;function n(o){if(!r.has(o)){var l=tt(t,o);if(l){r.add(o);var d=l.parent,a=l.node;a.disabled||d&&n(d.key)}}}return(e||[]).forEach(function(o){n(o)}),me(r)}function dc(e){const[t,r]=s.useState(null);return[s.useCallback((l,d,a)=>{const i=t??l,c=Math.min(i||0,l),f=Math.max(i||0,l),u=d.slice(c,f+1).map(g=>e(g)),m=u.some(g=>!a.has(g)),p=[];return u.forEach(g=>{m?(a.has(g)||p.push(g),a.add(g)):(a.delete(g),p.push(g))}),r(m?f:null),p},[t]),l=>{r(l)}]}const wt={},ar="SELECT_ALL",ir="SELECT_INVERT",lr="SELECT_NONE",fo=[],Ia=(e,t)=>{let r=[];return(t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&(r=[].concat(me(r),me(Ia(e,n[e]))))}),r},uc=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:o,getCheckboxProps:l,onChange:d,onSelect:a,onSelectAll:i,onSelectInvert:c,onSelectNone:f,onSelectMultiple:u,columnWidth:m,type:p,selections:g,fixed:b,renderCell:v,hideSelectAll:h,checkStrictly:y=!0}=t||{},{prefixCls:C,data:x,pageData:S,getRecordByKey:I,getRowKey:O,expandType:k,childrenColumnName:w,locale:E,getPopupContainer:M}=e,T=Pn(),[P,$]=dc(te=>te),[N,D]=In(n||o||fo,{value:n}),K=s.useRef(new Map),z=s.useCallback(te=>{if(r){const G=new Map;te.forEach(_=>{let V=I(_);!V&&K.current.has(_)&&(V=K.current.get(_)),G.set(_,V)}),K.current=G}},[I,r]);s.useEffect(()=>{z(N)},[N]);const{keyEntities:H}=s.useMemo(()=>{if(y)return{keyEntities:null};let te=x;if(r){const G=new Set(x.map((V,U)=>O(V,U))),_=Array.from(K.current).reduce((V,U)=>{let[X,j]=U;return G.has(X)?V:V.concat(j)},[]);te=[].concat(me(te),me(_))}return vr(te,{externalGetKey:O,childrenPropName:w})},[x,O,y,w,r]),L=s.useMemo(()=>Ia(w,S),[w,S]),A=s.useMemo(()=>{const te=new Map;return L.forEach((G,_)=>{const V=O(G,_),U=(l?l(G):null)||{};te.set(V,U)}),te},[L,O,l]),Y=s.useCallback(te=>{var G;return!!(!((G=A.get(O(te)))===null||G===void 0)&&G.disabled)},[A,O]),[J,de]=s.useMemo(()=>{if(y)return[N||[],[]];const{checkedKeys:te,halfCheckedKeys:G}=Gt(N,!0,H,Y);return[te||[],G]},[N,y,H,Y]),ge=s.useMemo(()=>{const te=p==="radio"?J.slice(0,1):J;return new Set(te)},[J,p]),$e=s.useMemo(()=>p==="radio"?new Set:new Set(de),[de,p]);s.useEffect(()=>{t||D(fo)},[!!t]);const ee=s.useCallback((te,G)=>{let _,V;z(te),r?(_=te,V=te.map(U=>K.current.get(U))):(_=[],V=[],te.forEach(U=>{const X=I(U);X!==void 0&&(_.push(U),V.push(X))})),D(_),d==null||d(_,V,{type:G})},[D,I,d,r]),pe=s.useCallback((te,G,_,V)=>{if(a){const U=_.map(X=>I(X));a(I(te),G,U,V)}ee(_,"single")},[a,I,ee]),ae=s.useMemo(()=>!g||h?null:(g===!0?[ar,ir,lr]:g).map(G=>G===ar?{key:"all",text:E.selectionAll,onSelect(){ee(x.map((_,V)=>O(_,V)).filter(_=>{const V=A.get(_);return!(V!=null&&V.disabled)||ge.has(_)}),"all")}}:G===ir?{key:"invert",text:E.selectInvert,onSelect(){const _=new Set(ge);S.forEach((U,X)=>{const j=O(U,X),re=A.get(j);re!=null&&re.disabled||(_.has(j)?_.delete(j):_.add(j))});const V=Array.from(_);c&&(T.deprecated(!1,"onSelectInvert","onChange"),c(V)),ee(V,"invert")}}:G===lr?{key:"none",text:E.selectNone,onSelect(){f==null||f(),ee(Array.from(ge).filter(_=>{const V=A.get(_);return V==null?void 0:V.disabled}),"none")}}:G).map(G=>Object.assign(Object.assign({},G),{onSelect:function(){for(var _,V,U=arguments.length,X=new Array(U),j=0;j<U;j++)X[j]=arguments[j];(V=G.onSelect)===null||V===void 0||(_=V).call.apply(_,[G].concat(X)),$(null)}})),[g,ge,S,O,c,ee]);return[s.useCallback(te=>{var G;if(!t)return te.filter(Z=>Z!==wt);let _=me(te);const V=new Set(ge),U=L.map(O).filter(Z=>!A.get(Z).disabled),X=U.every(Z=>V.has(Z)),j=U.some(Z=>V.has(Z)),re=()=>{const Z=[];X?U.forEach(ue=>{V.delete(ue),Z.push(ue)}):U.forEach(ue=>{V.has(ue)||(V.add(ue),Z.push(ue))});const Oe=Array.from(V);i==null||i(!X,Oe.map(ue=>I(ue)),Z.map(ue=>I(ue))),ee(Oe,"all"),$(null)};let xe,ne;if(p!=="radio"){let Z;if(ae){const Re={getPopupContainer:M,items:ae.map((He,je)=>{const{key:Ke,text:st,onSelect:_e}=He;return{key:Ke??je,onClick:()=>{_e==null||_e(U)},label:st}})};Z=s.createElement("div",{className:`${C}-selection-extra`},s.createElement(hr,{menu:Re,getPopupContainer:M},s.createElement("span",null,s.createElement(wi,null))))}const Oe=L.map((Re,He)=>{const je=O(Re,He),Ke=A.get(je)||{};return Object.assign({checked:V.has(je)},Ke)}).filter(Re=>{let{disabled:He}=Re;return He}),ue=!!Oe.length&&Oe.length===L.length,Be=ue&&Oe.every(Re=>{let{checked:He}=Re;return He}),Te=ue&&Oe.some(Re=>{let{checked:He}=Re;return He});ne=s.createElement(Qt,{checked:ue?Be:!!L.length&&X,indeterminate:ue?!Be&&Te:!X&&j,onChange:re,disabled:L.length===0||ue,"aria-label":Z?"Custom selection":"Select all",skipGroup:!0}),xe=!h&&s.createElement("div",{className:`${C}-selection`},ne,Z)}let be;p==="radio"?be=(Z,Oe,ue)=>{const Be=O(Oe,ue),Te=V.has(Be);return{node:s.createElement(Wo,Object.assign({},A.get(Be),{checked:Te,onClick:Re=>Re.stopPropagation(),onChange:Re=>{V.has(Be)||pe(Be,!0,[Be],Re.nativeEvent)}})),checked:Te}}:be=(Z,Oe,ue)=>{var Be;const Te=O(Oe,ue),Re=V.has(Te),He=$e.has(Te),je=A.get(Te);let Ke;return k==="nest"?Ke=He:Ke=(Be=je==null?void 0:je.indeterminate)!==null&&Be!==void 0?Be:He,{node:s.createElement(Qt,Object.assign({},je,{indeterminate:Ke,checked:Re,skipGroup:!0,onClick:st=>st.stopPropagation(),onChange:st=>{let{nativeEvent:_e}=st;const{shiftKey:Ot}=_e,ke=U.findIndex(Qe=>Qe===Te),Rt=J.some(Qe=>U.includes(Qe));if(Ot&&y&&Rt){const Qe=P(ke,U,V),ot=Array.from(V);u==null||u(!Re,ot.map(at=>I(at)),Qe.map(at=>I(at))),ee(ot,"multiple")}else{const Qe=J;if(y){const ot=Re?bt(Qe,Te):Ct(Qe,Te);pe(Te,!Re,ot,_e)}else{const ot=Gt([].concat(me(Qe),[Te]),!0,H,Y),{checkedKeys:at,halfCheckedKeys:ut}=ot;let ct=at;if(Re){const Ve=new Set(at);Ve.delete(Te),ct=Gt(Array.from(Ve),{checked:!1,halfCheckedKeys:ut},H,Y).checkedKeys}pe(Te,!Re,ct,_e)}}$(Re?null:ke)}})),checked:Re}};const Ne=(Z,Oe,ue)=>{const{node:Be,checked:Te}=be(Z,Oe,ue);return v?v(Te,Oe,ue,Be):Be};if(!_.includes(wt))if(_.findIndex(Z=>{var Oe;return((Oe=Z[un])===null||Oe===void 0?void 0:Oe.columnType)==="EXPAND_COLUMN"})===0){const[Z,...Oe]=_;_=[Z,wt].concat(me(Oe))}else _=[wt].concat(me(_));const Q=_.indexOf(wt);_=_.filter((Z,Oe)=>Z!==wt||Oe===Q);const Ce=_[Q-1],Pe=_[Q+1];let we=b;we===void 0&&((Pe==null?void 0:Pe.fixed)!==void 0?we=Pe.fixed:(Ce==null?void 0:Ce.fixed)!==void 0&&(we=Ce.fixed)),we&&Ce&&((G=Ce[un])===null||G===void 0?void 0:G.columnType)==="EXPAND_COLUMN"&&Ce.fixed===void 0&&(Ce.fixed=we);const Je=q(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:g&&p==="checkbox"}),We=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ne):t.columnTitle:xe,lt={fixed:we,width:m,className:`${C}-selection-column`,title:We(),render:Ne,onCell:t.onCell,[un]:{className:Je}};return _.map(Z=>Z===wt?lt:Z)},[O,L,t,J,ge,$e,m,ae,k,A,u,pe,Y]),ge]};function fc(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}function pc(e,t){return s.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(o,l){return r[l]?r[l]:Reflect.get(o,l)}}):fc(n,r)})}function mc(e){return function(r){let{prefixCls:n,onExpand:o,record:l,expanded:d,expandable:a}=r;const i=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{o(l,c),c.stopPropagation()},className:q(i,{[`${i}-spaced`]:!a,[`${i}-expanded`]:a&&d,[`${i}-collapsed`]:a&&!d}),"aria-label":d?e.collapse:e.expand,"aria-expanded":d})}}function gc(e){return(r,n)=>{const o=r.querySelector(`.${e}-container`);let l=n;if(o){const d=getComputedStyle(o),a=parseInt(d.borderLeftWidth,10),i=parseInt(d.borderRightWidth,10);l=n-a-i}return l}}function jt(e,t){return"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 bn(e,t){return t?`${t}-${e}`:`${e}`}function zn(e,t){return typeof e=="function"?e(t):e}function vc(e,t){const r=zn(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var hc={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"},bc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:hc}))},yc=s.forwardRef(bc);function Cc(e){const t=s.useRef(e),r=Ao();return[()=>t.current,n=>{t.current=n,r()}]}function xc(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n;break}return s.createElement("div",{style:o})}function Na(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Sc(e,t){var r=s.useState(!1),n=ye(r,2),o=n[0],l=n[1];Ht(function(){if(o)return e(),function(){t()}},[o]),Ht(function(){return l(!0),function(){l(!1)}},[])}var $c=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Oa=function(t,r){var n=t.className,o=t.style,l=t.motion,d=t.motionNodes,a=t.motionType,i=t.onMotionStart,c=t.onMotionEnd,f=t.active,u=t.treeNodeRequiredProps,m=vt(t,$c),p=s.useState(!0),g=ye(p,2),b=g[0],v=g[1],h=s.useContext($r),y=h.prefixCls,C=d&&a!=="hide";Ht(function(){d&&C!==b&&v(C)},[d]);var x=function(){d&&i()},S=s.useRef(!1),I=function(){d&&!S.current&&(S.current=!0,c())};Sc(x,I);var O=function(w){C===w&&I()};return d?s.createElement(Ei,le({ref:r,visible:b},l,{motionAppear:a==="show",onVisibleChanged:O}),function(k,w){var E=k.className,M=k.style;return s.createElement("div",{ref:w,className:q("".concat(y,"-treenode-motion"),E),style:M},d.map(function(T){var P=Object.assign({},(Na(T.data),T.data)),$=T.title,N=T.key,D=T.isStart,K=T.isEnd;delete P.children;var z=dn(N,u);return s.createElement(Zt,le({},P,z,{title:$,active:f,data:T.data,key:N,isStart:D,isEnd:K}))}))}):s.createElement(Zt,le({domRef:r,className:n,style:o},m,{active:f}))};Oa.displayName="MotionTreeNode";var wc=s.forwardRef(Oa);function Ec(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function o(l,d){var a=new Map;l.forEach(function(c){a.set(c,!0)});var i=d.filter(function(c){return!a.has(c)});return i.length===1?i[0]:null}return r<n?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function po(e,t,r){var n=e.findIndex(function(a){return a.key===r}),o=e[n+1],l=t.findIndex(function(a){return a.key===r});if(o){var d=t.findIndex(function(a){return a.key===o.key});return t.slice(l+1,d)}return t.slice(l+1)}var Ic=["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"],mo={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Nc=function(){},_t="RC_TREE_MOTION_".concat(Math.random()),sr={key:_t},Ra={key:_t,level:0,index:0,pos:"0",node:sr,nodes:[sr]},go={parent:null,children:[],pos:Ra.pos,data:sr,title:null,key:_t,isStart:[],isEnd:[]};function vo(e,t,r,n){return t===!1||!r?e:e.slice(0,Math.ceil(r/n)+1)}function ho(e){var t=e.key,r=e.pos;return vn(t,r)}function Oc(e){for(var t=String(e.data.key),r=e;r.parent;)r=r.parent,t="".concat(r.data.key," > ").concat(t);return t}var ka=s.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var o=e.expandedKeys,l=e.selectedKeys,d=e.checkedKeys,a=e.loadedKeys,i=e.loadingKeys,c=e.halfCheckedKeys,f=e.keyEntities,u=e.disabled,m=e.dragging,p=e.dragOverNodeKey,g=e.dropPosition,b=e.motion,v=e.height,h=e.itemHeight,y=e.virtual,C=e.focusable,x=e.activeItem,S=e.focused,I=e.tabIndex,O=e.onKeyDown,k=e.onFocus,w=e.onBlur,E=e.onActiveChange,M=e.onListChangeStart,T=e.onListChangeEnd,P=vt(e,Ic),$=s.useRef(null),N=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(be){$.current.scrollTo(be)},getIndentWidth:function(){return N.current.offsetWidth}}});var D=s.useState(o),K=ye(D,2),z=K[0],H=K[1],L=s.useState(n),A=ye(L,2),Y=A[0],J=A[1],de=s.useState(n),ge=ye(de,2),$e=ge[0],ee=ge[1],pe=s.useState([]),ae=ye(pe,2),ce=ae[0],te=ae[1],G=s.useState(null),_=ye(G,2),V=_[0],U=_[1],X=s.useRef(n);X.current=n;function j(){var ne=X.current;J(ne),ee(ne),te([]),U(null),T()}Ht(function(){H(o);var ne=Ec(z,o);if(ne.key!==null)if(ne.add){var be=Y.findIndex(function(Je){var We=Je.key;return We===ne.key}),Ne=vo(po(Y,n,ne.key),y,v,h),Q=Y.slice();Q.splice(be+1,0,go),ee(Q),te(Ne),U("show")}else{var Ce=n.findIndex(function(Je){var We=Je.key;return We===ne.key}),Pe=vo(po(n,Y,ne.key),y,v,h),we=n.slice();we.splice(Ce+1,0,go),ee(we),te(Pe),U("hide")}else Y!==n&&(J(n),ee(n))},[o,n]),s.useEffect(function(){m||j()},[m]);var re=b?$e:n,xe={expandedKeys:o,selectedKeys:l,loadedKeys:a,loadingKeys:i,checkedKeys:d,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:g,keyEntities:f};return s.createElement(s.Fragment,null,S&&x&&s.createElement("span",{style:mo,"aria-live":"assertive"},Oc(x)),s.createElement("div",null,s.createElement("input",{style:mo,disabled:C===!1||u,tabIndex:C!==!1?I:null,onKeyDown:O,onFocus:k,onBlur:w,value:"",onChange:Nc,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(r,"-indent")},s.createElement("div",{ref:N,className:"".concat(r,"-indent-unit")}))),s.createElement(zo,le({},P,{data:re,itemKey:ho,height:v,fullHeight:!1,virtual:y,itemHeight:h,prefixCls:"".concat(r,"-list"),ref:$,onVisibleChange:function(be,Ne){var Q=new Set(be),Ce=Ne.filter(function(Pe){return!Q.has(Pe)});Ce.some(function(Pe){return ho(Pe)===_t})&&j()}}),function(ne){var be=ne.pos,Ne=Object.assign({},(Na(ne.data),ne.data)),Q=ne.title,Ce=ne.key,Pe=ne.isStart,we=ne.isEnd,Je=vn(Ce,be);delete Ne.key,delete Ne.children;var We=dn(Je,xe);return s.createElement(wc,le({},Ne,We,{title:Q,active:!!x&&Ce===x.key,pos:be,data:ne.data,isStart:Pe,isEnd:we,motion:b,motionNodes:Ce===_t?ce:null,motionType:V,onMotionStart:M,onMotionEnd:j,treeNodeRequiredProps:xe,onMouseMove:function(){E(null)}}))}))});ka.displayName="NodeList";var Rc=10,Er=function(e){Ho(r,e);var t=Lo(r);function r(){var n;jo(this,r);for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];return n=t.call.apply(t,[this].concat(l)),R(F(n),"destroyed",!1),R(F(n),"delayedDragEnterLogic",void 0),R(F(n),"loadingRetryTimes",{}),R(F(n),"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:Jt()}),R(F(n),"dragStartMousePosition",null),R(F(n),"dragNode",void 0),R(F(n),"currentMouseOverDroppableNodeKey",null),R(F(n),"listRef",s.createRef()),R(F(n),"onNodeDragStart",function(a,i){var c=n.state,f=c.expandedKeys,u=c.keyEntities,m=n.props.onDragStart,p=i.props.eventKey;n.dragNode=i,n.dragStartMousePosition={x:a.clientX,y:a.clientY};var g=bt(f,p);n.setState({draggingNodeKey:p,dragChildrenKeys:lc(p,u),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(g),window.addEventListener("dragend",n.onWindowDragEnd),m==null||m({event:a,node:Fe(i.props)})}),R(F(n),"onNodeDragEnter",function(a,i){var c=n.state,f=c.expandedKeys,u=c.keyEntities,m=c.dragChildrenKeys,p=c.flattenNodes,g=c.indent,b=n.props,v=b.onDragEnter,h=b.onExpand,y=b.allowDrop,C=b.direction,x=i.props,S=x.pos,I=x.eventKey,O=F(n),k=O.dragNode;if(n.currentMouseOverDroppableNodeKey!==I&&(n.currentMouseOverDroppableNodeKey=I),!k){n.resetDragState();return}var w=co(a,k,i,g,n.dragStartMousePosition,y,p,u,f,C),E=w.dropPosition,M=w.dropLevelOffset,T=w.dropTargetKey,P=w.dropContainerKey,$=w.dropTargetPos,N=w.dropAllowed,D=w.dragOverNodeKey;if(m.indexOf(T)!==-1||!N){n.resetDragState();return}if(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(K){clearTimeout(n.delayedDragEnterLogic[K])}),k.props.eventKey!==i.props.eventKey&&(a.persist(),n.delayedDragEnterLogic[S]=window.setTimeout(function(){if(n.state.draggingNodeKey!==null){var K=me(f),z=tt(u,i.props.eventKey);z&&(z.children||[]).length&&(K=Ct(f,i.props.eventKey)),"expandedKeys"in n.props||n.setExpandedKeys(K),h==null||h(K,{node:Fe(i.props),expanded:!0,nativeEvent:a.nativeEvent})}},800)),k.props.eventKey===T&&M===0){n.resetDragState();return}n.setState({dragOverNodeKey:D,dropPosition:E,dropLevelOffset:M,dropTargetKey:T,dropContainerKey:P,dropTargetPos:$,dropAllowed:N}),v==null||v({event:a,node:Fe(i.props),expandedKeys:f})}),R(F(n),"onNodeDragOver",function(a,i){var c=n.state,f=c.dragChildrenKeys,u=c.flattenNodes,m=c.keyEntities,p=c.expandedKeys,g=c.indent,b=n.props,v=b.onDragOver,h=b.allowDrop,y=b.direction,C=F(n),x=C.dragNode;if(x){var S=co(a,x,i,g,n.dragStartMousePosition,h,u,m,p,y),I=S.dropPosition,O=S.dropLevelOffset,k=S.dropTargetKey,w=S.dropContainerKey,E=S.dropAllowed,M=S.dropTargetPos,T=S.dragOverNodeKey;f.indexOf(k)!==-1||!E||(x.props.eventKey===k&&O===0?n.state.dropPosition===null&&n.state.dropLevelOffset===null&&n.state.dropTargetKey===null&&n.state.dropContainerKey===null&&n.state.dropTargetPos===null&&n.state.dropAllowed===!1&&n.state.dragOverNodeKey===null||n.resetDragState():I===n.state.dropPosition&&O===n.state.dropLevelOffset&&k===n.state.dropTargetKey&&w===n.state.dropContainerKey&&M===n.state.dropTargetPos&&E===n.state.dropAllowed&&T===n.state.dragOverNodeKey||n.setState({dropPosition:I,dropLevelOffset:O,dropTargetKey:k,dropContainerKey:w,dropTargetPos:M,dropAllowed:E,dragOverNodeKey:T}),v==null||v({event:a,node:Fe(i.props)}))}}),R(F(n),"onNodeDragLeave",function(a,i){n.currentMouseOverDroppableNodeKey===i.props.eventKey&&!a.currentTarget.contains(a.relatedTarget)&&(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var c=n.props.onDragLeave;c==null||c({event:a,node:Fe(i.props)})}),R(F(n),"onWindowDragEnd",function(a){n.onNodeDragEnd(a,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)}),R(F(n),"onNodeDragEnd",function(a,i){var c=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),c==null||c({event:a,node:Fe(i.props)}),n.dragNode=null,window.removeEventListener("dragend",n.onWindowDragEnd)}),R(F(n),"onNodeDrop",function(a,i){var c,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=n.state,m=u.dragChildrenKeys,p=u.dropPosition,g=u.dropTargetKey,b=u.dropTargetPos,v=u.dropAllowed;if(v){var h=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),g!==null){var y=W(W({},dn(g,n.getTreeNodeRequiredProps())),{},{active:((c=n.getActiveItem())===null||c===void 0?void 0:c.key)===g,data:tt(n.state.keyEntities,g).node}),C=m.indexOf(g)!==-1;It(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=wr(b),S={event:a,node:Fe(y),dragNode:n.dragNode?Fe(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(x[x.length-1])};f||h==null||h(S),n.dragNode=null}}}),R(F(n),"cleanDragState",function(){var a=n.state.draggingNodeKey;a!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),R(F(n),"triggerExpandActionExpand",function(a,i){var c=n.state,f=c.expandedKeys,u=c.flattenNodes,m=i.expanded,p=i.key,g=i.isLeaf;if(!(g||a.shiftKey||a.metaKey||a.ctrlKey)){var b=u.filter(function(h){return h.key===p})[0],v=Fe(W(W({},dn(p,n.getTreeNodeRequiredProps())),{},{data:b.data}));n.setExpandedKeys(m?bt(f,p):Ct(f,p)),n.onNodeExpand(a,v)}}),R(F(n),"onNodeClick",function(a,i){var c=n.props,f=c.onClick,u=c.expandAction;u==="click"&&n.triggerExpandActionExpand(a,i),f==null||f(a,i)}),R(F(n),"onNodeDoubleClick",function(a,i){var c=n.props,f=c.onDoubleClick,u=c.expandAction;u==="doubleClick"&&n.triggerExpandActionExpand(a,i),f==null||f(a,i)}),R(F(n),"onNodeSelect",function(a,i){var c=n.state.selectedKeys,f=n.state,u=f.keyEntities,m=f.fieldNames,p=n.props,g=p.onSelect,b=p.multiple,v=i.selected,h=i[m.key],y=!v;y?b?c=Ct(c,h):c=[h]:c=bt(c,h);var C=c.map(function(x){var S=tt(u,x);return S?S.node:null}).filter(function(x){return x});n.setUncontrolledState({selectedKeys:c}),g==null||g(c,{event:"select",selected:y,node:i,selectedNodes:C,nativeEvent:a.nativeEvent})}),R(F(n),"onNodeCheck",function(a,i,c){var f=n.state,u=f.keyEntities,m=f.checkedKeys,p=f.halfCheckedKeys,g=n.props,b=g.checkStrictly,v=g.onCheck,h=i.key,y,C={event:"check",node:i,checked:c,nativeEvent:a.nativeEvent};if(b){var x=c?Ct(m,h):bt(m,h),S=bt(p,h);y={checked:x,halfChecked:S},C.checkedNodes=x.map(function(M){return tt(u,M)}).filter(function(M){return M}).map(function(M){return M.node}),n.setUncontrolledState({checkedKeys:x})}else{var I=Gt([].concat(me(m),[h]),!0,u),O=I.checkedKeys,k=I.halfCheckedKeys;if(!c){var w=new Set(O);w.delete(h);var E=Gt(Array.from(w),{checked:!1,halfCheckedKeys:k},u);O=E.checkedKeys,k=E.halfCheckedKeys}y=O,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=k,O.forEach(function(M){var T=tt(u,M);if(T){var P=T.node,$=T.pos;C.checkedNodes.push(P),C.checkedNodesPositions.push({node:P,pos:$})}}),n.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:k})}v==null||v(y,C)}),R(F(n),"onNodeLoad",function(a){var i,c=a.key,f=n.state.keyEntities,u=tt(f,c);if(!(u!=null&&(i=u.children)!==null&&i!==void 0&&i.length)){var m=new Promise(function(p,g){n.setState(function(b){var v=b.loadedKeys,h=v===void 0?[]:v,y=b.loadingKeys,C=y===void 0?[]:y,x=n.props,S=x.loadData,I=x.onLoad;if(!S||h.indexOf(c)!==-1||C.indexOf(c)!==-1)return null;var O=S(a);return O.then(function(){var k=n.state.loadedKeys,w=Ct(k,c);I==null||I(w,{event:"load",node:a}),n.setUncontrolledState({loadedKeys:w}),n.setState(function(E){return{loadingKeys:bt(E.loadingKeys,c)}}),p()}).catch(function(k){if(n.setState(function(E){return{loadingKeys:bt(E.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=Rc){var w=n.state.loadedKeys;It(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:Ct(w,c)}),p()}g(k)}),{loadingKeys:Ct(C,c)}})});return m.catch(function(){}),m}}),R(F(n),"onNodeMouseEnter",function(a,i){var c=n.props.onMouseEnter;c==null||c({event:a,node:i})}),R(F(n),"onNodeMouseLeave",function(a,i){var c=n.props.onMouseLeave;c==null||c({event:a,node:i})}),R(F(n),"onNodeContextMenu",function(a,i){var c=n.props.onRightClick;c&&(a.preventDefault(),c({event:a,node:i}))}),R(F(n),"onFocus",function(){var a=n.props.onFocus;n.setState({focused:!0});for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];a==null||a.apply(void 0,c)}),R(F(n),"onBlur",function(){var a=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];a==null||a.apply(void 0,c)}),R(F(n),"getTreeNodeRequiredProps",function(){var a=n.state,i=a.expandedKeys,c=a.selectedKeys,f=a.loadedKeys,u=a.loadingKeys,m=a.checkedKeys,p=a.halfCheckedKeys,g=a.dragOverNodeKey,b=a.dropPosition,v=a.keyEntities;return{expandedKeys:i||[],selectedKeys:c||[],loadedKeys:f||[],loadingKeys:u||[],checkedKeys:m||[],halfCheckedKeys:p||[],dragOverNodeKey:g,dropPosition:b,keyEntities:v}}),R(F(n),"setExpandedKeys",function(a){var i=n.state,c=i.treeData,f=i.fieldNames,u=Vn(c,a,f);n.setUncontrolledState({expandedKeys:a,flattenNodes:u},!0)}),R(F(n),"onNodeExpand",function(a,i){var c=n.state.expandedKeys,f=n.state,u=f.listChanging,m=f.fieldNames,p=n.props,g=p.onExpand,b=p.loadData,v=i.expanded,h=i[m.key];if(!u){var y=c.indexOf(h),C=!v;if(It(v&&y!==-1||!v&&y===-1,"Expand state not sync with index check"),C?c=Ct(c,h):c=bt(c,h),n.setExpandedKeys(c),g==null||g(c,{node:i,expanded:C,nativeEvent:a.nativeEvent}),C&&b){var x=n.onNodeLoad(i);x&&x.then(function(){var S=Vn(n.state.treeData,c,m);n.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=n.state.expandedKeys,I=bt(S,h);n.setExpandedKeys(I)})}}}),R(F(n),"onListChangeStart",function(){n.setUncontrolledState({listChanging:!0})}),R(F(n),"onListChangeEnd",function(){setTimeout(function(){n.setUncontrolledState({listChanging:!1})})}),R(F(n),"onActiveChange",function(a){var i=n.state.activeKey,c=n.props,f=c.onActiveChange,u=c.itemScrollOffset,m=u===void 0?0:u;i!==a&&(n.setState({activeKey:a}),a!==null&&n.scrollTo({key:a,offset:m}),f==null||f(a))}),R(F(n),"getActiveItem",function(){var a=n.state,i=a.activeKey,c=a.flattenNodes;return i===null?null:c.find(function(f){var u=f.key;return u===i})||null}),R(F(n),"offsetActiveKey",function(a){var i=n.state,c=i.flattenNodes,f=i.activeKey,u=c.findIndex(function(g){var b=g.key;return b===f});u===-1&&a<0&&(u=c.length),u=(u+a+c.length)%c.length;var m=c[u];if(m){var p=m.key;n.onActiveChange(p)}else n.onActiveChange(null)}),R(F(n),"onKeyDown",function(a){var i=n.state,c=i.activeKey,f=i.expandedKeys,u=i.checkedKeys,m=i.fieldNames,p=n.props,g=p.onKeyDown,b=p.checkable,v=p.selectable;switch(a.which){case Ye.UP:{n.offsetActiveKey(-1),a.preventDefault();break}case Ye.DOWN:{n.offsetActiveKey(1),a.preventDefault();break}}var h=n.getActiveItem();if(h&&h.data){var y=n.getTreeNodeRequiredProps(),C=h.data.isLeaf===!1||!!(h.data[m.children]||[]).length,x=Fe(W(W({},dn(c,y)),{},{data:h.data,active:!0}));switch(a.which){case Ye.LEFT:{C&&f.includes(c)?n.onNodeExpand({},x):h.parent&&n.onActiveChange(h.parent.key),a.preventDefault();break}case Ye.RIGHT:{C&&!f.includes(c)?n.onNodeExpand({},x):h.children&&h.children.length&&n.onActiveChange(h.children[0].key),a.preventDefault();break}case Ye.ENTER:case Ye.SPACE:{b&&!x.disabled&&x.checkable!==!1&&!x.disableCheckbox?n.onNodeCheck({},x,!u.includes(c)):!b&&v&&!x.disabled&&x.selectable!==!1&&n.onNodeSelect({},x);break}}}g==null||g(a)}),R(F(n),"setUncontrolledState",function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var f=!1,u=!0,m={};Object.keys(a).forEach(function(p){if(p in n.props){u=!1;return}f=!0,m[p]=a[p]}),f&&(!i||u)&&n.setState(W(W({},m),c))}}),R(F(n),"scrollTo",function(a){n.listRef.current.scrollTo(a)}),n}return _o(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,l=o.activeKey,d=o.itemScrollOffset,a=d===void 0?0:d;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,l=o.focused,d=o.flattenNodes,a=o.keyEntities,i=o.draggingNodeKey,c=o.activeKey,f=o.dropLevelOffset,u=o.dropContainerKey,m=o.dropTargetKey,p=o.dropPosition,g=o.dragOverNodeKey,b=o.indent,v=this.props,h=v.prefixCls,y=v.className,C=v.style,x=v.showLine,S=v.focusable,I=v.tabIndex,O=I===void 0?0:I,k=v.selectable,w=v.showIcon,E=v.icon,M=v.switcherIcon,T=v.draggable,P=v.checkable,$=v.checkStrictly,N=v.disabled,D=v.motion,K=v.loadData,z=v.filterTreeNode,H=v.height,L=v.itemHeight,A=v.virtual,Y=v.titleRender,J=v.dropIndicatorRender,de=v.onContextMenu,ge=v.onScroll,$e=v.direction,ee=v.rootClassName,pe=v.rootStyle,ae=pn(this.props,{aria:!0,data:!0}),ce;return T&&(gt(T)==="object"?ce=T:typeof T=="function"?ce={nodeDraggable:T}:ce={}),s.createElement($r.Provider,{value:{prefixCls:h,selectable:k,showIcon:w,icon:E,switcherIcon:M,draggable:ce,draggingNodeKey:i,checkable:P,checkStrictly:$,disabled:N,keyEntities:a,dropLevelOffset:f,dropContainerKey:u,dropTargetKey:m,dropPosition:p,dragOverNodeKey:g,indent:b,direction:$e,dropIndicatorRender:J,loadData:K,filterTreeNode:z,titleRender:Y,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}},s.createElement("div",{role:"tree",className:q(h,y,ee,R(R(R({},"".concat(h,"-show-line"),x),"".concat(h,"-focused"),l),"".concat(h,"-active-focused"),c!==null)),style:pe},s.createElement(ka,le({ref:this.listRef,prefixCls:h,style:C,data:d,disabled:N,selectable:k,checkable:!!P,motion:D,dragging:i!==null,height:H,itemHeight:L,virtual:A,focusable:S,focused:l,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:de,onScroll:ge},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(o,l){var d=l.prevProps,a={prevProps:o};function i(I){return!d&&I in o||d&&d[I]!==o[I]}var c,f=l.fieldNames;if(i("fieldNames")&&(f=Jt(o.fieldNames),a.fieldNames=f),i("treeData")?c=o.treeData:i("children")&&(It(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Zo(o.children)),c){a.treeData=c;var u=vr(c,{fieldNames:f});a.keyEntities=W(R({},_t,Ra),u.keyEntities)}var m=a.keyEntities||l.keyEntities;if(i("expandedKeys")||d&&i("autoExpandParent"))a.expandedKeys=o.autoExpandParent||!d&&o.defaultExpandParent?or(o.expandedKeys,m):o.expandedKeys;else if(!d&&o.defaultExpandAll){var p=W({},m);delete p[_t],a.expandedKeys=Object.keys(p).map(function(I){return p[I].key})}else!d&&o.defaultExpandedKeys&&(a.expandedKeys=o.autoExpandParent||o.defaultExpandParent?or(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,c||a.expandedKeys){var g=Vn(c||l.treeData,a.expandedKeys||l.expandedKeys,f);a.flattenNodes=g}if(o.selectable&&(i("selectedKeys")?a.selectedKeys=uo(o.selectedKeys,o):!d&&o.defaultSelectedKeys&&(a.selectedKeys=uo(o.defaultSelectedKeys,o))),o.checkable){var b;if(i("checkedKeys")?b=Xn(o.checkedKeys)||{}:!d&&o.defaultCheckedKeys?b=Xn(o.defaultCheckedKeys)||{}:c&&(b=Xn(o.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),b){var v=b,h=v.checkedKeys,y=h===void 0?[]:h,C=v.halfCheckedKeys,x=C===void 0?[]:C;if(!o.checkStrictly){var S=Gt(y,!0,m);y=S.checkedKeys,x=S.halfCheckedKeys}a.checkedKeys=y,a.halfCheckedKeys=x}}return i("loadedKeys")&&(a.loadedKeys=o.loadedKeys),a}}]),r}(s.Component);R(Er,"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:xc,allowDrop:function(){return!0},expandAction:!1});R(Er,"TreeNode",Zt);var kc={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"},Pc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:kc}))},Pa=s.forwardRef(Pc),Tc={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"},Kc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Tc}))},Bc=s.forwardRef(Kc),Dc={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"},Mc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Dc}))},zc=s.forwardRef(Mc),Hc={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"},Lc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Hc}))},jc=s.forwardRef(Lc);const _c=new Ii("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ac=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Fc=(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:`${B(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Wc=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:l,nodeSelectedBg:d,nodeHoverBg:a}=t,i=t.paddingXS;return{[r]:Object.assign(Object.assign({},xt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},fn(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:_c,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${n}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${B(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:l,lineHeight:`${B(l)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:Object.assign(Object.assign({},Ac(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${B(l)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${r}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${r}-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(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(l).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:i,alignSelf:"flex-start",marginTop:t.marginXXS},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${B(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${B(l)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:a},[`&${r}-node-selected`]:{backgroundColor:d},[`${r}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${B(l)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:Object.assign({lineHeight:`${B(l)}`,userSelect:"none"},Fc(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${B(t.calc(l).div(2).equal())} !important`}}}}})}},Vc=e=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:l}=e;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:l,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:l},[`${t}-node-content-wrapper`]:{color:l,background:"transparent"}}}}}},Xc=(e,t)=>{const r=`.${e}`,n=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),l=Lt(t,{treeCls:r,treeNodeCls:n,treeNodePadding:o});return[Wc(e,l),Vc(l)]},qc=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Gc=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},qc(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},Uc=en("Tree",(e,t)=>{let{prefixCls:r}=t;return[{[e.componentCls]:ta(`${r}-checkbox`,e)},Xc(r,e),Fo(e)]},Gc),bo=4;function Yc(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:o,direction:l="ltr"}=e,d=l==="ltr"?"left":"right",a=l==="ltr"?"right":"left",i={[d]:-r*o+bo,[a]:0};switch(t){case-1:i.top=-3;break;case 1:i.bottom=-3;break;default:i.bottom=-3,i[d]=o+bo;break}return ie.createElement("div",{style:i,className:`${n}-drop-indicator`})}var Jc={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"},Qc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Jc}))},Zc=s.forwardRef(Qc),ed={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"},td=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:ed}))},nd=s.forwardRef(td),rd={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"},od=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:rd}))},ad=s.forwardRef(od);const id=e=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:n,showLine:o}=e,{isLeaf:l,expanded:d,loading:a}=n;if(a)return s.createElement(Ni,{className:`${t}-switcher-loading-icon`});let i;if(o&&typeof o=="object"&&(i=o.showLeafIcon),l){if(!o)return null;if(typeof i!="boolean"&&i){const u=typeof i=="function"?i(n):i,m=`${t}-switcher-line-custom-icon`;return s.isValidElement(u)?Yt(u,{className:q(u.props.className||"",m)}):u}return i?s.createElement(Pa,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const c=`${t}-switcher-icon`,f=typeof r=="function"?r(n):r;return s.isValidElement(f)?Yt(f,{className:q(f.props.className||"",c)}):f!==void 0?f:o?d?s.createElement(nd,{className:`${t}-switcher-line-icon`}):s.createElement(ad,{className:`${t}-switcher-line-icon`}):s.createElement(Zc,{className:c})},Ta=ie.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:o,virtual:l,tree:d}=ie.useContext(mt),{prefixCls:a,className:i,showIcon:c=!1,showLine:f,switcherIcon:u,blockNode:m=!1,children:p,checkable:g=!1,selectable:b=!0,draggable:v,motion:h,style:y}=e,C=n("tree",a),x=n(),S=h??Object.assign(Object.assign({},Bo(x)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:g,selectable:b,showIcon:c,motion:S,blockNode:m,showLine:!!f,dropIndicatorRender:Yc}),[O,k,w]=Uc(C),[,E]=Tn(),M=E.paddingXS/2+(((r=E.Tree)===null||r===void 0?void 0:r.titleHeight)||E.controlHeightSM),T=ie.useMemo(()=>{if(!v)return!1;let $={};switch(typeof v){case"function":$.nodeDraggable=v;break;case"object":$=Object.assign({},v);break}return $.icon!==!1&&($.icon=$.icon||ie.createElement(jc,null)),$},[v]),P=$=>ie.createElement(id,{prefixCls:C,switcherIcon:u,treeNodeProps:$,showLine:f});return O(ie.createElement(Er,Object.assign({itemHeight:M,ref:t,virtual:l},I,{style:Object.assign(Object.assign({},d==null?void 0:d.style),y),prefixCls:C,className:q({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:m,[`${C}-unselectable`]:!b,[`${C}-rtl`]:o==="rtl"},d==null?void 0:d.className,i,k,w),direction:o,checkable:g&&ie.createElement("span",{className:`${C}-checkbox-inner`}),selectable:b,switcherIcon:P,draggable:T}),p))}),yo=0,qn=1,Co=2;function Ir(e,t,r){const{key:n,children:o}=r;function l(d){const a=d[n],i=d[o];t(a,d)!==!1&&Ir(i||[],t,r)}e.forEach(l)}function ld(e){let{treeData:t,expandedKeys:r,startKey:n,endKey:o,fieldNames:l}=e;const d=[];let a=yo;if(n&&n===o)return[n];if(!n||!o)return[];function i(c){return c===n||c===o}return Ir(t,c=>{if(a===Co)return!1;if(i(c)){if(d.push(c),a===yo)a=qn;else if(a===qn)return a=Co,!1}else a===qn&&d.push(c);return r.includes(c)},Jt(l)),d}function Gn(e,t,r){const n=me(t),o=[];return Ir(e,(l,d)=>{const a=n.indexOf(l);return a!==-1&&(o.push(d),n.splice(a,1)),!!n.length},Jt(r)),o}var xo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function sd(e){const{isLeaf:t,expanded:r}=e;return t?s.createElement(Pa,null):r?s.createElement(Bc,null):s.createElement(zc,null)}function So(e){let{treeData:t,children:r}=e;return t||Zo(r)}const cd=(e,t)=>{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:o}=e,l=xo(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const d=s.useRef(),a=s.useRef(),i=()=>{const{keyEntities:k}=vr(So(l));let w;return r?w=Object.keys(k):n?w=or(l.expandedKeys||o||[],k):w=l.expandedKeys||o||[],w},[c,f]=s.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[u,m]=s.useState(()=>i());s.useEffect(()=>{"selectedKeys"in l&&f(l.selectedKeys)},[l.selectedKeys]),s.useEffect(()=>{"expandedKeys"in l&&m(l.expandedKeys)},[l.expandedKeys]);const p=(k,w)=>{var E;return"expandedKeys"in l||m(k),(E=l.onExpand)===null||E===void 0?void 0:E.call(l,k,w)},g=(k,w)=>{var E;const{multiple:M,fieldNames:T}=l,{node:P,nativeEvent:$}=w,{key:N=""}=P,D=So(l),K=Object.assign(Object.assign({},w),{selected:!0}),z=($==null?void 0:$.ctrlKey)||($==null?void 0:$.metaKey),H=$==null?void 0:$.shiftKey;let L;M&&z?(L=k,d.current=N,a.current=L,K.selectedNodes=Gn(D,L,T)):M&&H?(L=Array.from(new Set([].concat(me(a.current||[]),me(ld({treeData:D,expandedKeys:u,startKey:N,endKey:d.current,fieldNames:T}))))),K.selectedNodes=Gn(D,L,T)):(L=[N],d.current=N,a.current=L,K.selectedNodes=Gn(D,L,T)),(E=l.onSelect)===null||E===void 0||E.call(l,L,K),"selectedKeys"in l||f(L)},{getPrefixCls:b,direction:v}=s.useContext(mt),{prefixCls:h,className:y,showIcon:C=!0,expandAction:x="click"}=l,S=xo(l,["prefixCls","className","showIcon","expandAction"]),I=b("tree",h),O=q(`${I}-directory`,{[`${I}-directory-rtl`]:v==="rtl"},y);return s.createElement(Ta,Object.assign({icon:sd,ref:t,blockNode:!0},S,{showIcon:C,expandAction:x,prefixCls:I,className:O,expandedKeys:u,selectedKeys:c,onSelect:g,onExpand:p}))},dd=s.forwardRef(cd),Nr=Ta;Nr.DirectoryTree=dd;Nr.TreeNode=Zt;function $o(e){let{value:t,onChange:r,filterSearch:n,tablePrefixCls:o,locale:l}=e;return n?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(Oi,{prefix:s.createElement(Ri,null),placeholder:l.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const ud=e=>{const{keyCode:t}=e;t===Ye.ENTER&&e.stopPropagation()},fd=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:ud,ref:t},e.children));function Ut(e){let t=[];return(e||[]).forEach(r=>{let{value:n,children:o}=r;t.push(n),o&&(t=[].concat(me(t),me(Ut(o))))}),t}function pd(e){return e.some(t=>{let{children:r}=t;return r})}function Ka(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Ba(e){let{filters:t,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:l,filterSearch:d}=e;return t.map((a,i)=>{const c=String(a.value);if(a.children)return{key:c||i,label:a.text,popupClassName:`${r}-dropdown-submenu`,children:Ba({filters:a.children,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:l,filterSearch:d})};const f=o?Qt:Wo,u={key:a.value!==void 0?c:i,label:s.createElement(s.Fragment,null,s.createElement(f,{checked:n.includes(c)}),s.createElement("span",null,a.text))};return l.trim()?typeof d=="function"?d(l,a)?u:null:Ka(l,a.text)?u:null:u})}function Un(e){return e||[]}function md(e){var t,r;const{tablePrefixCls:n,prefixCls:o,column:l,dropdownPrefixCls:d,columnKey:a,filterOnClose:i,filterMultiple:c,filterMode:f="menu",filterSearch:u=!1,filterState:m,triggerFilter:p,locale:g,children:b,getPopupContainer:v,rootClassName:h}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:x,defaultFilteredValue:S,filterDropdownVisible:I,onFilterDropdownVisibleChange:O}=l,[k,w]=s.useState(!1),E=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),M=j=>{w(j),C==null||C(j),O==null||O(j)},T=(r=y??I)!==null&&r!==void 0?r:k,P=m==null?void 0:m.filteredKeys,[$,N]=Cc(Un(P)),D=j=>{let{selectedKeys:re}=j;N(re)},K=(j,re)=>{let{node:xe,checked:ne}=re;D(c?{selectedKeys:j}:{selectedKeys:ne&&xe.key?[xe.key]:[]})};s.useEffect(()=>{k&&D({selectedKeys:Un(P)})},[P]);const[z,H]=s.useState([]),L=j=>{H(j)},[A,Y]=s.useState(""),J=j=>{const{value:re}=j.target;Y(re)};s.useEffect(()=>{k||Y("")},[k]);const de=j=>{const re=j!=null&&j.length?j:null;if(re===null&&(!m||!m.filteredKeys)||mn(re,m==null?void 0:m.filteredKeys,!0))return null;p({column:l,key:a,filteredKeys:re})},ge=()=>{M(!1),de($())},$e=function(){let{confirm:j,closeDropdown:re}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};j&&de([]),re&&M(!1),Y(""),N(x?(S||[]).map(xe=>String(xe)):[])},ee=function(){let{closeDropdown:j}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};j&&M(!1),de($())},pe=(j,re)=>{re.source==="trigger"&&(j&&P!==void 0&&N(Un(P)),M(j),!j&&!l.filterDropdown&&i&&ge())},ae=q({[`${d}-menu-without-submenu`]:!pd(l.filters||[])}),ce=j=>{if(j.target.checked){const re=Ut(l==null?void 0:l.filters).map(xe=>String(xe));N(re)}else N([])},te=j=>{let{filters:re}=j;return(re||[]).map((xe,ne)=>{const be=String(xe.value),Ne={title:xe.text,key:xe.value!==void 0?be:String(ne)};return xe.children&&(Ne.children=te({filters:xe.children})),Ne})},G=j=>{var re;return Object.assign(Object.assign({},j),{text:j.title,value:j.key,children:((re=j.children)===null||re===void 0?void 0:re.map(xe=>G(xe)))||[]})};let _;if(typeof l.filterDropdown=="function")_=l.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:j=>D({selectedKeys:j}),selectedKeys:$(),confirm:ee,clearFilters:$e,filters:l.filters,visible:T,close:()=>{M(!1)}});else if(l.filterDropdown)_=l.filterDropdown;else{const j=$()||[],re=()=>{const ne=s.createElement(Fr,{image:Fr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return ne;if(f==="tree")return s.createElement(s.Fragment,null,s.createElement($o,{filterSearch:u,value:A,onChange:J,tablePrefixCls:n,locale:g}),s.createElement("div",{className:`${n}-filter-dropdown-tree`},c?s.createElement(Qt,{checked:j.length===Ut(l.filters).length,indeterminate:j.length>0&&j.length<Ut(l.filters).length,className:`${n}-filter-dropdown-checkall`,onChange:ce},g.filterCheckall):null,s.createElement(Nr,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${d}-menu`,onCheck:K,checkedKeys:j,selectedKeys:j,showIcon:!1,treeData:te({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:A.trim()?Q=>typeof u=="function"?u(A,G(Q)):Ka(A,Q.title):void 0})));const be=Ba({filters:l.filters||[],filterSearch:u,prefixCls:o,filteredKeys:$(),filterMultiple:c,searchValue:A}),Ne=be.every(Q=>Q===null);return s.createElement(s.Fragment,null,s.createElement($o,{filterSearch:u,value:A,onChange:J,tablePrefixCls:n,locale:g}),Ne?ne:s.createElement(tn,{selectable:!0,multiple:c,prefixCls:`${d}-menu`,className:ae,onSelect:D,onDeselect:D,selectedKeys:j,getPopupContainer:v,openKeys:z,onOpenChange:L,items:be}))},xe=()=>x?mn((S||[]).map(ne=>String(ne)),j,!0):j.length===0;_=s.createElement(s.Fragment,null,re(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(Nn,{type:"link",size:"small",disabled:xe(),onClick:()=>$e()},g.filterReset),s.createElement(Nn,{type:"primary",size:"small",onClick:ge},g.filterConfirm)))}l.filterDropdown&&(_=s.createElement(Yo,{selectable:void 0},_));const V=()=>s.createElement(fd,{className:`${o}-dropdown`},_);let U;typeof l.filterIcon=="function"?U=l.filterIcon(E):l.filterIcon?U=l.filterIcon:U=s.createElement(yc,null);const{direction:X}=s.useContext(mt);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${n}-column-title`},b),s.createElement(hr,{dropdownRender:V,trigger:["click"],open:T,onOpenChange:pe,getPopupContainer:v,placement:X==="rtl"?"bottomLeft":"bottomRight",rootClassName:h},s.createElement("span",{role:"button",tabIndex:-1,className:q(`${o}-trigger`,{active:E}),onClick:j=>{j.stopPropagation()}},U)))}function cr(e,t,r){let n=[];return(e||[]).forEach((o,l)=>{var d;const a=bn(l,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let i=o.filteredValue;"filterDropdown"in o||(i=(d=i==null?void 0:i.map(String))!==null&&d!==void 0?d:i),n.push({column:o,key:jt(o,a),filteredKeys:i,forceFiltered:o.filtered})}else n.push({column:o,key:jt(o,a),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(n=[].concat(me(n),me(cr(o.children,t,a))))}),n}function Da(e,t,r,n,o,l,d,a,i){return r.map((c,f)=>{const u=bn(f,a),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:g,filterSearch:b}=c;let v=c;if(v.filters||v.filterDropdown){const h=jt(v,u),y=n.find(C=>{let{key:x}=C;return h===x});v=Object.assign(Object.assign({},v),{title:C=>s.createElement(md,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:h,filterState:y,filterOnClose:m,filterMultiple:p,filterMode:g,filterSearch:b,triggerFilter:l,locale:o,getPopupContainer:d,rootClassName:i},zn(c.title,C))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:Da(e,t,v.children,n,o,l,d,u,i)})),v})}function wo(e){const t={};return e.forEach(r=>{let{key:n,filteredKeys:o,column:l}=r;const d=n,{filters:a,filterDropdown:i}=l;if(i)t[d]=o||null;else if(Array.isArray(o)){const c=Ut(a);t[d]=c.filter(f=>o.includes(String(f)))}else t[d]=null}),t}function dr(e,t,r){return t.reduce((n,o)=>{const{column:{onFilter:l,filters:d},filteredKeys:a}=o;return l&&a&&a.length?n.map(i=>Object.assign({},i)).filter(i=>a.some(c=>{const f=Ut(d),u=f.findIndex(p=>String(p)===String(c)),m=u!==-1?f[u]:c;return i[r]&&(i[r]=dr(i[r],t,r)),l(m,i)})):n},e)}const Ma=e=>e.flatMap(t=>"children"in t?[t].concat(me(Ma(t.children||[]))):[t]);function gd(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:l,locale:d,rootClassName:a}=e;Pn();const i=s.useMemo(()=>Ma(n||[]),[n]),[c,f]=s.useState(()=>cr(i,!0)),u=s.useMemo(()=>{const b=cr(i,!1);if(b.length===0)return b;let v=!0;if(b.forEach(h=>{let{filteredKeys:y}=h;y!==void 0&&(v=!1)}),v){const h=(i||[]).map((y,C)=>jt(y,bn(C)));return c.filter(y=>{let{key:C}=y;return h.includes(C)}).map(y=>{const C=i[h.findIndex(x=>x===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),C),forceFiltered:C.filtered})})}return b},[i,c]),m=s.useMemo(()=>wo(u),[u]),p=b=>{const v=u.filter(h=>{let{key:y}=h;return y!==b.key});v.push(b),f(v),o(wo(v),v)};return[b=>Da(t,r,b,u,d,p,l,void 0,a),u,m]}function vd(e,t,r){const n=s.useRef({});function o(l){if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let a=function(i){i.forEach((c,f)=>{const u=r(c,f);d.set(u,c),c&&typeof c=="object"&&t in c&&a(c[t]||[])})};const d=new Map;a(e),n.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:r}}return n.current.kvMap.get(l)}return[o]}var hd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const za=10;function bd(e,t){const r={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const l=e[o];typeof l!="function"&&(r[o]=l)}),r}function yd(e,t,r){const n=r&&typeof r=="object"?r:{},{total:o=0}=n,l=hd(n,["total"]),[d,a]=s.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:za})),i=Il(d,l,{total:o>0?o:e}),c=Math.ceil((o||e)/i.pageSize);i.current>c&&(i.current=c||1);const f=(m,p)=>{a({current:m??1,pageSize:p||i.pageSize})},u=(m,p)=>{var g;r&&((g=r.onChange)===null||g===void 0||g.call(r,m,p)),f(m,p),t(m,p||(i==null?void 0:i.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},i),{onChange:u}),f]}var Cd={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"},xd=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Cd}))},Sd=s.forwardRef(xd),$d={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"},wd=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:$d}))},Ed=s.forwardRef(wd);const $n="ascend",Yn="descend";function kn(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Eo(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function Id(e,t){return t?e[e.indexOf(t)+1]:e[0]}function ur(e,t,r){let n=[];function o(l,d){n.push({column:l,key:jt(l,d),multiplePriority:kn(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,d)=>{const a=bn(d,r);l.children?("sortOrder"in l&&o(l,a),n=[].concat(me(n),me(ur(l.children,t,a)))):l.sorter&&("sortOrder"in l?o(l,a):t&&l.defaultSortOrder&&n.push({column:l,key:jt(l,a),multiplePriority:kn(l),sortOrder:l.defaultSortOrder}))}),n}function Ha(e,t,r,n,o,l,d,a){return(t||[]).map((i,c)=>{const f=bn(c,a);let u=i;if(u.sorter){const m=u.sortDirections||o,p=u.showSorterTooltip===void 0?d:u.showSorterTooltip,g=jt(u,f),b=r.find(k=>{let{key:w}=k;return w===g}),v=b?b.sortOrder:null,h=Id(m,v);let y;if(i.sortIcon)y=i.sortIcon({sortOrder:v});else{const k=m.includes($n)&&s.createElement(Ed,{className:q(`${e}-column-sorter-up`,{active:v===$n})}),w=m.includes(Yn)&&s.createElement(Sd,{className:q(`${e}-column-sorter-down`,{active:v===Yn})});y=s.createElement("span",{className:q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(k&&w)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},k,w))}const{cancelSort:C,triggerAsc:x,triggerDesc:S}=l||{};let I=C;h===Yn?I=S:h===$n&&(I=x);const O=typeof p=="object"?Object.assign({title:I},p):{title:I};u=Object.assign(Object.assign({},u),{className:q(u.className,{[`${e}-column-sort`]:v}),title:k=>{const w=`${e}-column-sorters`,E=s.createElement("span",{className:`${e}-column-title`},zn(i.title,k)),M=s.createElement("div",{className:w},E,y);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?s.createElement("div",{className:`${w} ${e}-column-sorters-tooltip-target-sorter`},E,s.createElement(Zn,Object.assign({},O),y)):s.createElement(Zn,Object.assign({},O),M):M},onHeaderCell:k=>{var w;const E=((w=i.onHeaderCell)===null||w===void 0?void 0:w.call(i,k))||{},M=E.onClick,T=E.onKeyDown;E.onClick=N=>{n({column:i,key:g,sortOrder:h,multiplePriority:kn(i)}),M==null||M(N)},E.onKeyDown=N=>{N.keyCode===Ye.ENTER&&(n({column:i,key:g,sortOrder:h,multiplePriority:kn(i)}),T==null||T(N))};const P=vc(i.title,{}),$=P==null?void 0:P.toString();return v?E["aria-sort"]=v==="ascend"?"ascending":"descending":E["aria-label"]=$||"",E.className=q(E.className,`${e}-column-has-sorters`),E.tabIndex=0,i.ellipsis&&(E.title=(P??"").toString()),E}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Ha(e,u.children,r,n,o,l,d,f)})),u})}const Io=e=>{const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},No=e=>{const t=e.filter(r=>{let{sortOrder:n}=r;return n}).map(Io);if(t.length===0&&e.length){const r=e.length-1;return Object.assign(Object.assign({},Io(e[r])),{column:void 0})}return t.length<=1?t[0]||{}:t};function fr(e,t,r){const n=t.slice().sort((d,a)=>a.multiplePriority-d.multiplePriority),o=e.slice(),l=n.filter(d=>{let{column:{sorter:a},sortOrder:i}=d;return Eo(a)&&i});return l.length?o.sort((d,a)=>{for(let i=0;i<l.length;i+=1){const c=l[i],{column:{sorter:f},sortOrder:u}=c,m=Eo(f);if(m&&u){const p=m(d,a,u);if(p!==0)return u===$n?p:-p}}return 0}).map(d=>{const a=d[r];return a?Object.assign(Object.assign({},d),{[r]:fr(a,t,r)}):d}):o}function Nd(e){let{prefixCls:t,mergedColumns:r,onSorterChange:n,sortDirections:o,tableLocale:l,showSorterTooltip:d}=e;const[a,i]=s.useState(ur(r,!0)),c=s.useMemo(()=>{let g=!0;const b=ur(r,!1);if(!b.length)return a;const v=[];function h(C){g?v.push(C):v.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return b.forEach(C=>{y===null?(h(C),C.sortOrder&&(C.multiplePriority===!1?g=!1:y=!0)):(y&&C.multiplePriority!==!1||(g=!1),h(C))}),v},[r,a]),f=s.useMemo(()=>{var g,b;const v=c.map(h=>{let{column:y,sortOrder:C}=h;return{column:y,order:C}});return{sortColumns:v,sortColumn:(g=v[0])===null||g===void 0?void 0:g.column,sortOrder:(b=v[0])===null||b===void 0?void 0:b.order}},[c]),u=g=>{let b;g.multiplePriority===!1||!c.length||c[0].multiplePriority===!1?b=[g]:b=[].concat(me(c.filter(v=>{let{key:h}=v;return h!==g.key})),[g]),i(b),n(No(b),b)};return[g=>Ha(t,g,c,u,o,l,d),c,f,()=>No(c)]}function La(e,t){return e.map(r=>{const n=Object.assign({},r);return n.title=zn(r.title,t),"children"in n&&(n.children=La(n.children,t)),n})}function Od(e){return[s.useCallback(r=>La(r,e),[e])]}const Rd=$a((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),kd=Ea((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),Pd=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:o,tableHeaderBg:l,tablePaddingVertical:d,tablePaddingHorizontal:a,calc:i}=e,c=`${B(r)} ${n} ${o}`,f=(u,m,p)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(i(m).mul(-1).equal())}
${B(i(i(p).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
> ${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:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(i(d).mul(-1).equal())} ${B(i(i(a).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},f("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),f("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${B(r)} 0 ${B(r)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Td=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ko),{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"}})}}},Kd=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}}}}},Bd=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:l,lineType:d,tableBorderColor:a,tableExpandIconBg:i,tableExpandColumnWidth:c,borderRadius:f,tablePaddingVertical:u,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:g,expandIconMarginTop:b,expandIconSize:v,expandIconHalfInner:h,expandIconScale:y,calc:C}=e,x=`${B(o)} ${d} ${a}`,S=C(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${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({},ji(e)),{position:"relative",float:"left",boxSizing:"border-box",width:v,height:v,padding:0,color:"inherit",lineHeight:B(v),background:i,border:x,borderRadius:f,transform:`scale(${y})`,transition:`all ${n}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:h,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${B(C(u).mul(-1).equal())} ${B(C(m).mul(-1).equal())}`,padding:`${B(u)} ${B(m)}`}}}},Dd=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:l,paddingXXS:d,paddingXS:a,colorText:i,lineWidth:c,lineType:f,tableBorderColor:u,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:b,motionDurationSlow:v,colorTextDescription:h,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:x,tableFilterDropdownBg:S,tableFilterDropdownHeight:I,controlItemBgHover:O,controlItemBgActive:k,boxShadowSecondary:w,filterDropdownMenuBg:E,calc:M}=e,T=`${r}-dropdown`,P=`${t}-filter-dropdown`,$=`${r}-tree`,N=`${B(c)} ${f} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(d).mul(-1).equal(),marginInline:`${B(d)} ${B(M(g).div(2).mul(-1).equal())}`,padding:`0 ${B(d)}`,color:m,fontSize:p,borderRadius:b,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:h,background:C},"&.active":{color:y}}}},{[`${r}-dropdown`]:{[P]:Object.assign(Object.assign({},xt(e)),{minWidth:o,backgroundColor:S,borderRadius:b,boxShadow:w,overflow:"hidden",[`${T}-menu`]:{maxHeight:I,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${B(a)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${B(a)} 0`,paddingInline:a,[$]:{padding:0},[`${$}-treenode ${$}-node-content-wrapper:hover`]:{backgroundColor:O},[`${$}-treenode-checkbox-checked ${$}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${P}-search`]:{padding:a,borderBottom:N,"&-input":{input:{minWidth:l},[n]:{color:x}}},[`${P}-checkall`]:{width:"100%",marginBottom:d,marginInlineStart:d},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${B(M(a).sub(c).equal())} ${B(a)}`,overflow:"hidden",borderTop:N}})}},{[`${r}-dropdown ${P}, ${P}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:i},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Md=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:o,zIndexTableFixed:l,tableBg:d,zIndexTableSticky:a,calc:i}=e,c=n;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:l,background:d},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:i(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,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:i(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i(a).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${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 ${c}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${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"}}}}},zd=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${B(n)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Hd=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${B(r)} ${B(r)} 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:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${B(r)} ${B(r)}`}}}}},Ld=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"}}}}},jd=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:o,padding:l,paddingXS:d,headerIconColor:a,headerIconHoverColor:i,tableSelectionColumnWidth:c,tableSelectedRowBg:f,tableSelectedRowHoverBg:u,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(o).add(g(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(c).add(g(d).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(o).add(g(l).div(4)).add(g(d).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",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+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:B(g(p).div(4).equal()),[n]:{color:a,fontSize:o,verticalAlign:"baseline","&:hover":{color:i}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:f,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},_d=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,o=(l,d,a,i)=>({[`${t}${t}-${l}`]:{fontSize:i,[`
${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:`${B(d)} ${B(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:B(n(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${B(n(d).mul(-1).equal())} ${B(n(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:B(n(d).mul(-1).equal()),marginInline:`${B(n(r).sub(a).equal())} ${B(n(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:B(n(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Ad=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&: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:r,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Fd=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:l,tableScrollBg:d,zIndexTableSticky:a,stickyScrollBarBorderRadius:i,lineWidth:c,lineType:f,tableBorderColor:u}=e,m=`${B(c)} ${f} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${B(l)} !important`,zIndex:a,display:"flex",alignItems:"center",background:d,borderTop:m,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:n,borderRadius:i,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Oo=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:o}=e,l=`${B(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 ${B(o(r).mul(-1).equal())} 0 ${n}`}}}},Wd=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:l,calc:d}=e,a=`${B(n)} ${o} ${l}`,i=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:a,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${i}${i}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${B(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:a,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:a,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:d(n).mul(-1).equal(),borderInlineStart:a}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:a,borderBottom:a}}}}}},Vd=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:l,lineWidth:d,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:f,tableRadius:u,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:b,tableFooterTextColor:v,tableFooterBg:h,calc:y}=e,C=`${B(d)} ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Jn()),{[t]:Object.assign(Object.assign({},xt(e)),{fontSize:c,background:f,borderRadius:`${B(u)} ${B(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${B(u)} ${B(u)} 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:`${B(n)} ${B(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${B(n)} ${B(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:b,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:B(y(n).mul(-1).equal()),marginInline:`${B(y(l).sub(o).equal())}
${B(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${B(n)} ${B(o)}`,color:v,background:h}})}},Xd=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:o,colorFillContent:l,controlItemBgActive:d,controlItemBgActiveHover:a,padding:i,paddingSM:c,paddingXS:f,colorBorderSecondary:u,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:g,fontSize:b,fontSizeSM:v,lineHeight:h,lineWidth:y,colorIcon:C,colorIconHover:x,opacityLoading:S,controlInteractiveSize:I}=e,O=new zt(o).onBackground(r).toHexShortString(),k=new zt(l).onBackground(r).toHexShortString(),w=new zt(t).onBackground(r).toHexShortString(),E=new zt(C),M=new zt(x),T=I/2-y,P=T*2+y*3;return{headerBg:w,headerColor:n,headerSortActiveBg:O,headerSortHoverBg:k,bodySortBg:w,rowHoverBg:w,rowSelectedBg:d,rowSelectedHoverBg:a,rowExpandedBg:t,cellPaddingBlock:i,cellPaddingInline:i,cellPaddingBlockMD:c,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:u,headerBorderRadius:m,footerBg:w,footerColor:n,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:u,fixedHeaderSortActiveBg:O,headerFilterHoverBg:l,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*h-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*S).toRgbString(),headerIconHoverColor:M.clone().setAlpha(M.getAlpha()*S).toRgbString(),expandIconHalfInner:T,expandIconSize:P,expandIconScale:I/P}},qd=en("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:l,headerColor:d,headerSortActiveBg:a,headerSortHoverBg:i,bodySortBg:c,rowHoverBg:f,rowSelectedBg:u,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:g,cellPaddingInline:b,cellPaddingBlockMD:v,cellPaddingInlineMD:h,cellPaddingBlockSM:y,cellPaddingInlineSM:C,borderColor:x,footerBg:S,footerColor:I,headerBorderRadius:O,cellFontSize:k,cellFontSizeMD:w,cellFontSizeSM:E,headerSplitColor:M,fixedHeaderSortActiveBg:T,headerFilterHoverBg:P,filterDropdownBg:$,expandIconBg:N,selectionColumnWidth:D,stickyScrollBarBg:K,calc:z}=e,H=2,L=Lt(e,{tableFontSize:k,tableBg:n,tableRadius:O,tablePaddingVertical:g,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:C,tableBorderColor:x,tableHeaderTextColor:d,tableHeaderBg:l,tableFooterTextColor:I,tableFooterBg:S,tableHeaderCellSplitColor:M,tableHeaderSortBg:a,tableHeaderSortHoverBg:i,tableBodySortBg:c,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:$,tableRowHoverBg:f,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,zIndexTableFixed:H,zIndexTableSticky:H+1,tableFontSizeMiddle:w,tableFontSizeSmall:E,tableSelectionColumnWidth:D,tableExpandIconBg:N,tableExpandColumnWidth:z(o).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:K,tableScrollThumbBgHover:t,tableScrollBg:r});return[Vd(L),zd(L),Oo(L),Ad(L),Dd(L),Pd(L),Hd(L),Bd(L),Oo(L),Kd(L),jd(L),Md(L),Fd(L),Td(L),_d(L),Ld(L),Wd(L)]},Xd,{unitless:{expandIconScale:!0}}),Gd=[],Ud=(e,t)=>{var r,n;const{prefixCls:o,className:l,rootClassName:d,style:a,size:i,bordered:c,dropdownPrefixCls:f,dataSource:u,pagination:m,rowSelection:p,rowKey:g="key",rowClassName:b,columns:v,children:h,childrenColumnName:y,onChange:C,getPopupContainer:x,loading:S,expandIcon:I,expandable:O,expandedRowRender:k,expandIconColumnIndex:w,indentSize:E,scroll:M,sortDirections:T,locale:P,showSorterTooltip:$={target:"full-header"},virtual:N}=e;Pn();const D=s.useMemo(()=>v||xr(h),[v,h]),K=s.useMemo(()=>D.some(se=>se.responsive),[D]),z=Xo(K),H=s.useMemo(()=>{const se=new Set(Object.keys(z).filter(he=>z[he]));return D.filter(he=>!he.responsive||he.responsive.some(Ee=>se.has(Ee)))},[D,z]),L=At(e,["className","style","columns"]),{locale:A=Ti,direction:Y,table:J,renderEmpty:de,getPrefixCls:ge,getPopupContainer:$e}=s.useContext(mt),ee=Do(i),pe=Object.assign(Object.assign({},A.Table),P),ae=u||Gd,ce=ge("table",o),te=ge("dropdown",f),[,G]=Tn(),_=gn(ce),[V,U,X]=qd(ce,_),j=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:w},O),{expandIcon:(r=O==null?void 0:O.expandIcon)!==null&&r!==void 0?r:(n=J==null?void 0:J.expandable)===null||n===void 0?void 0:n.expandIcon}),{childrenColumnName:re="children"}=j,xe=s.useMemo(()=>ae.some(se=>se==null?void 0:se[re])?"nest":k||O!=null&&O.expandedRowRender?"row":null,[ae]),ne={body:s.useRef()},be=gc(ce),Ne=s.useRef(null),Q=s.useRef(null);pc(t,()=>Object.assign(Object.assign({},Q.current),{nativeElement:Ne.current}));const Ce=s.useMemo(()=>typeof g=="function"?g:se=>se==null?void 0:se[g],[g]),[Pe]=vd(ae,re,Ce),we={},Je=function(se,he){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ie,Le,Xe,ft;const Ae=Object.assign(Object.assign({},we),se);Ee&&((Ie=we.resetPagination)===null||Ie===void 0||Ie.call(we),!((Le=Ae.pagination)===null||Le===void 0)&&Le.current&&(Ae.pagination.current=1),m&&((Xe=m.onChange)===null||Xe===void 0||Xe.call(m,1,(ft=Ae.pagination)===null||ft===void 0?void 0:ft.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&ne.body.current&&Fi(0,{getContainer:()=>ne.body.current}),C==null||C(Ae.pagination,Ae.filters,Ae.sorter,{currentDataSource:dr(fr(ae,Ae.sorterStates,re),Ae.filterStates,re),action:he})},We=(se,he)=>{Je({sorter:se,sorterStates:he},"sort",!1)},[lt,Z,Oe,ue]=Nd({prefixCls:ce,mergedColumns:H,onSorterChange:We,sortDirections:T||["ascend","descend"],tableLocale:pe,showSorterTooltip:$}),Be=s.useMemo(()=>fr(ae,Z,re),[ae,Z]);we.sorter=ue(),we.sorterStates=Z;const Te=(se,he)=>{Je({filters:se,filterStates:he},"filter",!0)},[Re,He,je]=gd({prefixCls:ce,locale:pe,dropdownPrefixCls:te,mergedColumns:H,onFilterChange:Te,getPopupContainer:x||$e,rootClassName:q(d,_)}),Ke=dr(Be,He,re);we.filters=je,we.filterStates=He;const st=s.useMemo(()=>{const se={};return Object.keys(je).forEach(he=>{je[he]!==null&&(se[he]=je[he])}),Object.assign(Object.assign({},Oe),{filters:se})},[Oe,je]),[_e]=Od(st),Ot=(se,he)=>{Je({pagination:Object.assign(Object.assign({},we.pagination),{current:se,pageSize:he})},"paginate")},[ke,Rt]=yd(Ke.length,Ot,m);we.pagination=m===!1?{}:bd(ke,m),we.resetPagination=Rt;const Qe=s.useMemo(()=>{if(m===!1||!ke.pageSize)return Ke;const{current:se=1,total:he,pageSize:Ee=za}=ke;return Ke.length<he?Ke.length>Ee?Ke.slice((se-1)*Ee,se*Ee):Ke:Ke.slice((se-1)*Ee,se*Ee)},[!!m,Ke,ke==null?void 0:ke.current,ke==null?void 0:ke.pageSize,ke==null?void 0:ke.total]),[ot,at]=uc({prefixCls:ce,data:Ke,pageData:Qe,getRowKey:Ce,getRecordByKey:Pe,expandType:xe,childrenColumnName:re,locale:pe,getPopupContainer:x||$e},p),ut=(se,he,Ee)=>{let Ie;return typeof b=="function"?Ie=q(b(se,he,Ee)):Ie=q(b),q({[`${ce}-row-selected`]:at.has(Ce(se,he))},Ie)};j.__PARENT_RENDER_ICON__=j.expandIcon,j.expandIcon=j.expandIcon||I||mc(pe),xe==="nest"&&j.expandIconColumnIndex===void 0?j.expandIconColumnIndex=p?1:0:j.expandIconColumnIndex>0&&p&&(j.expandIconColumnIndex-=1),typeof j.indentSize!="number"&&(j.indentSize=typeof E=="number"?E:15);const ct=s.useCallback(se=>_e(ot(Re(lt(se)))),[lt,Re,ot]);let Ve,qe;if(m!==!1&&(ke!=null&&ke.total)){let se;ke.size?se=ke.size:se=ee==="small"||ee==="middle"?"small":void 0;const he=Le=>s.createElement(ql,Object.assign({},ke,{className:q(`${ce}-pagination ${ce}-pagination-${Le}`,ke.className),size:se})),Ee=Y==="rtl"?"left":"right",{position:Ie}=ke;if(Ie!==null&&Array.isArray(Ie)){const Le=Ie.find(Ae=>Ae.includes("top")),Xe=Ie.find(Ae=>Ae.includes("bottom")),ft=Ie.every(Ae=>`${Ae}`=="none");!Le&&!Xe&&!ft&&(qe=he(Ee)),Le&&(Ve=he(Le.toLowerCase().replace("top",""))),Xe&&(qe=he(Xe.toLowerCase().replace("bottom","")))}else qe=he(Ee)}let it;typeof S=="boolean"?it={spinning:S}:typeof S=="object"&&(it=Object.assign({spinning:!0},S));const De=q(X,_,`${ce}-wrapper`,J==null?void 0:J.className,{[`${ce}-wrapper-rtl`]:Y==="rtl"},l,d,U),Me=Object.assign(Object.assign({},J==null?void 0:J.style),a),Ze=typeof(P==null?void 0:P.emptyText)<"u"?P.emptyText:(de==null?void 0:de("Table"))||s.createElement(ki,{componentName:"Table"}),on=N?kd:Rd,Wt={},St=s.useMemo(()=>{const{fontSize:se,lineHeight:he,padding:Ee,paddingXS:Ie,paddingSM:Le}=G,Xe=Math.floor(se*he);switch(ee){case"large":return Ee*2+Xe;case"small":return Ie*2+Xe;default:return Le*2+Xe}},[G,ee]);return N&&(Wt.listItemHeight=St),V(s.createElement("div",{ref:Ne,className:De,style:Me},s.createElement(Pi,Object.assign({spinning:!1},it),Ve,s.createElement(on,Object.assign({},Wt,L,{ref:Q,columns:H,direction:Y,expandable:j,prefixCls:ce,className:q({[`${ce}-middle`]:ee==="middle",[`${ce}-small`]:ee==="small",[`${ce}-bordered`]:c,[`${ce}-empty`]:ae.length===0},X,_,U),data:Qe,rowKey:Ce,rowClassName:ut,emptyText:Ze,internalHooks:hn,internalRefs:ne,transformColumns:ct,getContainerWidth:be})),qe)))},Yd=s.forwardRef(Ud),Jd=(e,t)=>{const r=s.useRef(0);return r.current+=1,s.createElement(Yd,Object.assign({},e,{ref:t,_renderTimes:r.current}))},Nt=s.forwardRef(Jd);Nt.SELECTION_COLUMN=wt;Nt.EXPAND_COLUMN=Et;Nt.SELECTION_ALL=ar;Nt.SELECTION_INVERT=ir;Nt.SELECTION_NONE=lr;Nt.Column=ec;Nt.ColumnGroup=tc;Nt.Summary=pa;export{Qt as C,Nt as F};
|