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.
94 lines
564 KiB
94 lines
564 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5775],{65352:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return Z}});var N=l(77321),D=l(52487),W=l(74416),J=l(43403),V=l(92310),p=l.n(V),$=l(29301),G=l(76846),e=l(96452),s=l(6089),f=l(80402),t=l(34280),r=l(49658),i=l(59301),o=l(72308),m=l(77900),b=l(8654);function E(M){var H=M.prefixCls,A=M.align,te=M.arrow,ce=M.arrowPos,C=te||{},c=C.className,k=C.content,B=ce.x,T=B===void 0?0:B,z=ce.y,L=z===void 0?0:z,ne=i.useRef();if(!A||!A.points)return null;var ee={position:"absolute"};if(A.autoArrow!==!1){var le=A.points[0],pe=A.points[1],ze=le[0],Be=le[1],ke=pe[0],de=pe[1];ze===ke||!["t","b"].includes(ze)?ee.top=L:ze==="t"?ee.top=0:ee.bottom=0,Be===de||!["l","r"].includes(Be)?ee.left=T:Be==="l"?ee.left=0:ee.right=0}return i.createElement("div",{ref:ne,className:p()("".concat(H,"-arrow"),c),style:ee},k)}function _(M){var H=M.prefixCls,A=M.open,te=M.zIndex,ce=M.mask,C=M.motion;return ce?i.createElement(m.default,(0,o.Z)({},C,{motionAppear:!0,visible:A,removeOnLeave:!0}),function(c){var k=c.className;return i.createElement("div",{style:{zIndex:te},className:p()("".concat(H,"-mask"),k)})}):null}var g=i.memo(function(M){var H=M.children;return H},function(M,H){return H.cache}),d=g,u=i.forwardRef(function(M,H){var A=M.popup,te=M.className,ce=M.prefixCls,C=M.style,c=M.target,k=M.onVisibleChanged,B=M.open,T=M.keepDom,z=M.fresh,L=M.onClick,ne=M.mask,ee=M.arrow,le=M.arrowPos,pe=M.align,ze=M.motion,Be=M.maskMotion,ke=M.forceRender,de=M.getPopupContainer,Te=M.autoDestroy,De=M.portal,Ne=M.zIndex,ut=M.onMouseEnter,kt=M.onMouseLeave,Xe=M.onPointerEnter,Tt=M.onPointerDownCapture,nn=M.ready,mt=M.offsetX,rt=M.offsetY,It=M.offsetR,Qt=M.offsetB,Ut=M.onAlign,en=M.onPrepare,qt=M.stretch,pt=M.targetWidth,ct=M.targetHeight,ht=typeof A=="function"?A():A,Ht=B||T,bn=(de==null?void 0:de.length)>0,Ft=i.useState(!de||!bn),kn=(0,D.Z)(Ft,2),Wn=kn[0],rn=kn[1];if((0,t.Z)(function(){!Wn&&bn&&c&&rn(!0)},[Wn,bn,c]),!Wn)return null;var yn="auto",Rn={left:"-1000vw",top:"-1000vh",right:yn,bottom:yn};if(nn||!B){var wn,Pn=pe.points,_n=pe.dynamicInset||((wn=pe._experimental)===null||wn===void 0?void 0:wn.dynamicInset),Nn=_n&&Pn[0][1]==="r",Tn=_n&&Pn[0][0]==="b";Nn?(Rn.right=It,Rn.left=yn):(Rn.left=mt,Rn.right=yn),Tn?(Rn.bottom=Qt,Rn.top=yn):(Rn.top=rt,Rn.bottom=yn)}var fn={};return qt&&(qt.includes("height")&&ct?fn.height=ct:qt.includes("minHeight")&&ct&&(fn.minHeight=ct),qt.includes("width")&&pt?fn.width=pt:qt.includes("minWidth")&&pt&&(fn.minWidth=pt)),B||(fn.pointerEvents="none"),i.createElement(De,{open:ke||Ht,getContainer:de&&function(){return de(c)},autoDestroy:Te},i.createElement(_,{prefixCls:ce,open:B,zIndex:Ne,mask:ne,motion:Be}),i.createElement($.Z,{onResize:Ut,disabled:!B},function(q){return i.createElement(m.default,(0,o.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ke,leavedClassName:"".concat(ce,"-hidden")},ze,{onAppearPrepare:en,onEnterPrepare:en,visible:B,onVisibleChanged:function($e){var Le;ze==null||(Le=ze.onVisibleChanged)===null||Le===void 0||Le.call(ze,$e),k($e)}}),function(Y,$e){var Le=Y.className,Je=Y.style,Qe=p()(ce,Le,te);return i.createElement("div",{ref:(0,b.sQ)(q,H,$e),className:Qe,style:(0,N.Z)((0,N.Z)((0,N.Z)((0,N.Z)({"--arrow-x":"".concat(le.x||0,"px"),"--arrow-y":"".concat(le.y||0,"px")},Rn),fn),Je),{},{boxSizing:"border-box",zIndex:Ne},C),onMouseEnter:ut,onMouseLeave:kt,onPointerEnter:Xe,onClick:L,onPointerDownCapture:Tt},ee&&i.createElement(E,{prefixCls:ce,arrow:ee,arrowPos:le,align:pe}),i.createElement(d,{cache:!B&&!z},ht))})}))}),O=u,P=i.forwardRef(function(M,H){var A=M.children,te=M.getTriggerDOMNode,ce=(0,b.Yr)(A),C=i.useCallback(function(k){(0,b.mH)(H,te?te(k):k)},[te]),c=(0,b.x1)(C,(0,b.C4)(A));return ce?i.cloneElement(A,{ref:c}):A}),K=P,j=i.createContext(null),X=j;function U(M){return M?Array.isArray(M)?M:[M]:[]}function Se(M,H,A,te){return i.useMemo(function(){var ce=U(A!=null?A:H),C=U(te!=null?te:H),c=new Set(ce),k=new Set(C);return M&&(c.has("hover")&&(c.delete("hover"),c.add("click")),k.has("hover")&&(k.delete("hover"),k.add("click"))),[c,k]},[M,H,A,te])}var x=l(29194);function v(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=arguments.length>2?arguments[2]:void 0;return A?M[0]===H[0]:M[0]===H[0]&&M[1]===H[1]}function w(M,H,A,te){for(var ce=A.points,C=Object.keys(M),c=0;c<C.length;c+=1){var k,B=C[c];if(v((k=M[B])===null||k===void 0?void 0:k.points,ce,te))return"".concat(H,"-placement-").concat(B)}return""}function R(M,H,A,te){return H||(A?{motionName:"".concat(M,"-").concat(A)}:te?{motionName:te}:null)}function S(M){return M.ownerDocument.defaultView}function y(M){for(var H=[],A=M==null?void 0:M.parentElement,te=["hidden","scroll","clip","auto"];A;){var ce=S(A).getComputedStyle(A),C=ce.overflowX,c=ce.overflowY,k=ce.overflow;[C,c,k].some(function(B){return te.includes(B)})&&H.push(A),A=A.parentElement}return H}function n(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(M)?H:M}function a(M){return n(parseFloat(M),0)}function h(M,H){var A=(0,N.Z)({},M);return(H||[]).forEach(function(te){if(!(te instanceof HTMLBodyElement||te instanceof HTMLHtmlElement)){var ce=S(te).getComputedStyle(te),C=ce.overflow,c=ce.overflowClipMargin,k=ce.borderTopWidth,B=ce.borderBottomWidth,T=ce.borderLeftWidth,z=ce.borderRightWidth,L=te.getBoundingClientRect(),ne=te.offsetHeight,ee=te.clientHeight,le=te.offsetWidth,pe=te.clientWidth,ze=a(k),Be=a(B),ke=a(T),de=a(z),Te=n(Math.round(L.width/le*1e3)/1e3),De=n(Math.round(L.height/ne*1e3)/1e3),Ne=(le-pe-ke-de)*Te,ut=(ne-ee-ze-Be)*De,kt=ze*De,Xe=Be*De,Tt=ke*Te,nn=de*Te,mt=0,rt=0;if(C==="clip"){var It=a(c);mt=It*Te,rt=It*De}var Qt=L.x+Tt-mt,Ut=L.y+kt-rt,en=Qt+L.width+2*mt-Tt-nn-Ne,qt=Ut+L.height+2*rt-kt-Xe-ut;A.left=Math.max(A.left,Qt),A.top=Math.max(A.top,Ut),A.right=Math.min(A.right,en),A.bottom=Math.min(A.bottom,qt)}}),A}function I(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,A="".concat(H),te=A.match(/^(.*)\%$/);return te?M*(parseFloat(te[1])/100):parseFloat(A)}function re(M,H){var A=H||[],te=(0,D.Z)(A,2),ce=te[0],C=te[1];return[I(M.width,ce),I(M.height,C)]}function he(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[M[0],M[1]]}function we(M,H){var A=H[0],te=H[1],ce,C;return A==="t"?C=M.y:A==="b"?C=M.y+M.height:C=M.y+M.height/2,te==="l"?ce=M.x:te==="r"?ce=M.x+M.width:ce=M.x+M.width/2,{x:ce,y:C}}function Me(M,H){var A={t:"b",b:"t",l:"r",r:"l"};return M.map(function(te,ce){return ce===H?A[te]||"c":te}).join("")}function Ue(M,H,A,te,ce,C,c){var k=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ce[te]||{}}),B=(0,D.Z)(k,2),T=B[0],z=B[1],L=i.useRef(0),ne=i.useMemo(function(){return H?y(H):[]},[H]),ee=i.useRef({}),le=function(){ee.current={}};M||le();var pe=(0,s.Z)(function(){if(H&&A&&M){let Bn=function(gt,dt){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,Sn=Ft.x+gt,Ln=Ft.y+dt,ir=Sn+Nn,Jn=Ln+_n,ar=Math.max(Sn,Zt.left),yt=Math.max(Ln,Zt.top),Yt=Math.min(ir,Zt.right),Dn=Math.min(Jn,Zt.bottom);return Math.max(0,(Yt-ar)*(Dn-yt))},Lt=function(){ge=Ft.y+Rt,fe=ge+_n,be=Ft.x+St,Ee=be+Nn};var ke,de,Te,De,Ne=H,ut=Ne.ownerDocument,kt=S(Ne),Xe=kt.getComputedStyle(Ne),Tt=Xe.width,nn=Xe.height,mt=Xe.position,rt=Ne.style.left,It=Ne.style.top,Qt=Ne.style.right,Ut=Ne.style.bottom,en=Ne.style.overflow,qt=(0,N.Z)((0,N.Z)({},ce[te]),C),pt=ut.createElement("div");(ke=Ne.parentElement)===null||ke===void 0||ke.appendChild(pt),pt.style.left="".concat(Ne.offsetLeft,"px"),pt.style.top="".concat(Ne.offsetTop,"px"),pt.style.position=mt,pt.style.height="".concat(Ne.offsetHeight,"px"),pt.style.width="".concat(Ne.offsetWidth,"px"),Ne.style.left="0",Ne.style.top="0",Ne.style.right="auto",Ne.style.bottom="auto",Ne.style.overflow="hidden";var ct;if(Array.isArray(A))ct={x:A[0],y:A[1],width:0,height:0};else{var ht,Ht,bn=A.getBoundingClientRect();bn.x=(ht=bn.x)!==null&&ht!==void 0?ht:bn.left,bn.y=(Ht=bn.y)!==null&&Ht!==void 0?Ht:bn.top,ct={x:bn.x,y:bn.y,width:bn.width,height:bn.height}}var Ft=Ne.getBoundingClientRect();Ft.x=(de=Ft.x)!==null&&de!==void 0?de:Ft.left,Ft.y=(Te=Ft.y)!==null&&Te!==void 0?Te:Ft.top;var kn=ut.documentElement,Wn=kn.clientWidth,rn=kn.clientHeight,yn=kn.scrollWidth,Rn=kn.scrollHeight,wn=kn.scrollTop,Pn=kn.scrollLeft,_n=Ft.height,Nn=Ft.width,Tn=ct.height,fn=ct.width,q={left:0,top:0,right:Wn,bottom:rn},Y={left:-Pn,top:-wn,right:yn-Pn,bottom:Rn-wn},$e=qt.htmlRegion,Le="visible",Je="visibleFirst";$e!=="scroll"&&$e!==Je&&($e=Le);var Qe=$e===Je,st=h(Y,ne),nt=h(q,ne),je=$e===Le?nt:st,Ce=Qe?nt:je;Ne.style.left="auto",Ne.style.top="auto",Ne.style.right="0",Ne.style.bottom="0";var Ie=Ne.getBoundingClientRect();Ne.style.left=rt,Ne.style.top=It,Ne.style.right=Qt,Ne.style.bottom=Ut,Ne.style.overflow=en,(De=Ne.parentElement)===null||De===void 0||De.removeChild(pt);var Ye=n(Math.round(Nn/parseFloat(Tt)*1e3)/1e3),ft=n(Math.round(_n/parseFloat(nn)*1e3)/1e3);if(Ye===0||ft===0||(0,G.Sh)(A)&&!(0,x.Z)(A))return;var it=qt.offset,Gt=qt.targetOffset,et=re(Ft,it),Ge=(0,D.Z)(et,2),Q=Ge[0],me=Ge[1],Re=re(ct,Gt),_e=(0,D.Z)(Re,2),Ze=_e[0],xe=_e[1];ct.x-=Ze,ct.y-=xe;var Ke=qt.points||[],He=(0,D.Z)(Ke,2),_t=He[0],ot=He[1],bt=he(ot),wt=he(_t),At=we(ct,bt),Bt=we(Ft,wt),Mt=(0,N.Z)({},qt),St=At.x-Bt.x+Q,Rt=At.y-Bt.y+me,Xt=Bn(St,Rt),qe=Bn(St,Rt,nt),Ve=we(ct,["t","l"]),at=we(Ft,["t","l"]),an=we(ct,["b","r"]),dn=we(Ft,["b","r"]),xn=qt.overflow||{},On=xn.adjustX,F=xn.adjustY,se=xn.shiftX,ie=xn.shiftY,oe=function(dt){return typeof dt=="boolean"?dt:dt>=0},ge,fe,be,Ee;Lt();var Oe=oe(F),ae=wt[0]===bt[0];if(Oe&&wt[0]==="t"&&(fe>Ce.bottom||ee.current.bt)){var ue=Rt;ae?ue-=_n-Tn:ue=Ve.y-dn.y-me;var ye=Bn(St,ue),Ae=Bn(St,ue,nt);ye>Xt||ye===Xt&&(!Qe||Ae>=qe)?(ee.current.bt=!0,Rt=ue,me=-me,Mt.points=[Me(wt,0),Me(bt,0)]):ee.current.bt=!1}if(Oe&&wt[0]==="b"&&(ge<Ce.top||ee.current.tb)){var Pe=Rt;ae?Pe+=_n-Tn:Pe=an.y-at.y-me;var tt=Bn(St,Pe),Dt=Bn(St,Pe,nt);tt>Xt||tt===Xt&&(!Qe||Dt>=qe)?(ee.current.tb=!0,Rt=Pe,me=-me,Mt.points=[Me(wt,0),Me(bt,0)]):ee.current.tb=!1}var Ct=oe(On),zt=wt[1]===bt[1];if(Ct&&wt[1]==="l"&&(Ee>Ce.right||ee.current.rl)){var Pt=St;zt?Pt-=Nn-fn:Pt=Ve.x-dn.x-Q;var jt=Bn(Pt,Rt),on=Bn(Pt,Rt,nt);jt>Xt||jt===Xt&&(!Qe||on>=qe)?(ee.current.rl=!0,St=Pt,Q=-Q,Mt.points=[Me(wt,1),Me(bt,1)]):ee.current.rl=!1}if(Ct&&wt[1]==="r"&&(be<Ce.left||ee.current.lr)){var Nt=St;zt?Nt+=Nn-fn:Nt=an.x-at.x-Q;var ln=Bn(Nt,Rt),tn=Bn(Nt,Rt,nt);ln>Xt||ln===Xt&&(!Qe||tn>=qe)?(ee.current.lr=!0,St=Nt,Q=-Q,Mt.points=[Me(wt,1),Me(bt,1)]):ee.current.lr=!1}Lt();var Jt=se===!0?0:se;typeof Jt=="number"&&(be<nt.left&&(St-=be-nt.left-Q,ct.x+fn<nt.left+Jt&&(St+=ct.x-nt.left+fn-Jt)),Ee>nt.right&&(St-=Ee-nt.right-Q,ct.x>nt.right-Jt&&(St+=ct.x-nt.right+Jt)));var cn=ie===!0?0:ie;typeof cn=="number"&&(ge<nt.top&&(Rt-=ge-nt.top-me,ct.y+Tn<nt.top+cn&&(Rt+=ct.y-nt.top+Tn-cn)),fe>nt.bottom&&(Rt-=fe-nt.bottom-me,ct.y>nt.bottom-cn&&(Rt+=ct.y-nt.bottom+cn)));var mn=Ft.x+St,An=mn+Nn,sn=Ft.y+Rt,hn=sn+_n,$t=ct.x,xt=$t+fn,Vt=ct.y,Wt=Vt+Tn,En=Math.max(mn,$t),pn=Math.min(An,xt),Cn=(En+pn)/2,zn=Cn-mn,Xn=Math.max(sn,Vt),$n=Math.min(hn,Wt),tr=(Xn+$n)/2,rr=tr-sn;c==null||c(H,Mt);var Gn=Ie.right-Ft.x-(St+Ft.width),un=Ie.bottom-Ft.y-(Rt+Ft.height);Ye===1&&(St=Math.round(St),Gn=Math.round(Gn)),ft===1&&(Rt=Math.round(Rt),un=Math.round(un));var In={ready:!0,offsetX:St/Ye,offsetY:Rt/ft,offsetR:Gn/Ye,offsetB:un/ft,arrowX:zn/Ye,arrowY:rr/ft,scaleX:Ye,scaleY:ft,align:Mt};z(In)}}),ze=function(){L.current+=1;var de=L.current;Promise.resolve().then(function(){L.current===de&&pe()})},Be=function(){z(function(de){return(0,N.Z)((0,N.Z)({},de),{},{ready:!1})})};return(0,t.Z)(Be,[te]),(0,t.Z)(function(){M||Be()},[M]),[T.ready,T.offsetX,T.offsetY,T.offsetR,T.offsetB,T.arrowX,T.arrowY,T.scaleX,T.scaleY,T.align,ze]}var Et=l(80702);function ve(M,H,A,te,ce){(0,t.Z)(function(){if(M&&H&&A){let L=function(){te(),ce()};var C=H,c=A,k=y(C),B=y(c),T=S(c),z=new Set([T].concat((0,Et.Z)(k),(0,Et.Z)(B)));return z.forEach(function(ne){ne.addEventListener("scroll",L,{passive:!0})}),T.addEventListener("resize",L,{passive:!0}),te(),function(){z.forEach(function(ne){ne.removeEventListener("scroll",L),T.removeEventListener("resize",L)})}}},[M,H,A])}var We=l(48736);function vt(M,H,A,te,ce,C,c,k){var B=i.useRef(M);B.current=M;var T=i.useRef(!1);i.useEffect(function(){if(H&&te&&(!ce||C)){var L=function(){T.current=!1},ne=function(Te){var De;B.current&&!c(((De=Te.composedPath)===null||De===void 0||(De=De.call(Te))===null||De===void 0?void 0:De[0])||Te.target)&&!T.current&&k(!1)},ee=S(te);ee.addEventListener("pointerdown",L,!0),ee.addEventListener("mousedown",ne,!0),ee.addEventListener("contextmenu",ne,!0);var le=(0,e.A)(A);if(le&&(le.addEventListener("mousedown",ne,!0),le.addEventListener("contextmenu",ne,!0)),0)var pe,ze,Be,ke;return function(){ee.removeEventListener("pointerdown",L,!0),ee.removeEventListener("mousedown",ne,!0),ee.removeEventListener("contextmenu",ne,!0),le&&(le.removeEventListener("mousedown",ne,!0),le.removeEventListener("contextmenu",ne,!0))}}},[H,A,te,ce,C]);function z(){T.current=!0}return z}var Ot=["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"];function lt(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.Z,H=i.forwardRef(function(A,te){var ce=A.prefixCls,C=ce===void 0?"rc-trigger-popup":ce,c=A.children,k=A.action,B=k===void 0?"hover":k,T=A.showAction,z=A.hideAction,L=A.popupVisible,ne=A.defaultPopupVisible,ee=A.onPopupVisibleChange,le=A.afterPopupVisibleChange,pe=A.mouseEnterDelay,ze=A.mouseLeaveDelay,Be=ze===void 0?.1:ze,ke=A.focusDelay,de=A.blurDelay,Te=A.mask,De=A.maskClosable,Ne=De===void 0?!0:De,ut=A.getPopupContainer,kt=A.forceRender,Xe=A.autoDestroy,Tt=A.destroyPopupOnHide,nn=A.popup,mt=A.popupClassName,rt=A.popupStyle,It=A.popupPlacement,Qt=A.builtinPlacements,Ut=Qt===void 0?{}:Qt,en=A.popupAlign,qt=A.zIndex,pt=A.stretch,ct=A.getPopupClassNameFromAlign,ht=A.fresh,Ht=A.alignPoint,bn=A.onPopupClick,Ft=A.onPopupAlign,kn=A.arrow,Wn=A.popupMotion,rn=A.maskMotion,yn=A.popupTransitionName,Rn=A.popupAnimation,wn=A.maskTransitionName,Pn=A.maskAnimation,_n=A.className,Nn=A.getTriggerDOMNode,Tn=(0,W.Z)(A,Ot),fn=Xe||Tt||!1,q=i.useState(!1),Y=(0,D.Z)(q,2),$e=Y[0],Le=Y[1];(0,t.Z)(function(){Le((0,r.Z)())},[]);var Je=i.useRef({}),Qe=i.useContext(X),st=i.useMemo(function(){return{registerSubPopup:function(Yt,Dn){Je.current[Yt]=Dn,Qe==null||Qe.registerSubPopup(Yt,Dn)}}},[Qe]),nt=(0,f.Z)(),je=i.useState(null),Ce=(0,D.Z)(je,2),Ie=Ce[0],Ye=Ce[1],ft=i.useRef(null),it=(0,s.Z)(function(yt){ft.current=yt,(0,G.Sh)(yt)&&Ie!==yt&&Ye(yt),Qe==null||Qe.registerSubPopup(nt,yt)}),Gt=i.useState(null),et=(0,D.Z)(Gt,2),Ge=et[0],Q=et[1],me=i.useRef(null),Re=(0,s.Z)(function(yt){(0,G.Sh)(yt)&&Ge!==yt&&(Q(yt),me.current=yt)}),_e=i.Children.only(c),Ze=(_e==null?void 0:_e.props)||{},xe={},Ke=(0,s.Z)(function(yt){var Yt,Dn,gn=Ge;return(gn==null?void 0:gn.contains(yt))||((Yt=(0,e.A)(gn))===null||Yt===void 0?void 0:Yt.host)===yt||yt===gn||(Ie==null?void 0:Ie.contains(yt))||((Dn=(0,e.A)(Ie))===null||Dn===void 0?void 0:Dn.host)===yt||yt===Ie||Object.values(Je.current).some(function(Zn){return(Zn==null?void 0:Zn.contains(yt))||yt===Zn})}),He=R(C,Wn,Rn,yn),_t=R(C,rn,Pn,wn),ot=i.useState(ne||!1),bt=(0,D.Z)(ot,2),wt=bt[0],At=bt[1],Bt=L!=null?L:wt,Mt=(0,s.Z)(function(yt){L===void 0&&At(yt)});(0,t.Z)(function(){At(L||!1)},[L]);var St=i.useRef(Bt);St.current=Bt;var Rt=i.useRef([]);Rt.current=[];var Xt=(0,s.Z)(function(yt){var Yt;Mt(yt),((Yt=Rt.current[Rt.current.length-1])!==null&&Yt!==void 0?Yt:Bt)!==yt&&(Rt.current.push(yt),ee==null||ee(yt))}),qe=i.useRef(),Ve=function(){clearTimeout(qe.current)},at=function(Yt){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ve(),Dn===0?Xt(Yt):qe.current=setTimeout(function(){Xt(Yt)},Dn*1e3)};i.useEffect(function(){return Ve},[]);var an=i.useState(!1),dn=(0,D.Z)(an,2),xn=dn[0],On=dn[1];(0,t.Z)(function(yt){(!yt||Bt)&&On(!0)},[Bt]);var F=i.useState(null),se=(0,D.Z)(F,2),ie=se[0],oe=se[1],ge=i.useState(null),fe=(0,D.Z)(ge,2),be=fe[0],Ee=fe[1],Oe=function(Yt){Ee([Yt.clientX,Yt.clientY])},ae=Ue(Bt,Ie,Ht&&be!==null?be:Ge,It,Ut,en,Ft),ue=(0,D.Z)(ae,11),ye=ue[0],Ae=ue[1],Pe=ue[2],tt=ue[3],Dt=ue[4],Ct=ue[5],zt=ue[6],Pt=ue[7],jt=ue[8],on=ue[9],Nt=ue[10],ln=Se($e,B,T,z),tn=(0,D.Z)(ln,2),Jt=tn[0],cn=tn[1],mn=Jt.has("click"),An=cn.has("click")||cn.has("contextMenu"),sn=(0,s.Z)(function(){xn||Nt()}),hn=function(){St.current&&Ht&&An&&at(!1)};ve(Bt,Ge,Ie,sn,hn),(0,t.Z)(function(){sn()},[be,It]),(0,t.Z)(function(){Bt&&!(Ut!=null&&Ut[It])&&sn()},[JSON.stringify(en)]);var $t=i.useMemo(function(){var yt=w(Ut,C,on,Ht);return p()(yt,ct==null?void 0:ct(on))},[on,ct,Ut,C,Ht]);i.useImperativeHandle(te,function(){return{nativeElement:me.current,popupElement:ft.current,forceAlign:sn}});var xt=i.useState(0),Vt=(0,D.Z)(xt,2),Wt=Vt[0],En=Vt[1],pn=i.useState(0),Cn=(0,D.Z)(pn,2),zn=Cn[0],Xn=Cn[1],$n=function(){if(pt&&Ge){var Yt=Ge.getBoundingClientRect();En(Yt.width),Xn(Yt.height)}},tr=function(){$n(),sn()},rr=function(Yt){On(!1),Nt(),le==null||le(Yt)},Gn=function(){return new Promise(function(Yt){$n(),oe(function(){return Yt})})};(0,t.Z)(function(){ie&&(Nt(),ie(),oe(null))},[ie]);function un(yt,Yt,Dn,gn){xe[yt]=function(Zn){var lr;gn==null||gn(Zn),at(Yt,Dn);for(var jn=arguments.length,ur=new Array(jn>1?jn-1:0),hr=1;hr<jn;hr++)ur[hr-1]=arguments[hr];(lr=Ze[yt])===null||lr===void 0||lr.call.apply(lr,[Ze,Zn].concat(ur))}}(mn||An)&&(xe.onClick=function(yt){var Yt;St.current&&An?at(!1):!St.current&&mn&&(Oe(yt),at(!0));for(var Dn=arguments.length,gn=new Array(Dn>1?Dn-1:0),Zn=1;Zn<Dn;Zn++)gn[Zn-1]=arguments[Zn];(Yt=Ze.onClick)===null||Yt===void 0||Yt.call.apply(Yt,[Ze,yt].concat(gn))});var In=vt(Bt,An,Ge,Ie,Te,Ne,Ke,at),Bn=Jt.has("hover"),Lt=cn.has("hover"),gt,dt;Bn&&(un("onMouseEnter",!0,pe,function(yt){Oe(yt)}),un("onPointerEnter",!0,pe,function(yt){Oe(yt)}),gt=function(Yt){(Bt||xn)&&Ie!==null&&Ie!==void 0&&Ie.contains(Yt.target)&&at(!0,pe)},Ht&&(xe.onMouseMove=function(yt){var Yt;(Yt=Ze.onMouseMove)===null||Yt===void 0||Yt.call(Ze,yt)})),Lt&&(un("onMouseLeave",!1,Be),un("onPointerLeave",!1,Be),dt=function(){at(!1,Be)}),Jt.has("focus")&&un("onFocus",!0,ke),cn.has("focus")&&un("onBlur",!1,de),Jt.has("contextMenu")&&(xe.onContextMenu=function(yt){var Yt;St.current&&cn.has("contextMenu")?at(!1):(Oe(yt),at(!0)),yt.preventDefault();for(var Dn=arguments.length,gn=new Array(Dn>1?Dn-1:0),Zn=1;Zn<Dn;Zn++)gn[Zn-1]=arguments[Zn];(Yt=Ze.onContextMenu)===null||Yt===void 0||Yt.call.apply(Yt,[Ze,yt].concat(gn))}),_n&&(xe.className=p()(Ze.className,_n));var Zt=(0,N.Z)((0,N.Z)({},Ze),xe),Sn={},Ln=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ln.forEach(function(yt){Tn[yt]&&(Sn[yt]=function(){for(var Yt,Dn=arguments.length,gn=new Array(Dn),Zn=0;Zn<Dn;Zn++)gn[Zn]=arguments[Zn];(Yt=Zt[yt])===null||Yt===void 0||Yt.call.apply(Yt,[Zt].concat(gn)),Tn[yt].apply(Tn,gn)})});var ir=i.cloneElement(_e,(0,N.Z)((0,N.Z)({},Zt),Sn)),Jn={x:Ct,y:zt},ar=kn?(0,N.Z)({},kn!==!0?kn:{}):null;return i.createElement(i.Fragment,null,i.createElement($.Z,{disabled:!Bt,ref:Re,onResize:tr},i.createElement(K,{getTriggerDOMNode:Nn},ir)),i.createElement(X.Provider,{value:st},i.createElement(O,{portal:M,ref:it,prefixCls:C,popup:nn,className:p()(mt,$t),style:rt,target:Ge,onMouseEnter:gt,onMouseLeave:dt,onPointerEnter:gt,zIndex:qt,open:Bt,keepDom:xn,fresh:ht,onClick:bn,onPointerDownCapture:In,mask:Te,motion:He,maskMotion:_t,onVisibleChanged:rr,onPrepare:Gn,forceRender:kt,autoDestroy:fn,getPopupContainer:ut,align:on,arrow:ar,arrowPos:Jn,ready:ye,offsetX:Ae,offsetY:Pe,offsetR:tt,offsetB:Dt,onAlign:sn,stretch:pt,targetWidth:Wt/Pt,targetHeight:zn/jt})))});return H}var Z=lt(J.Z)},8797:function(Kt,Fe,l){"use strict";var N=l(59301),D=l(93314),W=l(99571),J=Object.defineProperty,V=Object.defineProperties,p=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,s=(i,o,m)=>o in i?J(i,o,{enumerable:!0,configurable:!0,writable:!0,value:m}):i[o]=m,f=(i,o)=>{for(var m in o||(o={}))G.call(o,m)&&s(i,m,o[m]);if($)for(var m of $(o))e.call(o,m)&&s(i,m,o[m]);return i},t=(i,o)=>V(i,p(o));const r=({img:i,buttonProps:o={},styles:m={},customText:b,ButtonText:E,ButtonClick:_,Buttonclass:g,ButtonTwo:d,imgStyles:u,loading:O=!1,className:P=""})=>N.createElement("section",{className:`tc animated fadeIn ${P}`,style:f({color:"#999",margin:"100px auto",visibility:O?"hidden":"visible"},m)},N.createElement("img",{src:i||D,style:t(f({},u),{pointerEvents:"none",userSelect:"none"})}),N.createElement("p",{className:"mt20 font14"},b||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),E&&N.createElement(W.ZP,f({className:g,onClick:_},o),E),d&&d);Fe.Z=r},23210:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return g}});var N=l(59301),D={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},W=l(99571),J=l(70557),V=l(23954),p=l(25399),$=l(955),G=l(94941),e=l(8797),s=l(3294),f=l(19381),t=l(59301),r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,b=(d,u,O)=>u in d?r(d,u,{enumerable:!0,configurable:!0,writable:!0,value:O}):d[u]=O,E=(d,u)=>{for(var O in u||(u={}))o.call(u,O)&&b(d,O,u[O]);if(i)for(var O of i(u))m.call(u,O)&&b(d,O,u[O]);return d},_=(d,u,O)=>new Promise((P,K)=>{var j=Se=>{try{U(O.next(Se))}catch(x){K(x)}},X=Se=>{try{U(O.throw(Se))}catch(x){K(x)}},U=Se=>Se.done?P(Se.value):Promise.resolve(Se.value).then(j,X);U((O=O.apply(d,u)).next())}),g=({editOffice:d="view",data:u,theme:O,type:P,filename:K,monacoEditor:j,className:X,style:U,close:Se,onClose:x,hasMask:v,disabledDownload:w,onImgDimensions:R,showNodata:S,recordInfo:y})=>{const[n,a]=(0,N.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[h,I]=(0,N.useState)(""),[re,he]=(0,N.useState)(),we=window.ENV==="build"?"/react/build":"",Me=location.host.startsWith("localhost")?s.Z.PROXY_SERVER:s.Z.API_SERVER,Et=10*(1024*1024),ve=(0,N.useRef)();u!=null&&u.startsWith("/api")&&P!=="txt"&&(u=s.Z.API_SERVER+u);const We=Z=>Z.substring(Z.lastIndexOf("/")+1).split(".").pop();K&&j&&(j.filename=K),(0,N.useEffect)(()=>{var Z,M;const H=(M=(Z=document.cookie)==null?void 0:Z.replace(/\s/g,""))==null?void 0:M.split(";");H==null||H.map(A=>{let te=A.split("=");te[0]==="_educoder_session"&&I(te[1])})},[]),(0,N.useEffect)(()=>{P==="office"&&(u.indexOf("bigfilescdn.")>-1||u.indexOf("bigfiles1")>-1?he({url:u,fileType:We(u),model:u.indexOf("model=edit")?"edit":"view"}):vt())},[P,u]);const vt=()=>_(void 0,null,function*(){console.log("data:",u);let Z=u;u.startsWith("http")||(Z=location.origin+Z);let M=new URL(Z).pathname.split("/").pop();const H=yield(0,G.gJ)({attachment_id:M});H.url=Me+H.url,he(H)}),Ot=()=>{if(u.startsWith("http")||u.startsWith("blob:")){lt();return}(0,$.Sv)(K||"educoder",u,K)},lt=()=>{y&&(0,f.fc)({id:y==null?void 0:y.id,watch_type:1,course_id:y==null?void 0:y.course_id}),(0,$.Nd)(K||"educoder",decodeURIComponent(u))};return t.createElement("div",{style:E({},U||{}),className:`${v&&D.bgBlack} ${P?D.wrp:"hide"}`},Se&&t.createElement("div",{className:D.close,ref:ve},!!R&&t.createElement(p.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ve.current},t.createElement("span",{onClick:()=>{x(),R()}},t.createElement("i",{className:"icon-yulanpizhu"}))),!w&&t.createElement(p.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ve.current},t.createElement("span",{onClick:lt},t.createElement("i",{className:"icon-quxiaozhiding"}))),t.createElement(p.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ve.current},t.createElement("span",{className:"",onClick:x},t.createElement("i",{className:"icon-guanbi1"})))),t.createElement("div",{className:`${D[X]} ${X} ${D.monaco} ${P==="txt"?"show":"hide"}`},P==="txt"&&t.createElement(t.Fragment,null,t.createElement(V.ZP,E({},j)))),P==="audio"&&t.createElement("audio",{src:`${(u==null?void 0:u.indexOf("http://"))>-1||(u==null?void 0:u.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${u}`,autoPlay:!0}),P==="video"&&t.createElement(t.Fragment,null,(u==null?void 0:u.indexOf("http"))>-1?t.createElement("video",{controls:!0,src:`${u}`,autoPlay:!0}):t.createElement("video",{controls:!0,src:`data:video/mp4;base64,${u}`,autoPlay:!0})),P==="office"&&re&&t.createElement("iframe",{src:`${we}/office.html?key=${re.key}&url=${btoa(re.url)}&callbackUrl=${Me+(re.callbackUrl||"")}&fileType=${re.fileType}&title=${re.title||""}&model=${d}&officeServer=${s.Z.ONLYOFFICE}&disabledDownload=${!!w}`}),P==="html"&&t.createElement("iframe",{src:u+"&disposition=inline"}),P==="pdf"&&t.createElement("iframe",{src:`${we}/js/pdfview/index.html?filename=${K||"educoder.pdf"}&url=${encodeURIComponent(u)}&disabledDownload=${!!w}`}),P==="image"&&t.createElement("img",{src:`${(u==null?void 0:u.indexOf("http://"))>-1||(u==null?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,"}${u}`}),(P==="other"||P==="download")&&t.createElement(t.Fragment,null,S?t.createElement(e.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:t.createElement(W.ZP,{icon:t.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ot,disabled:w},"\u4E0B\u8F7D")}):t.createElement(W.ZP,{type:"primary",size:"middle",onClick:Ot,disabled:w},t.createElement(J.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},23954:function(Kt,Fe,l){"use strict";l.d(Fe,{SV:function(){return C},ZP:function(){return ce}});var N=l(59301),D=l(76374);const W={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},J={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},V={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},p={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},$={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var G=l(53184),e=l.n(G),s=Object.defineProperty,f=Object.defineProperties,t=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,m=(c,k,B)=>k in c?s(c,k,{enumerable:!0,configurable:!0,writable:!0,value:B}):c[k]=B,b=(c,k)=>{for(var B in k||(k={}))i.call(k,B)&&m(c,B,k[B]);if(r)for(var B of r(k))o.call(k,B)&&m(c,B,k[B]);return c},E=(c,k)=>f(c,t(k)),_=(c,k,B)=>new Promise((T,z)=>{var L=le=>{try{ee(B.next(le))}catch(pe){z(pe)}},ne=le=>{try{ee(B.throw(le))}catch(pe){z(pe)}},ee=le=>le.done?T(le.value):Promise.resolve(le.value).then(L,ne);ee((B=B.apply(c,k)).next())});const g={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},d=(c,k)=>k.map(B=>({label:B,kind:c.languages.CompletionItemKind.Keyword,insertText:B})),u=c=>Object.keys(g.tables).map(k=>({label:k,kind:c.languages.CompletionItemKind.Variable,insertText:k})),O=(c,k)=>{const B=g.tables[c];return B?B.map(T=>({label:T,kind:k.languages.CompletionItemKind.Field,insertText:T})):[]};function P(c,k,B,T,z){let L=k.getWordUntilPosition(B),ne={startLineNumber:B.lineNumber,endLineNumber:B.lineNumber,startColumn:L.startColumn,endColumn:L.endColumn},ee=T.map(le=>({label:le,kind:c.languages.CompletionItemKind.Keyword,insertText:le,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ne}));return z.map(le=>{ee.push(E(b({},le),{range:ne}))}),ee}var K=c=>{g.languages.map(z=>(c.languages.registerDocumentFormattingEditProvider(z,{provideDocumentFormattingEdits(L,ne,ee){return _(this,null,function*(){const le=e()(L.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:L.getFullModelRange(),text:le}]})}}),z));const k=V.quickKey.map(z=>({label:z.label,kind:c.languages.CompletionItemKind.Method,insertText:z.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet})),B=p.quickKey.map(z=>({label:z.label,kind:c.languages.CompletionItemKind.Method,insertText:z.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet})),T=J.quickKey.map(z=>({label:z.label,kind:c.languages.CompletionItemKind.Method,insertText:z.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet}));c.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(z,L){var ne=z.getWordUntilPosition(L),ee={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},le=z.getLineContent(L.lineNumber).substring(ne.startColumn-2,ne.endColumn);return{suggestions:[...V.keywords.map(pe=>({label:pe,kind:c.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee})),...V.quickKey.map(pe=>({label:pe.label,kind:c.languages.CompletionItemKind.Function,documentation:pe.content,insertText:le.startsWith("#")?pe.content.replace(/#/,""):pe.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee}))]}}}),c.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(z,L){var ne=z.getWordUntilPosition(L),ee={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn};return{suggestions:[...W.keywords.map(le=>({label:le,kind:c.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee}))]}}}),c.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(z,L){var ne=z.getWordUntilPosition(L),ee={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},le=z.getLineContent(L.lineNumber).substring(ne.startColumn-2,ne.endColumn);return{suggestions:[...J.keywords.map(pe=>({label:pe,kind:c.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee})),...J.quickKey.map(pe=>({label:pe.label,kind:c.languages.CompletionItemKind.Function,documentation:pe.content,insertText:le.startsWith("#")?pe.content.replace(/#/,""):pe.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee}))]}}}),c.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(z,L){var ne=z.getWordUntilPosition(L),ee={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},le=z.getLineContent(L.lineNumber).substring(ne.startColumn-2,ne.endColumn);return{suggestions:[...$.keywords.map(pe=>({label:pe,kind:c.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee})),...$.quickKey.map(pe=>({label:pe.label,kind:c.languages.CompletionItemKind.Function,documentation:pe.content,insertText:le.startsWith("#")?pe.content.replace(/#/,""):pe.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee}))]}}}),c.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(z,L){var ne=z.getWordUntilPosition(L),ee={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:ne.startColumn,endColumn:ne.endColumn},le=z.getLineContent(L.lineNumber).substring(ne.startColumn-2,ne.endColumn);return{suggestions:[...p.keywords.map(pe=>({label:pe,kind:c.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee})),...p.quickKey.map(pe=>({label:pe.label,kind:c.languages.CompletionItemKind.Function,documentation:pe.content,insertText:le.startsWith("#")?pe.content.replace(/#/,""):pe.content,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ee}))]}}})};const j="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var X=Object.defineProperty,U=(c,k,B)=>k in c?X(c,k,{enumerable:!0,configurable:!0,writable:!0,value:B}):c[k]=B,Se=(c,k,B)=>U(c,typeof k!="symbol"?k+"":k,B);const x=class ya{constructor(k,B,T){this.placeholder=k,this.editor=B,this.monaco=T,B.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ya.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Se(x,"ID","editor.widget.placeholderHint");var w=x,R=l(96236),S=l(6767),y=l(25399),n=l(89392),a=l(34604),h=l(56102),I=Object.defineProperty,re=Object.defineProperties,he=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Et=(c,k,B)=>k in c?I(c,k,{enumerable:!0,configurable:!0,writable:!0,value:B}):c[k]=B,ve=(c,k)=>{for(var B in k||(k={}))Me.call(k,B)&&Et(c,B,k[B]);if(we)for(var B of we(k))Ue.call(k,B)&&Et(c,B,k[B]);return c},We=(c,k)=>re(c,he(k)),vt=(c,k)=>{var B={};for(var T in c)Me.call(c,T)&&k.indexOf(T)<0&&(B[T]=c[T]);if(c!=null&&we)for(var T of we(c))k.indexOf(T)<0&&Ue.call(c,T)&&(B[T]=c[T]);return B},Ot=(c,k,B)=>new Promise((T,z)=>{var L=le=>{try{ee(B.next(le))}catch(pe){z(pe)}},ne=le=>{try{ee(B.throw(le))}catch(pe){z(pe)}},ee=le=>le.done?T(le.value):Promise.resolve(le.value).then(L,ne);ee((B=B.apply(c,k)).next())});function lt(c){return/^\d+$/.test(c)?`${c}px`:c}function Z(){}let M=!1;const H={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function A(c=[]){let k=c;if(Array.isArray(c)){for(let B=0;B<c.length;B++){let T=H[c[B]];if(T)return T}return k[0]}return H[k]||k}let te=null;var ce=c=>{var k=c,{width:B="100%",height:T="100%",value:z,language:L="javascript",style:ne={},options:ee={},overrideServices:le={},theme:pe="vs-dark",onEditBlur:ze,isCopy:Be=!1,onSave:ke,autoHeight:de=!1,forbidCopy:Te=!1,onChange:De=Z,editorDidMount:Ne=Z,onFocus:ut=Z,onBreakPoint:kt=Z,breakPointValue:Xe=[],filename:Tt="educoder.txt",errorLine:nn,errorContent:mt="",highlightLine:rt,openBreakPoint:It=!1,placeholder:Qt="",showMiniMap:Ut=!0}=k,en=vt(k,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const qt=(0,N.useRef)(),pt=(0,N.useRef)({}),ct=(0,N.useRef)(),ht=(0,N.useRef)(),Ht=(0,N.useRef)([]),bn=(0,N.useRef)(!1),Ft=(0,N.useRef)(),kn=(0,N.useRef)(),Wn=(0,N.useRef)(!1),[rn,yn]=(0,N.useState)(!1);function Rn(){let je;return qt.current&&(je=new D.Z(Ce=>{for(let Ie of Ce)(Ie.target.offsetHeight>0||Ie.target.offsetWidth>0)&&pt.current.instance.layout()}),je.observe(qt.current)),je}function wn(){S.ZP.warning({content:decodeURIComponent(j),key:"monaco-editor-tip"})}const Pn=()=>{let je=pt.current.instance;if(z!=null&&je&&rn){const Ce=je.getModel();Ce&&z!==Ce.getValue()&&(M=!0,Ce.setValue(z),je.layout(),M=!1)}};(0,N.useEffect)(()=>{const je=a.Z.subscribe("formatDocument",Ce=>{var Ie;let Ye=pt.current.instance;(Ie=Ye==null?void 0:Ye.getAction)==null||Ie.call(Ye,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ce=>{De(Ce)},je},[]),(0,N.useEffect)(()=>{var je;let Ce=pt.current.instance;ht.current&&clearTimeout(ht.current),ht.current=setTimeout(()=>{Pn()},500),z&&(z!=null&&z.length)&&((je=Ce==null?void 0:Ce.updateOptions)==null||je.call(Ce,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(z.split(/\r\n|\r|\n/g).length))+3,5)}))},[z,rn,pt.current]),(0,N.useEffect)(()=>{if(nn&&pt.current&&pt.current.instance){let Ce=pt.current.instance;Ce.changeViewZones(function(Ie){var Ye=document.createElement("div");Ye.style.padding="10px 20px",Ye.style.width="calc(100% - 20px)",Ye.className="my-error-line-wrp",Ye.innerHTML=mt,Ie.addZone({afterLineNumber:nn||11,heightInLines:3,domNode:Ye})});var je={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ce.addOverlayWidget(je),Ce.revealPositionInCenter({lineNumber:20,column:1})}},[nn,pt.current,rn]);const _n=(je="",Ce)=>{if(!je||je.trim()==="")return!0;const Ye=pt.current.instance.getModel().getLineTokens(Ce);let ft=!1;for(let it=0;it<2;it++)Ye.getStandardTokenType(it)===1&&(ft=!0);return ft};(0,N.useEffect)(()=>{var je;const Ce=(je=pt.current)==null?void 0:je.instance;if(Ce&&rn&&Te){const Ie=Ce.onDidBlurEditorWidget(()=>{Wn.current=!1}),Ye=Ce.onDidFocusEditorText(()=>{Wn.current=!0});return()=>{Ie.dispose(),Ye.dispose()}}},[pt.current,rn,Te]),(0,N.useEffect)(()=>{var je;if((je=pt.current)!=null&&je.instance&&rn&&It){let Ce=pt.current.instance,Ie=Ce.getModel();if(!Ie)return;(()=>{var xe;let Ke=[],He=[];const _t=Ie.getAllDecorations();for(let bt of _t)bt.options.className==="highlighted-line"&&(Ke.push((xe=bt==null?void 0:bt.range)==null?void 0:xe.startLineNumber),He.push(bt==null?void 0:bt.id));if(rt===Ke[0])return;Ie.deltaDecorations(He,[]);const ot=Ie.getLineCount();rt&&rt<=ot&&(Ce.deltaDecorations([],[{range:new te.Range(rt,1,rt,Ie.getLineMaxColumn(rt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ce.revealLineInCenter(rt))})();const ft=(xe=!1)=>{var Ke;let He=[],_t=[];const ot=Ie.getAllDecorations();for(let bt of ot)bt.options.linesDecorationsClassName==="breakpoints-select"&&(He.push((Ke=bt==null?void 0:bt.range)==null?void 0:Ke.startLineNumber),_t.push(bt==null?void 0:bt.id));if(xe)return{lines:He,ids:_t};kt(He)},it=xe=>Ot(void 0,null,function*(){let Ke={range:new te.Range(xe,1,xe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ie.deltaDecorations([],[Ke]),ft()}),Gt=xe=>Ot(void 0,null,function*(){let Ke=[];const He=Ce.getLineDecorations(xe);for(let _t of He)_t.options.linesDecorationsClassName==="breakpoints-select"&&Ke.push(_t.id);yield Ie.deltaDecorations(Ke,[]),ft()}),et=xe=>{let Ke=Ce.getLineDecorations(xe);for(let He of Ke)if(He.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,n.isEqual)(Xe,ft(!0).lines)){Ie.deltaDecorations(ft(!0).ids,[]);const xe=Xe.map(Ke=>({range:new te.Range(Ke,1,Ke,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ie.deltaDecorations([],xe)}const Ge=Ce.onDidChangeModelContent(xe=>{let Ke=Ce.getPosition();if(Ke){let He=Ke.lineNumber;clearTimeout(kn.current),kn.current=setTimeout(()=>{_n(Ie.getLineContent(He),He)?Gt(He):et(He)?(Gt(He),it(He)):ft()},100)}}),Q=Ce.onMouseDown(xe=>{var Ke,He,_t;if(xe.target.detail&&((_t=(He=(Ke=xe.target)==null?void 0:Ke.element)==null?void 0:He.className)!=null&&_t.includes("line-numbers"))){let ot=xe.target.position.lineNumber;if(_n(Ie.getLineContent(ot),ot))return;et(ot)?Gt(ot):it(ot)}}),me=xe=>{let Ke={range:new te.Range(xe,1,xe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ht.current=Ce.deltaDecorations(Ht.current,[Ke])},Re=()=>{Ht.current=Ce.deltaDecorations(Ht.current,[])},_e=Ce.onMouseMove(xe=>{var Ke,He,_t;if(Re(),xe.target.detail&&((_t=(He=(Ke=xe.target)==null?void 0:Ke.element)==null?void 0:He.className)!=null&&_t.includes("line-numbers"))){let ot=xe.target.position.lineNumber;if(_n(Ie.getLineContent(ot),ot))return;me(ot)}}),Ze=Ce.onMouseLeave(()=>{Re()});return()=>{Ge.dispose(),Q.dispose(),_e.dispose(),Ze.dispose()}}},[pt.current,rn,Xe,rt,It,L]),(0,N.useEffect)(()=>{var je;(je=pt.current)!=null&&je.instance&&It&&pt.current.instance.setPosition({lineNumber:0,column:0})},[rt]);function Nn(){let je=pt.current.instance;if(je){const Ce=je.getSelection(),Ie=pt.current.pastePos||{},Ye=new te.Range(Ie.startLineNumber||Ce.endLineNumber,Ie.startColumn||Ce.endColumn,Ie.endLineNumber||Ce.endLineNumber,Ie.endColumn||Ce.endColumn);setTimeout(()=>{je.executeEdits("",[{range:Ye,text:""}])},300)}}function Tn(je){(window.navigator.platform.match("Mac")?je.metaKey:je.ctrlKey)&&je.keyCode==83&&(je.preventDefault(),ke())}const fn=()=>{if(de&&pt.current.instance){const je=pt.current.instance.getContentHeight();st(je<T?T:je)}else st(T)};function q(je){var Ce=document.createEvent("MouseEvents");Ce.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),je.dispatchEvent(Ce)}const Y=je=>{if(!Wn.current)return;const{keyCode:Ce,ctrlKey:Ie,metaKey:Ye,target:ft,type:it}=je;return(it==="paste"||(Ce===67||Ce===86)&&(Ye||Ie))&&ft.nodeName==="TEXTAREA"&&(wn(),je.preventDefault()),!1};function $e(je,Ce){var Ie=window.URL||window.webkitURL||window,Ye=new Blob([Ce]),ft=document.createElementNS("http://www.w3.org/1999/xhtml","a");ft.href=Ie.createObjectURL(Ye),ft.download=je,q(ft)}(0,N.useEffect)(()=>{fn()},[fn]),(0,N.useEffect)(()=>{qt.current&&!rn&&Promise.all([l.e(8909),l.e(3267)]).then(l.bind(l,71448)).then(je=>{try{te=je,pt.current.instance=te.editor.create(qt.current,{value:z,language:A(L),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ut||!1}},le);const Ce=pt.current.instance;let ft=[...R.BH._menuItems].find(Ge=>Ge[0]._debugName=="EditorContext")[1],it=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Gt=(Ge,Q)=>{var me,Re;let _e=Ge._first;do Q.includes((Re=(me=_e.element)==null?void 0:me.command)==null?void 0:Re.id)&&Ge._remove(_e);while(_e=_e.next)};if(Ne(Ce,te),setTimeout(()=>{fn(),pt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{$e(Tt||"educoder.txt",Ce.getValue())}})},500),pt.current.subscription=Ce.onDidChangeModelContent(Ge=>{bn.current?clearTimeout(Ft.current):(fn(),De(Ce.getValue(),Ge)),Ft.current=setTimeout(()=>{bn.current=!1},500)}),window.Monaco||K(te,A(L)),Te&&(Gt(ft,it),qt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Y),window.removeEventListener("paste",Y),window.addEventListener("keydown",Y),window.addEventListener("paste",Y)),window.Monaco=te,ze&&Ce.onDidBlurEditorWidget(()=>{ze(Ce.getValue())}),ut&&Ce.onDidFocusEditorText(()=>{ut(Ce.getValue())}),Te)try{Ce.onDidPaste(Ge=>{const Q=Ce.getSelection(),me=pt.current.pastePos||{},Re=new te.Range(me.startLineNumber||Q.endLineNumber,me.startColumn||Q.endColumn,me.endLineNumber||Q.endLineNumber,me.endColumn||Q.endColumn);Ce.executeEdits("",[{range:Ge.range,text:""}])})}catch(Ge){}let et=Rn();return Qt&&typeof Qt=="string"&&new w(Qt,Ce,te),yn(!0),()=>{const Ge=pt.current.instance;Ge.dispose();const Q=Ge.getModel();Q&&Q.dispose(),pt.current.subscription&&pt.current.subscription.dispose(),et.unobserve(qt.current)}}catch(Ce){}})},[]),(0,N.useEffect)(()=>{if(pt.current.instance&&rn)return document.addEventListener("keydown",Tn,!1),()=>{document.removeEventListener("keydown",Tn)}},[ke,rn]),(0,N.useEffect)(()=>{let je=pt.current.instance;if(je&&rn){let Ce=A(L);te.editor.setModelLanguage(je.getModel(),Ce)}},[L,rn]),(0,N.useEffect)(()=>{pt.current.instance&&rn&&te.editor.setTheme(pe)},[pe,rn]),(0,N.useEffect)(()=>{let je=pt.current.instance;ct.current=ee,je&&rn&&(je.updateOptions(ve({},ee)),setTimeout(()=>{je.getModel().updateOptions(ve({},ee))},200))},[JSON.stringify(ee),rn]),(0,N.useEffect)(()=>{let je=pt.current.instance;je&&rn&&je.layout()},[B,T,rn]);const[Le,Je]=(0,N.useState)(lt(B)),[Qe,st]=(0,N.useState)(lt(T)),nt=We(ve({},ne),{width:Le,height:Qe,position:"relative"});return N.createElement("div",{className:"my-monaco-editor",ref:qt,style:nt},Be&&N.createElement(h.CopyToClipboard,{text:z,onCopy:()=>S.ZP.success("\u590D\u5236\u6210\u529F")},N.createElement(y.Z,{title:"\u590D\u5236\u4EE3\u7801"},N.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},N.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function C({width:c="100%",height:k="100%",original:B,modified:T,language:z,options:L={}}){const ne=(0,N.useRef)(),[ee,le]=(0,N.useState)(null);function pe(de){let Te;return ne.current&&(Te=new D.Z(De=>{for(let Ne of De)(Ne.target.offsetHeight>0||Ne.target.offsetWidth>0)&&de.layout()}),Te.observe(ne.current)),Te}(0,N.useEffect)(()=>(ne.current&&Promise.all([l.e(8909),l.e(9404)]).then(l.bind(l,2550)).then(de=>{te=de;const Te=te.editor.createDiffEditor(ne.current,We(ve({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},L),{wordWrap:!0}));le(Te);let De=pe(Te);return()=>{Te.dispose();const Ne=Te.getModel();Ne&&Ne.dispose(),De.unobserve(ne.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,N.useEffect)(()=>{ee&&ee.setModel({original:te.editor.createModel(B,z),modified:te.editor.createModel(T,z)})},[B,T,z,ee]);const ze=lt(c),Be=lt(k),ke={width:ze,height:Be};return N.createElement("div",{className:"my-diff-editor",ref:ne,style:ke})}},23921:function(Kt,Fe,l){"use strict";l.r(Fe),l.d(Fe,{default:function(){return R}});var N=l(59301),D={flex_box_center:"flex_box_center___n3nXI",flex_space_between:"flex_space_between___SVr_u",flex_box_vertical_center:"flex_box_vertical_center___nGcce",flex_box_center_end:"flex_box_center_end___kaizF",flex_box_column:"flex_box_column___sMn1m",wrap:"wrap___LP3mu",title:"title___BPtTv",control:"control___zxfZc",label:"label___lVocU",tagWrap:"tagWrap___Wvbu8",tag:"tag___QaDfC",button:"button___z4kBY",customTable:"customTable___ehECY",form:"form___zV9o6",customModal:"customModal___TybkU"},W=l(89070),J=l(99064),V=l(89392),p=l(28284),$=l(62957),G=l(25399),e=l(6767),s=l(37568),f=l(82326),t=l(77736),r=l(99571),i=l(54172),o=l(3294),m=l(94941),b=l(65576),E=l(99309),_=l(78297),g=l(23210),d=Object.defineProperty,u=Object.defineProperties,O=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,X=(S,y,n)=>y in S?d(S,y,{enumerable:!0,configurable:!0,writable:!0,value:n}):S[y]=n,U=(S,y)=>{for(var n in y||(y={}))K.call(y,n)&&X(S,n,y[n]);if(P)for(var n of P(y))j.call(y,n)&&X(S,n,y[n]);return S},Se=(S,y)=>u(S,O(y)),x=(S,y,n)=>new Promise((a,h)=>{var I=we=>{try{he(n.next(we))}catch(Me){h(Me)}},re=we=>{try{he(n.throw(we))}catch(Me){h(Me)}},he=we=>we.done?a(we.value):Promise.resolve(we.value).then(I,re);he((n=n.apply(S,y)).next())});let v=[{id:1,content:"\u4E13\u4E1A\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5206\u89E3\u53CA\u5173\u8054\u8BFE\u7A0B"},{id:2,content:"\u5B66\u751F\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u60C5\u51B5\u8BC4\u4EF7\u4F9D\u636E\u8868"},{id:3,content:"\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u60C5\u51B5\u76F4\u63A5\u8BC4\u4EF7\u7ED3\u679C"},{id:4,content:"\u8BFE\u7A0B\u603B\u7ED3\u62A5\u544A"}];const w=({user:S})=>{var y,n;const a={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,formvalues:{}};let[h,I]=(0,N.useState)(a);const[re,he]=(0,N.useState)(!0),[we,Me]=(0,N.useState)(!1),[Ue,Et]=(0,N.useState)([]),[ve,We]=(0,N.useState)([]),[vt,Ot]=(0,N.useState)([]),[lt]=p.default.useForm(),Z=(0,W.useLocation)(),M=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,[H,A]=(0,N.useState)(!1),[te,ce]=(0,N.useState)(!1),[C,c]=(0,N.useState)([]),[k,B]=(0,N.useState)(""),[T,z]=(0,N.useState)({filename:"",editOffice:"view",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}});(0,N.useEffect)(()=>{var de;(de=S==null?void 0:S.userInfo)!=null&&de.school_id&&ne()},[(y=S==null?void 0:S.userInfo)==null?void 0:y.school_id]);const L=de=>x(void 0,null,function*(){var Te;const De=(0,V.cloneDeep)(de);E.U.setItem((Te=S==null?void 0:S.userInfo)==null?void 0:Te.login,[De==null?void 0:De.ec_major_school_id,De==null?void 0:De.ec_year_id]),he(!0);const Ne=yield(0,J.ZP)(`/api/ec_years/${h.ec_year_id}/ec_docs.json`,{method:"get",params:De});Ne!=null&&Ne.data&&(Ot((Ne==null?void 0:Ne.data)||[]),h.total=Ne==null?void 0:Ne.count,I(U({},h))),he(!1)}),ne=()=>x(void 0,null,function*(){var de,Te,De,Ne,ut,kt,Xe,Tt,nn,mt;const rt=yield(0,J.ZP)(`/api/schools/${(de=S==null?void 0:S.userInfo)==null?void 0:de.school_id}/ec_majors/get_major_list.json`,{method:"get"});if(!((De=(Te=rt==null?void 0:rt.data)==null?void 0:Te[0])!=null&&De.ec_major_school_id)){he(!1),Me(!0);return}const It=E.U.getItem((Ne=S==null?void 0:S.userInfo)==null?void 0:Ne.login),Qt=Number((ut=Z==null?void 0:Z.query)==null?void 0:ut.ec_major_school_id)||It[0]||((Xe=(kt=rt==null?void 0:rt.data)==null?void 0:kt[0])==null?void 0:Xe.ec_major_school_id),Ut=yield(0,J.ZP)(`/api/ec_major_schools/${Qt}/ec_years/get_year_list.json`,{method:"get"});h.ec_major_school_id=Qt,h.ec_year_id=Number((Tt=Z==null?void 0:Z.query)==null?void 0:Tt.ec_year_id)||It[1]||((mt=(nn=Ut==null?void 0:Ut.data)==null?void 0:nn[0])==null?void 0:mt.ec_year_id),le(h.ec_year_id),Et((rt==null?void 0:rt.data)||[]),We((Ut==null?void 0:Ut.data)||[]),I(h),L(h)}),ee=de=>x(void 0,null,function*(){var Te,De;const Ne=yield(0,J.ZP)(`/api/ec_major_schools/${de}/ec_years/get_year_list.json`,{method:"get"});h.ec_major_school_id=de,h.ec_year_id=(De=(Te=Ne==null?void 0:Ne.data)==null?void 0:Te[0])==null?void 0:De.ec_year_id,We((Ne==null?void 0:Ne.data)||[]),I(h),L(h)}),le=de=>x(void 0,null,function*(){const Te=yield(0,J.ZP)(`/api/ec_years/${de}/ec_courses/get_courses.json`,{method:"get"});c((Te==null?void 0:Te.data)||[])}),pe=(de,Te)=>{if(h.page=1,h[Te]=de,Te==="ec_major_school_id"){ee(de);return}Te==="ec_year_id"&&(I(U({},h)),L(h),le(de))},ze=de=>{$.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:()=>x(void 0,null,function*(){const Te=yield(0,J.ZP)(`/api/ec_years/${h.ec_year_id}/ec_docs/${de}.json`,{method:"delete"});(Te==null?void 0:Te.status)===0&&(h.page=1,I(U({},h)),L(h))})})},Be=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:(de,Te,De)=>N.createElement("span",{className:"pl20"},h.per_page*(h.page-1)+De+1)},{title:"\u6587\u6863\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:200,render:de=>de||"-"},{title:"\u751F\u6210\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,width:200,render:de=>de||"-"},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:200,ellipsis:!0,render:de=>de||"-"},{title:"\u64CD\u4F5C",width:120,dataIndex:"id",render:(de,Te)=>N.createElement("span",{style:{display:"inline-flex",transform:"translateY(1px)",width:"80%",color:"#0152D9",justifyContent:"space-between"}},N.createElement(G.Z,{title:"\u4FEE\u6539\u6807\u9898"},N.createElement("i",{style:{cursor:"pointer"},onClick:()=>{var De;let Ne=Te.name.substr(0,(De=Te.name)==null?void 0:De.lastIndexOf("."));if(!Ne.replaceAll(" ","")){e.ZP.info("\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}$.default.confirm({title:"\u91CD\u547D\u540D",icon:!1,content:N.createElement(s.default,{defaultValue:Ne,maxLength:100,onChange:ut=>{Ne=ut.target.value}}),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>x(void 0,null,function*(){let ut=yield(0,J.ZP)(`/api/ec_years/${h==null?void 0:h.ec_year_id}/ec_docs/${de}.json`,{method:"put",body:{ec_year_id:h==null?void 0:h.ec_year_id,id:de,name:Ne}});(ut==null?void 0:ut.status)===0&&(e.ZP.info("\u4FEE\u6539\u6210\u529F"),h.page=1,I(U({},h)),L(h))})})},className:"iconfont icon-xiugaibiaoti"})),N.createElement(G.Z,{title:"\u5728\u7EBF\u7F16\u8F91"},N.createElement("i",{onClick:()=>x(void 0,null,function*(){if(["xlsx","docx","pptx"].includes(Te==null?void 0:Te.type)){const De=yield(0,m.gJ)({attachment_id:Te.attachment_id});window.open(`/office.html?key=${Te.attachment_id}&url=${M+(De==null?void 0:De.url)}&callbackUrl=${M+(De==null?void 0:De.callbackUrl)}&fileType=docx&title=${De==null?void 0:De.title}&model=edit&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=false`)}else{e.ZP.info("\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u7F16\u8F91");return}}),style:{cursor:"pointer"},className:"iconfont icon-bianji10"})),N.createElement(G.Z,{title:"\u4E0B\u8F7D"},N.createElement("i",{style:{cursor:"pointer"},onClick:()=>{(0,_.IM)({name:Te==null?void 0:Te.name,attachment_id:Te==null?void 0:Te.attachment_id})},className:"iconfont icon-xiazai4"})),N.createElement(G.Z,{title:"\u5220\u9664"},N.createElement("i",{style:{cursor:"pointer"},onClick:()=>{ze(de)},className:"iconfont icon-shanchu11"})))}],ke=re||we;return N.createElement("div",{className:D.wrap},N.createElement(b.p,{title:"\u6587\u6863\u751F\u6210",style:{padding:"12px 0 0 20px"}}),N.createElement("div",{className:D.control},N.createElement("div",{className:D.label},"\u8BA4\u8BC1\u4E13\u4E1A"),N.createElement(f.default,{disabled:ke,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:h==null?void 0:h.ec_major_school_id,onChange:de=>pe(de,"ec_major_school_id")},Ue==null?void 0:Ue.map(de=>N.createElement(f.default.Option,{value:de.ec_major_school_id},de.name))),N.createElement("div",{className:D.label},"\u8BA4\u8BC1\u5C4A\u522B"),N.createElement(f.default,{disabled:ke,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:h==null?void 0:h.ec_year_id,onChange:de=>pe(de,"ec_year_id")},ve==null?void 0:ve.map(de=>N.createElement(f.default.Option,{value:de.ec_year_id},de.year))),N.createElement(t.Z,{className:D.button,size:10},N.createElement(r.ZP,{disabled:ke,style:{transition:"0s"},onClick:()=>{A(!0)},type:"primary"},N.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u751F\u6210\u6587\u6863"))),N.createElement(i.default,{className:D.customTable,dataSource:vt,bordered:!1,rowKey:"id",columns:Be,rowClassName:D.row,loading:re,pagination:{pageSize:h.per_page,total:h.total,current:h.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,size:"default",position:["bottomCenter"],showTotal:de=>N.createElement("span",{className:"mr10"},"\u5171",N.createElement("span",{className:"c-orange"},de),"\u6761\u6570\u636E")}}),N.createElement($.default,{title:"\u751F\u6210\u6587\u6863",open:H,onOk:()=>{lt.submit()},okButtonProps:{loading:te},onCancel:()=>{A(!1),lt.setFieldsValue({export_type:"",ec_course_id:""})}},console.log("---",h),N.createElement(p.default,{labelCol:{span:7},wrapperCol:{span:17},form:lt,onValuesChange:de=>{de.export_type&&(h.formvalues=de),I(U({},h))},onFinish:de=>x(void 0,null,function*(){ce(!0);let Te=`/api/ec_years/${h==null?void 0:h.ec_year_id}/ec_docs.json`,De=yield(0,J.ZP)(Te,{method:"post",body:U({ec_year_id:h.ec_year_id},de)});ce(!1),De.status===0&&(e.ZP.info("\u751F\u6210\u6210\u529F"),L(h),lt.setFieldsValue({export_type:"",ec_course_id:""}),A(!1))})},N.createElement(p.default.Item,{label:"\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863",name:"export_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863"}]},N.createElement(f.default,{placeholder:"\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863"},v==null?void 0:v.map((de,Te)=>N.createElement(f.default.Option,{key:Te,value:de==null?void 0:de.id},de==null?void 0:de.content)))),((n=h.formvalues)==null?void 0:n.export_type)===4&&N.createElement(p.default.Item,{label:"\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B",name:"ec_course_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B"}]},N.createElement(f.default,{placeholder:"\u8BF7\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B"},C==null?void 0:C.map((de,Te)=>N.createElement(f.default.Option,{key:Te,value:de==null?void 0:de.id},de==null?void 0:de.name)))))),N.createElement(g.Z,Se(U({},T),{onClose:()=>{z(Se(U({},T),{type:""}))}})))};var R=(0,W.connect)(({user:S})=>({user:S}))(w)},65576:function(Kt,Fe,l){"use strict";l.d(Fe,{p:function(){return J},v:function(){return $}});var N=l(59301),D={panelTitleContainer:"panelTitleContainer___Ypuh_"},J=({title:G,style:e={}})=>N.createElement("div",{className:D.panelTitleContainer,style:e},N.createElement("div",null,G)),V={selectWrapContainer:"selectWrapContainer___qocIH"},$=({title:G,children:e})=>N.createElement("div",{className:V.selectWrapContainer},N.createElement("span",null,G),e)},78297:function(Kt,Fe,l){"use strict";l.d(Fe,{AD:function(){return w},D9:function(){return h},Hp:function(){return O},IM:function(){return re},Iy:function(){return K},KM:function(){return lt},MJ:function(){return P},Ne:function(){return I},ON:function(){return Et},Uj:function(){return vt},VY:function(){return Me},YO:function(){return We},YX:function(){return ve},Zn:function(){return o},_g:function(){return g},_k:function(){return n},c6:function(){return x},cr:function(){return m},eV:function(){return v},fi:function(){return b},gh:function(){return U},hS:function(){return he},iA:function(){return E},j6:function(){return d},je:function(){return y},jj:function(){return u},kS:function(){return Ue},o6:function(){return Se},pO:function(){return Ot},rQ:function(){return R},sA:function(){return X},xm:function(){return a},xo:function(){return we},y8:function(){return S},yd:function(){return _}});var N=l(92365),D=l(89070),W=l(955),J=l(6767),V=l(3294),p=Object.defineProperty,$=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,s=(Z,M,H)=>M in Z?p(Z,M,{enumerable:!0,configurable:!0,writable:!0,value:H}):Z[M]=H,f=(Z,M)=>{for(var H in M||(M={}))G.call(M,H)&&s(Z,H,M[H]);if($)for(var H of $(M))e.call(M,H)&&s(Z,H,M[H]);return Z},t=(Z,M,H)=>new Promise((A,te)=>{var ce=k=>{try{c(H.next(k))}catch(B){te(B)}},C=k=>{try{c(H.throw(k))}catch(B){te(B)}},c=k=>k.done?A(k.value):Promise.resolve(k.value).then(ce,C);c((H=H.apply(Z,M)).next())});const r=()=>{(0,D.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},i=()=>{(0,D.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},o=Z=>t(void 0,null,function*(){r(),(yield(0,N.YR)(f({},Z))).status===0&&(yield(0,W.QH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z.coursesId}/export_couser_info.json`,query:Z}))),i()}),m=Z=>t(void 0,null,function*(){const M=yield(0,N.yS)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_member_act_score`);else{if(M.status===-2)return M;M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_member_act_score`))}}),b=Z=>t(void 0,null,function*(){const M=yield(0,N.W0)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_score`);else{if(M.status===-4)return M;M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_score`))}}),E=Z=>t(void 0,null,function*(){const M=yield(0,N.Nl)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_exercise_and_other`);else{if(M.status===-4)return M;M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_exercise_and_other`))}}),_=Z=>t(void 0,null,function*(){const M=yield(0,N.IU)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/export_star_user`);else{if(M.status===-4)return M;M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/export_star_user`))}}),g=Z=>t(void 0,null,function*(){const M=yield(0,N.td)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_exercise_and_other`);else{if(M.status===-2)return M;if(M.status===-3)(0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_exercise_and_other`);else if(M.status===-4)return M}}),d=Z=>t(void 0,null,function*(){const M=yield(0,N.QX)(f({},Z));if(M.status===0)J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_homework`);else{if(M.status===-4)return M;M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/course_total_homework`))}}),u=(Z,M)=>t(void 0,null,function*(){const H=yield(0,N.o_)(f({},Z));H.status===0?(J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`)):H.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`))}),O=(Z,M)=>t(void 0,null,function*(){const H=yield(0,N.ZL)(f({},Z));H.status===0?(J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`)):H.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`))}),P=(Z,M)=>t(void 0,null,function*(){const H=yield(0,N.vV)(f({},Z));H.status===0?(J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`)):H.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`))}),K=(Z,M)=>t(void 0,null,function*(){const H=yield(0,N.aP)(f({},Z));H.status===0?(J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`)):H.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/${M}`))}),j=Z=>t(void 0,null,function*(){r(),(yield exportCourseWorkListAppendix(f({},Z))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Z.categoryId}/works_list.zip`,query:Z}))),i()}),X=Z=>t(void 0,null,function*(){r(),yield(0,W.QH)("",V.Z.API_SERVER+`/api/polls/${Z.categoryId}/commit_result.xlsx`),i()}),U=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z.coursesId}/attendances/export_xlsx_data.xlsx`,query:Z}))}),Se=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z.coursesId}/video_study_statics.xlsx`,query:Z}))}),x=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z.coursesId}/export_video_study.xlsx`,query:Z}))}),v=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z.coursesId}/export_course_students_info.xlsx`,query:Z}))}),w=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/school_manages/students.xlsx",query:Z}))}),R=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/item_banks/export.xlsx",query:Z}))}),S=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Z}))}),y=Z=>t(void 0,null,function*(){const M=yield(0,N.Uy)(f({},Z));M.status===0?(J.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),D.history.push(`/classrooms/${Z.coursesId}/exportlist/exercise_score,export_exercise_users`)):M.status===-3&&((0,D.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),D.history.push(`/classrooms/${Z.coursesId}/exportlist/exercise_score,export_exercise_users`))}),n=Z=>t(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/export_records/${Z.id}.xlsx`,query:Z}))}),a=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Z}))}),h=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/courses/${Z==null?void 0:Z.coursesId}/${Z.menuKey}_statistic.xlsx?${Z.checkedList.map(M=>`course_group_id[]=${M}`).join("&")}`,query:Z}))}),I=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/ec_years/${Z==null?void 0:Z.ec_year_id}/ec_training_objectives.xlsx`,query:Z}))}),re=Z=>t(void 0,null,function*(){yield(0,W.FH)(Z==null?void 0:Z.name,(0,W.NY)({url:V.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Z}))}),he=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/ec_years/${Z==null?void 0:Z.ec_year_id}/ec_courses.xlsx`,query:Z}))}),we=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/ec_years/${Z==null?void 0:Z.ec_year_id}/ec_graduation_requirements.xlsx`,query:Z}))}),Me=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Z}))}),Ue=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Z}))}),Et=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/examination_banks/${Z.id}.json`,query:Z}))}),ve=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/exercises/${Z.categoryId}.json`,query:Z}))}),We=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/polls/${Z==null?void 0:Z.id}/commit_result.json`,query:Z}))}),vt=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Z}))}),Ot=(Z,M)=>t(void 0,null,function*(){yield(0,W.FH)(M||"",(0,W.NY)({url:V.Z.API_SERVER+`/api/exercises/${Z==null?void 0:Z.exercise_id}/consult_exercise.json`,query:Z}))}),lt=Z=>t(void 0,null,function*(){yield(0,W.FH)("",(0,W.NY)({url:V.Z.API_SERVER+`/api/competitions/${Z==null?void 0:Z.identifier}/competition_commit_records/member_works.xlsx`,query:Z}))})},25769:function(Kt,Fe,l){"use strict";var N=l(98040),D={"text/plain":"Text","text/html":"Url",default:"Text"},W="Copy to clipboard: #{key}, Enter";function J(p){var $=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,$)}function V(p,$){var G,e,s,f,t,r,i=!1;$||($={}),G=$.debug||!1;try{s=N(),f=document.createRange(),t=document.getSelection(),r=document.createElement("span"),r.textContent=p,r.ariaHidden="true",r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(m){if(m.stopPropagation(),$.format)if(m.preventDefault(),typeof m.clipboardData=="undefined"){G&&console.warn("unable to use e.clipboardData"),G&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=D[$.format]||D.default;window.clipboardData.setData(b,p)}else m.clipboardData.clearData(),m.clipboardData.setData($.format,p);$.onCopy&&(m.preventDefault(),$.onCopy(m.clipboardData))}),document.body.appendChild(r),f.selectNodeContents(r),t.addRange(f);var o=document.execCommand("copy");if(!o)throw new Error("copy command was unsuccessful");i=!0}catch(m){G&&console.error("unable to copy using execCommand: ",m),G&&console.warn("trying IE specific stuff");try{window.clipboardData.setData($.format||"text",p),$.onCopy&&$.onCopy(window.clipboardData),i=!0}catch(b){G&&console.error("unable to copy using clipboardData: ",b),G&&console.error("falling back to prompt"),e=J("message"in $?$.message:W),window.prompt(e,p)}}finally{t&&(typeof t.removeRange=="function"?t.removeRange(f):t.removeAllRanges()),r&&document.body.removeChild(r),s()}return i}Kt.exports=V},53184:function(Kt,Fe,l){"use strict";var N,D;function W(J,V,p){var $=function(G,e){return J.js_beautify(G,e)};return $.js=J.js_beautify,$.css=V.css_beautify,$.html=p.html_beautify,$.js_beautify=J.js_beautify,$.css_beautify=V.css_beautify,$.html_beautify=p.html_beautify,$}N=[l(58553),l(87804),l(40998)],D=function(J,V,p){return W(J,V,p)}.apply(Fe,N),D!==void 0&&(Kt.exports=D)},87804:function(Kt,Fe){var l,N;(function(){var D;(function(){"use strict";var J=[,,function(G){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var r=this.__items.length-1;r>=0;r--)if(this.__items[r].match(t))return!0;return!1},e.prototype.set_indent=function(t,r){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var r=t.lastIndexOf(`
|
|
`);r!==-1?this.__character_count=t.length-r:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function s(t,r){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),r=r||"",t.indent_level>0&&(r=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}s.prototype.get_indent_size=function(t,r){var i=this.__base_string_length;return r=r||0,t<0&&(i=0),i+=t*this.__indent_size,i+=r,i},s.prototype.get_indent_string=function(t,r){var i=this.__base_string;return r=r||0,t<0&&(t=0,i=""),r+=t*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},s.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var t=this.__cache.length,r=0,i="";this.__indent_size&&t>=this.__indent_size&&(r=Math.floor(t/this.__indent_size),t-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)};function f(t,r){this.__indent_cache=new s(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}f.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},f.prototype.get_line_number=function(){return this.__lines.length},f.prototype.get_indent_string=function(t,r){return this.__indent_cache.get_indent_string(t,r)},f.prototype.get_indent_size=function(t,r){return this.__indent_cache.get_indent_size(t,r)},f.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},f.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},f.prototype.get_code=function(t){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===`
|
|
`&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return t!==`
|
|
`&&(i=i.replace(/[\n]/g,t)),i},f.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},f.prototype.set_indent=function(t,r){return t=t||0,r=r||0,this.next_line.set_indent(t,r),this.__lines.length>1?(this.current_line.set_indent(t,r),!0):(this.current_line.set_indent(),!1)},f.prototype.add_raw_token=function(t){for(var r=0;r<t.newlines;r++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},f.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},f.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},f.prototype.remove_indent=function(t){for(var r=this.__lines.length;t<r;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},f.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},f.prototype.just_added_newline=function(){return this.current_line.is_empty()},f.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},f.prototype.ensure_empty_line_above=function(t,r){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(t)!==0&&o.item(-1)!==r){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},G.exports.Output=f},,,,function(G){function e(t,r){this.raw_options=s(t,r),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(t,r){var i=this.raw_options[t],o=r||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(o=i.concat()):typeof i=="string"&&(o=i.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,r){var i=this.raw_options[t],o=i===void 0?!!r:!!i;return o},e.prototype._get_characters=function(t,r){var i=this.raw_options[t],o=r||"";return typeof i=="string"&&(o=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},e.prototype._get_number=function(t,r){var i=this.raw_options[t];r=parseInt(r,10),isNaN(r)&&(r=0);var o=parseInt(i,10);return isNaN(o)&&(o=r),o},e.prototype._get_selection=function(t,r,i){var o=this._get_selection_list(t,r,i);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,r,i){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[r[0]],!this._is_valid_selection(i,r))throw new Error("Invalid Default Value!");var o=this._get_array(t,i);if(!this._is_valid_selection(o,r))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,r){return t.length&&r.length&&!t.some(function(i){return r.indexOf(i)===-1})};function s(t,r){var i={};t=f(t);var o;for(o in t)o!==r&&(i[o]=t[o]);if(r&&t[r])for(o in t[r])i[o]=t[r][o];return i}function f(t){var r={},i;for(i in t){var o=i.replace(/-/g,"_");r[o]=t[i]}return r}G.exports.Options=e,G.exports.normalizeOpts=f,G.exports.mergeOpts=s},,function(G){var e=RegExp.prototype.hasOwnProperty("sticky");function s(f){this.__input=f||"",this.__input_length=this.__input.length,this.__position=0}s.prototype.restart=function(){this.__position=0},s.prototype.back=function(){this.__position>0&&(this.__position-=1)},s.prototype.hasNext=function(){return this.__position<this.__input_length},s.prototype.next=function(){var f=null;return this.hasNext()&&(f=this.__input.charAt(this.__position),this.__position+=1),f},s.prototype.peek=function(f){var t=null;return f=f||0,f+=this.__position,f>=0&&f<this.__input_length&&(t=this.__input.charAt(f)),t},s.prototype.__match=function(f,t){f.lastIndex=t;var r=f.exec(this.__input);return r&&!(e&&f.sticky)&&r.index!==t&&(r=null),r},s.prototype.test=function(f,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(f,t):!1},s.prototype.testChar=function(f,t){var r=this.peek(t);return f.lastIndex=0,r!==null&&f.test(r)},s.prototype.match=function(f){var t=this.__match(f,this.__position);return t?this.__position+=t[0].length:t=null,t},s.prototype.read=function(f,t,r){var i="",o;return f&&(o=this.match(f),o&&(i+=o[0])),t&&(o||!f)&&(i+=this.readUntil(t,r)),i},s.prototype.readUntil=function(f,t){var r="",i=this.__position;f.lastIndex=this.__position;var o=f.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,r=this.__input.substring(this.__position,i),this.__position=i,r},s.prototype.readUntilAfter=function(f){return this.readUntil(f,!0)},s.prototype.get_regexp=function(f,t){var r=null,i="g";return t&&e&&(i="y"),typeof f=="string"&&f!==""?r=new RegExp(f,i):f&&(r=new RegExp(f.source,i)),r},s.prototype.get_literal_regexp=function(f){return RegExp(f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},s.prototype.peekUntilAfter=function(f){var t=this.__position,r=this.readUntilAfter(f);return this.__position=t,r},s.prototype.lookBack=function(f){var t=this.__position-1;return t>=f.length&&this.__input.substring(t-f.length,t).toLowerCase()===f},G.exports.InputScanner=s},,,,,function(G){function e(s,f){s=typeof s=="string"?s:s.source,f=typeof f=="string"?f:f.source,this.__directives_block_pattern=new RegExp(s+/ beautify( \w+[:]\w+)+ /.source+f,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(s+/\sbeautify\signore:end\s/.source+f,"g")}e.prototype.get_directives=function(s){if(!s.match(this.__directives_block_pattern))return null;var f={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(s);t;)f[t[1]]=t[2],t=this.__directive_pattern.exec(s);return f},e.prototype.readIgnored=function(s){return s.readUntilAfter(this.__directives_end_ignore_pattern)},G.exports.Directives=e},,function(G,e,s){var f=s(16).Beautifier,t=s(17).Options;function r(i,o){var m=new f(i,o);return m.beautify()}G.exports=r,G.exports.defaultOptions=function(){return new t}},function(G,e,s){var f=s(17).Options,t=s(2).Output,r=s(8).InputScanner,i=s(13).Directives,o=new i(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,b=/\r\n|[\r\n]/g,E=/\s/,_=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function u(O,P){this._source_text=O||"",this._options=new f(P),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}u.prototype.eatString=function(O){var P="";for(this._ch=this._input.next();this._ch;){if(P+=this._ch,this._ch==="\\")P+=this._input.next();else if(O.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return P},u.prototype.eatWhitespace=function(O){for(var P=E.test(this._input.peek()),K=0;E.test(this._input.peek());)this._ch=this._input.next(),O&&this._ch===`
|
|
`&&(K===0||K<this._options.max_preserve_newlines)&&(K++,this._output.add_new_line(!0));return P},u.prototype.foundNestedPseudoClass=function(){for(var O=0,P=1,K=this._input.peek(P);K;){if(K==="{")return!0;if(K==="(")O+=1;else if(K===")"){if(O===0)return!1;O-=1}else if(K===";"||K==="}")return!1;P++,K=this._input.peek(P)}return!1},u.prototype.print_string=function(O){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(O)},u.prototype.preserveSingleSpace=function(O){O&&(this._output.space_before_token=!0)},u.prototype.indent=function(){this._indentLevel++},u.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var O=this._source_text,P=this._options.eol;P==="auto"&&(P=`
|
|
`,O&&m.test(O||"")&&(P=O.match(m)[0])),O=O.replace(b,`
|
|
`);var K=O.match(/^[\t ]*/)[0];this._output=new t(this._options,K),this._input=new r(O),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var j=0,X=!1,U=!1,Se=!1,x=!1,v=!1,w=this._ch,R=!1,S,y,n;S=this._input.read(_),y=S!=="",n=w,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var a=this._input.read(g),h=o.get_directives(a);h&&h.ignore==="start"&&(a+=o.readIgnored(this._input)),this.print_string(a),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(y),this.print_string(this._ch);var I=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);I.match(/[ :]$/)&&(I=this.eatString(": ").replace(/\s+$/,""),this.print_string(I),this._output.space_before_token=!0),j===0&&I.indexOf(":")!==-1&&(U=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(y),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var re=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);re.match(/[ :]$/)&&(re=this.eatString(": ").replace(/\s+$/,""),this.print_string(re),this._output.space_before_token=!0),j===0&&re.indexOf(":")!==-1?(U=!0,this.indent()):re in this.NESTED_AT_RULE?(this._nestedLevel+=1,re in this.CONDITIONAL_GROUP_RULE&&(Se=!0)):j===0&&!U&&(x=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(y),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")U&&(U=!1,this.outdent()),x=!1,Se?(Se=!1,X=this._indentLevel>=this._nestedLevel):X=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&X&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(n==="("?this._output.space_before_token=!1:n!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),n==="{"&&this._output.trim(!0),U&&(this.outdent(),U=!1),this.print_string(this._ch),X=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var he=0;he<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;he++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[he])){R=!0;break}(X||Se)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!x&&j===0?(this.print_string(":"),U||(U=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var we=n==='"'||n==="'";this.preserveSingleSpace(we||y),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")R=!1,j===0?(U&&(this.outdent(),U=!1),x=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),j++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),j&&(j--,this.outdent()));else{var Me=!1;this._input.lookBack("with")&&(Me=!0),this.preserveSingleSpace(y||Me),this.print_string(this._ch),U&&n==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),j++,this.indent())}else if(this._ch===")")j&&(j--,this.outdent()),v&&this._input.peek()===";"&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!U||v)&&j===0&&!x?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!U&&j===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&E.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(y),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),E.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Ue=n==='"'||n==="'";this.preserveSingleSpace(Ue||y),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&R&&this._output.add_new_line()}var Et=this._output.get_code(P);return Et},G.exports.Beautifier=u},function(G,e,s){var f=s(6).Options;function t(r){f.call(this,r,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m<o.length;m++)o[m]!=="expand"?this.brace_style="collapse":this.brace_style=o[m]}t.prototype=new f,G.exports.Options=t}],V={};function p(G){var e=V[G];if(e!==void 0)return e.exports;var s=V[G]={exports:{}};return J[G](s,s.exports,p),s.exports}var $=p(15);D=$})();var W=D;l=[],N=function(){return{css_beautify:W}}.apply(Fe,l),N!==void 0&&(Kt.exports=N)})()},40998:function(Kt,Fe,l){var N,D;(function(){var W;(function(){"use strict";var $=[,,function(f){function t(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var o=new t(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},t.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},t.prototype.has_match=function(o){for(var m=this.__items.length-1;m>=0;m--)if(this.__items[m].match(o))return!0;return!1},t.prototype.set_indent=function(o,m){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=m||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(o){this.__items.push(o);var m=o.lastIndexOf(`
|
|
`);m!==-1?this.__character_count=o.length-m:this.__character_count+=o.length},t.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function r(o,m){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),m=m||"",o.indent_level>0&&(m=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=m,this.__base_string_length=m.length}r.prototype.get_indent_size=function(o,m){var b=this.__base_string_length;return m=m||0,o<0&&(b=0),b+=o*this.__indent_size,b+=m,b},r.prototype.get_indent_string=function(o,m){var b=this.__base_string;return m=m||0,o<0&&(o=0,b=""),m+=o*this.__indent_size,this.__ensure_cache(m),b+=this.__cache[m],b},r.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var o=this.__cache.length,m=0,b="";this.__indent_size&&o>=this.__indent_size&&(m=Math.floor(o/this.__indent_size),o-=m*this.__indent_size,b=new Array(m+1).join(this.__indent_string)),o&&(b+=new Array(o+1).join(" ")),this.__cache.push(b)};function i(o,m){this.__indent_cache=new r(o,m),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(o,m){return this.__indent_cache.get_indent_string(o,m)},i.prototype.get_indent_size=function(o,m){return this.__indent_cache.get_indent_size(o,m)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(o){this.trim(!0);var m=this.current_line.pop();m&&(m[m.length-1]===`
|
|
`&&(m=m.replace(/\n+$/g,"")),this.current_line.push(m)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
`);return o!==`
|
|
`&&(b=b.replace(/[\n]/g,o)),b},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(o,m){return o=o||0,m=m||0,this.next_line.set_indent(o,m),this.__lines.length>1?(this.current_line.set_indent(o,m),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(o){for(var m=0;m<o.newlines;m++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(o){for(var m=this.__lines.length;o<m;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(o,m){for(var b=this.__lines.length-2;b>=0;){var E=this.__lines[b];if(E.is_empty())break;if(E.item(0).indexOf(o)!==0&&E.item(-1)!==m){this.__lines.splice(b+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},f.exports.Output=i},function(f){function t(r,i,o,m){this.type=r,this.text=i,this.comments_before=null,this.newlines=o||0,this.whitespace_before=m||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}f.exports.Token=t},,,function(f){function t(o,m){this.raw_options=r(o,m),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(o,m){var b=this.raw_options[o],E=m||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(E=b.concat()):typeof b=="string"&&(E=b.split(/[^a-zA-Z0-9_\/\-]+/)),E},t.prototype._get_boolean=function(o,m){var b=this.raw_options[o],E=b===void 0?!!m:!!b;return E},t.prototype._get_characters=function(o,m){var b=this.raw_options[o],E=m||"";return typeof b=="string"&&(E=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),E},t.prototype._get_number=function(o,m){var b=this.raw_options[o];m=parseInt(m,10),isNaN(m)&&(m=0);var E=parseInt(b,10);return isNaN(E)&&(E=m),E},t.prototype._get_selection=function(o,m,b){var E=this._get_selection_list(o,m,b);if(E.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
|
`+m+`
|
|
You passed in: '`+this.raw_options[o]+"'");return E[0]},t.prototype._get_selection_list=function(o,m,b){if(!m||m.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[m[0]],!this._is_valid_selection(b,m))throw new Error("Invalid Default Value!");var E=this._get_array(o,b);if(!this._is_valid_selection(E,m))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
|
`+m+`
|
|
You passed in: '`+this.raw_options[o]+"'");return E},t.prototype._is_valid_selection=function(o,m){return o.length&&m.length&&!o.some(function(b){return m.indexOf(b)===-1})};function r(o,m){var b={};o=i(o);var E;for(E in o)E!==m&&(b[E]=o[E]);if(m&&o[m])for(E in o[m])b[E]=o[m][E];return b}function i(o){var m={},b;for(b in o){var E=b.replace(/-/g,"_");m[E]=o[b]}return m}f.exports.Options=t,f.exports.normalizeOpts=i,f.exports.mergeOpts=r},,function(f){var t=RegExp.prototype.hasOwnProperty("sticky");function r(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},r.prototype.peek=function(i){var o=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(o=this.__input.charAt(i)),o},r.prototype.__match=function(i,o){i.lastIndex=o;var m=i.exec(this.__input);return m&&!(t&&i.sticky)&&m.index!==o&&(m=null),m},r.prototype.test=function(i,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(i,o):!1},r.prototype.testChar=function(i,o){var m=this.peek(o);return i.lastIndex=0,m!==null&&i.test(m)},r.prototype.match=function(i){var o=this.__match(i,this.__position);return o?this.__position+=o[0].length:o=null,o},r.prototype.read=function(i,o,m){var b="",E;return i&&(E=this.match(i),E&&(b+=E[0])),o&&(E||!i)&&(b+=this.readUntil(o,m)),b},r.prototype.readUntil=function(i,o){var m="",b=this.__position;i.lastIndex=this.__position;var E=i.exec(this.__input);return E?(b=E.index,o&&(b+=E[0].length)):b=this.__input_length,m=this.__input.substring(this.__position,b),this.__position=b,m},r.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},r.prototype.get_regexp=function(i,o){var m=null,b="g";return o&&t&&(b="y"),typeof i=="string"&&i!==""?m=new RegExp(i,b):i&&(m=new RegExp(i.source,b)),m},r.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(i){var o=this.__position,m=this.readUntilAfter(i);return this.__position=o,m},r.prototype.lookBack=function(i){var o=this.__position-1;return o>=i.length&&this.__input.substring(o-i.length,o).toLowerCase()===i},f.exports.InputScanner=r},function(f,t,r){var i=r(8).InputScanner,o=r(3).Token,m=r(10).TokenStream,b=r(11).WhitespacePattern,E={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},_=function(g,d){this._input=new i(g),this._options=d||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};_.prototype.tokenize=function(){this._input.restart(),this.__tokens=new m,this._reset();for(var g,d=new o(E.START,""),u=null,O=[],P=new m;d.type!==E.EOF;){for(g=this._get_next_token(d,u);this._is_comment(g);)P.add(g),g=this._get_next_token(d,u);P.isEmpty()||(g.comments_before=P,P=new m),g.parent=u,this._is_opening(g)?(O.push(u),u=g):u&&this._is_closing(g,u)&&(g.opened=u,u.closed=g,u=O.pop(),g.parent=u),g.previous=d,d.next=g,this.__tokens.add(g),d=g}return this.__tokens},_.prototype._is_first_token=function(){return this.__tokens.isEmpty()},_.prototype._reset=function(){},_.prototype._get_next_token=function(g,d){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(E.RAW,u):this._create_token(E.EOF,"")},_.prototype._is_comment=function(g){return!1},_.prototype._is_opening=function(g){return!1},_.prototype._is_closing=function(g,d){return!1},_.prototype._create_token=function(g,d){var u=new o(g,d,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},_.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},f.exports.Tokenizer=_,f.exports.TOKEN=E},function(f){function t(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},t.prototype.peek=function(r){var i=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(i=this.__tokens[r]),i},t.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},f.exports.TokenStream=t},function(f,t,r){var i=r(12).Pattern;function o(m,b){i.call(this,m,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new i,o.prototype.__set_whitespace_patterns=function(m,b){m+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+m+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var m=this._input.read(this._match_pattern);if(m===" ")this.whitespace_before_token=" ";else if(m){var b=this.__split(this._newline_regexp,m);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return m},o.prototype.matching=function(m,b){var E=this._create();return E.__set_whitespace_patterns(m,b),E._update(),E},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(m,b){m.lastIndex=0;for(var E=0,_=[],g=m.exec(b);g;)_.push(b.substring(E,g.index)),E=g.index+g[0].length,g=m.exec(b);return E<b.length?_.push(b.substring(E,b.length)):_.push(""),_},f.exports.WhitespacePattern=o},function(f){function t(r,i){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}t.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(r){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(r),i._update(),i},t.prototype.until=function(r){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(r),i._update(),i},t.prototype.starting_with=function(r){var i=this._create();return i._starting_pattern=this._input.get_regexp(r,!0),i._update(),i},t.prototype.matching=function(r){var i=this._create();return i._match_pattern=this._input.get_regexp(r,!0),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},f.exports.Pattern=t},function(f){function t(r,i){r=typeof r=="string"?r:r.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+i,"g")}t.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(r);o;)i[o[1]]=o[2],o=this.__directive_pattern.exec(r);return i},t.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},f.exports.Directives=t},function(f,t,r){var i=r(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function m(b,E){i.call(this,b,E),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),E&&(this.__template_pattern=this._input.get_regexp(E.__template_pattern),this._excluded=Object.assign(this._excluded,E._excluded),this._disabled=Object.assign(this._disabled,E._disabled));var _=new i(b);this.__patterns={handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:_.starting_with(/{{{/).until_after(/}}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),php:_.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:_.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:_.starting_with(/{%/).until_after(/%}/),django_value:_.starting_with(/{{/).until_after(/}}/),django_comment:_.starting_with(/{#/).until_after(/#}/),smarty:_.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:_.starting_with(/{\*/).until_after(/\*}/),smarty_literal:_.starting_with(/{literal}/).until_after(/{\/literal}/)}}m.prototype=new i,m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){this.__set_templated_pattern()},m.prototype.disable=function(b){var E=this._create();return E._disabled[b]=!0,E._update(),E},m.prototype.read_options=function(b){var E=this._create();for(var _ in o)E._disabled[_]=b.templating.indexOf(_)===-1;return E._update(),E},m.prototype.exclude=function(b){var E=this._create();return E._excluded[b]=!0,E._update(),E},m.prototype.read=function(){var b="";this._match_pattern?b=this._input.read(this._starting_pattern):b=this._input.read(this._starting_pattern,this.__template_pattern);for(var E=this._read_template();E;)this._match_pattern?E+=this._input.read(this._match_pattern):E+=this._input.readUntil(this.__template_pattern),b+=E,E=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},m.prototype.__set_templated_pattern=function(){var b=[];this._disabled.php||b.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||b.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(b.push(this.__patterns.django._starting_pattern.source),b.push(this.__patterns.django_value._starting_pattern.source),b.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||b.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&b.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+b.join("|")+")")},m.prototype._read_template=function(){var b="",E=this._input.peek();if(E==="<"){var _=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&_==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&_==="%"&&(b=b||this.__patterns.erb.read())}else E==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(b=b||this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars_unescaped.read(),b=b||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(b=b||this.__patterns.django_value.read()),this._excluded.django||(b=b||this.__patterns.django_comment.read(),b=b||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(b=b||this.__patterns.smarty_comment.read(),b=b||this.__patterns.smarty_literal.read(),b=b||this.__patterns.smarty.read()));return b},f.exports.TemplatablePattern=m},,,,function(f,t,r){var i=r(19).Beautifier,o=r(20).Options;function m(b,E,_,g){var d=new i(b,E,_,g);return d.beautify()}f.exports=m,f.exports.defaultOptions=function(){return new o}},function(f,t,r){var i=r(20).Options,o=r(2).Output,m=r(21).Tokenizer,b=r(21).TOKEN,E=/\r\n|[\r\n]/,_=/\r\n|[\r\n]/g,g=function(x,v){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=x.max_preserve_newlines,this.preserve_newlines=x.preserve_newlines,this._output=new o(x,v)};g.prototype.current_line_has_match=function(x){return this._output.current_line.has_match(x)},g.prototype.set_space_before_token=function(x,v){this._output.space_before_token=x,this._output.non_breaking_space=v},g.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},g.prototype.add_raw_token=function(x){this._output.add_raw_token(x)},g.prototype.print_preserved_newlines=function(x){var v=0;x.type!==b.TEXT&&x.previous.type!==b.TEXT&&(v=x.newlines?1:0),this.preserve_newlines&&(v=x.newlines<this.max_preserve_newlines+1?x.newlines:this.max_preserve_newlines+1);for(var w=0;w<v;w++)this.print_newline(w>0);return v!==0},g.prototype.traverse_whitespace=function(x){return x.whitespace_before||x.newlines?(this.print_preserved_newlines(x)||(this._output.space_before_token=!0),!0):!1},g.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},g.prototype.print_newline=function(x){this._output.add_new_line(x)},g.prototype.print_token=function(x){x.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(x.text))},g.prototype.indent=function(){this.indent_level++},g.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},g.prototype.get_full_indent=function(x){return x=this.indent_level+(x||0),x<1?"":this._output.get_indent_string(x)};var d=function(x){for(var v=null,w=x.next;w.type!==b.EOF&&x.closed!==w;){if(w.type===b.ATTRIBUTE&&w.text==="type"){w.next&&w.next.type===b.EQUALS&&w.next.next&&w.next.next.type===b.VALUE&&(v=w.next.next.text);break}w=w.next}return v},u=function(x,v){var w=null,R=null;return v.closed?(x==="script"?w="text/javascript":x==="style"&&(w="text/css"),w=d(v)||w,w.search("text/css")>-1?R="css":w.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":w.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":w.search(/test\/null/)>-1&&(R="null"),R):null};function O(x,v){return v.indexOf(x)!==-1}function P(x,v,w){this.parent=x||null,this.tag=v?v.tag_name:"",this.indent_level=w||0,this.parser_token=v||null}function K(x){this._printer=x,this._current_frame=null}K.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},K.prototype.record_tag=function(x){var v=new P(this._current_frame,x,this._printer.indent_level);this._current_frame=v},K.prototype._try_pop_frame=function(x){var v=null;return x&&(v=x.parser_token,this._printer.indent_level=x.indent_level,this._current_frame=x.parent),v},K.prototype._get_frame=function(x,v){for(var w=this._current_frame;w&&x.indexOf(w.tag)===-1;){if(v&&v.indexOf(w.tag)!==-1){w=null;break}w=w.parent}return w},K.prototype.try_pop=function(x,v){var w=this._get_frame([x],v);return this._try_pop_frame(w)},K.prototype.indent_to_tag=function(x){var v=this._get_frame(x);v&&(this._printer.indent_level=v.indent_level)};function j(x,v,w,R){this._source_text=x||"",v=v||{},this._js_beautify=w,this._css_beautify=R,this._tag_stack=null;var S=new i(v,"html");this._options=S,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}j.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,v=this._options.eol;this._options.eol==="auto"&&(v=`
|
|
`,x&&E.test(x)&&(v=x.match(E)[0])),x=x.replace(_,`
|
|
`);var w=x.match(/^[\t ]*/)[0],R={text:"",type:""},S=new X(this._options),y=new g(this._options,w),n=new m(x,this._options).tokenize();this._tag_stack=new K(y);for(var a=null,h=n.next();h.type!==b.EOF;)h.type===b.TAG_OPEN||h.type===b.COMMENT?(a=this._handle_tag_open(y,h,S,R,n),S=a):h.type===b.ATTRIBUTE||h.type===b.EQUALS||h.type===b.VALUE||h.type===b.TEXT&&!S.tag_complete?a=this._handle_inside_tag(y,h,S,R):h.type===b.TAG_CLOSE?a=this._handle_tag_close(y,h,S):h.type===b.TEXT?a=this._handle_text(y,h,S):h.type===b.CONTROL_FLOW_OPEN?a=this._handle_control_flow_open(y,h):h.type===b.CONTROL_FLOW_CLOSE?a=this._handle_control_flow_close(y,h):y.add_raw_token(h),R=a,h=n.next();var I=y._output.get_code(v);return I},j.prototype._handle_control_flow_open=function(x,v){var w={text:v.text,type:v.type};return x.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),v.newlines?x.print_preserved_newlines(v):x.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),x.print_token(v),x.indent(),w},j.prototype._handle_control_flow_close=function(x,v){var w={text:v.text,type:v.type};return x.deindent(),v.newlines?x.print_preserved_newlines(v):x.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),x.print_token(v),w},j.prototype._handle_tag_close=function(x,v,w){var R={text:v.text,type:v.type};return x.alignment_size=0,w.tag_complete=!0,x.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),w.is_unformatted?x.add_raw_token(v):(w.tag_start_char==="<"&&(x.set_space_before_token(v.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&w.has_wrapped_attrs&&x.print_newline(!1)),x.print_token(v)),w.indent_content&&!(w.is_unformatted||w.is_content_unformatted)&&(x.indent(),w.indent_content=!1),!w.is_inline_element&&!(w.is_unformatted||w.is_content_unformatted)&&x.set_wrap_point(),R},j.prototype._handle_inside_tag=function(x,v,w,R){var S=w.has_wrapped_attrs,y={text:v.text,type:v.type};return x.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),w.is_unformatted?x.add_raw_token(v):w.tag_start_char==="{"&&v.type===b.TEXT?x.print_preserved_newlines(v)?(v.newlines=0,x.add_raw_token(v)):x.print_token(v):(v.type===b.ATTRIBUTE?x.set_space_before_token(!0):(v.type===b.EQUALS||v.type===b.VALUE&&v.previous.type===b.EQUALS)&&x.set_space_before_token(!1),v.type===b.ATTRIBUTE&&w.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(x.traverse_whitespace(v),S=S||v.newlines!==0),this._is_wrap_attributes_force&&w.attr_count>=this._options.wrap_attributes_min_attrs&&(R.type!==b.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(x.print_newline(!1),S=!0)),x.print_token(v),S=S||x.previous_token_wrapped(),w.has_wrapped_attrs=S),y},j.prototype._handle_text=function(x,v,w){var R={text:v.text,type:"TK_CONTENT"};return w.custom_beautifier_name?this._print_custom_beatifier_text(x,v,w):w.is_unformatted||w.is_content_unformatted?x.add_raw_token(v):(x.traverse_whitespace(v),x.print_token(v)),R},j.prototype._print_custom_beatifier_text=function(x,v,w){var R=this;if(v.text!==""){var S=v.text,y,n=1,a="",h="";w.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?y=this._js_beautify:w.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?y=this._css_beautify:w.custom_beautifier_name==="html"&&(y=function(Ue,Et){var ve=new j(Ue,Et,R._js_beautify,R._css_beautify);return ve.beautify()}),this._options.indent_scripts==="keep"?n=0:this._options.indent_scripts==="separate"&&(n=-x.indent_level);var I=x.get_full_indent(n);if(S=S.replace(/\n[ \t]*$/,""),w.custom_beautifier_name!=="html"&&S[0]==="<"&&S.match(/^(<!--|<!\[CDATA\[)/)){var re=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(S);if(!re){x.add_raw_token(v);return}a=I+re[1]+`
|
|
`,S=re[4],re[5]&&(h=I+re[5]),S=S.replace(/\n[ \t]*$/,""),(re[2]||re[3].indexOf(`
|
|
`)!==-1)&&(re=re[3].match(/[ \t]+$/),re&&(v.whitespace_before=re[0]))}if(S)if(y){var he=function(){this.eol=`
|
|
`};he.prototype=this._options.raw_options;var we=new he;S=y(I+S,we)}else{var Me=v.whitespace_before;Me&&(S=S.replace(new RegExp(`
|
|
(`+Me+")?","g"),`
|
|
`)),S=I+S.replace(/\n/g,`
|
|
`+I)}a&&(S?S=a+S+`
|
|
`+h:S=a+h),x.print_newline(!1),S&&(v.text=S,v.whitespace_before="",v.newlines=0,x.add_raw_token(v),x.print_newline(!0))}},j.prototype._handle_tag_open=function(x,v,w,R,S){var y=this._get_tag_open_token(v);if((w.is_unformatted||w.is_content_unformatted)&&!w.is_empty_element&&v.type===b.TAG_OPEN&&!y.is_start_tag?(x.add_raw_token(v),y.start_tag_token=this._tag_stack.try_pop(y.tag_name)):(x.traverse_whitespace(v),this._set_tag_position(x,v,y,w,R),y.is_inline_element||x.set_wrap_point(),x.print_token(v)),y.is_start_tag&&this._is_wrap_attributes_force){var n=0,a;do a=S.peek(n),a.type===b.ATTRIBUTE&&(y.attr_count+=1),n+=1;while(a.type!==b.EOF&&a.type!==b.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(y.alignment_size=v.text.length+1),!y.tag_complete&&!y.is_unformatted&&(x.alignment_size=y.alignment_size),y};var X=function(x,v,w){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!w)this.tag_complete=!0;else{var R;this.tag_start_char=w.text[0],this.text=w.text,this.tag_start_char==="<"?(R=w.text.match(/^<([^\s>]*)/),this.tag_check=R?R[1]:""):(R=w.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=R?R[1]:"",(w.text.startsWith("{{#>")||w.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&w.next!==null?this.tag_check=w.next.text.split(" ")[0]:this.tag_check=w.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),w.type===b.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||w.closed&&w.closed.text==="/>";var S=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(S=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!x.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(S)))}};j.prototype._get_tag_open_token=function(x){var v=new X(this._options,this._tag_stack.get_parser_token(),x);return v.alignment_size=this._options.wrap_attributes_indent_size,v.is_end_tag=v.is_end_tag||O(v.tag_check,this._options.void_elements),v.is_empty_element=v.tag_complete||v.is_start_tag&&v.is_end_tag,v.is_unformatted=!v.tag_complete&&O(v.tag_check,this._options.unformatted),v.is_content_unformatted=!v.is_empty_element&&O(v.tag_check,this._options.content_unformatted),v.is_inline_element=O(v.tag_name,this._options.inline)||this._options.inline_custom_elements&&v.tag_name.includes("-")||v.tag_start_char==="{",v},j.prototype._set_tag_position=function(x,v,w,R,S){if(w.is_empty_element||(w.is_end_tag?w.start_tag_token=this._tag_stack.try_pop(w.tag_name):(this._do_optional_end_element(w)&&(w.is_inline_element||x.print_newline(!1)),this._tag_stack.record_tag(w),(w.tag_name==="script"||w.tag_name==="style")&&!(w.is_unformatted||w.is_content_unformatted)&&(w.custom_beautifier_name=u(w.tag_check,v)))),O(w.tag_check,this._options.extra_liners)&&(x.print_newline(!1),x._output.just_added_blankline()||x.print_newline(!0)),w.is_empty_element){if(w.tag_start_char==="{"&&w.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),w.indent_content=!0;var y=x.current_line_has_match(/{{#if/);y||x.print_newline(!1)}w.tag_name==="!--"&&S.type===b.TAG_CLOSE&&R.is_end_tag&&w.text.indexOf(`
|
|
`)===-1||(w.is_inline_element||w.is_unformatted||x.print_newline(!1),this._calcluate_parent_multiline(x,w))}else if(w.is_end_tag){var n=!1;n=w.start_tag_token&&w.start_tag_token.multiline_content,n=n||!w.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(S.type===b.TAG_CLOSE&&w.start_tag_token===R)&&S.type!=="TK_CONTENT",(w.is_content_unformatted||w.is_unformatted)&&(n=!1),n&&x.print_newline(!1)}else w.indent_content=!w.custom_beautifier_name,w.tag_start_char==="<"&&(w.tag_name==="html"?w.indent_content=this._options.indent_inner_html:w.tag_name==="head"?w.indent_content=this._options.indent_head_inner_html:w.tag_name==="body"&&(w.indent_content=this._options.indent_body_inner_html)),!(w.is_inline_element||w.is_unformatted)&&(S.type!=="TK_CONTENT"||w.is_content_unformatted)&&x.print_newline(!1),this._calcluate_parent_multiline(x,w)},j.prototype._calcluate_parent_multiline=function(x,v){v.parent&&x._output.just_added_newline()&&!((v.is_inline_element||v.is_unformatted)&&v.parent.is_inline_element)&&(v.parent.multiline_content=!0)};var U=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Se=["a","audio","del","ins","map","noscript","video"];j.prototype._do_optional_end_element=function(x){var v=null;if(!(x.is_empty_element||!x.is_start_tag||!x.parent)){if(x.tag_name==="body")v=v||this._tag_stack.try_pop("head");else if(x.tag_name==="li")v=v||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(x.tag_name==="dd"||x.tag_name==="dt")v=v||this._tag_stack.try_pop("dt",["dl"]),v=v||this._tag_stack.try_pop("dd",["dl"]);else if(x.parent.tag_name==="p"&&U.indexOf(x.tag_name)!==-1){var w=x.parent.parent;(!w||Se.indexOf(w.tag_name)===-1)&&(v=v||this._tag_stack.try_pop("p"))}else x.tag_name==="rp"||x.tag_name==="rt"?(v=v||this._tag_stack.try_pop("rt",["ruby","rtc"]),v=v||this._tag_stack.try_pop("rp",["ruby","rtc"])):x.tag_name==="optgroup"?v=v||this._tag_stack.try_pop("optgroup",["select"]):x.tag_name==="option"?v=v||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):x.tag_name==="colgroup"?v=v||this._tag_stack.try_pop("caption",["table"]):x.tag_name==="thead"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"])):x.tag_name==="tbody"||x.tag_name==="tfoot"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("thead",["table"]),v=v||this._tag_stack.try_pop("tbody",["table"])):x.tag_name==="tr"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(x.tag_name==="th"||x.tag_name==="td")&&(v=v||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),v=v||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return x.parent=this._tag_stack.get_parser_token(),v}},f.exports.Beautifier=j},function(f,t,r){var i=r(6).Options;function o(m){i.call(this,m,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new i,f.exports.Options=o},function(f,t,r){var i=r(9).Tokenizer,o=r(9).TOKEN,m=r(13).Directives,b=r(14).TemplatablePattern,E=r(12).Pattern,_={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},g=new m(/<\!--/,/-->/),d=function(u,O){i.call(this,u,O),this._current_tag_name="";var P=new b(this._input).read_options(this._options),K=new E(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),word_control_flow_close_excluded:P.until(/[\n\r\t <}]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),angular_control_flow_start:K.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:K.starting_with(/{{!--/).until_after(/--}}/),handlebars:K.starting_with(/{{/).until_after(/}}/),handlebars_open:K.until(/[\n\r\t }]/),handlebars_raw_close:K.until(/}}/),comment:K.starting_with(/<!--/).until_after(/-->/),cdata:K.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:K.starting_with(/<!\[/).until_after(/]>/),processing:K.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var j=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=K.matching(j).until_after(j)}};d.prototype=new i,d.prototype._is_comment=function(u){return!1},d.prototype._is_opening=function(u){return u.type===_.TAG_OPEN||u.type===_.CONTROL_FLOW_OPEN},d.prototype._is_closing=function(u,O){return u.type===_.TAG_CLOSE&&O&&((u.text===">"||u.text==="/>")&&O.text[0]==="<"||u.text==="}}"&&O.text[0]==="{"&&O.text[1]==="{")||u.type===_.CONTROL_FLOW_CLOSE&&u.text==="}"&&O.text.endsWith("{")},d.prototype._reset=function(){this._current_tag_name=""},d.prototype._get_next_token=function(u,O){var P=null;this._readWhitespace();var K=this._input.peek();return K===null?this._create_token(_.EOF,""):(P=P||this._read_open_handlebars(K,O),P=P||this._read_attribute(K,u,O),P=P||this._read_close(K,O),P=P||this._read_script_and_style(K,u),P=P||this._read_control_flows(K,O),P=P||this._read_raw_content(K,u,O),P=P||this._read_content_word(K,O),P=P||this._read_comment_or_cdata(K),P=P||this._read_processing(K),P=P||this._read_open(K,O),P=P||this._create_token(_.UNKNOWN,this._input.next()),P)},d.prototype._read_comment_or_cdata=function(u){var O=null,P=null,K=null;if(u==="<"){var j=this._input.peek(1);j==="!"&&(P=this.__patterns.comment.read(),P?(K=g.get_directives(P),K&&K.ignore==="start"&&(P+=g.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(O=this._create_token(_.COMMENT,P),O.directives=K)}return O},d.prototype._read_processing=function(u){var O=null,P=null,K=null;if(u==="<"){var j=this._input.peek(1);(j==="!"||j==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(O=this._create_token(_.COMMENT,P),O.directives=K)}return O},d.prototype._read_open=function(u,O){var P=null,K=null;return(!O||O.type===_.CONTROL_FLOW_OPEN)&&u==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),K=this._create_token(_.TAG_OPEN,P)),K},d.prototype._read_open_handlebars=function(u,O){var P=null,K=null;return(!O||O.type===_.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&u==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),K=this._create_token(_.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),K=this._create_token(_.TAG_OPEN,P))),K},d.prototype._read_control_flows=function(u,O){var P="",K=null;if(!this._options.templating.includes("angular"))return K;if(u==="@"){if(P=this.__patterns.angular_control_flow_start.read(),P==="")return K;for(var j=P.endsWith("(")?1:0,X=0;!(P.endsWith("{")&&j===X);){var U=this._input.next();if(U===null)break;U==="("?j++:U===")"&&X++,P+=U}K=this._create_token(_.CONTROL_FLOW_OPEN,P)}else u==="}"&&O&&O.type===_.CONTROL_FLOW_OPEN&&(P=this._input.next(),K=this._create_token(_.CONTROL_FLOW_CLOSE,P));return K},d.prototype._read_close=function(u,O){var P=null,K=null;return O&&O.type===_.TAG_OPEN&&(O.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(P=this._input.next(),u==="/"&&(P+=this._input.next()),K=this._create_token(_.TAG_CLOSE,P)):O.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),K=this._create_token(_.TAG_CLOSE,"}}"))),K},d.prototype._read_attribute=function(u,O,P){var K=null,j="";if(P&&P.text[0]==="<")if(u==="=")K=this._create_token(_.EQUALS,this._input.next());else if(u==='"'||u==="'"){var X=this._input.next();u==='"'?X+=this.__patterns.double_quote.read():X+=this.__patterns.single_quote.read(),K=this._create_token(_.VALUE,X)}else j=this.__patterns.attribute.read(),j&&(O.type===_.EQUALS?K=this._create_token(_.VALUE,j):K=this._create_token(_.ATTRIBUTE,j));return K},d.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},d.prototype._read_raw_content=function(u,O,P){var K="";if(P&&P.text[0]==="{")K=this.__patterns.handlebars_raw_close.read();else if(O.type===_.TAG_CLOSE&&O.opened.text[0]==="<"&&O.text[0]!=="/"){var j=O.opened.text.substr(1).toLowerCase();this._is_content_unformatted(j)&&(K=this._input.readUntil(new RegExp("</"+j+"[\\n\\r\\t ]*?>","ig")))}return K?this._create_token(_.TEXT,K):null},d.prototype._read_script_and_style=function(u,O){if(O.type===_.TAG_CLOSE&&O.opened.text[0]==="<"&&O.text[0]!=="/"){var P=O.opened.text.substr(1).toLowerCase();if(P==="script"||P==="style"){var K=this._read_comment_or_cdata(u);if(K)return K.type=_.TEXT,K;var j=this._input.readUntil(new RegExp("</"+P+"[\\n\\r\\t ]*?>","ig"));if(j)return this._create_token(_.TEXT,j)}}return null},d.prototype._read_content_word=function(u,O){var P="";return this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(P=this.__patterns.unformatted_content_delimiter.read()),P||(P=O&&O.type===_.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),P?this._create_token(_.TEXT,P):null},f.exports.Tokenizer=d,f.exports.TOKEN=_}],G={};function e(f){var t=G[f];if(t!==void 0)return t.exports;var r=G[f]={exports:{}};return $[f](r,r.exports,e),r.exports}var s=e(18);W=s})();var J=W;if(1)N=[l,l(58553),l(87804)],D=function($){var G=l(58553),e=l(87804);return{html_beautify:function(s,f){return J(s,f,G.js_beautify,e.css_beautify)}}}.apply(Fe,N),D!==void 0&&(Kt.exports=D);else var V,p})()},58553:function(Kt,Fe){var l,N;(function(){var D;(function(){"use strict";var J=[function(G,e,s){var f=s(1).Beautifier,t=s(5).Options;function r(i,o){var m=new f(i,o);return m.beautify()}G.exports=r,G.exports.defaultOptions=function(){return new t}},function(G,e,s){var f=s(2).Output,t=s(3).Token,r=s(4),i=s(5).Options,o=s(7).Tokenizer,m=s(7).line_starters,b=s(7).positionable_operators,E=s(7).TOKEN;function _(a,h){return h.indexOf(a)!==-1}function g(a){return a.replace(/^\s+/g,"")}function d(a){for(var h={},I=0;I<a.length;I++)h[a[I].replace(/-/g,"_")]=a[I];return h}function u(a,h){return a&&a.type===E.RESERVED&&a.text===h}function O(a,h){return a&&a.type===E.RESERVED&&_(a.text,h)}var P=["case","return","do","if","throw","else","await","break","continue","async"],K=["before-newline","after-newline","preserve-newline"],j=d(K),X=[j.before_newline,j.preserve_newline],U={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Se(a,h){h.multiline_frame||h.mode===U.ForInitializer||h.mode===U.Conditional||a.remove_indent(h.start_line_index)}function x(a){a=a.replace(r.allLineBreaks,`
|
|
`);for(var h=[],I=a.indexOf(`
|
|
`);I!==-1;)h.push(a.substring(0,I)),a=a.substring(I+1),I=a.indexOf(`
|
|
`);return a.length&&h.push(a),h}function v(a){return a===U.ArrayLiteral}function w(a){return _(a,[U.Expression,U.ForInitializer,U.Conditional])}function R(a,h){for(var I=0;I<a.length;I++){var re=a[I].trim();if(re.charAt(0)!==h)return!1}return!0}function S(a,h){for(var I=0,re=a.length,he;I<re;I++)if(he=a[I],he&&he.indexOf(h)!==0)return!1;return!0}function y(a,h){h=h||{},this._source_text=a||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new i(h)}y.prototype.create_flags=function(a,h){var I=0;a&&(I=a.indentation_level,!this._output.just_added_newline()&&a.line_indent_level>I&&(I=a.line_indent_level));var re={mode:h,parent:a,last_token:a?a.last_token:new t(E.START_BLOCK,""),last_word:a?a.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:I,alignment:0,line_indent_level:a?a.line_indent_level:I,start_line_index:this._output.get_line_number(),ternary_depth:0};return re},y.prototype._reset=function(a){var h=a.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new f(this._options,h),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(U.BlockStatement);var I=new o(a,this._options);return this._tokens=I.tokenize(),a},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var a,h=this._reset(this._source_text),I=this._options.eol;this._options.eol==="auto"&&(I=`
|
|
`,h&&r.lineBreak.test(h||"")&&(I=h.match(r.lineBreak)[0]));for(var re=this._tokens.next();re;)this.handle_token(re),this._last_last_text=this._flags.last_token.text,this._flags.last_token=re,re=this._tokens.next();return a=this._output.get_code(I),a},y.prototype.handle_token=function(a,h){a.type===E.START_EXPR?this.handle_start_expr(a):a.type===E.END_EXPR?this.handle_end_expr(a):a.type===E.START_BLOCK?this.handle_start_block(a):a.type===E.END_BLOCK?this.handle_end_block(a):a.type===E.WORD?this.handle_word(a):a.type===E.RESERVED?this.handle_word(a):a.type===E.SEMICOLON?this.handle_semicolon(a):a.type===E.STRING?this.handle_string(a):a.type===E.EQUALS?this.handle_equals(a):a.type===E.OPERATOR?this.handle_operator(a):a.type===E.COMMA?this.handle_comma(a):a.type===E.BLOCK_COMMENT?this.handle_block_comment(a,h):a.type===E.COMMENT?this.handle_comment(a,h):a.type===E.DOT?this.handle_dot(a):a.type===E.EOF?this.handle_eof(a):a.type===E.UNKNOWN?this.handle_unknown(a,h):this.handle_unknown(a,h)},y.prototype.handle_whitespace_and_comments=function(a,h){var I=a.newlines,re=this._options.keep_array_indentation&&v(this._flags.mode);if(a.comments_before)for(var he=a.comments_before.next();he;)this.handle_whitespace_and_comments(he,h),this.handle_token(he,h),he=a.comments_before.next();if(re)for(var we=0;we<I;we+=1)this.print_newline(we>0,h);else if(this._options.max_preserve_newlines&&I>this._options.max_preserve_newlines&&(I=this._options.max_preserve_newlines),this._options.preserve_newlines&&I>1){this.print_newline(!1,h);for(var Me=1;Me<I;Me+=1)this.print_newline(!0,h)}};var n=["async","break","continue","return","throw","yield"];y.prototype.allow_wrap_or_preserved_newline=function(a,h){if(h=h===void 0?!1:h,!this._output.just_added_newline()){var I=this._options.preserve_newlines&&a.newlines||h,re=_(this._flags.last_token.text,b)||_(a.text,b);if(re){var he=_(this._flags.last_token.text,b)&&_(this._options.operator_position,X)||_(a.text,b);I=I&&he}if(I)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(O(this._flags.last_token,n))return;this._output.set_wrap_point()}}},y.prototype.print_newline=function(a,h){if(!h&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==E.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var I=this._tokens.peek();this._flags.mode===U.Statement&&!(this._flags.if_block&&u(I,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(a)&&(this._flags.multiline_frame=!0)},y.prototype.print_token_line_indentation=function(a){this._output.just_added_newline()&&(this._options.keep_array_indentation&&a.newlines&&(a.text==="["||v(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(a.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},y.prototype.print_token=function(a){if(this._output.raw){this._output.add_raw_token(a);return}if(this._options.comma_first&&a.previous&&a.previous.type===E.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var h=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(h),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(a),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(a),this._output.non_breaking_space=!0,this._output.add_token(a.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},y.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.set_mode=function(a){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,a),this._flags=this.create_flags(this._previous_flags,a),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===U.Statement&&Se(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.start_of_object_property=function(){return this._flags.parent.mode===U.ObjectLiteral&&this._flags.mode===U.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"]))},y.prototype.start_of_statement=function(a){var h=!1;return h=h||O(this._flags.last_token,["var","let","const"])&&a.type===E.WORD,h=h||u(this._flags.last_token,"do"),h=h||!(this._flags.parent.mode===U.ObjectLiteral&&this._flags.mode===U.Statement)&&O(this._flags.last_token,n)&&!a.newlines,h=h||u(this._flags.last_token,"else")&&!(u(a,"if")&&!a.comments_before),h=h||this._flags.last_token.type===E.END_EXPR&&(this._previous_flags.mode===U.ForInitializer||this._previous_flags.mode===U.Conditional),h=h||this._flags.last_token.type===E.WORD&&this._flags.mode===U.BlockStatement&&!this._flags.in_case&&!(a.text==="--"||a.text==="++")&&this._last_last_text!=="function"&&a.type!==E.WORD&&a.type!==E.RESERVED,h=h||this._flags.mode===U.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||O(this._flags.last_token,["get","set"])),h?(this.set_mode(U.Statement),this.indent(),this.handle_whitespace_and_comments(a,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a,O(a,["do","for","if","while"])),!0):!1},y.prototype.handle_start_expr=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a);var h=U.Expression;if(a.text==="["){if(this._flags.last_token.type===E.WORD||this._flags.last_token.text===")"){O(this._flags.last_token,m)&&(this._output.space_before_token=!0),this.print_token(a),this.set_mode(h),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}h=U.ArrayLiteral,v(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),_(this._flags.last_token.type,[E.START_EXPR,E.END_EXPR,E.WORD,E.OPERATOR,E.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===E.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,h=U.ForInitializer):_(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,h=U.Conditional):_(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&a.whitespace_before===""?this._output.space_before_token=!1:(_(this._flags.last_token.text,m)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===E.EQUALS||this._flags.last_token.type===E.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a);else if(this._flags.last_token.type===E.WORD){this._output.space_before_token=!1;var I=this._tokens.peek(-3);if(this._options.space_after_named_function&&I){var re=this._tokens.peek(-4);O(I,["async","function"])||I.text==="*"&&O(re,["async","function"])?this._output.space_before_token=!0:this._flags.mode===U.ObjectLiteral?(I.text==="{"||I.text===","||I.text==="*"&&(re.text==="{"||re.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(a);(this._flags.last_token.type===E.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(_(this._last_last_text,["function","yield"])||this._flags.mode===U.ObjectLiteral&&_(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===E.START_BLOCK?this.print_newline():(this._flags.last_token.type===E.END_EXPR||this._flags.last_token.type===E.START_EXPR||this._flags.last_token.type===E.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===E.COMMA)&&this.allow_wrap_or_preserved_newline(a,a.newlines),this.print_token(a),this.set_mode(h),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},y.prototype.handle_end_expr=function(a){for(;this._flags.mode===U.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(a,a.text==="]"&&v(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===E.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(a),this.restore_mode(),Se(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===U.Conditional&&(this._previous_flags.mode=U.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},y.prototype.handle_start_block=function(a){this.handle_whitespace_and_comments(a);var h=this._tokens.peek(),I=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===E.END_EXPR?(this.set_mode(U.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(U.BlockStatement):I&&(_(I.text,[":",","])&&_(h.type,[E.STRING,E.WORD,E.RESERVED])||_(h.text,["get","set","..."])&&_(I.type,[E.WORD,E.RESERVED]))?_(this._last_last_text,["class","interface"])&&!_(I.text,[":",","])?this.set_mode(U.BlockStatement):this.set_mode(U.ObjectLiteral):this._flags.last_token.type===E.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(U.BlockStatement):_(this._flags.last_token.type,[E.EQUALS,E.START_EXPR,E.COMMA,E.OPERATOR])||O(this._flags.last_token,["return","throw","import","default"])?this.set_mode(U.ObjectLiteral):this.set_mode(U.BlockStatement),this._flags.last_token&&O(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var re=!h.comments_before&&h.text==="}",he=re&&this._flags.last_word==="function"&&this._flags.last_token.type===E.END_EXPR;if(this._options.brace_preserve_inline){var we=0,Me=null;this._flags.inline_frame=!0;do if(we+=1,Me=this._tokens.peek(we-1),Me.newlines){this._flags.inline_frame=!1;break}while(Me.type!==E.EOF&&!(Me.type===E.END_BLOCK&&Me.opened===a))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==E.OPERATOR&&(he||this._flags.last_token.type===E.EQUALS||O(this._flags.last_token,P)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(v(this._previous_flags.mode)&&(this._flags.last_token.type===E.START_EXPR||this._flags.last_token.type===E.COMMA)&&((this._flags.last_token.type===E.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===E.COMMA||this._flags.last_token.type===E.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(a),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==E.OPERATOR&&this._flags.last_token.type!==E.START_EXPR&&(_(this._flags.last_token.type,[E.START_BLOCK,E.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(a),this.indent(),!re&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},y.prototype.handle_end_block=function(a){for(this.handle_whitespace_and_comments(a);this._flags.mode===U.Statement;)this.restore_mode();var h=this._flags.last_token.type===E.START_BLOCK;this._flags.inline_frame&&!h?this._output.space_before_token=!0:this._options.brace_style==="expand"?h||this.print_newline():h||(v(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(a)},y.prototype.handle_word=function(a){if(a.type===E.RESERVED){if(_(a.text,["set","get"])&&this._flags.mode!==U.ObjectLiteral)a.type=E.WORD;else if(a.text==="import"&&_(this._tokens.peek().text,["(","."]))a.type=E.WORD;else if(_(a.text,["as","from"])&&!this._flags.import_block)a.type=E.WORD;else if(this._flags.mode===U.ObjectLiteral){var h=this._tokens.peek();h.text===":"&&(a.type=E.WORD)}}if(this.start_of_statement(a)?O(this._flags.last_token,["var","let","const"])&&a.type===E.WORD&&(this._flags.declaration_statement=!0):a.newlines&&!w(this._flags.mode)&&(this._flags.last_token.type!==E.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==E.EQUALS&&(this._options.preserve_newlines||!O(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(a),this.print_newline()):this.handle_whitespace_and_comments(a),this._flags.do_block&&!this._flags.do_while)if(u(a,"while")){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&u(a,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===U.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&O(a,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(a),this._flags.in_case=!0;return}if((this._flags.last_token.type===E.COMMA||this._flags.last_token.type===E.START_EXPR||this._flags.last_token.type===E.EQUALS||this._flags.last_token.type===E.OPERATOR)&&!this.start_of_object_property()&&!(_(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===U.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(a),u(a,"function")){(_(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(_(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===E.OPERATOR))&&!this._output.just_added_blankline()&&!a.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===E.RESERVED||this._flags.last_token.type===E.WORD?O(this._flags.last_token,["get","set","new","export"])||O(this._flags.last_token,n)?this._output.space_before_token=!0:u(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===E.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(w(this._flags.mode)||v(this._flags.mode))||this.print_newline(),this.print_token(a),this._flags.last_word=a.text;return}var I="NONE";if(this._flags.last_token.type===E.END_BLOCK?this._previous_flags.inline_frame?I="SPACE":O(a,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines?I="NEWLINE":(I="SPACE",this._output.space_before_token=!0):I="NEWLINE":this._flags.last_token.type===E.SEMICOLON&&this._flags.mode===U.BlockStatement?I="NEWLINE":this._flags.last_token.type===E.SEMICOLON&&w(this._flags.mode)?I="SPACE":this._flags.last_token.type===E.STRING?I="NEWLINE":this._flags.last_token.type===E.RESERVED||this._flags.last_token.type===E.WORD||this._flags.last_token.text==="*"&&(_(this._last_last_text,["function","yield"])||this._flags.mode===U.ObjectLiteral&&_(this._last_last_text,["{",","]))?I="SPACE":this._flags.last_token.type===E.START_BLOCK?this._flags.inline_frame?I="SPACE":I="NEWLINE":this._flags.last_token.type===E.END_EXPR&&(this._output.space_before_token=!0,I="NEWLINE"),O(a,m)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?I="SPACE":I="NEWLINE"),O(a,["else","catch","finally"]))if((!(this._flags.last_token.type===E.END_BLOCK&&this._previous_flags.mode===U.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var re=this._output.current_line;re.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else I==="NEWLINE"?O(this._flags.last_token,P)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&O(a,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==E.END_EXPR?(this._flags.last_token.type!==E.START_EXPR||!O(a,["var","let","const"]))&&this._flags.last_token.text!==":"&&(u(a,"if")&&u(a.previous,"else")?this._output.space_before_token=!0:this.print_newline()):O(a,m)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&v(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():I==="SPACE"&&(this._output.space_before_token=!0);a.previous&&(a.previous.type===E.WORD||a.previous.type===E.RESERVED)&&(this._output.space_before_token=!0),this.print_token(a),this._flags.last_word=a.text,a.type===E.RESERVED&&(a.text==="do"?this._flags.do_block=!0:a.text==="if"?this._flags.if_block=!0:a.text==="import"?this._flags.import_block=!0:this._flags.import_block&&u(a,"from")&&(this._flags.import_block=!1))},y.prototype.handle_semicolon=function(a){this.start_of_statement(a)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(a);for(var h=this._tokens.peek();this._flags.mode===U.Statement&&!(this._flags.if_block&&u(h,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(a)},y.prototype.handle_string=function(a){a.text.startsWith("`")&&a.newlines===0&&a.whitespace_before===""&&(a.previous.text===")"||this._flags.last_token.type===E.WORD)||(this.start_of_statement(a)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(a),this._flags.last_token.type===E.RESERVED||this._flags.last_token.type===E.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===E.COMMA||this._flags.last_token.type===E.START_EXPR||this._flags.last_token.type===E.EQUALS||this._flags.last_token.type===E.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a):a.text.startsWith("`")&&this._flags.last_token.type===E.END_EXPR&&(a.previous.text==="]"||a.previous.text===")")&&a.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(a)},y.prototype.handle_equals=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0},y.prototype.handle_comma=function(a){this.handle_whitespace_and_comments(a,!0),this.print_token(a),this._output.space_before_token=!0,this._flags.declaration_statement?(w(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)):this._flags.mode===U.ObjectLiteral||this._flags.mode===U.Statement&&this._flags.parent.mode===U.ObjectLiteral?(this._flags.mode===U.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)},y.prototype.handle_operator=function(a){var h=a.text==="*"&&(O(this._flags.last_token,["function","yield"])||_(this._flags.last_token.type,[E.START_BLOCK,E.COMMA,E.END_BLOCK,E.SEMICOLON])),I=_(a.text,["-","+"])&&(_(this._flags.last_token.type,[E.START_BLOCK,E.START_EXPR,E.EQUALS,E.OPERATOR])||_(this._flags.last_token.text,m)||this._flags.last_token.text===",");if(!this.start_of_statement(a)){var re=!h;this.handle_whitespace_and_comments(a,re)}if(a.text==="*"&&this._flags.last_token.type===E.DOT){this.print_token(a);return}if(a.text==="::"){this.print_token(a);return}if(_(a.text,["-","+"])&&this.start_of_object_property()){this.print_token(a);return}if(this._flags.last_token.type===E.OPERATOR&&_(this._options.operator_position,X)&&this.allow_wrap_or_preserved_newline(a),a.text===":"&&this._flags.in_case){this.print_token(a),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==E.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var he=!0,we=!0,Me=!1;if(a.text===":"?this._flags.ternary_depth===0?he=!1:(this._flags.ternary_depth-=1,Me=!0):a.text==="?"&&(this._flags.ternary_depth+=1),!I&&!h&&this._options.preserve_newlines&&_(a.text,b)){var Ue=a.text===":",Et=Ue&&Me,ve=Ue&&!Me;switch(this._options.operator_position){case j.before_newline:this._output.space_before_token=!ve,this.print_token(a),(!Ue||Et)&&this.allow_wrap_or_preserved_newline(a),this._output.space_before_token=!0;return;case j.after_newline:this._output.space_before_token=!0,!Ue||Et?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(a):this._output.space_before_token=!1,this.print_token(a),this._output.space_before_token=!0;return;case j.preserve_newline:ve||this.allow_wrap_or_preserved_newline(a),he=!(this._output.just_added_newline()||ve),this._output.space_before_token=he,this.print_token(a),this._output.space_before_token=!0;return}}if(h){this.allow_wrap_or_preserved_newline(a),he=!1;var We=this._tokens.peek();we=We&&_(We.type,[E.WORD,E.RESERVED])}else if(a.text==="...")this.allow_wrap_or_preserved_newline(a),he=this._flags.last_token.type===E.START_BLOCK,we=!1;else if(_(a.text,["--","++","!","~"])||I){if((this._flags.last_token.type===E.COMMA||this._flags.last_token.type===E.START_EXPR)&&this.allow_wrap_or_preserved_newline(a),he=!1,we=!1,a.newlines&&(a.text==="--"||a.text==="++"||a.text==="~")){var vt=O(this._flags.last_token,P)&&a.newlines;vt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(vt,!0)}this._flags.last_token.text===";"&&w(this._flags.mode)&&(he=!0),this._flags.last_token.type===E.RESERVED?he=!0:this._flags.last_token.type===E.END_EXPR?he=!(this._flags.last_token.text==="]"&&(a.text==="--"||a.text==="++")):this._flags.last_token.type===E.OPERATOR&&(he=_(a.text,["--","-","++","+"])&&_(this._flags.last_token.text,["--","-","++","+"]),_(a.text,["+","-"])&&_(this._flags.last_token.text,["--","++"])&&(we=!0)),(this._flags.mode===U.BlockStatement&&!this._flags.inline_frame||this._flags.mode===U.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||he,this.print_token(a),this._output.space_before_token=we},y.prototype.handle_block_comment=function(a,h){if(this._output.raw){this._output.add_raw_token(a),a.directives&&a.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(a.directives){this.print_newline(!1,h),this.print_token(a),a.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(a.text)&&!a.newlines){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0;return}else this.print_block_commment(a,h)},y.prototype.print_block_commment=function(a,h){var I=x(a.text),re,he=!1,we=!1,Me=a.whitespace_before,Ue=Me.length;if(this.print_newline(!1,h),this.print_token_line_indentation(a),this._output.add_token(I[0]),this.print_newline(!1,h),I.length>1){for(I=I.slice(1),he=R(I,"*"),we=S(I,Me),he&&(this._flags.alignment=1),re=0;re<I.length;re++)he?(this.print_token_line_indentation(a),this._output.add_token(g(I[re]))):we&&I[re]?(this.print_token_line_indentation(a),this._output.add_token(I[re].substring(Ue))):(this._output.current_line.set_indent(-1),this._output.add_token(I[re])),this.print_newline(!1,h);this._flags.alignment=0}},y.prototype.handle_comment=function(a,h){a.newlines?this.print_newline(!1,h):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(a),this.print_newline(!1,h)},y.prototype.handle_dot=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),O(this._flags.last_token,P)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(a,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(a)},y.prototype.handle_unknown=function(a,h){this.print_token(a),a.text[a.text.length-1]===`
|
|
`&&this.print_newline(!1,h)},y.prototype.handle_eof=function(a){for(;this._flags.mode===U.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a)},G.exports.Beautifier=y},function(G){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var r=this.__items.length-1;r>=0;r--)if(this.__items[r].match(t))return!0;return!1},e.prototype.set_indent=function(t,r){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var r=t.lastIndexOf(`
|
|
`);r!==-1?this.__character_count=t.length-r:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function s(t,r){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),r=r||"",t.indent_level>0&&(r=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}s.prototype.get_indent_size=function(t,r){var i=this.__base_string_length;return r=r||0,t<0&&(i=0),i+=t*this.__indent_size,i+=r,i},s.prototype.get_indent_string=function(t,r){var i=this.__base_string;return r=r||0,t<0&&(t=0,i=""),r+=t*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},s.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var t=this.__cache.length,r=0,i="";this.__indent_size&&t>=this.__indent_size&&(r=Math.floor(t/this.__indent_size),t-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)};function f(t,r){this.__indent_cache=new s(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}f.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},f.prototype.get_line_number=function(){return this.__lines.length},f.prototype.get_indent_string=function(t,r){return this.__indent_cache.get_indent_string(t,r)},f.prototype.get_indent_size=function(t,r){return this.__indent_cache.get_indent_size(t,r)},f.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},f.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},f.prototype.get_code=function(t){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===`
|
|
`&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return t!==`
|
|
`&&(i=i.replace(/[\n]/g,t)),i},f.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},f.prototype.set_indent=function(t,r){return t=t||0,r=r||0,this.next_line.set_indent(t,r),this.__lines.length>1?(this.current_line.set_indent(t,r),!0):(this.current_line.set_indent(),!1)},f.prototype.add_raw_token=function(t){for(var r=0;r<t.newlines;r++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},f.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},f.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},f.prototype.remove_indent=function(t){for(var r=this.__lines.length;t<r;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},f.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},f.prototype.just_added_newline=function(){return this.current_line.is_empty()},f.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},f.prototype.ensure_empty_line_above=function(t,r){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(t)!==0&&o.item(-1)!==r){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},G.exports.Output=f},function(G){function e(s,f,t,r){this.type=s,this.text=f,this.comments_before=null,this.newlines=t||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}G.exports.Token=e},function(G,e){var s="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",f="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",o="(?:"+i+"|["+s+t+"])",m="(?:"+i+"|["+f+t+r+"])*";e.identifier=new RegExp(o+m,"g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:"+i+"|["+f+t+r+"])+");var b=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|
|
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(G,e,s){var f=s(6).Options,t=["before-newline","after-newline","preserve-newline"];function r(i){f.call(this,i,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var m=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var b=0;b<m.length;b++)m[b]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=m[b];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}r.prototype=new f,G.exports.Options=r},function(G){function e(t,r){this.raw_options=s(t,r),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(t,r){var i=this.raw_options[t],o=r||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(o=i.concat()):typeof i=="string"&&(o=i.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,r){var i=this.raw_options[t],o=i===void 0?!!r:!!i;return o},e.prototype._get_characters=function(t,r){var i=this.raw_options[t],o=r||"";return typeof i=="string"&&(o=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},e.prototype._get_number=function(t,r){var i=this.raw_options[t];r=parseInt(r,10),isNaN(r)&&(r=0);var o=parseInt(i,10);return isNaN(o)&&(o=r),o},e.prototype._get_selection=function(t,r,i){var o=this._get_selection_list(t,r,i);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,r,i){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[r[0]],!this._is_valid_selection(i,r))throw new Error("Invalid Default Value!");var o=this._get_array(t,i);if(!this._is_valid_selection(o,r))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,r){return t.length&&r.length&&!t.some(function(i){return r.indexOf(i)===-1})};function s(t,r){var i={};t=f(t);var o;for(o in t)o!==r&&(i[o]=t[o]);if(r&&t[r])for(o in t[r])i[o]=t[r][o];return i}function f(t){var r={},i;for(i in t){var o=i.replace(/-/g,"_");r[o]=t[i]}return r}G.exports.Options=e,G.exports.normalizeOpts=f,G.exports.mergeOpts=s},function(G,e,s){var f=s(8).InputScanner,t=s(9).Tokenizer,r=s(9).TOKEN,i=s(13).Directives,o=s(4),m=s(12).Pattern,b=s(14).TemplatablePattern;function E(R,S){return S.indexOf(R)!==-1}var _={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},g=new i(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,u=/[0-9]/,O=/[^\d\.]/,P=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),K=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";K=K.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),K="\\?\\.(?!\\d) "+K,K=K.replace(/ /g,"|");var j=new RegExp(K),X="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),U=X.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Se=new RegExp("^(?:"+U.join("|")+")$"),x,v=function(R,S){t.call(this,R,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var y=new m(this._input),n=new b(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(o.identifier).matching(o.identifierMatch),number:y.matching(d),punct:y.matching(j),comment:y.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:y.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:y.matching(/<!--/),html_comment_end:y.matching(/-->/),include:y.starting_with(/#include/).until_after(o.lineBreak),shebang:y.starting_with(/#!/).until_after(o.lineBreak),xml:y.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};v.prototype=new t,v.prototype._is_comment=function(R){return R.type===_.COMMENT||R.type===_.BLOCK_COMMENT||R.type===_.UNKNOWN},v.prototype._is_opening=function(R){return R.type===_.START_BLOCK||R.type===_.START_EXPR},v.prototype._is_closing=function(R,S){return(R.type===_.END_BLOCK||R.type===_.END_EXPR)&&S&&(R.text==="]"&&S.text==="["||R.text===")"&&S.text==="("||R.text==="}"&&S.text==="{")},v.prototype._reset=function(){x=!1},v.prototype._get_next_token=function(R,S){var y=null;this._readWhitespace();var n=this._input.peek();return n===null?this._create_token(_.EOF,""):(y=y||this._read_non_javascript(n),y=y||this._read_string(n),y=y||this._read_pair(n,this._input.peek(1)),y=y||this._read_word(R),y=y||this._read_singles(n),y=y||this._read_comment(n),y=y||this._read_regexp(n,R),y=y||this._read_xml(n,R),y=y||this._read_punctuation(),y=y||this._create_token(_.UNKNOWN,this._input.next()),y)},v.prototype._read_word=function(R){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(o.allLineBreaks,`
|
|
`),!(R.type===_.DOT||R.type===_.RESERVED&&(R.text==="set"||R.text==="get"))&&Se.test(S)?(S==="in"||S==="of")&&(R.type===_.WORD||R.type===_.STRING)?this._create_token(_.OPERATOR,S):this._create_token(_.RESERVED,S):this._create_token(_.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(_.WORD,S)},v.prototype._read_singles=function(R){var S=null;return R==="("||R==="["?S=this._create_token(_.START_EXPR,R):R===")"||R==="]"?S=this._create_token(_.END_EXPR,R):R==="{"?S=this._create_token(_.START_BLOCK,R):R==="}"?S=this._create_token(_.END_BLOCK,R):R===";"?S=this._create_token(_.SEMICOLON,R):R==="."&&O.test(this._input.peek(1))?S=this._create_token(_.DOT,R):R===","&&(S=this._create_token(_.COMMA,R)),S&&this._input.next(),S},v.prototype._read_pair=function(R,S){var y=null;return R==="#"&&S==="{"&&(y=this._create_token(_.START_BLOCK,R+S)),y&&(this._input.next(),this._input.next()),y},v.prototype._read_punctuation=function(){var R=this.__patterns.punct.read();if(R!=="")return R==="="?this._create_token(_.EQUALS,R):R==="?."?this._create_token(_.DOT,R):this._create_token(_.OPERATOR,R)},v.prototype._read_non_javascript=function(R){var S="";if(R==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(_.UNKNOWN,S.trim()+`
|
|
`);if(S=this.__patterns.include.read(),S)return this._create_token(_.UNKNOWN,S.trim()+`
|
|
`);R=this._input.next();var y="#";if(this._input.hasNext()&&this._input.testChar(u)){do R=this._input.next(),y+=R;while(this._input.hasNext()&&R!=="#"&&R!=="=");return R==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(y+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(y+="{}",this._input.next(),this._input.next())),this._create_token(_.WORD,y)}this._input.back()}else if(R==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)S+=this._input.next();return x=!0,this._create_token(_.COMMENT,S)}}else if(x&&R==="-"&&(S=this.__patterns.html_comment_end.read(),S))return x=!1,this._create_token(_.COMMENT,S);return null},v.prototype._read_comment=function(R){var S=null;if(R==="/"){var y="";if(this._input.peek(1)==="*"){y=this.__patterns.block_comment.read();var n=g.get_directives(y);n&&n.ignore==="start"&&(y+=g.readIgnored(this._input)),y=y.replace(o.allLineBreaks,`
|
|
`),S=this._create_token(_.BLOCK_COMMENT,y),S.directives=n}else this._input.peek(1)==="/"&&(y=this.__patterns.comment.read(),S=this._create_token(_.COMMENT,y))}return S},v.prototype._read_string=function(R){if(R==="`"||R==="'"||R==='"'){var S=this._input.next();return this.has_char_escapes=!1,R==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(R),this.has_char_escapes&&this._options.unescape_strings&&(S=w(S)),this._input.peek()===R&&(S+=this._input.next()),S=S.replace(o.allLineBreaks,`
|
|
`),this._create_token(_.STRING,S)}return null},v.prototype._allow_regexp_or_xml=function(R){return R.type===_.RESERVED&&E(R.text,["return","case","throw","else","do","typeof","yield"])||R.type===_.END_EXPR&&R.text===")"&&R.opened.previous.type===_.RESERVED&&E(R.opened.previous.text,["if","while","for"])||E(R.type,[_.COMMENT,_.START_EXPR,_.START_BLOCK,_.START,_.END_BLOCK,_.OPERATOR,_.EQUALS,_.EOF,_.SEMICOLON,_.COMMA])},v.prototype._read_regexp=function(R,S){if(R==="/"&&this._allow_regexp_or_xml(S)){for(var y=this._input.next(),n=!1,a=!1;this._input.hasNext()&&(n||a||this._input.peek()!==R)&&!this._input.testChar(o.newline);)y+=this._input.peek(),n?n=!1:(n=this._input.peek()==="\\",this._input.peek()==="["?a=!0:this._input.peek()==="]"&&(a=!1)),this._input.next();return this._input.peek()===R&&(y+=this._input.next(),y+=this._input.read(o.identifier)),this._create_token(_.STRING,y)}return null},v.prototype._read_xml=function(R,S){if(this._options.e4x&&R==="<"&&this._allow_regexp_or_xml(S)){var y="",n=this.__patterns.xml.read_match();if(n){for(var a=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),h=a.indexOf("{")===0,I=0;n;){var re=!!n[1],he=n[2],we=!!n[n.length-1]||he.slice(0,8)==="![CDATA[";if(!we&&(he===a||h&&he.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(re?--I:++I),y+=n[0],I<=0)break;n=this.__patterns.xml.read_match()}return n||(y+=this._input.match(/[\s\S]*/g)[0]),y=y.replace(o.allLineBreaks,`
|
|
`),this._create_token(_.STRING,y)}}return null};function w(R){for(var S="",y=0,n=new f(R),a=null;n.hasNext();)if(a=n.match(/([\s]|[^\\]|\\\\)+/g),a&&(S+=a[0]),n.peek()==="\\"){if(n.next(),n.peek()==="x")a=n.match(/x([0-9A-Fa-f]{2})/g);else if(n.peek()==="u")a=n.match(/u([0-9A-Fa-f]{4})/g),a||(a=n.match(/u\{([0-9A-Fa-f]+)\}/g));else{S+="\\",n.hasNext()&&(S+=n.next());continue}if(!a||(y=parseInt(a[1],16),y>126&&y<=255&&a[0].indexOf("x")===0))return R;y>=0&&y<32||y>1114111?S+="\\"+a[0]:y===34||y===39||y===92?S+="\\"+String.fromCharCode(y):S+=String.fromCharCode(y)}return S}v.prototype._read_string_recursive=function(R,S,y){var n,a;R==="'"?a=this.__patterns.single_quote:R==='"'?a=this.__patterns.double_quote:R==="`"?a=this.__patterns.template_text:R==="}"&&(a=this.__patterns.template_expression);for(var h=a.read(),I="";this._input.hasNext();){if(I=this._input.next(),I===R||!S&&o.newline.test(I)){this._input.back();break}else I==="\\"&&this._input.hasNext()?(n=this._input.peek(),n==="x"||n==="u"?this.has_char_escapes=!0:n==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),I+=this._input.next()):y&&(y==="${"&&I==="$"&&this._input.peek()==="{"&&(I+=this._input.next()),y===I&&(R==="`"?I+=this._read_string_recursive("}",S,"`"):I+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(I+=this._input.next())));I+=a.read(),h+=I}return h},G.exports.Tokenizer=v,G.exports.TOKEN=_,G.exports.positionable_operators=P.slice(),G.exports.line_starters=X.slice()},function(G){var e=RegExp.prototype.hasOwnProperty("sticky");function s(f){this.__input=f||"",this.__input_length=this.__input.length,this.__position=0}s.prototype.restart=function(){this.__position=0},s.prototype.back=function(){this.__position>0&&(this.__position-=1)},s.prototype.hasNext=function(){return this.__position<this.__input_length},s.prototype.next=function(){var f=null;return this.hasNext()&&(f=this.__input.charAt(this.__position),this.__position+=1),f},s.prototype.peek=function(f){var t=null;return f=f||0,f+=this.__position,f>=0&&f<this.__input_length&&(t=this.__input.charAt(f)),t},s.prototype.__match=function(f,t){f.lastIndex=t;var r=f.exec(this.__input);return r&&!(e&&f.sticky)&&r.index!==t&&(r=null),r},s.prototype.test=function(f,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(f,t):!1},s.prototype.testChar=function(f,t){var r=this.peek(t);return f.lastIndex=0,r!==null&&f.test(r)},s.prototype.match=function(f){var t=this.__match(f,this.__position);return t?this.__position+=t[0].length:t=null,t},s.prototype.read=function(f,t,r){var i="",o;return f&&(o=this.match(f),o&&(i+=o[0])),t&&(o||!f)&&(i+=this.readUntil(t,r)),i},s.prototype.readUntil=function(f,t){var r="",i=this.__position;f.lastIndex=this.__position;var o=f.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,r=this.__input.substring(this.__position,i),this.__position=i,r},s.prototype.readUntilAfter=function(f){return this.readUntil(f,!0)},s.prototype.get_regexp=function(f,t){var r=null,i="g";return t&&e&&(i="y"),typeof f=="string"&&f!==""?r=new RegExp(f,i):f&&(r=new RegExp(f.source,i)),r},s.prototype.get_literal_regexp=function(f){return RegExp(f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},s.prototype.peekUntilAfter=function(f){var t=this.__position,r=this.readUntilAfter(f);return this.__position=t,r},s.prototype.lookBack=function(f){var t=this.__position-1;return t>=f.length&&this.__input.substring(t-f.length,t).toLowerCase()===f},G.exports.InputScanner=s},function(G,e,s){var f=s(8).InputScanner,t=s(3).Token,r=s(10).TokenStream,i=s(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(b,E){this._input=new f(b),this._options=E||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var b,E=new t(o.START,""),_=null,g=[],d=new r;E.type!==o.EOF;){for(b=this._get_next_token(E,_);this._is_comment(b);)d.add(b),b=this._get_next_token(E,_);d.isEmpty()||(b.comments_before=d,d=new r),b.parent=_,this._is_opening(b)?(g.push(_),_=b):_&&this._is_closing(b,_)&&(b.opened=_,_.closed=b,_=g.pop(),b.parent=_),b.previous=E,E.next=b,this.__tokens.add(b),E=b}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(b,E){this._readWhitespace();var _=this._input.read(/.+/g);return _?this._create_token(o.RAW,_):this._create_token(o.EOF,"")},m.prototype._is_comment=function(b){return!1},m.prototype._is_opening=function(b){return!1},m.prototype._is_closing=function(b,E){return!1},m.prototype._create_token=function(b,E){var _=new t(b,E,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return _},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},G.exports.Tokenizer=m,G.exports.TOKEN=o},function(G){function e(s){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=s}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__tokens[this.__position],this.__position+=1),s},e.prototype.peek=function(s){var f=null;return s=s||0,s+=this.__position,s>=0&&s<this.__tokens_length&&(f=this.__tokens[s]),f},e.prototype.add=function(s){this.__parent_token&&(s.parent=this.__parent_token),this.__tokens.push(s),this.__tokens_length+=1},G.exports.TokenStream=e},function(G,e,s){var f=s(12).Pattern;function t(r,i){f.call(this,r,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}t.prototype=new f,t.prototype.__set_whitespace_patterns=function(r,i){r+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+r+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var r=this._input.read(this._match_pattern);if(r===" ")this.whitespace_before_token=" ";else if(r){var i=this.__split(this._newline_regexp,r);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return r},t.prototype.matching=function(r,i){var o=this._create();return o.__set_whitespace_patterns(r,i),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(r,i){r.lastIndex=0;for(var o=0,m=[],b=r.exec(i);b;)m.push(i.substring(o,b.index)),o=b.index+b[0].length,b=r.exec(i);return o<i.length?m.push(i.substring(o,i.length)):m.push(""),m},G.exports.WhitespacePattern=t},function(G){function e(s,f){this._input=s,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,f&&(this._starting_pattern=this._input.get_regexp(f._starting_pattern,!0),this._match_pattern=this._input.get_regexp(f._match_pattern,!0),this._until_pattern=this._input.get_regexp(f._until_pattern),this._until_after=f._until_after)}e.prototype.read=function(){var s=this._input.read(this._starting_pattern);return(!this._starting_pattern||s)&&(s+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),s},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(s){var f=this._create();return f._until_after=!0,f._until_pattern=this._input.get_regexp(s),f._update(),f},e.prototype.until=function(s){var f=this._create();return f._until_after=!1,f._until_pattern=this._input.get_regexp(s),f._update(),f},e.prototype.starting_with=function(s){var f=this._create();return f._starting_pattern=this._input.get_regexp(s,!0),f._update(),f},e.prototype.matching=function(s){var f=this._create();return f._match_pattern=this._input.get_regexp(s,!0),f._update(),f},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},G.exports.Pattern=e},function(G){function e(s,f){s=typeof s=="string"?s:s.source,f=typeof f=="string"?f:f.source,this.__directives_block_pattern=new RegExp(s+/ beautify( \w+[:]\w+)+ /.source+f,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(s+/\sbeautify\signore:end\s/.source+f,"g")}e.prototype.get_directives=function(s){if(!s.match(this.__directives_block_pattern))return null;var f={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(s);t;)f[t[1]]=t[2],t=this.__directive_pattern.exec(s);return f},e.prototype.readIgnored=function(s){return s.readUntilAfter(this.__directives_end_ignore_pattern)},G.exports.Directives=e},function(G,e,s){var f=s(12).Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function r(i,o){f.call(this,i,o),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var m=new f(i);this.__patterns={handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:m.starting_with(/{{{/).until_after(/}}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),php:m.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new f,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(i){var o=this._create();return o._disabled[i]=!0,o._update(),o},r.prototype.read_options=function(i){var o=this._create();for(var m in t)o._disabled[m]=i.templating.indexOf(m)===-1;return o._update(),o},r.prototype.exclude=function(i){var o=this._create();return o._excluded[i]=!0,o._update(),o},r.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),i+=o,o=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},r.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},r.prototype._read_template=function(){var i="",o=this._input.peek();if(o==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(i=i||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},G.exports.TemplatablePattern=r}],V={};function p(G){var e=V[G];if(e!==void 0)return e.exports;var s=V[G]={exports:{}};return J[G](s,s.exports,p),s.exports}var $=p(0);D=$})();var W=D;l=[],N=function(){return{js_beautify:W}}.apply(Fe,l),N!==void 0&&(Kt.exports=N)})()},75918:function(Kt,Fe,l){"use strict";l.d(Fe,{Wi:function(){return p},Z0:function(){return $},aU:function(){return V},eZ:function(){return e},wY:function(){return G}});var N=l(4348),D=l(69323),W=l(13268),J=function(s,f,t,r){function i(o){return o instanceof t?o:new t(function(m){m(o)})}return new(t||(t=Promise))(function(o,m){function b(g){try{_(r.next(g))}catch(d){m(d)}}function E(g){try{_(r.throw(g))}catch(d){m(d)}}function _(g){g.done?o(g.value):i(g.value).then(b,E)}_((r=r.apply(s,f||[])).next())})};class V extends D.JT{constructor(f,t="",r="",i=!0,o){super(),this._onDidChange=this._register(new N.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=t,this._cssClass=r,this._enabled=i,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(f){this._setLabel(f)}_setLabel(f){this._label!==f&&(this._label=f,this._onDidChange.fire({label:f}))}get tooltip(){return this._tooltip||""}set tooltip(f){this._setTooltip(f)}_setTooltip(f){this._tooltip!==f&&(this._tooltip=f,this._onDidChange.fire({tooltip:f}))}get class(){return this._cssClass}set class(f){this._setClass(f)}_setClass(f){this._cssClass!==f&&(this._cssClass=f,this._onDidChange.fire({class:f}))}get enabled(){return this._enabled}set enabled(f){this._setEnabled(f)}_setEnabled(f){this._enabled!==f&&(this._enabled=f,this._onDidChange.fire({enabled:f}))}get checked(){return this._checked}set checked(f){this._setChecked(f)}_setChecked(f){this._checked!==f&&(this._checked=f,this._onDidChange.fire({checked:f}))}run(f,t){return J(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class p extends D.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new N.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new N.Q5),this.onDidRun=this._onDidRun.event}run(f,t){return J(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let r;try{yield this.runAction(f,t)}catch(i){r=i}this._onDidRun.fire({action:f,error:r})})}runAction(f,t){return J(this,void 0,void 0,function*(){yield f.run(t)})}}class $ extends V{constructor(f){super($.ID,f,f?"separator text":"separator"),this.checked=!1,this.enabled=!1}}$.ID="vs.actions.separator";class G{constructor(f,t,r,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=t,this.class=i,this._actions=r}get actions(){return this._actions}dispose(){}run(){return J(this,void 0,void 0,function*(){})}}class e extends V{constructor(){super(e.ID,W.N("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},76068:function(Kt,Fe,l){"use strict";l.d(Fe,{ok:function(){return N}});function N(D,W){if(!D)throw new Error(W?`Assertion failed (${W})`:"Assertion Failed")}},52615:function(Kt,Fe,l){"use strict";l.d(Fe,{CM:function(){return V},JL:function(){return p},dT:function(){return G},fK:function(){return J},lA:function(){return $}});var N=l(4348);class D{constructor(){this._icons=new Map,this._onDidRegister=new N.Q5}add(s){const f=this._icons.get(s.id);f?s.description?f.description=s.description:console.error(`Duplicate registration of codicon ${s.id}`):(this._icons.set(s.id,s),this._onDidRegister.fire(s))}get(s){return this._icons.get(s)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const W=new D,J=W;function V(e,s){return new $(e,s)}function p(e){return e?e.replace(/\$\((.*?)\)/g,(s,f)=>` ${f} `).trim():""}class ${constructor(s,f,t){this.id=s,this.definition=f,this.description=t,W.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var G;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const s=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function f(i){if(i instanceof $)return["codicon","codicon-"+i.id];const o=s.exec(i.id);if(!o)return f($.error);let[,m,b]=o;const E=["codicon","codicon-"+m];return b&&E.push("codicon-modifier-"+b.substr(1)),E}e.asClassNameArray=f;function t(i){return f(i).join(" ")}e.asClassName=t;function r(i){return"."+f(i).join(".")}e.asCSSSelector=r})(G||(G={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}($||($={}))},79881:function(Kt,Fe,l){"use strict";l.d(Fe,{B8:function(){return f},Cp:function(){return J},F0:function(){return G},L6:function(){return s},VV:function(){return $},b1:function(){return e},dL:function(){return W},ri:function(){return V}});class N{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(r){setTimeout(()=>{throw r.stack?new Error(r.message+`
|
|
|
|
`+r.stack):r},0)}}emit(r){this.listeners.forEach(i=>{i(r)})}onUnexpectedError(r){this.unexpectedErrorHandler(r),this.emit(r)}onUnexpectedExternalError(r){this.unexpectedErrorHandler(r)}}const D=new N;function W(t){$(t)||D.onUnexpectedError(t)}function J(t){$(t)||D.onUnexpectedExternalError(t)}function V(t){if(t instanceof Error){let{name:r,message:i}=t;const o=t.stacktrace||t.stack;return{$isError:!0,name:r,message:i,stack:o}}return t}const p="Canceled";function $(t){return t instanceof Error&&t.name===p&&t.message===p}function G(){const t=new Error(p);return t.name=t.message,t}function e(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function s(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class f extends Error{constructor(r){super("NotSupported"),r&&(this.message=r)}}},4348:function(Kt,Fe,l){"use strict";l.d(Fe,{D0:function(){return f},E7:function(){return t},K3:function(){return s},Q5:function(){return e},ZD:function(){return r},ju:function(){return V}});var N=l(79881),D=l(69323),W=l(34502),J=l(95830),V;(function(i){i.None=()=>D.JT.None;function o(w){return(R,S=null,y)=>{let n=!1,a;return a=w(h=>{if(!n)return a?a.dispose():n=!0,R.call(S,h)},null,y),n&&a.dispose(),a}}i.once=o;function m(w,R){return u((S,y=null,n)=>w(a=>S.call(y,R(a)),null,n))}i.map=m;function b(w,R){return u((S,y=null,n)=>w(a=>{R(a),S.call(y,a)},null,n))}i.forEach=b;function E(w,R){return u((S,y=null,n)=>w(a=>R(a)&&S.call(y,a),null,n))}i.filter=E;function _(w){return w}i.signal=_;function g(...w){return(R,S=null,y)=>(0,D.F8)(...w.map(n=>n(a=>R.call(S,a),null,y)))}i.any=g;function d(w,R,S){let y=S;return m(w,n=>(y=R(y,n),y))}i.reduce=d;function u(w){let R;const S=new e({onFirstListenerAdd(){R=w(S.fire,S)},onLastListenerRemove(){R.dispose()}});return S.event}function O(w,R,S=100,y=!1,n){let a,h,I,re=0;const he=new e({leakWarningThreshold:n,onFirstListenerAdd(){a=w(we=>{re++,h=R(h,we),y&&!I&&(he.fire(h),h=void 0),clearTimeout(I),I=setTimeout(()=>{const Me=h;h=void 0,I=void 0,(!y||re>1)&&he.fire(Me),re=0},S)})},onLastListenerRemove(){a.dispose()}});return he.event}i.debounce=O;function P(w,R=(S,y)=>S===y){let S=!0,y;return E(w,n=>{const a=S||!R(n,y);return S=!1,y=n,a})}i.latch=P;function K(w,R){return[i.filter(w,R),i.filter(w,S=>!R(S))]}i.split=K;function j(w,R=!1,S=[]){let y=S.slice(),n=w(I=>{y?y.push(I):h.fire(I)});const a=()=>{y&&y.forEach(I=>h.fire(I)),y=null},h=new e({onFirstListenerAdd(){n||(n=w(I=>h.fire(I)))},onFirstListenerDidAdd(){y&&(R?setTimeout(a):a())},onLastListenerRemove(){n&&n.dispose(),n=null}});return h.event}i.buffer=j;class X{constructor(R){this.event=R}map(R){return new X(m(this.event,R))}forEach(R){return new X(b(this.event,R))}filter(R){return new X(E(this.event,R))}reduce(R,S){return new X(d(this.event,R,S))}latch(){return new X(P(this.event))}debounce(R,S=100,y=!1,n){return new X(O(this.event,R,S,y,n))}on(R,S,y){return this.event(R,S,y)}once(R,S,y){return o(this.event)(R,S,y)}}function U(w){return new X(w)}i.chain=U;function Se(w,R,S=y=>y){const y=(...I)=>h.fire(S(...I)),n=()=>w.on(R,y),a=()=>w.removeListener(R,y),h=new e({onFirstListenerAdd:n,onLastListenerRemove:a});return h.event}i.fromNodeEventEmitter=Se;function x(w,R,S=y=>y){const y=(...I)=>h.fire(S(...I)),n=()=>w.addEventListener(R,y),a=()=>w.removeEventListener(R,y),h=new e({onFirstListenerAdd:n,onLastListenerRemove:a});return h.event}i.fromDOMEventEmitter=x;function v(w){return new Promise(R=>o(w)(R))}i.toPromise=v})(V||(V={}));class p{constructor(o){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${o}_${p._idPool++}`}start(o){this._stopWatch=new J.G(!0),this._listenerCount=o}stop(){if(this._stopWatch){const o=this._stopWatch.elapsed();this._elapsedOverall+=o,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${o.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}p._idPool=0;let $=-1;class G{constructor(o,m=Math.random().toString(18).slice(2,5)){this.customThreshold=o,this.name=m,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(o){let m=$;if(typeof this.customThreshold=="number"&&(m=this.customThreshold),m<=0||o<m)return;this._stacks||(this._stacks=new Map);const b=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),E=this._stacks.get(b)||0;if(this._stacks.set(b,E+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=m*.5;let _,g=0;for(const[d,u]of this._stacks)(!_||g<u)&&(_=d,g=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${o} listeners already. MOST frequent listener (${g}):`),console.warn(_)}return()=>{const _=this._stacks.get(b)||0;this._stacks.set(b,_-1)}}}class e{constructor(o){var m;this._disposed=!1,this._options=o,this._leakageMon=$>0?new G(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((m=this._options)===null||m===void 0)&&m._profName?new p(this._options._profName):void 0}get event(){return this._event||(this._event=(o,m,b)=>{var E;this._listeners||(this._listeners=new W.S);const _=this._listeners.isEmpty();_&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const g=this._listeners.push(m?[o,m]:o);_&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,o,m);const d=(E=this._leakageMon)===null||E===void 0?void 0:E.check(this._listeners.size),u=(0,D.OF)(()=>{d&&d(),this._disposed||(g(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return b instanceof D.SL?b.add(u):Array.isArray(b)&&b.push(u),u}),this._event}fire(o){var m,b;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new W.S);for(let E of this._listeners)this._deliveryQueue.push([E,o]);for((m=this._perfMon)===null||m===void 0||m.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[E,_]=this._deliveryQueue.shift();try{typeof E=="function"?E.call(void 0,_):E[0].call(E[1],_)}catch(g){(0,N.dL)(g)}}(b=this._perfMon)===null||b===void 0||b.stop()}}dispose(){var o,m,b,E,_;this._disposed||(this._disposed=!0,(o=this._listeners)===null||o===void 0||o.clear(),(m=this._deliveryQueue)===null||m===void 0||m.clear(),(E=(b=this._options)===null||b===void 0?void 0:b.onLastListenerRemove)===null||E===void 0||E.call(b),(_=this._leakageMon)===null||_===void 0||_.dispose())}}class s extends e{constructor(o){super(o),this._isPaused=0,this._eventQueue=new W.S,this._mergeFn=o==null?void 0:o.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const o=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(o))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(o){this._listeners&&(this._isPaused!==0?this._eventQueue.push(o):super.fire(o))}}class f extends s{constructor(o){var m;super(o),this._delay=(m=o.delay)!==null&&m!==void 0?m:100}fire(o){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(o)}}class t{constructor(){this.buffers=[]}wrapEvent(o){return(m,b,E)=>o(_=>{const g=this.buffers[this.buffers.length-1];g?g.push(()=>m.call(b,_)):m.call(b,_)},void 0,E)}bufferEvents(o){const m=[];this.buffers.push(m);const b=o();return this.buffers.pop(),m.forEach(E=>E()),b}}class r{constructor(){this.listening=!1,this.inputEvent=V.None,this.inputEventListener=D.JT.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(o){this.inputEvent=o,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=o(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Kt,Fe,l){"use strict";l.d(Fe,{I:function(){return N}});function N(D){const W=this;let J=!1,V;return function(){return J||(J=!0,V=D.apply(W,arguments)),V}}},88226:function(Kt,Fe,l){"use strict";l.d(Fe,{$:function(){return N}});var N;(function(D){function W(g){return g&&typeof g=="object"&&typeof g[Symbol.iterator]=="function"}D.is=W;const J=Object.freeze([]);function V(){return J}D.empty=V;function*p(g){yield g}D.single=p;function $(g){return g||J}D.from=$;function G(g){return!g||g[Symbol.iterator]().next().done===!0}D.isEmpty=G;function e(g){return g[Symbol.iterator]().next().value}D.first=e;function s(g,d){for(const u of g)if(d(u))return!0;return!1}D.some=s;function f(g,d){for(const u of g)if(d(u))return u}D.find=f;function*t(g,d){for(const u of g)d(u)&&(yield u)}D.filter=t;function*r(g,d){let u=0;for(const O of g)yield d(O,u++)}D.map=r;function*i(...g){for(const d of g)for(const u of d)yield u}D.concat=i;function*o(g){for(const d of g)for(const u of d)yield u}D.concatNested=o;function m(g,d,u){let O=u;for(const P of g)O=d(O,P);return O}D.reduce=m;function*b(g,d,u=g.length){for(d<0&&(d+=g.length),u<0?u+=g.length:u>g.length&&(u=g.length);d<u;d++)yield g[d]}D.slice=b;function E(g,d=Number.POSITIVE_INFINITY){const u=[];if(d===0)return[u,g];const O=g[Symbol.iterator]();for(let P=0;P<d;P++){const K=O.next();if(K.done)return[u,D.empty()];u.push(K.value)}return[u,{[Symbol.iterator](){return O}}]}D.consume=E;function _(g,d,u=(O,P)=>O===P){const O=g[Symbol.iterator](),P=d[Symbol.iterator]();for(;;){const K=O.next(),j=P.next();if(K.done!==j.done)return!1;if(K.done)return!0;if(!u(K.value,j.value))return!1}}D.equals=_})(N||(N={}))},69323:function(Kt,Fe,l){"use strict";l.d(Fe,{B9:function(){return r},F8:function(){return i},JT:function(){return b},Jz:function(){return _},OF:function(){return o},SL:function(){return m},Wf:function(){return t},XK:function(){return E},dk:function(){return s}});var N=l(17845),D=l(88226);const W=!1;let J=null;function V(g){J=g}if(W){const g="__is_disposable_tracked__";V(new class{trackDisposable(d){const u=new Error("Potentially leaked disposable").stack;setTimeout(()=>{d[g]||console.log(u)},3e3)}setParent(d,u){if(d&&d!==b.None)try{d[g]=!0}catch(O){}}markAsDisposed(d){if(d&&d!==b.None)try{d[g]=!0}catch(u){}}markAsSingleton(d){}})}function p(g){return J==null||J.trackDisposable(g),g}function $(g){J==null||J.markAsDisposed(g)}function G(g,d){J==null||J.setParent(g,d)}function e(g,d){if(J)for(const u of g)J.setParent(u,d)}function s(g){return J==null||J.markAsSingleton(g),g}class f extends Error{constructor(d){super(`Encountered errors while disposing of store. Errors: [${d.join(", ")}]`),this.errors=d}}function t(g){return typeof g.dispose=="function"&&g.dispose.length===0}function r(g){if(D.$.is(g)){let d=[];for(const u of g)if(u)try{u.dispose()}catch(O){d.push(O)}if(d.length===1)throw d[0];if(d.length>1)throw new f(d);return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function i(...g){const d=o(()=>r(g));return e(g,d),d}function o(g){const d=p({dispose:(0,N.I)(()=>{$(d),g()})});return d}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||($(this),this._isDisposed=!0,this.clear())}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(d){if(!d)return d;if(d===this)throw new Error("Cannot register a disposable on itself!");return G(d,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(d),d}}m.DISABLE_DISPOSED_WARNING=!1;class b{constructor(){this._store=new m,p(this),G(this._store,this)}dispose(){$(this),this._store.dispose()}_register(d){if(d===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(d)}}b.None=Object.freeze({dispose(){}});class E{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(d){var u;this._isDisposed||d===this._value||((u=this._value)===null||u===void 0||u.dispose(),d&&G(d,this),this._value=d)}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,$(this),(d=this._value)===null||d===void 0||d.dispose(),this._value=void 0}clearAndLeak(){const d=this._value;return this._value=void 0,d&&G(d,null),d}}class _{constructor(d){this.object=d}dispose(){}}},34502:function(Kt,Fe,l){"use strict";l.d(Fe,{S:function(){return D}});class N{constructor(J){this.element=J,this.next=N.Undefined,this.prev=N.Undefined}}N.Undefined=new N(void 0);class D{constructor(){this._first=N.Undefined,this._last=N.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===N.Undefined}clear(){let J=this._first;for(;J!==N.Undefined;){const V=J.next;J.prev=N.Undefined,J.next=N.Undefined,J=V}this._first=N.Undefined,this._last=N.Undefined,this._size=0}unshift(J){return this._insert(J,!1)}push(J){return this._insert(J,!0)}_insert(J,V){const p=new N(J);if(this._first===N.Undefined)this._first=p,this._last=p;else if(V){const G=this._last;this._last=p,p.prev=G,G.next=p}else{const G=this._first;this._first=p,p.next=G,G.prev=p}this._size+=1;let $=!1;return()=>{$||($=!0,this._remove(p))}}shift(){if(this._first!==N.Undefined){const J=this._first.element;return this._remove(this._first),J}}pop(){if(this._last!==N.Undefined){const J=this._last.element;return this._remove(this._last),J}}_remove(J){if(J.prev!==N.Undefined&&J.next!==N.Undefined){const V=J.prev;V.next=J.next,J.next.prev=V}else J.prev===N.Undefined&&J.next===N.Undefined?(this._first=N.Undefined,this._last=N.Undefined):J.next===N.Undefined?(this._last=this._last.prev,this._last.next=N.Undefined):J.prev===N.Undefined&&(this._first=this._first.next,this._first.prev=N.Undefined);this._size-=1}*[Symbol.iterator](){let J=this._first;for(;J!==N.Undefined;)yield J.element,J=J.next}}},23345:function(Kt,Fe,l){"use strict";l.d(Fe,{$L:function(){return O},ED:function(){return _},IJ:function(){return d},OS:function(){return X},WE:function(){return K},dz:function(){return g},gn:function(){return P},li:function(){return o},r:function(){return x},tY:function(){return u},xS:function(){return j}});var N=l(97671),D;const W="en";let J=!1,V=!1,p=!1,$=!1,G=!1,e=!1,s=!1,f,t=null,r=null,i;const o=typeof self=="object"?self:typeof l.g=="object"?l.g:{};let m;typeof o.vscode!="undefined"&&typeof o.vscode.process!="undefined"?m=o.vscode.process:typeof N!="undefined"&&(m=N);const b=typeof((D=m==null?void 0:m.versions)===null||D===void 0?void 0:D.electron)=="string"&&m.type==="renderer";if(typeof navigator=="object"&&!b)i=navigator.userAgent,J=i.indexOf("Windows")>=0,V=i.indexOf("Macintosh")>=0,s=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,p=i.indexOf("Linux")>=0,e=!0,f=navigator.language,t=f;else if(typeof m=="object"){J=m.platform==="win32",V=m.platform==="darwin",p=m.platform==="linux",$=p&&!!m.env.SNAP&&!!m.env.SNAP_REVISION,f=W,t=W;const v=m.env.VSCODE_NLS_CONFIG;if(v)try{const w=JSON.parse(v),R=w.availableLanguages["*"];f=w.locale,t=R||W,r=w._translationsConfigFile}catch(w){}G=!0}else console.error("Unable to resolve platform.");let E=0;V?E=1:J?E=3:p&&(E=2);const _=J,g=V,d=p,u=G,O=e,P=s,K=i,j=function(){if(o.setImmediate)return o.setImmediate.bind(o);if(typeof o.postMessage=="function"&&!o.importScripts){let R=[];o.addEventListener("message",y=>{if(y.data&&y.data.vscodeSetImmediateId)for(let n=0,a=R.length;n<a;n++){const h=R[n];if(h.id===y.data.vscodeSetImmediateId){R.splice(n,1),h.callback();return}}});let S=0;return y=>{const n=++S;R.push({id:n,callback:y}),o.postMessage({vscodeSetImmediateId:n},"*")}}if(typeof(m==null?void 0:m.nextTick)=="function")return m.nextTick.bind(m);const w=Promise.resolve();return R=>w.then(R)}(),X=V||s?2:J?1:3;let U=!0,Se=!1;function x(){if(!Se){Se=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2,U=new Uint16Array(v.buffer)[0]===513}return U}},95830:function(Kt,Fe,l){"use strict";l.d(Fe,{G:function(){return W}});var N=l(23345);const D=N.li.performance&&typeof N.li.performance.now=="function";class W{constructor(V){this._highResolution=D&&V,this._startTime=this._now(),this._stopTime=-1}static create(V=!0){return new W(V)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?N.li.performance.now():Date.now()}}},82983:function(Kt,Fe,l){"use strict";l.d(Fe,{$i:function(){return re},C8:function(){return Et},GF:function(){return f},HO:function(){return S},IO:function(){return t},K7:function(){return Ue},Kw:function(){return vt},LC:function(){return o},Mh:function(){return j},P1:function(){return X},PJ:function(){return Ot},Qe:function(){return he},R1:function(){return s},RP:function(){return h},S6:function(){return lt},TT:function(){return _},Ut:function(){return n},V8:function(){return m},WU:function(){return W},YK:function(){return Se},YU:function(){return J},ZG:function(){return U},ZH:function(){return v},ab:function(){return we},c1:function(){return ve},df:function(){return O},ec:function(){return V},fi:function(){return Z},fy:function(){return p},j3:function(){return $},j_:function(){return d},m5:function(){return N},mK:function(){return u},mr:function(){return r},oH:function(){return A},oL:function(){return G},ok:function(){return K},ow:function(){return b},qq:function(){return P},qu:function(){return E},rL:function(){return x},uS:function(){return We},un:function(){return e},uq:function(){return i},vH:function(){return R},xe:function(){return Me},zY:function(){return g}});function N(c){return!c||typeof c!="string"?!0:c.trim().length===0}const D=/{(\d+)}/g;function W(c,...k){return k.length===0?c:c.replace(D,function(B,T){const z=parseInt(T,10);return isNaN(z)||z<0||z>=k.length?B:k[z]})}function J(c){return c.replace(/[<>&]/g,function(k){switch(k){case"<":return"<";case">":return">";case"&":return"&";default:return k}})}function V(c){return c.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function p(c,k=" "){const B=$(c,k);return G(B,k)}function $(c,k){if(!c||!k)return c;const B=k.length;if(B===0||c.length===0)return c;let T=0;for(;c.indexOf(k,T)===T;)T=T+B;return c.substring(T)}function G(c,k){if(!c||!k)return c;const B=k.length,T=c.length;if(B===0||T===0)return c;let z=T,L=-1;for(;L=c.lastIndexOf(k,z-1),!(L===-1||L+B!==z);){if(L===0)return"";z=L}return c.substring(0,z)}function e(c){return c.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function s(c){return c.replace(/\*/g,"")}function f(c,k,B={}){if(!c)throw new Error("Cannot create regex from empty string");k||(c=V(c)),B.wholeWord&&(/\B/.test(c.charAt(0))||(c="\\b"+c),/\B/.test(c.charAt(c.length-1))||(c=c+"\\b"));let T="";return B.global&&(T+="g"),B.matchCase||(T+="i"),B.multiline&&(T+="m"),B.unicode&&(T+="u"),new RegExp(c,T)}function t(c){return c.source==="^"||c.source==="^$"||c.source==="$"||c.source==="^\\s*$"?!1:!!(c.exec("")&&c.lastIndex===0)}function r(c){return(c.global?"g":"")+(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")}function i(c){return c.split(/\r\n|\r|\n/)}function o(c){for(let k=0,B=c.length;k<B;k++){const T=c.charCodeAt(k);if(T!==32&&T!==9)return k}return-1}function m(c,k=0,B=c.length){for(let T=k;T<B;T++){const z=c.charCodeAt(T);if(z!==32&&z!==9)return c.substring(k,T)}return c.substring(k,B)}function b(c,k=c.length-1){for(let B=k;B>=0;B--){const T=c.charCodeAt(B);if(T!==32&&T!==9)return B}return-1}function E(c,k){return c<k?-1:c>k?1:0}function _(c,k,B=0,T=c.length,z=0,L=k.length){for(;B<T&&z<L;B++,z++){let le=c.charCodeAt(B),pe=k.charCodeAt(z);if(le<pe)return-1;if(le>pe)return 1}const ne=T-B,ee=L-z;return ne<ee?-1:ne>ee?1:0}function g(c,k){return d(c,k,0,c.length,0,k.length)}function d(c,k,B=0,T=c.length,z=0,L=k.length){for(;B<T&&z<L;B++,z++){let le=c.charCodeAt(B),pe=k.charCodeAt(z);if(le===pe)continue;if(le>=128||pe>=128)return _(c.toLowerCase(),k.toLowerCase(),B,T,z,L);u(le)&&(le-=32),u(pe)&&(pe-=32);const ze=le-pe;if(ze!==0)return ze}const ne=T-B,ee=L-z;return ne<ee?-1:ne>ee?1:0}function u(c){return c>=97&&c<=122}function O(c){return c>=65&&c<=90}function P(c,k){return c.length===k.length&&d(c,k)===0}function K(c,k){const B=k.length;return k.length>c.length?!1:d(c,k,0,B)===0}function j(c,k){let B,T=Math.min(c.length,k.length);for(B=0;B<T;B++)if(c.charCodeAt(B)!==k.charCodeAt(B))return B;return T}function X(c,k){let B,T=Math.min(c.length,k.length);const z=c.length-1,L=k.length-1;for(B=0;B<T;B++)if(c.charCodeAt(z-B)!==k.charCodeAt(L-B))return B;return T}function U(c){return 55296<=c&&c<=56319}function Se(c){return 56320<=c&&c<=57343}function x(c,k){return(c-55296<<10)+(k-56320)+65536}function v(c,k,B){const T=c.charCodeAt(B);if(U(T)&&B+1<k){const z=c.charCodeAt(B+1);if(Se(z))return x(T,z)}return T}function w(c,k){const B=c.charCodeAt(k-1);if(Se(B)&&k>1){const T=c.charCodeAt(k-2);if(U(T))return x(T,B)}return B}function R(c,k){const B=M.getInstance(),T=k,z=c.length,L=v(c,z,k);k+=L>=65536?2:1;let ne=B.getGraphemeBreakType(L);for(;k<z;){const ee=v(c,z,k),le=B.getGraphemeBreakType(ee);if(Z(ne,le))break;k+=ee>=65536?2:1,ne=le}return k-T}function S(c,k){const B=M.getInstance(),T=k,z=w(c,k);k-=z>=65536?2:1;let L=B.getGraphemeBreakType(z);for(;k>0;){const ne=w(c,k),ee=B.getGraphemeBreakType(ne);if(Z(ee,L))break;k-=ne>=65536?2:1,L=ee}return T-k}const y=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function n(c){return y.test(c)}const a=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function h(c){return a.test(c)}const I=/^[\t\n\r\x20-\x7E]*$/;function re(c){return I.test(c)}const he=/[\u2028\u2029]/;function we(c){return he.test(c)}function Me(c){for(let k=0,B=c.length;k<B;k++)if(Ue(c.charCodeAt(k)))return!0;return!1}function Ue(c){return c=+c,c>=11904&&c<=55215||c>=63744&&c<=64255||c>=65281&&c<=65374}function Et(c){return c>=127462&&c<=127487||c===8986||c===8987||c===9200||c===9203||c>=9728&&c<=10175||c===11088||c===11093||c>=127744&&c<=128591||c>=128640&&c<=128764||c>=128992&&c<=129003||c>=129280&&c<=129535||c>=129648&&c<=129750}const ve="\uFEFF";function We(c){return!!(c&&c.length>0&&c.charCodeAt(0)===65279)}function vt(c,k=!1){return c?(k&&(c=c.replace(/\\./g,"")),c.toLowerCase()!==c):!1}function Ot(c){return c=c%(2*26),c<26?String.fromCharCode(97+c):String.fromCharCode(65+c-26)}function lt(c){return M.getInstance().getGraphemeBreakType(c)}function Z(c,k){return c===0?k!==5&&k!==7:c===2&&k===3?!1:c===4||c===2||c===3||k===4||k===2||k===3?!0:!(c===8&&(k===8||k===9||k===11||k===12)||(c===11||c===9)&&(k===9||k===10)||(c===12||c===10)&&k===10||k===5||k===13||k===7||c===1||c===13&&k===14||c===6&&k===6)}class M{constructor(){this._data=H()}static getInstance(){return M._INSTANCE||(M._INSTANCE=new M),M._INSTANCE}getGraphemeBreakType(k){if(k<32)return k===10?3:k===13?2:4;if(k<127)return 0;const B=this._data,T=B.length/3;let z=1;for(;z<=T;)if(k<B[3*z])z=2*z;else if(k>B[3*z+1])z=2*z+1;else return B[3*z+2];return 0}}M._INSTANCE=null;function H(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function A(c,k){if(c===0)return 0;const B=te(c,k);if(B!==void 0)return B;const T=w(k,c);return c-=ce(T),c}function te(c,k){let B=w(k,c);for(c-=ce(B);C(B)||B===65039||B===8419;){if(c===0)return;B=w(k,c),c-=ce(B)}if(Et(B)){if(c>=0){const T=w(k,c);T===8205&&(c-=ce(T))}return c}}function ce(c){return c>=65536?2:1}function C(c){return 127995<=c&&c<=127999}},72999:function(Kt,Fe,l){"use strict";l.d(Fe,{$E:function(){return o},$K:function(){return $},D8:function(){return t},HD:function(){return D},IU:function(){return m},Jp:function(){return G},Kn:function(){return W},cW:function(){return s},f6:function(){return b},hj:function(){return J},jn:function(){return V},kJ:function(){return N},mf:function(){return f},o8:function(){return p},p_:function(){return e},vE:function(){return E}});function N(_){return Array.isArray(_)}function D(_){return typeof _=="string"}function W(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)&&!(_ instanceof RegExp)&&!(_ instanceof Date)}function J(_){return typeof _=="number"&&!isNaN(_)}function V(_){return _===!0||_===!1}function p(_){return typeof _=="undefined"}function $(_){return!G(_)}function G(_){return p(_)||_===null}function e(_,g){if(!_)throw new Error(g?`Unexpected type, expected '${g}'`:"Unexpected type")}function s(_){if(G(_))throw new Error("Assertion Failed: argument is undefined or null");return _}function f(_){return typeof _=="function"}function t(_,g){const d=Math.min(_.length,g.length);for(let u=0;u<d;u++)r(_[u],g[u])}function r(_,g){if(D(g)){if(typeof _!==g)throw new Error(`argument does not match constraint: typeof ${g}`)}else if(f(g)){try{if(_ instanceof g)return}catch(d){}if(!G(_)&&_.constructor===g||g.length===1&&g.call(void 0,_)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(_){let g=[],d=Object.getPrototypeOf(_);for(;Object.prototype!==d;)g=g.concat(Object.getOwnPropertyNames(d)),d=Object.getPrototypeOf(d);return g}function o(_){const g=[];for(const d of i(_))typeof _[d]=="function"&&g.push(d);return g}function m(_,g){const d=O=>function(){const P=Array.prototype.slice.call(arguments,0);return g(O,P)};let u={};for(const O of _)u[O]=d(O);return u}function b(_){return _===null?void 0:_}function E(_,g="Unreachable"){throw new Error(g)}},13268:function(Kt,Fe,l){"use strict";l.d(Fe,{N:function(){return D}});function N(W,J){let V;return J.length===0?V=W:V=W.replace(/\{(\d+)\}/g,function(p,$){const G=$[0];return typeof J[G]!="undefined"?J[G]:p}),V}function D(W,J,...V){return N(J,V)}},96236:function(Kt,Fe,l){"use strict";l.d(Fe,{BH:function(){return m},NZ:function(){return b},U8:function(){return E},co:function(){return o},eH:function(){return i},vr:function(){return r}});var N=l(75918),D=l(52615),W=l(4348),J=l(88226),V=l(69323),p=l(34502),$=l(35884),G=l(90689),e=l(16925),s=l(49055),f=function(_,g,d,u){var O=arguments.length,P=O<3?g:u===null?u=Object.getOwnPropertyDescriptor(g,d):u,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(_,g,d,u);else for(var j=_.length-1;j>=0;j--)(K=_[j])&&(P=(O<3?K(P):O>3?K(g,d,P):K(g,d))||P);return O>3&&P&&Object.defineProperty(g,d,P),P},t=function(_,g){return function(d,u){g(d,u,_)}};function r(_){return _.command!==void 0}class i{constructor(g){this.id=i._idPool++,this._debugName=g}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const o=(0,e.yh)("menuService"),m=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new W.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:_=>_===i.CommandPalette}}addCommand(_){return this.addCommands(J.$.single(_))}addCommands(_){for(const g of _)this._commands.set(g.id,g);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,V.OF)(()=>{let g=!1;for(const d of _)g=this._commands.delete(d.id)||g;g&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(_){return this._commands.get(_)}getCommands(){const _=new Map;return this._commands.forEach((g,d)=>_.set(d,g)),_}appendMenuItem(_,g){return this.appendMenuItems(J.$.single({id:_,item:g}))}appendMenuItems(_){const g=new Set,d=new p.S;for(const{id:u,item:O}of _){let P=this._menuItems.get(u);P||(P=new p.S,this._menuItems.set(u,P)),d.push(P.push(O)),g.add(u)}return this._onDidChangeMenu.fire(g),(0,V.OF)(()=>{if(d.size>0){for(let u of d)u();this._onDidChangeMenu.fire(g),d.clear()}})}getMenuItems(_){let g;return this._menuItems.has(_)?g=[...this._menuItems.get(_)]:g=[],_===i.CommandPalette&&this._appendImplicitItems(g),g}_appendImplicitItems(_){const g=new Set;for(const d of _)r(d)&&(g.add(d.command.id),d.alt&&g.add(d.alt.id));this._commands.forEach((d,u)=>{g.has(u)||_.push({command:d})})}};class b extends N.wY{constructor(g,d,u,O){super(`submenuitem.${g.submenu.id}`,typeof g.title=="string"?g.title:g.title.value,[],"submenu"),this.item=g,this._menuService=d,this._contextKeyService=u,this._options=O}get actions(){const g=[],d=this._menuService.createMenu(this.item.submenu,this._contextKeyService),u=d.getActions(this._options);d.dispose();for(const[,O]of u)O.length>0&&(g.push(...O),g.push(new N.Z0));return g.length&&g.pop(),g}}let E=class ba{constructor(g,d,u,O,P){var K,j;if(this._commandService=P,this.id=g.id,this.label=u!=null&&u.renderShortTitle&&g.shortTitle?typeof g.shortTitle=="string"?g.shortTitle:g.shortTitle.value:typeof g.title=="string"?g.title:g.title.value,this.tooltip=(j=typeof g.tooltip=="string"?g.tooltip:(K=g.tooltip)===null||K===void 0?void 0:K.value)!==null&&j!==void 0?j:"",this.enabled=!g.precondition||O.contextMatchesRules(g.precondition),this.checked=void 0,g.toggled){const X=g.toggled.condition?g.toggled:{condition:g.toggled};this.checked=O.contextMatchesRules(X.condition),this.checked&&X.tooltip&&(this.tooltip=typeof X.tooltip=="string"?X.tooltip:X.tooltip.value),X.title&&(this.label=typeof X.title=="string"?X.title:X.title.value)}this.item=g,this.alt=d?new ba(d,void 0,u,O,P):void 0,this._options=u,s.kS.isThemeIcon(g.icon)&&(this.class=D.dT.asClassName(g.icon))}dispose(){}run(...g){var d,u;let O=[];return!((d=this._options)===null||d===void 0)&&d.arg&&(O=[...O,this._options.arg]),!((u=this._options)===null||u===void 0)&&u.shouldForwardArgs&&(O=[...O,...g]),this._commandService.executeCommand(this.id,...O)}};E=f([t(3,G.i6),t(4,$.H)],E)},35884:function(Kt,Fe,l){"use strict";l.d(Fe,{H:function(){return $},P:function(){return G}});var N=l(4348),D=l(88226),W=l(69323),J=l(34502),V=l(72999),p=l(16925);const $=(0,p.yh)("commandService"),G=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new N.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,s){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!s)throw new Error("invalid command");return this.registerCommand({id:e,handler:s})}if(e.description){const o=[];for(let b of e.description.args)o.push(b.constraint);const m=e.handler;e.handler=function(b,...E){return(0,V.D8)(E,o),m(b,...E)}}const{id:f}=e;let t=this._commands.get(f);t||(t=new J.S,this._commands.set(f,t));let r=t.unshift(e),i=(0,W.OF)(()=>{r();const o=this._commands.get(f);o!=null&&o.isEmpty()&&this._commands.delete(f)});return this._onDidRegisterCommand.fire(f),i}registerCommandAlias(e,s){return G.registerCommand(e,(f,...t)=>f.get($).executeCommand(s,...t))}getCommand(e){const s=this._commands.get(e);if(!(!s||s.isEmpty()))return D.$.first(s)}getCommands(){const e=new Map;for(const s of this._commands.keys()){const f=this.getCommand(s);f&&e.set(s,f)}return e}};G.registerCommand("noop",()=>{})},90689:function(Kt,Fe,l){"use strict";l.d(Fe,{Ao:function(){return $},Eq:function(){return x},Fb:function(){return G},K8:function(){return R},i6:function(){return Se},uy:function(){return U}});var N=l(23345),D=l(82983),W=l(16925);let J=N.WE||"";const V=new Map;V.set("false",!1),V.set("true",!0),V.set("isMac",N.dz),V.set("isLinux",N.IJ),V.set("isWindows",N.ED),V.set("isWeb",N.$L),V.set("isMacNative",N.dz&&!N.$L),V.set("isEdge",J.indexOf("Edg/")>=0),V.set("isFirefox",J.indexOf("Firefox")>=0),V.set("isChrome",J.indexOf("Chrome")>=0),V.set("isSafari",J.indexOf("Safari")>=0);const p=Object.prototype.hasOwnProperty;class ${static has(n){return t.create(n)}static equals(n,a){return r.create(n,a)}static regex(n,a){return O.create(n,a)}static not(n){return b.create(n)}static and(...n){return j.create(n,null)}static or(...n){return X.create(n,null,!0)}static deserialize(n,a=!1){if(n)return this._deserializeOrExpression(n,a)}static _deserializeOrExpression(n,a){let h=n.split("||");return X.create(h.map(I=>this._deserializeAndExpression(I,a)),null,!0)}static _deserializeAndExpression(n,a){let h=n.split("&&");return j.create(h.map(I=>this._deserializeOne(I,a)),null)}static _deserializeOne(n,a){if(n=n.trim(),n.indexOf("!=")>=0){let h=n.split("!=");return m.create(h[0].trim(),this._deserializeValue(h[1],a))}if(n.indexOf("==")>=0){let h=n.split("==");return r.create(h[0].trim(),this._deserializeValue(h[1],a))}if(n.indexOf("=~")>=0){let h=n.split("=~");return O.create(h[0].trim(),this._deserializeRegexValue(h[1],a))}if(n.indexOf(" in ")>=0){let h=n.split(" in ");return i.create(h[0].trim(),h[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(n)){const h=n.split(">=");return g.create(h[0].trim(),h[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(n)){const h=n.split(">");return _.create(h[0].trim(),h[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(n)){const h=n.split("<=");return u.create(h[0].trim(),h[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(n)){const h=n.split("<");return d.create(h[0].trim(),h[1].trim())}return/^\!\s*/.test(n)?b.create(n.substr(1).trim()):t.create(n)}static _deserializeValue(n,a){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;let h=/^'([^']*)'$/.exec(n);return h?h[1].trim():n}static _deserializeRegexValue(n,a){if((0,D.m5)(n)){if(a)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let h=n.indexOf("/"),I=n.lastIndexOf("/");if(h===I||h<0){if(a)throw new Error(`bad regexp-value '${n}', missing /-enclosure`);return console.warn(`bad regexp-value '${n}', missing /-enclosure`),null}let re=n.slice(h+1,I),he=n[I+1]==="i"?"i":"";try{return new RegExp(re,he)}catch(we){if(a)throw new Error(`bad regexp-value '${n}', parse error: ${we}`);return console.warn(`bad regexp-value '${n}', parse error: ${we}`),null}}}function G(y,n){const a=y?y.substituteConstants():void 0,h=n?n.substituteConstants():void 0;return!a&&!h?!0:!a||!h?!1:a.equals(h)}function e(y,n){return y.cmp(n)}class s{constructor(){this.type=0}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!1}serialize(){return"false"}keys(){return[]}negate(){return f.INSTANCE}}s.INSTANCE=new s;class f{constructor(){this.type=1}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!0}serialize(){return"true"}keys(){return[]}negate(){return s.INSTANCE}}f.INSTANCE=new f;class t{constructor(n,a){this.key=n,this.negated=a,this.type=2}static create(n,a=null){const h=V.get(n);return typeof h=="boolean"?h?f.INSTANCE:s.INSTANCE:new t(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:v(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=V.get(this.key);return typeof n=="boolean"?n?f.INSTANCE:s.INSTANCE:this}evaluate(n){return!!n.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}class r{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=4}static create(n,a,h=null){if(typeof a=="boolean")return a?t.create(n,h):b.create(n,h);const I=V.get(n);return typeof I=="boolean"?a===(I?"true":"false")?f.INSTANCE:s.INSTANCE:new r(n,a,h)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=V.get(this.key);if(typeof n=="boolean"){const a=n?"true":"false";return this.value===a?f.INSTANCE:s.INSTANCE}return this}evaluate(n){return n.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class i{constructor(n,a){this.key=n,this.valueKey=a,this.type=10,this.negated=null}static create(n,a){return new i(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.valueKey,n.key,n.valueKey)}equals(n){return n.type===this.type?this.key===n.key&&this.valueKey===n.valueKey:!1}substituteConstants(){return this}evaluate(n){const a=n.getValue(this.valueKey),h=n.getValue(this.key);return Array.isArray(a)?a.indexOf(h)>=0:typeof h=="string"&&typeof a=="object"&&a!==null?p.call(a,h):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=o.create(this)),this.negated}}class o{constructor(n){this._actual=n,this.type=11}static create(n){return new o(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class m{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=5}static create(n,a,h=null){if(typeof a=="boolean")return a?b.create(n,h):t.create(n,h);const I=V.get(n);return typeof I=="boolean"?a===(I?"true":"false")?s.INSTANCE:f.INSTANCE:new m(n,a,h)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=V.get(this.key);if(typeof n=="boolean"){const a=n?"true":"false";return this.value===a?s.INSTANCE:f.INSTANCE}return this}evaluate(n){return n.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class b{constructor(n,a){this.key=n,this.negated=a,this.type=3}static create(n,a=null){const h=V.get(n);return typeof h=="boolean"?h?s.INSTANCE:f.INSTANCE:new b(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:v(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=V.get(this.key);return typeof n=="boolean"?n?s.INSTANCE:f.INSTANCE:this}evaluate(n){return!n.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this)),this.negated}}function E(y,n){if(typeof y=="string"){const a=parseFloat(y);isNaN(a)||(y=a)}return typeof y=="string"||typeof y=="number"?n(y):s.INSTANCE}class _{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=12}static create(n,a,h=null){return E(a,I=>new _(n,I,h))}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class g{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=13}static create(n,a,h=null){return E(a,I=>new g(n,I,h))}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this.value,this)),this.negated}}class d{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=14}static create(n,a,h=null){return E(a,I=>new d(n,I,h))}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class u{constructor(n,a,h){this.key=n,this.value=a,this.negated=h,this.type=15}static create(n,a,h=null){return E(a,I=>new u(n,I,h))}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class O{constructor(n,a){this.key=n,this.regexp=a,this.type=7,this.negated=null}static create(n,a){return new O(n,a)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.key<n.key)return-1;if(this.key>n.key)return 1;const a=this.regexp?this.regexp.source:"",h=n.regexp?n.regexp.source:"";return a<h?-1:a>h?1:0}equals(n){if(n.type===this.type){const a=this.regexp?this.regexp.source:"",h=n.regexp?n.regexp.source:"";return this.key===n.key&&a===h}return!1}substituteConstants(){return this}evaluate(n){let a=n.getValue(this.key);return this.regexp?this.regexp.test(a):!1}serialize(){const n=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${n}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(n){this._actual=n,this.type=8}static create(n){return new P(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function K(y){let n=null;for(let a=0,h=y.length;a<h;a++){const I=y[a].substituteConstants();if(y[a]!==I&&n===null){n=[];for(let re=0;re<a;re++)n[re]=y[re]}n!==null&&(n[a]=I)}return n===null?y:n}class j{constructor(n,a){this.expr=n,this.negated=a,this.type=6}static create(n,a){return j._normalizeArr(n,a)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.length<n.expr.length)return-1;if(this.expr.length>n.expr.length)return 1;for(let a=0,h=this.expr.length;a<h;a++){const I=e(this.expr[a],n.expr[a]);if(I!==0)return I}return 0}equals(n){if(n.type===this.type){if(this.expr.length!==n.expr.length)return!1;for(let a=0,h=this.expr.length;a<h;a++)if(!this.expr[a].equals(n.expr[a]))return!1;return!0}return!1}substituteConstants(){const n=K(this.expr);return n===this.expr?this:j.create(n,this.negated)}evaluate(n){for(let a=0,h=this.expr.length;a<h;a++)if(!this.expr[a].evaluate(n))return!1;return!0}static _normalizeArr(n,a){const h=[];let I=!1;for(const re of n)if(re){if(re.type===1){I=!0;continue}if(re.type===0)return s.INSTANCE;if(re.type===6){h.push(...re.expr);continue}h.push(re)}if(h.length===0&&I)return f.INSTANCE;if(h.length!==0){if(h.length===1)return h[0];h.sort(e);for(let re=1;re<h.length;re++)h[re-1].equals(h[re])&&(h.splice(re,1),re--);if(h.length===1)return h[0];for(;h.length>1;){const re=h[h.length-1];if(re.type!==9)break;h.pop();const he=h.pop(),we=h.length===0,Me=X.create(re.expr.map(Ue=>j.create([Ue,he],null)),null,we);Me&&(h.push(Me),h.sort(e))}return h.length===1?h[0]:new j(h,a)}}serialize(){return this.expr.map(n=>n.serialize()).join(" && ")}keys(){const n=[];for(let a of this.expr)n.push(...a.keys());return n}negate(){if(!this.negated){const n=[];for(let a of this.expr)n.push(a.negate());this.negated=X.create(n,this,!0)}return this.negated}}class X{constructor(n,a){this.expr=n,this.negated=a,this.type=9}static create(n,a,h){return X._normalizeArr(n,a,h)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.length<n.expr.length)return-1;if(this.expr.length>n.expr.length)return 1;for(let a=0,h=this.expr.length;a<h;a++){const I=e(this.expr[a],n.expr[a]);if(I!==0)return I}return 0}equals(n){if(n.type===this.type){if(this.expr.length!==n.expr.length)return!1;for(let a=0,h=this.expr.length;a<h;a++)if(!this.expr[a].equals(n.expr[a]))return!1;return!0}return!1}substituteConstants(){const n=K(this.expr);return n===this.expr?this:X.create(n,this.negated,!1)}evaluate(n){for(let a=0,h=this.expr.length;a<h;a++)if(this.expr[a].evaluate(n))return!0;return!1}static _normalizeArr(n,a,h){let I=[],re=!1;if(n){for(let he=0,we=n.length;he<we;he++){const Me=n[he];if(Me){if(Me.type===0){re=!0;continue}if(Me.type===1)return f.INSTANCE;if(Me.type===9){I=I.concat(Me.expr);continue}I.push(Me)}}if(I.length===0&&re)return s.INSTANCE;I.sort(e)}if(I.length!==0){if(I.length===1)return I[0];for(let he=1;he<I.length;he++)I[he-1].equals(I[he])&&(I.splice(he,1),he--);if(I.length===1)return I[0];if(h){for(let he=0;he<I.length;he++)for(let we=he+1;we<I.length;we++)R(I[he],I[we])&&(I.splice(we,1),we--);if(I.length===1)return I[0]}return new X(I,a)}}serialize(){return this.expr.map(n=>n.serialize()).join(" || ")}keys(){const n=[];for(let a of this.expr)n.push(...a.keys());return n}negate(){if(!this.negated){let n=[];for(let a of this.expr)n.push(a.negate());for(;n.length>1;){const a=n.shift(),h=n.shift(),I=[];for(const he of S(a))for(const we of S(h))I.push(j.create([he,we],null));const re=n.length===0;n.unshift(X.create(I,null,re))}this.negated=n[0]}return this.negated}}class U extends t{constructor(n,a,h){super(n,null),this._defaultValue=a,typeof h=="object"?U._info.push(Object.assign(Object.assign({},h),{key:n})):h!==!0&&U._info.push({key:n,description:h,type:a!=null?typeof a:void 0})}static all(){return U._info.values()}bindTo(n){return n.createKey(this.key,this._defaultValue)}getValue(n){return n.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(n){return r.create(this.key,n)}}U._info=[];const Se=(0,W.yh)("contextKeyService"),x="setContext";function v(y,n){return y<n?-1:y>n?1:0}function w(y,n,a,h){return y<a?-1:y>a?1:n<h?-1:n>h?1:0}function R(y,n){if(n.type===6&&y.type!==9&&y.type!==6){for(const I of n.expr)if(y.equals(I))return!0}const a=y.negate(),h=S(a).concat(S(n));h.sort(e);for(let I=0;I<h.length;I++){const he=h[I].negate();for(let we=I+1;we<h.length;we++){const Me=h[we];if(he.equals(Me))return!0}}return!1}function S(y){return y.type===9?y.expr:[y]}},16925:function(Kt,Fe,l){"use strict";l.d(Fe,{I8:function(){return N},TG:function(){return D},jt:function(){return V},yh:function(){return J}});var N;(function(p){p.serviceIds=new Map,p.DI_TARGET="$di$target",p.DI_DEPENDENCIES="$di$dependencies";function $(G){return G[p.DI_DEPENDENCIES]||[]}p.getServiceDependencies=$})(N||(N={}));const D=J("instantiationService");function W(p,$,G,e){$[N.DI_TARGET]===$?$[N.DI_DEPENDENCIES].push({id:p,index:G,optional:e}):($[N.DI_DEPENDENCIES]=[{id:p,index:G,optional:e}],$[N.DI_TARGET]=$)}function J(p){if(N.serviceIds.has(p))return N.serviceIds.get(p);const $=function(G,e,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");W($,G,s,!1)};return $.toString=()=>p,N.serviceIds.set(p,$),$}function V(p){return function($,G,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");W(p,$,e,!0)}}},44650:function(Kt,Fe,l){"use strict";l.d(Fe,{B:function(){return J}});var N=l(76068),D=l(72999);class W{constructor(){this.data=new Map}add(p,$){N.ok(D.HD(p)),N.ok(D.Kn($)),N.ok(!this.data.has(p),"There is already an extension with this id"),this.data.set(p,$)}as(p){return this.data.get(p)||null}}const J=new W},66213:function(Kt,Fe,l){"use strict";l.d(Fe,{e:function(){return N}});var N;(function(D){D.DARK="dark",D.LIGHT="light",D.HIGH_CONTRAST="hc"})(N||(N={}))},49055:function(Kt,Fe,l){"use strict";l.d(Fe,{EN:function(){return e},IP:function(){return t},Ic:function(){return o},XE:function(){return $},bB:function(){return m},kS:function(){return s},m6:function(){return f}});var N=l(52615),D=l(4348),W=l(69323),J=l(16925),V=l(44650),p=l(66213);const $=(0,J.yh)("themeService");var G;(function(b){function E(_){return _&&typeof _=="object"&&typeof _.id=="string"}b.isThemeColor=E})(G||(G={}));function e(b){return{id:b}}var s;(function(b){function E(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||G.isThemeColor(P.color))}b.isThemeIcon=E;const _=new RegExp(`^\\$\\((${N.dT.iconNameExpression}(?:${N.dT.iconModifierExpression})?)\\)$`);function g(P){const K=_.exec(P);if(!K)return;let[,j]=K;return{id:j}}b.fromString=g;function d(P,K){let j=P.id;const X=j.lastIndexOf("~");return X!==-1&&(j=j.substring(0,X)),K&&(j=`${j}~${K}`),{id:j}}b.modify=d;function u(P,K){var j,X;return P.id===K.id&&((j=P.color)===null||j===void 0?void 0:j.id)===((X=K.color)===null||X===void 0?void 0:X.id)}b.isEqual=u;function O(P,K){return{id:P.id,color:K?e(K):void 0}}b.asThemeIcon=O,b.asClassNameArray=N.dT.asClassNameArray,b.asClassName=N.dT.asClassName,b.asCSSSelector=N.dT.asCSSSelector})(s||(s={}));function f(b){switch(b){case p.e.DARK:return"vs-dark";case p.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const t={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new D.Q5}onColorThemeChange(E){return this.themingParticipants.push(E),this.onThemingParticipantAddedEmitter.fire(E),(0,W.OF)(()=>{const _=this.themingParticipants.indexOf(E);this.themingParticipants.splice(_,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;V.B.add(t.ThemingContribution,i);function o(b){return i.onColorThemeChange(b)}class m extends W.JT{constructor(E){super(),this.themeService=E,this.theme=E.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(_=>this.onThemeChange(_)))}onThemeChange(E){this.theme=E,this.updateStyles()}updateStyles(){}}},16632:function(Kt,Fe,l){"use strict";var N=l(72308),D=l(77321),W=l(49618),J=l(52487),V=l(74416),p=l(92310),$=l.n(p),G=l(18929),e=l(59301),s=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,e.forwardRef)(function(t,r){var i=t.prefixCls,o=i===void 0?"rc-checkbox":i,m=t.className,b=t.style,E=t.checked,_=t.disabled,g=t.defaultChecked,d=g===void 0?!1:g,u=t.type,O=u===void 0?"checkbox":u,P=t.title,K=t.onChange,j=(0,V.Z)(t,s),X=(0,e.useRef)(null),U=(0,e.useRef)(null),Se=(0,G.Z)(d,{value:E}),x=(0,J.Z)(Se,2),v=x[0],w=x[1];(0,e.useImperativeHandle)(r,function(){return{focus:function(n){var a;(a=X.current)===null||a===void 0||a.focus(n)},blur:function(){var n;(n=X.current)===null||n===void 0||n.blur()},input:X.current,nativeElement:U.current}});var R=$()(o,m,(0,W.Z)((0,W.Z)({},"".concat(o,"-checked"),v),"".concat(o,"-disabled"),_)),S=function(n){_||("checked"in t||w(n.target.checked),K==null||K({target:(0,D.Z)((0,D.Z)({},t),{},{type:O,checked:n.target.checked}),stopPropagation:function(){n.stopPropagation()},preventDefault:function(){n.preventDefault()},nativeEvent:n.nativeEvent}))};return e.createElement("span",{className:R,title:P,style:b,ref:U},e.createElement("input",(0,N.Z)({},j,{className:"".concat(o,"-input"),ref:X,onChange:S,disabled:_,checked:!!v,type:O})),e.createElement("span",{className:"".concat(o,"-inner")}))});Fe.Z=f},96478:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return P}});var N=l(72308),D=l(49618),W=l(52487),J=l(74416),V=l(65352),p=l(92310),$=l.n(p),G=l(8654),e=l(59301),s=l(10228),f=l(16089),t=s.Z.ESC,r=s.Z.TAB;function i(K){var j=K.visible,X=K.triggerRef,U=K.onVisibleChange,Se=K.autoFocus,x=K.overlayRef,v=e.useRef(!1),w=function(){if(j){var n,a;(n=X.current)===null||n===void 0||(a=n.focus)===null||a===void 0||a.call(n),U==null||U(!1)}},R=function(){var n;return(n=x.current)!==null&&n!==void 0&&n.focus?(x.current.focus(),v.current=!0,!0):!1},S=function(n){switch(n.keyCode){case t:w();break;case r:{var a=!1;v.current||(a=R()),a?n.preventDefault():w();break}}};e.useEffect(function(){return j?(window.addEventListener("keydown",S),Se&&(0,f.Z)(R,3),function(){window.removeEventListener("keydown",S),v.current=!1}):function(){v.current=!1}},[j])}var o=(0,e.forwardRef)(function(K,j){var X=K.overlay,U=K.arrow,Se=K.prefixCls,x=(0,e.useMemo)(function(){var w;return typeof X=="function"?w=X():w=X,w},[X]),v=(0,G.sQ)(j,(0,G.C4)(x));return e.createElement(e.Fragment,null,U&&e.createElement("div",{className:"".concat(Se,"-arrow")}),e.cloneElement(x,{ref:(0,G.Yr)(x)?v:void 0}))}),m=o,b={adjustX:1,adjustY:1},E=[0,0],_={topLeft:{points:["bl","tl"],overflow:b,offset:[0,-4],targetOffset:E},top:{points:["bc","tc"],overflow:b,offset:[0,-4],targetOffset:E},topRight:{points:["br","tr"],overflow:b,offset:[0,-4],targetOffset:E},bottomLeft:{points:["tl","bl"],overflow:b,offset:[0,4],targetOffset:E},bottom:{points:["tc","bc"],overflow:b,offset:[0,4],targetOffset:E},bottomRight:{points:["tr","br"],overflow:b,offset:[0,4],targetOffset:E}},g=_,d=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function u(K,j){var X,U=K.arrow,Se=U===void 0?!1:U,x=K.prefixCls,v=x===void 0?"rc-dropdown":x,w=K.transitionName,R=K.animation,S=K.align,y=K.placement,n=y===void 0?"bottomLeft":y,a=K.placements,h=a===void 0?g:a,I=K.getPopupContainer,re=K.showAction,he=K.hideAction,we=K.overlayClassName,Me=K.overlayStyle,Ue=K.visible,Et=K.trigger,ve=Et===void 0?["hover"]:Et,We=K.autoFocus,vt=K.overlay,Ot=K.children,lt=K.onVisibleChange,Z=(0,J.Z)(K,d),M=e.useState(),H=(0,W.Z)(M,2),A=H[0],te=H[1],ce="visible"in K?Ue:A,C=e.useRef(null),c=e.useRef(null),k=e.useRef(null);e.useImperativeHandle(j,function(){return C.current});var B=function(Be){te(Be),lt==null||lt(Be)};i({visible:ce,triggerRef:k,onVisibleChange:B,autoFocus:We,overlayRef:c});var T=function(Be){var ke=K.onOverlayClick;te(!1),ke&&ke(Be)},z=function(){return e.createElement(m,{ref:c,overlay:vt,prefixCls:v,arrow:Se})},L=function(){return typeof vt=="function"?z:z()},ne=function(){var Be=K.minOverlayWidthMatchTrigger,ke=K.alignPoint;return"minOverlayWidthMatchTrigger"in K?Be:!ke},ee=function(){var Be=K.openClassName;return Be!==void 0?Be:"".concat(v,"-open")},le=e.cloneElement(Ot,{className:$()((X=Ot.props)===null||X===void 0?void 0:X.className,ce&&ee()),ref:(0,G.Yr)(Ot)?(0,G.sQ)(k,(0,G.C4)(Ot)):void 0}),pe=he;return!pe&&ve.indexOf("contextMenu")!==-1&&(pe=["click"]),e.createElement(V.Z,(0,N.Z)({builtinPlacements:h},Z,{prefixCls:v,ref:C,popupClassName:$()(we,(0,D.Z)({},"".concat(v,"-show-arrow"),Se)),popupStyle:Me,action:ve,showAction:re,hideAction:pe,popupPlacement:n,popupAlign:S,popupTransitionName:w,popupAnimation:R,popupVisible:ce,stretch:ne()?"minWidth":"",popup:L(),onPopupVisibleChange:B,onPopupClick:T,getPopupContainer:I}),le)}var O=e.forwardRef(u),P=O},66003:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return $}});var N=l(74416),D=l(77321),W=l(62853),J=l(59301),V=["show"];function p(G,e){if(!e.max)return!0;var s=e.strategy(G);return s<=e.max}function $(G,e){return J.useMemo(function(){var s={};e&&(s.show=(0,W.Z)(e)==="object"&&e.formatter?e.formatter:!!e),s=(0,D.Z)((0,D.Z)({},s),G);var f=s,t=f.show,r=(0,N.Z)(f,V);return(0,D.Z)((0,D.Z)({},r),{},{show:!!t,showFormatter:typeof t=="function"?t:void 0,strategy:r.strategy||function(i){return i.length}})},[G,e])}},36901:function(Kt,Fe,l){"use strict";l.r(Fe),l.d(Fe,{BaseInput:function(){return s},default:function(){return g}});var N=l(77321),D=l(72308),W=l(49618),J=l(62853),V=l(92310),p=l.n(V),$=l(59301),G=l(30292),e=$.forwardRef(function(d,u){var O,P,K,j=d.inputElement,X=d.children,U=d.prefixCls,Se=d.prefix,x=d.suffix,v=d.addonBefore,w=d.addonAfter,R=d.className,S=d.style,y=d.disabled,n=d.readOnly,a=d.focused,h=d.triggerFocus,I=d.allowClear,re=d.value,he=d.handleReset,we=d.hidden,Me=d.classes,Ue=d.classNames,Et=d.dataAttrs,ve=d.styles,We=d.components,vt=d.onClear,Ot=X!=null?X:j,lt=(We==null?void 0:We.affixWrapper)||"span",Z=(We==null?void 0:We.groupWrapper)||"span",M=(We==null?void 0:We.wrapper)||"span",H=(We==null?void 0:We.groupAddon)||"span",A=(0,$.useRef)(null),te=function(Te){var De;(De=A.current)!==null&&De!==void 0&&De.contains(Te.target)&&(h==null||h())},ce=(0,G.X3)(d),C=(0,$.cloneElement)(Ot,{value:re,className:p()((O=Ot.props)===null||O===void 0?void 0:O.className,!ce&&(Ue==null?void 0:Ue.variant))||null}),c=(0,$.useRef)(null);if($.useImperativeHandle(u,function(){return{nativeElement:c.current||A.current}}),ce){var k=null;if(I){var B=!y&&!n&&re,T="".concat(U,"-clear-icon"),z=(0,J.Z)(I)==="object"&&I!==null&&I!==void 0&&I.clearIcon?I.clearIcon:"\u2716";k=$.createElement("button",{type:"button",tabIndex:-1,onClick:function(Te){he==null||he(Te),vt==null||vt()},onMouseDown:function(Te){return Te.preventDefault()},className:p()(T,(0,W.Z)((0,W.Z)({},"".concat(T,"-hidden"),!B),"".concat(T,"-has-suffix"),!!x))},z)}var L="".concat(U,"-affix-wrapper"),ne=p()(L,(0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)({},"".concat(U,"-disabled"),y),"".concat(L,"-disabled"),y),"".concat(L,"-focused"),a),"".concat(L,"-readonly"),n),"".concat(L,"-input-with-clear-btn"),x&&I&&re),Me==null?void 0:Me.affixWrapper,Ue==null?void 0:Ue.affixWrapper,Ue==null?void 0:Ue.variant),ee=(x||I)&&$.createElement("span",{className:p()("".concat(U,"-suffix"),Ue==null?void 0:Ue.suffix),style:ve==null?void 0:ve.suffix},k,x);C=$.createElement(lt,(0,D.Z)({className:ne,style:ve==null?void 0:ve.affixWrapper,onClick:te},Et==null?void 0:Et.affixWrapper,{ref:A}),Se&&$.createElement("span",{className:p()("".concat(U,"-prefix"),Ue==null?void 0:Ue.prefix),style:ve==null?void 0:ve.prefix},Se),C,ee)}if((0,G.He)(d)){var le="".concat(U,"-group"),pe="".concat(le,"-addon"),ze="".concat(le,"-wrapper"),Be=p()("".concat(U,"-wrapper"),le,Me==null?void 0:Me.wrapper,Ue==null?void 0:Ue.wrapper),ke=p()(ze,(0,W.Z)({},"".concat(ze,"-disabled"),y),Me==null?void 0:Me.group,Ue==null?void 0:Ue.groupWrapper);C=$.createElement(Z,{className:ke,ref:c},$.createElement(M,{className:Be},v&&$.createElement(H,{className:pe},v),C,w&&$.createElement(H,{className:pe},w)))}return $.cloneElement(C,{className:p()((P=C.props)===null||P===void 0?void 0:P.className,R)||null,style:(0,N.Z)((0,N.Z)({},(K=C.props)===null||K===void 0?void 0:K.style),S),hidden:we})}),s=e,f=l(80702),t=l(52487),r=l(74416),i=l(18929),o=l(2738),m=l(66003),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],E=(0,$.forwardRef)(function(d,u){var O=d.autoComplete,P=d.onChange,K=d.onFocus,j=d.onBlur,X=d.onPressEnter,U=d.onKeyDown,Se=d.onKeyUp,x=d.prefixCls,v=x===void 0?"rc-input":x,w=d.disabled,R=d.htmlSize,S=d.className,y=d.maxLength,n=d.suffix,a=d.showCount,h=d.count,I=d.type,re=I===void 0?"text":I,he=d.classes,we=d.classNames,Me=d.styles,Ue=d.onCompositionStart,Et=d.onCompositionEnd,ve=(0,r.Z)(d,b),We=(0,$.useState)(!1),vt=(0,t.Z)(We,2),Ot=vt[0],lt=vt[1],Z=(0,$.useRef)(!1),M=(0,$.useRef)(!1),H=(0,$.useRef)(null),A=(0,$.useRef)(null),te=function(rt){H.current&&(0,G.nH)(H.current,rt)},ce=(0,i.Z)(d.defaultValue,{value:d.value}),C=(0,t.Z)(ce,2),c=C[0],k=C[1],B=c==null?"":String(c),T=(0,$.useState)(null),z=(0,t.Z)(T,2),L=z[0],ne=z[1],ee=(0,m.Z)(h,a),le=ee.max||y,pe=ee.strategy(B),ze=!!le&&pe>le;(0,$.useImperativeHandle)(u,function(){var mt;return{focus:te,blur:function(){var It;(It=H.current)===null||It===void 0||It.blur()},setSelectionRange:function(It,Qt,Ut){var en;(en=H.current)===null||en===void 0||en.setSelectionRange(It,Qt,Ut)},select:function(){var It;(It=H.current)===null||It===void 0||It.select()},input:H.current,nativeElement:((mt=A.current)===null||mt===void 0?void 0:mt.nativeElement)||H.current}}),(0,$.useEffect)(function(){M.current&&(M.current=!1),lt(function(mt){return mt&&w?!1:mt})},[w]);var Be=function(rt,It,Qt){var Ut=It;if(!Z.current&&ee.exceedFormatter&&ee.max&&ee.strategy(It)>ee.max){if(Ut=ee.exceedFormatter(It,{max:ee.max}),It!==Ut){var en,qt;ne([((en=H.current)===null||en===void 0?void 0:en.selectionStart)||0,((qt=H.current)===null||qt===void 0?void 0:qt.selectionEnd)||0])}}else if(Qt.source==="compositionEnd")return;k(Ut),H.current&&(0,G.rJ)(H.current,rt,P,Ut)};(0,$.useEffect)(function(){if(L){var mt;(mt=H.current)===null||mt===void 0||mt.setSelectionRange.apply(mt,(0,f.Z)(L))}},[L]);var ke=function(rt){Be(rt,rt.target.value,{source:"change"})},de=function(rt){Z.current=!1,Be(rt,rt.currentTarget.value,{source:"compositionEnd"}),Et==null||Et(rt)},Te=function(rt){X&&rt.key==="Enter"&&!M.current&&(M.current=!0,X(rt)),U==null||U(rt)},De=function(rt){rt.key==="Enter"&&(M.current=!1),Se==null||Se(rt)},Ne=function(rt){lt(!0),K==null||K(rt)},ut=function(rt){M.current&&(M.current=!1),lt(!1),j==null||j(rt)},kt=function(rt){k(""),te(),H.current&&(0,G.rJ)(H.current,rt,P)},Xe=ze&&"".concat(v,"-out-of-range"),Tt=function(){var rt=(0,o.Z)(d,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return $.createElement("input",(0,D.Z)({autoComplete:O},rt,{onChange:ke,onFocus:Ne,onBlur:ut,onKeyDown:Te,onKeyUp:De,className:p()(v,(0,W.Z)({},"".concat(v,"-disabled"),w),we==null?void 0:we.input),style:Me==null?void 0:Me.input,ref:H,size:R,type:re,onCompositionStart:function(Qt){Z.current=!0,Ue==null||Ue(Qt)},onCompositionEnd:de}))},nn=function(){var rt=Number(le)>0;if(n||ee.show){var It=ee.showFormatter?ee.showFormatter({value:B,count:pe,maxLength:le}):"".concat(pe).concat(rt?" / ".concat(le):"");return $.createElement($.Fragment,null,ee.show&&$.createElement("span",{className:p()("".concat(v,"-show-count-suffix"),(0,W.Z)({},"".concat(v,"-show-count-has-suffix"),!!n),we==null?void 0:we.count),style:(0,N.Z)({},Me==null?void 0:Me.count)},It),n)}return null};return $.createElement(s,(0,D.Z)({},ve,{prefixCls:v,className:p()(S,Xe),handleReset:kt,value:B,focused:Ot,triggerFocus:te,suffix:nn(),disabled:w,classes:he,classNames:we,styles:Me}),Tt())}),_=E,g=_},30292:function(Kt,Fe,l){"use strict";l.d(Fe,{He:function(){return N},X3:function(){return D},nH:function(){return V},rJ:function(){return J}});function N(p){return!!(p.addonBefore||p.addonAfter)}function D(p){return!!(p.prefix||p.suffix||p.allowClear)}function W(p,$,G){var e=$.cloneNode(!0),s=Object.create(p,{target:{value:e},currentTarget:{value:e}});return e.value=G,typeof $.selectionStart=="number"&&typeof $.selectionEnd=="number"&&(e.selectionStart=$.selectionStart,e.selectionEnd=$.selectionEnd),e.setSelectionRange=function(){$.setSelectionRange.apply($,arguments)},s}function J(p,$,G,e){if(G){var s=$;if($.type==="click"){s=W($,p,""),G(s);return}if(p.type!=="file"&&e!==void 0){s=W($,p,e),G(s);return}G(s)}}function V(p,$){if(p){p.focus($);var G=$||{},e=G.cursor;if(e){var s=p.value.length;switch(e){case"start":p.setSelectionRange(0,0);break;case"end":p.setSelectionRange(s,s);break;default:p.setSelectionRange(0,s)}}}}},28321:function(Kt,Fe,l){"use strict";l.d(Fe,{iz:function(){return Le},ck:function(){return Ut},BW:function(){return nt},sN:function(){return Ut},Wd:function(){return Y},ZP:function(){return Ge},Xl:function(){return X}});var N=l(72308),D=l(49618),W=l(77321),J=l(80702),V=l(52487),p=l(74416),$=l(92310),G=l.n($),e=l(11780),s=l(18929),f=l(13697),t=l(48736),r=l(59301),i=l(4676),o=r.createContext(null);function m(Q,me){return Q===void 0?null:"".concat(Q,"-").concat(me)}function b(Q){var me=r.useContext(o);return m(me,Q)}var E=l(80547),_=["children","locked"],g=r.createContext(null);function d(Q,me){var Re=(0,W.Z)({},Q);return Object.keys(me).forEach(function(_e){var Ze=me[_e];Ze!==void 0&&(Re[_e]=Ze)}),Re}function u(Q){var me=Q.children,Re=Q.locked,_e=(0,p.Z)(Q,_),Ze=r.useContext(g),xe=(0,E.Z)(function(){return d(Ze,_e)},[Ze,_e],function(Ke,He){return!Re&&(Ke[0]!==He[0]||!(0,f.Z)(Ke[1],He[1],!0))});return r.createElement(g.Provider,{value:xe},me)}var O=[],P=r.createContext(null);function K(){return r.useContext(P)}var j=r.createContext(O);function X(Q){var me=r.useContext(j);return r.useMemo(function(){return Q!==void 0?[].concat((0,J.Z)(me),[Q]):me},[me,Q])}var U=r.createContext(null),Se=r.createContext({}),x=Se,v=l(29194);function w(Q){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,v.Z)(Q)){var Re=Q.nodeName.toLowerCase(),_e=["input","select","textarea","button"].includes(Re)||Q.isContentEditable||Re==="a"&&!!Q.getAttribute("href"),Ze=Q.getAttribute("tabindex"),xe=Number(Ze),Ke=null;return Ze&&!Number.isNaN(xe)?Ke=xe:_e&&Ke===null&&(Ke=0),_e&&Q.disabled&&(Ke=null),Ke!==null&&(Ke>=0||me&&Ke<0)}return!1}function R(Q){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=(0,J.Z)(Q.querySelectorAll("*")).filter(function(_e){return w(_e,me)});return w(Q,me)&&Re.unshift(Q),Re}var S=null;function y(){S=document.activeElement}function n(){S=null}function a(){if(S)try{S.focus()}catch(Q){}}function h(Q,me){if(me.keyCode===9){var Re=R(Q),_e=Re[me.shiftKey?0:Re.length-1],Ze=_e===document.activeElement||Q===document.activeElement;if(Ze){var xe=Re[me.shiftKey?Re.length-1:0];xe.focus(),me.preventDefault()}}}var I=l(10228),re=l(16089),he=I.Z.LEFT,we=I.Z.RIGHT,Me=I.Z.UP,Ue=I.Z.DOWN,Et=I.Z.ENTER,ve=I.Z.ESC,We=I.Z.HOME,vt=I.Z.END,Ot=[Me,Ue,he,we];function lt(Q,me,Re,_e){var Ze,xe="prev",Ke="next",He="children",_t="parent";if(Q==="inline"&&_e===Et)return{inlineTrigger:!0};var ot=(0,D.Z)((0,D.Z)({},Me,xe),Ue,Ke),bt=(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},he,Re?Ke:xe),we,Re?xe:Ke),Ue,He),Et,He),wt=(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},Me,xe),Ue,Ke),Et,He),ve,_t),he,Re?He:_t),we,Re?_t:He),At={inline:ot,horizontal:bt,vertical:wt,inlineSub:ot,horizontalSub:wt,verticalSub:wt},Bt=(Ze=At["".concat(Q).concat(me?"":"Sub")])===null||Ze===void 0?void 0:Ze[_e];switch(Bt){case xe:return{offset:-1,sibling:!0};case Ke:return{offset:1,sibling:!0};case _t:return{offset:-1,sibling:!1};case He:return{offset:1,sibling:!1};default:return null}}function Z(Q){for(var me=Q;me;){if(me.getAttribute("data-menu-list"))return me;me=me.parentElement}return null}function M(Q,me){for(var Re=Q||document.activeElement;Re;){if(me.has(Re))return Re;Re=Re.parentElement}return null}function H(Q,me){var Re=R(Q,!0);return Re.filter(function(_e){return me.has(_e)})}function A(Q,me,Re){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Q)return null;var Ze=H(Q,me),xe=Ze.length,Ke=Ze.findIndex(function(He){return Re===He});return _e<0?Ke===-1?Ke=xe-1:Ke-=1:_e>0&&(Ke+=1),Ke=(Ke+xe)%xe,Ze[Ke]}var te=function(me,Re){var _e=new Set,Ze=new Map,xe=new Map;return me.forEach(function(Ke){var He=document.querySelector("[data-menu-id='".concat(m(Re,Ke),"']"));He&&(_e.add(He),xe.set(He,Ke),Ze.set(Ke,He))}),{elements:_e,key2element:Ze,element2key:xe}};function ce(Q,me,Re,_e,Ze,xe,Ke,He,_t,ot){var bt=r.useRef(),wt=r.useRef();wt.current=me;var At=function(){re.Z.cancel(bt.current)};return r.useEffect(function(){return function(){At()}},[]),function(Bt){var Mt=Bt.which;if([].concat(Ot,[Et,ve,We,vt]).includes(Mt)){var St=xe(),Rt=te(St,_e),Xt=Rt,qe=Xt.elements,Ve=Xt.key2element,at=Xt.element2key,an=Ve.get(me),dn=M(an,qe),xn=at.get(dn),On=lt(Q,Ke(xn,!0).length===1,Re,Mt);if(!On&&Mt!==We&&Mt!==vt)return;(Ot.includes(Mt)||[We,vt].includes(Mt))&&Bt.preventDefault();var F=function(Oe){if(Oe){var ae=Oe,ue=Oe.querySelector("a");ue!=null&&ue.getAttribute("href")&&(ae=ue);var ye=at.get(Oe);He(ye),At(),bt.current=(0,re.Z)(function(){wt.current===ye&&ae.focus()})}};if([We,vt].includes(Mt)||On.sibling||!dn){var se;!dn||Q==="inline"?se=Ze.current:se=Z(dn);var ie,oe=H(se,qe);Mt===We?ie=oe[0]:Mt===vt?ie=oe[oe.length-1]:ie=A(se,qe,dn,On.offset),F(ie)}else if(On.inlineTrigger)_t(xn);else if(On.offset>0)_t(xn,!0),At(),bt.current=(0,re.Z)(function(){Rt=te(St,_e);var Ee=dn.getAttribute("aria-controls"),Oe=document.getElementById(Ee),ae=A(Oe,Rt.elements);F(ae)},5);else if(On.offset<0){var ge=Ke(xn,!0),fe=ge[ge.length-2],be=Ve.get(fe);_t(fe,!1),F(be)}}ot==null||ot(Bt)}}function C(Q){Promise.resolve().then(Q)}var c="__RC_UTIL_PATH_SPLIT__",k=function(me){return me.join(c)},B=function(me){return me.split(c)},T="rc-menu-more";function z(){var Q=r.useState({}),me=(0,V.Z)(Q,2),Re=me[1],_e=(0,r.useRef)(new Map),Ze=(0,r.useRef)(new Map),xe=r.useState([]),Ke=(0,V.Z)(xe,2),He=Ke[0],_t=Ke[1],ot=(0,r.useRef)(0),bt=(0,r.useRef)(!1),wt=function(){bt.current||Re({})},At=(0,r.useCallback)(function(Ve,at){var an=k(at);Ze.current.set(an,Ve),_e.current.set(Ve,an),ot.current+=1;var dn=ot.current;C(function(){dn===ot.current&&wt()})},[]),Bt=(0,r.useCallback)(function(Ve,at){var an=k(at);Ze.current.delete(an),_e.current.delete(Ve)},[]),Mt=(0,r.useCallback)(function(Ve){_t(Ve)},[]),St=(0,r.useCallback)(function(Ve,at){var an=_e.current.get(Ve)||"",dn=B(an);return at&&He.includes(dn[0])&&dn.unshift(T),dn},[He]),Rt=(0,r.useCallback)(function(Ve,at){return Ve.filter(function(an){return an!==void 0}).some(function(an){var dn=St(an,!0);return dn.includes(at)})},[St]),Xt=function(){var at=(0,J.Z)(_e.current.keys());return He.length&&at.push(T),at},qe=(0,r.useCallback)(function(Ve){var at="".concat(_e.current.get(Ve)).concat(c),an=new Set;return(0,J.Z)(Ze.current.keys()).forEach(function(dn){dn.startsWith(at)&&an.add(Ze.current.get(dn))}),an},[]);return r.useEffect(function(){return function(){bt.current=!0}},[]),{registerPath:At,unregisterPath:Bt,refreshOverflowKeys:Mt,isSubPathKey:Rt,getKeyPath:St,getKeys:Xt,getSubPathKeys:qe}}function L(Q){var me=r.useRef(Q);me.current=Q;var Re=r.useCallback(function(){for(var _e,Ze=arguments.length,xe=new Array(Ze),Ke=0;Ke<Ze;Ke++)xe[Ke]=arguments[Ke];return(_e=me.current)===null||_e===void 0?void 0:_e.call.apply(_e,[me].concat(xe))},[]);return Q?Re:void 0}var ne=Math.random().toFixed(5).toString().slice(2),ee=0;function le(Q){var me=(0,s.Z)(Q,{value:Q}),Re=(0,V.Z)(me,2),_e=Re[0],Ze=Re[1];return r.useEffect(function(){ee+=1;var xe="".concat(ne,"-").concat(ee);Ze("rc-menu-uuid-".concat(xe))},[]),_e}var pe=l(96949),ze=l(55090),Be=l(77205),ke=l(38793),de=l(2738),Te=l(8654);function De(Q,me,Re,_e){var Ze=r.useContext(g),xe=Ze.activeKey,Ke=Ze.onActive,He=Ze.onInactive,_t={active:xe===Q};return me||(_t.onMouseEnter=function(ot){Re==null||Re({key:Q,domEvent:ot}),Ke(Q)},_t.onMouseLeave=function(ot){_e==null||_e({key:Q,domEvent:ot}),He(Q)}),_t}function Ne(Q){var me=r.useContext(g),Re=me.mode,_e=me.rtl,Ze=me.inlineIndent;if(Re!=="inline")return null;var xe=Q;return _e?{paddingRight:xe*Ze}:{paddingLeft:xe*Ze}}function ut(Q){var me=Q.icon,Re=Q.props,_e=Q.children,Ze;return me===null||me===!1?null:(typeof me=="function"?Ze=r.createElement(me,(0,W.Z)({},Re)):typeof me!="boolean"&&(Ze=me),Ze||_e||null)}var kt=["item"];function Xe(Q){var me=Q.item,Re=(0,p.Z)(Q,kt);return Object.defineProperty(Re,"item",{get:function(){return(0,t.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),me}}),Re}var Tt=["title","attribute","elementRef"],nn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],mt=["active"],rt=function(Q){(0,Be.Z)(Re,Q);var me=(0,ke.Z)(Re);function Re(){return(0,pe.Z)(this,Re),me.apply(this,arguments)}return(0,ze.Z)(Re,[{key:"render",value:function(){var Ze=this.props,xe=Ze.title,Ke=Ze.attribute,He=Ze.elementRef,_t=(0,p.Z)(Ze,Tt),ot=(0,de.Z)(_t,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,t.ZP)(!Ke,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(e.Z.Item,(0,N.Z)({},Ke,{title:typeof xe=="string"?xe:void 0},ot,{ref:He}))}}]),Re}(r.Component),It=r.forwardRef(function(Q,me){var Re=Q.style,_e=Q.className,Ze=Q.eventKey,xe=Q.warnKey,Ke=Q.disabled,He=Q.itemIcon,_t=Q.children,ot=Q.role,bt=Q.onMouseEnter,wt=Q.onMouseLeave,At=Q.onClick,Bt=Q.onKeyDown,Mt=Q.onFocus,St=(0,p.Z)(Q,nn),Rt=b(Ze),Xt=r.useContext(g),qe=Xt.prefixCls,Ve=Xt.onItemClick,at=Xt.disabled,an=Xt.overflowDisabled,dn=Xt.itemIcon,xn=Xt.selectedKeys,On=Xt.onActive,F=r.useContext(x),se=F._internalRenderMenuItem,ie="".concat(qe,"-item"),oe=r.useRef(),ge=r.useRef(),fe=at||Ke,be=(0,Te.x1)(me,ge),Ee=X(Ze),Oe=function(Nt){return{key:Ze,keyPath:(0,J.Z)(Ee).reverse(),item:oe.current,domEvent:Nt}},ae=He||dn,ue=De(Ze,fe,bt,wt),ye=ue.active,Ae=(0,p.Z)(ue,mt),Pe=xn.includes(Ze),tt=Ne(Ee.length),Dt=function(Nt){if(!fe){var ln=Oe(Nt);At==null||At(Xe(ln)),Ve(ln)}},Ct=function(Nt){if(Bt==null||Bt(Nt),Nt.which===I.Z.ENTER){var ln=Oe(Nt);At==null||At(Xe(ln)),Ve(ln)}},zt=function(Nt){On(Ze),Mt==null||Mt(Nt)},Pt={};Q.role==="option"&&(Pt["aria-selected"]=Pe);var jt=r.createElement(rt,(0,N.Z)({ref:oe,elementRef:be,role:ot===null?"none":ot||"menuitem",tabIndex:Ke?null:-1,"data-menu-id":an&&Rt?null:Rt},(0,de.Z)(St,["extra"]),Ae,Pt,{component:"li","aria-disabled":Ke,style:(0,W.Z)((0,W.Z)({},tt),Re),className:G()(ie,(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(ie,"-active"),ye),"".concat(ie,"-selected"),Pe),"".concat(ie,"-disabled"),fe),_e),onClick:Dt,onKeyDown:Ct,onFocus:zt}),_t,r.createElement(ut,{props:(0,W.Z)((0,W.Z)({},Q),{},{isSelected:Pe}),icon:ae}));return se&&(jt=se(jt,Q,{selected:Pe})),jt});function Qt(Q,me){var Re=Q.eventKey,_e=K(),Ze=X(Re);return r.useEffect(function(){if(_e)return _e.registerPath(Re,Ze),function(){_e.unregisterPath(Re,Ze)}},[Ze]),_e?null:r.createElement(It,(0,N.Z)({},Q,{ref:me}))}var Ut=r.forwardRef(Qt),en=["className","children"],qt=function(me,Re){var _e=me.className,Ze=me.children,xe=(0,p.Z)(me,en),Ke=r.useContext(g),He=Ke.prefixCls,_t=Ke.mode,ot=Ke.rtl;return r.createElement("ul",(0,N.Z)({className:G()(He,ot&&"".concat(He,"-rtl"),"".concat(He,"-sub"),"".concat(He,"-").concat(_t==="inline"?"inline":"vertical"),_e),role:"menu"},xe,{"data-menu-list":!0,ref:Re}),Ze)},pt=r.forwardRef(qt);pt.displayName="SubMenuList";var ct=pt,ht=l(11592);function Ht(Q,me){return(0,ht.Z)(Q).map(function(Re,_e){if(r.isValidElement(Re)){var Ze,xe,Ke=Re.key,He=(Ze=(xe=Re.props)===null||xe===void 0?void 0:xe.eventKey)!==null&&Ze!==void 0?Ze:Ke,_t=He==null;_t&&(He="tmp_key-".concat([].concat((0,J.Z)(me),[_e]).join("-")));var ot={key:He,eventKey:He};return r.cloneElement(Re,ot)}return Re})}var bn=l(65352),Ft={adjustX:1,adjustY:1},kn={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},leftTop:{points:["tr","tl"],overflow:Ft},leftBottom:{points:["br","bl"],overflow:Ft},rightTop:{points:["tl","tr"],overflow:Ft},rightBottom:{points:["bl","br"],overflow:Ft}},Wn={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},rightTop:{points:["tr","tl"],overflow:Ft},rightBottom:{points:["br","bl"],overflow:Ft},leftTop:{points:["tl","tr"],overflow:Ft},leftBottom:{points:["bl","br"],overflow:Ft}},rn=null;function yn(Q,me,Re){if(me)return me;if(Re)return Re[Q]||Re.other}var Rn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function wn(Q){var me=Q.prefixCls,Re=Q.visible,_e=Q.children,Ze=Q.popup,xe=Q.popupStyle,Ke=Q.popupClassName,He=Q.popupOffset,_t=Q.disabled,ot=Q.mode,bt=Q.onVisibleChange,wt=r.useContext(g),At=wt.getPopupContainer,Bt=wt.rtl,Mt=wt.subMenuOpenDelay,St=wt.subMenuCloseDelay,Rt=wt.builtinPlacements,Xt=wt.triggerSubMenuAction,qe=wt.forceSubMenuRender,Ve=wt.rootClassName,at=wt.motion,an=wt.defaultMotions,dn=r.useState(!1),xn=(0,V.Z)(dn,2),On=xn[0],F=xn[1],se=Bt?(0,W.Z)((0,W.Z)({},Wn),Rt):(0,W.Z)((0,W.Z)({},kn),Rt),ie=Rn[ot],oe=yn(ot,at,an),ge=r.useRef(oe);ot!=="inline"&&(ge.current=oe);var fe=(0,W.Z)((0,W.Z)({},ge.current),{},{leavedClassName:"".concat(me,"-hidden"),removeOnLeave:!1,motionAppear:!0}),be=r.useRef();return r.useEffect(function(){return be.current=(0,re.Z)(function(){F(Re)}),function(){re.Z.cancel(be.current)}},[Re]),r.createElement(bn.Z,{prefixCls:me,popupClassName:G()("".concat(me,"-popup"),(0,D.Z)({},"".concat(me,"-rtl"),Bt),Ke,Ve),stretch:ot==="horizontal"?"minWidth":null,getPopupContainer:At,builtinPlacements:se,popupPlacement:ie,popupVisible:On,popup:Ze,popupStyle:xe,popupAlign:He&&{offset:He},action:_t?[]:[Xt],mouseEnterDelay:Mt,mouseLeaveDelay:St,onPopupVisibleChange:bt,forceRender:qe,popupMotion:fe,fresh:!0},_e)}var Pn=l(77900);function _n(Q){var me=Q.id,Re=Q.open,_e=Q.keyPath,Ze=Q.children,xe="inline",Ke=r.useContext(g),He=Ke.prefixCls,_t=Ke.forceSubMenuRender,ot=Ke.motion,bt=Ke.defaultMotions,wt=Ke.mode,At=r.useRef(!1);At.current=wt===xe;var Bt=r.useState(!At.current),Mt=(0,V.Z)(Bt,2),St=Mt[0],Rt=Mt[1],Xt=At.current?Re:!1;r.useEffect(function(){At.current&&Rt(!1)},[wt]);var qe=(0,W.Z)({},yn(xe,ot,bt));_e.length>1&&(qe.motionAppear=!1);var Ve=qe.onVisibleChanged;return qe.onVisibleChanged=function(at){return!At.current&&!at&&Rt(!0),Ve==null?void 0:Ve(at)},St?null:r.createElement(u,{mode:xe,locked:!At.current},r.createElement(Pn.default,(0,N.Z)({visible:Xt},qe,{forceRender:_t,removeOnLeave:!1,leavedClassName:"".concat(He,"-hidden")}),function(at){var an=at.className,dn=at.style;return r.createElement(ct,{id:me,className:an,style:dn},Ze)}))}var Nn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Tn=["active"],fn=r.forwardRef(function(Q,me){var Re=Q.style,_e=Q.className,Ze=Q.title,xe=Q.eventKey,Ke=Q.warnKey,He=Q.disabled,_t=Q.internalPopupClose,ot=Q.children,bt=Q.itemIcon,wt=Q.expandIcon,At=Q.popupClassName,Bt=Q.popupOffset,Mt=Q.popupStyle,St=Q.onClick,Rt=Q.onMouseEnter,Xt=Q.onMouseLeave,qe=Q.onTitleClick,Ve=Q.onTitleMouseEnter,at=Q.onTitleMouseLeave,an=(0,p.Z)(Q,Nn),dn=b(xe),xn=r.useContext(g),On=xn.prefixCls,F=xn.mode,se=xn.openKeys,ie=xn.disabled,oe=xn.overflowDisabled,ge=xn.activeKey,fe=xn.selectedKeys,be=xn.itemIcon,Ee=xn.expandIcon,Oe=xn.onItemClick,ae=xn.onOpenChange,ue=xn.onActive,ye=r.useContext(x),Ae=ye._internalRenderSubMenuItem,Pe=r.useContext(U),tt=Pe.isSubPathKey,Dt=X(),Ct="".concat(On,"-submenu"),zt=ie||He,Pt=r.useRef(),jt=r.useRef(),on=bt!=null?bt:be,Nt=wt!=null?wt:Ee,ln=se.includes(xe),tn=!oe&&ln,Jt=tt(fe,xe),cn=De(xe,zt,Ve,at),mn=cn.active,An=(0,p.Z)(cn,Tn),sn=r.useState(!1),hn=(0,V.Z)(sn,2),$t=hn[0],xt=hn[1],Vt=function(dt){zt||xt(dt)},Wt=function(dt){Vt(!0),Rt==null||Rt({key:xe,domEvent:dt})},En=function(dt){Vt(!1),Xt==null||Xt({key:xe,domEvent:dt})},pn=r.useMemo(function(){return mn||(F!=="inline"?$t||tt([ge],xe):!1)},[F,mn,ge,$t,xe,tt]),Cn=Ne(Dt.length),zn=function(dt){zt||(qe==null||qe({key:xe,domEvent:dt}),F==="inline"&&ae(xe,!ln))},Xn=L(function(gt){St==null||St(Xe(gt)),Oe(gt)}),$n=function(dt){F!=="inline"&&ae(xe,dt)},tr=function(){ue(xe)},rr=dn&&"".concat(dn,"-popup"),Gn=r.useMemo(function(){return r.createElement(ut,{icon:F!=="horizontal"?Nt:void 0,props:(0,W.Z)((0,W.Z)({},Q),{},{isOpen:tn,isSubMenu:!0})},r.createElement("i",{className:"".concat(Ct,"-arrow")}))},[F,Nt,Q,tn,Ct]),un=r.createElement("div",(0,N.Z)({role:"menuitem",style:Cn,className:"".concat(Ct,"-title"),tabIndex:zt?null:-1,ref:Pt,title:typeof Ze=="string"?Ze:null,"data-menu-id":oe&&dn?null:dn,"aria-expanded":tn,"aria-haspopup":!0,"aria-controls":rr,"aria-disabled":zt,onClick:zn,onFocus:tr},An),Ze,Gn),In=r.useRef(F);if(F!=="inline"&&Dt.length>1?In.current="vertical":In.current=F,!oe){var Bn=In.current;un=r.createElement(wn,{mode:Bn,prefixCls:Ct,visible:!_t&&tn&&F!=="inline",popupClassName:At,popupOffset:Bt,popupStyle:Mt,popup:r.createElement(u,{mode:Bn==="horizontal"?"vertical":Bn},r.createElement(ct,{id:rr,ref:jt},ot)),disabled:zt,onVisibleChange:$n},un)}var Lt=r.createElement(e.Z.Item,(0,N.Z)({ref:me,role:"none"},an,{component:"li",style:Re,className:G()(Ct,"".concat(Ct,"-").concat(F),_e,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(Ct,"-open"),tn),"".concat(Ct,"-active"),pn),"".concat(Ct,"-selected"),Jt),"".concat(Ct,"-disabled"),zt)),onMouseEnter:Wt,onMouseLeave:En}),un,!oe&&r.createElement(_n,{id:rr,open:tn,keyPath:Dt},ot));return Ae&&(Lt=Ae(Lt,Q,{selected:Jt,active:pn,open:tn,disabled:zt})),r.createElement(u,{onItemClick:Xn,mode:F==="horizontal"?"vertical":F,itemIcon:on,expandIcon:Nt},Lt)}),q=r.forwardRef(function(Q,me){var Re=Q.eventKey,_e=Q.children,Ze=X(Re),xe=Ht(_e,Ze),Ke=K();r.useEffect(function(){if(Ke)return Ke.registerPath(Re,Ze),function(){Ke.unregisterPath(Re,Ze)}},[Ze]);var He;return Ke?He=xe:He=r.createElement(fn,(0,N.Z)({ref:me},Q),xe),r.createElement(j.Provider,{value:Ze},He)}),Y=q,$e=l(62853);function Le(Q){var me=Q.className,Re=Q.style,_e=r.useContext(g),Ze=_e.prefixCls,xe=K();return xe?null:r.createElement("li",{role:"separator",className:G()("".concat(Ze,"-item-divider"),me),style:Re})}var Je=["className","title","eventKey","children"],Qe=r.forwardRef(function(Q,me){var Re=Q.className,_e=Q.title,Ze=Q.eventKey,xe=Q.children,Ke=(0,p.Z)(Q,Je),He=r.useContext(g),_t=He.prefixCls,ot="".concat(_t,"-item-group");return r.createElement("li",(0,N.Z)({ref:me,role:"presentation"},Ke,{onClick:function(wt){return wt.stopPropagation()},className:G()(ot,Re)}),r.createElement("div",{role:"presentation",className:"".concat(ot,"-title"),title:typeof _e=="string"?_e:void 0},_e),r.createElement("ul",{role:"group",className:"".concat(ot,"-list")},xe))}),st=r.forwardRef(function(Q,me){var Re=Q.eventKey,_e=Q.children,Ze=X(Re),xe=Ht(_e,Ze),Ke=K();return Ke?xe:r.createElement(Qe,(0,N.Z)({ref:me},(0,de.Z)(Q,["warnKey"])),xe)}),nt=st,je=["label","children","key","type","extra"];function Ce(Q,me,Re){var _e=me.item,Ze=me.group,xe=me.submenu,Ke=me.divider;return(Q||[]).map(function(He,_t){if(He&&(0,$e.Z)(He)==="object"){var ot=He,bt=ot.label,wt=ot.children,At=ot.key,Bt=ot.type,Mt=ot.extra,St=(0,p.Z)(ot,je),Rt=At!=null?At:"tmp-".concat(_t);return wt||Bt==="group"?Bt==="group"?r.createElement(Ze,(0,N.Z)({key:Rt},St,{title:bt}),Ce(wt,me,Re)):r.createElement(xe,(0,N.Z)({key:Rt},St,{title:bt}),Ce(wt,me,Re)):Bt==="divider"?r.createElement(Ke,(0,N.Z)({key:Rt},St)):r.createElement(_e,(0,N.Z)({key:Rt},St,{extra:Mt}),bt,(!!Mt||Mt===0)&&r.createElement("span",{className:"".concat(Re,"-item-extra")},Mt))}return null}).filter(function(He){return He})}function Ie(Q,me,Re,_e,Ze){var xe=Q,Ke=(0,W.Z)({divider:Le,item:Ut,group:nt,submenu:Y},_e);return me&&(xe=Ce(me,Ke,Ze)),Ht(xe,Re)}var Ye=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ft=[],it=r.forwardRef(function(Q,me){var Re,_e=Q,Ze=_e.prefixCls,xe=Ze===void 0?"rc-menu":Ze,Ke=_e.rootClassName,He=_e.style,_t=_e.className,ot=_e.tabIndex,bt=ot===void 0?0:ot,wt=_e.items,At=_e.children,Bt=_e.direction,Mt=_e.id,St=_e.mode,Rt=St===void 0?"vertical":St,Xt=_e.inlineCollapsed,qe=_e.disabled,Ve=_e.disabledOverflow,at=_e.subMenuOpenDelay,an=at===void 0?.1:at,dn=_e.subMenuCloseDelay,xn=dn===void 0?.1:dn,On=_e.forceSubMenuRender,F=_e.defaultOpenKeys,se=_e.openKeys,ie=_e.activeKey,oe=_e.defaultActiveFirst,ge=_e.selectable,fe=ge===void 0?!0:ge,be=_e.multiple,Ee=be===void 0?!1:be,Oe=_e.defaultSelectedKeys,ae=_e.selectedKeys,ue=_e.onSelect,ye=_e.onDeselect,Ae=_e.inlineIndent,Pe=Ae===void 0?24:Ae,tt=_e.motion,Dt=_e.defaultMotions,Ct=_e.triggerSubMenuAction,zt=Ct===void 0?"hover":Ct,Pt=_e.builtinPlacements,jt=_e.itemIcon,on=_e.expandIcon,Nt=_e.overflowedIndicator,ln=Nt===void 0?"...":Nt,tn=_e.overflowedIndicatorPopupClassName,Jt=_e.getPopupContainer,cn=_e.onClick,mn=_e.onOpenChange,An=_e.onKeyDown,sn=_e.openAnimation,hn=_e.openTransitionName,$t=_e._internalRenderMenuItem,xt=_e._internalRenderSubMenuItem,Vt=_e._internalComponents,Wt=(0,p.Z)(_e,Ye),En=r.useMemo(function(){return[Ie(At,wt,ft,Vt,xe),Ie(At,wt,ft,{},xe)]},[At,wt,Vt]),pn=(0,V.Z)(En,2),Cn=pn[0],zn=pn[1],Xn=r.useState(!1),$n=(0,V.Z)(Xn,2),tr=$n[0],rr=$n[1],Gn=r.useRef(),un=le(Mt),In=Bt==="rtl",Bn=(0,s.Z)(F,{value:se,postState:function(Vn){return Vn||ft}}),Lt=(0,V.Z)(Bn,2),gt=Lt[0],dt=Lt[1],Zt=function(Vn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function pr(){dt(Vn),mn==null||mn(Vn)}Yn?(0,i.flushSync)(pr):pr()},Sn=r.useState(gt),Ln=(0,V.Z)(Sn,2),ir=Ln[0],Jn=Ln[1],ar=r.useRef(!1),yt=r.useMemo(function(){return(Rt==="inline"||Rt==="vertical")&&Xt?["vertical",Xt]:[Rt,!1]},[Rt,Xt]),Yt=(0,V.Z)(yt,2),Dn=Yt[0],gn=Yt[1],Zn=Dn==="inline",lr=r.useState(Dn),jn=(0,V.Z)(lr,2),ur=jn[0],hr=jn[1],Pr=r.useState(gn),Hn=(0,V.Z)(Pr,2),Lr=Hn[0],Kr=Hn[1];r.useEffect(function(){hr(Dn),Kr(gn),ar.current&&(Zn?dt(ir):Zt(ft))},[Dn,gn]);var Vr=r.useState(0),Nr=(0,V.Z)(Vr,2),Cr=Nr[0],xr=Nr[1],Or=Cr>=Cn.length-1||ur!=="horizontal"||Ve;r.useEffect(function(){Zn&&Jn(gt)},[gt]),r.useEffect(function(){return ar.current=!0,function(){ar.current=!1}},[]);var mr=z(),Dr=mr.registerPath,Er=mr.unregisterPath,Fr=mr.refreshOverflowKeys,kr=mr.isSubPathKey,Hr=mr.getKeyPath,Br=mr.getKeys,$r=mr.getSubPathKeys,Tr=r.useMemo(function(){return{registerPath:Dr,unregisterPath:Er}},[Dr,Er]),Sr=r.useMemo(function(){return{isSubPathKey:kr}},[kr]);r.useEffect(function(){Fr(Or?ft:Cn.slice(Cr+1).map(function(nr){return nr.key}))},[Cr,Or]);var Mn=(0,s.Z)(ie||oe&&((Re=Cn[0])===null||Re===void 0?void 0:Re.key),{value:ie}),vn=(0,V.Z)(Mn,2),Un=vn[0],Qn=vn[1],qn=L(function(nr){Qn(nr)}),er=L(function(){Qn(void 0)});(0,r.useImperativeHandle)(me,function(){return{list:Gn.current,focus:function(Vn){var Yn,pr=Br(),cr=te(pr,un),br=cr.elements,Xr=cr.key2element,ea=cr.element2key,ta=H(Gn.current,br),Jr=Un!=null?Un:ta[0]?ea.get(ta[0]):(Yn=Cn.find(function(Wr){return!Wr.props.disabled}))===null||Yn===void 0?void 0:Yn.key,Ar=Xr.get(Jr);if(Jr&&Ar){var jr;Ar==null||(jr=Ar.focus)===null||jr===void 0||jr.call(Ar,Vn)}}}});var sr=(0,s.Z)(Oe||[],{value:ae,postState:function(Vn){return Array.isArray(Vn)?Vn:Vn==null?ft:[Vn]}}),_r=(0,V.Z)(sr,2),vr=_r[0],wr=_r[1],yr=function(Vn){if(fe){var Yn=Vn.key,pr=vr.includes(Yn),cr;Ee?pr?cr=vr.filter(function(Xr){return Xr!==Yn}):cr=[].concat((0,J.Z)(vr),[Yn]):cr=[Yn],wr(cr);var br=(0,W.Z)((0,W.Z)({},Vn),{},{selectedKeys:cr});pr?ye==null||ye(br):ue==null||ue(br)}!Ee&>.length&&ur!=="inline"&&Zt(ft)},Rr=L(function(nr){cn==null||cn(Xe(nr)),yr(nr)}),or=L(function(nr,Vn){var Yn=gt.filter(function(cr){return cr!==nr});if(Vn)Yn.push(nr);else if(ur!=="inline"){var pr=$r(nr);Yn=Yn.filter(function(cr){return!pr.has(cr)})}(0,f.Z)(gt,Yn,!0)||Zt(Yn,!0)}),Ir=function(Vn,Yn){var pr=Yn!=null?Yn:!gt.includes(Vn);or(Vn,pr)},Gr=ce(ur,Un,In,un,Gn,Br,Hr,Qn,Ir,An);r.useEffect(function(){rr(!0)},[]);var zr=r.useMemo(function(){return{_internalRenderMenuItem:$t,_internalRenderSubMenuItem:xt}},[$t,xt]),Yr=ur!=="horizontal"||Ve?Cn:Cn.map(function(nr,Vn){return r.createElement(u,{key:nr.key,overflowDisabled:Vn>Cr},nr)}),qr=r.createElement(e.Z,(0,N.Z)({id:Mt,ref:Gn,prefixCls:"".concat(xe,"-overflow"),component:"ul",itemComponent:Ut,className:G()(xe,"".concat(xe,"-root"),"".concat(xe,"-").concat(ur),_t,(0,D.Z)((0,D.Z)({},"".concat(xe,"-inline-collapsed"),Lr),"".concat(xe,"-rtl"),In),Ke),dir:Bt,style:He,role:"menu",tabIndex:bt,data:Yr,renderRawItem:function(Vn){return Vn},renderRawRest:function(Vn){var Yn=Vn.length,pr=Yn?Cn.slice(-Yn):null;return r.createElement(Y,{eventKey:T,title:ln,disabled:Or,internalPopupClose:Yn===0,popupClassName:tn},pr)},maxCount:ur!=="horizontal"||Ve?e.Z.INVALIDATE:e.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vn){xr(Vn)},onKeyDown:Gr},Wt));return r.createElement(x.Provider,{value:zr},r.createElement(o.Provider,{value:un},r.createElement(u,{prefixCls:xe,rootClassName:Ke,mode:ur,openKeys:gt,rtl:In,disabled:qe,motion:tr?tt:null,defaultMotions:tr?Dt:null,activeKey:Un,onActive:qn,onInactive:er,selectedKeys:vr,inlineIndent:Pe,subMenuOpenDelay:an,subMenuCloseDelay:xn,forceSubMenuRender:On,builtinPlacements:Pt,triggerSubMenuAction:zt,getPopupContainer:Jt,itemIcon:jt,expandIcon:on,onItemClick:Rr,onOpenChange:or},r.createElement(U.Provider,{value:Sr},qr),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(P.Provider,{value:Tr},zn)))))}),Gt=it,et=Gt;et.Item=Ut,et.SubMenu=Y,et.ItemGroup=nt,et.Divider=Le;var Ge=et},11780:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return y}});var N=l(72308),D=l(77321),W=l(52487),J=l(74416),V=l(59301),p=l(92310),$=l.n(p),G=l(29301),e=l(34280),s=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function t(n,a){var h=n.prefixCls,I=n.invalidate,re=n.item,he=n.renderItem,we=n.responsive,Me=n.responsiveDisabled,Ue=n.registerSize,Et=n.itemKey,ve=n.className,We=n.style,vt=n.children,Ot=n.display,lt=n.order,Z=n.component,M=Z===void 0?"div":Z,H=(0,J.Z)(n,s),A=we&&!Ot;function te(B){Ue(Et,B)}V.useEffect(function(){return function(){te(null)}},[]);var ce=he&&re!==f?he(re,{index:lt}):vt,C;I||(C={opacity:A?0:1,height:A?0:f,overflowY:A?"hidden":f,order:we?lt:f,pointerEvents:A?"none":f,position:A?"absolute":f});var c={};A&&(c["aria-hidden"]=!0);var k=V.createElement(M,(0,N.Z)({className:$()(!I&&h,ve),style:(0,D.Z)((0,D.Z)({},C),We)},c,H,{ref:a}),ce);return we&&(k=V.createElement(G.Z,{onResize:function(T){var z=T.offsetWidth;te(z)},disabled:Me},k)),k}var r=V.forwardRef(t);r.displayName="Item";var i=r,o=l(6089),m=l(4676),b=l(16089);function E(n){if(typeof MessageChannel=="undefined")(0,b.Z)(n);else{var a=new MessageChannel;a.port1.onmessage=function(){return n()},a.port2.postMessage(void 0)}}function _(){var n=V.useRef(null),a=function(I){n.current||(n.current=[],E(function(){(0,m.unstable_batchedUpdates)(function(){n.current.forEach(function(re){re()}),n.current=null})})),n.current.push(I)};return a}function g(n,a){var h=V.useState(a),I=(0,W.Z)(h,2),re=I[0],he=I[1],we=(0,o.Z)(function(Me){n(function(){he(Me)})});return[re,we]}var d=V.createContext(null),u=["component"],O=["className"],P=["className"],K=function(a,h){var I=V.useContext(d);if(!I){var re=a.component,he=re===void 0?"div":re,we=(0,J.Z)(a,u);return V.createElement(he,(0,N.Z)({},we,{ref:h}))}var Me=I.className,Ue=(0,J.Z)(I,O),Et=a.className,ve=(0,J.Z)(a,P);return V.createElement(d.Provider,{value:null},V.createElement(i,(0,N.Z)({ref:h,className:$()(Me,Et)},Ue,ve)))},j=V.forwardRef(K);j.displayName="RawItem";var X=j,U=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Se="responsive",x="invalidate";function v(n){return"+ ".concat(n.length," ...")}function w(n,a){var h=n.prefixCls,I=h===void 0?"rc-overflow":h,re=n.data,he=re===void 0?[]:re,we=n.renderItem,Me=n.renderRawItem,Ue=n.itemKey,Et=n.itemWidth,ve=Et===void 0?10:Et,We=n.ssr,vt=n.style,Ot=n.className,lt=n.maxCount,Z=n.renderRest,M=n.renderRawRest,H=n.suffix,A=n.component,te=A===void 0?"div":A,ce=n.itemComponent,C=n.onVisibleChange,c=(0,J.Z)(n,U),k=We==="full",B=_(),T=g(B,null),z=(0,W.Z)(T,2),L=z[0],ne=z[1],ee=L||0,le=g(B,new Map),pe=(0,W.Z)(le,2),ze=pe[0],Be=pe[1],ke=g(B,0),de=(0,W.Z)(ke,2),Te=de[0],De=de[1],Ne=g(B,0),ut=(0,W.Z)(Ne,2),kt=ut[0],Xe=ut[1],Tt=g(B,0),nn=(0,W.Z)(Tt,2),mt=nn[0],rt=nn[1],It=(0,V.useState)(null),Qt=(0,W.Z)(It,2),Ut=Qt[0],en=Qt[1],qt=(0,V.useState)(null),pt=(0,W.Z)(qt,2),ct=pt[0],ht=pt[1],Ht=V.useMemo(function(){return ct===null&&k?Number.MAX_SAFE_INTEGER:ct||0},[ct,L]),bn=(0,V.useState)(!1),Ft=(0,W.Z)(bn,2),kn=Ft[0],Wn=Ft[1],rn="".concat(I,"-item"),yn=Math.max(Te,kt),Rn=lt===Se,wn=he.length&&Rn,Pn=lt===x,_n=wn||typeof lt=="number"&&he.length>lt,Nn=(0,V.useMemo)(function(){var et=he;return wn?L===null&&k?et=he:et=he.slice(0,Math.min(he.length,ee/ve)):typeof lt=="number"&&(et=he.slice(0,lt)),et},[he,ve,L,lt,wn]),Tn=(0,V.useMemo)(function(){return wn?he.slice(Ht+1):he.slice(Nn.length)},[he,Nn,wn,Ht]),fn=(0,V.useCallback)(function(et,Ge){var Q;return typeof Ue=="function"?Ue(et):(Q=Ue&&(et==null?void 0:et[Ue]))!==null&&Q!==void 0?Q:Ge},[Ue]),q=(0,V.useCallback)(we||function(et){return et},[we]);function Y(et,Ge,Q){ct===et&&(Ge===void 0||Ge===Ut)||(ht(et),Q||(Wn(et<he.length-1),C==null||C(et)),Ge!==void 0&&en(Ge))}function $e(et,Ge){ne(Ge.clientWidth)}function Le(et,Ge){Be(function(Q){var me=new Map(Q);return Ge===null?me.delete(et):me.set(et,Ge),me})}function Je(et,Ge){Xe(Ge),De(kt)}function Qe(et,Ge){rt(Ge)}function st(et){return ze.get(fn(Nn[et],et))}(0,e.Z)(function(){if(ee&&typeof yn=="number"&&Nn){var et=mt,Ge=Nn.length,Q=Ge-1;if(!Ge){Y(0,null);return}for(var me=0;me<Ge;me+=1){var Re=st(me);if(k&&(Re=Re||0),Re===void 0){Y(me-1,void 0,!0);break}if(et+=Re,Q===0&&et<=ee||me===Q-1&&et+st(Q)<=ee){Y(Q,null);break}else if(et+yn>ee){Y(me-1,et-Re-mt+kt);break}}H&&st(0)+mt>ee&&en(null)}},[ee,ze,kt,mt,fn,Nn]);var nt=kn&&!!Tn.length,je={};Ut!==null&&wn&&(je={position:"absolute",left:Ut,top:0});var Ce={prefixCls:rn,responsive:wn,component:ce,invalidate:Pn},Ie=Me?function(et,Ge){var Q=fn(et,Ge);return V.createElement(d.Provider,{key:Q,value:(0,D.Z)((0,D.Z)({},Ce),{},{order:Ge,item:et,itemKey:Q,registerSize:Le,display:Ge<=Ht})},Me(et,Ge))}:function(et,Ge){var Q=fn(et,Ge);return V.createElement(i,(0,N.Z)({},Ce,{order:Ge,key:Q,item:et,renderItem:q,itemKey:Q,registerSize:Le,display:Ge<=Ht}))},Ye={order:nt?Ht:Number.MAX_SAFE_INTEGER,className:"".concat(rn,"-rest"),registerSize:Je,display:nt},ft=Z||v,it=M?V.createElement(d.Provider,{value:(0,D.Z)((0,D.Z)({},Ce),Ye)},M(Tn)):V.createElement(i,(0,N.Z)({},Ce,Ye),typeof ft=="function"?ft(Tn):ft),Gt=V.createElement(te,(0,N.Z)({className:$()(!Pn&&I,Ot),style:vt,ref:a},c),Nn.map(Ie),_n?it:null,H&&V.createElement(i,(0,N.Z)({},Ce,{responsive:Rn,responsiveDisabled:!wn,order:Ht,className:"".concat(rn,"-suffix"),registerSize:Qe,display:!0,style:je}),H));return Rn?V.createElement(G.Z,{onResize:$e,disabled:!wn},Gt):Gt}var R=V.forwardRef(w);R.displayName="Overflow",R.Item=X,R.RESPONSIVE=Se,R.INVALIDATE=x;var S=R,y=S},23425:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return P}});var N=l(49618),D=l(72308),W=l(62853),J=l(77321),V=l(52487),p=l(92310),$=l.n(p),G=l(18929),e=l(10228),s=l(26112),f=l(48736),t=l(59301),r=l(17119),i=[10,20,50,100],o=function(j){var X=j.pageSizeOptions,U=X===void 0?i:X,Se=j.locale,x=j.changeSize,v=j.pageSize,w=j.goButton,R=j.quickGo,S=j.rootPrefixCls,y=j.disabled,n=j.buildOptionText,a=j.showSizeChanger,h=j.sizeChangerRender,I=t.useState(""),re=(0,V.Z)(I,2),he=re[0],we=re[1],Me=function(){return!he||Number.isNaN(he)?void 0:Number(he)},Ue=typeof n=="function"?n:function(H){return"".concat(H," ").concat(Se.items_per_page)},Et=function(A){we(A.target.value)},ve=function(A){w||he===""||(we(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(S,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(S,"-item"))>=0))&&(R==null||R(Me())))},We=function(A){he!==""&&(A.keyCode===e.Z.ENTER||A.type==="click")&&(we(""),R==null||R(Me()))},vt=function(){return U.some(function(A){return A.toString()===v.toString()})?U:U.concat([v]).sort(function(A,te){var ce=Number.isNaN(Number(A))?0:Number(A),C=Number.isNaN(Number(te))?0:Number(te);return ce-C})},Ot="".concat(S,"-options");if(!a&&!R)return null;var lt=null,Z=null,M=null;return a&&h&&(lt=h({disabled:y,size:v,onSizeChange:function(A){x==null||x(Number(A))},"aria-label":Se.page_size,className:"".concat(Ot,"-size-changer"),options:vt().map(function(H){return{label:Ue(H),value:H}})})),R&&(w&&(M=typeof w=="boolean"?t.createElement("button",{type:"button",onClick:We,onKeyUp:We,disabled:y,className:"".concat(Ot,"-quick-jumper-button")},Se.jump_to_confirm):t.createElement("span",{onClick:We,onKeyUp:We},w)),Z=t.createElement("div",{className:"".concat(Ot,"-quick-jumper")},Se.jump_to,t.createElement("input",{disabled:y,type:"text",value:he,onChange:Et,onKeyUp:We,onBlur:ve,"aria-label":Se.page}),Se.page,M)),t.createElement("li",{className:Ot},lt,Z)},m=o,b=function(j){var X=j.rootPrefixCls,U=j.page,Se=j.active,x=j.className,v=j.showTitle,w=j.onClick,R=j.onKeyPress,S=j.itemRender,y="".concat(X,"-item"),n=$()(y,"".concat(y,"-").concat(U),(0,N.Z)((0,N.Z)({},"".concat(y,"-active"),Se),"".concat(y,"-disabled"),!U),x),a=function(){w(U)},h=function(he){R(he,w,U)},I=S(U,"page",t.createElement("a",{rel:"nofollow"},U));return I?t.createElement("li",{title:v?String(U):null,className:n,onClick:a,onKeyDown:h,tabIndex:0},I):null},E=b,_=function(j,X,U){return U};function g(){}function d(K){var j=Number(K);return typeof j=="number"&&!Number.isNaN(j)&&isFinite(j)&&Math.floor(j)===j}function u(K,j,X){var U=typeof K=="undefined"?j:K;return Math.floor((X-1)/U)+1}var O=function(j){var X=j.prefixCls,U=X===void 0?"rc-pagination":X,Se=j.selectPrefixCls,x=Se===void 0?"rc-select":Se,v=j.className,w=j.current,R=j.defaultCurrent,S=R===void 0?1:R,y=j.total,n=y===void 0?0:y,a=j.pageSize,h=j.defaultPageSize,I=h===void 0?10:h,re=j.onChange,he=re===void 0?g:re,we=j.hideOnSinglePage,Me=j.align,Ue=j.showPrevNextJumpers,Et=Ue===void 0?!0:Ue,ve=j.showQuickJumper,We=j.showLessItems,vt=j.showTitle,Ot=vt===void 0?!0:vt,lt=j.onShowSizeChange,Z=lt===void 0?g:lt,M=j.locale,H=M===void 0?r.Z:M,A=j.style,te=j.totalBoundaryShowSizeChanger,ce=te===void 0?50:te,C=j.disabled,c=j.simple,k=j.showTotal,B=j.showSizeChanger,T=B===void 0?n>ce:B,z=j.sizeChangerRender,L=j.pageSizeOptions,ne=j.itemRender,ee=ne===void 0?_:ne,le=j.jumpPrevIcon,pe=j.jumpNextIcon,ze=j.prevIcon,Be=j.nextIcon,ke=t.useRef(null),de=(0,G.Z)(10,{value:a,defaultValue:I}),Te=(0,V.Z)(de,2),De=Te[0],Ne=Te[1],ut=(0,G.Z)(1,{value:w,defaultValue:S,postState:function(Ve){return Math.max(1,Math.min(Ve,u(void 0,De,n)))}}),kt=(0,V.Z)(ut,2),Xe=kt[0],Tt=kt[1],nn=t.useState(Xe),mt=(0,V.Z)(nn,2),rt=mt[0],It=mt[1];(0,t.useEffect)(function(){It(Xe)},[Xe]);var Qt=he!==g,Ut="current"in j,en=Math.max(1,Xe-(We?3:5)),qt=Math.min(u(void 0,De,n),Xe+(We?3:5));function pt(qe,Ve){var at=qe||t.createElement("button",{type:"button","aria-label":Ve,className:"".concat(U,"-item-link")});return typeof qe=="function"&&(at=t.createElement(qe,(0,J.Z)({},j))),at}function ct(qe){var Ve=qe.target.value,at=u(void 0,De,n),an;return Ve===""?an=Ve:Number.isNaN(Number(Ve))?an=rt:Ve>=at?an=at:an=Number(Ve),an}function ht(qe){return d(qe)&&qe!==Xe&&d(n)&&n>0}var Ht=n>De?ve:!1;function bn(qe){(qe.keyCode===e.Z.UP||qe.keyCode===e.Z.DOWN)&&qe.preventDefault()}function Ft(qe){var Ve=ct(qe);switch(Ve!==rt&&It(Ve),qe.keyCode){case e.Z.ENTER:rn(Ve);break;case e.Z.UP:rn(Ve-1);break;case e.Z.DOWN:rn(Ve+1);break;default:break}}function kn(qe){rn(ct(qe))}function Wn(qe){var Ve=u(qe,De,n),at=Xe>Ve&&Ve!==0?Ve:Xe;Ne(qe),It(at),Z==null||Z(Xe,qe),Tt(at),he==null||he(at,qe)}function rn(qe){if(ht(qe)&&!C){var Ve=u(void 0,De,n),at=qe;return qe>Ve?at=Ve:qe<1&&(at=1),at!==rt&&It(at),Tt(at),he==null||he(at,De),at}return Xe}var yn=Xe>1,Rn=Xe<u(void 0,De,n);function wn(){yn&&rn(Xe-1)}function Pn(){Rn&&rn(Xe+1)}function _n(){rn(en)}function Nn(){rn(qt)}function Tn(qe,Ve){if(qe.key==="Enter"||qe.charCode===e.Z.ENTER||qe.keyCode===e.Z.ENTER){for(var at=arguments.length,an=new Array(at>2?at-2:0),dn=2;dn<at;dn++)an[dn-2]=arguments[dn];Ve.apply(void 0,an)}}function fn(qe){Tn(qe,wn)}function q(qe){Tn(qe,Pn)}function Y(qe){Tn(qe,_n)}function $e(qe){Tn(qe,Nn)}function Le(qe){var Ve=ee(qe,"prev",pt(ze,"prev page"));return t.isValidElement(Ve)?t.cloneElement(Ve,{disabled:!yn}):Ve}function Je(qe){var Ve=ee(qe,"next",pt(Be,"next page"));return t.isValidElement(Ve)?t.cloneElement(Ve,{disabled:!Rn}):Ve}function Qe(qe){(qe.type==="click"||qe.keyCode===e.Z.ENTER)&&rn(rt)}var st=null,nt=(0,s.Z)(j,{aria:!0,data:!0}),je=k&&t.createElement("li",{className:"".concat(U,"-total-text")},k(n,[n===0?0:(Xe-1)*De+1,Xe*De>n?n:Xe*De])),Ce=null,Ie=u(void 0,De,n);if(we&&n<=De)return null;var Ye=[],ft={rootPrefixCls:U,onClick:rn,onKeyPress:Tn,showTitle:Ot,itemRender:ee,page:-1},it=Xe-1>0?Xe-1:0,Gt=Xe+1<Ie?Xe+1:Ie,et=ve&&ve.goButton,Ge=(0,W.Z)(c)==="object"?c.readOnly:!c,Q=et,me=null;c&&(et&&(typeof et=="boolean"?Q=t.createElement("button",{type:"button",onClick:Qe,onKeyUp:Qe},H.jump_to_confirm):Q=t.createElement("span",{onClick:Qe,onKeyUp:Qe},et),Q=t.createElement("li",{title:Ot?"".concat(H.jump_to).concat(Xe,"/").concat(Ie):null,className:"".concat(U,"-simple-pager")},Q)),me=t.createElement("li",{title:Ot?"".concat(Xe,"/").concat(Ie):null,className:"".concat(U,"-simple-pager")},Ge?rt:t.createElement("input",{type:"text","aria-label":H.jump_to,value:rt,disabled:C,onKeyDown:bn,onKeyUp:Ft,onChange:Ft,onBlur:kn,size:3}),t.createElement("span",{className:"".concat(U,"-slash")},"/"),Ie));var Re=We?1:2;if(Ie<=3+Re*2){Ie||Ye.push(t.createElement(E,(0,D.Z)({},ft,{key:"noPager",page:1,className:"".concat(U,"-item-disabled")})));for(var _e=1;_e<=Ie;_e+=1)Ye.push(t.createElement(E,(0,D.Z)({},ft,{key:_e,page:_e,active:Xe===_e})))}else{var Ze=We?H.prev_3:H.prev_5,xe=We?H.next_3:H.next_5,Ke=ee(en,"jump-prev",pt(le,"prev page")),He=ee(qt,"jump-next",pt(pe,"next page"));Et&&(st=Ke?t.createElement("li",{title:Ot?Ze:null,key:"prev",onClick:_n,tabIndex:0,onKeyDown:Y,className:$()("".concat(U,"-jump-prev"),(0,N.Z)({},"".concat(U,"-jump-prev-custom-icon"),!!le))},Ke):null,Ce=He?t.createElement("li",{title:Ot?xe:null,key:"next",onClick:Nn,tabIndex:0,onKeyDown:$e,className:$()("".concat(U,"-jump-next"),(0,N.Z)({},"".concat(U,"-jump-next-custom-icon"),!!pe))},He):null);var _t=Math.max(1,Xe-Re),ot=Math.min(Xe+Re,Ie);Xe-1<=Re&&(ot=1+Re*2),Ie-Xe<=Re&&(_t=Ie-Re*2);for(var bt=_t;bt<=ot;bt+=1)Ye.push(t.createElement(E,(0,D.Z)({},ft,{key:bt,page:bt,active:Xe===bt})));if(Xe-1>=Re*2&&Xe!==3&&(Ye[0]=t.cloneElement(Ye[0],{className:$()("".concat(U,"-item-after-jump-prev"),Ye[0].props.className)}),Ye.unshift(st)),Ie-Xe>=Re*2&&Xe!==Ie-2){var wt=Ye[Ye.length-1];Ye[Ye.length-1]=t.cloneElement(wt,{className:$()("".concat(U,"-item-before-jump-next"),wt.props.className)}),Ye.push(Ce)}_t!==1&&Ye.unshift(t.createElement(E,(0,D.Z)({},ft,{key:1,page:1}))),ot!==Ie&&Ye.push(t.createElement(E,(0,D.Z)({},ft,{key:Ie,page:Ie})))}var At=Le(it);if(At){var Bt=!yn||!Ie;At=t.createElement("li",{title:Ot?H.prev_page:null,onClick:wn,tabIndex:Bt?null:0,onKeyDown:fn,className:$()("".concat(U,"-prev"),(0,N.Z)({},"".concat(U,"-disabled"),Bt)),"aria-disabled":Bt},At)}var Mt=Je(Gt);if(Mt){var St,Rt;c?(St=!Rn,Rt=yn?0:null):(St=!Rn||!Ie,Rt=St?null:0),Mt=t.createElement("li",{title:Ot?H.next_page:null,onClick:Pn,tabIndex:Rt,onKeyDown:q,className:$()("".concat(U,"-next"),(0,N.Z)({},"".concat(U,"-disabled"),St)),"aria-disabled":St},Mt)}var Xt=$()(U,v,(0,N.Z)((0,N.Z)((0,N.Z)((0,N.Z)((0,N.Z)({},"".concat(U,"-start"),Me==="start"),"".concat(U,"-center"),Me==="center"),"".concat(U,"-end"),Me==="end"),"".concat(U,"-simple"),c),"".concat(U,"-disabled"),C));return t.createElement("ul",(0,D.Z)({className:Xt,style:A,ref:ke},nt),je,At,c?me:Ye,Mt,t.createElement(m,{locale:H,rootPrefixCls:U,disabled:C,selectPrefixCls:x,changeSize:Wn,pageSize:De,pageSizeOptions:L,quickGo:Ht?rn:null,goButton:Q,showSizeChanger:T,sizeChangerRender:z}))},P=O},29301:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return x}});var N=l(72308),D=l(59301),W=l(11592),J=l(48736),V=l(77321),p=l(62853),$=l(76846),G=l(8654),e=D.createContext(null);function s(v){var w=v.children,R=v.onBatchResize,S=D.useRef(0),y=D.useRef([]),n=D.useContext(e),a=D.useCallback(function(h,I,re){S.current+=1;var he=S.current;y.current.push({size:h,element:I,data:re}),Promise.resolve().then(function(){he===S.current&&(R==null||R(y.current),y.current=[])}),n==null||n(h,I,re)},[R,n]);return D.createElement(e.Provider,{value:a},w)}var f=l(76374),t=new Map;function r(v){v.forEach(function(w){var R,S=w.target;(R=t.get(S))===null||R===void 0||R.forEach(function(y){return y(S)})})}var i=new f.Z(r),o=null,m=null;function b(v,w){t.has(v)||(t.set(v,new Set),i.observe(v)),t.get(v).add(w)}function E(v,w){t.has(v)&&(t.get(v).delete(w),t.get(v).size||(i.unobserve(v),t.delete(v)))}var _=l(96949),g=l(55090),d=l(77205),u=l(38793),O=function(v){(0,d.Z)(R,v);var w=(0,u.Z)(R);function R(){return(0,_.Z)(this,R),w.apply(this,arguments)}return(0,g.Z)(R,[{key:"render",value:function(){return this.props.children}}]),R}(D.Component);function P(v,w){var R=v.children,S=v.disabled,y=D.useRef(null),n=D.useRef(null),a=D.useContext(e),h=typeof R=="function",I=h?R(y):R,re=D.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),he=!h&&D.isValidElement(I)&&(0,G.Yr)(I),we=he?(0,G.C4)(I):null,Me=(0,G.x1)(we,y),Ue=function(){var vt;return(0,$.ZP)(y.current)||(y.current&&(0,p.Z)(y.current)==="object"?(0,$.ZP)((vt=y.current)===null||vt===void 0?void 0:vt.nativeElement):null)||(0,$.ZP)(n.current)};D.useImperativeHandle(w,function(){return Ue()});var Et=D.useRef(v);Et.current=v;var ve=D.useCallback(function(We){var vt=Et.current,Ot=vt.onResize,lt=vt.data,Z=We.getBoundingClientRect(),M=Z.width,H=Z.height,A=We.offsetWidth,te=We.offsetHeight,ce=Math.floor(M),C=Math.floor(H);if(re.current.width!==ce||re.current.height!==C||re.current.offsetWidth!==A||re.current.offsetHeight!==te){var c={width:ce,height:C,offsetWidth:A,offsetHeight:te};re.current=c;var k=A===Math.round(M)?M:A,B=te===Math.round(H)?H:te,T=(0,V.Z)((0,V.Z)({},c),{},{offsetWidth:k,offsetHeight:B});a==null||a(T,We,lt),Ot&&Promise.resolve().then(function(){Ot(T,We)})}},[]);return D.useEffect(function(){var We=Ue();return We&&!S&&b(We,ve),function(){return E(We,ve)}},[y.current,S]),D.createElement(O,{ref:n},he?D.cloneElement(I,{ref:Me}):I)}var K=D.forwardRef(P),j=K,X="rc-observer-key";function U(v,w){var R=v.children,S=typeof R=="function"?[R]:(0,W.Z)(R);return S.map(function(y,n){var a=(y==null?void 0:y.key)||"".concat(X,"-").concat(n);return D.createElement(j,(0,N.Z)({},v,{key:a,ref:n===0?w:void 0}),y)})}var Se=D.forwardRef(U);Se.Collection=s;var x=Se},69582:function(Kt,Fe,l){"use strict";l.d(Fe,{ZP:function(){return $}});var N=l(52487),D=l(59301),W=l(47273),J=0,V=(0,W.Z)();function p(){var G;return V?(G=J,J+=1):G="TEST_OR_SSR",G}function $(G){var e=D.useState(),s=(0,N.Z)(e,2),f=s[0],t=s[1];return D.useEffect(function(){t("rc_select_".concat(p()))},[]),G||f}},45560:function(Kt,Fe,l){"use strict";l.d(Fe,{Ac:function(){return ze},Xo:function(){return ke},Wx:function(){return Te},ZP:function(){return fn},lk:function(){return g}});var N=l(72308),D=l(80702),W=l(49618),J=l(77321),V=l(52487),p=l(74416),$=l(62853),G=l(18929),e=l(48736),s=l(59301),f=l(92310),t=l.n(f),r=l(34280),i=l(49658),o=l(8654),m=function(Y){var $e=Y.className,Le=Y.customizeIcon,Je=Y.customizeIconProps,Qe=Y.children,st=Y.onMouseDown,nt=Y.onClick,je=typeof Le=="function"?Le(Je):Le;return s.createElement("span",{className:$e,onMouseDown:function(Ie){Ie.preventDefault(),st==null||st(Ie)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:nt,"aria-hidden":!0},je!==void 0?je:s.createElement("span",{className:t()($e.split(/\s+/).map(function(Ce){return"".concat(Ce,"-icon")}))},Qe))},b=m,E=function(Y,$e,Le,Je,Qe){var st=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,nt=arguments.length>6?arguments[6]:void 0,je=arguments.length>7?arguments[7]:void 0,Ce=s.useMemo(function(){if((0,$.Z)(Je)==="object")return Je.clearIcon;if(Qe)return Qe},[Je,Qe]),Ie=s.useMemo(function(){return!!(!st&&Je&&(Le.length||nt)&&!(je==="combobox"&&nt===""))},[Je,st,Le.length,nt,je]);return{allowClear:Ie,clearIcon:s.createElement(b,{className:"".concat(Y,"-clear"),onMouseDown:$e,customizeIcon:Ce},"\xD7")}},_=s.createContext(null);function g(){return s.useContext(_)}function d(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Y=s.useState(!1),$e=(0,V.Z)(Y,2),Le=$e[0],Je=$e[1],Qe=s.useRef(null),st=function(){window.clearTimeout(Qe.current)};s.useEffect(function(){return st},[]);var nt=function(Ce,Ie){st(),Qe.current=window.setTimeout(function(){Je(Ce),Ie&&Ie()},q)};return[Le,nt,st]}function u(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Y=s.useRef(null),$e=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout($e.current)}},[]);function Le(Je){(Je||Y.current===null)&&(Y.current=Je),window.clearTimeout($e.current),$e.current=window.setTimeout(function(){Y.current=null},q)}return[function(){return Y.current},Le]}function O(q,Y,$e,Le){var Je=s.useRef(null);Je.current={open:Y,triggerOpen:$e,customizedTrigger:Le},s.useEffect(function(){function Qe(st){var nt;if(!((nt=Je.current)!==null&&nt!==void 0&&nt.customizedTrigger)){var je=st.target;je.shadowRoot&&st.composed&&(je=st.composedPath()[0]||je),Je.current.open&&q().filter(function(Ce){return Ce}).every(function(Ce){return!Ce.contains(je)&&Ce!==je})&&Je.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Qe),function(){return window.removeEventListener("mousedown",Qe)}},[])}var P=l(10228);function K(q){return q&&![P.Z.ESC,P.Z.SHIFT,P.Z.BACKSPACE,P.Z.TAB,P.Z.WIN_KEY,P.Z.ALT,P.Z.META,P.Z.WIN_KEY_RIGHT,P.Z.CTRL,P.Z.SEMICOLON,P.Z.EQUALS,P.Z.CAPS_LOCK,P.Z.CONTEXT_MENU,P.Z.F1,P.Z.F2,P.Z.F3,P.Z.F4,P.Z.F5,P.Z.F6,P.Z.F7,P.Z.F8,P.Z.F9,P.Z.F10,P.Z.F11,P.Z.F12].includes(q)}var j=l(26112),X=l(11780),U=function(Y,$e){var Le,Je=Y.prefixCls,Qe=Y.id,st=Y.inputElement,nt=Y.disabled,je=Y.tabIndex,Ce=Y.autoFocus,Ie=Y.autoComplete,Ye=Y.editable,ft=Y.activeDescendantId,it=Y.value,Gt=Y.maxLength,et=Y.onKeyDown,Ge=Y.onMouseDown,Q=Y.onChange,me=Y.onPaste,Re=Y.onCompositionStart,_e=Y.onCompositionEnd,Ze=Y.onBlur,xe=Y.open,Ke=Y.attrs,He=st||s.createElement("input",null),_t=He,ot=_t.ref,bt=_t.props,wt=bt.onKeyDown,At=bt.onChange,Bt=bt.onMouseDown,Mt=bt.onCompositionStart,St=bt.onCompositionEnd,Rt=bt.onBlur,Xt=bt.style;return(0,e.Kp)(!("maxLength"in He.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),He=s.cloneElement(He,(0,J.Z)((0,J.Z)((0,J.Z)({type:"search"},bt),{},{id:Qe,ref:(0,o.sQ)($e,ot),disabled:nt,tabIndex:je,autoComplete:Ie||"off",autoFocus:Ce,className:t()("".concat(Je,"-selection-search-input"),(Le=He)===null||Le===void 0||(Le=Le.props)===null||Le===void 0?void 0:Le.className),role:"combobox","aria-expanded":xe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Qe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Qe,"_list"),"aria-activedescendant":xe?ft:void 0},Ke),{},{value:Ye?it:"",maxLength:Gt,readOnly:!Ye,unselectable:Ye?null:"on",style:(0,J.Z)((0,J.Z)({},Xt),{},{opacity:Ye?null:0}),onKeyDown:function(Ve){et(Ve),wt&&wt(Ve)},onMouseDown:function(Ve){Ge(Ve),Bt&&Bt(Ve)},onChange:function(Ve){Q(Ve),At&&At(Ve)},onCompositionStart:function(Ve){Re(Ve),Mt&&Mt(Ve)},onCompositionEnd:function(Ve){_e(Ve),St&&St(Ve)},onPaste:me,onBlur:function(Ve){Ze(Ve),Rt&&Rt(Ve)}})),He},Se=s.forwardRef(U),x=Se;function v(q){return Array.isArray(q)?q:q!==void 0?[q]:[]}var w=typeof window!="undefined"&&window.document&&window.document.documentElement,R=w;function S(q){return q!=null}function y(q){return!q&&q!==0}function n(q){return["string","number"].includes((0,$.Z)(q))}function a(q){var Y=void 0;return q&&(n(q.title)?Y=q.title.toString():n(q.label)&&(Y=q.label.toString())),Y}function h(q,Y){R?s.useLayoutEffect(q,Y):s.useEffect(q,Y)}function I(q){var Y;return(Y=q.key)!==null&&Y!==void 0?Y:q.value}var re=function(Y){Y.preventDefault(),Y.stopPropagation()},he=function(Y){var $e=Y.id,Le=Y.prefixCls,Je=Y.values,Qe=Y.open,st=Y.searchValue,nt=Y.autoClearSearchValue,je=Y.inputRef,Ce=Y.placeholder,Ie=Y.disabled,Ye=Y.mode,ft=Y.showSearch,it=Y.autoFocus,Gt=Y.autoComplete,et=Y.activeDescendantId,Ge=Y.tabIndex,Q=Y.removeIcon,me=Y.maxTagCount,Re=Y.maxTagTextLength,_e=Y.maxTagPlaceholder,Ze=_e===void 0?function(Oe){return"+ ".concat(Oe.length," ...")}:_e,xe=Y.tagRender,Ke=Y.onToggleOpen,He=Y.onRemove,_t=Y.onInputChange,ot=Y.onInputPaste,bt=Y.onInputKeyDown,wt=Y.onInputMouseDown,At=Y.onInputCompositionStart,Bt=Y.onInputCompositionEnd,Mt=Y.onInputBlur,St=s.useRef(null),Rt=(0,s.useState)(0),Xt=(0,V.Z)(Rt,2),qe=Xt[0],Ve=Xt[1],at=(0,s.useState)(!1),an=(0,V.Z)(at,2),dn=an[0],xn=an[1],On="".concat(Le,"-selection"),F=Qe||Ye==="multiple"&&nt===!1||Ye==="tags"?st:"",se=Ye==="tags"||Ye==="multiple"&&nt===!1||ft&&(Qe||dn);h(function(){Ve(St.current.scrollWidth)},[F]);var ie=function(ae,ue,ye,Ae,Pe){return s.createElement("span",{title:a(ae),className:t()("".concat(On,"-item"),(0,W.Z)({},"".concat(On,"-item-disabled"),ye))},s.createElement("span",{className:"".concat(On,"-item-content")},ue),Ae&&s.createElement(b,{className:"".concat(On,"-item-remove"),onMouseDown:re,onClick:Pe,customizeIcon:Q},"\xD7"))},oe=function(ae,ue,ye,Ae,Pe,tt){var Dt=function(zt){re(zt),Ke(!Qe)};return s.createElement("span",{onMouseDown:Dt},xe({label:ue,value:ae,disabled:ye,closable:Ae,onClose:Pe,isMaxTag:!!tt}))},ge=function(ae){var ue=ae.disabled,ye=ae.label,Ae=ae.value,Pe=!Ie&&!ue,tt=ye;if(typeof Re=="number"&&(typeof ye=="string"||typeof ye=="number")){var Dt=String(tt);Dt.length>Re&&(tt="".concat(Dt.slice(0,Re),"..."))}var Ct=function(Pt){Pt&&Pt.stopPropagation(),He(ae)};return typeof xe=="function"?oe(Ae,tt,ue,Pe,Ct):ie(ae,tt,ue,Pe,Ct)},fe=function(ae){if(!Je.length)return null;var ue=typeof Ze=="function"?Ze(ae):Ze;return typeof xe=="function"?oe(void 0,ue,!1,!1,void 0,!0):ie({title:ue},ue,!1)},be=s.createElement("div",{className:"".concat(On,"-search"),style:{width:qe},onFocus:function(){xn(!0)},onBlur:function(){xn(!1)}},s.createElement(x,{ref:je,open:Qe,prefixCls:Le,id:$e,inputElement:null,disabled:Ie,autoFocus:it,autoComplete:Gt,editable:se,activeDescendantId:et,value:F,onKeyDown:bt,onMouseDown:wt,onChange:_t,onPaste:ot,onCompositionStart:At,onCompositionEnd:Bt,onBlur:Mt,tabIndex:Ge,attrs:(0,j.Z)(Y,!0)}),s.createElement("span",{ref:St,className:"".concat(On,"-search-mirror"),"aria-hidden":!0},F,"\xA0")),Ee=s.createElement(X.Z,{prefixCls:"".concat(On,"-overflow"),data:Je,renderItem:ge,renderRest:fe,suffix:be,itemKey:I,maxCount:me});return s.createElement("span",{className:"".concat(On,"-wrap")},Ee,!Je.length&&!F&&s.createElement("span",{className:"".concat(On,"-placeholder")},Ce))},we=he,Me=function(Y){var $e=Y.inputElement,Le=Y.prefixCls,Je=Y.id,Qe=Y.inputRef,st=Y.disabled,nt=Y.autoFocus,je=Y.autoComplete,Ce=Y.activeDescendantId,Ie=Y.mode,Ye=Y.open,ft=Y.values,it=Y.placeholder,Gt=Y.tabIndex,et=Y.showSearch,Ge=Y.searchValue,Q=Y.activeValue,me=Y.maxLength,Re=Y.onInputKeyDown,_e=Y.onInputMouseDown,Ze=Y.onInputChange,xe=Y.onInputPaste,Ke=Y.onInputCompositionStart,He=Y.onInputCompositionEnd,_t=Y.onInputBlur,ot=Y.title,bt=s.useState(!1),wt=(0,V.Z)(bt,2),At=wt[0],Bt=wt[1],Mt=Ie==="combobox",St=Mt||et,Rt=ft[0],Xt=Ge||"";Mt&&Q&&!At&&(Xt=Q),s.useEffect(function(){Mt&&Bt(!1)},[Mt,Q]);var qe=Ie!=="combobox"&&!Ye&&!et?!1:!!Xt,Ve=ot===void 0?a(Rt):ot,at=s.useMemo(function(){return Rt?null:s.createElement("span",{className:"".concat(Le,"-selection-placeholder"),style:qe?{visibility:"hidden"}:void 0},it)},[Rt,qe,it,Le]);return s.createElement("span",{className:"".concat(Le,"-selection-wrap")},s.createElement("span",{className:"".concat(Le,"-selection-search")},s.createElement(x,{ref:Qe,prefixCls:Le,id:Je,open:Ye,inputElement:$e,disabled:st,autoFocus:nt,autoComplete:je,editable:St,activeDescendantId:Ce,value:Xt,onKeyDown:Re,onMouseDown:_e,onChange:function(dn){Bt(!0),Ze(dn)},onPaste:xe,onCompositionStart:Ke,onCompositionEnd:He,onBlur:_t,tabIndex:Gt,attrs:(0,j.Z)(Y,!0),maxLength:Mt?me:void 0})),!Mt&&Rt?s.createElement("span",{className:"".concat(Le,"-selection-item"),title:Ve,style:qe?{visibility:"hidden"}:void 0},Rt.label):null,at)},Ue=Me,Et=function(Y,$e){var Le=(0,s.useRef)(null),Je=(0,s.useRef)(!1),Qe=Y.prefixCls,st=Y.open,nt=Y.mode,je=Y.showSearch,Ce=Y.tokenWithEnter,Ie=Y.disabled,Ye=Y.prefix,ft=Y.autoClearSearchValue,it=Y.onSearch,Gt=Y.onSearchSubmit,et=Y.onToggleOpen,Ge=Y.onInputKeyDown,Q=Y.onInputBlur,me=Y.domRef;s.useImperativeHandle($e,function(){return{focus:function(Ve){Le.current.focus(Ve)},blur:function(){Le.current.blur()}}});var Re=u(0),_e=(0,V.Z)(Re,2),Ze=_e[0],xe=_e[1],Ke=function(Ve){var at=Ve.which,an=Le.current instanceof HTMLTextAreaElement;!an&&st&&(at===P.Z.UP||at===P.Z.DOWN)&&Ve.preventDefault(),Ge&&Ge(Ve),at===P.Z.ENTER&&nt==="tags"&&!Je.current&&!st&&(Gt==null||Gt(Ve.target.value)),!(an&&!st&&~[P.Z.UP,P.Z.DOWN,P.Z.LEFT,P.Z.RIGHT].indexOf(at))&&K(at)&&et(!0)},He=function(){xe(!0)},_t=(0,s.useRef)(null),ot=function(Ve){it(Ve,!0,Je.current)!==!1&&et(!0)},bt=function(){Je.current=!0},wt=function(Ve){Je.current=!1,nt!=="combobox"&&ot(Ve.target.value)},At=function(Ve){var at=Ve.target.value;if(Ce&&_t.current&&/[\r\n]/.test(_t.current)){var an=_t.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");at=at.replace(an,_t.current)}_t.current=null,ot(at)},Bt=function(Ve){var at=Ve.clipboardData,an=at==null?void 0:at.getData("text");_t.current=an||""},Mt=function(Ve){var at=Ve.target;if(at!==Le.current){var an=document.body.style.msTouchAction!==void 0;an?setTimeout(function(){Le.current.focus()}):Le.current.focus()}},St=function(Ve){var at=Ze();Ve.target!==Le.current&&!at&&!(nt==="combobox"&&Ie)&&Ve.preventDefault(),(nt!=="combobox"&&(!je||!at)||!st)&&(st&&ft!==!1&&it("",!0,!1),et())},Rt={inputRef:Le,onInputKeyDown:Ke,onInputMouseDown:He,onInputChange:At,onInputPaste:Bt,onInputCompositionStart:bt,onInputCompositionEnd:wt,onInputBlur:Q},Xt=nt==="multiple"||nt==="tags"?s.createElement(we,(0,N.Z)({},Y,Rt)):s.createElement(Ue,(0,N.Z)({},Y,Rt));return s.createElement("div",{ref:me,className:"".concat(Qe,"-selector"),onClick:Mt,onMouseDown:St},Ye&&s.createElement("div",{className:"".concat(Qe,"-prefix")},Ye),Xt)},ve=s.forwardRef(Et),We=ve,vt=l(65352),Ot=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lt=function(Y){var $e=Y===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"}}},Z=function(Y,$e){var Le=Y.prefixCls,Je=Y.disabled,Qe=Y.visible,st=Y.children,nt=Y.popupElement,je=Y.animation,Ce=Y.transitionName,Ie=Y.dropdownStyle,Ye=Y.dropdownClassName,ft=Y.direction,it=ft===void 0?"ltr":ft,Gt=Y.placement,et=Y.builtinPlacements,Ge=Y.dropdownMatchSelectWidth,Q=Y.dropdownRender,me=Y.dropdownAlign,Re=Y.getPopupContainer,_e=Y.empty,Ze=Y.getTriggerDOMNode,xe=Y.onPopupVisibleChange,Ke=Y.onPopupMouseEnter,He=(0,p.Z)(Y,Ot),_t="".concat(Le,"-dropdown"),ot=nt;Q&&(ot=Q(nt));var bt=s.useMemo(function(){return et||lt(Ge)},[et,Ge]),wt=je?"".concat(_t,"-").concat(je):Ce,At=typeof Ge=="number",Bt=s.useMemo(function(){return At?null:Ge===!1?"minWidth":"width"},[Ge,At]),Mt=Ie;At&&(Mt=(0,J.Z)((0,J.Z)({},Mt),{},{width:Ge}));var St=s.useRef(null);return s.useImperativeHandle($e,function(){return{getPopupElement:function(){var Xt;return(Xt=St.current)===null||Xt===void 0?void 0:Xt.popupElement}}}),s.createElement(vt.Z,(0,N.Z)({},He,{showAction:xe?["click"]:[],hideAction:xe?["click"]:[],popupPlacement:Gt||(it==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:bt,prefixCls:_t,popupTransitionName:wt,popup:s.createElement("div",{onMouseEnter:Ke},ot),ref:St,stretch:Bt,popupAlign:me,popupVisible:Qe,getPopupContainer:Re,popupClassName:t()(Ye,(0,W.Z)({},"".concat(_t,"-empty"),_e)),popupStyle:Mt,getTriggerDOMNode:Ze,onPopupVisibleChange:xe}),st)},M=s.forwardRef(Z),H=M,A=l(68413);function te(q,Y){var $e=q.key,Le;return"value"in q&&(Le=q.value),$e!=null?$e:Le!==void 0?Le:"rc-index-key-".concat(Y)}function ce(q){return typeof q!="undefined"&&!Number.isNaN(q)}function C(q,Y){var $e=q||{},Le=$e.label,Je=$e.value,Qe=$e.options,st=$e.groupLabel,nt=Le||(Y?"children":"label");return{label:nt,value:Je||"value",options:Qe||"options",groupLabel:st||nt}}function c(q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e=Y.fieldNames,Le=Y.childrenAsData,Je=[],Qe=C($e,!1),st=Qe.label,nt=Qe.value,je=Qe.options,Ce=Qe.groupLabel;function Ie(Ye,ft){Array.isArray(Ye)&&Ye.forEach(function(it){if(ft||!(je in it)){var Gt=it[nt];Je.push({key:te(it,Je.length),groupOption:ft,data:it,label:it[st],value:Gt})}else{var et=it[Ce];et===void 0&&Le&&(et=it.label),Je.push({key:te(it,Je.length),group:!0,data:it,label:et}),Ie(it[je],!0)}})}return Ie(q,!1),Je}function k(q){var Y=(0,J.Z)({},q);return"props"in Y||Object.defineProperty(Y,"props",{get:function(){return(0,e.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Y}}),Y}var B=function(Y,$e,Le){if(!$e||!$e.length)return null;var Je=!1,Qe=function nt(je,Ce){var Ie=(0,A.Z)(Ce),Ye=Ie[0],ft=Ie.slice(1);if(!Ye)return[je];var it=je.split(Ye);return Je=Je||it.length>1,it.reduce(function(Gt,et){return[].concat((0,D.Z)(Gt),(0,D.Z)(nt(et,ft)))},[]).filter(Boolean)},st=Qe(Y,$e);return Je?typeof Le!="undefined"?st.slice(0,Le):st:null},T=s.createContext(null),z=T;function L(q){var Y=q.visible,$e=q.values;if(!Y)return null;var Le=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat($e.slice(0,Le).map(function(Je){var Qe=Je.label,st=Je.value;return["number","string"].includes((0,$.Z)(Qe))?Qe:st}).join(", ")),$e.length>Le?", ...":null)}var ne=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ee=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],le=function(Y){return Y==="tags"||Y==="multiple"},pe=s.forwardRef(function(q,Y){var $e,Le=q.id,Je=q.prefixCls,Qe=q.className,st=q.showSearch,nt=q.tagRender,je=q.direction,Ce=q.omitDomProps,Ie=q.displayValues,Ye=q.onDisplayValuesChange,ft=q.emptyOptions,it=q.notFoundContent,Gt=it===void 0?"Not Found":it,et=q.onClear,Ge=q.mode,Q=q.disabled,me=q.loading,Re=q.getInputElement,_e=q.getRawInputElement,Ze=q.open,xe=q.defaultOpen,Ke=q.onDropdownVisibleChange,He=q.activeValue,_t=q.onActiveValueChange,ot=q.activeDescendantId,bt=q.searchValue,wt=q.autoClearSearchValue,At=q.onSearch,Bt=q.onSearchSplit,Mt=q.tokenSeparators,St=q.allowClear,Rt=q.prefix,Xt=q.suffixIcon,qe=q.clearIcon,Ve=q.OptionList,at=q.animation,an=q.transitionName,dn=q.dropdownStyle,xn=q.dropdownClassName,On=q.dropdownMatchSelectWidth,F=q.dropdownRender,se=q.dropdownAlign,ie=q.placement,oe=q.builtinPlacements,ge=q.getPopupContainer,fe=q.showAction,be=fe===void 0?[]:fe,Ee=q.onFocus,Oe=q.onBlur,ae=q.onKeyUp,ue=q.onKeyDown,ye=q.onMouseDown,Ae=(0,p.Z)(q,ne),Pe=le(Ge),tt=(st!==void 0?st:Pe)||Ge==="combobox",Dt=(0,J.Z)({},Ae);ee.forEach(function(Mn){delete Dt[Mn]}),Ce==null||Ce.forEach(function(Mn){delete Dt[Mn]});var Ct=s.useState(!1),zt=(0,V.Z)(Ct,2),Pt=zt[0],jt=zt[1];s.useEffect(function(){jt((0,i.Z)())},[]);var on=s.useRef(null),Nt=s.useRef(null),ln=s.useRef(null),tn=s.useRef(null),Jt=s.useRef(null),cn=s.useRef(!1),mn=d(),An=(0,V.Z)(mn,3),sn=An[0],hn=An[1],$t=An[2];s.useImperativeHandle(Y,function(){var Mn,vn;return{focus:(Mn=tn.current)===null||Mn===void 0?void 0:Mn.focus,blur:(vn=tn.current)===null||vn===void 0?void 0:vn.blur,scrollTo:function(Qn){var qn;return(qn=Jt.current)===null||qn===void 0?void 0:qn.scrollTo(Qn)},nativeElement:on.current||Nt.current}});var xt=s.useMemo(function(){var Mn;if(Ge!=="combobox")return bt;var vn=(Mn=Ie[0])===null||Mn===void 0?void 0:Mn.value;return typeof vn=="string"||typeof vn=="number"?String(vn):""},[bt,Ge,Ie]),Vt=Ge==="combobox"&&typeof Re=="function"&&Re()||null,Wt=typeof _e=="function"&&_e(),En=(0,o.x1)(Nt,Wt==null||($e=Wt.props)===null||$e===void 0?void 0:$e.ref),pn=s.useState(!1),Cn=(0,V.Z)(pn,2),zn=Cn[0],Xn=Cn[1];(0,r.Z)(function(){Xn(!0)},[]);var $n=(0,G.Z)(!1,{defaultValue:xe,value:Ze}),tr=(0,V.Z)($n,2),rr=tr[0],Gn=tr[1],un=zn?rr:!1,In=!Gt&&ft;(Q||In&&un&&Ge==="combobox")&&(un=!1);var Bn=In?!1:un,Lt=s.useCallback(function(Mn){var vn=Mn!==void 0?Mn:!un;Q||(Gn(vn),un!==vn&&(Ke==null||Ke(vn)))},[Q,un,Gn,Ke]),gt=s.useMemo(function(){return(Mt||[]).some(function(Mn){return[`
|
|
`,`\r
|
|
`].includes(Mn)})},[Mt]),dt=s.useContext(z)||{},Zt=dt.maxCount,Sn=dt.rawValues,Ln=function(vn,Un,Qn){if(!(Pe&&ce(Zt)&&(Sn==null?void 0:Sn.size)>=Zt)){var qn=!0,er=vn;_t==null||_t(null);var sr=B(vn,Mt,ce(Zt)?Zt-Sn.size:void 0),_r=Qn?null:sr;return Ge!=="combobox"&&_r&&(er="",Bt==null||Bt(_r),Lt(!1),qn=!1),At&&xt!==er&&At(er,{source:Un?"typing":"effect"}),qn}},ir=function(vn){!vn||!vn.trim()||At(vn,{source:"submit"})};s.useEffect(function(){!un&&!Pe&&Ge!=="combobox"&&Ln("",!1,!1)},[un]),s.useEffect(function(){rr&&Q&&Gn(!1),Q&&!cn.current&&hn(!1)},[Q]);var Jn=u(),ar=(0,V.Z)(Jn,2),yt=ar[0],Yt=ar[1],Dn=s.useRef(!1),gn=function(vn){var Un=yt(),Qn=vn.key,qn=Qn==="Enter";if(qn&&(Ge!=="combobox"&&vn.preventDefault(),un||Lt(!0)),Yt(!!xt),Qn==="Backspace"&&!Un&&Pe&&!xt&&Ie.length){for(var er=(0,D.Z)(Ie),sr=null,_r=er.length-1;_r>=0;_r-=1){var vr=er[_r];if(!vr.disabled){er.splice(_r,1),sr=vr;break}}sr&&Ye(er,{type:"remove",values:[sr]})}for(var wr=arguments.length,yr=new Array(wr>1?wr-1:0),Rr=1;Rr<wr;Rr++)yr[Rr-1]=arguments[Rr];if(un&&(!qn||!Dn.current)){var or;qn&&(Dn.current=!0),(or=Jt.current)===null||or===void 0||or.onKeyDown.apply(or,[vn].concat(yr))}ue==null||ue.apply(void 0,[vn].concat(yr))},Zn=function(vn){for(var Un=arguments.length,Qn=new Array(Un>1?Un-1:0),qn=1;qn<Un;qn++)Qn[qn-1]=arguments[qn];if(un){var er;(er=Jt.current)===null||er===void 0||er.onKeyUp.apply(er,[vn].concat(Qn))}vn.key==="Enter"&&(Dn.current=!1),ae==null||ae.apply(void 0,[vn].concat(Qn))},lr=function(vn){var Un=Ie.filter(function(Qn){return Qn!==vn});Ye(Un,{type:"remove",values:[vn]})},jn=function(){Dn.current=!1},ur=s.useRef(!1),hr=function(){hn(!0),Q||(Ee&&!ur.current&&Ee.apply(void 0,arguments),be.includes("focus")&&Lt(!0)),ur.current=!0},Pr=function(){cn.current=!0,hn(!1,function(){ur.current=!1,cn.current=!1,Lt(!1)}),!Q&&(xt&&(Ge==="tags"?At(xt,{source:"submit"}):Ge==="multiple"&&At("",{source:"blur"})),Oe&&Oe.apply(void 0,arguments))},Hn=[];s.useEffect(function(){return function(){Hn.forEach(function(Mn){return clearTimeout(Mn)}),Hn.splice(0,Hn.length)}},[]);var Lr=function(vn){var Un,Qn=vn.target,qn=(Un=ln.current)===null||Un===void 0?void 0:Un.getPopupElement();if(qn&&qn.contains(Qn)){var er=setTimeout(function(){var wr=Hn.indexOf(er);if(wr!==-1&&Hn.splice(wr,1),$t(),!Pt&&!qn.contains(document.activeElement)){var yr;(yr=tn.current)===null||yr===void 0||yr.focus()}});Hn.push(er)}for(var sr=arguments.length,_r=new Array(sr>1?sr-1:0),vr=1;vr<sr;vr++)_r[vr-1]=arguments[vr];ye==null||ye.apply(void 0,[vn].concat(_r))},Kr=s.useState({}),Vr=(0,V.Z)(Kr,2),Nr=Vr[1];function Cr(){Nr({})}var xr;Wt&&(xr=function(vn){Lt(vn)}),O(function(){var Mn;return[on.current,(Mn=ln.current)===null||Mn===void 0?void 0:Mn.getPopupElement()]},Bn,Lt,!!Wt);var Or=s.useMemo(function(){return(0,J.Z)((0,J.Z)({},q),{},{notFoundContent:Gt,open:un,triggerOpen:Bn,id:Le,showSearch:tt,multiple:Pe,toggleOpen:Lt})},[q,Gt,Bn,un,Le,tt,Pe,Lt]),mr=!!Xt||me,Dr;mr&&(Dr=s.createElement(b,{className:t()("".concat(Je,"-arrow"),(0,W.Z)({},"".concat(Je,"-arrow-loading"),me)),customizeIcon:Xt,customizeIconProps:{loading:me,searchValue:xt,open:un,focused:sn,showSearch:tt}}));var Er=function(){var vn;et==null||et(),(vn=tn.current)===null||vn===void 0||vn.focus(),Ye([],{type:"clear",values:Ie}),Ln("",!1,!1)},Fr=E(Je,Er,Ie,St,qe,Q,xt,Ge),kr=Fr.allowClear,Hr=Fr.clearIcon,Br=s.createElement(Ve,{ref:Jt}),$r=t()(Je,Qe,(0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)({},"".concat(Je,"-focused"),sn),"".concat(Je,"-multiple"),Pe),"".concat(Je,"-single"),!Pe),"".concat(Je,"-allow-clear"),St),"".concat(Je,"-show-arrow"),mr),"".concat(Je,"-disabled"),Q),"".concat(Je,"-loading"),me),"".concat(Je,"-open"),un),"".concat(Je,"-customize-input"),Vt),"".concat(Je,"-show-search"),tt)),Tr=s.createElement(H,{ref:ln,disabled:Q,prefixCls:Je,visible:Bn,popupElement:Br,animation:at,transitionName:an,dropdownStyle:dn,dropdownClassName:xn,direction:je,dropdownMatchSelectWidth:On,dropdownRender:F,dropdownAlign:se,placement:ie,builtinPlacements:oe,getPopupContainer:ge,empty:ft,getTriggerDOMNode:function(vn){return Nt.current||vn},onPopupVisibleChange:xr,onPopupMouseEnter:Cr},Wt?s.cloneElement(Wt,{ref:En}):s.createElement(We,(0,N.Z)({},q,{domRef:Nt,prefixCls:Je,inputElement:Vt,ref:tn,id:Le,prefix:Rt,showSearch:tt,autoClearSearchValue:wt,mode:Ge,activeDescendantId:ot,tagRender:nt,values:Ie,open:un,onToggleOpen:Lt,activeValue:He,searchValue:xt,onSearch:Ln,onSearchSubmit:ir,onRemove:lr,tokenWithEnter:gt,onInputBlur:jn}))),Sr;return Wt?Sr=Tr:Sr=s.createElement("div",(0,N.Z)({className:$r},Dt,{ref:on,onMouseDown:Lr,onKeyDown:gn,onKeyUp:Zn,onFocus:hr,onBlur:Pr}),s.createElement(L,{visible:sn&&!un,values:Ie}),Tr,Dr,kr&&Hr),s.createElement(_.Provider,{value:Or},Sr)}),ze=pe,Be=function(){return null};Be.isSelectOptGroup=!0;var ke=Be,de=function(){return null};de.isSelectOption=!0;var Te=de,De=l(80547),Ne=l(2738),ut=l(45680);function kt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Xe=["disabled","title","children","style","className"];function Tt(q){return typeof q=="string"||typeof q=="number"}var nn=function(Y,$e){var Le=g(),Je=Le.prefixCls,Qe=Le.id,st=Le.open,nt=Le.multiple,je=Le.mode,Ce=Le.searchValue,Ie=Le.toggleOpen,Ye=Le.notFoundContent,ft=Le.onPopupScroll,it=s.useContext(z),Gt=it.maxCount,et=it.flattenOptions,Ge=it.onActiveValue,Q=it.defaultActiveFirstOption,me=it.onSelect,Re=it.menuItemSelectedIcon,_e=it.rawValues,Ze=it.fieldNames,xe=it.virtual,Ke=it.direction,He=it.listHeight,_t=it.listItemHeight,ot=it.optionRender,bt="".concat(Je,"-item"),wt=(0,De.Z)(function(){return et},[st,et],function(fe,be){return be[0]&&fe[1]!==be[1]}),At=s.useRef(null),Bt=s.useMemo(function(){return nt&&ce(Gt)&&(_e==null?void 0:_e.size)>=Gt},[nt,Gt,_e==null?void 0:_e.size]),Mt=function(be){be.preventDefault()},St=function(be){var Ee;(Ee=At.current)===null||Ee===void 0||Ee.scrollTo(typeof be=="number"?{index:be}:be)},Rt=s.useCallback(function(fe){return je==="combobox"?!1:_e.has(fe)},[je,(0,D.Z)(_e).toString(),_e.size]),Xt=function(be){for(var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=wt.length,ae=0;ae<Oe;ae+=1){var ue=(be+ae*Ee+Oe)%Oe,ye=wt[ue]||{},Ae=ye.group,Pe=ye.data;if(!Ae&&!(Pe!=null&&Pe.disabled)&&(Rt(Pe.value)||!Bt))return ue}return-1},qe=s.useState(function(){return Xt(0)}),Ve=(0,V.Z)(qe,2),at=Ve[0],an=Ve[1],dn=function(be){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;an(be);var Oe={source:Ee?"keyboard":"mouse"},ae=wt[be];if(!ae){Ge(null,-1,Oe);return}Ge(ae.value,be,Oe)};(0,s.useEffect)(function(){dn(Q!==!1?Xt(0):-1)},[wt.length,Ce]);var xn=s.useCallback(function(fe){return je==="combobox"?String(fe).toLowerCase()===Ce.toLowerCase():_e.has(fe)},[je,Ce,(0,D.Z)(_e).toString(),_e.size]);(0,s.useEffect)(function(){var fe=setTimeout(function(){if(!nt&&st&&_e.size===1){var Ee=Array.from(_e)[0],Oe=wt.findIndex(function(ae){var ue=ae.data;return ue.value===Ee});Oe!==-1&&(dn(Oe),St(Oe))}});if(st){var be;(be=At.current)===null||be===void 0||be.scrollTo(void 0)}return function(){return clearTimeout(fe)}},[st,Ce]);var On=function(be){be!==void 0&&me(be,{selected:!_e.has(be)}),nt||Ie(!1)};if(s.useImperativeHandle($e,function(){return{onKeyDown:function(be){var Ee=be.which,Oe=be.ctrlKey;switch(Ee){case P.Z.N:case P.Z.P:case P.Z.UP:case P.Z.DOWN:{var ae=0;if(Ee===P.Z.UP?ae=-1:Ee===P.Z.DOWN?ae=1:kt()&&Oe&&(Ee===P.Z.N?ae=1:Ee===P.Z.P&&(ae=-1)),ae!==0){var ue=Xt(at+ae,ae);St(ue),dn(ue,!0)}break}case P.Z.TAB:case P.Z.ENTER:{var ye,Ae=wt[at];Ae&&!(Ae!=null&&(ye=Ae.data)!==null&&ye!==void 0&&ye.disabled)&&!Bt?On(Ae.value):On(void 0),st&&be.preventDefault();break}case P.Z.ESC:Ie(!1),st&&be.stopPropagation()}},onKeyUp:function(){},scrollTo:function(be){St(be)}}}),wt.length===0)return s.createElement("div",{role:"listbox",id:"".concat(Qe,"_list"),className:"".concat(bt,"-empty"),onMouseDown:Mt},Ye);var F=Object.keys(Ze).map(function(fe){return Ze[fe]}),se=function(be){return be.label};function ie(fe,be){var Ee=fe.group;return{role:Ee?"presentation":"option",id:"".concat(Qe,"_list_").concat(be)}}var oe=function(be){var Ee=wt[be];if(!Ee)return null;var Oe=Ee.data||{},ae=Oe.value,ue=Ee.group,ye=(0,j.Z)(Oe,!0),Ae=se(Ee);return Ee?s.createElement("div",(0,N.Z)({"aria-label":typeof Ae=="string"&&!ue?Ae:null},ye,{key:be},ie(Ee,be),{"aria-selected":xn(ae)}),ae):null},ge={role:"listbox",id:"".concat(Qe,"_list")};return s.createElement(s.Fragment,null,xe&&s.createElement("div",(0,N.Z)({},ge,{style:{height:0,width:0,overflow:"hidden"}}),oe(at-1),oe(at),oe(at+1)),s.createElement(ut.Z,{itemKey:"key",ref:At,data:wt,height:He,itemHeight:_t,fullHeight:!1,onMouseDown:Mt,onScroll:ft,virtual:xe,direction:Ke,innerProps:xe?null:ge},function(fe,be){var Ee=fe.group,Oe=fe.groupOption,ae=fe.data,ue=fe.label,ye=fe.value,Ae=ae.key;if(Ee){var Pe,tt=(Pe=ae.title)!==null&&Pe!==void 0?Pe:Tt(ue)?ue.toString():void 0;return s.createElement("div",{className:t()(bt,"".concat(bt,"-group"),ae.className),title:tt},ue!==void 0?ue:Ae)}var Dt=ae.disabled,Ct=ae.title,zt=ae.children,Pt=ae.style,jt=ae.className,on=(0,p.Z)(ae,Xe),Nt=(0,Ne.Z)(on,F),ln=Rt(ye),tn=Dt||!ln&&Bt,Jt="".concat(bt,"-option"),cn=t()(bt,Jt,jt,(0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)({},"".concat(Jt,"-grouped"),Oe),"".concat(Jt,"-active"),at===be&&!tn),"".concat(Jt,"-disabled"),tn),"".concat(Jt,"-selected"),ln)),mn=se(fe),An=!Re||typeof Re=="function"||ln,sn=typeof mn=="number"?mn:mn||ye,hn=Tt(sn)?sn.toString():void 0;return Ct!==void 0&&(hn=Ct),s.createElement("div",(0,N.Z)({},(0,j.Z)(Nt),xe?{}:ie(fe,be),{"aria-selected":xn(ye),className:cn,title:hn,onMouseMove:function(){at===be||tn||dn(be)},onClick:function(){tn||On(ye)},style:Pt}),s.createElement("div",{className:"".concat(Jt,"-content")},typeof ot=="function"?ot(fe,{index:be}):sn),s.isValidElement(Re)||ln,An&&s.createElement(b,{className:"".concat(bt,"-option-state"),customizeIcon:Re,customizeIconProps:{value:ye,disabled:tn,isSelected:ln}},ln?"\u2713":null))}))},mt=s.forwardRef(nn),rt=mt,It=function(q,Y){var $e=s.useRef({values:new Map,options:new Map}),Le=s.useMemo(function(){var Qe=$e.current,st=Qe.values,nt=Qe.options,je=q.map(function(Ye){if(Ye.label===void 0){var ft;return(0,J.Z)((0,J.Z)({},Ye),{},{label:(ft=st.get(Ye.value))===null||ft===void 0?void 0:ft.label})}return Ye}),Ce=new Map,Ie=new Map;return je.forEach(function(Ye){Ce.set(Ye.value,Ye),Ie.set(Ye.value,Y.get(Ye.value)||nt.get(Ye.value))}),$e.current.values=Ce,$e.current.options=Ie,je},[q,Y]),Je=s.useCallback(function(Qe){return Y.get(Qe)||$e.current.options.get(Qe)},[Y]);return[Le,Je]};function Qt(q,Y){return v(q).join("").toUpperCase().includes(Y)}var Ut=function(q,Y,$e,Le,Je){return s.useMemo(function(){if(!$e||Le===!1)return q;var Qe=Y.options,st=Y.label,nt=Y.value,je=[],Ce=typeof Le=="function",Ie=$e.toUpperCase(),Ye=Ce?Le:function(it,Gt){return Je?Qt(Gt[Je],Ie):Gt[Qe]?Qt(Gt[st!=="children"?st:"label"],Ie):Qt(Gt[nt],Ie)},ft=Ce?function(it){return k(it)}:function(it){return it};return q.forEach(function(it){if(it[Qe]){var Gt=Ye($e,ft(it));if(Gt)je.push(it);else{var et=it[Qe].filter(function(Ge){return Ye($e,ft(Ge))});et.length&&je.push((0,J.Z)((0,J.Z)({},it),{},(0,W.Z)({},Qe,et)))}return}Ye($e,ft(it))&&je.push(it)}),je},[q,Le,Je,$e,Y])},en=l(69582),qt=l(11592),pt=["children","value"],ct=["children"];function ht(q){var Y=q,$e=Y.key,Le=Y.props,Je=Le.children,Qe=Le.value,st=(0,p.Z)(Le,pt);return(0,J.Z)({key:$e,value:Qe!==void 0?Qe:$e,children:Je},st)}function Ht(q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qt.Z)(q).map(function($e,Le){if(!s.isValidElement($e)||!$e.type)return null;var Je=$e,Qe=Je.type.isSelectOptGroup,st=Je.key,nt=Je.props,je=nt.children,Ce=(0,p.Z)(nt,ct);return Y||!Qe?ht($e):(0,J.Z)((0,J.Z)({key:"__RC_SELECT_GRP__".concat(st===null?Le:st,"__"),label:st},Ce),{},{options:Ht(je)})}).filter(function($e){return $e})}var bn=function(Y,$e,Le,Je,Qe){return s.useMemo(function(){var st=Y,nt=!Y;nt&&(st=Ht($e));var je=new Map,Ce=new Map,Ie=function(it,Gt,et){et&&typeof et=="string"&&it.set(Gt[et],Gt)},Ye=function ft(it){for(var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=0;et<it.length;et+=1){var Ge=it[et];!Ge[Le.options]||Gt?(je.set(Ge[Le.value],Ge),Ie(Ce,Ge,Le.label),Ie(Ce,Ge,Je),Ie(Ce,Ge,Qe)):ft(Ge[Le.options],!0)}};return Ye(st),{options:st,valueOptions:je,labelOptions:Ce}},[Y,$e,Le,Je,Qe])},Ft=bn;function kn(q){var Y=s.useRef();Y.current=q;var $e=s.useCallback(function(){return Y.current.apply(Y,arguments)},[]);return $e}function Wn(q){var Y=q.mode,$e=q.options,Le=q.children,Je=q.backfill,Qe=q.allowClear,st=q.placeholder,nt=q.getInputElement,je=q.showSearch,Ce=q.onSearch,Ie=q.defaultOpen,Ye=q.autoFocus,ft=q.labelInValue,it=q.value,Gt=q.inputValue,et=q.optionLabelProp,Ge=isMultiple(Y),Q=je!==void 0?je:Ge||Y==="combobox",me=$e||convertChildrenToData(Le);if(warning(Y!=="tags"||me.every(function(xe){return!xe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Re=me.some(function(xe){return xe.options?xe.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in xe?xe.value:xe.key)=="number"});warning(!Re,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Y!=="combobox"||!et,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Y==="combobox"||!Je,"`backfill` only works with `combobox` mode."),warning(Y==="combobox"||!nt,"`getInputElement` only work with `combobox` mode."),noteOnce(Y!=="combobox"||!nt||!Qe||!st,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ce&&!Q&&Y!=="combobox"&&Y!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ie||Ye,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),it!=null){var _e=toArray(it);warning(!ft||_e.every(function(xe){return _typeof(xe)==="object"&&("key"in xe||"value"in xe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ge||Array.isArray(it),"`value` should be array when `mode` is `multiple` or `tags`")}if(Le){var Ze=null;toNodeArray(Le).some(function(xe){if(!React.isValidElement(xe)||!xe.type)return!1;var Ke=xe,He=Ke.type;if(He.isSelectOption)return!1;if(He.isSelectOptGroup){var _t=toNodeArray(xe.props.children).every(function(ot){return!React.isValidElement(ot)||!xe.type||ot.type.isSelectOption?!0:(Ze=ot.type,!1)});return!_t}return Ze=He,!0}),Ze&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ze.displayName||Ze.name||Ze,"`.")),warning(Gt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function rn(q,Y){if(q){var $e=function Le(Je){for(var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=0;st<Je.length;st++){var nt=Je[st];if(nt[Y==null?void 0:Y.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Qe&&Array.isArray(nt[Y==null?void 0:Y.options])&&Le(nt[Y==null?void 0:Y.options],!0))break}};$e(q)}}var yn=null,Rn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],wn=["inputValue"];function Pn(q){return!q||(0,$.Z)(q)!=="object"}var _n=s.forwardRef(function(q,Y){var $e=q.id,Le=q.mode,Je=q.prefixCls,Qe=Je===void 0?"rc-select":Je,st=q.backfill,nt=q.fieldNames,je=q.inputValue,Ce=q.searchValue,Ie=q.onSearch,Ye=q.autoClearSearchValue,ft=Ye===void 0?!0:Ye,it=q.onSelect,Gt=q.onDeselect,et=q.dropdownMatchSelectWidth,Ge=et===void 0?!0:et,Q=q.filterOption,me=q.filterSort,Re=q.optionFilterProp,_e=q.optionLabelProp,Ze=q.options,xe=q.optionRender,Ke=q.children,He=q.defaultActiveFirstOption,_t=q.menuItemSelectedIcon,ot=q.virtual,bt=q.direction,wt=q.listHeight,At=wt===void 0?200:wt,Bt=q.listItemHeight,Mt=Bt===void 0?20:Bt,St=q.labelRender,Rt=q.value,Xt=q.defaultValue,qe=q.labelInValue,Ve=q.onChange,at=q.maxCount,an=(0,p.Z)(q,Rn),dn=(0,en.ZP)($e),xn=le(Le),On=!!(!Ze&&Ke),F=s.useMemo(function(){return Q===void 0&&Le==="combobox"?!1:Q},[Q,Le]),se=s.useMemo(function(){return C(nt,On)},[JSON.stringify(nt),On]),ie=(0,G.Z)("",{value:Ce!==void 0?Ce:je,postState:function(gt){return gt||""}}),oe=(0,V.Z)(ie,2),ge=oe[0],fe=oe[1],be=Ft(Ze,Ke,se,Re,_e),Ee=be.valueOptions,Oe=be.labelOptions,ae=be.options,ue=s.useCallback(function(Lt){var gt=v(Lt);return gt.map(function(dt){var Zt,Sn,Ln,ir,Jn;if(Pn(dt))Zt=dt;else{var ar;Ln=dt.key,Sn=dt.label,Zt=(ar=dt.value)!==null&&ar!==void 0?ar:Ln}var yt=Ee.get(Zt);if(yt){var Yt;if(Sn===void 0&&(Sn=yt==null?void 0:yt[_e||se.label]),Ln===void 0&&(Ln=(Yt=yt==null?void 0:yt.key)!==null&&Yt!==void 0?Yt:Zt),ir=yt==null?void 0:yt.disabled,Jn=yt==null?void 0:yt.title,0)var Dn}return{label:Sn,value:Zt,key:Ln,disabled:ir,title:Jn}})},[se,_e,Ee]),ye=(0,G.Z)(Xt,{value:Rt}),Ae=(0,V.Z)(ye,2),Pe=Ae[0],tt=Ae[1],Dt=s.useMemo(function(){var Lt,gt=xn&&Pe===null?[]:Pe,dt=ue(gt);return Le==="combobox"&&y((Lt=dt[0])===null||Lt===void 0?void 0:Lt.value)?[]:dt},[Pe,ue,Le,xn]),Ct=It(Dt,Ee),zt=(0,V.Z)(Ct,2),Pt=zt[0],jt=zt[1],on=s.useMemo(function(){if(!Le&&Pt.length===1){var Lt=Pt[0];if(Lt.value===null&&(Lt.label===null||Lt.label===void 0))return[]}return Pt.map(function(gt){var dt;return(0,J.Z)((0,J.Z)({},gt),{},{label:(dt=typeof St=="function"?St(gt):gt.label)!==null&&dt!==void 0?dt:gt.value})})},[Le,Pt,St]),Nt=s.useMemo(function(){return new Set(Pt.map(function(Lt){return Lt.value}))},[Pt]);s.useEffect(function(){if(Le==="combobox"){var Lt,gt=(Lt=Pt[0])===null||Lt===void 0?void 0:Lt.value;fe(S(gt)?String(gt):"")}},[Pt]);var ln=kn(function(Lt,gt){var dt=gt!=null?gt:Lt;return(0,W.Z)((0,W.Z)({},se.value,Lt),se.label,dt)}),tn=s.useMemo(function(){if(Le!=="tags")return ae;var Lt=(0,D.Z)(ae),gt=function(Zt){return Ee.has(Zt)};return(0,D.Z)(Pt).sort(function(dt,Zt){return dt.value<Zt.value?-1:1}).forEach(function(dt){var Zt=dt.value;gt(Zt)||Lt.push(ln(Zt,dt.label))}),Lt},[ln,ae,Ee,Pt,Le]),Jt=Ut(tn,se,ge,F,Re),cn=s.useMemo(function(){return Le!=="tags"||!ge||Jt.some(function(Lt){return Lt[Re||"value"]===ge})||Jt.some(function(Lt){return Lt[se.value]===ge})?Jt:[ln(ge)].concat((0,D.Z)(Jt))},[ln,Re,Le,Jt,ge,se]),mn=function Lt(gt){var dt=(0,D.Z)(gt).sort(function(Zt,Sn){return me(Zt,Sn,{searchValue:ge})});return dt.map(function(Zt){return Array.isArray(Zt.options)?(0,J.Z)((0,J.Z)({},Zt),{},{options:Zt.options.length>0?Lt(Zt.options):Zt.options}):Zt})},An=s.useMemo(function(){return me?mn(cn):cn},[cn,me,ge]),sn=s.useMemo(function(){return c(An,{fieldNames:se,childrenAsData:On})},[An,se,On]),hn=function(gt){var dt=ue(gt);if(tt(dt),Ve&&(dt.length!==Pt.length||dt.some(function(Ln,ir){var Jn;return((Jn=Pt[ir])===null||Jn===void 0?void 0:Jn.value)!==(Ln==null?void 0:Ln.value)}))){var Zt=qe?dt:dt.map(function(Ln){return Ln.value}),Sn=dt.map(function(Ln){return k(jt(Ln.value))});Ve(xn?Zt:Zt[0],xn?Sn:Sn[0])}},$t=s.useState(null),xt=(0,V.Z)($t,2),Vt=xt[0],Wt=xt[1],En=s.useState(0),pn=(0,V.Z)(En,2),Cn=pn[0],zn=pn[1],Xn=He!==void 0?He:Le!=="combobox",$n=s.useCallback(function(Lt,gt){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zt=dt.source,Sn=Zt===void 0?"keyboard":Zt;zn(gt),st&&Le==="combobox"&&Lt!==null&&Sn==="keyboard"&&Wt(String(Lt))},[st,Le]),tr=function(gt,dt,Zt){var Sn=function(){var lr,jn=jt(gt);return[qe?{label:jn==null?void 0:jn[se.label],value:gt,key:(lr=jn==null?void 0:jn.key)!==null&&lr!==void 0?lr:gt}:gt,k(jn)]};if(dt&&it){var Ln=Sn(),ir=(0,V.Z)(Ln,2),Jn=ir[0],ar=ir[1];it(Jn,ar)}else if(!dt&&Gt&&Zt!=="clear"){var yt=Sn(),Yt=(0,V.Z)(yt,2),Dn=Yt[0],gn=Yt[1];Gt(Dn,gn)}},rr=kn(function(Lt,gt){var dt,Zt=xn?gt.selected:!0;Zt?dt=xn?[].concat((0,D.Z)(Pt),[Lt]):[Lt]:dt=Pt.filter(function(Sn){return Sn.value!==Lt}),hn(dt),tr(Lt,Zt),Le==="combobox"?Wt(""):(!le||ft)&&(fe(""),Wt(""))}),Gn=function(gt,dt){hn(gt);var Zt=dt.type,Sn=dt.values;(Zt==="remove"||Zt==="clear")&&Sn.forEach(function(Ln){tr(Ln.value,!1,Zt)})},un=function(gt,dt){if(fe(gt),Wt(null),dt.source==="submit"){var Zt=(gt||"").trim();if(Zt){var Sn=Array.from(new Set([].concat((0,D.Z)(Nt),[Zt])));hn(Sn),tr(Zt,!0),fe("")}return}dt.source!=="blur"&&(Le==="combobox"&&hn(gt),Ie==null||Ie(gt))},In=function(gt){var dt=gt;Le!=="tags"&&(dt=gt.map(function(Sn){var Ln=Oe.get(Sn);return Ln==null?void 0:Ln.value}).filter(function(Sn){return Sn!==void 0}));var Zt=Array.from(new Set([].concat((0,D.Z)(Nt),(0,D.Z)(dt))));hn(Zt),Zt.forEach(function(Sn){tr(Sn,!0)})},Bn=s.useMemo(function(){var Lt=ot!==!1&&Ge!==!1;return(0,J.Z)((0,J.Z)({},be),{},{flattenOptions:sn,onActiveValue:$n,defaultActiveFirstOption:Xn,onSelect:rr,menuItemSelectedIcon:_t,rawValues:Nt,fieldNames:se,virtual:Lt,direction:bt,listHeight:At,listItemHeight:Mt,childrenAsData:On,maxCount:at,optionRender:xe})},[at,be,sn,$n,Xn,rr,_t,Nt,se,ot,Ge,bt,At,Mt,On,xe]);return s.createElement(z.Provider,{value:Bn},s.createElement(ze,(0,N.Z)({},an,{id:dn,prefixCls:Qe,ref:Y,omitDomProps:wn,mode:Le,displayValues:on,onDisplayValuesChange:Gn,direction:bt,searchValue:ge,onSearch:un,autoClearSearchValue:ft,onSearchSplit:In,dropdownMatchSelectWidth:Ge,OptionList:rt,emptyOptions:!sn.length,activeValue:Vt,activeDescendantId:"".concat(dn,"_list_").concat(Cn)})))}),Nn=_n;Nn.Option=Te,Nn.OptGroup=ke;var Tn=Nn,fn=Tn},67204:function(Kt,Fe,l){"use strict";l.d(Fe,{R:function(){return D},w:function(){return N}});var N={},D="rc-table-internal-hook"},78612:function(Kt,Fe,l){"use strict";l.d(Fe,{L:function(){return m},Z:function(){return d}});var N=l(52487),D=l(49618),W=l(80702),J=l(62853),V=l(77321),p=l(74416),$=l(11592),G=l(48736),e=l(59301),s=l(67204),f=l(90494);function t(u){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof O=="number"?O:O.endsWith("%")?u*parseFloat(O)/100:null}function r(u,O,P){return e.useMemo(function(){if(O&&O>0){var K=0,j=0;u.forEach(function(S){var y=t(O,S.width);y?K+=y:j+=1});var X=Math.max(O,P),U=Math.max(X-K,j),Se=j,x=U/j,v=0,w=u.map(function(S){var y=(0,V.Z)({},S),n=t(O,y.width);if(n)y.width=n;else{var a=Math.floor(x);y.width=Se===1?U:a,U-=a,Se-=1}return v+=y.width,y});if(v<X){var R=X/v;U=X,w.forEach(function(S,y){var n=Math.floor(S.width*R);S.width=y===w.length-1?U:n,U-=n})}return[w,Math.max(v,X)]}return[u,O]},[u,O,P])}var i=["children"],o=["fixed"];function m(u){return(0,$.Z)(u).filter(function(O){return e.isValidElement(O)}).map(function(O){var P=O.key,K=O.props,j=K.children,X=(0,p.Z)(K,i),U=(0,V.Z)({key:P},X);return j&&(U.children=m(j)),U})}function b(u){return u.filter(function(O){return O&&(0,J.Z)(O)==="object"&&!O.hidden}).map(function(O){var P=O.children;return P&&P.length>0?(0,V.Z)((0,V.Z)({},O),{},{children:b(P)}):O})}function E(u){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return u.filter(function(P){return P&&(0,J.Z)(P)==="object"}).reduce(function(P,K,j){var X=K.fixed,U=X===!0?"left":X,Se="".concat(O,"-").concat(j),x=K.children;return x&&x.length>0?[].concat((0,W.Z)(P),(0,W.Z)(E(x,Se).map(function(v){return(0,V.Z)({fixed:U},v)}))):[].concat((0,W.Z)(P),[(0,V.Z)((0,V.Z)({key:Se},K),{},{fixed:U})])},[])}function _(u){return u.map(function(O){var P=O.fixed,K=(0,p.Z)(O,o),j=P;return P==="left"?j="right":P==="right"&&(j="left"),(0,V.Z)({fixed:j},K)})}function g(u,O){var P=u.prefixCls,K=u.columns,j=u.children,X=u.expandable,U=u.expandedKeys,Se=u.columnTitle,x=u.getRowKey,v=u.onTriggerExpand,w=u.expandIcon,R=u.rowExpandable,S=u.expandIconColumnIndex,y=u.direction,n=u.expandRowByClick,a=u.columnWidth,h=u.fixed,I=u.scrollWidth,re=u.clientWidth,he=e.useMemo(function(){var lt=K||m(j)||[];return b(lt.slice())},[K,j]),we=e.useMemo(function(){if(X){var lt=he.slice();if(!lt.includes(s.w)){var Z=S||0;Z>=0&&(Z||h==="left"||!h)&<.splice(Z,0,s.w),h==="right"&<.splice(he.length,0,s.w)}var M=lt.indexOf(s.w);lt=lt.filter(function(ce,C){return ce!==s.w||C===M});var H=he[M],A;h?A=h:A=H?H.fixed:null;var te=(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},f.v,{className:"".concat(P,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Se),"fixed",A),"className","".concat(P,"-row-expand-icon-cell")),"width",a),"render",function(C,c,k){var B=x(c,k),T=U.has(B),z=R?R(c):!0,L=w({prefixCls:P,expanded:T,expandable:z,record:c,onExpand:v});return n?e.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},L):L});return lt.map(function(ce){return ce===s.w?te:ce})}return he.filter(function(ce){return ce!==s.w})},[X,he,x,U,w,y]),Me=e.useMemo(function(){var lt=we;return O&&(lt=O(lt)),lt.length||(lt=[{render:function(){return null}}]),lt},[O,we,y]),Ue=e.useMemo(function(){return y==="rtl"?_(E(Me)):E(Me)},[Me,y,I]),Et=e.useMemo(function(){for(var lt=-1,Z=Ue.length-1;Z>=0;Z-=1){var M=Ue[Z].fixed;if(M==="left"||M===!0){lt=Z;break}}if(lt>=0)for(var H=0;H<=lt;H+=1){var A=Ue[H].fixed;if(A!=="left"&&A!==!0)return!0}var te=Ue.findIndex(function(c){var k=c.fixed;return k==="right"});if(te>=0)for(var ce=te;ce<Ue.length;ce+=1){var C=Ue[ce].fixed;if(C!=="right")return!0}return!1},[Ue]),ve=r(Ue,I,re),We=(0,N.Z)(ve,2),vt=We[0],Ot=We[1];return[Me,vt,Ot,Et]}var d=g},16596:function(Kt,Fe,l){"use strict";l.d(Fe,{w2:function(){return N.w},vP:function(){return rt.v},RQ:function(){return N.R},ER:function(){return B},Q$:function(){return _e},TN:function(){return dn}});var N=l(67204),D=l(52487),W=l(6089),J=l(34280),V=l(13697),p=l(59301),$=l(4676);function G(F){var se=p.createContext(void 0),ie=function(ge){var fe=ge.value,be=ge.children,Ee=p.useRef(fe);Ee.current=fe;var Oe=p.useState(function(){return{getValue:function(){return Ee.current},listeners:new Set}}),ae=(0,D.Z)(Oe,1),ue=ae[0];return(0,J.Z)(function(){(0,$.unstable_batchedUpdates)(function(){ue.listeners.forEach(function(ye){ye(fe)})})},[fe]),p.createElement(se.Provider,{value:ue},be)};return{Context:se,Provider:ie,defaultValue:F}}function e(F,se){var ie=(0,W.Z)(typeof se=="function"?se:function(ye){if(se===void 0)return ye;if(!Array.isArray(se))return ye[se];var Ae={};return se.forEach(function(Pe){Ae[Pe]=ye[Pe]}),Ae}),oe=p.useContext(F==null?void 0:F.Context),ge=oe||{},fe=ge.listeners,be=ge.getValue,Ee=p.useRef();Ee.current=ie(oe?be():F==null?void 0:F.defaultValue);var Oe=p.useState({}),ae=(0,D.Z)(Oe,2),ue=ae[1];return(0,J.Z)(function(){if(!oe)return;function ye(Ae){var Pe=ie(Ae);(0,V.Z)(Ee.current,Pe,!0)||ue({})}return fe.add(ye),function(){fe.delete(ye)}},[oe]),Ee.current}var s=l(72308),f=l(8654);function t(){var F=p.createContext(null);function se(){return p.useContext(F)}function ie(ge,fe){var be=(0,f.Yr)(ge),Ee=function(ae,ue){var ye=be?{ref:ue}:{},Ae=p.useRef(0),Pe=p.useRef(ae),tt=se();return tt!==null?p.createElement(ge,(0,s.Z)({},ae,ye)):((!fe||fe(Pe.current,ae))&&(Ae.current+=1),Pe.current=ae,p.createElement(F.Provider,{value:Ae.current},p.createElement(ge,(0,s.Z)({},ae,ye))))};return be?p.forwardRef(Ee):Ee}function oe(ge,fe){var be=(0,f.Yr)(ge),Ee=function(ae,ue){var ye=be?{ref:ue}:{};return se(),p.createElement(ge,(0,s.Z)({},ae,ye))};return be?p.memo(p.forwardRef(Ee),fe):p.memo(Ee,fe)}return{makeImmutable:ie,responseImmutable:oe,useImmutableMark:se}}var r=t(),i=r.makeImmutable,o=r.responseImmutable,m=r.useImmutableMark,b=t(),E=b.makeImmutable,_=b.responseImmutable,g=b.useImmutableMark,d=G(),u=d;function O(F,se){var ie=React.useRef(0);ie.current+=1;var oe=React.useRef(F),ge=[];Object.keys(F||{}).map(function(be){var Ee;(F==null?void 0:F[be])!==((Ee=oe.current)===null||Ee===void 0?void 0:Ee[be])&&ge.push(be)}),oe.current=F;var fe=React.useRef([]);return ge.length&&(fe.current=ge),React.useDebugValue(ie.current),React.useDebugValue(fe.current.join(", ")),se&&console.log("".concat(se,":"),ie.current,fe.current),ie.current}var P=null,K=null,j=l(62853),X=l(77321),U=l(49618),Se=l(92310),x=l.n(Se),v=l(80547),w=l(97938),R=l(48736),S=p.createContext({renderWithProps:!1}),y=S,n="RC_TABLE_KEY";function a(F){return F==null?[]:Array.isArray(F)?F:[F]}function h(F){var se=[],ie={};return F.forEach(function(oe){for(var ge=oe||{},fe=ge.key,be=ge.dataIndex,Ee=fe||a(be).join("-")||n;ie[Ee];)Ee="".concat(Ee,"_next");ie[Ee]=!0,se.push(Ee)}),se}function I(F){return F!=null}function re(F){return typeof F=="number"&&!Number.isNaN(F)}function he(F){return F&&(0,j.Z)(F)==="object"&&!Array.isArray(F)&&!p.isValidElement(F)}function we(F,se,ie,oe,ge,fe){var be=p.useContext(y),Ee=g(),Oe=(0,v.Z)(function(){if(I(oe))return[oe];var ae=se==null||se===""?[]:Array.isArray(se)?se:[se],ue=(0,w.Z)(F,ae),ye=ue,Ae=void 0;if(ge){var Pe=ge(ue,F,ie);he(Pe)?(ye=Pe.children,Ae=Pe.props,be.renderWithProps=!0):ye=Pe}return[ye,Ae]},[Ee,F,oe,se,ge,ie],function(ae,ue){if(fe){var ye=(0,D.Z)(ae,2),Ae=ye[1],Pe=(0,D.Z)(ue,2),tt=Pe[1];return fe(tt,Ae)}return be.renderWithProps?!0:!(0,V.Z)(ae,ue,!0)});return Oe}function Me(F,se,ie,oe){var ge=F+se-1;return F<=oe&&ge>=ie}function Ue(F,se){return e(u,function(ie){var oe=Me(F,se||1,ie.hoverStartRow,ie.hoverEndRow);return[oe,ie.onHover]})}var Et=l(70425),ve=function(se){var ie=se.ellipsis,oe=se.rowType,ge=se.children,fe,be=ie===!0?{showTitle:!0}:ie;return be&&(be.showTitle||oe==="header")&&(typeof ge=="string"||typeof ge=="number"?fe=ge.toString():p.isValidElement(ge)&&typeof ge.props.children=="string"&&(fe=ge.props.children)),fe};function We(F){var se,ie,oe,ge,fe,be,Ee,Oe,ae=F.component,ue=F.children,ye=F.ellipsis,Ae=F.scope,Pe=F.prefixCls,tt=F.className,Dt=F.align,Ct=F.record,zt=F.render,Pt=F.dataIndex,jt=F.renderIndex,on=F.shouldCellUpdate,Nt=F.index,ln=F.rowType,tn=F.colSpan,Jt=F.rowSpan,cn=F.fixLeft,mn=F.fixRight,An=F.firstFixLeft,sn=F.lastFixLeft,hn=F.firstFixRight,$t=F.lastFixRight,xt=F.appendNode,Vt=F.additionalProps,Wt=Vt===void 0?{}:Vt,En=F.isSticky,pn="".concat(Pe,"-cell"),Cn=e(u,["supportSticky","allColumnsFixedLeft","rowHoverable"]),zn=Cn.supportSticky,Xn=Cn.allColumnsFixedLeft,$n=Cn.rowHoverable,tr=we(Ct,Pt,jt,ue,zt,on),rr=(0,D.Z)(tr,2),Gn=rr[0],un=rr[1],In={},Bn=typeof cn=="number"&&zn,Lt=typeof mn=="number"&&zn;Bn&&(In.position="sticky",In.left=cn),Lt&&(In.position="sticky",In.right=mn);var gt=(se=(ie=(oe=un==null?void 0:un.colSpan)!==null&&oe!==void 0?oe:Wt.colSpan)!==null&&ie!==void 0?ie:tn)!==null&&se!==void 0?se:1,dt=(ge=(fe=(be=un==null?void 0:un.rowSpan)!==null&&be!==void 0?be:Wt.rowSpan)!==null&&fe!==void 0?fe:Jt)!==null&&ge!==void 0?ge:1,Zt=Ue(Nt,dt),Sn=(0,D.Z)(Zt,2),Ln=Sn[0],ir=Sn[1],Jn=(0,Et.zX)(function(lr){var jn;Ct&&ir(Nt,Nt+dt-1),Wt==null||(jn=Wt.onMouseEnter)===null||jn===void 0||jn.call(Wt,lr)}),ar=(0,Et.zX)(function(lr){var jn;Ct&&ir(-1,-1),Wt==null||(jn=Wt.onMouseLeave)===null||jn===void 0||jn.call(Wt,lr)});if(gt===0||dt===0)return null;var yt=(Ee=Wt.title)!==null&&Ee!==void 0?Ee:ve({rowType:ln,ellipsis:ye,children:Gn}),Yt=x()(pn,tt,(Oe={},(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)(Oe,"".concat(pn,"-fix-left"),Bn&&zn),"".concat(pn,"-fix-left-first"),An&&zn),"".concat(pn,"-fix-left-last"),sn&&zn),"".concat(pn,"-fix-left-all"),sn&&Xn&&zn),"".concat(pn,"-fix-right"),Lt&&zn),"".concat(pn,"-fix-right-first"),hn&&zn),"".concat(pn,"-fix-right-last"),$t&&zn),"".concat(pn,"-ellipsis"),ye),"".concat(pn,"-with-append"),xt),"".concat(pn,"-fix-sticky"),(Bn||Lt)&&En&&zn),(0,U.Z)(Oe,"".concat(pn,"-row-hover"),!un&&Ln)),Wt.className,un==null?void 0:un.className),Dn={};Dt&&(Dn.textAlign=Dt);var gn=(0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)({},un==null?void 0:un.style),In),Dn),Wt.style),Zn=Gn;return(0,j.Z)(Zn)==="object"&&!Array.isArray(Zn)&&!p.isValidElement(Zn)&&(Zn=null),ye&&(sn||hn)&&(Zn=p.createElement("span",{className:"".concat(pn,"-content")},Zn)),p.createElement(ae,(0,s.Z)({},un,Wt,{className:Yt,style:gn,title:yt,scope:Ae,onMouseEnter:$n?Jn:void 0,onMouseLeave:$n?ar:void 0,colSpan:gt!==1?gt:null,rowSpan:dt!==1?dt:null}),xt,Zn)}var vt=p.memo(We);function Ot(F,se,ie,oe,ge){var fe=ie[F]||{},be=ie[se]||{},Ee,Oe;fe.fixed==="left"?Ee=oe.left[ge==="rtl"?se:F]:be.fixed==="right"&&(Oe=oe.right[ge==="rtl"?F:se]);var ae=!1,ue=!1,ye=!1,Ae=!1,Pe=ie[se+1],tt=ie[F-1],Dt=Pe&&!Pe.fixed||tt&&!tt.fixed||ie.every(function(on){return on.fixed==="left"});if(ge==="rtl"){if(Ee!==void 0){var Ct=tt&&tt.fixed==="left";Ae=!Ct&&Dt}else if(Oe!==void 0){var zt=Pe&&Pe.fixed==="right";ye=!zt&&Dt}}else if(Ee!==void 0){var Pt=Pe&&Pe.fixed==="left";ae=!Pt&&Dt}else if(Oe!==void 0){var jt=tt&&tt.fixed==="right";ue=!jt&&Dt}return{fixLeft:Ee,fixRight:Oe,lastFixLeft:ae,firstFixRight:ue,lastFixRight:ye,firstFixLeft:Ae,isSticky:oe.isSticky}}var lt=p.createContext({}),Z=lt;function M(F){var se=F.className,ie=F.index,oe=F.children,ge=F.colSpan,fe=ge===void 0?1:ge,be=F.rowSpan,Ee=F.align,Oe=e(u,["prefixCls","direction"]),ae=Oe.prefixCls,ue=Oe.direction,ye=p.useContext(Z),Ae=ye.scrollColumnIndex,Pe=ye.stickyOffsets,tt=ye.flattenColumns,Dt=ie+fe-1,Ct=Dt+1===Ae?fe+1:fe,zt=Ot(ie,ie+Ct-1,tt,Pe,ue);return p.createElement(vt,(0,s.Z)({className:se,index:ie,component:"td",prefixCls:ae,record:null,dataIndex:null,align:Ee,colSpan:Ct,rowSpan:be,render:function(){return oe}},zt))}var H=l(74416),A=["children"];function te(F){var se=F.children,ie=(0,H.Z)(F,A);return p.createElement("tr",ie,se)}function ce(F){var se=F.children;return se}ce.Row=te,ce.Cell=M;var C=ce;function c(F){var se=F.children,ie=F.stickyOffsets,oe=F.flattenColumns,ge=e(u,"prefixCls"),fe=oe.length-1,be=oe[fe],Ee=p.useMemo(function(){return{stickyOffsets:ie,flattenColumns:oe,scrollColumnIndex:be!=null&&be.scrollbar?fe:null}},[be,oe,fe,ie]);return p.createElement(Z.Provider,{value:Ee},p.createElement("tfoot",{className:"".concat(ge,"-summary")},se))}var k=_(c),B=C,T=l(29301),z=l(29194),L=l(24514),ne=l(75152),ee=l(26112);function le(F,se,ie,oe,ge,fe,be){F.push({record:se,indent:ie,index:be});var Ee=fe(se),Oe=ge==null?void 0:ge.has(Ee);if(se&&Array.isArray(se[oe])&&Oe)for(var ae=0;ae<se[oe].length;ae+=1)le(F,se[oe][ae],ie+1,oe,ge,fe,ae)}function pe(F,se,ie,oe){var ge=p.useMemo(function(){if(ie!=null&&ie.size){for(var fe=[],be=0;be<(F==null?void 0:F.length);be+=1){var Ee=F[be];le(fe,Ee,0,se,ie,oe,be)}return fe}return F==null?void 0:F.map(function(Oe,ae){return{record:Oe,indent:0,index:ae}})},[F,se,ie,oe]);return ge}function ze(F,se,ie,oe){var ge=e(u,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),fe=ge.flattenColumns,be=ge.expandableType,Ee=ge.expandedKeys,Oe=ge.childrenColumnName,ae=ge.onTriggerExpand,ue=ge.rowExpandable,ye=ge.onRow,Ae=ge.expandRowByClick,Pe=ge.rowClassName,tt=be==="nest",Dt=be==="row"&&(!ue||ue(F)),Ct=Dt||tt,zt=Ee&&Ee.has(se),Pt=Oe&&F&&F[Oe],jt=(0,Et.zX)(ae),on=ye==null?void 0:ye(F,ie),Nt=on==null?void 0:on.onClick,ln=function(mn){Ae&&Ct&&ae(F,mn);for(var An=arguments.length,sn=new Array(An>1?An-1:0),hn=1;hn<An;hn++)sn[hn-1]=arguments[hn];Nt==null||Nt.apply(void 0,[mn].concat(sn))},tn;typeof Pe=="string"?tn=Pe:typeof Pe=="function"&&(tn=Pe(F,ie,oe));var Jt=h(fe);return(0,X.Z)((0,X.Z)({},ge),{},{columnsKey:Jt,nestExpandable:tt,expanded:zt,hasNestChildren:Pt,record:F,onTriggerExpand:jt,rowSupportExpand:Dt,expandable:Ct,rowProps:(0,X.Z)((0,X.Z)({},on),{},{className:x()(tn,on==null?void 0:on.className),onClick:ln})})}function Be(F){var se=F.prefixCls,ie=F.children,oe=F.component,ge=F.cellComponent,fe=F.className,be=F.expanded,Ee=F.colSpan,Oe=F.isEmpty,ae=e(u,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ue=ae.scrollbarSize,ye=ae.fixHeader,Ae=ae.fixColumn,Pe=ae.componentWidth,tt=ae.horizonScroll,Dt=ie;return(Oe?tt&&Pe:Ae)&&(Dt=p.createElement("div",{style:{width:Pe-(ye&&!Oe?ue:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(se,"-expanded-row-fixed")},Dt)),p.createElement(oe,{className:fe,style:{display:be?null:"none"}},p.createElement(vt,{component:ge,prefixCls:se,colSpan:Ee},Dt))}var ke=Be;function de(F){var se=F.prefixCls,ie=F.record,oe=F.onExpand,ge=F.expanded,fe=F.expandable,be="".concat(se,"-row-expand-icon");if(!fe)return p.createElement("span",{className:x()(be,"".concat(se,"-row-spaced"))});var Ee=function(ae){oe(ie,ae),ae.stopPropagation()};return p.createElement("span",{className:x()(be,(0,U.Z)((0,U.Z)({},"".concat(se,"-row-expanded"),ge),"".concat(se,"-row-collapsed"),!ge)),onClick:Ee})}function Te(F,se,ie){var oe=[];function ge(fe){(fe||[]).forEach(function(be,Ee){oe.push(se(be,Ee)),ge(be[ie])})}return ge(F),oe}function De(F,se,ie,oe){return typeof F=="string"?F:typeof F=="function"?F(se,ie,oe):""}function Ne(F,se,ie,oe,ge){var fe=F.record,be=F.prefixCls,Ee=F.columnsKey,Oe=F.fixedInfoList,ae=F.expandIconColumnIndex,ue=F.nestExpandable,ye=F.indentSize,Ae=F.expandIcon,Pe=F.expanded,tt=F.hasNestChildren,Dt=F.onTriggerExpand,Ct=Ee[ie],zt=Oe[ie],Pt;ie===(ae||0)&&ue&&(Pt=p.createElement(p.Fragment,null,p.createElement("span",{style:{paddingLeft:"".concat(ye*oe,"px")},className:"".concat(be,"-row-indent indent-level-").concat(oe)}),Ae({prefixCls:be,expanded:Pe,expandable:tt,record:fe,onExpand:Dt})));var jt;return se.onCell&&(jt=se.onCell(fe,ge)),{key:Ct,fixedInfo:zt,appendCellNode:Pt,additionalCellProps:jt||{}}}function ut(F){var se=F.className,ie=F.style,oe=F.record,ge=F.index,fe=F.renderIndex,be=F.rowKey,Ee=F.indent,Oe=Ee===void 0?0:Ee,ae=F.rowComponent,ue=F.cellComponent,ye=F.scopeCellComponent,Ae=ze(oe,be,ge,Oe),Pe=Ae.prefixCls,tt=Ae.flattenColumns,Dt=Ae.expandedRowClassName,Ct=Ae.expandedRowRender,zt=Ae.rowProps,Pt=Ae.expanded,jt=Ae.rowSupportExpand,on=p.useRef(!1);on.current||(on.current=Pt);var Nt=De(Dt,oe,ge,Oe),ln=p.createElement(ae,(0,s.Z)({},zt,{"data-row-key":be,className:x()(se,"".concat(Pe,"-row"),"".concat(Pe,"-row-level-").concat(Oe),zt==null?void 0:zt.className,(0,U.Z)({},Nt,Oe>=1)),style:(0,X.Z)((0,X.Z)({},ie),zt==null?void 0:zt.style)}),tt.map(function(cn,mn){var An=cn.render,sn=cn.dataIndex,hn=cn.className,$t=Ne(Ae,cn,mn,Oe,ge),xt=$t.key,Vt=$t.fixedInfo,Wt=$t.appendCellNode,En=$t.additionalCellProps;return p.createElement(vt,(0,s.Z)({className:hn,ellipsis:cn.ellipsis,align:cn.align,scope:cn.rowScope,component:cn.rowScope?ye:ue,prefixCls:Pe,key:xt,record:oe,index:ge,renderIndex:fe,dataIndex:sn,render:An,shouldCellUpdate:cn.shouldCellUpdate},Vt,{appendNode:Wt,additionalProps:En}))})),tn;if(jt&&(on.current||Pt)){var Jt=Ct(oe,ge,Oe+1,Pt);tn=p.createElement(ke,{expanded:Pt,className:x()("".concat(Pe,"-expanded-row"),"".concat(Pe,"-expanded-row-level-").concat(Oe+1),Nt),prefixCls:Pe,component:ae,cellComponent:ue,colSpan:tt.length,isEmpty:!1},Jt)}return p.createElement(p.Fragment,null,ln,tn)}var kt=_(ut);function Xe(F){var se=F.columnKey,ie=F.onColumnResize,oe=p.useRef();return p.useEffect(function(){oe.current&&ie(se,oe.current.offsetWidth)},[]),p.createElement(T.Z,{data:se},p.createElement("td",{ref:oe,style:{padding:0,border:0,height:0}},p.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Tt(F){var se=F.prefixCls,ie=F.columnsKey,oe=F.onColumnResize;return p.createElement("tr",{"aria-hidden":"true",className:"".concat(se,"-measure-row"),style:{height:0,fontSize:0}},p.createElement(T.Z.Collection,{onBatchResize:function(fe){fe.forEach(function(be){var Ee=be.data,Oe=be.size;oe(Ee,Oe.offsetWidth)})}},ie.map(function(ge){return p.createElement(Xe,{key:ge,columnKey:ge,onColumnResize:oe})})))}function nn(F){var se=F.data,ie=F.measureColumnWidth,oe=e(u,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ge=oe.prefixCls,fe=oe.getComponent,be=oe.onColumnResize,Ee=oe.flattenColumns,Oe=oe.getRowKey,ae=oe.expandedKeys,ue=oe.childrenColumnName,ye=oe.emptyNode,Ae=pe(se,ue,ae,Oe),Pe=p.useRef({renderWithProps:!1}),tt=fe(["body","wrapper"],"tbody"),Dt=fe(["body","row"],"tr"),Ct=fe(["body","cell"],"td"),zt=fe(["body","cell"],"th"),Pt;se.length?Pt=Ae.map(function(on,Nt){var ln=on.record,tn=on.indent,Jt=on.index,cn=Oe(ln,Nt);return p.createElement(kt,{key:cn,rowKey:cn,record:ln,index:Nt,renderIndex:Jt,rowComponent:Dt,cellComponent:Ct,scopeCellComponent:zt,indent:tn})}):Pt=p.createElement(ke,{expanded:!0,className:"".concat(ge,"-placeholder"),prefixCls:ge,component:Dt,cellComponent:Ct,colSpan:Ee.length,isEmpty:!0},ye);var jt=h(Ee);return p.createElement(y.Provider,{value:Pe.current},p.createElement(tt,{className:"".concat(ge,"-tbody")},ie&&p.createElement(Tt,{prefixCls:ge,columnsKey:jt,onColumnResize:be}),Pt))}var mt=_(nn),rt=l(90494),It=["columnType"];function Qt(F){for(var se=F.colWidths,ie=F.columns,oe=F.columCount,ge=e(u,["tableLayout"]),fe=ge.tableLayout,be=[],Ee=oe||ie.length,Oe=!1,ae=Ee-1;ae>=0;ae-=1){var ue=se[ae],ye=ie&&ie[ae],Ae=void 0,Pe=void 0;if(ye&&(Ae=ye[rt.v],fe==="auto"&&(Pe=ye.minWidth)),ue||Pe||Ae||Oe){var tt=Ae||{},Dt=tt.columnType,Ct=(0,H.Z)(tt,It);be.unshift(p.createElement("col",(0,s.Z)({key:ae,style:{width:ue,minWidth:Pe}},Ct))),Oe=!0}}return p.createElement("colgroup",null,be)}var Ut=Qt,en=l(80702),qt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function pt(F,se){return(0,p.useMemo)(function(){for(var ie=[],oe=0;oe<se;oe+=1){var ge=F[oe];if(ge!==void 0)ie[oe]=ge;else return null}return ie},[F.join("_"),se])}var ct=p.forwardRef(function(F,se){var ie=F.className,oe=F.noData,ge=F.columns,fe=F.flattenColumns,be=F.colWidths,Ee=F.columCount,Oe=F.stickyOffsets,ae=F.direction,ue=F.fixHeader,ye=F.stickyTopOffset,Ae=F.stickyBottomOffset,Pe=F.stickyClassName,tt=F.onScroll,Dt=F.maxContentScroll,Ct=F.children,zt=(0,H.Z)(F,qt),Pt=e(u,["prefixCls","scrollbarSize","isSticky","getComponent"]),jt=Pt.prefixCls,on=Pt.scrollbarSize,Nt=Pt.isSticky,ln=Pt.getComponent,tn=ln(["header","table"],"table"),Jt=Nt&&!ue?0:on,cn=p.useRef(null),mn=p.useCallback(function(En){(0,f.mH)(se,En),(0,f.mH)(cn,En)},[]);p.useEffect(function(){var En;function pn(Cn){var zn=Cn,Xn=zn.currentTarget,$n=zn.deltaX;$n&&(tt({currentTarget:Xn,scrollLeft:Xn.scrollLeft+$n}),Cn.preventDefault())}return(En=cn.current)===null||En===void 0||En.addEventListener("wheel",pn,{passive:!1}),function(){var Cn;(Cn=cn.current)===null||Cn===void 0||Cn.removeEventListener("wheel",pn)}},[]);var An=p.useMemo(function(){return fe.every(function(En){return En.width})},[fe]),sn=fe[fe.length-1],hn={fixed:sn?sn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(jt,"-cell-scrollbar")}}},$t=(0,p.useMemo)(function(){return Jt?[].concat((0,en.Z)(ge),[hn]):ge},[Jt,ge]),xt=(0,p.useMemo)(function(){return Jt?[].concat((0,en.Z)(fe),[hn]):fe},[Jt,fe]),Vt=(0,p.useMemo)(function(){var En=Oe.right,pn=Oe.left;return(0,X.Z)((0,X.Z)({},Oe),{},{left:ae==="rtl"?[].concat((0,en.Z)(pn.map(function(Cn){return Cn+Jt})),[0]):pn,right:ae==="rtl"?En:[].concat((0,en.Z)(En.map(function(Cn){return Cn+Jt})),[0]),isSticky:Nt})},[Jt,Oe,Nt]),Wt=pt(be,Ee);return p.createElement("div",{style:(0,X.Z)({overflow:"hidden"},Nt?{top:ye,bottom:Ae}:{}),ref:mn,className:x()(ie,(0,U.Z)({},Pe,!!Pe))},p.createElement(tn,{style:{tableLayout:"fixed",visibility:oe||Wt?null:"hidden"}},(!oe||!Dt||An)&&p.createElement(Ut,{colWidths:Wt?[].concat((0,en.Z)(Wt),[Jt]):[],columCount:Ee+1,columns:xt}),Ct((0,X.Z)((0,X.Z)({},zt),{},{stickyOffsets:Vt,columns:$t,flattenColumns:xt}))))}),ht=p.memo(ct),Ht=function(se){var ie=se.cells,oe=se.stickyOffsets,ge=se.flattenColumns,fe=se.rowComponent,be=se.cellComponent,Ee=se.onHeaderRow,Oe=se.index,ae=e(u,["prefixCls","direction"]),ue=ae.prefixCls,ye=ae.direction,Ae;Ee&&(Ae=Ee(ie.map(function(tt){return tt.column}),Oe));var Pe=h(ie.map(function(tt){return tt.column}));return p.createElement(fe,Ae,ie.map(function(tt,Dt){var Ct=tt.column,zt=Ot(tt.colStart,tt.colEnd,ge,oe,ye),Pt;return Ct&&Ct.onHeaderCell&&(Pt=tt.column.onHeaderCell(Ct)),p.createElement(vt,(0,s.Z)({},tt,{scope:Ct.title?tt.colSpan>1?"colgroup":"col":null,ellipsis:Ct.ellipsis,align:Ct.align,component:be,prefixCls:ue,key:Pe[Dt]},zt,{additionalProps:Pt,rowType:"header"}))}))},bn=Ht;function Ft(F){var se=[];function ie(be,Ee){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;se[Oe]=se[Oe]||[];var ae=Ee,ue=be.filter(Boolean).map(function(ye){var Ae={key:ye.key,className:ye.className||"",children:ye.title,column:ye,colStart:ae},Pe=1,tt=ye.children;return tt&&tt.length>0&&(Pe=ie(tt,ae,Oe+1).reduce(function(Dt,Ct){return Dt+Ct},0),Ae.hasSubColumns=!0),"colSpan"in ye&&(Pe=ye.colSpan),"rowSpan"in ye&&(Ae.rowSpan=ye.rowSpan),Ae.colSpan=Pe,Ae.colEnd=Ae.colStart+Pe-1,se[Oe].push(Ae),ae+=Pe,Pe});return ue}ie(F,0);for(var oe=se.length,ge=function(Ee){se[Ee].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=oe-Ee)})},fe=0;fe<oe;fe+=1)ge(fe);return se}var kn=function(se){var ie=se.stickyOffsets,oe=se.columns,ge=se.flattenColumns,fe=se.onHeaderRow,be=e(u,["prefixCls","getComponent"]),Ee=be.prefixCls,Oe=be.getComponent,ae=p.useMemo(function(){return Ft(oe)},[oe]),ue=Oe(["header","wrapper"],"thead"),ye=Oe(["header","row"],"tr"),Ae=Oe(["header","cell"],"th");return p.createElement(ue,{className:"".concat(Ee,"-thead")},ae.map(function(Pe,tt){var Dt=p.createElement(bn,{key:tt,flattenColumns:ge,cells:Pe,stickyOffsets:ie,rowComponent:ye,cellComponent:Ae,onHeaderRow:fe,index:tt});return Dt}))},Wn=_(kn),rn=l(78612);function yn(F,se,ie){var oe=(0,rt.g)(F),ge=oe.expandIcon,fe=oe.expandedRowKeys,be=oe.defaultExpandedRowKeys,Ee=oe.defaultExpandAllRows,Oe=oe.expandedRowRender,ae=oe.onExpand,ue=oe.onExpandedRowsChange,ye=oe.childrenColumnName,Ae=ge||de,Pe=ye||"children",tt=p.useMemo(function(){return Oe?"row":F.expandable&&F.internalHooks===N.R&&F.expandable.__PARENT_RENDER_ICON__||se.some(function(Nt){return Nt&&(0,j.Z)(Nt)==="object"&&Nt[Pe]})?"nest":!1},[!!Oe,se]),Dt=p.useState(function(){return be||(Ee?Te(se,ie,Pe):[])}),Ct=(0,D.Z)(Dt,2),zt=Ct[0],Pt=Ct[1],jt=p.useMemo(function(){return new Set(fe||zt||[])},[fe,zt]),on=p.useCallback(function(Nt){var ln=ie(Nt,se.indexOf(Nt)),tn,Jt=jt.has(ln);Jt?(jt.delete(ln),tn=(0,en.Z)(jt)):tn=[].concat((0,en.Z)(jt),[ln]),Pt(tn),ae&&ae(!Jt,Nt),ue&&ue(tn)},[ie,jt,se,ae,ue]);return[oe,tt,jt,Ae,Pe,on]}function Rn(F,se,ie){var oe=F.map(function(ge,fe){return Ot(fe,fe,F,se,ie)});return(0,v.Z)(function(){return oe},[oe],function(ge,fe){return!(0,V.Z)(ge,fe)})}function wn(F){var se=(0,p.useRef)(F),ie=(0,p.useState)({}),oe=(0,D.Z)(ie,2),ge=oe[1],fe=(0,p.useRef)(null),be=(0,p.useRef)([]);function Ee(Oe){be.current.push(Oe);var ae=Promise.resolve();fe.current=ae,ae.then(function(){if(fe.current===ae){var ue=be.current,ye=se.current;be.current=[],ue.forEach(function(Ae){se.current=Ae(se.current)}),fe.current=null,ye!==se.current&&ge({})}})}return(0,p.useEffect)(function(){return function(){fe.current=null}},[]),[se.current,Ee]}function Pn(F){var se=(0,p.useRef)(F||null),ie=(0,p.useRef)();function oe(){window.clearTimeout(ie.current)}function ge(be){se.current=be,oe(),ie.current=window.setTimeout(function(){se.current=null,ie.current=void 0},100)}function fe(){return se.current}return(0,p.useEffect)(function(){return oe},[]),[ge,fe]}function _n(){var F=p.useState(-1),se=(0,D.Z)(F,2),ie=se[0],oe=se[1],ge=p.useState(-1),fe=(0,D.Z)(ge,2),be=fe[0],Ee=fe[1],Oe=p.useCallback(function(ae,ue){oe(ae),Ee(ue)},[]);return[ie,be,Oe]}var Nn=l(47273),Tn=(0,Nn.Z)()?window:null;function fn(F,se){var ie=(0,j.Z)(F)==="object"?F:{},oe=ie.offsetHeader,ge=oe===void 0?0:oe,fe=ie.offsetSummary,be=fe===void 0?0:fe,Ee=ie.offsetScroll,Oe=Ee===void 0?0:Ee,ae=ie.getContainer,ue=ae===void 0?function(){return Tn}:ae,ye=ue()||Tn,Ae=!!F;return p.useMemo(function(){return{isSticky:Ae,stickyClassName:Ae?"".concat(se,"-sticky-holder"):"",offsetHeader:ge,offsetSummary:be,offsetScroll:Oe,container:ye}},[Ae,Oe,ge,be,se,ye])}function q(F,se,ie){var oe=(0,p.useMemo)(function(){var ge=se.length,fe=function(ae,ue,ye){for(var Ae=[],Pe=0,tt=ae;tt!==ue;tt+=ye)Ae.push(Pe),se[tt].fixed&&(Pe+=F[tt]||0);return Ae},be=fe(0,ge,1),Ee=fe(ge-1,-1,-1).reverse();return ie==="rtl"?{left:Ee,right:be}:{left:be,right:Ee}},[F,se,ie]);return oe}var Y=q;function $e(F){var se=F.className,ie=F.children;return p.createElement("div",{className:se},ie)}var Le=$e,Je=l(8224),Qe=l(16089),st=l(76846);function nt(F){var se=(0,st.bn)(F),ie=se.getBoundingClientRect(),oe=document.documentElement;return{left:ie.left+(window.pageXOffset||oe.scrollLeft)-(oe.clientLeft||document.body.clientLeft||0),top:ie.top+(window.pageYOffset||oe.scrollTop)-(oe.clientTop||document.body.clientTop||0)}}var je=function(se,ie){var oe,ge,fe=se.scrollBodyRef,be=se.onScroll,Ee=se.offsetScroll,Oe=se.container,ae=se.direction,ue=e(u,"prefixCls"),ye=((oe=fe.current)===null||oe===void 0?void 0:oe.scrollWidth)||0,Ae=((ge=fe.current)===null||ge===void 0?void 0:ge.clientWidth)||0,Pe=ye&&Ae*(Ae/ye),tt=p.useRef(),Dt=wn({scrollLeft:0,isHiddenScrollBar:!0}),Ct=(0,D.Z)(Dt,2),zt=Ct[0],Pt=Ct[1],jt=p.useRef({delta:0,x:0}),on=p.useState(!1),Nt=(0,D.Z)(on,2),ln=Nt[0],tn=Nt[1],Jt=p.useRef(null);p.useEffect(function(){return function(){Qe.Z.cancel(Jt.current)}},[]);var cn=function(){tn(!1)},mn=function(xt){xt.persist(),jt.current.delta=xt.pageX-zt.scrollLeft,jt.current.x=0,tn(!0),xt.preventDefault()},An=function(xt){var Vt,Wt=xt||((Vt=window)===null||Vt===void 0?void 0:Vt.event),En=Wt.buttons;if(!ln||En===0){ln&&tn(!1);return}var pn=jt.current.x+xt.pageX-jt.current.x-jt.current.delta,Cn=ae==="rtl";pn=Math.max(Cn?Pe-Ae:0,Math.min(Cn?0:Ae-Pe,pn));var zn=!Cn||Math.abs(pn)+Math.abs(Pe)<Ae;zn&&(be({scrollLeft:pn/Ae*(ye+2)}),jt.current.x=xt.pageX)},sn=function(){Qe.Z.cancel(Jt.current),Jt.current=(0,Qe.Z)(function(){if(fe.current){var xt=nt(fe.current).top,Vt=xt+fe.current.offsetHeight,Wt=Oe===window?document.documentElement.scrollTop+window.innerHeight:nt(Oe).top+Oe.clientHeight;Vt-(0,ne.Z)()<=Wt||xt>=Wt-Ee?Pt(function(En){return(0,X.Z)((0,X.Z)({},En),{},{isHiddenScrollBar:!0})}):Pt(function(En){return(0,X.Z)((0,X.Z)({},En),{},{isHiddenScrollBar:!1})})}})},hn=function(xt){Pt(function(Vt){return(0,X.Z)((0,X.Z)({},Vt),{},{scrollLeft:xt/ye*Ae||0})})};return p.useImperativeHandle(ie,function(){return{setScrollLeft:hn,checkScrollBarVisible:sn}}),p.useEffect(function(){var $t=(0,Je.Z)(document.body,"mouseup",cn,!1),xt=(0,Je.Z)(document.body,"mousemove",An,!1);return sn(),function(){$t.remove(),xt.remove()}},[Pe,ln]),p.useEffect(function(){if(fe.current){for(var $t=[],xt=(0,st.bn)(fe.current);xt;)$t.push(xt),xt=xt.parentElement;return $t.forEach(function(Vt){return Vt.addEventListener("scroll",sn,!1)}),window.addEventListener("resize",sn,!1),window.addEventListener("scroll",sn,!1),Oe.addEventListener("scroll",sn,!1),function(){$t.forEach(function(Vt){return Vt.removeEventListener("scroll",sn)}),window.removeEventListener("resize",sn),window.removeEventListener("scroll",sn),Oe.removeEventListener("scroll",sn)}}},[Oe]),p.useEffect(function(){zt.isHiddenScrollBar||Pt(function($t){var xt=fe.current;return xt?(0,X.Z)((0,X.Z)({},$t),{},{scrollLeft:xt.scrollLeft/xt.scrollWidth*xt.clientWidth}):$t})},[zt.isHiddenScrollBar]),ye<=Ae||!Pe||zt.isHiddenScrollBar?null:p.createElement("div",{style:{height:(0,ne.Z)(),width:Ae,bottom:Ee},className:"".concat(ue,"-sticky-scroll")},p.createElement("div",{onMouseDown:mn,ref:tt,className:x()("".concat(ue,"-sticky-scroll-bar"),(0,U.Z)({},"".concat(ue,"-sticky-scroll-bar-active"),ln)),style:{width:"".concat(Pe,"px"),transform:"translate3d(".concat(zt.scrollLeft,"px, 0, 0)")}}))},Ce=p.forwardRef(je);function Ie(F){return null}var Ye=Ie;function ft(F){return null}var it=ft,Gt="rc-table",et=[],Ge={};function Q(){return"No Data"}function me(F,se){var ie=(0,X.Z)({rowKey:"key",prefixCls:Gt,emptyText:Q},F),oe=ie.prefixCls,ge=ie.className,fe=ie.rowClassName,be=ie.style,Ee=ie.data,Oe=ie.rowKey,ae=ie.scroll,ue=ie.tableLayout,ye=ie.direction,Ae=ie.title,Pe=ie.footer,tt=ie.summary,Dt=ie.caption,Ct=ie.id,zt=ie.showHeader,Pt=ie.components,jt=ie.emptyText,on=ie.onRow,Nt=ie.onHeaderRow,ln=ie.onScroll,tn=ie.internalHooks,Jt=ie.transformColumns,cn=ie.internalRefs,mn=ie.tailor,An=ie.getContainerWidth,sn=ie.sticky,hn=ie.rowHoverable,$t=hn===void 0?!0:hn,xt=Ee||et,Vt=!!xt.length,Wt=tn===N.R,En=p.useCallback(function(Kn,Fn){return(0,w.Z)(Pt,Kn)||Fn},[Pt]),pn=p.useMemo(function(){return typeof Oe=="function"?Oe:function(Kn){var Fn=Kn&&Kn[Oe];return Fn}},[Oe]),Cn=En(["body"]),zn=_n(),Xn=(0,D.Z)(zn,3),$n=Xn[0],tr=Xn[1],rr=Xn[2],Gn=yn(ie,xt,pn),un=(0,D.Z)(Gn,6),In=un[0],Bn=un[1],Lt=un[2],gt=un[3],dt=un[4],Zt=un[5],Sn=ae==null?void 0:ae.x,Ln=p.useState(0),ir=(0,D.Z)(Ln,2),Jn=ir[0],ar=ir[1],yt=(0,rn.Z)((0,X.Z)((0,X.Z)((0,X.Z)({},ie),In),{},{expandable:!!In.expandedRowRender,columnTitle:In.columnTitle,expandedKeys:Lt,getRowKey:pn,onTriggerExpand:Zt,expandIcon:gt,expandIconColumnIndex:In.expandIconColumnIndex,direction:ye,scrollWidth:Wt&&mn&&typeof Sn=="number"?Sn:null,clientWidth:Jn}),Wt?Jt:null),Yt=(0,D.Z)(yt,4),Dn=Yt[0],gn=Yt[1],Zn=Yt[2],lr=Yt[3],jn=Zn!=null?Zn:Sn,ur=p.useMemo(function(){return{columns:Dn,flattenColumns:gn}},[Dn,gn]),hr=p.useRef(),Pr=p.useRef(),Hn=p.useRef(),Lr=p.useRef();p.useImperativeHandle(se,function(){return{nativeElement:hr.current,scrollTo:function(Fn){var fr;if(Hn.current instanceof HTMLElement){var gr=Fn.index,dr=Fn.top,Ur=Fn.key;if(re(dr)){var Mr;(Mr=Hn.current)===null||Mr===void 0||Mr.scrollTo({top:dr})}else{var Zr,Qr=Ur!=null?Ur:pn(xt[gr]);(Zr=Hn.current.querySelector('[data-row-key="'.concat(Qr,'"]')))===null||Zr===void 0||Zr.scrollIntoView()}}else(fr=Hn.current)!==null&&fr!==void 0&&fr.scrollTo&&Hn.current.scrollTo(Fn)}}});var Kr=p.useRef(),Vr=p.useState(!1),Nr=(0,D.Z)(Vr,2),Cr=Nr[0],xr=Nr[1],Or=p.useState(!1),mr=(0,D.Z)(Or,2),Dr=mr[0],Er=mr[1],Fr=wn(new Map),kr=(0,D.Z)(Fr,2),Hr=kr[0],Br=kr[1],$r=h(gn),Tr=$r.map(function(Kn){return Hr.get(Kn)}),Sr=p.useMemo(function(){return Tr},[Tr.join("_")]),Mn=Y(Sr,gn,ye),vn=ae&&I(ae.y),Un=ae&&I(jn)||!!In.fixed,Qn=Un&&gn.some(function(Kn){var Fn=Kn.fixed;return Fn}),qn=p.useRef(),er=fn(sn,oe),sr=er.isSticky,_r=er.offsetHeader,vr=er.offsetSummary,wr=er.offsetScroll,yr=er.stickyClassName,Rr=er.container,or=p.useMemo(function(){return tt==null?void 0:tt(xt)},[tt,xt]),Ir=(vn||sr)&&p.isValidElement(or)&&or.type===C&&or.props.fixed,Gr,zr,Yr;vn&&(zr={overflowY:Vt?"scroll":"auto",maxHeight:ae.y}),Un&&(Gr={overflowX:"auto"},vn||(zr={overflowY:"hidden"}),Yr={width:jn===!0?"auto":jn,minWidth:"100%"});var qr=p.useCallback(function(Kn,Fn){(0,z.Z)(hr.current)&&Br(function(fr){if(fr.get(Kn)!==Fn){var gr=new Map(fr);return gr.set(Kn,Fn),gr}return fr})},[]),nr=Pn(null),Vn=(0,D.Z)(nr,2),Yn=Vn[0],pr=Vn[1];function cr(Kn,Fn){Fn&&(typeof Fn=="function"?Fn(Kn):Fn.scrollLeft!==Kn&&(Fn.scrollLeft=Kn,Fn.scrollLeft!==Kn&&setTimeout(function(){Fn.scrollLeft=Kn},0)))}var br=(0,W.Z)(function(Kn){var Fn=Kn.currentTarget,fr=Kn.scrollLeft,gr=ye==="rtl",dr=typeof fr=="number"?fr:Fn.scrollLeft,Ur=Fn||Ge;if(!pr()||pr()===Ur){var Mr;Yn(Ur),cr(dr,Pr.current),cr(dr,Hn.current),cr(dr,Kr.current),cr(dr,(Mr=qn.current)===null||Mr===void 0?void 0:Mr.setScrollLeft)}var Zr=Fn||Pr.current;if(Zr){var Qr=Wt&&mn&&typeof jn=="number"?jn:Zr.scrollWidth,oa=Zr.clientWidth;if(Qr===oa){xr(!1),Er(!1);return}gr?(xr(-dr<Qr-oa),Er(-dr>0)):(xr(dr>0),Er(dr<Qr-oa))}}),Xr=(0,W.Z)(function(Kn){br(Kn),ln==null||ln(Kn)}),ea=function(){if(Un&&Hn.current){var Fn;br({currentTarget:(0,st.bn)(Hn.current),scrollLeft:(Fn=Hn.current)===null||Fn===void 0?void 0:Fn.scrollLeft})}else xr(!1),Er(!1)},ta=function(Fn){var fr,gr=Fn.width;(fr=qn.current)===null||fr===void 0||fr.checkScrollBarVisible();var dr=hr.current?hr.current.offsetWidth:gr;Wt&&An&&hr.current&&(dr=An(hr.current,dr)||dr),dr!==Jn&&(ea(),ar(dr))},Jr=p.useRef(!1);p.useEffect(function(){Jr.current&&ea()},[Un,Ee,Dn.length]),p.useEffect(function(){Jr.current=!0},[]);var Ar=p.useState(0),jr=(0,D.Z)(Ar,2),Wr=jr[0],la=jr[1],wa=p.useState(!0),ua=(0,D.Z)(wa,2),ca=ua[0],xa=ua[1];p.useEffect(function(){(!mn||!Wt)&&(Hn.current instanceof Element?la((0,ne.o)(Hn.current).width):la((0,ne.o)(Lr.current).width)),xa((0,L.G)("position","sticky"))},[]),p.useEffect(function(){Wt&&cn&&(cn.body.current=Hn.current)});var Ea=p.useCallback(function(Kn){return p.createElement(p.Fragment,null,p.createElement(Wn,Kn),Ir==="top"&&p.createElement(k,Kn,or))},[Ir,or]),Ca=p.useCallback(function(Kn){return p.createElement(k,Kn,or)},[or]),fa=En(["table"],"table"),na=p.useMemo(function(){return ue||(Qn?jn==="max-content"?"auto":"fixed":vn||sr||gn.some(function(Kn){var Fn=Kn.ellipsis;return Fn})?"fixed":"auto")},[vn,Qn,gn,ue,sr]),ra,aa={colWidths:Sr,columCount:gn.length,stickyOffsets:Mn,onHeaderRow:Nt,fixHeader:vn,scroll:ae},da=p.useMemo(function(){return Vt?null:typeof jt=="function"?jt():jt},[Vt,jt]),ha=p.createElement(mt,{data:xt,measureColumnWidth:vn||Un||sr}),pa=p.createElement(Ut,{colWidths:gn.map(function(Kn){var Fn=Kn.width;return Fn}),columns:gn}),_a=Dt!=null?p.createElement("caption",{className:"".concat(oe,"-caption")},Dt):void 0,Sa=(0,ee.Z)(ie,{data:!0}),va=(0,ee.Z)(ie,{aria:!0});if(vn||sr){var ia;typeof Cn=="function"?(ia=Cn(xt,{scrollbarSize:Wr,ref:Hn,onScroll:br}),aa.colWidths=gn.map(function(Kn,Fn){var fr=Kn.width,gr=Fn===gn.length-1?fr-Wr:fr;return typeof gr=="number"&&!Number.isNaN(gr)?gr:0})):ia=p.createElement("div",{style:(0,X.Z)((0,X.Z)({},Gr),zr),onScroll:Xr,ref:Hn,className:x()("".concat(oe,"-body"))},p.createElement(fa,(0,s.Z)({style:(0,X.Z)((0,X.Z)({},Yr),{},{tableLayout:na})},va),_a,pa,ha,!Ir&&or&&p.createElement(k,{stickyOffsets:Mn,flattenColumns:gn},or)));var ma=(0,X.Z)((0,X.Z)((0,X.Z)({noData:!xt.length,maxContentScroll:Un&&jn==="max-content"},aa),ur),{},{direction:ye,stickyClassName:yr,onScroll:br});ra=p.createElement(p.Fragment,null,zt!==!1&&p.createElement(ht,(0,s.Z)({},ma,{stickyTopOffset:_r,className:"".concat(oe,"-header"),ref:Pr}),Ea),ia,Ir&&Ir!=="top"&&p.createElement(ht,(0,s.Z)({},ma,{stickyBottomOffset:vr,className:"".concat(oe,"-summary"),ref:Kr}),Ca),sr&&Hn.current&&Hn.current instanceof Element&&p.createElement(Ce,{ref:qn,offsetScroll:wr,scrollBodyRef:Hn,onScroll:br,container:Rr,direction:ye}))}else ra=p.createElement("div",{style:(0,X.Z)((0,X.Z)({},Gr),zr),className:x()("".concat(oe,"-content")),onScroll:br,ref:Hn},p.createElement(fa,(0,s.Z)({style:(0,X.Z)((0,X.Z)({},Yr),{},{tableLayout:na})},va),_a,pa,zt!==!1&&p.createElement(Wn,(0,s.Z)({},aa,ur)),ha,or&&p.createElement(k,{stickyOffsets:Mn,flattenColumns:gn},or)));var sa=p.createElement("div",(0,s.Z)({className:x()(oe,ge,(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(oe,"-rtl"),ye==="rtl"),"".concat(oe,"-ping-left"),Cr),"".concat(oe,"-ping-right"),Dr),"".concat(oe,"-layout-fixed"),ue==="fixed"),"".concat(oe,"-fixed-header"),vn),"".concat(oe,"-fixed-column"),Qn),"".concat(oe,"-fixed-column-gapped"),Qn&&lr),"".concat(oe,"-scroll-horizontal"),Un),"".concat(oe,"-has-fix-left"),gn[0]&&gn[0].fixed),"".concat(oe,"-has-fix-right"),gn[gn.length-1]&&gn[gn.length-1].fixed==="right")),style:be,id:Ct,ref:hr},Sa),Ae&&p.createElement(Le,{className:"".concat(oe,"-title")},Ae(xt)),p.createElement("div",{ref:Lr,className:"".concat(oe,"-container")},ra),Pe&&p.createElement(Le,{className:"".concat(oe,"-footer")},Pe(xt)));Un&&(sa=p.createElement(T.Z,{onResize:ta},sa));var ga=Rn(gn,Mn,ye),Ra=p.useMemo(function(){return{scrollX:jn,prefixCls:oe,getComponent:En,scrollbarSize:Wr,direction:ye,fixedInfoList:ga,isSticky:sr,supportSticky:ca,componentWidth:Jn,fixHeader:vn,fixColumn:Qn,horizonScroll:Un,tableLayout:na,rowClassName:fe,expandedRowClassName:In.expandedRowClassName,expandIcon:gt,expandableType:Bn,expandRowByClick:In.expandRowByClick,expandedRowRender:In.expandedRowRender,onTriggerExpand:Zt,expandIconColumnIndex:In.expandIconColumnIndex,indentSize:In.indentSize,allColumnsFixedLeft:gn.every(function(Kn){return Kn.fixed==="left"}),emptyNode:da,columns:Dn,flattenColumns:gn,onColumnResize:qr,hoverStartRow:$n,hoverEndRow:tr,onHover:rr,rowExpandable:In.rowExpandable,onRow:on,getRowKey:pn,expandedKeys:Lt,childrenColumnName:dt,rowHoverable:$t}},[jn,oe,En,Wr,ye,ga,sr,ca,Jn,vn,Qn,Un,na,fe,In.expandedRowClassName,gt,Bn,In.expandRowByClick,In.expandedRowRender,Zt,In.expandIconColumnIndex,In.indentSize,da,Dn,gn,qr,$n,tr,rr,In.rowExpandable,on,pn,Lt,dt,$t]);return p.createElement(u.Provider,{value:Ra},sa)}var Re=p.forwardRef(me);function _e(F){return E(Re,F)}var Ze=_e();Ze.EXPAND_COLUMN=N.w,Ze.INTERNAL_HOOKS=N.R,Ze.Column=Ye,Ze.ColumnGroup=it,Ze.Summary=B;var xe=Ze,Ke=l(45680),He=G(null),_t=G(null);function ot(F,se,ie){var oe=se||1;return ie[F+oe]-(ie[F]||0)}function bt(F){var se=F.rowInfo,ie=F.column,oe=F.colIndex,ge=F.indent,fe=F.index,be=F.component,Ee=F.renderIndex,Oe=F.record,ae=F.style,ue=F.className,ye=F.inverse,Ae=F.getHeight,Pe=ie.render,tt=ie.dataIndex,Dt=ie.className,Ct=ie.width,zt=e(_t,["columnsOffset"]),Pt=zt.columnsOffset,jt=Ne(se,ie,oe,ge,fe),on=jt.key,Nt=jt.fixedInfo,ln=jt.appendCellNode,tn=jt.additionalCellProps,Jt=tn.style,cn=tn.colSpan,mn=cn===void 0?1:cn,An=tn.rowSpan,sn=An===void 0?1:An,hn=oe-1,$t=ot(hn,mn,Pt),xt=mn>1?Ct-$t:0,Vt=(0,X.Z)((0,X.Z)((0,X.Z)({},Jt),ae),{},{flex:"0 0 ".concat($t,"px"),width:"".concat($t,"px"),marginRight:xt,pointerEvents:"auto"}),Wt=p.useMemo(function(){return ye?sn<=1:mn===0||sn===0||sn>1},[sn,mn,ye]);Wt?Vt.visibility="hidden":ye&&(Vt.height=Ae==null?void 0:Ae(sn));var En=Wt?function(){return null}:Pe,pn={};return(sn===0||mn===0)&&(pn.rowSpan=1,pn.colSpan=1),p.createElement(vt,(0,s.Z)({className:x()(Dt,ue),ellipsis:ie.ellipsis,align:ie.align,scope:ie.rowScope,component:be,prefixCls:se.prefixCls,key:on,record:Oe,index:fe,renderIndex:Ee,dataIndex:tt,render:En,shouldCellUpdate:ie.shouldCellUpdate},Nt,{appendNode:ln,additionalProps:(0,X.Z)((0,X.Z)({},tn),{},{style:Vt},pn)}))}var wt=bt,At=["data","index","className","rowKey","style","extra","getHeight"],Bt=p.forwardRef(function(F,se){var ie=F.data,oe=F.index,ge=F.className,fe=F.rowKey,be=F.style,Ee=F.extra,Oe=F.getHeight,ae=(0,H.Z)(F,At),ue=ie.record,ye=ie.indent,Ae=ie.index,Pe=e(u,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),tt=Pe.scrollX,Dt=Pe.flattenColumns,Ct=Pe.prefixCls,zt=Pe.fixColumn,Pt=Pe.componentWidth,jt=e(He,["getComponent"]),on=jt.getComponent,Nt=ze(ue,fe,oe,ye),ln=on(["body","row"],"div"),tn=on(["body","cell"],"div"),Jt=Nt.rowSupportExpand,cn=Nt.expanded,mn=Nt.rowProps,An=Nt.expandedRowRender,sn=Nt.expandedRowClassName,hn;if(Jt&&cn){var $t=An(ue,oe,ye+1,cn),xt=De(sn,ue,oe,ye),Vt={};zt&&(Vt={style:(0,U.Z)({},"--virtual-width","".concat(Pt,"px"))});var Wt="".concat(Ct,"-expanded-row-cell");hn=p.createElement(ln,{className:x()("".concat(Ct,"-expanded-row"),"".concat(Ct,"-expanded-row-level-").concat(ye+1),xt)},p.createElement(vt,{component:tn,prefixCls:Ct,className:x()(Wt,(0,U.Z)({},"".concat(Wt,"-fixed"),zt)),additionalProps:Vt},$t))}var En=(0,X.Z)((0,X.Z)({},be),{},{width:tt});Ee&&(En.position="absolute",En.pointerEvents="none");var pn=p.createElement(ln,(0,s.Z)({},mn,ae,{"data-row-key":fe,ref:Jt?null:se,className:x()(ge,"".concat(Ct,"-row"),mn==null?void 0:mn.className,(0,U.Z)({},"".concat(Ct,"-row-extra"),Ee)),style:(0,X.Z)((0,X.Z)({},En),mn==null?void 0:mn.style)}),Dt.map(function(Cn,zn){return p.createElement(wt,{key:zn,component:tn,rowInfo:Nt,column:Cn,colIndex:zn,indent:ye,index:oe,renderIndex:Ae,record:ue,inverse:Ee,getHeight:Oe})}));return Jt?p.createElement("div",{ref:se},pn,hn):pn}),Mt=_(Bt),St=Mt,Rt=p.forwardRef(function(F,se){var ie=F.data,oe=F.onScroll,ge=e(u,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),fe=ge.flattenColumns,be=ge.onColumnResize,Ee=ge.getRowKey,Oe=ge.expandedKeys,ae=ge.prefixCls,ue=ge.childrenColumnName,ye=ge.scrollX,Ae=ge.direction,Pe=e(He),tt=Pe.sticky,Dt=Pe.scrollY,Ct=Pe.listItemHeight,zt=Pe.getComponent,Pt=Pe.onScroll,jt=p.useRef(),on=pe(ie,ue,Oe,Ee),Nt=p.useMemo(function(){var hn=0;return fe.map(function($t){var xt=$t.width,Vt=$t.key;return hn+=xt,[Vt,xt,hn]})},[fe]),ln=p.useMemo(function(){return Nt.map(function(hn){return hn[2]})},[Nt]);p.useEffect(function(){Nt.forEach(function(hn){var $t=(0,D.Z)(hn,2),xt=$t[0],Vt=$t[1];be(xt,Vt)})},[Nt]),p.useImperativeHandle(se,function(){var hn,$t={scrollTo:function(Vt){var Wt;(Wt=jt.current)===null||Wt===void 0||Wt.scrollTo(Vt)},nativeElement:(hn=jt.current)===null||hn===void 0?void 0:hn.nativeElement};return Object.defineProperty($t,"scrollLeft",{get:function(){var Vt;return((Vt=jt.current)===null||Vt===void 0?void 0:Vt.getScrollInfo().x)||0},set:function(Vt){var Wt;(Wt=jt.current)===null||Wt===void 0||Wt.scrollTo({left:Vt})}}),$t});var tn=function($t,xt){var Vt,Wt=(Vt=on[xt])===null||Vt===void 0?void 0:Vt.record,En=$t.onCell;if(En){var pn,Cn=En(Wt,xt);return(pn=Cn==null?void 0:Cn.rowSpan)!==null&&pn!==void 0?pn:1}return 1},Jt=function($t){var xt=$t.start,Vt=$t.end,Wt=$t.getSize,En=$t.offsetY;if(Vt<0)return null;for(var pn=fe.filter(function(gt){return tn(gt,xt)===0}),Cn=xt,zn=function(dt){if(pn=pn.filter(function(Zt){return tn(Zt,dt)===0}),!pn.length)return Cn=dt,1},Xn=xt;Xn>=0&&!zn(Xn);Xn-=1);for(var $n=fe.filter(function(gt){return tn(gt,Vt)!==1}),tr=Vt,rr=function(dt){if($n=$n.filter(function(Zt){return tn(Zt,dt)!==1}),!$n.length)return tr=Math.max(dt-1,Vt),1},Gn=Vt;Gn<on.length&&!rr(Gn);Gn+=1);for(var un=[],In=function(dt){var Zt=on[dt];if(!Zt)return 1;fe.some(function(Sn){return tn(Sn,dt)>1})&&un.push(dt)},Bn=Cn;Bn<=tr;Bn+=1)In(Bn);var Lt=un.map(function(gt){var dt=on[gt],Zt=Ee(dt.record,gt),Sn=function(Jn){var ar=gt+Jn-1,yt=Ee(on[ar].record,ar),Yt=Wt(Zt,yt);return Yt.bottom-Yt.top},Ln=Wt(Zt);return p.createElement(St,{key:gt,data:dt,rowKey:Zt,index:gt,style:{top:-En+Ln.top},extra:!0,getHeight:Sn})});return Lt},cn=p.useMemo(function(){return{columnsOffset:ln}},[ln]),mn="".concat(ae,"-tbody"),An=zt(["body","wrapper"]),sn={};return tt&&(sn.position="sticky",sn.bottom=0,(0,j.Z)(tt)==="object"&&tt.offsetScroll&&(sn.bottom=tt.offsetScroll)),p.createElement(_t.Provider,{value:cn},p.createElement(Ke.Z,{fullHeight:!1,ref:jt,prefixCls:"".concat(mn,"-virtual"),styles:{horizontalScrollBar:sn},className:mn,height:Dt,itemHeight:Ct||24,data:on,itemKey:function($t){return Ee($t.record)},component:An,scrollWidth:ye,direction:Ae,onVirtualScroll:function($t){var xt,Vt=$t.x;oe({currentTarget:(xt=jt.current)===null||xt===void 0?void 0:xt.nativeElement,scrollLeft:Vt})},onScroll:Pt,extraRender:Jt},function(hn,$t,xt){var Vt=Ee(hn.record,$t);return p.createElement(St,{data:hn,rowKey:Vt,index:$t,style:xt.style})}))}),Xt=_(Rt),qe=Xt,Ve=function(se,ie){var oe=ie.ref,ge=ie.onScroll;return p.createElement(qe,{ref:oe,data:se,onScroll:ge})};function at(F,se){var ie=F.data,oe=F.columns,ge=F.scroll,fe=F.sticky,be=F.prefixCls,Ee=be===void 0?Gt:be,Oe=F.className,ae=F.listItemHeight,ue=F.components,ye=F.onScroll,Ae=ge||{},Pe=Ae.x,tt=Ae.y;typeof Pe!="number"&&(Pe=1),typeof tt!="number"&&(tt=500);var Dt=(0,Et.zX)(function(Pt,jt){return(0,w.Z)(ue,Pt)||jt}),Ct=(0,Et.zX)(ye),zt=p.useMemo(function(){return{sticky:fe,scrollY:tt,listItemHeight:ae,getComponent:Dt,onScroll:Ct}},[fe,tt,ae,Dt,Ct]);return p.createElement(He.Provider,{value:zt},p.createElement(xe,(0,s.Z)({},F,{className:x()(Oe,"".concat(Ee,"-virtual")),scroll:(0,X.Z)((0,X.Z)({},ge),{},{x:Pe}),components:(0,X.Z)((0,X.Z)({},ue),{},{body:ie!=null&&ie.length?Ve:void 0}),columns:oe,internalHooks:N.R,tailor:!0,ref:se})))}var an=p.forwardRef(at);function dn(F){return E(an,F)}var xn=dn(),On=null},90494:function(Kt,Fe,l){"use strict";l.d(Fe,{g:function(){return p},v:function(){return V}});var N=l(77321),D=l(74416),W=l(48736),J=["expandable"],V="RC_TABLE_INTERNAL_COL_DEFINE";function p($){var G=$.expandable,e=(0,D.Z)($,J),s;return"expandable"in $?s=(0,N.Z)((0,N.Z)({},e),G):s=e,s.showExpandColumn===!1&&(s.expandIconColumnIndex=-1),s}},22711:function(Kt,Fe,l){"use strict";l.r(Fe),l.d(Fe,{ResizableTextArea:function(){return Se},default:function(){return R}});var N=l(72308),D=l(49618),W=l(77321),J=l(80702),V=l(52487),p=l(74416),$=l(92310),G=l.n($),e=l(36901),s=l(66003),f=l(30292),t=l(18929),r=l(59301),i=l(62853),o=l(29301),m=l(34280),b=l(16089),E=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],g={},d;function u(S){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=S.getAttribute("id")||S.getAttribute("data-reactid")||S.getAttribute("name");if(y&&g[n])return g[n];var a=window.getComputedStyle(S),h=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),I=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),re=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),he=_.map(function(Me){return"".concat(Me,":").concat(a.getPropertyValue(Me))}).join(";"),we={sizingStyle:he,paddingSize:I,borderSize:re,boxSizing:h};return y&&n&&(g[n]=we),we}function O(S){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;d||(d=document.createElement("textarea"),d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),d.setAttribute("name","hiddenTextarea"),document.body.appendChild(d)),S.getAttribute("wrap")?d.setAttribute("wrap",S.getAttribute("wrap")):d.removeAttribute("wrap");var h=u(S,y),I=h.paddingSize,re=h.borderSize,he=h.boxSizing,we=h.sizingStyle;d.setAttribute("style","".concat(we,";").concat(E)),d.value=S.value||S.placeholder||"";var Me=void 0,Ue=void 0,Et,ve=d.scrollHeight;if(he==="border-box"?ve+=re:he==="content-box"&&(ve-=I),n!==null||a!==null){d.value=" ";var We=d.scrollHeight-I;n!==null&&(Me=We*n,he==="border-box"&&(Me=Me+I+re),ve=Math.max(Me,ve)),a!==null&&(Ue=We*a,he==="border-box"&&(Ue=Ue+I+re),Et=ve>Ue?"":"hidden",ve=Math.min(Ue,ve))}var vt={height:ve,overflowY:Et,resize:"none"};return Me&&(vt.minHeight=Me),Ue&&(vt.maxHeight=Ue),vt}var P=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],K=0,j=1,X=2,U=r.forwardRef(function(S,y){var n=S,a=n.prefixCls,h=n.defaultValue,I=n.value,re=n.autoSize,he=n.onResize,we=n.className,Me=n.style,Ue=n.disabled,Et=n.onChange,ve=n.onInternalAutoSize,We=(0,p.Z)(n,P),vt=(0,t.Z)(h,{value:I,postState:function(ut){return ut!=null?ut:""}}),Ot=(0,V.Z)(vt,2),lt=Ot[0],Z=Ot[1],M=function(ut){Z(ut.target.value),Et==null||Et(ut)},H=r.useRef();r.useImperativeHandle(y,function(){return{textArea:H.current}});var A=r.useMemo(function(){return re&&(0,i.Z)(re)==="object"?[re.minRows,re.maxRows]:[]},[re]),te=(0,V.Z)(A,2),ce=te[0],C=te[1],c=!!re,k=function(){try{if(document.activeElement===H.current){var ut=H.current,kt=ut.selectionStart,Xe=ut.selectionEnd,Tt=ut.scrollTop;H.current.setSelectionRange(kt,Xe),H.current.scrollTop=Tt}}catch(nn){}},B=r.useState(X),T=(0,V.Z)(B,2),z=T[0],L=T[1],ne=r.useState(),ee=(0,V.Z)(ne,2),le=ee[0],pe=ee[1],ze=function(){L(K)};(0,m.Z)(function(){c&&ze()},[I,ce,C,c]),(0,m.Z)(function(){if(z===K)L(j);else if(z===j){var Ne=O(H.current,!1,ce,C);L(X),pe(Ne)}else k()},[z]);var Be=r.useRef(),ke=function(){b.Z.cancel(Be.current)},de=function(ut){z===X&&(he==null||he(ut),re&&(ke(),Be.current=(0,b.Z)(function(){ze()})))};r.useEffect(function(){return ke},[]);var Te=c?le:null,De=(0,W.Z)((0,W.Z)({},Me),Te);return(z===K||z===j)&&(De.overflowY="hidden",De.overflowX="hidden"),r.createElement(o.Z,{onResize:de,disabled:!(re||he)},r.createElement("textarea",(0,N.Z)({},We,{ref:H,style:De,className:G()(a,we,(0,D.Z)({},"".concat(a,"-disabled"),Ue)),disabled:Ue,value:lt,onChange:M})))}),Se=U,x=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],v=r.forwardRef(function(S,y){var n,a=S.defaultValue,h=S.value,I=S.onFocus,re=S.onBlur,he=S.onChange,we=S.allowClear,Me=S.maxLength,Ue=S.onCompositionStart,Et=S.onCompositionEnd,ve=S.suffix,We=S.prefixCls,vt=We===void 0?"rc-textarea":We,Ot=S.showCount,lt=S.count,Z=S.className,M=S.style,H=S.disabled,A=S.hidden,te=S.classNames,ce=S.styles,C=S.onResize,c=S.onClear,k=S.onPressEnter,B=S.readOnly,T=S.autoSize,z=S.onKeyDown,L=(0,p.Z)(S,x),ne=(0,t.Z)(a,{value:h,defaultValue:a}),ee=(0,V.Z)(ne,2),le=ee[0],pe=ee[1],ze=le==null?"":String(le),Be=r.useState(!1),ke=(0,V.Z)(Be,2),de=ke[0],Te=ke[1],De=r.useRef(!1),Ne=r.useState(null),ut=(0,V.Z)(Ne,2),kt=ut[0],Xe=ut[1],Tt=(0,r.useRef)(null),nn=(0,r.useRef)(null),mt=function(){var q;return(q=nn.current)===null||q===void 0?void 0:q.textArea},rt=function(){mt().focus()};(0,r.useImperativeHandle)(y,function(){var fn;return{resizableTextArea:nn.current,focus:rt,blur:function(){mt().blur()},nativeElement:((fn=Tt.current)===null||fn===void 0?void 0:fn.nativeElement)||mt()}}),(0,r.useEffect)(function(){Te(function(fn){return!H&&fn})},[H]);var It=r.useState(null),Qt=(0,V.Z)(It,2),Ut=Qt[0],en=Qt[1];r.useEffect(function(){if(Ut){var fn;(fn=mt()).setSelectionRange.apply(fn,(0,J.Z)(Ut))}},[Ut]);var qt=(0,s.Z)(lt,Ot),pt=(n=qt.max)!==null&&n!==void 0?n:Me,ct=Number(pt)>0,ht=qt.strategy(ze),Ht=!!pt&&ht>pt,bn=function(q,Y){var $e=Y;!De.current&&qt.exceedFormatter&&qt.max&&qt.strategy(Y)>qt.max&&($e=qt.exceedFormatter(Y,{max:qt.max}),Y!==$e&&en([mt().selectionStart||0,mt().selectionEnd||0])),pe($e),(0,f.rJ)(q.currentTarget,q,he,$e)},Ft=function(q){De.current=!0,Ue==null||Ue(q)},kn=function(q){De.current=!1,bn(q,q.currentTarget.value),Et==null||Et(q)},Wn=function(q){bn(q,q.target.value)},rn=function(q){q.key==="Enter"&&k&&k(q),z==null||z(q)},yn=function(q){Te(!0),I==null||I(q)},Rn=function(q){Te(!1),re==null||re(q)},wn=function(q){pe(""),rt(),(0,f.rJ)(mt(),q,he)},Pn=ve,_n;qt.show&&(qt.showFormatter?_n=qt.showFormatter({value:ze,count:ht,maxLength:pt}):_n="".concat(ht).concat(ct?" / ".concat(pt):""),Pn=r.createElement(r.Fragment,null,Pn,r.createElement("span",{className:G()("".concat(vt,"-data-count"),te==null?void 0:te.count),style:ce==null?void 0:ce.count},_n)));var Nn=function(q){var Y;C==null||C(q),(Y=mt())!==null&&Y!==void 0&&Y.style.height&&Xe(!0)},Tn=!T&&!Ot&&!we;return r.createElement(e.BaseInput,{ref:Tt,value:ze,allowClear:we,handleReset:wn,suffix:Pn,prefixCls:vt,classNames:(0,W.Z)((0,W.Z)({},te),{},{affixWrapper:G()(te==null?void 0:te.affixWrapper,(0,D.Z)((0,D.Z)({},"".concat(vt,"-show-count"),Ot),"".concat(vt,"-textarea-allow-clear"),we))}),disabled:H,focused:de,className:G()(Z,Ht&&"".concat(vt,"-out-of-range")),style:(0,W.Z)((0,W.Z)({},M),kt&&!Tn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _n=="string"?_n:void 0}},hidden:A,readOnly:B,onClear:c},r.createElement(Se,(0,N.Z)({},L,{autoSize:T,maxLength:Me,onKeyDown:rn,onChange:Wn,onFocus:yn,onBlur:Rn,onCompositionStart:Ft,onCompositionEnd:kn,className:G()(te==null?void 0:te.textarea),style:(0,W.Z)((0,W.Z)({},ce==null?void 0:ce.textarea),{},{resize:M==null?void 0:M.resize}),disabled:H,prefixCls:vt,onResize:Nn,ref:nn,readOnly:B})))}),w=v,R=w},29125:function(Kt,Fe,l){"use strict";l.d(Fe,{G:function(){return J},Z:function(){return E}});var N=l(92310),D=l.n(N),W=l(59301);function J(_){var g=_.children,d=_.prefixCls,u=_.id,O=_.overlayInnerStyle,P=_.bodyClassName,K=_.className,j=_.style;return W.createElement("div",{className:D()("".concat(d,"-content"),K),style:j},W.createElement("div",{className:D()("".concat(d,"-inner"),P),id:u,role:"tooltip",style:O},typeof g=="function"?g():g))}var V=l(72308),p=l(77321),$=l(74416),G=l(65352),e={shiftX:64,adjustY:1},s={adjustX:1,shiftY:!0},f=[0,0],t={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:f}},r=null,i=l(80402),o=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],m=function(g,d){var u=g.overlayClassName,O=g.trigger,P=O===void 0?["hover"]:O,K=g.mouseEnterDelay,j=K===void 0?0:K,X=g.mouseLeaveDelay,U=X===void 0?.1:X,Se=g.overlayStyle,x=g.prefixCls,v=x===void 0?"rc-tooltip":x,w=g.children,R=g.onVisibleChange,S=g.afterVisibleChange,y=g.transitionName,n=g.animation,a=g.motion,h=g.placement,I=h===void 0?"right":h,re=g.align,he=re===void 0?{}:re,we=g.destroyTooltipOnHide,Me=we===void 0?!1:we,Ue=g.defaultVisible,Et=g.getTooltipContainer,ve=g.overlayInnerStyle,We=g.arrowContent,vt=g.overlay,Ot=g.id,lt=g.showArrow,Z=lt===void 0?!0:lt,M=g.classNames,H=g.styles,A=(0,$.Z)(g,o),te=(0,i.Z)(Ot),ce=(0,W.useRef)(null);(0,W.useImperativeHandle)(d,function(){return ce.current});var C=(0,p.Z)({},A);"visible"in g&&(C.popupVisible=g.visible);var c=function(){return W.createElement(J,{key:"content",prefixCls:v,id:te,bodyClassName:M==null?void 0:M.body,overlayInnerStyle:(0,p.Z)((0,p.Z)({},ve),H==null?void 0:H.body)},vt)},k=function(){var T=W.Children.only(w),z=(T==null?void 0:T.props)||{},L=(0,p.Z)((0,p.Z)({},z),{},{"aria-describedby":vt?te:null});return W.cloneElement(w,L)};return W.createElement(G.Z,(0,V.Z)({popupClassName:D()(u,M==null?void 0:M.root),prefixCls:v,popup:c,action:P,builtinPlacements:t,popupPlacement:I,ref:ce,popupAlign:he,getPopupContainer:Et,onPopupVisibleChange:R,afterPopupVisibleChange:S,popupTransitionName:y,popupAnimation:n,popupMotion:a,defaultPopupVisible:Ue,autoDestroy:Me,mouseLeaveDelay:U,popupStyle:(0,p.Z)((0,p.Z)({},Se),H==null?void 0:H.root),mouseEnterDelay:j,arrow:Z},C),k())},b=(0,W.forwardRef)(m),E=b},639:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return g}});var N=l(72308),D=l(49618),W=l(77321),J=l(52487),V=l(74416),p=l(59301),$=l(92310),G=l.n($),e=l(26112),s=l(30699),f=function(u){for(var O=u.prefixCls,P=u.level,K=u.isStart,j=u.isEnd,X="".concat(O,"-indent-unit"),U=[],Se=0;Se<P;Se+=1)U.push(p.createElement("span",{key:Se,className:G()(X,(0,D.Z)((0,D.Z)({},"".concat(X,"-start"),K[Se]),"".concat(X,"-end"),j[Se]))}));return p.createElement("span",{"aria-hidden":"true",className:"".concat(O,"-indent")},U)},t=p.memo(f),r=l(65065),i=l(34061),o=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],m="open",b="close",E="---",_=function(u){var O,P,K,j=u.eventKey,X=u.className,U=u.style,Se=u.dragOver,x=u.dragOverGapTop,v=u.dragOverGapBottom,w=u.isLeaf,R=u.isStart,S=u.isEnd,y=u.expanded,n=u.selected,a=u.checked,h=u.halfChecked,I=u.loading,re=u.domRef,he=u.active,we=u.data,Me=u.onMouseMove,Ue=u.selectable,Et=(0,V.Z)(u,o),ve=p.useContext(s.k),We=p.useContext(s.y),vt=p.useRef(null),Ot=p.useState(!1),lt=(0,J.Z)(Ot,2),Z=lt[0],M=lt[1],H=!!(ve.disabled||u.disabled||(O=We.nodeDisabled)!==null&&O!==void 0&&O.call(We,we)),A=p.useMemo(function(){return!ve.checkable||u.checkable===!1?!1:ve.checkable},[ve.checkable,u.checkable]),te=function(ht){H||ve.onNodeSelect(ht,(0,i.F)(u))},ce=function(ht){H||!A||u.disableCheckbox||ve.onNodeCheck(ht,(0,i.F)(u),!a)},C=p.useMemo(function(){return typeof Ue=="boolean"?Ue:ve.selectable},[Ue,ve.selectable]),c=function(ht){ve.onNodeClick(ht,(0,i.F)(u)),C?te(ht):ce(ht)},k=function(ht){ve.onNodeDoubleClick(ht,(0,i.F)(u))},B=function(ht){ve.onNodeMouseEnter(ht,(0,i.F)(u))},T=function(ht){ve.onNodeMouseLeave(ht,(0,i.F)(u))},z=function(ht){ve.onNodeContextMenu(ht,(0,i.F)(u))},L=p.useMemo(function(){return!!(ve.draggable&&(!ve.draggable.nodeDraggable||ve.draggable.nodeDraggable(we)))},[ve.draggable,we]),ne=function(ht){ht.stopPropagation(),M(!0),ve.onNodeDragStart(ht,u);try{ht.dataTransfer.setData("text/plain","")}catch(Ht){}},ee=function(ht){ht.preventDefault(),ht.stopPropagation(),ve.onNodeDragEnter(ht,u)},le=function(ht){ht.preventDefault(),ht.stopPropagation(),ve.onNodeDragOver(ht,u)},pe=function(ht){ht.stopPropagation(),ve.onNodeDragLeave(ht,u)},ze=function(ht){ht.stopPropagation(),M(!1),ve.onNodeDragEnd(ht,u)},Be=function(ht){ht.preventDefault(),ht.stopPropagation(),M(!1),ve.onNodeDrop(ht,u)},ke=function(ht){I||ve.onNodeExpand(ht,(0,i.F)(u))},de=p.useMemo(function(){var ct=(0,r.Z)(ve.keyEntities,j)||{},ht=ct.children;return!!(ht||[]).length},[ve.keyEntities,j]),Te=p.useMemo(function(){return w===!1?!1:w||!ve.loadData&&!de||ve.loadData&&u.loaded&&!de},[w,ve.loadData,de,u.loaded]);p.useEffect(function(){I||typeof ve.loadData=="function"&&y&&!Te&&!u.loaded&&ve.onNodeLoad((0,i.F)(u))},[I,ve.loadData,ve.onNodeLoad,y,Te,u]);var De=p.useMemo(function(){var ct;return(ct=ve.draggable)!==null&&ct!==void 0&&ct.icon?p.createElement("span",{className:"".concat(ve.prefixCls,"-draggable-icon")},ve.draggable.icon):null},[ve.draggable]),Ne=function(ht){var Ht=u.switcherIcon||ve.switcherIcon;return typeof Ht=="function"?Ht((0,W.Z)((0,W.Z)({},u),{},{isLeaf:ht})):Ht},ut=function(){if(Te){var ht=Ne(!0);return ht!==!1?p.createElement("span",{className:G()("".concat(ve.prefixCls,"-switcher"),"".concat(ve.prefixCls,"-switcher-noop"))},ht):null}var Ht=Ne(!1);return Ht!==!1?p.createElement("span",{onClick:ke,className:G()("".concat(ve.prefixCls,"-switcher"),"".concat(ve.prefixCls,"-switcher_").concat(y?m:b))},Ht):null},kt=p.useMemo(function(){if(!A)return null;var ct=typeof A!="boolean"?A:null;return p.createElement("span",{className:G()("".concat(ve.prefixCls,"-checkbox"),(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(ve.prefixCls,"-checkbox-checked"),a),"".concat(ve.prefixCls,"-checkbox-indeterminate"),!a&&h),"".concat(ve.prefixCls,"-checkbox-disabled"),H||u.disableCheckbox)),onClick:ce,role:"checkbox","aria-checked":h?"mixed":a,"aria-disabled":H||u.disableCheckbox,"aria-label":"Select ".concat(typeof u.title=="string"?u.title:"tree node")},ct)},[A,a,h,H,u.disableCheckbox,u.title]),Xe=p.useMemo(function(){return Te?null:y?m:b},[Te,y]),Tt=p.useMemo(function(){return p.createElement("span",{className:G()("".concat(ve.prefixCls,"-iconEle"),"".concat(ve.prefixCls,"-icon__").concat(Xe||"docu"),(0,D.Z)({},"".concat(ve.prefixCls,"-icon_loading"),I))})},[ve.prefixCls,Xe,I]),nn=p.useMemo(function(){var ct=!!ve.draggable,ht=!u.disabled&&ct&&ve.dragOverNodeKey===j;return ht?ve.dropIndicatorRender({dropPosition:ve.dropPosition,dropLevelOffset:ve.dropLevelOffset,indent:ve.indent,prefixCls:ve.prefixCls,direction:ve.direction}):null},[ve.dropPosition,ve.dropLevelOffset,ve.indent,ve.prefixCls,ve.direction,ve.draggable,ve.dragOverNodeKey,ve.dropIndicatorRender]),mt=p.useMemo(function(){var ct=u.title,ht=ct===void 0?E:ct,Ht="".concat(ve.prefixCls,"-node-content-wrapper"),bn;if(ve.showIcon){var Ft=u.icon||ve.icon;bn=Ft?p.createElement("span",{className:G()("".concat(ve.prefixCls,"-iconEle"),"".concat(ve.prefixCls,"-icon__customize"))},typeof Ft=="function"?Ft(u):Ft):Tt}else ve.loadData&&I&&(bn=Tt);var kn;return typeof ht=="function"?kn=ht(we):ve.titleRender?kn=ve.titleRender(we):kn=ht,p.createElement("span",{ref:vt,title:typeof ht=="string"?ht:"",className:G()(Ht,"".concat(Ht,"-").concat(Xe||"normal"),(0,D.Z)({},"".concat(ve.prefixCls,"-node-selected"),!H&&(n||Z))),onMouseEnter:B,onMouseLeave:T,onContextMenu:z,onClick:c,onDoubleClick:k},bn,p.createElement("span",{className:"".concat(ve.prefixCls,"-title")},kn),nn)},[ve.prefixCls,ve.showIcon,u,ve.icon,Tt,ve.titleRender,we,Xe,B,T,z,c,k]),rt=(0,e.Z)(Et,{aria:!0,data:!0}),It=(0,r.Z)(ve.keyEntities,j)||{},Qt=It.level,Ut=S[S.length-1],en=!H&&L,qt=ve.draggingNodeKey===j,pt=Ue!==void 0?{"aria-selected":!!Ue}:void 0;return p.createElement("div",(0,N.Z)({ref:re,role:"treeitem","aria-expanded":w?void 0:y,className:G()(X,"".concat(ve.prefixCls,"-treenode"),(K={},(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)(K,"".concat(ve.prefixCls,"-treenode-disabled"),H),"".concat(ve.prefixCls,"-treenode-switcher-").concat(y?"open":"close"),!w),"".concat(ve.prefixCls,"-treenode-checkbox-checked"),a),"".concat(ve.prefixCls,"-treenode-checkbox-indeterminate"),h),"".concat(ve.prefixCls,"-treenode-selected"),n),"".concat(ve.prefixCls,"-treenode-loading"),I),"".concat(ve.prefixCls,"-treenode-active"),he),"".concat(ve.prefixCls,"-treenode-leaf-last"),Ut),"".concat(ve.prefixCls,"-treenode-draggable"),L),"dragging",qt),(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)(K,"drop-target",ve.dropTargetKey===j),"drop-container",ve.dropContainerKey===j),"drag-over",!H&&Se),"drag-over-gap-top",!H&&x),"drag-over-gap-bottom",!H&&v),"filter-node",(P=ve.filterTreeNode)===null||P===void 0?void 0:P.call(ve,(0,i.F)(u))),"".concat(ve.prefixCls,"-treenode-leaf"),Te))),style:U,draggable:en,onDragStart:en?ne:void 0,onDragEnter:L?ee:void 0,onDragOver:L?le:void 0,onDragLeave:L?pe:void 0,onDrop:L?Be:void 0,onDragEnd:L?ze:void 0,onMouseMove:Me},pt,rt),p.createElement(t,{prefixCls:ve.prefixCls,level:Qt,isStart:R,isEnd:S}),De,ut(),kt,mt)};_.isTreeNode=1;var g=_},30699:function(Kt,Fe,l){"use strict";l.d(Fe,{k:function(){return D},y:function(){return W}});var N=l(59301),D=N.createContext(null),W=N.createContext({})},15018:function(Kt,Fe,l){"use strict";l.d(Fe,{OF:function(){return j.Z},y6:function(){return b.y},ZP:function(){return H}});var N=l(72308),D=l(62853),W=l(77321),J=l(80702),V=l(96949),p=l(55090),$=l(80237),G=l(77205),e=l(38793),s=l(49618),f=l(92310),t=l.n(f),r=l(10228),i=l(26112),o=l(48736),m=l(59301),b=l(30699),E=function(te){var ce=te.dropPosition,C=te.dropLevelOffset,c=te.indent,k={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ce){case-1:k.top=0,k.left=-C*c;break;case 1:k.bottom=0,k.left=-C*c;break;case 0:k.bottom=0,k.left=c;break}return m.createElement("div",{style:k})},_=E;function g(A){if(A==null)throw new TypeError("Cannot destructure "+A)}var d=l(52487),u=l(74416),O=l(34280),P=l(45680),K=l(77900),j=l(639);function X(A,te){var ce=m.useState(!1),C=(0,d.Z)(ce,2),c=C[0],k=C[1];(0,O.Z)(function(){if(c)return A(),function(){te()}},[c]),(0,O.Z)(function(){return k(!0),function(){k(!1)}},[])}var U=X,Se=l(34061),x=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],v=m.forwardRef(function(A,te){var ce=A.className,C=A.style,c=A.motion,k=A.motionNodes,B=A.motionType,T=A.onMotionStart,z=A.onMotionEnd,L=A.active,ne=A.treeNodeRequiredProps,ee=(0,u.Z)(A,x),le=m.useState(!0),pe=(0,d.Z)(le,2),ze=pe[0],Be=pe[1],ke=m.useContext(b.k),de=ke.prefixCls,Te=k&&B!=="hide";(0,O.Z)(function(){k&&Te!==ze&&Be(Te)},[k]);var De=function(){k&&T()},Ne=m.useRef(!1),ut=function(){k&&!Ne.current&&(Ne.current=!0,z())};U(De,ut);var kt=function(Tt){Te===Tt&&ut()};return k?m.createElement(K.default,(0,N.Z)({ref:te,visible:ze},c,{motionAppear:B==="show",onVisibleChanged:kt}),function(Xe,Tt){var nn=Xe.className,mt=Xe.style;return m.createElement("div",{ref:Tt,className:t()("".concat(de,"-treenode-motion"),nn),style:mt},k.map(function(rt){var It=Object.assign({},(g(rt.data),rt.data)),Qt=rt.title,Ut=rt.key,en=rt.isStart,qt=rt.isEnd;delete It.children;var pt=(0,Se.H8)(Ut,ne);return m.createElement(j.Z,(0,N.Z)({},It,pt,{title:Qt,active:L,data:rt.data,key:Ut,isStart:en,isEnd:qt}))}))}):m.createElement(j.Z,(0,N.Z)({domRef:te,className:ce,style:C},ee,{active:L}))}),w=v;function R(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=A.length,C=te.length;if(Math.abs(ce-C)!==1)return{add:!1,key:null};function c(k,B){var T=new Map;k.forEach(function(L){T.set(L,!0)});var z=B.filter(function(L){return!T.has(L)});return z.length===1?z[0]:null}return ce<C?{add:!0,key:c(A,te)}:{add:!1,key:c(te,A)}}function S(A,te,ce){var C=A.findIndex(function(T){return T.key===ce}),c=A[C+1],k=te.findIndex(function(T){return T.key===ce});if(c){var B=te.findIndex(function(T){return T.key===c.key});return te.slice(k+1,B)}return te.slice(k+1)}var y=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],n={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},a=function(){},h="RC_TREE_MOTION_".concat(Math.random()),I={key:h},re={key:h,level:0,index:0,pos:"0",node:I,nodes:[I]},he={parent:null,children:[],pos:re.pos,data:I,title:null,key:h,isStart:[],isEnd:[]};function we(A,te,ce,C){return te===!1||!ce?A:A.slice(0,Math.ceil(ce/C)+1)}function Me(A){var te=A.key,ce=A.pos;return(0,Se.km)(te,ce)}function Ue(A){for(var te=String(A.data.key),ce=A;ce.parent;)ce=ce.parent,te="".concat(ce.data.key," > ").concat(te);return te}var Et=m.forwardRef(function(A,te){var ce=A.prefixCls,C=A.data,c=A.selectable,k=A.checkable,B=A.expandedKeys,T=A.selectedKeys,z=A.checkedKeys,L=A.loadedKeys,ne=A.loadingKeys,ee=A.halfCheckedKeys,le=A.keyEntities,pe=A.disabled,ze=A.dragging,Be=A.dragOverNodeKey,ke=A.dropPosition,de=A.motion,Te=A.height,De=A.itemHeight,Ne=A.virtual,ut=A.scrollWidth,kt=A.focusable,Xe=A.activeItem,Tt=A.focused,nn=A.tabIndex,mt=A.onKeyDown,rt=A.onFocus,It=A.onBlur,Qt=A.onActiveChange,Ut=A.onListChangeStart,en=A.onListChangeEnd,qt=(0,u.Z)(A,y),pt=m.useRef(null),ct=m.useRef(null);m.useImperativeHandle(te,function(){return{scrollTo:function(Ie){pt.current.scrollTo(Ie)},getIndentWidth:function(){return ct.current.offsetWidth}}});var ht=m.useState(B),Ht=(0,d.Z)(ht,2),bn=Ht[0],Ft=Ht[1],kn=m.useState(C),Wn=(0,d.Z)(kn,2),rn=Wn[0],yn=Wn[1],Rn=m.useState(C),wn=(0,d.Z)(Rn,2),Pn=wn[0],_n=wn[1],Nn=m.useState([]),Tn=(0,d.Z)(Nn,2),fn=Tn[0],q=Tn[1],Y=m.useState(null),$e=(0,d.Z)(Y,2),Le=$e[0],Je=$e[1],Qe=m.useRef(C);Qe.current=C;function st(){var Ce=Qe.current;yn(Ce),_n(Ce),q([]),Je(null),en()}(0,O.Z)(function(){Ft(B);var Ce=R(bn,B);if(Ce.key!==null)if(Ce.add){var Ie=rn.findIndex(function(Ge){var Q=Ge.key;return Q===Ce.key}),Ye=we(S(rn,C,Ce.key),Ne,Te,De),ft=rn.slice();ft.splice(Ie+1,0,he),_n(ft),q(Ye),Je("show")}else{var it=C.findIndex(function(Ge){var Q=Ge.key;return Q===Ce.key}),Gt=we(S(C,rn,Ce.key),Ne,Te,De),et=C.slice();et.splice(it+1,0,he),_n(et),q(Gt),Je("hide")}else rn!==C&&(yn(C),_n(C))},[B,C]),m.useEffect(function(){ze||st()},[ze]);var nt=de?Pn:C,je={expandedKeys:B,selectedKeys:T,loadedKeys:L,loadingKeys:ne,checkedKeys:z,halfCheckedKeys:ee,dragOverNodeKey:Be,dropPosition:ke,keyEntities:le};return m.createElement(m.Fragment,null,Tt&&Xe&&m.createElement("span",{style:n,"aria-live":"assertive"},Ue(Xe)),m.createElement("div",null,m.createElement("input",{style:n,disabled:kt===!1||pe,tabIndex:kt!==!1?nn:null,onKeyDown:mt,onFocus:rt,onBlur:It,value:"",onChange:a,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(ce,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(ce,"-indent")},m.createElement("div",{ref:ct,className:"".concat(ce,"-indent-unit")}))),m.createElement(P.Z,(0,N.Z)({},qt,{data:nt,itemKey:Me,height:Te,fullHeight:!1,virtual:Ne,itemHeight:De,scrollWidth:ut,prefixCls:"".concat(ce,"-list"),ref:pt,role:"tree",onVisibleChange:function(Ie){Ie.every(function(Ye){return Me(Ye)!==h})&&st()}}),function(Ce){var Ie=Ce.pos,Ye=Object.assign({},(g(Ce.data),Ce.data)),ft=Ce.title,it=Ce.key,Gt=Ce.isStart,et=Ce.isEnd,Ge=(0,Se.km)(it,Ie);delete Ye.key,delete Ye.children;var Q=(0,Se.H8)(Ge,je);return m.createElement(w,(0,N.Z)({},Ye,Q,{title:ft,active:!!Xe&&it===Xe.key,pos:Ie,data:Ce.data,isStart:Gt,isEnd:et,motion:de,motionNodes:it===h?fn:null,motionType:Le,onMotionStart:Ut,onMotionEnd:st,treeNodeRequiredProps:je,onMouseMove:function(){Qt(null)}}))}))}),ve=Et,We=l(82661),vt=l(34643),Ot=l(65065),lt=10,Z=function(A){(0,G.Z)(ce,A);var te=(0,e.Z)(ce);function ce(){var C;(0,V.Z)(this,ce);for(var c=arguments.length,k=new Array(c),B=0;B<c;B++)k[B]=arguments[B];return C=te.call.apply(te,[this].concat(k)),(0,s.Z)((0,$.Z)(C),"destroyed",!1),(0,s.Z)((0,$.Z)(C),"delayedDragEnterLogic",void 0),(0,s.Z)((0,$.Z)(C),"loadingRetryTimes",{}),(0,s.Z)((0,$.Z)(C),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Se.w$)()}),(0,s.Z)((0,$.Z)(C),"dragStartMousePosition",null),(0,s.Z)((0,$.Z)(C),"dragNodeProps",null),(0,s.Z)((0,$.Z)(C),"currentMouseOverDroppableNodeKey",null),(0,s.Z)((0,$.Z)(C),"listRef",m.createRef()),(0,s.Z)((0,$.Z)(C),"onNodeDragStart",function(T,z){var L=C.state,ne=L.expandedKeys,ee=L.keyEntities,le=C.props.onDragStart,pe=z.eventKey;C.dragNodeProps=z,C.dragStartMousePosition={x:T.clientX,y:T.clientY};var ze=(0,We._5)(ne,pe);C.setState({draggingNodeKey:pe,dragChildrenKeys:(0,We.wA)(pe,ee),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(ze),window.addEventListener("dragend",C.onWindowDragEnd),le==null||le({event:T,node:(0,Se.F)(z)})}),(0,s.Z)((0,$.Z)(C),"onNodeDragEnter",function(T,z){var L=C.state,ne=L.expandedKeys,ee=L.keyEntities,le=L.dragChildrenKeys,pe=L.flattenNodes,ze=L.indent,Be=C.props,ke=Be.onDragEnter,de=Be.onExpand,Te=Be.allowDrop,De=Be.direction,Ne=z.pos,ut=z.eventKey;if(C.currentMouseOverDroppableNodeKey!==ut&&(C.currentMouseOverDroppableNodeKey=ut),!C.dragNodeProps){C.resetDragState();return}var kt=(0,We.OM)(T,C.dragNodeProps,z,ze,C.dragStartMousePosition,Te,pe,ee,ne,De),Xe=kt.dropPosition,Tt=kt.dropLevelOffset,nn=kt.dropTargetKey,mt=kt.dropContainerKey,rt=kt.dropTargetPos,It=kt.dropAllowed,Qt=kt.dragOverNodeKey;if(le.includes(nn)||!It){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(Ut){clearTimeout(C.delayedDragEnterLogic[Ut])}),C.dragNodeProps.eventKey!==z.eventKey&&(T.persist(),C.delayedDragEnterLogic[Ne]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var Ut=(0,J.Z)(ne),en=(0,Ot.Z)(ee,z.eventKey);en&&(en.children||[]).length&&(Ut=(0,We.L0)(ne,z.eventKey)),C.props.hasOwnProperty("expandedKeys")||C.setExpandedKeys(Ut),de==null||de(Ut,{node:(0,Se.F)(z),expanded:!0,nativeEvent:T.nativeEvent})}},800)),C.dragNodeProps.eventKey===nn&&Tt===0){C.resetDragState();return}C.setState({dragOverNodeKey:Qt,dropPosition:Xe,dropLevelOffset:Tt,dropTargetKey:nn,dropContainerKey:mt,dropTargetPos:rt,dropAllowed:It}),ke==null||ke({event:T,node:(0,Se.F)(z),expandedKeys:ne})}),(0,s.Z)((0,$.Z)(C),"onNodeDragOver",function(T,z){var L=C.state,ne=L.dragChildrenKeys,ee=L.flattenNodes,le=L.keyEntities,pe=L.expandedKeys,ze=L.indent,Be=C.props,ke=Be.onDragOver,de=Be.allowDrop,Te=Be.direction;if(C.dragNodeProps){var De=(0,We.OM)(T,C.dragNodeProps,z,ze,C.dragStartMousePosition,de,ee,le,pe,Te),Ne=De.dropPosition,ut=De.dropLevelOffset,kt=De.dropTargetKey,Xe=De.dropContainerKey,Tt=De.dropTargetPos,nn=De.dropAllowed,mt=De.dragOverNodeKey;ne.includes(kt)||!nn||(C.dragNodeProps.eventKey===kt&&ut===0?C.state.dropPosition===null&&C.state.dropLevelOffset===null&&C.state.dropTargetKey===null&&C.state.dropContainerKey===null&&C.state.dropTargetPos===null&&C.state.dropAllowed===!1&&C.state.dragOverNodeKey===null||C.resetDragState():Ne===C.state.dropPosition&&ut===C.state.dropLevelOffset&&kt===C.state.dropTargetKey&&Xe===C.state.dropContainerKey&&Tt===C.state.dropTargetPos&&nn===C.state.dropAllowed&&mt===C.state.dragOverNodeKey||C.setState({dropPosition:Ne,dropLevelOffset:ut,dropTargetKey:kt,dropContainerKey:Xe,dropTargetPos:Tt,dropAllowed:nn,dragOverNodeKey:mt}),ke==null||ke({event:T,node:(0,Se.F)(z)}))}}),(0,s.Z)((0,$.Z)(C),"onNodeDragLeave",function(T,z){C.currentMouseOverDroppableNodeKey===z.eventKey&&!T.currentTarget.contains(T.relatedTarget)&&(C.resetDragState(),C.currentMouseOverDroppableNodeKey=null);var L=C.props.onDragLeave;L==null||L({event:T,node:(0,Se.F)(z)})}),(0,s.Z)((0,$.Z)(C),"onWindowDragEnd",function(T){C.onNodeDragEnd(T,null,!0),window.removeEventListener("dragend",C.onWindowDragEnd)}),(0,s.Z)((0,$.Z)(C),"onNodeDragEnd",function(T,z){var L=C.props.onDragEnd;C.setState({dragOverNodeKey:null}),C.cleanDragState(),L==null||L({event:T,node:(0,Se.F)(z)}),C.dragNodeProps=null,window.removeEventListener("dragend",C.onWindowDragEnd)}),(0,s.Z)((0,$.Z)(C),"onNodeDrop",function(T,z){var L,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ee=C.state,le=ee.dragChildrenKeys,pe=ee.dropPosition,ze=ee.dropTargetKey,Be=ee.dropTargetPos,ke=ee.dropAllowed;if(ke){var de=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),ze!==null){var Te=(0,W.Z)((0,W.Z)({},(0,Se.H8)(ze,C.getTreeNodeRequiredProps())),{},{active:((L=C.getActiveItem())===null||L===void 0?void 0:L.key)===ze,data:(0,Ot.Z)(C.state.keyEntities,ze).node}),De=le.includes(ze);(0,o.ZP)(!De,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ne=(0,We.yx)(Be),ut={event:T,node:(0,Se.F)(Te),dragNode:C.dragNodeProps?(0,Se.F)(C.dragNodeProps):null,dragNodesKeys:[C.dragNodeProps.eventKey].concat(le),dropToGap:pe!==0,dropPosition:pe+Number(Ne[Ne.length-1])};ne||de==null||de(ut),C.dragNodeProps=null}}}),(0,s.Z)((0,$.Z)(C),"cleanDragState",function(){var T=C.state.draggingNodeKey;T!==null&&C.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),C.dragStartMousePosition=null,C.currentMouseOverDroppableNodeKey=null}),(0,s.Z)((0,$.Z)(C),"triggerExpandActionExpand",function(T,z){var L=C.state,ne=L.expandedKeys,ee=L.flattenNodes,le=z.expanded,pe=z.key,ze=z.isLeaf;if(!(ze||T.shiftKey||T.metaKey||T.ctrlKey)){var Be=ee.filter(function(de){return de.key===pe})[0],ke=(0,Se.F)((0,W.Z)((0,W.Z)({},(0,Se.H8)(pe,C.getTreeNodeRequiredProps())),{},{data:Be.data}));C.setExpandedKeys(le?(0,We._5)(ne,pe):(0,We.L0)(ne,pe)),C.onNodeExpand(T,ke)}}),(0,s.Z)((0,$.Z)(C),"onNodeClick",function(T,z){var L=C.props,ne=L.onClick,ee=L.expandAction;ee==="click"&&C.triggerExpandActionExpand(T,z),ne==null||ne(T,z)}),(0,s.Z)((0,$.Z)(C),"onNodeDoubleClick",function(T,z){var L=C.props,ne=L.onDoubleClick,ee=L.expandAction;ee==="doubleClick"&&C.triggerExpandActionExpand(T,z),ne==null||ne(T,z)}),(0,s.Z)((0,$.Z)(C),"onNodeSelect",function(T,z){var L=C.state.selectedKeys,ne=C.state,ee=ne.keyEntities,le=ne.fieldNames,pe=C.props,ze=pe.onSelect,Be=pe.multiple,ke=z.selected,de=z[le.key],Te=!ke;Te?Be?L=(0,We.L0)(L,de):L=[de]:L=(0,We._5)(L,de);var De=L.map(function(Ne){var ut=(0,Ot.Z)(ee,Ne);return ut?ut.node:null}).filter(Boolean);C.setUncontrolledState({selectedKeys:L}),ze==null||ze(L,{event:"select",selected:Te,node:z,selectedNodes:De,nativeEvent:T.nativeEvent})}),(0,s.Z)((0,$.Z)(C),"onNodeCheck",function(T,z,L){var ne=C.state,ee=ne.keyEntities,le=ne.checkedKeys,pe=ne.halfCheckedKeys,ze=C.props,Be=ze.checkStrictly,ke=ze.onCheck,de=z.key,Te,De={event:"check",node:z,checked:L,nativeEvent:T.nativeEvent};if(Be){var Ne=L?(0,We.L0)(le,de):(0,We._5)(le,de),ut=(0,We._5)(pe,de);Te={checked:Ne,halfChecked:ut},De.checkedNodes=Ne.map(function(rt){return(0,Ot.Z)(ee,rt)}).filter(Boolean).map(function(rt){return rt.node}),C.setUncontrolledState({checkedKeys:Ne})}else{var kt=(0,vt.S)([].concat((0,J.Z)(le),[de]),!0,ee),Xe=kt.checkedKeys,Tt=kt.halfCheckedKeys;if(!L){var nn=new Set(Xe);nn.delete(de);var mt=(0,vt.S)(Array.from(nn),{checked:!1,halfCheckedKeys:Tt},ee);Xe=mt.checkedKeys,Tt=mt.halfCheckedKeys}Te=Xe,De.checkedNodes=[],De.checkedNodesPositions=[],De.halfCheckedKeys=Tt,Xe.forEach(function(rt){var It=(0,Ot.Z)(ee,rt);if(It){var Qt=It.node,Ut=It.pos;De.checkedNodes.push(Qt),De.checkedNodesPositions.push({node:Qt,pos:Ut})}}),C.setUncontrolledState({checkedKeys:Xe},!1,{halfCheckedKeys:Tt})}ke==null||ke(Te,De)}),(0,s.Z)((0,$.Z)(C),"onNodeLoad",function(T){var z,L=T.key,ne=C.state.keyEntities,ee=(0,Ot.Z)(ne,L);if(!(ee!=null&&(z=ee.children)!==null&&z!==void 0&&z.length)){var le=new Promise(function(pe,ze){C.setState(function(Be){var ke=Be.loadedKeys,de=ke===void 0?[]:ke,Te=Be.loadingKeys,De=Te===void 0?[]:Te,Ne=C.props,ut=Ne.loadData,kt=Ne.onLoad;if(!ut||de.includes(L)||De.includes(L))return null;var Xe=ut(T);return Xe.then(function(){var Tt=C.state.loadedKeys,nn=(0,We.L0)(Tt,L);kt==null||kt(nn,{event:"load",node:T}),C.setUncontrolledState({loadedKeys:nn}),C.setState(function(mt){return{loadingKeys:(0,We._5)(mt.loadingKeys,L)}}),pe()}).catch(function(Tt){if(C.setState(function(mt){return{loadingKeys:(0,We._5)(mt.loadingKeys,L)}}),C.loadingRetryTimes[L]=(C.loadingRetryTimes[L]||0)+1,C.loadingRetryTimes[L]>=lt){var nn=C.state.loadedKeys;(0,o.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,We.L0)(nn,L)}),pe()}ze(Tt)}),{loadingKeys:(0,We.L0)(De,L)}})});return le.catch(function(){}),le}}),(0,s.Z)((0,$.Z)(C),"onNodeMouseEnter",function(T,z){var L=C.props.onMouseEnter;L==null||L({event:T,node:z})}),(0,s.Z)((0,$.Z)(C),"onNodeMouseLeave",function(T,z){var L=C.props.onMouseLeave;L==null||L({event:T,node:z})}),(0,s.Z)((0,$.Z)(C),"onNodeContextMenu",function(T,z){var L=C.props.onRightClick;L&&(T.preventDefault(),L({event:T,node:z}))}),(0,s.Z)((0,$.Z)(C),"onFocus",function(){var T=C.props.onFocus;C.setState({focused:!0});for(var z=arguments.length,L=new Array(z),ne=0;ne<z;ne++)L[ne]=arguments[ne];T==null||T.apply(void 0,L)}),(0,s.Z)((0,$.Z)(C),"onBlur",function(){var T=C.props.onBlur;C.setState({focused:!1}),C.onActiveChange(null);for(var z=arguments.length,L=new Array(z),ne=0;ne<z;ne++)L[ne]=arguments[ne];T==null||T.apply(void 0,L)}),(0,s.Z)((0,$.Z)(C),"getTreeNodeRequiredProps",function(){var T=C.state,z=T.expandedKeys,L=T.selectedKeys,ne=T.loadedKeys,ee=T.loadingKeys,le=T.checkedKeys,pe=T.halfCheckedKeys,ze=T.dragOverNodeKey,Be=T.dropPosition,ke=T.keyEntities;return{expandedKeys:z||[],selectedKeys:L||[],loadedKeys:ne||[],loadingKeys:ee||[],checkedKeys:le||[],halfCheckedKeys:pe||[],dragOverNodeKey:ze,dropPosition:Be,keyEntities:ke}}),(0,s.Z)((0,$.Z)(C),"setExpandedKeys",function(T){var z=C.state,L=z.treeData,ne=z.fieldNames,ee=(0,Se.oH)(L,T,ne);C.setUncontrolledState({expandedKeys:T,flattenNodes:ee},!0)}),(0,s.Z)((0,$.Z)(C),"onNodeExpand",function(T,z){var L=C.state.expandedKeys,ne=C.state,ee=ne.listChanging,le=ne.fieldNames,pe=C.props,ze=pe.onExpand,Be=pe.loadData,ke=z.expanded,de=z[le.key];if(!ee){var Te=L.includes(de),De=!ke;if((0,o.ZP)(ke&&Te||!ke&&!Te,"Expand state not sync with index check"),L=De?(0,We.L0)(L,de):(0,We._5)(L,de),C.setExpandedKeys(L),ze==null||ze(L,{node:z,expanded:De,nativeEvent:T.nativeEvent}),De&&Be){var Ne=C.onNodeLoad(z);Ne&&Ne.then(function(){var ut=(0,Se.oH)(C.state.treeData,L,le);C.setUncontrolledState({flattenNodes:ut})}).catch(function(){var ut=C.state.expandedKeys,kt=(0,We._5)(ut,de);C.setExpandedKeys(kt)})}}}),(0,s.Z)((0,$.Z)(C),"onListChangeStart",function(){C.setUncontrolledState({listChanging:!0})}),(0,s.Z)((0,$.Z)(C),"onListChangeEnd",function(){setTimeout(function(){C.setUncontrolledState({listChanging:!1})})}),(0,s.Z)((0,$.Z)(C),"onActiveChange",function(T){var z=C.state.activeKey,L=C.props,ne=L.onActiveChange,ee=L.itemScrollOffset,le=ee===void 0?0:ee;z!==T&&(C.setState({activeKey:T}),T!==null&&C.scrollTo({key:T,offset:le}),ne==null||ne(T))}),(0,s.Z)((0,$.Z)(C),"getActiveItem",function(){var T=C.state,z=T.activeKey,L=T.flattenNodes;return z===null?null:L.find(function(ne){var ee=ne.key;return ee===z})||null}),(0,s.Z)((0,$.Z)(C),"offsetActiveKey",function(T){var z=C.state,L=z.flattenNodes,ne=z.activeKey,ee=L.findIndex(function(ze){var Be=ze.key;return Be===ne});ee===-1&&T<0&&(ee=L.length),ee=(ee+T+L.length)%L.length;var le=L[ee];if(le){var pe=le.key;C.onActiveChange(pe)}else C.onActiveChange(null)}),(0,s.Z)((0,$.Z)(C),"onKeyDown",function(T){var z=C.state,L=z.activeKey,ne=z.expandedKeys,ee=z.checkedKeys,le=z.fieldNames,pe=C.props,ze=pe.onKeyDown,Be=pe.checkable,ke=pe.selectable;switch(T.which){case r.Z.UP:{C.offsetActiveKey(-1),T.preventDefault();break}case r.Z.DOWN:{C.offsetActiveKey(1),T.preventDefault();break}}var de=C.getActiveItem();if(de&&de.data){var Te=C.getTreeNodeRequiredProps(),De=de.data.isLeaf===!1||!!(de.data[le.children]||[]).length,Ne=(0,Se.F)((0,W.Z)((0,W.Z)({},(0,Se.H8)(L,Te)),{},{data:de.data,active:!0}));switch(T.which){case r.Z.LEFT:{De&&ne.includes(L)?C.onNodeExpand({},Ne):de.parent&&C.onActiveChange(de.parent.key),T.preventDefault();break}case r.Z.RIGHT:{De&&!ne.includes(L)?C.onNodeExpand({},Ne):de.children&&de.children.length&&C.onActiveChange(de.children[0].key),T.preventDefault();break}case r.Z.ENTER:case r.Z.SPACE:{Be&&!Ne.disabled&&Ne.checkable!==!1&&!Ne.disableCheckbox?C.onNodeCheck({},Ne,!ee.includes(L)):!Be&&ke&&!Ne.disabled&&Ne.selectable!==!1&&C.onNodeSelect({},Ne);break}}}ze==null||ze(T)}),(0,s.Z)((0,$.Z)(C),"setUncontrolledState",function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!C.destroyed){var ne=!1,ee=!0,le={};Object.keys(T).forEach(function(pe){if(C.props.hasOwnProperty(pe)){ee=!1;return}ne=!0,le[pe]=T[pe]}),ne&&(!z||ee)&&C.setState((0,W.Z)((0,W.Z)({},le),L))}}),(0,s.Z)((0,$.Z)(C),"scrollTo",function(T){C.listRef.current.scrollTo(T)}),C}return(0,p.Z)(ce,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var c=this.props,k=c.activeKey,B=c.itemScrollOffset,T=B===void 0?0:B;k!==void 0&&k!==this.state.activeKey&&(this.setState({activeKey:k}),k!==null&&this.scrollTo({key:k,offset:T}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var c=this.state,k=c.focused,B=c.flattenNodes,T=c.keyEntities,z=c.draggingNodeKey,L=c.activeKey,ne=c.dropLevelOffset,ee=c.dropContainerKey,le=c.dropTargetKey,pe=c.dropPosition,ze=c.dragOverNodeKey,Be=c.indent,ke=this.props,de=ke.prefixCls,Te=ke.className,De=ke.style,Ne=ke.showLine,ut=ke.focusable,kt=ke.tabIndex,Xe=kt===void 0?0:kt,Tt=ke.selectable,nn=ke.showIcon,mt=ke.icon,rt=ke.switcherIcon,It=ke.draggable,Qt=ke.checkable,Ut=ke.checkStrictly,en=ke.disabled,qt=ke.motion,pt=ke.loadData,ct=ke.filterTreeNode,ht=ke.height,Ht=ke.itemHeight,bn=ke.scrollWidth,Ft=ke.virtual,kn=ke.titleRender,Wn=ke.dropIndicatorRender,rn=ke.onContextMenu,yn=ke.onScroll,Rn=ke.direction,wn=ke.rootClassName,Pn=ke.rootStyle,_n=(0,i.Z)(this.props,{aria:!0,data:!0}),Nn;It&&((0,D.Z)(It)==="object"?Nn=It:typeof It=="function"?Nn={nodeDraggable:It}:Nn={});var Tn={prefixCls:de,selectable:Tt,showIcon:nn,icon:mt,switcherIcon:rt,draggable:Nn,draggingNodeKey:z,checkable:Qt,checkStrictly:Ut,disabled:en,keyEntities:T,dropLevelOffset:ne,dropContainerKey:ee,dropTargetKey:le,dropPosition:pe,dragOverNodeKey:ze,indent:Be,direction:Rn,dropIndicatorRender:Wn,loadData:pt,filterTreeNode:ct,titleRender:kn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return m.createElement(b.k.Provider,{value:Tn},m.createElement("div",{className:t()(de,Te,wn,(0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(de,"-show-line"),Ne),"".concat(de,"-focused"),k),"".concat(de,"-active-focused"),L!==null)),style:Pn},m.createElement(ve,(0,N.Z)({ref:this.listRef,prefixCls:de,style:De,data:B,disabled:en,selectable:Tt,checkable:!!Qt,motion:qt,dragging:z!==null,height:ht,itemHeight:Ht,virtual:Ft,focusable:ut,focused:k,tabIndex:Xe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:rn,onScroll:yn,scrollWidth:bn},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(c,k){var B=k.prevProps,T={prevProps:c};function z(Xe){return!B&&c.hasOwnProperty(Xe)||B&&B[Xe]!==c[Xe]}var L,ne=k.fieldNames;if(z("fieldNames")&&(ne=(0,Se.w$)(c.fieldNames),T.fieldNames=ne),z("treeData")?L=c.treeData:z("children")&&((0,o.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),L=(0,Se.zn)(c.children)),L){T.treeData=L;var ee=(0,Se.I8)(L,{fieldNames:ne});T.keyEntities=(0,W.Z)((0,s.Z)({},h,re),ee.keyEntities)}var le=T.keyEntities||k.keyEntities;if(z("expandedKeys")||B&&z("autoExpandParent"))T.expandedKeys=c.autoExpandParent||!B&&c.defaultExpandParent?(0,We.r7)(c.expandedKeys,le):c.expandedKeys;else if(!B&&c.defaultExpandAll){var pe=(0,W.Z)({},le);delete pe[h];var ze=[];Object.keys(pe).forEach(function(Xe){var Tt=pe[Xe];Tt.children&&Tt.children.length&&ze.push(Tt.key)}),T.expandedKeys=ze}else!B&&c.defaultExpandedKeys&&(T.expandedKeys=c.autoExpandParent||c.defaultExpandParent?(0,We.r7)(c.defaultExpandedKeys,le):c.defaultExpandedKeys);if(T.expandedKeys||delete T.expandedKeys,L||T.expandedKeys){var Be=(0,Se.oH)(L||k.treeData,T.expandedKeys||k.expandedKeys,ne);T.flattenNodes=Be}if(c.selectable&&(z("selectedKeys")?T.selectedKeys=(0,We.BT)(c.selectedKeys,c):!B&&c.defaultSelectedKeys&&(T.selectedKeys=(0,We.BT)(c.defaultSelectedKeys,c))),c.checkable){var ke;if(z("checkedKeys")?ke=(0,We.E6)(c.checkedKeys)||{}:!B&&c.defaultCheckedKeys?ke=(0,We.E6)(c.defaultCheckedKeys)||{}:L&&(ke=(0,We.E6)(c.checkedKeys)||{checkedKeys:k.checkedKeys,halfCheckedKeys:k.halfCheckedKeys}),ke){var de=ke,Te=de.checkedKeys,De=Te===void 0?[]:Te,Ne=de.halfCheckedKeys,ut=Ne===void 0?[]:Ne;if(!c.checkStrictly){var kt=(0,vt.S)(De,!0,le);De=kt.checkedKeys,ut=kt.halfCheckedKeys}T.checkedKeys=De,T.halfCheckedKeys=ut}}return z("loadedKeys")&&(T.loadedKeys=c.loadedKeys),T}}]),ce}(m.Component);(0,s.Z)(Z,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:_,allowDrop:function(){return!0},expandAction:!1}),(0,s.Z)(Z,"TreeNode",j.Z);var M=Z,H=M},82661:function(Kt,Fe,l){"use strict";l.d(Fe,{BT:function(){return m},E6:function(){return _},L0:function(){return s},OM:function(){return o},_5:function(){return e},r7:function(){return g},wA:function(){return t},yx:function(){return f}});var N=l(80702),D=l(62853),W=l(48736),J=l(59301),V=l(639),p=l(65065),$=l(34061),G=null;function e(d,u){if(!d)return[];var O=d.slice(),P=O.indexOf(u);return P>=0&&O.splice(P,1),O}function s(d,u){var O=(d||[]).slice();return O.indexOf(u)===-1&&O.push(u),O}function f(d){return d.split("-")}function t(d,u){var O=[],P=(0,p.Z)(u,d);function K(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];j.forEach(function(X){var U=X.key,Se=X.children;O.push(U),K(Se)})}return K(P.children),O}function r(d){if(d.parent){var u=f(d.pos);return Number(u[u.length-1])===d.parent.children.length-1}return!1}function i(d){var u=f(d.pos);return Number(u[u.length-1])===0}function o(d,u,O,P,K,j,X,U,Se,x){var v,w=d.clientX,R=d.clientY,S=d.target.getBoundingClientRect(),y=S.top,n=S.height,a=(x==="rtl"?-1:1)*(((K==null?void 0:K.x)||0)-w),h=(a-12)/P,I=Se.filter(function(H){var A;return(A=U[H])===null||A===void 0||(A=A.children)===null||A===void 0?void 0:A.length}),re=(0,p.Z)(U,O.eventKey);if(R<y+n/2){var he=X.findIndex(function(H){return H.key===re.key}),we=he<=0?0:he-1,Me=X[we].key;re=(0,p.Z)(U,Me)}var Ue=re.key,Et=re,ve=re.key,We=0,vt=0;if(!I.includes(Ue))for(var Ot=0;Ot<h&&r(re);Ot+=1)re=re.parent,vt+=1;var lt=u.data,Z=re.node,M=!0;return i(re)&&re.level===0&&R<y+n/2&&j({dragNode:lt,dropNode:Z,dropPosition:-1})&&re.key===O.eventKey?We=-1:(Et.children||[]).length&&I.includes(ve)?j({dragNode:lt,dropNode:Z,dropPosition:0})?We=0:M=!1:vt===0?h>-1.5?j({dragNode:lt,dropNode:Z,dropPosition:1})?We=1:M=!1:j({dragNode:lt,dropNode:Z,dropPosition:0})?We=0:j({dragNode:lt,dropNode:Z,dropPosition:1})?We=1:M=!1:j({dragNode:lt,dropNode:Z,dropPosition:1})?We=1:M=!1,{dropPosition:We,dropLevelOffset:vt,dropTargetKey:re.key,dropTargetPos:re.pos,dragOverNodeKey:ve,dropContainerKey:We===0?null:((v=re.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:M}}function m(d,u){if(d){var O=u.multiple;return O?d.slice():d.length?[d[0]]:d}}var b=function(u){return u};function E(d,u){if(!d)return[];var O=u||{},P=O.processProps,K=P===void 0?b:P,j=Array.isArray(d)?d:[d];return j.map(function(X){var U=X.children,Se=_objectWithoutProperties(X,G),x=E(U,u);return React.createElement(TreeNode,_extends({key:Se.key},K(Se)),x)})}function _(d){if(!d)return null;var u;if(Array.isArray(d))u={checkedKeys:d,halfCheckedKeys:void 0};else if((0,D.Z)(d)==="object")u={checkedKeys:d.checked||void 0,halfCheckedKeys:d.halfChecked||void 0};else return(0,W.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function g(d,u){var O=new Set;function P(K){if(!O.has(K)){var j=(0,p.Z)(u,K);if(j){O.add(K);var X=j.parent,U=j.node;U.disabled||X&&P(X.key)}}}return(d||[]).forEach(function(K){P(K)}),(0,N.Z)(O)}},34643:function(Kt,Fe,l){"use strict";l.d(Fe,{S:function(){return $}});var N=l(48736),D=l(65065);function W(G,e){var s=new Set;return G.forEach(function(f){e.has(f)||s.add(f)}),s}function J(G){var e=G||{},s=e.disabled,f=e.disableCheckbox,t=e.checkable;return!!(s||f)||t===!1}function V(G,e,s,f){for(var t=new Set(G),r=new Set,i=0;i<=s;i+=1){var o=e.get(i)||new Set;o.forEach(function(_){var g=_.key,d=_.node,u=_.children,O=u===void 0?[]:u;t.has(g)&&!f(d)&&O.filter(function(P){return!f(P.node)}).forEach(function(P){t.add(P.key)})})}for(var m=new Set,b=s;b>=0;b-=1){var E=e.get(b)||new Set;E.forEach(function(_){var g=_.parent,d=_.node;if(!(f(d)||!_.parent||m.has(_.parent.key))){if(f(_.parent.node)){m.add(g.key);return}var u=!0,O=!1;(g.children||[]).filter(function(P){return!f(P.node)}).forEach(function(P){var K=P.key,j=t.has(K);u&&!j&&(u=!1),!O&&(j||r.has(K))&&(O=!0)}),u&&t.add(g.key),O&&r.add(g.key),m.add(g.key)}})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(W(r,t))}}function p(G,e,s,f,t){for(var r=new Set(G),i=new Set(e),o=0;o<=f;o+=1){var m=s.get(o)||new Set;m.forEach(function(g){var d=g.key,u=g.node,O=g.children,P=O===void 0?[]:O;!r.has(d)&&!i.has(d)&&!t(u)&&P.filter(function(K){return!t(K.node)}).forEach(function(K){r.delete(K.key)})})}i=new Set;for(var b=new Set,E=f;E>=0;E-=1){var _=s.get(E)||new Set;_.forEach(function(g){var d=g.parent,u=g.node;if(!(t(u)||!g.parent||b.has(g.parent.key))){if(t(g.parent.node)){b.add(d.key);return}var O=!0,P=!1;(d.children||[]).filter(function(K){return!t(K.node)}).forEach(function(K){var j=K.key,X=r.has(j);O&&!X&&(O=!1),!P&&(X||i.has(j))&&(P=!0)}),O||r.delete(d.key),P&&i.add(d.key),b.add(d.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(W(i,r))}}function $(G,e,s,f){var t=[],r;f?r=f:r=J;var i=new Set(G.filter(function(E){var _=!!(0,D.Z)(s,E);return _||t.push(E),_})),o=new Map,m=0;Object.keys(s).forEach(function(E){var _=s[E],g=_.level,d=o.get(g);d||(d=new Set,o.set(g,d)),d.add(_),m=Math.max(m,g)}),(0,N.ZP)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(E){return"'".concat(E,"'")}).join(", ")));var b;return e===!0?b=V(i,o,m,r):b=p(i,e.halfCheckedKeys,o,m,r),b}},65065:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return N}});function N(D,W){return D[W]}},34061:function(Kt,Fe,l){"use strict";l.d(Fe,{F:function(){return g},H8:function(){return _},I8:function(){return E},km:function(){return t},oH:function(){return m},w$:function(){return r},zn:function(){return o}});var N=l(62853),D=l(80702),W=l(77321),J=l(74416),V=l(11592),p=l(2738),$=l(48736),G=l(65065),e=["children"];function s(d,u){return"".concat(d,"-").concat(u)}function f(d){return d&&d.type&&d.type.isTreeNode}function t(d,u){return d!=null?d:u}function r(d){var u=d||{},O=u.title,P=u._title,K=u.key,j=u.children,X=O||"title";return{title:X,_title:P||[X],key:K||"key",children:j||"children"}}function i(d,u){var O=new Map;function P(K){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(K||[]).forEach(function(X){var U=X[u.key],Se=X[u.children];warning(U!=null,"Tree node must have a certain key: [".concat(j).concat(U,"]"));var x=String(U);warning(!O.has(x)||U===null||U===void 0,"Same 'key' exist in the Tree: ".concat(x)),O.set(x,!0),P(Se,"".concat(j).concat(x," > "))})}P(d)}function o(d){function u(O){var P=(0,V.Z)(O);return P.map(function(K){if(!f(K))return(0,$.ZP)(!K,"Tree/TreeNode can only accept TreeNode as children."),null;var j=K.key,X=K.props,U=X.children,Se=(0,J.Z)(X,e),x=(0,W.Z)({key:j},Se),v=u(U);return v.length&&(x.children=v),x}).filter(function(K){return K})}return u(d)}function m(d,u,O){var P=r(O),K=P._title,j=P.key,X=P.children,U=new Set(u===!0?[]:u),Se=[];function x(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(R,S){for(var y=s(w?w.pos:"0",S),n=t(R[j],y),a,h=0;h<K.length;h+=1){var I=K[h];if(R[I]!==void 0){a=R[I];break}}var re=Object.assign((0,p.Z)(R,[].concat((0,D.Z)(K),[j,X])),{title:a,key:n,parent:w,pos:y,children:null,data:R,isStart:[].concat((0,D.Z)(w?w.isStart:[]),[S===0]),isEnd:[].concat((0,D.Z)(w?w.isEnd:[]),[S===v.length-1])});return Se.push(re),u===!0||U.has(n)?re.children=x(R[X]||[],re):re.children=[],re})}return x(d),Se}function b(d,u,O){var P={};(0,N.Z)(O)==="object"?P=O:P={externalGetKey:O},P=P||{};var K=P,j=K.childrenPropName,X=K.externalGetKey,U=K.fieldNames,Se=r(U),x=Se.key,v=Se.children,w=j||v,R;X?typeof X=="string"?R=function(n){return n[X]}:typeof X=="function"&&(R=function(n){return X(n)}):R=function(n,a){return t(n[x],a)};function S(y,n,a,h){var I=y?y[w]:d,re=y?s(a.pos,n):"0",he=y?[].concat((0,D.Z)(h),[y]):[];if(y){var we=R(y,re),Me={node:y,index:n,pos:re,key:we,parentPos:a.node?a.pos:null,level:a.level+1,nodes:he};u(Me)}I&&I.forEach(function(Ue,Et){S(Ue,Et,{node:y,pos:re,level:a?a.level+1:-1},he)})}S(null)}function E(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=u.initWrapper,P=u.processEntity,K=u.onProcessFinished,j=u.externalGetKey,X=u.childrenPropName,U=u.fieldNames,Se=arguments.length>2?arguments[2]:void 0,x=j||Se,v={},w={},R={posEntities:v,keyEntities:w};return O&&(R=O(R)||R),b(d,function(S){var y=S.node,n=S.index,a=S.pos,h=S.key,I=S.parentPos,re=S.level,he=S.nodes,we={node:y,nodes:he,index:n,key:h,pos:a,level:re},Me=t(h,a);v[a]=we,w[Me]=we,we.parent=v[I],we.parent&&(we.parent.children=we.parent.children||[],we.parent.children.push(we)),P&&P(we,R)},{externalGetKey:x,childrenPropName:X,fieldNames:U}),K&&K(R),R}function _(d,u){var O=u.expandedKeys,P=u.selectedKeys,K=u.loadedKeys,j=u.loadingKeys,X=u.checkedKeys,U=u.halfCheckedKeys,Se=u.dragOverNodeKey,x=u.dropPosition,v=u.keyEntities,w=(0,G.Z)(v,d),R={eventKey:d,expanded:O.indexOf(d)!==-1,selected:P.indexOf(d)!==-1,loaded:K.indexOf(d)!==-1,loading:j.indexOf(d)!==-1,checked:X.indexOf(d)!==-1,halfChecked:U.indexOf(d)!==-1,pos:String(w?w.pos:""),dragOver:Se===d&&x===0,dragOverGapTop:Se===d&&x===-1,dragOverGapBottom:Se===d&&x===1};return R}function g(d){var u=d.data,O=d.expanded,P=d.selected,K=d.checked,j=d.loaded,X=d.loading,U=d.halfChecked,Se=d.dragOver,x=d.dragOverGapTop,v=d.dragOverGapBottom,w=d.pos,R=d.active,S=d.eventKey,y=(0,W.Z)((0,W.Z)({},u),{},{expanded:O,selected:P,checked:K,loaded:j,loading:X,halfChecked:U,dragOver:Se,dragOverGapTop:x,dragOverGapBottom:v,pos:w,active:R,key:S});return"props"in y||Object.defineProperty(y,"props",{get:function(){return(0,$.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),d}}),y}},8224:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return D}});var N=l(4676);function D(W,J,V,p){var $=N.unstable_batchedUpdates?function(e){N.unstable_batchedUpdates(V,e)}:V;return W!=null&&W.addEventListener&&W.addEventListener(J,$,p),{remove:function(){W!=null&&W.removeEventListener&&W.removeEventListener(J,$,p)}}}},24514:function(Kt,Fe,l){"use strict";l.d(Fe,{G:function(){return J}});var N=l(47273),D=function(p){if((0,N.Z)()&&window.document.documentElement){var $=Array.isArray(p)?p:[p],G=window.document.documentElement;return $.some(function(e){return e in G.style})}return!1},W=function(p,$){if(!D(p))return!1;var G=document.createElement("div"),e=G.style[p];return G.style[p]=$,G.style[p]!==e};function J(V,p){return!Array.isArray(V)&&p!==void 0?W(V,p):D(V)}},49658:function(Kt,Fe){"use strict";Fe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))}},45680:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return lt}});var N=l(72308),D=l(62853),W=l(77321),J=l(49618),V=l(52487),p=l(74416),$=l(92310),G=l.n($),e=l(29301),s=l(70425),f=l(34280),t=l(59301),r=l(4676),i=t.forwardRef(function(Z,M){var H=Z.height,A=Z.offsetY,te=Z.offsetX,ce=Z.children,C=Z.prefixCls,c=Z.onInnerResize,k=Z.innerProps,B=Z.rtl,T=Z.extra,z={},L={display:"flex",flexDirection:"column"};return A!==void 0&&(z={height:H,position:"relative",overflow:"hidden"},L=(0,W.Z)((0,W.Z)({},L),{},(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)({transform:"translateY(".concat(A,"px)")},B?"marginRight":"marginLeft",-te),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:z},t.createElement(e.Z,{onResize:function(ee){var le=ee.offsetHeight;le&&c&&c()}},t.createElement("div",(0,N.Z)({style:L,className:G()((0,J.Z)({},"".concat(C,"-holder-inner"),C)),ref:M},k),ce,T)))});i.displayName="Filler";var o=i;function m(Z){var M=Z.children,H=Z.setRef,A=t.useCallback(function(te){H(te)},[]);return t.cloneElement(M,{ref:A})}function b(Z,M,H,A,te,ce,C,c){var k=c.getKey;return Z.slice(M,H+1).map(function(B,T){var z=M+T,L=C(B,z,{style:{width:A},offsetX:te}),ne=k(B);return t.createElement(m,{key:ne,setRef:function(le){return ce(B,le)}},L)})}function E(Z,M,H,A){var te=H-Z,ce=M-H,C=Math.min(te,ce)*2;if(A<=C){var c=Math.floor(A/2);return A%2?H+c+1:H-c}return te>ce?H-(A-ce):H+(A-te)}function _(Z,M,H){var A=Z.length,te=M.length,ce,C;if(A===0&&te===0)return null;A<te?(ce=Z,C=M):(ce=M,C=Z);var c={__EMPTY_ITEM__:!0};function k(ee){return ee!==void 0?H(ee):c}for(var B=null,T=Math.abs(A-te)!==1,z=0;z<C.length;z+=1){var L=k(ce[z]),ne=k(C[z]);if(L!==ne){B=z,T=T||L!==k(C[z+1]);break}}return B===null?null:{index:B,multiple:T}}function g(Z,M,H){var A=t.useState(Z),te=(0,V.Z)(A,2),ce=te[0],C=te[1],c=t.useState(null),k=(0,V.Z)(c,2),B=k[0],T=k[1];return t.useEffect(function(){var z=_(ce||[],Z||[],M);(z==null?void 0:z.index)!==void 0&&(H==null||H(z.index),T(Z[z.index])),C(Z)},[Z]),[B]}var d=l(16089),u=(typeof navigator=="undefined"?"undefined":(0,D.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),O=u,P=function(Z,M,H,A){var te=(0,t.useRef)(!1),ce=(0,t.useRef)(null);function C(){clearTimeout(ce.current),te.current=!0,ce.current=setTimeout(function(){te.current=!1},50)}var c=(0,t.useRef)({top:Z,bottom:M,left:H,right:A});return c.current.top=Z,c.current.bottom=M,c.current.left=H,c.current.right=A,function(k,B){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,z=k?B<0&&c.current.left||B>0&&c.current.right:B<0&&c.current.top||B>0&&c.current.bottom;return T&&z?(clearTimeout(ce.current),te.current=!1):(!z||te.current)&&C(),!te.current&&z}};function K(Z,M,H,A,te,ce,C){var c=(0,t.useRef)(0),k=(0,t.useRef)(null),B=(0,t.useRef)(null),T=(0,t.useRef)(!1),z=P(M,H,A,te);function L(Be,ke){if(d.Z.cancel(k.current),!z(!1,ke)){var de=Be;if(!de._virtualHandled)de._virtualHandled=!0;else return;c.current+=ke,B.current=ke,O||de.preventDefault(),k.current=(0,d.Z)(function(){var Te=T.current?10:1;C(c.current*Te,!1),c.current=0})}}function ne(Be,ke){C(ke,!0),O||Be.preventDefault()}var ee=(0,t.useRef)(null),le=(0,t.useRef)(null);function pe(Be){if(Z){d.Z.cancel(le.current),le.current=(0,d.Z)(function(){ee.current=null},2);var ke=Be.deltaX,de=Be.deltaY,Te=Be.shiftKey,De=ke,Ne=de;(ee.current==="sx"||!ee.current&&Te&&de&&!ke)&&(De=de,Ne=0,ee.current="sx");var ut=Math.abs(De),kt=Math.abs(Ne);ee.current===null&&(ee.current=ce&&ut>kt?"x":"y"),ee.current==="y"?L(Be,Ne):ne(Be,De)}}function ze(Be){Z&&(T.current=Be.detail===B.current)}return[pe,ze]}function j(Z,M,H,A){var te=t.useMemo(function(){return[new Map,[]]},[Z,H.id,A]),ce=(0,V.Z)(te,2),C=ce[0],c=ce[1],k=function(T){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,L=C.get(T),ne=C.get(z);if(L===void 0||ne===void 0)for(var ee=Z.length,le=c.length;le<ee;le+=1){var pe,ze=Z[le],Be=M(ze);C.set(Be,le);var ke=(pe=H.get(Be))!==null&&pe!==void 0?pe:A;if(c[le]=(c[le-1]||0)+ke,Be===T&&(L=le),Be===z&&(ne=le),L!==void 0&&ne!==void 0)break}return{top:c[L-1]||0,bottom:c[ne]}};return k}var X=l(96949),U=l(55090),Se=function(){function Z(){(0,X.Z)(this,Z),(0,J.Z)(this,"maps",void 0),(0,J.Z)(this,"id",0),(0,J.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,U.Z)(Z,[{key:"set",value:function(H,A){this.maps[H]=A,this.id+=1,this.diffKeys.add(H)}},{key:"get",value:function(H){return this.maps[H]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Z}(),x=Se;function v(Z){var M=parseFloat(Z);return isNaN(M)?0:M}function w(Z,M,H){var A=t.useState(0),te=(0,V.Z)(A,2),ce=te[0],C=te[1],c=(0,t.useRef)(new Map),k=(0,t.useRef)(new x),B=(0,t.useRef)(0);function T(){B.current+=1}function z(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;T();var ee=function(){var ze=!1;c.current.forEach(function(Be,ke){if(Be&&Be.offsetParent){var de=Be.offsetHeight,Te=getComputedStyle(Be),De=Te.marginTop,Ne=Te.marginBottom,ut=v(De),kt=v(Ne),Xe=de+ut+kt;k.current.get(ke)!==Xe&&(k.current.set(ke,Xe),ze=!0)}}),ze&&C(function(Be){return Be+1})};if(ne)ee();else{B.current+=1;var le=B.current;Promise.resolve().then(function(){le===B.current&&ee()})}}function L(ne,ee){var le=Z(ne),pe=c.current.get(le);ee?(c.current.set(le,ee),z()):c.current.delete(le),!pe!=!ee&&(ee?M==null||M(ne):H==null||H(ne))}return(0,t.useEffect)(function(){return T},[]),[L,z,k.current,ce]}var R=14/15;function S(Z,M,H){var A=(0,t.useRef)(!1),te=(0,t.useRef)(0),ce=(0,t.useRef)(0),C=(0,t.useRef)(null),c=(0,t.useRef)(null),k,B=function(ne){if(A.current){var ee=Math.ceil(ne.touches[0].pageX),le=Math.ceil(ne.touches[0].pageY),pe=te.current-ee,ze=ce.current-le,Be=Math.abs(pe)>Math.abs(ze);Be?te.current=ee:ce.current=le;var ke=H(Be,Be?pe:ze,!1,ne);ke&&ne.preventDefault(),clearInterval(c.current),ke&&(c.current=setInterval(function(){Be?pe*=R:ze*=R;var de=Math.floor(Be?pe:ze);(!H(Be,de,!0)||Math.abs(de)<=.1)&&clearInterval(c.current)},16))}},T=function(){A.current=!1,k()},z=function(ne){k(),ne.touches.length===1&&!A.current&&(A.current=!0,te.current=Math.ceil(ne.touches[0].pageX),ce.current=Math.ceil(ne.touches[0].pageY),C.current=ne.target,C.current.addEventListener("touchmove",B,{passive:!1}),C.current.addEventListener("touchend",T,{passive:!0}))};k=function(){C.current&&(C.current.removeEventListener("touchmove",B),C.current.removeEventListener("touchend",T))},(0,f.Z)(function(){return Z&&M.current.addEventListener("touchstart",z,{passive:!0}),function(){var L;(L=M.current)===null||L===void 0||L.removeEventListener("touchstart",z),k(),clearInterval(c.current)}},[Z])}function y(Z){return Math.floor(Math.pow(Z,.5))}function n(Z,M){var H="touches"in Z?Z.touches[0]:Z;return H[M?"pageX":"pageY"]-window[M?"scrollX":"scrollY"]}function a(Z,M,H){t.useEffect(function(){var A=M.current;if(Z&&A){var te=!1,ce,C,c=function(){d.Z.cancel(ce)},k=function L(){c(),ce=(0,d.Z)(function(){H(C),L()})},B=function(ne){if(!(ne.target.draggable||ne.button!==0)){var ee=ne;ee._virtualHandled||(ee._virtualHandled=!0,te=!0)}},T=function(){te=!1,c()},z=function(ne){if(te){var ee=n(ne,!1),le=A.getBoundingClientRect(),pe=le.top,ze=le.bottom;if(ee<=pe){var Be=pe-ee;C=-y(Be),k()}else if(ee>=ze){var ke=ee-ze;C=y(ke),k()}else c()}};return A.addEventListener("mousedown",B),A.ownerDocument.addEventListener("mouseup",T),A.ownerDocument.addEventListener("mousemove",z),function(){A.removeEventListener("mousedown",B),A.ownerDocument.removeEventListener("mouseup",T),A.ownerDocument.removeEventListener("mousemove",z),c()}}},[Z])}var h=10;function I(Z,M,H,A,te,ce,C,c){var k=t.useRef(),B=t.useState(null),T=(0,V.Z)(B,2),z=T[0],L=T[1];return(0,f.Z)(function(){if(z&&z.times<h){if(!Z.current){L(function(qt){return(0,W.Z)({},qt)});return}ce();var ne=z.targetAlign,ee=z.originAlign,le=z.index,pe=z.offset,ze=Z.current.clientHeight,Be=!1,ke=ne,de=null;if(ze){for(var Te=ne||ee,De=0,Ne=0,ut=0,kt=Math.min(M.length-1,le),Xe=0;Xe<=kt;Xe+=1){var Tt=te(M[Xe]);Ne=De;var nn=H.get(Tt);ut=Ne+(nn===void 0?A:nn),De=ut}for(var mt=Te==="top"?pe:ze-pe,rt=kt;rt>=0;rt-=1){var It=te(M[rt]),Qt=H.get(It);if(Qt===void 0){Be=!0;break}if(mt-=Qt,mt<=0)break}switch(Te){case"top":de=Ne-pe;break;case"bottom":de=ut-ze+pe;break;default:{var Ut=Z.current.scrollTop,en=Ut+ze;Ne<Ut?ke="top":ut>en&&(ke="bottom")}}de!==null&&C(de),de!==z.lastTop&&(Be=!0)}Be&&L((0,W.Z)((0,W.Z)({},z),{},{times:z.times+1,targetAlign:ke,lastTop:de}))}},[z,Z.current]),function(ne){if(ne==null){c();return}if(d.Z.cancel(k.current),typeof ne=="number")C(ne);else if(ne&&(0,D.Z)(ne)==="object"){var ee,le=ne.align;"index"in ne?ee=ne.index:ee=M.findIndex(function(Be){return te(Be)===ne.key});var pe=ne.offset,ze=pe===void 0?0:pe;L({times:0,index:ee,offset:ze,originAlign:le})}}}var re=t.forwardRef(function(Z,M){var H=Z.prefixCls,A=Z.rtl,te=Z.scrollOffset,ce=Z.scrollRange,C=Z.onStartMove,c=Z.onStopMove,k=Z.onScroll,B=Z.horizontal,T=Z.spinSize,z=Z.containerSize,L=Z.style,ne=Z.thumbStyle,ee=Z.showScrollBar,le=t.useState(!1),pe=(0,V.Z)(le,2),ze=pe[0],Be=pe[1],ke=t.useState(null),de=(0,V.Z)(ke,2),Te=de[0],De=de[1],Ne=t.useState(null),ut=(0,V.Z)(Ne,2),kt=ut[0],Xe=ut[1],Tt=!A,nn=t.useRef(),mt=t.useRef(),rt=t.useState(ee),It=(0,V.Z)(rt,2),Qt=It[0],Ut=It[1],en=t.useRef(),qt=function(){ee===!0||ee===!1||(clearTimeout(en.current),Ut(!0),en.current=setTimeout(function(){Ut(!1)},3e3))},pt=ce-z||0,ct=z-T||0,ht=t.useMemo(function(){if(te===0||pt===0)return 0;var wn=te/pt;return wn*ct},[te,pt,ct]),Ht=function(Pn){Pn.stopPropagation(),Pn.preventDefault()},bn=t.useRef({top:ht,dragging:ze,pageY:Te,startTop:kt});bn.current={top:ht,dragging:ze,pageY:Te,startTop:kt};var Ft=function(Pn){Be(!0),De(n(Pn,B)),Xe(bn.current.top),C(),Pn.stopPropagation(),Pn.preventDefault()};t.useEffect(function(){var wn=function(Tn){Tn.preventDefault()},Pn=nn.current,_n=mt.current;return Pn.addEventListener("touchstart",wn,{passive:!1}),_n.addEventListener("touchstart",Ft,{passive:!1}),function(){Pn.removeEventListener("touchstart",wn),_n.removeEventListener("touchstart",Ft)}},[]);var kn=t.useRef();kn.current=pt;var Wn=t.useRef();Wn.current=ct,t.useEffect(function(){if(ze){var wn,Pn=function(Tn){var fn=bn.current,q=fn.dragging,Y=fn.pageY,$e=fn.startTop;d.Z.cancel(wn);var Le=nn.current.getBoundingClientRect(),Je=z/(B?Le.width:Le.height);if(q){var Qe=(n(Tn,B)-Y)*Je,st=$e;!Tt&&B?st-=Qe:st+=Qe;var nt=kn.current,je=Wn.current,Ce=je?st/je:0,Ie=Math.ceil(Ce*nt);Ie=Math.max(Ie,0),Ie=Math.min(Ie,nt),wn=(0,d.Z)(function(){k(Ie,B)})}},_n=function(){Be(!1),c()};return window.addEventListener("mousemove",Pn,{passive:!0}),window.addEventListener("touchmove",Pn,{passive:!0}),window.addEventListener("mouseup",_n,{passive:!0}),window.addEventListener("touchend",_n,{passive:!0}),function(){window.removeEventListener("mousemove",Pn),window.removeEventListener("touchmove",Pn),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),d.Z.cancel(wn)}}},[ze]),t.useEffect(function(){return qt(),function(){clearTimeout(en.current)}},[te]),t.useImperativeHandle(M,function(){return{delayHidden:qt}});var rn="".concat(H,"-scrollbar"),yn={position:"absolute",visibility:Qt?null:"hidden"},Rn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return B?(yn.height=8,yn.left=0,yn.right=0,yn.bottom=0,Rn.height="100%",Rn.width=T,Tt?Rn.left=ht:Rn.right=ht):(yn.width=8,yn.top=0,yn.bottom=0,Tt?yn.right=0:yn.left=0,Rn.width="100%",Rn.height=T,Rn.top=ht),t.createElement("div",{ref:nn,className:G()(rn,(0,J.Z)((0,J.Z)((0,J.Z)({},"".concat(rn,"-horizontal"),B),"".concat(rn,"-vertical"),!B),"".concat(rn,"-visible"),Qt)),style:(0,W.Z)((0,W.Z)({},yn),L),onMouseDown:Ht,onMouseMove:qt},t.createElement("div",{ref:mt,className:G()("".concat(rn,"-thumb"),(0,J.Z)({},"".concat(rn,"-thumb-moving"),ze)),style:(0,W.Z)((0,W.Z)({},Rn),ne),onMouseDown:Ft}))}),he=re,we=20;function Me(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=Z/M*Z;return isNaN(H)&&(H=0),H=Math.max(H,we),Math.floor(H)}var Ue=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Et=[],ve={overflowY:"auto",overflowAnchor:"none"};function We(Z,M){var H=Z.prefixCls,A=H===void 0?"rc-virtual-list":H,te=Z.className,ce=Z.height,C=Z.itemHeight,c=Z.fullHeight,k=c===void 0?!0:c,B=Z.style,T=Z.data,z=Z.children,L=Z.itemKey,ne=Z.virtual,ee=Z.direction,le=Z.scrollWidth,pe=Z.component,ze=pe===void 0?"div":pe,Be=Z.onScroll,ke=Z.onVirtualScroll,de=Z.onVisibleChange,Te=Z.innerProps,De=Z.extraRender,Ne=Z.styles,ut=Z.showScrollBar,kt=ut===void 0?"optional":ut,Xe=(0,p.Z)(Z,Ue),Tt=t.useCallback(function(ae){return typeof L=="function"?L(ae):ae==null?void 0:ae[L]},[L]),nn=w(Tt,null,null),mt=(0,V.Z)(nn,4),rt=mt[0],It=mt[1],Qt=mt[2],Ut=mt[3],en=!!(ne!==!1&&ce&&C),qt=t.useMemo(function(){return Object.values(Qt.maps).reduce(function(ae,ue){return ae+ue},0)},[Qt.id,Qt.maps]),pt=en&&T&&(Math.max(C*T.length,qt)>ce||!!le),ct=ee==="rtl",ht=G()(A,(0,J.Z)({},"".concat(A,"-rtl"),ct),te),Ht=T||Et,bn=(0,t.useRef)(),Ft=(0,t.useRef)(),kn=(0,t.useRef)(),Wn=(0,t.useState)(0),rn=(0,V.Z)(Wn,2),yn=rn[0],Rn=rn[1],wn=(0,t.useState)(0),Pn=(0,V.Z)(wn,2),_n=Pn[0],Nn=Pn[1],Tn=(0,t.useState)(!1),fn=(0,V.Z)(Tn,2),q=fn[0],Y=fn[1],$e=function(){Y(!0)},Le=function(){Y(!1)},Je={getKey:Tt};function Qe(ae){Rn(function(ue){var ye;typeof ae=="function"?ye=ae(ue):ye=ae;var Ae=bt(ye);return bn.current.scrollTop=Ae,Ae})}var st=(0,t.useRef)({start:0,end:Ht.length}),nt=(0,t.useRef)(),je=g(Ht,Tt),Ce=(0,V.Z)(je,1),Ie=Ce[0];nt.current=Ie;var Ye=t.useMemo(function(){if(!en)return{scrollHeight:void 0,start:0,end:Ht.length-1,offset:void 0};if(!pt){var ae;return{scrollHeight:((ae=Ft.current)===null||ae===void 0?void 0:ae.offsetHeight)||0,start:0,end:Ht.length-1,offset:void 0}}for(var ue=0,ye,Ae,Pe,tt=Ht.length,Dt=0;Dt<tt;Dt+=1){var Ct=Ht[Dt],zt=Tt(Ct),Pt=Qt.get(zt),jt=ue+(Pt===void 0?C:Pt);jt>=yn&&ye===void 0&&(ye=Dt,Ae=ue),jt>yn+ce&&Pe===void 0&&(Pe=Dt),ue=jt}return ye===void 0&&(ye=0,Ae=0,Pe=Math.ceil(ce/C)),Pe===void 0&&(Pe=Ht.length-1),Pe=Math.min(Pe+1,Ht.length-1),{scrollHeight:ue,start:ye,end:Pe,offset:Ae}},[pt,en,yn,Ht,Ut,ce]),ft=Ye.scrollHeight,it=Ye.start,Gt=Ye.end,et=Ye.offset;st.current.start=it,st.current.end=Gt,t.useLayoutEffect(function(){var ae=Qt.getRecord();if(ae.size===1){var ue=Array.from(ae)[0],ye=Ht[it];if(ye){var Ae=Tt(ye);if(Ae===ue){var Pe=Qt.get(ue),tt=Pe-C;Qe(function(Dt){return Dt+tt})}}}Qt.resetRecord()},[ft]);var Ge=t.useState({width:0,height:ce}),Q=(0,V.Z)(Ge,2),me=Q[0],Re=Q[1],_e=function(ue){Re({width:ue.offsetWidth,height:ue.offsetHeight})},Ze=(0,t.useRef)(),xe=(0,t.useRef)(),Ke=t.useMemo(function(){return Me(me.width,le)},[me.width,le]),He=t.useMemo(function(){return Me(me.height,ft)},[me.height,ft]),_t=ft-ce,ot=(0,t.useRef)(_t);ot.current=_t;function bt(ae){var ue=ae;return Number.isNaN(ot.current)||(ue=Math.min(ue,ot.current)),ue=Math.max(ue,0),ue}var wt=yn<=0,At=yn>=_t,Bt=_n<=0,Mt=_n>=le,St=P(wt,At,Bt,Mt),Rt=function(){return{x:ct?-_n:_n,y:yn}},Xt=(0,t.useRef)(Rt()),qe=(0,s.zX)(function(ae){if(ke){var ue=(0,W.Z)((0,W.Z)({},Rt()),ae);(Xt.current.x!==ue.x||Xt.current.y!==ue.y)&&(ke(ue),Xt.current=ue)}});function Ve(ae,ue){var ye=ae;ue?((0,r.flushSync)(function(){Nn(ye)}),qe()):Qe(ye)}function at(ae){var ue=ae.currentTarget.scrollTop;ue!==yn&&Qe(ue),Be==null||Be(ae),qe()}var an=function(ue){var ye=ue,Ae=le?le-me.width:0;return ye=Math.max(ye,0),ye=Math.min(ye,Ae),ye},dn=(0,s.zX)(function(ae,ue){ue?((0,r.flushSync)(function(){Nn(function(ye){var Ae=ye+(ct?-ae:ae);return an(Ae)})}),qe()):Qe(function(ye){var Ae=ye+ae;return Ae})}),xn=K(en,wt,At,Bt,Mt,!!le,dn),On=(0,V.Z)(xn,2),F=On[0],se=On[1];S(en,bn,function(ae,ue,ye,Ae){var Pe=Ae;return St(ae,ue,ye)?!1:!Pe||!Pe._virtualHandled?(Pe&&(Pe._virtualHandled=!0),F({preventDefault:function(){},deltaX:ae?ue:0,deltaY:ae?0:ue}),!0):!1}),a(pt,bn,function(ae){Qe(function(ue){return ue+ae})}),(0,f.Z)(function(){function ae(ye){var Ae=wt&&ye.detail<0,Pe=At&&ye.detail>0;en&&!Ae&&!Pe&&ye.preventDefault()}var ue=bn.current;return ue.addEventListener("wheel",F,{passive:!1}),ue.addEventListener("DOMMouseScroll",se,{passive:!0}),ue.addEventListener("MozMousePixelScroll",ae,{passive:!1}),function(){ue.removeEventListener("wheel",F),ue.removeEventListener("DOMMouseScroll",se),ue.removeEventListener("MozMousePixelScroll",ae)}},[en,wt,At]),(0,f.Z)(function(){if(le){var ae=an(_n);Nn(ae),qe({x:ae})}},[me.width,le]);var ie=function(){var ue,ye;(ue=Ze.current)===null||ue===void 0||ue.delayHidden(),(ye=xe.current)===null||ye===void 0||ye.delayHidden()},oe=I(bn,Ht,Qt,C,Tt,function(){return It(!0)},Qe,ie);t.useImperativeHandle(M,function(){return{nativeElement:kn.current,getScrollInfo:Rt,scrollTo:function(ue){function ye(Ae){return Ae&&(0,D.Z)(Ae)==="object"&&("left"in Ae||"top"in Ae)}ye(ue)?(ue.left!==void 0&&Nn(an(ue.left)),oe(ue.top)):oe(ue)}}}),(0,f.Z)(function(){if(de){var ae=Ht.slice(it,Gt+1);de(ae,Ht)}},[it,Gt,Ht]);var ge=j(Ht,Tt,Qt,C),fe=De==null?void 0:De({start:it,end:Gt,virtual:pt,offsetX:_n,offsetY:et,rtl:ct,getSize:ge}),be=b(Ht,it,Gt,le,_n,rt,z,Je),Ee=null;ce&&(Ee=(0,W.Z)((0,J.Z)({},k?"height":"maxHeight",ce),ve),en&&(Ee.overflowY="hidden",le&&(Ee.overflowX="hidden"),q&&(Ee.pointerEvents="none")));var Oe={};return ct&&(Oe.dir="rtl"),t.createElement("div",(0,N.Z)({ref:kn,style:(0,W.Z)((0,W.Z)({},B),{},{position:"relative"}),className:ht},Oe,Xe),t.createElement(e.Z,{onResize:_e},t.createElement(ze,{className:"".concat(A,"-holder"),style:Ee,ref:bn,onScroll:at,onMouseEnter:ie},t.createElement(o,{prefixCls:A,height:ft,offsetX:_n,offsetY:et,scrollWidth:le,onInnerResize:It,ref:Ft,innerProps:Te,rtl:ct,extra:fe},be))),pt&&ft>ce&&t.createElement(he,{ref:Ze,prefixCls:A,scrollOffset:yn,scrollRange:ft,rtl:ct,onScroll:Ve,onStartMove:$e,onStopMove:Le,spinSize:He,containerSize:me.height,style:Ne==null?void 0:Ne.verticalScrollBar,thumbStyle:Ne==null?void 0:Ne.verticalScrollBarThumb,showScrollBar:kt}),pt&&le>me.width&&t.createElement(he,{ref:xe,prefixCls:A,scrollOffset:_n,scrollRange:le,rtl:ct,onScroll:Ve,onStartMove:$e,onStopMove:Le,spinSize:Ke,containerSize:me.width,horizontal:!0,style:Ne==null?void 0:Ne.horizontalScrollBar,thumbStyle:Ne==null?void 0:Ne.horizontalScrollBarThumb,showScrollBar:kt}))}var vt=t.forwardRef(We);vt.displayName="List";var Ot=vt,lt=Ot},83145:function(Kt,Fe,l){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.CopyToClipboard=void 0;var N=W(l(59301)),D=W(l(25769));function W(_){return _&&_.__esModule?_:{default:_}}function J(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J=function(d){return typeof d}:J=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},J(_)}function V(_,g){var d=Object.keys(_);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(_);g&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),d.push.apply(d,u)}return d}function p(_){for(var g=1;g<arguments.length;g++){var d=arguments[g]!=null?arguments[g]:{};g%2?V(d,!0).forEach(function(u){b(_,u,d[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(d)):V(d).forEach(function(u){Object.defineProperty(_,u,Object.getOwnPropertyDescriptor(d,u))})}return _}function $(_,g){if(_==null)return{};var d=G(_,g),u,O;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(_);for(O=0;O<P.length;O++)u=P[O],!(g.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(_,u)&&(d[u]=_[u])}return d}function G(_,g){if(_==null)return{};var d={},u=Object.keys(_),O,P;for(P=0;P<u.length;P++)O=u[P],!(g.indexOf(O)>=0)&&(d[O]=_[O]);return d}function e(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function s(_,g){for(var d=0;d<g.length;d++){var u=g[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(_,u.key,u)}}function f(_,g,d){return g&&s(_.prototype,g),d&&s(_,d),_}function t(_,g){return g&&(J(g)==="object"||typeof g=="function")?g:i(_)}function r(_){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},r(_)}function i(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function o(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),g&&m(_,g)}function m(_,g){return m=Object.setPrototypeOf||function(u,O){return u.__proto__=O,u},m(_,g)}function b(_,g,d){return g in _?Object.defineProperty(_,g,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[g]=d,_}var E=function(_){o(g,_);function g(){var d,u;e(this,g);for(var O=arguments.length,P=new Array(O),K=0;K<O;K++)P[K]=arguments[K];return u=t(this,(d=r(g)).call.apply(d,[this].concat(P))),b(i(u),"onClick",function(j){var X=u.props,U=X.text,Se=X.onCopy,x=X.children,v=X.options,w=N.default.Children.only(x),R=(0,D.default)(U,v);Se&&Se(U,R),w&&w.props&&typeof w.props.onClick=="function"&&w.props.onClick(j)}),u}return f(g,[{key:"render",value:function(){var u=this.props,O=u.text,P=u.onCopy,K=u.options,j=u.children,X=$(u,["text","onCopy","options","children"]),U=N.default.Children.only(j);return N.default.cloneElement(U,p({},X,{onClick:this.onClick}))}}]),g}(N.default.PureComponent);Fe.CopyToClipboard=E,b(E,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Kt,Fe,l){"use strict";var N=l(83145),D=N.CopyToClipboard;D.CopyToClipboard=D,Kt.exports=D},76374:function(Kt,Fe,l){"use strict";var N=function(){if(typeof Map!="undefined")return Map;function x(v,w){var R=-1;return v.some(function(S,y){return S[0]===w?(R=y,!0):!1}),R}return function(){function v(){this.__entries__=[]}return Object.defineProperty(v.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),v.prototype.get=function(w){var R=x(this.__entries__,w),S=this.__entries__[R];return S&&S[1]},v.prototype.set=function(w,R){var S=x(this.__entries__,w);~S?this.__entries__[S][1]=R:this.__entries__.push([w,R])},v.prototype.delete=function(w){var R=this.__entries__,S=x(R,w);~S&&R.splice(S,1)},v.prototype.has=function(w){return!!~x(this.__entries__,w)},v.prototype.clear=function(){this.__entries__.splice(0)},v.prototype.forEach=function(w,R){R===void 0&&(R=null);for(var S=0,y=this.__entries__;S<y.length;S++){var n=y[S];w.call(R,n[1],n[0])}},v}()}(),D=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,W=function(){return typeof l.g!="undefined"&&l.g.Math===Math?l.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),J=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(W):function(x){return setTimeout(function(){return x(Date.now())},1e3/60)}}(),V=2;function p(x,v){var w=!1,R=!1,S=0;function y(){w&&(w=!1,x()),R&&a()}function n(){J(y)}function a(){var h=Date.now();if(w){if(h-S<V)return;R=!0}else w=!0,R=!1,setTimeout(n,v);S=h}return a}var $=20,G=["top","right","bottom","left","width","height","size","weight"],e=typeof MutationObserver!="undefined",s=function(){function x(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=p(this.refresh.bind(this),$)}return x.prototype.addObserver=function(v){~this.observers_.indexOf(v)||this.observers_.push(v),this.connected_||this.connect_()},x.prototype.removeObserver=function(v){var w=this.observers_,R=w.indexOf(v);~R&&w.splice(R,1),!w.length&&this.connected_&&this.disconnect_()},x.prototype.refresh=function(){var v=this.updateObservers_();v&&this.refresh()},x.prototype.updateObservers_=function(){var v=this.observers_.filter(function(w){return w.gatherActive(),w.hasActive()});return v.forEach(function(w){return w.broadcastActive()}),v.length>0},x.prototype.connect_=function(){!D||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),e?(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)},x.prototype.disconnect_=function(){!D||!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)},x.prototype.onTransitionEnd_=function(v){var w=v.propertyName,R=w===void 0?"":w,S=G.some(function(y){return!!~R.indexOf(y)});S&&this.refresh()},x.getInstance=function(){return this.instance_||(this.instance_=new x),this.instance_},x.instance_=null,x}(),f=function(x,v){for(var w=0,R=Object.keys(v);w<R.length;w++){var S=R[w];Object.defineProperty(x,S,{value:v[S],enumerable:!1,writable:!1,configurable:!0})}return x},t=function(x){var v=x&&x.ownerDocument&&x.ownerDocument.defaultView;return v||W},r=O(0,0,0,0);function i(x){return parseFloat(x)||0}function o(x){for(var v=[],w=1;w<arguments.length;w++)v[w-1]=arguments[w];return v.reduce(function(R,S){var y=x["border-"+S+"-width"];return R+i(y)},0)}function m(x){for(var v=["top","right","bottom","left"],w={},R=0,S=v;R<S.length;R++){var y=S[R],n=x["padding-"+y];w[y]=i(n)}return w}function b(x){var v=x.getBBox();return O(0,0,v.width,v.height)}function E(x){var v=x.clientWidth,w=x.clientHeight;if(!v&&!w)return r;var R=t(x).getComputedStyle(x),S=m(R),y=S.left+S.right,n=S.top+S.bottom,a=i(R.width),h=i(R.height);if(R.boxSizing==="border-box"&&(Math.round(a+y)!==v&&(a-=o(R,"left","right")+y),Math.round(h+n)!==w&&(h-=o(R,"top","bottom")+n)),!g(x)){var I=Math.round(a+y)-v,re=Math.round(h+n)-w;Math.abs(I)!==1&&(a-=I),Math.abs(re)!==1&&(h-=re)}return O(S.left,S.top,a,h)}var _=function(){return typeof SVGGraphicsElement!="undefined"?function(x){return x instanceof t(x).SVGGraphicsElement}:function(x){return x instanceof t(x).SVGElement&&typeof x.getBBox=="function"}}();function g(x){return x===t(x).document.documentElement}function d(x){return D?_(x)?b(x):E(x):r}function u(x){var v=x.x,w=x.y,R=x.width,S=x.height,y=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,n=Object.create(y.prototype);return f(n,{x:v,y:w,width:R,height:S,top:w,right:v+R,bottom:S+w,left:v}),n}function O(x,v,w,R){return{x,y:v,width:w,height:R}}var P=function(){function x(v){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=O(0,0,0,0),this.target=v}return x.prototype.isActive=function(){var v=d(this.target);return this.contentRect_=v,v.width!==this.broadcastWidth||v.height!==this.broadcastHeight},x.prototype.broadcastRect=function(){var v=this.contentRect_;return this.broadcastWidth=v.width,this.broadcastHeight=v.height,v},x}(),K=function(){function x(v,w){var R=u(w);f(this,{target:v,contentRect:R})}return x}(),j=function(){function x(v,w,R){if(this.activeObservations_=[],this.observations_=new N,typeof v!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=v,this.controller_=w,this.callbackCtx_=R}return x.prototype.observe=function(v){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(v instanceof t(v).Element))throw new TypeError('parameter 1 is not of type "Element".');var w=this.observations_;w.has(v)||(w.set(v,new P(v)),this.controller_.addObserver(this),this.controller_.refresh())}},x.prototype.unobserve=function(v){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(v instanceof t(v).Element))throw new TypeError('parameter 1 is not of type "Element".');var w=this.observations_;w.has(v)&&(w.delete(v),w.size||this.controller_.removeObserver(this))}},x.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},x.prototype.gatherActive=function(){var v=this;this.clearActive(),this.observations_.forEach(function(w){w.isActive()&&v.activeObservations_.push(w)})},x.prototype.broadcastActive=function(){if(this.hasActive()){var v=this.callbackCtx_,w=this.activeObservations_.map(function(R){return new K(R.target,R.broadcastRect())});this.callback_.call(v,w,v),this.clearActive()}},x.prototype.clearActive=function(){this.activeObservations_.splice(0)},x.prototype.hasActive=function(){return this.activeObservations_.length>0},x}(),X=typeof WeakMap!="undefined"?new WeakMap:new N,U=function(){function x(v){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var w=s.getInstance(),R=new j(v,w,this);X.set(this,R)}return x}();["observe","unobserve","disconnect"].forEach(function(x){U.prototype[x]=function(){var v;return(v=X.get(this))[x].apply(v,arguments)}});var Se=function(){return typeof W.ResizeObserver!="undefined"?W.ResizeObserver:U}();Fe.Z=Se},98040:function(Kt){Kt.exports=function(){var Fe=document.getSelection();if(!Fe.rangeCount)return function(){};for(var l=document.activeElement,N=[],D=0;D<Fe.rangeCount;D++)N.push(Fe.getRangeAt(D));switch(l.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":l.blur();break;default:l=null;break}return Fe.removeAllRanges(),function(){Fe.type==="Caret"&&Fe.removeAllRanges(),Fe.rangeCount||N.forEach(function(W){Fe.addRange(W)}),l&&l.focus()}}},93314:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Kt,Fe,l){"use strict";l.d(Fe,{Z:function(){return G}});const N=e=>typeof e=="object"&&e!=null&&e.nodeType===1,D=(e,s)=>(!s||e!=="hidden")&&e!=="visible"&&e!=="clip",W=(e,s)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const f=getComputedStyle(e,null);return D(f.overflowY,s)||D(f.overflowX,s)||(t=>{const r=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(o){return null}})(t);return!!r&&(r.clientHeight<t.scrollHeight||r.clientWidth<t.scrollWidth)})(e)}return!1},J=(e,s,f,t,r,i,o,m)=>i<e&&o>s||i>e&&o<s?0:i<=e&&m<=f||o>=s&&m>=f?i-e-t:o>s&&m<f||i<e&&m>f?o-s+r:0,V=e=>{const s=e.parentElement;return s==null?e.getRootNode().host||null:s},p=(e,s)=>{var f,t,r,i;if(typeof document=="undefined")return[];const{scrollMode:o,block:m,inline:b,boundary:E,skipOverflowHiddenElements:_}=s,g=typeof E=="function"?E:he=>he!==E;if(!N(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,u=[];let O=e;for(;N(O)&&g(O);){if(O=V(O),O===d){u.push(O);break}O!=null&&O===document.body&&W(O)&&!W(document.documentElement)||O!=null&&W(O,_)&&u.push(O)}const P=(t=(f=window.visualViewport)==null?void 0:f.width)!=null?t:innerWidth,K=(i=(r=window.visualViewport)==null?void 0:r.height)!=null?i:innerHeight,{scrollX:j,scrollY:X}=window,{height:U,width:Se,top:x,right:v,bottom:w,left:R}=e.getBoundingClientRect(),{top:S,right:y,bottom:n,left:a}=(he=>{const we=window.getComputedStyle(he);return{top:parseFloat(we.scrollMarginTop)||0,right:parseFloat(we.scrollMarginRight)||0,bottom:parseFloat(we.scrollMarginBottom)||0,left:parseFloat(we.scrollMarginLeft)||0}})(e);let h=m==="start"||m==="nearest"?x-S:m==="end"?w+n:x+U/2-S+n,I=b==="center"?R+Se/2-a+y:b==="end"?v+y:R-a;const re=[];for(let he=0;he<u.length;he++){const we=u[he],{height:Me,width:Ue,top:Et,right:ve,bottom:We,left:vt}=we.getBoundingClientRect();if(o==="if-needed"&&x>=0&&R>=0&&w<=K&&v<=P&&(we===d&&!W(we)||x>=Et&&w<=We&&R>=vt&&v<=ve))return re;const Ot=getComputedStyle(we),lt=parseInt(Ot.borderLeftWidth,10),Z=parseInt(Ot.borderTopWidth,10),M=parseInt(Ot.borderRightWidth,10),H=parseInt(Ot.borderBottomWidth,10);let A=0,te=0;const ce="offsetWidth"in we?we.offsetWidth-we.clientWidth-lt-M:0,C="offsetHeight"in we?we.offsetHeight-we.clientHeight-Z-H:0,c="offsetWidth"in we?we.offsetWidth===0?0:Ue/we.offsetWidth:0,k="offsetHeight"in we?we.offsetHeight===0?0:Me/we.offsetHeight:0;if(d===we)A=m==="start"?h:m==="end"?h-K:m==="nearest"?J(X,X+K,K,Z,H,X+h,X+h+U,U):h-K/2,te=b==="start"?I:b==="center"?I-P/2:b==="end"?I-P:J(j,j+P,P,lt,M,j+I,j+I+Se,Se),A=Math.max(0,A+X),te=Math.max(0,te+j);else{A=m==="start"?h-Et-Z:m==="end"?h-We+H+C:m==="nearest"?J(Et,We,Me,Z,H+C,h,h+U,U):h-(Et+Me/2)+C/2,te=b==="start"?I-vt-lt:b==="center"?I-(vt+Ue/2)+ce/2:b==="end"?I-ve+M+ce:J(vt,ve,Ue,lt,M+ce,I,I+Se,Se);const{scrollLeft:B,scrollTop:T}=we;A=k===0?0:Math.max(0,Math.min(T+A/k,we.scrollHeight-Me/k+C)),te=c===0?0:Math.max(0,Math.min(B+te/c,we.scrollWidth-Ue/c+ce)),h+=T-A,I+=B-te}re.push({el:we,top:A,left:te})}return re},$=e=>e===!1?{block:"end",inline:"nearest"}:(s=>s===Object(s)&&Object.keys(s).length!==0)(e)?e:{block:"start",inline:"nearest"};function G(e,s){if(!e.isConnected||!(r=>{let i=r;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const f=(r=>{const i=window.getComputedStyle(r);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((r=>typeof r=="object"&&typeof r.behavior=="function")(s))return s.behavior(p(e,s));const t=typeof s=="boolean"||s==null?void 0:s.behavior;for(const{el:r,top:i,left:o}of p(e,$(s))){const m=i-f.top+f.bottom,b=o-f.left+f.right;r.scroll({top:m,left:b,behavior:t})}}}}]);
|