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

1 line
21 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[35593],{35593:function(e,t,n){n.d(t,{Z:function(){return J}});var o=n(33885),r=n(42978),i=n(75931),a=n(43403),l=n(92310),u=n.n(l),c=n(29301),s=n(76846),f=n(96452),p=n(6089),v=n(80402),d=n(34280),m=n(49658),h=n(59301),g=n(54476),y=n(77900),b=n(8654);function w(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,l=i.content,c=r.x,s=void 0===c?0:c,f=r.y,p=void 0===f?0:f,v=h.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],y=m[0],b=m[1],w=g[0],x=g[1];y!==w&&["t","b"].includes(y)?"t"===y?d.top=0:d.bottom=0:d.top=p,b!==x&&["l","r"].includes(b)?"l"===b?d.left=0:d.right=0:d.left=s}return h.createElement("div",{ref:v,className:u()("".concat(t,"-arrow"),a),style:d},l)}function x(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?h.createElement(y.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:o},className:u()("".concat(t,"-mask"),n)})})):null}var k=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Z=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,s=e.target,f=e.onVisibleChanged,p=e.open,v=e.keepDom,m=e.fresh,Z=e.onClick,E=e.mask,C=e.arrow,M=e.arrowPos,P=e.align,A=e.motion,L=e.maskMotion,R=e.forceRender,N=e.getPopupContainer,S=e.autoDestroy,z=e.portal,D=e.zIndex,H=e.onMouseEnter,T=e.onMouseLeave,Y=e.onPointerEnter,X=e.ready,B=e.offsetX,V=e.offsetY,W=e.offsetR,O=e.offsetB,F=e.onAlign,I=e.onPrepare,j=e.stretch,q=e.targetWidth,_=e.targetHeight,J="function"==typeof n?n():n,Q=p||v,$=(null==N?void 0:N.length)>0,G=h.useState(!N||!$),K=(0,r.Z)(G,2),U=K[0],ee=K[1];if((0,d.Z)((function(){!U&&$&&s&&ee(!0)}),[U,$,s]),!U)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(X||!p){var oe,re=P.points,ie=P.dynamicInset||(null===(oe=P._experimental)||void 0===oe?void 0:oe.dynamicInset),ae=ie&&"r"===re[0][1],le=ie&&"b"===re[0][0];ae?(ne.right=W,ne.left=te):(ne.left=B,ne.right=te),le?(ne.bottom=O,ne.top=te):(ne.top=V,ne.bottom=te)}var ue={};return j&&(j.includes("height")&&_?ue.height=_:j.includes("minHeight")&&_&&(ue.minHeight=_),j.includes("width")&&q?ue.width=q:j.includes("minWidth")&&q&&(ue.minWidth=q)),p||(ue.pointerEvents="none"),h.createElement(z,{open:R||Q,getContainer:N&&function(){return N(s)},autoDestroy:S},h.createElement(x,{prefixCls:a,open:p,zIndex:D,mask:E,motion:L}),h.createElement(c.Z,{onResize:F,disabled:!p},(function(e){return h.createElement(y.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:"".concat(a,"-hidden")},A,{onAppearPrepare:I,onEnterPrepare:I,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),f(e)}}),(function(n,r){var c=n.className,s=n.style,f=u()(a,c,i);return h.createElement("div",{ref:(0,b.sQ)(e,t,r),className:f,style:(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},ne),ue),s),{},{boxSizing:"border-box",zIndex:D},l),onMouseEnter:H,onMouseLeave:T,onPointerEnter:Y,onClick:Z},C&&h.createElement(w,{prefixCls:a,arrow:C,arrowPos:M,align:P}),h.createElement(k,{cache:!p&&!m},J))}))})))}));var E=h.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,b.Yr)(n),i=h.useCallback((function(e){(0,b.mH)(t,o?o(e):e)}),[o]),a=(0,b.x1)(i,n.ref);return r?h.cloneElement(n,{ref:a}):n})),C=h.createContext(null);function M(e){return e?Array.isArray(e)?e:[e]:[]}function P(e,t,n,o){return h.useMemo((function(){var r=M(null!=n?n:t),i=M(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}var A=n(29194);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,u=i[a];if(L(null===(l=e[u])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(u)}return""}function N(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function S(e){return e.ownerDocument.defaultView}function z(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=S(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function H(e){return D(parseFloat(e),0)}function T(e,t){var n=(0,o.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=S(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,u=t.borderRightWidth,c=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,p=e.offsetWidth,v=e.clientWidth,d=H(i),m=H(a),h=H(l),g=H(u),y=D(Math.round(c.width/p*1e3)/1e3),b=D(Math.round(c.height/s*1e3)/1e3),w=(p-v-h-g)*y,x=(s-f-d-m)*b,k=d*b,Z=m*b,E=h*y,C=g*y,M=0,P=0;if("clip"===o){var A=H(r);M=A*y,P=A*b}var L=c.x+E-M,R=c.y+k-P,N=L+c.width+2*M-E-C-w,z=R+c.height+2*P-k-Z-x;n.left=Math.max(n.left,L),n.top=Math.max(n.top,R),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,z)}})),n}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function X(e,t){var n=t||[],o=(0,r.Z)(n,2),i=o[0],a=o[1];return[Y(e.width,i),Y(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function V(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function W(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}function O(e,t,n,i,a,l,u){var c=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,r.Z)(c,2),v=f[0],m=f[1],g=h.useRef(0),y=h.useMemo((function(){return t?z(t):[]}),[t]),b=h.useRef({});e||(b.current={});var w=(0,p.Z)((function(){if(t&&n&&e){var c,f,p,v=t,d=v.ownerDocument,h=S(v).getComputedStyle(v),g=h.width,w=h.height,x=h.position,k=v.style.left,Z=v.style.top,E=v.style.right,C=v.style.bottom,M=v.style.overflow,P=(0,o.Z)((0,o.Z)({},a[i]),l),L=d.createElement("div");if(null===(c=v.parentElement)||void 0===c||c.appendChild(L),L.style.left="".concat(v.offsetLeft,"px"),L.style.top="".concat(v.offsetTop,"px"),L.style.position=x,L.style.height="".concat(v.offsetHeight,"px"),L.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var R=n.getBoundingClientRect();p={x:R.x,y:R.y,width:R.width,height:R.height}}var N=v.getBoundingClientRect(),z=d.documentElement,H=z.clientWidth,Y=z.clientHeight,O=z.scrollWidth,F=z.scrollHeight,I=z.scrollTop,j=z.scrollLeft,q=N.height,_=N.width,J=p.height,Q=p.width,$={left:0,top:0,right:H,bottom:Y},G={left:-j,top:-I,right:O-j,bottom:F-I},K=P.htmlRegion,U="visible",ee="visibleFirst";"scroll"!==K&&K!==ee&&(K=U);var te=K===ee,ne=T(G,y),oe=T($,y),re=K===U?oe:ne,ie=te?oe:re;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var ae=v.getBoundingClientRect();v.style.left=k,v.style.top=Z,v.style.right=E,v.style.bottom=C,v.style.overflow=M,null===(f=v.parentElement)||void 0===f||f.removeChild(L);var le=D(Math.round(_/parseFloat(g)*1e3)/1e3),ue=D(Math.round(q/parseFloat(w)*1e3)/1e3);if(0===le||0===ue||(0,s.Sh)(n)&&!(0,A.Z)(n))return;var ce=P.offset,se=P.targetOffset,fe=X(N,ce),pe=(0,r.Z)(fe,2),ve=pe[0],de=pe[1],me=X(p,se),he=(0,r.Z)(me,2),ge=he[0],ye=he[1];p.x-=ge,p.y-=ye;var be=P.points||[],we=(0,r.Z)(be,2),xe=we[0],ke=B(we[1]),Ze=B(xe),Ee=V(p,ke),Ce=V(N,Ze),Me=(0,o.Z)({},P),Pe=Ee.x-Ce.x+ve,Ae=Ee.y-Ce.y+de;function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re,o=N.x+e,r=N.y+t,i=o+_,a=r+q,l=Math.max(o,n.left),u=Math.max(r,n.top),c=Math.min(i,n.right),s=Math.min(a,n.bottom);return Math.max(0,(c-l)*(s-u))}var Le,Re,Ne,Se,ze=xt(Pe,Ae),De=xt(Pe,Ae,oe),He=V(p,["t","l"]),Te=V(N,["t","l"]),Ye=V(p,["b","r"]),Xe=V(N,["b","r"]),Be=P.overflow||{},Ve=Be.adjustX,We=Be.adjustY,Oe=Be.shiftX,Fe=Be.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};function kt(){Le=N.y+Ae,Re=Le+q,Ne=N.x+Pe,Se=Ne+_}kt();var je=Ie(We),qe=Ze[0]===ke[0];if(je&&"t"===Ze[0]&&(Re>ie.bottom||b.current.bt)){var _e=Ae;qe?_e-=q-J:_e=He.y-Xe.y-de;var Je=xt(Pe,_e),Qe=xt(Pe,_e,oe);Je>ze||Je===ze&&(!te||Qe>=De)?(b.current.bt=!0,Ae=_e,de=-de,Me.points=[W(Ze,0),W(ke,0)]):b.current.bt=!1}if(je&&"b"===Ze[0]&&(Le<ie.top||b.current.tb)){var $e=Ae;qe?$e+=q-J:$e=Ye.y-Te.y-de;var Ge=xt(Pe,$e),Ke=xt(Pe,$e,oe);Ge>ze||Ge===ze&&(!te||Ke>=De)?(b.current.tb=!0,Ae=$e,de=-de,Me.points=[W(Ze,0),W(ke,0)]):b.current.tb=!1}var Ue=Ie(Ve),et=Ze[1]===ke[1];if(Ue&&"l"===Ze[1]&&(Se>ie.right||b.current.rl)){var tt=Pe;et?tt-=_-Q:tt=He.x-Xe.x-ve;var nt=xt(tt,Ae),ot=xt(tt,Ae,oe);nt>ze||nt===ze&&(!te||ot>=De)?(b.current.rl=!0,Pe=tt,ve=-ve,Me.points=[W(Ze,1),W(ke,1)]):b.current.rl=!1}if(Ue&&"r"===Ze[1]&&(Ne<ie.left||b.current.lr)){var rt=Pe;et?rt+=_-Q:rt=Ye.x-Te.x-ve;var it=xt(rt,Ae),at=xt(rt,Ae,oe);it>ze||it===ze&&(!te||at>=De)?(b.current.lr=!0,Pe=rt,ve=-ve,Me.points=[W(Ze,1),W(ke,1)]):b.current.lr=!1}kt();var lt=!0===Oe?0:Oe;"number"==typeof lt&&(Ne<oe.left&&(Pe-=Ne-oe.left-ve,p.x+Q<oe.left+lt&&(Pe+=p.x-oe.left+Q-lt)),Se>oe.right&&(Pe-=Se-oe.right-ve,p.x>oe.right-lt&&(Pe+=p.x-oe.right+lt)));var ut=!0===Fe?0:Fe;"number"==typeof ut&&(Le<oe.top&&(Ae-=Le-oe.top-de,p.y+J<oe.top+ut&&(Ae+=p.y-oe.top+J-ut)),Re>oe.bottom&&(Ae-=Re-oe.bottom-de,p.y>oe.bottom-ut&&(Ae+=p.y-oe.bottom+ut)));var ct=N.x+Pe,st=ct+_,ft=N.y+Ae,pt=ft+q,vt=p.x,dt=vt+Q,mt=p.y,ht=mt+J,gt=(Math.max(ct,vt)+Math.min(st,dt))/2-ct,yt=(Math.max(ft,mt)+Math.min(pt,ht))/2-ft;null==u||u(t,Me);var bt=ae.right-N.x-(Pe+N.width),wt=ae.bottom-N.y-(Ae+N.height);m({ready:!0,offsetX:Pe/le,offsetY:Ae/ue,offsetR:bt/le,offsetB:wt/ue,arrowX:gt/le,arrowY:yt/ue,scaleX:le,scaleY:ue,align:Me})}})),x=function(){m((function(e){return(0,o.Z)((0,o.Z)({},e),{},{ready:!1})}))};return(0,d.Z)(x,[i]),(0,d.Z)((function(){e||x()}),[e]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var F=n(94480);function I(e,t,n,o,r){(0,d.Z)((function(){if(e&&t&&n){var i=n,a=z(t),l=z(i),u=S(i),c=new Set([u].concat((0,F.Z)(a),(0,F.Z)(l)));function s(){o(),r()}return c.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),u.addEventListener("resize",s,{passive:!0}),o(),function(){c.forEach((function(e){e.removeEventListener("scroll",s),u.removeEventListener("resize",s)}))}}}),[e,t,n])}n(48736);var j=n(16089);function q(e,t,n,o,i,a,l,u){var c=h.useRef(e),s=h.useRef(!1);c.current!==e&&(s.current=!0,c.current=e),h.useEffect((function(){var e=(0,j.Z)((function(){s.current=!1}));return function(){j.Z.cancel(e)}}),[e]),h.useEffect((function(){if(t&&o&&(!i||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=l(n)},function(t){var n=t.target;s.current||!c.current||e||l(n)||u(!1)}]},p=e(),v=(0,r.Z)(p,2),d=v[0],m=v[1],h=e(),g=(0,r.Z)(h,2),y=g[0],b=g[1],w=S(o);w.addEventListener("mousedown",d,!0),w.addEventListener("click",m,!0),w.addEventListener("contextmenu",m,!0);var x=(0,f.A)(n);return x&&(x.addEventListener("mousedown",y,!0),x.addEventListener("click",b,!0),x.addEventListener("contextmenu",b,!0)),function(){w.removeEventListener("mousedown",d,!0),w.removeEventListener("click",m,!0),w.removeEventListener("contextmenu",m,!0),x&&(x.removeEventListener("mousedown",y,!0),x.removeEventListener("click",b,!0),x.removeEventListener("contextmenu",b,!0))}}}),[t,n,o,i,a])}var _=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,g=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,x=t.hideAction,k=t.popupVisible,M=t.defaultPopupVisible,A=t.onPopupVisibleChange,L=t.afterPopupVisibleChange,S=t.mouseEnterDelay,z=t.mouseLeaveDelay,D=void 0===z?.1:z,H=t.focusDelay,T=t.blurDelay,Y=t.mask,X=t.maskClosable,B=void 0===X||X,V=t.getPopupContainer,W=t.forceRender,F=t.autoDestroy,j=t.destroyPopupOnHide,J=t.popup,Q=t.popupClassName,$=t.popupStyle,G=t.popupPlacement,K=t.builtinPlacements,U=void 0===K?{}:K,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,oe=t.getPopupClassNameFromAlign,re=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ue=t.arrow,ce=t.popupMotion,se=t.maskMotion,fe=t.popupTransitionName,pe=t.popupAnimation,ve=t.maskTransitionName,de=t.maskAnimation,me=t.className,he=t.getTriggerDOMNode,ge=(0,i.Z)(t,_),ye=F||j||!1,be=h.useState(!1),we=(0,r.Z)(be,2),xe=we[0],ke=we[1];(0,d.Z)((function(){ke((0,m.Z)())}),[]);var Ze=h.useRef({}),Ee=h.useContext(C),Ce=h.useMemo((function(){return{registerSubPopup:function(e,t){Ze.current[e]=t,null==Ee||Ee.registerSubPopup(e,t)}}}),[Ee]),Me=(0,v.Z)(),Pe=h.useState(null),Ae=(0,r.Z)(Pe,2),Le=Ae[0],Re=Ae[1],Ne=(0,p.Z)((function(e){(0,s.Sh)(e)&&Le!==e&&Re(e),null==Ee||Ee.registerSubPopup(Me,e)})),Se=h.useState(null),ze=(0,r.Z)(Se,2),De=ze[0],He=ze[1],Te=h.useRef(null),Ye=(0,p.Z)((function(e){(0,s.Sh)(e)&&De!==e&&(He(e),Te.current=e)})),Xe=h.Children.only(g),Be=(null==Xe?void 0:Xe.props)||{},Ve={},We=(0,p.Z)((function(e){var t,n,o=De;return(null==o?void 0:o.contains(e))||(null===(t=(0,f.A)(o))||void 0===t?void 0:t.host)===e||e===o||(null==Le?void 0:Le.contains(e))||(null===(n=(0,f.A)(Le))||void 0===n?void 0:n.host)===e||e===Le||Object.values(Ze.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Oe=N(l,ce,pe,fe),Fe=N(l,se,de,ve),Ie=h.useState(M||!1),je=(0,r.Z)(Ie,2),qe=je[0],_e=je[1],Je=null!=k?k:qe,Qe=(0,p.Z)((function(e){void 0===k&&_e(e)}));(0,d.Z)((function(){_e(k||!1)}),[k]);var $e=h.useRef(Je);$e.current=Je;var Ge=h.useRef([]);Ge.current=[];var Ke=(0,p.Z)((function(e){var t;Qe(e),(null!==(t=Ge.current[Ge.current.length-1])&&void 0!==t?t:Je)!==e&&(Ge.current.push(e),null==A||A(e))})),Ue=h.useRef(),et=function(){clearTimeout(Ue.current)},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;et(),0===t?Ke(e):Ue.current=setTimeout((function(){Ke(e)}),1e3*t)};h.useEffect((function(){return et}),[]);var nt=h.useState(!1),ot=(0,r.Z)(nt,2),rt=ot[0],it=ot[1];(0,d.Z)((function(e){e&&!Je||it(!0)}),[Je]);var at=h.useState(null),lt=(0,r.Z)(at,2),ut=lt[0],ct=lt[1],st=h.useState([0,0]),ft=(0,r.Z)(st,2),pt=ft[0],vt=ft[1],dt=function(e){vt([e.clientX,e.clientY])},mt=O(Je,Le,ie?pt:De,G,U,ee,le),ht=(0,r.Z)(mt,11),gt=ht[0],yt=ht[1],bt=ht[2],wt=ht[3],xt=ht[4],kt=ht[5],Zt=ht[6],Et=ht[7],Ct=ht[8],Mt=ht[9],Pt=ht[10],At=P(xe,b,w,x),Lt=(0,r.Z)(At,2),Rt=Lt[0],Nt=Lt[1],St=Rt.has("click"),zt=Nt.has("click")||Nt.has("contextMenu"),Dt=(0,p.Z)((function(){rt||Pt()}));I(Je,De,Le,Dt,(function(){$e.current&&ie&&zt&&tt(!1)})),(0,d.Z)((function(){Dt()}),[pt,G]),(0,d.Z)((function(){!Je||null!=U&&U[G]||Dt()}),[JSON.stringify(ee)]);var Ht=h.useMemo((function(){var e=R(U,l,Mt,ie);return u()(e,null==oe?void 0:oe(Mt))}),[Mt,oe,U,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Te.current,forceAlign:Dt}}));var Tt=h.useState(0),Yt=(0,r.Z)(Tt,2),Xt=Yt[0],Bt=Yt[1],Vt=h.useState(0),Wt=(0,r.Z)(Vt,2),Ot=Wt[0],Ft=Wt[1],It=function(){if(ne&&De){var e=De.getBoundingClientRect();Bt(e.width),Ft(e.height)}};function jt(e,t,n,o){Ve[e]=function(r){var i;null==o||o(r),tt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];null===(i=Be[e])||void 0===i||i.call.apply(i,[Be,r].concat(l))}}(0,d.Z)((function(){ut&&(Pt(),ut(),ct(null))}),[ut]),(St||zt)&&(Ve.onClick=function(e){var t;$e.current&&zt?tt(!1):!$e.current&&St&&(dt(e),tt(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Be.onClick)||void 0===t||t.call.apply(t,[Be,e].concat(o))}),q(Je,zt,De,Le,Y,B,We,tt);var qt,_t,Jt=Rt.has("hover"),Qt=Nt.has("hover");Jt&&(jt("onMouseEnter",!0,S,(function(e){dt(e)})),jt("onPointerEnter",!0,S,(function(e){dt(e)})),qt=function(e){(Je||rt)&&null!=Le&&Le.contains(e.target)&&tt(!0,S)},ie&&(Ve.onMouseMove=function(e){var t;null===(t=Be.onMouseMove)||void 0===t||t.call(Be,e)})),Qt&&(jt("onMouseLeave",!1,D),jt("onPointerLeave",!1,D),_t=function(){tt(!1,D)}),Rt.has("focus")&&jt("onFocus",!0,H),Nt.has("focus")&&jt("onBlur",!1,T),Rt.has("contextMenu")&&(Ve.onContextMenu=function(e){var t;$e.current&&Nt.has("contextMenu")?tt(!1):(dt(e),tt(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Be.onContextMenu)||void 0===t||t.call.apply(t,[Be,e].concat(o))}),me&&(Ve.className=u()(Be.className,me));var $t=(0,o.Z)((0,o.Z)({},Be),Ve),Gt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ge[e]&&(Gt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(o)),ge[e].apply(ge,o)})}));var Kt=h.cloneElement(Xe,(0,o.Z)((0,o.Z)({},$t),Gt)),Ut={x:kt,y:Zt},en=ue?(0,o.Z)({},!0!==ue?ue:{}):null;return h.createElement(h.Fragment,null,h.createElement(c.Z,{disabled:!Je,ref:Ye,onResize:function(){It(),Dt()}},h.createElement(E,{getTriggerDOMNode:he},Kt)),h.createElement(C.Provider,{value:Ce},h.createElement(Z,{portal:e,ref:Ne,prefixCls:l,popup:J,className:u()(Q,Ht),style:$,target:De,onMouseEnter:qt,onMouseLeave:_t,onPointerEnter:qt,zIndex:te,open:Je,keepDom:rt,fresh:re,onClick:ae,mask:Y,motion:Oe,maskMotion:Fe,onVisibleChanged:function(e){it(!1),Pt(),null==L||L(e)},onPrepare:function(){return new Promise((function(e){It(),ct((function(){return e}))}))},forceRender:W,autoDestroy:ye,getPopupContainer:V,align:Mt,arrow:en,arrowPos:Ut,ready:gt,offsetX:yt,offsetY:bt,offsetR:wt,offsetB:xt,onAlign:Dt,stretch:ne,targetWidth:Xt/Et,targetHeight:Ot/Ct})))}));return t}(a.Z)},49658:function(e,t){t.Z=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))}}}]);