"use strict";(self.webpackChunkbeancount_web=self.webpackChunkbeancount_web||[]).push([[475],{1893:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(9379),i=n(9284);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var u=n(3768),a=function(e,t){return i.createElement(u.A,(0,o.A)((0,o.A)({},e),{},{ref:t,icon:r}))};const s=i.forwardRef(a)},6542:(e,t,n)=>{n.d(t,{L:()=>u,v:()=>a});var o=n(4467),i=n(4480),r=n.n(i);(0,n(993).P)("warning","error","");function u(e,t,n){return r()((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(e,"-status-success"),"success"===t),"".concat(e,"-status-warning"),"warning"===t),"".concat(e,"-status-error"),"error"===t),"".concat(e,"-status-validating"),"validating"===t),"".concat(e,"-has-feedback"),n))}var a=function(e,t){return t||e}},2773:(e,t,n)=>{n.d(t,{A:()=>C});var o=n(8168),i=n(9284),r=n(4650),u=(n(2042),n(9379)),a=n(2284),s=n(7652),c=n(7095),l=i.createContext(null);var f=n(9919),p=new Map;var d=new f.A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=p.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var h=n(3029),v=n(2901),m=n(5501),g=n(9426),w=function(e){(0,m.A)(n,e);var t=(0,g.A)(n);function n(){return(0,h.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function y(e,t){var n=e.children,o=e.disabled,r=i.useRef(null),f=i.useRef(null),h=i.useContext(l),v="function"===typeof n,m=v?n(r):n,g=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!v&&i.isValidElement(m)&&(0,c.f3)(m),b=y?m.ref:null,A=(0,c.xK)(b,r),M=function(){var e;return(0,s.Ay)(r.current)||(r.current&&"object"===(0,a.A)(r.current)?(0,s.Ay)(null===(e=r.current)||void 0===e?void 0:e.nativeElement):null)||(0,s.Ay)(f.current)};i.useImperativeHandle(t,(function(){return M()}));var C=i.useRef(e);C.current=e;var x=i.useCallback((function(e){var t=C.current,n=t.onResize,o=t.data,i=e.getBoundingClientRect(),r=i.width,a=i.height,s=e.offsetWidth,c=e.offsetHeight,l=Math.floor(r),f=Math.floor(a);if(g.current.width!==l||g.current.height!==f||g.current.offsetWidth!==s||g.current.offsetHeight!==c){var p={width:l,height:f,offsetWidth:s,offsetHeight:c};g.current=p;var d=s===Math.round(r)?r:s,v=c===Math.round(a)?a:c,m=(0,u.A)((0,u.A)({},p),{},{offsetWidth:d,offsetHeight:v});null===h||void 0===h||h(m,e,o),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return i.useEffect((function(){var e,t,n=M();return n&&!o&&(e=n,t=x,p.has(e)||(p.set(e,new Set),d.observe(e)),p.get(e).add(t)),function(){return function(e,t){p.has(e)&&(p.get(e).delete(t),p.get(e).size||(d.unobserve(e),p.delete(e)))}(n,x)}}),[r.current,o]),i.createElement(w,{ref:f},y?i.cloneElement(m,{ref:A}):m)}const b=i.forwardRef(y);function A(e,t){var n=e.children;return("function"===typeof n?[n]:(0,r.A)(n)).map((function(n,r){var u=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return i.createElement(b,(0,o.A)({},e,{key:u,ref:0===r?t:void 0}),n)}))}var M=i.forwardRef(A);M.Collection=function(e){var t=e.children,n=e.onBatchResize,o=i.useRef(0),r=i.useRef([]),u=i.useContext(l),a=i.useCallback((function(e,t,i){o.current+=1;var a=o.current;r.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){a===o.current&&(null===n||void 0===n||n(r.current),r.current=[])})),null===u||void 0===u||u(e,t,i)}),[n,u]);return i.createElement(l.Provider,{value:a},t)};const C=M},9772:(e,t,n)=>{n.d(t,{A:()=>it});var o=n(9379),i=n(8168),r=n(3029),u=n(2901),a=n(9417),s=n(5501),c=n(9426),l=n(4467),f=n(9284),p=n(8681),d=n(8979),h=n(6544),v=n(7652),m=n(7095);function g(e,t,n,o){var i=p.unstable_batchedUpdates?function(e){p.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}var w=n(8078);const y=(0,f.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,i=e.children,r=(0,f.useRef)(),u=(0,f.useRef)();(0,f.useImperativeHandle)(t,(function(){return{}}));var a=(0,f.useRef)(!1);return!a.current&&(0,w.A)()&&(u.current=o(),r.current=u.current.parentNode,a.current=!0),(0,f.useEffect)((function(){null===n||void 0===n||n(e)})),(0,f.useEffect)((function(){return null===u.current.parentNode&&null!==r.current&&r.current.appendChild(u.current),function(){var e;null===(e=u.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(u.current)}}),[]),u.current?p.createPortal(i,u.current):null}));var b=n(4480),A=n.n(b);function M(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var C=n(5544),x=n(45),T=n(7142),k=n(7285);function E(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function O(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,u=e.mask,a=e.maskMotion,s=e.maskAnimation,c=e.maskTransitionName;if(!u)return null;var l={};return(a||c||s)&&(l=(0,o.A)({motionAppear:!0},E({motion:a,prefixCls:t,transitionName:c,animation:s}))),f.createElement(k.Ay,(0,i.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:r},className:A()("".concat(t,"-mask"),n)})}))}var P,_=n(2284);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ae(e){var t,n,o;if(me.isWindow(e)||9===e.nodeType){var i=me.getWindow(e);t={left:me.getWindowScrollLeft(i),top:me.getWindowScrollTop(i)},n=me.viewportWidth(i),o=me.viewportHeight(i)}else t=me.offset(e),n=me.outerWidth(e),o=me.outerHeight(e);return t.width=n,t.height=o,t}function Me(e,t){var n=t.charAt(0),o=t.charAt(1),i=e.width,r=e.height,u=e.left,a=e.top;return"c"===n?a+=r/2:"b"===n&&(a+=r),"c"===o?u+=i/2:"r"===o&&(u+=i),{left:u,top:a}}function Ce(e,t,n,o,i){var r=Me(t,n[1]),u=Me(e,n[0]),a=[u.left-r.left,u.top-r.top];return{left:Math.round(e.left-a[0]+o[0]-i[0]),top:Math.round(e.top-a[1]+o[1]-i[1])}}function xe(e,t,n){return e.leftn.right}function Te(e,t,n){return e.topn.bottom}function ke(e,t,n){var o=[];return me.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Ee(e,t){return e[t]=-e[t],e}function Oe(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Pe(e,t){e[0]=Oe(e[0],t.width),e[1]=Oe(e[1],t.height)}function _e(e,t,n,o){var i=n.points,r=n.offset||[0,0],u=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;r=[].concat(r),u=[].concat(u);var c={},l=0,f=be(s,!(!(a=a||{})||!a.alwaysByViewport)),p=Ae(s);Pe(r,p),Pe(u,t);var d=Ce(p,t,i,r,u),h=me.merge(p,d);if(f&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&xe(d,p,f)){var v=ke(i,/[lr]/gi,{l:"r",r:"l"}),m=Ee(r,0),g=Ee(u,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+r.width>n.right&&(r.width-=i.left+r.width-n.right),o.adjustX&&i.left+r.width>n.right&&(i.left=Math.max(n.right-r.width,n.left)),o.adjustY&&i.top=n.top&&i.top+r.height>n.bottom&&(r.height-=i.top+r.height-n.bottom),o.adjustY&&i.top+r.height>n.bottom&&(i.top=Math.max(n.bottom-r.height,n.top)),me.mix(i,r)}(d,p,f,c))}return h.width!==p.width&&me.css(s,"width",me.width(s)+h.width-p.width),h.height!==p.height&&me.css(s,"height",me.height(s)+h.height-p.height),me.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:r,targetOffset:u,overflow:c}}function De(e,t,n){var o=n.target||t,i=Ae(o),r=!function(e,t){var n=be(e,t),o=Ae(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return _e(e,i,n,r)}De.__getOffsetParent=we,De.__getVisibleRectForElement=be;var Re=n(3346),Se=n(8251),He=n(909);var Ve=n(9919);function Ne(e,t){var n=null,o=null;var i=new Ve.A((function(e){var i=(0,C.A)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),u=r.width,a=r.height,s=Math.floor(u),c=Math.floor(a);n===s&&o===c||Promise.resolve().then((function(){t({width:s,height:c})})),n=s,o=c}}));return e&&i.observe(e),function(){i.disconnect()}}function We(e){return"function"!==typeof e?null:e()}function Le(e){return"object"===(0,_.A)(e)&&e?e:null}var je=function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,u=e.onAlign,a=e.monitorWindowResize,s=e.monitorBufferTime,c=void 0===s?0:s,l=f.useRef({}),p=f.useRef(),d=f.Children.only(n),v=f.useRef({});v.current.disabled=o,v.current.target=i,v.current.align=r,v.current.onAlign=u;var w=function(e,t){var n=f.useRef(!1),o=f.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(u){if(i(),n.current&&!0!==u)o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e(u))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=v.current,t=e.disabled,n=e.target,o=e.align,i=e.onAlign,r=p.current;if(!t&&n&&r){var u,a=We(n),s=Le(n);l.current.element=a,l.current.point=s,l.current.align=o;var c=document.activeElement;return a&&(0,Se.A)(a)?u=De(r,a,o):s&&(u=function(e,t,n){var o,i,r=me.getDocument(e),u=r.defaultView||r.parentWindow,a=me.getWindowScrollLeft(u),s=me.getWindowScrollTop(u),c=me.viewportWidth(u),l=me.viewportHeight(u),f={left:o="pageX"in t?t.pageX:a+t.clientX,top:i="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=o>=0&&o<=a+c&&i>=0&&i<=s+l,d=[n.points[0],"cc"];return _e(e,f,R(R({},n),{},{points:d}),p)}(r,s,o)),function(e,t){e!==document.activeElement&&(0,h.A)(t,e)&&"function"===typeof e.focus&&e.focus()}(c,r),i&&u&&i(r,u),!0}return!1}),c),y=(0,C.A)(w,2),b=y[0],A=y[1],M=f.useState(),x=(0,C.A)(M,2),T=x[0],k=x[1],E=f.useState(),O=(0,C.A)(E,2),P=O[0],_=O[1];return(0,He.A)((function(){k(We(i)),_(Le(i))})),f.useEffect((function(){var e,t;l.current.element===T&&((e=l.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Re.A)(l.current.align,r)||b()})),f.useEffect((function(){return Ne(p.current,b)}),[p.current]),f.useEffect((function(){return Ne(T,b)}),[T]),f.useEffect((function(){o?A():b()}),[o]),f.useEffect((function(){if(a)return g(window,"resize",b).remove}),[a]),f.useEffect((function(){return function(){A()}}),[]),f.useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),f.isValidElement(d)&&(d=f.cloneElement(d,{ref:(0,m.K4)(d.ref,p)})),d},ze=f.forwardRef(je);ze.displayName="Align";const Be=ze;var Fe=n(675),Ie=n(467),Xe=n(3785),Ye=["measure","alignPre","align",null,"motion"];var qe=f.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,u=e.className,a=e.style,s=e.children,c=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,h=e.forceRender,v=e.align,m=e.point,g=e.getRootDomNode,w=e.getClassNameFromAlign,y=e.onAlign,b=e.onMouseEnter,M=e.onMouseLeave,x=e.onMouseDown,T=e.onTouchStart,O=e.onClick,P=(0,f.useRef)(),_=(0,f.useRef)(),D=(0,f.useState)(),R=(0,C.A)(D,2),S=R[0],H=R[1],V=function(e){var t=f.useState({width:0,height:0}),n=(0,C.A)(t,2),o=n[0],i=n[1];return[f.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),r=o.width,u=o.height;Math.abs(t-r)<1&&Math.abs(n-u)<1&&(t=r,n=u),i({width:t,height:n})}]}(l),N=(0,C.A)(V,2),W=N[0],L=N[1];var j=function(e,t){var n=(0,Xe.A)(null),o=(0,C.A)(n,2),i=o[0],r=o[1],u=(0,f.useRef)();function a(e){r(e,!0)}function s(){d.A.cancel(u.current)}return(0,f.useEffect)((function(){a("measure")}),[e]),(0,f.useEffect)((function(){"measure"===i&&t(),i&&(u.current=(0,d.A)((0,Ie.A)((0,Fe.A)().mark((function e(){var t,n;return(0,Fe.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ye.indexOf(i),(n=Ye[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,f.useEffect)((function(){return function(){s()}}),[]),[i,function(e){s(),u.current=(0,d.A)((function(){a((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){l&&L(g())})),z=(0,C.A)(j,2),B=z[0],F=z[1],I=(0,f.useState)(0),X=(0,C.A)(I,2),Y=X[0],q=X[1],U=(0,f.useRef)();function G(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function K(e,t){var n=w(t);S!==n&&H(n),q((function(e){return e+1})),"align"===B&&(null===y||void 0===y||y(e,t))}(0,He.A)((function(){"alignPre"===B&&q(0)}),[B]),(0,He.A)((function(){"align"===B&&(Y<3?G():F((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[Y]);var $=(0,o.A)({},E(e));function Z(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=$[e];$[e]=function(e,n){return F(),null===t||void 0===t?void 0:t(e,n)}})),f.useEffect((function(){$.motionName||"motion"!==B||F()}),[$.motionName,B]),f.useImperativeHandle(t,(function(){return{forceAlign:G,getElement:function(){return _.current}}}));var J=(0,o.A)((0,o.A)({},W),{},{zIndex:c,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},a),Q=!0;null===v||void 0===v||!v.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=s;return f.Children.count(s)>1&&(ee=f.createElement("div",{className:"".concat(r,"-content")},s)),f.createElement(k.Ay,(0,i.A)({visible:n,ref:_,leavedClassName:"".concat(r,"-hidden")},$,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:p,forceRender:h}),(function(e,t){var n=e.className,i=e.style,a=A()(r,u,S,n);return f.createElement(Be,{target:m||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:Q,align:v,onAlign:K},f.createElement("div",{ref:t,className:a,onMouseEnter:b,onMouseLeave:M,onMouseDownCapture:x,onTouchStartCapture:T,onClick:O,style:(0,o.A)((0,o.A)({},i),J)},ee))}))}));qe.displayName="PopupInner";const Ue=qe;var Ge=f.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,u=e.zIndex,a=e.children,s=e.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,d=void 0===p?{}:p,h=s.popupRender,v=e.onClick,m=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=(0,o.A)({zIndex:u},l),w=a;return f.Children.count(a)>1&&(w=f.createElement("div",{className:"".concat(n,"-content")},a)),h&&(w=h(w)),f.createElement(k.Ay,(0,i.A)({visible:r,ref:m,removeOnLeave:!0},d),(function(e,t){var i=e.className,r=e.style,u=A()(n,c,i);return f.createElement("div",{ref:t,className:u,onClick:v,style:(0,o.A)((0,o.A)({},r),g)},w)}))}));Ge.displayName="MobilePopupInner";const Ke=Ge;var $e=["visible","mobile"],Ze=f.forwardRef((function(e,t){var n=e.visible,r=e.mobile,u=(0,x.A)(e,$e),a=(0,f.useState)(n),s=(0,C.A)(a,2),c=s[0],l=s[1],p=(0,f.useState)(!1),d=(0,C.A)(p,2),h=d[0],v=d[1],m=(0,o.A)((0,o.A)({},u),{},{visible:c});(0,f.useEffect)((function(){l(n),n&&r&&v((0,T.A)())}),[n,r]);var g=h?f.createElement(Ke,(0,i.A)({},m,{mobile:r,ref:t})):f.createElement(Ue,(0,i.A)({},m,{ref:t}));return f.createElement("div",null,f.createElement(O,m),g)}));Ze.displayName="Popup";const Je=Ze;const Qe=f.createContext(null);function et(){}function tt(){return""}function nt(e){return e?e.ownerDocument:window.document}var ot=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const it=function(e){var t=function(t){(0,s.A)(w,t);var n=(0,c.A)(w);function w(e){var t,o;return(0,r.A)(this,w),t=n.call(this,e),(0,l.A)((0,a.A)(t),"popupRef",f.createRef()),(0,l.A)((0,a.A)(t),"triggerRef",f.createRef()),(0,l.A)((0,a.A)(t),"portalContainer",void 0),(0,l.A)((0,a.A)(t),"attachId",void 0),(0,l.A)((0,a.A)(t),"clickOutsideHandler",void 0),(0,l.A)((0,a.A)(t),"touchOutsideHandler",void 0),(0,l.A)((0,a.A)(t),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,a.A)(t),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,a.A)(t),"mouseDownTimeout",void 0),(0,l.A)((0,a.A)(t),"focusTime",void 0),(0,l.A)((0,a.A)(t),"preClickTime",void 0),(0,l.A)((0,a.A)(t),"preTouchTime",void 0),(0,l.A)((0,a.A)(t),"delayTimer",void 0),(0,l.A)((0,a.A)(t),"hasPopupMouseDown",void 0),(0,l.A)((0,a.A)(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),(0,l.A)((0,a.A)(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),(0,l.A)((0,a.A)(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,l.A)((0,a.A)(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),(0,l.A)((0,a.A)(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.A)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,l.A)((0,a.A)(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),(0,l.A)((0,a.A)(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),(0,l.A)((0,a.A)(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),(0,l.A)((0,a.A)(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),(0,l.A)((0,a.A)(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),(0,l.A)((0,a.A)(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),(0,l.A)((0,a.A)(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var o=!t.state.popupVisible;(t.isClickToHide()&&!o||o&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),(0,l.A)((0,a.A)(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,a.A)(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),i=t.getPopupDomNode();(0,h.A)(o,n)&&!t.isContextMenuOnly()||(0,h.A)(i,n)||t.hasPopupMouseDown||t.close()}})),(0,l.A)((0,a.A)(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=(0,v.Ay)(t.triggerRef.current);if(n)return n}catch(o){}return p.findDOMNode((0,a.A)(t))})),(0,l.A)((0,a.A)(t),"getPopupClassNameFromAlign",(function(e){var n=[],o=t.props,i=o.popupPlacement,r=o.builtinPlacements,u=o.prefixCls,a=o.alignPoint,s=o.getPopupClassNameFromAlign;return i&&r&&n.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),u=0;u{n.d(t,{A:()=>o});const o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),r=i.width,u=i.height;if(r||u)return!0}}return!1}},7142:(e,t,n)=>{n.d(t,{A:()=>o});const o=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?void 0:e.substr(0,4))}},9919:(e,t,n)=>{n.d(t,{A:()=>x});var o=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),M="undefined"!==typeof WeakMap?new WeakMap:new o,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new A(t,n,this);M.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=M.get(this))[e].apply(t,arguments)}}));const x="undefined"!==typeof r.ResizeObserver?r.ResizeObserver:C}}]);