"use strict";(self.webpackChunkbeancount_web=self.webpackChunkbeancount_web||[]).push([[668],{5069:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9379),a=r(9284);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var l=r(3768),i=function(e,t){return a.createElement(l.A,(0,n.A)((0,n.A)({},e),{},{ref:t,icon:o}))};const c=a.forwardRef(i)},6668:(e,t,r)=>{r.d(t,{A:()=>pe});var n=r(713),a=r(4467),o=r(8168),l=r(436),i=r(4480),c=r.n(i),u=r(7285),s=r(9284),d=r(3135),f=r(259),m=r(5544);function p(e){var t=s.useState(e),r=(0,m.A)(t,2),n=r[0],a=r[1];return s.useEffect((function(){var t=setTimeout((function(){a(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),n}var v=[];function h(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:"".concat(r,"-").concat(n),error:e,errorStatus:t}}function g(e){var t=e.help,r=e.helpStatus,i=e.errors,m=void 0===i?v:i,g=e.warnings,b=void 0===g?v:g,A=e.className,y=e.fieldId,w=e.onVisibleChanged,C=s.useContext(n.hb).prefixCls,E=s.useContext(d.QO).getPrefixCls,x="".concat(C,"-item-explain"),O=E(),k=p(m),N=p(b),M=s.useMemo((function(){return void 0!==t&&null!==t?[h(t,r,"help")]:[].concat((0,l.A)(k.map((function(e,t){return h(e,"error","error",t)}))),(0,l.A)(N.map((function(e,t){return h(e,"warning","warning",t)}))))}),[t,r,k,N]),F={};return y&&(F.id="".concat(y,"_help")),s.createElement(u.Ay,{motionDeadline:f.Ay.motionDeadline,motionName:"".concat(O,"-show-help"),visible:!!M.length,onVisibleChanged:w},(function(e){var t=e.className,r=e.style;return s.createElement("div",(0,o.A)({},F,{className:c()(x,t,A),style:r,role:"alert"}),s.createElement(u.aF,(0,o.A)({keys:M},f.Ay,{motionName:"".concat(O,"-show-help-item"),component:!1}),(function(e){var t=e.key,r=e.error,n=e.errorStatus,o=e.className,l=e.style;return s.createElement("div",{key:t,className:c()(o,(0,a.A)({},"".concat(x,"-").concat(n),n)),style:l},r)})))}))}var b=r(2284),A=r(5533),y=r(1151),w=r(9416),C=r(4855);function E(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function O(e,t){if(e.clientHeightt||o>e&&l=t&&i>=r?o-e-n:l>t&&ir?l-t+a:0}var N=function(e,t){var r=window,n=t.scrollMode,a=t.block,o=t.inline,l=t.boundary,i=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!E(e))throw new TypeError("Invalid target");for(var u,s,d=document.scrollingElement||document.documentElement,f=[],m=e;E(m)&&c(m);){if((m=null==(s=(u=m).parentElement)?u.getRootNode().host||null:s)===d){f.push(m);break}null!=m&&m===document.body&&O(m)&&!O(document.documentElement)||null!=m&&O(m,i)&&f.push(m)}for(var p=r.visualViewport?r.visualViewport.width:innerWidth,v=r.visualViewport?r.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),A=b.height,y=b.width,w=b.top,C=b.right,x=b.bottom,N=b.left,M="start"===a||"nearest"===a?w:"end"===a?x:w+A/2,F="center"===o?N+y/2:"end"===o?C:N,I=[],P=0;P=0&&N>=0&&x<=v&&C<=p&&w>=q&&x<=V&&N>=T&&C<=W)return I;var H=getComputedStyle(_),K=parseInt(H.borderLeftWidth,10),z=parseInt(H.borderTopWidth,10),B=parseInt(H.borderRightWidth,10),L=parseInt(H.borderBottomWidth,10),D=0,Q=0,X="offsetWidth"in _?_.offsetWidth-_.clientWidth-K-B:0,Y="offsetHeight"in _?_.offsetHeight-_.clientHeight-z-L:0,$="offsetWidth"in _?0===_.offsetWidth?0:R/_.offsetWidth:0,U="offsetHeight"in _?0===_.offsetHeight?0:S/_.offsetHeight:0;if(d===_)D="start"===a?M:"end"===a?M-v:"nearest"===a?k(g,g+v,v,z,L,g+M,g+M+A,A):M-v/2,Q="start"===o?F:"center"===o?F-p/2:"end"===o?F-p:k(h,h+p,p,K,B,h+F,h+F+y,y),D=Math.max(0,D+g),Q=Math.max(0,Q+h);else{D="start"===a?M-q-z:"end"===a?M-V+L+Y:"nearest"===a?k(q,V,S,z,L+Y,M,M+A,A):M-(q+S/2)+Y/2,Q="start"===o?F-T-K:"center"===o?F-(T+R/2)+X/2:"end"===o?F-W+B+X:k(T,W,R,K,B+X,F,F+y,y);var G=_.scrollLeft,J=_.scrollTop;M+=J-(D=Math.max(0,Math.min(J+D/U,_.scrollHeight-S/U+Y))),F+=G-(Q=Math.max(0,Math.min(G+Q/$,_.scrollWidth-R/$+X)))}I.push({el:_,top:D,left:Q})}return I};function M(e){return e===Object(e)&&0!==Object.keys(e).length}const F=function(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(M(t)&&"function"===typeof t.behavior)return t.behavior(r?N(e,t):[]);if(r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:M(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,a=e.top,o=e.left;n.scroll&&r?n.scroll({top:a,left:o,behavior:t}):(n.scrollTop=a,n.scrollLeft=o)}))}(N(e,n),n.behavior)}};var I=["parentNode"];function P(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function _(e,t){if(e.length){var r=e.join("_");return t?"".concat(t,"_").concat(r):I.includes(r)?"".concat("form_item","_").concat(r):r}}function j(e){return P(e).join("_")}function S(e){var t=(0,A.mN)(),r=(0,m.A)(t,1)[0],n=s.useRef({}),a=s.useMemo((function(){return null!==e&&void 0!==e?e:(0,o.A)((0,o.A)({},r),{__INTERNAL__:{itemRef:function(e){return function(t){var r=j(e);t?n.current[r]=t:delete n.current[r]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=_(P(e),a.__INTERNAL__.name),n=r?document.getElementById(r):null;n&&F(n,(0,o.A)({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=j(e);return n.current[t]}})}),[e,r]);return[a]}var R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a0||G.length>0||e.extra){var w=[];(e.help||U.length>0)&&w.push("".concat(m,"_help")),e.extra&&w.push("".concat(m,"_extra")),A["aria-describedby"]=w.join(" ")}U.length>0&&(A["aria-invalid"]="true"),v&&(A["aria-required"]="true"),(0,T.f3)(f)&&(A.ref=J(d,f)),new Set([].concat((0,l.A)(P(y)),(0,l.A)(P(M)))).forEach((function(e){A[e]=function(){for(var t,r,n,a,o,l=arguments.length,i=new Array(l),c=0;c