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.

154 lines
211 KiB

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[539],{82947:function(Qn,ke){"use strict";var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};ke.Z=u},29676:function(Qn,ke,u){"use strict";u.d(ke,{Z:function(){return Se}});var K=u(1413),M=u(4942),Ze=u(71002),de=u(97685),O=u(91),ze=u(87462),i=u(67294),xe=u(50756),pn=u(5627),hn=function(I,ie){return i.createElement(pn.Z,(0,ze.Z)({},I,{ref:ie,icon:xe.Z}))},yn=i.forwardRef(hn),v=yn,Ne=u(86333),ue=u(28459),on=u(13169),_e=u(25378),mn=u(93967),un=u.n(mn),xn=u(97435),Te=u(21770),$e=u(98082),Xn=function(I){var ie=I.componentCls,be=I.antCls;return(0,M.Z)({},"".concat(ie,"-actions"),(0,M.Z)((0,M.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:I.marginXS,background:I.colorBgContainer,borderBlockStart:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:I.colorTextSecondary,transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:I.marginSM,marginInline:0,color:I.colorTextSecondary,textAlign:"center",a:{color:I.colorTextSecondary,transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}},div:(0,M.Z)((0,M.Z)({position:"relative",display:"block",minWidth:32,fontSize:I.fontSize,lineHeight:I.lineHeight,cursor:"pointer","&:hover":{color:I.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(be,`-btn),
> .anticon`),{display:"inline-block",width:"100%",color:I.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}}),".anticon",{fontSize:I.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)}}))};function Fe(re){return(0,$e.Xj)("ProCardActions",function(I){var ie=(0,K.Z)((0,K.Z)({},I),{},{componentCls:".".concat(re),cardActionIconSize:16});return[Xn(ie)]})}var o=u(85893),zn=function(I){var ie=I.actions,be=I.prefixCls,fn=Fe(be),sn=fn.wrapSSR,Nn=fn.hashId;return Array.isArray(ie)&&ie!==null&&ie!==void 0&&ie.length?sn((0,o.jsx)("ul",{className:un()("".concat(be,"-actions"),Nn),children:ie.map(function(Dn,tn){return(0,o.jsx)("li",{style:{width:"".concat(100/ie.length,"%"),padding:0,margin:0},className:un()("".concat(be,"-actions-item"),Nn),children:Dn},"action-".concat(tn))})})):sn((0,o.jsx)("ul",{className:un()("".concat(be,"-actions"),Nn),children:ie}))},Xe=zn,Fn=u(71230),ge=u(15746),Me=u(54548),en=new Me.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Re=function(I){return(0,M.Z)({},I.componentCls,(0,M.Z)((0,M.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(I.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(I.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:I.borderRadius,animationName:en,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function qe(re){return(0,$e.Xj)("ProCardLoading",function(I){var ie=(0,K.Z)((0,K.Z)({},I),{},{componentCls:".".concat(re)});return[Re(ie)]})}var In=function(I){var ie=I.style,be=I.prefix,fn=qe(be||"ant-pro-card"),sn=fn.wrapSSR;return sn((0,o.jsxs)("div",{className:"".concat(be,"-loading-content"),style:ie,children:[(0,o.jsx)(Fn.Z,{gutter:8,children:(0,o.jsx)(ge.Z,{span:22,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})})}),(0,o.jsxs)(Fn.Z,{gutter:8,children:[(0,o.jsx)(ge.Z,{span:8,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})}),(0,o.jsx)(ge.Z,{span:15,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})})]}),(0,o.jsxs)(Fn.Z,{gutter:8,children:[(0,o.jsx)(ge.Z,{span:6,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})}),(0,o.jsx)(ge.Z,{span:18,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})})]}),(0,o.jsxs)(Fn.Z,{gutter:8,children:[(0,o.jsx)(ge.Z,{span:13,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})}),(0,o.jsx)(ge.Z,{span:9,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})})]}),(0,o.jsxs)(Fn.Z,{gutter:8,children:[(0,o.jsx)(ge.Z,{span:4,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})}),(0,o.jsx)(ge.Z,{span:3,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})}),(0,o.jsx)(ge.Z,{span:16,children:(0,o.jsx)("div",{className:"".concat(be,"-loading-block")})})]})]}))},Ge=In,ln=u(13286),Pn=function(I){return{backgroundColor:I.controlItemBgActive,borderColor:I.controlOutline}},Zn=function(I){var ie=I.componentCls;return(0,M.Z)((0,M.Z)((0,M.Z)({},ie,(0,K.Z)((0,K.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:I.colorBgContainer,borderRadius:I.borderRadius,transition:"all 0.3"},$e.Wf===null||$e.Wf===void 0?void 0:(0,$e.Wf)(I)),{},(0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)},"&-hoverable":(0,M.Z)({cursor:"pointer",tran
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,dn=function(pe){var ye=(0,O.useContext)(nn),fe=ye.csp,je=ye.prefixCls,Tn=qn;je&&(Tn=Tn.replace(/anticon/g,je)),(0,O.useEffect)(function(){var cn=pe.current,Ie=(0,ie.A)(cn);(0,I.hq)(Tn,"@ant-design-icons",{prepend:!0,csp:fe,attachTo:Ie})},[])},$n=["icon","className","onClick","style","primaryColor","secondaryColor"],Bn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ue(X){var pe=X.primaryColor,ye=X.secondaryColor;Bn.primaryColor=pe,Bn.secondaryColor=ye||rn(pe),Bn.calculated=!!ye}function _n(){return(0,Se.Z)({},Bn)}var An=function(pe){var ye=pe.icon,fe=pe.className,je=pe.onClick,Tn=pe.style,cn=pe.primaryColor,Ie=pe.secondaryColor,an=(0,de.Z)(pe,$n),Cn=O.useRef(),Ye=Bn;if(cn&&(Ye={primaryColor:cn,secondaryColor:Ie||rn(cn)}),dn(Cn),sn(Nn(ye),"icon should be icon definiton, but got ".concat(ye)),!Nn(ye))return null;var De=ye;return De&&typeof De.icon=="function"&&(De=(0,Se.Z)((0,Se.Z)({},De),{},{icon:De.icon(Ye.primaryColor,Ye.secondaryColor)})),tn(De.icon,"svg-".concat(De.name),(0,Se.Z)((0,Se.Z)({className:fe,onClick:je,style:Tn,"data-icon":De.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},an),{},{ref:Cn}))};An.displayName="IconReact",An.getTwoToneColors=_n,An.setTwoToneColors=Ue;var it=An;function Jn(X){var pe=gn(X),ye=(0,M.Z)(pe,2),fe=ye[0],je=ye[1];return it.setTwoToneColors({primaryColor:fe,secondaryColor:je})}function st(){var X=it.getTwoToneColors();return X.calculated?[X.primaryColor,X.secondaryColor]:X.primaryColor}var ct=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Jn(Pn.primary);var Ln=O.forwardRef(function(X,pe){var ye=X.className,fe=X.icon,je=X.spin,Tn=X.rotate,cn=X.tabIndex,Ie=X.onClick,an=X.twoToneColor,Cn=(0,de.Z)(X,ct),Ye=O.useContext(nn),De=Ye.prefixCls,Rn=De===void 0?"anticon":De,et=Ye.rootClassName,En=i()(et,Rn,(0,Ze.Z)((0,Ze.Z)({},"".concat(Rn,"-").concat(fe.name),!!fe.name),"".concat(Rn,"-spin"),!!je||fe.name==="loading"),ye),rt=cn;rt===void 0&&Ie&&(rt=-1);var ft=Tn?{msTransform:"rotate(".concat(Tn,"deg)"),transform:"rotate(".concat(Tn,"deg)")}:void 0,Yn=gn(an),Vn=(0,M.Z)(Yn,2),gt=Vn[0],Mt=Vn[1];return O.createElement("span",(0,K.Z)({role:"img","aria-label":fe.name},Cn,{ref:pe,tabIndex:rt,onClick:Ie,className:En}),O.createElement(it,{icon:fe,primaryColor:gt,secondaryColor:Mt,style:ft}))});Ln.displayName="AntdIcon",Ln.getTwoToneColor=st,Ln.setTwoToneColor=Jn;var jn=Ln},57470:function(Qn,ke,u){"use strict";u.d(ke,{t:function(){return kn}});var K=u(91),M=u(97685),Ze=u(1413),de=u(10915),O=u(12044),ze=u(21770),i=u(15746),xe=u(28459),pn=u(71230),hn=u(8232),yn=u(93967),v=u.n(yn),Ne=u(9220),ue=u(67294),on=u(78733),_e=u(87462),mn=u(66023),un=u(46976),xn=function(te,nn){return ue.createElement(un.Z,(0,_e.Z)({},te,{ref:nn,icon:mn.Z}))},Te=ue.forwardRef(xn),$e=Te,Xn=u(28700),Fe=u(42075),o=u(85893),zn=function(te,nn,Se,re){return te?(0,o.jsxs)(o.Fragment,{children:[Se.getMessage("tableForm.collapsed","\u5C55\u5F00"),re&&"(".concat(re,")"),(0,o.jsx)($e,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(te?0:.5,"turn)")}})]}):(0,o.jsxs)(o.Fragment,{children:[Se.getMessage("tableForm.expand","\u6536\u8D77"),(0,o.jsx)($e,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(te?0:.5,"turn)")}})]})},Xe=function(te){var nn=te.setCollapsed,Se=te.collapsed,re=Se===void 0?!1:Se,I=te.submitter,ie=te.style,be=te.hiddenNum,fn=(0,ue.useContext)(xe.ZP.ConfigContext),sn=fn.getPrefixCls,Nn=(0,de.YB)(),Dn=(0,ue.useContext)(de.L_),tn=Dn.hashId,rn=(0,Xn.v)(te.collapseRender)||zn;return(0,o.jsxs)(Fe.Z,{style:ie,size:16,children:[I,te.collapseRender!==!1&&(0,o.jsx)("a",{className:"".concat(sn("pro-query-filter-collapse-button")," ").concat(tn).trim(),onClick:function(){return nn(!re)},children:rn==null?void 0:rn(re,te,Nn,be)})]})},Fn=Xe,ge=u(4942),Me=u(98082),en=function(te){return(0,ge.Z)({},te.componentCls,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({"&&":{padding:24}},"".concat(te.antCls,"-form-item"),{marginBlock:0}),"".concat(te.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(x.add(F),S(Array.from(x)),(T==null?void 0:T.newRecordType)==="dataSource"||n.tableName){var W,J={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},z),{},{map_row_parentKey:T!=null&&T.parentKey?(W=be(T==null?void 0:T.parentKey))===null||W===void 0?void 0:W.toString():void 0}),key:F,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(fn(J,(T==null?void 0:T.position)==="top"?"top":"update"))}else a({defaultValue:z,options:(0,i.Z)((0,i.Z)({},T),{},{recordKey:F})});return!0}),R=(0,Te.YB)(),$=(n==null?void 0:n.saveText)||R.getMessage("editableTable.action.save","\u4FDD\u5B58"),q=(n==null?void 0:n.deleteText)||R.getMessage("editableTable.action.delete","\u5220\u9664"),L=(n==null?void 0:n.cancelText)||R.getMessage("editableTable.action.cancel","\u53D6\u6D88"),C=(0,He.J)(function(){var z=(0,M.Z)((0,K.Z)().mark(function T(F,W,J,ne){var U,k,D,H,oe,ve,Oe;return(0,K.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,n==null||(U=n.onSave)===null||U===void 0?void 0:U.call(n,F,W,J,ne);case 2:return H=Ce.sent,Ce.next=5,Y(F);case 5:if(oe=ne||f.current||{},ve=oe.options,!(!(ve!=null&&ve.parentKey)&&(ve==null?void 0:ve.recordKey)===F)){Ce.next=9;break}return(ve==null?void 0:ve.position)==="top"?n.setDataSource([W].concat((0,ze.Z)(n.dataSource))):n.setDataSource([].concat((0,ze.Z)(n.dataSource),[W])),Ce.abrupt("return",H);case 9:return Oe={data:n.dataSource,getRowKey:n.getRowKey,row:ve?(0,i.Z)((0,i.Z)({},W),{},{map_row_parentKey:(k=be((D=ve==null?void 0:ve.parentKey)!==null&&D!==void 0?D:""))===null||k===void 0?void 0:k.toString()}):W,key:F,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(fn(Oe,(ve==null?void 0:ve.position)==="top"?"top":"update")),Ce.next=13,Y(F);case 13:return Ce.abrupt("return",H);case 14:case"end":return Ce.stop()}},T)}));return function(T,F,W,J){return z.apply(this,arguments)}}()),P=(0,He.J)(function(){var z=(0,M.Z)((0,K.Z)().mark(function T(F,W){var J,ne,U;return(0,K.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return ne={data:n.dataSource,getRowKey:n.getRowKey,row:W,key:F,childrenColumnName:n.childrenColumnName||"children"},D.next=3,n==null||(J=n.onDelete)===null||J===void 0?void 0:J.call(n,F,W);case 3:return U=D.sent,D.next=6,Y(F,!1);case 6:return n.setDataSource(fn(ne,"delete")),D.abrupt("return",U);case 8:case"end":return D.stop()}},T)}));return function(T,F){return z.apply(this,arguments)}}()),A=(0,He.J)(function(){var z=(0,M.Z)((0,K.Z)().mark(function T(F,W,J,ne){var U,k;return(0,K.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,n==null||(U=n.onCancel)===null||U===void 0?void 0:U.call(n,F,W,J,ne);case 2:return k=H.sent,H.abrupt("return",k);case 4:case"end":return H.stop()}},T)}));return function(T,F,W,J){return z.apply(this,arguments)}}()),ee=function(T){var F=n.getRowKey(T,T.index),W={saveText:$,cancelText:L,deleteText:q,addEditRecord:E,recordKey:F,cancelEditable:Y,index:T.index,tableName:n.tableName,newLineConfig:t,onCancel:A,onDelete:P,onSave:C,editableKeys:y,setEditableRowKeys:S,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(R.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},J=tn(T,W);return n.tableName?V.current.set(s.current.get(be(F))||be(F),J.saveRef):V.current.set(be(F),J.saveRef),n.actionRender?n.actionRender(T,W,{save:J.save,delete:J.delete,cancel:J.cancel}):[J.save,J.delete,J.cancel]};return{editableKeys:y,setEditableRowKeys:S,isEditable:B,actionRender:ee,startEditable:j,cancelEditable:Y,addEditRecord:E,saveEditable:N,newLineRecord:t,preEditableKeys:b,onValuesChange:w,getRealIndex:n.getRealIndex}}var gn=u(51812),Mn=u(53914),qn=u(78164),dn=u(72051),$n=u(28459),Bn=u(93967),Ue=u.n(Bn),_n=u(72378),An=u.n(_n),it=function(e){return e!=null};function Jn(n,e,r){var t,a;if(n===!1)return!1;var c=e.total,l=e.current,s=e.pageSize,f=e.setPageInfo,d=(0,Ze.Z)(n)==="
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,Zl=function(e){var r=(0,o.useContext)(da),t=r.csp,a=r.prefixCls,c=xl;a&&(c=c.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,s=(0,Cl.A)(l);(0,yl.hq)(c,"@ant-design-icons",{prepend:!0,csp:t,attachTo:s})},[])},Rl=["icon","className","onClick","style","primaryColor","secondaryColor"],Wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Il(n){var e=n.primaryColor,r=n.secondaryColor;Wt.primaryColor=e,Wt.secondaryColor=r||va(e),Wt.calculated=!!r}function Tl(){return(0,i.Z)({},Wt)}var ar=function(e){var r=e.icon,t=e.className,a=e.onClick,c=e.style,l=e.primaryColor,s=e.secondaryColor,f=(0,xe.Z)(e,Rl),d=o.useRef(),m=Wt;if(l&&(m={primaryColor:l,secondaryColor:s||va(l)}),Zl(d),Sl(ua(r),"icon should be icon definiton, but got ".concat(r)),!ua(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=(0,i.Z)((0,i.Z)({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),wr(p.icon,"svg-".concat(p.name),(0,i.Z)((0,i.Z)({className:t,onClick:a,style:c,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:d}))};ar.displayName="IconReact",ar.getTwoToneColors=Tl,ar.setTwoToneColors=Il;var Pr=ar;function ga(n){var e=ma(n),r=(0,de.Z)(e,2),t=r[0],a=r[1];return Pr.setTwoToneColors({primaryColor:t,secondaryColor:a})}function El(){var n=Pr.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var wl=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ga(pl.primary);var or=o.forwardRef(function(n,e){var r=n.className,t=n.icon,a=n.spin,c=n.rotate,l=n.tabIndex,s=n.onClick,f=n.twoToneColor,d=(0,xe.Z)(n,wl),m=o.useContext(da),p=m.prefixCls,h=p===void 0?"anticon":p,Z=m.rootClassName,g=Ue()(Z,h,(0,O.Z)((0,O.Z)({},"".concat(h,"-").concat(t.name),!!t.name),"".concat(h,"-spin"),!!a||t.name==="loading"),r),y=l;y===void 0&&s&&(y=-1);var S=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,x=ma(f),b=(0,de.Z)(x,2),B=b[0],j=b[1];return o.createElement("span",(0,Fe.Z)({role:"img","aria-label":t.name},d,{ref:e,tabIndex:y,onClick:s,className:g}),o.createElement(Pr,{icon:t,primaryColor:B,secondaryColor:j,style:S}))});or.displayName="AntdIcon",or.getTwoToneColor=El,or.setTwoToneColor=ga;var Ct=or,Pl=function(e,r){return o.createElement(Ct,(0,Fe.Z)({},e,{ref:r,icon:dl.Z}))},$l=o.forwardRef(Pl),jl=$l,Ol={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Fl=Ol,Nl=function(e,r){return o.createElement(Ct,(0,Fe.Z)({},e,{ref:r,icon:Fl}))},Ml=o.forwardRef(Nl),Bl=Ml,Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},zl=Ll,Dl=function(e,r){return o.createElement(Ct,(0,Fe.Z)({},e,{ref:r,icon:zl}))},Al=o.forwardRef(Dl),Kl=Al,Wl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Hl=Wl,Vl=function(e,r){return o.createElement(Ct,(0,Fe.Z)({},e,{ref:r,icon:Hl}))},Ul=o.forwardRef(Vl),Xl=Ul,Gl
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=mi(n[`fontSizeHeading${t}`],n[`lineHeightHeading${t}`],n.colorTextHeading,n)}),r},pi=n=>{const{componentCls:e}=n;return{"a&, a":Object.assign(Object.assign({},(0,Sa.N)(n)),{textDecoration:n.linkDecoration,"&:active, &:hover":{textDecoration:n.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:n.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},hi=n=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:vi.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:n.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),yi=n=>{const{componentCls:e,paddingSM:r}=n,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:n.calc(n.paddingSM).mul(-1).equal(),marginTop:n.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Be.bf)(t)})`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:n.calc(n.marginXS).add(2).equal(),insetBlockEnd:n.marginXS,color:n.colorTextDescription,fontWeight:"normal",fontSize:n.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Ci=n=>({[`${n.componentCls}-copy-success`]:{[`
&,
&:hover,
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),bi=()=>({[`
a&-ellipsis,
span&-ellipsis
`]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Si=n=>{const{componentCls:e,titleMarginTop:r}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorText,wordBreak:"break-word",lineHeight:n.lineHeight,[`&${e}-secondary`]:{color:n.colorTextDescription},[`&${e}-success`]:{color:n.colorSuccess},[`&${e}-warning`]:{color:n.colorWarning},[`&${e}-danger`]:{color:n.colorError,"a&:active, a&:focus":{color:n.colorErrorActive},"a&:hover":{color:n.colorErrorHover}},[`&${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
div&,
p
`]:{marginBottom:"1em"}},gi(n)),{[`
& + h1${e},
& + h2${e},
& + h3${e},
& + h4${e},
& + h5${e}
`]:{marginTop:r},[`
div,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5`]:{[`
+ h1,
+ h2,
+ h3,
+ h4,
+ h5
`]:{marginTop:r}}}),hi(n)),pi(n)),{[`
${e}-expand,
${e}-collapse,
${e}-edit,
${e}-copy
`]:Object.assign(Object.assign({},(0,Sa.N)(n)),{marginInlineStart:n.marginXXS})}),yi(n)),Ci(n)),bi()),{"&-rtl":{direction:"rtl"}})}},xi=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var xa=(0,Gr.I$)("Typography",n=>[Si(n)],xi),Zi=n=>{const{prefixCls:e,"aria-label":r,className:t,style:a,direction:c,maxLength:l,autoSize:s=!0,value:f,onSave:d,onCancel:m,onEnd:p,component:h,enterIcon:Z=o.createElement(di,null)}=n,g=o.useRef(null),y=o.useRef(!1),S=o.useRef(),[x,b]=o.useState(f);o.useEffect(()=>{b(f)},[f]),o.useEffect(()=>{if(g.current&&g.current.resizableTextArea){const{textArea:C}=g.current.resizableTextArea;C.focus();const{length:P}=C.value;C.setSelectionRange(P,P)}},[]);const B=C=>{let{target:P}=C;b(P.value.replace(/[\n\r]/g,""))},j=()=>{y.current=!0},Y=()=>{y.current=!1},G=C=>{let{keyCode:P}=C;y.current||(S.current=P)},w=()=>{d(x.trim())},V=C=>{let{keyCode:P,ctrlKey:A,altKey:ee,metaKey:z,shiftKey:T}=C;S.current===P&&!y.current&&!A&&!ee&&!z&&!T&&(P===wt.Z.ENTER?(w(),p==null||p()):P===wt.Z.ESC&&m())},N=()=>{w()},E=h?`${e}-${h}`:"",[R,$,q]=xa(e),L=Ue()(e,`${e}-edit-content`,{[`${e}-rtl`]:c==="rtl"},t,E,$,q);return R(o.createElement("div",{className:L,style:a},o.createElement(fi.Z,{ref:g,maxLength:l,value:x,onChange:B,onKeyDown:G,onKeyUp:V,onCompositionStart:j,onCompositionEnd:Y,onBlur:N,"aria-label":r,rows:1,autoSize:s}),Z!==null?(0,ui.Tm)(Z,{className:`${e}-edit-content-confirm`}):null))},Ri=u(20640),Ii=u.n(Ri),Ti=u(56790),Ei=function(n,e,r,t){function a(c){return c instanceof r?c:new r(function(l){l(c)})}return new(r||(r=Promise))(function(c,l){function s(m){try{d(t.next(m))}catch(p){l(p)}}function f(m){try{d(t.throw(m))}catch(p){l(p)}}function d(m){m.done?c(m.value):a(m.value).then(s,f)}d((t=t.apply(n,e||[])).next())})},wi=n=>{let{copyConfig:e,children:r}=n;const[t,a]=o.useState(!1),[c,l]=o.useState(!1),s=o.useRef(null),f=()=>{s.current&&clearTimeout(s.current)},d={};e.format&&(d.format=e.format),o.useEffect(()=>f,[]);const m=(0,Ti.zX)(p=>Ei(void 0,void 0,void 0,function*(){var h;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const Z=typeof e.text=="function"?yield e.text():e.text;Ii()(Z||String(r)||"",d),l(!1),a(!0),f(),s.current=setTimeout(()=>{a(!1)},3e3),(h=e.onCopy)===null||h===void 0||h.call(e,p)}catch(Z){throw l(!1),Z}}));return{copied:t,copyLoading:c,onClick:m}};function jr(n,e){return o.useMemo(()=>{const r=!!n;return[r,Object.assign(Object.assign({},e),r&&typeof n=="object"?n:null)]},[n])}var Pi=(n,e)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?n():r.current=!0},e)},$i=n=>{const e=(0,o.useRef)();return(0,o.useEffect)(()=>{e.current=n}),e.current},ji=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r},Za=o.forwardRef((n,e)=>{const{prefixCls:r,component:t="article",className:a,rootClassName:c,setContentRef:l,children:s,direction:f,style:d}=n,m=ji(n,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:h,typography:Z}=o.useContext(xr.E_),g=f!=null?f:h;let y=e;l&&(y=(0,ya.sQ)(e,l));const S=p("typography",r),[x,b,B]=xa(S),j=Ue()(S,Z==null?void 0:Z.className,{[`${S}-rtl`]:g==="rtl"},a,c,b,B),Y=Object.assign(Object.assign({},Z==null?void 0:Z.style),d);return x(o.createElement(t,Object.assign({className:j,style:Y,ref:y},m),s))}),Oi=u(48820),Fi=function(e,r){return o.createElement($r.Z,(0,Fe.Z)({},e,{ref:r,icon:Oi.Z}))},Ni=o.forwardRef(Fi),Mi=Ni,Bi=u(19267);function Ra(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function lr(n,e,r){return n===!0||n===void 0?e:n||r&&e}var Li=n=>{const{prefixCls:e,copied:r,locale:t,iconOnly:a,tooltips:c,icon:l,loading:s,tabIndex:f,onCopy:d}=n,m=Ra(c),p=Ra(l),{copied:h,copy:Z}=t!=null?t:{},g=r?lr(m[1],h):lr(m[0],Z),S=typeof g=="string"?g:r?h:Z;return o.createElement(dt.Z,{key:"copy",title:g},o.create