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.
14 lines
56 KiB
14 lines
56 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[271],{42110:function(Nt,je){var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};je.Z=n},78290:function(Nt,je,n){var a=n(67294),ye=n(17012);const T=U=>{let Ce;return typeof U=="object"&&(U!=null&&U.clearIcon)?Ce=U:U&&(Ce={clearIcon:a.createElement(ye.Z,null)}),Ce};je.Z=T},82586:function(Nt,je,n){n.d(je,{Z:function(){return R},n:function(){return Ot}});var a=n(67294),ye=n(93967),T=n.n(ye),U=n(67656),Ce=n(42550),h=n(78290),f=n(9708),A=n(53124),L=n(98866),y=n(35792),le=n(98675),J=n(65223),B=n(27833),nt=n(4173),Ct=n(72922),It=n(47673);function At(m){return!!(m.prefix||m.suffix||m.allowClear||m.showCount)}var $t=function(m,Ne){var pe={};for(var Y in m)Object.prototype.hasOwnProperty.call(m,Y)&&Ne.indexOf(Y)<0&&(pe[Y]=m[Y]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Y=Object.getOwnPropertySymbols(m);se<Y.length;se++)Ne.indexOf(Y[se])<0&&Object.prototype.propertyIsEnumerable.call(m,Y[se])&&(pe[Y[se]]=m[Y[se]]);return pe};function Ot(m,Ne){if(!m)return;m.focus(Ne);const{cursor:pe}=Ne||{};if(pe){const Y=m.value.length;switch(pe){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(Y,Y);break;default:m.setSelectionRange(0,Y);break}}}var R=(0,a.forwardRef)((m,Ne)=>{var pe;const{prefixCls:Y,bordered:se=!0,status:Ae,size:Xe,disabled:Ue,onBlur:Oe,onFocus:Le,suffix:St,allowClear:xt,addonAfter:rt,addonBefore:Ye,className:zt,style:mt,styles:Fe,rootClassName:gt,onChange:yt,classNames:Pe,variant:re}=m,K=$t(m,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:qe,direction:$e,input:P}=a.useContext(A.E_),u=qe("input",Y),ce=(0,a.useRef)(null),b=(0,y.Z)(u),[S,C,ue]=(0,It.ZP)(u,b),{compactSize:ge,compactItemClassnames:D}=(0,nt.ri)(u,$e),Z=(0,le.Z)(k=>{var it;return(it=Xe!=null?Xe:ge)!==null&&it!==void 0?it:k}),N=a.useContext(L.Z),Q=Ue!=null?Ue:N,{status:de,hasFeedback:G,feedbackIcon:Ee}=(0,a.useContext)(J.aM),Ze=(0,f.F)(de,Ae),j=At(m)||!!G,Ie=(0,a.useRef)(j),We=(0,Ct.Z)(ce,!0),Qe=k=>{We(),Oe==null||Oe(k)},I=k=>{We(),Le==null||Le(k)},q=k=>{We(),yt==null||yt(k)},ot=(G||St)&&a.createElement(a.Fragment,null,St,G&&Ee),be=(0,h.Z)(xt!=null?xt:P==null?void 0:P.allowClear),[Re,ze]=(0,B.Z)(re,se);return S(a.createElement(U.Z,Object.assign({ref:(0,Ce.sQ)(Ne,ce),prefixCls:u,autoComplete:P==null?void 0:P.autoComplete},K,{disabled:Q,onBlur:Qe,onFocus:I,style:Object.assign(Object.assign({},P==null?void 0:P.style),mt),styles:Object.assign(Object.assign({},P==null?void 0:P.styles),Fe),suffix:ot,allowClear:be,className:T()(zt,gt,ue,b,D,P==null?void 0:P.className),onChange:q,addonAfter:rt&&a.createElement(nt.BR,null,a.createElement(J.Ux,{override:!0,status:!0},rt)),addonBefore:Ye&&a.createElement(nt.BR,null,a.createElement(J.Ux,{override:!0,status:!0},Ye)),classNames:Object.assign(Object.assign(Object.assign({},Pe),P==null?void 0:P.classNames),{input:T()({[`${u}-sm`]:Z==="small",[`${u}-lg`]:Z==="large",[`${u}-rtl`]:$e==="rtl"},Pe==null?void 0:Pe.input,(pe=P==null?void 0:P.classNames)===null||pe===void 0?void 0:pe.input,C),variant:T()({[`${u}-${Re}`]:ze},(0,f.Z)(u,Ze)),affixWrapper:T()({[`${u}-affix-wrapper-sm`]:Z==="small",[`${u}-affix-wrapper-lg`]:Z==="large",[`${u}-affix-wrapper-rtl`]:$e==="rtl"},C),wrapper:T()({[`${u}-group-rtl`]:$e==="rtl"},C),groupWrapper:T()({[`${u}-group-wrapper-sm`]:Z==="small",[`${u}-group-wrapper-lg`]:Z==="large",[`${u}-group-wrapper-rtl`]:$e==="rtl",[`${u}-group-wrapper-${Re}`]:ze},(0,f.Z)(`${u}-group-wrapper`,Ze,G),C)})})))})},22913:function(Nt,je,n){n.d(je,{Z:function(){return P}});var a=n(67294),ye=n(93967),T=n.n(ye),U=n(87462),Ce=n(4942),h=n(1413),f=n(74902),A=n(97685),L=n(91),y=n(67656),le=n(82234),J=n(87887),B=n(21770),nt=n(71002),Ct=n(9220),It=n(8410),At=n(75164),$t=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,Ot=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Et={},R;function m(u){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=u.getAttribute("id")||u.getAttribute("data-reactid")||u.getAttribute("name");if(ce&&Et[b])return Et[b];var S=window.getComputedStyle(u),C=S.getPropertyValue("box-sizing")||S.getPropertyValue("-moz-box-sizing")||S.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(S.getPropertyValue("padding-bottom"))+parseFloat(S.getPropertyValue("padding-top")),ge=parseFloat(S.getPropertyValue("border-bottom-width"))+parseFloat(S.getPropertyValue("border-top-width")),D=Ot.map(function(N){return"".concat(N,":").concat(S.getPropertyValue(N))}).join(";"),Z={sizingStyle:D,paddingSize:ue,borderSize:ge,boxSizing:C};return ce&&b&&(Et[b]=Z),Z}function Ne(u){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;R||(R=document.createElement("textarea"),R.setAttribute("tab-index","-1"),R.setAttribute("aria-hidden","true"),document.body.appendChild(R)),u.getAttribute("wrap")?R.setAttribute("wrap",u.getAttribute("wrap")):R.removeAttribute("wrap");var C=m(u,ce),ue=C.paddingSize,ge=C.borderSize,D=C.boxSizing,Z=C.sizingStyle;R.setAttribute("style","".concat(Z,";").concat($t)),R.value=u.value||u.placeholder||"";var N=void 0,Q=void 0,de,G=R.scrollHeight;if(D==="border-box"?G+=ge:D==="content-box"&&(G-=ue),b!==null||S!==null){R.value=" ";var Ee=R.scrollHeight-ue;b!==null&&(N=Ee*b,D==="border-box"&&(N=N+ue+ge),G=Math.max(N,G)),S!==null&&(Q=Ee*S,D==="border-box"&&(Q=Q+ue+ge),de=G>Q?"":"hidden",G=Math.min(Q,G))}var Ze={height:G,overflowY:de,resize:"none"};return N&&(Ze.minHeight=N),Q&&(Ze.maxHeight=Q),Ze}var pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Y=0,se=1,Ae=2,Xe=a.forwardRef(function(u,ce){var b=u,S=b.prefixCls,C=b.onPressEnter,ue=b.defaultValue,ge=b.value,D=b.autoSize,Z=b.onResize,N=b.className,Q=b.style,de=b.disabled,G=b.onChange,Ee=b.onInternalAutoSize,Ze=(0,L.Z)(b,pe),j=(0,B.Z)(ue,{value:ge,postState:function(He){return He!=null?He:""}}),Ie=(0,A.Z)(j,2),We=Ie[0],Qe=Ie[1],I=function(He){Qe(He.target.value),G==null||G(He)},q=a.useRef();a.useImperativeHandle(ce,function(){return{textArea:q.current}});var ot=a.useMemo(function(){return D&&(0,nt.Z)(D)==="object"?[D.minRows,D.maxRows]:[]},[D]),be=(0,A.Z)(ot,2),Re=be[0],ze=be[1],k=!!D,it=function(){try{if(document.activeElement===q.current){var He=q.current,Gt=He.selectionStart,Ut=He.selectionEnd,Ft=He.scrollTop;q.current.setSelectionRange(Gt,Ut),q.current.scrollTop=Ft}}catch(_t){}},lt=a.useState(Ae),oe=(0,A.Z)(lt,2),M=oe[0],p=oe[1],Me=a.useState(),Je=(0,A.Z)(Me,2),Ke=Je[0],st=Je[1],_e=function(){p(Y)};(0,It.Z)(function(){k&&_e()},[ge,Re,ze,k]),(0,It.Z)(function(){if(M===Y)p(se);else if(M===se){var Ve=Ne(q.current,!1,Re,ze);p(Ae),st(Ve)}else it()},[M]);var Rt=a.useRef(),ct=function(){At.Z.cancel(Rt.current)},wt=function(He){M===Ae&&(Z==null||Z(He),D&&(ct(),Rt.current=(0,At.Z)(function(){_e()})))};a.useEffect(function(){return ct},[]);var $=k?Ke:null,ut=(0,h.Z)((0,h.Z)({},Q),$);return(M===Y||M===se)&&(ut.overflowY="hidden",ut.overflowX="hidden"),a.createElement(Ct.Z,{onResize:wt,disabled:!(D||Z)},a.createElement("textarea",(0,U.Z)({},Ze,{ref:q,style:ut,className:T()(S,N,(0,Ce.Z)({},"".concat(S,"-disabled"),de)),disabled:de,value:We,onChange:I})))}),Ue=Xe,Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Le=a.forwardRef(function(u,ce){var b,S,C=u.defaultValue,ue=u.value,ge=u.onFocus,D=u.onBlur,Z=u.onChange,N=u.allowClear,Q=u.maxLength,de=u.onCompositionStart,G=u.onCompositionEnd,Ee=u.suffix,Ze=u.prefixCls,j=Ze===void 0?"rc-textarea":Ze,Ie=u.showCount,We=u.count,Qe=u.className,I=u.style,q=u.disabled,ot=u.hidden,be=u.classNames,Re=u.styles,ze=u.onResize,k=(0,L.Z)(u,Oe),it=(0,B.Z)(C,{value:ue,defaultValue:C}),lt=(0,A.Z)(it,2),oe=lt[0],M=lt[1],p=oe==null?"":String(oe),Me=a.useState(!1),Je=(0,A.Z)(Me,2),Ke=Je[0],st=Je[1],_e=a.useRef(!1),Rt=a.useState(null),ct=(0,A.Z)(Rt,2),wt=ct[0],$=ct[1],ut=(0,a.useRef)(null),Ve=function(){var l;return(l=ut.current)===null||l===void 0?void 0:l.textArea},He=function(){Ve().focus()};(0,a.useImperativeHandle)(ce,function(){return{resizableTextArea:ut.current,focus:He,blur:function(){Ve().blur()}}}),(0,a.useEffect)(function(){st(function(o){return!q&&o})},[q]);var Gt=a.useState(null),Ut=(0,A.Z)(Gt,2),Ft=Ut[0],_t=Ut[1];a.useEffect(function(){if(Ft){var o;(o=Ve()).setSelectionRange.apply(o,(0,f.Z)(Ft))}},[Ft]);var dt=(0,le.Z)(We,Ie),Wt=(b=dt.max)!==null&&b!==void 0?b:Q,sa=Number(Wt)>0,Yt=dt.strategy(p),ca=!!Wt&&Yt>Wt,ea=function(l,c){var s=c;!_e.current&&dt.exceedFormatter&&dt.max&&dt.strategy(c)>dt.max&&(s=dt.exceedFormatter(c,{max:dt.max}),c!==s&&_t([Ve().selectionStart||0,Ve().selectionEnd||0])),M(s),(0,J.rJ)(l.currentTarget,l,Z,s)},ua=function(l){_e.current=!0,de==null||de(l)},da=function(l){_e.current=!1,ea(l,l.currentTarget.value),G==null||G(l)},Ra=function(l){ea(l,l.target.value)},va=function(l){var c=k.onPressEnter,s=k.onKeyDown;l.key==="Enter"&&c&&c(l),s==null||s(l)},fa=function(l){st(!0),ge==null||ge(l)},ta=function(l){st(!1),D==null||D(l)},ma=function(l){M(""),He(),(0,J.rJ)(Ve(),l,Z)},e=Ee,t;dt.show&&(dt.showFormatter?t=dt.showFormatter({value:p,count:Yt,maxLength:Wt}):t="".concat(Yt).concat(sa?" / ".concat(Wt):""),e=a.createElement(a.Fragment,null,e,a.createElement("span",{className:T()("".concat(j,"-data-count"),be==null?void 0:be.count),style:Re==null?void 0:Re.count},t)));var r=function(l){var c;ze==null||ze(l),(c=Ve())!==null&&c!==void 0&&c.style.height&&$(!0)},i=!k.autoSize&&!Ie&&!N;return a.createElement(y.Q,{value:p,allowClear:N,handleReset:ma,suffix:e,prefixCls:j,classNames:(0,h.Z)((0,h.Z)({},be),{},{affixWrapper:T()(be==null?void 0:be.affixWrapper,(S={},(0,Ce.Z)(S,"".concat(j,"-show-count"),Ie),(0,Ce.Z)(S,"".concat(j,"-textarea-allow-clear"),N),S))}),disabled:q,focused:Ke,className:T()(Qe,ca&&"".concat(j,"-out-of-range")),style:(0,h.Z)((0,h.Z)({},I),wt&&!i?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof t=="string"?t:void 0}},hidden:ot},a.createElement(Ue,(0,U.Z)({},k,{maxLength:Q,onKeyDown:va,onChange:Ra,onFocus:fa,onBlur:ta,onCompositionStart:ua,onCompositionEnd:da,className:T()(be==null?void 0:be.textarea),style:(0,h.Z)((0,h.Z)({},Re==null?void 0:Re.textarea),{},{resize:I==null?void 0:I.resize}),disabled:q,prefixCls:j,onResize:r,ref:ut})))}),St=Le,xt=St,rt=n(78290),Ye=n(9708),zt=n(53124),mt=n(98866),Fe=n(35792),gt=n(98675),yt=n(65223),Pe=n(27833),re=n(82586),K=n(47673),qe=function(u,ce){var b={};for(var S in u)Object.prototype.hasOwnProperty.call(u,S)&&ce.indexOf(S)<0&&(b[S]=u[S]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,S=Object.getOwnPropertySymbols(u);C<S.length;C++)ce.indexOf(S[C])<0&&Object.prototype.propertyIsEnumerable.call(u,S[C])&&(b[S[C]]=u[S[C]]);return b},P=(0,a.forwardRef)((u,ce)=>{var b,S;const{prefixCls:C,bordered:ue=!0,size:ge,disabled:D,status:Z,allowClear:N,classNames:Q,rootClassName:de,className:G,style:Ee,styles:Ze,variant:j}=u,Ie=qe(u,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:We,direction:Qe,textArea:I}=a.useContext(zt.E_),q=(0,gt.Z)(ge),ot=a.useContext(mt.Z),be=D!=null?D:ot,{status:Re,hasFeedback:ze,feedbackIcon:k}=a.useContext(yt.aM),it=(0,Ye.F)(Re,Z),lt=a.useRef(null);a.useImperativeHandle(ce,()=>{var Rt;return{resizableTextArea:(Rt=lt.current)===null||Rt===void 0?void 0:Rt.resizableTextArea,focus:ct=>{var wt,$;(0,re.n)(($=(wt=lt.current)===null||wt===void 0?void 0:wt.resizableTextArea)===null||$===void 0?void 0:$.textArea,ct)},blur:()=>{var ct;return(ct=lt.current)===null||ct===void 0?void 0:ct.blur()}}});const oe=We("input",C),M=(0,Fe.Z)(oe),[p,Me,Je]=(0,K.ZP)(oe,M),[Ke,st]=(0,Pe.Z)(j,ue),_e=(0,rt.Z)(N!=null?N:I==null?void 0:I.allowClear);return p(a.createElement(xt,Object.assign({autoComplete:I==null?void 0:I.autoComplete},Ie,{style:Object.assign(Object.assign({},I==null?void 0:I.style),Ee),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),Ze),disabled:be,allowClear:_e,className:T()(Je,M,G,de,I==null?void 0:I.className),classNames:Object.assign(Object.assign(Object.assign({},Q),I==null?void 0:I.classNames),{textarea:T()({[`${oe}-sm`]:q==="small",[`${oe}-lg`]:q==="large"},Me,Q==null?void 0:Q.textarea,(b=I==null?void 0:I.classNames)===null||b===void 0?void 0:b.textarea),variant:T()({[`${oe}-${Ke}`]:st},(0,Ye.Z)(oe,it)),affixWrapper:T()(`${oe}-textarea-affix-wrapper`,{[`${oe}-affix-wrapper-rtl`]:Qe==="rtl",[`${oe}-affix-wrapper-sm`]:q==="small",[`${oe}-affix-wrapper-lg`]:q==="large",[`${oe}-textarea-show-count`]:u.showCount||((S=u.count)===null||S===void 0?void 0:S.show)},Me)}),prefixCls:oe,suffix:ze&&a.createElement("span",{className:`${oe}-textarea-suffix`},k),ref:lt})))})},72922:function(Nt,je,n){n.d(je,{Z:function(){return ye}});var a=n(67294);function ye(T,U){const Ce=(0,a.useRef)([]),h=()=>{Ce.current.push(setTimeout(()=>{var f,A,L,y;!((f=T.current)===null||f===void 0)&&f.input&&((A=T.current)===null||A===void 0?void 0:A.input.getAttribute("type"))==="password"&&(!((L=T.current)===null||L===void 0)&&L.input.hasAttribute("value"))&&((y=T.current)===null||y===void 0||y.input.removeAttribute("value"))}))};return(0,a.useEffect)(()=>(U&&h(),()=>Ce.current.forEach(f=>{f&&clearTimeout(f)})),[]),h}},11941:function(Nt,je,n){n.d(je,{Z:function(){return ma}});var a=n(67294),ye=n(62208),T=n(35872),U=n(87462),Ce=n(42110),h=n(93771),f=function(t,r){return a.createElement(h.Z,(0,U.Z)({},t,{ref:r,icon:Ce.Z}))},A=a.forwardRef(f),L=n(93967),y=n.n(L),le=n(4942),J=n(1413),B=n(97685),nt=n(71002),Ct=n(91),It=n(21770),At=n(31131),$t=(0,a.createContext)(null),Ot=n(74902),Et=n(9220),R=n(66680),m=n(42550),Ne=n(75164),pe=function(t){var r=t.activeTabOffset,i=t.horizontal,o=t.rtl,l=t.indicator,c=l===void 0?{}:l,s=c.size,d=c.align,g=d===void 0?"center":d,z=(0,a.useState)(),F=(0,B.Z)(z,2),W=F[0],_=F[1],ve=(0,a.useRef)(),ee=a.useCallback(function(w){return typeof s=="function"?s(w):typeof s=="number"?s:w},[s]);function ie(){Ne.Z.cancel(ve.current)}return(0,a.useEffect)(function(){var w={};if(r)if(i){w.width=ee(r.width);var x=o?"right":"left";g==="start"&&(w[x]=r[x]),g==="center"&&(w[x]=r[x]+r.width/2,w.transform=o?"translateX(50%)":"translateX(-50%)"),g==="end"&&(w[x]=r[x]+r.width,w.transform="translateX(-100%)")}else w.height=ee(r.height),g==="start"&&(w.top=r.top),g==="center"&&(w.top=r.top+r.height/2,w.transform="translateY(-50%)"),g==="end"&&(w.top=r.top+r.height,w.transform="translateY(-100%)");return ie(),ve.current=(0,Ne.Z)(function(){_(w)}),ie},[r,i,o,g,ee]),{style:W}},Y=pe,se={width:0,height:0,left:0,top:0};function Ae(e,t,r){return(0,a.useMemo)(function(){for(var i,o=new Map,l=t.get((i=e[0])===null||i===void 0?void 0:i.key)||se,c=l.left+l.width,s=0;s<e.length;s+=1){var d=e[s].key,g=t.get(d);if(!g){var z;g=t.get((z=e[s-1])===null||z===void 0?void 0:z.key)||se}var F=o.get(d)||(0,J.Z)({},g);F.right=c-F.left-F.width,o.set(d,F)}return o},[e.map(function(i){return i.key}).join("_"),t,r])}function Xe(e,t){var r=a.useRef(e),i=a.useState({}),o=(0,B.Z)(i,2),l=o[1];function c(s){var d=typeof s=="function"?s(r.current):s;d!==r.current&&t(d,r.current),r.current=d,l({})}return[r.current,c]}var Ue=.1,Oe=.01,Le=20,St=Math.pow(.995,Le);function xt(e,t){var r=(0,a.useState)(),i=(0,B.Z)(r,2),o=i[0],l=i[1],c=(0,a.useState)(0),s=(0,B.Z)(c,2),d=s[0],g=s[1],z=(0,a.useState)(0),F=(0,B.Z)(z,2),W=F[0],_=F[1],ve=(0,a.useState)(),ee=(0,B.Z)(ve,2),ie=ee[0],w=ee[1],x=(0,a.useRef)();function fe(E){var ae=E.touches[0],O=ae.screenX,ne=ae.screenY;l({x:O,y:ne}),window.clearInterval(x.current)}function Be(E){if(o){E.preventDefault();var ae=E.touches[0],O=ae.screenX,ne=ae.screenY;l({x:O,y:ne});var v=O-o.x,X=ne-o.y;t(v,X);var vt=Date.now();g(vt),_(vt-d),w({x:v,y:X})}}function De(){if(o&&(l(null),w(null),ie)){var E=ie.x/W,ae=ie.y/W,O=Math.abs(E),ne=Math.abs(ae);if(Math.max(O,ne)<Ue)return;var v=E,X=ae;x.current=window.setInterval(function(){if(Math.abs(v)<Oe&&Math.abs(X)<Oe){window.clearInterval(x.current);return}v*=St,X*=St,t(v*Le,X*Le)},Le)}}var Se=(0,a.useRef)();function Te(E){var ae=E.deltaX,O=E.deltaY,ne=0,v=Math.abs(ae),X=Math.abs(O);v===X?ne=Se.current==="x"?ae:O:v>X?(ne=ae,Se.current="x"):(ne=O,Se.current="y"),t(-ne,-ne)&&E.preventDefault()}var te=(0,a.useRef)(null);te.current={onTouchStart:fe,onTouchMove:Be,onTouchEnd:De,onWheel:Te},a.useEffect(function(){function E(v){te.current.onTouchStart(v)}function ae(v){te.current.onTouchMove(v)}function O(v){te.current.onTouchEnd(v)}function ne(v){te.current.onWheel(v)}return document.addEventListener("touchmove",ae,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",ne),function(){document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",O)}},[])}var rt=n(8410);function Ye(e){var t=(0,a.useState)(0),r=(0,B.Z)(t,2),i=r[0],o=r[1],l=(0,a.useRef)(0),c=(0,a.useRef)();return c.current=e,(0,rt.o)(function(){var s;(s=c.current)===null||s===void 0||s.call(c)},[i]),function(){l.current===i&&(l.current+=1,o(l.current))}}function zt(e){var t=(0,a.useRef)([]),r=(0,a.useState)({}),i=(0,B.Z)(r,2),o=i[1],l=(0,a.useRef)(typeof e=="function"?e():e),c=Ye(function(){var d=l.current;t.current.forEach(function(g){d=g(d)}),t.current=[],l.current=d,o({})});function s(d){t.current.push(d),c()}return[l.current,s]}var mt={width:0,height:0,left:0,top:0,right:0};function Fe(e,t,r,i,o,l,c){var s=c.tabs,d=c.tabPosition,g=c.rtl,z,F,W;return["top","bottom"].includes(d)?(z="width",F=g?"right":"left",W=Math.abs(r)):(z="height",F="top",W=-r),(0,a.useMemo)(function(){if(!s.length)return[0,0];for(var _=s.length,ve=_,ee=0;ee<_;ee+=1){var ie=e.get(s[ee].key)||mt;if(ie[F]+ie[z]>W+t){ve=ee-1;break}}for(var w=0,x=_-1;x>=0;x-=1){var fe=e.get(s[x].key)||mt;if(fe[F]<W){w=x+1;break}}return w>=ve?[0,0]:[w,ve]},[e,t,i,o,l,W,d,s.map(function(_){return _.key}).join("_"),g])}function gt(e){var t;return e instanceof Map?(t={},e.forEach(function(r,i){t[i]=r})):t=e,JSON.stringify(t)}var yt="TABS_DQ";function Pe(e){return String(e).replace(/"/g,yt)}function re(e,t,r,i){return!(!r||i||e===!1||e===void 0&&(t===!1||t===null))}var K=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.editable,o=e.locale,l=e.style;return!i||i.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:l,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){i.onEdit("add",{event:s})}},i.addIcon||"+")}),qe=K,$e=a.forwardRef(function(e,t){var r=e.position,i=e.prefixCls,o=e.extra;if(!o)return null;var l,c={};return(0,nt.Z)(o)==="object"&&!a.isValidElement(o)?c=o:c.right=o,r==="right"&&(l=c.right),r==="left"&&(l=c.left),l?a.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},l):null}),P=$e,u=n(29171),ce=n(72512),b=n(15105),S=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.id,o=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,d=s===void 0?"More":s,g=e.moreTransitionName,z=e.style,F=e.className,W=e.editable,_=e.tabBarGutter,ve=e.rtl,ee=e.removeAriaLabel,ie=e.onTabClick,w=e.getPopupContainer,x=e.popupClassName,fe=(0,a.useState)(!1),Be=(0,B.Z)(fe,2),De=Be[0],Se=Be[1],Te=(0,a.useState)(null),te=(0,B.Z)(Te,2),E=te[0],ae=te[1],O="".concat(i,"-more-popup"),ne="".concat(r,"-dropdown"),v=E!==null?"".concat(O,"-").concat(E):null,X=l==null?void 0:l.dropdownAriaLabel;function vt(H,xe){H.preventDefault(),H.stopPropagation(),W.onEdit("remove",{key:xe,event:H})}var et=a.createElement(ce.ZP,{onClick:function(xe){var at=xe.key,Ge=xe.domEvent;ie(at,Ge),Se(!1)},prefixCls:"".concat(ne,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":v,selectedKeys:[E],"aria-label":X!==void 0?X:"expanded dropdown"},o.map(function(H){var xe=H.closable,at=H.disabled,Ge=H.closeIcon,ke=H.key,Pt=H.label,pt=re(xe,Ge,W,at);return a.createElement(ce.sN,{key:ke,id:"".concat(O,"-").concat(ke),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(ke),disabled:at},a.createElement("span",null,Pt),pt&&a.createElement("button",{type:"button","aria-label":ee||"remove",tabIndex:0,className:"".concat(ne,"-menu-item-remove"),onClick:function(Bt){Bt.stopPropagation(),vt(Bt,ke)}},Ge||W.removeIcon||"\xD7"))}));function bt(H){for(var xe=o.filter(function(pt){return!pt.disabled}),at=xe.findIndex(function(pt){return pt.key===E})||0,Ge=xe.length,ke=0;ke<Ge;ke+=1){at=(at+H+Ge)%Ge;var Pt=xe[at];if(!Pt.disabled){ae(Pt.key);return}}}function tt(H){var xe=H.which;if(!De){[b.Z.DOWN,b.Z.SPACE,b.Z.ENTER].includes(xe)&&(Se(!0),H.preventDefault());return}switch(xe){case b.Z.UP:bt(-1),H.preventDefault();break;case b.Z.DOWN:bt(1),H.preventDefault();break;case b.Z.ESC:Se(!1);break;case b.Z.SPACE:case b.Z.ENTER:E!==null&&ie(E,H);break}}(0,a.useEffect)(function(){var H=document.getElementById(v);H&&H.scrollIntoView&&H.scrollIntoView(!1)},[E]),(0,a.useEffect)(function(){De||ae(null)},[De]);var ht=(0,le.Z)({},ve?"marginRight":"marginLeft",_);o.length||(ht.visibility="hidden",ht.order=1);var Lt=y()((0,le.Z)({},"".concat(ne,"-rtl"),ve)),Tt=c?null:a.createElement(u.Z,{prefixCls:ne,overlay:et,trigger:["hover"],visible:o.length?De:!1,transitionName:g,onVisibleChange:Se,overlayClassName:y()(Lt,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},a.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:ht,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":O,id:"".concat(i,"-more"),"aria-expanded":De,onKeyDown:tt},d));return a.createElement("div",{className:y()("".concat(r,"-nav-operations"),F),style:z,ref:t},Tt,a.createElement(qe,{prefixCls:r,locale:l,editable:W}))}),C=a.memo(S,function(e,t){return t.tabMoving}),ue=function(t){var r=t.prefixCls,i=t.id,o=t.active,l=t.tab,c=l.key,s=l.label,d=l.disabled,g=l.closeIcon,z=l.icon,F=t.closable,W=t.renderWrapper,_=t.removeAriaLabel,ve=t.editable,ee=t.onClick,ie=t.onFocus,w=t.style,x="".concat(r,"-tab"),fe=re(F,g,ve,d);function Be(te){d||ee(te)}function De(te){te.preventDefault(),te.stopPropagation(),ve.onEdit("remove",{key:c,event:te})}var Se=a.useMemo(function(){return z&&typeof s=="string"?a.createElement("span",null,s):s},[s,z]),Te=a.createElement("div",{key:c,"data-node-key":Pe(c),className:y()(x,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(x,"-with-remove"),fe),"".concat(x,"-active"),o),"".concat(x,"-disabled"),d)),style:w,onClick:Be},a.createElement("div",{role:"tab","aria-selected":o,id:i&&"".concat(i,"-tab-").concat(c),className:"".concat(x,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:0,onClick:function(E){E.stopPropagation(),Be(E)},onKeyDown:function(E){[b.Z.SPACE,b.Z.ENTER].includes(E.which)&&(E.preventDefault(),Be(E))},onFocus:ie},z&&a.createElement("span",{className:"".concat(x,"-icon")},z),s&&Se),fe&&a.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(x,"-remove"),onClick:function(E){E.stopPropagation(),De(E)}},g||ve.removeIcon||"\xD7"));return W?W(Te):Te},ge=ue,D=function(t,r){var i=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,s=t.getBoundingClientRect(),d=s.width,g=s.height,z=s.x,F=s.y;return Math.abs(d-i)<1?[d,g,z-r.x,F-r.y]:[i,o,c,l]},Z=function(t){var r=t.current||{},i=r.offsetWidth,o=i===void 0?0:i,l=r.offsetHeight,c=l===void 0?0:l;if(t.current){var s=t.current.getBoundingClientRect(),d=s.width,g=s.height;if(Math.abs(d-o)<1)return[d,g]}return[o,c]},N=function(t,r){return t[r?0:1]},Q=a.forwardRef(function(e,t){var r=e.className,i=e.style,o=e.id,l=e.animated,c=e.activeKey,s=e.rtl,d=e.extra,g=e.editable,z=e.locale,F=e.tabPosition,W=e.tabBarGutter,_=e.children,ve=e.onTabClick,ee=e.onTabScroll,ie=e.indicator,w=a.useContext($t),x=w.prefixCls,fe=w.tabs,Be=(0,a.useRef)(null),De=(0,a.useRef)(null),Se=(0,a.useRef)(null),Te=(0,a.useRef)(null),te=(0,a.useRef)(null),E=(0,a.useRef)(null),ae=(0,a.useRef)(null),O=F==="top"||F==="bottom",ne=Xe(0,function(he,V){O&&ee&&ee({direction:he>V?"left":"right"})}),v=(0,B.Z)(ne,2),X=v[0],vt=v[1],et=Xe(0,function(he,V){!O&&ee&&ee({direction:he>V?"top":"bottom"})}),bt=(0,B.Z)(et,2),tt=bt[0],ht=bt[1],Lt=(0,a.useState)([0,0]),Tt=(0,B.Z)(Lt,2),H=Tt[0],xe=Tt[1],at=(0,a.useState)([0,0]),Ge=(0,B.Z)(at,2),ke=Ge[0],Pt=Ge[1],pt=(0,a.useState)([0,0]),Mt=(0,B.Z)(pt,2),Bt=Mt[0],Qt=Mt[1],ga=(0,a.useState)([0,0]),Jt=(0,B.Z)(ga,2),ba=Jt[0],me=Jt[1],Vt=zt(new Map),Xt=(0,B.Z)(Vt,2),Fa=Xt[0],Wa=Xt[1],aa=Ae(fe,Fa,ke[0]),ha=N(H,O),kt=N(ke,O),pa=N(Bt,O),Ta=N(ba,O),Pa=ha<kt+pa,Zt=Pa?ha-Ta:ha-pa,Va="".concat(x,"-nav-operations-hidden"),Dt=0,Ht=0;O&&s?(Dt=0,Ht=Math.max(0,kt-Zt)):(Dt=Math.min(0,Zt-kt),Ht=0);function Sa(he){return he<Dt?Dt:he>Ht?Ht:he}var xa=(0,a.useRef)(null),Ha=(0,a.useState)(),Za=(0,B.Z)(Ha,2),na=Za[0],Ia=Za[1];function ya(){Ia(Date.now())}function Ca(){xa.current&&clearTimeout(xa.current)}xt(Te,function(he,V){function we(ft,Kt){ft(function(jt){var ia=Sa(jt+Kt);return ia})}return Pa?(O?we(vt,he):we(ht,V),Ca(),ya(),!0):!1}),(0,a.useEffect)(function(){return Ca(),na&&(xa.current=setTimeout(function(){Ia(0)},100)),Ca},[na]);var Ka=Fe(aa,Zt,O?X:tt,kt,pa,Ta,(0,J.Z)((0,J.Z)({},e),{},{tabs:fe})),za=(0,B.Z)(Ka,2),Ga=za[0],Xa=za[1],wa=(0,R.Z)(function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,V=aa.get(he)||{width:0,height:0,left:0,right:0,top:0};if(O){var we=X;s?V.right<X?we=V.right:V.right+V.width>X+Zt&&(we=V.right+V.width-Zt):V.left<-X?we=-V.left:V.left+V.width>-X+Zt&&(we=-(V.left+V.width-Zt)),ht(0),vt(Sa(we))}else{var ft=tt;V.top<-tt?ft=-V.top:V.top+V.height>-tt+Zt&&(ft=-(V.top+V.height-Zt)),vt(0),ht(Sa(ft))}}),ra={};F==="top"||F==="bottom"?ra[s?"marginRight":"marginLeft"]=W:ra.marginTop=W;var Na=fe.map(function(he,V){var we=he.key;return a.createElement(ge,{id:o,prefixCls:x,key:we,tab:he,style:V===0?void 0:ra,closable:he.closable,editable:g,active:we===c,renderWrapper:_,removeAriaLabel:z==null?void 0:z.removeAriaLabel,onClick:function(Kt){ve(we,Kt)},onFocus:function(){wa(we),ya(),Te.current&&(s||(Te.current.scrollLeft=0),Te.current.scrollTop=0)}})}),Aa=function(){return Wa(function(){var V,we=new Map,ft=(V=te.current)===null||V===void 0?void 0:V.getBoundingClientRect();return fe.forEach(function(Kt){var jt,ia=Kt.key,ja=(jt=te.current)===null||jt===void 0?void 0:jt.querySelector('[data-node-key="'.concat(Pe(ia),'"]'));if(ja){var ka=D(ja,ft),la=(0,B.Z)(ka,4),qa=la[0],_a=la[1],en=la[2],tn=la[3];we.set(ia,{width:qa,height:_a,left:en,top:tn})}}),we})};(0,a.useEffect)(function(){Aa()},[fe.map(function(he){return he.key}).join("_")]);var oa=Ye(function(){var he=Z(Be),V=Z(De),we=Z(Se);xe([he[0]-V[0]-we[0],he[1]-V[1]-we[1]]);var ft=Z(ae);Qt(ft);var Kt=Z(E);me(Kt);var jt=Z(te);Pt([jt[0]-ft[0],jt[1]-ft[1]]),Aa()}),Ua=fe.slice(0,Ga),Ya=fe.slice(Xa+1),Oa=[].concat((0,Ot.Z)(Ua),(0,Ot.Z)(Ya)),La=aa.get(c),Qa=Y({activeTabOffset:La,horizontal:O,indicator:ie,rtl:s}),Ja=Qa.style;(0,a.useEffect)(function(){wa()},[c,Dt,Ht,gt(La),gt(aa),O]),(0,a.useEffect)(function(){oa()},[s]);var Ma=!!Oa.length,qt="".concat(x,"-nav-wrap"),$a,Ea,Ba,Da;return O?s?(Ea=X>0,$a=X!==Ht):($a=X<0,Ea=X!==Dt):(Ba=tt<0,Da=tt!==Dt),a.createElement(Et.Z,{onResize:oa},a.createElement("div",{ref:(0,m.x1)(t,Be),role:"tablist",className:y()("".concat(x,"-nav"),r),style:i,onKeyDown:function(){ya()}},a.createElement(P,{ref:De,position:"left",extra:d,prefixCls:x}),a.createElement(Et.Z,{onResize:oa},a.createElement("div",{className:y()(qt,(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(qt,"-ping-left"),$a),"".concat(qt,"-ping-right"),Ea),"".concat(qt,"-ping-top"),Ba),"".concat(qt,"-ping-bottom"),Da)),ref:Te},a.createElement(Et.Z,{onResize:oa},a.createElement("div",{ref:te,className:"".concat(x,"-nav-list"),style:{transform:"translate(".concat(X,"px, ").concat(tt,"px)"),transition:na?"none":void 0}},Na,a.createElement(qe,{ref:ae,prefixCls:x,locale:z,editable:g,style:(0,J.Z)((0,J.Z)({},Na.length===0?void 0:ra),{},{visibility:Ma?"hidden":null})}),a.createElement("div",{className:y()("".concat(x,"-ink-bar"),(0,le.Z)({},"".concat(x,"-ink-bar-animated"),l.inkBar)),style:Ja}))))),a.createElement(C,(0,U.Z)({},e,{removeAriaLabel:z==null?void 0:z.removeAriaLabel,ref:E,prefixCls:x,tabs:Oa,className:!Ma&&Va,tabMoving:!!na})),a.createElement(P,{ref:Se,position:"right",extra:d,prefixCls:x})))}),de=Q,G=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.className,o=e.style,l=e.id,c=e.active,s=e.tabKey,d=e.children;return a.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:o,className:y()(r,c&&"".concat(r,"-active"),i),ref:t},d)}),Ee=G,Ze=["renderTabBar"],j=["label","key"],Ie=function(t){var r=t.renderTabBar,i=(0,Ct.Z)(t,Ze),o=a.useContext($t),l=o.tabs;if(r){var c=(0,J.Z)((0,J.Z)({},i),{},{panes:l.map(function(s){var d=s.label,g=s.key,z=(0,Ct.Z)(s,j);return a.createElement(Ee,(0,U.Z)({tab:d,key:g,tabKey:g},z))})});return r(c,de)}return a.createElement(de,i)},We=Ie,Qe=n(82225),I=["key","forceRender","style","className","destroyInactiveTabPane"],q=function(t){var r=t.id,i=t.activeKey,o=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,s=a.useContext($t),d=s.prefixCls,g=s.tabs,z=o.tabPane,F="".concat(d,"-tabpane");return a.createElement("div",{className:y()("".concat(d,"-content-holder"))},a.createElement("div",{className:y()("".concat(d,"-content"),"".concat(d,"-content-").concat(l),(0,le.Z)({},"".concat(d,"-content-animated"),z))},g.map(function(W){var _=W.key,ve=W.forceRender,ee=W.style,ie=W.className,w=W.destroyInactiveTabPane,x=(0,Ct.Z)(W,I),fe=_===i;return a.createElement(Qe.ZP,(0,U.Z)({key:_,visible:fe,forceRender:ve,removeOnLeave:!!(c||w),leavedClassName:"".concat(F,"-hidden")},o.tabPaneMotion),function(Be,De){var Se=Be.style,Te=Be.className;return a.createElement(Ee,(0,U.Z)({},x,{prefixCls:F,id:r,tabKey:_,animated:z,active:fe,style:(0,J.Z)((0,J.Z)({},ee),Se),className:y()(ie,Te),ref:De}))})})))},ot=q,be=n(80334);function Re(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,J.Z)({inkBar:!0},(0,nt.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ze=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],k=0,it=a.forwardRef(function(e,t){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,l=e.className,c=e.items,s=e.direction,d=e.activeKey,g=e.defaultActiveKey,z=e.editable,F=e.animated,W=e.tabPosition,_=W===void 0?"top":W,ve=e.tabBarGutter,ee=e.tabBarStyle,ie=e.tabBarExtraContent,w=e.locale,x=e.moreIcon,fe=e.moreTransitionName,Be=e.destroyInactiveTabPane,De=e.renderTabBar,Se=e.onChange,Te=e.onTabClick,te=e.onTabScroll,E=e.getPopupContainer,ae=e.popupClassName,O=e.indicator,ne=(0,Ct.Z)(e,ze),v=a.useMemo(function(){return(c||[]).filter(function(me){return me&&(0,nt.Z)(me)==="object"&&"key"in me})},[c]),X=s==="rtl",vt=Re(F),et=(0,a.useState)(!1),bt=(0,B.Z)(et,2),tt=bt[0],ht=bt[1];(0,a.useEffect)(function(){ht((0,At.Z)())},[]);var Lt=(0,It.Z)(function(){var me;return(me=v[0])===null||me===void 0?void 0:me.key},{value:d,defaultValue:g}),Tt=(0,B.Z)(Lt,2),H=Tt[0],xe=Tt[1],at=(0,a.useState)(function(){return v.findIndex(function(me){return me.key===H})}),Ge=(0,B.Z)(at,2),ke=Ge[0],Pt=Ge[1];(0,a.useEffect)(function(){var me=v.findIndex(function(Xt){return Xt.key===H});if(me===-1){var Vt;me=Math.max(0,Math.min(ke,v.length-1)),xe((Vt=v[me])===null||Vt===void 0?void 0:Vt.key)}Pt(me)},[v.map(function(me){return me.key}).join("_"),H,ke]);var pt=(0,It.Z)(null,{value:r}),Mt=(0,B.Z)(pt,2),Bt=Mt[0],Qt=Mt[1];(0,a.useEffect)(function(){r||(Qt("rc-tabs-".concat(k)),k+=1)},[]);function ga(me,Vt){Te==null||Te(me,Vt);var Xt=me!==H;xe(me),Xt&&(Se==null||Se(me))}var Jt={id:Bt,activeKey:H,animated:vt,tabPosition:_,rtl:X,mobile:tt},ba=(0,J.Z)((0,J.Z)({},Jt),{},{editable:z,locale:w,moreIcon:x,moreTransitionName:fe,tabBarGutter:ve,onTabClick:ga,onTabScroll:te,extra:ie,style:ee,panes:null,getPopupContainer:E,popupClassName:ae,indicator:O});return a.createElement($t.Provider,{value:{tabs:v,prefixCls:o}},a.createElement("div",(0,U.Z)({ref:t,id:r,className:y()(o,"".concat(o,"-").concat(_),(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(o,"-mobile"),tt),"".concat(o,"-editable"),z),"".concat(o,"-rtl"),X),l)},ne),a.createElement(We,(0,U.Z)({},ba,{renderTabBar:De})),a.createElement(ot,(0,U.Z)({destroyInactiveTabPane:Be},Jt,{animated:vt}))))}),lt=it,oe=lt,M=n(53124),p=n(35792),Me=n(98675),Je=n(33603);const Ke={motionAppear:!1,motionEnter:!0,motionLeave:!0};function st(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},Ke),{motionName:(0,Je.m)(e,"switch")})),r}var _e=n(50344),Rt=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function ct(e){return e.filter(t=>t)}function wt(e,t){if(e)return e;const r=(0,_e.Z)(t).map(i=>{if(a.isValidElement(i)){const{key:o,props:l}=i,c=l||{},{tab:s}=c,d=Rt(c,["tab"]);return Object.assign(Object.assign({key:String(o)},d),{label:s})}return null});return ct(r)}var $=n(54548),ut=n(14747),Ve=n(91945),He=n(45503),Gt=n(67771),Ft=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[(0,Gt.oN)(e,"slide-up"),(0,Gt.oN)(e,"slide-down")]]};const _t=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:i,cardGutter:o,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:i,border:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,$.bf)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,$.bf)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,$.bf)(e.borderRadiusLG)} 0 0 ${(0,$.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dt=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ut.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,$.bf)(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ut.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,$.bf)(e.paddingXXS)} ${(0,$.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wt=e=>{const{componentCls:t,margin:r,colorBorderSecondary:i,horizontalMargin:o,verticalItemPadding:l,verticalItemMargin:c,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,$.bf)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sa=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,$.bf)(e.borderRadius)} 0 0 ${(0,$.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}}}}}},Yt=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:i,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:s,itemColor:d}=e,g=`${t}-tab`;return{[g]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},(0,ut.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${g}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:i},[`&${g}-active ${g}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${g}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${g}-disabled ${g}-btn, &${g}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${g}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${g} + ${g}`]:{margin:{_skip_check_:!0,value:l}}}},ca=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:i,cardGutter:o,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,$.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,$.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,$.bf)(l(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ea=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:i,cardGutter:o,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:i,minHeight:i,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,$.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,ut.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Yt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ua=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var da=(0,Ve.I$)("Tabs",e=>{const t=(0,He.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,$.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,$.bf)(e.horizontalItemGutter)}`});return[sa(t),ca(t),Wt(t),dt(t),_t(t),ea(t),Ft(t)]},ua),va=()=>null,fa=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const ta=e=>{var t,r,i,o,l,c,s,d;const{type:g,className:z,rootClassName:F,size:W,onEdit:_,hideAdd:ve,centered:ee,addIcon:ie,removeIcon:w,moreIcon:x,popupClassName:fe,children:Be,items:De,animated:Se,style:Te,indicatorSize:te,indicator:E}=e,ae=fa(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=ae,{direction:ne,tabs:v,getPrefixCls:X,getPopupContainer:vt}=a.useContext(M.E_),et=X("tabs",O),bt=(0,p.Z)(et),[tt,ht,Lt]=da(et,bt);let Tt;g==="editable-card"&&(Tt={onEdit:(pt,Mt)=>{let{key:Bt,event:Qt}=Mt;_==null||_(pt==="add"?Qt:Bt,pt)},removeIcon:(t=w!=null?w:v==null?void 0:v.removeIcon)!==null&&t!==void 0?t:a.createElement(ye.Z,null),addIcon:(ie!=null?ie:v==null?void 0:v.addIcon)||a.createElement(A,null),showAdd:ve!==!0});const H=X(),xe=(0,Me.Z)(W),at=wt(De,Be),Ge=st(et,Se),ke=Object.assign(Object.assign({},v==null?void 0:v.style),Te),Pt={align:(r=E==null?void 0:E.align)!==null&&r!==void 0?r:(i=v==null?void 0:v.indicator)===null||i===void 0?void 0:i.align,size:(s=(l=(o=E==null?void 0:E.size)!==null&&o!==void 0?o:te)!==null&&l!==void 0?l:(c=v==null?void 0:v.indicator)===null||c===void 0?void 0:c.size)!==null&&s!==void 0?s:v==null?void 0:v.indicatorSize};return tt(a.createElement(oe,Object.assign({direction:ne,getPopupContainer:vt,moreTransitionName:`${H}-slide-up`},ae,{items:at,className:y()({[`${et}-${xe}`]:xe,[`${et}-card`]:["card","editable-card"].includes(g),[`${et}-editable-card`]:g==="editable-card",[`${et}-centered`]:ee},v==null?void 0:v.className,z,F,ht,Lt,bt),popupClassName:y()(fe,ht,Lt,bt),style:ke,editable:Tt,moreIcon:(d=x!=null?x:v==null?void 0:v.moreIcon)!==null&&d!==void 0?d:a.createElement(T.Z,null),prefixCls:et,animated:Ge,indicator:Pt})))};ta.TabPane=va;var ma=ta},82234:function(Nt,je,n){n.d(je,{Z:function(){return f}});var a=n(91),ye=n(1413),T=n(71002),U=n(67294),Ce=["show"];function h(A,L){if(!L.max)return!0;var y=L.strategy(A);return y<=L.max}function f(A,L){return U.useMemo(function(){var y={};L&&(y.show=(0,T.Z)(L)==="object"&&L.formatter?L.formatter:!!L),y=(0,ye.Z)((0,ye.Z)({},y),A);var le=y,J=le.show,B=(0,a.Z)(le,Ce);return(0,ye.Z)((0,ye.Z)({},B),{},{show:!!J,showFormatter:typeof J=="function"?J:void 0,strategy:B.strategy||function(nt){return nt.length}})},[A,L])}},67656:function(Nt,je,n){n.d(je,{Q:function(){return y},Z:function(){return Et}});var a=n(1413),ye=n(87462),T=n(4942),U=n(71002),Ce=n(93967),h=n.n(Ce),f=n(67294),A=n(87887),L=function(m){var Ne,pe,Y=m.inputElement,se=m.children,Ae=m.prefixCls,Xe=m.prefix,Ue=m.suffix,Oe=m.addonBefore,Le=m.addonAfter,St=m.className,xt=m.style,rt=m.disabled,Ye=m.readOnly,zt=m.focused,mt=m.triggerFocus,Fe=m.allowClear,gt=m.value,yt=m.handleReset,Pe=m.hidden,re=m.classes,K=m.classNames,qe=m.dataAttrs,$e=m.styles,P=m.components,u=se!=null?se:Y,ce=(P==null?void 0:P.affixWrapper)||"span",b=(P==null?void 0:P.groupWrapper)||"span",S=(P==null?void 0:P.wrapper)||"span",C=(P==null?void 0:P.groupAddon)||"span",ue=(0,f.useRef)(null),ge=function(ze){var k;(k=ue.current)!==null&&k!==void 0&&k.contains(ze.target)&&(mt==null||mt())},D=(0,A.X3)(m),Z=(0,f.cloneElement)(u,{value:gt,className:h()(u.props.className,!D&&(K==null?void 0:K.variant))||null});if(D){var N,Q=null;if(Fe){var de,G=!rt&&!Ye&>,Ee="".concat(Ae,"-clear-icon"),Ze=(0,U.Z)(Fe)==="object"&&Fe!==null&&Fe!==void 0&&Fe.clearIcon?Fe.clearIcon:"\u2716";Q=f.createElement("span",{onClick:yt,onMouseDown:function(ze){return ze.preventDefault()},className:h()(Ee,(de={},(0,T.Z)(de,"".concat(Ee,"-hidden"),!G),(0,T.Z)(de,"".concat(Ee,"-has-suffix"),!!Ue),de)),role:"button",tabIndex:-1},Ze)}var j="".concat(Ae,"-affix-wrapper"),Ie=h()(j,(N={},(0,T.Z)(N,"".concat(Ae,"-disabled"),rt),(0,T.Z)(N,"".concat(j,"-disabled"),rt),(0,T.Z)(N,"".concat(j,"-focused"),zt),(0,T.Z)(N,"".concat(j,"-readonly"),Ye),(0,T.Z)(N,"".concat(j,"-input-with-clear-btn"),Ue&&Fe&>),N),re==null?void 0:re.affixWrapper,K==null?void 0:K.affixWrapper,K==null?void 0:K.variant),We=(Ue||Fe)&&f.createElement("span",{className:h()("".concat(Ae,"-suffix"),K==null?void 0:K.suffix),style:$e==null?void 0:$e.suffix},Q,Ue);Z=f.createElement(ce,(0,ye.Z)({className:Ie,style:$e==null?void 0:$e.affixWrapper,onClick:ge},qe==null?void 0:qe.affixWrapper,{ref:ue}),Xe&&f.createElement("span",{className:h()("".concat(Ae,"-prefix"),K==null?void 0:K.prefix),style:$e==null?void 0:$e.prefix},Xe),Z,We)}if((0,A.He)(m)){var Qe="".concat(Ae,"-group"),I="".concat(Qe,"-addon"),q="".concat(Qe,"-wrapper"),ot=h()("".concat(Ae,"-wrapper"),Qe,re==null?void 0:re.wrapper,K==null?void 0:K.wrapper),be=h()(q,(0,T.Z)({},"".concat(q,"-disabled"),rt),re==null?void 0:re.group,K==null?void 0:K.groupWrapper);Z=f.createElement(b,{className:be},f.createElement(S,{className:ot},Oe&&f.createElement(C,{className:I},Oe),Z,Le&&f.createElement(C,{className:I},Le)))}return f.cloneElement(Z,{className:h()((Ne=Z.props)===null||Ne===void 0?void 0:Ne.className,St)||null,style:(0,a.Z)((0,a.Z)({},(pe=Z.props)===null||pe===void 0?void 0:pe.style),xt),hidden:Pe})},y=L,le=n(74902),J=n(97685),B=n(91),nt=n(21770),Ct=n(98423),It=n(82234),At=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$t=(0,f.forwardRef)(function(R,m){var Ne=R.autoComplete,pe=R.onChange,Y=R.onFocus,se=R.onBlur,Ae=R.onPressEnter,Xe=R.onKeyDown,Ue=R.prefixCls,Oe=Ue===void 0?"rc-input":Ue,Le=R.disabled,St=R.htmlSize,xt=R.className,rt=R.maxLength,Ye=R.suffix,zt=R.showCount,mt=R.count,Fe=R.type,gt=Fe===void 0?"text":Fe,yt=R.classes,Pe=R.classNames,re=R.styles,K=R.onCompositionStart,qe=R.onCompositionEnd,$e=(0,B.Z)(R,At),P=(0,f.useState)(!1),u=(0,J.Z)(P,2),ce=u[0],b=u[1],S=(0,f.useRef)(!1),C=(0,f.useRef)(null),ue=function(p){C.current&&(0,A.nH)(C.current,p)},ge=(0,nt.Z)(R.defaultValue,{value:R.value}),D=(0,J.Z)(ge,2),Z=D[0],N=D[1],Q=Z==null?"":String(Z),de=(0,f.useState)(null),G=(0,J.Z)(de,2),Ee=G[0],Ze=G[1],j=(0,It.Z)(mt,zt),Ie=j.max||rt,We=j.strategy(Q),Qe=!!Ie&&We>Ie;(0,f.useImperativeHandle)(m,function(){return{focus:ue,blur:function(){var p;(p=C.current)===null||p===void 0||p.blur()},setSelectionRange:function(p,Me,Je){var Ke;(Ke=C.current)===null||Ke===void 0||Ke.setSelectionRange(p,Me,Je)},select:function(){var p;(p=C.current)===null||p===void 0||p.select()},input:C.current}}),(0,f.useEffect)(function(){b(function(M){return M&&Le?!1:M})},[Le]);var I=function(p,Me,Je){var Ke=Me;if(!S.current&&j.exceedFormatter&&j.max&&j.strategy(Me)>j.max){if(Ke=j.exceedFormatter(Me,{max:j.max}),Me!==Ke){var st,_e;Ze([((st=C.current)===null||st===void 0?void 0:st.selectionStart)||0,((_e=C.current)===null||_e===void 0?void 0:_e.selectionEnd)||0])}}else if(Je.source==="compositionEnd")return;N(Ke),C.current&&(0,A.rJ)(C.current,p,pe,Ke)};(0,f.useEffect)(function(){if(Ee){var M;(M=C.current)===null||M===void 0||M.setSelectionRange.apply(M,(0,le.Z)(Ee))}},[Ee]);var q=function(p){I(p,p.target.value,{source:"change"})},ot=function(p){S.current=!1,I(p,p.currentTarget.value,{source:"compositionEnd"}),qe==null||qe(p)},be=function(p){Ae&&p.key==="Enter"&&Ae(p),Xe==null||Xe(p)},Re=function(p){b(!0),Y==null||Y(p)},ze=function(p){b(!1),se==null||se(p)},k=function(p){N(""),ue(),C.current&&(0,A.rJ)(C.current,p,pe)},it=Qe&&"".concat(Oe,"-out-of-range"),lt=function(){var p=(0,Ct.Z)(R,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return f.createElement("input",(0,ye.Z)({autoComplete:Ne},p,{onChange:q,onFocus:Re,onBlur:ze,onKeyDown:be,className:h()(Oe,(0,T.Z)({},"".concat(Oe,"-disabled"),Le),Pe==null?void 0:Pe.input),style:re==null?void 0:re.input,ref:C,size:St,type:gt,onCompositionStart:function(Je){S.current=!0,K==null||K(Je)},onCompositionEnd:ot}))},oe=function(){var p=Number(Ie)>0;if(Ye||j.show){var Me=j.showFormatter?j.showFormatter({value:Q,count:We,maxLength:Ie}):"".concat(We).concat(p?" / ".concat(Ie):"");return f.createElement(f.Fragment,null,j.show&&f.createElement("span",{className:h()("".concat(Oe,"-show-count-suffix"),(0,T.Z)({},"".concat(Oe,"-show-count-has-suffix"),!!Ye),Pe==null?void 0:Pe.count),style:(0,a.Z)({},re==null?void 0:re.count)},Me),Ye)}return null};return f.createElement(y,(0,ye.Z)({},$e,{prefixCls:Oe,className:h()(xt,it),handleReset:k,value:Q,focused:ce,triggerFocus:ue,suffix:oe(),disabled:Le,classes:yt,classNames:Pe,styles:re}),lt())}),Ot=$t,Et=Ot},87887:function(Nt,je,n){n.d(je,{He:function(){return a},X3:function(){return ye},nH:function(){return Ce},rJ:function(){return U}});function a(h){return!!(h.addonBefore||h.addonAfter)}function ye(h){return!!(h.prefix||h.suffix||h.allowClear)}function T(h,f,A){var L=f.cloneNode(!0),y=Object.create(h,{target:{value:L},currentTarget:{value:L}});return L.value=A,typeof f.selectionStart=="number"&&typeof f.selectionEnd=="number"&&(L.selectionStart=f.selectionStart,L.selectionEnd=f.selectionEnd),y}function U(h,f,A,L){if(A){var y=f;if(f.type==="click"){y=T(f,h,""),A(y);return}if(h.type!=="file"&&L!==void 0){y=T(f,h,L),A(y);return}A(y)}}function Ce(h,f){if(h){h.focus(f);var A=f||{},L=A.cursor;if(L){var y=h.value.length;switch(L){case"start":h.setSelectionRange(0,0);break;case"end":h.setSelectionRange(y,y);break;default:h.setSelectionRange(0,y)}}}}}}]);
|
|
|