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