You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
100 KiB

8 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[51],{49867:function(wn,Rt,x){x.d(Rt,{N:function(){return o}});const o=Te=>({color:Te.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Te.motionDurationSlow}`,"&:focus, &:hover":{color:Te.colorLinkHover},"&:active":{color:Te.colorLinkActive}})},84164:function(wn,Rt,x){x.d(Rt,{Z:function(){return Te}});var o=x(67294);function Te(q,le,Je){const Ie=o.useRef({});function it(st){if(!Ie.current||Ie.current.data!==q||Ie.current.childrenColumnName!==le||Ie.current.getRowKey!==Je){let Pe=function(Se){Se.forEach((ct,Jt)=>{const zt=Je(ct,Jt);mt.set(zt,ct),ct&&typeof ct=="object"&&le in ct&&Pe(ct[le]||[])})};const mt=new Map;Pe(q),Ie.current={data:q,childrenColumnName:le,kvMap:mt,getRowKey:Je}}return Ie.current.kvMap.get(st)}return[it]}},72051:function(wn,Rt,x){x.d(Rt,{Z:function(){return _a}});var o=x(67294),Te={},q="rc-table-internal-hook",le=x(97685),Je=x(66680),Ie=x(8410),it=x(91881),st=x(73935);function mt(e){var t=o.createContext(void 0),n=function(l){var a=l.value,c=l.children,i=o.useRef(a);i.current=a;var s=o.useState(function(){return{getValue:function(){return i.current},listeners:new Set}}),d=(0,le.Z)(s,1),p=d[0];return(0,Ie.Z)(function(){(0,st.unstable_batchedUpdates)(function(){p.listeners.forEach(function(u){u(a)})})},[a]),o.createElement(t.Provider,{value:p},c)};return{Context:t,Provider:n,defaultValue:e}}function Pe(e,t){var n=(0,Je.Z)(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var f={};return t.forEach(function(m){f[m]=u[m]}),f}),r=o.useContext(e==null?void 0:e.Context),l=r||{},a=l.listeners,c=l.getValue,i=o.useRef();i.current=n(r?c():e==null?void 0:e.defaultValue);var s=o.useState({}),d=(0,le.Z)(s,2),p=d[1];return(0,Ie.Z)(function(){if(!r)return;function u(f){var m=n(f);(0,it.Z)(i.current,m,!0)||p({})}return a.add(u),function(){a.delete(u)}},[r]),i.current}var Se=x(87462),ct=x(42550);function Jt(){var e=o.createContext(null);function t(){return o.useContext(e)}function n(l,a){var c=(0,ct.Yr)(l),i=function(d,p){var u=c?{ref:p}:{},f=o.useRef(0),m=o.useRef(d),v=t();return v!==null?o.createElement(l,(0,Se.Z)({},d,u)):((!a||a(m.current,d))&&(f.current+=1),m.current=d,o.createElement(e.Provider,{value:f.current},o.createElement(l,(0,Se.Z)({},d,u))))};return c?o.forwardRef(i):i}function r(l,a){var c=(0,ct.Yr)(l),i=function(d,p){var u=c?{ref:p}:{};return t(),o.createElement(l,(0,Se.Z)({},d,u))};return c?o.memo(o.forwardRef(i),a):o.memo(i,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var zt=Jt(),vr=zt.makeImmutable,Hn=zt.responseImmutable,pr=zt.useImmutableMark,Ot=Jt(),fn=Ot.makeImmutable,Zt=Ot.responseImmutable,Fn=Ot.useImmutableMark,Mn=mt(),Qe=Mn;function gr(e,t){var n=React.useRef(0);n.current+=1;var r=React.useRef(e),l=[];Object.keys(e||{}).map(function(c){var i;(e==null?void 0:e[c])!==((i=r.current)===null||i===void 0?void 0:i[c])&&l.push(c)}),r.current=e;var a=React.useRef([]);return l.length&&(a.current=l),React.useDebugValue(n.current),React.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}var hr=null,Kn=null,$t=x(71002),M=x(1413),te=x(4942),xr=x(93967),ne=x.n(xr),vt=x(56982),Lt=x(88306),yr=x(80334),mn=o.createContext({renderWithProps:!1}),vn=mn,zn="RC_TABLE_KEY";function En(e){return e==null?[]:Array.isArray(e)?e:[e]}function Qt(e){var t=[],n={};return e.forEach(function(r){for(var l=r||{},a=l.key,c=l.dataIndex,i=a||En(c).join("-")||zn;n[i];)i="".concat(i,"_next");n[i]=!0,t.push(i)}),t}function Rn(e){return e!=null}function Ln(e){return e&&(0,$t.Z)(e)==="object"&&!Array.isArray(e)&&!o.isValidElement(e)}function pn(e,t,n,r,l,a){var c=o.useContext(vn),i=Fn(),s=(0,vt.Z)(function(){if(Rn(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],p=(0,Lt.Z)(e,d),u=p,f=void 0;if(l){var m=l(p,e,n);Ln(m)?(u=m.children,f=m.props,c.renderWithProps=!0):u=m}return[u,f]},[i,e,r,t,l,n],function(d,p){if(a){var u=(0,le.Z)(d,2),f=u[1],m=(0,le.Z)(p,2),v=m[1];return a(v,f)}return c.renderWithP
> table > tbody > tr > th,
> table > tbody > tr > td
`]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,j.bf)(s(f).mul(-1).equal())}
${(0,j.bf)(s(s(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{[`
> thead > tr > th,
> thead > tr > td,
> tbody > tr > th,
> tbody > tr > td,
> tfoot > tr > th,
> tfoot > tr > td
`]:{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},[`
> thead > tr,
> tbody > tr,
> tfoot > tr
`]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},[`
> tbody > tr > th,
> tbody > tr > td
`]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,j.bf)(s(c).mul(-1).equal())} ${(0,j.bf)(s(s(i).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{["> th, > td"]:{borderInlineEnd:0}}}}}},p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,j.bf)(n)} 0 ${(0,j.bf)(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},Oa=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},On.vS),{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"}})}}},Za=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[`
&:hover > th,
&:hover > td,
`]:{background:e.colorBgContainer}}}}},Pa=x(49867),Ba=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:c,tableBorderColor:i,tableExpandIconBg:s,tableExpandColumnWidth:d,borderRadius:p,tablePaddingVertical:u,tablePaddingHorizontal:f,tableExpandedRowBg:m,paddingXXS:v,expandIconMarginTop:y,expandIconSize:g,expandIconHalfInner:b,expandIconScale:C,calc:h}=e,R=`${(0,j.bf)(l)} ${c} ${i}`,E=h(v).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${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({},(0,Pa.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:(0,j.bf)(g),background:s,border:R,borderRadius:p,transform:`scale(${C})`,transition:`all ${r}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:E,insetInlineStart:E,height:l},"&::after":{top:E,bottom:E,insetInlineStart:b,width:l,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:y,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,j.bf)(h(u).mul(-1).equal())} ${(0,j.bf)(h(f).mul(-1).equal())}`,padding:`${(0,j.bf)(u)} ${(0,j.bf)(f)}`}}}},Ha=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:c,paddingXS:i,colorText:s,lineWidth:d,lineType:p,tableBorderColor:u,headerIconColor:f,fontSizeSM:m,tablePaddingHorizontal:v,borderRadius:y,motionDurationSlow:g,colorTextDescription:b,colorPrimary:C,tableHeaderFilterActiveBg:h,colorTextDisabled:R,tableFilterDropdownBg:E,tableFilterDropdownHeight:N,controlItemBgHover:O,controlItemBgActive:L,boxShadowSecondary:I,filterDropdownMenuBg:A,calc:V}=e,P=`${n}-dropdown`,w=`${t}-filter-dropdown`,$=`${n}-tree`,B=`${(0,j.bf)(d)} ${p} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:V(c).mul(-1).equal(),marginInline:`${(0,j.bf)(c)} ${(0,j.bf)(V(v).div(2).mul(-1).equal())}`,padding:`0 ${(0,j.bf)(c)}`,color:f,fontSize:m,borderRadius:y,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:h},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[w]:Object.assign(Object.assign({},(0,On.Wf)(e)),{minWidth:l,backgroundColor:E,borderRadius:y,boxShadow:I,overflow:"hidden",[`${P}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:A,"&:empty::after":{display:"block",padding:`${(0,j.bf)(i)} 0`,color:R,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${w}-tree`]:{paddingBlock:`${(0,j.bf)(i)} 0`,paddingInline:i,[$]:{padding:0},[`${$}-treenode ${$}-node-content-wrapper:hover`]:{backgroundColor:O},[`${$}-treenode-checkbox-checked ${$}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:L}}},[`${w}-search`]:{padding:i,borderBottom:B,"&-input":{input:{minWidth:a},[r]:{color:R}}},[`${w}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${w}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,j.bf)(V(i).sub(d).equal())} ${(0,j.bf)(i)}`,overflow:"hidden",borderTop:B}})}},{[`${n}-dropdown ${w}, ${w}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:s},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Fa=e=>{cons
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:a,background:c},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,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:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(i).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,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 ${d}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${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 ${d}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${d}`}},[`${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"}}}}},Ma=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,j.bf)(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ka=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,j.bf)(n)} ${(0,j.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,j.bf)(n)} ${(0,j.bf)(n)}`}}}}},za=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"}}}}},La=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:a,paddingXS:c,headerIconColor:i,headerIconHoverColor:s,tableSelectionColumnWidth:d,tableSelectedRowBg:p,tableSelectedRowHoverBg:u,tableRowHoverBg:f,tablePaddingHorizontal:m,calc:v}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:v(d).add(l).add(v(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:v(d).add(v(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:v(d).add(l).add(v(a).div(4)).add(v(c).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex: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:(0,j.bf)(v(m).div(4).equal()),[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Da=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(a,c,i,s)=>({[`${t}${t}-${a}`]:{fontSize:s,[`
${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:`${(0,j.bf)(c)} ${(0,j.bf)(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,j.bf)(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,j.bf)(r(c).mul(-1).equal())} ${(0,j.bf)(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,j.bf)(r(c).mul(-1).equal()),marginInline:`${(0,j.bf)(r(n).sub(i).equal())} ${(0,j.bf)(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,j.bf)(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},ja=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=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-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Aa=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:c,zIndexTableSticky:i,stickyScrollBarBorderRadius:s,lineWidth:d,lineType:p,tableBorderColor:u}=e,f=`${(0,j.bf)(d)} ${p} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,j.bf)(a)} !important`,zIndex:i,display:"flex",alignItems:"center",background:c,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},no=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${(0,j.bf)(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,j.bf)(l(n).mul(-1).equal())} 0 ${r}`}}}},Wa=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:c}=e,i=`${(0,j.bf)(r)} ${l} ${a}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:i,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,j.bf)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:i,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:i,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(r).mul(-1).equal(),borderInlineStart:i}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:i,borderBottom:i}}}}}};const Va=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,tableExpandColumnWidth:a,lineWidth:c,lineType:i,tableBorderColor:s,tableFontSize:d,tableBg:p,tableRadius:u,tableHeaderTextColor:f,motionDurationMid:m,tableHeaderBg:v,tableHeaderCellSplitColor:y,tableFooterTextColor:g,tableFooterBg:b,calc:C}=e,h=`${(0,j.bf)(c)} ${i} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,On.dF)()),{[t]:Object.assign(Object.assign({},(0,On.Wf)(e)),{fontSize:d,background:p,borderRadius:`${(0,j.bf)(u)} ${(0,j.bf)(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,j.bf)(u)} ${(0,j.bf)(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:`${(0,j.bf)(r)} ${(0,j.bf)(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,j.bf)(r)} ${(0,j.bf)(l)}`},[`${t}-thead`]:{[`
> tr > th,
> tr > td
`]:{position:"relative",color:f,fontWeight:n,textAlign:"start",background:v,borderBottom:h,transition:`background ${m} 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:y,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${m}, border-color ${m}`,borderBottom:h,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:(0,j.bf)(C(r).mul(-1).equal()),marginInline:`${(0,j.bf)(C(a).sub(l).equal())}
${(0,j.bf)(C(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:v,borderBottom:h,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${(0,j.bf)(r)} ${(0,j.bf)(l)}`,color:g,background:b}})}},Xa=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:c,controlItemBgActiveHover:i,padding:s,paddingSM:d,paddingXS:p,colorBorderSecondary:u,borderRadiusLG:f,controlHeight:m,colorTextPlaceholder:v,fontSize:y,fontSizeSM:g,lineHeight:b,lineWidth:C,colorIcon:h,colorIconHover:R,opacityLoading:E,controlInteractiveSize:N}=e,O=new yn.C(l).onBackground(n).toHexShortString(),L=new yn.C(a).onBackground(n).toHexShortString(),I=new yn.C(t).onBackground(n).toHexShortString(),A=new yn.C(h),V=new yn.C(R),P=N/2-C,w=P*2+C*3;return{headerBg:I,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:L,bodySortBg:I,rowHoverBg:I,rowSelectedBg:c,rowSelectedHoverBg:i,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:d,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:u,headerBorderRadius:f,footerBg:I,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:u,fixedHeaderSortActiveBg:O,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*b-C*3)/2-Math.ceil((g*1.4-C*3)/2),headerIconColor:A.clone().setAlpha(A.getAlpha()*E).toRgbString(),headerIconHoverColor:V.clone().setAlpha(V.getAlpha()*E).toRgbString(),expandIconHalfInner:P,expandIconSize:w,expandIconScale:N/w}};var Ua=(0,Ta.I$)("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:c,headerSortActiveBg:i,headerSortHoverBg:s,bodySortBg:d,rowHoverBg:p,rowSelectedBg:u,rowSelectedHoverBg:f,rowExpandedBg:m,cellPaddingBlock:v,cellPaddingInline:y,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:C,cellPaddingInlineSM:h,borderColor:R,footerBg:E,footerColor:N,headerBorderRadius:O,cellFontSize:L,cellFontSizeMD:I,cellFontSizeSM:A,headerSplitColor:V,fixedHeaderSortActiveBg:P,headerFilterHoverBg:w,filterDropdownBg:$,expandIconBg:B,selectionColumnWidth:F,stickyScrollBarBg:S,calc:Z}=e,D=2,K=(0,ka.TS)(e,{tableFontSize:L,tableBg:r,tableRadius:O,tablePaddingVertical:v,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:h,tableBorderColor:R,tableHeaderTextColor:c,tableHeaderBg:a,tableFooterTextColor:N,tableFooterBg:E,tableHeaderCellSplitColor:V,tableHeaderSortBg:i,tableHeaderSortHoverBg:s,tableBodySortBg:d,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:w,tableFilterDropdownBg:$,tableRowHoverBg:p,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,zIndexTableFixed:D,zIndexTableSticky:D+1,tableFontSizeMiddle:I,tableFontSizeSmall:A,tableSelectionColumnWidth:F,tableExpandIconBg:B,tableExpandColumnWidth:Z(l).add(Z(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:S,tableScrollThumbBgHover:t,tableScrollBg:n});return[Va(K),Ma(K),no(K),ja(K),Ha(K),Na(K),Ka(K),Ba(K),no(K),Za(K),La(K),Fa(K),Aa(K),Oa(K),Da(K),za(K),Wa(K)]},Xa,{unitless:{expandIconScale:!0}});const Ga=[],Ya=(e,t)=>{var n,r;const{prefixCls:l,className:a,rootClassName:c,style:i,size:s,bordered:d,dropdownPrefixCls:p,dataSource:u,pagination:f,rowSelection:m,rowKey:v="key",rowClassName:y,columns:g,children:b,childrenColumnName:C,onChange:h,getPopupContainer:R,loading:E,expandIcon:N,expandable:O,expandedRowRender:L,expandIconColumnIndex:I,indentSize:A,scroll:V,sortDirections:P,locale:w,showSorterTooltip:$=!0,virtual:B}=e,F=(0,Un.ln)("Table"),S=o.useMemo(()=>g||An(b),[g,b]),Z=o.useMemo(()=>S.some(Q=>Q.responsive),[S]),D=(0,Bl.Z)(Z),K=o.useMemo