(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[2],{133:function(e,t,n){"use strict";var o=n(43),i=n(3),r=n(45),a=n(46),u=n(131),c=n(47),s=n(48),l=n(0),p=n.n(l),f=n(20),d=n.n(f),h=n(66),m=n(288),v=n(223),g=n(67),b=n(289),w=n(245),y=n(39),O=n.n(y);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var T=n(41),C=n(53),M=n(246),k=n(80);function j(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 P(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,a=e.mask,u=e.maskMotion,c=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var p={};return(u||s||c)&&(p=Object(o.a)({motionAppear:!0},j({motion:u,prefixCls:t,transitionName:s,animation:c}))),l.createElement(k.b,Object(i.a)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:r},className:O()("".concat(t,"-mask"),n)})}))}var E,D=n(44),S=n(290);function R(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 H(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ye(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 Oe(e,t){var n=t.charAt(0),o=t.charAt(1),i=e.width,r=e.height,a=e.left,u=e.top;return"c"===n?u+=r/2:"b"===n&&(u+=r),"c"===o?a+=i/2:"r"===o&&(a+=i),{left:a,top:u}}function xe(e,t,n,o,i){var r=Oe(t,n[1]),a=Oe(e,n[0]),u=[a.left-r.left,a.top-r.top];return{left:Math.round(e.left-u[0]+o[0]-i[0]),top:Math.round(e.top-u[1]+o[1]-i[1])}}function Te(e,t,n){return e.leftn.right}function Ce(e,t,n){return e.topn.bottom}function Me(e,t,n){var o=[];return me.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ke(e,t){return e[t]=-e[t],e}function je(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]=je(e[0],t.width),e[1]=je(e[1],t.height)}function Ee(e,t,n,o){var i=n.points,r=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||e;r=[].concat(r),a=[].concat(a);var s={},l=0,p=we(c,!(!(u=u||{})||!u.alwaysByViewport)),f=ye(c);Pe(r,f),Pe(a,t);var d=xe(f,t,i,r,a),h=me.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&Te(d,f,p)){var m=Me(i,/[lr]/gi,{l:"r",r:"l"}),v=ke(r,0),g=ke(a,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,f,p,s))}return h.width!==f.width&&me.css(c,"width",me.width(c)+h.width-f.width),h.height!==f.height&&me.css(c,"height",me.height(c)+h.height-f.height),me.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:r,targetOffset:a,overflow:s}}function De(e,t,n){var o=n.target||t;return Ee(e,ye(o),n,!function(e,t){var n=we(e,t),o=ye(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))}De.__getOffsetParent=ge,De.__getVisibleRectForElement=we;var Se=n(291);function Re(e,t){var n=null,o=null;var i=new Se.a((function(e){var i=Object(T.a)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),a=r.width,u=r.height,c=Math.floor(a),s=Math.floor(u);n===c&&o===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,o=s}}));return e&&i.observe(e),function(){i.disconnect()}}function He(e){return"function"!==typeof e?null:e()}function Ne(e){return"object"===Object(D.a)(e)&&e?e:null}var Ve=p.a.forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,a=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,s=void 0===c?0:c,l=p.a.useRef({}),f=p.a.useRef(),d=p.a.Children.only(n),h=p.a.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=a;var v=function(e,t){var n=p.a.useRef(!1),o=p.a.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.onAlign;if(!t&&n){var i,a=f.current,u=He(n),c=Ne(n);l.current.element=u,l.current.point=c;var s=document.activeElement;return u&&Object(S.a)(u)?i=De(a,u,r):c&&(i=function(e,t,n){var o,i,r=me.getDocument(e),a=r.defaultView||r.parentWindow,u=me.getWindowScrollLeft(a),c=me.getWindowScrollTop(a),s=me.viewportWidth(a),l=me.viewportHeight(a),p={left:o="pageX"in t?t.pageX:u+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=o>=0&&o<=u+s&&i>=0&&i<=c+l,d=[n.points[0],"cc"];return Ee(e,p,H(H({},n),{},{points:d}),f)}(a,c,r)),function(e,t){e!==document.activeElement&&Object(m.a)(t,e)&&"function"===typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),w=Object(T.a)(v,2),y=w[0],O=w[1],x=p.a.useRef({cancel:function(){}}),C=p.a.useRef({cancel:function(){}});p.a.useEffect((function(){var e,t,n=He(i),o=Ne(i);f.current!==C.current.element&&(C.current.cancel(),C.current.element=f.current,C.current.cancel=Re(f.current,y)),l.current.element===n&&((e=l.current.point)===(t=o)||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))||(y(),x.current.element!==n&&(x.current.cancel(),x.current.element=n,x.current.cancel=Re(n,y)))})),p.a.useEffect((function(){o?O():y()}),[o]);var M=p.a.useRef(null);return p.a.useEffect((function(){u?M.current||(M.current=Object(b.a)(window,"resize",y)):M.current&&(M.current.remove(),M.current=null)}),[u]),p.a.useEffect((function(){return function(){x.current.cancel(),C.current.cancel(),M.current&&M.current.remove(),O()}}),[]),p.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),p.a.isValidElement(d)&&(d=p.a.cloneElement(d,{ref:Object(g.a)(d.ref,f)})),d}));Ve.displayName="Align";var Ae=Ve,Le=n(242),We=n.n(Le),Be=n(283),ze=["measure","align",null,"motion"],Fe=l.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,a=e.className,u=e.style,c=e.children,s=e.zIndex,p=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,m=e.align,v=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,w=e.onAlign,y=e.onMouseEnter,x=e.onMouseLeave,C=e.onMouseDown,M=e.onTouchStart,P=Object(l.useRef)(),E=Object(l.useRef)(),D=Object(l.useState)(),S=Object(T.a)(D,2),R=S[0],H=S[1],N=function(e){var t=l.useState({width:0,height:0}),n=Object(T.a)(t,2),o=n[0],i=n[1];return[l.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){i({width:e.offsetWidth,height:e.offsetHeight})}]}(p),V=Object(T.a)(N,2),A=V[0],L=V[1];var W=function(e,t){var n=Object(l.useState)(null),o=Object(T.a)(n,2),i=o[0],r=o[1],a=Object(l.useRef)(),u=Object(l.useRef)(!1);function c(e){u.current||r(e)}function s(){h.a.cancel(a.current)}return Object(l.useEffect)((function(){c("measure")}),[e]),Object(l.useEffect)((function(){switch(i){case"measure":t()}i&&(a.current=Object(h.a)(Object(Be.a)(We.a.mark((function e(){var t,n;return We.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=ze.indexOf(i),(n=ze[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),Object(l.useEffect)((function(){return function(){u.current=!0,s()}}),[]),[i,function(e){s(),a.current=Object(h.a)((function(){c((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){p&&L(g())})),B=Object(T.a)(W,2),z=B[0],F=B[1],X=Object(l.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function I(e,t){if("align"===z){var n=b(t);H(n),R!==n?Promise.resolve().then((function(){Y()})):F((function(){var e;null===(e=X.current)||void 0===e||e.call(X)})),null===w||void 0===w||w(e,t)}}var U=Object(o.a)({},j(e));function _(){return new Promise((function(e){X.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return F(),null===t||void 0===t?void 0:t(e,n)}})),l.useEffect((function(){U.motionName||"motion"!==z||F()}),[U.motionName,z]),l.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return E.current}}}));var q=Object(o.a)(Object(o.a)({},A),{},{zIndex:s,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:"stable"===z?void 0:"none"},u),$=!0;!(null===m||void 0===m?void 0:m.points)||"align"!==z&&"stable"!==z||($=!1);var J=c;return l.Children.count(c)>1&&(J=l.createElement("div",{className:"".concat(r,"-content")},c)),l.createElement(k.b,Object(i.a)({visible:n,ref:E,leavedClassName:"".concat(r,"-hidden")},U,{onAppearPrepare:_,onEnterPrepare:_,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,i=e.style,u=O()(r,a,R,n);return l.createElement(Ae,{target:v||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:$,align:m,onAlign:I},l.createElement("div",{ref:t,className:u,onMouseEnter:y,onMouseLeave:x,onMouseDownCapture:C,onTouchStartCapture:M,style:Object(o.a)(Object(o.a)({},i),q)},J))}))}));Fe.displayName="PopupInner";var Xe=Fe,Ye=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,u=e.children,c=e.mobile,s=(c=void 0===c?{}:c).popupClassName,p=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,h=c.popupRender,m=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var v=Object(o.a)({zIndex:a},p),g=u;return l.Children.count(u)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},u)),h&&(g=h(g)),l.createElement(k.b,Object(i.a)({visible:r,ref:m,removeOnLeave:!0},d),(function(e,t){var i=e.className,r=e.style,a=O()(n,s,i);return l.createElement("div",{ref:t,className:a,style:Object(o.a)(Object(o.a)({},r),v)},g)}))}));Ye.displayName="MobilePopupInner";var Ie=Ye,Ue=l.forwardRef((function(e,t){var n=e.visible,r=e.mobile,a=Object(C.a)(e,["visible","mobile"]),u=Object(l.useState)(n),c=Object(T.a)(u,2),s=c[0],p=c[1],f=Object(l.useState)(!1),d=Object(T.a)(f,2),h=d[0],m=d[1],v=Object(o.a)(Object(o.a)({},a),{},{visible:s});Object(l.useEffect)((function(){p(n),n&&r&&m(Object(M.a)())}),[n,r]);var g=h?l.createElement(Ie,Object(i.a)({},v,{mobile:r,ref:t})):l.createElement(Xe,Object(i.a)({},v,{ref:t}));return l.createElement("div",null,l.createElement(P,v),g)}));Ue.displayName="Popup";var _e=Ue,qe=l.createContext(null);function $e(){}function Je(){return""}function Ze(e){return e?e.ownerDocument:window.document}var Ge=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];t.a=function(e){var t=function(t){Object(c.a)(p,t);var n=Object(s.a)(p);function p(e){var t,o;return Object(r.a)(this,p),(t=n.call(this,e)).popupRef=l.createRef(),t.triggerRef=l.createRef(),t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(m.a)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},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)},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)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),i=t.getPopupDomNode();Object(m.a)(o,n)&&!t.isContextMenuOnly()||Object(m.a)(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(v.a)(t.triggerRef.current);if(n)return n}catch(o){}return d.a.findDOMNode(Object(u.a)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],o=t.props,i=o.popupPlacement,r=o.builtinPlacements,a=o.prefixCls,u=o.alignPoint,c=o.getPopupClassNameFromAlign;return i&&r&&n.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a