👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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.
 
 
 

11 lines
23 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,98826,e=>{"use strict";var t=e.i(353944);e.i(191788);var n=e.i(391398);e.s(["PageLoading",0,({isLoading:e,pastDelay:l,timedOut:r,error:i,retry:a,...o})=>(0,n.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,n.jsx)(t.Spin,{size:"large",...o})})])},100264,e=>{"use strict";var t=e.i(191788),n={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"},l=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(l.default,r({},e,{ref:i,icon:n})));e.s(["default",()=>i],100264)},106555,e=>{"use strict";var t=e.i(379049),n=e.i(56206),l=e.i(191788),r=e.i(814432),i=e.i(889590),a=e.i(391398);e.s(["GridContent",0,e=>{let o=(0,l.useContext)(r.RouteContext),{children:s,contentWidth:c,className:u,style:d}=e,{getPrefixCls:p}=(0,l.useContext)(t.ConfigProvider.ConfigContext),f=e.prefixCls||p("pro"),m=c||o.contentWidth,g=`${f}-grid-content`,{wrapSSR:h,hashId:x}=(0,i.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${g}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),b="Fixed"===m&&"top"===o.layout;return h((0,a.jsx)("div",{className:(0,n.clsx)(g,x,u,{[`${g}-wide`]:b}),style:d,"data-testid":"pro-grid-content",children:(0,a.jsx)("div",{className:(0,n.clsx)(`${f}-grid-content-children`,x),children:s})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},154165,e=>{"use strict";var t=e.i(934854),n=(e,n={})=>!(0,t.isNonNullable)(e)&&n?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>n])},309999,e=>{"use strict";e.i(495059);var t=e.i(191788),n=e.i(56206),l=e.i(851581),r=e.i(578461),i=e.i(510122);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let o=t.forwardRef((e,o)=>{let{className:s,component:c,viewBox:u,spin:d,rotate:p,tabIndex:f,onClick:m,children:g,...h}=e,x=t.useRef(null),b=(0,l.useComposeRef)(x,o);(0,i.warning)(!!(c||g),"Should have `component` prop or `children`."),(0,i.useInsertStyles)(x);let{prefixCls:y="anticon",rootClassName:v}=t.useContext(r.default),E=(0,n.clsx)(v,y,{[`${y}-spin`]:!!d&&!!c},s),$=(0,n.clsx)({[`${y}-spin`]:!!d}),w=p?{msTransform:`rotate(${p}deg)`,transform:`rotate(${p}deg)`}:void 0,S={...i.svgBaseProps,className:$,style:w,viewBox:u};u||delete S.viewBox;let k=f;return void 0===k&&m&&(k=-1),t.createElement("span",a({role:"img"},h,{ref:b,tabIndex:k,onClick:m,className:E}),c?t.createElement(c,S,g):g?((0,i.warning)(!!u||1===t.Children.count(g)&&t.isValidElement(g)&&"use"===t.Children.only(g).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),t.createElement("svg",a({},S,{viewBox:u}),g)):null)});e.s(["default",()=>o])},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},473657,e=>{"use strict";var t=e.i(191788),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},l=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(l.default,r({},e,{ref:i,icon:n})));e.s(["ArrowUpOutlined",()=>i],473657)},560370,e=>{"use strict";var t=e.i(191788),n=e.i(633829),l=e.i(100264),r=e.i(907251),i=e.i(151304),a=e.i(351212),o=e.i(851581),s=e.i(56206),c=e.i(934854),u=e.i(664557),d=e.i(993175),p=e.i(583082),f=e.i(188304),m={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"},g=e.i(117716);function h(){return(h=Object.assign.bind()).apply(this,arguments)}let x=t.forwardRef((e,n)=>t.createElement(g.default,h({},e,{ref:n,icon:m})));var b=e.i(536343),y=e.i(663032),v=e.i(97679),E=e.i(307441),$=e.i(352050),w=e.i(671557),S=(0,$.genStyleHooks)("Typography",e=>{let t,{componentCls:n,titleMarginTop:l}=e;return{[n]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary, &${n}-link${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success, &${n}-link${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning, &${n}-link${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger, &${n}-link${n}-danger`]:{color:e.colorErrorText,[`&${n}-link:active, &${n}-link:focus`]:{color:e.colorErrorTextActive},[`&${n}-link:hover`]:{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...(t={},[1,2,3,4,5].forEach(n=>{t[`
h${n}&,
div&-h${n},
div&-h${n} > textarea,
h${n}
`]=((e,t,n,l)=>{let{titleMarginBottom:r,fontWeightStrong:i}=l;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t),[`& + h1${n}, & + h2${n}, & + h3${n}, & + h4${n}, & + h5${n}`]:{marginTop:l},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:l}},...{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:w.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}},...(e=>{let{componentCls:t}=e,n=`${t}-link`;return{[`&${n}`]:{...(0,E.operationUnit)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}})(e),[`${n}-actions`]:{display:"inline"},[`
${n}-expand,
${n}-collapse,
${n}-edit,
${n}-copy
`]:{...(0,E.operationUnit)(e),marginInlineStart:e.marginXXS},...(e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e),...{[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}},...{"a&-ellipsis, span&-ellipsis":{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"}},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),k=e=>{let{prefixCls:n,"aria-label":l,className:r,style:i,direction:a,maxLength:o,autoSize:c=!0,value:u,onSave:d,onCancel:p,onEnd:f,component:m,enterIcon:g=t.createElement(x,null)}=e,h=t.useRef(null),E=t.useRef(!1),$=t.useRef(null),[w,k]=t.useState(u);t.useEffect(()=>{k(u)},[u]),t.useEffect(()=>{if(h.current?.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let C=()=>{d(w.trim())},[R,T]=S(n),B=(0,s.clsx)(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${m}`]:!!m},r,R,T);return t.createElement("div",{className:B,style:i},t.createElement(v.default,{ref:h,maxLength:o,value:w,onChange:({target:e})=>{k(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{E.current||($.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:l,shiftKey:r})=>{$.current!==e||E.current||t||n||l||r||(e===b.default.ENTER?(C(),f?.()):e===b.default.ESC&&p())},onCompositionStart:()=>{E.current=!0},onCompositionEnd:()=>{E.current=!1},onBlur:()=>{C()},"aria-label":l,rows:1,autoSize:c}),null!==g?(0,y.cloneElement)(g,{className:`${n}-edit-content-confirm`}):null)};let C=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if("string"!=typeof e)return!1;let n=t?.format==="text/html";return!!(await C(e,n)||((e,t)=>{let n=!1,l=l=>{l.stopPropagation(),l.preventDefault(),l.clipboardData?.clearData(),l.clipboardData?.setData("text/plain",e),t&&l.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",l,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",l,{capture:!0})}})(e,n))}var T=e.i(154165);function B(e,n){return t.useMemo(()=>{let t=!!e;return[t,{...n,...t&&"object"==typeof e?e:null}]},[e])}let M=t.forwardRef((e,n)=>{let{prefixCls:l,component:r="article",className:i,rootClassName:a,children:o,direction:c,style:u,...p}=e,{getPrefixCls:f,direction:m,className:g,style:h}=(0,d.useComponentConfig)("typography"),x=f("typography",l),[b,y]=S(x),v=(0,s.clsx)(x,g,{[`${x}-rtl`]:"rtl"===(c??m)},i,a,b,y),E={...h,...u};return t.createElement(r,{className:v,style:E,ref:n,...p},o)});var L=e.i(146025),N=e.i(636207),z=e.i(677057);let I=e=>!1===e?[!1,!1]:(0,T.default)(e);function O(e,t,n){return!0===e||void 0===e?t:e||n&&t}let H=e=>["string","number"].includes(typeof e);var W=e=>{let{prefixCls:n,copied:l,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:c,onCopy:u,loading:d}=e,p=I(a),m=I(o),{copied:g,copy:h}=r??{},x=l?g:h,b=O(p[+!!l],x),y="string"==typeof b?b:x;return t.createElement(f.default,{title:b},t.createElement("button",{type:"button",className:(0,s.clsx)(`${n}-copy`,{[`${n}-copy-success`]:l,[`${n}-copy-icon-only`]:i}),onClick:u,"aria-label":y,tabIndex:c},l?O(m[1],t.createElement(L.default,null),!0):O(m[0],d?t.createElement(z.default,null):t.createElement(N.default,null),!0)))};let j=t.forwardRef(({style:e,children:n},l)=>{let r=t.useRef(null);return t.useImperativeHandle(l,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},n)});function D(e,t){let n=0,l=[];for(let r=0;r<e.length;r+=1){if(n===t)return l;let i=e[r],a=n+(H(i)?String(i).length:1);if(a>t){let e=t-n;return l.push(String(i).slice(0,e)),l}l.push(i),n=a}return e}let P={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function F(e){let{enableMeasure:l,width:r,text:o,children:s,rows:c,expanded:u,miscDeps:d,onEllipsis:p}=e,f=t.useMemo(()=>(0,i.toArray)(o),[o]),m=t.useMemo(()=>f.reduce((e,t)=>e+(H(t)?String(t).length:1),0),[o]),g=t.useMemo(()=>s(f,!1),[o]),[h,x]=t.useState(null),b=t.useRef(null),y=t.useRef(null),v=t.useRef(null),E=t.useRef(null),$=t.useRef(null),[w,S]=t.useState(!1),[k,C]=t.useState(0),[R,T]=t.useState(0),[B,M]=t.useState(null);(0,a.default)(()=>{l&&r&&m?C(1):C(0)},[r,o,c,l,f]),(0,a.default)(()=>{if(1===k)C(2),M(y.current&&getComputedStyle(y.current).whiteSpace);else if(2===k){let e=!!v.current?.isExceed();C(e?3:4),x(e?[0,m]:null),S(e),T(Math.max(v.current?.getHeight()||0,(1===c?0:E.current?.getHeight()||0)+($.current?.getHeight()||0))+1),p(e)}},[k]);let L=h?Math.ceil((h[0]+h[1])/2):0;(0,a.default)(()=>{let[e,t]=h||[0,0];if(e!==t){let n=(b.current?.getHeight()||0)>R,l=L;t-e==1&&(l=n?e:t),x(n?[e,l]:[l,t])}},[h,L]);let N=t.useMemo(()=>{if(!l)return s(f,!1);if(3!==k||!h||h[0]!==h[1]){let e=s(f,!1);return[4,0].includes(k)?e:t.createElement("span",{style:{...P,WebkitLineClamp:c}},e)}return s(u?f:D(f,h[0]),w)},[u,k,h,f].concat((0,n.default)(d))),z={width:r,margin:0,padding:0,whiteSpace:"nowrap"===B?"normal":"inherit"};return t.createElement(t.Fragment,null,N,2===k&&t.createElement(t.Fragment,null,t.createElement(j,{style:{...z,...P,WebkitLineClamp:c},ref:v},g),t.createElement(j,{style:{...z,...P,WebkitLineClamp:c-1},ref:E},g),t.createElement(j,{style:{...z,...P,WebkitLineClamp:1},ref:$},s([],!0))),3===k&&h&&h[0]!==h[1]&&t.createElement(j,{style:{...z,top:400},ref:b},s(D(f,L),!0)),1===k&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}var A=({enableEllipsis:e,isEllipsis:n,open:l,children:r,tooltipProps:i})=>i?.title&&e?t.createElement(f.default,{open:l&&n,...i},r):r;let G=["delete","mark","code","underline","strong","keyboard","italic"],_=t.forwardRef((e,m)=>{let g,h,x,{prefixCls:b,className:y,style:v,type:E,disabled:$,children:w,ellipsis:S,editable:C,copyable:L,component:N,title:z,onMouseEnter:I,onMouseLeave:O,...j}=e,{getPrefixCls:D,direction:P}=t.useContext(d.ConfigContext),[_]=(0,p.default)("Text"),q=t.useRef(null),U=t.useRef(null),V=D("typography",b),X=(0,i.omit)(j,G),[K,J]=B(C),[Q,Y]=(0,i.useControlledState)(!1,J.editing),{triggerType:Z=["icon"]}=J,ee=e=>{e&&J.onStart?.(),Y(e)},et=(g=(0,t.useRef)(void 0),(0,t.useEffect)(()=>{g.current=Q}),g.current);(0,a.default)(()=>{!Q&&et&&U.current?.focus()},[Q]);let en=e=>{e?.preventDefault(),ee(!0)},[el,er]=B(L),{copied:ei,copyLoading:ea,onClick:eo}=(({copyConfig:e,children:n})=>{let[l,r]=t.useState(!1),[a,o]=t.useState(!1),s=t.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};return e.format&&(u.format=e.format),t.useEffect(()=>c,[]),{copied:l,copyLoading:a,onClick:(0,i.useEvent)(async t=>{t?.preventDefault(),t?.stopPropagation(),o(!0);try{let l="function"==typeof e.text?await e.text():e.text;await R(l||(0,T.default)(n,{skipEmpty:!0}).join("")||"",u),o(!1),r(!0),c(),s.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(t)}catch(e){throw o(!1),e}})}})({copyConfig:er,children:w}),[es,ec]=t.useState(!1),[eu,ed]=t.useState(!1),[ep,ef]=t.useState(!1),[em,eg]=t.useState(!1),[eh,ex]=t.useState(!0),[eb,ey]=B(S,{expandable:!1,symbol:e=>e?_?.collapse:_?.expand}),[ev,eE]=(0,i.useControlledState)(ey.defaultExpanded||!1,ey.expanded),e$=eb&&(!ev||"collapsible"===ey.expandable),{rows:ew=1}=ey,eS=t.useMemo(()=>e$&&(void 0!==ey.suffix||ey.onEllipsis||ey.expandable||K||el),[e$,ey,K,el]);(0,a.default)(()=>{eb&&!eS&&(ec((0,u.isStyleSupport)("webkitLineClamp")),ed((0,u.isStyleSupport)("textOverflow")))},[eS,eb]);let[ek,eC]=t.useState(e$),eR=t.useMemo(()=>!eS&&(1===ew?eu:es),[eS,eu,es]);(0,a.default)(()=>{eC(eR&&e$)},[eR,e$]);let eT=(h=ey.tooltip,x=J.text,(0,t.useMemo)(()=>!0===h?{title:x??w}:(0,t.isValidElement)(h)?{title:h}:(0,c.isPlainObject)(h)?{title:x??w,...h}:{title:h},[h,x,w])),eB=ek&&!!eT.title,eM=e$&&(ek?eB&&em:ep),eL=e$&&1===ew&&ek,eN=e$&&ew>1&&ek,[ez,eI]=t.useState(0),[eO,eH]=t.useState(!1),[eW,ej]=t.useState(!1),eD=e=>{ef(e),ep!==e&&ey.onEllipsis?.(e)};t.useEffect(()=>{let e=q.current;if(eb&&eB&&e){let t,n,l,r=(t=document.createElement("em"),e.appendChild(t),n=e.getBoundingClientRect(),l=t.getBoundingClientRect(),e.removeChild(t),n.left>l.left||l.right>n.right||n.top>l.top||l.bottom>n.bottom);em!==r&&eg(r)}},[eb,eB,w,eN,eh,ez]),t.useEffect(()=>{let e=q.current;if("u"<typeof IntersectionObserver||!e||!eB||!e$)return;let t=new IntersectionObserver(()=>{ex(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eB,e$]);let eP=t.useMemo(()=>{if(eb&&!ek)return[J.text,w,z,eT.title].find(H)},[eb,ek,z,eT.title,eM]);return Q?t.createElement(k,{value:J.text??("string"==typeof w?w:""),onSave:e=>{J.onChange?.(e),ee(!1)},onCancel:()=>{J.onCancel?.(),ee(!1)},onEnd:J.onEnd,prefixCls:V,className:y,style:v,direction:P,component:N,maxLength:J.maxLength,autoSize:J.autoSize,enterIcon:J.enterIcon}):t.createElement(r.default,{onResize:({offsetWidth:e})=>{eI(e)},disabled:!e$},r=>t.createElement(A,{tooltipProps:eT,enableEllipsis:e$,isEllipsis:eM,open:eW&&!eO},t.createElement(M,{onMouseEnter:e=>{ej(!0),I?.(e)},onMouseLeave:e=>{ej(!1),O?.(e)},className:(0,s.clsx)({[`${V}-${E}`]:E,[`${V}-disabled`]:$,[`${V}-ellipsis`]:eb,[`${V}-ellipsis-single-line`]:eL,[`${V}-ellipsis-multiple-line`]:eN,[`${V}-link`]:"a"===N},y),prefixCls:b,style:{...v,WebkitLineClamp:eN?ew:void 0},component:N,ref:(0,o.composeRef)(r,q,m),direction:P,onClick:Z.includes("text")?en:void 0,"aria-label":eP?.toString(),title:z,...X},t.createElement(F,{enableMeasure:e$&&!ek,text:w,rows:ew,width:ez,onEllipsis:eD,expanded:ev,miscDeps:[ei,ev,ea,K,el,_].concat((0,n.default)(G.map(t=>e[t])))},(n,r)=>{var a;let o,s,u;return function({mark:e,code:n,underline:l,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function u(e,n){n&&(c=t.createElement(e,{},c))}return u("strong",i),u("u",l),u("del",r),u("code",n),u("mark",e),u("kbd",a),u("i",o),c}(e,t.createElement(t.Fragment,null,n.length>0&&r&&!ev&&eP?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,[(a=r)&&!ev&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ey.suffix,(o=a&&(()=>{let{expandable:e,symbol:n}=ey;return e?t.createElement("button",{type:"button",key:"expand",className:`${V}-${ev?"collapse":"expand"}`,onClick:e=>{var t;eE((t={expanded:!ev}).expanded),ey.onExpand?.(e,t)},"aria-label":ev?_.collapse:_?.expand},"function"==typeof n?n(ev):n):null})(),s=(()=>{if(!K)return;let{icon:e,tooltip:n,tabIndex:r}=J,a=(0,i.toArray)(n)[0]||_?.edit,o="string"==typeof a?a:"";return Z.includes("icon")?t.createElement(f.default,{key:"edit",title:!1===n?"":a},t.createElement("button",{type:"button",ref:U,className:`${V}-edit`,onClick:en,"aria-label":o,tabIndex:r},e||t.createElement(l.default,{role:"button"}))):null})(),u=el?t.createElement(W,{key:"copy",...er,prefixCls:V,copied:ei,locale:_,onCopy:eo,loading:ea,iconOnly:!(0,c.isNonNullable)(w)}):null,o||s||u?t.createElement("span",{key:"operations",className:`${V}-actions`,onMouseEnter:()=>eH(!0),onMouseLeave:()=>eH(!1)},o,s,u):null)]))}))))}),q=t.forwardRef((e,n)=>{let{ellipsis:l,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:void 0===r&&"_blank"===o.target?"noopener noreferrer":r};return t.createElement(_,{...s,ref:n,ellipsis:!!l,component:"a"},i)}),U=t.forwardRef((e,n)=>{let{children:l,...r}=e;return t.createElement(_,{ref:n,...r,component:"div"},l)}),V=t.forwardRef((e,n)=>{let{ellipsis:l,children:r,...a}=e,o=t.useMemo(()=>(0,c.isPlainObject)(l)?(0,i.omit)(l,["expandable","rows"]):l,[l]);return t.createElement(_,{ref:n,...a,ellipsis:o,component:"span"},r)}),X=[1,2,3,4,5],K=t.forwardRef((e,n)=>{let{level:l=1,children:r,...i}=e,a=X.includes(l)?`h${l}`:"h1";return t.createElement(_,{ref:n,...i,component:a},r)});M.Text=V,M.Link=q,M.Title=K,M.Paragraph=U,e.s(["Typography",()=>M],560370)},686111,e=>{"use strict";var t=e.i(571246);e.s(["RightOutlined",()=>t.default])},700907,e=>{"use strict";var t=e.i(191788),n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},l=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(l.default,r({},e,{ref:i,icon:n})));e.s(["default",()=>i],700907)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},825310,e=>{"use strict";var t=e.i(191788),n=e.i(708876),l=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(l.default,r({},e,{ref:i,icon:n.default})));e.s(["UserOutlined",()=>i],825310)},900195,e=>{"use strict";var t=e.i(191788),n=e.i(151304),l=e.i(56206),r=e.i(239988),i=e.i(497630),a=e.i(934854),o=e.i(993175),s=e.i(352050),c=e.i(108314);let u=["wrap","nowrap","wrap-reverse"],d=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var f=(0,s.genStyleHooks)("Flex",e=>{let{paddingXS:t,padding:n,paddingLG:l}=e,r=(0,c.mergeToken)(e,{flexGapSM:t,flexGap:n,flexGapLG:l});return[(e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}})(r),(e=>{let{componentCls:t}=e,n={};return u.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n})(r),(e=>{let{componentCls:t}=e,n={};return p.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n})(r),(e=>{let{componentCls:t}=e,n={};return d.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n})(r)]},()=>({}),{resetStyle:!1});let m=t.default.forwardRef((e,s)=>{var c;let m,g,h,{prefixCls:x,rootClassName:b,className:y,style:v,flex:E,gap:$,vertical:w,orientation:S,component:k="div",children:C,...R}=e,{flex:T,direction:B,getPrefixCls:M}=t.default.useContext(o.ConfigContext),L=M("flex",x),[N,z]=f(L),[,I]=(0,i.useOrientation)(S,w??T?.vertical),O=(0,l.clsx)(y,b,T?.className,L,N,z,(c={...e,vertical:I},(0,l.clsx)({...(m=!0===c.wrap?"wrap":c.wrap,{[`${L}-wrap-${m}`]:m&&u.includes(m)}),...(g={},p.forEach(e=>{g[`${L}-align-${e}`]=c.align===e}),g[`${L}-align-stretch`]=!c.align&&!!c.vertical,g),...(h={},d.forEach(e=>{h[`${L}-justify-${e}`]=c.justify===e}),h)})),{[`${L}-rtl`]:"rtl"===B,[`${L}-gap-${$}`]:(0,r.isPresetSize)($),[`${L}-vertical`]:I}),H={...T?.style,...v};return(0,a.isNonNullable)(E)&&(H.flex=E),(0,a.isNonNullable)($)&&!(0,r.isPresetSize)($)&&(H.gap=$),t.default.createElement(k,{ref:s,className:O,style:H,...(0,n.omit)(R,["justify","wrap","align"])},C)});e.s(["Flex",()=>m],900195)},977892,e=>{"use strict";var t=e.i(677057);e.s(["LoadingOutlined",()=>t.default])},995746,e=>{"use strict";var t=e.i(436612);e.s(["EllipsisOutlined",()=>t.default])}]);