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.

5593.ed63530c.async.js 22KB

1234567891011121314151617
  1. (self.webpackChunk=self.webpackChunk||[]).push([[5593],{86548:function(re,j,s){"use strict";s.d(j,{Z:function(){return w}});var o=s(87462),M=s(67294),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},k=V,B=s(84089),y=function(ne,X){return M.createElement(B.Z,(0,o.Z)({},ne,{ref:X,icon:k}))},f=M.forwardRef(y),w=f},25593:function(re,j,s){"use strict";s.d(j,{Z:function(){return Zt}});var o=s(67294),M=s(86548),V=s(93967),k=s.n(V),B=s(48555),y=s(50344),f=s(8410),w=s(21770),z=s(98423),ne=s(42550),X=s(79370),G=s(53124),C=s(10110),oe=s(83062),ve=s(87462),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},se=Z,Ue=s(84089),Ke=function(n,r){return o.createElement(Ue.Z,(0,ve.Z)({},n,{ref:r,icon:se}))},Fe=o.forwardRef(Ke),Ve=Fe,Le=s(15105),Xe=s(96159),Ge=s(22913),Pe=s(14747),Je=s(83559),Qe=s(84898),Ye=s(11568);const qe=(e,n,r,t)=>{const{titleMarginBottom:l,fontWeightStrong:a}=t;return{marginBottom:l,color:r,fontWeight:a,fontSize:e,lineHeight:n}},_e=e=>{const n=[1,2,3,4,5],r={};return n.forEach(t=>{r[`
  2. h${t}&,
  3. div&-h${t},
  4. div&-h${t} > textarea,
  5. h${t}
  6. `]=qe(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},et=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,Pe.Nd)(e)),{userSelect:"text",[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},tt=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Qe.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),nt=e=>{const{componentCls:n,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Ye.bf)(t)})`},[`${n}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ot=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rt=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),lt=e=>{const{componentCls:n,titleMarginTop:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccess},[`&${n}-warning`]:{color:e.colorWarning},[`&${n}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},_e(e)),{[`
  7. & + h1${n},
  8. & + h2${n},
  9. & + h3${n},
  10. & + h4${n},
  11. & + h5${n}
  12. `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),tt(e)),et(e)),{[`
  13. ${n}-expand,
  14. ${n}-collapse,
  15. ${n}-edit,
  16. ${n}-copy
  17. `]:Object.assign(Object.assign({},(0,Pe.Nd)(e)),{marginInlineStart:e.marginXXS})}),nt(e)),ot(e)),rt()),{"&-rtl":{direction:"rtl"}})}},st=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var $e=(0,Je.I$)("Typography",e=>[lt(e)],st),it=e=>{const{prefixCls:n,"aria-label":r,className:t,style:l,direction:a,maxLength:v,autoSize:O=!0,value:d,onSave:u,onCancel:m,onEnd:g,component:p,enterIcon:E=o.createElement(Ve,null)}=e,D=o.useRef(null),R=o.useRef(!1),I=o.useRef(null),[b,H]=o.useState(d);o.useEffect(()=>{H(d)},[d]),o.useEffect(()=>{var h;if(!((h=D.current)===null||h===void 0)&&h.resizableTextArea){const{textArea:x}=D.current.resizableTextArea;x.focus();const{length:T}=x.value;x.setSelectionRange(T,T)}},[]);const _=h=>{let{target:x}=h;H(x.value.replace(/[\n\r]/g,""))},L=()=>{R.current=!0},P=()=>{R.current=!1},W=h=>{let{keyCode:x}=h;R.current||(I.current=x)},S=()=>{u(b.trim())},ee=h=>{let{keyCode:x,ctrlKey:T,altKey:Y,metaKey:A,shiftKey:U}=h;I.current!==x||R.current||T||Y||A||U||(x===Le.Z.ENTER?(S(),g==null||g()):x===Le.Z.ESC&&m())},ae=()=>{S()},[le,J,ce]=$e(n),Q=k()(n,`${n}-edit-content`,{[`${n}-rtl`]:a==="rtl",[`${n}-${p}`]:!!p},t,J,ce);return le(o.createElement("div",{className:Q,style:l},o.createElement(Ge.Z,{ref:D,maxLength:v,value:b,onChange:_,onKeyDown:W,onKeyUp:ee,onCompositionStart:L,onCompositionEnd:P,onBlur:ae,"aria-label":r,rows:1,autoSize:O}),E!==null?(0,Xe.Tm)(E,{className:`${n}-edit-content-confirm`}):null))},at=s(20640),ct=s.n(at),dt=s(66680);function ut(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var pt=function(e,n,r,t){function l(a){return a instanceof r?a:new r(function(v){v(a)})}return new(r||(r=Promise))(function(a,v){function O(m){try{u(t.next(m))}catch(g){v(g)}}function d(m){try{u(t.throw(m))}catch(g){v(g)}}function u(m){m.done?a(m.value):l(m.value).then(O,d)}u((t=t.apply(e,n||[])).next())})},ft=e=>{let{copyConfig:n,children:r}=e;const[t,l]=o.useState(!1),[a,v]=o.useState(!1),O=o.useRef(null),d=()=>{O.current&&clearTimeout(O.current)},u={};n.format&&(u.format=n.format),o.useEffect(()=>d,[]);const m=(0,dt.Z)(g=>pt(void 0,void 0,void 0,function*(){var p;g==null||g.preventDefault(),g==null||g.stopPropagation(),v(!0);try{const E=typeof n.text=="function"?yield n.text():n.text;ct()(E||ut(r,!0).join("")||"",u),v(!1),l(!0),d(),O.current=setTimeout(()=>{l(!1)},3e3),(p=n.onCopy)===null||p===void 0||p.call(n,g)}catch(E){throw v(!1),E}}));return{copied:t,copyLoading:a,onClick:m}};function be(e,n){return o.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},n),r&&typeof e=="object"?e:null)]},[e])}var mt=e=>{const n=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{n.current=e}),n.current},gt=(e,n,r)=>(0,o.useMemo)(()=>e===!0?{title:n!=null?n:r}:(0,o.isValidElement)(e)?{title:e}:typeof e=="object"?Object.assign({title:n!=null?n:r},e):{title:e},[e,n,r]),yt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r},Me=o.forwardRef((e,n)=>{const{prefixCls:r,component:t="article",className:l,rootClassName:a,setContentRef:v,children:O,direction:d,style:u}=e,m=yt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,typography:E}=o.useContext(G.E_),D=d!=null?d:p,R=v?(0,ne.sQ)(n,v):n,I=g("typography",r),[b,H,_]=$e(I),L=k()(I,E==null?void 0:E.className,{[`${I}-rtl`]:D==="rtl"},l,a,H,_),P=Object.assign(Object.assign({},E==null?void 0:E.style),u);return b(o.createElement(t,Object.assign({className:L,style:P,ref:R},m),O))}),vt=s(63606),bt=s(57132),Et=s(50888);function Ae(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ee(e,n,r){return e===!0||e===void 0?n:e||r&&n}function ht(e){const n=document.createElement("em");e.appendChild(n);const r=e.getBoundingClientRect(),t=n.getBoundingClientRect();return e.removeChild(n),r.left>t.left||t.right>r.right||r.top>t.top||t.bottom>r.bottom}const he=e=>["string","number"].includes(typeof e);var xt=e=>{let{prefixCls:n,copied:r,locale:t,iconOnly:l,tooltips:a,icon:v,tabIndex:O,onCopy:d,loading:u}=e;const m=Ae(a),g=Ae(v),{copied:p,copy:E}=t!=null?t:{},D=r?p:E,R=Ee(m[r?1:0],D),I=typeof R=="string"?R:D;return o.createElement(oe.Z,{title:R},o.createElement("button",{type:"button",className:k()(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:l}),onClick:d,"aria-label":I,tabIndex:O},r?Ee(g[1],o.createElement(vt.Z,null),!0):Ee(g[0],u?o.createElement(Et.Z,null):o.createElement(bt.Z,null),!0)))},St=s(74902);const ue=o.forwardRef((e,n)=>{let{style:r,children:t}=e;const l=o.useRef(null);return o.useImperativeHandle(n,()=>({isExceed:()=>{const a=l.current;return a.scrollHeight>a.clientHeight},getHeight:()=>l.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:l,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},t)}),Ct=e=>e.reduce((n,r)=>n+(he(r)?String(r).length:1),0);function De(e,n){let r=0;const t=[];for(let l=0;l<e.length;l+=1){if(r===n)return t;const a=e[l],O=he(a)?String(a).length:1,d=r+O;if(d>n){const u=n-r;return t.push(String(a).slice(0,u)),t}t.push(a),r=d}return e}const xe=0,Se=1,Ce=2,Oe=3,Ne=4,pe={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ot(e){const{enableMeasure:n,width:r,text:t,children:l,rows:a,expanded:v,miscDeps:O,onEllipsis:d}=e,u=o.useMemo(()=>(0,y.Z)(t),[t]),m=o.useMemo(()=>Ct(u),[t]),g=o.useMemo(()=>l(u,!1),[t]),[p,E]=o.useState(null),D=o.useRef(null),R=o.useRef(null),I=o.useRef(null),b=o.useRef(null),H=o.useRef(null),[_,L]=o.useState(!1),[P,W]=o.useState(xe),[S,ee]=o.useState(0),[ae,le]=o.useState(null);(0,f.Z)(()=>{W(n&&r&&m?Se:xe)},[r,t,a,n,u]),(0,f.Z)(()=>{var h,x,T,Y;if(P===Se){W(Ce);const A=R.current&&getComputedStyle(R.current).whiteSpace;le(A)}else if(P===Ce){const A=!!(!((h=I.current)===null||h===void 0)&&h.isExceed());W(A?Oe:Ne),E(A?[0,m]:null),L(A);const U=((x=I.current)===null||x===void 0?void 0:x.getHeight())||0,we=a===1?0:((T=b.current)===null||T===void 0?void 0:T.getHeight())||0,me=((Y=H.current)===null||Y===void 0?void 0:Y.getHeight())||0,Te=Math.max(U,we+me);ee(Te+1),d(A)}},[P]);const J=p?Math.ceil((p[0]+p[1])/2):0;(0,f.Z)(()=>{var h;const[x,T]=p||[0,0];if(x!==T){const A=(((h=D.current)===null||h===void 0?void 0:h.getHeight())||0)>S;let U=J;T-x===1&&(U=A?x:T),E(A?[x,U]:[U,T])}},[p,J]);const ce=o.useMemo(()=>{if(!n)return l(u,!1);if(P!==Oe||!p||p[0]!==p[1]){const h=l(u,!1);return[Ne,xe].includes(P)?h:o.createElement("span",{style:Object.assign(Object.assign({},pe),{WebkitLineClamp:a})},h)}return l(v?u:De(u,p[0]),_)},[v,P,p,u].concat((0,St.Z)(O))),Q={width:r,margin:0,padding:0,whiteSpace:ae==="nowrap"?"normal":"inherit"};return o.createElement(o.Fragment,null,ce,P===Ce&&o.createElement(o.Fragment,null,o.createElement(ue,{style:Object.assign(Object.assign(Object.assign({},Q),pe),{WebkitLineClamp:a}),ref:I},g),o.createElement(ue,{style:Object.assign(Object.assign(Object.assign({},Q),pe),{WebkitLineClamp:a-1}),ref:b},g),o.createElement(ue,{style:Object.assign(Object.assign(Object.assign({},Q),pe),{WebkitLineClamp:1}),ref:H},l([],!0))),P===Oe&&p&&p[0]!==p[1]&&o.createElement(ue,{style:Object.assign(Object.assign({},Q),{top:400}),ref:D},l(De(u,J),!0)),P===Se&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:R}))}var wt=e=>{let{enableEllipsis:n,isEllipsis:r,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:o.createElement(oe.Z,Object.assign({open:r?void 0:!1},l),t)},Tt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};function Rt(e,n){let{mark:r,code:t,underline:l,delete:a,strong:v,keyboard:O,italic:d}=e,u=n;function m(g,p){p&&(u=o.createElement(g,{},u))}return m("strong",v),m("u",l),m("del",a),m("code",t),m("mark",r),m("kbd",O),m("i",d),u}const jt="...";var fe=o.forwardRef((e,n)=>{var r;const{prefixCls:t,className:l,style:a,type:v,disabled:O,children:d,ellipsis:u,editable:m,copyable:g,component:p,title:E}=e,D=Tt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:R,direction:I}=o.useContext(G.E_),[b]=(0,C.Z)("Text"),H=o.useRef(null),_=o.useRef(null),L=R("typography",t),P=(0,z.Z)(D,["mark","code","delete","underline","strong","keyboard","italic"]),[W,S]=be(m),[ee,ae]=(0,w.Z)(!1,{value:S.editing}),{triggerType:le=["icon"]}=S,J=i=>{var c;i&&((c=S.onStart)===null||c===void 0||c.call(S)),ae(i)},ce=mt(ee);(0,f.Z)(()=>{var i;!ee&&ce&&((i=_.current)===null||i===void 0||i.focus())},[ee]);const Q=i=>{i==null||i.preventDefault(),J(!0)},h=i=>{var c;(c=S.onChange)===null||c===void 0||c.call(S,i),J(!1)},x=()=>{var i;(i=S.onCancel)===null||i===void 0||i.call(S),J(!1)},[T,Y]=be(g),{copied:A,copyLoading:U,onClick:we}=ft({copyConfig:Y,children:d}),[me,Te]=o.useState(!1),[Be,Ht]=o.useState(!1),[Ze,Wt]=o.useState(!1),[He,kt]=o.useState(!1),[zt,Ut]=o.useState(!0),[te,$]=be(u,{expandable:!1,symbol:i=>i?b==null?void 0:b.collapse:b==null?void 0:b.expand}),[q,Kt]=(0,w.Z)($.defaultExpanded||!1,{value:$.expanded}),N=te&&(!q||$.expandable==="collapsible"),{rows:de=1}=$,ge=o.useMemo(()=>N&&($.suffix!==void 0||$.onEllipsis||$.expandable||W||T),[N,$,W,T]);(0,f.Z)(()=>{te&&!ge&&(Te((0,X.G)("webkitLineClamp")),Ht((0,X.G)("textOverflow")))},[ge,te]);const[K,Ft]=o.useState(N),We=o.useMemo(()=>ge?!1:de===1?Be:me,[ge,Be,me]);(0,f.Z)(()=>{Ft(We&&N)},[We,N]);const ke=N&&(K?He:Ze),Vt=N&&de===1&&K,Re=N&&de>1&&K,Xt=(i,c)=>{var F;Kt(c.expanded),(F=$.onExpand)===null||F===void 0||F.call($,i,c)},[ze,Gt]=o.useState(0),Jt=i=>{let{offsetWidth:c}=i;Gt(c)},Qt=i=>{var c;Wt(i),Ze!==i&&((c=$.onEllipsis)===null||c===void 0||c.call($,i))};o.useEffect(()=>{const i=H.current;if(te&&K&&i){const c=ht(i);He!==c&&kt(c)}},[te,K,d,Re,zt,ze]),o.useEffect(()=>{const i=H.current;if(typeof IntersectionObserver=="undefined"||!i||!K||!N)return;const c=new IntersectionObserver(()=>{Ut(!!i.offsetParent)});return c.observe(i),()=>{c.disconnect()}},[K,N]);const je=gt($.tooltip,S.text,d),ye=o.useMemo(()=>{if(!(!te||K))return[S.text,d,E,je.title].find(he)},[te,K,E,je.title,ke]);if(ee)return o.createElement(it,{value:(r=S.text)!==null&&r!==void 0?r:typeof d=="string"?d:"",onSave:h,onCancel:x,onEnd:S.onEnd,prefixCls:L,className:l,style:a,direction:I,component:p,maxLength:S.maxLength,autoSize:S.autoSize,enterIcon:S.enterIcon});const Yt=()=>{const{expandable:i,symbol:c}=$;return i?o.createElement("button",{type:"button",key:"expand",className:`${L}-${q?"collapse":"expand"}`,onClick:F=>Xt(F,{expanded:!q}),"aria-label":q?b.collapse:b==null?void 0:b.expand},typeof c=="function"?c(q):c):null},qt=()=>{if(!W)return;const{icon:i,tooltip:c,tabIndex:F}=S,Ie=(0,y.Z)(c)[0]||(b==null?void 0:b.edit),nn=typeof Ie=="string"?Ie:"";return le.includes("icon")?o.createElement(oe.Z,{key:"edit",title:c===!1?"":Ie},o.createElement("button",{type:"button",ref:_,className:`${L}-edit`,onClick:Q,"aria-label":nn,tabIndex:F},i||o.createElement(M.Z,{role:"button"}))):null},_t=()=>T?o.createElement(xt,Object.assign({key:"copy"},Y,{prefixCls:L,copied:A,locale:b,onCopy:we,loading:U,iconOnly:d==null})):null,en=i=>[i&&Yt(),qt(),_t()],tn=i=>[i&&!q&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},jt),$.suffix,en(i)];return o.createElement(B.Z,{onResize:Jt,disabled:!N},i=>o.createElement(wt,{tooltipProps:je,enableEllipsis:N,isEllipsis:ke},o.createElement(Me,Object.assign({className:k()({[`${L}-${v}`]:v,[`${L}-disabled`]:O,[`${L}-ellipsis`]:te,[`${L}-ellipsis-single-line`]:Vt,[`${L}-ellipsis-multiple-line`]:Re},l),prefixCls:t,style:Object.assign(Object.assign({},a),{WebkitLineClamp:Re?de:void 0}),component:p,ref:(0,ne.sQ)(i,H,n),direction:I,onClick:le.includes("text")?Q:void 0,"aria-label":ye==null?void 0:ye.toString(),title:E},P),o.createElement(Ot,{enableMeasure:N&&!K,text:d,rows:de,width:ze,onEllipsis:Qt,expanded:q,miscDeps:[A,q,U,W,T,b]},(c,F)=>Rt(e,o.createElement(o.Fragment,null,c.length>0&&F&&!q&&ye?o.createElement("span",{key:"show-content","aria-hidden":!0},c):c,tn(F)))))))}),It=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r},Lt=o.forwardRef((e,n)=>{var{ellipsis:r,rel:t}=e,l=It(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete a.navigate,o.createElement(fe,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))}),Pt=o.forwardRef((e,n)=>o.createElement(fe,Object.assign({ref:n},e,{component:"div"}))),$t=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};const Mt=(e,n)=>{var{ellipsis:r}=e,t=$t(e,["ellipsis"]);const l=o.useMemo(()=>r&&typeof r=="object"?(0,z.Z)(r,["expandable","rows"]):r,[r]);return o.createElement(fe,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))};var At=o.forwardRef(Mt),Dt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};const Nt=[1,2,3,4,5];var Bt=o.forwardRef((e,n)=>{const{level:r=1}=e,t=Dt(e,["level"]),l=Nt.includes(r)?`h${r}`:"h1";return o.createElement(fe,Object.assign({ref:n},t,{component:l}))});const ie=Me;ie.Text=At,ie.Link=Lt,ie.Title=Bt,ie.Paragraph=Pt;var Zt=ie},20640:function(re,j,s){"use strict";var o=s(11742),M={"text/plain":"Text","text/html":"Url",default:"Text"},V="Copy to clipboard: #{key}, Enter";function k(y){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return y.replace(/#{\s*key\s*}/g,f)}function B(y,f){var w,z,ne,X,G,C,oe=!1;f||(f={}),w=f.debug||!1;try{ne=o(),X=document.createRange(),G=document.getSelection(),C=document.createElement("span"),C.textContent=y,C.ariaHidden="true",C.style.all="unset",C.style.position="fixed",C.style.top=0,C.style.clip="rect(0, 0, 0, 0)",C.style.whiteSpace="pre",C.style.webkitUserSelect="text",C.style.MozUserSelect="text",C.style.msUserSelect="text",C.style.userSelect="text",C.addEventListener("copy",function(Z){if(Z.stopPropagation(),f.format)if(Z.preventDefault(),typeof Z.clipboardData=="undefined"){w&&console.warn("unable to use e.clipboardData"),w&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var se=M[f.format]||M.default;window.clipboardData.setData(se,y)}else Z.clipboardData.clearData(),Z.clipboardData.setData(f.format,y);f.onCopy&&(Z.preventDefault(),f.onCopy(Z.clipboardData))}),document.body.appendChild(C),X.selectNodeContents(C),G.addRange(X);var ve=document.execCommand("copy");if(!ve)throw new Error("copy command was unsuccessful");oe=!0}catch(Z){w&&console.error("unable to copy using execCommand: ",Z),w&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",y),f.onCopy&&f.onCopy(window.clipboardData),oe=!0}catch(se){w&&console.error("unable to copy using clipboardData: ",se),w&&console.error("falling back to prompt"),z=k("message"in f?f.message:V),window.prompt(z,y)}}finally{G&&(typeof G.removeRange=="function"?G.removeRange(X):G.removeAllRanges()),C&&document.body.removeChild(C),ne()}return oe}re.exports=B},79370:function(re,j,s){"use strict";s.d(j,{G:function(){return k}});var o=s(98924),M=function(y){if((0,o.Z)()&&window.document.documentElement){var f=Array.isArray(y)?y:[y],w=window.document.documentElement;return f.some(function(z){return z in w.style})}return!1},V=function(y,f){if(!M(y))return!1;var w=document.createElement("div"),z=w.style[y];return w.style[y]=f,w.style[y]!==z};function k(B,y){return!Array.isArray(B)&&y!==void 0?V(B,y):M(B)}},11742:function(re){re.exports=function(){var j=document.getSelection();if(!j.rangeCount)return function(){};for(var s=document.activeElement,o=[],M=0;M<j.rangeCount;M++)o.push(j.getRangeAt(M));switch(s.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":s.blur();break;default:s=null;break}return j.removeAllRanges(),function(){j.type==="Caret"&&j.removeAllRanges(),j.rangeCount||o.forEach(function(V){j.addRange(V)}),s&&s.focus()}}}}]);