vendors~p__AuthenticationCenter__NamespaceManager~p__AuthenticationCenter__RoleManager~p__Authentica~f2f06bd8.043d8e48.async.js 47 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"9ama":function(Rt,Ye,j){},ZTPi:function(Rt,Ye,j){"use strict";var x=j("rePB"),V=j("wx14"),Ae=j("4i/N"),st=j("GZ0F"),ut=j("xvlK"),et=j("TSYQ"),Y=j.n(et),w=j("VTBJ"),K=j("ODXe"),pe=j("U8pU"),U=j("Ff2n"),t=j("q1tI"),Ht=j("5Z9U"),ze=j("6cGi"),Nt=j("8XRh"),Re=Object(t.createContext)(null),Gt=t.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,a=e.style,o=e.id,l=e.active,c=e.tabKey,s=e.children;return t.createElement("div",{id:o&&"".concat(o,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(c),"aria-hidden":!l,style:a,className:Y()(r,l&&"".concat(r,"-active"),i),ref:n},s)}),Je=Gt,dt=["key","forceRender","style","className"];function Tt(e){var n=e.id,r=e.activeKey,i=e.animated,a=e.tabPosition,o=e.destroyInactiveTabPane,l=t.useContext(Re),c=l.prefixCls,s=l.tabs,u=i.tabPane,v="".concat(c,"-tabpane");return t.createElement("div",{className:Y()("".concat(c,"-content-holder"))},t.createElement("div",{className:Y()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),Object(x.a)({},"".concat(c,"-content-animated"),u))},s.map(function(d){var f=d.key,p=d.forceRender,b=d.style,h=d.className,I=Object(U.a)(d,dt),N=f===r;return t.createElement(Nt.b,Object(V.a)({key:f,visible:N,forceRender:p,removeOnLeave:!!o,leavedClassName:"".concat(v,"-hidden")},i.tabPaneMotion),function(E,O){var y=E.style,M=E.className;return t.createElement(Je,Object(V.a)({},I,{prefixCls:v,id:n,tabKey:f,animated:u,active:N,style:Object(w.a)(Object(w.a)({},b),y),className:Y()(h,M),ref:O}))})})))}var Ue=j("KQm4"),dn=j("t23M"),ta=j("mBDr"),Fe=j("wgJM"),vn=j("c+Xe"),fn={width:0,height:0,left:0,top:0};function na(e,n,r){return Object(t.useMemo)(function(){for(var i,a=new Map,o=n.get((i=e[0])===null||i===void 0?void 0:i.key)||fn,l=o.left+o.width,c=0;c<e.length;c+=1){var s=e[c].key,u=n.get(s);if(!u){var v;u=n.get((v=e[c-1])===null||v===void 0?void 0:v.key)||fn}var d=a.get(s)||Object(w.a)({},u);d.right=l-d.left-d.width,a.set(s,d)}return a},[e.map(function(i){return i.key}).join("_"),n,r])}function bn(e,n){var r=t.useRef(e),i=t.useState({}),a=Object(K.a)(i,2),o=a[1];function l(c){var s=typeof c=="function"?c(r.current):c;s!==r.current&&n(s,r.current),r.current=s,o({})}return[r.current,l]}var aa=.1,mn=.01,wt=20,pn=Math.pow(.995,wt);function ra(e,n){var r=Object(t.useState)(),i=Object(K.a)(r,2),a=i[0],o=i[1],l=Object(t.useState)(0),c=Object(K.a)(l,2),s=c[0],u=c[1],v=Object(t.useState)(0),d=Object(K.a)(v,2),f=d[0],p=d[1],b=Object(t.useState)(),h=Object(K.a)(b,2),I=h[0],N=h[1],E=Object(t.useRef)();function O(m){var A=m.touches[0],C=A.screenX,T=A.screenY;o({x:C,y:T}),window.clearInterval(E.current)}function y(m){if(!!a){m.preventDefault();var A=m.touches[0],C=A.screenX,T=A.screenY;o({x:C,y:T});var k=C-a.x,L=T-a.y;n(k,L);var F=Date.now();u(F),p(F-s),N({x:k,y:L})}}function M(){if(!!a&&(o(null),N(null),I)){var m=I.x/f,A=I.y/f,C=Math.abs(m),T=Math.abs(A);if(Math.max(C,T)<aa)return;var k=m,L=A;E.current=window.setInterval(function(){if(Math.abs(k)<mn&&Math.abs(L)<mn){window.clearInterval(E.current);return}k*=pn,L*=pn,n(k*wt,L*wt)},wt)}}var g=Object(t.useRef)();function P(m){var A=m.deltaX,C=m.deltaY,T=0,k=Math.abs(A),L=Math.abs(C);k===L?T=g.current==="x"?A:C:k>L?(T=A,g.current="x"):(T=C,g.current="y"),n(-T,-T)&&m.preventDefault()}var D=Object(t.useRef)(null);D.current={onTouchStart:O,onTouchMove:y,onTouchEnd:M,onWheel:P},t.useEffect(function(){function m(k){D.current.onTouchStart(k)}function A(k){D.current.onTouchMove(k)}function C(k){D.current.onTouchEnd(k)}function T(k){D.current.onWheel(k)}return document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",C,{passive:!1}),e.current.addEventListener("touchstart",m,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",A),document.removeEventListener("touchend",C)}},[])}var ia=j("TNol");function hn(e){var n=Object(t.useState)(0),r=Object(K.a)(n,2),i=r[0],a=r[1],o=Object(t.useRef)(0),l=Object(t.useRef)();return l.current=e,Object(ia.b)(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[i]),function(){o.current===i&&(o.current+=1,a(o.current))}}function oa(e){var n=Object(t.useRef)([]),r=Object(t.useState)({}),i=Object(K.a)(r,2),a=i[1],o=Object(t.useRef)(typeof e=="function"?e():e),l=hn(function(){var s=o.current;n.current.forEach(function(u){s=u(s)}),n.current=[],o.current=s,a({})});function c(s){n.current.push(s),l()}return[o.current,c]}var gn={width:0,height:0,left:0,top:0,right:0};function la(e,n,r,i,a,o,l){var c=l.tabs,s=l.tabPosition,u=l.rtl,v,d,f;return["top","bottom"].includes(s)?(v="width",d=u?"right":"left",f=Math.abs(r)):(v="height",d="top",f=-r),Object(t.useMemo)(function(){if(!c.length)return[0,0];for(var p=c.length,b=p,h=0;h<p;h+=1){var I=e.get(c[h].key)||gn;if(I[d]+I[v]>f+n){b=h-1;break}}for(var N=0,E=p-1;E>=0;E-=1){var O=e.get(c[E].key)||gn;if(O[d]<f){N=E+1;break}}return[N,b]},[e,n,i,a,o,f,s,c.map(function(p){return p.key}).join("_"),u])}function On(e){var n;return e instanceof Map?(n={},e.forEach(function(r,i){n[i]=r})):n=e,JSON.stringify(n)}var ca="TABS_DQ";function yn(e){return String(e).replace(/"/g,ca)}function sa(e,n){var r=e.prefixCls,i=e.editable,a=e.locale,o=e.style;return!i||i.showAdd===!1?null:t.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(c){i.onEdit("add",{event:c})}},i.addIcon||"+")}var Cn=t.forwardRef(sa),ua=t.forwardRef(function(e,n){var r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var o,l={};return Object(pe.a)(a)==="object"&&!t.isValidElement(a)?l=a:l.right=a,r==="right"&&(o=l.right),r==="left"&&(o=l.left),o?t.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}),jn=ua,Sn=j("uciX"),tt={adjustX:1,adjustY:1},nt=[0,0],da={topLeft:{points:["bl","tl"],overflow:tt,offset:[0,-4],targetOffset:nt},topCenter:{points:["bc","tc"],overflow:tt,offset:[0,-4],targetOffset:nt},topRight:{points:["br","tr"],overflow:tt,offset:[0,-4],targetOffset:nt},bottomLeft:{points:["tl","bl"],overflow:tt,offset:[0,4],targetOffset:nt},bottomCenter:{points:["tc","bc"],overflow:tt,offset:[0,4],targetOffset:nt},bottomRight:{points:["tr","br"],overflow:tt,offset:[0,4],targetOffset:nt}},va=da,ee=j("4IlW"),En=j("qE6j"),fa=ee.a.ESC,ba=ee.a.TAB;function ma(e){var n=e.visible,r=e.setTriggerVisible,i=e.triggerRef,a=e.onVisibleChange,o=e.autoFocus,l=t.useRef(!1),c=function(){if(n&&i.current){var d,f,p,b;(d=i.current)===null||d===void 0||(f=d.triggerRef)===null||f===void 0||(p=f.current)===null||p===void 0||(b=p.focus)===null||b===void 0||b.call(p),r(!1),typeof a=="function"&&a(!1)}},s=function(){var d,f,p,b,h=Object(En.a)((d=i.current)===null||d===void 0||(f=d.popupRef)===null||f===void 0||(p=f.current)===null||p===void 0||(b=p.getElement)===null||b===void 0?void 0:b.call(p)),I=h[0];return(I==null?void 0:I.focus)?(I.focus(),l.current=!0,!0):!1},u=function(d){switch(d.keyCode){case fa:c();break;case ba:{var f=!1;l.current||(f=s()),f?d.preventDefault():c();break}}};t.useEffect(function(){return n?(window.addEventListener("keydown",u),o&&Object(Fe.a)(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[n])}var pa=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function ha(e,n){var r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,s=e.align,u=e.placement,v=u===void 0?"bottomLeft":u,d=e.placements,f=d===void 0?va:d,p=e.getPopupContainer,b=e.showAction,h=e.hideAction,I=e.overlayClassName,N=e.overlayStyle,E=e.visible,O=e.trigger,y=O===void 0?["hover"]:O,M=e.autoFocus,g=Object(U.a)(e,pa),P=t.useState(),D=Object(K.a)(P,2),m=D[0],A=D[1],C="visible"in e?E:m,T=t.useRef(null);t.useImperativeHandle(n,function(){return T.current}),ma({visible:C,setTriggerVisible:A,triggerRef:T,onVisibleChange:e.onVisibleChange,autoFocus:M});var k=function(){var S=e.overlay,$;return typeof S=="function"?$=S():$=S,$},L=function(S){var $=e.onOverlayClick;A(!1),$&&$(S)},F=function(S){var $=e.onVisibleChange;A(S),typeof $=="function"&&$(S)},Z=function(){var S=k();return t.createElement(t.Fragment,null,i&&t.createElement("div",{className:"".concat(o,"-arrow")}),S)},G=function(){var S=e.overlay;return typeof S=="function"?Z:Z()},J=function(){var S=e.minOverlayWidthMatchTrigger,$=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?S:!$},ie=function(){var S=e.openClassName;return S!==void 0?S:"".concat(o,"-open")},le=function(){var S=e.children,$=S.props?S.props:{},W=Y()($.className,ie());return C&&S?t.cloneElement(S,{className:W}):S},te=h;return!te&&y.indexOf("contextMenu")!==-1&&(te=["click"]),t.createElement(Sn.a,Object(w.a)(Object(w.a)({builtinPlacements:f},g),{},{prefixCls:o,ref:T,popupClassName:Y()(I,Object(x.a)({},"".concat(o,"-show-arrow"),i)),popupStyle:N,action:y,showAction:b,hideAction:te||[],popupPlacement:v,popupAlign:s,popupTransitionName:l,popupAnimation:c,popupVisible:C,stretch:J()?"minWidth":"",popup:G(),onPopupVisibleChange:F,onPopupClick:L,getPopupContainer:p}),le())}var ga=t.forwardRef(ha),Oa=ga,vt=j("8z13"),xn=j("Kwbf"),ya=j("i8i4"),In=j("Wfw6"),Pn=t.createContext(null);function Xt(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function Mn(e){var n=t.useContext(Pn);return Xt(n,e)}var Ca=j("YrtM"),ja=["children","locked"],Ee=t.createContext(null);function Sa(e,n){var r=Object(w.a)({},e);return Object.keys(n).forEach(function(i){var a=n[i];a!==void 0&&(r[i]=a)}),r}function ft(e){var n=e.children,r=e.locked,i=Object(U.a)(e,ja),a=t.useContext(Ee),o=Object(Ca.a)(function(){return Sa(a,i)},[a,i],function(l,c){return!r&&(l[0]!==c[0]||!Object(In.a)(l[1],c[1],!0))});return t.createElement(Ee.Provider,{value:o},n)}var Ea=[],Rn=t.createContext(null);function Kt(){return t.useContext(Rn)}var Nn=t.createContext(Ea);function bt(e){var n=t.useContext(Nn);return t.useMemo(function(){return e!==void 0?[].concat(Object(Ue.a)(n),[e]):n},[n,e])}var Tn=t.createContext(null),xa=t.createContext({}),Yt=xa,Jt=ee.a.LEFT,Zt=ee.a.RIGHT,Qt=ee.a.UP,At=ee.a.DOWN,kt=ee.a.ENTER,wn=ee.a.ESC,mt=ee.a.HOME,pt=ee.a.END,Kn=[Qt,At,Jt,Zt];function Ia(e,n,r,i){var a,o,l,c,s="prev",u="next",v="children",d="parent";if(e==="inline"&&i===kt)return{inlineTrigger:!0};var f=(a={},Object(x.a)(a,Qt,s),Object(x.a)(a,At,u),a),p=(o={},Object(x.a)(o,Jt,r?u:s),Object(x.a)(o,Zt,r?s:u),Object(x.a)(o,At,v),Object(x.a)(o,kt,v),o),b=(l={},Object(x.a)(l,Qt,s),Object(x.a)(l,At,u),Object(x.a)(l,kt,v),Object(x.a)(l,wn,d),Object(x.a)(l,Jt,r?v:d),Object(x.a)(l,Zt,r?d:v),l),h={inline:f,horizontal:p,vertical:b,inlineSub:f,horizontalSub:b,verticalSub:b},I=(c=h["".concat(e).concat(n?"":"Sub")])===null||c===void 0?void 0:c[i];switch(I){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case v:return{offset:1,sibling:!1};default:return null}}function Pa(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Ma(e,n){for(var r=e||document.activeElement;r;){if(n.has(r))return r;r=r.parentElement}return null}function An(e,n){var r=Object(En.a)(e,!0);return r.filter(function(i){return n.has(i)})}function kn(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=An(e,n),o=a.length,l=a.findIndex(function(c){return r===c});return i<0?l===-1?l=o-1:l-=1:i>0&&(l+=1),l=(l+o)%o,a[l]}function Ra(e,n,r,i,a,o,l,c,s,u){var v=t.useRef(),d=t.useRef();d.current=n;var f=function(){Fe.a.cancel(v.current)};return t.useEffect(function(){return function(){f()}},[]),function(p){var b=p.which;if([].concat(Kn,[kt,wn,mt,pt]).includes(b)){var h,I,N,E=function(){h=new Set,I=new Map,N=new Map;var F=o();return F.forEach(function(Z){var G=document.querySelector("[data-menu-id='".concat(Xt(i,Z),"']"));G&&(h.add(G),N.set(G,Z),I.set(Z,G))}),h};E();var O=I.get(n),y=Ma(O,h),M=N.get(y),g=Ia(e,l(M,!0).length===1,r,b);if(!g&&b!==mt&&b!==pt)return;(Kn.includes(b)||[mt,pt].includes(b))&&p.preventDefault();var P=function(F){if(F){var Z=F,G=F.querySelector("a");G!=null&&G.getAttribute("href")&&(Z=G);var J=N.get(F);c(J),f(),v.current=Object(Fe.a)(function(){d.current===J&&Z.focus()})}};if([mt,pt].includes(b)||g.sibling||!y){var D;!y||e==="inline"?D=a.current:D=Pa(y);var m,A=An(D,h);b===mt?m=A[0]:b===pt?m=A[A.length-1]:m=kn(D,h,y,g.offset),P(m)}else if(g.inlineTrigger)s(M);else if(g.offset>0)s(M,!0),f(),v.current=Object(Fe.a)(function(){E();var L=y.getAttribute("aria-controls"),F=document.getElementById(L),Z=kn(F,h);P(Z)},5);else if(g.offset<0){var C=l(M,!0),T=C[C.length-2],k=I.get(T);s(T,!1),P(k)}}u==null||u(p)}}function Na(e){Promise.resolve().then(e)}var _t="__RC_UTIL_PATH_SPLIT__",Ln=function(n){return n.join(_t)},Ta=function(n){return n.split(_t)},qt="rc-menu-more";function wa(){var e=t.useState({}),n=Object(K.a)(e,2),r=n[1],i=Object(t.useRef)(new Map),a=Object(t.useRef)(new Map),o=t.useState([]),l=Object(K.a)(o,2),c=l[0],s=l[1],u=Object(t.useRef)(0),v=Object(t.useRef)(!1),d=function(){v.current||r({})},f=Object(t.useCallback)(function(O,y){var M=Ln(y);a.current.set(M,O),i.current.set(O,M),u.current+=1;var g=u.current;Na(function(){g===u.current&&d()})},[]),p=Object(t.useCallback)(function(O,y){var M=Ln(y);a.current.delete(M),i.current.delete(O)},[]),b=Object(t.useCallback)(function(O){s(O)},[]),h=Object(t.useCallback)(function(O,y){var M=i.current.get(O)||"",g=Ta(M);return y&&c.includes(g[0])&&g.unshift(qt),g},[c]),I=Object(t.useCallback)(function(O,y){return O.some(function(M){var g=h(M,!0);return g.includes(y)})},[h]),N=function(){var y=Object(Ue.a)(i.current.keys());return c.length&&y.push(qt),y},E=Object(t.useCallback)(function(O){var y="".concat(i.current.get(O)).concat(_t),M=new Set;return Object(Ue.a)(a.current.keys()).forEach(function(g){g.startsWith(y)&&M.add(a.current.get(g))}),M},[]);return t.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:b,isSubPathKey:I,getKeyPath:h,getKeys:N,getSubPathKeys:E}}function at(e){var n=t.useRef(e);n.current=e;var r=t.useCallback(function(){for(var i,a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return(i=n.current)===null||i===void 0?void 0:i.call.apply(i,[n].concat(o))},[]);return e?r:void 0}var Ka=Math.random().toFixed(5).toString().slice(2),Dn=0;function Aa(e){var n=Object(ze.a)(e,{value:e}),r=Object(K.a)(n,2),i=r[0],a=r[1];return t.useEffect(function(){Dn+=1;var o="".concat(Ka,"-").concat(Dn);a("rc-menu-uuid-".concat(o))},[]),i}var ka=j("1OyB"),La=j("vuIU"),Da=j("Ji7U"),Ba=j("LK+K"),Bn=j("bT9E");function Vn(e,n,r,i){var a=t.useContext(Ee),o=a.activeKey,l=a.onActive,c=a.onInactive,s={active:o===e};return n||(s.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),l(e)},s.onMouseLeave=function(u){i==null||i({key:e,domEvent:u}),c(e)}),s}function $n(e){var n=t.useContext(Ee),r=n.mode,i=n.rtl,a=n.inlineIndent;if(r!=="inline")return null;var o=e;return i?{paddingRight:o*a}:{paddingLeft:o*a}}function zn(e){var n=e.icon,r=e.props,i=e.children,a;return typeof n=="function"?a=t.createElement(n,Object(w.a)({},r)):a=n,a||i||null}var Va=["item"];function Lt(e){var n=e.item,r=Object(U.a)(e,Va);return Object.defineProperty(r,"item",{get:function(){return Object(xn.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),r}var $a=["title","attribute","elementRef"],za=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ua=["active"],Fa=function(e){Object(Da.a)(r,e);var n=Object(Ba.a)(r);function r(){return Object(ka.a)(this,r),n.apply(this,arguments)}return Object(La.a)(r,[{key:"render",value:function(){var a=this.props,o=a.title,l=a.attribute,c=a.elementRef,s=Object(U.a)(a,$a),u=Object(Bn.a)(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Object(xn.a)(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(vt.a.Item,Object(V.a)({},l,{title:typeof o=="string"?o:void 0},u,{ref:c}))}}]),r}(t.Component),Wa=t.forwardRef(function(e,n){var r,i=e.style,a=e.className,o=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,v=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,b=e.onKeyDown,h=e.onFocus,I=Object(U.a)(e,za),N=Mn(o),E=t.useContext(Ee),O=E.prefixCls,y=E.onItemClick,M=E.disabled,g=E.overflowDisabled,P=E.itemIcon,D=E.selectedKeys,m=E.onActive,A=t.useContext(Yt),C=A._internalRenderMenuItem,T="".concat(O,"-item"),k=t.useRef(),L=t.useRef(),F=M||c,Z=Object(vn.d)(n,L),G=bt(o),J=function(ae){return{key:o,keyPath:Object(Ue.a)(G).reverse(),item:k.current,domEvent:ae}},ie=s||P,le=Vn(o,F,d,f),te=le.active,R=Object(U.a)(le,Ua),S=D.includes(o),$=$n(G.length),W=function(ae){if(!F){var re=J(ae);p==null||p(Lt(re)),y(re)}},_=function(ae){if(b==null||b(ae),ae.which===ee.a.ENTER){var re=J(ae);p==null||p(Lt(re)),y(re)}},ye=function(ae){m(o),h==null||h(ae)},fe={};e.role==="option"&&(fe["aria-selected"]=S);var he=t.createElement(Fa,Object(V.a)({ref:k,elementRef:Z,role:v===null?"none":v||"menuitem",tabIndex:c?null:-1,"data-menu-id":g&&N?null:N},I,R,fe,{component:"li","aria-disabled":c,style:Object(w.a)(Object(w.a)({},$),i),className:Y()(T,(r={},Object(x.a)(r,"".concat(T,"-active"),te),Object(x.a)(r,"".concat(T,"-selected"),S),Object(x.a)(r,"".concat(T,"-disabled"),F),r),a),onClick:W,onKeyDown:_,onFocus:ye}),u,t.createElement(zn,{props:Object(w.a)(Object(w.a)({},e),{},{isSelected:S}),icon:ie}));return C&&(he=C(he,e,{selected:S})),he});function Ha(e,n){var r=e.eventKey,i=Kt(),a=bt(r);return t.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]),i?null:t.createElement(Wa,Object(V.a)({},e,{ref:n}))}var Dt=t.forwardRef(Ha),Ga=["className","children"],Xa=function(n,r){var i=n.className,a=n.children,o=Object(U.a)(n,Ga),l=t.useContext(Ee),c=l.prefixCls,s=l.mode,u=l.rtl;return t.createElement("ul",Object(V.a)({className:Y()(c,u&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat(s==="inline"?"inline":"vertical"),i),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},Un=t.forwardRef(Xa);Un.displayName="SubMenuList";var Fn=Un,Wn=j("Zm9Q"),Ya=["label","children","key","type"];function en(e,n){return Object(Wn.a)(e).map(function(r,i){if(t.isValidElement(r)){var a,o,l=r.key,c=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:l,s=c==null;s&&(c="tmp_key-".concat([].concat(Object(Ue.a)(n),[i]).join("-")));var u={key:c,eventKey:c};return t.cloneElement(r,u)}return r})}function tn(e){return(e||[]).map(function(n,r){if(n&&Object(pe.a)(n)==="object"){var i=n,a=i.label,o=i.children,l=i.key,c=i.type,s=Object(U.a)(i,Ya),u=l!=null?l:"tmp-".concat(r);return o||c==="group"?c==="group"?t.createElement(Xn,Object(V.a)({key:u},s,{title:a}),tn(o)):t.createElement(nn,Object(V.a)({key:u},s,{title:a}),tn(o)):c==="divider"?t.createElement(Yn,Object(V.a)({key:u},s)):t.createElement(Dt,Object(V.a)({key:u},s),a)}return null}).filter(function(n){return n})}function Ja(e,n,r){var i=e;return n&&(i=tn(n)),en(i,r)}var We={adjustX:1,adjustY:1},Hn={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},Za={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:We,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:We,offset:[4,0]}},Yr=Hn;function Gn(e,n,r){if(n)return n;if(r)return r[e]||r.other}var Qa={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function _a(e){var n=e.prefixCls,r=e.visible,i=e.children,a=e.popup,o=e.popupClassName,l=e.popupOffset,c=e.disabled,s=e.mode,u=e.onVisibleChange,v=t.useContext(Ee),d=v.getPopupContainer,f=v.rtl,p=v.subMenuOpenDelay,b=v.subMenuCloseDelay,h=v.builtinPlacements,I=v.triggerSubMenuAction,N=v.forceSubMenuRender,E=v.rootClassName,O=v.motion,y=v.defaultMotions,M=t.useState(!1),g=Object(K.a)(M,2),P=g[0],D=g[1],m=f?Object(w.a)(Object(w.a)({},Za),h):Object(w.a)(Object(w.a)({},Hn),h),A=Qa[s],C=Gn(s,O,y),T=t.useRef(C);s!=="inline"&&(T.current=C);var k=Object(w.a)(Object(w.a)({},T.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=t.useRef();return t.useEffect(function(){return L.current=Object(Fe.a)(function(){D(r)}),function(){Fe.a.cancel(L.current)}},[r]),t.createElement(Sn.a,{prefixCls:n,popupClassName:Y()("".concat(n,"-popup"),Object(x.a)({},"".concat(n,"-rtl"),f),o,E),stretch:s==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:m,popupPlacement:A,popupVisible:P,popup:a,popupAlign:l&&{offset:l},action:c?[]:[I],mouseEnterDelay:p,mouseLeaveDelay:b,onPopupVisibleChange:u,forceRender:N,popupMotion:k},i)}function qa(e){var n=e.id,r=e.open,i=e.keyPath,a=e.children,o="inline",l=t.useContext(Ee),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,v=l.defaultMotions,d=l.mode,f=t.useRef(!1);f.current=d===o;var p=t.useState(!f.current),b=Object(K.a)(p,2),h=b[0],I=b[1],N=f.current?r:!1;t.useEffect(function(){f.current&&I(!1)},[d]);var E=Object(w.a)({},Gn(o,u,v));i.length>1&&(E.motionAppear=!1);var O=E.onVisibleChanged;return E.onVisibleChanged=function(y){return!f.current&&!y&&I(!0),O==null?void 0:O(y)},h?null:t.createElement(ft,{mode:o,locked:!f.current},t.createElement(Nt.b,Object(V.a)({visible:N},E,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(y){var M=y.className,g=y.style;return t.createElement(Fn,{id:n,className:M,style:g},a)}))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(n){var r,i=n.style,a=n.className,o=n.title,l=n.eventKey,c=n.warnKey,s=n.disabled,u=n.internalPopupClose,v=n.children,d=n.itemIcon,f=n.expandIcon,p=n.popupClassName,b=n.popupOffset,h=n.onClick,I=n.onMouseEnter,N=n.onMouseLeave,E=n.onTitleClick,O=n.onTitleMouseEnter,y=n.onTitleMouseLeave,M=Object(U.a)(n,er),g=Mn(l),P=t.useContext(Ee),D=P.prefixCls,m=P.mode,A=P.openKeys,C=P.disabled,T=P.overflowDisabled,k=P.activeKey,L=P.selectedKeys,F=P.itemIcon,Z=P.expandIcon,G=P.onItemClick,J=P.onOpenChange,ie=P.onActive,le=t.useContext(Yt),te=le._internalRenderSubMenuItem,R=t.useContext(Tn),S=R.isSubPathKey,$=bt(),W="".concat(D,"-submenu"),_=C||s,ye=t.useRef(),fe=t.useRef(),he=d||F,Ce=f||Z,ae=A.includes(l),re=!T&&ae,Ne=S(L,l),He=Vn(l,_,O,y),xe=He.active,H=Object(U.a)(He,tr),je=t.useState(!1),ke=Object(K.a)(je,2),gt=ke[0],Le=ke[1],De=function(ve){_||Le(ve)},Be=function(ve){De(!0),I==null||I({key:l,domEvent:ve})},be=function(ve){De(!1),N==null||N({key:l,domEvent:ve})},Ze=t.useMemo(function(){return xe||(m!=="inline"?gt||S([k],l):!1)},[m,xe,k,gt,l,S]),Qe=$n($.length),ce=function(ve){_||(E==null||E({key:l,domEvent:ve}),m==="inline"&&J(l,!ae))},Ot=at(function(de){h==null||h(Lt(de)),G(de)}),se=function(ve){m!=="inline"&&J(l,ve)},ge=function(){ie(l)},Ie=g&&"".concat(g,"-popup"),Ge=t.createElement("div",Object(V.a)({role:"menuitem",style:Qe,className:"".concat(W,"-title"),tabIndex:_?null:-1,ref:ye,title:typeof o=="string"?o:null,"data-menu-id":T&&g?null:g,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":_,onClick:ce,onFocus:ge},H),o,t.createElement(zn,{icon:m!=="horizontal"?Ce:null,props:Object(w.a)(Object(w.a)({},n),{},{isOpen:re,isSubMenu:!0})},t.createElement("i",{className:"".concat(W,"-arrow")}))),Xe=t.useRef(m);if(m!=="inline"&&$.length>1?Xe.current="vertical":Xe.current=m,!T){var ue=Xe.current;Ge=t.createElement(_a,{mode:ue,prefixCls:W,visible:!u&&re&&m!=="inline",popupClassName:p,popupOffset:b,popup:t.createElement(ft,{mode:ue==="horizontal"?"vertical":ue},t.createElement(Fn,{id:Ie,ref:fe},v)),disabled:_,onVisibleChange:se},Ge)}var Pe=t.createElement(vt.a.Item,Object(V.a)({role:"none"},M,{component:"li",style:i,className:Y()(W,"".concat(W,"-").concat(m),a,(r={},Object(x.a)(r,"".concat(W,"-open"),re),Object(x.a)(r,"".concat(W,"-active"),Ze),Object(x.a)(r,"".concat(W,"-selected"),Ne),Object(x.a)(r,"".concat(W,"-disabled"),_),r)),onMouseEnter:Be,onMouseLeave:be}),Ge,!T&&t.createElement(qa,{id:Ie,open:re,keyPath:$},v));return te&&(Pe=te(Pe,n,{selected:Ne,active:Ze,open:re,disabled:_})),t.createElement(ft,{onItemClick:Ot,mode:m==="horizontal"?"vertical":m,itemIcon:he,expandIcon:Ce},Pe)};function nn(e){var n=e.eventKey,r=e.children,i=bt(n),a=en(r,i),o=Kt();t.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var l;return o?l=a:l=t.createElement(nr,e,a),t.createElement(Nn.Provider,{value:i},l)}var ar=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],rt=[],rr=t.forwardRef(function(e,n){var r,i,a=e,o=a.prefixCls,l=o===void 0?"rc-menu":o,c=a.rootClassName,s=a.style,u=a.className,v=a.tabIndex,d=v===void 0?0:v,f=a.items,p=a.children,b=a.direction,h=a.id,I=a.mode,N=I===void 0?"vertical":I,E=a.inlineCollapsed,O=a.disabled,y=a.disabledOverflow,M=a.subMenuOpenDelay,g=M===void 0?.1:M,P=a.subMenuCloseDelay,D=P===void 0?.1:P,m=a.forceSubMenuRender,A=a.defaultOpenKeys,C=a.openKeys,T=a.activeKey,k=a.defaultActiveFirst,L=a.selectable,F=L===void 0?!0:L,Z=a.multiple,G=Z===void 0?!1:Z,J=a.defaultSelectedKeys,ie=a.selectedKeys,le=a.onSelect,te=a.onDeselect,R=a.inlineIndent,S=R===void 0?24:R,$=a.motion,W=a.defaultMotions,_=a.triggerSubMenuAction,ye=_===void 0?"hover":_,fe=a.builtinPlacements,he=a.itemIcon,Ce=a.expandIcon,ae=a.overflowedIndicator,re=ae===void 0?"...":ae,Ne=a.overflowedIndicatorPopupClassName,He=a.getPopupContainer,xe=a.onClick,H=a.onOpenChange,je=a.onKeyDown,ke=a.openAnimation,gt=a.openTransitionName,Le=a._internalRenderMenuItem,De=a._internalRenderSubMenuItem,Be=Object(U.a)(a,ar),be=t.useMemo(function(){return Ja(p,f,rt)},[p,f]),Ze=t.useState(!1),Qe=Object(K.a)(Ze,2),ce=Qe[0],Ot=Qe[1],se=t.useRef(),ge=Aa(h),Ie=b==="rtl",Ge=Object(ze.a)(A,{value:C,postState:function(X){return X||rt}}),Xe=Object(K.a)(Ge,2),ue=Xe[0],Pe=Xe[1],de=function(X){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function me(){Pe(X),H==null||H(X)}Q?Object(ya.flushSync)(me):me()},ve=t.useState(ue),ot=Object(K.a)(ve,2),an=ot[0],Vt=ot[1],yt=t.useRef(!1),rn=t.useMemo(function(){return(N==="inline"||N==="vertical")&&E?["vertical",E]:[N,!1]},[N,E]),Ct=Object(K.a)(rn,2),Ve=Ct[0],lt=Ct[1],jt=Ve==="inline",St=t.useState(Ve),$t=Object(K.a)(St,2),Te=$t[0],zt=$t[1],on=t.useState(lt),Et=Object(K.a)(on,2),ln=Et[0],cn=Et[1];t.useEffect(function(){zt(Ve),cn(lt),!!yt.current&&(jt?Pe(an):de(rt))},[Ve,lt]);var we=t.useState(0),xt=Object(K.a)(we,2),_e=xt[0],Ut=xt[1],$e=_e>=be.length-1||Te!=="horizontal"||y;t.useEffect(function(){jt&&Vt(ue)},[ue]),t.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var Me=wa(),ct=Me.registerPath,It=Me.unregisterPath,Ft=Me.refreshOverflowKeys,z=Me.isSubPathKey,B=Me.getKeyPath,ne=Me.getKeys,oe=Me.getSubPathKeys,Ke=t.useMemo(function(){return{registerPath:ct,unregisterPath:It}},[ct,It]),Se=t.useMemo(function(){return{isSubPathKey:z}},[z]);t.useEffect(function(){Ft($e?rt:be.slice(_e+1).map(function(q){return q.key}))},[_e,$e]);var sn=Object(ze.a)(T||k&&((r=be[0])===null||r===void 0?void 0:r.key),{value:T}),_n=Object(K.a)(sn,2),Pt=_n[0],un=_n[1],kr=at(function(q){un(q)}),Lr=at(function(){un(void 0)});Object(t.useImperativeHandle)(n,function(){return{list:se.current,focus:function(X){var Q,me=Pt!=null?Pt:(Q=be.find(function(Xr){return!Xr.props.disabled}))===null||Q===void 0?void 0:Q.key;if(me){var Oe,qe,Mt;(Oe=se.current)===null||Oe===void 0||(qe=Oe.querySelector("li[data-menu-id='".concat(Xt(ge,me),"']")))===null||qe===void 0||(Mt=qe.focus)===null||Mt===void 0||Mt.call(qe,X)}}}});var Dr=Object(ze.a)(J||[],{value:ie,postState:function(X){return Array.isArray(X)?X:X==null?rt:[X]}}),qn=Object(K.a)(Dr,2),Wt=qn[0],Br=qn[1],Vr=function(X){if(F){var Q=X.key,me=Wt.includes(Q),Oe;G?me?Oe=Wt.filter(function(Mt){return Mt!==Q}):Oe=[].concat(Object(Ue.a)(Wt),[Q]):Oe=[Q],Br(Oe);var qe=Object(w.a)(Object(w.a)({},X),{},{selectedKeys:Oe});me?te==null||te(qe):le==null||le(qe)}!G&&ue.length&&Te!=="inline"&&de(rt)},$r=at(function(q){xe==null||xe(Lt(q)),Vr(q)}),ea=at(function(q,X){var Q=ue.filter(function(Oe){return Oe!==q});if(X)Q.push(q);else if(Te!=="inline"){var me=oe(q);Q=Q.filter(function(Oe){return!me.has(Oe)})}Object(In.a)(ue,Q,!0)||de(Q,!0)}),zr=at(He),Ur=function(X,Q){var me=Q!=null?Q:!ue.includes(X);ea(X,me)},Fr=Ra(Te,Pt,Ie,ge,se,ne,B,un,Ur,je);t.useEffect(function(){Ot(!0)},[]);var Wr=t.useMemo(function(){return{_internalRenderMenuItem:Le,_internalRenderSubMenuItem:De}},[Le,De]),Hr=Te!=="horizontal"||y?be:be.map(function(q,X){return t.createElement(ft,{key:q.key,overflowDisabled:X>_e},q)}),Gr=t.createElement(vt.a,Object(V.a)({id:h,ref:se,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Dt,className:Y()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Te),u,(i={},Object(x.a)(i,"".concat(l,"-inline-collapsed"),ln),Object(x.a)(i,"".concat(l,"-rtl"),Ie),i),c),dir:b,style:s,role:"menu",tabIndex:d,data:Hr,renderRawItem:function(X){return X},renderRawRest:function(X){var Q=X.length,me=Q?be.slice(-Q):null;return t.createElement(nn,{eventKey:qt,title:re,disabled:$e,internalPopupClose:Q===0,popupClassName:Ne},me)},maxCount:Te!=="horizontal"||y?vt.a.INVALIDATE:vt.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(X){Ut(X)},onKeyDown:Fr},Be));return t.createElement(Yt.Provider,{value:Wr},t.createElement(Pn.Provider,{value:ge},t.createElement(ft,{prefixCls:l,rootClassName:c,mode:Te,openKeys:ue,rtl:Ie,disabled:O,motion:ce?$:null,defaultMotions:ce?W:null,activeKey:Pt,onActive:kr,onInactive:Lr,selectedKeys:Wt,inlineIndent:S,subMenuOpenDelay:g,subMenuCloseDelay:D,forceSubMenuRender:m,builtinPlacements:fe,triggerSubMenuAction:ye,getPopupContainer:zr,itemIcon:he,expandIcon:Ce,onItemClick:$r,onOpenChange:ea},t.createElement(Tn.Provider,{value:Se},Gr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(Rn.Provider,{value:Ke},be)))))}),ir=rr,or=["className","title","eventKey","children"],lr=["children"],cr=function(n){var r=n.className,i=n.title,a=n.eventKey,o=n.children,l=Object(U.a)(n,or),c=t.useContext(Ee),s=c.prefixCls,u="".concat(s,"-item-group");return t.createElement("li",Object(V.a)({role:"presentation"},l,{onClick:function(d){return d.stopPropagation()},className:Y()(u,r)}),t.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof i=="string"?i:void 0},i),t.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))};function Xn(e){var n=e.children,r=Object(U.a)(e,lr),i=bt(r.eventKey),a=en(n,i),o=Kt();return o?a:t.createElement(cr,Object(Bn.a)(r,["warnKey"]),a)}function Yn(e){var n=e.className,r=e.style,i=t.useContext(Ee),a=i.prefixCls,o=Kt();return o?null:t.createElement("li",{className:Y()("".concat(a,"-item-divider"),n),style:r})}var ht=ir;ht.Item=Dt,ht.SubMenu=nn,ht.ItemGroup=Xn,ht.Divider=Yn;var sr=ht;function ur(e,n){var r=e.prefixCls,i=e.id,a=e.tabs,o=e.locale,l=e.mobile,c=e.moreIcon,s=c===void 0?"More":c,u=e.moreTransitionName,v=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,I=e.onTabClick,N=e.getPopupContainer,E=e.popupClassName,O=Object(t.useState)(!1),y=Object(K.a)(O,2),M=y[0],g=y[1],P=Object(t.useState)(null),D=Object(K.a)(P,2),m=D[0],A=D[1],C="".concat(i,"-more-popup"),T="".concat(r,"-dropdown"),k=m!==null?"".concat(C,"-").concat(m):null,L=o==null?void 0:o.dropdownAriaLabel;function F(R,S){R.preventDefault(),R.stopPropagation(),f.onEdit("remove",{key:S,event:R})}var Z=t.createElement(sr,{onClick:function(S){var $=S.key,W=S.domEvent;I($,W),g(!1)},prefixCls:"".concat(T,"-menu"),id:C,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[m],"aria-label":L!==void 0?L:"expanded dropdown"},a.map(function(R){var S=f&&R.closable!==!1&&!R.disabled;return t.createElement(Dt,{key:R.key,id:"".concat(C,"-").concat(R.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(R.key),disabled:R.disabled},t.createElement("span",null,R.label),S&&t.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(W){W.stopPropagation(),F(W,R.key)}},R.closeIcon||f.removeIcon||"\xD7"))}));function G(R){for(var S=a.filter(function(fe){return!fe.disabled}),$=S.findIndex(function(fe){return fe.key===m})||0,W=S.length,_=0;_<W;_+=1){$=($+R+W)%W;var ye=S[$];if(!ye.disabled){A(ye.key);return}}}function J(R){var S=R.which;if(!M){[ee.a.DOWN,ee.a.SPACE,ee.a.ENTER].includes(S)&&(g(!0),R.preventDefault());return}switch(S){case ee.a.UP:G(-1),R.preventDefault();break;case ee.a.DOWN:G(1),R.preventDefault();break;case ee.a.ESC:g(!1);break;case ee.a.SPACE:case ee.a.ENTER:m!==null&&I(m,R);break}}Object(t.useEffect)(function(){var R=document.getElementById(k);R&&R.scrollIntoView&&R.scrollIntoView(!1)},[m]),Object(t.useEffect)(function(){M||A(null)},[M]);var ie=Object(x.a)({},b?"marginRight":"marginLeft",p);a.length||(ie.visibility="hidden",ie.order=1);var le=Y()(Object(x.a)({},"".concat(T,"-rtl"),b)),te=l?null:t.createElement(Oa,{prefixCls:T,overlay:Z,trigger:["hover"],visible:a.length?M:!1,transitionName:u,onVisibleChange:g,overlayClassName:Y()(le,E),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:N},t.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:ie,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":C,id:"".concat(i,"-more"),"aria-expanded":M,onKeyDown:J},s));return t.createElement("div",{className:Y()("".concat(r,"-nav-operations"),d),style:v,ref:n},te,t.createElement(Cn,{prefixCls:r,locale:o,editable:f}))}var dr=t.memo(t.forwardRef(ur),function(e,n){return n.tabMoving});function vr(e){var n,r=e.prefixCls,i=e.id,a=e.active,o=e.tab,l=o.key,c=o.label,s=o.disabled,u=o.closeIcon,v=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,b=e.onClick,h=e.onFocus,I=e.style,N="".concat(r,"-tab"),E=p&&v!==!1&&!s;function O(g){s||b(g)}function y(g){g.preventDefault(),g.stopPropagation(),p.onEdit("remove",{key:l,event:g})}var M=t.createElement("div",{key:l,"data-node-key":yn(l),className:Y()(N,(n={},Object(x.a)(n,"".concat(N,"-with-remove"),E),Object(x.a)(n,"".concat(N,"-active"),a),Object(x.a)(n,"".concat(N,"-disabled"),s),n)),style:I,onClick:O},t.createElement("div",{role:"tab","aria-selected":a,id:i&&"".concat(i,"-tab-").concat(l),className:"".concat(N,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(l),"aria-disabled":s,tabIndex:s?null:0,onClick:function(P){P.stopPropagation(),O(P)},onKeyDown:function(P){[ee.a.SPACE,ee.a.ENTER].includes(P.which)&&(P.preventDefault(),O(P))},onFocus:h},c),E&&t.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(N,"-remove"),onClick:function(P){P.stopPropagation(),y(P)}},u||p.removeIcon||"\xD7"));return d?d(M):M}var fr=vr,it=function(n){var r=n.current||{},i=r.offsetWidth,a=i===void 0?0:i,o=r.offsetHeight,l=o===void 0?0:o;return[a,l]},Bt=function(n,r){return n[r?0:1]};function br(e,n){var r,i=t.useContext(Re),a=i.prefixCls,o=i.tabs,l=e.className,c=e.style,s=e.id,u=e.animated,v=e.activeKey,d=e.rtl,f=e.extra,p=e.editable,b=e.locale,h=e.tabPosition,I=e.tabBarGutter,N=e.children,E=e.onTabClick,O=e.onTabScroll,y=Object(t.useRef)(),M=Object(t.useRef)(),g=Object(t.useRef)(),P=Object(t.useRef)(),D=Object(t.useRef)(),m=Object(t.useRef)(),A=Object(t.useRef)(),C=h==="top"||h==="bottom",T=bn(0,function(z,B){C&&O&&O({direction:z>B?"left":"right"})}),k=Object(K.a)(T,2),L=k[0],F=k[1],Z=bn(0,function(z,B){!C&&O&&O({direction:z>B?"top":"bottom"})}),G=Object(K.a)(Z,2),J=G[0],ie=G[1],le=Object(t.useState)([0,0]),te=Object(K.a)(le,2),R=te[0],S=te[1],$=Object(t.useState)([0,0]),W=Object(K.a)($,2),_=W[0],ye=W[1],fe=Object(t.useState)([0,0]),he=Object(K.a)(fe,2),Ce=he[0],ae=he[1],re=Object(t.useState)([0,0]),Ne=Object(K.a)(re,2),He=Ne[0],xe=Ne[1],H=oa(new Map),je=Object(K.a)(H,2),ke=je[0],gt=je[1],Le=na(o,ke,_[0]),De=Bt(R,C),Be=Bt(_,C),be=Bt(Ce,C),Ze=Bt(He,C),Qe=De<Be+be,ce=Qe?De-Ze:De-be,Ot="".concat(a,"-nav-operations-hidden"),se=0,ge=0;C&&d?(se=0,ge=Math.max(0,Be-ce)):(se=Math.min(0,ce-Be),ge=0);function Ie(z){return z<se?se:z>ge?ge:z}var Ge=Object(t.useRef)(),Xe=Object(t.useState)(),ue=Object(K.a)(Xe,2),Pe=ue[0],de=ue[1];function ve(){de(Date.now())}function ot(){window.clearTimeout(Ge.current)}ra(P,function(z,B){function ne(oe,Ke){oe(function(Se){var sn=Ie(Se+Ke);return sn})}return Qe?(C?ne(F,z):ne(ie,B),ot(),ve(),!0):!1}),Object(t.useEffect)(function(){return ot(),Pe&&(Ge.current=window.setTimeout(function(){de(0)},100)),ot},[Pe]);var an=la(Le,ce,C?L:J,Be,be,Ze,Object(w.a)(Object(w.a)({},e),{},{tabs:o})),Vt=Object(K.a)(an,2),yt=Vt[0],rn=Vt[1],Ct=Object(ta.a)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v,B=Le.get(z)||{width:0,height:0,left:0,right:0,top:0};if(C){var ne=L;d?B.right<L?ne=B.right:B.right+B.width>L+ce&&(ne=B.right+B.width-ce):B.left<-L?ne=-B.left:B.left+B.width>-L+ce&&(ne=-(B.left+B.width-ce)),ie(0),F(Ie(ne))}else{var oe=J;B.top<-J?oe=-B.top:B.top+B.height>-J+ce&&(oe=-(B.top+B.height-ce)),F(0),ie(Ie(oe))}}),Ve={};h==="top"||h==="bottom"?Ve[d?"marginRight":"marginLeft"]=I:Ve.marginTop=I;var lt=o.map(function(z,B){var ne=z.key;return t.createElement(fr,{id:s,prefixCls:a,key:ne,tab:z,style:B===0?void 0:Ve,closable:z.closable,editable:p,active:ne===v,renderWrapper:N,removeAriaLabel:b==null?void 0:b.removeAriaLabel,onClick:function(Ke){E(ne,Ke)},onFocus:function(){Ct(ne),ve(),!!P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)}})}),jt=function(){return gt(function(){var B=new Map;return o.forEach(function(ne){var oe,Ke=ne.key,Se=(oe=D.current)===null||oe===void 0?void 0:oe.querySelector('[data-node-key="'.concat(yn(Ke),'"]'));Se&&B.set(Ke,{width:Se.offsetWidth,height:Se.offsetHeight,left:Se.offsetLeft,top:Se.offsetTop})}),B})};Object(t.useEffect)(function(){jt()},[o.map(function(z){return z.key}).join("_")]);var St=hn(function(){var z=it(y),B=it(M),ne=it(g);S([z[0]-B[0]-ne[0],z[1]-B[1]-ne[1]]);var oe=it(A);ae(oe);var Ke=it(m);xe(Ke);var Se=it(D);ye([Se[0]-oe[0],Se[1]-oe[1]]),jt()}),$t=o.slice(0,yt),Te=o.slice(rn+1),zt=[].concat(Object(Ue.a)($t),Object(Ue.a)(Te)),on=Object(t.useState)(),Et=Object(K.a)(on,2),ln=Et[0],cn=Et[1],we=Le.get(v),xt=Object(t.useRef)();function _e(){Fe.a.cancel(xt.current)}Object(t.useEffect)(function(){var z={};return we&&(C?(d?z.right=we.right:z.left=we.left,z.width=we.width):(z.top=we.top,z.height=we.height)),_e(),xt.current=Object(Fe.a)(function(){cn(z)}),_e},[we,C,d]),Object(t.useEffect)(function(){Ct()},[v,se,ge,On(we),On(Le),C]),Object(t.useEffect)(function(){St()},[d]);var Ut=!!zt.length,$e="".concat(a,"-nav-wrap"),Me,ct,It,Ft;return C?d?(ct=L>0,Me=L!==ge):(Me=L<0,ct=L!==se):(It=J<0,Ft=J!==se),t.createElement(dn.a,{onResize:St},t.createElement("div",{ref:Object(vn.d)(n,y),role:"tablist",className:Y()("".concat(a,"-nav"),l),style:c,onKeyDown:function(){ve()}},t.createElement(jn,{ref:M,position:"left",extra:f,prefixCls:a}),t.createElement("div",{className:Y()($e,(r={},Object(x.a)(r,"".concat($e,"-ping-left"),Me),Object(x.a)(r,"".concat($e,"-ping-right"),ct),Object(x.a)(r,"".concat($e,"-ping-top"),It),Object(x.a)(r,"".concat($e,"-ping-bottom"),Ft),r)),ref:P},t.createElement(dn.a,{onResize:St},t.createElement("div",{ref:D,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(J,"px)"),transition:Pe?"none":void 0}},lt,t.createElement(Cn,{ref:A,prefixCls:a,locale:b,editable:p,style:Object(w.a)(Object(w.a)({},lt.length===0?void 0:Ve),{},{visibility:Ut?"hidden":null})}),t.createElement("div",{className:Y()("".concat(a,"-ink-bar"),Object(x.a)({},"".concat(a,"-ink-bar-animated"),u.inkBar)),style:ln})))),t.createElement(dr,Object(V.a)({},e,{removeAriaLabel:b==null?void 0:b.removeAriaLabel,ref:m,prefixCls:a,tabs:zt,className:!Ut&&Ot,tabMoving:!!Pe})),t.createElement(jn,{ref:g,position:"right",extra:f,prefixCls:a})))}var Jn=t.forwardRef(br),mr=["renderTabBar"],pr=["label","key"];function hr(e){var n=e.renderTabBar,r=Object(U.a)(e,mr),i=t.useContext(Re),a=i.tabs;if(n){var o=Object(w.a)(Object(w.a)({},r),{},{panes:a.map(function(l){var c=l.label,s=l.key,u=Object(U.a)(l,pr);return t.createElement(Je,Object(V.a)({tab:c,key:s,tabKey:s},u))})});return n(o,Jn)}return t.createElement(Jn,r)}function gr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},n;return e===!1?n={inkBar:!1,tabPane:!1}:e===!0?n={inkBar:!0,tabPane:!1}:n=Object(w.a)({inkBar:!0},Object(pe.a)(e)==="object"?e:{}),n.tabPaneMotion&&n.tabPane===void 0&&(n.tabPane=!0),!n.tabPaneMotion&&n.tabPane&&(n.tabPane=!1),n}var Or=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Zn=0;function yr(e,n){var r,i=e.id,a=e.prefixCls,o=a===void 0?"rc-tabs":a,l=e.className,c=e.items,s=e.direction,u=e.activeKey,v=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,b=p===void 0?"top":p,h=e.tabBarGutter,I=e.tabBarStyle,N=e.tabBarExtraContent,E=e.locale,O=e.moreIcon,y=e.moreTransitionName,M=e.destroyInactiveTabPane,g=e.renderTabBar,P=e.onChange,D=e.onTabClick,m=e.onTabScroll,A=e.getPopupContainer,C=e.popupClassName,T=Object(U.a)(e,Or),k=t.useMemo(function(){return(c||[]).filter(function(H){return H&&Object(pe.a)(H)==="object"&&"key"in H})},[c]),L=s==="rtl",F=gr(f),Z=Object(t.useState)(!1),G=Object(K.a)(Z,2),J=G[0],ie=G[1];Object(t.useEffect)(function(){ie(Object(Ht.a)())},[]);var le=Object(ze.a)(function(){var H;return(H=k[0])===null||H===void 0?void 0:H.key},{value:u,defaultValue:v}),te=Object(K.a)(le,2),R=te[0],S=te[1],$=Object(t.useState)(function(){return k.findIndex(function(H){return H.key===R})}),W=Object(K.a)($,2),_=W[0],ye=W[1];Object(t.useEffect)(function(){var H=k.findIndex(function(ke){return ke.key===R});if(H===-1){var je;H=Math.max(0,Math.min(_,k.length-1)),S((je=k[H])===null||je===void 0?void 0:je.key)}ye(H)},[k.map(function(H){return H.key}).join("_"),R,_]);var fe=Object(ze.a)(null,{value:i}),he=Object(K.a)(fe,2),Ce=he[0],ae=he[1];Object(t.useEffect)(function(){i||(ae("rc-tabs-".concat(Zn)),Zn+=1)},[]);function re(H,je){D==null||D(H,je);var ke=H!==R;S(H),ke&&(P==null||P(H))}var Ne={id:Ce,activeKey:R,animated:F,tabPosition:b,rtl:L,mobile:J},He,xe=Object(w.a)(Object(w.a)({},Ne),{},{editable:d,locale:E,moreIcon:O,moreTransitionName:y,tabBarGutter:h,onTabClick:re,onTabScroll:m,extra:N,style:I,panes:null,getPopupContainer:A,popupClassName:C});return t.createElement(Re.Provider,{value:{tabs:k,prefixCls:o}},t.createElement("div",Object(V.a)({ref:n,id:i,className:Y()(o,"".concat(o,"-").concat(b),(r={},Object(x.a)(r,"".concat(o,"-mobile"),J),Object(x.a)(r,"".concat(o,"-editable"),d),Object(x.a)(r,"".concat(o,"-rtl"),L),r),l)},T),He,t.createElement(hr,Object(V.a)({},xe,{renderTabBar:g})),t.createElement(Tt,Object(V.a)({destroyInactiveTabPane:M},Ne,{animated:F}))))}var Cr=t.forwardRef(yr),jr=Cr,Sr=jr,Er=j("H84U"),xr=j("3Nzz"),Ir=j("EXcs"),Pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Mr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return n===!1?r={inkBar:!1,tabPane:!1}:n===!0?r={inkBar:!0,tabPane:!0}:r=Object(V.a)({inkBar:!0},Object(pe.a)(n)==="object"?n:{}),r.tabPane&&(r.tabPaneMotion=Object(V.a)(Object(V.a)({},Pr),{motionName:Object(Ir.c)(e,"switch")})),r}var Rr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r};function Nr(e){return e.filter(function(n){return n})}function Tr(e,n){if(e)return e;var r=Object(Wn.a)(n).map(function(i){if(t.isValidElement(i)){var a=i.key,o=i.props,l=o||{},c=l.tab,s=Rr(l,["tab"]),u=Object(V.a)(Object(V.a)({key:String(a)},s),{label:c});return u}return null});return Nr(r)}var wr=function(){return null},Kr=wr,Ar=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r};function Qn(e){var n=e.type,r=e.className,i=e.size,a=e.onEdit,o=e.hideAdd,l=e.centered,c=e.addIcon,s=e.children,u=e.items,v=e.animated,d=Ar(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),f=d.prefixCls,p=d.moreIcon,b=p===void 0?t.createElement(st.a,null):p,h=t.useContext(Er.b),I=h.getPrefixCls,N=h.direction,E=h.getPopupContainer,O=I("tabs",f),y;n==="editable-card"&&(y={onEdit:function(m,A){var C=A.key,T=A.event;a==null||a(m==="add"?T:C,m)},removeIcon:t.createElement(Ae.a,null),addIcon:c||t.createElement(ut.a,null),showAdd:o!==!0});var M=I(),g=Tr(u,s),P=Mr(O,v);return t.createElement(xr.b.Consumer,null,function(D){var m,A=i!==void 0?i:D;return t.createElement(Sr,Object(V.a)({direction:N,getPopupContainer:E,moreTransitionName:"".concat(M,"-slide-up")},d,{items:g,className:Y()((m={},Object(x.a)(m,"".concat(O,"-").concat(A),A),Object(x.a)(m,"".concat(O,"-card"),["card","editable-card"].includes(n)),Object(x.a)(m,"".concat(O,"-editable-card"),n==="editable-card"),Object(x.a)(m,"".concat(O,"-centered"),l),m),r),editable:y,moreIcon:b,prefixCls:O,animated:P}))})}Qn.TabPane=Kr;var Jr=Ye.a=Qn},"Znn+":function(Rt,Ye,j){"use strict";var x=j("EFp3"),V=j.n(x),Ae=j("9ama"),st=j.n(Ae)},gDlH:function(Rt,Ye,j){"use strict";var x=j("wx14"),V=j("4IlW"),Ae=j("q1tI"),st=j.n(Ae),ut=function(w,K){var pe={};for(var U in w)Object.prototype.hasOwnProperty.call(w,U)&&K.indexOf(U)<0&&(pe[U]=w[U]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,U=Object.getOwnPropertySymbols(w);t<U.length;t++)K.indexOf(U[t])<0&&Object.prototype.propertyIsEnumerable.call(w,U[t])&&(pe[U[t]]=w[U[t]]);return pe},et={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Y=Ae.forwardRef(function(w,K){var pe=function(Je){var dt=Je.keyCode;dt===V.a.ENTER&&Je.preventDefault()},U=function(Je){var dt=Je.keyCode,Tt=w.onClick;dt===V.a.ENTER&&Tt&&Tt()},t=w.style,Ht=w.noStyle,ze=w.disabled,Nt=ut(w,["style","noStyle","disabled"]),Re={};return Ht||(Re=Object(x.a)({},et)),ze&&(Re.pointerEvents="none"),Re=Object(x.a)(Object(x.a)({},Re),t),Ae.createElement("div",Object(x.a)({role:"button",tabIndex:0,ref:K},Nt,{onKeyDown:pe,onKeyUp:U,style:Re}))});Ye.a=Y},xvlK:function(Rt,Ye,j){"use strict";var x=j("VTBJ"),V=j("q1tI"),Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},st=Ae,ut=j("6VBw"),et=function(K,pe){return V.createElement(ut.a,Object(x.a)(Object(x.a)({},K),{},{ref:pe,icon:st}))};et.displayName="PlusOutlined";var Y=Ye.a=V.forwardRef(et)}}]);