(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2859],{92859:function(ce,M,a){"use strict";a.d(M,{Z:function(){return Pt}});var o=a(50959),F=a(76388),ie=a(83119),de=a(27263),xe=a(8941),k=a(30961),v=function(n,r){return o.createElement(k.Z,(0,de.Z)({},n,{ref:r,icon:xe.Z}))},W=o.forwardRef(v),ue=a(82187),q=a.n(ue),ee=a(874),V=a.n(ee),y=a(28033),te=a(40253),ne=a(45910),B=a(3691),oe=a(8146),Re=a(38152),Ie=a(73675),fe=a(17495),Ve=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 Xe={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var Le=o.forwardRef((e,n)=>{const r=p=>{const{keyCode:c}=p;c===fe.Z.ENTER&&p.preventDefault()},t=p=>{const{keyCode:c}=p,{onClick:w}=e;c===fe.Z.ENTER&&w&&w()},{style:l,noStyle:f,disabled:b}=e,O=Ve(e,["style","noStyle","disabled"]);let u={};return f||(u=Object.assign({},Xe)),b&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),l),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:n},O,{onKeyDown:r,onKeyUp:t,style:u}))}),Pe=a(76144),Ge=a(43192),Se=a(38546),Je=a(78776),Qe=function(n,r){return o.createElement(k.Z,(0,de.Z)({},n,{ref:r,icon:Je.Z}))},Ye=o.forwardRef(Qe),qe=a(11493),_e=a(29549),Ne=a(33786),et=a(79349),tt=a(22601),nt=a(601);const ot=(e,n,r,t)=>{const{titleMarginBottom:l,fontWeightStrong:f}=t;return{marginBottom:l,color:r,fontWeight:f,fontSize:e,lineHeight:n}},rt=e=>{const n=[1,2,3,4,5],r={};return n.forEach(t=>{r[`
      h${t}&,
      div&-h${t},
      div&-h${t} > textarea,
      h${t}
    `]=ot(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},lt=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,Ne.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},it=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:tt.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}}),st=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,nt.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"}}}},at=e=>({"&-copy-success":{[`
    &,
    &:hover,
    &:focus`]:{color:e.colorSuccess}}}),ct=()=>({[`
  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"}}),dt=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"},[`
        div&,
        p
      `]:{marginBottom:"1em"}},rt(e)),{[`
      & + h1${n},
      & + h2${n},
      & + h3${n},
      & + h4${n},
      & + h5${n}
      `]:{marginTop:r},[`
      div,
      ul,
      li,
      p,
      h1,
      h2,
      h3,
      h4,
      h5`]:{[`
        + h1,
        + h2,
        + h3,
        + h4,
        + h5
        `]:{marginTop:r}}}),it(e)),lt(e)),{[`
        ${n}-expand,
        ${n}-edit,
        ${n}-copy
      `]:Object.assign(Object.assign({},(0,Ne.N)(e)),{marginInlineStart:e.marginXXS})}),st(e)),at(e)),ct()),{"&-rtl":{direction:"rtl"}})}},ut=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var De=(0,et.I$)("Typography",e=>[dt(e)],ut),ft=e=>{const{prefixCls:n,"aria-label":r,className:t,style:l,direction:f,maxLength:b,autoSize:O=!0,value:u,onSave:p,onCancel:c,onEnd:w,component:N,enterIcon:L=o.createElement(Ye,null)}=e,m=o.useRef(null),h=o.useRef(!1),P=o.useRef(),[X,H]=o.useState(u);o.useEffect(()=>{H(u)},[u]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:I}=C.value;C.setSelectionRange(I,I)}},[]);const d=C=>{let{target:I}=C;H(I.value.replace(/[\n\r]/g,""))},S=()=>{h.current=!0},R=()=>{h.current=!1},T=C=>{let{keyCode:I}=C;h.current||(P.current=I)},_=()=>{p(X.trim())},K=C=>{let{keyCode:I,ctrlKey:ae,altKey:J,metaKey:re,shiftKey:ye}=C;P.current===I&&!h.current&&!ae&&!J&&!re&&!ye&&(I===fe.Z.ENTER?(_(),w==null||w()):I===fe.Z.ESC&&c())},g=()=>{_()},E=N?`${n}-${N}`:"",[Z,D,U]=De(n),G=q()(n,`${n}-edit-content`,{[`${n}-rtl`]:f==="rtl"},t,E,D,U);return Z(o.createElement("div",{className:G,style:l},o.createElement(_e.Z,{ref:m,maxLength:b,value:X,onChange:d,onKeyDown:T,onKeyUp:K,onCompositionStart:S,onCompositionEnd:R,onBlur:g,"aria-label":r,rows:1,autoSize:O}),L!==null?(0,qe.Tm)(L,{className:`${n}-edit-content-confirm`}):null))};function Ce(e,n){return o.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},n),r&&typeof e=="object"?e:null)]},[e])}var pt=(e,n)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?e():r.current=!0},n)},gt=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},$e=o.forwardRef((e,n)=>{const{prefixCls:r,component:t="article",className:l,rootClassName:f,setContentRef:b,children:O,direction:u,style:p}=e,c=gt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:w,direction:N,typography:L}=o.useContext(Pe.E_),m=u!=null?u:N;let h=n;b&&(h=(0,Re.sQ)(n,b));const P=w("typography",r),[X,H,d]=De(P),S=q()(P,L==null?void 0:L.className,{[`${P}-rtl`]:m==="rtl"},l,f,H,d),R=Object.assign(Object.assign({},L==null?void 0:L.style),p);return X(o.createElement(t,Object.assign({className:S,style:R,ref:h},c),O))});function Me(e){const n=typeof e;return n==="string"||n==="number"}function mt(e){let n=0;return e.forEach(r=>{Me(r)?n+=String(r).length:n+=1}),n}function Oe(e,n){let r=0;const t=[];for(let l=0;l<e.length;l+=1){if(r===n)return t;const f=e[l],O=Me(f)?String(f).length:1,u=r+O;if(u>n){const p=n-r;return t.push(String(f).slice(0,p)),t}t.push(f),r=u}return e}const yt=0,pe=1,Be=2,we=3,Te=4;var vt=e=>{let{enabledMeasure:n,children:r,text:t,width:l,fontSize:f,rows:b,onEllipsis:O}=e;const[[u,p,c],w]=o.useState([0,0,0]),[N,L]=o.useState(0),[m,h]=o.useState(yt),[P,X]=o.useState(0),H=o.useRef(null),d=o.useRef(null),S=o.useMemo(()=>(0,te.Z)(t),[t]),R=o.useMemo(()=>mt(S),[S]),T=o.useMemo(()=>!n||m!==we?N&&m!==Te&&n?r(Oe(S,N),N<R):r(S,!1):r(Oe(S,p),p<R),[n,m,r,S,p,R]);(0,ne.Z)(()=>{n&&l&&f&&R&&(h(pe),w([0,Math.ceil(R/2),R]))},[n,l,f,t,R,b]),(0,ne.Z)(()=>{var E;m===pe&&X(((E=H.current)===null||E===void 0?void 0:E.offsetHeight)||0)},[m]),(0,ne.Z)(()=>{var E,Z;if(P){if(m===pe){const D=((E=d.current)===null||E===void 0?void 0:E.offsetHeight)||0,U=b*P;D<=U?(h(Te),O(!1)):h(Be)}else if(m===Be)if(u!==c){const D=((Z=d.current)===null||Z===void 0?void 0:Z.offsetHeight)||0,U=b*P;let G=u,C=c;u===c-1?C=u:D<=U?G=p:C=p;const I=Math.ceil((G+C)/2);w([G,I,C])}else h(we),L(p),O(!0)}},[m,u,c,b,P]);const _={width:l,whiteSpace:"normal",margin:0,padding:0},K=(E,Z,D)=>o.createElement("span",{"aria-hidden":!0,ref:Z,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(f/2)*2},D)},E),g=(E,Z)=>{const D=Oe(S,E);return K(r(D,!0),Z,_)};return o.createElement(o.Fragment,null,T,n&&m!==we&&m!==Te&&o.createElement(o.Fragment,null,K("lg",H,{wordBreak:"keep-all",whiteSpace:"nowrap"}),m===pe?K(r(S,!1),d,_):g(p,d)))},bt=e=>{let{enabledEllipsis:n,isEllipsis:r,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:o.createElement(Se.Z,Object.assign({open:r?void 0:!1},l),t)},ht=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 Et(e,n){let{mark:r,code:t,underline:l,delete:f,strong:b,keyboard:O,italic:u}=e,p=n;function c(w,N){N&&(p=o.createElement(w,{},p))}return c("strong",b),c("u",l),c("del",f),c("code",t),c("mark",r),c("kbd",O),c("i",u),p}function ge(e,n,r){return e===!0||e===void 0?n:e||r&&n}function Ze(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const xt="...";var me=o.forwardRef((e,n)=>{var r,t,l;const{prefixCls:f,className:b,style:O,type:u,disabled:p,children:c,ellipsis:w,editable:N,copyable:L,component:m,title:h}=e,P=ht(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:X,direction:H}=o.useContext(Pe.E_),[d]=(0,Ge.Z)("Text"),S=o.useRef(null),R=o.useRef(null),T=X("typography",f),_=(0,oe.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[K,g]=Ce(N),[E,Z]=(0,B.Z)(!1,{value:g.editing}),{triggerType:D=["icon"]}=g,U=i=>{var s;i&&((s=g.onStart)===null||s===void 0||s.call(g)),Z(i)};pt(()=>{var i;E||(i=R.current)===null||i===void 0||i.focus()},[E]);const G=i=>{i==null||i.preventDefault(),U(!0)},C=i=>{var s;(s=g.onChange)===null||s===void 0||s.call(g,i),U(!1)},I=()=>{var i;(i=g.onCancel)===null||i===void 0||i.call(g),U(!1)},[ae,J]=Ce(L),[re,ye]=o.useState(!1),je=o.useRef(null),ze={};J.format&&(ze.format=J.format);const ke=()=>{je.current&&clearTimeout(je.current)},Nt=i=>{var s;i==null||i.preventDefault(),i==null||i.stopPropagation(),V()(J.text||String(c)||"",ze),ye(!0),ke(),je.current=setTimeout(()=>{ye(!1)},3e3),(s=J.onCopy)===null||s===void 0||s.call(J,i)};o.useEffect(()=>ke,[]);const[He,Dt]=o.useState(!1),[Ae,$t]=o.useState(!1),[Mt,Bt]=o.useState(!1),[We,Zt]=o.useState(!1),[Ke,zt]=o.useState(!1),[kt,Ht]=o.useState(!0),[Q,x]=Ce(w,{expandable:!1}),z=Q&&!Mt,{rows:le=1}=x,ve=o.useMemo(()=>!z||x.suffix!==void 0||x.onEllipsis||x.expandable||K||ae,[z,x,K,ae]);(0,ne.Z)(()=>{Q&&!ve&&(Dt((0,Ie.G)("webkitLineClamp")),$t((0,Ie.G)("textOverflow")))},[ve,Q]);const A=o.useMemo(()=>ve?!1:le===1?Ae:He,[ve,Ae,He]),Ue=z&&(A?Ke:We),At=z&&le===1&&A,be=z&&le>1&&A,Wt=i=>{var s;Bt(!0),(s=x.onExpand)===null||s===void 0||s.call(x,i)},[Fe,Kt]=o.useState(0),[Ut,Ft]=o.useState(0),Vt=(i,s)=>{let{offsetWidth:j}=i;var $;Kt(j),Ft(parseInt(($=window.getComputedStyle)===null||$===void 0?void 0:$.call(window,s).fontSize,10)||0)},Xt=i=>{var s;Zt(i),We!==i&&((s=x.onEllipsis)===null||s===void 0||s.call(x,i))};o.useEffect(()=>{const i=S.current;if(Q&&A&&i){const s=be?i.offsetHeight<i.scrollHeight:i.offsetWidth<i.scrollWidth;Ke!==s&&zt(s)}},[Q,A,c,be,kt,Fe]),o.useEffect(()=>{const i=S.current;if(typeof IntersectionObserver=="undefined"||!i||!A||!z)return;const s=new IntersectionObserver(()=>{Ht(!!i.offsetParent)});return s.observe(i),()=>{s.disconnect()}},[A,z]);let Y={};x.tooltip===!0?Y={title:(r=g.text)!==null&&r!==void 0?r:c}:o.isValidElement(x.tooltip)?Y={title:x.tooltip}:typeof x.tooltip=="object"?Y=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:c},x.tooltip):Y={title:x.tooltip};const he=o.useMemo(()=>{const i=s=>["string","number"].includes(typeof s);if(!(!Q||A)){if(i(g.text))return g.text;if(i(c))return c;if(i(h))return h;if(i(Y.title))return Y.title}},[Q,A,h,Y.title,Ue]);if(E)return o.createElement(ft,{value:(l=g.text)!==null&&l!==void 0?l:typeof c=="string"?c:"",onSave:C,onCancel:I,onEnd:g.onEnd,prefixCls:T,className:b,style:O,direction:H,component:m,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Gt=()=>{const{expandable:i,symbol:s}=x;if(!i)return null;let j;return s?j=s:j=d==null?void 0:d.expand,o.createElement("a",{key:"expand",className:`${T}-expand`,onClick:Wt,"aria-label":d==null?void 0:d.expand},j)},Jt=()=>{if(!K)return;const{icon:i,tooltip:s}=g,j=(0,te.Z)(s)[0]||(d==null?void 0:d.edit),$=typeof j=="string"?j:"";return D.includes("icon")?o.createElement(Se.Z,{key:"edit",title:s===!1?"":j},o.createElement(Le,{ref:R,className:`${T}-edit`,onClick:G,"aria-label":$},i||o.createElement(W,{role:"button"}))):null},Qt=()=>{if(!ae)return;const{tooltips:i,icon:s}=J,j=Ze(i),$=Ze(s),Ee=re?ge(j[1],d==null?void 0:d.copied):ge(j[0],d==null?void 0:d.copy),_t=re?d==null?void 0:d.copied:d==null?void 0:d.copy,en=typeof Ee=="string"?Ee:_t;return o.createElement(Se.Z,{key:"copy",title:Ee},o.createElement(Le,{className:q()(`${T}-copy`,re&&`${T}-copy-success`),onClick:Nt,"aria-label":en},re?ge($[1],o.createElement(F.Z,null),!0):ge($[0],o.createElement(ie.Z,null),!0)))},Yt=i=>[i&&Gt(),Jt(),Qt()],qt=i=>[i&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},xt),x.suffix,Yt(i)];return o.createElement(y.Z,{onResize:Vt,disabled:!z},i=>o.createElement(bt,{tooltipProps:Y,enabledEllipsis:z,isEllipsis:Ue},o.createElement($e,Object.assign({className:q()({[`${T}-${u}`]:u,[`${T}-disabled`]:p,[`${T}-ellipsis`]:Q,[`${T}-single-line`]:z&&le===1,[`${T}-ellipsis-single-line`]:At,[`${T}-ellipsis-multiple-line`]:be},b),prefixCls:f,style:Object.assign(Object.assign({},O),{WebkitLineClamp:be?le:void 0}),component:m,ref:(0,Re.sQ)(i,S,n),direction:H,onClick:D.includes("text")?G:void 0,"aria-label":he==null?void 0:he.toString(),title:h},_),o.createElement(vt,{enabledMeasure:z&&!A,text:c,rows:le,width:Fe,fontSize:Ut,onEllipsis:Xt},(s,j)=>{let $=s;return s.length&&j&&he&&($=o.createElement("span",{key:"show-content","aria-hidden":!0},$)),Et(e,o.createElement(o.Fragment,null,$,qt(j)))}))))}),St=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},Ct=o.forwardRef((e,n)=>{var{ellipsis:r,rel:t}=e,l=St(e,["ellipsis","rel"]);const f=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete f.navigate,o.createElement(me,Object.assign({},f,{ref:n,ellipsis:!!r,component:"a"}))}),Ot=o.forwardRef((e,n)=>o.createElement(me,Object.assign({ref:n},e,{component:"div"}))),wt=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 Tt=(e,n)=>{var{ellipsis:r}=e,t=wt(e,["ellipsis"]);const l=o.useMemo(()=>r&&typeof r=="object"?(0,oe.Z)(r,["expandable","rows"]):r,[r]);return o.createElement(me,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))};var jt=o.forwardRef(Tt),Rt=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 It=[1,2,3,4,5];var Lt=o.forwardRef((e,n)=>{const{level:r=1}=e,t=Rt(e,["level"]);let l;return It.includes(r)?l=`h${r}`:l="h1",o.createElement(me,Object.assign({ref:n},t,{component:l}))});const se=$e;se.Text=jt,se.Link=Ct,se.Title=Lt,se.Paragraph=Ot;var Pt=se},874:function(ce,M,a){"use strict";var o=a(16935),F={"text/plain":"Text","text/html":"Url",default:"Text"},ie="Copy to clipboard: #{key}, Enter";function de(k){var v=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return k.replace(/#{\s*key\s*}/g,v)}function xe(k,v){var W,ue,q,ee,V,y,te=!1;v||(v={}),W=v.debug||!1;try{q=o(),ee=document.createRange(),V=document.getSelection(),y=document.createElement("span"),y.textContent=k,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(B){if(B.stopPropagation(),v.format)if(B.preventDefault(),typeof B.clipboardData=="undefined"){W&&console.warn("unable to use e.clipboardData"),W&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var oe=F[v.format]||F.default;window.clipboardData.setData(oe,k)}else B.clipboardData.clearData(),B.clipboardData.setData(v.format,k);v.onCopy&&(B.preventDefault(),v.onCopy(B.clipboardData))}),document.body.appendChild(y),ee.selectNodeContents(y),V.addRange(ee);var ne=document.execCommand("copy");if(!ne)throw new Error("copy command was unsuccessful");te=!0}catch(B){W&&console.error("unable to copy using execCommand: ",B),W&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(v.format||"text",k),v.onCopy&&v.onCopy(window.clipboardData),te=!0}catch(oe){W&&console.error("unable to copy using clipboardData: ",oe),W&&console.error("falling back to prompt"),ue=de("message"in v?v.message:ie),window.prompt(ue,k)}}finally{V&&(typeof V.removeRange=="function"?V.removeRange(ee):V.removeAllRanges()),y&&document.body.removeChild(y),q()}return te}ce.exports=xe},16935:function(ce){ce.exports=function(){var M=document.getSelection();if(!M.rangeCount)return function(){};for(var a=document.activeElement,o=[],F=0;F<M.rangeCount;F++)o.push(M.getRangeAt(F));switch(a.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":a.blur();break;default:a=null;break}return M.removeAllRanges(),function(){M.type==="Caret"&&M.removeAllRanges(),M.rangeCount||o.forEach(function(ie){M.addRange(ie)}),a&&a.focus()}}}}]);
