(window.webpackJsonp=window.webpackJsonp||[]).push([[179,14],{"+QRC":function(Ne,pe,p){"use strict";var y=p("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},H="Copy to clipboard: #{key}, Enter";function v(R){var x=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return R.replace(/#{\s*key\s*}/g,x)}function l(R,x){var ie,re,G,oe,Q,M,q=!1;x||(x={}),ie=x.debug||!1;try{G=y(),oe=document.createRange(),Q=document.getSelection(),M=document.createElement("span"),M.textContent=R,M.style.all="unset",M.style.position="fixed",M.style.top=0,M.style.clip="rect(0, 0, 0, 0)",M.style.whiteSpace="pre",M.style.webkitUserSelect="text",M.style.MozUserSelect="text",M.style.msUserSelect="text",M.style.userSelect="text",M.addEventListener("copy",function(C){if(C.stopPropagation(),x.format)if(C.preventDefault(),typeof C.clipboardData=="undefined"){ie&&console.warn("unable to use e.clipboardData"),ie&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var D=g[x.format]||g.default;window.clipboardData.setData(D,R)}else C.clipboardData.clearData(),C.clipboardData.setData(x.format,R);x.onCopy&&(C.preventDefault(),x.onCopy(C.clipboardData))}),document.body.appendChild(M),oe.selectNodeContents(M),Q.addRange(oe);var Se=document.execCommand("copy");if(!Se)throw new Error("copy command was unsuccessful");q=!0}catch(C){ie&&console.error("unable to copy using execCommand: ",C),ie&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(x.format||"text",R),x.onCopy&&x.onCopy(window.clipboardData),q=!0}catch(D){ie&&console.error("unable to copy using clipboardData: ",D),ie&&console.error("falling back to prompt"),re=v("message"in x?x.message:H),window.prompt(re,R)}}finally{Q&&(typeof Q.removeRange=="function"?Q.removeRange(oe):Q.removeAllRanges()),M&&document.body.removeChild(M),G()}return q}Ne.exports=l},"2b0W":function(Ne,pe,p){"use strict";p.r(pe);var y=p("DjyN"),g=p("NUBc"),H=p("k1fw"),v=p("/zsF"),l=p("PArb"),R=p("5Dmo"),x=p("3S7+"),ie=p("+L6B"),re=p("2/Rp"),G=p("2qtc"),oe=p("kLXV"),Q=p("9og8"),M=p("tJVT"),q=p("Znn+"),Se=p("ZTPi"),C=p("tU7J"),D=p("wFql"),S=p("WmNS"),W=p.n(S),L=p("q1tI"),A=p.n(L),Re=p("0TN8"),F=p("9kvl"),be=p("ErOA"),se=p("BdwD"),Y=p("wd/R"),Ee=p.n(Y),de=p("xKgJ"),Ue=p("vvOx"),qe=p.n(Ue),ht=p("m3rI"),bt=D.a.Paragraph,et=Se.a.TabPane,Te=function(tt){var nt,dt=tt.dispatch,Be=Object(L.useState)({limit:10,page:1,tab:"mine"}),He=Object(M.a)(Be,2),De=He[0],Ke=He[1],st=Object(L.useState)([]),P=Object(M.a)(st,2),K=P[0],U=P[1],k=Object(L.useState)(),O=Object(M.a)(k,2),E=O[0],ee=O[1];Object(L.useEffect)(function(){fe()},[]);function fe(){return Oe.apply(this,arguments)}function Oe(){return Oe=Object(Q.a)(W.a.mark(function j(){var ge;return W.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(be.a)("/api/sci/projects.json",{method:"get",params:De});case 2:ge=Ce.sent,(De==null?void 0:De.tab)==="mine"&&ee(ge==null?void 0:ge.my_sci_projects_num),U(ge);case 5:case"end":return Ce.stop()}},j)})),Oe.apply(this,arguments)}return A.a.createElement("div",null,A.a.createElement("div",null,A.a.createElement(Se.a,{activeKey:De.tab,onChange:function(ge){De.tab=ge,De.page=1,Ke(De),fe()},tabBarExtraContent:A.a.createElement(re.a,{type:"primary",onClick:function(){if((K==null?void 0:K.my_sci_projects_num)===10&&!Object(de.v)()){oe.a.warning({title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",content:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF \u8FBE\u5230\u4E0A\u9650\u3002"});return}F.d.push("/innovation/project/create")}},"\u521B\u5EFA\u9879\u76EE")},A.a.createElement(et,{key:"mine",tab:Object(de.v)()?A.a.createElement("span",{className:qe.a.title},"\u6211\u7684\u9879\u76EE"):A.a.createElement(x.a,{title:"\u9879\u76EE\u4E0A\u965010\uFF0C\u5DF2\u7528".concat(E)},A.a.createElement("span",{className:qe.a.title},"\u6211\u7684\u9879\u76EE\uFF08",E,"/10\uFF09"))}),A.a.createElement(et,{key:"share",tab:"\u4ED6\u4EBA\u5171\u4EAB"}))),(K==null?void 0:K.count)<=0&&A.a.createElement(se.a,null),K==null||((nt=K.sci_projects)===null||nt===void 0)?void 0:nt.map(function(j,ge){return A.a.createElement("div",{style:{cursor:"pointer"},onClick:function(){F.d.push("/innovation/project/detail/".concat(j==null?void 0:j.id))}},A.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},A.a.createElement("div",null,A.a.createElement("img",{style:{width:30,height:30,borderRadius:"50%",marginRight:10},src:ht.a.IMG_SERVER+"/images/"+j.avatar_url}),A.a.createElement("span",{style:{fontSize:"14px",color:"#6B758B",marginRight:10}},j==null?void 0:j.username),A.a.createElement("span",{style:{color:"#464F66",fontSize:"14px",fontWeight:400}},j==null?void 0:j.name)),A.a.createElement("div",null,A.a.createElement("span",{style:{marginRight:20,color:"#464F66"}},A.a.createElement("i",{className:"iconfont icon-chakan1 current ml5",style:{marginRight:8,color:"#B1BACD"}}),j==null?void 0:j.visits),A.a.createElement("span",{style:{marginRight:20,color:"#464F66"}},A.a.createElement(Re.a,{style:{marginRight:8}}),j==null?void 0:j.forked_count))),A.a.createElement("div",{className:qe.a.count,style:{marginTop:5,color:"#464F66",fontSize:14,marginLeft:40}},j==null?void 0:j.description),A.a.createElement("div",{style:{marginTop:15,color:"#B1BACD",fontSize:14,marginLeft:40}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",Ee()(j==null?void 0:j.created_at).format("YYYY-MM-DD HH:mm")),A.a.createElement(l.a,null))}),A.a.createElement(g.a,{style:{textAlign:"center",marginTop:20},current:De.page,pageSize:10,showSizeChanger:!1,total:K==null?void 0:K.count,hideOnSinglePage:!0,onChange:function(ge){De.page=ge,Ke(Object(H.a)({},De)),fe()}}))};pe.default=Object(F.a)(function(Ve){var tt=Ve.innovation;return{innovation:tt}})(Te)},"7ixt":function(Ne,pe,p){"use strict";p.d(pe,"a",function(){return H});var y={adjustX:1,adjustY:1},g=[0,0],H={left:{points:["cr","cl"],overflow:y,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:y,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:y,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:y,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:y,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:y,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:y,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:y,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:y,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:y,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:y,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:y,offset:[-4,0],targetOffset:g}},v=H},BU3w:function(Ne,pe,p){"use strict";p.d(pe,"a",function(){return R});var y=p("MNnm"),g="rc-util-key";function H(x){if(x.attachTo)return x.attachTo;var ie=document.querySelector("head");return ie||document.body}function v(x){var ie,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(y.a)())return null;var G=document.createElement("style");if((ie=re.csp)===null||ie===void 0?void 0:ie.nonce){var oe;G.nonce=(oe=re.csp)===null||oe===void 0?void 0:oe.nonce}G.innerHTML=x;var Q=H(re),M=Q.firstChild;return re.prepend&&Q.prepend?Q.prepend(G):re.prepend&&M?Q.insertBefore(G,M):Q.appendChild(G),G}var l=new Map;function R(x,ie){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=H(re);if(!l.has(G)){var oe=v("",re),Q=oe.parentNode;l.set(G,Q),Q.removeChild(oe)}var M=Array.from(l.get(G).children).find(function(S){return S.tagName==="STYLE"&&S[g]===ie});if(M){var q,Se;if(((q=re.csp)===null||q===void 0?void 0:q.nonce)&&M.nonce!==((Se=re.csp)===null||Se===void 0?void 0:Se.nonce)){var C;M.nonce=(C=re.csp)===null||C===void 0?void 0:C.nonce}return M.innerHTML!==x&&(M.innerHTML=x),M}var D=v(x,re);return D[g]=ie,D}},BdwD:function(Ne,pe,p){"use strict";var y=p("+L6B"),g=p("2/Rp"),H=p("0Owb"),v=p("k1fw"),l=p("q1tI"),R=p.n(l),x=p("FOrL"),ie=p.n(x),re=function(oe){var Q=oe.buttonProps,M=Q===void 0?{}:Q,q=oe.styles,Se=q===void 0?{}:q,C=oe.customText,D=oe.ButtonText,S=oe.ButtonClick,W=oe.Buttonclass,L=oe.ButtonTwo;return R.a.createElement("section",{className:"tc animated fadeIn",style:Object(v.a)(Object(v.a)({},{color:"#999",margin:"200px auto"}),Se)},R.a.createElement("img",{src:ie.a}),R.a.createElement("p",{className:"mt20 font14"},C||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),D&&R.a.createElement(g.a,Object(H.a)({className:W,onClick:S},M),D),L&&L)};pe.a=re},E9nw:function(Ne,pe){Ne.exports=function(){var p=document.getSelection();if(!p.rangeCount)return function(){};for(var y=document.activeElement,g=[],H=0;H
1&&arguments[1]!==void 0?arguments[1]:!1,U=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(K&&et[U])return et[U];var k=window.getComputedStyle(P),O=k.getPropertyValue("box-sizing")||k.getPropertyValue("-moz-box-sizing")||k.getPropertyValue("-webkit-box-sizing"),E=parseFloat(k.getPropertyValue("padding-bottom"))+parseFloat(k.getPropertyValue("padding-top")),ee=parseFloat(k.getPropertyValue("border-bottom-width"))+parseFloat(k.getPropertyValue("border-top-width")),fe=bt.map(function(j){return"".concat(j,":").concat(k.getPropertyValue(j))}).join(";"),Oe={sizingStyle:fe,paddingSize:E,borderSize:ee,boxSizing:O};return K&&U&&(et[U]=Oe),Oe}function tt(P){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Te||(Te=document.createElement("textarea"),Te.setAttribute("tab-index","-1"),Te.setAttribute("aria-hidden","true"),document.body.appendChild(Te)),P.getAttribute("wrap")?Te.setAttribute("wrap",P.getAttribute("wrap")):Te.removeAttribute("wrap");var O=Ve(P,K),E=O.paddingSize,ee=O.borderSize,fe=O.boxSizing,Oe=O.sizingStyle;Te.setAttribute("style","".concat(Oe,";").concat(ht)),Te.value=P.value||P.placeholder||"";var j=Number.MIN_SAFE_INTEGER,ge=Number.MAX_SAFE_INTEGER,Le=Te.scrollHeight,Ce;if(fe==="border-box"?Le+=ee:fe==="content-box"&&(Le-=E),U!==null||k!==null){Te.value=" ";var ot=Te.scrollHeight-E;U!==null&&(j=ot*U,fe==="border-box"&&(j=j+E+ee),Le=Math.max(j,Le)),k!==null&&(ge=ot*k,fe==="border-box"&&(ge=ge+E+ee),Ce=Le>ge?"":"hidden",Le=Math.min(ge,Le))}return{height:Le,minHeight:j,maxHeight:ge,overflowY:Ce,resize:"none"}}var nt=p("Gytx"),dt=p.n(nt),Be;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(Be||(Be={}));var He=function(P){Object(v.a)(U,P);var K=Object(l.a)(U);function U(k){var O;return Object(g.a)(this,U),O=K.call(this,k),O.nextFrameActionId=void 0,O.resizeFrameId=void 0,O.textArea=void 0,O.saveTextArea=function(E){O.textArea=E},O.handleResize=function(E){var ee=O.state.resizeStatus,fe=O.props,Oe=fe.autoSize,j=fe.onResize;if(ee!==Be.NONE)return;typeof j=="function"&&j(E),Oe&&O.resizeOnNextFrame()},O.resizeOnNextFrame=function(){cancelAnimationFrame(O.nextFrameActionId),O.nextFrameActionId=requestAnimationFrame(O.resizeTextarea)},O.resizeTextarea=function(){var E=O.props.autoSize;if(!E||!O.textArea)return;var ee=E.minRows,fe=E.maxRows,Oe=tt(O.textArea,!1,ee,fe);O.setState({textareaStyles:Oe,resizeStatus:Be.RESIZING},function(){cancelAnimationFrame(O.resizeFrameId),O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:Be.RESIZED},function(){O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:Be.NONE}),O.fixFirefoxAutoScroll()})})})})},O.renderTextArea=function(){var E=O.props,ee=E.prefixCls,fe=ee===void 0?"rc-textarea":ee,Oe=E.autoSize,j=E.onResize,ge=E.className,Le=E.disabled,Ce=O.state,ot=Ce.textareaStyles,at=Ce.resizeStatus,rt=Object(de.a)(O.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),lt=qe()(fe,ge,Object(ie.a)({},"".concat(fe,"-disabled"),Le));"value"in rt&&(rt.value=rt.value||"");var gt=Object(x.a)(Object(x.a)(Object(x.a)({},O.props.style),ot),at===Be.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(Ee,{onResize:O.handleResize,disabled:!(Oe||j)},R.createElement("textarea",Object(y.a)({},rt,{className:lt,style:gt,ref:O.saveTextArea})))},O.state={textareaStyles:{},resizeStatus:Be.NONE},O}return Object(H.a)(U,[{key:"componentDidUpdate",value:function(O){(O.value!==this.props.value||!dt()(O.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var O=this.textArea.selectionStart,E=this.textArea.selectionEnd;this.textArea.setSelectionRange(O,E)}}catch(ee){}}},{key:"render",value:function(){return this.renderTextArea()}}]),U}(R.Component),De=He,Ke=function(P){Object(v.a)(U,P);var K=Object(l.a)(U);function U(k){var O;Object(g.a)(this,U),O=K.call(this,k),O.resizableTextArea=void 0,O.focus=function(){O.resizableTextArea.textArea.focus()},O.saveTextArea=function(ee){O.resizableTextArea=ee},O.handleChange=function(ee){var fe=O.props.onChange;O.setValue(ee.target.value,function(){O.resizableTextArea.resizeTextarea()}),fe&&fe(ee)},O.handleKeyDown=function(ee){var fe=O.props,Oe=fe.onPressEnter,j=fe.onKeyDown;ee.keyCode===13&&Oe&&Oe(ee),j&&j(ee)};var E=typeof k.value=="undefined"||k.value===null?k.defaultValue:k.value;return O.state={value:E},O}return Object(H.a)(U,[{key:"setValue",value:function(O,E){"value"in this.props||this.setState({value:O},E)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement(De,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(O){return"value"in O?{value:O.value}:null}}]),U}(R.Component),st=pe.default=Ke},bT9E:function(Ne,pe,p){"use strict";p.d(pe,"a",function(){return g});var y=p("VTBJ");function g(H,v){var l=Object(y.a)({},H);return Array.isArray(v)&&v.forEach(function(R){delete l[R]}),l}},k3GJ:function(Ne,pe,p){"use strict";p.d(pe,"a",function(){return ro});var y=p("rePB"),g=p("ODXe"),H=p("Ff2n"),v=p("VTBJ"),l=p("q1tI"),R=p("TSYQ"),x=p.n(R),ie=p("Zm9Q"),re=p("6cGi"),G=p("KQm4"),oe=p("xEkU"),Q=p.n(oe),M=p("t23M");function q(o){var s=Object(l.useRef)(),c=Object(l.useRef)(!1);function r(){for(var e=arguments.length,n=new Array(e),t=0;tf&&(h=f-b),Object(l.useMemo)(function(){if(!n.length)return[0,0];for(var _=n.length,I=_,X=0;X<_;X+=1){var z=o.get(n[X].key)||A;if(z[d]+z[i]>u+h){I=X-1;break}}for(var J=0,$=_-1;$>=0;$-=1){var B=o.get(n[$].key)||A;if(B[d]1&&arguments[1]!==void 0?arguments[1]:!1,r=s&&typeof s.getBoundingClientRect=="function"&&s.getBoundingClientRect().width;if(r){if(c){var e=getComputedStyle(s),n=e.marginLeft,t=e.marginRight;r+=+n.replace("px","")+ +t.replace("px","")}r=+r.toFixed(6)}return r||0},lt=function(s,c,r){s&&Object(Te.a)(s.style)==="object"&&(s.style[c]=r)},gt=function(){return Oe.any},Dt=p("bdgK"),yt=p("i8i4"),_t=p.n(yt),Xe=p("wgJM"),Ct=p("l4aY"),At=p("m+aA"),Pt=p("c+Xe"),Mt=p("zT1h"),Bt=p("QC+M");function wo(o,s,c){return c?o[0]===s[0]:o[0]===s[0]&&o[1]===s[1]}function No(o,s,c){var r=o[s]||{};return Object(v.a)(Object(v.a)({},r),c)}function Lo(o,s,c,r){for(var e=c.points,n=Object.keys(o),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;s();var n=Object(Xe.a)(function(){e<=1?r({isCanceled:function(){return n!==o.current}}):c(r,e-1)});o.current=n}return l.useEffect(function(){return function(){s()}},[]),[c,s]},An=[ut,jt,Tt,en],Pn=!1,Fo=!0;function wn(o){return o===Tt||o===en}var Bo=function(o,s){var c=l.useState(Rn),r=Object(g.a)(c,2),e=r[0],n=r[1],t=Wo(),a=Object(g.a)(t,2),i=a[0],d=a[1];function u(){n(ut)}return Dn(function(){if(e!==Rn&&e!==en){var f=An.indexOf(e),m=An[f+1],b=s(e);b===Pn?n(m):i(function(h){function _(){if(h.isCanceled())return;n(m)}b===!0?_():Promise.resolve(b).then(_)})}},[o,e]),l.useEffect(function(){return function(){d()}},[]),[u,e]},Vo=function(o){var s=Object(l.useRef)(),c=Object(l.useRef)(o);c.current=o;var r=l.useCallback(function(t){c.current(t)},[]);function e(t){t&&(t.removeEventListener(xn,r),t.removeEventListener(Tn,r))}function n(t){s.current&&s.current!==t&&e(s.current),t&&t!==s.current&&(t.addEventListener(xn,r),t.addEventListener(Tn,r),s.current=t)}return l.useEffect(function(){return function(){e(s.current)}},[]),[n,e]};function Ho(o,s,c,r){var e=r.motionEnter,n=e===void 0?!0:e,t=r.motionAppear,a=t===void 0?!0:t,i=r.motionLeave,d=i===void 0?!0:i,u=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,b=r.onEnterPrepare,h=r.onLeavePrepare,_=r.onAppearStart,I=r.onEnterStart,X=r.onLeaveStart,z=r.onAppearActive,J=r.onEnterActive,$=r.onLeaveActive,B=r.onAppearEnd,V=r.onEnterEnd,le=r.onLeaveEnd,Z=r.onVisibleChanged,Ae=tn(),ve=Object(g.a)(Ae,2),N=ve[0],w=ve[1],te=tn(wt),ae=Object(g.a)(te,2),T=ae[0],ue=ae[1],Me=tn(null),ce=Object(g.a)(Me,2),ye=ce[0],xe=ce[1],ze=Object(l.useRef)(!1),Ge=Object(l.useRef)(null),Pe=Object(l.useRef)(!1),Ye=Object(l.useRef)(null);function it(){var je=c();return je||Ye.current}var Je=Object(l.useRef)(!1);function Qe(je){var me=it();if(je&&!je.deadline&&je.target!==me)return;var Fe;T===Qt&&Je.current?Fe=B==null?void 0:B(me,je):T===Zt&&Je.current?Fe=V==null?void 0:V(me,je):T===qt&&Je.current&&(Fe=le==null?void 0:le(me,je)),Fe!==!1&&!Pe.current&&(ue(wt),xe(null))}var we=Vo(Qe),$e=Object(g.a)(we,1),We=$e[0],ke=l.useMemo(function(){var je,me,Fe;switch(T){case"appear":return je={},Object(y.a)(je,ut,m),Object(y.a)(je,jt,_),Object(y.a)(je,Tt,z),je;case"enter":return me={},Object(y.a)(me,ut,b),Object(y.a)(me,jt,I),Object(y.a)(me,Tt,J),me;case"leave":return Fe={},Object(y.a)(Fe,ut,h),Object(y.a)(Fe,jt,X),Object(y.a)(Fe,Tt,$),Fe;default:return{}}},[T]),pt=Bo(T,function(je){if(je===ut){var me=ke[ut];return me?me(it()):Pn}if(_e in ke){var Fe;xe(((Fe=ke[_e])===null||Fe===void 0?void 0:Fe.call(ke,it(),null))||null)}return _e===Tt&&(We(it()),u>0&&(clearTimeout(Ge.current),Ge.current=setTimeout(function(){Qe({deadline:!0})},u))),Fo}),mt=Object(g.a)(pt,2),Et=mt[0],_e=mt[1],ct=wn(_e);Je.current=ct,Dn(function(){w(s);var je=ze.current;if(ze.current=!0,!o)return;var me;!je&&s&&a&&(me=Qt),je&&s&&n&&(me=Zt),(je&&!s&&d||!je&&f&&!s&&d)&&(me=qt),me&&(ue(me),Et())},[s]),Object(l.useEffect)(function(){(T===Qt&&!a||T===Zt&&!n||T===qt&&!d)&&ue(wt)},[a,n,d]),Object(l.useEffect)(function(){return function(){clearTimeout(Ge.current),Pe.current=!0}},[]),Object(l.useEffect)(function(){N!==void 0&&T===wt&&(Z==null||Z(N))},[N,T]);var Ot=ye;return ke[ut]&&_e===jt&&(Ot=Object(v.a)({transition:"none"},Ot)),[T,_e,Ot,N!=null?N:s]}var Xo=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(){return Object(be.a)(this,c),s.apply(this,arguments)}return Object(se.a)(c,[{key:"render",value:function(){return this.props.children}}]),c}(l.Component),$o=Xo;function Go(o){var s=o;Object(Te.a)(o)==="object"&&(s=o.transitionSupport);function c(e){return!!(e.motionName&&s)}var r=l.forwardRef(function(e,n){var t=e.visible,a=t===void 0?!0:t,i=e.removeOnLeave,d=i===void 0?!0:i,u=e.forceRender,f=e.children,m=e.motionName,b=e.leavedClassName,h=e.eventProps,_=c(e),I=Object(l.useRef)(),X=Object(l.useRef)();function z(){try{return Object(At.a)(I.current||X.current)}catch(ue){return null}}var J=Ho(_,a,z,e),$=Object(g.a)(J,4),B=$[0],V=$[1],le=$[2],Z=$[3],Ae=l.useRef(Z);Z&&(Ae.current=!0);var ve=Object(l.useRef)(n);ve.current=n;var N=l.useCallback(function(ue){I.current=ue,Object(Pt.b)(ve.current,ue)},[]),w,te=Object(v.a)(Object(v.a)({},h),{},{visible:a});if(!f)w=null;else if(B===wt||!c(e))Z?w=f(Object(v.a)({},te),N):!d&&Ae.current?w=f(Object(v.a)(Object(v.a)({},te),{},{className:b}),N):u?w=f(Object(v.a)(Object(v.a)({},te),{},{style:{display:"none"}}),N):w=null;else{var ae,T;V===ut?T="prepare":wn(V)?T="active":V===jt&&(T="start"),w=f(Object(v.a)(Object(v.a)({},te),{},{className:x()(Sn(m,B),(ae={},Object(y.a)(ae,Sn(m,"".concat(B,"-").concat(T)),T),Object(y.a)(ae,m,typeof m=="string"),ae)),style:le}),N)}return l.createElement($o,{ref:X},w)});return r.displayName="CSSMotion",r}var Nn=Go(jn),nn="add",on="keep",an="remove",Ln="removed";function Yo(o){var s;return o&&Object(Te.a)(o)==="object"&&"key"in o?s=o:s={key:o},Object(v.a)(Object(v.a)({},s),{},{key:String(s.key)})}function rn(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return o.map(Yo)}function Jo(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=[],r=0,e=s.length,n=rn(o),t=rn(s);n.forEach(function(d){for(var u=!1,f=r;f1});return i.forEach(function(d){c=c.filter(function(u){var f=u.key,m=u.status;return f!==d||m!==an}),c.forEach(function(u){u.key===d&&(u.status=on)})}),c}var Qo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zo(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nn,c=function(r){Object(Ee.a)(n,r);var e=Object(de.a)(n);function n(){var t;return Object(be.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(a){t.setState(function(i){var d=i.keyEntities;return{keyEntities:d.map(function(u){return u.key!==a?u:Object(v.a)(Object(v.a)({},u),{},{status:Ln})})}})},t}return Object(se.a)(n,[{key:"render",value:function(){var a=this,i=this.state.keyEntities,d=this.props,u=d.component,f=d.children,m=d.onVisibleChanged,b=Object(H.a)(d,["component","children","onVisibleChanged"]),h=u||l.Fragment,_={};return Qo.forEach(function(I){_[I]=b[I],delete b[I]}),delete b.keys,l.createElement(h,b,i.map(function(I){var X=I.status,z=Object(H.a)(I,["status"]),J=X===nn||X===on;return l.createElement(s,Object(F.a)({},_,{key:z.key,visible:J,eventProps:z,onVisibleChanged:function(B){m==null||m(B,{key:z.key}),B||a.removeKey(z.key)}}),f)}))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var d=a.keys,u=i.keyEntities,f=rn(d),m=Jo(u,f);return{keyEntities:m.filter(function(b){var h=u.find(function(_){var I=_.key;return b.key===I});return!(h&&h.status===Ln&&b.status===an)})}}}]),n}(l.Component);return c.defaultProps={component:"div"},c}var fr=Zo(jn),Ht=Nn;function kn(o){var s=o.prefixCls,c=o.motion,r=o.animation,e=o.transitionName;return c||(r?{motionName:"".concat(s,"-").concat(r)}:e?{motionName:e}:null)}function qo(o){var s=o.prefixCls,c=o.visible,r=o.zIndex,e=o.mask,n=o.maskMotion,t=o.maskAnimation,a=o.maskTransitionName;if(!e)return null;var i={};return(n||a||t)&&(i=Object(v.a)({motionAppear:!0},kn({motion:n,prefixCls:s,transitionName:a,animation:t}))),l.createElement(Ht,Object(F.a)({},i,{visible:c,removeOnLeave:!0}),function(d){var u=d.className;return l.createElement("div",{style:{zIndex:r},className:x()("".concat(s,"-mask"),u)})})}var ea=p("9mu1"),ta=p("o0o1"),In=p.n(ta),na=p("HaE+"),Un=["measure","align",null,"motion"],oa=function(o,s){var c=Object(l.useState)(null),r=Object(g.a)(c,2),e=r[0],n=r[1],t=Object(l.useRef)(),a=Object(l.useRef)(!1);function i(f){a.current||n(f)}function d(){Xe.a.cancel(t.current)}function u(f){d(),t.current=Object(Xe.a)(function(){i(function(m){switch(e){case"align":return"motion";case"motion":return"stable";default:}return m}),f==null||f()})}return Object(l.useEffect)(function(){i("measure")},[o]),Object(l.useEffect)(function(){switch(e){case"measure":s();break;default:}e&&(t.current=Object(Xe.a)(Object(na.a)(In.a.mark(function f(){var m,b;return In.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:m=Un.indexOf(e),b=Un[m+1],b&&m!==-1&&i(b);case 3:case"end":return _.stop()}},f)}))))},[e]),Object(l.useEffect)(function(){return function(){a.current=!0,d()}},[]),[e,u]},aa=function(o){var s=l.useState({width:0,height:0}),c=Object(g.a)(s,2),r=c[0],e=c[1];function n(a){e({width:a.offsetWidth,height:a.offsetHeight})}var t=l.useMemo(function(){var a={};if(o){var i=r.width,d=r.height;o.indexOf("height")!==-1&&d?a.height=d:o.indexOf("minHeight")!==-1&&d&&(a.minHeight=d),o.indexOf("width")!==-1&&i?a.width=i:o.indexOf("minWidth")!==-1&&i&&(a.minWidth=i)}return a},[o,r]);return[t,n]},Kn=l.forwardRef(function(o,s){var c=o.visible,r=o.prefixCls,e=o.className,n=o.style,t=o.children,a=o.zIndex,i=o.stretch,d=o.destroyPopupOnHide,u=o.forceRender,f=o.align,m=o.point,b=o.getRootDomNode,h=o.getClassNameFromAlign,_=o.onAlign,I=o.onMouseEnter,X=o.onMouseLeave,z=o.onMouseDown,J=o.onTouchStart,$=Object(l.useRef)(),B=Object(l.useRef)(),V=Object(l.useState)(),le=Object(g.a)(V,2),Z=le[0],Ae=le[1],ve=aa(i),N=Object(g.a)(ve,2),w=N[0],te=N[1];function ae(){i&&te(b())}var T=oa(c,ae),ue=Object(g.a)(T,2),Me=ue[0],ce=ue[1],ye=Object(l.useRef)();function xe(){return m||b}function ze(){var we;(we=$.current)===null||we===void 0||we.forceAlign()}function Ge(we,$e){var We=h($e);Z!==We&&Ae(We),Me==="align"&&(Z!==We?Promise.resolve().then(function(){ze()}):ce(function(){var ke;(ke=ye.current)===null||ke===void 0||ke.call(ye)}),_==null||_(we,$e))}var Pe=Object(v.a)({},kn(o));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(we){var $e=Pe[we];Pe[we]=function(We,ke){return ce(),$e==null?void 0:$e(We,ke)}});function Ye(){return new Promise(function(we){ye.current=we})}l.useEffect(function(){!Pe.motionName&&Me==="motion"&&ce()},[Pe.motionName,Me]),l.useImperativeHandle(s,function(){return{forceAlign:ze,getElement:function(){return B.current}}});var it=Object(v.a)(Object(v.a)({},w),{},{zIndex:a,opacity:Me==="motion"||Me==="stable"||!c?void 0:0,pointerEvents:Me==="stable"?void 0:"none"},n),Je=!0;(f==null?void 0:f.points)&&(Me==="align"||Me==="stable")&&(Je=!1);var Qe=t;return l.Children.count(t)>1&&(Qe=l.createElement("div",{className:"".concat(r,"-content")},t)),l.createElement(Ht,Object(F.a)({visible:c,ref:B,leavedClassName:"".concat(r,"-hidden")},Pe,{onAppearPrepare:Ye,onEnterPrepare:Ye,removeOnLeave:d,forceRender:u}),function(we,$e){var We=we.className,ke=we.style,pt=x()(r,e,Z,We);return l.createElement(ea.a,{target:xe(),key:"popup",ref:$,monitorWindowResize:!0,disabled:Je,align:f,onAlign:Ge},l.createElement("div",{ref:$e,className:pt,onMouseEnter:I,onMouseLeave:X,onMouseDownCapture:z,onTouchStartCapture:J,style:Object(v.a)(Object(v.a)({},ke),it)},Qe))})});Kn.displayName="PopupInner";var ra=Kn,zn=l.forwardRef(function(o,s){var c=o.prefixCls,r=o.visible,e=o.zIndex,n=o.children,t=o.mobile;t=t===void 0?{}:t;var a=t.popupClassName,i=t.popupStyle,d=t.popupMotion,u=d===void 0?{}:d,f=t.popupRender,m=l.useRef();l.useImperativeHandle(s,function(){return{forceAlign:function(){},getElement:function(){return m.current}}});var b=Object(v.a)({zIndex:e},i),h=n;return l.Children.count(n)>1&&(h=l.createElement("div",{className:"".concat(c,"-content")},n)),f&&(h=f(h)),l.createElement(Ht,Object(F.a)({visible:r,ref:m,removeOnLeave:!0},u),function(_,I){var X=_.className,z=_.style,J=x()(c,a,X);return l.createElement("div",{ref:I,className:J,style:Object(v.a)(Object(v.a)({},z),b)},h)})});zn.displayName="MobilePopupInner";var ia=zn,sa=["visible","mobile"],Wn=l.forwardRef(function(o,s){var c=o.visible,r=o.mobile,e=Object(H.a)(o,sa),n=Object(l.useState)(c),t=Object(g.a)(n,2),a=t[0],i=t[1],d=Object(l.useState)(!1),u=Object(g.a)(d,2),f=u[0],m=u[1],b=Object(v.a)(Object(v.a)({},e),{},{visible:a});Object(l.useEffect)(function(){i(c),c&&r&&m(ko())},[c,r]);var h=f?l.createElement(ia,Object(F.a)({},b,{mobile:r,ref:s})):l.createElement(ra,Object(F.a)({},b,{ref:s}));return l.createElement("div",null,l.createElement(qo,b),h)});Wn.displayName="Popup";var la=Wn,ua=l.createContext(null),Fn=ua;function sn(){}function ca(){return""}function da(o){return o?o.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function pa(o){var s=function(c){Object(Ee.a)(e,c);var r=Object(de.a)(e);function e(n){var t;Object(be.a)(this,e),t=r.call(this,n),t.popupRef=l.createRef(),t.triggerRef=l.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(i){var d=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",i),t.delaySetPopupVisible(!0,d,d?null:i)},t.onMouseMove=function(i){t.fireEvents("onMouseMove",i),t.setPoint(i)},t.onMouseLeave=function(i){t.fireEvents("onMouseLeave",i),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(i){var d;if(i.relatedTarget&&!i.relatedTarget.setTimeout&&Object(Ct.a)((d=t.popupRef.current)===null||d===void 0?void 0:d.getElement(),i.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(i){t.fireEvents("onFocus",i),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(i){t.fireEvents("onMouseDown",i),t.preClickTime=Date.now()},t.onTouchStart=function(i){t.fireEvents("onTouchStart",i),t.preTouchTime=Date.now()},t.onBlur=function(i){t.fireEvents("onBlur",i),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(i){i.preventDefault(),t.fireEvents("onContextMenu",i),t.setPopupVisible(!0,i)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(i){if(t.fireEvents("onClick",i),t.focusTime){var d;if(t.preClickTime&&t.preTouchTime?d=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?d=t.preClickTime:t.preTouchTime&&(d=t.preTouchTime),Math.abs(d-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&i&&i.preventDefault&&i.preventDefault();var u=!t.state.popupVisible;(t.isClickToHide()&&!u||u&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,i)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var i;(i=t.context).onPopupMouseDown.apply(i,arguments)}},t.onDocumentClick=function(i){if(t.props.mask&&!t.props.maskClosable)return;var d=i.target,u=t.getRootDomNode(),f=t.getPopupDomNode();(!Object(Ct.a)(u,d)||t.isContextMenuOnly())&&!Object(Ct.a)(f,d)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var i=t.props.getTriggerDOMNode;if(i)return i(t.triggerRef.current);try{var d=Object(At.a)(t.triggerRef.current);if(d)return d}catch(u){}return _t.a.findDOMNode(Object(Y.a)(t))},t.getPopupClassNameFromAlign=function(i){var d=[],u=t.props,f=u.popupPlacement,m=u.builtinPlacements,b=u.prefixCls,h=u.alignPoint,_=u.getPopupClassNameFromAlign;return f&&m&&d.push(Lo(m,b,i,h)),_&&d.push(_(i)),d.join(" ")},t.getComponent=function(){var i=t.props,d=i.prefixCls,u=i.destroyPopupOnHide,f=i.popupClassName,m=i.onPopupAlign,b=i.popupMotion,h=i.popupAnimation,_=i.popupTransitionName,I=i.popupStyle,X=i.mask,z=i.maskAnimation,J=i.maskTransitionName,$=i.maskMotion,B=i.zIndex,V=i.popup,le=i.stretch,Z=i.alignPoint,Ae=i.mobile,ve=i.forceRender,N=t.state,w=N.popupVisible,te=N.point,ae=t.getPopupAlign(),T={};return t.isMouseEnterToShow()&&(T.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(T.onMouseLeave=t.onPopupMouseLeave),T.onMouseDown=t.onPopupMouseDown,T.onTouchStart=t.onPopupMouseDown,l.createElement(la,Object(F.a)({prefixCls:d,destroyPopupOnHide:u,visible:w,point:Z&&te,className:f,align:ae,onAlign:m,animation:h,getClassNameFromAlign:t.getPopupClassNameFromAlign},T,{stretch:le,getRootDomNode:t.getRootDomNode,style:I,mask:X,zIndex:B,transitionName:_,maskAnimation:z,maskTransitionName:J,maskMotion:$,ref:t.popupRef,motion:b,mobile:Ae,forceRender:ve}),typeof V=="function"?V():V)},t.attachParent=function(i){Xe.a.cancel(t.attachId);var d=t.props,u=d.getPopupContainer,f=d.getDocument,m=t.getRootDomNode(),b;u?(m||u.length===0)&&(b=u(m)):b=f(t.getRootDomNode()).body,b?b.appendChild(i):t.attachId=Object(Xe.a)(function(){t.attachParent(i)})},t.getContainer=function(){var i=t.props.getDocument,d=i(t.getRootDomNode()).createElement("div");return d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.width="100%",t.attachParent(d),d},t.setPoint=function(i){var d=t.props.alignPoint;if(!d||!i)return;t.setState({point:{pageX:i.pageX,pageY:i.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var a;return"popupVisible"in n?a=!!n.popupVisible:a=!!n.defaultPopupVisible,t.state={prevPopupVisible:a,popupVisible:a},fa.forEach(function(i){t["fire".concat(i)]=function(d){t.fireEvents(i,d)}}),t}return Object(se.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,a=this.state;if(a.popupVisible){var i;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(i=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Mt.a)(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Mt.a)(i,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(i=i||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Mt.a)(i,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Mt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,a=t.popupPlacement,i=t.popupAlign,d=t.builtinPlacements;return a&&d?No(d,a,i):i}},{key:"setPopupVisible",value:function(t,a){var i=this.props.alignPoint,d=this.state.popupVisible;this.clearDelayTimer(),d!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:d}),this.props.onPopupVisibleChange(t)),i&&a&&t&&this.setPoint(a)}},{key:"delaySetPopupVisible",value:function(t,a,i){var d=this,u=a*1e3;if(this.clearDelayTimer(),u){var f=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=window.setTimeout(function(){d.setPopupVisible(t,f),d.clearDelayTimer()},u)}else this.setPopupVisible(t,i)}},{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(t){var a=this.props.children.props,i=this.props;return a[t]&&i[t]?this["fire".concat(t)]:a[t]||i[t]}},{key:"isClickToShow",value:function(){var t=this.props,a=t.action,i=t.showAction;return a.indexOf("click")!==-1||i.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,a=t.action,i=t.showAction;return a.indexOf("contextMenu")!==-1||i.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,a=t.action,i=t.hideAction;return a.indexOf("click")!==-1||i.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,a=t.action,i=t.showAction;return a.indexOf("hover")!==-1||i.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,a=t.action,i=t.hideAction;return a.indexOf("hover")!==-1||i.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,a=t.action,i=t.showAction;return a.indexOf("focus")!==-1||i.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,a=t.action,i=t.hideAction;return a.indexOf("focus")!==-1||i.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,a){var i=this.props.children.props[t];i&&i(a);var d=this.props[t];d&&d(a)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,a=this.props,i=a.children,d=a.forceRender,u=a.alignPoint,f=a.className,m=a.autoDestroy,b=l.Children.only(i),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,u&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var _=x()(b&&b.props&&b.props.className,f);_&&(h.className=_);var I=Object(v.a)({},h);Object(Pt.c)(b)&&(I.ref=Object(Pt.a)(this.triggerRef,b.ref));var X=l.cloneElement(b,I),z;return(t||this.popupRef.current||d)&&(z=l.createElement(o,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&m&&(z=null),l.createElement(Fn.Provider,{value:this.triggerContextValue},X,z)}}],[{key:"getDerivedStateFromProps",value:function(t,a){var i=t.popupVisible,d={};return i!==void 0&&a.popupVisible!==i&&(d.popupVisible=i,d.prevPopupVisible=a.popupVisible),d}}]),e}(l.Component);return s.contextType=Fn,s.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ca,getDocument:da,onPopupVisibleChange:sn,afterPopupVisibleChange:sn,onPopupAlign:sn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},s}var ma=pa(Bt.a),ft={adjustX:1,adjustY:1},Bn={topLeft:{points:["bl","tl"],overflow:ft,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ft,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ft,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ft,offset:[4,0]}},va={topLeft:{points:["bl","tl"],overflow:ft,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ft,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ft,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ft,offset:[4,0]}},pr=Bn,Vn=0,ha={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Nt=function(s,c,r){var e=Le(c),n=s.getState();s.setState({defaultActiveFirst:Object(v.a)(Object(v.a)({},n.defaultActiveFirst),{},Object(y.a)({},e,r))})},Hn=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(r){var e;Object(be.a)(this,c),e=s.call(this,r),e.onDestroy=function(u){e.props.onDestroy(u)},e.onKeyDown=function(u){var f=u.keyCode,m=e.menuInstance,b=e.props.store,h=e.getVisible();if(f===C.a.ENTER)return e.onTitleClick(u),Nt(b,e.props.eventKey,!0),!0;if(f===C.a.RIGHT)return h?m.onKeyDown(u):(e.triggerOpenChange(!0),Nt(b,e.props.eventKey,!0)),!0;if(f===C.a.LEFT){var _;if(h)_=m.onKeyDown(u);else return;return _||(e.triggerOpenChange(!1),_=!0),_}return h&&(f===C.a.UP||f===C.a.DOWN)?m.onKeyDown(u):void 0},e.onOpenChange=function(u){e.props.onOpenChange(u)},e.onPopupVisibleChange=function(u){e.triggerOpenChange(u,u?"mouseenter":"mouseleave")},e.onMouseEnter=function(u){var f=e.props,m=f.eventKey,b=f.onMouseEnter,h=f.store;Nt(h,e.props.eventKey,!1),b({key:m,domEvent:u})},e.onMouseLeave=function(u){var f=e.props,m=f.parentMenu,b=f.eventKey,h=f.onMouseLeave;m.subMenuInstance=Object(Y.a)(e),h({key:b,domEvent:u})},e.onTitleMouseEnter=function(u){var f=e.props,m=f.eventKey,b=f.onItemHover,h=f.onTitleMouseEnter;b({key:m,hover:!0}),h({key:m,domEvent:u})},e.onTitleMouseLeave=function(u){var f=e.props,m=f.parentMenu,b=f.eventKey,h=f.onItemHover,_=f.onTitleMouseLeave;m.subMenuInstance=Object(Y.a)(e),h({key:b,hover:!1}),_({key:b,domEvent:u})},e.onTitleClick=function(u){var f=Object(Y.a)(e),m=f.props;if(m.onTitleClick({key:m.eventKey,domEvent:u}),m.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Nt(m.store,e.props.eventKey,!1)},e.onSubMenuClick=function(u){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(u))},e.onSelect=function(u){e.props.onSelect(u)},e.onDeselect=function(u){e.props.onDeselect(u)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(u){e.menuInstance=u},e.addKeyPath=function(u){return Object(v.a)(Object(v.a)({},u),{},{keyPath:(u.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(u,f){var m=e.props.eventKey,b=function(){e.onOpenChange({key:m,item:Object(Y.a)(e),trigger:f,open:u})};f==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){b()},0):b()},e.isChildrenSelected=function(){var u={find:!1};return ot(e.props.children,e.props.selectedKeys,u),u.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var u=yt.findDOMNode(e.menuInstance);if(u.offsetWidth>=e.subMenuTitle.offsetWidth)return;u.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(u){e.subMenuTitle=u},e.getBaseProps=function(){var u=Object(Y.a)(e),f=u.props,m=e.getMode();return{mode:m==="horizontal"?"vertical":m,visible:e.getVisible(),level:f.level+1,inlineIndent:f.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:f.selectedKeys,eventKey:"".concat(f.eventKey,"-menu-"),openKeys:f.openKeys,motion:f.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:f.subMenuOpenDelay,parentMenu:Object(Y.a)(e),subMenuCloseDelay:f.subMenuCloseDelay,forceSubMenuRender:f.forceSubMenuRender,triggerSubMenuAction:f.triggerSubMenuAction,builtinPlacements:f.builtinPlacements,defaultActiveFirst:f.store.getState().defaultActiveFirst[Le(f.eventKey)],multiple:f.multiple,prefixCls:f.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:f.itemIcon,expandIcon:f.expandIcon,direction:f.direction}},e.getMotion=function(u,f){var m=Object(Y.a)(e),b=m.haveRendered,h=e.props,_=h.motion,I=h.rootPrefixCls,X=Object(v.a)(Object(v.a)({},_),{},{leavedClassName:"".concat(I,"-hidden"),removeOnLeave:!1,motionAppear:b||!f||u!=="inline"});return X};var n=r.store,t=r.eventKey,a=n.getState(),i=a.defaultActiveFirst;e.isRootMenu=!1;var d=!1;return i&&(d=i[t]),Nt(n,t,d),e.state={mode:r.mode,isOpen:r.isOpen},e}return Object(se.a)(c,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,a=n.parentMenu,i=n.manualRef,d=n.isOpen,u=function(){e.setState({mode:t,isOpen:d})},f=d!==this.state.isOpen,m=t!==this.state.mode;if((m||f)&&(Xe.a.cancel(this.updateStateRaf),m?this.updateStateRaf=Object(Xe.a)(u):u()),i&&i(this),t!=="horizontal"||!(a==null?void 0:a.isRootMenu)||!d)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return l.createElement(Jn,Object(F.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,a=n.visible,i=n.forceSubMenuRender,d=n.direction,u=this.getMotion(t,a);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||a||i,!this.haveOpened)return l.createElement("div",null);var f=x()("".concat(n.prefixCls,"-sub"),Object(y.a)({},"".concat(n.prefixCls,"-rtl"),d==="rtl"));return this.isInlineMode()?l.createElement(Ht,Object(F.a)({visible:n.visible,forceRender:i},u),function(m){var b=m.className,h=m.style,_=x()(f,b);return e.renderPopupMenu(_,h)}):this.renderPopupMenu(f)}},{key:"render",value:function(){var e,n,t,a=Object(v.a)({},this.props),i=this.getVisible(),d=this.getPrefixCls(),u=this.isInlineMode(),f=this.getMode(),m=x()(d,"".concat(d,"-").concat(f),(e={},Object(y.a)(e,a.className,!!a.className),Object(y.a)(e,this.getOpenClassName(),i),Object(y.a)(e,this.getActiveClassName(),a.active||i&&!u),Object(y.a)(e,this.getDisabledClassName(),a.disabled),Object(y.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(a.eventKey?this.internalMenuId="".concat(a.eventKey,"$Menu"):(Vn+=1,this.internalMenuId="$__$".concat(Vn,"$Menu")));var b={},h={},_={};a.disabled||(b={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},h={onClick:this.onTitleClick},_={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var I={},X=a.direction,z=X==="rtl";u&&(z?I.paddingRight=a.inlineIndent*a.level:I.paddingLeft=a.inlineIndent*a.level);var J={};this.getVisible()&&(J={"aria-owns":this.internalMenuId});var $=null;f!=="horizontal"&&($=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($=l.createElement(this.props.expandIcon,Object(v.a)({},this.props))));var B=l.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:I,className:"".concat(d,"-title"),role:"button"},_,h,{"aria-expanded":i},J,{"aria-haspopup":"true",title:typeof a.title=="string"?a.title:void 0}),a.title,$||l.createElement("i",{className:"".concat(d,"-arrow")})),V=this.renderChildren(),le=((n=a.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?a.parentMenu.props.getPopupContainer:function(xe){return xe.parentNode},Z=ha[f],Ae=a.popupOffset?{offset:a.popupOffset}:{},ve=x()((t={},Object(y.a)(t,a.popupClassName,a.popupClassName&&!u),Object(y.a)(t,"".concat(d,"-rtl"),z),t)),N=a.disabled,w=a.triggerSubMenuAction,te=a.subMenuOpenDelay,ae=a.forceSubMenuRender,T=a.subMenuCloseDelay,ue=a.builtinPlacements;at.forEach(function(xe){return delete a[xe]}),delete a.onClick;var Me=z?Object(v.a)(Object(v.a)({},va),ue):Object(v.a)(Object(v.a)({},Bn),ue);delete a.direction;var ce=this.getBaseProps(),ye=u?null:this.getMotion(ce.mode,ce.visible);return l.createElement("li",Object(F.a)({},a,b,{className:m,role:"menuitem"}),l.createElement(ma,{prefixCls:d,popupClassName:x()("".concat(d,"-popup"),ve),getPopupContainer:le,builtinPlacements:Me,popupPlacement:Z,popupVisible:u?!1:i,popupAlign:Ae,popup:u?null:V,action:N||u?[]:[w],mouseEnterDelay:te,mouseLeaveDelay:T,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ae,popupMotion:ye},B),u?V:null)}}]),c}(l.Component);Hn.defaultProps={onMouseEnter:j,onMouseLeave:j,onTitleMouseEnter:j,onTitleMouseLeave:j,onTitleClick:j,manualRef:j,mode:"vertical",title:""};var Xn=Object(Ue.b)(function(o,s){var c=o.openKeys,r=o.activeKey,e=o.selectedKeys,n=s.eventKey,t=s.subMenuKey;return{isOpen:c.indexOf(n)>-1,active:r[t]===n,selectedKeys:e}})(Hn);Xn.isSubMenu=!0;var ba=Xn,$n="menuitem-overflowed",ga=.5,Gn=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(){var r;return Object(be.a)(this,c),r=s.apply(this,arguments),r.resizeObserver=null,r.mutationObserver=null,r.originalTotalWidth=0,r.overflowedItems=[],r.menuItemSizes=[],r.cancelFrameId=null,r.state={lastVisibleIndex:void 0},r.childRef=l.createRef(),r.getMenuItemNodes=function(){var e=r.props.prefixCls,n=r.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},r.getOverflowedSubMenuItem=function(e,n,t){var a=r.props,i=a.overflowedIndicator,d=a.level,u=a.mode,f=a.prefixCls,m=a.theme;if(d!==1||u!=="horizontal")return null;var b=r.props.children[0],h=b.props,_=h.children,I=h.title,X=h.style,z=Object(H.a)(h,["children","title","style"]),J=Object(v.a)({},X),$="".concat(e,"-overflowed-indicator"),B="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?J=Object(v.a)(Object(v.a)({},J),{},{display:"none"}):t&&(J=Object(v.a)(Object(v.a)({},J),{},{visibility:"hidden",position:"absolute"}),$="".concat($,"-placeholder"),B="".concat(B,"-placeholder"));var V=m?"".concat(f,"-").concat(m):"",le={};return at.forEach(function(Z){z[Z]!==void 0&&(le[Z]=z[Z])}),l.createElement(ba,Object(F.a)({title:i,className:"".concat(f,"-overflowed-submenu"),popupClassName:V},le,{key:$,eventKey:B,disabled:!1,style:J}),n)},r.setChildrenWidthAndResize=function(){if(r.props.mode!=="horizontal")return;var e=r.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];lt(t,"display","inline-block");var a=r.getMenuItemNodes(),i=a.filter(function(d){return d.className.split(" ").indexOf($n)>=0});i.forEach(function(d){lt(d,"display","inline-block")}),r.menuItemSizes=a.map(function(d){return rt(d,!0)}),i.forEach(function(d){lt(d,"display","none")}),r.overflowedIndicatorWidth=rt(e.children[e.children.length-1],!0),r.originalTotalWidth=r.menuItemSizes.reduce(function(d,u){return d+u},0),r.handleResize(),lt(t,"display","none")},r.handleResize=function(){if(r.props.mode!=="horizontal")return;var e=r.childRef.current;if(!e)return;var n=rt(e);r.overflowedItems=[];var t=0,a;r.originalTotalWidth>n+ga&&(a=-1,r.menuItemSizes.forEach(function(i){t+=i,t+r.overflowedIndicatorWidth<=n&&(a+=1)})),r.setState({lastVisibleIndex:a})},r}return Object(se.a)(c,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new Dt.default(function(t){t.forEach(function(){var a=e.cancelFrameId;cancelAnimationFrame(a),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{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 n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(a,i,d){var u=i;if(n.props.mode==="horizontal"){var f=n.getOverflowedSubMenuItem(i.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(d>t&&(u=l.cloneElement(i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat($n)})),d===t+1&&(n.overflowedItems=e.slice(t+1).map(function(b){return l.cloneElement(b,{key:b.props.eventKey,mode:"vertical-left"})}),f=n.getOverflowedSubMenuItem(i.props.eventKey,n.overflowedItems)));var m=[].concat(Object(G.a)(a),[f,u]);return d===e.length-1&&m.push(n.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),m}return[].concat(Object(G.a)(a),[u])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,a=e.overflowedIndicator,i=e.mode,d=e.level,u=e.tag,f=e.children,m=e.theme,b=Object(H.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),h=u;return l.createElement(h,Object(F.a)({ref:this.childRef},b),this.renderChildren(f))}}]),c}(l.Component);Gn.defaultProps={tag:"div",className:""};var ya=Gn;function Ea(o){return o.length?o.every(function(s){return!!s.props.disabled}):!0}function Xt(o,s,c){var r=o.getState();o.setState({activeKey:Object(v.a)(Object(v.a)({},r.activeKey),{},Object(y.a)({},s,c))})}function xt(o){return o.eventKey||"0-menu-"}function $t(o,s){var c=s,r=o.children,e=o.eventKey;if(c){var n;if(Ce(r,function(t,a){t&&t.props&&!t.props.disabled&&c===ge(t,e,a)&&(n=!0)}),n)return c}return c=null,o.defaultActiveFirst&&Ce(r,function(t,a){!c&&t&&!t.props.disabled&&(c=ge(t,e,a))}),c}function Oa(o){if(!o)return;var s=this.instanceArray.indexOf(o);s!==-1?this.instanceArray[s]=o:this.instanceArray.push(o)}var Yn=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(r){var e;return Object(be.a)(this,c),e=s.call(this,r),e.onKeyDown=function(n,t){var a=n.keyCode,i;if(e.getFlatInstanceArray().forEach(function(u){u&&u.props.active&&u.onKeyDown&&(i=u.onKeyDown(n))}),i)return 1;var d=null;return(a===C.a.UP||a===C.a.DOWN)&&(d=e.step(a===C.a.UP?-1:1)),d?(n.preventDefault(),Xt(e.props.store,xt(e.props),d.props.eventKey),typeof t=="function"&&t(d),1):void 0},e.onItemHover=function(n){var t=n.key,a=n.hover;Xt(e.props.store,xt(e.props),a?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),a=e.props.store.getState().activeKey[xt(e.props)],i=t.length;if(!i)return null;n<0&&(t=t.concat().reverse());var d=-1;if(t.every(function(b,h){return b&&b.props.eventKey===a?(d=h,!1):!0}),!e.props.defaultActiveFirst&&d!==-1&&Ea(t.slice(d,i-1)))return;var u=(d+1)%i,f=u;do{var m=t[f];if(!m||m.props.disabled)f=(f+1)%i;else return m}while(f!==u);return null},e.renderCommonMenuItem=function(n,t,a){var i=e.props.store.getState(),d=Object(Y.a)(e),u=d.props,f=ge(n,u.eventKey,t),m=n.props;if(!m||typeof n.type=="string")return n;var b=f===i.activeKey,h=Object(v.a)(Object(v.a)({mode:m.mode||u.mode,level:u.level,inlineIndent:u.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:u.prefixCls,index:t,parentMenu:u.parentMenu,manualRef:m.disabled?void 0:Object(ht.a)(n.ref,Oa.bind(Object(Y.a)(e))),eventKey:f,active:!m.disabled&&b,multiple:u.multiple,onClick:function(I){(m.onClick||j)(I),e.onClick(I)},onItemHover:e.onItemHover,motion:u.motion,subMenuOpenDelay:u.subMenuOpenDelay,subMenuCloseDelay:u.subMenuCloseDelay,forceSubMenuRender:u.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:u.builtinPlacements,itemIcon:m.itemIcon||e.props.itemIcon,expandIcon:m.expandIcon||e.props.expandIcon},a),{},{direction:u.direction});return(u.mode==="inline"||gt())&&(h.triggerSubMenuAction="click"),l.cloneElement(n,Object(v.a)(Object(v.a)({},h),{},{key:f||t}))},e.renderMenuItem=function(n,t,a){if(!n)return null;var i=e.props.store.getState(),d={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:a};return e.renderCommonMenuItem(n,t,d)},r.store.setState({activeKey:Object(v.a)(Object(v.a)({},r.store.getState().activeKey),{},Object(y.a)({},r.eventKey,$t(r,r.activeKey)))}),e.instanceArray=[],e}return Object(se.a)(c,[{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||!et()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[xt(n)],a=$t(n,t);if(a!==t)Xt(n.store,xt(n),a);else if("activeKey"in e){var i=$t(e,e.activeKey);a!==i&&Xt(n.store,xt(n),a)}}},{key:"render",value:function(){var e=this,n=Object(F.a)({},this.props);this.instanceArray=[];var t=x()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),a={className:t,role:n.role||"menu"};n.id&&(a.id=n.id),n.focusable&&(a.tabIndex=0,a.onKeyDown=this.onKeyDown);var i=n.prefixCls,d=n.eventKey,u=n.visible,f=n.level,m=n.mode,b=n.overflowedIndicator,h=n.theme;return at.forEach(function(_){return delete n[_]}),delete n.onClick,l.createElement(ya,Object(F.a)({},n,{prefixCls:i,mode:m,tag:"ul",level:f,theme:h,visible:u,overflowedIndicator:b},a),Object(ie.a)(n.children).map(function(_,I){return e.renderMenuItem(_,I,d||"0-menu-")}))}}]),c}(l.Component);Yn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:j};var _a=Object(Ue.b)()(Yn),Jn=_a,Ca=p("Kwbf");function Ma(o,s,c){var r=o.prefixCls,e=o.motion,n=o.defaultMotions,t=n===void 0?{}:n,a=o.openAnimation,i=o.openTransitionName,d=s.switchingModeFromInline;if(e)return e;if(Object(Te.a)(a)==="object"&&a)Object(Ca.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof a=="string")return{motionName:"".concat(r,"-open-").concat(a)};if(i)return{motionName:i};var u=t[c];return u||(d?null:t.other)}var Qn=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(r){var e;Object(be.a)(this,c),e=s.call(this,r),e.onSelect=function(a){var i=Object(Y.a)(e),d=i.props;if(d.selectable){var u=e.store.getState(),f=u.selectedKeys,m=a.key;d.multiple?f=f.concat([m]):f=[m],"selectedKeys"in d||e.store.setState({selectedKeys:f}),d.onSelect(Object(v.a)(Object(v.a)({},a),{},{selectedKeys:f}))}},e.onClick=function(a){var i=e.getRealMenuMode(),d=Object(Y.a)(e),u=d.store,f=d.props.onOpenChange;i!=="inline"&&!("openKeys"in e.props)&&(u.setState({openKeys:[]}),f([])),e.props.onClick(a)},e.onKeyDown=function(a,i){e.innerMenu.getWrappedInstance().onKeyDown(a,i)},e.onOpenChange=function(a){var i=Object(Y.a)(e),d=i.props,u=e.store.getState().openKeys.concat(),f=!1,m=function(h){var _=!1;if(h.open)_=u.indexOf(h.key)===-1,_&&u.push(h.key);else{var I=u.indexOf(h.key);_=I!==-1,_&&u.splice(I,1)}f=f||_};Array.isArray(a)?a.forEach(m):m(a),f&&("openKeys"in e.props||e.store.setState({openKeys:u}),d.onOpenChange(u))},e.onDeselect=function(a){var i=Object(Y.a)(e),d=i.props;if(d.selectable){var u=e.store.getState().selectedKeys.concat(),f=a.key,m=u.indexOf(f);m!==-1&&u.splice(m,1),"selectedKeys"in d||e.store.setState({selectedKeys:u}),d.onDeselect(Object(v.a)(Object(v.a)({},a),{},{selectedKeys:u}))}},e.onMouseEnter=function(a){e.restoreModeVerticalFromInline();var i=e.props.onMouseEnter;i&&i(a)},e.onTransitionEnd=function(a){var i=a.propertyName==="width"&&a.target===a.currentTarget,d=a.target.className,u=Object.prototype.toString.call(d)==="[object SVGAnimatedString]"?d.animVal:d,f=a.propertyName==="font-size"&&u.indexOf("anticon")>=0;(i||f)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(a){e.innerMenu=a},e.isRootMenu=!0;var n=r.defaultSelectedKeys,t=r.defaultOpenKeys;return"selectedKeys"in r&&(n=r.selectedKeys||[]),"openKeys"in r&&(t=r.openKeys||[]),e.store=Object(Ue.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":$t(r,r.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:r,inlineOpenKeys:[],store:e.store},e}return Object(se.a)(c,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,a=n.inlineCollapsed,i=n.onOpenChange;(!e.inlineCollapsed&&a||!e.siderCollapsed&&t)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,a=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");a?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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(v.a)({},Object(qe.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(v.a)(Object(v.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ma(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,l.createElement(Ue.a,{store:this.store},l.createElement(Jn,Object(F.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,a=n.store,i=a.getState(),d={},u={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(u.switchingModeFromInline=!0),"openKeys"in e?d.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(u.switchingModeFromInline=!0,u.inlineOpenKeys=i.openKeys,d.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(d.openKeys=n.inlineOpenKeys,u.inlineOpenKeys=[])),Object.keys(d).length&&a.setState(d),u}}]),c}(l.Component);Qn.defaultProps={selectable:!0,onClick:j,onSelect:j,onOpenChange:j,onDeselect:j,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:l.createElement("span",null,"\xB7\xB7\xB7")};var ja=Qn,ln=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(){var r;return Object(be.a)(this,c),r=s.apply(this,arguments),r.onKeyDown=function(e){var n=e.keyCode;return n===C.a.ENTER?(r.onClick(e),!0):void 0},r.onMouseLeave=function(e){var n=r.props,t=n.eventKey,a=n.onItemHover,i=n.onMouseLeave;a({key:t,hover:!1}),i({key:t,domEvent:e})},r.onMouseEnter=function(e){var n=r.props,t=n.eventKey,a=n.onItemHover,i=n.onMouseEnter;a({key:t,hover:!0}),i({key:t,domEvent:e})},r.onClick=function(e){var n=r.props,t=n.eventKey,a=n.multiple,i=n.onClick,d=n.onSelect,u=n.onDeselect,f=n.isSelected,m={key:t,keyPath:[t],item:Object(Y.a)(r),domEvent:e};i(m),a?f?u(m):d(m):f||d(m)},r.saveNode=function(e){r.node=e},r}return Object(se.a)(c,[{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,n=Object(v.a)({},this.props),t=x()(this.getPrefixCls(),n.className,(e={},Object(y.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(y.a)(e,this.getSelectedClassName(),n.isSelected),Object(y.a)(e,this.getDisabledClassName(),n.disabled),e)),a=Object(v.a)(Object(v.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?a=Object(v.a)(Object(v.a)({},a),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(a.role="none");var i={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},d=Object(v.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?d.paddingRight=n.inlineIndent*n.level:d.paddingLeft=n.inlineIndent*n.level),at.forEach(function(f){return delete n[f]}),delete n.direction;var u=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(u=l.createElement(this.props.itemIcon,this.props)),l.createElement("li",Object(F.a)({},Object(qe.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),a,i,{style:d,ref:this.saveNode}),n.children,u)}}]),c}(l.Component);ln.isMenuItem=!0,ln.defaultProps={onSelect:j,onMouseEnter:j,onMouseLeave:j,manualRef:j};var Ta=Object(Ue.b)(function(o,s){var c=o.activeKey,r=o.selectedKeys,e=s.eventKey,n=s.subMenuKey;return{active:c[n]===e,isSelected:Array.isArray(r)?r.indexOf(e)!==-1:r===e}})(ln),xa=Ta,un=function(o){Object(Ee.a)(c,o);var s=Object(de.a)(c);function c(){var r;return Object(be.a)(this,c),r=s.apply(this,arguments),r.renderInnerMenuItem=function(e){var n=r.props,t=n.renderMenuItem,a=n.index;return t(e,a,r.props.subMenuKey)},r}return Object(se.a)(c,[{key:"render",value:function(){var e=Object(F.a)({},this.props),n=e.className,t=n===void 0?"":n,a=e.rootPrefixCls,i="".concat(a,"-item-group-title"),d="".concat(a,"-item-group-list"),u=e.title,f=e.children;return at.forEach(function(m){return delete e[m]}),delete e.direction,l.createElement("li",Object(F.a)({},e,{onClick:function(b){return b.stopPropagation()},className:"".concat(t," ").concat(a,"-item-group")}),l.createElement("div",{className:i,title:typeof u=="string"?u:void 0},u),l.createElement("ul",{className:d},l.Children.map(f,this.renderInnerMenuItem)))}}]),c}(l.Component);un.isMenuItemGroup=!0,un.defaultProps={disabled:!0};var mr=un,Zn=function(s){var c=s.className,r=s.rootPrefixCls,e=s.style;return l.createElement("li",{className:"".concat(c," ").concat(r,"-item-divider"),style:e})};Zn.defaultProps={disabled:!0,className:"",style:{}};var vr=Zn,Sa=ja,Ra=p("eDIo");function Da(o,s){var c=o.prefixCls,r=o.editable,e=o.locale,n=o.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:s,type:"button",className:"".concat(c,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(a){r.onEdit("add",{event:a})}},r.addIcon||"+")}var qn=l.forwardRef(Da);function Aa(o,s){var c=o.prefixCls,r=o.id,e=o.tabs,n=o.locale,t=o.mobile,a=o.moreIcon,i=a===void 0?"More":a,d=o.moreTransitionName,u=o.style,f=o.className,m=o.editable,b=o.tabBarGutter,h=o.rtl,_=o.onTabClick,I=Object(l.useState)(!1),X=Object(g.a)(I,2),z=X[0],J=X[1],$=Object(l.useState)(null),B=Object(g.a)($,2),V=B[0],le=B[1],Z="".concat(r,"-more-popup"),Ae="".concat(c,"-dropdown"),ve=V!==null?"".concat(Z,"-").concat(V):null,N=n==null?void 0:n.dropdownAriaLabel,w=l.createElement(Sa,{onClick:function(ye){var xe=ye.key,ze=ye.domEvent;_(xe,ze),J(!1)},id:Z,tabIndex:-1,role:"listbox","aria-activedescendant":ve,selectedKeys:[V],"aria-label":N!==void 0?N:"expanded dropdown"},e.map(function(ce){return l.createElement(xa,{key:ce.key,id:"".concat(Z,"-").concat(ce.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ce.key),disabled:ce.disabled},ce.tab)}));function te(ce){for(var ye=e.filter(function(Ye){return!Ye.disabled}),xe=ye.findIndex(function(Ye){return Ye.key===V})||0,ze=ye.length,Ge=0;Geue?(ae=w,Z.current="x"):(ae=te,Z.current="y");var Me=Date.now();Me-V.current>100&&(le.current=!1),(s(-ae,-ae)||le.current)&&(N.preventDefault(),le.current=!0),V.current=Me}var ve=Object(l.useRef)(null);ve.current={onTouchStart:J,onTouchMove:$,onTouchEnd:B,onWheel:Ae},l.useEffect(function(){function N(T){ve.current.onTouchStart(T)}function w(T){ve.current.onTouchMove(T)}function te(T){ve.current.onTouchEnd(T)}function ae(T){ve.current.onWheel(T)}return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",te,{passive:!1}),o.current.addEventListener("touchstart",N,{passive:!1}),o.current.addEventListener("wheel",ae),function(){document.removeEventListener("touchmove",w),document.removeEventListener("touchend",te)}},[])}function ka(){var o=Object(l.useRef)(new Map);function s(r){return o.current.has(r)||o.current.set(r,l.createRef()),o.current.get(r)}function c(r){o.current.delete(r)}return[s,c]}function no(o,s){var c=l.useRef(o),r=l.useState({}),e=Object(g.a)(r,2),n=e[1];function t(a){var i=typeof a=="function"?a(c.current):a;i!==c.current&&s(i,c.current),c.current=i,n({})}return[c.current,t]}var oo=function(s){var c=s.position,r=s.prefixCls,e=s.extra;if(!e)return null;var n,t=e;return c==="right"&&(n=t.right||!t.left&&t||null),c==="left"&&(n=t.left||null),n?l.createElement("div",{className:"".concat(r,"-extra-content")},n):null};function Ia(o,s){var c,r=l.useContext(cn),e=r.prefixCls,n=r.tabs,t=o.className,a=o.style,i=o.id,d=o.animated,u=o.activeKey,f=o.rtl,m=o.extra,b=o.editable,h=o.locale,_=o.tabPosition,I=o.tabBarGutter,X=o.children,z=o.onTabClick,J=o.onTabScroll,$=Object(l.useRef)(),B=Object(l.useRef)(),V=Object(l.useRef)(),le=Object(l.useRef)(),Z=ka(),Ae=Object(g.a)(Z,2),ve=Ae[0],N=Ae[1],w=_==="top"||_==="bottom",te=no(0,function(he,ne){w&&J&&J({direction:he>ne?"left":"right"})}),ae=Object(g.a)(te,2),T=ae[0],ue=ae[1],Me=no(0,function(he,ne){!w&&J&&J({direction:he>ne?"top":"bottom"})}),ce=Object(g.a)(Me,2),ye=ce[0],xe=ce[1],ze=Object(l.useState)(0),Ge=Object(g.a)(ze,2),Pe=Ge[0],Ye=Ge[1],it=Object(l.useState)(0),Je=Object(g.a)(it,2),Qe=Je[0],we=Je[1],$e=Object(l.useState)(0),We=Object(g.a)($e,2),ke=We[0],pt=We[1],mt=Object(l.useState)(0),Et=Object(g.a)(mt,2),_e=Et[0],ct=Et[1],Ot=Object(l.useState)(null),je=Object(g.a)(Ot,2),me=je[0],Fe=je[1],Fa=Object(l.useState)(null),lo=Object(g.a)(Fa,2),St=lo[0],Ba=lo[1],Va=Object(l.useState)(0),uo=Object(g.a)(Va,2),Ha=uo[0],Xa=uo[1],$a=Object(l.useState)(0),co=Object(g.a)($a,2),Ga=co[0],Ya=co[1],Ja=Se(new Map),fo=Object(g.a)(Ja,2),Qa=fo[0],Za=fo[1],Yt=L(n,Qa,Pe),po="".concat(e,"-nav-operations-hidden"),Lt=0,kt=0;w?f?(Lt=0,kt=Math.max(0,Pe-me)):(Lt=Math.min(0,me-Pe),kt=0):(Lt=Math.min(0,St-Qe),kt=0);function dn(he){return hekt?[kt,!1]:[he,!0]}var mo=Object(l.useRef)(),qa=Object(l.useState)(),vo=Object(g.a)(qa,2),fn=vo[0],ho=vo[1];function pn(){ho(Date.now())}function mn(){window.clearTimeout(mo.current)}La($,function(he,ne){var Ie=!1;function Ze(Ut,Kt){Ut(function(zt){var Wt=dn(zt+Kt),Rt=Object(g.a)(Wt,2),gn=Rt[0],yn=Rt[1];return Ie=yn,gn})}if(w){if(me>=Pe)return Ie;Ze(ue,he)}else{if(St>=Qe)return Ie;Ze(xe,ne)}return mn(),pn(),Ie}),Object(l.useEffect)(function(){return mn(),fn&&(mo.current=window.setTimeout(function(){ho(0)},100)),mn},[fn]);function bo(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,ne=Yt.get(he);if(!ne)return;if(w){var Ie=T;f?ne.rightT+me&&(Ie=ne.right+ne.width-me):ne.left<-T?Ie=-ne.left:ne.left+ne.width>-T+me&&(Ie=-(ne.left+ne.width-me)),xe(0),ue(dn(Ie)[0])}else{var Ze=ye;ne.top<-ye?Ze=-ne.top:ne.top+ne.height>-ye+St&&(Ze=-(ne.top+ne.height-St)),ue(0),xe(dn(Ze)[0])}}var er=Re(Yt,{width:me,height:St,left:T,top:ye},{width:ke,height:_e},{width:Ha,height:Ga},Object(v.a)(Object(v.a)({},o),{},{tabs:n})),go=Object(g.a)(er,2),tr=go[0],nr=go[1],or=n.map(function(he){var ne=he.key;return l.createElement(S,{id:i,prefixCls:e,key:ne,rtl:f,tab:he,closable:he.closable,editable:b,active:ne===u,tabPosition:_,tabBarGutter:I,renderWrapper:X,removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:ve(ne),onClick:function(Ze){z(ne,Ze)},onRemove:function(){N(ne)},onFocus:function(){bo(ne),pn(),f||($.current.scrollLeft=0),$.current.scrollTop=0}})}),vn=q(function(){var he,ne,Ie,Ze,Ut,Kt,zt,Wt,Rt,gn=((he=$.current)===null||he===void 0?void 0:he.offsetWidth)||0,yn=((ne=$.current)===null||ne===void 0?void 0:ne.offsetHeight)||0,To=((Ie=le.current)===null||Ie===void 0?void 0:Ie.offsetWidth)||0,xo=((Ze=le.current)===null||Ze===void 0?void 0:Ze.offsetHeight)||0,ur=((Ut=V.current)===null||Ut===void 0?void 0:Ut.offsetWidth)||0,cr=((Kt=V.current)===null||Kt===void 0?void 0:Kt.offsetHeight)||0;Fe(gn),Ba(yn),Xa(To),Ya(xo);var So=(((zt=B.current)===null||zt===void 0?void 0:zt.offsetWidth)||0)-To,Ro=(((Wt=B.current)===null||Wt===void 0?void 0:Wt.offsetHeight)||0)-xo;Ye(So),we(Ro);var Do=(Rt=V.current)===null||Rt===void 0?void 0:Rt.className.includes(po);pt(So-(Do?0:ur)),ct(Ro-(Do?0:cr)),Za(function(){var Ao=new Map;return n.forEach(function(dr){var Po=dr.key,Ft=ve(Po).current;Ft&&Ao.set(Po,{width:Ft.offsetWidth,height:Ft.offsetHeight,left:Ft.offsetLeft,top:Ft.offsetTop})}),Ao})}),ar=n.slice(0,tr),rr=n.slice(nr+1),yo=[].concat(Object(G.a)(ar),Object(G.a)(rr)),ir=Object(l.useState)(),Eo=Object(g.a)(ir,2),sr=Eo[0],lr=Eo[1],vt=Yt.get(u),Oo=Object(l.useRef)();function _o(){Q.a.cancel(Oo.current)}Object(l.useEffect)(function(){var he={};return vt&&(w?(f?he.right=vt.right:he.left=vt.left,he.width=vt.width):(he.top=vt.top,he.height=vt.height)),_o(),Oo.current=Q()(function(){lr(he)}),_o},[vt,w,f]),Object(l.useEffect)(function(){bo()},[u,vt,Yt,w]),Object(l.useEffect)(function(){vn()},[f,I,u,n.map(function(he){return he.key}).join("_")]);var Co=!!yo.length,It="".concat(e,"-nav-wrap"),hn,bn,Mo,jo;return w?f?(bn=T>0,hn=T+me1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(L.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var A=L[0];if(R.isValidElement(A)&&Object(oe.c)(A)){var Re=A.ref;L[0]=R.cloneElement(A,{ref:Object(oe.a)(Re,this.setChildNode)})}return L.length===1?L[0]:L.map(function(F,be){return!R.isValidElement(F)||"key"in F&&F.key!==null?F:R.cloneElement(F,{key:"".concat(M,"-").concat(be)})})}}]),D}(R.Component);q.displayName="ResizeObserver",pe.a=q},vvOx:function(Ne,pe,p){Ne.exports={flex_box_center:"flex_box_center___1elJR",flex_space_between:"flex_space_between___jWE2C",flex_box_vertical_center:"flex_box_vertical_center___2z5Qi",flex_box_center_end:"flex_box_center_end___9Dl6o",flex_box_column:"flex_box_column___2K_6i",count:"count___38-f-",header:"header___9GbVa",title:"title___3psgN"}}}]);