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
35 KiB
1 line
35 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[12255,72032,13715],{80117:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var o=r(33614),n=r(59301),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},a=r(1393),l=function(e,t){return n.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=n.forwardRef(l)},3148:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var o=r(33614),n=r(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=r(1393),l=function(e,t){return n.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=n.forwardRef(l)},23494:function(){},18889:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var o=r(92310),n=r.n(o),i=r(55405),a=r(59301),l=r(36355),s=r(19716),c=r(66999),d=r(99313),u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var p=e=>{var{prefixCls:t,className:r,hoverable:o=!0}=e,i=u(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=a.useContext(l.E_),c=s("card",t),d=n()(`${c}-grid`,r,{[`${c}-grid-hoverable`]:o});return a.createElement("div",Object.assign({},i,{className:d}))},f=r(17313),h=r(83116),g=r(37613);const b=e=>{const{antCls:t,componentCls:r,headerHeight:o,cardPaddingBase:n,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,f.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},f.vS),{[`\n > ${r}-typography,\n > ${r}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},m=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:o,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${n}px 0 0 0 ${r},\n 0 ${n}px 0 0 ${r},\n ${n}px ${n}px 0 0 ${r},\n ${n}px 0 0 0 ${r} inset,\n 0 ${n}px 0 0 ${r} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},y=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:o,cardActionsIconSize:n,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,f.dF)()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:n*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},v=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,f.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},f.vS),"&-description":{color:e.colorTextDescription}}),x=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${r}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${r}px`}}},C=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},$=e=>{const{antCls:t,componentCls:r,cardShadow:o,cardHeadPadding:n,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:s}=e;return{[r]:Object.assign(Object.assign({},(0,f.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${r}-bordered)`]:{boxShadow:a},[`${r}-head`]:b(e),[`${r}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${r}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,f.dF)()),[`${r}-grid`]:m(e),[`${r}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${r}-actions`]:y(e),[`${r}-meta`]:v(e)}),[`${r}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${r}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${r}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${r}-contain-grid`]:{[`${r}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${r}-loading) ${r}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${r}-contain-tabs`]:{[`> ${r}-head`]:{[`${r}-head-title, ${r}-extra`]:{paddingTop:n}}},[`${r}-type-inner`]:x(e),[`${r}-loading`]:C(e),[`${r}-rtl`]:{direction:"rtl"}}},S=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:o,headerFontSizeSM:n}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${r}px`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}};var w=(0,h.Z)("Card",(e=>{const t=(0,g.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[$(t),S(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),O=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const P=a.forwardRef(((e,t)=>{const{prefixCls:r,className:o,rootClassName:u,style:f,extra:h,headStyle:g={},bodyStyle:b={},title:m,loading:y,bordered:v=!0,size:x,type:C,cover:$,actions:S,tabList:P,children:E,activeTabKey:j,defaultActiveTabKey:k,tabBarExtraContent:L,hoverable:z,tabProps:T={}}=e,B=O(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:M,direction:A,card:N}=a.useContext(l.E_),I=a.useMemo((()=>{let e=!1;return a.Children.forEach(E,(t=>{t&&t.type&&t.type===p&&(e=!0)})),e}),[E]),R=M("card",r),[H,D]=w(R),W=a.createElement(c.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},E),F=void 0!==j,_=Object.assign(Object.assign({},T),{[F?"activeKey":"defaultActiveKey"]:F?j:k,tabBarExtraContent:L});let Z;const G=(0,s.Z)(x),U=G&&"default"!==G?G:"large",X=P?a.createElement(d.Z,Object.assign({size:U},_,{className:`${R}-head-tabs`,onChange:t=>{var r;null===(r=e.onTabChange)||void 0===r||r.call(e,t)},items:P.map((e=>{var{tab:t}=e,r=O(e,["tab"]);return Object.assign({label:t},r)}))})):null;(m||h||X)&&(Z=a.createElement("div",{className:`${R}-head`,style:g},a.createElement("div",{className:`${R}-head-wrapper`},m&&a.createElement("div",{className:`${R}-head-title`},m),h&&a.createElement("div",{className:`${R}-extra`},h)),X));const K=$?a.createElement("div",{className:`${R}-cover`},$):null,Y=a.createElement("div",{className:`${R}-body`,style:b},y?W:E),V=S&&S.length?a.createElement("ul",{className:`${R}-actions`},function(e){return e.map(((t,r)=>a.createElement("li",{style:{width:100/e.length+"%"},key:`action-${r}`},a.createElement("span",null,t))))}(S)):null,q=(0,i.Z)(B,["onTabChange"]),Q=n()(R,null==N?void 0:N.className,{[`${R}-loading`]:y,[`${R}-bordered`]:v,[`${R}-hoverable`]:z,[`${R}-contain-grid`]:I,[`${R}-contain-tabs`]:P&&P.length,[`${R}-${G}`]:G,[`${R}-type-${C}`]:!!C,[`${R}-rtl`]:"rtl"===A},o,u,D),J=Object.assign(Object.assign({},null==N?void 0:N.style),f);return H(a.createElement("div",Object.assign({ref:t},q,{className:Q,style:J}),Z,K,Y,V))}));var E=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var j=e=>{const{prefixCls:t,className:r,avatar:o,title:i,description:s}=e,c=E(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:d}=a.useContext(l.E_),u=d("card",t),p=n()(`${u}-meta`,r),f=o?a.createElement("div",{className:`${u}-meta-avatar`},o):null,h=i?a.createElement("div",{className:`${u}-meta-title`},i):null,g=s?a.createElement("div",{className:`${u}-meta-description`},s):null,b=h||g?a.createElement("div",{className:`${u}-meta-detail`},h,g):null;return a.createElement("div",Object.assign({},c,{className:p}),f,b)};const k=P;k.Grid=p,k.Meta=j;var L=k},28103:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var o=r(92310),n=r.n(o),i=r(59301),a=r(36355),l=r(17313),s=r(83116),c=r(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:o,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${n}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${n}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${n}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${n}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var f=e=>{const{getPrefixCls:t,direction:r,divider:o}=i.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:g,dashed:b,plain:m,style:y}=e,v=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[C,$]=u(x),S=c.length>0?`-${c}`:c,w=!!g,O="left"===c&&null!=d,P="right"===c&&null!=d,E=n()(x,null==o?void 0:o.className,$,`${x}-${s}`,{[`${x}-with-text`]:w,[`${x}-with-text${S}`]:w,[`${x}-dashed`]:!!b,[`${x}-plain`]:!!m,[`${x}-rtl`]:"rtl"===r,[`${x}-no-default-orientation-margin-left`]:O,[`${x}-no-default-orientation-margin-right`]:P},f,h),j=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),k=Object.assign(Object.assign({},O&&{marginLeft:j}),P&&{marginRight:j});return C(i.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==o?void 0:o.style),y)},v,{role:"separator"}),g&&"vertical"!==s&&i.createElement("span",{className:`${x}-inner-text`,style:k},g)))}},44e3:function(e,t,r){"use strict";var o=r(84966),n=r(86737);const i=o.ZP;i.Header=o.h4,i.Footer=o.$_,i.Content=o.VY,i.Sider=n.Z,t.Z=i},12563:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var o=r(59301),n=r(53043),i=r(92310),a=r.n(i),l=r(36785),s=r(47729),c=r(14088),d=r(36355),u=r(17313),p=r(37613),f=r(83116);const h=e=>{const{lineWidth:t,fontSizeIcon:r}=e,o=e.fontSizeSM,n=e.lineHeightSM*o+"px";return(0,p.TS)(e,{tagFontSize:o,tagLineHeight:n,tagIconSize:r-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},g=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:o,componentCls:n}=e,i=o-r,a=t-r;return{[n]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(h(e))),g),m=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var y=e=>{const{prefixCls:t,style:r,className:n,checked:i,onChange:l,onClick:s}=e,c=m(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=o.useContext(d.E_),f=u("tag",t),[h,g]=b(f),y=a()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},null==p?void 0:p.className,n,g);return h(o.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},r),null==p?void 0:p.style),className:y,onClick:e=>{null==l||l(!i),null==s||s(e)}})))},v=r(45157);var x=(0,f.b)(["Tag","preset"],(e=>(e=>(0,v.Z)(e,((t,r)=>{let{textColor:o,lightBorderColor:n,lightColor:i,darkColor:a}=r;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(h(e))),g);const C=(e,t,r)=>{const o="string"!=typeof(n=r)?n:n.charAt(0).toUpperCase()+n.slice(1);var n;return{[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var $=(0,f.b)(["Tag","status"],(e=>{const t=h(e);return[C(t,"success","Success"),C(t,"processing","Info"),C(t,"error","Error"),C(t,"warning","Warning")]}),g),S=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const w=(e,t)=>{const{prefixCls:r,className:i,rootClassName:u,style:p,children:f,icon:h,color:g,onClose:m,closeIcon:y,closable:v,bordered:C=!0}=e,w=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:P,tag:E}=o.useContext(d.E_),[j,k]=o.useState(!0);o.useEffect((()=>{"visible"in w&&k(w.visible)}),[w.visible]);const L=(0,l.o2)(g),z=(0,l.yT)(g),T=L||z,B=Object.assign(Object.assign({backgroundColor:g&&!T?g:void 0},null==E?void 0:E.style),p),M=O("tag",r),[A,N]=b(M),I=a()(M,null==E?void 0:E.className,{[`${M}-${g}`]:T,[`${M}-has-color`]:g&&!T,[`${M}-hidden`]:!j,[`${M}-rtl`]:"rtl"===P,[`${M}-borderless`]:!C},i,u,N),R=e=>{e.stopPropagation(),null==m||m(e),e.defaultPrevented||k(!1)},[,H]=(0,s.Z)(v,y,(e=>null===e?o.createElement(n.Z,{className:`${M}-close-icon`,onClick:R}):o.createElement("span",{className:`${M}-close-icon`,onClick:R},e)),null,!1),D="function"==typeof w.onClick||f&&"a"===f.type,W=h||null,F=W?o.createElement(o.Fragment,null,W,f&&o.createElement("span",null,f)):f,_=o.createElement("span",Object.assign({},w,{ref:t,className:I,style:B}),F,H,L&&o.createElement(x,{key:"preset",prefixCls:M}),z&&o.createElement($,{key:"status",prefixCls:M}));return A(D?o.createElement(c.Z,{component:"Tag"},_):_)},O=o.forwardRef(w);O.CheckableTag=y;var P=O},25769:function(e,t,r){"use strict";var o=r(98040),n={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,l,s,c,d=!1;t||(t={}),r=t.debug||!1;try{if(a=o(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=n[t.format]||n.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(o){r&&console.error("unable to copy using execCommand: ",o),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(o){r&&console.error("unable to copy using clipboardData: ",o),r&&console.error("falling back to prompt"),i=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(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}},24334:function(e,t,r){var o,n;n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:this,e.exports=function(r){"use strict";var n,i=(r=r||{}).Base64,a="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},r=0,o=e.length;r<o;r++)t[e.charAt(r)]=r;return t}(l),c=String.fromCharCode,d=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(u,d)},f=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[l.charAt(r>>>18),l.charAt(r>>>12&63),t>=2?"=":l.charAt(r>>>6&63),t>=1?"=":l.charAt(63&r)].join("")},h=r.btoa&&"function"==typeof r.btoa?function(e){return r.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},g=function(e){return h(p(String(e)))},b=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},m=function(e,t){return t?b(g(e)):g(e)},y=function(e){return m(e,!0)};r.Uint8Array&&(n=function(e,t){for(var r="",o=0,n=e.length;o<n;o+=3){var i=e[o],a=e[o+1],s=e[o+2],c=i<<16|a<<8|s;r+=l.charAt(c>>>18)+l.charAt(c>>>12&63)+(void 0!==a?l.charAt(c>>>6&63):"=")+(void 0!==s?l.charAt(63&c):"=")}return t?b(r):r});var v,x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},$=function(e){return e.replace(x,C)},S=function(e){var t=e.length,r=t%4,o=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),n=[c(o>>>16),c(o>>>8&255),c(255&o)];return n.length-=[0,0,2,1][r],n.join("")},w=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},O=function(e){return w(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(e){return $(w(e))},E=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},j=function(e){return P(E(e))};r.Uint8Array&&(v=function(e){return Uint8Array.from(O(E(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=r.Base64;return r.Base64=i,e};if(r.Base64={VERSION:a,atob:O,btoa:h,fromBase64:j,toBase64:m,utob:p,encode:m,encodeURI:y,btou:$,decode:j,noConflict:k,fromUint8Array:n,toUint8Array:v},"function"==typeof Object.defineProperty){var L=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L((function(){return j(this)}))),Object.defineProperty(String.prototype,"toBase64",L((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",L((function(){return m(this,!0)})))}}return r.Meteor&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:void 0===(o=function(){return r.Base64}.apply(t,[]))||(e.exports=o),{Base64:r.Base64}}(n)},83145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=i(r(59301)),n=i(r(25769));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){function t(){var e,r;c(this,t);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return g(f(r=u(this,(e=p(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=r.props,i=t.text,a=t.onCopy,l=t.children,s=t.options,c=o.default.Children.only(l),d=(0,n.default)(i,s);a&&a(i,d),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),r}var r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),r=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=s(e,["text","onCopy","options","children"]),n=o.default.Children.only(t);return o.default.cloneElement(n,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(r,!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{onClick:this.onClick}))}}],i&&d(r.prototype,i),a&&d(r,a),t}(o.default.PureComponent);t.CopyToClipboard=b,g(b,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,r){"use strict";var o=r(83145).CopyToClipboard;o.CopyToClipboard=o,e.exports=o},51581:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),n=r(59301),i=l(n),a=l(r(12708));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,r=this.getParentElement(e),o=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,i=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;o=this.props.isReverse?i:this.calculateOffset(e,i)}else o=this.props.isReverse?r.scrollTop:e.scrollHeight-r.scrollTop-r.clientHeight;o<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),r=t.children,o=t.element,n=t.hasMore,a=(t.initialLoad,t.isReverse),l=t.loader,s=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[r];return n&&(l?a?d.unshift(l):d.push(l):this.defaultLoader&&(a?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),i.default.createElement(o,c,d)}}]),t}(n.Component);s.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},26724:function(e,t,r){e.exports=r(51581)},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],o=0;o<e.rangeCount;o++)r.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||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]); |