-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3859.async.js
More file actions
17 lines (17 loc) · 22.6 KB
/
3859.async.js
File metadata and controls
17 lines (17 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(self.webpackChunk=self.webpackChunk||[]).push([[3859],{57132:function(_,w,r){"use strict";r.d(w,{Z:function(){return Z}});var o=r(87462),D=r(67294),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},se=ee,te=r(84089),A=function(U,G){return D.createElement(te.Z,(0,o.Z)({},U,{ref:G,icon:se}))},C=D.forwardRef(A),Z=C},15746:function(_,w,r){"use strict";var o=r(21584);w.Z=o.Z},71230:function(_,w,r){"use strict";var o=r(92820);w.Z=o.Z},9798:function(_,w,r){"use strict";r.d(w,{Z:function(){return Wt}});var o=r(67294),D=r(87462),ee={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"},se=ee,te=r(84089),A=function(n,l){return o.createElement(te.Z,(0,D.Z)({},n,{ref:l,icon:se}))},C=o.forwardRef(A),Z=C,re=r(93967),U=r.n(re),G=r(48555),K=r(50344),m=r(8410),ne=r(21770),ue=r(98423),N=r(42550),oe=r(79370),Pe=r(53124),Ve=r(10110),be=r(83062),Fe={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"},Xe=Fe,Je=function(n,l){return o.createElement(te.Z,(0,D.Z)({},n,{ref:l,icon:Xe}))},Ge=o.forwardRef(Je),Qe=Ge,Me=r(15105),Ye=r(96159),qe=r(22913),$e=r(14747),_e=r(83559),et=r(84898),tt=r(11568);const nt=(e,n,l,t)=>{const{titleMarginBottom:s,fontWeightStrong:a}=t;return{marginBottom:s,color:l,fontWeight:a,fontSize:e,lineHeight:n}},ot=e=>{const n=[1,2,3,4,5],l={};return n.forEach(t=>{l[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=nt(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),l},lt=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,$e.Nd)(e)),{userSelect:"text",[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},st=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:et.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}}),rt=e=>{const{componentCls:n,paddingSM:l}=e,t=l;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,tt.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"}}}},it=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),at=()=>({"\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"}}),ct=e=>{const{componentCls:n,titleMarginTop:l}=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"}},ot(e)),{[`
& + h1${n},
& + h2${n},
& + h3${n},
& + h4${n},
& + h5${n}
`]:{marginTop:l},"\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:l}}}),st(e)),lt(e)),{[`
${n}-expand,
${n}-collapse,
${n}-edit,
${n}-copy
`]:Object.assign(Object.assign({},(0,$e.Nd)(e)),{marginInlineStart:e.marginXXS})}),rt(e)),it(e)),at()),{"&-rtl":{direction:"rtl"}})}},dt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var De=(0,_e.I$)("Typography",e=>[ct(e)],dt),ut=e=>{const{prefixCls:n,"aria-label":l,className:t,style:s,direction:a,maxLength:y,autoSize:O=!0,value:d,onSave:u,onCancel:f,onEnd:g,component:p,enterIcon:b=o.createElement(Qe,null)}=e,M=o.useRef(null),R=o.useRef(!1),T=o.useRef(),[v,B]=o.useState(d);o.useEffect(()=>{B(d)},[d]),o.useEffect(()=>{var E;if(!((E=M.current)===null||E===void 0)&&E.resizableTextArea){const{textArea:h}=M.current.resizableTextArea;h.focus();const{length:S}=h.value;h.setSelectionRange(S,S)}},[]);const Q=E=>{let{target:h}=E;B(h.value.replace(/[\n\r]/g,""))},j=()=>{R.current=!0},I=()=>{R.current=!1},H=E=>{let{keyCode:h}=E;R.current||(T.current=h)},x=()=>{u(v.trim())},Y=E=>{let{keyCode:h,ctrlKey:S,altKey:X,metaKey:P,shiftKey:k}=E;T.current!==h||R.current||S||X||P||k||(h===Me.Z.ENTER?(x(),g==null||g()):h===Me.Z.ESC&&f())},ae=()=>{x()},[le,V,ce]=De(n),F=U()(n,`${n}-edit-content`,{[`${n}-rtl`]:a==="rtl",[`${n}-${p}`]:!!p},t,V,ce);return le(o.createElement("div",{className:F,style:s},o.createElement(qe.Z,{ref:M,maxLength:y,value:v,onChange:Q,onKeyDown:H,onKeyUp:Y,onCompositionStart:j,onCompositionEnd:I,onBlur:ae,"aria-label":l,rows:1,autoSize:O}),b!==null?(0,Ye.Tm)(b,{className:`${n}-edit-content-confirm`}):null))},pt=r(20640),ft=r.n(pt),gt=r(66680);function mt(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var yt=function(e,n,l,t){function s(a){return a instanceof l?a:new l(function(y){y(a)})}return new(l||(l=Promise))(function(a,y){function O(f){try{u(t.next(f))}catch(g){y(g)}}function d(f){try{u(t.throw(f))}catch(g){y(g)}}function u(f){f.done?a(f.value):s(f.value).then(O,d)}u((t=t.apply(e,n||[])).next())})},vt=e=>{let{copyConfig:n,children:l}=e;const[t,s]=o.useState(!1),[a,y]=o.useState(!1),O=o.useRef(null),d=()=>{O.current&&clearTimeout(O.current)},u={};n.format&&(u.format=n.format),o.useEffect(()=>d,[]);const f=(0,gt.Z)(g=>yt(void 0,void 0,void 0,function*(){var p;g==null||g.preventDefault(),g==null||g.stopPropagation(),y(!0);try{const b=typeof n.text=="function"?yield n.text():n.text;ft()(b||mt(l,!0).join("")||"",u),y(!1),s(!0),d(),O.current=setTimeout(()=>{s(!1)},3e3),(p=n.onCopy)===null||p===void 0||p.call(n,g)}catch(b){throw y(!1),b}}));return{copied:t,copyLoading:a,onClick:f}};function Ee(e,n){return o.useMemo(()=>{const l=!!e;return[l,Object.assign(Object.assign({},n),l&&typeof e=="object"?e:null)]},[e])}var bt=e=>{const n=(0,o.useRef)();return(0,o.useEffect)(()=>{n.current=e}),n.current},Et=(e,n,l)=>(0,o.useMemo)(()=>e===!0?{title:n!=null?n:l}:(0,o.isValidElement)(e)?{title:e}:typeof e=="object"?Object.assign({title:n!=null?n:l},e):{title:e},[e,n,l]),ht=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l},Ne=o.forwardRef((e,n)=>{const{prefixCls:l,component:t="article",className:s,rootClassName:a,setContentRef:y,children:O,direction:d,style:u}=e,f=ht(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,typography:b}=o.useContext(Pe.E_),M=d!=null?d:p,R=y?(0,N.sQ)(n,y):n,T=g("typography",l),[v,B,Q]=De(T),j=U()(T,b==null?void 0:b.className,{[`${T}-rtl`]:M==="rtl"},s,a,B,Q),I=Object.assign(Object.assign({},b==null?void 0:b.style),u);return v(o.createElement(t,Object.assign({className:j,style:I,ref:R},f),O))}),xt=r(63606),Ct=r(57132),Ot=r(50888);function Ae(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function he(e,n,l){return e===!0||e===void 0?n:e||l&&n}function St(e){const n=document.createElement("em");e.appendChild(n);const l=e.getBoundingClientRect(),t=n.getBoundingClientRect();return e.removeChild(n),l.left>t.left||t.right>l.right||l.top>t.top||t.bottom>l.bottom}const xe=e=>["string","number"].includes(typeof e);var wt=e=>{let{prefixCls:n,copied:l,locale:t,iconOnly:s,tooltips:a,icon:y,tabIndex:O,onCopy:d,loading:u}=e;const f=Ae(a),g=Ae(y),{copied:p,copy:b}=t!=null?t:{},M=l?p:b,R=he(f[l?1:0],M),T=typeof R=="string"?R:M;return o.createElement(be.Z,{title:R},o.createElement("button",{type:"button",className:U()(`${n}-copy`,{[`${n}-copy-success`]:l,[`${n}-copy-icon-only`]:s}),onClick:d,"aria-label":T,tabIndex:O},l?he(g[1],o.createElement(xt.Z,null),!0):he(g[0],u?o.createElement(Ot.Z,null):o.createElement(Ct.Z,null),!0)))},Rt=r(74902);const pe=o.forwardRef((e,n)=>{let{style:l,children:t}=e;const s=o.useRef(null);return o.useImperativeHandle(n,()=>({isExceed:()=>{const a=s.current;return a.scrollHeight>a.clientHeight},getHeight:()=>s.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:s,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},l)},t)}),Tt=e=>e.reduce((n,l)=>n+(xe(l)?String(l).length:1),0);function Ze(e,n){let l=0;const t=[];for(let s=0;s<e.length;s+=1){if(l===n)return t;const a=e[s],O=xe(a)?String(a).length:1,d=l+O;if(d>n){const u=n-l;return t.push(String(a).slice(0,u)),t}t.push(a),l=d}return e}const Ce=0,Oe=1,Se=2,we=3,Be=4,fe={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function jt(e){const{enableMeasure:n,width:l,text:t,children:s,rows:a,expanded:y,miscDeps:O,onEllipsis:d}=e,u=o.useMemo(()=>(0,K.Z)(t),[t]),f=o.useMemo(()=>Tt(u),[t]),g=o.useMemo(()=>s(u,!1),[t]),[p,b]=o.useState(null),M=o.useRef(null),R=o.useRef(null),T=o.useRef(null),v=o.useRef(null),B=o.useRef(null),[Q,j]=o.useState(!1),[I,H]=o.useState(Ce),[x,Y]=o.useState(0),[ae,le]=o.useState(null);(0,m.Z)(()=>{H(n&&l&&f?Oe:Ce)},[l,t,a,n,u]),(0,m.Z)(()=>{var E,h,S,X;if(I===Oe){H(Se);const P=R.current&&getComputedStyle(R.current).whiteSpace;le(P)}else if(I===Se){const P=!!(!((E=T.current)===null||E===void 0)&&E.isExceed());H(P?we:Be),b(P?[0,f]:null),j(P);const k=((h=T.current)===null||h===void 0?void 0:h.getHeight())||0,Re=a===1?0:((S=v.current)===null||S===void 0?void 0:S.getHeight())||0,me=((X=B.current)===null||X===void 0?void 0:X.getHeight())||0,Te=Math.max(k,Re+me);Y(Te+1),d(P)}},[I]);const V=p?Math.ceil((p[0]+p[1])/2):0;(0,m.Z)(()=>{var E;const[h,S]=p||[0,0];if(h!==S){const P=(((E=M.current)===null||E===void 0?void 0:E.getHeight())||0)>x;let k=V;S-h===1&&(k=P?h:S),b(P?[h,k]:[k,S])}},[p,V]);const ce=o.useMemo(()=>{if(!n)return s(u,!1);if(I!==we||!p||p[0]!==p[1]){const E=s(u,!1);return[Be,Ce].includes(I)?E:o.createElement("span",{style:Object.assign(Object.assign({},fe),{WebkitLineClamp:a})},E)}return s(y?u:Ze(u,p[0]),Q)},[y,I,p,u].concat((0,Rt.Z)(O))),F={width:l,margin:0,padding:0,whiteSpace:ae==="nowrap"?"normal":"inherit"};return o.createElement(o.Fragment,null,ce,I===Se&&o.createElement(o.Fragment,null,o.createElement(pe,{style:Object.assign(Object.assign(Object.assign({},F),fe),{WebkitLineClamp:a}),ref:T},g),o.createElement(pe,{style:Object.assign(Object.assign(Object.assign({},F),fe),{WebkitLineClamp:a-1}),ref:v},g),o.createElement(pe,{style:Object.assign(Object.assign(Object.assign({},F),fe),{WebkitLineClamp:1}),ref:B},s([],!0))),I===we&&p&&p[0]!==p[1]&&o.createElement(pe,{style:Object.assign(Object.assign({},F),{top:400}),ref:M},s(Ze(u,V),!0)),I===Oe&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:R}))}var It=e=>{let{enableEllipsis:n,isEllipsis:l,children:t,tooltipProps:s}=e;return!(s!=null&&s.title)||!n?t:o.createElement(be.Z,Object.assign({open:l?void 0:!1},s),t)},Lt=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l};function Pt(e,n){let{mark:l,code:t,underline:s,delete:a,strong:y,keyboard:O,italic:d}=e,u=n;function f(g,p){p&&(u=o.createElement(g,{},u))}return f("strong",y),f("u",s),f("del",a),f("code",t),f("mark",l),f("kbd",O),f("i",d),u}const Mt="...";var ge=o.forwardRef((e,n)=>{var l;const{prefixCls:t,className:s,style:a,type:y,disabled:O,children:d,ellipsis:u,editable:f,copyable:g,component:p,title:b}=e,M=Lt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:R,direction:T}=o.useContext(Pe.E_),[v]=(0,Ve.Z)("Text"),B=o.useRef(null),Q=o.useRef(null),j=R("typography",t),I=(0,ue.Z)(M,["mark","code","delete","underline","strong","keyboard","italic"]),[H,x]=Ee(f),[Y,ae]=(0,ne.Z)(!1,{value:x.editing}),{triggerType:le=["icon"]}=x,V=i=>{var c;i&&((c=x.onStart)===null||c===void 0||c.call(x)),ae(i)},ce=bt(Y);(0,m.Z)(()=>{var i;!Y&&ce&&((i=Q.current)===null||i===void 0||i.focus())},[Y]);const F=i=>{i==null||i.preventDefault(),V(!0)},E=i=>{var c;(c=x.onChange)===null||c===void 0||c.call(x,i),V(!1)},h=()=>{var i;(i=x.onCancel)===null||i===void 0||i.call(x),V(!1)},[S,X]=Ee(g),{copied:P,copyLoading:k,onClick:Re}=vt({copyConfig:X,children:d}),[me,Te]=o.useState(!1),[He,Ut]=o.useState(!1),[ke,Kt]=o.useState(!1),[ze,Vt]=o.useState(!1),[Ft,Xt]=o.useState(!0),[q,L]=Ee(u,{expandable:!1,symbol:i=>i?v==null?void 0:v.collapse:v==null?void 0:v.expand}),[J,Jt]=(0,ne.Z)(L.defaultExpanded||!1,{value:L.expanded}),$=q&&(!J||L.expandable==="collapsible"),{rows:de=1}=L,ye=o.useMemo(()=>$&&(L.suffix!==void 0||L.onEllipsis||L.expandable||H||S),[$,L,H,S]);(0,m.Z)(()=>{q&&!ye&&(Te((0,oe.G)("webkitLineClamp")),Ut((0,oe.G)("textOverflow")))},[ye,q]);const[z,Gt]=o.useState($),We=o.useMemo(()=>ye?!1:de===1?He:me,[ye,He,me]);(0,m.Z)(()=>{Gt(We&&$)},[We,$]);const Ue=$&&(z?ze:ke),Qt=$&&de===1&&z,je=$&&de>1&&z,Yt=(i,c)=>{var W;Jt(c.expanded),(W=L.onExpand)===null||W===void 0||W.call(L,i,c)},[Ke,qt]=o.useState(0),_t=i=>{let{offsetWidth:c}=i;qt(c)},en=i=>{var c;Kt(i),ke!==i&&((c=L.onEllipsis)===null||c===void 0||c.call(L,i))};o.useEffect(()=>{const i=B.current;if(q&&z&&i){const c=St(i);ze!==c&&Vt(c)}},[q,z,d,je,Ft,Ke]),o.useEffect(()=>{const i=B.current;if(typeof IntersectionObserver=="undefined"||!i||!z||!$)return;const c=new IntersectionObserver(()=>{Xt(!!i.offsetParent)});return c.observe(i),()=>{c.disconnect()}},[z,$]);const Ie=Et(L.tooltip,x.text,d),ve=o.useMemo(()=>{if(!(!q||z))return[x.text,d,b,Ie.title].find(xe)},[q,z,b,Ie.title,Ue]);if(Y)return o.createElement(ut,{value:(l=x.text)!==null&&l!==void 0?l:typeof d=="string"?d:"",onSave:E,onCancel:h,onEnd:x.onEnd,prefixCls:j,className:s,style:a,direction:T,component:p,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});const tn=()=>{const{expandable:i,symbol:c}=L;return i?o.createElement("button",{type:"button",key:"expand",className:`${j}-${J?"collapse":"expand"}`,onClick:W=>Yt(W,{expanded:!J}),"aria-label":J?v.collapse:v==null?void 0:v.expand},typeof c=="function"?c(J):c):null},nn=()=>{if(!H)return;const{icon:i,tooltip:c,tabIndex:W}=x,Le=(0,K.Z)(c)[0]||(v==null?void 0:v.edit),rn=typeof Le=="string"?Le:"";return le.includes("icon")?o.createElement(be.Z,{key:"edit",title:c===!1?"":Le},o.createElement("button",{type:"button",ref:Q,className:`${j}-edit`,onClick:F,"aria-label":rn,tabIndex:W},i||o.createElement(Z,{role:"button"}))):null},on=()=>S?o.createElement(wt,Object.assign({key:"copy"},X,{prefixCls:j,copied:P,locale:v,onCopy:Re,loading:k,iconOnly:d==null})):null,ln=i=>[i&&tn(),nn(),on()],sn=i=>[i&&!J&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Mt),L.suffix,ln(i)];return o.createElement(G.Z,{onResize:_t,disabled:!$},i=>o.createElement(It,{tooltipProps:Ie,enableEllipsis:$,isEllipsis:Ue},o.createElement(Ne,Object.assign({className:U()({[`${j}-${y}`]:y,[`${j}-disabled`]:O,[`${j}-ellipsis`]:q,[`${j}-ellipsis-single-line`]:Qt,[`${j}-ellipsis-multiple-line`]:je},s),prefixCls:t,style:Object.assign(Object.assign({},a),{WebkitLineClamp:je?de:void 0}),component:p,ref:(0,N.sQ)(i,B,n),direction:T,onClick:le.includes("text")?F:void 0,"aria-label":ve==null?void 0:ve.toString(),title:b},I),o.createElement(jt,{enableMeasure:$&&!z,text:d,rows:de,width:Ke,onEllipsis:en,expanded:J,miscDeps:[P,J,k,H,S,v]},(c,W)=>Pt(e,o.createElement(o.Fragment,null,c.length>0&&W&&!J&&ve?o.createElement("span",{key:"show-content","aria-hidden":!0},c):c,sn(W)))))))}),$t=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l},Dt=o.forwardRef((e,n)=>{var{ellipsis:l,rel:t}=e,s=$t(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},s),{rel:t===void 0&&s.target==="_blank"?"noopener noreferrer":t});return delete a.navigate,o.createElement(ge,Object.assign({},a,{ref:n,ellipsis:!!l,component:"a"}))}),Nt=o.forwardRef((e,n)=>o.createElement(ge,Object.assign({ref:n},e,{component:"div"}))),At=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l};const Zt=(e,n)=>{var{ellipsis:l}=e,t=At(e,["ellipsis"]);const s=o.useMemo(()=>l&&typeof l=="object"?(0,ue.Z)(l,["expandable","rows"]):l,[l]);return o.createElement(ge,Object.assign({ref:n},t,{ellipsis:s,component:"span"}))};var Bt=o.forwardRef(Zt),Ht=function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l};const kt=[1,2,3,4,5];var zt=o.forwardRef((e,n)=>{const{level:l=1}=e,t=Ht(e,["level"]),s=kt.includes(l)?`h${l}`:"h1";return o.createElement(ge,Object.assign({ref:n},t,{component:s}))});const ie=Ne;ie.Text=Bt,ie.Link=Dt,ie.Title=zt,ie.Paragraph=Nt;var Wt=ie},20640:function(_,w,r){"use strict";var o=r(11742),D={"text/plain":"Text","text/html":"Url",default:"Text"},ee="Copy to clipboard: #{key}, Enter";function se(A){var C=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return A.replace(/#{\s*key\s*}/g,C)}function te(A,C){var Z,re,U,G,K,m,ne=!1;C||(C={}),Z=C.debug||!1;try{U=o(),G=document.createRange(),K=document.getSelection(),m=document.createElement("span"),m.textContent=A,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(N){if(N.stopPropagation(),C.format)if(N.preventDefault(),typeof N.clipboardData=="undefined"){Z&&console.warn("unable to use e.clipboardData"),Z&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var oe=D[C.format]||D.default;window.clipboardData.setData(oe,A)}else N.clipboardData.clearData(),N.clipboardData.setData(C.format,A);C.onCopy&&(N.preventDefault(),C.onCopy(N.clipboardData))}),document.body.appendChild(m),G.selectNodeContents(m),K.addRange(G);var ue=document.execCommand("copy");if(!ue)throw new Error("copy command was unsuccessful");ne=!0}catch(N){Z&&console.error("unable to copy using execCommand: ",N),Z&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(C.format||"text",A),C.onCopy&&C.onCopy(window.clipboardData),ne=!0}catch(oe){Z&&console.error("unable to copy using clipboardData: ",oe),Z&&console.error("falling back to prompt"),re=se("message"in C?C.message:ee),window.prompt(re,A)}}finally{K&&(typeof K.removeRange=="function"?K.removeRange(G):K.removeAllRanges()),m&&document.body.removeChild(m),U()}return ne}_.exports=te},11742:function(_){_.exports=function(){var w=document.getSelection();if(!w.rangeCount)return function(){};for(var r=document.activeElement,o=[],D=0;D<w.rangeCount;D++)o.push(w.getRangeAt(D));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return w.removeAllRanges(),function(){w.type==="Caret"&&w.removeAllRanges(),w.rangeCount||o.forEach(function(ee){w.addRange(ee)}),r&&r.focus()}}}}]);