You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/280.14179d05.async.js

84 lines
89 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[280,10],{"7W7D":
/*!**************************************************!*\
!*** ./src/pages/Forums/User/Memo/sections.less ***!
\**************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},KTv6:
/*!*************************************************************!*\
!*** ./src/pages/Forums/User/Memo/Sections.tsx + 1 modules ***!
\*************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/forums.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/card/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/card/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t);n("DjyN");var o=n("NUBc"),i=(n("T2oS"),n("W9HT")),a=(n("R9oj"),n("ECub")),r=(n("14J3"),n("BMrR")),c=n("9og8"),s=n("tJVT"),l=n("WmNS"),u=n.n(l),p=n("q1tI"),d=n.n(p),f=(n("jCWc"),n("kPKH")),v=(n("IzEo"),n("bx4M")),m=(n("+L6B"),n("2/Rp")),b=(n("miYZ"),n("tsqr")),h=(n("suKe"),n("h+Ho"));var y=function(e){var t=e.forum_section,n=e.key,o=Object(p.useState)(!0),i=Object(s.a)(o,2),a=i[0],r=i[1],c=Object(p.useState)(!1),l=Object(s.a)(c,2),u=l[0],y=l[1];return d.a.createElement(f.a,{span:6,className:"project-card-item forum-section-card",key:n},d.a.createElement(v.a,{bordered:!1,hoverable:!0,actions:[d.a.createElement(m.a,{type:"link",size:"small",onClick:function(){return function(){y(!0);var e={id:t.id,is_watch:a?0:1};Object(h.i)(e).then((function(e){0===e.status?(b.b.success(e.message),r(!a)):b.b.error(e.message),y(!1)})).catch((function(e){y(!1),console.log(e)}))}()},loading:u},d.a.createElement("span",{className:"color-grey"},a?"取消收藏":"收藏")),d.a.createElement(m.a,{type:"link",size:"small",href:"/forums/subject/".concat(t.id)},d.a.createElement("span",{className:"color-green"},"查看"))],bodyStyle:{background:"rgba("+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+",0.8)"}},d.a.createElement("div",{className:"intresting-forum-section"},d.a.createElement("div",{className:"font-20 color-white"},t.title),d.a.createElement("div",{className:"mt10 color-white"},t.memos_count,"个话题"))))};n("7W7D");t.default=function(e){var t=e.match.params.login,n=Object(p.useState)(!1),l=Object(s.a)(n,2),f=l[0],v=l[1],m=Object(p.useState)([]),b=Object(s.a)(m,2),O=b[0],g=b[1],j=Object(p.useState)(1),k=Object(s.a)(j,2),C=k[0],M=k[1],w=Object(p.useState)(32),E=Object(s.a)(w,2),x=E[0],S=(E[1],Object(p.useState)(0)),T=Object(s.a)(S,2),P=T[0],D=T[1];return Object(p.useEffect)((function(){function e(){return(e=Object(c.a)(u.a.mark((function e(){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(!0),n={user_login:t,limit:x,page:C},Object(h.q)(n).then((function(e){e&&(g(e.forum_details),D(e.count)),v(!1)})).catch((function(e){v(!1),console.log(e)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[C]),d.a.createElement("div",{className:"mt15"},d.a.createElement(i.a,{spinning:f},O&&O.length>0?d.a.createElement(r.a,{gutter:20},O.map((function(e,t){return d.a.createElement(y,{forum_section:e,key:t})}))):d.a.createElement(a.a,{image:a.a.PRESENTED_IMAGE_SIMPLE,className:"pd100"})),P>x&&d.a.createElement("div",{className:"pagenationDiv"},d.a.createElement(o.a,{showQuickJumper:!0,current:C,onChange:function(e){M(e)},total:P,pageSize:x})))}},k3GJ:
/*!*******************************************************!*\
!*** ./node_modules/rc-tabs/es/index.js + 50 modules ***!
\*******************************************************/
/*! exports provided: TabPane, default */
/*! exports used: TabPane, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/mini-store/esm/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-align/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-dropdown/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/canUseDom.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/contains.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Portal.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/createChainedFunction.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/raf.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return _t}));var o=n("rePB"),i=n("ODXe"),a=n("Ff2n"),r=n("VTBJ"),c=n("q1tI"),s=n("TSYQ"),l=n.n(s),u=n("Zm9Q"),p=n("6cGi"),d=n("KQm4"),f=n("xEkU"),v=n.n(f),m=n("t23M");function b(e){var t=Object(c.useRef)(),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){return function(){n.current=!0,v.a.cancel(t.current)}}),[]),function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];n.current||(v.a.cancel(t.current),t.current=v()((function(){e.apply(void 0,i)})))}}var h=n("4IlW");var y=c.forwardRef((function(e,t){var n,i=e.prefixCls,a=e.id,r=e.active,s=e.rtl,u=e.tab,p=u.key,d=u.tab,f=u.disabled,v=u.closeIcon,m=e.tabBarGutter,b=e.tabPosition,y=e.closable,O=e.renderWrapper,g=e.removeAriaLabel,j=e.editable,k=e.onClick,C=e.onRemove,M=e.onFocus,w="".concat(i,"-tab");c.useEffect((function(){return C}),[]);var E={};"top"===b||"bottom"===b?E[s?"marginLeft":"marginRight"]=m:E.marginBottom=m;var x=j&&!1!==y&&!f;function S(e){f||k(e)}var T=c.createElement("div",{key:p,ref:t,className:l()(w,(n={},Object(o.a)(n,"".concat(w,"-with-remove"),x),Object(o.a)(n,"".concat(w,"-active"),r),Object(o.a)(n,"".concat(w,"-disabled"),f),n)),style:E,onClick:S},c.createElement("div",{role:"tab","aria-selected":r,id:a&&"".concat(a,"-tab-").concat(p),className:"".concat(w,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(p),"aria-disabled":f,tabIndex:f?null:0,onClick:function(e){e.stopPropagation(),S(e)},onKeyDown:function(e){[h.a.SPACE,h.a.ENTER].includes(e.which)&&(e.preventDefault(),S(e))},onFocus:M},d),x&&c.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(w,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),j.onEdit("remove",{key:p,event:t})}},v||j.removeIcon||"×"));return O&&(T=O(T)),T})),O={width:0,height:0,left:0,top:0};var g={width:0,height:0,left:0,top:0,right:0};var j=n("wx14"),k=n("1OyB"),C=n("vuIU"),M=n("JX7q"),w=n("Ji7U"),E=n("LK+K"),x=n("I8Z2"),S=n("bT9E"),T=n("2GS6"),P=n("Gytx"),D=n.n(P),N=n("U8pU"),I=/iPhone/i,K=/iPod/i,R=/iPad/i,A=/\bAndroid(?:.+)Mobile\b/i,L=/Android/i,z=/\bAndroid(?:.+)SD4930UR\b/i,V=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,H=/Windows Phone/i,F=/\bWindows(?:.+)ARM\b/i,W=/BlackBerry/i,B=/BB10/i,U=/Opera Mini/i,_=/\b(CriOS|Chrome)(?:.+)Mobile/i,q=/Mobile(?:.+)Firefox\b/i;function G(e,t){return e.test(t)}function J(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=(t||"").split("[FBAN");if(void 0!==n[1]){var o=n;t=Object(i.a)(o,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var a=n;t=Object(i.a)(a,1)[0]}var r={apple:{phone:G(I,t)&&!G(H,t),ipod:G(K,t),tablet:!G(I,t)&&G(R,t)&&!G(H,t),device:(G(I,t)||G(K,t)||G(R,t))&&!G(H,t)},amazon:{phone:G(z,t),tablet:!G(z,t)&&G(V,t),device:G(z,t)||G(V,t)},android:{phone:!G(H,t)&&G(z,t)||!G(H,t)&&G(A,t),tablet:!G(H,t)&&!G(z,t)&&!G(A,t)&&(G(V,t)||G(L,t)),device:!G(H,t)&&(G(z,t)||G(V,t)||G(A,t)||G(L,t))||G(/\bokhttp\b/i,t)},windows:{phone:G(H,t),tablet:G(F,t),device:G(H,t)||G(F,t)},other:{blackberry:G(W,t),blackberry10:G(B,t),opera:G(U,t),firefox:G(q,t),chrome:G(_,t),device:G(W,t)||G(B,t)||G(U,t)||G(q,t)||G(_,t)},any:null,phone:null,tablet:null};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}var X=Object(r.a)(Object(r.a)({},J()),{},{isMobile:J});function Y(){}function Q(e,t,n){var o=t||"";return e.key||"".concat(o,"item_").concat(n)}function Z(e){return"".concat(e,"-menu-")}function $(e,t){var n=-1;c.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?c.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),i=o.marginLeft,a=o.marginRight;n+=+i.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},ne=function(e,t,n){e&&"object"===Object(N.a)(e.style)&&(e.style[t]=n)},oe=n("bdgK"),ie=n("i8i4"),ae=n.n(ie),re=n("wgJM"),ce=n("l4aY"),se=n("m+aA"),le=n("c+Xe"),ue=n("zT1h"),pe=n("QC+M");function de(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var fe=n("MNnm");function ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var me,be,he,ye=(me=Object(fe.a)(),be="undefined"!=typeof window?window:{},he={animationend:ve("Animation","AnimationEnd"),transitionend:ve("Transition","TransitionEnd")},me&&("AnimationEvent"in be||delete he.animationend.animation,"TransitionEvent"in be||delete he.transitionend.transition),he),Oe={};if(Object(fe.a)()){var ge=document.createElement("div");Oe=ge.style}var je={};function ke(e){if(je[e])return je[e];var t=ye[e];if(t)for(var n=Object.keys(t),o=n.length,i=0;i<o;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Oe)return je[e]=t[a],je[e]}return""}var Ce=ke("animationend"),Me=ke("transitionend"),we=!(!Ce||!Me),Ee=Ce||"animationend",xe=Me||"transitionend";function Se(e,t){return e?"object"===Object(N.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Te(e){var t=Object(c.useRef)(!1),n=Object(c.useState)(e),o=Object(i.a)(n,2),a=o[0],r=o[1];return Object(c.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||r(e)}]}var Pe=Object(fe.a)()?c.useLayoutEffect:c.useEffect,De=["prepare","start","active","end"];function Ne(e){return"active"===e||"end"===e}var Ie=function(e,t){var n=c.useState("none"),o=Object(i.a)(n,2),a=o[0],r=o[1],s=function(){var e=c.useRef(null);function t(){re.a.cancel(e.current)}return c.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(re.a)((function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)}));e.current=a},t]}(),l=Object(i.a)(s,2),u=l[0],p=l[1];return Pe((function(){if("none"!==a&&"end"!==a){var e=De.indexOf(a),n=De[e+1],o=t(a);!1===o?r(n):u((function(e){function t(){e.isCanceled()||r(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,a]),c.useEffect((function(){return function(){p()}}),[]),[function(){r("prepare")},a]};function Ke(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,u=a.motionAppear,p=void 0===u||u,d=a.motionLeave,f=void 0===d||d,v=a.motionDeadline,m=a.motionLeaveImmediately,b=a.onAppearPrepare,h=a.onEnterPrepare,y=a.onLeavePrepare,O=a.onAppearStart,g=a.onEnterStart,j=a.onLeaveStart,k=a.onAppearActive,C=a.onEnterActive,M=a.onLeaveActive,w=a.onAppearEnd,E=a.onEnterEnd,x=a.onLeaveEnd,S=a.onVisibleChanged,T=Te(),P=Object(i.a)(T,2),D=P[0],N=P[1],I=Te("none"),K=Object(i.a)(I,2),R=K[0],A=K[1],L=Te(null),z=Object(i.a)(L,2),V=z[0],H=z[1],F=Object(c.useRef)(!1),W=Object(c.useRef)(null),B=Object(c.useRef)(!1),U=Object(c.useRef)(null);function _(){return n()||U.current}var q=Object(c.useRef)(!1);function G(e){var t,n=_();e&&!e.deadline&&e.target!==n||("appear"===R&&q.current?t=null==w?void 0:w(n,e):"enter"===R&&q.current?t=null==E?void 0:E(n,e):"leave"===R&&q.current&&(t=null==x?void 0:x(n,e)),!1===t||B.current||(A("none"),H(null)))}var J=function(e){var t=Object(c.useRef)(),n=Object(c.useRef)(e);n.current=e;var o=c.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(xe,o),e.removeEventListener(Ee,o))}return c.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(xe,o),e.addEventListener(Ee,o),t.current=e)},i]}(G),X=Object(i.a)(J,1)[0],Y=c.useMemo((function(){var e,t,n;switch(R){case"appear":return e={},Object(o.a)(e,"prepare",b),Object(o.a)(e,"start",O),Object(o.a)(e,"active",k),e;case"enter":return t={},Object(o.a)(t,"prepare",h),Object(o.a)(t,"start",g),Object(o.a)(t,"active",C),t;case"leave":return n={},Object(o.a)(n,"prepare",y),Object(o.a)(n,"start",j),Object(o.a)(n,"active",M),n;default:return{}}}),[R]),Q=Ie(R,(function(e){if("prepare"===e){var t=Y.prepare;return!!t&&t(_())}var n;ee in Y&&H((null===(n=Y[ee])||void 0===n?void 0:n.call(Y,_(),null))||null);return"active"===ee&&(X(_()),v>0&&(clearTimeout(W.current),W.current=setTimeout((function(){G({deadline:!0})}),v))),!0})),Z=Object(i.a)(Q,2),$=Z[0],ee=Z[1],te=Ne(ee);q.current=te,Pe((function(){N(t);var n,o=F.current;(F.current=!0,e)&&(!o&&t&&p&&(n="appear"),o&&t&&l&&(n="enter"),(o&&!t&&f||!o&&m&&!t&&f)&&(n="leave"),n&&(A(n),$()))}),[t]),Object(c.useEffect)((function(){("appear"===R&&!p||"enter"===R&&!l||"leave"===R&&!f)&&A("none")}),[p,l,f]),Object(c.useEffect)((function(){return function(){clearTimeout(W.current),B.current=!0}}),[]),Object(c.useEffect)((function(){void 0!==D&&"none"===R&&(null==S||S(D))}),[D,R]);var ne=V;return Y.prepare&&"start"===ee&&(ne=Object(r.a)({transition:"none"},ne)),[R,ee,ne,null!=D?D:t]}var Re=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(){return Object(k.a)(this,n),t.apply(this,arguments)}return Object(C.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);var Ae=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(N.a)(e)&&(t=e.transitionSupport);var a=c.forwardRef((function(e,t){var a=e.visible,s=void 0===a||a,u=e.removeOnLeave,p=void 0===u||u,d=e.forceRender,f=e.children,v=e.motionName,m=e.leavedClassName,b=e.eventProps,h=n(e),y=Object(c.useRef)(),O=Object(c.useRef)();var g=Ke(h,s,(function(){try{return Object(se.a)(y.current||O.current)}catch(e){return null}}),e),j=Object(i.a)(g,4),k=j[0],C=j[1],M=j[2],w=j[3],E=c.useRef(w);w&&(E.current=!0);var x=Object(c.useRef)(t);x.current=t;var S,T=c.useCallback((function(e){y.current=e,Object(le.b)(x.current,e)}),[]),P=Object(r.a)(Object(r.a)({},b),{},{visible:s});if(f)if("none"!==k&&n(e)){var D,N;"prepare"===C?N="prepare":Ne(C)?N="active":"start"===C&&(N="start"),S=f(Object(r.a)(Object(r.a)({},P),{},{className:l()(Se(v,k),(D={},Object(o.a)(D,Se(v,"".concat(k,"-").concat(N)),N),Object(o.a)(D,v,"string"==typeof v),D)),style:M}),T)}else S=w?f(Object(r.a)({},P),T):!p&&E.current?f(Object(r.a)(Object(r.a)({},P),{},{className:m}),T):d?f(Object(r.a)(Object(r.a)({},P),{},{style:{display:"none"}}),T):null;else S=null;return c.createElement(Re,{ref:O},S)}));return a.displayName="CSSMotion",a}(we);function Le(e){var t;return t=e&&"object"===Object(N.a)(e)&&"key"in e?e:{key:e},Object(r.a)(Object(r.a)({},t),{},{key:String(t.key)})}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Le)}function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,i=t.length,a=ze(e),c=ze(t);a.forEach((function(e){for(var t=!1,a=o;a<i;a+=1){var s=c[a];if(s.key===e.key){o<a&&(n=n.concat(c.slice(o,a).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{status:"add"})}))),o=a),n.push(Object(r.a)(Object(r.a)({},s),{},{status:"keep"})),o+=1,t=!0;break}}t||n.push(Object(r.a)(Object(r.a)({},e),{},{status:"remove"}))})),o<i&&(n=n.concat(c.slice(o).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||"remove"!==o}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var He=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae,n=function(e){Object(w.a)(o,e);var n=Object(E.a)(o);function o(){var e;return Object(k.a)(this,o),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Object(r.a)(Object(r.a)({},e),{},{status:"removed"})}))}}))},e}return Object(C.a)(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,r=o.children,s=o.onVisibleChanged,l=Object(a.a)(o,["component","children","onVisibleChanged"]),u=i||c.Fragment,p={};return He.forEach((function(e){p[e]=l[e],delete l[e]})),delete l.keys,c.createElement(u,l,n.map((function(n){var o=n.status,i=Object(a.a)(n,["status"]),l="add"===o||"keep"===o;return c.createElement(t,Object(j.a)({},p,{key:i.key,visible:l,eventProps:i,onVisibleChanged:function(t){null==s||s(t,{key:i.key}),t||e.removeKey(i.key)}}),r)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,i=ze(n);return{keyEntities:Ve(o,i).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}(c.Component);n.defaultProps={component:"div"}}(we);var Fe=Ae;function We(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function Be(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,i=e.mask,a=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!i)return null;var p={};return(a||u||s)&&(p=Object(r.a)({motionAppear:!0},We({motion:a,prefixCls:t,transitionName:u,animation:s}))),c.createElement(Fe,Object(j.a)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:l()("".concat(t,"-mask"),n)})}))}var Ue=n("9mu1"),_e=n("o0o1"),qe=n.n(_e),Ge=n("HaE+"),Je=["measure","align",null,"motion"],Xe=c.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,s=e.style,u=e.children,p=e.zIndex,d=e.stretch,f=e.destroyPopupOnHide,v=e.forceRender,m=e.align,b=e.point,h=e.getRootDomNode,y=e.getClassNameFromAlign,O=e.onAlign,g=e.onMouseEnter,k=e.onMouseLeave,C=e.onMouseDown,M=e.onTouchStart,w=Object(c.useRef)(),E=Object(c.useRef)(),x=Object(c.useState)(),S=Object(i.a)(x,2),T=S[0],P=S[1],D=function(e){var t=c.useState({width:0,height:0}),n=Object(i.a)(t,2),o=n[0],a=n[1];return[c.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){a({width:e.offsetWidth,height:e.offsetHeight})}]}(d),N=Object(i.a)(D,2),I=N[0],K=N[1];var R=function(e,t){var n=Object(c.useState)(null),o=Object(i.a)(n,2),a=o[0],r=o[1],s=Object(c.useRef)(),l=Object(c.useRef)(!1);function u(e){l.current||r(e)}function p(){re.a.cancel(s.current)}return Object(c.useEffect)((function(){u("measure")}),[e]),Object(c.useEffect)((function(){switch(a){case"measure":t()}a&&(s.current=Object(re.a)(Object(Ge.a)(qe.a.mark((function e(){var t,n;return qe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Je.indexOf(a),(n=Je[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(c.useEffect)((function(){return function(){l.current=!0,p()}}),[]),[a,function(e){p(),s.current=Object(re.a)((function(){u((function(e){switch(a){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){d&&K(h())})),A=Object(i.a)(R,2),L=A[0],z=A[1],V=Object(c.useRef)();function H(){var e;null===(e=w.current)||void 0===e||e.forceAlign()}function F(e,t){var n=y(t);T!==n&&P(n),"align"===L&&(T!==n?Promise.resolve().then((function(){H()})):z((function(){var e;null===(e=V.current)||void 0===e||e.call(V)})),null==O||O(e,t))}var W=Object(r.a)({},We(e));function B(){return new Promise((function(e){V.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=W[e];W[e]=function(e,n){return z(),null==t?void 0:t(e,n)}})),c.useEffect((function(){W.motionName||"motion"!==L||z()}),[W.motionName,L]),c.useImperativeHandle(t,(function(){return{forceAlign:H,getElement:function(){return E.current}}}));var U=Object(r.a)(Object(r.a)({},I),{},{zIndex:p,opacity:"motion"!==L&&"stable"!==L&&n?0:void 0,pointerEvents:"stable"===L?void 0:"none"},s),_=!0;!(null==m?void 0:m.points)||"align"!==L&&"stable"!==L||(_=!1);var q=u;return c.Children.count(u)>1&&(q=c.createElement("div",{className:"".concat(o,"-content")},u)),c.createElement(Fe,Object(j.a)({visible:n,ref:E,leavedClassName:"".concat(o,"-hidden")},W,{onAppearPrepare:B,onEnterPrepare:B,removeOnLeave:f,forceRender:v}),(function(e,t){var n=e.className,i=e.style,s=l()(o,a,T,n);return c.createElement(Ue.a,{target:b||h,key:"popup",ref:w,monitorWindowResize:!0,disabled:_,align:m,onAlign:F},c.createElement("div",{ref:t,className:s,onMouseEnter:g,onMouseLeave:k,onMouseDownCapture:C,onTouchStartCapture:M,style:Object(r.a)(Object(r.a)({},i),U)},q))}))}));Xe.displayName="PopupInner";var Ye=Xe,Qe=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,a=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,p=s.popupStyle,d=s.popupMotion,f=void 0===d?{}:d,v=s.popupRender,m=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=Object(r.a)({zIndex:i},p),h=a;return c.Children.count(a)>1&&(h=c.createElement("div",{className:"".concat(n,"-content")},a)),v&&(h=v(h)),c.createElement(Fe,Object(j.a)({visible:o,ref:m,removeOnLeave:!0},f),(function(e,t){var o=e.className,i=e.style,a=l()(n,u,o);return c.createElement("div",{ref:t,className:a,style:Object(r.a)(Object(r.a)({},i),b)},h)}))}));Qe.displayName="MobilePopupInner";var Ze=Qe,$e=["visible","mobile"],et=c.forwardRef((function(e,t){var n=e.visible,o=e.mobile,s=Object(a.a)(e,$e),l=Object(c.useState)(n),u=Object(i.a)(l,2),p=u[0],d=u[1],f=Object(c.useState)(!1),v=Object(i.a)(f,2),m=v[0],b=v[1],h=Object(r.a)(Object(r.a)({},s),{},{visible:p});Object(c.useEffect)((function(){d(n),n&&o&&b(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())}),[n,o]);var y=m?c.createElement(Ze,Object(j.a)({},h,{mobile:o,ref:t})):c.createElement(Ye,Object(j.a)({},h,{ref:t}));return c.createElement("div",null,c.createElement(Be,h),y)}));et.displayName="Popup";var tt=et,nt=c.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var rt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var ct,st,lt=(ct=pe.a,(st=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(e){var o,i;return Object(k.a)(this,n),(o=t.call(this,e)).popupRef=c.createRef(),o.triggerRef=c.createRef(),o.attachId=void 0,o.clickOutsideHandler=void 0,o.touchOutsideHandler=void 0,o.contextMenuOutsideHandler1=void 0,o.contextMenuOutsideHandler2=void 0,o.mouseDownTimeout=void 0,o.focusTime=void 0,o.preClickTime=void 0,o.preTouchTime=void 0,o.delayTimer=void 0,o.hasPopupMouseDown=void 0,o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(ce.a)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),i=o.getPopupDomNode();Object(ce.a)(n,t)&&!o.isContextMenuOnly()||Object(ce.a)(i,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=Object(se.a)(o.triggerRef.current);if(t)return t}catch(e){}return ae.a.findDOMNode(Object(M.a)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,i=n.popupPlacement,a=n.builtinPlacements,r=n.prefixCls,c=n.alignPoint,s=n.getPopupClassNameFromAlign;return i&&a&&t.push(function(e,t,n,o){for(var i=n.points,a=Object.keys(e),r=0;r<a.length;r+=1){var c=a[r];if(de(e[c].points,i,o))return"".concat(t,"-placement-").concat(c)}return""}(a,r,e,c)),s&&t.push(s(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,r=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,p=e.mask,d=e.maskAnimation,f=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,b=e.popup,h=e.stretch,y=e.alignPoint,O=e.mobile,g=e.forceRender,k=o.state,C=k.popupVisible,M=k.point,w=o.getPopupAlign(),E={};return o.isMouseEnterToShow()&&(E.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(E.onMouseLeave=o.onPopupMouseLeave),E.onMouseDown=o.onPopupMouseDown,E.onTouchStart=o.onPopupMouseDown,c.createElement(tt,Object(j.a)({prefixCls:t,destroyPopupOnHide:n,visible:C,point:y&&M,className:i,align:w,onAlign:a,animation:s,getClassNameFromAlign:o.getPopupClassNameFromAlign},E,{stretch:h,getRootDomNode:o.getRootDomNode,style:u,mask:p,zIndex:m,transitionName:l,maskAnimation:d,maskTransitionName:f,maskMotion:v,ref:o.popupRef,motion:r,mobile:O,forceRender:g}),"function"==typeof b?b():b)},o.attachParent=function(e){re.a.cancel(o.attachId);var t,n=o.props,i=n.getPopupContainer,a=n.getDocument,r=o.getRootDomNode();i?(r||0===i.length)&&(t=i(r)):t=a(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=Object(re.a)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},o.triggerContextValue={onPopupMouseDown:o.onPopupMouseDown},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:i,popupVisible:i},rt.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ue.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ue.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ue.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ue.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),re.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return Object(r.a)(Object(r.a)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,a),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,s=t.autoDestroy,u=c.Children.only(n),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,i&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var d=l()(u&&u.props&&u.props.className,a);d&&(p.className=d);var f=Object(r.a)({},p);Object(le.c)(u)&&(f.ref=Object(le.a)(this.triggerRef,u.ref));var v,m=c.cloneElement(u,f);return(e||this.popupRef.current||o)&&(v=c.createElement(ct,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(v=null),c.createElement(nt.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(c.Component)).contextType=nt,st.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},st),ut={adjustX:1,adjustY:1},pt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},dt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},ft=0,vt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mt=function(e,t,n){var i=Z(t),a=e.getState();e.setState({defaultActiveFirst:Object(r.a)(Object(r.a)({},a.defaultActiveFirst),{},Object(o.a)({},i,n))})},bt=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(e){var o;Object(k.a)(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,i=o.props.store,a=o.getVisible();if(t===h.a.ENTER)return o.onTitleClick(e),mt(i,o.props.eventKey,!0),!0;if(t===h.a.RIGHT)return a?n.onKeyDown(e):(o.triggerOpenChange(!0),mt(i,o.props.eventKey,!0)),!0;if(t===h.a.LEFT){var r;if(!a)return;return(r=n.onKeyDown(e))||(o.triggerOpenChange(!1),r=!0),r}return!a||t!==h.a.UP&&t!==h.a.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onMouseEnter,a=t.store;mt(a,o.props.eventKey,!1),i({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=Object(M.a)(o),a({key:i,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,i=t.onItemHover,a=t.onTitleMouseEnter;i({key:n,hover:!0}),a({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,i=t.eventKey,a=t.onItemHover,r=t.onTitleMouseLeave;n.subMenuInstance=Object(M.a)(o),a({key:i,hover:!1}),r({key:i,domEvent:e})},o.onTitleClick=function(e){var t=Object(M.a)(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!o.getVisible(),"click"),mt(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.getVisible=function(){return o.state.isOpen},o.getMode=function(){return o.state.mode},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return Object(r.a)(Object(r.a)({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,i=function(){o.onOpenChange({key:n,item:Object(M.a)(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){i()}),0):i()},o.isChildrenSelected=function(){var e={find:!1};return function e(t,n,o){t&&!o.find&&c.Children.forEach(t,(function(t){if(t){var i=t.type;if(!i||!(i.isSubMenu||i.isMenuItem||i.isMenuItemGroup))return;-1!==n.indexOf(t.key)?o.find=!0:t.props.children&&e(t.props.children,n,o)}}))}(o.props.children,o.props.selectedKeys,e),e.find},o.isInlineMode=function(){return"inline"===o.getMode()},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=ie.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=Object(M.a)(o).props,t=o.getMode();return{mode:"horizontal"===t?"vertical":t,visible:o.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(M.a)(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[Z(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=Object(M.a)(o).haveRendered,i=o.props,a=i.motion,c=i.rootPrefixCls;return Object(r.a)(Object(r.a)({},a),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,a=e.eventKey,s=i.getState().defaultActiveFirst;o.isRootMenu=!1;var l=!1;return s&&(l=s[a]),mt(i,a,l),o.state={mode:e.mode,isOpen:e.isOpen},o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,i=t.manualRef,a=t.isOpen,r=function(){e.setState({mode:n,isOpen:a})},c=a!==this.state.isOpen,s=n!==this.state.mode;(s||c)&&(re.a.cancel(this.updateStateRaf),s?this.updateStateRaf=Object(re.a)(r):r()),i&&i(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),re.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return c.createElement(Et,Object(j.a)({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,i=t.visible,a=t.forceSubMenuRender,r=t.direction,s=this.getMotion(n,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||a,!this.haveOpened)return c.createElement("div",null);var u=l()("".concat(t.prefixCls,"-sub"),Object(o.a)({},"".concat(t.prefixCls,"-rtl"),"rtl"===r));return this.isInlineMode()?c.createElement(Fe,Object(j.a)({visible:t.visible,forceRender:a},s),(function(t){var n=t.className,o=t.style,i=l()(u,n);return e.renderPopupMenu(i,o)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var e,t,n,i=Object(r.a)({},this.props),a=this.getVisible(),s=this.getPrefixCls(),u=this.isInlineMode(),p=this.getMode(),d=l()(s,"".concat(s,"-").concat(p),(e={},Object(o.a)(e,i.className,!!i.className),Object(o.a)(e,this.getOpenClassName(),a),Object(o.a)(e,this.getActiveClassName(),i.active||a&&!u),Object(o.a)(e,this.getDisabledClassName(),i.disabled),Object(o.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(ft+=1,this.internalMenuId="$__$".concat(ft,"$Menu")));var f={},v={},m={};i.disabled||(f={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},v={onClick:this.onTitleClick},m={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var b={},h="rtl"===i.direction;u&&(h?b.paddingRight=i.inlineIndent*i.level:b.paddingLeft=i.inlineIndent*i.level);var y={};this.getVisible()&&(y={"aria-owns":this.internalMenuId});var O=null;"horizontal"!==p&&(O=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(O=c.createElement(this.props.expandIcon,Object(r.a)({},this.props))));var g=c.createElement("div",Object(j.a)({ref:this.saveSubMenuTitle,style:b,className:"".concat(s,"-title"),role:"button"},m,v,{"aria-expanded":a},y,{"aria-haspopup":"true",title:"string"==typeof i.title?i.title:void 0}),i.title,O||c.createElement("i",{className:"".concat(s,"-arrow")})),k=this.renderChildren(),C=(null===(t=i.parentMenu)||void 0===t?void 0:t.isRootMenu)?i.parentMenu.props.getPopupContainer:function(e){return e.parentNode},M=vt[p],w=i.popupOffset?{offset:i.popupOffset}:{},E=l()((n={},Object(o.a)(n,i.popupClassName,i.popupClassName&&!u),Object(o.a)(n,"".concat(s,"-rtl"),h),n)),x=i.disabled,S=i.triggerSubMenuAction,T=i.subMenuOpenDelay,P=i.forceSubMenuRender,D=i.subMenuCloseDelay,N=i.builtinPlacements;ee.forEach((function(e){return delete i[e]})),delete i.onClick;var I=h?Object(r.a)(Object(r.a)({},dt),N):Object(r.a)(Object(r.a)({},pt),N);delete i.direction;var K=this.getBaseProps(),R=u?null:this.getMotion(K.mode,K.visible);return c.createElement("li",Object(j.a)({},i,f,{className:d,role:"menuitem"}),c.createElement(lt,{prefixCls:s,popupClassName:l()("".concat(s,"-popup"),E),getPopupContainer:C,builtinPlacements:I,popupPlacement:M,popupVisible:!u&&a,popupAlign:w,popup:u?null:k,action:x||u?[]:[S],mouseEnterDelay:T,mouseLeaveDelay:D,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:P,popupMotion:R},g),u?k:null)}}]),n}(c.Component);bt.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var ht=Object(x.b)((function(e,t){var n=e.openKeys,o=e.activeKey,i=e.selectedKeys,a=t.eventKey,r=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:o[r]===a,selectedKeys:i}}))(bt);ht.isSubMenu=!0;var yt=ht,Ot=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(){var e;return Object(k.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=c.createRef(),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,o){var i=e.props,s=i.overflowedIndicator,l=i.level,u=i.mode,p=i.prefixCls,d=i.theme;if(1!==l||"horizontal"!==u)return null;var f=e.props.children[0].props,v=(f.children,f.title,f.style),m=Object(a.a)(f,["children","title","style"]),b=Object(r.a)({},v),h="".concat(t,"-overflowed-indicator"),y="".concat(t,"-overflowed-indicator");0===n.length&&!0!==o?b=Object(r.a)(Object(r.a)({},b),{},{display:"none"}):o&&(b=Object(r.a)(Object(r.a)({},b),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),y="".concat(y,"-placeholder"));var O=d?"".concat(p,"-").concat(d):"",g={};return ee.forEach((function(e){void 0!==m[e]&&(g[e]=m[e])})),c.createElement(yt,Object(j.a)({title:s,className:"".concat(p,"-overflowed-submenu"),popupClassName:O},g,{key:h,eventKey:y,disabled:!1,style:b}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];ne(o,"display","inline-block");var i=e.getMenuItemNodes(),a=i.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){ne(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return te(e,!0)})),a.forEach((function(e){ne(e,"display","none")})),e.overflowedIndicatorWidth=te(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ne(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=te(t);e.overflowedItems=[];var o,i=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(i+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return Object(C.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new oe.default((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(o,i,a){var r=i;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(a>n&&(r=c.cloneElement(i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),a===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return c.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var l=[].concat(Object(d.a)(o),[s,r]);return a===e.length-1&&l.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),l}return[].concat(Object(d.a)(o),[r])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,o=(e.theme,Object(a.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return c.createElement(i,Object(j.a)({ref:this.childRef},o),this.renderChildren(n))}}]),n}(c.Component);Ot.defaultProps={tag:"div",className:""};var gt=Ot;function jt(e,t,n){var i=e.getState();e.setState({activeKey:Object(r.a)(Object(r.a)({},i.activeKey),{},Object(o.a)({},t,n))})}function kt(e){return e.eventKey||"0-menu-"}function Ct(e,t){var n,o=t,i=e.children,a=e.eventKey;if(o&&($(i,(function(e,t){e&&e.props&&!e.props.disabled&&o===Q(e,a,t)&&(n=!0)})),n))return o;return o=null,e.defaultActiveFirst?($(i,(function(e,t){o||!e||e.props.disabled||(o=Q(e,a,t))})),o):o}function Mt(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var wt=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(e){var i;return Object(k.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return o!==h.a.UP&&o!==h.a.DOWN||(a=i.step(o===h.a.UP?-1:1)),a?(e.preventDefault(),jt(i.props.store,kt(i.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;jt(i.props.store,kt(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[kt(i.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),i.props.defaultActiveFirst||-1===a||(r=t.slice(a,o-1)).length&&!r.every((function(e){return!!e.props.disabled}))){var r,c=(a+1)%o,s=c;do{var l=t[s];if(l&&!l.props.disabled)return l;s=(s+1)%o}while(s!==c);return null}},i.renderCommonMenuItem=function(e,t,n){var o=i.props.store.getState(),a=Object(M.a)(i).props,s=Q(e,a.eventKey,t),l=e.props;if(!l||"string"==typeof e.type)return e;var u=s===o.activeKey,p=Object(r.a)(Object(r.a)({mode:l.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:l.disabled?void 0:Object(T.a)(e.ref,Mt.bind(Object(M.a)(i))),eventKey:s,active:!l.disabled&&u,multiple:a.multiple,onClick:function(e){(l.onClick||Y)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:l.itemIcon||i.props.itemIcon,expandIcon:l.expandIcon||i.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||X.any)&&(p.triggerSubMenuAction="click"),c.cloneElement(e,Object(r.a)(Object(r.a)({},p),{},{key:s||t}))},i.renderMenuItem=function(e,t,n){if(!e)return null;var o=i.props.store.getState(),a={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:Object(r.a)(Object(r.a)({},e.store.getState().activeKey),{},Object(o.a)({},e.eventKey,Ct(e,e.activeKey)))}),i.instanceArray=[],i}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!D()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[kt(t)],o=Ct(t,n);if(o!==n)jt(t.store,kt(t),o);else if("activeKey"in e){o!==Ct(e,e.activeKey)&&jt(t.store,kt(t),o)}}},{key:"render",value:function(){var e=this,t=Object(j.a)({},this.props);this.instanceArray=[];var n={className:l()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var o=t.prefixCls,i=t.eventKey,a=t.visible,r=t.level,s=t.mode,p=t.overflowedIndicator,d=t.theme;return ee.forEach((function(e){return delete t[e]})),delete t.onClick,c.createElement(gt,Object(j.a)({},t,{prefixCls:o,mode:s,tag:"ul",level:r,theme:d,visible:a,overflowedIndicator:p},n),Object(u.a)(t.children).map((function(t,n){return e.renderMenuItem(t,n,i||"0-menu-")})))}}]),n}(c.Component);wt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var Et=Object(x.b)()(wt),xt=n("Kwbf");function St(e,t,n){var o=e.prefixCls,i=e.motion,a=e.defaultMotions,r=void 0===a?{}:a,c=e.openAnimation,s=e.openTransitionName,l=t.switchingModeFromInline;if(i)return i;if("object"===Object(N.a)(c)&&c)Object(xt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(o,"-open-").concat(c)};if(s)return{motionName:s};var u=r[n];return u||(l?null:r.other)}var Tt=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(e){var o;Object(k.a)(this,n),(o=t.call(this,e)).onSelect=function(e){var t=Object(M.a)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,i=e.key;n=t.multiple?n.concat([i]):[i],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect(Object(r.a)(Object(r.a)({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=Object(M.a)(o),i=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(i.setState({openKeys:[]}),a([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=Object(M.a)(o).props,n=o.store.getState().openKeys.concat(),i=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}i=i||t};Array.isArray(e)?e.forEach(a):a(e),i&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=Object(M.a)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),i=e.key,a=n.indexOf(i);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect(Object(r.a)(Object(r.a)({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||a)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var i=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),o.store=Object(x.c)({selectedKeys:i,openKeys:a,activeKey:{"0-menu-":Ct(e,e.activeKey)}}),o.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:o.store},o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(r.a)({},Object(S.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Object(r.a)(Object(r.a)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:St(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,c.createElement(x.a,{store:this.store},c.createElement(Et,Object(j.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.store,i=o.getState(),a={},r={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(r.switchingModeFromInline=!0),"openKeys"in e?a.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(r.switchingModeFromInline=!0,r.inlineOpenKeys=i.openKeys,a.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(a.openKeys=t.inlineOpenKeys,r.inlineOpenKeys=[])),Object.keys(a).length&&o.setState(a),r}}]),n}(c.Component);Tt.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"···")};var Pt=Tt,Dt=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(){var e;return Object(k.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===h.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,a=n.onMouseLeave;i({key:o,hover:!1}),a({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,i=n.onItemHover,a=n.onMouseEnter;i({key:o,hover:!0}),a({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,i=n.multiple,a=n.onClick,r=n.onSelect,c=n.onDeselect,s=n.isSelected,l={key:o,keyPath:[o],item:Object(M.a)(e),domEvent:t};a(l),i?s?c(l):r(l):s||r(l)},e.saveNode=function(t){e.node=t},e}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(r.a)({},this.props),n=l()(this.getPrefixCls(),t.className,(e={},Object(o.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(o.a)(e,this.getSelectedClassName(),t.isSelected),Object(o.a)(e,this.getDisabledClassName(),t.disabled),e)),i=Object(r.a)(Object(r.a)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?i=Object(r.a)(Object(r.a)({},i),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(i.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},s=Object(r.a)({},t.style);"inline"===t.mode&&("rtl"===t.direction?s.paddingRight=t.inlineIndent*t.level:s.paddingLeft=t.inlineIndent*t.level),ee.forEach((function(e){return delete t[e]})),delete t.direction;var u=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(u=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object(j.a)({},Object(S.a)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,a,{style:s,ref:this.saveNode}),t.children,u)}}]),n}(c.Component);Dt.isMenuItem=!0,Dt.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var Nt=Object(x.b)((function(e,t){var n=e.activeKey,o=e.selectedKeys,i=t.eventKey;return{active:n[t.subMenuKey]===i,isSelected:Array.isArray(o)?-1!==o.indexOf(i):o===i}}))(Dt),It=function(e){Object(w.a)(n,e);var t=Object(E.a)(n);function n(){var e;return Object(k.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(C.a)(n,[{key:"render",value:function(){var e=Object(j.a)({},this.props),t=e.className,n=void 0===t?"":t,o=e.rootPrefixCls,i="".concat(o,"-item-group-title"),a="".concat(o,"-item-group-list"),r=e.title,s=e.children;return ee.forEach((function(t){return delete e[t]})),delete e.direction,c.createElement("li",Object(j.a)({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(o,"-item-group")}),c.createElement("div",{className:i,title:"string"==typeof r?r:void 0},r),c.createElement("ul",{className:a},c.Children.map(s,this.renderInnerMenuItem)))}}]),n}(c.Component);It.isMenuItemGroup=!0,It.defaultProps={disabled:!0};var Kt=function(e){var t=e.className,n=e.rootPrefixCls,o=e.style;return c.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:o})};Kt.defaultProps={disabled:!0,className:"",style:{}};var Rt=Pt,At=n("eDIo");var Lt=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));var zt=c.forwardRef((function(e,t){var n=e.prefixCls,a=e.id,r=e.tabs,s=e.locale,u=e.mobile,p=e.moreIcon,d=void 0===p?"More":p,f=e.moreTransitionName,v=e.style,m=e.className,b=e.editable,y=e.tabBarGutter,O=e.rtl,g=e.onTabClick,j=Object(c.useState)(!1),k=Object(i.a)(j,2),C=k[0],M=k[1],w=Object(c.useState)(null),E=Object(i.a)(w,2),x=E[0],S=E[1],T="".concat(a,"-more-popup"),P="".concat(n,"-dropdown"),D=null!==x?"".concat(T,"-").concat(x):null,N=null==s?void 0:s.dropdownAriaLabel,I=c.createElement(Rt,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),M(!1)},id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[x],"aria-label":void 0!==N?N:"expanded dropdown"},r.map((function(e){return c.createElement(Nt,{key:e.key,id:"".concat(T,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function K(e){for(var t=r.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===x}))||0,o=t.length,i=0;i<o;i+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void S(a.key)}}Object(c.useEffect)((function(){var e=document.getElementById(D);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[x]),Object(c.useEffect)((function(){C||S(null)}),[C]);var R=Object(o.a)({},O?"marginLeft":"marginRight",y);r.length||(R.visibility="hidden",R.order=1);var A=l()(Object(o.a)({},"".concat(P,"-rtl"),O)),L=u?null:c.createElement(At.a,{prefixCls:P,overlay:I,trigger:["hover"],visible:C,transitionName:f,onVisibleChange:M,overlayClassName:A,mouseEnterDelay:.1,mouseLeaveDelay:.1},c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(a,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case h.a.UP:K(-1),e.preventDefault();break;case h.a.DOWN:K(1),e.preventDefault();break;case h.a.ESC:M(!1);break;case h.a.SPACE:case h.a.ENTER:null!==x&&g(x,e)}else[h.a.DOWN,h.a.SPACE,h.a.ENTER].includes(t)&&(M(!0),e.preventDefault())}},d));return c.createElement("div",{className:l()("".concat(n,"-nav-operations"),m),style:v,ref:t},L,c.createElement(Lt,{prefixCls:n,locale:s,editable:b}))})),Vt=Object(c.createContext)(null),Ht=Math.pow(.995,20);function Ft(e,t){var n=c.useRef(e),o=c.useState({}),a=Object(i.a)(o,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,a({})}]}var Wt=function(e){var t,n=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a=i;return"right"===n&&(t=a.right||!a.left&&a||null),"left"===n&&(t=a.left||null),t?c.createElement("div",{className:"".concat(o,"-extra-content")},t):null};var Bt=c.forwardRef((function(e,t){var n,a,s=c.useContext(Vt),u=s.prefixCls,p=s.tabs,f=e.className,h=e.style,j=e.id,k=e.animated,C=e.activeKey,M=e.rtl,w=e.extra,E=e.editable,x=e.locale,S=e.tabPosition,T=e.tabBarGutter,P=e.children,D=e.onTabClick,N=e.onTabScroll,I=Object(c.useRef)(),K=Object(c.useRef)(),R=Object(c.useRef)(),A=Object(c.useRef)(),L=(a=Object(c.useRef)(new Map),[function(e){return a.current.has(e)||a.current.set(e,c.createRef()),a.current.get(e)},function(e){a.current.delete(e)}]),z=Object(i.a)(L,2),V=z[0],H=z[1],F="top"===S||"bottom"===S,W=Ft(0,(function(e,t){F&&N&&N({direction:e>t?"left":"right"})})),B=Object(i.a)(W,2),U=B[0],_=B[1],q=Ft(0,(function(e,t){!F&&N&&N({direction:e>t?"top":"bottom"})})),G=Object(i.a)(q,2),J=G[0],X=G[1],Y=Object(c.useState)(0),Q=Object(i.a)(Y,2),Z=Q[0],$=Q[1],ee=Object(c.useState)(0),te=Object(i.a)(ee,2),ne=te[0],oe=te[1],ie=Object(c.useState)(0),ae=Object(i.a)(ie,2),re=ae[0],ce=ae[1],se=Object(c.useState)(0),le=Object(i.a)(se,2),ue=le[0],pe=le[1],de=Object(c.useState)(null),fe=Object(i.a)(de,2),ve=fe[0],me=fe[1],be=Object(c.useState)(null),he=Object(i.a)(be,2),ye=he[0],Oe=he[1],ge=Object(c.useState)(0),je=Object(i.a)(ge,2),ke=je[0],Ce=je[1],Me=Object(c.useState)(0),we=Object(i.a)(Me,2),Ee=we[0],xe=we[1],Se=function(e){var t=Object(c.useRef)([]),n=Object(c.useState)({}),o=Object(i.a)(n,2)[1],a=Object(c.useRef)("function"==typeof e?e():e),r=b((function(){var e=a.current;t.current.forEach((function(t){e=t(e)})),t.current=[],a.current=e,o({})}));return[a.current,function(e){t.current.push(e),r()}]}(new Map),Te=Object(i.a)(Se,2),Pe=Te[0],De=Te[1],Ne=function(e,t,n){return Object(c.useMemo)((function(){for(var n,o=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||O,a=i.left+i.width,c=0;c<e.length;c+=1){var s,l=e[c].key,u=t.get(l);if(!u)u=t.get(null===(s=e[c-1])||void 0===s?void 0:s.key)||O;var p=o.get(l)||Object(r.a)({},u);p.right=a-p.left-p.width,o.set(l,p)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(p,Pe,Z),Ie="".concat(u,"-nav-operations-hidden"),Ke=0,Re=0;function Ae(e){return e<Ke?[Ke,!1]:e>Re?[Re,!1]:[e,!0]}F?M?(Ke=0,Re=Math.max(0,Z-ve)):(Ke=Math.min(0,ve-Z),Re=0):(Ke=Math.min(0,ye-ne),Re=0);var Le=Object(c.useRef)(),ze=Object(c.useState)(),Ve=Object(i.a)(ze,2),He=Ve[0],Fe=Ve[1];function We(){Fe(Date.now())}function Be(){window.clearTimeout(Le.current)}function Ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=Ne.get(e);if(t)if(F){var n=U;M?t.right<U?n=t.right:t.right+t.width>U+ve&&(n=t.right+t.width-ve):t.left<-U?n=-t.left:t.left+t.width>-U+ve&&(n=-(t.left+t.width-ve)),X(0),_(Ae(n)[0])}else{var o=J;t.top<-J?o=-t.top:t.top+t.height>-J+ye&&(o=-(t.top+t.height-ye)),_(0),X(Ae(o)[0])}}!function(e,t){var n=Object(c.useState)(),o=Object(i.a)(n,2),a=o[0],r=o[1],s=Object(c.useState)(0),l=Object(i.a)(s,2),u=l[0],p=l[1],d=Object(c.useState)(0),f=Object(i.a)(d,2),v=f[0],m=f[1],b=Object(c.useState)(),h=Object(i.a)(b,2),y=h[0],O=h[1],g=Object(c.useRef)(),j=Object(c.useRef)(0),k=Object(c.useRef)(!1),C=Object(c.useRef)(),M=Object(c.useRef)(null);M.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;r({x:n,y:o}),window.clearInterval(g.current)},onTouchMove:function(e){if(a){e.preventDefault();var n=e.touches[0],o=n.screenX,i=n.screenY;r({x:o,y:i});var c=o-a.x,s=i-a.y;t(c,s);var l=Date.now();p(l),m(l-u),O({x:c,y:s})}},onTouchEnd:function(){if(a&&(r(null),O(null),y)){var e=y.x/v,n=y.y/v,o=Math.abs(e),i=Math.abs(n);if(Math.max(o,i)<.1)return;var c=e,s=n;g.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(s)<.01?window.clearInterval(g.current):t(20*(c*=Ht),20*(s*=Ht))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,i=0,a=Math.abs(n),r=Math.abs(o);a===r?i="x"===C.current?n:o:a>r?(i=n,C.current="x"):(i=o,C.current="y");var c=Date.now();c-j.current>100&&(k.current=!1),(t(-i,-i)||k.current)&&(e.preventDefault(),k.current=!0),j.current=c}},c.useEffect((function(){function t(e){M.current.onTouchMove(e)}function n(e){M.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){M.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){M.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(I,(function(e,t){var n=!1;function o(e,t){e((function(e){var o=Ae(e+t),a=Object(i.a)(o,2),r=a[0],c=a[1];return n=c,r}))}if(F){if(ve>=Z)return n;o(_,e)}else{if(ye>=ne)return n;o(X,t)}return Be(),We(),n})),Object(c.useEffect)((function(){return Be(),He&&(Le.current=window.setTimeout((function(){Fe(0)}),100)),Be}),[He]);var _e=function(e,t,n,o,i){var a,r,s,l=i.tabs,u=i.tabPosition,p=i.rtl;["top","bottom"].includes(u)?(a="width",r=p?"right":"left",s=Math.abs(t.left)):(a="height",r="top",s=-t.top);var d=t[a],f=n[a],v=o[a],m=d;return f+v>d&&(m=d-v),Object(c.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,o=0;o<t;o+=1){var i=e.get(l[o].key)||g;if(i[r]+i[a]>s+m){n=o-1;break}}for(var c=0,u=t-1;u>=0;u-=1){if((e.get(l[u].key)||g)[r]<s){c=u+1;break}}return[c,n]}),[e,s,m,u,l.map((function(e){return e.key})).join("_"),p])}(Ne,{width:ve,height:ye,left:U,top:J},{width:re,height:ue},{width:ke,height:Ee},Object(r.a)(Object(r.a)({},e),{},{tabs:p})),qe=Object(i.a)(_e,2),Ge=qe[0],Je=qe[1],Xe=p.map((function(e){var t=e.key;return c.createElement(y,{id:j,prefixCls:u,key:t,rtl:M,tab:e,closable:e.closable,editable:E,active:t===C,tabPosition:S,tabBarGutter:T,renderWrapper:P,removeAriaLabel:null==x?void 0:x.removeAriaLabel,ref:V(t),onClick:function(e){D(t,e)},onRemove:function(){H(t)},onFocus:function(){Ue(t),We(),M||(I.current.scrollLeft=0),I.current.scrollTop=0}})})),Ye=b((function(){var e,t,n,o,i,a,r,c,s,l=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,d=(null===(n=A.current)||void 0===n?void 0:n.offsetWidth)||0,f=(null===(o=A.current)||void 0===o?void 0:o.offsetHeight)||0,v=(null===(i=R.current)||void 0===i?void 0:i.offsetWidth)||0,m=(null===(a=R.current)||void 0===a?void 0:a.offsetHeight)||0;me(l),Oe(u),Ce(d),xe(f);var b=((null===(r=K.current)||void 0===r?void 0:r.offsetWidth)||0)-d,h=((null===(c=K.current)||void 0===c?void 0:c.offsetHeight)||0)-f;$(b),oe(h);var y=null===(s=R.current)||void 0===s?void 0:s.className.includes(Ie);ce(b-(y?0:v)),pe(h-(y?0:m)),De((function(){var e=new Map;return p.forEach((function(t){var n=t.key,o=V(n).current;o&&e.set(n,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))})),Qe=p.slice(0,Ge),Ze=p.slice(Je+1),$e=[].concat(Object(d.a)(Qe),Object(d.a)(Ze)),et=Object(c.useState)(),tt=Object(i.a)(et,2),nt=tt[0],ot=tt[1],it=Ne.get(C),at=Object(c.useRef)();function rt(){v.a.cancel(at.current)}Object(c.useEffect)((function(){var e={};return it&&(F?(M?e.right=it.right:e.left=it.left,e.width=it.width):(e.top=it.top,e.height=it.height)),rt(),at.current=v()((function(){ot(e)})),rt}),[it,F,M]),Object(c.useEffect)((function(){Ue()}),[C,it,Ne,F]),Object(c.useEffect)((function(){Ye()}),[M,T,C,p.map((function(e){return e.key})).join("_")]);var ct,st,lt,ut,pt=!!$e.length,dt="".concat(u,"-nav-wrap");return F?M?(st=U>0,ct=U+ve<Z):(ct=U<0,st=-U+ve<Z):(lt=J<0,ut=-J+ye<ne),c.createElement("div",{ref:t,role:"tablist",className:l()("".concat(u,"-nav"),f),style:h,onKeyDown:function(){We()}},c.createElement(Wt,{position:"left",extra:w,prefixCls:u}),c.createElement(m.a,{onResize:Ye},c.createElement("div",{className:l()(dt,(n={},Object(o.a)(n,"".concat(dt,"-ping-left"),ct),Object(o.a)(n,"".concat(dt,"-ping-right"),st),Object(o.a)(n,"".concat(dt,"-ping-top"),lt),Object(o.a)(n,"".concat(dt,"-ping-bottom"),ut),n)),ref:I},c.createElement(m.a,{onResize:Ye},c.createElement("div",{ref:K,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(U,"px, ").concat(J,"px)"),transition:He?"none":void 0}},Xe,c.createElement(Lt,{ref:A,prefixCls:u,locale:x,editable:E,style:{visibility:pt?"hidden":null}}),c.createElement("div",{className:l()("".concat(u,"-ink-bar"),Object(o.a)({},"".concat(u,"-ink-bar-animated"),k.inkBar)),style:nt}))))),c.createElement(zt,Object.assign({},e,{ref:R,prefixCls:u,tabs:$e,className:!pt&&Ie})),c.createElement(Wt,{position:"right",extra:w,prefixCls:u}))}));function Ut(e){var t=e.id,n=e.activeKey,i=e.animated,a=e.tabPosition,r=e.rtl,s=e.destroyInactiveTabPane,u=c.useContext(Vt),p=u.prefixCls,d=u.tabs,f=i.tabPane,v=d.findIndex((function(e){return e.key===n}));return c.createElement("div",{className:l()("".concat(p,"-content-holder"))},c.createElement("div",{className:l()("".concat(p,"-content"),"".concat(p,"-content-").concat(a),Object(o.a)({},"".concat(p,"-content-animated"),f)),style:v&&f?Object(o.a)({},r?"marginRight":"marginLeft","-".concat(v,"00%")):null},d.map((function(e){return c.cloneElement(e.node,{key:e.key,prefixCls:p,tabKey:e.key,id:t,animated:f,active:e.key===n,destroyInactiveTabPane:s})}))))}function _t(e){var t=e.prefixCls,n=e.forceRender,o=e.className,a=e.style,s=e.id,u=e.active,p=e.animated,d=e.destroyInactiveTabPane,f=e.tabKey,v=e.children,m=c.useState(n),b=Object(i.a)(m,2),h=b[0],y=b[1];c.useEffect((function(){u?y(!0):d&&y(!1)}),[u,d]);var O={};return u||(p?(O.visibility="hidden",O.height=0,O.overflowY="hidden"):O.display="none"),c.createElement("div",{id:s&&"".concat(s,"-panel-").concat(f),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(f),"aria-hidden":!u,style:Object(r.a)(Object(r.a)({},O),a),className:l()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||h||n)&&v)}var qt=0;var Gt=c.forwardRef((function(e,t){var n,s,d=e.id,f=e.prefixCls,v=void 0===f?"rc-tabs":f,m=e.className,b=e.children,h=e.direction,y=e.activeKey,O=e.defaultActiveKey,g=e.editable,j=e.animated,k=e.tabPosition,C=void 0===k?"top":k,M=e.tabBarGutter,w=e.tabBarStyle,E=e.tabBarExtraContent,x=e.locale,S=e.moreIcon,T=e.moreTransitionName,P=e.destroyInactiveTabPane,D=e.renderTabBar,N=e.onChange,I=e.onTabClick,K=e.onTabScroll,R=Object(a.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),A=function(e){return Object(u.a)(e).map((function(e){if(c.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return Object(r.a)(Object(r.a)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(b),L="rtl"===h;s=!1===j?{inkBar:!1,tabPane:!1}:Object(r.a)({inkBar:!0,tabPane:!1},!0!==j?j:null);var z=Object(c.useState)(!1),V=Object(i.a)(z,2),H=V[0],F=V[1];Object(c.useEffect)((function(){var e;F((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var W=Object(p.a)((function(){var e;return null===(e=A[0])||void 0===e?void 0:e.key}),{value:y,defaultValue:O}),B=Object(i.a)(W,2),U=B[0],_=B[1],q=Object(c.useState)((function(){return A.findIndex((function(e){return e.key===U}))})),G=Object(i.a)(q,2),J=G[0],X=G[1];Object(c.useEffect)((function(){var e,t=A.findIndex((function(e){return e.key===U}));-1===t&&(t=Math.max(0,Math.min(J,A.length-1)),_(null===(e=A[t])||void 0===e?void 0:e.key));X(t)}),[A.map((function(e){return e.key})).join("_"),U,J]);var Y=Object(p.a)(null,{value:d}),Q=Object(i.a)(Y,2),Z=Q[0],$=Q[1],ee=C;H&&!["left","right"].includes(C)&&(ee="top"),Object(c.useEffect)((function(){d||($("rc-tabs-".concat(qt)),qt+=1)}),[]);var te,ne={id:Z,activeKey:U,animated:s,tabPosition:ee,rtl:L,mobile:H},oe=Object(r.a)(Object(r.a)({},ne),{},{editable:g,locale:x,moreIcon:S,moreTransitionName:T,tabBarGutter:M,onTabClick:function(e,t){null==I||I(e,t),_(e),null==N||N(e)},onTabScroll:K,extra:E,style:w,panes:b});return te=D?D(oe,Bt):c.createElement(Bt,Object.assign({},oe)),c.createElement(Vt.Provider,{value:{tabs:A,prefixCls:v}},c.createElement("div",Object.assign({ref:t,id:d,className:l()(v,"".concat(v,"-").concat(ee),(n={},Object(o.a)(n,"".concat(v,"-mobile"),H),Object(o.a)(n,"".concat(v,"-editable"),g),Object(o.a)(n,"".concat(v,"-rtl"),L),n),m)},R),te,c.createElement(Ut,Object.assign({destroyInactiveTabPane:P},ne,{animated:s}))))}));Gt.TabPane=_t;var Jt=Gt;t.b=Jt},suKe:
/*!*****************************************************!*\
!*** ./src/pages/Forums/User/Memo/sectionItem.less ***!
\*****************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},t23M:
/*!*****************************************************!*\
!*** ./node_modules/rc-resize-observer/es/index.js ***!
\*****************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";var o=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),i=n(/*! @babel/runtime/helpers/esm/classCallCheck */"1OyB"),a=n(/*! @babel/runtime/helpers/esm/createClass */"vuIU"),r=n(/*! @babel/runtime/helpers/esm/inherits */"Ji7U"),c=n(/*! @babel/runtime/helpers/esm/createSuper */"LK+K"),s=n(/*! react */"q1tI"),l=n(/*! rc-util/es/Dom/findDOMNode */"m+aA"),u=n(/*! rc-util/es/Children/toArray */"Zm9Q"),p=n(/*! rc-util/es/warning */"Kwbf"),d=n(/*! rc-util/es/ref */"c+Xe"),f=n(/*! resize-observer-polyfill */"bdgK"),v=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,i=t[0].target,a=i.getBoundingClientRect(),r=a.width,c=a.height,s=i.offsetWidth,l=i.offsetHeight,u=Math.floor(r),p=Math.floor(c);if(e.state.width!==u||e.state.height!==p||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:u,height:p,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n(Object(o.a)(Object(o.a)({},d),{},{offsetWidth:s,offsetHeight:l}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(l.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new f.default(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(u.a)(e);if(t.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(s.isValidElement(n)&&Object(d.c)(n)){var o=n.ref;t[0]=s.cloneElement(n,{ref:Object(d.a)(o,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!s.isValidElement(e)||"key"in e&&null!==e.key?e:s.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(s.Component);v.displayName="ResizeObserver",t.a=v}}]);