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.
1 line
21 KiB
1 line
21 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[48066],{81953:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(54476),r=n(59301),l={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"},i=n(7657),a=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:l}))};var c=r.forwardRef(a)},48066:function(e,t,n){"use strict";n.d(t,{Z:function(){return me}});var o=n(59301),r=n(40001),l=n(81953),i=n(54476),a={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"},c=n(7657),s=function(e,t){return o.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:a}))};var d=o.forwardRef(s),u=n(92310),p=n.n(u),f=n(25769),m=n.n(f),g=n(29301),b=n(11592),y=n(34280),v=n(18929),h=n(2738),x=n(8654),O=n(24514),w=n(10228),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const S={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var k=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:l}=e,i=E(e,["style","noStyle","disabled"]);let a={};return r||(a=Object.assign({},S)),l&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{const{keyCode:t}=e;t===w.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===w.Z.ENTER&&o&&o()},style:a}))})),C=n(36355),j=n(9763),$=n(6848),R={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"},D=function(e,t){return o.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:R}))};var T=o.forwardRef(D),Z=n(92343),z=n(1643),I=n(15969),M=n(83116),P=n(30071);const H=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},N=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,I.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},B=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:P.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}}),A=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},L=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),W=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]: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,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},H(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\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:n}}}),B(e)),N(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,I.N)(e)),{marginInlineStart:e.marginXXS})}),A(e)),L(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var F=(0,M.Z)("Typography",(e=>[W(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var K=e=>{const{prefixCls:t,"aria-label":n,className:r,style:l,direction:i,maxLength:a,autoSize:c=!0,value:s,onSave:d,onCancel:u,onEnd:f,component:m,enterIcon:g=o.createElement(T,null)}=e,b=o.useRef(null),y=o.useRef(!1),v=o.useRef(),[h,x]=o.useState(s);o.useEffect((()=>{x(s)}),[s]),o.useEffect((()=>{if(b.current&&b.current.resizableTextArea){const{textArea:e}=b.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const O=()=>{d(h.trim())},E=m?`${t}-${m}`:"",[S,k]=F(t),C=p()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i},r,E,k);return S(o.createElement("div",{className:C,style:l},o.createElement(z.Z,{ref:b,maxLength:a,value:h,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;y.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:l}=e;v.current!==t||y.current||n||o||r||l||(t===w.Z.ENTER?(O(),null==f||f()):t===w.Z.ESC&&u())},onCompositionStart:()=>{y.current=!0},onCompositionEnd:()=>{y.current=!1},onBlur:()=>{O()},"aria-label":n,rows:1,autoSize:c}),null!==g?(0,Z.Tm)(g,{className:`${t}-edit-content-confirm`}):null))},U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const V=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:l,rootClassName:i,setContentRef:a,children:c,direction:s,style:d}=e,u=U(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=o.useContext(C.E_),b=null!=s?s:m;let y=t;a&&(y=(0,x.sQ)(t,a));const v=f("typography",n),[h,O]=F(v),w=p()(v,null==g?void 0:g.className,{[`${v}-rtl`]:"rtl"===b},l,i,O),E=Object.assign(Object.assign({},null==g?void 0:g.style),d);return h(o.createElement(r,Object.assign({className:w,style:E,ref:y},u),c))}));var X=V;function _(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var q=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};function G(e){const t=typeof e;return"string"===t||"number"===t}function Q(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const l=e[r],i=n+(G(l)?String(l).length:1);if(i>t){const e=t-n;return o.push(String(l).slice(0,e)),o}o.push(l),n=i}return e}var J=e=>{let{enabledMeasure:t,children:n,text:r,width:l,fontSize:i,rows:a,onEllipsis:c}=e;const[[s,d,u],p]=o.useState([0,0,0]),[f,m]=o.useState(0),[g,v]=o.useState(0),[h,x]=o.useState(0),O=o.useRef(null),w=o.useRef(null),E=o.useMemo((()=>(0,b.Z)(r)),[r]),S=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{G(e)?t+=String(e).length:t+=1})),t}(E)),[E]),k=o.useMemo((()=>t&&3===g?n(Q(E,d),d<S):f&&4!==g&&t?n(Q(E,f),f<S):n(E,!1)),[t,g,n,E,d,S]);(0,y.Z)((()=>{t&&l&&i&&S&&(v(1),p([0,Math.ceil(S/2),S]))}),[t,l,i,r,S,a]),(0,y.Z)((()=>{var e;1===g&&x((null===(e=O.current)||void 0===e?void 0:e.offsetHeight)||0)}),[g]),(0,y.Z)((()=>{var e,t;if(h)if(1===g){((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*h?(v(4),c(!1)):v(2)}else if(2===g)if(s!==u){const e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0;let n=s,o=u;s===u-1?o=s:e<=a*h?n=d:o=d;const r=Math.ceil((n+o)/2);p([n,r,o])}else v(3),m(d),c(!0)}),[g,s,u,a,h]);const C={width:l,whiteSpace:"normal",margin:0,padding:0},j=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(i/2)},n)},e);return o.createElement(o.Fragment,null,k,t&&3!==g&&4!==g&&o.createElement(o.Fragment,null,j("lg",O,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===g?j(n(E,!1),w,C):((e,t)=>{const o=Q(E,e);return j(n(o,!0),t,C)})(d,w)))};var Y=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:l}=e;return(null==l?void 0:l.title)&&t?o.createElement($.Z,Object.assign({open:!!n&&void 0},l),r):r},ee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function te(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ne(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}var oe=o.forwardRef(((e,t)=>{var n,i,a;const{prefixCls:c,className:s,style:u,type:f,disabled:w,children:E,ellipsis:S,editable:R,copyable:D,component:T,title:Z}=e,z=ee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:I,direction:M}=o.useContext(C.E_),[P]=(0,j.Z)("Text"),H=o.useRef(null),N=o.useRef(null),B=I("typography",c),A=(0,h.Z)(z,["mark","code","delete","underline","strong","keyboard","italic"]),[L,W]=_(R),[F,U]=(0,v.Z)(!1,{value:W.editing}),{triggerType:V=["icon"]}=W,G=e=>{var t;e&&(null===(t=W.onStart)||void 0===t||t.call(W)),U(e)};q((()=>{var e;F||null===(e=N.current)||void 0===e||e.focus()}),[F]);const Q=e=>{null==e||e.preventDefault(),G(!0)},oe=e=>{var t;null===(t=W.onChange)||void 0===t||t.call(W,e),G(!1)},re=()=>{var e;null===(e=W.onCancel)||void 0===e||e.call(W),G(!1)},[le,ie]=_(D),[ae,ce]=o.useState(!1),se=o.useRef(null),de={};ie.format&&(de.format=ie.format);const ue=()=>{se.current&&clearTimeout(se.current)},pe=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),m()(ie.text||String(E)||"",de),ce(!0),ue(),se.current=setTimeout((()=>{ce(!1)}),3e3),null===(t=ie.onCopy)||void 0===t||t.call(ie,e)};o.useEffect((()=>ue),[]);const[fe,me]=o.useState(!1),[ge,be]=o.useState(!1),[ye,ve]=o.useState(!1),[he,xe]=o.useState(!1),[Oe,we]=o.useState(!1),[Ee,Se]=o.useState(!0),[ke,Ce]=_(S,{expandable:!1}),je=ke&&!ye,{rows:$e=1}=Ce,Re=o.useMemo((()=>!je||void 0!==Ce.suffix||Ce.onEllipsis||Ce.expandable||L||le),[je,Ce,L,le]);(0,y.Z)((()=>{ke&&!Re&&(me((0,O.G)("webkitLineClamp")),be((0,O.G)("textOverflow")))}),[Re,ke]);const De=o.useMemo((()=>!Re&&(1===$e?ge:fe)),[Re,ge,fe]),Te=je&&(De?Oe:he),Ze=je&&1===$e&&De,ze=je&&$e>1&&De,Ie=e=>{var t;ve(!0),null===(t=Ce.onExpand)||void 0===t||t.call(Ce,e)},[Me,Pe]=o.useState(0),[He,Ne]=o.useState(0),Be=e=>{var t;xe(e),he!==e&&(null===(t=Ce.onEllipsis)||void 0===t||t.call(Ce,e))};o.useEffect((()=>{const e=H.current;if(ke&&De&&e){const t=ze?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;Oe!==t&&we(t)}}),[ke,De,E,ze,Ee]),o.useEffect((()=>{const e=H.current;if("undefined"==typeof IntersectionObserver||!e||!De||!je)return;const t=new IntersectionObserver((()=>{Se(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[De,je]);let Ae={};Ae=!0===Ce.tooltip?{title:null!==(n=W.text)&&void 0!==n?n:E}:o.isValidElement(Ce.tooltip)?{title:Ce.tooltip}:"object"==typeof Ce.tooltip?Object.assign({title:null!==(i=W.text)&&void 0!==i?i:E},Ce.tooltip):{title:Ce.tooltip};const Le=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(ke&&!De)return e(W.text)?W.text:e(E)?E:e(Z)?Z:e(Ae.title)?Ae.title:void 0}),[ke,De,Z,Ae.title,Te]);if(F)return o.createElement(K,{value:null!==(a=W.text)&&void 0!==a?a:"string"==typeof E?E:"",onSave:oe,onCancel:re,onEnd:W.onEnd,prefixCls:B,className:s,style:u,direction:M,component:T,maxLength:W.maxLength,autoSize:W.autoSize,enterIcon:W.enterIcon});const We=()=>{const{expandable:e,symbol:t}=Ce;if(!e)return null;let n;return n=t||(null==P?void 0:P.expand),o.createElement("a",{key:"expand",className:`${B}-expand`,onClick:Ie,"aria-label":null==P?void 0:P.expand},n)},Fe=()=>{if(!L)return;const{icon:e,tooltip:t}=W,n=(0,b.Z)(t)[0]||(null==P?void 0:P.edit),r="string"==typeof n?n:"";return V.includes("icon")?o.createElement($.Z,{key:"edit",title:!1===t?"":n},o.createElement(k,{ref:N,className:`${B}-edit`,onClick:Q,"aria-label":r},e||o.createElement(d,{role:"button"}))):null},Ke=()=>{if(!le)return;const{tooltips:e,icon:t}=ie,n=ne(e),i=ne(t),a=ae?te(n[1],null==P?void 0:P.copied):te(n[0],null==P?void 0:P.copy),c=ae?null==P?void 0:P.copied:null==P?void 0:P.copy,s="string"==typeof a?a:c;return o.createElement($.Z,{key:"copy",title:a},o.createElement(k,{className:p()(`${B}-copy`,ae&&`${B}-copy-success`),onClick:pe,"aria-label":s},ae?te(i[1],o.createElement(r.Z,null),!0):te(i[0],o.createElement(l.Z,null),!0)))};return o.createElement(g.Z,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;Pe(n),Ne(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!je||De},(n=>o.createElement(Y,{tooltipProps:Ae,enabledEllipsis:je,isEllipsis:Te},o.createElement(X,Object.assign({className:p()({[`${B}-${f}`]:f,[`${B}-disabled`]:w,[`${B}-ellipsis`]:ke,[`${B}-single-line`]:je&&1===$e,[`${B}-ellipsis-single-line`]:Ze,[`${B}-ellipsis-multiple-line`]:ze},s),prefixCls:c,style:Object.assign(Object.assign({},u),{WebkitLineClamp:ze?$e:void 0}),component:T,ref:(0,x.sQ)(n,H,t),direction:M,onClick:V.includes("text")?Q:void 0,"aria-label":null==Le?void 0:Le.toString(),title:Z},A),o.createElement(J,{enabledMeasure:je&&!De,text:E,rows:$e,width:Me,fontSize:He,onEllipsis:Be},((t,n)=>{let r=t;t.length&&n&&Le&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const l=function(e,t){let{mark:n,code:r,underline:l,delete:i,strong:a,keyboard:c,italic:s}=e,d=t;function u(e,t){t&&(d=o.createElement(e,{},d))}return u("strong",a),u("u",l),u("del",i),u("code",r),u("mark",n),u("kbd",c),u("i",s),d}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Ce.suffix,(t=e,[t&&We(),Fe(),Ke()])];var t})(n)));return l}))))))})),re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var le=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,l=re(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},l),{rel:void 0===r&&"_blank"===l.target?"noopener noreferrer":r});return delete i.navigate,o.createElement(oe,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}));var ie=o.forwardRef(((e,t)=>o.createElement(oe,Object.assign({ref:t},e,{component:"div"})))),ae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ce=(e,t)=>{var{ellipsis:n}=e,r=ae(e,["ellipsis"]);const l=o.useMemo((()=>n&&"object"==typeof n?(0,h.Z)(n,["expandable","rows"]):n),[n]);return o.createElement(oe,Object.assign({ref:t},r,{ellipsis:l,component:"span"}))};var se=o.forwardRef(ce),de=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ue=[1,2,3,4,5];var pe=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=de(e,["level"]);let l;return l=ue.includes(n)?`h${n}`:"h1",o.createElement(oe,Object.assign({ref:t},r,{component:l}))}));const fe=X;fe.Text=se,fe.Link=le,fe.Title=pe,fe.Paragraph=ie;var me=fe},25769:function(e,t,n){"use strict";var o=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,l,i,a,c,s,d=!1;t||(t={}),n=t.debug||!1;try{if(i=o(),a=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=r[t.format]||r.default;window.clipboardData.setData(l,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),a.selectNodeContents(s),c.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),l=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(l,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(a):c.removeAllRanges()),s&&document.body.removeChild(s),i()}return d}},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]); |