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.
NewEduCoderBuild/69914.async.js

1 line
27 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[69914,87270],{80117:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33614),o=n(59301),l={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=n(1393),i=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:l}))};var s=o.forwardRef(i)},3148:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33614),o=n(59301),l={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=n(1393),i=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:l}))};var s=o.forwardRef(i)},23494:function(){},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(92310),o=n.n(r),l=n(59301),a=n(36355),i=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-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 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}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:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,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:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var p=e=>{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(a.E_),{prefixCls:i,type:s="horizontal",orientation:c="center",orientationMargin:u,className:p,rootClassName:h,children:g,dashed:m,plain:v,style:b}=e,y=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),C=t("divider",i),[S,w]=d(C),$=c.length>0?`-${c}`:c,x=!!g,O="left"===c&&null!=u,E="right"===c&&null!=u,k=o()(C,null==r?void 0:r.className,w,`${C}-${s}`,{[`${C}-with-text`]:x,[`${C}-with-text${$}`]:x,[`${C}-dashed`]:!!m,[`${C}-plain`]:!!v,[`${C}-rtl`]:"rtl"===n,[`${C}-no-default-orientation-margin-left`]:O,[`${C}-no-default-orientation-margin-right`]:E},p,h),L=l.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),P=Object.assign(Object.assign({},O&&{marginLeft:L}),E&&{marginRight:L});return S(l.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),b)},y,{role:"separator"}),g&&"vertical"!==s&&l.createElement("span",{className:`${C}-inner-text`,style:P},g)))}},44e3:function(e,t,n){"use strict";var r=n(84966),o=n(86737);const l=r.ZP;l.Header=r.h4,l.Footer=r.$_,l.Content=r.VY,l.Sider=o.Z,t.Z=l},17178:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(33614),o=n(59301),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},a=n(1393),i=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:l}))};var s=o.forwardRef(i),c=n(92310),u=n.n(c),d=n(24018),f=n(54099),p=n(63011),h=n(71366),g=n(20287),m=n(47413);function v(e,t){var n=e.disabled,r=e.prefixCls,l=e.character,a=e.characterRender,i=e.index,s=e.count,c=e.value,d=e.allowHalf,f=e.focused,p=e.onHover,h=e.onClick,m=i+1,v=new Set([r]);0===c&&0===i&&f?v.add("".concat(r,"-focused")):d&&c+.5>=m&&c<m?(v.add("".concat(r,"-half")),v.add("".concat(r,"-active")),f&&v.add("".concat(r,"-focused"))):(m<=c?v.add("".concat(r,"-full")):v.add("".concat(r,"-zero")),m===c&&f&&v.add("".concat(r,"-focused")));var b="function"==typeof l?l(e):l,y=o.createElement("li",{className:u()(Array.from(v)),ref:t},o.createElement("div",{onClick:n?null:function(e){h(e,i)},onKeyDown:n?null:function(e){e.keyCode===g.Z.ENTER&&h(e,i)},onMouseMove:n?null:function(e){p(e,i)},role:"radio","aria-checked":c>i?"true":"false","aria-posinset":i+1,"aria-setsize":s,tabIndex:n?-1:0},o.createElement("div",{className:"".concat(r,"-first")},b),o.createElement("div",{className:"".concat(r,"-second")},b)));return a&&(y=a(y,e)),y}var b=o.forwardRef(v);var y=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function C(e,t){var n,l,a=e.prefixCls,i=void 0===a?"rc-rate":a,s=e.className,c=e.defaultValue,v=e.value,C=e.count,S=void 0===C?5:C,w=e.allowHalf,$=void 0!==w&&w,x=e.allowClear,O=void 0===x||x,E=e.character,k=void 0===E?"★":E,L=e.characterRender,P=e.disabled,j=e.direction,z=void 0===j?"ltr":j,M=e.tabIndex,T=void 0===M?0:M,N=e.autoFocus,H=e.onHoverChange,Z=e.onChange,I=e.onFocus,R=e.onBlur,B=e.onKeyDown,W=e.onMouseLeave,D=(0,p.Z)(e,y),F=(l=o.useRef({}),[function(e){return l.current[e]},function(e){return function(t){l.current[e]=t}}]),_=(0,f.Z)(F,2),X=_[0],G=_[1],A=o.useRef(null),Y=function(){var e;P||(null===(e=A.current)||void 0===e||e.focus())};o.useImperativeHandle(t,(function(){return{focus:Y,blur:function(){var e;P||(null===(e=A.current)||void 0===e||e.blur())}}}));var V=(0,h.Z)(c||0,{value:v}),K=(0,f.Z)(V,2),U=K[0],q=K[1],Q=(0,h.Z)(null),J=(0,f.Z)(Q,2),ee=J[0],te=J[1],ne=function(e,t){var n,r,o,l,a="rtl"===z,i=e+1;if($){var s=X(e),c=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,l=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=l.clientLeft||o.clientLeft||0,top:n-=l.clientTop||o.clientTop||0}}(n=s),o=n.ownerDocument,l=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(l),r.left),u=s.clientWidth;(a&&t-c>u/2||!a&&t-c<u/2)&&(i-=.5)}return i},re=function(e){q(e),null==Z||Z(e)},oe=o.useState(!1),le=(0,f.Z)(oe,2),ae=le[0],ie=le[1],se=o.useState(null),ce=(0,f.Z)(se,2),ue=ce[0],de=ce[1],fe=function(e,t){var n=ne(t,e.pageX);n!==ee&&(de(n),te(null)),null==H||H(n)},pe=function(e){P||(de(null),te(null),null==H||H(void 0)),e&&(null==W||W(e))},he=function(e,t){var n=ne(t,e.pageX),r=!1;O&&(r=n===U),pe(),re(r?0:n),te(r?n:null)};o.useEffect((function(){N&&!P&&Y()}),[]);var ge=new Array(S).fill(0).map((function(e,t){return o.createElement(b,{ref:G(t),index:t,count:S,disabled:P,prefixCls:"".concat(i,"-star"),allowHalf:$,value:null===ue?U:ue,onClick:he,onHover:fe,key:e||t,character:k,characterRender:L,focused:ae})})),me=u()(i,s,(n={},(0,d.Z)(n,"".concat(i,"-disabled"),P),(0,d.Z)(n,"".concat(i,"-rtl"),"rtl"===z),n));return o.createElement("ul",(0,r.Z)({className:me,onMouseLeave:pe,tabIndex:P?-1:T,onFocus:P?null:function(){ie(!0),null==I||I()},onBlur:P?null:function(){ie(!1),null==R||R()},onKeyDown:P?null:function(e){var t=e.keyCode,n="rtl"===z,r=U;t===g.Z.RIGHT&&r<S&&!n?(re(r+=$?.5:1),e.preventDefault()):t===g.Z.LEFT&&r>0&&!n||t===g.Z.RIGHT&&r>0&&n?(re(r-=$?.5:1),e.preventDefault()):t===g.Z.LEFT&&r<S&&n&&(re(r+=$?.5:1),e.preventDefault()),null==B||B(e)},ref:A,role:"radiogroup"},(0,m.Z)(D,{aria:!0,data:!0,attr:!0})),ge)}var S=o.forwardRef(C),w=n(36355),$=n(6848),x=n(17313),O=n(83116),E=n(37613);const k=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},L=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),P=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),k(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),L(e))}};var j=(0,O.Z)("Rate",(e=>{const t=(0,E.TS)(e,{});return[P(t)]}),(e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}))),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const M=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:l,style:a,tooltips:i,character:c=o.createElement(s,null)}=e,d=z(e,["prefixCls","className","rootClassName","style","tooltips","character"]),{getPrefixCls:f,direction:p,rate:h}=o.useContext(w.E_),g=f("rate",n),[m,v]=j(g),b=Object.assign(Object.assign({},null==h?void 0:h.style),a);return m(o.createElement(S,Object.assign({ref:t,character:c,characterRender:(e,t)=>{let{index:n}=t;return i?o.createElement($.Z,{title:i[n]},e):e}},d,{className:u()(r,l,v,null==h?void 0:h.className),style:b,prefixCls:g,direction:p})))}));var T=M},31797:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(59301),o=n(56762),l=n(92343),a=n(92310),i=n.n(a),s=n(36355),c=n(66999);var u=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:l,groupSeparator:a="",prefixCls:i}=e;let s;if("function"==typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof o&&(c=c.padEnd(o,"0").slice(0,o>0?o:0)),c&&(c=`${l}${c}`),s=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,t),c&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},c)]}else s=e}return r.createElement("span",{className:`${i}-content-value`},s)},d=n(17313),f=n(83116),p=n(37613);const h=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:l,colorTextHeading:a,contentFontSize:i,fontFamily:s}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:l},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:i,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var g=(0,f.Z)("Statistic",(e=>{const t=(0,p.TS)(e,{});return[h(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var m=e=>{const{prefixCls:t,className:n,rootClassName:o,style:l,valueStyle:a,value:d=0,title:f,valueRender:p,prefix:h,suffix:m,loading:v=!1,onMouseEnter:b,onMouseLeave:y,decimalSeparator:C=".",groupSeparator:S=","}=e,{getPrefixCls:w,direction:$,statistic:x}=r.useContext(s.E_),O=w("statistic",t),[E,k]=g(O),L=r.createElement(u,Object.assign({decimalSeparator:C,groupSeparator:S,prefixCls:O},e,{value:d})),P=i()(O,{[`${O}-rtl`]:"rtl"===$},null==x?void 0:x.className,n,o,k);return E(r.createElement("div",{className:P,style:Object.assign(Object.assign({},null==x?void 0:x.style),l),onMouseEnter:b,onMouseLeave:y},f&&r.createElement("div",{className:`${O}-title`},f),r.createElement(c.Z,{paragraph:!1,loading:v,className:`${O}-skeleton`},r.createElement("div",{style:a,className:`${O}-content`},h&&r.createElement("span",{className:`${O}-content-prefix`},h),p?p(L):L,m&&r.createElement("span",{className:`${O}-content-suffix`},m)))))};const v=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function b(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),l=t.replace(r,"[]"),a=v.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),l);let i=0;return a.replace(r,(()=>{const e=o[i];return i+=1,e}))}(Math.max(r-o,0),n)}const y=e=>{const{value:t,format:n="HH:mm:ss",onChange:a,onFinish:i}=e,s=(0,o.Z)(),c=r.useRef(null),u=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{s(),null==a||a(e-Date.now()),e<Date.now()&&(null==i||i(),c.current&&(clearInterval(c.current),c.current=null))}),33.333333333333336))};r.useEffect((()=>(u(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return r.createElement(m,Object.assign({},e,{valueRender:e=>(0,l.Tm)(e,{title:void 0}),formatter:(e,t)=>b(e,Object.assign(Object.assign({},t),{format:n}))}))};var C=r.memo(y);m.Countdown=C;var S=m},12563:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(59301),o=n(53043),l=n(92310),a=n.n(l),i=n(36785),s=n(47729),c=n(14088),u=n(36355),d=n(17313),f=n(37613),p=n(83116);const h=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,f.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},g=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var m=(0,p.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,l=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,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",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(h(e))),g),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var b=e=>{const{prefixCls:t,style:n,className:o,checked:l,onChange:i,onClick:s}=e,c=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:f}=r.useContext(u.E_),p=d("tag",t),[h,g]=m(p),b=a()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:l},null==f?void 0:f.className,o,g);return h(r.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},n),null==f?void 0:f.style),className:b,onClick:e=>{null==i||i(!l),null==s||s(e)}})))},y=n(45157);var C=(0,p.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:l,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:l,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(h(e))),g);const S=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var w=(0,p.b)(["Tag","status"],(e=>{const t=h(e);return[S(t,"success","Success"),S(t,"processing","Info"),S(t,"error","Error"),S(t,"warning","Warning")]}),g),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const x=(e,t)=>{const{prefixCls:n,className:l,rootClassName:d,style:f,children:p,icon:h,color:g,onClose:v,closeIcon:b,closable:y,bordered:S=!0}=e,x=$(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:E,tag:k}=r.useContext(u.E_),[L,P]=r.useState(!0);r.useEffect((()=>{"visible"in x&&P(x.visible)}),[x.visible]);const j=(0,i.o2)(g),z=(0,i.yT)(g),M=j||z,T=Object.assign(Object.assign({backgroundColor:g&&!M?g:void 0},null==k?void 0:k.style),f),N=O("tag",n),[H,Z]=m(N),I=a()(N,null==k?void 0:k.className,{[`${N}-${g}`]:M,[`${N}-has-color`]:g&&!M,[`${N}-hidden`]:!L,[`${N}-rtl`]:"rtl"===E,[`${N}-borderless`]:!S},l,d,Z),R=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||P(!1)},[,B]=(0,s.Z)(y,b,(e=>null===e?r.createElement(o.Z,{className:`${N}-close-icon`,onClick:R}):r.createElement("span",{className:`${N}-close-icon`,onClick:R},e)),null,!1),W="function"==typeof x.onClick||p&&"a"===p.type,D=h||null,F=D?r.createElement(r.Fragment,null,D,p&&r.createElement("span",null,p)):p,_=r.createElement("span",Object.assign({},x,{ref:t,className:I,style:T}),F,B,j&&r.createElement(C,{key:"preset",prefixCls:N}),z&&r.createElement(w,{key:"status",prefixCls:N}));return H(W?r.createElement(c.Z,{component:"Tag"},_):_)},O=r.forwardRef(x);O.CheckableTag=b;var E=O},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(59301),l=i(o),a=i(n(12708));function i(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 n=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 n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}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),r(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,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,l=void 0!==t.pageYOffset?t.pageYOffset:o.scrollTop;r=this.props.isReverse?l:this.calculateOffset(e,l)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.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),n=t.children,r=t.element,o=t.hasMore,a=(t.initialLoad,t.isReverse),i=t.loader,s=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(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 u=[n];return o&&(i?a?u.unshift(i):u.push(i):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),l.default.createElement(r,c,u)}}]),t}(o.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,n){e.exports=n(51581)}}]);