|
|
(self.webpackChunk=self.webpackChunk||[]).push([[9674],{40001:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},18785:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},73331:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},15277:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},33853:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},47472:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return o}});var n=t(60499),f=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},p=y,u=t(7657),v=function(l,r){return f.createElement(u.Z,(0,n.Z)({},l,{ref:r,icon:p}))},d=f.forwardRef(v),o=d},68196:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return q}});var n=t(85899),f=t(72190),y=t(42244),p=t(43403),u=t(92310),v=t.n(u),d=t(29301),o=t(76846),s=t(96452),l=t(6089),r=t(80402),a=t(34280),e=t(49658),i=t(59301),c=t(60499),m=t(77900),w=t(8654);function A(B){var U=B.prefixCls,j=B.align,oe=B.arrow,V=B.arrowPos,$=oe||{},T=$.className,ne=$.content,Y=V.x,ie=Y===void 0?0:Y,me=V.y,fe=me===void 0?0:me,ve=i.useRef();if(!j||!j.points)return null;var xe={position:"absolute"};if(j.autoArrow!==!1){var Ee=j.points[0],Be=j.points[1],De=Ee[0],He=Ee[1],$e=Be[0],Pe=Be[1];De===$e||!["t","b"].includes(De)?xe.top=fe:De==="t"?xe.top=0:xe.bottom=0,He===Pe||!["l","r"].includes(He)?xe.left=ie:He==="l"?xe.left=0:xe.right=0}return i.createElement("div",{ref:ve,className:v()("".concat(U,"-arrow"),T),style:xe},ne)}function h(B){var U=B.prefixCls,j=B.open,oe=B.zIndex,V=B.mask,$=B.motion;return V?i.createElement(m.default,(0,c.Z)({},$,{motionAppear:!0,visible:j,removeOnLeave:!0}),function(T){var ne=T.className;return i.createElement("div",{style:{zIndex:oe},className:v()("".concat(U,"-mask"),ne)})}):null}var g=i.memo(function(B){var U=B.children;return U},function(B,U){return U.cache}),_=g,C=i.forwardRef(function(B,U){var j=B.popup,oe=B.className,V=B.prefixCls,$=B.style,T=B.target,ne=B.onVisibleChanged,Y=B.open,ie=B.keepDom,me=B.fresh,fe=B.onClick,ve=B.mask,xe=B.arrow,Ee=B.arrowPos,Be=B.align,De=B.motion,He=B.maskMotion,$e=B.forceRender,Pe=B.getPopupContainer,Le=B.autoDestroy,Fe=B.portal,F=B.zIndex,ee=B.onMouseEnter,ue=B.onMouseLeave,pe=B.onPointerEnter,Ie=B.onPointerDownCapture,Ze=B.ready,Ae=B.offsetX,Se=B.offsetY,Ne=B.offsetR,Qe=B.offsetB,We=B.onAlign,Je=B.onPrepare,Te=B.stretch,Ge=B.targetWidth,Xe=B.targetHeight,ge=typeof j=="function"?j():j,ae=Y||ie,he=(Pe==null?void 0:Pe.length)>0,de=i.useState(!Pe||!he),Ke=(0,f.Z)(de,2),ze=Ke[0],ke=Ke[1];if((0,a.Z)(function(){!ze&&he&&T&&ke(!0)},[ze,he,T]),!ze)return null;var Ye="auto",tt={left:"-1000vw",top:"-1000vh",right:Ye,bottom:Ye};if(Ze||!Y){var st,at=Be.points,Ve=Be.dynamicInset||((st=Be._experimental)===null||st===void 0?void 0:st.dynamicInset),ut=Ve&&at[0][1]==="r",dt=Ve&&at[0][0]==="b";ut?(tt.right=Ne,tt.left=Ye):(tt.left=Ae,tt.right=Ye),dt?(tt.bottom=Qe,tt.top=Ye):(tt.top=Se,tt.bottom=Ye)}var rt={};return Te&&(Te.includes("height")&&Xe?rt.height=Xe:Te.includes("minHeight")&&Xe&&(rt.minHeight=Xe),Te.includes("width")&&Ge?rt.width=Ge:Te.includes("minWidth")&&Ge&&(rt.minWidth=Ge)),Y||(rt.pointerEvents="none"),i.createElement(Fe,{open:$e||ae,getContainer:Pe&&function(){return Pe(T)},autoDestroy:Le},i.createElement(h,{prefixCls:V,open:Y,zIndex:F,mask:ve,motion:He}),i.createElement(d.Z,{onResize:We,disabled:!Y},function(qe){return i.createElement(m.default,(0,c.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$e,leavedClassName:"".concat(V,"-hidden")},De,{onAppearPrepare:Je,onEnterPrepare:Je,visible:Y,onVisibleChanged:function(Ue){var gt;De==null||(gt=De.onVisibleChanged)===null||gt===void 0||gt.call(De,Ue),ne(Ue)}}),function(ot,Ue){var gt=ot.className,xt=ot.style,Ct=v()(V,gt,oe);return i.createElement("div",{ref:(0,w.sQ)(qe,U,Ue),className:Ct,style:(0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({"--arrow-x":"".concat(Ee.x||0,"px"),"--arrow-y":"".concat(Ee.y||0,"px")},tt),rt),xt),{},{boxSizing:"border-box",zIndex:F},$),onMouseEnter:ee,onMouseLeave:ue,onPointerEnter:pe,onClick:fe,onPointerDownCapture:Ie},xe&&i.createElement(A,{prefixCls:V,arrow:xe,arrowPos:Ee,align:Be}),i.createElement(_,{cache:!Y&&!me},ge))})}))}),b=C,S=i.forwardRef(function(B,U){var j=B.children,oe=B.getTriggerDOMNode,V=(0,w.Yr)(j),$=i.useCallback(function(ne){(0,w.mH)(U,oe?oe(ne):ne)},[oe]),T=(0,w.x1)($,(0,w.C4)(j));return V?i.cloneElement(j,{ref:T}):j}),x=S,z=i.createContext(null),P=z;function K(B){return B?Array.isArray(B)?B:[B]:[]}function N(B,U,j,oe){return i.useMemo(function(){var V=K(j!=null?j:U),$=K(oe!=null?oe:U),T=new Set(V),ne=new Set($);return B&&(T.has("hover")&&(T.delete("hover"),T.add("click")),ne.has("hover")&&(ne.delete("hover"),ne.add("click"))),[T,ne]},[B,U,j,oe])}var k=t(29194);function D(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2?arguments[2]:void 0;return j?B[0]===U[0]:B[0]===U[0]&&B[1]===U[1]}function L(B,U,j,oe){for(var V=j.points,$=Object.keys(B),T=0;T<$.length;T+=1){var ne,Y=$[T];if(D((ne=B[Y])===null||ne===void 0?void 0:ne.points,V,oe))return"".concat(U,"-placement-").concat(Y)}return""}function E(B,U,j,oe){return U||(j?{motionName:"".concat(B,"-").concat(j)}:oe?{motionName:oe}:null)}function R(B){return B.ownerDocument.defaultView}function O(B){for(var U=[],j=B==null?void 0:B.parentElement,oe=["hidden","scroll","clip","auto"];j;){var V=R(j).getComputedStyle(j),$=V.overflowX,T=V.overflowY,ne=V.overflow;[$,T,ne].some(function(Y){return oe.includes(Y)})&&U.push(j),j=j.parentElement}return U}function M(B){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(B)?U:B}function I(B){return M(parseFloat(B),0)}function J(B,U){var j=(0,n.Z)({},B);return(U||[]).forEach(function(oe){if(!(oe instanceof HTMLBodyElement||oe instanceof HTMLHtmlElement)){var V=R(oe).getComputedStyle(oe),$=V.overflow,T=V.overflowClipMargin,ne=V.borderTopWidth,Y=V.borderBottomWidth,ie=V.borderLeftWidth,me=V.borderRightWidth,fe=oe.getBoundingClientRect(),ve=oe.offsetHeight,xe=oe.clientHeight,Ee=oe.offsetWidth,Be=oe.clientWidth,De=I(ne),He=I(Y),$e=I(ie),Pe=I(me),Le=M(Math.round(fe.width/Ee*1e3)/1e3),Fe=M(Math.round(fe.height/ve*1e3)/1e3),F=(Ee-Be-$e-Pe)*Le,ee=(ve-xe-De-He)*Fe,ue=De*Fe,pe=He*Fe,Ie=$e*Le,Ze=Pe*Le,Ae=0,Se=0;if($==="clip"){var Ne=I(T);Ae=Ne*Le,Se=Ne*Fe}var Qe=fe.x+Ie-Ae,We=fe.y+ue-Se,Je=Qe+fe.width+2*Ae-Ie-Ze-F,Te=We+fe.height+2*Se-ue-pe-ee;j.left=Math.max(j.left,Qe),j.top=Math.max(j.top,We),j.right=Math.min(j.right,Je),j.bottom=Math.min(j.bottom,Te)}}),j}function re(B){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j="".concat(U),oe=j.match(/^(.*)\%$/);return oe?B*(parseFloat(oe[1])/100):parseFloat(j)}function le(B,U){var j=U||[],oe=(0,f.Z)(j,2),V=oe[0],$=oe[1];return[re(B.width,V),re(B.height,$)]}function ye(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[B[0],B[1]]}function W(B,U){var j=U[0],oe=U[1],V,$;return j==="t"?$=B.y:j==="b"?$=B.y+B.height:$=B.y+B.height/2,oe==="l"?V=B.x:oe==="r"?V=B.x+B.width:V=B.x+B.width/2,{x:V,y:$}}function H(B,U){var j={t:"b",b:"t",l:"r",r:"l"};return B.map(function(oe,V){return V===U?j[oe]||"c":oe}).join("")}function Z(B,U,j,oe,V,$,T){var ne=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:V[oe]||{}}),Y=(0,f.Z)(ne,2),ie=Y[0],me=Y[1],fe=i.useRef(0),ve=i.useMemo(function(){return U?O(U):[]},[U]),xe=i.useRef({}),Ee=function(){xe.current={}};B||Ee();var Be=(0,l.Z)(function(){if(U&&j&&B){let er=function(cr,br){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wt,Ur=ae.x+cr,Qr=ae.y+br,en=Ur+dt,Xr=Qr+ut,tn=Math.max(Ur,Br.left),nt=Math.max(Qr,Br.top),ct=Math.min(en,Br.right),Tt=Math.min(Xr,Br.bottom);return Math.max(0,(ct-tn)*(Tt-nt))},kt=function(){Yt=ae.y+ht,Qt=Yt+ut,ir=ae.x+lt,Zt=ir+dt};var $e,Pe,Le,Fe,F=U,ee=F.ownerDocument,ue=R(F),pe=ue.getComputedStyle(F),Ie=pe.position,Ze=F.style.left,Ae=F.style.top,Se=F.style.right,Ne=F.style.bottom,Qe=F.style.overflow,We=(0,n.Z)((0,n.Z)({},V[oe]),$),Je=ee.createElement("div");($e=F.parentElement)===null||$e===void 0||$e.appendChild(Je),Je.style.left="".concat(F.offsetLeft,"px"),Je.style.top="".concat(F.offsetTop,"px"),Je.style.position=Ie,Je.style.height="".concat(F.offsetHeight,"px"),Je.style.width="".concat(F.offsetWidth,"px"),F.style.left="0",F.style.top="0",F.style.right="auto",F.style.bottom="auto",F.style.overflow="hidden";var Te;if(Array.isArray(j))Te={x:j[0],y:j[1],width:0,height:0};else{var Ge,Xe,ge=j.getBoundingClientRect();ge.x=(Ge=ge.x)!==null&&Ge!==void 0?Ge:ge.left,ge.y=(Xe=ge.y)!==null&&Xe!==void 0?Xe:ge.top,Te={x:ge.x,y:ge.y,width:ge.width,height:ge.height}}var ae=F.getBoundingClientRect(),he=ue.getComputedStyle(F),de=he.height,Ke=he.width;ae.x=(Pe=ae.x)!==null&&Pe!==void 0?Pe:ae.left,ae.y=(Le=ae.y)!==null&&Le!==void 0?Le:ae.top;var ze=ee.documentElement,ke=ze.clientWidth,Ye=ze.clientHeight,tt=ze.scrollWidth,st=ze.scrollHeight,at=ze.scrollTop,Ve=ze.scrollLeft,ut=ae.height,dt=ae.width,rt=Te.height,qe=Te.width,ot={left:0,top:0,right:ke,bottom:Ye},Ue={left:-Ve,top:-at,right:tt-Ve,bottom:st-at},gt=We.htmlRegion,xt="visible",Ct="visibleFirst";gt!=="scroll"&>!==Ct&&(gt=xt);var Pt=gt===Ct,jt=J(Ue,ve),bt=J(ot,ve),Wt=gt===xt?bt:jt,Mt=Pt?bt:Wt;F.style.left="auto",F.style.top="auto",F.style.right="0",F.style.bottom="0";var xr=F.getBoundingClientRect();F.style.left=Ze,F.style.top=Ae,F.style.right=Se,F.style.bottom=Ne,F.style.overflow=Qe,(Fe=F.parentElement)===null||Fe===void 0||Fe.removeChild(Je);var Nt=M(Math.round(dt/parseFloat(Ke)*1e3)/1e3),tr=M(Math.round(ut/parseFloat(de)*1e3)/1e3);if(Nt===0||tr===0||(0,o.Sh)(j)&&!(0,k.Z)(j))return;var Er=We.offset,Jt=We.targetOffset,hr=le(ae,Er),ce=(0,f.Z)(hr,2),Re=ce[0],Me=ce[1],we=le(Te,Jt),be=(0,f.Z)(we,2),Oe=be[0],je=be[1];Te.x-=Oe,Te.y-=je;var et=We.points||[],mt=(0,f.Z)(et,2),ft=mt[0],Lt=mt[1],vt=ye(Lt),pt=ye(ft),_t=W(Te,vt),At=W(ae,pt),Et=(0,n.Z)({},We),lt=_t.x-At.x+Re,ht=_t.y-At.y+Me,Rt=er(lt,ht),St=er(lt,ht,bt),yt=W(Te,["t","l"]),It=W(ae,["t","l"]),wt=W(Te,["b","r"]),Ot=W(ae,["b","r"]),Ut=We.overflow||{},Ht=Ut.adjustX,rr=Ut.adjustY,$t=Ut.shiftX,Kt=Ut.shiftY,nr=function(br){return typeof br=="boolean"?br:br>=0},Yt,Qt,ir,Zt;kt();var dr=nr(rr),Dt=pt[0]===vt[0];if(dr&&pt[0]==="t"&&(Qt>Mt.bottom||xe.current.bt)){var or=ht;Dt?or-=ut-rt:or=yt.y-Ot.y-Me;var wr=er(lt,or),Ar=er(lt,or,bt);wr>Rt||wr===Rt&&(!Pt||Ar>=St)?(xe.current.bt=!0,ht=or,Me=-Me,Et.points=[H(pt,0),H(vt,0)]):xe.current.bt=!1}if(dr&&pt[0]==="b"&&(Yt<Mt.top||xe.current.tb)){var vr=ht;Dt?vr+=ut-rt:vr=wt.y-It.y-Me;var Rr=er(lt,vr),qt=er(lt,vr,bt);Rr>Rt||Rr===Rt&&(!Pt||qt>=St)?(xe.current.tb=!0,ht=vr,Me=-Me,Et.points=[H(pt,0),H(vt,0)]):xe.current.tb=!1}var ur=nr(Ht),Lr=pt[1]===vt[1];if(ur&&pt[1]==="l"&&(Zt>Mt.right||xe.current.rl)){var pr=lt;Lr?pr-=dt-qe:pr=yt.x-Ot.x-Re;var mr=er(pr,ht),Vt=er(pr,ht,bt);mr>Rt||mr===Rt&&(!Pt||Vt>=St)?(xe.current.rl=!0,lt=pr,Re=-Re,Et.points=[H(pt,1),H(vt,1)]):xe.current.rl=!1}if(ur&&pt[1]==="r"&&(ir<Mt.left||xe.current.lr)){var sr=lt;Lr?sr+=dt-qe:sr=wt.x-It.x-Re;var gr=er(sr,ht),Ir=er(sr,ht,bt);gr>Rt||gr===Rt&&(!Pt||Ir>=St)?(xe.current.lr=!0,lt=sr,Re=-Re,Et.points=[H(pt,1),H(vt,1)]):xe.current.lr=!1}kt();var ar=$t===!0?0:$t;typeof ar=="number"&&(ir<bt.left&&(lt-=ir-bt.left-Re,Te.x+qe<bt.left+ar&&(lt+=Te.x-bt.left+qe-ar)),Zt>bt.right&&(lt-=Zt-bt.right-Re,Te.x>bt.right-ar&&(lt+=Te.x-bt.right+ar)));var fr=Kt===!0?0:Kt;typeof fr=="number"&&(Yt<bt.top&&(ht-=Yt-bt.top-Me,Te.y+rt<bt.top+fr&&(ht+=Te.y-bt.top+rt-fr)),Qt>bt.bottom&&(ht-=Qt-bt.bottom-Me,Te.y>bt.bottom-fr&&(ht+=Te.y-bt.bottom+fr)));var Or=ae.x+lt,Mr=Or+dt,Nr=ae.y+ht,Hr=Nr+ut,jr=Te.x,Dr=jr+qe,$r=Te.y,Kr=$r+rt,kr=Math.max(Or,jr),_r=Math.min(Mr,Dr),Vr=(kr+_r)/2,Gr=Vr-Or,Fr=Math.max(Nr,$r),Zr=Math.min(Hr,Kr),zr=(Fr+Zr)/2,Tr=zr-Nr;T==null||T(U,Et);var lr=xr.right-ae.x-(lt+ae.width),yr=xr.bottom-ae.y-(ht+ae.height);Nt===1&&(lt=Math.floor(lt),lr=Math.floor(lr)),tr===1&&(ht=Math.floor(ht),yr=Math.floor(yr));var Wr={ready:!0,offsetX:lt/Nt,offsetY:ht/tr,offsetR:lr/Nt,offsetB:yr/tr,arrowX:Gr/Nt,arrowY:Tr/tr,scaleX:Nt,scaleY:tr,align:Et};me(Wr)}}),De=function(){fe.current+=1;var Pe=fe.current;Promise.resolve().then(function(){fe.current===Pe&&Be()})},He=function(){me(function(Pe){return(0,n.Z)((0,n.Z)({},Pe),{},{ready:!1})})};return(0,a.Z)(He,[oe]),(0,a.Z)(function(){B||He()},[B]),[ie.ready,ie.offsetX,ie.offsetY,ie.offsetR,ie.offsetB,ie.arrowX,ie.arrowY,ie.scaleX,ie.scaleY,ie.align,De]}var te=t(77654);function _e(B,U,j,oe,V){(0,a.Z)(function(){if(B&&U&&j){let fe=function(){oe(),V()};var $=U,T=j,ne=O($),Y=O(T),ie=R(T),me=new Set([ie].concat((0,te.Z)(ne),(0,te.Z)(Y)));return me.forEach(function(ve){ve.addEventListener("scroll",fe,{passive:!0})}),ie.addEventListener("resize",fe,{passive:!0}),oe(),function(){me.forEach(function(ve){ve.removeEventListener("scroll",fe),ie.removeEventListener("resize",fe)})}}},[B,U,j])}var se=t(48736);function G(B,U,j,oe,V,$,T,ne){var Y=i.useRef(B);Y.current=B;var ie=i.useRef(!1);i.useEffect(function(){if(U&&oe&&(!V||$)){var fe=function(){ie.current=!1},ve=function(Le){var Fe;Y.current&&!T(((Fe=Le.composedPath)===null||Fe===void 0||(Fe=Fe.call(Le))===null||Fe===void 0?void 0:Fe[0])||Le.target)&&!ie.current&&ne(!1)},xe=R(oe);xe.addEventListener("pointerdown",fe,!0),xe.addEventListener("mousedown",ve,!0),xe.addEventListener("contextmenu",ve,!0);var Ee=(0,s.A)(j);if(Ee&&(Ee.addEventListener("mousedown",ve,!0),Ee.addEventListener("contextmenu",ve,!0)),0)var Be,De,He,$e;return function(){xe.removeEventListener("pointerdown",fe,!0),xe.removeEventListener("mousedown",ve,!0),xe.removeEventListener("contextmenu",ve,!0),Ee&&(Ee.removeEventListener("mousedown",ve,!0),Ee.removeEventListener("contextmenu",ve,!0))}}},[U,j,oe,V,$]);function me(){ie.current=!0}return me}var Ce=["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 X(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.Z,U=i.forwardRef(function(j,oe){var V=j.prefixCls,$=V===void 0?"rc-trigger-popup":V,T=j.children,ne=j.action,Y=ne===void 0?"hover":ne,ie=j.showAction,me=j.hideAction,fe=j.popupVisible,ve=j.defaultPopupVisible,xe=j.onPopupVisibleChange,Ee=j.afterPopupVisibleChange,Be=j.mouseEnterDelay,De=j.mouseLeaveDelay,He=De===void 0?.1:De,$e=j.focusDelay,Pe=j.blurDelay,Le=j.mask,Fe=j.maskClosable,F=Fe===void 0?!0:Fe,ee=j.getPopupContainer,ue=j.forceRender,pe=j.autoDestroy,Ie=j.destroyPopupOnHide,Ze=j.popup,Ae=j.popupClassName,Se=j.popupStyle,Ne=j.popupPlacement,Qe=j.builtinPlacements,We=Qe===void 0?{}:Qe,Je=j.popupAlign,Te=j.zIndex,Ge=j.stretch,Xe=j.getPopupClassNameFromAlign,ge=j.fresh,ae=j.alignPoint,he=j.onPopupClick,de=j.onPopupAlign,Ke=j.arrow,ze=j.popupMotion,ke=j.maskMotion,Ye=j.popupTransitionName,tt=j.popupAnimation,st=j.maskTransitionName,at=j.maskAnimation,Ve=j.className,ut=j.getTriggerDOMNode,dt=(0,y.Z)(j,Ce),rt=pe||Ie||!1,qe=i.useState(!1),ot=(0,f.Z)(qe,2),Ue=ot[0],gt=ot[1];(0,a.Z)(function(){gt((0,e.Z)())},[]);var xt=i.useRef({}),Ct=i.useContext(P),Pt=i.useMemo(function(){return{registerSubPopup:function(ct,Tt){xt.current[ct]=Tt,Ct==null||Ct.registerSubPopup(ct,Tt)}}},[Ct]),jt=(0,r.Z)(),bt=i.useState(null),Wt=(0,f.Z)(bt,2),Mt=Wt[0],xr=Wt[1],Nt=i.useRef(null),tr=(0,l.Z)(function(nt){Nt.current=nt,(0,o.Sh)(nt)&&Mt!==nt&&xr(nt),Ct==null||Ct.registerSubPopup(jt,nt)}),Er=i.useState(null),Jt=(0,f.Z)(Er,2),hr=Jt[0],ce=Jt[1],Re=i.useRef(null),Me=(0,l.Z)(function(nt){(0,o.Sh)(nt)&&hr!==nt&&(ce(nt),Re.current=nt)}),we=i.Children.only(T),be=(we==null?void 0:we.props)||{},Oe={},je=(0,l.Z)(function(nt){var ct,Tt,Gt=hr;return(Gt==null?void 0:Gt.contains(nt))||((ct=(0,s.A)(Gt))===null||ct===void 0?void 0:ct.host)===nt||nt===Gt||(Mt==null?void 0:Mt.contains(nt))||((Tt=(0,s.A)(Mt))===null||Tt===void 0?void 0:Tt.host)===nt||nt===Mt||Object.values(xt.current).some(function(Ft){return(Ft==null?void 0:Ft.contains(nt))||nt===Ft})}),et=E($,ze,tt,Ye),mt=E($,ke,at,st),ft=i.useState(ve||!1),Lt=(0,f.Z)(ft,2),vt=Lt[0],pt=Lt[1],_t=fe!=null?fe:vt,At=(0,l.Z)(function(nt){fe===void 0&&pt(nt)});(0,a.Z)(function(){pt(fe||!1)},[fe]);var Et=i.useRef(_t);Et.current=_t;var lt=i.useRef([]);lt.current=[];var ht=(0,l.Z)(function(nt){var ct;At(nt),((ct=lt.current[lt.current.length-1])!==null&&ct!==void 0?ct:_t)!==nt&&(lt.current.push(nt),xe==null||xe(nt))}),Rt=i.useRef(),St=function(){clearTimeout(Rt.current)},yt=function(ct){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;St(),Tt===0?ht(ct):Rt.current=setTimeout(function(){ht(ct)},Tt*1e3)};i.useEffect(function(){return St},[]);var It=i.useState(!1),wt=(0,f.Z)(It,2),Ot=wt[0],Ut=wt[1];(0,a.Z)(function(nt){(!nt||_t)&&Ut(!0)},[_t]);var Ht=i.useState(null),rr=(0,f.Z)(Ht,2),$t=rr[0],Kt=rr[1],nr=i.useState(null),Yt=(0,f.Z)(nr,2),Qt=Yt[0],ir=Yt[1],Zt=function(ct){ir([ct.clientX,ct.clientY])},dr=Z(_t,Mt,ae&&Qt!==null?Qt:hr,Ne,We,Je,de),Dt=(0,f.Z)(dr,11),or=Dt[0],wr=Dt[1],Ar=Dt[2],vr=Dt[3],Rr=Dt[4],qt=Dt[5],ur=Dt[6],Lr=Dt[7],pr=Dt[8],mr=Dt[9],Vt=Dt[10],sr=N(Ue,Y,ie,me),gr=(0,f.Z)(sr,2),Ir=gr[0],ar=gr[1],fr=Ir.has("click"),Or=ar.has("click")||ar.has("contextMenu"),Mr=(0,l.Z)(function(){Ot||Vt()}),Nr=function(){Et.current&&ae&&Or&&yt(!1)};_e(_t,hr,Mt,Mr,Nr),(0,a.Z)(function(){Mr()},[Qt,Ne]),(0,a.Z)(function(){_t&&!(We!=null&&We[Ne])&&Mr()},[JSON.stringify(Je)]);var Hr=i.useMemo(function(){var nt=L(We,$,mr,ae);return v()(nt,Xe==null?void 0:Xe(mr))},[mr,Xe,We,$,ae]);i.useImperativeHandle(oe,function(){return{nativeElement:Re.current,popupElement:Nt.current,forceAlign:Mr}});var jr=i.useState(0),Dr=(0,f.Z)(jr,2),$r=Dr[0],Kr=Dr[1],kr=i.useState(0),_r=(0,f.Z)(kr,2),Vr=_r[0],Gr=_r[1],Fr=function(){if(Ge&&hr){var ct=hr.getBoundingClientRect();Kr(ct.width),Gr(ct.height)}},Zr=function(){Fr(),Mr()},zr=function(ct){Ut(!1),Vt(),Ee==null||Ee(ct)},Tr=function(){return new Promise(function(ct){Fr(),Kt(function(){return ct})})};(0,a.Z)(function(){$t&&(Vt(),$t(),Kt(null))},[$t]);function lr(nt,ct,Tt,Gt){Oe[nt]=function(Ft){var Yr;Gt==null||Gt(Ft),yt(ct,Tt);for(var Pr=arguments.length,on=new Array(Pr>1?Pr-1:0),qr=1;qr<Pr;qr++)on[qr-1]=arguments[qr];(Yr=be[nt])===null||Yr===void 0||Yr.call.apply(Yr,[be,Ft].concat(on))}}(fr||Or)&&(Oe.onClick=function(nt){var ct;Et.current&&Or?yt(!1):!Et.current&&fr&&(Zt(nt),yt(!0));for(var Tt=arguments.length,Gt=new Array(Tt>1?Tt-1:0),Ft=1;Ft<Tt;Ft++)Gt[Ft-1]=arguments[Ft];(ct=be.onClick)===null||ct===void 0||ct.call.apply(ct,[be,nt].concat(Gt))});var yr=G(_t,Or,hr,Mt,Le,F,je,yt),Wr=Ir.has("hover"),er=ar.has("hover"),kt,cr;Wr&&(lr("onMouseEnter",!0,Be,function(nt){Zt(nt)}),lr("onPointerEnter",!0,Be,function(nt){Zt(nt)}),kt=function(ct){(_t||Ot)&&Mt!==null&&Mt!==void 0&&Mt.contains(ct.target)&&yt(!0,Be)},ae&&(Oe.onMouseMove=function(nt){var ct;(ct=be.onMouseMove)===null||ct===void 0||ct.call(be,nt)})),er&&(lr("onMouseLeave",!1,He),lr("onPointerLeave",!1,He),cr=function(){yt(!1,He)}),Ir.has("focus")&&lr("onFocus",!0,$e),ar.has("focus")&&lr("onBlur",!1,Pe),Ir.has("contextMenu")&&(Oe.onContextMenu=function(nt){var ct;Et.current&&ar.has("contextMenu")?yt(!1):(Zt(nt),yt(!0)),nt.preventDefault();for(var Tt=arguments.length,Gt=new Array(Tt>1?Tt-1:0),Ft=1;Ft<Tt;Ft++)Gt[Ft-1]=arguments[Ft];(ct=be.onContextMenu)===null||ct===void 0||ct.call.apply(ct,[be,nt].concat(Gt))}),Ve&&(Oe.className=v()(be.className,Ve));var br=i.useRef(!1);br.current||(br.current=ue||_t||Ot);var Br=(0,n.Z)((0,n.Z)({},be),Oe),Ur={},Qr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qr.forEach(function(nt){dt[nt]&&(Ur[nt]=function(){for(var ct,Tt=arguments.length,Gt=new Array(Tt),Ft=0;Ft<Tt;Ft++)Gt[Ft]=arguments[Ft];(ct=Br[nt])===null||ct===void 0||ct.call.apply(ct,[Br].concat(Gt)),dt[nt].apply(dt,Gt)})});var en=i.cloneElement(we,(0,n.Z)((0,n.Z)({},Br),Ur)),Xr={x:qt,y:ur},tn=Ke?(0,n.Z)({},Ke!==!0?Ke:{}):null;return i.createElement(i.Fragment,null,i.createElement(d.Z,{disabled:!_t,ref:Me,onResize:Zr},i.createElement(x,{getTriggerDOMNode:ut},en)),br.current&&i.createElement(P.Provider,{value:Pt},i.createElement(b,{portal:B,ref:tr,prefixCls:$,popup:Ze,className:v()(Ae,Hr),style:Se,target:hr,onMouseEnter:kt,onMouseLeave:cr,onPointerEnter:kt,zIndex:Te,open:_t,keepDom:Ot,fresh:ge,onClick:he,onPointerDownCapture:yr,mask:Le,motion:et,maskMotion:mt,onVisibleChanged:zr,onPrepare:Tr,forceRender:ue,autoDestroy:rt,getPopupContainer:ee,align:mr,arrow:tn,arrowPos:Xr,ready:or,offsetX:wr,offsetY:Ar,offsetR:vr,offsetB:Rr,onAlign:Mr,stretch:Ge,targetWidth:$r/Lr,targetHeight:Vr/pr})))});return U}var q=X(p.Z)},66744:function(){"use strict"},4420:function(){"use strict"},90736:function(it,Q,t){"use strict";var n=t(59301),f=t(4977),y=t(7939),p=Object.defineProperty,u=Object.defineProperties,v=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(i,c,m)=>c in i?p(i,c,{enumerable:!0,configurable:!0,writable:!0,value:m}):i[c]=m,r=(i,c)=>{for(var m in c||(c={}))o.call(c,m)&&l(i,m,c[m]);if(d)for(var m of d(c))s.call(c,m)&&l(i,m,c[m]);return i},a=(i,c)=>u(i,v(c));const e=({img:i,buttonProps:c={},styles:m={},customText:w,ButtonText:A,ButtonClick:h,Buttonclass:g,ButtonTwo:_,imgStyles:C,loading:b=!1,className:S=""})=>n.createElement("section",{className:`tc animated fadeIn ${S}`,style:r({color:"#999",margin:"100px auto",visibility:b?"hidden":"visible"},m)},n.createElement("img",{src:i||f,style:a(r({},C),{pointerEvents:"none",userSelect:"none"})}),n.createElement("p",{className:"mt20 font14"},w||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),A&&n.createElement(y.ZP,r({className:g,onClick:h},c),A),_&&_);Q.Z=e},54077:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return r}});var n={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},f=t(29787),y=t(25399),p=t(89787),u=t(92310),v=t.n(u),d=t(76406),o=t(90736),s=t(59301),r=({className:a,dataSource:e=[],col:i=4,right:c,bottom:m=23,precision:w=0,wrapWidth:A=1200,trackEventItems:h,loading:g,onRemove:_=()=>{},isCurrent:C=!0,showProgress:b=!1,showAlias:S=!1,category:x="notDisplay",hiddenClick:z=()=>{}})=>{const P=Math.floor((A-(i-1)*c)/i),K=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return s.createElement(f.Z,{spinning:g},s.createElement("div",{className:v()(n.list,a)},!!(e!=null&&e.length)&&(e==null?void 0:e.map((N,k)=>{var D,L,E,R,O,M,I;const{name:J,id:re,identifier:le,featured:ye,school_name:W,image_url:H,excellent:Z,is_plan:te}=N;return s.createElement("div",{key:re,className:C&&b?n.wrapisCurrent:n.wrap,style:{width:P,marginRight:(1+k)%i===0?0:c+w,marginBottom:m}},s.createElement("a",{className:n.li,onClick:_e=>{_e.preventDefault(),_e.stopPropagation(),h&&(0,d.L9)([h]),(0,d.xg)(`/paths/${le}`)}},s.createElement("div",{className:n.img},s.createElement("img",{className:n.cover,src:`${H}`}),(D=N==null?void 0:N.subject_tags)==null?void 0:D.map((_e,se)=>{var G,Ce;if(se===0){const q=(G=K.find(B=>B.name==_e))==null?void 0:G.swclass;return s.createElement("span",{className:`sprite ${q} ${n.sign}`,style:{left:"-4px"}})}const X=(Ce=K.find(q=>q.name==_e))==null?void 0:Ce.ptclass;return s.createElement("span",{className:`sprite ${X} ${n.sign}`,style:{left:`${48+52*(se-1)+2*se}px`}})}),s.createElement("div",{className:n.tagsDom},s.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(N==null?void 0:N.excellent)&&s.createElement("div",{className:n.bq},"\u5F00\u653E\u8BFE\u7A0B"),((L=N==null?void 0:N.custom_tags)==null?void 0:L.length)>0&&(N==null?void 0:N.custom_tags.map((_e,se)=>{var G;return s.createElement(y.Z,{title:_e==null?void 0:_e.tag_name,key:se},s.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((G=N==null?void 0:N.custom_tags)==null?void 0:G.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},s.createElement("span",{className:"multi-llipsis1e"},_e==null?void 0:_e.tag_name)))})))),x=="hide"&&(N==null?void 0:N.studying)&&C&&s.createElement("div",{className:`${n.movebq} user-path-items`,onClick:_e=>{_e.stopPropagation(),_(N)}},s.createElement("i",{className:"iconfont icon-yichu1 font12"}),s.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(x)&&C&&s.createElement("div",{className:`${n.hiddenbq} user-path-items`,onClick:_e=>{_e.stopPropagation(),z(N)}},s.createElement("i",{className:`iconfont ${x=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),s.createElement("span",null,x=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),s.createElement("div",{className:n.name},s.createElement(y.Z,{title:S&&(N!=null&&N.excellent_alias_name)?s.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${J}`,s.createElement("br",null),s.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${N==null?void 0:N.excellent_alias_name}`)):J},s.createElement("span",{className:n.e},S&&(N==null?void 0:N.excellent_alias_name)||J))),C&&b&&((E=N==null?void 0:N.progress)==null?void 0:E.all_score)!=0&&s.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},s.createElement(p.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((R=N==null?void 0:N.progress)==null?void 0:R.my_score)/((O=N==null?void 0:N.progress)==null?void 0:O.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(M=N==null?void 0:N.progress)==null?void 0:M.my_score,"/",(I=N==null?void 0:N.progress)==null?void 0:I.all_score),(!C||!b)&&s.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${W}`},s.createElement("div",{className:n.unit},s.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),W)),(!C||!b)&&s.createElement("div",{className:n.tags},s.createElement("div",null,s.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),s.createElement("span",null,N.stages_count))),s.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),s.createElement("span",null,N.members_count)))))))})),!e.length&&s.createElement(o.Z,null)))}},70467:function(it,Q,t){"use strict";t.d(Q,{jL:function(){return p},w9:function(){return J},QD:function(){return De},cQ:function(){return k.Z},op:function(){return me},O5:function(){return Xe},_b:function(){return F},t7:function(){return w},Gi:function(){return Z},YG:function(){return W},qp:function(){return l},vr:function(){return Pe},qE:function(){return xe},Je:function(){return g},wb:function(){return N},cq:function(){return X},tp:function(){return e}});var n=t(59301),f={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},p=({dataSource:ge=[],img:ae,imgWidth:he=346,title:de,sunTitle:Ke,bannerExtraContent:ze})=>n.createElement("div",{className:f.banner},n.createElement("div",{className:f.content},n.createElement("aside",null,n.createElement("p",null,n.createElement("b",null,de),n.createElement("span",null,Ke)),ge.length>0&&n.createElement("div",{className:f.btns},ge.map((ke,Ye)=>n.createElement("div",{key:Ye,onClick:ke.click},ke.name,ke.sign?n.createElement("span",{className:"sprite sprite-33"}):null))),ze),ae&&n.createElement("img",{style:{marginTop:33,marginRight:38},src:ae,width:he}))),u={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},v=t(92310),d=t.n(v),o=t(78267),l=({dataSource:ge=[],value:ae,onChange:he,onTitleChange:de,className:Ke,title:ze,titleWidth:ke=41,style:Ye={},fontColor:tt="#6A7283",showCount:st})=>{const[at,Ve]=(0,n.useState)(1),[ut,dt]=(0,n.useState)(!1),rt=(0,n.useRef)(null),qe=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var ot;ge.length!==0&&(((ot=rt==null?void 0:rt.current)==null?void 0:ot.clientHeight)>97?Ve(1):Ve(0)),ge.length===0&&Ve(0),dt(!1)},[ge]),n.createElement("div",{className:d()(u.row,Ke,"fadeIn","animated"),style:Ye},n.createElement("div",{onClick:(0,o.throttle)(()=>de==null?void 0:de(),2e3),style:{width:ke,marginTop:ut?12:4},className:`${u.title} ${de?"current":""}`},ze),n.createElement("div",{className:ut?`${u.tagsWrap} ${u.tagsBorderWrap}`:u.tagsWrap},n.createElement("div",{className:u.bar,ref:qe,style:at>0?{height:at===1?97:"auto",overflow:at===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},n.createElement("div",{className:u.tag,ref:rt},ge==null?void 0:ge.map(ot=>n.createElement("span",{onClick:()=>he(ot.id),key:ot.id,style:{color:tt},className:ae===ot.id?u.active:""},n.createElement("span",{title:ot.name,className:u.name},ot.name),!!st&&n.createElement("span",{className:u.num},ot.count))))),!!at&&n.createElement(n.Fragment,null,at===1?n.createElement("div",{onClick:()=>{var ot;Ve(2),((ot=rt==null?void 0:rt.current)==null?void 0:ot.clientHeight)>245?dt(!0):dt(!1)},className:u.action},"\u5C55\u5F00",n.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):n.createElement("div",{onClick:()=>{qe.current.scrollTop=0,Ve(1),dt(!1)},className:u.action},"\u6536\u8D77",n.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},e=({dataSource:ge=[],value:ae,onChange:he,className:de,style:Ke={}})=>n.createElement("div",{style:Ke,className:d()(r.tabs,de)},ge.map(ze=>n.createElement("span",{onClick:()=>he(ze.id),className:ae===ze.id?r.active:"",key:ze.id},ze.name))),i={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},c=t(37568),w=({dataSource:ge=[],value:ae="",onChange:he,onInputChange:de=()=>{},className:Ke,style:ze={},placeholder:ke,allowClear:Ye=!1})=>{var tt;const[st,at]=(0,n.useState)(""),[Ve,ut]=(0,n.useState)("");(0,n.useEffect)(()=>{var qe;let ot=ae;(qe=JSON.stringify(ae))!=null&&qe.includes("{")&&(at(ae.id),ot=ae.value||"");try{ut(decodeURIComponent(ot||""))}catch(Ue){ut(decodeURIComponent(ot||""))}},[ae]);const dt=()=>{he(encodeURIComponent(Ve),st||null)},rt=qe=>{qe!==st&&(at(qe),he(encodeURIComponent(Ve),qe))};return n.createElement("div",{className:d()(i.input,Ke),style:ze},!!ge.length&&n.createElement("div",{className:i.dropdown},n.createElement("div",{className:i.text},(tt=ge.find(qe=>qe.id===st))==null?void 0:tt.name,n.createElement("i",{className:"iconfont icon-zhankai4"}),n.createElement("b",{className:i.b1}),n.createElement("b",{className:i.b2})),n.createElement("div",{className:i.menu},ge.map((qe,ot)=>n.createElement("div",{key:ot,onClick:()=>rt(qe.id)},qe.name)))),n.createElement(c.default,{onPressEnter:dt,value:Ve,onChange:qe=>{ut(qe.target.value),de(encodeURIComponent(qe.target.value),st||null)},placeholder:ke,variant:"borderless",allowClear:Ye,onClear:()=>he("",st||null)}),n.createElement("i",{onClick:dt,className:"iconfont icon-sousuo9 font14 current"}))},A={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},g=({value:ge,onChange:ae,className:he,total:de,pageSize:Ke,style:ze={}})=>{const ke=ge<2,Ye=ge>=Math.ceil(de/Ke);return de<=Ke?n.createElement(n.Fragment,null):n.createElement("div",{className:d()(A.quickPager,he),style:ze},n.createElement("div",{onClick:()=>{ke||ae(ge-1,"prev")},className:ke?A.disabled:""},"\u4E0A\u4E00\u9875"),n.createElement("div",{onClick:()=>{Ye||ae(ge+1,"next")},className:Ye?A.disabled:""},"\u4E0B\u4E00\u9875"))},_={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},C=t(29787),b=t(25399),S=t(63139),x=t(14185),z=t(76406),P=t(90736),N=({className:ge,dataSource:ae=[],col:he=4,right:de,bottom:Ke=23,precision:ze=0,wrapWidth:ke=1200,trackEventItems:Ye,loading:tt})=>{const st=Math.floor((ke-(he-1)*de)/he);return n.createElement(C.Z,{spinning:tt},n.createElement("div",{className:d()(_.list,ge)},!!ae.length&&ae.map((at,Ve)=>{const{name:ut,id:dt,identifier:rt,power:qe,cover_image_id:ot,pic:Ue}=at;return n.createElement("div",{className:_.wrap,key:dt,style:{width:st,marginRight:(1+Ve)%he===0?0:de+ze,marginBottom:Ke}},n.createElement("a",{target:"_blank",href:`/shixuns/${rt}/challenges`,className:_.li,onClick:gt=>{gt.preventDefault(),Ye&&(0,z.L9)([Ye]),qe&&(0,z.xg)(`/shixuns/${rt}/challenges`)}},n.createElement("div",{className:_.img},n.createElement("img",{className:_.cover,src:`${Ue}`}),at.is_jupyter&&n.createElement("span",{className:`sprite sprite-43 ${_.sign}`}),at.is_jupyter_lab&&n.createElement("span",{className:`sprite sprite-42 ${_.sign}`}),at.is_unity_3d&&n.createElement("span",{className:`sprite sprite-44 ${_.sign}`})),n.createElement("div",{className:_.name},n.createElement(b.Z,{title:ut||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},n.createElement("span",{className:_.e},ut||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),n.createElement("div",{className:_.tags},n.createElement(b.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},n.createElement("span",null,n.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),n.createElement("span",null,at.challenges_count))),!!at.myshixuns_count&&n.createElement(b.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},n.createElement("span",null,n.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),n.createElement("span",null,at.myshixuns_count))),n.createElement(b.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},n.createElement("span",null,n.createElement("span",null,at.level))),n.createElement("div",{className:_.rate},n.createElement(S.Z,{allowHalf:!0,disabled:!0,defaultValue:at.score_info}),n.createElement("span",null,"\xA0",at.score_info?`${at.score_info}\u5206`:"5\u5206")))),!qe&&n.createElement("div",{className:_.lockWrap},n.createElement("img",{src:`${x.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),n.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ae.length&&n.createElement(P.Z,null)))},k=t(54077),D={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},L=t(62957),E=t(96599),R="data:image/png;base64,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",O=t(59301),M=(ge,ae,he)=>new Promise((de,Ke)=>{var ze=tt=>{try{Ye(he.next(tt))}catch(st){Ke(st)}},ke=tt=>{try{Ye(he.throw(tt))}catch(st){Ke(st)}},Ye=tt=>tt.done?de(tt.value):Promise.resolve(tt.value).then(ze,ke);Ye((he=he.apply(ge,ae)).next())}),J=({className:ge,dataSource:ae=[],col:he=4,right:de,bottom:Ke=23,precision:ze=0,wrapWidth:ke=1200,trackEventItems:Ye,loading:tt,category:st,hiddenClick:at,handleVery:Ve=()=>!0,isCurrent:ut})=>{const[dt,rt]=L.default.useModal(),qe=Math.floor((ke-(he-1)*de)/he),ot=Ue=>M(void 0,null,function*(){dt.confirm({title:"\u7F6E\u9876",width:500,content:O.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",O.createElement("span",{className:"c-blue"},"\u201C",Ue.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return O.createElement(C.Z,{spinning:tt},rt,O.createElement("div",{className:d()(D.list,ge)},!!ae.length&&ae.map((Ue,gt)=>{const{subject_identifier:xt,id:Ct,identifier:Pt,power:jt}=Ue,bt=Ue.is_public!=0&&Ue.is_public;return O.createElement("div",{className:D.wrap,key:Ct,style:{width:qe,marginRight:(1+gt)%he===0?0:de+ze,marginBottom:Ke}},Ue.homepage_show&&O.createElement("div",{className:D.btnsTop},O.createElement(E.default,{color:"red"},"\u7F6E\u9876")),O.createElement("a",{className:D.li,onClick:Wt=>{Wt.preventDefault(),Ve(Ue==null?void 0:Ue.first_category_url)&&(Ye&&(0,z.L9)([Ye]),(0,z.xg)(Ue.first_category_url))}},O.createElement("div",{className:D.top},O.createElement(b.Z,{title:Ue.name},O.createElement("div",{className:D.name},Ue.name)),O.createElement("img",{className:D.img,src:x.Z.IMG_SERVER+"/images/"+Ue.avatar_url}),O.createElement("div",{className:D.text,title:Ue.creator},Ue.creator),xt&&O.createElement("div",{className:D.btns},O.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),O.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),bt&&O.createElement("div",{className:D.sign},"\u516C\u5F00"),ut&&O.createElement("div",{className:D.hidden,onClick:Wt=>{Wt.stopPropagation(),at(Ue)}},O.createElement("i",{className:`iconfont ${st=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),st=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),O.createElement("div",{className:D.bottom},Ue.visits>0&&O.createElement(b.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},O.createElement("span",null,O.createElement("i",{className:"iconfont icon-liulanyan"}),O.createElement("span",null,Ue.visits))),Ue.course_members_count>0&&O.createElement(b.Z,{title:"\u6210\u5458",placement:"bottom"},O.createElement("span",null,O.createElement("i",{className:"iconfont icon-chengyuan"}),Ue.course_members_count)),Ue.tasks_count>0&&O.createElement(b.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},O.createElement("span",null,O.createElement("i",{className:"iconfont icon-zuoye"}),Ue.tasks_count)),Ue.is_end?O.createElement("div",{style:{color:"#6B758B"}}):O.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ue.is_accessible&&O.createElement("div",{className:D.lockWrap},O.createElement("img",{src:`${x.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),O.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ae.length&&O.createElement(P.Z,null)))},re={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},le=t(44283),W=({dataSource:ge=[],value:ae,onChange:he,className:de,style:Ke={},tabBarExtraContent:ze})=>n.createElement("div",{className:d()(re.tabs,de),style:Ke},n.createElement("div",{className:re.tabsWrap},ge.map((ke,Ye)=>!(ke!=null&&ke.hide)&&n.createElement("aside",{className:re.tab,onClick:()=>{he(ke.id),ke.link&&le.history.push(ke.link)},key:Ye},n.createElement("div",{className:ae===ke.id?re.active:""},ke.name),(ke==null?void 0:ke.resetCount)==null&&(ke==null?void 0:ke.total)!==void 0&&n.createElement("span",null,"\uFF08",ke==null?void 0:ke.total,"\uFF09"),(ke==null?void 0:ke.resetCount)!==void 0&&(ke==null?void 0:ke.total)!==void 0&&n.createElement(b.Z,{title:(ke==null?void 0:ke.tip)!=null?ke==null?void 0:ke.tip:""},n.createElement("span",{style:{color:"#9096A3"}},"\uFF08",n.createElement("span",{style:{color:"#000"}},ke==null?void 0:ke.resetCount),"/",n.createElement("span",null,ke==null?void 0:ke.total),"\uFF09"))))),n.createElement("div",{className:re.tabBar},ze)),Z=({className:ge,style:ae={},children:he})=>n.createElement("div",{className:d()(ge),style:ae},he),te={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},_e=t(75727),se=t(93041);const G=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var X=({sortValue:ge,dropValue:ae,className:he,onSort:de,onDrop:Ke,dataSource:ze=G})=>{var ke;return n.createElement("div",{className:d()(te.orderWrap,he)},n.createElement(_e.Z,{dropdownRender:()=>n.createElement(se.default,null,ze.map((Ye,tt)=>n.createElement(se.default.Item,{key:tt,onClick:()=>Ke(Ye.id)},Ye.name)))},n.createElement("span",{className:te.orderTextWrap},(ke=ze.find(Ye=>ae===Ye.id))==null?void 0:ke.name)),n.createElement("span",{className:te.orderIconWrap},n.createElement("span",{className:te.orderAsc},n.createElement("i",{className:ge==="asc"?`iconfont icon-sanjiaoxing-up font12 ${te.cursorPointer} ${te.active}`:`iconfont icon-sanjiaoxing-up font12 ${te.cursorPointer}`,onClick:()=>de(ge==="asc"?"desc":"asc")})),n.createElement("span",{className:te.orderDesc},n.createElement("i",{className:ge==="desc"?`iconfont icon-sanjiaoxing-down font12 ${te.cursorPointer} ${te.active}`:`iconfont icon-sanjiaoxing-down font12 ${te.cursorPointer}`,onClick:()=>de(ge==="asc"?"desc":"asc")}))))},q={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},B=t(7939),U=Object.defineProperty,j=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,$=(ge,ae,he)=>ae in ge?U(ge,ae,{enumerable:!0,configurable:!0,writable:!0,value:he}):ge[ae]=he,T=(ge,ae)=>{for(var he in ae||(ae={}))oe.call(ae,he)&&$(ge,he,ae[he]);if(j)for(var he of j(ae))V.call(ae,he)&&$(ge,he,ae[he]);return ge},ne=(ge,ae)=>{var he={};for(var de in ge)oe.call(ge,de)&&ae.indexOf(de)<0&&(he[de]=ge[de]);if(ge!=null&&j)for(var de of j(ge))ae.indexOf(de)<0&&V.call(ge,de)&&(he[de]=ge[de]);return he},Y=(ge,ae,he)=>new Promise((de,Ke)=>{var ze=tt=>{try{Ye(he.next(tt))}catch(st){Ke(st)}},ke=tt=>{try{Ye(he.throw(tt))}catch(st){Ke(st)}},Ye=tt=>tt.done?de(tt.value):Promise.resolve(tt.value).then(ze,ke);Ye((he=he.apply(ge,ae)).next())}),me=ge=>{var ae=ge,{className:he,style:de,children:Ke,loading:ze=!1,openLoading:ke,onClick:Ye=()=>{},size:tt="middle",shape:st="round"}=ae,at=ne(ae,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ve,ut]=(0,n.useState)(!1);return n.createElement(B.ZP,T({onClick:(0,o.throttle)(dt=>Y(void 0,null,function*(){ke&&ut(!0);try{yield Ye(dt)}catch(rt){console.log("error",rt)}ke&&ut(!1)}),2e3,{leading:!0,trailing:!1}),className:d()(q.btn,q[`${tt}-${st}`],he),style:de,size:tt,shape:st,loading:Ve||ze},at),Ke)},fe={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},xe=({className:ge,style:ae,children:he=null,onClick:de,title:Ke})=>n.createElement("div",{className:d()(fe.head,ge),style:ae},n.createElement("span",{className:"primary-hover",onClick:de},n.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),n.createElement("b",{title:Ke},Ke),n.createElement("div",{className:fe.node},he)),Ee={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},De=({confirmShow:ge=!0,confirmTitle:ae,confirmClick:he,cancelShow:de=!0,cancelTitle:Ke,cancelClick:ze,className:ke,style:Ye,confirmLoading:tt=!1})=>n.createElement("div",{className:d()(Ee.btns,ke),style:Ye},ge&&n.createElement(B.ZP,{loading:tt,onClick:he,type:"primary",className:Ee.confirm},ae),de&&n.createElement(B.ZP,{onClick:ze,className:Ee.cancel},Ke)),He={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Pe=({className:ge,style:ae={},LeftContent:he,children:de,RightContent:Ke})=>n.createElement("div",{className:d()(He.fixedBottom,ge),style:ae},n.createElement("div",{className:He.wrap},n.createElement("div",{className:He.left},he),n.createElement("div",{className:He.center},de),n.createElement("div",{className:He.right},Ke))),Le={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},F=({className:ge,style:ae={},dataSource:he=[]})=>n.createElement("div",{className:d()(Le.crumbs,ge),style:ae},he.map((de,Ke)=>Ke<he.length-1?n.createElement(n.Fragment,{key:Ke},de.path||de.onClick?n.createElement("span",{className:Le.hover,onClick:de!=null&&de.onClick?de.onClick:()=>le.history.push(de.path)},de.name):n.createElement("span",null,de.name),n.createElement("span",null,"\xA0",">","\xA0")):n.createElement("span",{key:Ke,style:{color:"#5F6368"}},de.name))),ee=t(11938),ue=Object.defineProperty,pe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ne=(ge,ae,he)=>ae in ge?ue(ge,ae,{enumerable:!0,configurable:!0,writable:!0,value:he}):ge[ae]=he,Qe=(ge,ae)=>{for(var he in ae||(ae={}))Ae.call(ae,he)&&Ne(ge,he,ae[he]);if(Ze)for(var he of Ze(ae))Se.call(ae,he)&&Ne(ge,he,ae[he]);return ge},We=(ge,ae)=>pe(ge,Ie(ae)),Je=(ge,ae)=>{var he={};for(var de in ge)Ae.call(ge,de)&&ae.indexOf(de)<0&&(he[de]=ge[de]);if(ge!=null&&Ze)for(var de of Ze(ge))ae.indexOf(de)<0&&Se.call(ge,de)&&(he[de]=ge[de]);return he};const{Countdown:Te}=ee.default;var Xe=ge=>{var ae=ge,{onChange:he}=ae,de=Je(ae,["onChange"]);const[Ke,ze]=(0,n.useState)(null);(0,n.useEffect)(()=>{typeof Ke=="number"&&Ke>=0&&he(Ke)},[Ke]);const ke=Ye=>{const tt=Math.floor(Ye/1e3);ze(tt)};return n.createElement(Te,We(Qe({},de),{onChange:ke}))}},17177:function(it,Q,t){"use strict";t.r(Q),t.d(Q,{default:function(){return W}});var n=t(59301),f=t(44283),y=t(6767),p=t(62957),u=t(62673),v=t(77019),d=t(5269),o=t(7939),s=t(4420),l=t(24334),r=t(34376),a=t(66744),e={"xterm-panel":"xterm-panel___S5eQ3"},i=t(33156),c=t(76374),m=Object.defineProperty,w=Object.defineProperties,A=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,C=(H,Z,te)=>Z in H?m(H,Z,{enumerable:!0,configurable:!0,writable:!0,value:te}):H[Z]=te,b=(H,Z)=>{for(var te in Z||(Z={}))g.call(Z,te)&&C(H,te,Z[te]);if(h)for(var te of h(Z))_.call(Z,te)&&C(H,te,Z[te]);return H},S=(H,Z)=>w(H,A(Z)),x=(H,Z,te)=>new Promise((_e,se)=>{var G=q=>{try{X(te.next(q))}catch(B){se(B)}},Ce=q=>{try{X(te.throw(q))}catch(B){se(B)}},X=q=>q.done?_e(q.value):Promise.resolve(q.value).then(G,Ce);X((te=te.apply(H,Z)).next())});const z=3e4;var P=({itemData:H={},startInit:Z})=>{const[te,_e]=(0,n.useState)(null),[se,G]=(0,n.useState)({}),{password:Ce,port:X,link_url:q}=se,B=(0,n.useRef)(),U=(0,n.useRef)(),j=(0,n.useRef)(!1),{user_mirror_id:oe,tab_type:V,index_tab:$}=H;(0,n.useEffect)(()=>{Y()},[]);function T(ie,me,fe){let ve=fe._core._renderService.dimensions.actualCellWidth||9.5,xe=fe._core._renderService.dimensions.actualCellHeight||18;const Ee=Math.floor(me/xe);return[Math.floor(ie/ve),Ee]}function ne(ie,me){const fe=new c.Z(ve=>{for(let xe of ve)if(xe.target.offsetHeight>0||xe.target.offsetWidth>0){const[Ee,Be]=T(xe.target.offsetWidth,xe.target.offsetHeight,ie);console.log("cols, rows",Ee,Be),i.Z.publish(`ssh-xterm-resize-${$}`,{columns:Ee,rows:Be,width:xe.target.offsetWidth,height:xe.target.offsetHeight}),ie.resize(Ee,Be);const De=l.Base64.decode("IA=="),He=l.Base64.decode("CBtbSw==");ie.write(De),ie.write(He)}});return fe.observe(me),fe}function Y(){return x(this,null,function*(){const ie=yield Z(oe,V);(ie==null?void 0:ie.status)===0&&(G(ie.data),setTimeout(()=>i.Z.publish(`create-socket-${$}`),300))})}return(0,n.useEffect)(()=>{if(B.current&&q){const ie=new r.Terminal({fontSize:16,rendererType:"dom"});ie.open(B.current),ie.onData(fe=>{U.current&&U.current.readyState===1&&U.current.send(JSON.stringify({tp:"client",data:fe}))}),ie.write("Connecting..."),_e(ie);const me=ne(ie,B.current);return()=>{ie.dispose(),B.current&&(me==null||me.unobserve(B.current))}}},[q,B.current]),(0,n.useEffect)(()=>{if(te&&q){let ie=function(){const ve=new WebSocket(q);U.current=ve,ve.onopen=()=>{let Ee=te.element.parentElement;if(Ee){let Be=Ee.offsetWidth,De=Ee.offsetHeight;console.log("init",{tp:"init",data:S(b({},se),{secret:Ce,width:Be,height:De,rows:te.rows,columns:te.cols})}),ve.send(JSON.stringify({tp:"init",data:S(b({},se),{secret:Ce,width:Be,height:De,rows:te.rows,columns:te.cols})}))}te.focus()},ve.onerror=Ee=>{console.log("------in socket error----",Ee,ve,q)},ve.onmessage=Ee=>{j.current||(te.write("\r"),setTimeout(()=>{},1e3)),j.current=!0,console.log("event:",Ee);const Be=l.Base64.decode(Ee.data.toString());let De=te._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",Be,De,te),te.write(Be)};const xe=setInterval(()=>{var Ee;U.current&&((Ee=U.current)==null||Ee.send(JSON.stringify({tp:"h"})))},z);ve.onclose=Ee=>{xe&&clearInterval(xe),console.log(xe,"tid",$),te.write(`\r
|
|
|
connection closed`),setTimeout(()=>{ie()},1e4)}};const me=i.Z.subscribe(`create-socket-${$}`,()=>{ie()}),fe=i.Z.subscribe(`ssh-xterm-resize-${$}`,ve=>{U.current&&U.current.readyState===1&&U.current.send(JSON.stringify({tp:"resize",data:b({},ve)}))});return()=>{me(),fe(),U.current&&(U.current.close(),j.current=!1)}}},[te,q,X]),n.createElement("div",{ref:B,className:e["xterm-panel"]},q?null:n.createElement("p",{style:{color:"#fff"}},"\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1..."))},K=t(29787),N=(H,Z,te)=>new Promise((_e,se)=>{var G=q=>{try{X(te.next(q))}catch(B){se(B)}},Ce=q=>{try{X(te.throw(q))}catch(B){se(B)}},X=q=>q.done?_e(q.value):Promise.resolve(q.value).then(G,Ce);X((te=te.apply(H,Z)).next())}),k=({itemData:H={},startInit:Z})=>{const[te,_e]=(0,n.useState)({}),[se,G]=(0,n.useState)(!0),{user_mirror_id:Ce,tab_type:X}=H;(0,n.useEffect)(()=>{q()},[]);const q=()=>N(void 0,null,function*(){G(!0);const B=yield Z(Ce,X);(B==null?void 0:B.status)===0&&_e(B.data),G(!1)});return n.createElement(n.Fragment,null,se?n.createElement(K.Z,{style:{width:"100%",marginTop:200}}):n.createElement("iframe",{style:{height:"100%",width:"100%"},frameBorder:"0",src:te==null?void 0:te.vnc_url}))},D=t(70467),L=(H,Z,te)=>new Promise((_e,se)=>{var G=q=>{try{X(te.next(q))}catch(B){se(B)}},Ce=q=>{try{X(te.throw(q))}catch(B){se(B)}},X=q=>q.done?_e(q.value):Promise.resolve(q.value).then(G,Ce);X((te=te.apply(H,Z)).next())}),R=({value:H=null,onAddTime:Z,goBack:te,updateTime:_e,errorCode:se})=>{const[G,Ce]=(0,n.useState)(null),[X,q]=(0,n.useState)(null),[B,U]=(0,n.useState)(!1),[j,oe]=(0,n.useState)(!1),V=(0,n.useRef)(!0);(0,n.useEffect)(()=>{q(Date.now()+H),typeof H=="number"&&V.current&&H<3e5&&(V.current=!1,U(!0))},[H]),(0,n.useEffect)(()=>{(G===300||G===180||G===60||G===0)&&U(!0)},[G]),(0,n.useEffect)(()=>(window.addEventListener("visibilitychange",$),()=>{window.removeEventListener("visibilitychange",$)}),[se]);const $=()=>L(void 0,null,function*(){var ie,me;if(document.visibilityState==="visible"&&!se){const fe=yield _e();if((fe==null?void 0:fe.status)===0){const ve=((ie=fe==null?void 0:fe.data)==null?void 0:ie.expireTime)>0?(me=fe==null?void 0:fe.data)==null?void 0:me.expireTime:0;q(Date.now()+ve),U(ve<=3e5),ve===0&&Ce(0)}}}),T=()=>L(void 0,null,function*(){oe(!0),G>0?yield Z():te(),oe(!1),U(!1)}),ne=ie=>{Ce(ie)},Y=()=>{U(!1)};return n.createElement(n.Fragment,null,n.createElement(D.O5,{onChange:ne,value:X,valueStyle:{color:"#FFF",fontSize:12,width:54}}),n.createElement(p.default,{title:G!==0?"\u5B9E\u9A8C\u73AF\u5883\u5EF6\u65F6\u63D0\u9192":"\u5B9E\u9A8C\u73AF\u5883\u7ED3\u675F\u63D0\u9192",maskClosable:!1,closable:!1,centered:!0,open:B,onOk:T,cancelButtonProps:{style:{display:G!==0?"inline-block":"none"}},confirmLoading:j,onCancel:Y,okText:G!==0?"\u7ACB\u5373\u5EF6\u957F":"\u9000\u51FA",cancelText:"\u4E0D\u9700\u8981"},G!==0?`\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u5C06\u4E8E ${Math.round(G/60)} \u5206\u949F\u540E\u5173\u95ED\uFF0C\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\u5417\uFF1F`:"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6\u7ED3\u675F\uFF0C\u8D44\u6E90\u5DF2\u7ECF\u88AB\u56DE\u6536\u3002"))},O=t(14185),M={wrap:"wrap___nt3l8",header:"header___pWY1w",cutDown:"cutDown___LErwR",container:"container____IeqS",errorData:"errorData___pJ481"},I=t(49317),J=t(40417),re="data:image/png;base64,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",le=(H,Z,te)=>new Promise((_e,se)=>{var G=q=>{try{X(te.next(q))}catch(B){se(B)}},Ce=q=>{try{X(te.throw(q))}catch(B){se(B)}},X=q=>q.done?_e(q.value):Promise.resolve(q.value).then(G,Ce);X((te=te.apply(H,Z)).next())});const ye=({dispatch:H,user:Z})=>{var te,_e;const[se]=(0,f.useSearchParams)(),G=(0,f.useParams)(),[Ce,X]=(0,n.useState)({}),[q,B]=(0,n.useState)(!1),[U,j]=(0,n.useState)(!0),[oe,V]=(0,n.useState)([]),[$,T]=(0,n.useState)({}),[ne,Y]=(0,n.useState)(null),[ie,me]=(0,n.useState)(!1);(0,n.useEffect)(()=>(H({type:"globalSetting/headerFooterToggle",payload:!1}),()=>{H({type:"globalSetting/headerFooterToggle",payload:!0})}),[]),(0,n.useEffect)(()=>{ve()},[]);const fe=(Pe,Le)=>le(void 0,null,function*(){var Fe,F;j(!0);const ee=yield(0,I.ZP)(`/api/user_mirrors/${Pe}/start.json`,{method:"post",body:{tab_type:Le}});return(ee==null?void 0:ee.status)===0&&(me(!!((Fe=ee==null?void 0:ee.data)!=null&&Fe.code)),Y((F=ee==null?void 0:ee.data)==null?void 0:F.remaining_time),j(!1)),ee}),ve=()=>le(void 0,null,function*(){const Pe=yield(0,I.ZP)(`/api/user_mirrors/${G==null?void 0:G.id}.json`,{method:"get"});(Pe==null?void 0:Pe.status)===0&&X(Pe==null?void 0:Pe.data)}),xe=()=>le(void 0,null,function*(){return yield(0,I.ZP)(`/api/user_mirrors/${G==null?void 0:G.id}/check.json`,{method:"get"})}),Ee=()=>le(void 0,null,function*(){var Pe;const Le=yield(0,I.ZP)(`/api/user_mirrors/${G==null?void 0:G.id}/active.json`,{method:"post",body:{tab_type:$==null?void 0:$.tab_type}});(Le==null?void 0:Le.status)===0&&(Y((Pe=Le==null?void 0:Le.data)==null?void 0:Pe.remaining_time),y.ZP.success("\u5EF6\u957F\u6210\u529F"))}),Be=()=>{var Pe;f.history.push(`/users/${(Pe=Z.userInfo)==null?void 0:Pe.login}/experiment-img`)},De=()=>{let Pe=!1;p.default.confirm({title:"\u9000\u51FA\u73AF\u5883",icon:null,content:n.createElement("div",null,n.createElement("div",{style:{margin:"10px auto"}},"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u73AF\u5883\u5417\uFF1F"),n.createElement(u.default,{onChange:Le=>Pe=Le.target.checked},"\u9000\u51FA\u73AF\u5883\u65F6\uFF0C\u7ACB\u5373\u91CA\u653E\u73AF\u5883\u8D44\u6E90")),centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>le(void 0,null,function*(){if(!Pe){Be();return}const Le=yield(0,I.ZP)(`/api/user_mirrors/${G==null?void 0:G.id}/exit_delete_pod.json`,{method:"post",body:{tab_type:$==null?void 0:$.tab_type}});(Le==null?void 0:Le.status)===0&&Be()})})},He=()=>le(void 0,null,function*(){B(!0);const Pe=yield(0,I.ZP)(`/api/user_mirrors/${G==null?void 0:G.id}/save_image.json`,{method:"post",body:{tab_type:$==null?void 0:$.tab_type,operation:se==null?void 0:se.get("operation")}});(Pe==null?void 0:Pe.status)===0&&(y.ZP.success("\u4FDD\u5B58\u6210\u529F"),Be()),B(!1)}),$e=()=>n.createElement("div",{className:M.errorData},n.createElement("img",{src:re,width:139}),n.createElement("div",{className:"font14 mt20",style:{color:"#F6F7F9"}},"\u955C\u50CF\u65E0\u6CD5\u8FD0\u884C"));return n.createElement("section",{className:M.wrap},n.createElement(v.Z,{align:"middle",className:M.header},n.createElement(d.Z,null,n.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",src:`${O.Z.IMG_SERVER}/images/${(te=Z==null?void 0:Z.userInfo)==null?void 0:te.image_url}`,width:34,height:34,style:{borderRadius:"50%"}}),n.createElement("span",{className:"ml10"},(_e=Z==null?void 0:Z.userInfo)==null?void 0:_e.real_name)),n.createElement(d.Z,{flex:"1",className:"tc"},n.createElement("span",{className:"mr10 font18"},Ce==null?void 0:Ce.type_name)),n.createElement(v.Z,{align:"middle"},n.createElement("span",{className:"iconfont icon-shijian1 mr5 font14"}),n.createElement("span",{className:"font12"},"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6\uFF1A"),n.createElement(R,{value:ne,errorCode:ie,updateTime:xe,onAddTime:Ee,goBack:Be}),!!(se!=null&&se.get("operation"))&&(Ce==null?void 0:Ce.can_save)&&n.createElement(o.ZP,{disabled:ie||U,loading:q,className:"ml40",onClick:He,type:"primary"},"\u4FDD\u5B58\u955C\u50CF"),n.createElement("span",{className:"icon-kaiguan font16 current ml30",onClick:De}))),n.createElement("div",{style:{background:"#111C24"}},n.createElement(J.Z,{initTabs:(Ce==null?void 0:Ce.tabs)||[],tabs:oe,copyProhibited:!0,setTabs:V,value:$,onChange:Pe=>T(Pe)})),n.createElement("aside",{className:M.container},ie?$e():oe.map(Pe=>n.createElement("div",{key:Pe.index_tab,style:{display:Pe.index_tab===$.index_tab?"block":"none",position:"relative",overflow:"hidden",height:"100%"}},Pe.active&&Pe.tab_type===3&&n.createElement(k,{itemData:Pe,startInit:fe}),Pe.active&&Pe.tab_type===4&&n.createElement(P,{itemData:Pe,startInit:fe})))))};var W=(0,f.connect)(({user:H,globalSetting:Z})=>({globalSetting:Z,user:H}))(ye)},40417:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return _}});var n=t(59301),f={scrollbar:"scrollbar___lLOKh",scrollbarContent:"scrollbarContent___J5uQ6",scrollbarTrack:"scrollbarTrack___ptQqt",scrollbarThumb:"scrollbarThumb___GFuZv",item:"item___MSfbI",icon:"icon___AXhP9",dot:"dot___BA766",active:"active___Rkf93",pathActive:"pathActive___l4hB4",paths:"paths___gzBRM"},y=t(62957),p=t(75727),u=t(78267),v=t(33156),d=t(76374),o=t(76406),s=t(44283),l=t(59301),r=Object.defineProperty,a=Object.defineProperties,e=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,w=(C,b,S)=>b in C?r(C,b,{enumerable:!0,configurable:!0,writable:!0,value:S}):C[b]=S,A=(C,b)=>{for(var S in b||(b={}))c.call(b,S)&&w(C,S,b[S]);if(i)for(var S of i(b))m.call(b,S)&&w(C,S,b[S]);return C},h=(C,b)=>a(C,e(b)),_=({initTabs:C=[],tabs:b=[],setTabs:S,value:x,onChange:z,codeUpdate:P=!1,paths:K=[],activePath:N,onChangePath:k,codeLoading:D,copyProhibited:L=!1})=>{const[E,R]=(0,n.useState)(!1),[O,M]=(0,n.useState)(!1),I=(0,n.useRef)(),J=(0,n.useRef)(),re=(0,n.useRef)(),le=(0,n.useRef)(!1),ye=(0,s.useParams)(),W=(0,s.useSelector)(se=>{var G;return(G=se==null?void 0:se.user)==null?void 0:G.userInfo});(0,n.useEffect)(()=>v.Z.subscribe("send-tabs-result-data",G=>{const Ce=(0,u.cloneDeep)(b),X=Ce.findIndex(q=>q.index_tab===G.index_tab);Ce[X].resData=G,S(Ce)}),[b]),(0,n.useEffect)(()=>{const se=new d.Z(Ce=>{for(let X of Ce){const{width:q}=X.contentRect;H()}}),G=new d.Z(Ce=>{for(let X of Ce){const{width:q}=X.contentRect;H()}});return J.current&&(se.observe(J.current),G.observe(re.current)),()=>{se.disconnect(),G.disconnect()}},[]),(0,n.useEffect)(()=>{var se;if(C.length&&!le.current){let G=sessionStorage.getItem("Tpilist"),Ce=JSON.parse(G)||[],X=(se=Ce==null?void 0:Ce.filter(U=>U.id===ye.taskId))==null?void 0:se[0],q=(W==null?void 0:W.user_status)===2||(X==null?void 0:X.id)===ye.taskId&&(new Date().getTime()-new Date(X==null?void 0:X.time).getTime())/1e3/3600>24;const B=C.map((U,j)=>h(A({},U),{active:ye.taskId?j===0&&![2,3,4].includes(U.tab_type)?!0:q?!1:!!(X!=null&&X.id&&j===0):j===0,resetKey:1,resData:{}}));if(!(X!=null&&X.id)){let U={id:ye.taskId,time:new Date};Ce.push(U),sessionStorage.setItem("Tpilist",JSON.stringify(Ce))}S((0,u.cloneDeep)(B)),z(B[0]),le.current=!1}},[C==null?void 0:C.length]),(0,n.useEffect)(()=>{if(I.current){let se=function(U){X=I.current.offsetLeft,q=U.pageX,B=!0,document.onselectstart=function(){return!1},(0,o.kk)("none")},G=function(){B=!1,document.onselectstart=null,(0,o.kk)("auto")},Ce=function(U){if(B){const j=U.pageX-q;let oe=X+j;const V=J.current.clientWidth-I.current.clientWidth;oe<=0&&(oe=0),oe>=V&&(oe=V),I.current.style.left=`${oe}px`,re.current.style.transform=`translateX(${-(oe/J.current.clientWidth*re.current.clientWidth)}px)`}},X=0,q=0,B=!1;return I.current.addEventListener("mousedown",se),document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",G),()=>{var U;(U=I.current)==null||U.removeEventListener("mousedown",se),document==null||document.removeEventListener("mousemove",Ce),document==null||document.removeEventListener("mouseup",G)}}},[I.current,x]),(0,n.useEffect)(()=>(re.current.addEventListener("wheel",Z,{passive:!1}),()=>{var se;(se=re.current)==null||se.removeEventListener("wheel",Z,{passive:!1})}),[re.current]);const H=()=>{var se;try{if(re.current.clientWidth>J.current.clientWidth){const G=J.current.clientWidth/re.current.clientWidth*J.current.clientWidth,Ce=Number((se=I.current.style.left)==null?void 0:se.replace("px",""));let X=Ce;Ce+G>=J.current.clientWidth&&(X=Ce-(Ce+G-J.current.clientWidth)),I.current.style.width=`${G}px`,I.current.style.left=`${X}px`,re.current.style.transform=`translateX(${-(X/J.current.clientWidth*re.current.clientWidth)}px)`,R(!0)}else I.current.style.left="0px",re.current.style.transform="translateX(0px)",R(!1)}catch(G){}},Z=se=>{if(re.current.clientWidth<=J.current.clientWidth)return;let G=0;navigator.userAgent.indexOf("Macintosh")!==-1?G=se.deltaX:se.shiftKey?G=se.deltaX||se.deltaY:G=se.deltaX;const X=re.current.style.transform.match(/translateX\(([-0-9.]+)px\)/);let q=X?parseFloat(X[1]):0;q=Math.abs(q),q=q+G,q<=0&&(q=0);const B=re.current.clientWidth-J.current.clientWidth;q>=B&&(q=B);const U=q/re.current.clientWidth*J.current.clientWidth;I.current.style.left=`${U}px`,re.current.style.transform=`translateX(${-q}px)`,se.preventDefault()},te=(se,G,Ce)=>{if(Ce.stopPropagation(),b.length===20){y.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:600,centered:!0,content:"\u5B9E\u9A8C\u754C\u9762\u7A97\u53E3\u6570\u91CF\u5DF2\u8FBE\u4E0A\u9650\uFF0820\u4E2A\uFF09\uFF0C\u4E0D\u5141\u8BB8\u518D\u590D\u5236\u7A97\u53E3\u3002"});return}const X=(0,u.cloneDeep)(b),q=X[G],B=String(Math.random()).slice(-10),j=`${q.index_tab.split("-")[0]}-${B}`;let oe=q.name;const V=C.filter(T=>T.tab_type===4)||[];if(V.length===1){const T=V[0].name,ne=X.filter(Y=>Y.tab_type===4).map(Y=>{var ie;return Number((ie=Y.name)==null?void 0:ie.split(T)[1])});ne.push(1),console.log(ne,"nameItems"),oe=T+(Math.max(...ne)+1)}const $=h(A({},q),{name:oe,active:!1,index_tab:j,isCopy:!0});X.splice(G+1,0,$),S(X)},_e=(se,G,Ce)=>{Ce.stopPropagation();const X=(0,u.cloneDeep)(b);X.splice(G,1),se.index_tab===x.index_tab&&(X[G-1].active=!0,z(X[G-1])),S(X)};return l.createElement("div",{className:f.scrollbar,ref:J},l.createElement("div",{className:f.scrollbarContent,ref:re},b.map((se,G)=>{var Ce;const{index_tab:X,isCopy:q,tab_type:B,name:U}=se;return l.createElement("div",{key:X,id:`env_${X}`,onClick:()=>{if(X===x.index_tab)return;const j=h(A({},se),{active:!0}),oe=(0,u.cloneDeep)(b);oe[G]=j,z(j),S(oe)},className:x.index_tab===X?`${f.item} ${f.active}`:f.item},B===1&&l.createElement(l.Fragment,null,l.createElement("i",{title:"\u4EE3\u7801\u7F16\u8F91\u5668",style:{color:"#3B86A0"},className:"iconfont icon-daimabianjiqi1"}),l.createElement("span",null,U),!!N&&l.createElement(p.Z,{className:f.icon,overlayClassName:f.paths,onOpenChange:j=>{M(j)},disabled:D,menu:{items:(Ce=(0,u.compact)(K))==null?void 0:Ce.map(j=>({key:j,label:l.createElement("span",{className:N===j?f.pathActive:""},j),onClick:()=>{N!==j&&(M(!1),k(j))}}))}},l.createElement("div",null,O?l.createElement("b",{className:"iconfont icon-a-xialazhankai"}):l.createElement("b",{className:"iconfont icon-shouqi4"}))),P&&l.createElement("div",{className:f.dot})),B===2&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#608B4E"},title:"VSCode\u7F16\u8F91\u5668",className:"iconfont icon-vscode"}),l.createElement("span",null,U)),B===3&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#608B4E"},title:"\u56FE\u5F62\u5316\u684C\u9762",className:"iconfont icon-tuxinghuazhuomian"}),l.createElement("span",null,U)),B===4&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#3B86A0"},title:"\u547D\u4EE4\u884C\u7EC8\u7AEF",className:"iconfont icon-minglinghang"}),l.createElement("span",null,U),!L&&l.createElement("aside",{title:"\u590D\u5236",onClick:j=>te(se,G,j),className:"iconfont icon-fuzhihuanjing font14 ml10 current"}),q&&l.createElement("aside",{title:"\u5173\u95ED",onClick:j=>_e(se,G,j),className:"iconfont icon-guanbishiyanhuanjing font14 ml10 current"})),B===5&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#3B86A0"},title:"\u5BB9\u5668\u5185\u670D\u52A1",className:"iconfont icon-rongqi1"}),l.createElement("span",null,U)),B===6&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#3B86A0"},title:"\u865A\u62DF\u4EFF\u771F",className:"icon-xunifangzhen"}),l.createElement("span",null,U)),B===7&&l.createElement(l.Fragment,null,l.createElement("i",{style:{color:"#3B86A0"},title:"jupyter Lab",className:"icon-jupyterLab"}),l.createElement("span",null,U)))})),l.createElement("div",{style:{display:E?"block":"none"},className:f.scrollbarTrack},l.createElement("div",{ref:I,className:f.scrollbarThumb})))}},29509:function(it,Q,t){"use strict";t.d(Q,{o2:function(){return u},yT:function(){return v}});var n=t(77654),f=t(34998);const y=f.i.map(d=>`${d}-inverse`),p=["success","processing","error","default","warning"];function u(d){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,n.Z)(y),(0,n.Z)(f.i)).includes(d):f.i.includes(d)}function v(d){return p.includes(d)}},99402:function(it,Q,t){"use strict";t.d(Q,{T:function(){return f},n:function(){return n}});function n(y){return["small","middle","large"].includes(y)}function f(y){return y?typeof y=="number"&&!Number.isNaN(y):!1}},86013:function(it,Q,t){"use strict";var n=t(59301),f=t(19248);const y=p=>{let u;return typeof p=="object"&&(p!=null&&p.clearIcon)?u=p:p&&(u={clearIcon:n.createElement(f.Z,null)}),u};Q.Z=y},52838:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return v}});var n=t(37645);function f(d,o,s,l){if(l===!1)return{adjustX:!1,adjustY:!1};const r=l&&typeof l=="object"?l:{},a={};switch(d){case"top":case"bottom":a.shiftX=o.arrowOffsetHorizontal*2+s,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=o.arrowOffsetVertical*2+s,a.shiftX=!0,a.adjustX=!0;break}const e=Object.assign(Object.assign({},a),r);return e.shiftX||(e.adjustX=!0),e.shiftY||(e.adjustY=!0),e}const y={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},u=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function v(d){const{arrowWidth:o,autoAdjustOverflow:s,arrowPointAtCenter:l,offset:r,borderRadius:a,visibleFirst:e}=d,i=o/2,c={};return Object.keys(y).forEach(m=>{const w=l&&p[m]||y[m],A=Object.assign(Object.assign({},w),{offset:[0,0],dynamicInset:!0});switch(c[m]=A,u.has(m)&&(A.autoArrow=!1),m){case"top":case"topLeft":case"topRight":A.offset[1]=-i-r;break;case"bottom":case"bottomLeft":case"bottomRight":A.offset[1]=i+r;break;case"left":case"leftTop":case"leftBottom":A.offset[0]=-i-r;break;case"right":case"rightTop":case"rightBottom":A.offset[0]=i+r;break}const h=(0,n.wZ)({contentRadius:a,limitVerticalRadius:!0});if(l)switch(m){case"topLeft":case"bottomLeft":A.offset[0]=-h.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":A.offset[0]=h.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":A.offset[1]=-h.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":A.offset[1]=h.arrowOffsetHorizontal*2-i;break}A.overflow=f(m,h,o,s),e&&(A.htmlRegion="visibleFirst")}),c}},82855:function(it,Q,t){"use strict";t.d(Q,{F:function(){return u},Z:function(){return p}});var n=t(92310),f=t.n(n);const y=null;function p(v,d,o){return f()({[`${v}-status-success`]:d==="success",[`${v}-status-warning`]:d==="warning",[`${v}-status-error`]:d==="error",[`${v}-status-validating`]:d==="validating",[`${v}-has-feedback`]:o})}const u=(v,d)=>d||v},62673:function(it,Q,t){"use strict";t.d(Q,{default:function(){return z}});var n=t(59301),f=t(92310),y=t.n(f),p=t(16632),u=t(8654),v=t(12919),d=t(63872),o=t(48755),s=t(2171),l=t(83397),r=t(56553),e=n.createContext(null),i=t(36170),c=t(74632),m=function(P,K){var N={};for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&K.indexOf(k)<0&&(N[k]=P[k]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,k=Object.getOwnPropertySymbols(P);D<k.length;D++)K.indexOf(k[D])<0&&Object.prototype.propertyIsEnumerable.call(P,k[D])&&(N[k[D]]=P[k[D]]);return N};const w=(P,K)=>{var N;const{prefixCls:k,className:D,rootClassName:L,children:E,indeterminate:R=!1,style:O,onMouseEnter:M,onMouseLeave:I,skipGroup:J=!1,disabled:re}=P,le=m(P,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ye,direction:W,checkbox:H}=n.useContext(o.E_),Z=n.useContext(e),{isFormItemInput:te}=n.useContext(r.aM),_e=n.useContext(s.Z),se=(N=(Z==null?void 0:Z.disabled)||re)!==null&&N!==void 0?N:_e,G=n.useRef(le.value),Ce=n.useRef(null),X=(0,u.sQ)(K,Ce);n.useEffect(()=>{Z==null||Z.registerValue(le.value)},[]),n.useEffect(()=>{if(!J)return le.value!==G.current&&(Z==null||Z.cancelValue(G.current),Z==null||Z.registerValue(le.value),G.current=le.value),()=>Z==null?void 0:Z.cancelValue(le.value)},[le.value]),n.useEffect(()=>{var ie;!((ie=Ce.current)===null||ie===void 0)&&ie.input&&(Ce.current.input.indeterminate=R)},[R]);const q=ye("checkbox",k),B=(0,l.Z)(q),[U,j,oe]=(0,i.ZP)(q,B),V=Object.assign({},le);Z&&!J&&(V.onChange=function(){le.onChange&&le.onChange.apply(le,arguments),Z.toggleOption&&Z.toggleOption({label:E,value:le.value})},V.name=Z.name,V.checked=Z.value.includes(le.value));const $=y()(`${q}-wrapper`,{[`${q}-rtl`]:W==="rtl",[`${q}-wrapper-checked`]:V.checked,[`${q}-wrapper-disabled`]:se,[`${q}-wrapper-in-form-item`]:te},H==null?void 0:H.className,D,L,oe,B,j),T=y()({[`${q}-indeterminate`]:R},d.A,j),[ne,Y]=(0,c.Z)(V.onClick);return U(n.createElement(v.Z,{component:"Checkbox",disabled:se},n.createElement("label",{className:$,style:Object.assign(Object.assign({},H==null?void 0:H.style),O),onMouseEnter:M,onMouseLeave:I,onClick:ne},n.createElement(p.Z,Object.assign({},V,{onClick:Y,prefixCls:q,className:T,disabled:se,ref:X})),E!==void 0&&n.createElement("span",{className:`${q}-label`},E))))};var h=n.forwardRef(w),g=t(77654),_=t(2738),C=function(P,K){var N={};for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&K.indexOf(k)<0&&(N[k]=P[k]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,k=Object.getOwnPropertySymbols(P);D<k.length;D++)K.indexOf(k[D])<0&&Object.prototype.propertyIsEnumerable.call(P,k[D])&&(N[k[D]]=P[k[D]]);return N},S=n.forwardRef((P,K)=>{const{defaultValue:N,children:k,options:D=[],prefixCls:L,className:E,rootClassName:R,style:O,onChange:M}=P,I=C(P,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:J,direction:re}=n.useContext(o.E_),[le,ye]=n.useState(I.value||N||[]),[W,H]=n.useState([]);n.useEffect(()=>{"value"in I&&ye(I.value||[])},[I.value]);const Z=n.useMemo(()=>D.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[D]),te=T=>{H(ne=>ne.filter(Y=>Y!==T))},_e=T=>{H(ne=>[].concat((0,g.Z)(ne),[T]))},se=T=>{const ne=le.indexOf(T.value),Y=(0,g.Z)(le);ne===-1?Y.push(T.value):Y.splice(ne,1),"value"in I||ye(Y),M==null||M(Y.filter(ie=>W.includes(ie)).sort((ie,me)=>{const fe=Z.findIndex(xe=>xe.value===ie),ve=Z.findIndex(xe=>xe.value===me);return fe-ve}))},G=J("checkbox",L),Ce=`${G}-group`,X=(0,l.Z)(G),[q,B,U]=(0,i.ZP)(G,X),j=(0,_.Z)(I,["value","disabled"]),oe=D.length?Z.map(T=>n.createElement(h,{prefixCls:G,key:T.value.toString(),disabled:"disabled"in T?T.disabled:I.disabled,value:T.value,checked:le.includes(T.value),onChange:T.onChange,className:`${Ce}-item`,style:T.style,title:T.title,id:T.id,required:T.required},T.label)):k,V={toggleOption:se,value:le,disabled:I.disabled,name:I.name,registerValue:_e,cancelValue:te},$=y()(Ce,{[`${Ce}-rtl`]:re==="rtl"},E,R,U,X,B);return q(n.createElement("div",Object.assign({className:$,style:O},j,{ref:K}),n.createElement(e.Provider,{value:V},oe)))});const x=h;x.Group=S,x.__ANT_CHECKBOX=!0;var z=x},36170:function(it,Q,t){"use strict";t.d(Q,{C2:function(){return v}});var n=t(36237),f=t(63356),y=t(51636),p=t(16931);const u=d=>{const{checkboxCls:o}=d,s=`${o}-wrapper`;return[{[`${o}-group`]:Object.assign(Object.assign({},(0,f.Wf)(d)),{display:"inline-flex",flexWrap:"wrap",columnGap:d.marginXS,[`> ${d.antCls}-row`]:{flex:1}}),[s]:Object.assign(Object.assign({},(0,f.Wf)(d)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${s}`]:{marginInlineStart:0},[`&${s}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[o]:Object.assign(Object.assign({},(0,f.Wf)(d)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:d.borderRadiusSM,alignSelf:"center",[`${o}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${o}-inner`]:Object.assign({},(0,f.oN)(d))},[`${o}-inner`]:{boxSizing:"border-box",display:"block",width:d.checkboxSize,height:d.checkboxSize,direction:"ltr",backgroundColor:d.colorBgContainer,border:`${(0,n.unit)(d.lineWidth)} ${d.lineType} ${d.colorBorder}`,borderRadius:d.borderRadiusSM,borderCollapse:"separate",transition:`all ${d.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:d.calc(d.checkboxSize).div(14).mul(5).equal(),height:d.calc(d.checkboxSize).div(14).mul(8).equal(),border:`${(0,n.unit)(d.lineWidthBold)} solid ${d.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${d.motionDurationFast} ${d.motionEaseInBack}, opacity ${d.motionDurationFast}`}},"& + span":{paddingInlineStart:d.paddingXS,paddingInlineEnd:d.paddingXS}})},{[`
|
|
|
${s}:not(${s}-disabled),
|
|
|
${o}:not(${o}-disabled)
|
|
|
`]:{[`&:hover ${o}-inner`]:{borderColor:d.colorPrimary}},[`${s}:not(${s}-disabled)`]:{[`&:hover ${o}-checked:not(${o}-disabled) ${o}-inner`]:{backgroundColor:d.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${o}-checked:not(${o}-disabled):after`]:{borderColor:d.colorPrimaryHover}}},{[`${o}-checked`]:{[`${o}-inner`]:{backgroundColor:d.colorPrimary,borderColor:d.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${d.motionDurationMid} ${d.motionEaseOutBack} ${d.motionDurationFast}`}}},[`
|
|
|
${s}-checked:not(${s}-disabled),
|
|
|
${o}-checked:not(${o}-disabled)
|
|
|
`]:{[`&:hover ${o}-inner`]:{backgroundColor:d.colorPrimaryHover,borderColor:"transparent"}}},{[o]:{"&-indeterminate":{[`${o}-inner`]:{backgroundColor:`${d.colorBgContainer} !important`,borderColor:`${d.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:d.calc(d.fontSizeLG).div(2).equal(),height:d.calc(d.fontSizeLG).div(2).equal(),backgroundColor:d.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${o}-inner`]:{backgroundColor:`${d.colorBgContainer} !important`,borderColor:`${d.colorPrimary} !important`}}}},{[`${s}-disabled`]:{cursor:"not-allowed"},[`${o}-disabled`]:{[`&, ${o}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${o}-inner`]:{background:d.colorBgContainerDisabled,borderColor:d.colorBorder,"&:after":{borderColor:d.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:d.colorTextDisabled},[`&${o}-indeterminate ${o}-inner::after`]:{background:d.colorTextDisabled}}}]};function v(d,o){const s=(0,y.mergeToken)(o,{checkboxCls:`.${d}`,checkboxSize:o.controlInteractiveSize});return[u(s)]}Q.ZP=(0,p.I$)("Checkbox",(d,o)=>{let{prefixCls:s}=o;return[v(s,d)]})},74632:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return y}});var n=t(59301),f=t(16089);function y(p){const u=n.useRef(null),v=()=>{f.Z.cancel(u.current),u.current=null};return[()=>{v(),u.current=(0,f.Z)(()=>{u.current=null})},s=>{u.current&&(s.stopPropagation(),v()),p==null||p(s)}]}},19563:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return ye}});var n=t(59301),f=t(33853),y=t(38819),p=t(92310),u=t.n(p),v=t(96478),d=t(6089),o=t(18929),s=t(2738),l=t(75030),a=W=>typeof W!="object"&&typeof W!="function"||W===null,e=t(52838),i=t(45915),c=t(22703),m=t(32383),w=t(55743),A=t(48755),h=t(83397),g=t(93041),_=t(78857),C=t(57700),b=t(36237),S=t(63356),x=t(46e3),z=t(93873),P=t(34925),K=t(37645),N=t(36305),k=t(16931),D=t(51636),E=W=>{const{componentCls:H,menuCls:Z,colorError:te,colorTextLightSolid:_e}=W,se=`${Z}-item`;return{[`${H}, ${H}-menu-submenu`]:{[`${Z} ${se}`]:{[`&${se}-danger:not(${se}-disabled)`]:{color:te,"&:hover":{color:_e,backgroundColor:te}}}}}};const R=W=>{const{componentCls:H,menuCls:Z,zIndexPopup:te,dropdownArrowDistance:_e,sizePopupArrow:se,antCls:G,iconCls:Ce,motionDurationMid:X,paddingBlock:q,fontSize:B,dropdownEdgeChildPadding:U,colorTextDisabled:j,fontSizeIcon:oe,controlPaddingHorizontal:V,colorBgElevated:$}=W;return[{[H]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:W.calc(se).div(2).sub(_e).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${G}-btn`]:{[`& > ${Ce}-down, & > ${G}-btn-icon > ${Ce}-down`]:{fontSize:oe}},[`${H}-wrap`]:{position:"relative",[`${G}-btn > ${Ce}-down`]:{fontSize:oe},[`${Ce}-down::before`]:{transition:`transform ${X}`}},[`${H}-wrap-open`]:{[`${Ce}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${G}-slide-down-enter${G}-slide-down-enter-active${H}-placement-bottomLeft,
|
|
|
&${G}-slide-down-appear${G}-slide-down-appear-active${H}-placement-bottomLeft,
|
|
|
&${G}-slide-down-enter${G}-slide-down-enter-active${H}-placement-bottom,
|
|
|
&${G}-slide-down-appear${G}-slide-down-appear-active${H}-placement-bottom,
|
|
|
&${G}-slide-down-enter${G}-slide-down-enter-active${H}-placement-bottomRight,
|
|
|
&${G}-slide-down-appear${G}-slide-down-appear-active${H}-placement-bottomRight`]:{animationName:x.fJ},[`&${G}-slide-up-enter${G}-slide-up-enter-active${H}-placement-topLeft,
|
|
|
&${G}-slide-up-appear${G}-slide-up-appear-active${H}-placement-topLeft,
|
|
|
&${G}-slide-up-enter${G}-slide-up-enter-active${H}-placement-top,
|
|
|
&${G}-slide-up-appear${G}-slide-up-appear-active${H}-placement-top,
|
|
|
&${G}-slide-up-enter${G}-slide-up-enter-active${H}-placement-topRight,
|
|
|
&${G}-slide-up-appear${G}-slide-up-appear-active${H}-placement-topRight`]:{animationName:x.Qt},[`&${G}-slide-down-leave${G}-slide-down-leave-active${H}-placement-bottomLeft,
|
|
|
&${G}-slide-down-leave${G}-slide-down-leave-active${H}-placement-bottom,
|
|
|
&${G}-slide-down-leave${G}-slide-down-leave-active${H}-placement-bottomRight`]:{animationName:x.Uw},[`&${G}-slide-up-leave${G}-slide-up-leave-active${H}-placement-topLeft,
|
|
|
&${G}-slide-up-leave${G}-slide-up-leave-active${H}-placement-top,
|
|
|
&${G}-slide-up-leave${G}-slide-up-leave-active${H}-placement-topRight`]:{animationName:x.ly}}},(0,K.ZP)(W,$,{arrowPlacement:{top:!0,bottom:!0}}),{[`${H} ${Z}`]:{position:"relative",margin:0},[`${Z}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${H}, ${H}-menu-submenu`]:Object.assign(Object.assign({},(0,S.Wf)(W)),{[Z]:Object.assign(Object.assign({padding:U,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:W.borderRadiusLG,outline:"none",boxShadow:W.boxShadowSecondary},(0,S.Qy)(W)),{"&:empty":{padding:0,boxShadow:"none"},[`${Z}-item-group-title`]:{padding:`${(0,b.unit)(q)} ${(0,b.unit)(V)}`,color:W.colorTextDescription,transition:`all ${X}`},[`${Z}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Z}-item-icon`]:{minWidth:B,marginInlineEnd:W.marginXS,fontSize:W.fontSizeSM},[`${Z}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${X}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Z}-item-extra`]:{paddingInlineStart:W.padding,marginInlineStart:"auto",fontSize:W.fontSizeSM,color:W.colorTextDescription}},[`${Z}-item, ${Z}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,b.unit)(q)} ${(0,b.unit)(V)}`,color:W.colorText,fontWeight:"normal",fontSize:B,lineHeight:W.lineHeight,cursor:"pointer",transition:`all ${X}`,borderRadius:W.borderRadiusSM,"&:hover, &-active":{backgroundColor:W.controlItemBgHover}},(0,S.Qy)(W)),{"&-selected":{color:W.colorPrimary,backgroundColor:W.controlItemBgActive,"&:hover, &-active":{backgroundColor:W.controlItemBgActiveHover}},"&-disabled":{color:j,cursor:"not-allowed","&:hover":{color:j,backgroundColor:$,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,b.unit)(W.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:W.colorSplit},[`${H}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,[`${H}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:W.colorTextDescription,fontSize:oe,fontStyle:"normal"}}}),[`${Z}-item-group-list`]:{margin:`0 ${(0,b.unit)(W.marginXS)}`,padding:0,listStyle:"none"},[`${Z}-submenu-title`]:{paddingInlineEnd:W.calc(V).add(W.fontSizeSM).equal()},[`${Z}-submenu-vertical`]:{position:"relative"},[`${Z}-submenu${Z}-submenu-disabled ${H}-menu-submenu-title`]:{[`&, ${H}-menu-submenu-arrow-icon`]:{color:j,backgroundColor:$,cursor:"not-allowed"}},[`${Z}-submenu-selected ${H}-menu-submenu-title`]:{color:W.colorPrimary}})})},[(0,x.oN)(W,"slide-up"),(0,x.oN)(W,"slide-down"),(0,z.Fm)(W,"move-up"),(0,z.Fm)(W,"move-down"),(0,P._y)(W,"zoom-big")]]},O=W=>Object.assign(Object.assign({zIndexPopup:W.zIndexPopupBase+50,paddingBlock:(W.controlHeight-W.fontSize*W.lineHeight)/2},(0,K.wZ)({contentRadius:W.borderRadiusLG,limitVerticalRadius:!0})),(0,N.w)(W));var M=(0,k.I$)("Dropdown",W=>{const{marginXXS:H,sizePopupArrow:Z,paddingXXS:te,componentCls:_e}=W,se=(0,D.mergeToken)(W,{menuCls:`${_e}-menu`,dropdownArrowDistance:W.calc(Z).div(2).add(H).equal(),dropdownEdgeChildPadding:te});return[R(se),E(se)]},O,{resetStyle:!1});const I=null,J=W=>{var H;const{menu:Z,arrow:te,prefixCls:_e,children:se,trigger:G,disabled:Ce,dropdownRender:X,getPopupContainer:q,overlayClassName:B,rootClassName:U,overlayStyle:j,open:oe,onOpenChange:V,visible:$,onVisibleChange:T,mouseEnterDelay:ne=.15,mouseLeaveDelay:Y=.1,autoAdjustOverflow:ie=!0,placement:me="",overlay:fe,transitionName:ve}=W,{getPopupContainer:xe,getPrefixCls:Ee,direction:Be,dropdown:De}=n.useContext(A.E_),He=(0,m.ln)("Dropdown"),$e=n.useMemo(()=>{const de=Ee();return ve!==void 0?ve:me.includes("top")?`${de}-slide-down`:`${de}-slide-up`},[Ee,me,ve]),Pe=n.useMemo(()=>me?me.includes("Center")?me.slice(0,me.indexOf("Center")):me:Be==="rtl"?"bottomRight":"bottomLeft",[me,Be]),Le=Ee("dropdown",_e),Fe=(0,h.Z)(Le),[F,ee,ue]=M(Le,Fe),[,pe]=(0,C.ZP)(),Ie=n.Children.only(a(se)?n.createElement("span",null,se):se),Ze=(0,c.Tm)(Ie,{className:u()(`${Le}-trigger`,{[`${Le}-rtl`]:Be==="rtl"},Ie.props.className),disabled:(H=Ie.props.disabled)!==null&&H!==void 0?H:Ce}),Ae=Ce?[]:G,Se=!!(Ae!=null&&Ae.includes("contextMenu")),[Ne,Qe]=(0,o.Z)(!1,{value:oe!=null?oe:$}),We=(0,d.Z)(de=>{V==null||V(de,{source:"trigger"}),T==null||T(de),Qe(de)}),Je=u()(B,U,ee,ue,Fe,De==null?void 0:De.className,{[`${Le}-rtl`]:Be==="rtl"}),Te=(0,e.Z)({arrowPointAtCenter:typeof te=="object"&&te.pointAtCenter,autoAdjustOverflow:ie,offset:pe.marginXXS,arrowWidth:te?pe.sizePopupArrow:0,borderRadius:pe.borderRadius}),Ge=n.useCallback(()=>{Z!=null&&Z.selectable&&(Z!=null&&Z.multiple)||(V==null||V(!1,{source:"menu"}),Qe(!1))},[Z==null?void 0:Z.selectable,Z==null?void 0:Z.multiple]),Xe=()=>{let de;return Z!=null&&Z.items?de=n.createElement(g.default,Object.assign({},Z)):typeof fe=="function"?de=fe():de=fe,X&&(de=X(de)),de=n.Children.only(typeof de=="string"?n.createElement("span",null,de):de),n.createElement(_.J,{prefixCls:`${Le}-menu`,rootClassName:u()(ue,Fe),expandIcon:n.createElement("span",{className:`${Le}-menu-submenu-arrow`},Be==="rtl"?n.createElement(f.Z,{className:`${Le}-menu-submenu-arrow-icon`}):n.createElement(y.Z,{className:`${Le}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ge,validator:Ke=>{let{mode:ze}=Ke}},de)},[ge,ae]=(0,l.Cn)("Dropdown",j==null?void 0:j.zIndex);let he=n.createElement(v.Z,Object.assign({alignPoint:Se},(0,s.Z)(W,["rootClassName"]),{mouseEnterDelay:ne,mouseLeaveDelay:Y,visible:Ne,builtinPlacements:Te,arrow:!!te,overlayClassName:Je,prefixCls:Le,getPopupContainer:q||xe,transitionName:$e,trigger:Ae,overlay:Xe,placement:Pe,onVisibleChange:We,overlayStyle:Object.assign(Object.assign(Object.assign({},De==null?void 0:De.style),j),{zIndex:ge})}),Ze);return ge&&(he=n.createElement(w.Z.Provider,{value:ae},he)),F(he)},re=(0,i.Z)(J,"align",void 0,"dropdown",W=>W),le=W=>n.createElement(re,Object.assign({},W),n.createElement("span",null));J._InternalPanelDoNotUseOrYouWillBeFired=le;var ye=J},75727:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return i}});var n=t(19563),f=t(59301),y=t(18785),p=t(92310),u=t.n(p),v=t(7939),d=t(48755),o=t(44104),s=t(70045),l=function(c,m){var w={};for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&m.indexOf(A)<0&&(w[A]=c[A]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,A=Object.getOwnPropertySymbols(c);h<A.length;h++)m.indexOf(A[h])<0&&Object.prototype.propertyIsEnumerable.call(c,A[h])&&(w[A[h]]=c[A[h]]);return w};const r=c=>{const{getPopupContainer:m,getPrefixCls:w,direction:A}=f.useContext(d.E_),{prefixCls:h,type:g="default",danger:_,disabled:C,loading:b,onClick:S,htmlType:x,children:z,className:P,menu:K,arrow:N,autoFocus:k,overlay:D,trigger:L,align:E,open:R,onOpenChange:O,placement:M,getPopupContainer:I,href:J,icon:re=f.createElement(y.Z,null),title:le,buttonsRender:ye=ne=>ne,mouseEnterDelay:W,mouseLeaveDelay:H,overlayClassName:Z,overlayStyle:te,destroyPopupOnHide:_e,dropdownRender:se}=c,G=l(c,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ce=w("dropdown",h),X=`${Ce}-button`,q={menu:K,arrow:N,autoFocus:k,align:E,disabled:C,trigger:C?[]:L,onOpenChange:O,getPopupContainer:I||m,mouseEnterDelay:W,mouseLeaveDelay:H,overlayClassName:Z,overlayStyle:te,destroyPopupOnHide:_e,dropdownRender:se},{compactSize:B,compactItemClassnames:U}=(0,s.ri)(Ce,A),j=u()(X,U,P);"overlay"in c&&(q.overlay=D),"open"in c&&(q.open=R),"placement"in c?q.placement=M:q.placement=A==="rtl"?"bottomLeft":"bottomRight";const oe=f.createElement(v.ZP,{type:g,danger:_,disabled:C,loading:b,onClick:S,htmlType:x,href:J,title:le},z),V=f.createElement(v.ZP,{type:g,danger:_,icon:re}),[$,T]=ye([oe,V]);return f.createElement(o.Z.Compact,Object.assign({className:j,size:B,block:!0},G),$,f.createElement(n.Z,Object.assign({},q),T))};r.__ANT_BUTTON=!0;var a=r;const e=n.Z;e.Button=a;var i=e},24971:function(it,Q,t){"use strict";var n=t(59301),f=t(56553),y=t(48755);const p=function(u,v){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,s;const{variant:l,[u]:r}=n.useContext(y.E_),a=n.useContext(f.pg),e=r==null?void 0:r.variant;let i;typeof v!="undefined"?i=v:d===!1?i="borderless":i=(s=(o=a!=null?a:e)!==null&&o!==void 0?o:l)!==null&&s!==void 0?s:"outlined";const c=y.tr.includes(i);return[i,c]};Q.Z=p},49397:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return _}});var n=t(59301),f=t(92310),y=t.n(f),p=t(36901),u=t(8654),v=t(62487),d=t(86013),o=t(82855),s=t(48755),l=t(2171),r=t(83397),a=t(31756),e=t(56553),i=t(24971),c=t(70045),m=t(23826),w=t(53075);function A(C){return!!(C.prefix||C.suffix||C.allowClear||C.showCount)}var h=function(C,b){var S={};for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&b.indexOf(x)<0&&(S[x]=C[x]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(C);z<x.length;z++)b.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(C,x[z])&&(S[x[z]]=C[x[z]]);return S},_=(0,n.forwardRef)((C,b)=>{const{prefixCls:S,bordered:x=!0,status:z,size:P,disabled:K,onBlur:N,onFocus:k,suffix:D,allowClear:L,addonAfter:E,addonBefore:R,className:O,style:M,styles:I,rootClassName:J,onChange:re,classNames:le,variant:ye}=C,W=h(C,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:H,direction:Z,allowClear:te,autoComplete:_e,className:se,style:G,classNames:Ce,styles:X}=(0,s.dj)("input"),q=H("input",S),B=(0,n.useRef)(null),U=(0,r.Z)(q),[j,oe,V]=(0,w.TI)(q,J),[$]=(0,w.ZP)(q,U),{compactSize:T,compactItemClassnames:ne}=(0,c.ri)(q,Z),Y=(0,a.Z)(pe=>{var Ie;return(Ie=P!=null?P:T)!==null&&Ie!==void 0?Ie:pe}),ie=n.useContext(l.Z),me=K!=null?K:ie,{status:fe,hasFeedback:ve,feedbackIcon:xe}=(0,n.useContext)(e.aM),Ee=(0,o.F)(fe,z),Be=A(C)||!!ve,De=(0,n.useRef)(Be),He=(0,m.Z)(B,!0),$e=pe=>{He(),N==null||N(pe)},Pe=pe=>{He(),k==null||k(pe)},Le=pe=>{He(),re==null||re(pe)},Fe=(ve||D)&&n.createElement(n.Fragment,null,D,ve&&xe),F=(0,d.Z)(L!=null?L:te),[ee,ue]=(0,i.Z)("input",ye,x);return j($(n.createElement(p.default,Object.assign({ref:(0,u.sQ)(b,B),prefixCls:q,autoComplete:_e},W,{disabled:me,onBlur:$e,onFocus:Pe,style:Object.assign(Object.assign({},G),M),styles:Object.assign(Object.assign({},X),I),suffix:Fe,allowClear:F,className:y()(O,J,V,U,ne,se),onChange:Le,addonBefore:R&&n.createElement(v.Z,{form:!0,space:!0},R),addonAfter:E&&n.createElement(v.Z,{form:!0,space:!0},E),classNames:Object.assign(Object.assign(Object.assign({},le),Ce),{input:y()({[`${q}-sm`]:Y==="small",[`${q}-lg`]:Y==="large",[`${q}-rtl`]:Z==="rtl"},le==null?void 0:le.input,Ce.input,oe),variant:y()({[`${q}-${ee}`]:ue},(0,o.Z)(q,Ee)),affixWrapper:y()({[`${q}-affix-wrapper-sm`]:Y==="small",[`${q}-affix-wrapper-lg`]:Y==="large",[`${q}-affix-wrapper-rtl`]:Z==="rtl"},oe),wrapper:y()({[`${q}-group-rtl`]:Z==="rtl"},oe),groupWrapper:y()({[`${q}-group-wrapper-sm`]:Y==="small",[`${q}-group-wrapper-lg`]:Y==="large",[`${q}-group-wrapper-rtl`]:Z==="rtl",[`${q}-group-wrapper-${ee}`]:ue},(0,o.Z)(`${q}-group-wrapper`,Ee,ve),oe)})}))))})},79809:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return b}});var n=t(59301),f=t(92310),y=t.n(f),p=t(22711),u=t(86013),v=t(82855),d=t(48755),o=t(2171),s=t(83397),l=t(31756),r=t(56553),a=t(24971),e=t(70045),i=t(30292),c=t(53075),m=t(16931),w=t(51636),A=t(64910);const h=S=>{const{componentCls:x,paddingLG:z}=S,P=`${x}-textarea`;return{[`textarea${x}`]:{maxWidth:"100%",height:"auto",minHeight:S.controlHeight,lineHeight:S.lineHeight,verticalAlign:"bottom",transition:`all ${S.motionDurationSlow}`,resize:"vertical",[`&${x}-mouse-active`]:{transition:`all ${S.motionDurationSlow}, height 0s, width 0s`}},[`${x}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[P]:{position:"relative","&-show-count":{[`> ${x}`]:{height:"100%"},[`${x}-data-count`]:{position:"absolute",bottom:S.calc(S.fontSize).mul(S.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:S.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${x},
|
|
|
&-affix-wrapper${P}-has-feedback ${x}
|
|
|
`]:{paddingInlineEnd:z},[`&-affix-wrapper${x}-affix-wrapper`]:{padding:0,[`> textarea${x}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:S.calc(S.controlHeight).sub(S.calc(S.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${x}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${x}-clear-icon`]:{position:"absolute",insetInlineEnd:S.paddingInline,insetBlockStart:S.paddingXS},[`${P}-suffix`]:{position:"absolute",top:0,insetInlineEnd:S.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${x}-affix-wrapper-sm`]:{[`${x}-suffix`]:{[`${x}-clear-icon`]:{insetInlineEnd:S.paddingInlineSM}}}}}};var g=(0,m.I$)(["Input","TextArea"],S=>{const x=(0,w.mergeToken)(S,(0,A.e)(S));return[h(x)]},A.T,{resetFont:!1}),_=function(S,x){var z={};for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&x.indexOf(P)<0&&(z[P]=S[P]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,P=Object.getOwnPropertySymbols(S);K<P.length;K++)x.indexOf(P[K])<0&&Object.prototype.propertyIsEnumerable.call(S,P[K])&&(z[P[K]]=S[P[K]]);return z},b=(0,n.forwardRef)((S,x)=>{var z;const{prefixCls:P,bordered:K=!0,size:N,disabled:k,status:D,allowClear:L,classNames:E,rootClassName:R,className:O,style:M,styles:I,variant:J,showCount:re,onMouseDown:le,onResize:ye}=S,W=_(S,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:H,direction:Z,allowClear:te,autoComplete:_e,className:se,style:G,classNames:Ce,styles:X}=(0,d.dj)("textArea"),q=n.useContext(o.Z),B=k!=null?k:q,{status:U,hasFeedback:j,feedbackIcon:oe}=n.useContext(r.aM),V=(0,v.F)(U,D),$=n.useRef(null);n.useImperativeHandle(x,()=>{var ue;return{resizableTextArea:(ue=$.current)===null||ue===void 0?void 0:ue.resizableTextArea,focus:pe=>{var Ie,Ze;(0,i.nH)((Ze=(Ie=$.current)===null||Ie===void 0?void 0:Ie.resizableTextArea)===null||Ze===void 0?void 0:Ze.textArea,pe)},blur:()=>{var pe;return(pe=$.current)===null||pe===void 0?void 0:pe.blur()}}});const T=H("input",P),ne=(0,s.Z)(T),[Y,ie,me]=(0,c.TI)(T,R),[fe]=g(T,ne),{compactSize:ve,compactItemClassnames:xe}=(0,e.ri)(T,Z),Ee=(0,l.Z)(ue=>{var pe;return(pe=N!=null?N:ve)!==null&&pe!==void 0?pe:ue}),[Be,De]=(0,a.Z)("textArea",J,K),He=(0,u.Z)(L!=null?L:te),[$e,Pe]=n.useState(!1),[Le,Fe]=n.useState(!1),F=ue=>{Pe(!0),le==null||le(ue);const pe=()=>{Pe(!1),document.removeEventListener("mouseup",pe)};document.addEventListener("mouseup",pe)},ee=ue=>{var pe,Ie;if(ye==null||ye(ue),$e&&typeof getComputedStyle=="function"){const Ze=(Ie=(pe=$.current)===null||pe===void 0?void 0:pe.nativeElement)===null||Ie===void 0?void 0:Ie.querySelector("textarea");Ze&&getComputedStyle(Ze).resize==="both"&&Fe(!0)}};return Y(fe(n.createElement(p.default,Object.assign({autoComplete:_e},W,{style:Object.assign(Object.assign({},G),M),styles:Object.assign(Object.assign({},X),I),disabled:B,allowClear:He,className:y()(me,ne,O,R,xe,se,Le&&`${T}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},E),Ce),{textarea:y()({[`${T}-sm`]:Ee==="small",[`${T}-lg`]:Ee==="large"},ie,E==null?void 0:E.textarea,Ce.textarea,$e&&`${T}-mouse-active`),variant:y()({[`${T}-${Be}`]:De},(0,v.Z)(T,V)),affixWrapper:y()(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:Z==="rtl",[`${T}-affix-wrapper-sm`]:Ee==="small",[`${T}-affix-wrapper-lg`]:Ee==="large",[`${T}-textarea-show-count`]:re||((z=S.count)===null||z===void 0?void 0:z.show)},ie)}),prefixCls:T,suffix:j&&n.createElement("span",{className:`${T}-textarea-suffix`},oe),showCount:re,ref:$,onResize:ee,onMouseDown:F}))))})},23826:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return f}});var n=t(59301);function f(y,p){const u=(0,n.useRef)([]),v=()=>{u.current.push(setTimeout(()=>{var d,o,s,l;!((d=y.current)===null||d===void 0)&&d.input&&((o=y.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=y.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=y.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return(0,n.useEffect)(()=>(p&&v(),()=>u.current.forEach(d=>{d&&clearTimeout(d)})),[]),v}},37568:function(it,Q,t){"use strict";t.d(Q,{default:function(){return Ce}});var n=t(59301),f=t(92310),y=t.n(f),p=t(48755),u=t(56553),v=t(53075),o=X=>{const{getPrefixCls:q,direction:B}=(0,n.useContext)(p.E_),{prefixCls:U,className:j}=X,oe=q("input-group",U),V=q("input"),[$,T,ne]=(0,v.ZP)(V),Y=y()(oe,ne,{[`${oe}-lg`]:X.size==="large",[`${oe}-sm`]:X.size==="small",[`${oe}-compact`]:X.compact,[`${oe}-rtl`]:B==="rtl"},T,j),ie=(0,n.useContext)(u.aM),me=(0,n.useMemo)(()=>Object.assign(Object.assign({},ie),{isFormItemInput:!1}),[ie]);return $(n.createElement("span",{className:Y,style:X.style,onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave,onFocus:X.onFocus,onBlur:X.onBlur},n.createElement(u.aM.Provider,{value:me},X.children)))},s=t(49397),l=t(77654),r=t(6089),a=t(26112),e=t(82855),i=t(31756),c=t(16931),m=t(51636),w=t(64910);const A=X=>{const{componentCls:q,paddingXS:B}=X;return{[q]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:B,"&-rtl":{direction:"rtl"},[`${q}-input`]:{textAlign:"center",paddingInline:X.paddingXXS},[`&${q}-sm ${q}-input`]:{paddingInline:X.calc(X.paddingXXS).div(2).equal()},[`&${q}-lg ${q}-input`]:{paddingInline:X.paddingXS}}}};var h=(0,c.I$)(["Input","OTP"],X=>{const q=(0,m.mergeToken)(X,(0,w.e)(X));return[A(q)]},w.T),g=t(16089),_=function(X,q){var B={};for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&q.indexOf(U)<0&&(B[U]=X[U]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,U=Object.getOwnPropertySymbols(X);j<U.length;j++)q.indexOf(U[j])<0&&Object.prototype.propertyIsEnumerable.call(X,U[j])&&(B[U[j]]=X[U[j]]);return B},b=n.forwardRef((X,q)=>{const{value:B,onChange:U,onActiveChange:j,index:oe,mask:V}=X,$=_(X,["value","onChange","onActiveChange","index","mask"]),T=B&&typeof V=="string"?V:B,ne=ve=>{U(oe,ve.target.value)},Y=n.useRef(null);n.useImperativeHandle(q,()=>Y.current);const ie=()=>{(0,g.Z)(()=>{var ve;const xe=(ve=Y.current)===null||ve===void 0?void 0:ve.input;document.activeElement===xe&&xe&&xe.select()})},me=ve=>{const{key:xe,ctrlKey:Ee,metaKey:Be}=ve;xe==="ArrowLeft"?j(oe-1):xe==="ArrowRight"?j(oe+1):xe==="z"&&(Ee||Be)&&ve.preventDefault(),ie()},fe=ve=>{ve.key==="Backspace"&&!B&&j(oe-1),ie()};return n.createElement(s.Z,Object.assign({type:V===!0?"password":"text"},$,{ref:Y,value:T,onInput:ne,onFocus:ie,onKeyDown:me,onKeyUp:fe,onMouseDown:ie,onMouseUp:ie}))}),S=function(X,q){var B={};for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&q.indexOf(U)<0&&(B[U]=X[U]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,U=Object.getOwnPropertySymbols(X);j<U.length;j++)q.indexOf(U[j])<0&&Object.prototype.propertyIsEnumerable.call(X,U[j])&&(B[U[j]]=X[U[j]]);return B};function x(X){return(X||"").split("")}const z=X=>{const{index:q,prefixCls:B,separator:U}=X,j=typeof U=="function"?U(q):U;return j?n.createElement("span",{className:`${B}-separator`},j):null};var K=n.forwardRef((X,q)=>{const{prefixCls:B,length:U=6,size:j,defaultValue:oe,value:V,onChange:$,formatter:T,separator:ne,variant:Y,disabled:ie,status:me,autoFocus:fe,mask:ve,type:xe,onInput:Ee,inputMode:Be}=X,De=S(X,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:He,direction:$e}=n.useContext(p.E_),Pe=He("otp",B),Le=(0,a.Z)(De,{aria:!0,data:!0,attr:!0}),[Fe,F,ee]=h(Pe),ue=(0,i.Z)(ae=>j!=null?j:ae),pe=n.useContext(u.aM),Ie=(0,e.F)(pe.status,me),Ze=n.useMemo(()=>Object.assign(Object.assign({},pe),{status:Ie,hasFeedback:!1,feedbackIcon:null}),[pe,Ie]),Ae=n.useRef(null),Se=n.useRef({});n.useImperativeHandle(q,()=>({focus:()=>{var ae;(ae=Se.current[0])===null||ae===void 0||ae.focus()},blur:()=>{var ae;for(let he=0;he<U;he+=1)(ae=Se.current[he])===null||ae===void 0||ae.blur()},nativeElement:Ae.current}));const Ne=ae=>T?T(ae):ae,[Qe,We]=n.useState(()=>x(Ne(oe||"")));n.useEffect(()=>{V!==void 0&&We(x(V))},[V]);const Je=(0,r.Z)(ae=>{We(ae),Ee&&Ee(ae),$&&ae.length===U&&ae.every(he=>he)&&ae.some((he,de)=>Qe[de]!==he)&&$(ae.join(""))}),Te=(0,r.Z)((ae,he)=>{let de=(0,l.Z)(Qe);for(let ze=0;ze<ae;ze+=1)de[ze]||(de[ze]="");he.length<=1?de[ae]=he:de=de.slice(0,ae).concat(x(he)),de=de.slice(0,U);for(let ze=de.length-1;ze>=0&&!de[ze];ze-=1)de.pop();const Ke=Ne(de.map(ze=>ze||" ").join(""));return de=x(Ke).map((ze,ke)=>ze===" "&&!de[ke]?de[ke]:ze),de}),Ge=(ae,he)=>{var de;const Ke=Te(ae,he),ze=Math.min(ae+he.length,U-1);ze!==ae&&Ke[ae]!==void 0&&((de=Se.current[ze])===null||de===void 0||de.focus()),Je(Ke)},Xe=ae=>{var he;(he=Se.current[ae])===null||he===void 0||he.focus()},ge={variant:Y,disabled:ie,status:Ie,mask:ve,type:xe,inputMode:Be};return Fe(n.createElement("div",Object.assign({},Le,{ref:Ae,className:y()(Pe,{[`${Pe}-sm`]:ue==="small",[`${Pe}-lg`]:ue==="large",[`${Pe}-rtl`]:$e==="rtl"},ee,F)}),n.createElement(u.aM.Provider,{value:Ze},Array.from({length:U}).map((ae,he)=>{const de=`otp-${he}`,Ke=Qe[he]||"";return n.createElement(n.Fragment,{key:de},n.createElement(b,Object.assign({ref:ze=>{Se.current[he]=ze},index:he,size:ue,htmlSize:1,className:`${Pe}-input`,onChange:Ge,value:Ke,onActiveChange:Xe,autoFocus:he===0&&fe},ge)),he<U-1&&n.createElement(z,{separator:ne,index:he,prefixCls:Pe}))}))))}),N=t(73331),k=t(15277),D=t(2738),L=t(8654),E=t(2171),R=t(23826),O=function(X,q){var B={};for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&q.indexOf(U)<0&&(B[U]=X[U]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,U=Object.getOwnPropertySymbols(X);j<U.length;j++)q.indexOf(U[j])<0&&Object.prototype.propertyIsEnumerable.call(X,U[j])&&(B[U[j]]=X[U[j]]);return B};const M=X=>X?n.createElement(k.Z,null):n.createElement(N.Z,null),I={click:"onClick",hover:"onMouseOver"};var re=n.forwardRef((X,q)=>{const{disabled:B,action:U="click",visibilityToggle:j=!0,iconRender:oe=M}=X,V=n.useContext(E.Z),$=B!=null?B:V,T=typeof j=="object"&&j.visible!==void 0,[ne,Y]=(0,n.useState)(()=>T?j.visible:!1),ie=(0,n.useRef)(null);n.useEffect(()=>{T&&Y(j.visible)},[T,j]);const me=(0,R.Z)(ie),fe=()=>{var ue;if($)return;ne&&me();const pe=!ne;Y(pe),typeof j=="object"&&((ue=j.onVisibleChange)===null||ue===void 0||ue.call(j,pe))},ve=ue=>{const pe=I[U]||"",Ie=oe(ne),Ze={[pe]:fe,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Ae=>{Ae.preventDefault()},onMouseUp:Ae=>{Ae.preventDefault()}};return n.cloneElement(n.isValidElement(Ie)?Ie:n.createElement("span",null,Ie),Ze)},{className:xe,prefixCls:Ee,inputPrefixCls:Be,size:De}=X,He=O(X,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$e}=n.useContext(p.E_),Pe=$e("input",Be),Le=$e("input-password",Ee),Fe=j&&ve(Le),F=y()(Le,xe,{[`${Le}-${De}`]:!!De}),ee=Object.assign(Object.assign({},(0,D.Z)(He,["suffix","iconRender","visibilityToggle"])),{type:ne?"text":"password",className:F,prefixCls:Pe,suffix:Fe});return De&&(ee.size=De),n.createElement(s.Z,Object.assign({ref:(0,L.sQ)(q,ie)},ee))}),le=t(47472),ye=t(22703),W=t(7939),H=t(70045),Z=function(X,q){var B={};for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&q.indexOf(U)<0&&(B[U]=X[U]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,U=Object.getOwnPropertySymbols(X);j<U.length;j++)q.indexOf(U[j])<0&&Object.prototype.propertyIsEnumerable.call(X,U[j])&&(B[U[j]]=X[U[j]]);return B},_e=n.forwardRef((X,q)=>{const{prefixCls:B,inputPrefixCls:U,className:j,size:oe,suffix:V,enterButton:$=!1,addonAfter:T,loading:ne,disabled:Y,onSearch:ie,onChange:me,onCompositionStart:fe,onCompositionEnd:ve}=X,xe=Z(X,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ee,direction:Be}=n.useContext(p.E_),De=n.useRef(!1),He=Ee("input-search",B),$e=Ee("input",U),{compactSize:Pe}=(0,H.ri)(He,Be),Le=(0,i.Z)(Ge=>{var Xe;return(Xe=oe!=null?oe:Pe)!==null&&Xe!==void 0?Xe:Ge}),Fe=n.useRef(null),F=Ge=>{Ge!=null&&Ge.target&&Ge.type==="click"&&ie&&ie(Ge.target.value,Ge,{source:"clear"}),me==null||me(Ge)},ee=Ge=>{var Xe;document.activeElement===((Xe=Fe.current)===null||Xe===void 0?void 0:Xe.input)&&Ge.preventDefault()},ue=Ge=>{var Xe,ge;ie&&ie((ge=(Xe=Fe.current)===null||Xe===void 0?void 0:Xe.input)===null||ge===void 0?void 0:ge.value,Ge,{source:"input"})},pe=Ge=>{De.current||ne||ue(Ge)},Ie=typeof $=="boolean"?n.createElement(le.Z,null):null,Ze=`${He}-button`;let Ae;const Se=$||{},Ne=Se.type&&Se.type.__ANT_BUTTON===!0;Ne||Se.type==="button"?Ae=(0,ye.Tm)(Se,Object.assign({onMouseDown:ee,onClick:Ge=>{var Xe,ge;(ge=(Xe=Se==null?void 0:Se.props)===null||Xe===void 0?void 0:Xe.onClick)===null||ge===void 0||ge.call(Xe,Ge),ue(Ge)},key:"enterButton"},Ne?{className:Ze,size:Le}:{})):Ae=n.createElement(W.ZP,{className:Ze,type:$?"primary":void 0,size:Le,disabled:Y,key:"enterButton",onMouseDown:ee,onClick:ue,loading:ne,icon:Ie},$),T&&(Ae=[Ae,(0,ye.Tm)(T,{key:"addonAfter"})]);const Qe=y()(He,{[`${He}-rtl`]:Be==="rtl",[`${He}-${Le}`]:!!Le,[`${He}-with-button`]:!!$},j),We=Object.assign(Object.assign({},xe),{className:Qe,prefixCls:$e,type:"search"}),Je=Ge=>{De.current=!0,fe==null||fe(Ge)},Te=Ge=>{De.current=!1,ve==null||ve(Ge)};return n.createElement(s.Z,Object.assign({ref:(0,L.sQ)(Fe,q),onPressEnter:pe},We,{size:Le,onCompositionStart:Je,onCompositionEnd:Te,addonAfter:Ae,suffix:V,onChange:F,disabled:Y}))}),se=t(79809);const G=s.Z;G.Group=o,G.Search=_e,G.TextArea=se.Z,G.Password=re,G.OTP=K;var Ce=G},53075:function(it,Q,t){"use strict";t.d(Q,{TI:function(){return g},ik:function(){return a},nz:function(){return o},s7:function(){return e},x0:function(){return r}});var n=t(36237),f=t(63356),y=t(56119),p=t(16931),u=t(51636),v=t(64910),d=t(39082);const o=_=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:_,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),s=_=>({borderColor:_.activeBorderColor,boxShadow:_.activeShadow,outline:0,backgroundColor:_.activeBg}),l=_=>{const{paddingBlockLG:C,lineHeightLG:b,borderRadiusLG:S,paddingInlineLG:x}=_;return{padding:`${(0,n.unit)(C)} ${(0,n.unit)(x)}`,fontSize:_.inputFontSizeLG,lineHeight:b,borderRadius:S}},r=_=>({padding:`${(0,n.unit)(_.paddingBlockSM)} ${(0,n.unit)(_.paddingInlineSM)}`,fontSize:_.inputFontSizeSM,borderRadius:_.borderRadiusSM}),a=_=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.unit)(_.paddingBlock)} ${(0,n.unit)(_.paddingInline)}`,color:_.colorText,fontSize:_.inputFontSize,lineHeight:_.lineHeight,borderRadius:_.borderRadius,transition:`all ${_.motionDurationMid}`},o(_.colorTextPlaceholder)),{"&-lg":Object.assign({},l(_)),"&-sm":Object.assign({},r(_)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),e=_=>{const{componentCls:C,antCls:b}=_;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:_.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${C}, &-lg > ${C}-group-addon`]:Object.assign({},l(_)),[`&-sm ${C}, &-sm > ${C}-group-addon`]:Object.assign({},r(_)),[`&-lg ${b}-select-single ${b}-select-selector`]:{height:_.controlHeightLG},[`&-sm ${b}-select-single ${b}-select-selector`]:{height:_.controlHeightSM},[`> ${C}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${C}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.unit)(_.paddingInline)}`,color:_.colorText,fontWeight:"normal",fontSize:_.inputFontSize,textAlign:"center",borderRadius:_.borderRadius,transition:`all ${_.motionDurationSlow}`,lineHeight:1,[`${b}-select`]:{margin:`${(0,n.unit)(_.calc(_.paddingBlock).add(1).mul(-1).equal())} ${(0,n.unit)(_.calc(_.paddingInline).mul(-1).equal())}`,[`&${b}-select-single:not(${b}-select-customize-input):not(${b}-pagination-size-changer)`]:{[`${b}-select-selector`]:{backgroundColor:"inherit",border:`${(0,n.unit)(_.lineWidth)} ${_.lineType} transparent`,boxShadow:"none"}}},[`${b}-cascader-picker`]:{margin:`-9px ${(0,n.unit)(_.calc(_.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${b}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[C]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${C}-search-with-button &`]:{zIndex:0}}},[`> ${C}:first-child, ${C}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${C}-affix-wrapper`]:{[`&:not(:first-child) ${C}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${C}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${C}:last-child, ${C}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${C}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${C}-search &`]:{borderStartStartRadius:_.borderRadius,borderEndStartRadius:_.borderRadius}},[`&:not(:first-child), ${C}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${C}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,f.dF)()),{[`${C}-group-addon, ${C}-group-wrap, > ${C}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:_.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${C}-affix-wrapper,
|
|
|
& > ${C}-number-affix-wrapper,
|
|
|
& > ${b}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:_.calc(_.lineWidth).mul(-1).equal(),borderInlineEndWidth:_.lineWidth},[C]:{float:"none"},[`& > ${b}-select > ${b}-select-selector,
|
|
|
& > ${b}-select-auto-complete ${C},
|
|
|
& > ${b}-cascader-picker ${C},
|
|
|
& > ${C}-group-wrapper ${C}`]:{borderInlineEndWidth:_.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${b}-select-focused`]:{zIndex:1},[`& > ${b}-select > ${b}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${b}-select:first-child > ${b}-select-selector,
|
|
|
& > ${b}-select-auto-complete:first-child ${C},
|
|
|
& > ${b}-cascader-picker:first-child ${C}`]:{borderStartStartRadius:_.borderRadius,borderEndStartRadius:_.borderRadius},[`& > *:last-child,
|
|
|
& > ${b}-select:last-child > ${b}-select-selector,
|
|
|
& > ${b}-cascader-picker:last-child ${C},
|
|
|
& > ${b}-cascader-picker-focused:last-child ${C}`]:{borderInlineEndWidth:_.lineWidth,borderStartEndRadius:_.borderRadius,borderEndEndRadius:_.borderRadius},[`& > ${b}-select-auto-complete ${C}`]:{verticalAlign:"top"},[`${C}-group-wrapper + ${C}-group-wrapper`]:{marginInlineStart:_.calc(_.lineWidth).mul(-1).equal(),[`${C}-affix-wrapper`]:{borderRadius:0}},[`${C}-group-wrapper:not(:last-child)`]:{[`&${C}-search > ${C}-group`]:{[`& > ${C}-group-addon > ${C}-search-button`]:{borderRadius:0},[`& > ${C}`]:{borderStartStartRadius:_.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_.borderRadius}}}})}},i=_=>{const{componentCls:C,controlHeightSM:b,lineWidth:S,calc:x}=_,P=x(b).sub(x(S).mul(2)).sub(16).div(2).equal();return{[C]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,f.Wf)(_)),a(_)),(0,d.qG)(_)),(0,d.H8)(_)),(0,d.Mu)(_)),(0,d.vc)(_)),{'&[type="color"]':{height:_.controlHeight,[`&${C}-lg`]:{height:_.controlHeightLG},[`&${C}-sm`]:{height:b,paddingTop:P,paddingBottom:P}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},c=_=>{const{componentCls:C}=_;return{[`${C}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:_.colorTextQuaternary,fontSize:_.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${_.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:_.colorTextTertiary},"&:active":{color:_.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.unit)(_.inputAffixPadding)}`}}}},m=_=>{const{componentCls:C,inputAffixPadding:b,colorTextDescription:S,motionDurationSlow:x,colorIcon:z,colorIconHover:P,iconCls:K}=_,N=`${C}-affix-wrapper`,k=`${C}-affix-wrapper-disabled`;return{[N]:Object.assign(Object.assign(Object.assign(Object.assign({},a(_)),{display:"inline-flex",[`&:not(${C}-disabled):hover`]:{zIndex:1,[`${C}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${C}`]:{padding:0},[`> input${C}, > textarea${C}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[C]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:_.paddingXS}},"&-show-count-suffix":{color:S},"&-show-count-has-suffix":{marginInlineEnd:_.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),c(_)),{[`${K}${C}-password-icon`]:{color:z,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:P}}}),[`${C}-underlined`]:{borderRadius:0},[k]:{[`${K}${C}-password-icon`]:{color:z,cursor:"not-allowed","&:hover":{color:z}}}}},w=_=>{const{componentCls:C,borderRadiusLG:b,borderRadiusSM:S}=_;return{[`${C}-group`]:Object.assign(Object.assign(Object.assign({},(0,f.Wf)(_)),e(_)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${C}-group-addon`]:{borderRadius:b,fontSize:_.inputFontSizeLG}},"&-sm":{[`${C}-group-addon`]:{borderRadius:S}}},(0,d.ir)(_)),(0,d.S5)(_)),{[`&:not(${C}-compact-first-item):not(${C}-compact-last-item)${C}-compact-item`]:{[`${C}, ${C}-group-addon`]:{borderRadius:0}},[`&:not(${C}-compact-last-item)${C}-compact-first-item`]:{[`${C}, ${C}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${C}-compact-first-item)${C}-compact-last-item`]:{[`${C}, ${C}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${C}-compact-last-item)${C}-compact-item`]:{[`${C}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${C}-compact-first-item)${C}-compact-item`]:{[`${C}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},A=_=>{const{componentCls:C,antCls:b}=_,S=`${C}-search`;return{[S]:{[C]:{"&:hover, &:focus":{[`+ ${C}-group-addon ${S}-button:not(${b}-btn-primary)`]:{borderInlineStartColor:_.colorPrimaryHover}}},[`${C}-affix-wrapper`]:{height:_.controlHeight,borderRadius:0},[`${C}-lg`]:{lineHeight:_.calc(_.lineHeightLG).sub(2e-4).equal()},[`> ${C}-group`]:{[`> ${C}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${S}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${S}-button:not(${b}-btn-primary)`]:{color:_.colorTextDescription,"&:hover":{color:_.colorPrimaryHover},"&:active":{color:_.colorPrimaryActive},[`&${b}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${S}-button`]:{height:_.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${C}-affix-wrapper, ${S}-button`]:{height:_.controlHeightLG}},"&-small":{[`${C}-affix-wrapper, ${S}-button`]:{height:_.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${C}-compact-item`]:{[`&:not(${C}-compact-last-item)`]:{[`${C}-group-addon`]:{[`${C}-search-button`]:{marginInlineEnd:_.calc(_.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${C}-compact-first-item)`]:{[`${C},${C}-affix-wrapper`]:{borderRadius:0}},[`> ${C}-group-addon ${C}-search-button,
|
|
|
> ${C},
|
|
|
${C}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${C}-affix-wrapper-focused`]:{zIndex:2}}}}},h=_=>{const{componentCls:C}=_;return{[`${C}-out-of-range`]:{[`&, & input, & textarea, ${C}-show-count-suffix, ${C}-data-count`]:{color:_.colorError}}}},g=(0,p.I$)(["Input","Shared"],_=>{const C=(0,u.mergeToken)(_,(0,v.e)(_));return[i(C),m(C)]},v.T,{resetFont:!1});Q.ZP=(0,p.I$)(["Input","Component"],_=>{const C=(0,u.mergeToken)(_,(0,v.e)(_));return[w(C),A(C),h(C),(0,y.c)(C)]},v.T,{resetFont:!1})},64910:function(it,Q,t){"use strict";t.d(Q,{T:function(){return y},e:function(){return f}});var n=t(51636);function f(p){return(0,n.mergeToken)(p,{inputAffixPadding:p.paddingXXS})}const y=p=>{const{controlHeight:u,fontSize:v,lineHeight:d,lineWidth:o,controlHeightSM:s,controlHeightLG:l,fontSizeLG:r,lineHeightLG:a,paddingSM:e,controlPaddingHorizontalSM:i,controlPaddingHorizontal:c,colorFillAlter:m,colorPrimaryHover:w,colorPrimary:A,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:C,colorBgContainer:b,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:z}=p,P=S||v,K=z||P,N=x||r,k=Math.round((u-P*d)/2*10)/10-o,D=Math.round((s-K*d)/2*10)/10-o,L=Math.ceil((l-N*a)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(L,0),paddingInline:e-o,paddingInlineSM:i-o,paddingInlineLG:c-o,addonBg:m,activeBorderColor:A,hoverBorderColor:w,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${C}`,hoverBg:b,activeBg:b,inputFontSize:P,inputFontSizeLG:N,inputFontSizeSM:K}}},39082:function(it,Q,t){"use strict";t.d(Q,{$U:function(){return u},H8:function(){return e},Mu:function(){return l},S5:function(){return c},Xy:function(){return p},ir:function(){return s},qG:function(){return d},vc:function(){return A}});var n=t(36237),f=t(51636);const y=h=>({borderColor:h.hoverBorderColor,backgroundColor:h.hoverBg}),p=h=>({color:h.colorTextDisabled,backgroundColor:h.colorBgContainerDisabled,borderColor:h.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},y((0,f.mergeToken)(h,{hoverBorderColor:h.colorBorder,hoverBg:h.colorBgContainerDisabled})))}),u=(h,g)=>({background:h.colorBgContainer,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:g.borderColor,"&:hover":{borderColor:g.hoverBorderColor,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:g.activeBorderColor,boxShadow:g.activeShadow,outline:0,backgroundColor:h.activeBg}}),v=(h,g)=>({[`&${h.componentCls}-status-${g.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},u(h,g)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:g.affixColor}}),[`&${h.componentCls}-status-${g.status}${h.componentCls}-disabled`]:{borderColor:g.borderColor}}),d=(h,g)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},p(h))}),v(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),v(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),g)}),o=(h,g)=>({[`&${h.componentCls}-group-wrapper-status-${g.status}`]:{[`${h.componentCls}-group-addon`]:{borderColor:g.addonBorderColor,color:g.addonColor}}}),s=h=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.addonBg,border:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},o(h,{status:"error",addonBorderColor:h.colorError,addonColor:h.colorErrorText})),o(h,{status:"warning",addonBorderColor:h.colorWarning,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group-addon`]:Object.assign({},p(h))}})}),l=(h,g)=>{const{componentCls:_}=h;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${_}-disabled, &[disabled]`]:{color:h.colorTextDisabled,cursor:"not-allowed"},[`&${_}-status-error`]:{"&, & input, & textarea":{color:h.colorError}},[`&${_}-status-warning`]:{"&, & input, & textarea":{color:h.colorWarning}}},g)}},r=(h,g)=>{var _;return{background:g.bg,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(_=g==null?void 0:g.inputColor)!==null&&_!==void 0?_:"unset"},"&:hover":{background:g.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:g.activeBorderColor,backgroundColor:h.activeBg}}},a=(h,g)=>({[`&${h.componentCls}-status-${g.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},r(h,g)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:g.affixColor}})}),e=(h,g)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r(h,{bg:h.colorFillTertiary,hoverBg:h.colorFillSecondary,activeBorderColor:h.activeBorderColor})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},p(h))}),a(h,{status:"error",bg:h.colorErrorBg,hoverBg:h.colorErrorBgHover,activeBorderColor:h.colorError,inputColor:h.colorErrorText,affixColor:h.colorError})),a(h,{status:"warning",bg:h.colorWarningBg,hoverBg:h.colorWarningBgHover,activeBorderColor:h.colorWarning,inputColor:h.colorWarningText,affixColor:h.colorWarning})),g)}),i=(h,g)=>({[`&${h.componentCls}-group-wrapper-status-${g.status}`]:{[`${h.componentCls}-group-addon`]:{background:g.addonBg,color:g.addonColor}}}),c=h=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary},[`${h.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`}}}},i(h,{status:"error",addonBg:h.colorErrorBg,addonColor:h.colorErrorText})),i(h,{status:"warning",addonBg:h.colorWarningBg,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary,color:h.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,n.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`}}}})}),m=(h,g)=>({background:h.colorBgContainer,borderWidth:`${(0,n.unit)(h.lineWidth)} 0`,borderStyle:`${h.lineType} none`,borderColor:`transparent transparent ${g.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${g.borderColor} transparent`,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${g.borderColor} transparent`,outline:0,backgroundColor:h.activeBg}}),w=(h,g)=>({[`&${h.componentCls}-status-${g.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},m(h,g)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:g.affixColor}}),[`&${h.componentCls}-status-${g.status}${h.componentCls}-disabled`]:{borderColor:`transparent transparent ${g.borderColor} transparent`}}),A=(h,g)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:{color:h.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${h.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),w(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),w(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),g)})},24303:function(it,Q,t){"use strict";t.d(Q,{D:function(){return S},Z:function(){return P}});var n=t(59301),f=t(60499),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},p=y,u=t(7657),v=function(N,k){return n.createElement(u.Z,(0,f.Z)({},N,{ref:k,icon:p}))},d=n.forwardRef(v),o=d,s=t(33853),l=t(38819),r=t(92310),a=t.n(r),e=t(2738),i=t(48755),c=t(6989),m=t(36237),w=t(48923),A=t(16931);const h=K=>{const{componentCls:N,siderBg:k,motionDurationMid:D,motionDurationSlow:L,antCls:E,triggerHeight:R,triggerColor:O,triggerBg:M,headerHeight:I,zeroTriggerWidth:J,zeroTriggerHeight:re,borderRadiusLG:le,lightSiderBg:ye,lightTriggerColor:W,lightTriggerBg:H,bodyBg:Z}=K;return{[N]:{position:"relative",minWidth:0,background:k,transition:`all ${D}, background 0s`,"&-has-trigger":{paddingBottom:R},"&-right":{order:1},[`${N}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${E}-menu${E}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${N}-children`]:{overflow:"hidden"},[`${N}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:R,color:O,lineHeight:(0,m.unit)(R),textAlign:"center",background:M,cursor:"pointer",transition:`all ${D}`},[`${N}-zero-width-trigger`]:{position:"absolute",top:I,insetInlineEnd:K.calc(J).mul(-1).equal(),zIndex:1,width:J,height:re,color:O,fontSize:K.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:k,borderRadius:`0 ${(0,m.unit)(le)} ${(0,m.unit)(le)} 0`,cursor:"pointer",transition:`background ${L} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${L}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:K.calc(J).mul(-1).equal(),borderRadius:`${(0,m.unit)(le)} 0 0 ${(0,m.unit)(le)}`}},"&-light":{background:ye,[`${N}-trigger`]:{color:W,background:H},[`${N}-zero-width-trigger`]:{color:W,background:H,border:`1px solid ${Z}`,borderInlineStart:0}}}}};var g=(0,A.I$)(["Layout","Sider"],K=>[h(K)],w.eh,{deprecatedTokens:w.jn}),_=function(K,N){var k={};for(var D in K)Object.prototype.hasOwnProperty.call(K,D)&&N.indexOf(D)<0&&(k[D]=K[D]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,D=Object.getOwnPropertySymbols(K);L<D.length;L++)N.indexOf(D[L])<0&&Object.prototype.propertyIsEnumerable.call(K,D[L])&&(k[D[L]]=K[D[L]]);return k};const C={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},b=K=>!Number.isNaN(Number.parseFloat(K))&&isFinite(K),S=n.createContext({}),x=(()=>{let K=0;return function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return K+=1,`${N}${K}`}})();var P=n.forwardRef((K,N)=>{const{prefixCls:k,className:D,trigger:L,children:E,defaultCollapsed:R=!1,theme:O="dark",style:M={},collapsible:I=!1,reverseArrow:J=!1,width:re=200,collapsedWidth:le=80,zeroWidthTriggerStyle:ye,breakpoint:W,onCollapse:H,onBreakpoint:Z}=K,te=_(K,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,n.useContext)(c.V),[se,G]=(0,n.useState)("collapsed"in K?K.collapsed:R),[Ce,X]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in K&&G(K.collapsed)},[K.collapsed]);const q=(Le,Fe)=>{"collapsed"in K||G(Le),H==null||H(Le,Fe)},{getPrefixCls:B,direction:U}=(0,n.useContext)(i.E_),j=B("layout-sider",k),[oe,V,$]=g(j),T=(0,n.useRef)(null);T.current=Le=>{X(Le.matches),Z==null||Z(Le.matches),se!==Le.matches&&q(Le.matches,"responsive")},(0,n.useEffect)(()=>{function Le(F){return T.current(F)}let Fe;if(typeof window!="undefined"){const{matchMedia:F}=window;if(F&&W&&W in C){Fe=F(`screen and (max-width: ${C[W]})`);try{Fe.addEventListener("change",Le)}catch(ee){Fe.addListener(Le)}Le(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",Le)}catch(F){Fe==null||Fe.removeListener(Le)}}},[W]),(0,n.useEffect)(()=>{const Le=x("ant-sider-");return _e.addSider(Le),()=>_e.removeSider(Le)},[]);const ne=()=>{q(!se,"clickTrigger")},Y=(0,e.Z)(te,["collapsed"]),ie=se?le:re,me=b(ie)?`${ie}px`:String(ie),fe=parseFloat(String(le||0))===0?n.createElement("span",{onClick:ne,className:a()(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${J?"right":"left"}`),style:ye},L||n.createElement(o,null)):null,ve=U==="rtl"==!J,Be={expanded:ve?n.createElement(l.Z,null):n.createElement(s.Z,null),collapsed:ve?n.createElement(s.Z,null):n.createElement(l.Z,null)}[se?"collapsed":"expanded"],De=L!==null?fe||n.createElement("div",{className:`${j}-trigger`,onClick:ne,style:{width:me}},L||Be):null,He=Object.assign(Object.assign({},M),{flex:`0 0 ${me}`,maxWidth:me,minWidth:me,width:me}),$e=a()(j,`${j}-${O}`,{[`${j}-collapsed`]:!!se,[`${j}-has-trigger`]:I&&L!==null&&!fe,[`${j}-below`]:!!Ce,[`${j}-zero-width`]:parseFloat(me)===0},D,V,$),Pe=n.useMemo(()=>({siderCollapsed:se}),[se]);return oe(n.createElement(S.Provider,{value:Pe},n.createElement("aside",Object.assign({className:$e},Y,{style:He,ref:N}),n.createElement("div",{className:`${j}-children`},E),I||Ce&&fe?De:null)))})},6989:function(it,Q,t){"use strict";t.d(Q,{V:function(){return f}});var n=t(59301);const f=n.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(it,Q,t){"use strict";t.d(Q,{eh:function(){return p},jn:function(){return u}});var n=t(36237),f=t(16931);const y=v=>{const{antCls:d,componentCls:o,colorText:s,footerBg:l,headerHeight:r,headerPadding:a,headerColor:e,footerPadding:i,fontSize:c,bodyBg:m,headerBg:w}=v;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:r,padding:a,color:e,lineHeight:(0,n.unit)(r),background:w,[`${d}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:i,color:s,fontSize:c,background:l},[`${o}-content`]:{flex:"auto",color:s,minHeight:0}}},p=v=>{const{colorBgLayout:d,controlHeight:o,controlHeightLG:s,colorText:l,controlHeightSM:r,marginXXS:a,colorTextLightSolid:e,colorBgContainer:i}=v,c=s*1.25;return{colorBgHeader:"#001529",colorBgBody:d,colorBgTrigger:"#002140",bodyBg:d,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${c}px`,headerColor:l,footerPadding:`${r}px ${c}px`,footerBg:d,siderBg:"#001529",triggerHeight:s+a*2,triggerBg:"#002140",triggerColor:e,zeroTriggerWidth:s,zeroTriggerHeight:s,lightSiderBg:i,lightTriggerBg:i,lightTriggerColor:l}},u=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Q.ZP=(0,f.I$)("Layout",v=>[y(v)],p,{deprecatedTokens:u})},78857:function(it,Q,t){"use strict";t.d(Q,{J:function(){return v}});var n=t(59301),f=t(8654),y=t(62487),p=function(d,o){var s={};for(var l in d)Object.prototype.hasOwnProperty.call(d,l)&&o.indexOf(l)<0&&(s[l]=d[l]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(d);r<l.length;r++)o.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(d,l[r])&&(s[l[r]]=d[l[r]]);return s};const u=n.createContext(null),v=n.forwardRef((d,o)=>{const{children:s}=d,l=p(d,["children"]),r=n.useContext(u),a=n.useMemo(()=>Object.assign(Object.assign({},r),l),[r,l.prefixCls,l.mode,l.selectable,l.rootClassName]),e=(0,f.t4)(s),i=(0,f.x1)(o,e?(0,f.C4)(s):null);return n.createElement(u.Provider,{value:a},n.createElement(y.Z,{space:!0},e?n.cloneElement(s,{ref:i}):s))});Q.Z=u},93041:function(it,Q,t){"use strict";t.d(Q,{default:function(){return oe}});var n=t(59301),f=t(28321),y=t(24303),p=t(18785),u=t(92310),v=t.n(u),d=t(6089),o=t(2738),s=t(86641),l=t(22703),r=t(48755),a=t(83397),i=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),c=function(V,$){var T={};for(var ne in V)Object.prototype.hasOwnProperty.call(V,ne)&&$.indexOf(ne)<0&&(T[ne]=V[ne]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,ne=Object.getOwnPropertySymbols(V);Y<ne.length;Y++)$.indexOf(ne[Y])<0&&Object.prototype.propertyIsEnumerable.call(V,ne[Y])&&(T[ne[Y]]=V[ne[Y]]);return T},w=V=>{const{prefixCls:$,className:T,dashed:ne}=V,Y=c(V,["prefixCls","className","dashed"]),{getPrefixCls:ie}=n.useContext(r.E_),me=ie("menu",$),fe=v()({[`${me}-item-divider-dashed`]:!!ne},T);return n.createElement(f.iz,Object.assign({className:fe},Y))},A=t(11592),h=t(25399),_=V=>{var $;const{className:T,children:ne,icon:Y,title:ie,danger:me,extra:fe}=V,{prefixCls:ve,firstLevel:xe,direction:Ee,disableMenuItemTitleTooltip:Be,inlineCollapsed:De}=n.useContext(i),He=ee=>{const ue=ne==null?void 0:ne[0],pe=n.createElement("span",{className:v()(`${ve}-title-content`,{[`${ve}-title-content-with-extra`]:!!fe||fe===0})},ne);return(!Y||n.isValidElement(ne)&&ne.type==="span")&&ne&&ee&&xe&&typeof ue=="string"?n.createElement("div",{className:`${ve}-inline-collapsed-noicon`},ue.charAt(0)):pe},{siderCollapsed:$e}=n.useContext(y.D);let Pe=ie;typeof ie=="undefined"?Pe=xe?ne:"":ie===!1&&(Pe="");const Le={title:Pe};!$e&&!De&&(Le.title=null,Le.open=!1);const Fe=(0,A.Z)(ne).length;let F=n.createElement(f.ck,Object.assign({},(0,o.Z)(V,["title","icon","danger"]),{className:v()({[`${ve}-item-danger`]:me,[`${ve}-item-only-child`]:(Y?Fe+1:Fe)===1},T),title:typeof ie=="string"?ie:void 0}),(0,l.Tm)(Y,{className:v()(n.isValidElement(Y)?($=Y.props)===null||$===void 0?void 0:$.className:"",`${ve}-item-icon`)}),He(De));return Be||(F=n.createElement(h.Z,Object.assign({},Le,{placement:Ee==="rtl"?"left":"right",classNames:{root:`${ve}-inline-collapsed-tooltip`}}),F)),F},C=t(78857),b=t(36237),S=t(17835),x=t(63356),z=t(34961),P=t(46e3),K=t(34925),N=t(16931),k=t(51636),L=V=>{const{componentCls:$,motionDurationSlow:T,horizontalLineHeight:ne,colorSplit:Y,lineWidth:ie,lineType:me,itemPaddingInline:fe}=V;return{[`${$}-horizontal`]:{lineHeight:ne,border:0,borderBottom:`${(0,b.unit)(ie)} ${me} ${Y}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${$}-item, ${$}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:fe},[`> ${$}-item:hover,
|
|
|
> ${$}-item-active,
|
|
|
> ${$}-submenu ${$}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${$}-item, ${$}-submenu-title`]:{transition:[`border-color ${T}`,`background ${T}`].join(",")},[`${$}-submenu-arrow`]:{display:"none"}}}},R=V=>{let{componentCls:$,menuArrowOffset:T,calc:ne}=V;return{[`${$}-rtl`]:{direction:"rtl"},[`${$}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${$}-rtl${$}-vertical,
|
|
|
${$}-submenu-rtl ${$}-vertical`]:{[`${$}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,b.unit)(ne(T).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,b.unit)(T)})`}}}}};const O=V=>Object.assign({},(0,x.oN)(V));var I=(V,$)=>{const{componentCls:T,itemColor:ne,itemSelectedColor:Y,subMenuItemSelectedColor:ie,groupTitleColor:me,itemBg:fe,subMenuItemBg:ve,itemSelectedBg:xe,activeBarHeight:Ee,activeBarWidth:Be,activeBarBorderWidth:De,motionDurationSlow:He,motionEaseInOut:$e,motionEaseOut:Pe,itemPaddingInline:Le,motionDurationMid:Fe,itemHoverColor:F,lineType:ee,colorSplit:ue,itemDisabledColor:pe,dangerItemColor:Ie,dangerItemHoverColor:Ze,dangerItemSelectedColor:Ae,dangerItemActiveBg:Se,dangerItemSelectedBg:Ne,popupBg:Qe,itemHoverBg:We,itemActiveBg:Je,menuSubMenuBg:Te,horizontalItemSelectedColor:Ge,horizontalItemSelectedBg:Xe,horizontalItemBorderRadius:ge,horizontalItemHoverBg:ae}=V;return{[`${T}-${$}, ${T}-${$} > ${T}`]:{color:ne,background:fe,[`&${T}-root:focus-visible`]:Object.assign({},O(V)),[`${T}-item`]:{"&-group-title, &-extra":{color:me}},[`${T}-submenu-selected > ${T}-submenu-title`]:{color:ie},[`${T}-item, ${T}-submenu-title`]:{color:ne,[`&:not(${T}-item-disabled):focus-visible`]:Object.assign({},O(V))},[`${T}-item-disabled, ${T}-submenu-disabled`]:{color:`${pe} !important`},[`${T}-item:not(${T}-item-selected):not(${T}-submenu-selected)`]:{[`&:hover, > ${T}-submenu-title:hover`]:{color:F}},[`&:not(${T}-horizontal)`]:{[`${T}-item:not(${T}-item-selected)`]:{"&:hover":{backgroundColor:We},"&:active":{backgroundColor:Je}},[`${T}-submenu-title`]:{"&:hover":{backgroundColor:We},"&:active":{backgroundColor:Je}}},[`${T}-item-danger`]:{color:Ie,[`&${T}-item:hover`]:{[`&:not(${T}-item-selected):not(${T}-submenu-selected)`]:{color:Ze}},[`&${T}-item:active`]:{background:Se}},[`${T}-item a`]:{"&, &:hover":{color:"inherit"}},[`${T}-item-selected`]:{color:Y,[`&${T}-item-danger`]:{color:Ae},"a, a:hover":{color:"inherit"}},[`& ${T}-item-selected`]:{backgroundColor:xe,[`&${T}-item-danger`]:{backgroundColor:Ne}},[`&${T}-submenu > ${T}`]:{backgroundColor:Te},[`&${T}-popup > ${T}`]:{backgroundColor:Qe},[`&${T}-submenu-popup > ${T}`]:{backgroundColor:Qe},[`&${T}-horizontal`]:Object.assign(Object.assign({},$==="dark"?{borderBottom:0}:{}),{[`> ${T}-item, > ${T}-submenu`]:{top:De,marginTop:V.calc(De).mul(-1).equal(),marginBottom:0,borderRadius:ge,"&::after":{position:"absolute",insetInline:Le,bottom:0,borderBottom:`${(0,b.unit)(Ee)} solid transparent`,transition:`border-color ${He} ${$e}`,content:'""'},"&:hover, &-active, &-open":{background:ae,"&::after":{borderBottomWidth:Ee,borderBottomColor:Ge}},"&-selected":{color:Ge,backgroundColor:Xe,"&:hover":{backgroundColor:Xe},"&::after":{borderBottomWidth:Ee,borderBottomColor:Ge}}}}),[`&${T}-root`]:{[`&${T}-inline, &${T}-vertical`]:{borderInlineEnd:`${(0,b.unit)(De)} ${ee} ${ue}`}},[`&${T}-inline`]:{[`${T}-sub${T}-inline`]:{background:ve},[`${T}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,b.unit)(Be)} solid ${Y}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Fe} ${Pe}`,`opacity ${Fe} ${Pe}`].join(","),content:'""'},[`&${T}-item-danger`]:{"&::after":{borderInlineEndColor:Ae}}},[`${T}-selected, ${T}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Fe} ${$e}`,`opacity ${Fe} ${$e}`].join(",")}}}}}};const J=V=>{const{componentCls:$,itemHeight:T,itemMarginInline:ne,padding:Y,menuArrowSize:ie,marginXS:me,itemMarginBlock:fe,itemWidth:ve,itemPaddingInline:xe}=V,Ee=V.calc(ie).add(Y).add(me).equal();return{[`${$}-item`]:{position:"relative",overflow:"hidden"},[`${$}-item, ${$}-submenu-title`]:{height:T,lineHeight:(0,b.unit)(T),paddingInline:xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ne,marginBlock:fe,width:ve},[`> ${$}-item,
|
|
|
> ${$}-submenu > ${$}-submenu-title`]:{height:T,lineHeight:(0,b.unit)(T)},[`${$}-item-group-list ${$}-submenu-title,
|
|
|
${$}-submenu-title`]:{paddingInlineEnd:Ee}}};var le=V=>{const{componentCls:$,iconCls:T,itemHeight:ne,colorTextLightSolid:Y,dropdownWidth:ie,controlHeightLG:me,motionEaseOut:fe,paddingXL:ve,itemMarginInline:xe,fontSizeLG:Ee,motionDurationFast:Be,motionDurationSlow:De,paddingXS:He,boxShadowSecondary:$e,collapsedWidth:Pe,collapsedIconSize:Le}=V,Fe={height:ne,lineHeight:(0,b.unit)(ne),listStylePosition:"inside",listStyleType:"disc"};return[{[$]:{"&-inline, &-vertical":Object.assign({[`&${$}-root`]:{boxShadow:"none"}},J(V))},[`${$}-submenu-popup`]:{[`${$}-vertical`]:Object.assign(Object.assign({},J(V)),{boxShadow:$e})}},{[`${$}-submenu-popup ${$}-vertical${$}-sub`]:{minWidth:ie,maxHeight:`calc(100vh - ${(0,b.unit)(V.calc(me).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${$}-inline`]:{width:"100%",[`&${$}-root`]:{[`${$}-item, ${$}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${De}`,`background ${De}`,`padding ${Be} ${fe}`].join(","),[`> ${$}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${$}-sub${$}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${$}-submenu > ${$}-submenu-title`]:Fe,[`& ${$}-item-group-title`]:{paddingInlineStart:ve}},[`${$}-item`]:Fe}},{[`${$}-inline-collapsed`]:{width:Pe,[`&${$}-root`]:{[`${$}-item, ${$}-submenu ${$}-submenu-title`]:{[`> ${$}-inline-collapsed-noicon`]:{fontSize:Ee,textAlign:"center"}}},[`> ${$}-item,
|
|
|
> ${$}-item-group > ${$}-item-group-list > ${$}-item,
|
|
|
> ${$}-item-group > ${$}-item-group-list > ${$}-submenu > ${$}-submenu-title,
|
|
|
> ${$}-submenu > ${$}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,b.unit)(V.calc(Le).div(2).equal())} - ${(0,b.unit)(xe)})`,textOverflow:"clip",[`
|
|
|
${$}-submenu-arrow,
|
|
|
${$}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${$}-item-icon, ${T}`]:{margin:0,fontSize:Le,lineHeight:(0,b.unit)(ne),"+ span":{display:"inline-block",opacity:0}}},[`${$}-item-icon, ${T}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${$}-item-icon, ${T}`]:{display:"none"},"a, a:hover":{color:Y}},[`${$}-item-group-title`]:Object.assign(Object.assign({},x.vS),{paddingInline:He})}}]};const ye=V=>{const{componentCls:$,motionDurationSlow:T,motionDurationMid:ne,motionEaseInOut:Y,motionEaseOut:ie,iconCls:me,iconSize:fe,iconMarginInlineEnd:ve}=V;return{[`${$}-item, ${$}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${T}`,`background ${T}`,`padding calc(${T} + 0.1s) ${Y}`].join(","),[`${$}-item-icon, ${me}`]:{minWidth:fe,fontSize:fe,transition:[`font-size ${ne} ${ie}`,`margin ${T} ${Y}`,`color ${T}`].join(","),"+ span":{marginInlineStart:ve,opacity:1,transition:[`opacity ${T} ${Y}`,`margin ${T}`,`color ${T}`].join(",")}},[`${$}-item-icon`]:Object.assign({},(0,x.Ro)()),[`&${$}-item-only-child`]:{[`> ${me}, > ${$}-item-icon`]:{marginInlineEnd:0}}},[`${$}-item-disabled, ${$}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${$}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},W=V=>{const{componentCls:$,motionDurationSlow:T,motionEaseInOut:ne,borderRadius:Y,menuArrowSize:ie,menuArrowOffset:me}=V;return{[`${$}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:V.margin,width:ie,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${T} ${ne}, opacity ${T}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:V.calc(ie).mul(.6).equal(),height:V.calc(ie).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Y,transition:[`background ${T} ${ne}`,`transform ${T} ${ne}`,`top ${T} ${ne}`,`color ${T} ${ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,b.unit)(V.calc(me).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,b.unit)(me)})`}}}}},H=V=>{const{antCls:$,componentCls:T,fontSize:ne,motionDurationSlow:Y,motionDurationMid:ie,motionEaseInOut:me,paddingXS:fe,padding:ve,colorSplit:xe,lineWidth:Ee,zIndexPopup:Be,borderRadiusLG:De,subMenuItemBorderRadius:He,menuArrowSize:$e,menuArrowOffset:Pe,lineType:Le,groupTitleLineHeight:Fe,groupTitleFontSize:F}=V;return[{"":{[T]:Object.assign(Object.assign({},(0,x.dF)()),{"&-hidden":{display:"none"}})},[`${T}-submenu-hidden`]:{display:"none"}},{[T]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(V)),(0,x.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Y} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${T}-item`]:{flex:"none"}},[`${T}-item, ${T}-submenu, ${T}-submenu-title`]:{borderRadius:V.itemBorderRadius},[`${T}-item-group-title`]:{padding:`${(0,b.unit)(fe)} ${(0,b.unit)(ve)}`,fontSize:F,lineHeight:Fe,transition:`all ${Y}`},[`&-horizontal ${T}-submenu`]:{transition:[`border-color ${Y} ${me}`,`background ${Y} ${me}`].join(",")},[`${T}-submenu, ${T}-submenu-inline`]:{transition:[`border-color ${Y} ${me}`,`background ${Y} ${me}`,`padding ${ie} ${me}`].join(",")},[`${T}-submenu ${T}-sub`]:{cursor:"initial",transition:[`background ${Y} ${me}`,`padding ${Y} ${me}`].join(",")},[`${T}-title-content`]:{transition:`color ${Y}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${$}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${T}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:V.padding}},[`${T}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${T}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Le,borderWidth:0,borderTopWidth:Ee,marginBlock:Ee,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ye(V)),{[`${T}-item-group`]:{[`${T}-item-group-list`]:{margin:0,padding:0,[`${T}-item, ${T}-submenu-title`]:{paddingInline:`${(0,b.unit)(V.calc(ne).mul(2).equal())} ${(0,b.unit)(ve)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Be,borderRadius:De,boxShadow:"none",transformOrigin:"0 0",[`&${T}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${T}`]:Object.assign(Object.assign(Object.assign({borderRadius:De},ye(V)),W(V)),{[`${T}-item, ${T}-submenu > ${T}-submenu-title`]:{borderRadius:He},[`${T}-submenu-title::after`]:{transition:`transform ${Y} ${me}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:V.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:V.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:V.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:V.paddingXS}}}),W(V)),{[`&-inline-collapsed ${T}-submenu-arrow,
|
|
|
&-inline ${T}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,b.unit)(Pe)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,b.unit)(V.calc(Pe).mul(-1).equal())})`}},[`${T}-submenu-open${T}-submenu-inline > ${T}-submenu-title > ${T}-submenu-arrow`]:{transform:`translateY(${(0,b.unit)(V.calc($e).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,b.unit)(V.calc(Pe).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,b.unit)(Pe)})`}}})},{[`${$}-layout-header`]:{[T]:{lineHeight:"inherit"}}}]},Z=V=>{var $,T,ne;const{colorPrimary:Y,colorError:ie,colorTextDisabled:me,colorErrorBg:fe,colorText:ve,colorTextDescription:xe,colorBgContainer:Ee,colorFillAlter:Be,colorFillContent:De,lineWidth:He,lineWidthBold:$e,controlItemBgActive:Pe,colorBgTextHover:Le,controlHeightLG:Fe,lineHeight:F,colorBgElevated:ee,marginXXS:ue,padding:pe,fontSize:Ie,controlHeightSM:Ze,fontSizeLG:Ae,colorTextLightSolid:Se,colorErrorHover:Ne}=V,Qe=($=V.activeBarWidth)!==null&&$!==void 0?$:0,We=(T=V.activeBarBorderWidth)!==null&&T!==void 0?T:He,Je=(ne=V.itemMarginInline)!==null&&ne!==void 0?ne:V.marginXXS,Te=new S.FastColor(Se).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:V.zIndexPopupBase+50,radiusItem:V.borderRadiusLG,itemBorderRadius:V.borderRadiusLG,radiusSubMenuItem:V.borderRadiusSM,subMenuItemBorderRadius:V.borderRadiusSM,colorItemText:ve,itemColor:ve,colorItemTextHover:ve,itemHoverColor:ve,colorItemTextHoverHorizontal:Y,horizontalItemHoverColor:Y,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:Y,itemSelectedColor:Y,subMenuItemSelectedColor:Y,colorItemTextSelectedHorizontal:Y,horizontalItemSelectedColor:Y,colorItemBg:Ee,itemBg:Ee,colorItemBgHover:Le,itemHoverBg:Le,colorItemBgActive:De,itemActiveBg:Pe,colorSubItemBg:Be,subMenuItemBg:Be,colorItemBgSelected:Pe,itemSelectedBg:Pe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Qe,colorActiveBarHeight:$e,activeBarHeight:$e,colorActiveBarBorderSize:He,activeBarBorderWidth:We,colorItemTextDisabled:me,itemDisabledColor:me,colorDangerItemText:ie,dangerItemColor:ie,colorDangerItemTextHover:ie,dangerItemHoverColor:ie,colorDangerItemTextSelected:ie,dangerItemSelectedColor:ie,colorDangerItemBgActive:fe,dangerItemActiveBg:fe,colorDangerItemBgSelected:fe,dangerItemSelectedBg:fe,itemMarginInline:Je,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Fe,groupTitleLineHeight:F,collapsedWidth:Fe*2,popupBg:ee,itemMarginBlock:ue,itemPaddingInline:pe,horizontalLineHeight:`${Fe*1.15}px`,iconSize:Ie,iconMarginInlineEnd:Ze-Ie,collapsedIconSize:Ae,groupTitleFontSize:Ie,darkItemDisabledColor:new S.FastColor(Se).setA(.25).toRgbString(),darkItemColor:Te,darkDangerItemColor:ie,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Se,darkItemSelectedBg:Y,darkDangerItemSelectedBg:ie,darkItemHoverBg:"transparent",darkGroupTitleColor:Te,darkItemHoverColor:Se,darkDangerItemHoverColor:Ne,darkDangerItemSelectedColor:Se,darkDangerItemActiveBg:ie,itemWidth:Qe?`calc(100% + ${We}px)`:`calc(100% - ${Je*2}px)`}};var te=function(V){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,N.I$)("Menu",Y=>{const{colorBgElevated:ie,controlHeightLG:me,fontSize:fe,darkItemColor:ve,darkDangerItemColor:xe,darkItemBg:Ee,darkSubMenuItemBg:Be,darkItemSelectedColor:De,darkItemSelectedBg:He,darkDangerItemSelectedBg:$e,darkItemHoverBg:Pe,darkGroupTitleColor:Le,darkItemHoverColor:Fe,darkItemDisabledColor:F,darkDangerItemHoverColor:ee,darkDangerItemSelectedColor:ue,darkDangerItemActiveBg:pe,popupBg:Ie,darkPopupBg:Ze}=Y,Ae=Y.calc(fe).div(7).mul(5).equal(),Se=(0,k.mergeToken)(Y,{menuArrowSize:Ae,menuHorizontalHeight:Y.calc(me).mul(1.15).equal(),menuArrowOffset:Y.calc(Ae).mul(.25).equal(),menuSubMenuBg:ie,calc:Y.calc,popupBg:Ie}),Ne=(0,k.mergeToken)(Se,{itemColor:ve,itemHoverColor:Fe,groupTitleColor:Le,itemSelectedColor:De,subMenuItemSelectedColor:De,itemBg:Ee,popupBg:Ze,subMenuItemBg:Be,itemActiveBg:"transparent",itemSelectedBg:He,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pe,itemDisabledColor:F,dangerItemColor:xe,dangerItemHoverColor:ee,dangerItemSelectedColor:ue,dangerItemActiveBg:pe,dangerItemSelectedBg:$e,menuSubMenuBg:Be,horizontalItemSelectedColor:De,horizontalItemSelectedBg:He});return[H(Se),L(Se),le(Se),I(Se,"light"),I(Ne,"dark"),R(Se),(0,z.Z)(Se),(0,P.oN)(Se,"slide-up"),(0,P.oN)(Se,"slide-down"),(0,K._y)(Se,"zoom-big")]},Z,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:T,unitless:{groupTitleLineHeight:!0}})(V,$)},_e=t(75030),G=V=>{var $;const{popupClassName:T,icon:ne,title:Y,theme:ie}=V,me=n.useContext(i),{prefixCls:fe,inlineCollapsed:ve,theme:xe}=me,Ee=(0,f.Xl)();let Be;if(!ne)Be=ve&&!Ee.length&&Y&&typeof Y=="string"?n.createElement("div",{className:`${fe}-inline-collapsed-noicon`},Y.charAt(0)):n.createElement("span",{className:`${fe}-title-content`},Y);else{const $e=n.isValidElement(Y)&&Y.type==="span";Be=n.createElement(n.Fragment,null,(0,l.Tm)(ne,{className:v()(n.isValidElement(ne)?($=ne.props)===null||$===void 0?void 0:$.className:"",`${fe}-item-icon`)}),$e?Y:n.createElement("span",{className:`${fe}-title-content`},Y))}const De=n.useMemo(()=>Object.assign(Object.assign({},me),{firstLevel:!1}),[me]),[He]=(0,_e.Cn)("Menu");return n.createElement(i.Provider,{value:De},n.createElement(f.Wd,Object.assign({},(0,o.Z)(V,["icon"]),{title:Be,popupClassName:v()(fe,T,`${fe}-${ie||xe}`),popupStyle:Object.assign({zIndex:He},V.popupStyle)})))},Ce=function(V,$){var T={};for(var ne in V)Object.prototype.hasOwnProperty.call(V,ne)&&$.indexOf(ne)<0&&(T[ne]=V[ne]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,ne=Object.getOwnPropertySymbols(V);Y<ne.length;Y++)$.indexOf(ne[Y])<0&&Object.prototype.propertyIsEnumerable.call(V,ne[Y])&&(T[ne[Y]]=V[ne[Y]]);return T};function X(V){return V===null||V===!1}const q={item:_,submenu:G,divider:w};var U=(0,n.forwardRef)((V,$)=>{var T;const ne=n.useContext(C.Z),Y=ne||{},{getPrefixCls:ie,getPopupContainer:me,direction:fe,menu:ve}=n.useContext(r.E_),xe=ie(),{prefixCls:Ee,className:Be,style:De,theme:He="light",expandIcon:$e,_internalDisableMenuItemTitleTooltip:Pe,inlineCollapsed:Le,siderCollapsed:Fe,rootClassName:F,mode:ee,selectable:ue,onClick:pe,overflowedIndicatorPopupClassName:Ie}=V,Ze=Ce(V,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ae=(0,o.Z)(Ze,["collapsedWidth"]);(T=Y.validator)===null||T===void 0||T.call(Y,{mode:ee});const Se=(0,d.Z)(function(){var ze;pe==null||pe.apply(void 0,arguments),(ze=Y.onClick)===null||ze===void 0||ze.call(Y)}),Ne=Y.mode||ee,Qe=ue!=null?ue:Y.selectable,We=Le!=null?Le:Fe,Je={horizontal:{motionName:`${xe}-slide-up`},inline:(0,s.Z)(xe),other:{motionName:`${xe}-zoom-big`}},Te=ie("menu",Ee||Y.prefixCls),Ge=(0,a.Z)(Te),[Xe,ge,ae]=te(Te,Ge,!ne),he=v()(`${Te}-${He}`,ve==null?void 0:ve.className,Be),de=n.useMemo(()=>{var ze,ke;if(typeof $e=="function"||X($e))return $e||null;if(typeof Y.expandIcon=="function"||X(Y.expandIcon))return Y.expandIcon||null;if(typeof(ve==null?void 0:ve.expandIcon)=="function"||X(ve==null?void 0:ve.expandIcon))return(ve==null?void 0:ve.expandIcon)||null;const Ye=(ze=$e!=null?$e:Y==null?void 0:Y.expandIcon)!==null&&ze!==void 0?ze:ve==null?void 0:ve.expandIcon;return(0,l.Tm)(Ye,{className:v()(`${Te}-submenu-expand-icon`,n.isValidElement(Ye)?(ke=Ye.props)===null||ke===void 0?void 0:ke.className:void 0)})},[$e,Y==null?void 0:Y.expandIcon,ve==null?void 0:ve.expandIcon,Te]),Ke=n.useMemo(()=>({prefixCls:Te,inlineCollapsed:We||!1,direction:fe,firstLevel:!0,theme:He,mode:Ne,disableMenuItemTitleTooltip:Pe}),[Te,We,fe,Pe,He]);return Xe(n.createElement(C.Z.Provider,{value:null},n.createElement(i.Provider,{value:Ke},n.createElement(f.ZP,Object.assign({getPopupContainer:me,overflowedIndicator:n.createElement(p.Z,null),overflowedIndicatorPopupClassName:v()(Te,`${Te}-${He}`,Ie),mode:Ne,selectable:Qe,onClick:Se},Ae,{inlineCollapsed:We,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),De),className:he,prefixCls:Te,direction:fe,defaultMotions:Je,expandIcon:de,ref:$,rootClassName:v()(F,ge,Y.rootClassName,ae,Ge),_internalComponents:q})))))});const j=(0,n.forwardRef)((V,$)=>{const T=(0,n.useRef)(null),ne=n.useContext(y.D);return(0,n.useImperativeHandle)($,()=>({menu:T.current,focus:Y=>{var ie;(ie=T.current)===null||ie===void 0||ie.focus(Y)}})),n.createElement(U,Object.assign({ref:T},V,ne))});j.Item=_,j.SubMenu=G,j.Divider=w,j.ItemGroup=f.BW;var oe=j},89787:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return Fe}});var n=t(59301),f=t(17835),y=t(29679),p=t(40001),u=t(19248),v=t(99267),d=t(92310),o=t.n(d),s=t(2738),l=t(48755),r=t(60499),a=t(85899),e=t(42244),i={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},c=function(){var ee=(0,n.useRef)([]),ue=(0,n.useRef)(null);return(0,n.useEffect)(function(){var pe=Date.now(),Ie=!1;ee.current.forEach(function(Ze){if(Ze){Ie=!0;var Ae=Ze.style;Ae.transitionDuration=".3s, .3s, .3s, .06s",ue.current&&pe-ue.current<100&&(Ae.transitionDuration="0s, 0s")}}),Ie&&(ue.current=Date.now())}),ee.current},m=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],w=function(ee){var ue=(0,a.Z)((0,a.Z)({},i),ee),pe=ue.className,Ie=ue.percent,Ze=ue.prefixCls,Ae=ue.strokeColor,Se=ue.strokeLinecap,Ne=ue.strokeWidth,Qe=ue.style,We=ue.trailColor,Je=ue.trailWidth,Te=ue.transition,Ge=(0,e.Z)(ue,m);delete Ge.gapPosition;var Xe=Array.isArray(Ie)?Ie:[Ie],ge=Array.isArray(Ae)?Ae:[Ae],ae=c(),he=Ne/2,de=100-Ne/2,Ke="M ".concat(Se==="round"?he:0,",").concat(he,`
|
|
|
L `).concat(Se==="round"?de:100,",").concat(he),ze="0 0 100 ".concat(Ne),ke=0;return n.createElement("svg",(0,r.Z)({className:o()("".concat(Ze,"-line"),pe),viewBox:ze,preserveAspectRatio:"none",style:Qe},Ge),n.createElement("path",{className:"".concat(Ze,"-line-trail"),d:Ke,strokeLinecap:Se,stroke:We,strokeWidth:Je||Ne,fillOpacity:"0"}),Xe.map(function(Ye,tt){var st=1;switch(Se){case"round":st=1-Ne/100;break;case"square":st=1-Ne/2/100;break;default:st=1;break}var at={strokeDasharray:"".concat(Ye*st,"px, 100px"),strokeDashoffset:"-".concat(ke,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ve=ge[tt]||ge[ge.length-1];return ke+=Ye,n.createElement("path",{key:tt,className:"".concat(Ze,"-line-path"),d:Ke,strokeLinecap:Se,stroke:Ve,strokeWidth:Ne,fillOpacity:"0",ref:function(dt){ae[tt]=dt},style:at})}))},A=w,h=t(43749),g=t(72190),_=t(47273),C=0,b=(0,_.Z)();function S(){var F;return b?(F=C,C+=1):F="TEST_OR_SSR",F}var x=function(F){var ee=n.useState(),ue=(0,g.Z)(ee,2),pe=ue[0],Ie=ue[1];return n.useEffect(function(){Ie("rc_progress_".concat(S()))},[]),F||pe},z=function(ee){var ue=ee.bg,pe=ee.children;return n.createElement("div",{style:{width:"100%",height:"100%",background:ue}},pe)};function P(F,ee){return Object.keys(F).map(function(ue){var pe=parseFloat(ue),Ie="".concat(Math.floor(pe*ee),"%");return"".concat(F[ue]," ").concat(Ie)})}var K=n.forwardRef(function(F,ee){var ue=F.prefixCls,pe=F.color,Ie=F.gradientId,Ze=F.radius,Ae=F.style,Se=F.ptg,Ne=F.strokeLinecap,Qe=F.strokeWidth,We=F.size,Je=F.gapDegree,Te=pe&&(0,h.Z)(pe)==="object",Ge=Te?"#FFF":void 0,Xe=We/2,ge=n.createElement("circle",{className:"".concat(ue,"-circle-path"),r:Ze,cx:Xe,cy:Xe,stroke:Ge,strokeLinecap:Ne,strokeWidth:Qe,opacity:Se===0?0:1,style:Ae,ref:ee});if(!Te)return ge;var ae="".concat(Ie,"-conic"),he=Je?"".concat(180+Je/2,"deg"):"0deg",de=P(pe,(360-Je)/360),Ke=P(pe,1),ze="conic-gradient(from ".concat(he,", ").concat(de.join(", "),")"),ke="linear-gradient(to ".concat(Je?"bottom":"top",", ").concat(Ke.join(", "),")");return n.createElement(n.Fragment,null,n.createElement("mask",{id:ae},ge),n.createElement("foreignObject",{x:0,y:0,width:We,height:We,mask:"url(#".concat(ae,")")},n.createElement(z,{bg:ke},n.createElement(z,{bg:ze}))))}),N=K,k=100,D=function(ee,ue,pe,Ie,Ze,Ae,Se,Ne,Qe,We){var Je=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Te=pe/100*360*((360-Ae)/360),Ge=Ae===0?0:{bottom:0,top:180,left:90,right:-90}[Se],Xe=(100-Ie)/100*ue;Qe==="round"&&Ie!==100&&(Xe+=We/2,Xe>=ue&&(Xe=ue-.01));var ge=k/2;return{stroke:typeof Ne=="string"?Ne:void 0,strokeDasharray:"".concat(ue,"px ").concat(ee),strokeDashoffset:Xe+Je,transform:"rotate(".concat(Ze+Te+Ge,"deg)"),transformOrigin:"".concat(ge,"px ").concat(ge,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},L=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function E(F){var ee=F!=null?F:[];return Array.isArray(ee)?ee:[ee]}var R=function(ee){var ue=(0,a.Z)((0,a.Z)({},i),ee),pe=ue.id,Ie=ue.prefixCls,Ze=ue.steps,Ae=ue.strokeWidth,Se=ue.trailWidth,Ne=ue.gapDegree,Qe=Ne===void 0?0:Ne,We=ue.gapPosition,Je=ue.trailColor,Te=ue.strokeLinecap,Ge=ue.style,Xe=ue.className,ge=ue.strokeColor,ae=ue.percent,he=(0,e.Z)(ue,L),de=k/2,Ke=x(pe),ze="".concat(Ke,"-gradient"),ke=de-Ae/2,Ye=Math.PI*2*ke,tt=Qe>0?90+Qe/2:-90,st=Ye*((360-Qe)/360),at=(0,h.Z)(Ze)==="object"?Ze:{count:Ze,gap:2},Ve=at.count,ut=at.gap,dt=E(ae),rt=E(ge),qe=rt.find(function(jt){return jt&&(0,h.Z)(jt)==="object"}),ot=qe&&(0,h.Z)(qe)==="object",Ue=ot?"butt":Te,gt=D(Ye,st,0,100,tt,Qe,We,Je,Ue,Ae),xt=c(),Ct=function(){var bt=0;return dt.map(function(Wt,Mt){var xr=rt[Mt]||rt[rt.length-1],Nt=D(Ye,st,bt,Wt,tt,Qe,We,xr,Ue,Ae);return bt+=Wt,n.createElement(N,{key:Mt,color:xr,ptg:Wt,radius:ke,prefixCls:Ie,gradientId:ze,style:Nt,strokeLinecap:Ue,strokeWidth:Ae,gapDegree:Qe,ref:function(Er){xt[Mt]=Er},size:k})}).reverse()},Pt=function(){var bt=Math.round(Ve*(dt[0]/100)),Wt=100/Ve,Mt=0;return new Array(Ve).fill(null).map(function(xr,Nt){var tr=Nt<=bt-1?rt[0]:Je,Er=tr&&(0,h.Z)(tr)==="object"?"url(#".concat(ze,")"):void 0,Jt=D(Ye,st,Mt,Wt,tt,Qe,We,tr,"butt",Ae,ut);return Mt+=(st-Jt.strokeDashoffset+ut)*100/st,n.createElement("circle",{key:Nt,className:"".concat(Ie,"-circle-path"),r:ke,cx:de,cy:de,stroke:Er,strokeWidth:Ae,opacity:1,style:Jt,ref:function(ce){xt[Nt]=ce}})})};return n.createElement("svg",(0,r.Z)({className:o()("".concat(Ie,"-circle"),Xe),viewBox:"0 0 ".concat(k," ").concat(k),style:Ge,id:pe,role:"presentation"},he),!Ve&&n.createElement("circle",{className:"".concat(Ie,"-circle-trail"),r:ke,cx:de,cy:de,stroke:Je,strokeLinecap:Ue,strokeWidth:Se||Ae,style:gt}),Ve?Pt():Ct())},O=R,M={Line:A,Circle:O},I=t(25399),J=t(68361);function re(F){return!F||F<0?0:F>100?100:F}function le(F){let{success:ee,successPercent:ue}=F,pe=ue;return ee&&"progress"in ee&&(pe=ee.progress),ee&&"percent"in ee&&(pe=ee.percent),pe}const ye=F=>{let{percent:ee,success:ue,successPercent:pe}=F;const Ie=re(le({success:ue,successPercent:pe}));return[Ie,re(re(ee)-Ie)]},W=F=>{let{success:ee={},strokeColor:ue}=F;const{strokeColor:pe}=ee;return[pe||J.presetPrimaryColors.green,ue||null]},H=(F,ee,ue)=>{var pe,Ie,Ze,Ae;let Se=-1,Ne=-1;if(ee==="step"){const Qe=ue.steps,We=ue.strokeWidth;typeof F=="string"||typeof F=="undefined"?(Se=F==="small"?2:14,Ne=We!=null?We:8):typeof F=="number"?[Se,Ne]=[F,F]:[Se=14,Ne=8]=Array.isArray(F)?F:[F.width,F.height],Se*=Qe}else if(ee==="line"){const Qe=ue==null?void 0:ue.strokeWidth;typeof F=="string"||typeof F=="undefined"?Ne=Qe||(F==="small"?6:8):typeof F=="number"?[Se,Ne]=[F,F]:[Se=-1,Ne=8]=Array.isArray(F)?F:[F.width,F.height]}else(ee==="circle"||ee==="dashboard")&&(typeof F=="string"||typeof F=="undefined"?[Se,Ne]=F==="small"?[60,60]:[120,120]:typeof F=="number"?[Se,Ne]=[F,F]:Array.isArray(F)&&(Se=(Ie=(pe=F[0])!==null&&pe!==void 0?pe:F[1])!==null&&Ie!==void 0?Ie:120,Ne=(Ae=(Ze=F[0])!==null&&Ze!==void 0?Ze:F[1])!==null&&Ae!==void 0?Ae:120));return[Se,Ne]},Z=3,te=F=>Z/F*100;var se=F=>{const{prefixCls:ee,trailColor:ue=null,strokeLinecap:pe="round",gapPosition:Ie,gapDegree:Ze,width:Ae=120,type:Se,children:Ne,success:Qe,size:We=Ae,steps:Je}=F,[Te,Ge]=H(We,"circle");let{strokeWidth:Xe}=F;Xe===void 0&&(Xe=Math.max(te(Te),6));const ge={width:Te,height:Ge,fontSize:Te*.15+6},ae=n.useMemo(()=>{if(Ze||Ze===0)return Ze;if(Se==="dashboard")return 75},[Ze,Se]),he=ye(F),de=Ie||Se==="dashboard"&&"bottom"||void 0,Ke=Object.prototype.toString.call(F.strokeColor)==="[object Object]",ze=W({success:Qe,strokeColor:F.strokeColor}),ke=o()(`${ee}-inner`,{[`${ee}-circle-gradient`]:Ke}),Ye=n.createElement(O,{steps:Je,percent:Je?he[1]:he,strokeWidth:Xe,trailWidth:Xe,strokeColor:Je?ze[1]:ze,strokeLinecap:pe,trailColor:ue,prefixCls:ee,gapDegree:ae,gapPosition:de}),tt=Te<=20,st=n.createElement("div",{className:ke,style:ge},Ye,!tt&&Ne);return tt?n.createElement(I.Z,{title:Ne},st):st},G=t(36237),Ce=t(63356),X=t(16931),q=t(51636);const B="--progress-line-stroke-color",U="--progress-percent",j=F=>{const ee=F?"100%":"-100%";return new G.Keyframes(`antProgress${F?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},oe=F=>{const{componentCls:ee,iconCls:ue}=F;return{[ee]:Object.assign(Object.assign({},(0,Ce.Wf)(F)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:F.fontSize},[`${ee}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:F.remainingColor,borderRadius:F.lineBorderRadius},[`${ee}-inner:not(${ee}-circle-gradient)`]:{[`${ee}-circle-path`]:{stroke:F.defaultColor}},[`${ee}-success-bg, ${ee}-bg`]:{position:"relative",background:F.defaultColor,borderRadius:F.lineBorderRadius,transition:`all ${F.motionDurationSlow} ${F.motionEaseInOutCirc}`},[`${ee}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ee}-text`]:{width:"max-content",marginInlineStart:0,marginTop:F.marginXXS}},[`${ee}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${B})`]},height:"100%",width:`calc(1 / var(${U}) * 100%)`,display:"block"},[`&${ee}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ee}-text-inner`]:{color:F.colorWhite,[`&${ee}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:F.colorSuccess},[`${ee}-text`]:{display:"inline-block",marginInlineStart:F.marginXS,color:F.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ue]:{fontSize:F.fontSize},[`&${ee}-text-outer`]:{width:"max-content"},[`&${ee}-text-outer${ee}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:F.marginXS}},[`${ee}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,G.unit)(F.paddingXXS)}`,[`&${ee}-text-start`]:{justifyContent:"start"},[`&${ee}-text-end`]:{justifyContent:"end"}},[`&${ee}-status-active`]:{[`${ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:F.colorBgContainer,borderRadius:F.lineBorderRadius,opacity:0,animationName:j(),animationDuration:F.progressActiveMotionDuration,animationTimingFunction:F.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ee}-rtl${ee}-status-active`]:{[`${ee}-bg::before`]:{animationName:j(!0)}},[`&${ee}-status-exception`]:{[`${ee}-bg`]:{backgroundColor:F.colorError},[`${ee}-text`]:{color:F.colorError}},[`&${ee}-status-exception ${ee}-inner:not(${ee}-circle-gradient)`]:{[`${ee}-circle-path`]:{stroke:F.colorError}},[`&${ee}-status-success`]:{[`${ee}-bg`]:{backgroundColor:F.colorSuccess},[`${ee}-text`]:{color:F.colorSuccess}},[`&${ee}-status-success ${ee}-inner:not(${ee}-circle-gradient)`]:{[`${ee}-circle-path`]:{stroke:F.colorSuccess}}})}},V=F=>{const{componentCls:ee,iconCls:ue}=F;return{[ee]:{[`${ee}-circle-trail`]:{stroke:F.remainingColor},[`&${ee}-circle ${ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ee}-circle ${ee}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:F.circleTextColor,fontSize:F.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ue]:{fontSize:F.circleIconFontSize}},[`${ee}-circle&-status-exception`]:{[`${ee}-text`]:{color:F.colorError}},[`${ee}-circle&-status-success`]:{[`${ee}-text`]:{color:F.colorSuccess}}},[`${ee}-inline-circle`]:{lineHeight:1,[`${ee}-inner`]:{verticalAlign:"bottom"}}}},$=F=>{const{componentCls:ee}=F;return{[ee]:{[`${ee}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:F.progressStepMinWidth,marginInlineEnd:F.progressStepMarginInlineEnd,backgroundColor:F.remainingColor,transition:`all ${F.motionDurationSlow}`,"&-active":{backgroundColor:F.defaultColor}}}}}},T=F=>{const{componentCls:ee,iconCls:ue}=F;return{[ee]:{[`${ee}-small&-line, ${ee}-small&-line ${ee}-text ${ue}`]:{fontSize:F.fontSizeSM}}}},ne=F=>({circleTextColor:F.colorText,defaultColor:F.colorInfo,remainingColor:F.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${F.fontSize/F.fontSizeSM}em`});var Y=(0,X.I$)("Progress",F=>{const ee=F.calc(F.marginXXS).div(2).equal(),ue=(0,q.mergeToken)(F,{progressStepMarginInlineEnd:ee,progressStepMinWidth:ee,progressActiveMotionDuration:"2.4s"});return[oe(ue),V(ue),$(ue),T(ue)]},ne),ie=function(F,ee){var ue={};for(var pe in F)Object.prototype.hasOwnProperty.call(F,pe)&&ee.indexOf(pe)<0&&(ue[pe]=F[pe]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pe=Object.getOwnPropertySymbols(F);Ie<pe.length;Ie++)ee.indexOf(pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(F,pe[Ie])&&(ue[pe[Ie]]=F[pe[Ie]]);return ue};const me=F=>{let ee=[];return Object.keys(F).forEach(ue=>{const pe=parseFloat(ue.replace(/%/g,""));Number.isNaN(pe)||ee.push({key:pe,value:F[ue]})}),ee=ee.sort((ue,pe)=>ue.key-pe.key),ee.map(ue=>{let{key:pe,value:Ie}=ue;return`${Ie} ${pe}%`}).join(", ")},fe=(F,ee)=>{const{from:ue=J.presetPrimaryColors.blue,to:pe=J.presetPrimaryColors.blue,direction:Ie=ee==="rtl"?"to left":"to right"}=F,Ze=ie(F,["from","to","direction"]);if(Object.keys(Ze).length!==0){const Se=me(Ze),Ne=`linear-gradient(${Ie}, ${Se})`;return{background:Ne,[B]:Ne}}const Ae=`linear-gradient(${Ie}, ${ue}, ${pe})`;return{background:Ae,[B]:Ae}};var xe=F=>{const{prefixCls:ee,direction:ue,percent:pe,size:Ie,strokeWidth:Ze,strokeColor:Ae,strokeLinecap:Se="round",children:Ne,trailColor:Qe=null,percentPosition:We,success:Je}=F,{align:Te,type:Ge}=We,Xe=Ae&&typeof Ae!="string"?fe(Ae,ue):{[B]:Ae,background:Ae},ge=Se==="square"||Se==="butt"?0:void 0,ae=Ie!=null?Ie:[-1,Ze||(Ie==="small"?6:8)],[he,de]=H(ae,"line",{strokeWidth:Ze}),Ke={backgroundColor:Qe||void 0,borderRadius:ge},ze=Object.assign(Object.assign({width:`${re(pe)}%`,height:de,borderRadius:ge},Xe),{[U]:re(pe)/100}),ke=le(F),Ye={width:`${re(ke)}%`,height:de,borderRadius:ge,backgroundColor:Je==null?void 0:Je.strokeColor},tt={width:he<0?"100%":he},st=n.createElement("div",{className:`${ee}-inner`,style:Ke},n.createElement("div",{className:o()(`${ee}-bg`,`${ee}-bg-${Ge}`),style:ze},Ge==="inner"&&Ne),ke!==void 0&&n.createElement("div",{className:`${ee}-success-bg`,style:Ye})),at=Ge==="outer"&&Te==="start",Ve=Ge==="outer"&&Te==="end";return Ge==="outer"&&Te==="center"?n.createElement("div",{className:`${ee}-layout-bottom`},st,Ne):n.createElement("div",{className:`${ee}-outer`,style:tt},at&&Ne,st,Ve&&Ne)},Be=F=>{const{size:ee,steps:ue,rounding:pe=Math.round,percent:Ie=0,strokeWidth:Ze=8,strokeColor:Ae,trailColor:Se=null,prefixCls:Ne,children:Qe}=F,We=pe(ue*(Ie/100)),Je=ee==="small"?2:14,Te=ee!=null?ee:[Je,Ze],[Ge,Xe]=H(Te,"step",{steps:ue,strokeWidth:Ze}),ge=Ge/ue,ae=Array.from({length:ue});for(let he=0;he<ue;he++){const de=Array.isArray(Ae)?Ae[he]:Ae;ae[he]=n.createElement("div",{key:he,className:o()(`${Ne}-steps-item`,{[`${Ne}-steps-item-active`]:he<=We-1}),style:{backgroundColor:he<=We-1?de:Se,width:ge,height:Xe}})}return n.createElement("div",{className:`${Ne}-steps-outer`},ae,Qe)},De=function(F,ee){var ue={};for(var pe in F)Object.prototype.hasOwnProperty.call(F,pe)&&ee.indexOf(pe)<0&&(ue[pe]=F[pe]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pe=Object.getOwnPropertySymbols(F);Ie<pe.length;Ie++)ee.indexOf(pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(F,pe[Ie])&&(ue[pe[Ie]]=F[pe[Ie]]);return ue};const He=null,$e=["normal","exception","active","success"];var Le=n.forwardRef((F,ee)=>{const{prefixCls:ue,className:pe,rootClassName:Ie,steps:Ze,strokeColor:Ae,percent:Se=0,size:Ne="default",showInfo:Qe=!0,type:We="line",status:Je,format:Te,style:Ge,percentPosition:Xe={}}=F,ge=De(F,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:ae="end",type:he="outer"}=Xe,de=Array.isArray(Ae)?Ae[0]:Ae,Ke=typeof Ae=="string"||Array.isArray(Ae)?Ae:void 0,ze=n.useMemo(()=>{if(de){const Ct=typeof de=="string"?de:Object.values(de)[0];return new f.FastColor(Ct).isLight()}return!1},[Ae]),ke=n.useMemo(()=>{var Ct,Pt;const jt=le(F);return parseInt(jt!==void 0?(Ct=jt!=null?jt:0)===null||Ct===void 0?void 0:Ct.toString():(Pt=Se!=null?Se:0)===null||Pt===void 0?void 0:Pt.toString(),10)},[Se,F.success,F.successPercent]),Ye=n.useMemo(()=>!$e.includes(Je)&&ke>=100?"success":Je||"normal",[Je,ke]),{getPrefixCls:tt,direction:st,progress:at}=n.useContext(l.E_),Ve=tt("progress",ue),[ut,dt,rt]=Y(Ve),qe=We==="line",ot=qe&&!Ze,Ue=n.useMemo(()=>{if(!Qe)return null;const Ct=le(F);let Pt;const jt=Te||(Wt=>`${Wt}%`),bt=qe&&ze&&he==="inner";return he==="inner"||Te||Ye!=="exception"&&Ye!=="success"?Pt=jt(re(Se),re(Ct)):Ye==="exception"?Pt=qe?n.createElement(u.Z,null):n.createElement(v.Z,null):Ye==="success"&&(Pt=qe?n.createElement(y.Z,null):n.createElement(p.Z,null)),n.createElement("span",{className:o()(`${Ve}-text`,{[`${Ve}-text-bright`]:bt,[`${Ve}-text-${ae}`]:ot,[`${Ve}-text-${he}`]:ot}),title:typeof Pt=="string"?Pt:void 0},Pt)},[Qe,Se,ke,Ye,We,Ve,Te]);let gt;We==="line"?gt=Ze?n.createElement(Be,Object.assign({},F,{strokeColor:Ke,prefixCls:Ve,steps:typeof Ze=="object"?Ze.count:Ze}),Ue):n.createElement(xe,Object.assign({},F,{strokeColor:de,prefixCls:Ve,direction:st,percentPosition:{align:ae,type:he}}),Ue):(We==="circle"||We==="dashboard")&&(gt=n.createElement(se,Object.assign({},F,{strokeColor:de,prefixCls:Ve,progressStatus:Ye}),Ue));const xt=o()(Ve,`${Ve}-status-${Ye}`,{[`${Ve}-${We==="dashboard"&&"circle"||We}`]:We!=="line",[`${Ve}-inline-circle`]:We==="circle"&&H(Ne,"circle")[0]<=20,[`${Ve}-line`]:ot,[`${Ve}-line-align-${ae}`]:ot,[`${Ve}-line-position-${he}`]:ot,[`${Ve}-steps`]:Ze,[`${Ve}-show-info`]:Qe,[`${Ve}-${Ne}`]:typeof Ne=="string",[`${Ve}-rtl`]:st==="rtl"},at==null?void 0:at.className,pe,Ie,dt,rt);return ut(n.createElement("div",Object.assign({ref:ee,style:Object.assign(Object.assign({},at==null?void 0:at.style),Ge),className:xt,role:"progressbar","aria-valuenow":ke,"aria-valuemin":0,"aria-valuemax":100},(0,s.Z)(ge,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),gt))}),Fe=Le},63139:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return ye}});var n=t(59301),f=t(60499),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},p=y,u=t(7657),v=function(H,Z){return n.createElement(u.Z,(0,f.Z)({},H,{ref:Z,icon:p}))},d=n.forwardRef(v),o=d,s=t(92310),l=t.n(s),r=t(18642),a=t(72190),e=t(42244),i=t(18929),c=t(10228),m=t(26112);function w(W,H){var Z=W.disabled,te=W.prefixCls,_e=W.character,se=W.characterRender,G=W.index,Ce=W.count,X=W.value,q=W.allowHalf,B=W.focused,U=W.onHover,j=W.onClick,oe=function(fe){U(fe,G)},V=function(fe){j(fe,G)},$=function(fe){fe.keyCode===c.Z.ENTER&&j(fe,G)},T=G+1,ne=new Set([te]);X===0&&G===0&&B?ne.add("".concat(te,"-focused")):q&&X+.5>=T&&X<T?(ne.add("".concat(te,"-half")),ne.add("".concat(te,"-active")),B&&ne.add("".concat(te,"-focused"))):(T<=X?ne.add("".concat(te,"-full")):ne.add("".concat(te,"-zero")),T===X&&B&&ne.add("".concat(te,"-focused")));var Y=typeof _e=="function"?_e(W):_e,ie=n.createElement("li",{className:l()(Array.from(ne)),ref:H},n.createElement("div",{onClick:Z?null:V,onKeyDown:Z?null:$,onMouseMove:Z?null:oe,role:"radio","aria-checked":X>G?"true":"false","aria-posinset":G+1,"aria-setsize":Ce,tabIndex:Z?-1:0},n.createElement("div",{className:"".concat(te,"-first")},Y),n.createElement("div",{className:"".concat(te,"-second")},Y)));return se&&(ie=se(ie,W)),ie}var A=n.forwardRef(w);function h(){var W=n.useRef({});function H(te){return W.current[te]}function Z(te){return function(_e){W.current[te]=_e}}return[H,Z]}function g(W){var H=W.pageXOffset,Z="scrollLeft";if(typeof H!="number"){var te=W.document;H=te.documentElement[Z],typeof H!="number"&&(H=te.body[Z])}return H}function _(W){var H,Z,te=W.ownerDocument,_e=te.body,se=te&&te.documentElement,G=W.getBoundingClientRect();return H=G.left,Z=G.top,H-=se.clientLeft||_e.clientLeft||0,Z-=se.clientTop||_e.clientTop||0,{left:H,top:Z}}function C(W){var H=_(W),Z=W.ownerDocument,te=Z.defaultView||Z.parentWindow;return H.left+=g(te),H.left}var b=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function S(W,H){var Z=W.prefixCls,te=Z===void 0?"rc-rate":Z,_e=W.className,se=W.defaultValue,G=W.value,Ce=W.count,X=Ce===void 0?5:Ce,q=W.allowHalf,B=q===void 0?!1:q,U=W.allowClear,j=U===void 0?!0:U,oe=W.keyboard,V=oe===void 0?!0:oe,$=W.character,T=$===void 0?"\u2605":$,ne=W.characterRender,Y=W.disabled,ie=W.direction,me=ie===void 0?"ltr":ie,fe=W.tabIndex,ve=fe===void 0?0:fe,xe=W.autoFocus,Ee=W.onHoverChange,Be=W.onChange,De=W.onFocus,He=W.onBlur,$e=W.onKeyDown,Pe=W.onMouseLeave,Le=(0,e.Z)(W,b),Fe=h(),F=(0,a.Z)(Fe,2),ee=F[0],ue=F[1],pe=n.useRef(null),Ie=function(){if(!Y){var Ue;(Ue=pe.current)===null||Ue===void 0||Ue.focus()}};n.useImperativeHandle(H,function(){return{focus:Ie,blur:function(){if(!Y){var Ue;(Ue=pe.current)===null||Ue===void 0||Ue.blur()}}}});var Ze=(0,i.Z)(se||0,{value:G}),Ae=(0,a.Z)(Ze,2),Se=Ae[0],Ne=Ae[1],Qe=(0,i.Z)(null),We=(0,a.Z)(Qe,2),Je=We[0],Te=We[1],Ge=function(Ue,gt){var xt=me==="rtl",Ct=Ue+1;if(B){var Pt=ee(Ue),jt=C(Pt),bt=Pt.clientWidth;(xt&>-jt>bt/2||!xt&>-jt<bt/2)&&(Ct-=.5)}return Ct},Xe=function(Ue){Ne(Ue),Be==null||Be(Ue)},ge=n.useState(!1),ae=(0,a.Z)(ge,2),he=ae[0],de=ae[1],Ke=function(){de(!0),De==null||De()},ze=function(){de(!1),He==null||He()},ke=n.useState(null),Ye=(0,a.Z)(ke,2),tt=Ye[0],st=Ye[1],at=function(Ue,gt){var xt=Ge(gt,Ue.pageX);xt!==Je&&(st(xt),Te(null)),Ee==null||Ee(xt)},Ve=function(Ue){Y||(st(null),Te(null),Ee==null||Ee(void 0)),Ue&&(Pe==null||Pe(Ue))},ut=function(Ue,gt){var xt=Ge(gt,Ue.pageX),Ct=!1;j&&(Ct=xt===Se),Ve(),Xe(Ct?0:xt),Te(Ct?xt:null)},dt=function(Ue){var gt=Ue.keyCode,xt=me==="rtl",Ct=B?.5:1;V&&(gt===c.Z.RIGHT&&Se<X&&!xt?(Xe(Se+Ct),Ue.preventDefault()):gt===c.Z.LEFT&&Se>0&&!xt||gt===c.Z.RIGHT&&Se>0&&xt?(Xe(Se-Ct),Ue.preventDefault()):gt===c.Z.LEFT&&Se<X&&xt&&(Xe(Se+Ct),Ue.preventDefault())),$e==null||$e(Ue)};n.useEffect(function(){xe&&!Y&&Ie()},[]);var rt=new Array(X).fill(0).map(function(ot,Ue){return n.createElement(A,{ref:ue(Ue),index:Ue,count:X,disabled:Y,prefixCls:"".concat(te,"-star"),allowHalf:B,value:tt===null?Se:tt,onClick:ut,onHover:at,key:ot||Ue,character:T,characterRender:ne,focused:he})}),qe=l()(te,_e,(0,r.Z)((0,r.Z)({},"".concat(te,"-disabled"),Y),"".concat(te,"-rtl"),me==="rtl"));return n.createElement("ul",(0,f.Z)({className:qe,onMouseLeave:Ve,tabIndex:Y?-1:ve,onFocus:Y?null:Ke,onBlur:Y?null:ze,onKeyDown:Y?null:dt,ref:pe},(0,m.Z)(Le,{aria:!0,data:!0,attr:!0})),rt)}var x=n.forwardRef(S),z=x,P=t(48755),K=t(25399),N=t(36237),k=t(63356),D=t(16931),L=t(51636);const E=W=>{const{componentCls:H}=W;return{[`${H}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:W.marginXS},"> div":{transition:`all ${W.motionDurationMid}, outline 0s`,"&:hover":{transform:W.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,N.unit)(W.lineWidth)} dashed ${W.starColor}`,transform:W.starHoverScale}},"&-first, &-second":{color:W.starBg,transition:`all ${W.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${H}-star-first, &-half ${H}-star-second`]:{opacity:1},[`&-half ${H}-star-first, &-full ${H}-star-second`]:{color:"inherit"}}}},R=W=>({[`&-rtl${W.componentCls}`]:{direction:"rtl"}}),O=W=>{const{componentCls:H}=W;return{[H]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(W)),{display:"inline-block",margin:0,padding:0,color:W.starColor,fontSize:W.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${H} ${H}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),E(W)),R(W))}},M=W=>({starColor:W.yellow6,starSize:W.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:W.colorFillContent});var I=(0,D.I$)("Rate",W=>{const H=(0,L.mergeToken)(W,{});return[O(H)]},M),J=t(2171),re=function(W,H){var Z={};for(var te in W)Object.prototype.hasOwnProperty.call(W,te)&&H.indexOf(te)<0&&(Z[te]=W[te]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,te=Object.getOwnPropertySymbols(W);_e<te.length;_e++)H.indexOf(te[_e])<0&&Object.prototype.propertyIsEnumerable.call(W,te[_e])&&(Z[te[_e]]=W[te[_e]]);return Z},ye=n.forwardRef((W,H)=>{const{prefixCls:Z,className:te,rootClassName:_e,style:se,tooltips:G,character:Ce=n.createElement(o,null),disabled:X}=W,q=re(W,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),B=(fe,ve)=>{let{index:xe}=ve;return G?n.createElement(K.Z,{title:G[xe]},fe):fe},{getPrefixCls:U,direction:j,rate:oe}=n.useContext(P.E_),V=U("rate",Z),[$,T,ne]=I(V),Y=Object.assign(Object.assign({},oe==null?void 0:oe.style),se),ie=n.useContext(J.Z),me=X!=null?X:ie;return $(n.createElement(z,Object.assign({ref:H,character:Ce,characterRender:B,disabled:me},q,{className:l()(te,_e,T,ne,oe==null?void 0:oe.className),style:Y,prefixCls:V,direction:j})))})},44104:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return m}});var n=t(59301),f=t(92310),y=t.n(f),p=t(11592),u=t(99402),v=t(48755),d=t(70045);const o=n.createContext({latestIndex:0}),s=o.Provider;var r=w=>{let{className:A,index:h,children:g,split:_,style:C}=w;const{latestIndex:b}=n.useContext(o);return g==null?null:n.createElement(n.Fragment,null,n.createElement("div",{className:A,style:C},g),h<b&&_&&n.createElement("span",{className:`${A}-split`},_))},a=t(31547),e=function(w,A){var h={};for(var g in w)Object.prototype.hasOwnProperty.call(w,g)&&A.indexOf(g)<0&&(h[g]=w[g]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,g=Object.getOwnPropertySymbols(w);_<g.length;_++)A.indexOf(g[_])<0&&Object.prototype.propertyIsEnumerable.call(w,g[_])&&(h[g[_]]=w[g[_]]);return h};const c=n.forwardRef((w,A)=>{var h;const{getPrefixCls:g,direction:_,size:C,className:b,style:S,classNames:x,styles:z}=(0,v.dj)("space"),{size:P=C!=null?C:"small",align:K,className:N,rootClassName:k,children:D,direction:L="horizontal",prefixCls:E,split:R,style:O,wrap:M=!1,classNames:I,styles:J}=w,re=e(w,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[le,ye]=Array.isArray(P)?P:[P,P],W=(0,u.n)(ye),H=(0,u.n)(le),Z=(0,u.T)(ye),te=(0,u.T)(le),_e=(0,p.Z)(D,{keepEmpty:!0}),se=K===void 0&&L==="horizontal"?"center":K,G=g("space",E),[Ce,X,q]=(0,a.Z)(G),B=y()(G,b,X,`${G}-${L}`,{[`${G}-rtl`]:_==="rtl",[`${G}-align-${se}`]:se,[`${G}-gap-row-${ye}`]:W,[`${G}-gap-col-${le}`]:H},N,k,q),U=y()(`${G}-item`,(h=I==null?void 0:I.item)!==null&&h!==void 0?h:x.item);let j=0;const oe=_e.map((T,ne)=>{var Y;T!=null&&(j=ne);const ie=(T==null?void 0:T.key)||`${U}-${ne}`;return n.createElement(r,{className:U,key:ie,index:ne,split:R,style:(Y=J==null?void 0:J.item)!==null&&Y!==void 0?Y:z.item},T)}),V=n.useMemo(()=>({latestIndex:j}),[j]);if(_e.length===0)return null;const $={};return M&&($.flexWrap="wrap"),!H&&te&&($.columnGap=le),!W&&Z&&($.rowGap=ye),Ce(n.createElement("div",Object.assign({ref:A,className:B,style:Object.assign(Object.assign(Object.assign({},$),S),O)},re),n.createElement(s,{value:V},oe)))});c.Compact=d.ZP;var m=c},11938:function(it,Q,t){"use strict";t.d(Q,{default:function(){return K}});var n=t(59301),f=t(40192),y=t(22703),p=t(92310),u=t.n(p),v=t(26112),d=t(48755),o=t(458),l=N=>{const{value:k,formatter:D,precision:L,decimalSeparator:E,groupSeparator:R="",prefixCls:O}=N;let M;if(typeof D=="function")M=D(k);else{const I=String(k),J=I.match(/^(-?)(\d*)(\.(\d+))?$/);if(!J||I==="-")M=I;else{const re=J[1];let le=J[2]||"0",ye=J[4]||"";le=le.replace(/\B(?=(\d{3})+(?!\d))/g,R),typeof L=="number"&&(ye=ye.padEnd(L,"0").slice(0,L>0?L:0)),ye&&(ye=`${E}${ye}`),M=[n.createElement("span",{key:"int",className:`${O}-content-value-int`},re,le),ye&&n.createElement("span",{key:"decimal",className:`${O}-content-value-decimal`},ye)]}}return n.createElement("span",{className:`${O}-content-value`},M)},r=t(63356),a=t(16931),e=t(51636);const i=N=>{const{componentCls:k,marginXXS:D,padding:L,colorTextDescription:E,titleFontSize:R,colorTextHeading:O,contentFontSize:M,fontFamily:I}=N;return{[k]:Object.assign(Object.assign({},(0,r.Wf)(N)),{[`${k}-title`]:{marginBottom:D,color:E,fontSize:R},[`${k}-skeleton`]:{paddingTop:L},[`${k}-content`]:{color:O,fontSize:M,fontFamily:I,[`${k}-content-value`]:{display:"inline-block",direction:"ltr"},[`${k}-content-prefix, ${k}-content-suffix`]:{display:"inline-block"},[`${k}-content-prefix`]:{marginInlineEnd:D},[`${k}-content-suffix`]:{marginInlineStart:D}}})}},c=N=>{const{fontSizeHeading3:k,fontSize:D}=N;return{titleFontSize:D,contentFontSize:k}};var m=(0,a.I$)("Statistic",N=>{const k=(0,e.mergeToken)(N,{});return[i(k)]},c),w=function(N,k){var D={};for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&k.indexOf(L)<0&&(D[L]=N[L]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,L=Object.getOwnPropertySymbols(N);E<L.length;E++)k.indexOf(L[E])<0&&Object.prototype.propertyIsEnumerable.call(N,L[E])&&(D[L[E]]=N[L[E]]);return D},h=N=>{const{prefixCls:k,className:D,rootClassName:L,style:E,valueStyle:R,value:O=0,title:M,valueRender:I,prefix:J,suffix:re,loading:le=!1,formatter:ye,precision:W,decimalSeparator:H=".",groupSeparator:Z=",",onMouseEnter:te,onMouseLeave:_e}=N,se=w(N,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:G,direction:Ce,className:X,style:q}=(0,d.dj)("statistic"),B=G("statistic",k),[U,j,oe]=m(B),V=n.createElement(l,{decimalSeparator:H,groupSeparator:Z,prefixCls:B,formatter:ye,precision:W,value:O}),$=u()(B,{[`${B}-rtl`]:Ce==="rtl"},X,D,L,j,oe),T=(0,v.Z)(se,{aria:!0,data:!0});return U(n.createElement("div",Object.assign({},T,{className:$,style:Object.assign(Object.assign({},q),E),onMouseEnter:te,onMouseLeave:_e}),M&&n.createElement("div",{className:`${B}-title`},M),n.createElement(o.Z,{paragraph:!1,loading:le,className:`${B}-skeleton`},n.createElement("div",{style:R,className:`${B}-content`},J&&n.createElement("span",{className:`${B}-content-prefix`},J),I?I(V):V,re&&n.createElement("span",{className:`${B}-content-suffix`},re)))))};const g=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function _(N,k){let D=N;const L=/\[[^\]]*]/g,E=(k.match(L)||[]).map(I=>I.slice(1,-1)),R=k.replace(L,"[]"),O=g.reduce((I,J)=>{let[re,le]=J;if(I.includes(re)){const ye=Math.floor(D/le);return D-=ye*le,I.replace(new RegExp(`${re}+`,"g"),W=>{const H=W.length;return ye.toString().padStart(H,"0")})}return I},R);let M=0;return O.replace(L,()=>{const I=E[M];return M+=1,I})}function C(N,k){const{format:D=""}=k,L=new Date(N).getTime(),E=Date.now(),R=Math.max(L-E,0);return _(R,D)}var b=function(N,k){var D={};for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&k.indexOf(L)<0&&(D[L]=N[L]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,L=Object.getOwnPropertySymbols(N);E<L.length;E++)k.indexOf(L[E])<0&&Object.prototype.propertyIsEnumerable.call(N,L[E])&&(D[L[E]]=N[L[E]]);return D};const S=1e3/30;function x(N){return new Date(N).getTime()}const z=N=>{const{value:k,format:D="HH:mm:ss",onChange:L,onFinish:E}=N,R=b(N,["value","format","onChange","onFinish"]),O=(0,f.Z)(),M=n.useRef(null),I=()=>{E==null||E(),M.current&&(clearInterval(M.current),M.current=null)},J=()=>{const ye=x(k);ye>=Date.now()&&(M.current=setInterval(()=>{O(),L==null||L(ye-Date.now()),ye<Date.now()&&I()},S))};n.useEffect(()=>(J(),()=>{M.current&&(clearInterval(M.current),M.current=null)}),[k]);const re=(ye,W)=>C(ye,Object.assign(Object.assign({},W),{format:D})),le=ye=>(0,y.Tm)(ye,{title:void 0});return n.createElement(h,Object.assign({},R,{value:k,valueRender:le,formatter:re}))};var P=n.memo(z);h.Countdown=P;var K=h},93873:function(it,Q,t){"use strict";t.d(Q,{Fm:function(){return a}});var n=t(36237),f=t(48746);const y=new n.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new n.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),u=new n.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new n.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d=new n.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o=new n.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new n.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new n.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),r={"move-up":{inKeyframes:s,outKeyframes:l},"move-down":{inKeyframes:y,outKeyframes:p},"move-left":{inKeyframes:u,outKeyframes:v},"move-right":{inKeyframes:d,outKeyframes:o}},a=(e,i)=>{const{antCls:c}=e,m=`${c}-${i}`,{inKeyframes:w,outKeyframes:A}=r[i];return[(0,f.R)(m,w,A,e.motionDurationMid),{[`
|
|
|
${m}-enter,
|
|
|
${m}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${m}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},46e3:function(it,Q,t){"use strict";t.d(Q,{Qt:function(){return u},Uw:function(){return p},fJ:function(){return y},ly:function(){return v},oN:function(){return a}});var n=t(36237),f=t(48746);const y=new n.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),p=new n.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new n.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),v=new n.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),d=new n.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),o=new n.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new n.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),l=new n.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),r={"slide-up":{inKeyframes:y,outKeyframes:p},"slide-down":{inKeyframes:u,outKeyframes:v},"slide-left":{inKeyframes:d,outKeyframes:o},"slide-right":{inKeyframes:s,outKeyframes:l}},a=(e,i)=>{const{antCls:c}=e,m=`${c}-${i}`,{inKeyframes:w,outKeyframes:A}=r[i];return[(0,f.R)(m,w,A,e.motionDurationMid),{[`
|
|
|
${m}-enter,
|
|
|
${m}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${m}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},37645:function(it,Q,t){"use strict";t.d(Q,{ZP:function(){return v},qN:function(){return y},wZ:function(){return p}});var n=t(36237),f=t(36305);const y=8;function p(d){const{contentRadius:o,limitVerticalRadius:s}=d,l=o>12?o+2:12;return{arrowOffsetHorizontal:l,arrowOffsetVertical:s?y:l}}function u(d,o){return d?o:{}}function v(d,o,s){const{componentCls:l,boxShadowPopoverArrow:r,arrowOffsetVertical:a,arrowOffsetHorizontal:e}=d,{arrowDistance:i=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=s||{};return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({[`${l}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,f.W)(d,o,r)),{"&:before":{background:o}})]},u(!!c.top,{[[`&-placement-top > ${l}-arrow`,`&-placement-topLeft > ${l}-arrow`,`&-placement-topRight > ${l}-arrow`].join(",")]:{bottom:i,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${l}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":e,[`> ${l}-arrow`]:{left:{_skip_check_:!0,value:e}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.unit)(e)})`,[`> ${l}-arrow`]:{right:{_skip_check_:!0,value:e}}}})),u(!!c.bottom,{[[`&-placement-bottom > ${l}-arrow`,`&-placement-bottomLeft > ${l}-arrow`,`&-placement-bottomRight > ${l}-arrow`].join(",")]:{top:i,transform:"translateY(-100%)"},[`&-placement-bottom > ${l}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":e,[`> ${l}-arrow`]:{left:{_skip_check_:!0,value:e}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.unit)(e)})`,[`> ${l}-arrow`]:{right:{_skip_check_:!0,value:e}}}})),u(!!c.left,{[[`&-placement-left > ${l}-arrow`,`&-placement-leftTop > ${l}-arrow`,`&-placement-leftBottom > ${l}-arrow`].join(",")]:{right:{_skip_check_:!0,value:i},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${l}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${l}-arrow`]:{top:a},[`&-placement-leftBottom > ${l}-arrow`]:{bottom:a}})),u(!!c.right,{[[`&-placement-right > ${l}-arrow`,`&-placement-rightTop > ${l}-arrow`,`&-placement-rightBottom > ${l}-arrow`].join(",")]:{left:{_skip_check_:!0,value:i},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${l}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${l}-arrow`]:{top:a},[`&-placement-rightBottom > ${l}-arrow`]:{bottom:a}}))}}},36305:function(it,Q,t){"use strict";t.d(Q,{W:function(){return y},w:function(){return f}});var n=t(36237);function f(p){const{sizePopupArrow:u,borderRadiusXS:v,borderRadiusOuter:d}=p,o=u/2,s=0,l=o,r=d*1/Math.sqrt(2),a=o-d*(1-1/Math.sqrt(2)),e=o-v*(1/Math.sqrt(2)),i=d*(Math.sqrt(2)-1)+v*(1/Math.sqrt(2)),c=2*o-e,m=i,w=2*o-r,A=a,h=2*o-s,g=l,_=o*Math.sqrt(2)+d*(Math.sqrt(2)-2),C=d*(Math.sqrt(2)-1),b=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,S=`path('M ${s} ${l} A ${d} ${d} 0 0 0 ${r} ${a} L ${e} ${i} A ${v} ${v} 0 0 1 ${c} ${m} L ${w} ${A} A ${d} ${d} 0 0 0 ${h} ${g} Z')`;return{arrowShadowWidth:_,arrowPath:S,arrowPolygon:b}}const y=(p,u,v)=>{const{sizePopupArrow:d,arrowPolygon:o,arrowPath:s,arrowShadowWidth:l,borderRadiusXS:r,calc:a}=p;return{pointerEvents:"none",width:d,height:d,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:d,height:a(d).div(2).equal(),background:u,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.unit)(r)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:v,zIndex:0,background:"transparent"}}}},96599:function(it,Q,t){"use strict";t.d(Q,{default:function(){return D}});var n=t(59301),f=t(92310),y=t.n(f),p=t(2738),u=t(29509),v=t(78776),d=t(22703),o=t(12919),s=t(48755),l=t(36237),r=t(17835),a=t(63356),e=t(51636),i=t(16931);const c=L=>{const{paddingXXS:E,lineWidth:R,tagPaddingHorizontal:O,componentCls:M,calc:I}=L,J=I(O).sub(R).equal(),re=I(E).sub(R).equal();return{[M]:Object.assign(Object.assign({},(0,a.Wf)(L)),{display:"inline-block",height:"auto",marginInlineEnd:L.marginXS,paddingInline:J,fontSize:L.tagFontSize,lineHeight:L.tagLineHeight,whiteSpace:"nowrap",background:L.defaultBg,border:`${(0,l.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`,borderRadius:L.borderRadiusSM,opacity:1,transition:`all ${L.motionDurationMid}`,textAlign:"start",position:"relative",[`&${M}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:L.defaultColor},[`${M}-close-icon`]:{marginInlineStart:re,fontSize:L.tagIconSize,color:L.colorTextDescription,cursor:"pointer",transition:`all ${L.motionDurationMid}`,"&:hover":{color:L.colorTextHeading}},[`&${M}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${L.iconCls}-close, ${L.iconCls}-close:hover`]:{color:L.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${M}-checkable-checked):hover`]:{color:L.colorPrimary,backgroundColor:L.colorFillSecondary},"&:active, &-checked":{color:L.colorTextLightSolid},"&-checked":{backgroundColor:L.colorPrimary,"&:hover":{backgroundColor:L.colorPrimaryHover}},"&:active":{backgroundColor:L.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${L.iconCls} + span, > span + ${L.iconCls}`]:{marginInlineStart:J}}),[`${M}-borderless`]:{borderColor:"transparent",background:L.tagBorderlessBg}}},m=L=>{const{lineWidth:E,fontSizeIcon:R,calc:O}=L,M=L.fontSizeSM;return(0,e.mergeToken)(L,{tagFontSize:M,tagLineHeight:(0,l.unit)(O(L.lineHeightSM).mul(M).equal()),tagIconSize:O(R).sub(O(E).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:L.defaultBg})},w=L=>({defaultBg:new r.FastColor(L.colorFillQuaternary).onBackground(L.colorBgContainer).toHexString(),defaultColor:L.colorText});var A=(0,i.I$)("Tag",L=>{const E=m(L);return c(E)},w),h=function(L,E){var R={};for(var O in L)Object.prototype.hasOwnProperty.call(L,O)&&E.indexOf(O)<0&&(R[O]=L[O]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,O=Object.getOwnPropertySymbols(L);M<O.length;M++)E.indexOf(O[M])<0&&Object.prototype.propertyIsEnumerable.call(L,O[M])&&(R[O[M]]=L[O[M]]);return R},_=n.forwardRef((L,E)=>{const{prefixCls:R,style:O,className:M,checked:I,onChange:J,onClick:re}=L,le=h(L,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ye,tag:W}=n.useContext(s.E_),H=Ce=>{J==null||J(!I),re==null||re(Ce)},Z=ye("tag",R),[te,_e,se]=A(Z),G=y()(Z,`${Z}-checkable`,{[`${Z}-checkable-checked`]:I},W==null?void 0:W.className,M,_e,se);return te(n.createElement("span",Object.assign({},le,{ref:E,style:Object.assign(Object.assign({},O),W==null?void 0:W.style),className:G,onClick:H})))}),C=t(93427);const b=L=>(0,C.Z)(L,(E,R)=>{let{textColor:O,lightBorderColor:M,lightColor:I,darkColor:J}=R;return{[`${L.componentCls}${L.componentCls}-${E}`]:{color:O,background:I,borderColor:M,"&-inverse":{color:L.colorTextLightSolid,background:J,borderColor:J},[`&${L.componentCls}-borderless`]:{borderColor:"transparent"}}}});var S=(0,i.bk)(["Tag","preset"],L=>{const E=m(L);return b(E)},w);function x(L){return typeof L!="string"?L:L.charAt(0).toUpperCase()+L.slice(1)}const z=(L,E,R)=>{const O=x(R);return{[`${L.componentCls}${L.componentCls}-${E}`]:{color:L[`color${R}`],background:L[`color${O}Bg`],borderColor:L[`color${O}Border`],[`&${L.componentCls}-borderless`]:{borderColor:"transparent"}}}};var P=(0,i.bk)(["Tag","status"],L=>{const E=m(L);return[z(E,"success","Success"),z(E,"processing","Info"),z(E,"error","Error"),z(E,"warning","Warning")]},w),K=function(L,E){var R={};for(var O in L)Object.prototype.hasOwnProperty.call(L,O)&&E.indexOf(O)<0&&(R[O]=L[O]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,O=Object.getOwnPropertySymbols(L);M<O.length;M++)E.indexOf(O[M])<0&&Object.prototype.propertyIsEnumerable.call(L,O[M])&&(R[O[M]]=L[O[M]]);return R};const k=n.forwardRef((L,E)=>{const{prefixCls:R,className:O,rootClassName:M,style:I,children:J,icon:re,color:le,onClose:ye,bordered:W=!0,visible:H}=L,Z=K(L,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:te,direction:_e,tag:se}=n.useContext(s.E_),[G,Ce]=n.useState(!0),X=(0,p.Z)(Z,["closeIcon","closable"]);n.useEffect(()=>{H!==void 0&&Ce(H)},[H]);const q=(0,u.o2)(le),B=(0,u.yT)(le),U=q||B,j=Object.assign(Object.assign({backgroundColor:le&&!U?le:void 0},se==null?void 0:se.style),I),oe=te("tag",R),[V,$,T]=A(oe),ne=y()(oe,se==null?void 0:se.className,{[`${oe}-${le}`]:U,[`${oe}-has-color`]:le&&!U,[`${oe}-hidden`]:!G,[`${oe}-rtl`]:_e==="rtl",[`${oe}-borderless`]:!W},O,M,$,T),Y=Ee=>{Ee.stopPropagation(),ye==null||ye(Ee),!Ee.defaultPrevented&&Ce(!1)},[,ie]=(0,v.Z)((0,v.w)(L),(0,v.w)(se),{closable:!1,closeIconRender:Ee=>{const Be=n.createElement("span",{className:`${oe}-close-icon`,onClick:Y},Ee);return(0,d.wm)(Ee,Be,De=>({onClick:He=>{var $e;($e=De==null?void 0:De.onClick)===null||$e===void 0||$e.call(De,He),Y(He)},className:y()(De==null?void 0:De.className,`${oe}-close-icon`)}))}}),me=typeof Z.onClick=="function"||J&&J.type==="a",fe=re||null,ve=fe?n.createElement(n.Fragment,null,fe,J&&n.createElement("span",null,J)):J,xe=n.createElement("span",Object.assign({},X,{ref:E,className:ne,style:j}),ve,ie,q&&n.createElement(S,{key:"preset",prefixCls:oe}),B&&n.createElement(P,{key:"status",prefixCls:oe}));return V(me?n.createElement(o.Z,{component:"Tag"},xe):xe)});k.CheckableTag=_;var D=k},93427:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return f}});var n=t(34998);function f(y,p){return n.i.reduce((u,v)=>{const d=y[`${v}1`],o=y[`${v}3`],s=y[`${v}6`],l=y[`${v}7`];return Object.assign(Object.assign({},u),p(v,{lightColor:d,lightBorderColor:o,darkColor:s,textColor:l}))},{})}},25399:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return E}});var n=t(59301),f=t(92310),y=t.n(f),p=t(29125),u=t(18929),v=t(62487),d=t(75030),o=t(86641),s=t(52838),l=t(22703),r=t(32383),a=t(55743),e=t(57700),i=t(48755),c=t(36237),m=t(63356),w=t(34925),A=t(37645),h=t(36305),g=t(93427),_=t(51636),C=t(16931);const b=R=>{const{calc:O,componentCls:M,tooltipMaxWidth:I,tooltipColor:J,tooltipBg:re,tooltipBorderRadius:le,zIndexPopup:ye,controlHeight:W,boxShadowSecondary:H,paddingSM:Z,paddingXS:te,arrowOffsetHorizontal:_e,sizePopupArrow:se}=R,G=O(le).add(se).add(_e).equal(),Ce=O(le).mul(2).add(se).equal();return[{[M]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(R)),{position:"absolute",zIndex:ye,display:"block",width:"max-content",maxWidth:I,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":re,[`${M}-inner`]:{minWidth:Ce,minHeight:W,padding:`${(0,c.unit)(R.calc(Z).div(2).equal())} ${(0,c.unit)(te)}`,color:J,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:re,borderRadius:le,boxShadow:H,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:G},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${M}-inner`]:{borderRadius:R.min(le,A.qN)}},[`${M}-content`]:{position:"relative"}}),(0,g.Z)(R,(X,q)=>{let{darkColor:B}=q;return{[`&${M}-${X}`]:{[`${M}-inner`]:{backgroundColor:B},[`${M}-arrow`]:{"--antd-arrow-background-color":B}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)(R,"var(--antd-arrow-background-color)"),{[`${M}-pure`]:{position:"relative",maxWidth:"none",margin:R.sizePopupArrow}}]},S=R=>Object.assign(Object.assign({zIndexPopup:R.zIndexPopupBase+70},(0,A.wZ)({contentRadius:R.borderRadius,limitVerticalRadius:!0})),(0,h.w)((0,_.mergeToken)(R,{borderRadiusOuter:Math.min(R.borderRadiusOuter,4)})));var x=function(R){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,C.I$)("Tooltip",I=>{const{borderRadius:J,colorTextLightSolid:re,colorBgSpotlight:le}=I,ye=(0,_.mergeToken)(I,{tooltipMaxWidth:250,tooltipColor:re,tooltipBorderRadius:J,tooltipBg:le});return[b(ye),(0,w._y)(I,"zoom-big-fast")]},S,{resetStyle:!1,injectStyle:O})(R)},z=t(29509);function P(R,O){const M=(0,z.o2)(O),I=y()({[`${R}-${O}`]:O&&M}),J={},re={};return O&&!M&&(J.background=O,re["--antd-arrow-background-color"]=O),{className:I,overlayStyle:J,arrowStyle:re}}var N=R=>{const{prefixCls:O,className:M,placement:I="top",title:J,color:re,overlayInnerStyle:le}=R,{getPrefixCls:ye}=n.useContext(i.E_),W=ye("tooltip",O),[H,Z,te]=x(W),_e=P(W,re),se=_e.arrowStyle,G=Object.assign(Object.assign({},le),_e.overlayStyle),Ce=y()(Z,te,W,`${W}-pure`,`${W}-placement-${I}`,M,_e.className);return H(n.createElement("div",{className:Ce,style:se},n.createElement("div",{className:`${W}-arrow`}),n.createElement(p.G,Object.assign({},R,{className:Z,prefixCls:W,overlayInnerStyle:G}),J)))},k=function(R,O){var M={};for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&O.indexOf(I)<0&&(M[I]=R[I]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,I=Object.getOwnPropertySymbols(R);J<I.length;J++)O.indexOf(I[J])<0&&Object.prototype.propertyIsEnumerable.call(R,I[J])&&(M[I[J]]=R[I[J]]);return M};const L=n.forwardRef((R,O)=>{var M,I;const{prefixCls:J,openClassName:re,getTooltipContainer:le,color:ye,overlayInnerStyle:W,children:H,afterOpenChange:Z,afterVisibleChange:te,destroyTooltipOnHide:_e,arrow:se=!0,title:G,overlay:Ce,builtinPlacements:X,arrowPointAtCenter:q=!1,autoAdjustOverflow:B=!0,motion:U,getPopupContainer:j,placement:oe="top",mouseEnterDelay:V=.1,mouseLeaveDelay:$=.1,overlayStyle:T,rootClassName:ne,overlayClassName:Y,styles:ie,classNames:me}=R,fe=k(R,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),ve=!!se,[,xe]=(0,e.ZP)(),{getPopupContainer:Ee,getPrefixCls:Be,direction:De,className:He,style:$e,classNames:Pe,styles:Le}=(0,i.dj)("tooltip"),Fe=(0,r.ln)("Tooltip"),F=n.useRef(null),ee=()=>{var Ve;(Ve=F.current)===null||Ve===void 0||Ve.forceAlign()};n.useImperativeHandle(O,()=>{var Ve,ut;return{forceAlign:ee,forcePopupAlign:()=>{Fe.deprecated(!1,"forcePopupAlign","forceAlign"),ee()},nativeElement:(Ve=F.current)===null||Ve===void 0?void 0:Ve.nativeElement,popupElement:(ut=F.current)===null||ut===void 0?void 0:ut.popupElement}});const[ue,pe]=(0,u.Z)(!1,{value:(M=R.open)!==null&&M!==void 0?M:R.visible,defaultValue:(I=R.defaultOpen)!==null&&I!==void 0?I:R.defaultVisible}),Ie=!G&&!Ce&&G!==0,Ze=Ve=>{var ut,dt;pe(Ie?!1:Ve),Ie||((ut=R.onOpenChange)===null||ut===void 0||ut.call(R,Ve),(dt=R.onVisibleChange)===null||dt===void 0||dt.call(R,Ve))},Ae=n.useMemo(()=>{var Ve,ut;let dt=q;return typeof se=="object"&&(dt=(ut=(Ve=se.pointAtCenter)!==null&&Ve!==void 0?Ve:se.arrowPointAtCenter)!==null&&ut!==void 0?ut:q),X||(0,s.Z)({arrowPointAtCenter:dt,autoAdjustOverflow:B,arrowWidth:ve?xe.sizePopupArrow:0,borderRadius:xe.borderRadius,offset:xe.marginXXS,visibleFirst:!0})},[q,se,X,xe]),Se=n.useMemo(()=>G===0?G:Ce||G||"",[Ce,G]),Ne=n.createElement(v.Z,{space:!0},typeof Se=="function"?Se():Se),Qe=Be("tooltip",J),We=Be(),Je=R["data-popover-inject"];let Te=ue;!("open"in R)&&!("visible"in R)&&Ie&&(Te=!1);const Ge=n.isValidElement(H)&&!(0,l.M2)(H)?H:n.createElement("span",null,H),Xe=Ge.props,ge=!Xe.className||typeof Xe.className=="string"?y()(Xe.className,re||`${Qe}-open`):Xe.className,[ae,he,de]=x(Qe,!Je),Ke=P(Qe,ye),ze=Ke.arrowStyle,ke=y()(Y,{[`${Qe}-rtl`]:De==="rtl"},Ke.className,ne,he,de,He,Pe.root,me==null?void 0:me.root),Ye=y()(Pe.body,me==null?void 0:me.body),[tt,st]=(0,d.Cn)("Tooltip",fe.zIndex),at=n.createElement(p.Z,Object.assign({},fe,{zIndex:tt,showArrow:ve,placement:oe,mouseEnterDelay:V,mouseLeaveDelay:$,prefixCls:Qe,classNames:{root:ke,body:Ye},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ze),Le.root),$e),T),ie==null?void 0:ie.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Le.body),W),ie==null?void 0:ie.body),Ke.overlayStyle)},getTooltipContainer:j||le||Ee,ref:F,builtinPlacements:Ae,overlay:Ne,visible:Te,onVisibleChange:Ze,afterVisibleChange:Z!=null?Z:te,arrowContent:n.createElement("span",{className:`${Qe}-arrow-content`}),motion:{motionName:(0,o.m)(We,"zoom-big-fast",R.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!_e}),Te?(0,l.Tm)(Ge,{className:ge}):Ge);return ae(n.createElement(a.Z.Provider,{value:st},at))});L._InternalPanelDoNotUseOrYouWillBeFired=N;var E=L},24334:function(it,Q,t){var n,f;(function(y,p){it.exports=p(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof t.g!="undefined"?t.g:this,function(y){"use strict";y=y||{};var p=y.Base64,u="2.6.4",v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(D){for(var L={},E=0,R=D.length;E<R;E++)L[D.charAt(E)]=E;return L}(v),o=String.fromCharCode,s=function(D){if(D.length<2){var L=D.charCodeAt(0);return L<128?D:L<2048?o(192|L>>>6)+o(128|L&63):o(224|L>>>12&15)+o(128|L>>>6&63)+o(128|L&63)}else{var L=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return o(240|L>>>18&7)+o(128|L>>>12&63)+o(128|L>>>6&63)+o(128|L&63)}},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,r=function(D){return D.replace(l,s)},a=function(D){var L=[0,2,1][D.length%3],E=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),R=[v.charAt(E>>>18),v.charAt(E>>>12&63),L>=2?"=":v.charAt(E>>>6&63),L>=1?"=":v.charAt(E&63)];return R.join("")},e=y.btoa&&typeof y.btoa=="function"?function(D){return y.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,a)},i=function(D){return e(r(String(D)))},c=function(D){return D.replace(/[+\/]/g,function(L){return L=="+"?"-":"_"}).replace(/=/g,"")},m=function(D,L){return L?c(i(D)):i(D)},w=function(D){return m(D,!0)},A;y.Uint8Array&&(A=function(D,L){for(var E="",R=0,O=D.length;R<O;R+=3){var M=D[R],I=D[R+1],J=D[R+2],re=M<<16|I<<8|J;E+=v.charAt(re>>>18)+v.charAt(re>>>12&63)+(typeof I!="undefined"?v.charAt(re>>>6&63):"=")+(typeof J!="undefined"?v.charAt(re&63):"=")}return L?c(E):E});var h=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,g=function(D){switch(D.length){case 4:var L=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),E=L-65536;return o((E>>>10)+55296)+o((E&1023)+56320);case 3:return o((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return o((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},_=function(D){return D.replace(h,g)},C=function(D){var L=D.length,E=L%4,R=(L>0?d[D.charAt(0)]<<18:0)|(L>1?d[D.charAt(1)]<<12:0)|(L>2?d[D.charAt(2)]<<6:0)|(L>3?d[D.charAt(3)]:0),O=[o(R>>>16),o(R>>>8&255),o(R&255)];return O.length-=[0,0,2,1][E],O.join("")},b=y.atob&&typeof y.atob=="function"?function(D){return y.atob(D)}:function(D){return D.replace(/\S{1,4}/g,C)},S=function(D){return b(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},x=function(D){return _(b(D))},z=function(D){return String(D).replace(/[-_]/g,function(L){return L=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},P=function(D){return x(z(D))},K;y.Uint8Array&&(K=function(D){return Uint8Array.from(S(z(D)),function(L){return L.charCodeAt(0)})});var N=function(){var D=y.Base64;return y.Base64=p,D};if(y.Base64={VERSION:u,atob:S,btoa:e,fromBase64:P,toBase64:m,utob:r,encode:m,encodeURI:w,btou:_,decode:P,noConflict:N,fromUint8Array:A,toUint8Array:K},typeof Object.defineProperty=="function"){var k=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k(function(){return P(this)})),Object.defineProperty(String.prototype,"toBase64",k(function(D){return m(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",k(function(){return m(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),it.exports?it.exports.Base64=y.Base64:(n=[],f=function(){return y.Base64}.apply(Q,n),f!==void 0&&(it.exports=f)),{Base64:y.Base64}})},16632:function(it,Q,t){"use strict";var n=t(60499),f=t(85899),y=t(18642),p=t(72190),u=t(42244),v=t(92310),d=t.n(v),o=t(18929),s=t(59301),l=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],r=(0,s.forwardRef)(function(a,e){var i=a.prefixCls,c=i===void 0?"rc-checkbox":i,m=a.className,w=a.style,A=a.checked,h=a.disabled,g=a.defaultChecked,_=g===void 0?!1:g,C=a.type,b=C===void 0?"checkbox":C,S=a.title,x=a.onChange,z=(0,u.Z)(a,l),P=(0,s.useRef)(null),K=(0,s.useRef)(null),N=(0,o.Z)(_,{value:A}),k=(0,p.Z)(N,2),D=k[0],L=k[1];(0,s.useImperativeHandle)(e,function(){return{focus:function(M){var I;(I=P.current)===null||I===void 0||I.focus(M)},blur:function(){var M;(M=P.current)===null||M===void 0||M.blur()},input:P.current,nativeElement:K.current}});var E=d()(c,m,(0,y.Z)((0,y.Z)({},"".concat(c,"-checked"),D),"".concat(c,"-disabled"),h)),R=function(M){h||("checked"in a||L(M.target.checked),x==null||x({target:(0,f.Z)((0,f.Z)({},a),{},{type:b,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return s.createElement("span",{className:E,title:S,style:w,ref:K},s.createElement("input",(0,n.Z)({},z,{className:"".concat(c,"-input"),ref:P,onChange:R,disabled:h,checked:!!D,type:b})),s.createElement("span",{className:"".concat(c,"-inner")}))});Q.Z=r},96478:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return S}});var n=t(60499),f=t(18642),y=t(72190),p=t(42244),u=t(68196),v=t(92310),d=t.n(v),o=t(8654),s=t(59301),l=t(10228),r=t(16089),a=l.Z.ESC,e=l.Z.TAB;function i(x){var z=x.visible,P=x.triggerRef,K=x.onVisibleChange,N=x.autoFocus,k=x.overlayRef,D=s.useRef(!1),L=function(){if(z){var M,I;(M=P.current)===null||M===void 0||(I=M.focus)===null||I===void 0||I.call(M),K==null||K(!1)}},E=function(){var M;return(M=k.current)!==null&&M!==void 0&&M.focus?(k.current.focus(),D.current=!0,!0):!1},R=function(M){switch(M.keyCode){case a:L();break;case e:{var I=!1;D.current||(I=E()),I?M.preventDefault():L();break}}};s.useEffect(function(){return z?(window.addEventListener("keydown",R),N&&(0,r.Z)(E,3),function(){window.removeEventListener("keydown",R),D.current=!1}):function(){D.current=!1}},[z])}var c=(0,s.forwardRef)(function(x,z){var P=x.overlay,K=x.arrow,N=x.prefixCls,k=(0,s.useMemo)(function(){var L;return typeof P=="function"?L=P():L=P,L},[P]),D=(0,o.sQ)(z,(0,o.C4)(k));return s.createElement(s.Fragment,null,K&&s.createElement("div",{className:"".concat(N,"-arrow")}),s.cloneElement(k,{ref:(0,o.Yr)(k)?D:void 0}))}),m=c,w={adjustX:1,adjustY:1},A=[0,0],h={topLeft:{points:["bl","tl"],overflow:w,offset:[0,-4],targetOffset:A},top:{points:["bc","tc"],overflow:w,offset:[0,-4],targetOffset:A},topRight:{points:["br","tr"],overflow:w,offset:[0,-4],targetOffset:A},bottomLeft:{points:["tl","bl"],overflow:w,offset:[0,4],targetOffset:A},bottom:{points:["tc","bc"],overflow:w,offset:[0,4],targetOffset:A},bottomRight:{points:["tr","br"],overflow:w,offset:[0,4],targetOffset:A}},g=h,_=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function C(x,z){var P,K=x.arrow,N=K===void 0?!1:K,k=x.prefixCls,D=k===void 0?"rc-dropdown":k,L=x.transitionName,E=x.animation,R=x.align,O=x.placement,M=O===void 0?"bottomLeft":O,I=x.placements,J=I===void 0?g:I,re=x.getPopupContainer,le=x.showAction,ye=x.hideAction,W=x.overlayClassName,H=x.overlayStyle,Z=x.visible,te=x.trigger,_e=te===void 0?["hover"]:te,se=x.autoFocus,G=x.overlay,Ce=x.children,X=x.onVisibleChange,q=(0,p.Z)(x,_),B=s.useState(),U=(0,y.Z)(B,2),j=U[0],oe=U[1],V="visible"in x?Z:j,$=s.useRef(null),T=s.useRef(null),ne=s.useRef(null);s.useImperativeHandle(z,function(){return $.current});var Y=function(He){oe(He),X==null||X(He)};i({visible:V,triggerRef:ne,onVisibleChange:Y,autoFocus:se,overlayRef:T});var ie=function(He){var $e=x.onOverlayClick;oe(!1),$e&&$e(He)},me=function(){return s.createElement(m,{ref:T,overlay:G,prefixCls:D,arrow:N})},fe=function(){return typeof G=="function"?me:me()},ve=function(){var He=x.minOverlayWidthMatchTrigger,$e=x.alignPoint;return"minOverlayWidthMatchTrigger"in x?He:!$e},xe=function(){var He=x.openClassName;return He!==void 0?He:"".concat(D,"-open")},Ee=s.cloneElement(Ce,{className:d()((P=Ce.props)===null||P===void 0?void 0:P.className,V&&xe()),ref:(0,o.Yr)(Ce)?(0,o.sQ)(ne,(0,o.C4)(Ce)):void 0}),Be=ye;return!Be&&_e.indexOf("contextMenu")!==-1&&(Be=["click"]),s.createElement(u.Z,(0,n.Z)({builtinPlacements:J},q,{prefixCls:D,ref:$,popupClassName:d()(W,(0,f.Z)({},"".concat(D,"-show-arrow"),N)),popupStyle:H,action:_e,showAction:le,hideAction:Be,popupPlacement:M,popupAlign:R,popupTransitionName:L,popupAnimation:E,popupVisible:V,stretch:ve()?"minWidth":"",popup:fe(),onPopupVisibleChange:Y,onPopupClick:ie,getPopupContainer:re}),Ee)}var b=s.forwardRef(C),S=b},66003:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return d}});var n=t(42244),f=t(85899),y=t(43749),p=t(59301),u=["show"];function v(o,s){if(!s.max)return!0;var l=s.strategy(o);return l<=s.max}function d(o,s){return p.useMemo(function(){var l={};s&&(l.show=(0,y.Z)(s)==="object"&&s.formatter?s.formatter:!!s),l=(0,f.Z)((0,f.Z)({},l),o);var r=l,a=r.show,e=(0,n.Z)(r,u);return(0,f.Z)((0,f.Z)({},e),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:e.strategy||function(i){return i.length}})},[o,s])}},36901:function(it,Q,t){"use strict";t.r(Q),t.d(Q,{BaseInput:function(){return l},default:function(){return g}});var n=t(85899),f=t(60499),y=t(18642),p=t(43749),u=t(92310),v=t.n(u),d=t(59301),o=t(30292),s=d.forwardRef(function(_,C){var b,S,x,z=_.inputElement,P=_.children,K=_.prefixCls,N=_.prefix,k=_.suffix,D=_.addonBefore,L=_.addonAfter,E=_.className,R=_.style,O=_.disabled,M=_.readOnly,I=_.focused,J=_.triggerFocus,re=_.allowClear,le=_.value,ye=_.handleReset,W=_.hidden,H=_.classes,Z=_.classNames,te=_.dataAttrs,_e=_.styles,se=_.components,G=_.onClear,Ce=P!=null?P:z,X=(se==null?void 0:se.affixWrapper)||"span",q=(se==null?void 0:se.groupWrapper)||"span",B=(se==null?void 0:se.wrapper)||"span",U=(se==null?void 0:se.groupAddon)||"span",j=(0,d.useRef)(null),oe=function(Le){var Fe;(Fe=j.current)!==null&&Fe!==void 0&&Fe.contains(Le.target)&&(J==null||J())},V=(0,o.X3)(_),$=(0,d.cloneElement)(Ce,{value:le,className:v()((b=Ce.props)===null||b===void 0?void 0:b.className,!V&&(Z==null?void 0:Z.variant))||null}),T=(0,d.useRef)(null);if(d.useImperativeHandle(C,function(){return{nativeElement:T.current||j.current}}),V){var ne=null;if(re){var Y=!O&&!M&&le,ie="".concat(K,"-clear-icon"),me=(0,p.Z)(re)==="object"&&re!==null&&re!==void 0&&re.clearIcon?re.clearIcon:"\u2716";ne=d.createElement("button",{type:"button",tabIndex:-1,onClick:function(Le){ye==null||ye(Le),G==null||G()},onMouseDown:function(Le){return Le.preventDefault()},className:v()(ie,(0,y.Z)((0,y.Z)({},"".concat(ie,"-hidden"),!Y),"".concat(ie,"-has-suffix"),!!k))},me)}var fe="".concat(K,"-affix-wrapper"),ve=v()(fe,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(K,"-disabled"),O),"".concat(fe,"-disabled"),O),"".concat(fe,"-focused"),I),"".concat(fe,"-readonly"),M),"".concat(fe,"-input-with-clear-btn"),k&&re&&le),H==null?void 0:H.affixWrapper,Z==null?void 0:Z.affixWrapper,Z==null?void 0:Z.variant),xe=(k||re)&&d.createElement("span",{className:v()("".concat(K,"-suffix"),Z==null?void 0:Z.suffix),style:_e==null?void 0:_e.suffix},ne,k);$=d.createElement(X,(0,f.Z)({className:ve,style:_e==null?void 0:_e.affixWrapper,onClick:oe},te==null?void 0:te.affixWrapper,{ref:j}),N&&d.createElement("span",{className:v()("".concat(K,"-prefix"),Z==null?void 0:Z.prefix),style:_e==null?void 0:_e.prefix},N),$,xe)}if((0,o.He)(_)){var Ee="".concat(K,"-group"),Be="".concat(Ee,"-addon"),De="".concat(Ee,"-wrapper"),He=v()("".concat(K,"-wrapper"),Ee,H==null?void 0:H.wrapper,Z==null?void 0:Z.wrapper),$e=v()(De,(0,y.Z)({},"".concat(De,"-disabled"),O),H==null?void 0:H.group,Z==null?void 0:Z.groupWrapper);$=d.createElement(q,{className:$e,ref:T},d.createElement(B,{className:He},D&&d.createElement(U,{className:Be},D),$,L&&d.createElement(U,{className:Be},L)))}return d.cloneElement($,{className:v()((S=$.props)===null||S===void 0?void 0:S.className,E)||null,style:(0,n.Z)((0,n.Z)({},(x=$.props)===null||x===void 0?void 0:x.style),R),hidden:W})}),l=s,r=t(77654),a=t(72190),e=t(42244),i=t(18929),c=t(2738),m=t(66003),w=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],A=(0,d.forwardRef)(function(_,C){var b=_.autoComplete,S=_.onChange,x=_.onFocus,z=_.onBlur,P=_.onPressEnter,K=_.onKeyDown,N=_.onKeyUp,k=_.prefixCls,D=k===void 0?"rc-input":k,L=_.disabled,E=_.htmlSize,R=_.className,O=_.maxLength,M=_.suffix,I=_.showCount,J=_.count,re=_.type,le=re===void 0?"text":re,ye=_.classes,W=_.classNames,H=_.styles,Z=_.onCompositionStart,te=_.onCompositionEnd,_e=(0,e.Z)(_,w),se=(0,d.useState)(!1),G=(0,a.Z)(se,2),Ce=G[0],X=G[1],q=(0,d.useRef)(!1),B=(0,d.useRef)(!1),U=(0,d.useRef)(null),j=(0,d.useRef)(null),oe=function(Se){U.current&&(0,o.nH)(U.current,Se)},V=(0,i.Z)(_.defaultValue,{value:_.value}),$=(0,a.Z)(V,2),T=$[0],ne=$[1],Y=T==null?"":String(T),ie=(0,d.useState)(null),me=(0,a.Z)(ie,2),fe=me[0],ve=me[1],xe=(0,m.Z)(J,I),Ee=xe.max||O,Be=xe.strategy(Y),De=!!Ee&&Be>Ee;(0,d.useImperativeHandle)(C,function(){var Ae;return{focus:oe,blur:function(){var Ne;(Ne=U.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,Qe,We){var Je;(Je=U.current)===null||Je===void 0||Je.setSelectionRange(Ne,Qe,We)},select:function(){var Ne;(Ne=U.current)===null||Ne===void 0||Ne.select()},input:U.current,nativeElement:((Ae=j.current)===null||Ae===void 0?void 0:Ae.nativeElement)||U.current}}),(0,d.useEffect)(function(){B.current&&(B.current=!1),X(function(Ae){return Ae&&L?!1:Ae})},[L]);var He=function(Se,Ne,Qe){var We=Ne;if(!q.current&&xe.exceedFormatter&&xe.max&&xe.strategy(Ne)>xe.max){if(We=xe.exceedFormatter(Ne,{max:xe.max}),Ne!==We){var Je,Te;ve([((Je=U.current)===null||Je===void 0?void 0:Je.selectionStart)||0,((Te=U.current)===null||Te===void 0?void 0:Te.selectionEnd)||0])}}else if(Qe.source==="compositionEnd")return;ne(We),U.current&&(0,o.rJ)(U.current,Se,S,We)};(0,d.useEffect)(function(){if(fe){var Ae;(Ae=U.current)===null||Ae===void 0||Ae.setSelectionRange.apply(Ae,(0,r.Z)(fe))}},[fe]);var $e=function(Se){He(Se,Se.target.value,{source:"change"})},Pe=function(Se){q.current=!1,He(Se,Se.currentTarget.value,{source:"compositionEnd"}),te==null||te(Se)},Le=function(Se){P&&Se.key==="Enter"&&!B.current&&(B.current=!0,P(Se)),K==null||K(Se)},Fe=function(Se){Se.key==="Enter"&&(B.current=!1),N==null||N(Se)},F=function(Se){X(!0),x==null||x(Se)},ee=function(Se){B.current&&(B.current=!1),X(!1),z==null||z(Se)},ue=function(Se){ne(""),oe(),U.current&&(0,o.rJ)(U.current,Se,S)},pe=De&&"".concat(D,"-out-of-range"),Ie=function(){var Se=(0,c.Z)(_,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return d.createElement("input",(0,f.Z)({autoComplete:b},Se,{onChange:$e,onFocus:F,onBlur:ee,onKeyDown:Le,onKeyUp:Fe,className:v()(D,(0,y.Z)({},"".concat(D,"-disabled"),L),W==null?void 0:W.input),style:H==null?void 0:H.input,ref:U,size:E,type:le,onCompositionStart:function(Qe){q.current=!0,Z==null||Z(Qe)},onCompositionEnd:Pe}))},Ze=function(){var Se=Number(Ee)>0;if(M||xe.show){var Ne=xe.showFormatter?xe.showFormatter({value:Y,count:Be,maxLength:Ee}):"".concat(Be).concat(Se?" / ".concat(Ee):"");return d.createElement(d.Fragment,null,xe.show&&d.createElement("span",{className:v()("".concat(D,"-show-count-suffix"),(0,y.Z)({},"".concat(D,"-show-count-has-suffix"),!!M),W==null?void 0:W.count),style:(0,n.Z)({},H==null?void 0:H.count)},Ne),M)}return null};return d.createElement(l,(0,f.Z)({},_e,{prefixCls:D,className:v()(R,pe),handleReset:ue,value:Y,focused:Ce,triggerFocus:oe,suffix:Ze(),disabled:L,classes:ye,classNames:W,styles:H}),Ie())}),h=A,g=h},30292:function(it,Q,t){"use strict";t.d(Q,{He:function(){return n},X3:function(){return f},nH:function(){return u},rJ:function(){return p}});function n(v){return!!(v.addonBefore||v.addonAfter)}function f(v){return!!(v.prefix||v.suffix||v.allowClear)}function y(v,d,o){var s=d.cloneNode(!0),l=Object.create(v,{target:{value:s},currentTarget:{value:s}});return s.value=o,typeof d.selectionStart=="number"&&typeof d.selectionEnd=="number"&&(s.selectionStart=d.selectionStart,s.selectionEnd=d.selectionEnd),s.setSelectionRange=function(){d.setSelectionRange.apply(d,arguments)},l}function p(v,d,o,s){if(o){var l=d;if(d.type==="click"){l=y(d,v,""),o(l);return}if(v.type!=="file"&&s!==void 0){l=y(d,v,s),o(l);return}o(l)}}function u(v,d){if(v){v.focus(d);var o=d||{},s=o.cursor;if(s){var l=v.value.length;switch(s){case"start":v.setSelectionRange(0,0);break;case"end":v.setSelectionRange(l,l);break;default:v.setSelectionRange(0,l)}}}}},28321:function(it,Q,t){"use strict";t.d(Q,{iz:function(){return gt},ck:function(){return We},BW:function(){return jt},sN:function(){return We},Wd:function(){return ot},ZP:function(){return hr},Xl:function(){return P}});var n=t(60499),f=t(18642),y=t(85899),p=t(77654),u=t(72190),v=t(42244),d=t(92310),o=t.n(d),s=t(83836),l=t(18929),r=t(13697),a=t(48736),e=t(59301),i=t(4676),c=e.createContext(null);function m(ce,Re){return ce===void 0?null:"".concat(ce,"-").concat(Re)}function w(ce){var Re=e.useContext(c);return m(Re,ce)}var A=t(80547),h=["children","locked"],g=e.createContext(null);function _(ce,Re){var Me=(0,y.Z)({},ce);return Object.keys(Re).forEach(function(we){var be=Re[we];be!==void 0&&(Me[we]=be)}),Me}function C(ce){var Re=ce.children,Me=ce.locked,we=(0,v.Z)(ce,h),be=e.useContext(g),Oe=(0,A.Z)(function(){return _(be,we)},[be,we],function(je,et){return!Me&&(je[0]!==et[0]||!(0,r.Z)(je[1],et[1],!0))});return e.createElement(g.Provider,{value:Oe},Re)}var b=[],S=e.createContext(null);function x(){return e.useContext(S)}var z=e.createContext(b);function P(ce){var Re=e.useContext(z);return e.useMemo(function(){return ce!==void 0?[].concat((0,p.Z)(Re),[ce]):Re},[Re,ce])}var K=e.createContext(null),N=e.createContext({}),k=N,D=t(29194);function L(ce){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(ce)){var Me=ce.nodeName.toLowerCase(),we=["input","select","textarea","button"].includes(Me)||ce.isContentEditable||Me==="a"&&!!ce.getAttribute("href"),be=ce.getAttribute("tabindex"),Oe=Number(be),je=null;return be&&!Number.isNaN(Oe)?je=Oe:we&&je===null&&(je=0),we&&ce.disabled&&(je=null),je!==null&&(je>=0||Re&&je<0)}return!1}function E(ce){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=(0,p.Z)(ce.querySelectorAll("*")).filter(function(we){return L(we,Re)});return L(ce,Re)&&Me.unshift(ce),Me}var R=null;function O(){R=document.activeElement}function M(){R=null}function I(){if(R)try{R.focus()}catch(ce){}}function J(ce,Re){if(Re.keyCode===9){var Me=E(ce),we=Me[Re.shiftKey?0:Me.length-1],be=we===document.activeElement||ce===document.activeElement;if(be){var Oe=Me[Re.shiftKey?Me.length-1:0];Oe.focus(),Re.preventDefault()}}}var re=t(10228),le=t(16089),ye=re.Z.LEFT,W=re.Z.RIGHT,H=re.Z.UP,Z=re.Z.DOWN,te=re.Z.ENTER,_e=re.Z.ESC,se=re.Z.HOME,G=re.Z.END,Ce=[H,Z,ye,W];function X(ce,Re,Me,we){var be,Oe="prev",je="next",et="children",mt="parent";if(ce==="inline"&&we===te)return{inlineTrigger:!0};var ft=(0,f.Z)((0,f.Z)({},H,Oe),Z,je),Lt=(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},ye,Me?je:Oe),W,Me?Oe:je),Z,et),te,et),vt=(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},H,Oe),Z,je),te,et),_e,mt),ye,Me?et:mt),W,Me?mt:et),pt={inline:ft,horizontal:Lt,vertical:vt,inlineSub:ft,horizontalSub:vt,verticalSub:vt},_t=(be=pt["".concat(ce).concat(Re?"":"Sub")])===null||be===void 0?void 0:be[we];switch(_t){case Oe:return{offset:-1,sibling:!0};case je:return{offset:1,sibling:!0};case mt:return{offset:-1,sibling:!1};case et:return{offset:1,sibling:!1};default:return null}}function q(ce){for(var Re=ce;Re;){if(Re.getAttribute("data-menu-list"))return Re;Re=Re.parentElement}return null}function B(ce,Re){for(var Me=ce||document.activeElement;Me;){if(Re.has(Me))return Me;Me=Me.parentElement}return null}function U(ce,Re){var Me=E(ce,!0);return Me.filter(function(we){return Re.has(we)})}function j(ce,Re,Me){var we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ce)return null;var be=U(ce,Re),Oe=be.length,je=be.findIndex(function(et){return Me===et});return we<0?je===-1?je=Oe-1:je-=1:we>0&&(je+=1),je=(je+Oe)%Oe,be[je]}var oe=function(Re,Me){var we=new Set,be=new Map,Oe=new Map;return Re.forEach(function(je){var et=document.querySelector("[data-menu-id='".concat(m(Me,je),"']"));et&&(we.add(et),Oe.set(et,je),be.set(je,et))}),{elements:we,key2element:be,element2key:Oe}};function V(ce,Re,Me,we,be,Oe,je,et,mt,ft){var Lt=e.useRef(),vt=e.useRef();vt.current=Re;var pt=function(){le.Z.cancel(Lt.current)};return e.useEffect(function(){return function(){pt()}},[]),function(_t){var At=_t.which;if([].concat(Ce,[te,_e,se,G]).includes(At)){var Et=Oe(),lt=oe(Et,we),ht=lt,Rt=ht.elements,St=ht.key2element,yt=ht.element2key,It=St.get(Re),wt=B(It,Rt),Ot=yt.get(wt),Ut=X(ce,je(Ot,!0).length===1,Me,At);if(!Ut&&At!==se&&At!==G)return;(Ce.includes(At)||[se,G].includes(At))&&_t.preventDefault();var Ht=function(Zt){if(Zt){var dr=Zt,Dt=Zt.querySelector("a");Dt!=null&&Dt.getAttribute("href")&&(dr=Dt);var or=yt.get(Zt);et(or),pt(),Lt.current=(0,le.Z)(function(){vt.current===or&&dr.focus()})}};if([se,G].includes(At)||Ut.sibling||!wt){var rr;!wt||ce==="inline"?rr=be.current:rr=q(wt);var $t,Kt=U(rr,Rt);At===se?$t=Kt[0]:At===G?$t=Kt[Kt.length-1]:$t=j(rr,Rt,wt,Ut.offset),Ht($t)}else if(Ut.inlineTrigger)mt(Ot);else if(Ut.offset>0)mt(Ot,!0),pt(),Lt.current=(0,le.Z)(function(){lt=oe(Et,we);var ir=wt.getAttribute("aria-controls"),Zt=document.getElementById(ir),dr=j(Zt,lt.elements);Ht(dr)},5);else if(Ut.offset<0){var nr=je(Ot,!0),Yt=nr[nr.length-2],Qt=St.get(Yt);mt(Yt,!1),Ht(Qt)}}ft==null||ft(_t)}}function $(ce){Promise.resolve().then(ce)}var T="__RC_UTIL_PATH_SPLIT__",ne=function(Re){return Re.join(T)},Y=function(Re){return Re.split(T)},ie="rc-menu-more";function me(){var ce=e.useState({}),Re=(0,u.Z)(ce,2),Me=Re[1],we=(0,e.useRef)(new Map),be=(0,e.useRef)(new Map),Oe=e.useState([]),je=(0,u.Z)(Oe,2),et=je[0],mt=je[1],ft=(0,e.useRef)(0),Lt=(0,e.useRef)(!1),vt=function(){Lt.current||Me({})},pt=(0,e.useCallback)(function(St,yt){var It=ne(yt);be.current.set(It,St),we.current.set(St,It),ft.current+=1;var wt=ft.current;$(function(){wt===ft.current&&vt()})},[]),_t=(0,e.useCallback)(function(St,yt){var It=ne(yt);be.current.delete(It),we.current.delete(St)},[]),At=(0,e.useCallback)(function(St){mt(St)},[]),Et=(0,e.useCallback)(function(St,yt){var It=we.current.get(St)||"",wt=Y(It);return yt&&et.includes(wt[0])&&wt.unshift(ie),wt},[et]),lt=(0,e.useCallback)(function(St,yt){return St.filter(function(It){return It!==void 0}).some(function(It){var wt=Et(It,!0);return wt.includes(yt)})},[Et]),ht=function(){var yt=(0,p.Z)(we.current.keys());return et.length&&yt.push(ie),yt},Rt=(0,e.useCallback)(function(St){var yt="".concat(we.current.get(St)).concat(T),It=new Set;return(0,p.Z)(be.current.keys()).forEach(function(wt){wt.startsWith(yt)&&It.add(be.current.get(wt))}),It},[]);return e.useEffect(function(){return function(){Lt.current=!0}},[]),{registerPath:pt,unregisterPath:_t,refreshOverflowKeys:At,isSubPathKey:lt,getKeyPath:Et,getKeys:ht,getSubPathKeys:Rt}}function fe(ce){var Re=e.useRef(ce);Re.current=ce;var Me=e.useCallback(function(){for(var we,be=arguments.length,Oe=new Array(be),je=0;je<be;je++)Oe[je]=arguments[je];return(we=Re.current)===null||we===void 0?void 0:we.call.apply(we,[Re].concat(Oe))},[]);return ce?Me:void 0}var ve=Math.random().toFixed(5).toString().slice(2),xe=0;function Ee(ce){var Re=(0,l.Z)(ce,{value:ce}),Me=(0,u.Z)(Re,2),we=Me[0],be=Me[1];return e.useEffect(function(){xe+=1;var Oe="".concat(ve,"-").concat(xe);be("rc-menu-uuid-".concat(Oe))},[]),we}var Be=t(38705),De=t(17212),He=t(39153),$e=t(55401),Pe=t(2738),Le=t(8654);function Fe(ce,Re,Me,we){var be=e.useContext(g),Oe=be.activeKey,je=be.onActive,et=be.onInactive,mt={active:Oe===ce};return Re||(mt.onMouseEnter=function(ft){Me==null||Me({key:ce,domEvent:ft}),je(ce)},mt.onMouseLeave=function(ft){we==null||we({key:ce,domEvent:ft}),et(ce)}),mt}function F(ce){var Re=e.useContext(g),Me=Re.mode,we=Re.rtl,be=Re.inlineIndent;if(Me!=="inline")return null;var Oe=ce;return we?{paddingRight:Oe*be}:{paddingLeft:Oe*be}}function ee(ce){var Re=ce.icon,Me=ce.props,we=ce.children,be;return Re===null||Re===!1?null:(typeof Re=="function"?be=e.createElement(Re,(0,y.Z)({},Me)):typeof Re!="boolean"&&(be=Re),be||we||null)}var ue=["item"];function pe(ce){var Re=ce.item,Me=(0,v.Z)(ce,ue);return Object.defineProperty(Me,"item",{get:function(){return(0,a.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Re}}),Me}var Ie=["title","attribute","elementRef"],Ze=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ae=["active"],Se=function(ce){(0,He.Z)(Me,ce);var Re=(0,$e.Z)(Me);function Me(){return(0,Be.Z)(this,Me),Re.apply(this,arguments)}return(0,De.Z)(Me,[{key:"render",value:function(){var be=this.props,Oe=be.title,je=be.attribute,et=be.elementRef,mt=(0,v.Z)(be,Ie),ft=(0,Pe.Z)(mt,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,a.ZP)(!je,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(s.Z.Item,(0,n.Z)({},je,{title:typeof Oe=="string"?Oe:void 0},ft,{ref:et}))}}]),Me}(e.Component),Ne=e.forwardRef(function(ce,Re){var Me=ce.style,we=ce.className,be=ce.eventKey,Oe=ce.warnKey,je=ce.disabled,et=ce.itemIcon,mt=ce.children,ft=ce.role,Lt=ce.onMouseEnter,vt=ce.onMouseLeave,pt=ce.onClick,_t=ce.onKeyDown,At=ce.onFocus,Et=(0,v.Z)(ce,Ze),lt=w(be),ht=e.useContext(g),Rt=ht.prefixCls,St=ht.onItemClick,yt=ht.disabled,It=ht.overflowDisabled,wt=ht.itemIcon,Ot=ht.selectedKeys,Ut=ht.onActive,Ht=e.useContext(k),rr=Ht._internalRenderMenuItem,$t="".concat(Rt,"-item"),Kt=e.useRef(),nr=e.useRef(),Yt=yt||je,Qt=(0,Le.x1)(Re,nr),ir=P(be),Zt=function(Vt){return{key:be,keyPath:(0,p.Z)(ir).reverse(),item:Kt.current,domEvent:Vt}},dr=et||wt,Dt=Fe(be,Yt,Lt,vt),or=Dt.active,wr=(0,v.Z)(Dt,Ae),Ar=Ot.includes(be),vr=F(ir.length),Rr=function(Vt){if(!Yt){var sr=Zt(Vt);pt==null||pt(pe(sr)),St(sr)}},qt=function(Vt){if(_t==null||_t(Vt),Vt.which===re.Z.ENTER){var sr=Zt(Vt);pt==null||pt(pe(sr)),St(sr)}},ur=function(Vt){Ut(be),At==null||At(Vt)},Lr={};ce.role==="option"&&(Lr["aria-selected"]=Ar);var pr=e.createElement(Se,(0,n.Z)({ref:Kt,elementRef:Qt,role:ft===null?"none":ft||"menuitem",tabIndex:je?null:-1,"data-menu-id":It&<?null:lt},(0,Pe.Z)(Et,["extra"]),wr,Lr,{component:"li","aria-disabled":je,style:(0,y.Z)((0,y.Z)({},vr),Me),className:o()($t,(0,f.Z)((0,f.Z)((0,f.Z)({},"".concat($t,"-active"),or),"".concat($t,"-selected"),Ar),"".concat($t,"-disabled"),Yt),we),onClick:Rr,onKeyDown:qt,onFocus:ur}),mt,e.createElement(ee,{props:(0,y.Z)((0,y.Z)({},ce),{},{isSelected:Ar}),icon:dr}));return rr&&(pr=rr(pr,ce,{selected:Ar})),pr});function Qe(ce,Re){var Me=ce.eventKey,we=x(),be=P(Me);return e.useEffect(function(){if(we)return we.registerPath(Me,be),function(){we.unregisterPath(Me,be)}},[be]),we?null:e.createElement(Ne,(0,n.Z)({},ce,{ref:Re}))}var We=e.forwardRef(Qe),Je=["className","children"],Te=function(Re,Me){var we=Re.className,be=Re.children,Oe=(0,v.Z)(Re,Je),je=e.useContext(g),et=je.prefixCls,mt=je.mode,ft=je.rtl;return e.createElement("ul",(0,n.Z)({className:o()(et,ft&&"".concat(et,"-rtl"),"".concat(et,"-sub"),"".concat(et,"-").concat(mt==="inline"?"inline":"vertical"),we),role:"menu"},Oe,{"data-menu-list":!0,ref:Me}),be)},Ge=e.forwardRef(Te);Ge.displayName="SubMenuList";var Xe=Ge,ge=t(11592);function ae(ce,Re){return(0,ge.Z)(ce).map(function(Me,we){if(e.isValidElement(Me)){var be,Oe,je=Me.key,et=(be=(Oe=Me.props)===null||Oe===void 0?void 0:Oe.eventKey)!==null&&be!==void 0?be:je,mt=et==null;mt&&(et="tmp_key-".concat([].concat((0,p.Z)(Re),[we]).join("-")));var ft={key:et,eventKey:et};return e.cloneElement(Me,ft)}return Me})}var he=t(68196),de={adjustX:1,adjustY:1},Ke={topLeft:{points:["bl","tl"],overflow:de},topRight:{points:["br","tr"],overflow:de},bottomLeft:{points:["tl","bl"],overflow:de},bottomRight:{points:["tr","br"],overflow:de},leftTop:{points:["tr","tl"],overflow:de},leftBottom:{points:["br","bl"],overflow:de},rightTop:{points:["tl","tr"],overflow:de},rightBottom:{points:["bl","br"],overflow:de}},ze={topLeft:{points:["bl","tl"],overflow:de},topRight:{points:["br","tr"],overflow:de},bottomLeft:{points:["tl","bl"],overflow:de},bottomRight:{points:["tr","br"],overflow:de},rightTop:{points:["tr","tl"],overflow:de},rightBottom:{points:["br","bl"],overflow:de},leftTop:{points:["tl","tr"],overflow:de},leftBottom:{points:["bl","br"],overflow:de}},ke=null;function Ye(ce,Re,Me){if(Re)return Re;if(Me)return Me[ce]||Me.other}var tt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function st(ce){var Re=ce.prefixCls,Me=ce.visible,we=ce.children,be=ce.popup,Oe=ce.popupStyle,je=ce.popupClassName,et=ce.popupOffset,mt=ce.disabled,ft=ce.mode,Lt=ce.onVisibleChange,vt=e.useContext(g),pt=vt.getPopupContainer,_t=vt.rtl,At=vt.subMenuOpenDelay,Et=vt.subMenuCloseDelay,lt=vt.builtinPlacements,ht=vt.triggerSubMenuAction,Rt=vt.forceSubMenuRender,St=vt.rootClassName,yt=vt.motion,It=vt.defaultMotions,wt=e.useState(!1),Ot=(0,u.Z)(wt,2),Ut=Ot[0],Ht=Ot[1],rr=_t?(0,y.Z)((0,y.Z)({},ze),lt):(0,y.Z)((0,y.Z)({},Ke),lt),$t=tt[ft],Kt=Ye(ft,yt,It),nr=e.useRef(Kt);ft!=="inline"&&(nr.current=Kt);var Yt=(0,y.Z)((0,y.Z)({},nr.current),{},{leavedClassName:"".concat(Re,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=e.useRef();return e.useEffect(function(){return Qt.current=(0,le.Z)(function(){Ht(Me)}),function(){le.Z.cancel(Qt.current)}},[Me]),e.createElement(he.Z,{prefixCls:Re,popupClassName:o()("".concat(Re,"-popup"),(0,f.Z)({},"".concat(Re,"-rtl"),_t),je,St),stretch:ft==="horizontal"?"minWidth":null,getPopupContainer:pt,builtinPlacements:rr,popupPlacement:$t,popupVisible:Ut,popup:be,popupStyle:Oe,popupAlign:et&&{offset:et},action:mt?[]:[ht],mouseEnterDelay:At,mouseLeaveDelay:Et,onPopupVisibleChange:Lt,forceRender:Rt,popupMotion:Yt,fresh:!0},we)}var at=t(77900);function Ve(ce){var Re=ce.id,Me=ce.open,we=ce.keyPath,be=ce.children,Oe="inline",je=e.useContext(g),et=je.prefixCls,mt=je.forceSubMenuRender,ft=je.motion,Lt=je.defaultMotions,vt=je.mode,pt=e.useRef(!1);pt.current=vt===Oe;var _t=e.useState(!pt.current),At=(0,u.Z)(_t,2),Et=At[0],lt=At[1],ht=pt.current?Me:!1;e.useEffect(function(){pt.current&<(!1)},[vt]);var Rt=(0,y.Z)({},Ye(Oe,ft,Lt));we.length>1&&(Rt.motionAppear=!1);var St=Rt.onVisibleChanged;return Rt.onVisibleChanged=function(yt){return!pt.current&&!yt&<(!0),St==null?void 0:St(yt)},Et?null:e.createElement(C,{mode:Oe,locked:!pt.current},e.createElement(at.default,(0,n.Z)({visible:ht},Rt,{forceRender:mt,removeOnLeave:!1,leavedClassName:"".concat(et,"-hidden")}),function(yt){var It=yt.className,wt=yt.style;return e.createElement(Xe,{id:Re,className:It,style:wt},be)}))}var ut=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],dt=["active"],rt=e.forwardRef(function(ce,Re){var Me=ce.style,we=ce.className,be=ce.title,Oe=ce.eventKey,je=ce.warnKey,et=ce.disabled,mt=ce.internalPopupClose,ft=ce.children,Lt=ce.itemIcon,vt=ce.expandIcon,pt=ce.popupClassName,_t=ce.popupOffset,At=ce.popupStyle,Et=ce.onClick,lt=ce.onMouseEnter,ht=ce.onMouseLeave,Rt=ce.onTitleClick,St=ce.onTitleMouseEnter,yt=ce.onTitleMouseLeave,It=(0,v.Z)(ce,ut),wt=w(Oe),Ot=e.useContext(g),Ut=Ot.prefixCls,Ht=Ot.mode,rr=Ot.openKeys,$t=Ot.disabled,Kt=Ot.overflowDisabled,nr=Ot.activeKey,Yt=Ot.selectedKeys,Qt=Ot.itemIcon,ir=Ot.expandIcon,Zt=Ot.onItemClick,dr=Ot.onOpenChange,Dt=Ot.onActive,or=e.useContext(k),wr=or._internalRenderSubMenuItem,Ar=e.useContext(K),vr=Ar.isSubPathKey,Rr=P(),qt="".concat(Ut,"-submenu"),ur=$t||et,Lr=e.useRef(),pr=e.useRef(),mr=Lt!=null?Lt:Qt,Vt=vt!=null?vt:ir,sr=rr.includes(Oe),gr=!Kt&&sr,Ir=vr(Yt,Oe),ar=Fe(Oe,ur,St,yt),fr=ar.active,Or=(0,v.Z)(ar,dt),Mr=e.useState(!1),Nr=(0,u.Z)(Mr,2),Hr=Nr[0],jr=Nr[1],Dr=function(cr){ur||jr(cr)},$r=function(cr){Dr(!0),lt==null||lt({key:Oe,domEvent:cr})},Kr=function(cr){Dr(!1),ht==null||ht({key:Oe,domEvent:cr})},kr=e.useMemo(function(){return fr||(Ht!=="inline"?Hr||vr([nr],Oe):!1)},[Ht,fr,nr,Hr,Oe,vr]),_r=F(Rr.length),Vr=function(cr){ur||(Rt==null||Rt({key:Oe,domEvent:cr}),Ht==="inline"&&dr(Oe,!sr))},Gr=fe(function(kt){Et==null||Et(pe(kt)),Zt(kt)}),Fr=function(cr){Ht!=="inline"&&dr(Oe,cr)},Zr=function(){Dt(Oe)},zr=wt&&"".concat(wt,"-popup"),Tr=e.useMemo(function(){return e.createElement(ee,{icon:Ht!=="horizontal"?Vt:void 0,props:(0,y.Z)((0,y.Z)({},ce),{},{isOpen:gr,isSubMenu:!0})},e.createElement("i",{className:"".concat(qt,"-arrow")}))},[Ht,Vt,ce,gr,qt]),lr=e.createElement("div",(0,n.Z)({role:"menuitem",style:_r,className:"".concat(qt,"-title"),tabIndex:ur?null:-1,ref:Lr,title:typeof be=="string"?be:null,"data-menu-id":Kt&&wt?null:wt,"aria-expanded":gr,"aria-haspopup":!0,"aria-controls":zr,"aria-disabled":ur,onClick:Vr,onFocus:Zr},Or),be,Tr),yr=e.useRef(Ht);if(Ht!=="inline"&&Rr.length>1?yr.current="vertical":yr.current=Ht,!Kt){var Wr=yr.current;lr=e.createElement(st,{mode:Wr,prefixCls:qt,visible:!mt&&gr&&Ht!=="inline",popupClassName:pt,popupOffset:_t,popupStyle:At,popup:e.createElement(C,{mode:Wr==="horizontal"?"vertical":Wr},e.createElement(Xe,{id:zr,ref:pr},ft)),disabled:ur,onVisibleChange:Fr},lr)}var er=e.createElement(s.Z.Item,(0,n.Z)({ref:Re,role:"none"},It,{component:"li",style:Me,className:o()(qt,"".concat(qt,"-").concat(Ht),we,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(qt,"-open"),gr),"".concat(qt,"-active"),kr),"".concat(qt,"-selected"),Ir),"".concat(qt,"-disabled"),ur)),onMouseEnter:$r,onMouseLeave:Kr}),lr,!Kt&&e.createElement(Ve,{id:zr,open:gr,keyPath:Rr},ft));return wr&&(er=wr(er,ce,{selected:Ir,active:kr,open:gr,disabled:ur})),e.createElement(C,{onItemClick:Gr,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:mr,expandIcon:Vt},er)}),qe=e.forwardRef(function(ce,Re){var Me=ce.eventKey,we=ce.children,be=P(Me),Oe=ae(we,be),je=x();e.useEffect(function(){if(je)return je.registerPath(Me,be),function(){je.unregisterPath(Me,be)}},[be]);var et;return je?et=Oe:et=e.createElement(rt,(0,n.Z)({ref:Re},ce),Oe),e.createElement(z.Provider,{value:be},et)}),ot=qe,Ue=t(43749);function gt(ce){var Re=ce.className,Me=ce.style,we=e.useContext(g),be=we.prefixCls,Oe=x();return Oe?null:e.createElement("li",{role:"separator",className:o()("".concat(be,"-item-divider"),Re),style:Me})}var xt=["className","title","eventKey","children"],Ct=e.forwardRef(function(ce,Re){var Me=ce.className,we=ce.title,be=ce.eventKey,Oe=ce.children,je=(0,v.Z)(ce,xt),et=e.useContext(g),mt=et.prefixCls,ft="".concat(mt,"-item-group");return e.createElement("li",(0,n.Z)({ref:Re,role:"presentation"},je,{onClick:function(vt){return vt.stopPropagation()},className:o()(ft,Me)}),e.createElement("div",{role:"presentation",className:"".concat(ft,"-title"),title:typeof we=="string"?we:void 0},we),e.createElement("ul",{role:"group",className:"".concat(ft,"-list")},Oe))}),Pt=e.forwardRef(function(ce,Re){var Me=ce.eventKey,we=ce.children,be=P(Me),Oe=ae(we,be),je=x();return je?Oe:e.createElement(Ct,(0,n.Z)({ref:Re},(0,Pe.Z)(ce,["warnKey"])),Oe)}),jt=Pt,bt=["label","children","key","type","extra"];function Wt(ce,Re,Me){var we=Re.item,be=Re.group,Oe=Re.submenu,je=Re.divider;return(ce||[]).map(function(et,mt){if(et&&(0,Ue.Z)(et)==="object"){var ft=et,Lt=ft.label,vt=ft.children,pt=ft.key,_t=ft.type,At=ft.extra,Et=(0,v.Z)(ft,bt),lt=pt!=null?pt:"tmp-".concat(mt);return vt||_t==="group"?_t==="group"?e.createElement(be,(0,n.Z)({key:lt},Et,{title:Lt}),Wt(vt,Re,Me)):e.createElement(Oe,(0,n.Z)({key:lt},Et,{title:Lt}),Wt(vt,Re,Me)):_t==="divider"?e.createElement(je,(0,n.Z)({key:lt},Et)):e.createElement(we,(0,n.Z)({key:lt},Et,{extra:At}),Lt,(!!At||At===0)&&e.createElement("span",{className:"".concat(Me,"-item-extra")},At))}return null}).filter(function(et){return et})}function Mt(ce,Re,Me,we,be){var Oe=ce,je=(0,y.Z)({divider:gt,item:We,group:jt,submenu:ot},we);return Re&&(Oe=Wt(Re,je,be)),ae(Oe,Me)}var xr=["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"],Nt=[],tr=e.forwardRef(function(ce,Re){var Me,we=ce,be=we.prefixCls,Oe=be===void 0?"rc-menu":be,je=we.rootClassName,et=we.style,mt=we.className,ft=we.tabIndex,Lt=ft===void 0?0:ft,vt=we.items,pt=we.children,_t=we.direction,At=we.id,Et=we.mode,lt=Et===void 0?"vertical":Et,ht=we.inlineCollapsed,Rt=we.disabled,St=we.disabledOverflow,yt=we.subMenuOpenDelay,It=yt===void 0?.1:yt,wt=we.subMenuCloseDelay,Ot=wt===void 0?.1:wt,Ut=we.forceSubMenuRender,Ht=we.defaultOpenKeys,rr=we.openKeys,$t=we.activeKey,Kt=we.defaultActiveFirst,nr=we.selectable,Yt=nr===void 0?!0:nr,Qt=we.multiple,ir=Qt===void 0?!1:Qt,Zt=we.defaultSelectedKeys,dr=we.selectedKeys,Dt=we.onSelect,or=we.onDeselect,wr=we.inlineIndent,Ar=wr===void 0?24:wr,vr=we.motion,Rr=we.defaultMotions,qt=we.triggerSubMenuAction,ur=qt===void 0?"hover":qt,Lr=we.builtinPlacements,pr=we.itemIcon,mr=we.expandIcon,Vt=we.overflowedIndicator,sr=Vt===void 0?"...":Vt,gr=we.overflowedIndicatorPopupClassName,Ir=we.getPopupContainer,ar=we.onClick,fr=we.onOpenChange,Or=we.onKeyDown,Mr=we.openAnimation,Nr=we.openTransitionName,Hr=we._internalRenderMenuItem,jr=we._internalRenderSubMenuItem,Dr=we._internalComponents,$r=(0,v.Z)(we,xr),Kr=e.useMemo(function(){return[Mt(pt,vt,Nt,Dr,Oe),Mt(pt,vt,Nt,{},Oe)]},[pt,vt,Dr]),kr=(0,u.Z)(Kr,2),_r=kr[0],Vr=kr[1],Gr=e.useState(!1),Fr=(0,u.Z)(Gr,2),Zr=Fr[0],zr=Fr[1],Tr=e.useRef(),lr=Ee(At),yr=_t==="rtl",Wr=(0,l.Z)(Ht,{value:rr,postState:function(Bt){return Bt||Nt}}),er=(0,u.Z)(Wr,2),kt=er[0],cr=er[1],br=function(Bt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Cr(){cr(Bt),fr==null||fr(Bt)}zt?(0,i.flushSync)(Cr):Cr()},Br=e.useState(kt),Ur=(0,u.Z)(Br,2),Qr=Ur[0],en=Ur[1],Xr=e.useRef(!1),tn=e.useMemo(function(){return(lt==="inline"||lt==="vertical")&&ht?["vertical",ht]:[lt,!1]},[lt,ht]),nt=(0,u.Z)(tn,2),ct=nt[0],Tt=nt[1],Gt=ct==="inline",Ft=e.useState(ct),Yr=(0,u.Z)(Ft,2),Pr=Yr[0],on=Yr[1],qr=e.useState(Tt),hn=(0,u.Z)(qr,2),En=hn[0],wn=hn[1];e.useEffect(function(){on(ct),wn(Tt),Xr.current&&(Gt?cr(Qr):br(Nt))},[ct,Tt]);var An=e.useState(0),vn=(0,u.Z)(An,2),sn=vn[0],Rn=vn[1],cn=sn>=_r.length-1||Pr!=="horizontal"||St;e.useEffect(function(){Gt&&en(kt)},[kt]),e.useEffect(function(){return Xr.current=!0,function(){Xr.current=!1}},[]);var Jr=me(),pn=Jr.registerPath,mn=Jr.unregisterPath,On=Jr.refreshOverflowKeys,gn=Jr.isSubPathKey,Pn=Jr.getKeyPath,_n=Jr.getKeys,Ln=Jr.getSubPathKeys,In=e.useMemo(function(){return{registerPath:pn,unregisterPath:mn}},[pn,mn]),Mn=e.useMemo(function(){return{isSubPathKey:gn}},[gn]);e.useEffect(function(){On(cn?Nt:_r.slice(sn+1).map(function(Xt){return Xt.key}))},[sn,cn]);var Dn=(0,l.Z)($t||Kt&&((Me=_r[0])===null||Me===void 0?void 0:Me.key),{value:$t}),yn=(0,u.Z)(Dn,2),rn=yn[0],un=yn[1],Tn=fe(function(Xt){un(Xt)}),Bn=fe(function(){un(void 0)});(0,e.useImperativeHandle)(Re,function(){return{list:Tr.current,focus:function(Bt){var zt,Cr=_n(),Sr=oe(Cr,lr),ln=Sr.elements,dn=Sr.key2element,Un=Sr.element2key,Sn=U(Tr.current,ln),xn=rn!=null?rn:Sn[0]?Un.get(Sn[0]):(zt=_r.find(function(Kn){return!Kn.props.disabled}))===null||zt===void 0?void 0:zt.key,nn=dn.get(xn);if(xn&&nn){var fn;nn==null||(fn=nn.focus)===null||fn===void 0||fn.call(nn,Bt)}}}});var Nn=(0,l.Z)(Zt||[],{value:dr,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Nt:[Bt]}}),bn=(0,u.Z)(Nn,2),an=bn[0],Hn=bn[1],jn=function(Bt){if(Yt){var zt=Bt.key,Cr=an.includes(zt),Sr;ir?Cr?Sr=an.filter(function(dn){return dn!==zt}):Sr=[].concat((0,p.Z)(an),[zt]):Sr=[zt],Hn(Sr);var ln=(0,y.Z)((0,y.Z)({},Bt),{},{selectedKeys:Sr});Cr?or==null||or(ln):Dt==null||Dt(ln)}!ir&&kt.length&&Pr!=="inline"&&br(Nt)},kn=fe(function(Xt){ar==null||ar(pe(Xt)),jn(Xt)}),Cn=fe(function(Xt,Bt){var zt=kt.filter(function(Sr){return Sr!==Xt});if(Bt)zt.push(Xt);else if(Pr!=="inline"){var Cr=Ln(Xt);zt=zt.filter(function(Sr){return!Cr.has(Sr)})}(0,r.Z)(kt,zt,!0)||br(zt,!0)}),Fn=function(Bt,zt){var Cr=zt!=null?zt:!kt.includes(Bt);Cn(Bt,Cr)},zn=V(Pr,rn,yr,lr,Tr,_n,Pn,un,Fn,Or);e.useEffect(function(){zr(!0)},[]);var Wn=e.useMemo(function(){return{_internalRenderMenuItem:Hr,_internalRenderSubMenuItem:jr}},[Hr,jr]),$n=Pr!=="horizontal"||St?_r:_r.map(function(Xt,Bt){return e.createElement(C,{key:Xt.key,overflowDisabled:Bt>sn},Xt)}),Zn=e.createElement(s.Z,(0,n.Z)({id:At,ref:Tr,prefixCls:"".concat(Oe,"-overflow"),component:"ul",itemComponent:We,className:o()(Oe,"".concat(Oe,"-root"),"".concat(Oe,"-").concat(Pr),mt,(0,f.Z)((0,f.Z)({},"".concat(Oe,"-inline-collapsed"),En),"".concat(Oe,"-rtl"),yr),je),dir:_t,style:et,role:"menu",tabIndex:Lt,data:$n,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var zt=Bt.length,Cr=zt?_r.slice(-zt):null;return e.createElement(ot,{eventKey:ie,title:sr,disabled:cn,internalPopupClose:zt===0,popupClassName:gr},Cr)},maxCount:Pr!=="horizontal"||St?s.Z.INVALIDATE:s.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Rn(Bt)},onKeyDown:zn},$r));return e.createElement(k.Provider,{value:Wn},e.createElement(c.Provider,{value:lr},e.createElement(C,{prefixCls:Oe,rootClassName:je,mode:Pr,openKeys:kt,rtl:yr,disabled:Rt,motion:Zr?vr:null,defaultMotions:Zr?Rr:null,activeKey:rn,onActive:Tn,onInactive:Bn,selectedKeys:an,inlineIndent:Ar,subMenuOpenDelay:It,subMenuCloseDelay:Ot,forceSubMenuRender:Ut,builtinPlacements:Lr,triggerSubMenuAction:ur,getPopupContainer:Ir,itemIcon:pr,expandIcon:mr,onItemClick:kn,onOpenChange:Cn},e.createElement(K.Provider,{value:Mn},Zn),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(S.Provider,{value:In},Vr)))))}),Er=tr,Jt=Er;Jt.Item=We,Jt.SubMenu=ot,Jt.ItemGroup=jt,Jt.Divider=gt;var hr=Jt},83836:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return O}});var n=t(60499),f=t(85899),y=t(72190),p=t(42244),u=t(59301),v=t(92310),d=t.n(v),o=t(29301),s=t(34280),l=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],r=void 0;function a(M,I){var J=M.prefixCls,re=M.invalidate,le=M.item,ye=M.renderItem,W=M.responsive,H=M.responsiveDisabled,Z=M.registerSize,te=M.itemKey,_e=M.className,se=M.style,G=M.children,Ce=M.display,X=M.order,q=M.component,B=q===void 0?"div":q,U=(0,p.Z)(M,l),j=W&&!Ce;function oe(Y){Z(te,Y)}u.useEffect(function(){return function(){oe(null)}},[]);var V=ye&&le!==r?ye(le,{index:X}):G,$;re||($={opacity:j?0:1,height:j?0:r,overflowY:j?"hidden":r,order:W?X:r,pointerEvents:j?"none":r,position:j?"absolute":r});var T={};j&&(T["aria-hidden"]=!0);var ne=u.createElement(B,(0,n.Z)({className:d()(!re&&J,_e),style:(0,f.Z)((0,f.Z)({},$),se)},T,U,{ref:I}),V);return W&&(ne=u.createElement(o.Z,{onResize:function(ie){var me=ie.offsetWidth;oe(me)},disabled:H},ne)),ne}var e=u.forwardRef(a);e.displayName="Item";var i=e,c=t(6089),m=t(4676),w=t(16089);function A(M){if(typeof MessageChannel=="undefined")(0,w.Z)(M);else{var I=new MessageChannel;I.port1.onmessage=function(){return M()},I.port2.postMessage(void 0)}}function h(){var M=u.useRef(null),I=function(re){M.current||(M.current=[],A(function(){(0,m.unstable_batchedUpdates)(function(){M.current.forEach(function(le){le()}),M.current=null})})),M.current.push(re)};return I}function g(M,I){var J=u.useState(I),re=(0,y.Z)(J,2),le=re[0],ye=re[1],W=(0,c.Z)(function(H){M(function(){ye(H)})});return[le,W]}var _=u.createContext(null),C=["component"],b=["className"],S=["className"],x=function(I,J){var re=u.useContext(_);if(!re){var le=I.component,ye=le===void 0?"div":le,W=(0,p.Z)(I,C);return u.createElement(ye,(0,n.Z)({},W,{ref:J}))}var H=re.className,Z=(0,p.Z)(re,b),te=I.className,_e=(0,p.Z)(I,S);return u.createElement(_.Provider,{value:null},u.createElement(i,(0,n.Z)({ref:J,className:d()(H,te)},Z,_e)))},z=u.forwardRef(x);z.displayName="RawItem";var P=z,K=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],N="responsive",k="invalidate";function D(M){return"+ ".concat(M.length," ...")}function L(M,I){var J=M.prefixCls,re=J===void 0?"rc-overflow":J,le=M.data,ye=le===void 0?[]:le,W=M.renderItem,H=M.renderRawItem,Z=M.itemKey,te=M.itemWidth,_e=te===void 0?10:te,se=M.ssr,G=M.style,Ce=M.className,X=M.maxCount,q=M.renderRest,B=M.renderRawRest,U=M.prefix,j=M.suffix,oe=M.component,V=oe===void 0?"div":oe,$=M.itemComponent,T=M.onVisibleChange,ne=(0,p.Z)(M,K),Y=se==="full",ie=h(),me=g(ie,null),fe=(0,y.Z)(me,2),ve=fe[0],xe=fe[1],Ee=ve||0,Be=g(ie,new Map),De=(0,y.Z)(Be,2),He=De[0],$e=De[1],Pe=g(ie,0),Le=(0,y.Z)(Pe,2),Fe=Le[0],F=Le[1],ee=g(ie,0),ue=(0,y.Z)(ee,2),pe=ue[0],Ie=ue[1],Ze=g(ie,0),Ae=(0,y.Z)(Ze,2),Se=Ae[0],Ne=Ae[1],Qe=g(ie,0),We=(0,y.Z)(Qe,2),Je=We[0],Te=We[1],Ge=(0,u.useState)(null),Xe=(0,y.Z)(Ge,2),ge=Xe[0],ae=Xe[1],he=(0,u.useState)(null),de=(0,y.Z)(he,2),Ke=de[0],ze=de[1],ke=u.useMemo(function(){return Ke===null&&Y?Number.MAX_SAFE_INTEGER:Ke||0},[Ke,ve]),Ye=(0,u.useState)(!1),tt=(0,y.Z)(Ye,2),st=tt[0],at=tt[1],Ve="".concat(re,"-item"),ut=Math.max(Fe,pe),dt=X===N,rt=ye.length&&dt,qe=X===k,ot=rt||typeof X=="number"&&ye.length>X,Ue=(0,u.useMemo)(function(){var be=ye;return rt?ve===null&&Y?be=ye:be=ye.slice(0,Math.min(ye.length,Ee/_e)):typeof X=="number"&&(be=ye.slice(0,X)),be},[ye,_e,ve,X,rt]),gt=(0,u.useMemo)(function(){return rt?ye.slice(ke+1):ye.slice(Ue.length)},[ye,Ue,rt,ke]),xt=(0,u.useCallback)(function(be,Oe){var je;return typeof Z=="function"?Z(be):(je=Z&&(be==null?void 0:be[Z]))!==null&&je!==void 0?je:Oe},[Z]),Ct=(0,u.useCallback)(W||function(be){return be},[W]);function Pt(be,Oe,je){Ke===be&&(Oe===void 0||Oe===ge)||(ze(be),je||(at(be<ye.length-1),T==null||T(be)),Oe!==void 0&&ae(Oe))}function jt(be,Oe){xe(Oe.clientWidth)}function bt(be,Oe){$e(function(je){var et=new Map(je);return Oe===null?et.delete(be):et.set(be,Oe),et})}function Wt(be,Oe){Ie(Oe),F(pe)}function Mt(be,Oe){Ne(Oe)}function xr(be,Oe){Te(Oe)}function Nt(be){return He.get(xt(Ue[be],be))}(0,s.Z)(function(){if(Ee&&typeof ut=="number"&&Ue){var be=Se+Je,Oe=Ue.length,je=Oe-1;if(!Oe){Pt(0,null);return}for(var et=0;et<Oe;et+=1){var mt=Nt(et);if(Y&&(mt=mt||0),mt===void 0){Pt(et-1,void 0,!0);break}if(be+=mt,je===0&&be<=Ee||et===je-1&&be+Nt(je)<=Ee){Pt(je,null);break}else if(be+ut>Ee){Pt(et-1,be-mt-Je+pe);break}}j&&Nt(0)+Je>Ee&&ae(null)}},[Ee,He,pe,Se,Je,xt,Ue]);var tr=st&&!!gt.length,Er={};ge!==null&&rt&&(Er={position:"absolute",left:ge,top:0});var Jt={prefixCls:Ve,responsive:rt,component:$,invalidate:qe},hr=H?function(be,Oe){var je=xt(be,Oe);return u.createElement(_.Provider,{key:je,value:(0,f.Z)((0,f.Z)({},Jt),{},{order:Oe,item:be,itemKey:je,registerSize:bt,display:Oe<=ke})},H(be,Oe))}:function(be,Oe){var je=xt(be,Oe);return u.createElement(i,(0,n.Z)({},Jt,{order:Oe,key:je,item:be,renderItem:Ct,itemKey:je,registerSize:bt,display:Oe<=ke}))},ce={order:tr?ke:Number.MAX_SAFE_INTEGER,className:"".concat(Ve,"-rest"),registerSize:Wt,display:tr},Re=q||D,Me=B?u.createElement(_.Provider,{value:(0,f.Z)((0,f.Z)({},Jt),ce)},B(gt)):u.createElement(i,(0,n.Z)({},Jt,ce),typeof Re=="function"?Re(gt):Re),we=u.createElement(V,(0,n.Z)({className:d()(!qe&&re,Ce),style:G,ref:I},ne),U&&u.createElement(i,(0,n.Z)({},Jt,{responsive:dt,responsiveDisabled:!rt,order:-1,className:"".concat(Ve,"-prefix"),registerSize:Mt,display:!0}),U),Ue.map(hr),ot?Me:null,j&&u.createElement(i,(0,n.Z)({},Jt,{responsive:dt,responsiveDisabled:!rt,order:ke,className:"".concat(Ve,"-suffix"),registerSize:xr,display:!0,style:Er}),j));return dt?u.createElement(o.Z,{onResize:jt,disabled:!rt},we):we}var E=u.forwardRef(L);E.displayName="Overflow",E.Item=P,E.RESPONSIVE=N,E.INVALIDATE=k;var R=E,O=R},29301:function(it,Q,t){"use strict";t.d(Q,{Z:function(){return k}});var n=t(60499),f=t(59301),y=t(11592),p=t(48736),u=t(85899),v=t(43749),d=t(76846),o=t(8654),s=f.createContext(null);function l(D){var L=D.children,E=D.onBatchResize,R=f.useRef(0),O=f.useRef([]),M=f.useContext(s),I=f.useCallback(function(J,re,le){R.current+=1;var ye=R.current;O.current.push({size:J,element:re,data:le}),Promise.resolve().then(function(){ye===R.current&&(E==null||E(O.current),O.current=[])}),M==null||M(J,re,le)},[E,M]);return f.createElement(s.Provider,{value:I},L)}var r=t(76374),a=new Map;function e(D){D.forEach(function(L){var E,R=L.target;(E=a.get(R))===null||E===void 0||E.forEach(function(O){return O(R)})})}var i=new r.Z(e),c=null,m=null;function w(D,L){a.has(D)||(a.set(D,new Set),i.observe(D)),a.get(D).add(L)}function A(D,L){a.has(D)&&(a.get(D).delete(L),a.get(D).size||(i.unobserve(D),a.delete(D)))}var h=t(38705),g=t(17212),_=t(39153),C=t(55401),b=function(D){(0,_.Z)(E,D);var L=(0,C.Z)(E);function E(){return(0,h.Z)(this,E),L.apply(this,arguments)}return(0,g.Z)(E,[{key:"render",value:function(){return this.props.children}}]),E}(f.Component);function S(D,L){var E=D.children,R=D.disabled,O=f.useRef(null),M=f.useRef(null),I=f.useContext(s),J=typeof E=="function",re=J?E(O):E,le=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ye=!J&&f.isValidElement(re)&&(0,o.Yr)(re),W=ye?(0,o.C4)(re):null,H=(0,o.x1)(W,O),Z=function(){var G;return(0,d.ZP)(O.current)||(O.current&&(0,v.Z)(O.current)==="object"?(0,d.ZP)((G=O.current)===null||G===void 0?void 0:G.nativeElement):null)||(0,d.ZP)(M.current)};f.useImperativeHandle(L,function(){return Z()});var te=f.useRef(D);te.current=D;var _e=f.useCallback(function(se){var G=te.current,Ce=G.onResize,X=G.data,q=se.getBoundingClientRect(),B=q.width,U=q.height,j=se.offsetWidth,oe=se.offsetHeight,V=Math.floor(B),$=Math.floor(U);if(le.current.width!==V||le.current.height!==$||le.current.offsetWidth!==j||le.current.offsetHeight!==oe){var T={width:V,height:$,offsetWidth:j,offsetHeight:oe};le.current=T;var ne=j===Math.round(B)?B:j,Y=oe===Math.round(U)?U:oe,ie=(0,u.Z)((0,u.Z)({},T),{},{offsetWidth:ne,offsetHeight:Y});I==null||I(ie,se,X),Ce&&Promise.resolve().then(function(){Ce(ie,se)})}},[]);return f.useEffect(function(){var se=Z();return se&&!R&&w(se,_e),function(){return A(se,_e)}},[O.current,R]),f.createElement(b,{ref:M},ye?f.cloneElement(re,{ref:H}):re)}var x=f.forwardRef(S),z=x,P="rc-observer-key";function K(D,L){var E=D.children,R=typeof E=="function"?[E]:(0,y.Z)(E);return R.map(function(O,M){var I=(O==null?void 0:O.key)||"".concat(P,"-").concat(M);return f.createElement(z,(0,n.Z)({},D,{key:I,ref:M===0?L:void 0}),O)})}var N=f.forwardRef(K);N.Collection=l;var k=N},22711:function(it,Q,t){"use strict";t.r(Q),t.d(Q,{ResizableTextArea:function(){return N},default:function(){return E}});var n=t(60499),f=t(18642),y=t(85899),p=t(77654),u=t(72190),v=t(42244),d=t(92310),o=t.n(d),s=t(36901),l=t(66003),r=t(30292),a=t(18929),e=t(59301),i=t(43749),c=t(29301),m=t(34280),w=t(16089),A=`
|
|
|
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;
|
|
|
`,h=["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={},_;function C(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=R.getAttribute("id")||R.getAttribute("data-reactid")||R.getAttribute("name");if(O&&g[M])return g[M];var I=window.getComputedStyle(R),J=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),re=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),le=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),ye=h.map(function(H){return"".concat(H,":").concat(I.getPropertyValue(H))}).join(";"),W={sizingStyle:ye,paddingSize:re,borderSize:le,boxSizing:J};return O&&M&&(g[M]=W),W}function b(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),_.setAttribute("name","hiddenTextarea"),document.body.appendChild(_)),R.getAttribute("wrap")?_.setAttribute("wrap",R.getAttribute("wrap")):_.removeAttribute("wrap");var J=C(R,O),re=J.paddingSize,le=J.borderSize,ye=J.boxSizing,W=J.sizingStyle;_.setAttribute("style","".concat(W,";").concat(A)),_.value=R.value||R.placeholder||"";var H=void 0,Z=void 0,te,_e=_.scrollHeight;if(ye==="border-box"?_e+=le:ye==="content-box"&&(_e-=re),M!==null||I!==null){_.value=" ";var se=_.scrollHeight-re;M!==null&&(H=se*M,ye==="border-box"&&(H=H+re+le),_e=Math.max(H,_e)),I!==null&&(Z=se*I,ye==="border-box"&&(Z=Z+re+le),te=_e>Z?"":"hidden",_e=Math.min(Z,_e))}var G={height:_e,overflowY:te,resize:"none"};return H&&(G.minHeight=H),Z&&(G.maxHeight=Z),G}var S=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],x=0,z=1,P=2,K=e.forwardRef(function(R,O){var M=R,I=M.prefixCls,J=M.defaultValue,re=M.value,le=M.autoSize,ye=M.onResize,W=M.className,H=M.style,Z=M.disabled,te=M.onChange,_e=M.onInternalAutoSize,se=(0,v.Z)(M,S),G=(0,a.Z)(J,{value:re,postState:function(ee){return ee!=null?ee:""}}),Ce=(0,u.Z)(G,2),X=Ce[0],q=Ce[1],B=function(ee){q(ee.target.value),te==null||te(ee)},U=e.useRef();e.useImperativeHandle(O,function(){return{textArea:U.current}});var j=e.useMemo(function(){return le&&(0,i.Z)(le)==="object"?[le.minRows,le.maxRows]:[]},[le]),oe=(0,u.Z)(j,2),V=oe[0],$=oe[1],T=!!le,ne=function(){try{if(document.activeElement===U.current){var ee=U.current,ue=ee.selectionStart,pe=ee.selectionEnd,Ie=ee.scrollTop;U.current.setSelectionRange(ue,pe),U.current.scrollTop=Ie}}catch(Ze){}},Y=e.useState(P),ie=(0,u.Z)(Y,2),me=ie[0],fe=ie[1],ve=e.useState(),xe=(0,u.Z)(ve,2),Ee=xe[0],Be=xe[1],De=function(){fe(x)};(0,m.Z)(function(){T&&De()},[re,V,$,T]),(0,m.Z)(function(){if(me===x)fe(z);else if(me===z){var F=b(U.current,!1,V,$);fe(P),Be(F)}else ne()},[me]);var He=e.useRef(),$e=function(){w.Z.cancel(He.current)},Pe=function(ee){me===P&&(ye==null||ye(ee),le&&($e(),He.current=(0,w.Z)(function(){De()})))};e.useEffect(function(){return $e},[]);var Le=T?Ee:null,Fe=(0,y.Z)((0,y.Z)({},H),Le);return(me===x||me===z)&&(Fe.overflowY="hidden",Fe.overflowX="hidden"),e.createElement(c.Z,{onResize:Pe,disabled:!(le||ye)},e.createElement("textarea",(0,n.Z)({},se,{ref:U,style:Fe,className:o()(I,W,(0,f.Z)({},"".concat(I,"-disabled"),Z)),disabled:Z,value:X,onChange:B})))}),N=K,k=["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"],D=e.forwardRef(function(R,O){var M,I=R.defaultValue,J=R.value,re=R.onFocus,le=R.onBlur,ye=R.onChange,W=R.allowClear,H=R.maxLength,Z=R.onCompositionStart,te=R.onCompositionEnd,_e=R.suffix,se=R.prefixCls,G=se===void 0?"rc-textarea":se,Ce=R.showCount,X=R.count,q=R.className,B=R.style,U=R.disabled,j=R.hidden,oe=R.classNames,V=R.styles,$=R.onResize,T=R.onClear,ne=R.onPressEnter,Y=R.readOnly,ie=R.autoSize,me=R.onKeyDown,fe=(0,v.Z)(R,k),ve=(0,a.Z)(I,{value:J,defaultValue:I}),xe=(0,u.Z)(ve,2),Ee=xe[0],Be=xe[1],De=Ee==null?"":String(Ee),He=e.useState(!1),$e=(0,u.Z)(He,2),Pe=$e[0],Le=$e[1],Fe=e.useRef(!1),F=e.useState(null),ee=(0,u.Z)(F,2),ue=ee[0],pe=ee[1],Ie=(0,e.useRef)(null),Ze=(0,e.useRef)(null),Ae=function(){var qe;return(qe=Ze.current)===null||qe===void 0?void 0:qe.textArea},Se=function(){Ae().focus()};(0,e.useImperativeHandle)(O,function(){var rt;return{resizableTextArea:Ze.current,focus:Se,blur:function(){Ae().blur()},nativeElement:((rt=Ie.current)===null||rt===void 0?void 0:rt.nativeElement)||Ae()}}),(0,e.useEffect)(function(){Le(function(rt){return!U&&rt})},[U]);var Ne=e.useState(null),Qe=(0,u.Z)(Ne,2),We=Qe[0],Je=Qe[1];e.useEffect(function(){if(We){var rt;(rt=Ae()).setSelectionRange.apply(rt,(0,p.Z)(We))}},[We]);var Te=(0,l.Z)(X,Ce),Ge=(M=Te.max)!==null&&M!==void 0?M:H,Xe=Number(Ge)>0,ge=Te.strategy(De),ae=!!Ge&&ge>Ge,he=function(qe,ot){var Ue=ot;!Fe.current&&Te.exceedFormatter&&Te.max&&Te.strategy(ot)>Te.max&&(Ue=Te.exceedFormatter(ot,{max:Te.max}),ot!==Ue&&Je([Ae().selectionStart||0,Ae().selectionEnd||0])),Be(Ue),(0,r.rJ)(qe.currentTarget,qe,ye,Ue)},de=function(qe){Fe.current=!0,Z==null||Z(qe)},Ke=function(qe){Fe.current=!1,he(qe,qe.currentTarget.value),te==null||te(qe)},ze=function(qe){he(qe,qe.target.value)},ke=function(qe){qe.key==="Enter"&&ne&&ne(qe),me==null||me(qe)},Ye=function(qe){Le(!0),re==null||re(qe)},tt=function(qe){Le(!1),le==null||le(qe)},st=function(qe){Be(""),Se(),(0,r.rJ)(Ae(),qe,ye)},at=_e,Ve;Te.show&&(Te.showFormatter?Ve=Te.showFormatter({value:De,count:ge,maxLength:Ge}):Ve="".concat(ge).concat(Xe?" / ".concat(Ge):""),at=e.createElement(e.Fragment,null,at,e.createElement("span",{className:o()("".concat(G,"-data-count"),oe==null?void 0:oe.count),style:V==null?void 0:V.count},Ve)));var ut=function(qe){var ot;$==null||$(qe),(ot=Ae())!==null&&ot!==void 0&&ot.style.height&&pe(!0)},dt=!ie&&!Ce&&!W;return e.createElement(s.BaseInput,{ref:Ie,value:De,allowClear:W,handleReset:st,suffix:at,prefixCls:G,classNames:(0,y.Z)((0,y.Z)({},oe),{},{affixWrapper:o()(oe==null?void 0:oe.affixWrapper,(0,f.Z)((0,f.Z)({},"".concat(G,"-show-count"),Ce),"".concat(G,"-textarea-allow-clear"),W))}),disabled:U,focused:Pe,className:o()(q,ae&&"".concat(G,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},B),ue&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ve=="string"?Ve:void 0}},hidden:j,readOnly:Y,onClear:T},e.createElement(N,(0,n.Z)({},fe,{autoSize:ie,maxLength:H,onKeyDown:ke,onChange:ze,onFocus:Ye,onBlur:tt,onCompositionStart:de,onCompositionEnd:Ke,className:o()(oe==null?void 0:oe.textarea),style:(0,y.Z)((0,y.Z)({},V==null?void 0:V.textarea),{},{resize:B==null?void 0:B.resize}),disabled:U,prefixCls:G,onResize:ut,ref:Ze,readOnly:Y})))}),L=D,E=L},29125:function(it,Q,t){"use strict";t.d(Q,{G:function(){return p},Z:function(){return A}});var n=t(92310),f=t.n(n),y=t(59301);function p(h){var g=h.children,_=h.prefixCls,C=h.id,b=h.overlayInnerStyle,S=h.bodyClassName,x=h.className,z=h.style;return y.createElement("div",{className:f()("".concat(_,"-content"),x),style:z},y.createElement("div",{className:f()("".concat(_,"-inner"),S),id:C,role:"tooltip",style:b},typeof g=="function"?g():g))}var u=t(60499),v=t(85899),d=t(42244),o=t(68196),s={shiftX:64,adjustY:1},l={adjustX:1,shiftY:!0},r=[0,0],a={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:r}},e=null,i=t(80402),c=["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,_){var C=g.overlayClassName,b=g.trigger,S=b===void 0?["hover"]:b,x=g.mouseEnterDelay,z=x===void 0?0:x,P=g.mouseLeaveDelay,K=P===void 0?.1:P,N=g.overlayStyle,k=g.prefixCls,D=k===void 0?"rc-tooltip":k,L=g.children,E=g.onVisibleChange,R=g.afterVisibleChange,O=g.transitionName,M=g.animation,I=g.motion,J=g.placement,re=J===void 0?"right":J,le=g.align,ye=le===void 0?{}:le,W=g.destroyTooltipOnHide,H=W===void 0?!1:W,Z=g.defaultVisible,te=g.getTooltipContainer,_e=g.overlayInnerStyle,se=g.arrowContent,G=g.overlay,Ce=g.id,X=g.showArrow,q=X===void 0?!0:X,B=g.classNames,U=g.styles,j=(0,d.Z)(g,c),oe=(0,i.Z)(Ce),V=(0,y.useRef)(null);(0,y.useImperativeHandle)(_,function(){return V.current});var $=(0,v.Z)({},j);"visible"in g&&($.popupVisible=g.visible);var T=function(){return y.createElement(p,{key:"content",prefixCls:D,id:oe,bodyClassName:B==null?void 0:B.body,overlayInnerStyle:(0,v.Z)((0,v.Z)({},_e),U==null?void 0:U.body)},G)},ne=function(){var ie=y.Children.only(L),me=(ie==null?void 0:ie.props)||{},fe=(0,v.Z)((0,v.Z)({},me),{},{"aria-describedby":G?oe:null});return y.cloneElement(L,fe)};return y.createElement(o.Z,(0,u.Z)({popupClassName:f()(C,B==null?void 0:B.root),prefixCls:D,popup:T,action:S,builtinPlacements:a,popupPlacement:re,ref:V,popupAlign:ye,getPopupContainer:te,onPopupVisibleChange:E,afterPopupVisibleChange:R,popupTransitionName:O,popupAnimation:M,popupMotion:I,defaultPopupVisible:Z,autoDestroy:H,mouseLeaveDelay:K,popupStyle:(0,v.Z)((0,v.Z)({},N),U==null?void 0:U.root),mouseEnterDelay:z,arrow:q},$),ne())},w=(0,y.forwardRef)(m),A=w},49658:function(it,Q){"use strict";Q.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var t=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(t)||/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(t==null?void 0:t.substr(0,4))}},76374:function(it,Q,t){"use strict";var n=function(){if(typeof Map!="undefined")return Map;function k(D,L){var E=-1;return D.some(function(R,O){return R[0]===L?(E=O,!0):!1}),E}return function(){function D(){this.__entries__=[]}return Object.defineProperty(D.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),D.prototype.get=function(L){var E=k(this.__entries__,L),R=this.__entries__[E];return R&&R[1]},D.prototype.set=function(L,E){var R=k(this.__entries__,L);~R?this.__entries__[R][1]=E:this.__entries__.push([L,E])},D.prototype.delete=function(L){var E=this.__entries__,R=k(E,L);~R&&E.splice(R,1)},D.prototype.has=function(L){return!!~k(this.__entries__,L)},D.prototype.clear=function(){this.__entries__.splice(0)},D.prototype.forEach=function(L,E){E===void 0&&(E=null);for(var R=0,O=this.__entries__;R<O.length;R++){var M=O[R];L.call(E,M[1],M[0])}},D}()}(),f=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,y=function(){return typeof t.g!="undefined"&&t.g.Math===Math?t.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),p=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(y):function(k){return setTimeout(function(){return k(Date.now())},1e3/60)}}(),u=2;function v(k,D){var L=!1,E=!1,R=0;function O(){L&&(L=!1,k()),E&&I()}function M(){p(O)}function I(){var J=Date.now();if(L){if(J-R<u)return;E=!0}else L=!0,E=!1,setTimeout(M,D);R=J}return I}var d=20,o=["top","right","bottom","left","width","height","size","weight"],s=typeof MutationObserver!="undefined",l=function(){function k(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=v(this.refresh.bind(this),d)}return k.prototype.addObserver=function(D){~this.observers_.indexOf(D)||this.observers_.push(D),this.connected_||this.connect_()},k.prototype.removeObserver=function(D){var L=this.observers_,E=L.indexOf(D);~E&&L.splice(E,1),!L.length&&this.connected_&&this.disconnect_()},k.prototype.refresh=function(){var D=this.updateObservers_();D&&this.refresh()},k.prototype.updateObservers_=function(){var D=this.observers_.filter(function(L){return L.gatherActive(),L.hasActive()});return D.forEach(function(L){return L.broadcastActive()}),D.length>0},k.prototype.connect_=function(){!f||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},k.prototype.disconnect_=function(){!f||!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)},k.prototype.onTransitionEnd_=function(D){var L=D.propertyName,E=L===void 0?"":L,R=o.some(function(O){return!!~E.indexOf(O)});R&&this.refresh()},k.getInstance=function(){return this.instance_||(this.instance_=new k),this.instance_},k.instance_=null,k}(),r=function(k,D){for(var L=0,E=Object.keys(D);L<E.length;L++){var R=E[L];Object.defineProperty(k,R,{value:D[R],enumerable:!1,writable:!1,configurable:!0})}return k},a=function(k){var D=k&&k.ownerDocument&&k.ownerDocument.defaultView;return D||y},e=b(0,0,0,0);function i(k){return parseFloat(k)||0}function c(k){for(var D=[],L=1;L<arguments.length;L++)D[L-1]=arguments[L];return D.reduce(function(E,R){var O=k["border-"+R+"-width"];return E+i(O)},0)}function m(k){for(var D=["top","right","bottom","left"],L={},E=0,R=D;E<R.length;E++){var O=R[E],M=k["padding-"+O];L[O]=i(M)}return L}function w(k){var D=k.getBBox();return b(0,0,D.width,D.height)}function A(k){var D=k.clientWidth,L=k.clientHeight;if(!D&&!L)return e;var E=a(k).getComputedStyle(k),R=m(E),O=R.left+R.right,M=R.top+R.bottom,I=i(E.width),J=i(E.height);if(E.boxSizing==="border-box"&&(Math.round(I+O)!==D&&(I-=c(E,"left","right")+O),Math.round(J+M)!==L&&(J-=c(E,"top","bottom")+M)),!g(k)){var re=Math.round(I+O)-D,le=Math.round(J+M)-L;Math.abs(re)!==1&&(I-=re),Math.abs(le)!==1&&(J-=le)}return b(R.left,R.top,I,J)}var h=function(){return typeof SVGGraphicsElement!="undefined"?function(k){return k instanceof a(k).SVGGraphicsElement}:function(k){return k instanceof a(k).SVGElement&&typeof k.getBBox=="function"}}();function g(k){return k===a(k).document.documentElement}function _(k){return f?h(k)?w(k):A(k):e}function C(k){var D=k.x,L=k.y,E=k.width,R=k.height,O=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,M=Object.create(O.prototype);return r(M,{x:D,y:L,width:E,height:R,top:L,right:D+E,bottom:R+L,left:D}),M}function b(k,D,L,E){return{x:k,y:D,width:L,height:E}}var S=function(){function k(D){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=D}return k.prototype.isActive=function(){var D=_(this.target);return this.contentRect_=D,D.width!==this.broadcastWidth||D.height!==this.broadcastHeight},k.prototype.broadcastRect=function(){var D=this.contentRect_;return this.broadcastWidth=D.width,this.broadcastHeight=D.height,D},k}(),x=function(){function k(D,L){var E=C(L);r(this,{target:D,contentRect:E})}return k}(),z=function(){function k(D,L,E){if(this.activeObservations_=[],this.observations_=new n,typeof D!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=D,this.controller_=L,this.callbackCtx_=E}return k.prototype.observe=function(D){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(D instanceof a(D).Element))throw new TypeError('parameter 1 is not of type "Element".');var L=this.observations_;L.has(D)||(L.set(D,new S(D)),this.controller_.addObserver(this),this.controller_.refresh())}},k.prototype.unobserve=function(D){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(D instanceof a(D).Element))throw new TypeError('parameter 1 is not of type "Element".');var L=this.observations_;L.has(D)&&(L.delete(D),L.size||this.controller_.removeObserver(this))}},k.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},k.prototype.gatherActive=function(){var D=this;this.clearActive(),this.observations_.forEach(function(L){L.isActive()&&D.activeObservations_.push(L)})},k.prototype.broadcastActive=function(){if(this.hasActive()){var D=this.callbackCtx_,L=this.activeObservations_.map(function(E){return new x(E.target,E.broadcastRect())});this.callback_.call(D,L,D),this.clearActive()}},k.prototype.clearActive=function(){this.activeObservations_.splice(0)},k.prototype.hasActive=function(){return this.activeObservations_.length>0},k}(),P=typeof WeakMap!="undefined"?new WeakMap:new n,K=function(){function k(D){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var L=l.getInstance(),E=new z(D,L,this);P.set(this,E)}return k}();["observe","unobserve","disconnect"].forEach(function(k){K.prototype[k]=function(){var D;return(D=P.get(this))[k].apply(D,arguments)}});var N=function(){return typeof y.ResizeObserver!="undefined"?y.ResizeObserver:K}();Q.Z=N},34376:function(it){(function(Q,t){if(1)it.exports=t();else var n,f})(window,function(){return function(Q){var t={};function n(f){if(t[f])return t[f].exports;var y=t[f]={i:f,l:!1,exports:{}};return Q[f].call(y.exports,y,y.exports,n),y.l=!0,y.exports}return n.m=Q,n.c=t,n.d=function(f,y,p){n.o(f,y)||Object.defineProperty(f,y,{enumerable:!0,get:p})},n.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},n.t=function(f,y){if(1&y&&(f=n(f)),8&y||4&y&&typeof f=="object"&&f&&f.__esModule)return f;var p=Object.create(null);if(n.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:f}),2&y&&typeof f!="string")for(var u in f)n.d(p,u,function(v){return f[v]}.bind(null,u));return p},n.n=function(f){var y=f&&f.__esModule?function(){return f.default}:function(){return f};return n.d(y,"a",y),y},n.o=function(f,y){return Object.prototype.hasOwnProperty.call(f,y)},n.p="",n(n.s=34)}([function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var f=function(){function y(){this._listeners=[],this._disposed=!1}return Object.defineProperty(y.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(u){return p._listeners.push(u),{dispose:function(){if(!p._disposed){for(var v=0;v<p._listeners.length;v++)if(p._listeners[v]===u)return void p._listeners.splice(v,1)}}}}),this._event},enumerable:!1,configurable:!0}),y.prototype.fire=function(p,u){for(var v=[],d=0;d<this._listeners.length;d++)v.push(this._listeners[d]);for(d=0;d<v.length;d++)v[d].call(void 0,p,u)},y.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},y}();t.EventEmitter=f,t.forwardEvent=function(y,p){return y(function(u){return p.fire(u)})}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.IOptionsService=t.ILogService=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var f=n(14);t.IBufferService=f.createDecorator("BufferService"),t.ICoreMouseService=f.createDecorator("CoreMouseService"),t.ICoreService=f.createDecorator("CoreService"),t.ICharsetService=f.createDecorator("CharsetService"),t.IDirtyRowService=f.createDecorator("DirtyRowService"),t.IInstantiationService=f.createDecorator("InstantiationService"),t.ILogService=f.createDecorator("LogService"),t.IOptionsService=f.createDecorator("OptionsService"),t.IUnicodeService=f.createDecorator("UnicodeService")},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var f=function(){function p(){this._disposables=[],this._isDisposed=!1}return p.prototype.dispose=function(){this._isDisposed=!0;for(var u=0,v=this._disposables;u<v.length;u++)v[u].dispose();this._disposables.length=0},p.prototype.register=function(u){return this._disposables.push(u),u},p.prototype.unregister=function(u){var v=this._disposables.indexOf(u);v!==-1&&this._disposables.splice(v,1)},p}();function y(p){for(var u=0,v=p;u<v.length;u++)v[u].dispose();p.length=0}t.Disposable=f,t.disposeArray=y,t.getDisposeArrayDisposable=function(p){return{dispose:function(){return y(p)}}}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(o,s){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a])})(o,s)},function(o,s){function l(){this.constructor=o}f(o,s),o.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var p=n(8),u=n(3),v=n(6),d=function(o){function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.content=0,l.fg=0,l.bg=0,l.extended=new v.ExtendedAttrs,l.combinedData="",l}return y(s,o),s.fromCharData=function(l){var r=new s;return r.setFromCharData(l),r},s.prototype.isCombined=function(){return 2097152&this.content},s.prototype.getWidth=function(){return this.content>>22},s.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?p.stringFromCodePoint(2097151&this.content):""},s.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},s.prototype.setFromCharData=function(l){this.fg=l[u.CHAR_DATA_ATTR_INDEX],this.bg=0;var r=!1;if(l[u.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(l[u.CHAR_DATA_CHAR_INDEX].length===2){var a=l[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=a&&a<=56319){var e=l[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=e&&e<=57343?this.content=1024*(a-55296)+e-56320+65536|l[u.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=l[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|l[u.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=l[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|l[u.CHAR_DATA_WIDTH_INDEX]<<22)},s.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},s}(v.AttributeData);t.CellData=d},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var f=n(14);t.ICharSizeService=f.createDecorator("CharSizeService"),t.ICoreBrowserService=f.createDecorator("CoreBrowserService"),t.IMouseService=f.createDecorator("MouseService"),t.IRenderService=f.createDecorator("RenderService"),t.ISelectionService=f.createDecorator("SelectionService"),t.ISoundService=f.createDecorator("SoundService")},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var f=function(){function p(){this.fg=0,this.bg=0,this.extended=new y}return p.toColorRGB=function(u){return[u>>>16&255,u>>>8&255,255&u]},p.fromColorRGB=function(u){return(255&u[0])<<16|(255&u[1])<<8|255&u[2]},p.prototype.clone=function(){var u=new p;return u.fg=this.fg,u.bg=this.bg,u.extended=this.extended.clone(),u},p.prototype.isInverse=function(){return 67108864&this.fg},p.prototype.isBold=function(){return 134217728&this.fg},p.prototype.isUnderline=function(){return 268435456&this.fg},p.prototype.isBlink=function(){return 536870912&this.fg},p.prototype.isInvisible=function(){return 1073741824&this.fg},p.prototype.isItalic=function(){return 67108864&this.bg},p.prototype.isDim=function(){return 134217728&this.bg},p.prototype.getFgColorMode=function(){return 50331648&this.fg},p.prototype.getBgColorMode=function(){return 50331648&this.bg},p.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},p.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},p.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},p.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},p.prototype.isFgDefault=function(){return(50331648&this.fg)==0},p.prototype.isBgDefault=function(){return(50331648&this.bg)==0},p.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},p.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},p.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},p.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},p.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},p.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},p.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},p.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},p.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},p.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},p.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},p}();t.AttributeData=f;var y=function(){function p(u,v){u===void 0&&(u=0),v===void 0&&(v=-1),this.underlineStyle=u,this.underlineColor=v}return p.prototype.clone=function(){return new p(this.underlineStyle,this.underlineColor)},p.prototype.isEmpty=function(){return this.underlineStyle===0},p}();t.ExtendedAttrs=y},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(f,y,p,u){f.addEventListener(y,p,u);var v=!1;return{dispose:function(){v||(v=!0,f.removeEventListener(y,p,u))}}}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(p){return p>65535?(p-=65536,String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):String.fromCharCode(p)},t.utf32ToString=function(p,u,v){u===void 0&&(u=0),v===void 0&&(v=p.length);for(var d="",o=u;o<v;++o){var s=p[o];s>65535?(s-=65536,d+=String.fromCharCode(55296+(s>>10))+String.fromCharCode(s%1024+56320)):d+=String.fromCharCode(s)}return d};var f=function(){function p(){this._interim=0}return p.prototype.clear=function(){this._interim=0},p.prototype.decode=function(u,v){var d=u.length;if(!d)return 0;var o=0,s=0;this._interim&&(56320<=(a=u.charCodeAt(s++))&&a<=57343?v[o++]=1024*(this._interim-55296)+a-56320+65536:(v[o++]=this._interim,v[o++]=a),this._interim=0);for(var l=s;l<d;++l){var r=u.charCodeAt(l);if(55296<=r&&r<=56319){if(++l>=d)return this._interim=r,o;var a;56320<=(a=u.charCodeAt(l))&&a<=57343?v[o++]=1024*(r-55296)+a-56320+65536:(v[o++]=r,v[o++]=a)}else v[o++]=r}return o},p}();t.StringToUtf32=f;var y=function(){function p(){this.interim=new Uint8Array(3)}return p.prototype.clear=function(){this.interim.fill(0)},p.prototype.decode=function(u,v){var d=u.length;if(!d)return 0;var o,s,l,r,a=0,e=0,i=0;if(this.interim[0]){var c=!1,m=this.interim[0];m&=(224&m)==192?31:(240&m)==224?15:7;for(var w=0,A=void 0;(A=63&this.interim[++w])&&w<4;)m<<=6,m|=A;for(var h=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,g=h-w;i<g;){if(i>=d)return 0;if((192&(A=u[i++]))!=128){i--,c=!0;break}this.interim[w++]=A,m<<=6,m|=63&A}c||(h===2?m<128?i--:v[a++]=m:h===3?m<2048||m>=55296&&m<=57343||(v[a++]=m):m<65536||m>1114111||(v[a++]=m)),this.interim.fill(0)}for(var _=d-4,C=i;C<d;){for(;!(!(C<_)||128&(o=u[C])||128&(s=u[C+1])||128&(l=u[C+2])||128&(r=u[C+3]));)v[a++]=o,v[a++]=s,v[a++]=l,v[a++]=r,C+=4;if((o=u[C++])<128)v[a++]=o;else if((224&o)==192){if(C>=d)return this.interim[0]=o,a;if((192&(s=u[C++]))!=128){C--;continue}if((e=(31&o)<<6|63&s)<128){C--;continue}v[a++]=e}else if((240&o)==224){if(C>=d)return this.interim[0]=o,a;if((192&(s=u[C++]))!=128){C--;continue}if(C>=d)return this.interim[0]=o,this.interim[1]=s,a;if((192&(l=u[C++]))!=128){C--;continue}if((e=(15&o)<<12|(63&s)<<6|63&l)<2048||e>=55296&&e<=57343)continue;v[a++]=e}else if((248&o)==240){if(C>=d)return this.interim[0]=o,a;if((192&(s=u[C++]))!=128){C--;continue}if(C>=d)return this.interim[0]=o,this.interim[1]=s,a;if((192&(l=u[C++]))!=128){C--;continue}if(C>=d)return this.interim[0]=o,this.interim[1]=s,this.interim[2]=l,a;if((192&(r=u[C++]))!=128){C--;continue}if((e=(7&o)<<18|(63&s)<<12|(63&l)<<6|63&r)<65536||e>1114111)continue;v[a++]=e}}return a},p}();t.Utf8ToUtf32=y},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0,t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(Q,t,n){"use strict";var f,y,p,u;function v(o){var s=o.toString(16);return s.length<2?"0"+s:s}function d(o,s){return o<s?(s+.05)/(o+.05):(o+.05)/(s+.05)}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,function(o){o.toCss=function(s,l,r,a){return a!==void 0?"#"+v(s)+v(l)+v(r)+v(a):"#"+v(s)+v(l)+v(r)},o.toRgba=function(s,l,r,a){return a===void 0&&(a=255),(s<<24|l<<16|r<<8|a)>>>0}}(f=t.channels||(t.channels={})),(y=t.color||(t.color={})).blend=function(o,s){var l=(255&s.rgba)/255;if(l===1)return{css:s.css,rgba:s.rgba};var r=s.rgba>>24&255,a=s.rgba>>16&255,e=s.rgba>>8&255,i=o.rgba>>24&255,c=o.rgba>>16&255,m=o.rgba>>8&255,w=i+Math.round((r-i)*l),A=c+Math.round((a-c)*l),h=m+Math.round((e-m)*l);return{css:f.toCss(w,A,h),rgba:f.toRgba(w,A,h)}},y.isOpaque=function(o){return(255&o.rgba)==255},y.ensureContrastRatio=function(o,s,l){var r=u.ensureContrastRatio(o.rgba,s.rgba,l);if(r)return u.toColor(r>>24&255,r>>16&255,r>>8&255)},y.opaque=function(o){var s=(255|o.rgba)>>>0,l=u.toChannels(s),r=l[0],a=l[1],e=l[2];return{css:f.toCss(r,a,e),rgba:s}},y.opacity=function(o,s){var l=Math.round(255*s),r=u.toChannels(o.rgba),a=r[0],e=r[1],i=r[2];return{css:f.toCss(a,e,i,l),rgba:f.toRgba(a,e,i,l)}},(t.css||(t.css={})).toColor=function(o){switch(o.length){case 7:return{css:o,rgba:(parseInt(o.slice(1),16)<<8|255)>>>0};case 9:return{css:o,rgba:parseInt(o.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(o){function s(l,r,a){var e=l/255,i=r/255,c=a/255;return .2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}o.relativeLuminance=function(l){return s(l>>16&255,l>>8&255,255&l)},o.relativeLuminance2=s}(p=t.rgb||(t.rgb={})),function(o){function s(r,a,e){for(var i=r>>24&255,c=r>>16&255,m=r>>8&255,w=a>>24&255,A=a>>16&255,h=a>>8&255,g=d(p.relativeLuminance2(w,h,A),p.relativeLuminance2(i,c,m));g<e&&(w>0||A>0||h>0);)w-=Math.max(0,Math.ceil(.1*w)),A-=Math.max(0,Math.ceil(.1*A)),h-=Math.max(0,Math.ceil(.1*h)),g=d(p.relativeLuminance2(w,h,A),p.relativeLuminance2(i,c,m));return(w<<24|A<<16|h<<8|255)>>>0}function l(r,a,e){for(var i=r>>24&255,c=r>>16&255,m=r>>8&255,w=a>>24&255,A=a>>16&255,h=a>>8&255,g=d(p.relativeLuminance2(w,h,A),p.relativeLuminance2(i,c,m));g<e&&(w<255||A<255||h<255);)w=Math.min(255,w+Math.ceil(.1*(255-w))),A=Math.min(255,A+Math.ceil(.1*(255-A))),h=Math.min(255,h+Math.ceil(.1*(255-h))),g=d(p.relativeLuminance2(w,h,A),p.relativeLuminance2(i,c,m));return(w<<24|A<<16|h<<8|255)>>>0}o.ensureContrastRatio=function(r,a,e){var i=p.relativeLuminance(r>>8),c=p.relativeLuminance(a>>8);if(d(i,c)<e)return c<i?s(r,a,e):l(r,a,e)},o.reduceLuminance=s,o.increaseLuminance=l,o.toChannels=function(r){return[r>>24&255,r>>16&255,r>>8&255,255&r]},o.toColor=function(r,a,e){return{css:f.toCss(r,a,e),rgba:f.toRgba(r,a,e)}}}(u=t.rgba||(t.rgba={})),t.toPaddedHex=v,t.contrastRatio=d},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isFirefox=void 0;var f=typeof navigator=="undefined",y=f?"node":navigator.userAgent,p=f?"node":navigator.platform;function u(v,d){return v.indexOf(d)>=0}t.isFirefox=!!~y.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(y),t.isMac=u(["Macintosh","MacIntel","MacPPC","Mac68K"],p),t.isIpad=p==="iPad",t.isIphone=p==="iPhone",t.isWindows=u(["Windows","Win16","Win32","WinCE"],p),t.isLinux=p.indexOf("Linux")>=0},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,function(f){f.NUL="\0",f.SOH="",f.STX="",f.ETX="",f.EOT="",f.ENQ="",f.ACK="",f.BEL="\x07",f.BS="\b",f.HT=" ",f.LF=`
|
|
|
`,f.VT="\v",f.FF="\f",f.CR="\r",f.SO="",f.SI="",f.DLE="",f.DC1="",f.DC2="",f.DC3="",f.DC4="",f.NAK="",f.SYN="",f.ETB="",f.CAN="",f.EM="",f.SUB="",f.ESC="\x1B",f.FS="",f.GS="",f.RS="",f.US="",f.SP=" ",f.DEL="\x7F"}(t.C0||(t.C0={})),function(f){f.PAD="\x80",f.HOP="\x81",f.BPH="\x82",f.NBH="\x83",f.IND="\x84",f.NEL="\x85",f.SSA="\x86",f.ESA="\x87",f.HTS="\x88",f.HTJ="\x89",f.VTS="\x8A",f.PLD="\x8B",f.PLU="\x8C",f.RI="\x8D",f.SS2="\x8E",f.SS3="\x8F",f.DCS="\x90",f.PU1="\x91",f.PU2="\x92",f.STS="\x93",f.CCH="\x94",f.MW="\x95",f.SPA="\x96",f.EPA="\x97",f.SOS="\x98",f.SGCI="\x99",f.SCI="\x9A",f.CSI="\x9B",f.ST="\x9C",f.OSC="\x9D",f.PM="\x9E",f.APC="\x9F"}(t.C1||(t.C1={}))},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var f=n(3),y=n(9),p=n(25),u=n(6),v=n(28),d=n(10),o=n(17),s=function(){function l(r,a,e,i,c,m,w,A){this._container=r,this._alpha=i,this._colors=c,this._rendererId=m,this._bufferService=w,this._optionsService=A,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+a+"-layer"),this._canvas.style.zIndex=e.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return l.prototype.dispose=function(){var r;o.removeElementFromParent(this._canvas),(r=this._charAtlas)===null||r===void 0||r.dispose()},l.prototype._initCanvas=function(){this._ctx=v.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},l.prototype.onOptionsChanged=function(){},l.prototype.onBlur=function(){},l.prototype.onFocus=function(){},l.prototype.onCursorMove=function(){},l.prototype.onGridChanged=function(r,a){},l.prototype.onSelectionChanged=function(r,a,e){e===void 0&&(e=!1)},l.prototype.setColors=function(r){this._refreshCharAtlas(r)},l.prototype._setTransparency=function(r){if(r!==this._alpha){var a=this._canvas;this._alpha=r,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,a),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},l.prototype._refreshCharAtlas=function(r){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=p.acquireCharAtlas(this._optionsService.options,this._rendererId,r,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},l.prototype.resize=function(r){this._scaledCellWidth=r.scaledCellWidth,this._scaledCellHeight=r.scaledCellHeight,this._scaledCharWidth=r.scaledCharWidth,this._scaledCharHeight=r.scaledCharHeight,this._scaledCharLeft=r.scaledCharLeft,this._scaledCharTop=r.scaledCharTop,this._canvas.width=r.scaledCanvasWidth,this._canvas.height=r.scaledCanvasHeight,this._canvas.style.width=r.canvasWidth+"px",this._canvas.style.height=r.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},l.prototype._fillCells=function(r,a,e,i){this._ctx.fillRect(r*this._scaledCellWidth,a*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight)},l.prototype._fillBottomLineAtCells=function(r,a,e){e===void 0&&(e=1),this._ctx.fillRect(r*this._scaledCellWidth,(a+1)*this._scaledCellHeight-window.devicePixelRatio-1,e*this._scaledCellWidth,window.devicePixelRatio)},l.prototype._fillLeftLineAtCell=function(r,a,e){this._ctx.fillRect(r*this._scaledCellWidth,a*this._scaledCellHeight,window.devicePixelRatio*e,this._scaledCellHeight)},l.prototype._strokeRectAtCell=function(r,a,e,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(r*this._scaledCellWidth+window.devicePixelRatio/2,a*this._scaledCellHeight+window.devicePixelRatio/2,e*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},l.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},l.prototype._clearCells=function(r,a,e,i){this._alpha?this._ctx.clearRect(r*this._scaledCellWidth,a*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(r*this._scaledCellWidth,a*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight))},l.prototype._fillCharTrueColor=function(r,a,e){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(e),this._ctx.fillText(r.getChars(),a*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},l.prototype._drawChars=function(r,a,e){var i,c,m=this._getContrastColor(r);m||r.isFgRGB()||r.isBgRGB()?this._drawUncachedChars(r,a,e,m):(r.isInverse()?(i=r.isBgDefault()?y.INVERTED_DEFAULT_COLOR:r.getBgColor(),c=r.isFgDefault()?y.INVERTED_DEFAULT_COLOR:r.getFgColor()):(c=r.isBgDefault()?f.DEFAULT_COLOR:r.getBgColor(),i=r.isFgDefault()?f.DEFAULT_COLOR:r.getFgColor()),i+=this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&i<8?8:0,this._currentGlyphIdentifier.chars=r.getChars()||f.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=r.getCode()||f.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=i,this._currentGlyphIdentifier.bold=!!r.isBold(),this._currentGlyphIdentifier.dim=!!r.isDim(),this._currentGlyphIdentifier.italic=!!r.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,a*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(r,a,e))},l.prototype._drawUncachedChars=function(r,a,e,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!r.isBold(),!!r.isItalic()),this._ctx.textBaseline="middle",r.isInverse())if(i)this._ctx.fillStyle=i.css;else if(r.isBgDefault())this._ctx.fillStyle=d.color.opaque(this._colors.background).css;else if(r.isBgRGB())this._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(r.getBgColor()).join(",")+")";else{var c=r.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(i)this._ctx.fillStyle=i.css;else if(r.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(r.isFgRGB())this._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(r.getFgColor()).join(",")+")";else{var m=r.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&m<8&&(m+=8),this._ctx.fillStyle=this._colors.ansi[m].css}this._clipRow(e),r.isDim()&&(this._ctx.globalAlpha=y.DIM_OPACITY),this._ctx.fillText(r.getChars(),a*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},l.prototype._clipRow=function(r){this._ctx.beginPath(),this._ctx.rect(0,r*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},l.prototype._getFont=function(r,a){return(a?"italic":"")+" "+(r?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},l.prototype._getContrastColor=function(r){if(this._optionsService.options.minimumContrastRatio!==1){var a=this._colors.contrastCache.getColor(r.bg,r.fg);if(a!==void 0)return a||void 0;var e=r.getFgColor(),i=r.getFgColorMode(),c=r.getBgColor(),m=r.getBgColorMode(),w=!!r.isInverse(),A=!!r.isInverse();if(w){var h=e;e=c,c=h;var g=i;i=m,m=g}var _=this._resolveBackgroundRgba(m,c,w),C=this._resolveForegroundRgba(i,e,w,A),b=d.rgba.ensureContrastRatio(_,C,this._optionsService.options.minimumContrastRatio);if(b){var S={css:d.channels.toCss(b>>24&255,b>>16&255,b>>8&255),rgba:b};return this._colors.contrastCache.setColor(r.bg,r.fg,S),S}this._colors.contrastCache.setColor(r.bg,r.fg,null)}},l.prototype._resolveBackgroundRgba=function(r,a,e){switch(r){case 16777216:case 33554432:return this._colors.ansi[a].rgba;case 50331648:return a<<8;case 0:default:return e?this._colors.foreground.rgba:this._colors.background.rgba}},l.prototype._resolveForegroundRgba=function(r,a,e,i){switch(r){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&a<8&&(a+=8),this._colors.ansi[a].rgba;case 50331648:return a<<8;case 0:default:return e?this._colors.background.rgba:this._colors.foreground.rgba}},l}();t.BaseRenderLayer=s},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;function f(y,p,u){p.di$target===p?p.di$dependencies.push({id:y,index:u}):(p.di$dependencies=[{id:y,index:u}],p.di$target=p)}t.serviceRegistry=new Map,t.getServiceDependencies=function(y){return y.di$dependencies||[]},t.createDecorator=function(y){if(t.serviceRegistry.has(y))return t.serviceRegistry.get(y);var p=function(u,v,d){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");f(p,u,d)};return p.toString=function(){return y},t.serviceRegistry.set(y,p),p}},function(Q,t,n){"use strict";function f(y,p,u,v){if(u===void 0&&(u=0),v===void 0&&(v=y.length),u>=y.length)return y;u=(y.length+u)%y.length,v=v>=y.length?y.length:(y.length+v)%y.length;for(var d=u;d<v;++d)y[d]=p;return y}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(y,p,u,v){return y.fill?y.fill(p,u,v):f(y,p,u,v)},t.fillFallback=f,t.concat=function(y,p){var u=new y.constructor(y.length+p.length);return u.set(y),u.set(p,y.length),u}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var f=n(8),y=n(3),p=n(4),u=n(6);t.DEFAULT_ATTR_DATA=Object.freeze(new u.AttributeData);var v=function(){function d(o,s,l){l===void 0&&(l=!1),this.isWrapped=l,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*o);for(var r=s||p.CellData.fromCharData([0,y.NULL_CELL_CHAR,y.NULL_CELL_WIDTH,y.NULL_CELL_CODE]),a=0;a<o;++a)this.setCell(a,r);this.length=o}return d.prototype.get=function(o){var s=this._data[3*o+0],l=2097151&s;return[this._data[3*o+1],2097152&s?this._combined[o]:l?f.stringFromCodePoint(l):"",s>>22,2097152&s?this._combined[o].charCodeAt(this._combined[o].length-1):l]},d.prototype.set=function(o,s){this._data[3*o+1]=s[y.CHAR_DATA_ATTR_INDEX],s[y.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[o]=s[1],this._data[3*o+0]=2097152|o|s[y.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*o+0]=s[y.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[y.CHAR_DATA_WIDTH_INDEX]<<22},d.prototype.getWidth=function(o){return this._data[3*o+0]>>22},d.prototype.hasWidth=function(o){return 12582912&this._data[3*o+0]},d.prototype.getFg=function(o){return this._data[3*o+1]},d.prototype.getBg=function(o){return this._data[3*o+2]},d.prototype.hasContent=function(o){return 4194303&this._data[3*o+0]},d.prototype.getCodePoint=function(o){var s=this._data[3*o+0];return 2097152&s?this._combined[o].charCodeAt(this._combined[o].length-1):2097151&s},d.prototype.isCombined=function(o){return 2097152&this._data[3*o+0]},d.prototype.getString=function(o){var s=this._data[3*o+0];return 2097152&s?this._combined[o]:2097151&s?f.stringFromCodePoint(2097151&s):""},d.prototype.loadCell=function(o,s){var l=3*o;return s.content=this._data[l+0],s.fg=this._data[l+1],s.bg=this._data[l+2],2097152&s.content&&(s.combinedData=this._combined[o]),268435456&s.bg&&(s.extended=this._extendedAttrs[o]),s},d.prototype.setCell=function(o,s){2097152&s.content&&(this._combined[o]=s.combinedData),268435456&s.bg&&(this._extendedAttrs[o]=s.extended),this._data[3*o+0]=s.content,this._data[3*o+1]=s.fg,this._data[3*o+2]=s.bg},d.prototype.setCellFromCodePoint=function(o,s,l,r,a,e){268435456&a&&(this._extendedAttrs[o]=e),this._data[3*o+0]=s|l<<22,this._data[3*o+1]=r,this._data[3*o+2]=a},d.prototype.addCodepointToCell=function(o,s){var l=this._data[3*o+0];2097152&l?this._combined[o]+=f.stringFromCodePoint(s):(2097151&l?(this._combined[o]=f.stringFromCodePoint(2097151&l)+f.stringFromCodePoint(s),l&=-2097152,l|=2097152):l=s|1<<22,this._data[3*o+0]=l)},d.prototype.insertCells=function(o,s,l,r){if((o%=this.length)&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs),s<this.length-o){for(var a=new p.CellData,e=this.length-o-s-1;e>=0;--e)this.setCell(o+s+e,this.loadCell(o+e,a));for(e=0;e<s;++e)this.setCell(o+e,l)}else for(e=o;e<this.length;++e)this.setCell(e,l);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs)},d.prototype.deleteCells=function(o,s,l,r){if(o%=this.length,s<this.length-o){for(var a=new p.CellData,e=0;e<this.length-o-s;++e)this.setCell(o+e,this.loadCell(o+s+e,a));for(e=this.length-s;e<this.length;++e)this.setCell(e,l)}else for(e=o;e<this.length;++e)this.setCell(e,l);o&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs),this.getWidth(o)!==0||this.hasContent(o)||this.setCellFromCodePoint(o,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs)},d.prototype.replaceCells=function(o,s,l,r){for(o&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs),s<this.length&&this.getWidth(s-1)===2&&this.setCellFromCodePoint(s,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new u.ExtendedAttrs);o<s&&o<this.length;)this.setCell(o++,l)},d.prototype.resize=function(o,s){if(o!==this.length){if(o>this.length){var l=new Uint32Array(3*o);this.length&&(3*o<this._data.length?l.set(this._data.subarray(0,3*o)):l.set(this._data)),this._data=l;for(var r=this.length;r<o;++r)this.setCell(r,s)}else if(o){(l=new Uint32Array(3*o)).set(this._data.subarray(0,3*o)),this._data=l;var a=Object.keys(this._combined);for(r=0;r<a.length;r++){var e=parseInt(a[r],10);e>=o&&delete this._combined[e]}}else this._data=new Uint32Array(0),this._combined={};this.length=o}},d.prototype.fill=function(o){this._combined={},this._extendedAttrs={};for(var s=0;s<this.length;++s)this.setCell(s,o)},d.prototype.copyFrom=function(o){for(var s in this.length!==o.length?this._data=new Uint32Array(o._data):this._data.set(o._data),this.length=o.length,this._combined={},o._combined)this._combined[s]=o._combined[s];for(var s in this._extendedAttrs={},o._extendedAttrs)this._extendedAttrs[s]=o._extendedAttrs[s];this.isWrapped=o.isWrapped},d.prototype.clone=function(){var o=new d(0);for(var s in o._data=new Uint32Array(this._data),o.length=this.length,this._combined)o._combined[s]=this._combined[s];for(var s in this._extendedAttrs)o._extendedAttrs[s]=this._extendedAttrs[s];return o.isWrapped=this.isWrapped,o},d.prototype.getTrimmedLength=function(){for(var o=this.length-1;o>=0;--o)if(4194303&this._data[3*o+0])return o+(this._data[3*o+0]>>22);return 0},d.prototype.copyCellsFrom=function(o,s,l,r,a){var e=o._data;if(a)for(var i=r-1;i>=0;i--)for(var c=0;c<3;c++)this._data[3*(l+i)+c]=e[3*(s+i)+c];else for(i=0;i<r;i++)for(c=0;c<3;c++)this._data[3*(l+i)+c]=e[3*(s+i)+c];var m=Object.keys(o._combined);for(c=0;c<m.length;c++){var w=parseInt(m[c],10);w>=s&&(this._combined[w-s+l]=o._combined[w])}},d.prototype.translateToString=function(o,s,l){o===void 0&&(o=!1),s===void 0&&(s=0),l===void 0&&(l=this.length),o&&(l=Math.min(l,this.getTrimmedLength()));for(var r="";s<l;){var a=this._data[3*s+0],e=2097151&a;r+=2097152&a?this._combined[s]:e?f.stringFromCodePoint(e):y.WHITESPACE_CELL_CHAR,s+=a>>22||1}return r},d}();t.BufferLine=v},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var f,y=[],p=0;p<arguments.length;p++)y[p]=arguments[p];for(var u=0,v=y;u<v.length;u++){var d=v[u];(f=d==null?void 0:d.parentElement)===null||f===void 0||f.removeChild(d)}}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(C,b){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,x){S.__proto__=x}||function(S,x){for(var z in x)x.hasOwnProperty(z)&&(S[z]=x[z])})(C,b)},function(C,b){function S(){this.constructor=C}f(C,b),C.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var p,u=n(12),v=n(20),d=n(39),o=n(2),s=n(15),l=n(8),r=n(16),a=n(0),e=n(3),i=n(4),c=n(6),m=n(22),w=n(24),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function h(C,b){if(C>24)return b.setWinLines||!1;switch(C){case 1:return!!b.restoreWin;case 2:return!!b.minimizeWin;case 3:return!!b.setWinPosition;case 4:return!!b.setWinSizePixels;case 5:return!!b.raiseWin;case 6:return!!b.lowerWin;case 7:return!!b.refreshWin;case 8:return!!b.setWinSizeChars;case 9:return!!b.maximizeWin;case 10:return!!b.fullscreenWin;case 11:return!!b.getWinState;case 13:return!!b.getWinPosition;case 14:return!!b.getWinSizePixels;case 15:return!!b.getScreenSizePixels;case 16:return!!b.getCellSizePixels;case 18:return!!b.getWinSizeChars;case 19:return!!b.getScreenSizeChars;case 20:return!!b.getIconTitle;case 21:return!!b.getWinTitle;case 22:return!!b.pushTitle;case 23:return!!b.popTitle;case 24:return!!b.setWinLines}return!1}(function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(p=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var g=function(){function C(b,S,x,z){this._bufferService=b,this._coreService=S,this._logService=x,this._optionsService=z,this._data=new Uint32Array(0)}return C.prototype.hook=function(b){this._data=new Uint32Array(0)},C.prototype.put=function(b,S,x){this._data=s.concat(this._data,b.subarray(S,x))},C.prototype.unhook=function(b){if(b){var S=l.utf32ToString(this._data);switch(this._data=new Uint32Array(0),S){case'"q':return this._coreService.triggerDataEvent(u.C0.ESC+'P1$r0"q'+u.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(u.C0.ESC+'P1$r61;1"p'+u.C0.ESC+"\\");case"r":var x=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(u.C0.ESC+"P1$r"+x+u.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(u.C0.ESC+"P1$r0m"+u.C0.ESC+"\\");case" q":var z={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return z-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(u.C0.ESC+"P1$r"+z+" q"+u.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",S),this._coreService.triggerDataEvent(u.C0.ESC+"P0$r"+u.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),_=function(C){function b(S,x,z,P,K,N,k,D,L){L===void 0&&(L=new d.EscapeSequenceParser);var E=C.call(this)||this;E._bufferService=S,E._charsetService=x,E._coreService=z,E._dirtyRowService=P,E._logService=K,E._optionsService=N,E._coreMouseService=k,E._unicodeService=D,E._parser=L,E._parseBuffer=new Uint32Array(4096),E._stringDecoder=new l.StringToUtf32,E._utf8Decoder=new l.Utf8ToUtf32,E._workCell=new i.CellData,E._windowTitle="",E._iconName="",E._windowTitleStack=[],E._iconNameStack=[],E._curAttrData=r.DEFAULT_ATTR_DATA.clone(),E._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone(),E._onRequestBell=new a.EventEmitter,E._onRequestRefreshRows=new a.EventEmitter,E._onRequestReset=new a.EventEmitter,E._onRequestScroll=new a.EventEmitter,E._onRequestSyncScrollBar=new a.EventEmitter,E._onRequestWindowsOptionsReport=new a.EventEmitter,E._onA11yChar=new a.EventEmitter,E._onA11yTab=new a.EventEmitter,E._onCursorMove=new a.EventEmitter,E._onLineFeed=new a.EventEmitter,E._onScroll=new a.EventEmitter,E._onTitleChange=new a.EventEmitter,E.register(E._parser),E._parser.setCsiHandlerFallback(function(I,J){E._logService.debug("Unknown CSI code: ",{identifier:E._parser.identToString(I),params:J.toArray()})}),E._parser.setEscHandlerFallback(function(I){E._logService.debug("Unknown ESC code: ",{identifier:E._parser.identToString(I)})}),E._parser.setExecuteHandlerFallback(function(I){E._logService.debug("Unknown EXECUTE code: ",{code:I})}),E._parser.setOscHandlerFallback(function(I,J,re){E._logService.debug("Unknown OSC code: ",{identifier:I,action:J,data:re})}),E._parser.setDcsHandlerFallback(function(I,J,re){J==="HOOK"&&(re=re.toArray()),E._logService.debug("Unknown DCS code: ",{identifier:E._parser.identToString(I),action:J,payload:re})}),E._parser.setPrintHandler(function(I,J,re){return E.print(I,J,re)}),E._parser.setCsiHandler({final:"@"},function(I){return E.insertChars(I)}),E._parser.setCsiHandler({intermediates:" ",final:"@"},function(I){return E.scrollLeft(I)}),E._parser.setCsiHandler({final:"A"},function(I){return E.cursorUp(I)}),E._parser.setCsiHandler({intermediates:" ",final:"A"},function(I){return E.scrollRight(I)}),E._parser.setCsiHandler({final:"B"},function(I){return E.cursorDown(I)}),E._parser.setCsiHandler({final:"C"},function(I){return E.cursorForward(I)}),E._parser.setCsiHandler({final:"D"},function(I){return E.cursorBackward(I)}),E._parser.setCsiHandler({final:"E"},function(I){return E.cursorNextLine(I)}),E._parser.setCsiHandler({final:"F"},function(I){return E.cursorPrecedingLine(I)}),E._parser.setCsiHandler({final:"G"},function(I){return E.cursorCharAbsolute(I)}),E._parser.setCsiHandler({final:"H"},function(I){return E.cursorPosition(I)}),E._parser.setCsiHandler({final:"I"},function(I){return E.cursorForwardTab(I)}),E._parser.setCsiHandler({final:"J"},function(I){return E.eraseInDisplay(I)}),E._parser.setCsiHandler({prefix:"?",final:"J"},function(I){return E.eraseInDisplay(I)}),E._parser.setCsiHandler({final:"K"},function(I){return E.eraseInLine(I)}),E._parser.setCsiHandler({prefix:"?",final:"K"},function(I){return E.eraseInLine(I)}),E._parser.setCsiHandler({final:"L"},function(I){return E.insertLines(I)}),E._parser.setCsiHandler({final:"M"},function(I){return E.deleteLines(I)}),E._parser.setCsiHandler({final:"P"},function(I){return E.deleteChars(I)}),E._parser.setCsiHandler({final:"S"},function(I){return E.scrollUp(I)}),E._parser.setCsiHandler({final:"T"},function(I){return E.scrollDown(I)}),E._parser.setCsiHandler({final:"X"},function(I){return E.eraseChars(I)}),E._parser.setCsiHandler({final:"Z"},function(I){return E.cursorBackwardTab(I)}),E._parser.setCsiHandler({final:"`"},function(I){return E.charPosAbsolute(I)}),E._parser.setCsiHandler({final:"a"},function(I){return E.hPositionRelative(I)}),E._parser.setCsiHandler({final:"b"},function(I){return E.repeatPrecedingCharacter(I)}),E._parser.setCsiHandler({final:"c"},function(I){return E.sendDeviceAttributesPrimary(I)}),E._parser.setCsiHandler({prefix:">",final:"c"},function(I){return E.sendDeviceAttributesSecondary(I)}),E._parser.setCsiHandler({final:"d"},function(I){return E.linePosAbsolute(I)}),E._parser.setCsiHandler({final:"e"},function(I){return E.vPositionRelative(I)}),E._parser.setCsiHandler({final:"f"},function(I){return E.hVPosition(I)}),E._parser.setCsiHandler({final:"g"},function(I){return E.tabClear(I)}),E._parser.setCsiHandler({final:"h"},function(I){return E.setMode(I)}),E._parser.setCsiHandler({prefix:"?",final:"h"},function(I){return E.setModePrivate(I)}),E._parser.setCsiHandler({final:"l"},function(I){return E.resetMode(I)}),E._parser.setCsiHandler({prefix:"?",final:"l"},function(I){return E.resetModePrivate(I)}),E._parser.setCsiHandler({final:"m"},function(I){return E.charAttributes(I)}),E._parser.setCsiHandler({final:"n"},function(I){return E.deviceStatus(I)}),E._parser.setCsiHandler({prefix:"?",final:"n"},function(I){return E.deviceStatusPrivate(I)}),E._parser.setCsiHandler({intermediates:"!",final:"p"},function(I){return E.softReset(I)}),E._parser.setCsiHandler({intermediates:" ",final:"q"},function(I){return E.setCursorStyle(I)}),E._parser.setCsiHandler({final:"r"},function(I){return E.setScrollRegion(I)}),E._parser.setCsiHandler({final:"s"},function(I){return E.saveCursor(I)}),E._parser.setCsiHandler({final:"t"},function(I){return E.windowOptions(I)}),E._parser.setCsiHandler({final:"u"},function(I){return E.restoreCursor(I)}),E._parser.setCsiHandler({intermediates:"'",final:"}"},function(I){return E.insertColumns(I)}),E._parser.setCsiHandler({intermediates:"'",final:"~"},function(I){return E.deleteColumns(I)}),E._parser.setExecuteHandler(u.C0.BEL,function(){return E.bell()}),E._parser.setExecuteHandler(u.C0.LF,function(){return E.lineFeed()}),E._parser.setExecuteHandler(u.C0.VT,function(){return E.lineFeed()}),E._parser.setExecuteHandler(u.C0.FF,function(){return E.lineFeed()}),E._parser.setExecuteHandler(u.C0.CR,function(){return E.carriageReturn()}),E._parser.setExecuteHandler(u.C0.BS,function(){return E.backspace()}),E._parser.setExecuteHandler(u.C0.HT,function(){return E.tab()}),E._parser.setExecuteHandler(u.C0.SO,function(){return E.shiftOut()}),E._parser.setExecuteHandler(u.C0.SI,function(){return E.shiftIn()}),E._parser.setExecuteHandler(u.C1.IND,function(){return E.index()}),E._parser.setExecuteHandler(u.C1.NEL,function(){return E.nextLine()}),E._parser.setExecuteHandler(u.C1.HTS,function(){return E.tabSet()}),E._parser.setOscHandler(0,new m.OscHandler(function(I){E.setTitle(I),E.setIconName(I)})),E._parser.setOscHandler(1,new m.OscHandler(function(I){return E.setIconName(I)})),E._parser.setOscHandler(2,new m.OscHandler(function(I){return E.setTitle(I)})),E._parser.setEscHandler({final:"7"},function(){return E.saveCursor()}),E._parser.setEscHandler({final:"8"},function(){return E.restoreCursor()}),E._parser.setEscHandler({final:"D"},function(){return E.index()}),E._parser.setEscHandler({final:"E"},function(){return E.nextLine()}),E._parser.setEscHandler({final:"H"},function(){return E.tabSet()}),E._parser.setEscHandler({final:"M"},function(){return E.reverseIndex()}),E._parser.setEscHandler({final:"="},function(){return E.keypadApplicationMode()}),E._parser.setEscHandler({final:">"},function(){return E.keypadNumericMode()}),E._parser.setEscHandler({final:"c"},function(){return E.fullReset()}),E._parser.setEscHandler({final:"n"},function(){return E.setgLevel(2)}),E._parser.setEscHandler({final:"o"},function(){return E.setgLevel(3)}),E._parser.setEscHandler({final:"|"},function(){return E.setgLevel(3)}),E._parser.setEscHandler({final:"}"},function(){return E.setgLevel(2)}),E._parser.setEscHandler({final:"~"},function(){return E.setgLevel(1)}),E._parser.setEscHandler({intermediates:"%",final:"@"},function(){return E.selectDefaultCharset()}),E._parser.setEscHandler({intermediates:"%",final:"G"},function(){return E.selectDefaultCharset()});var R=function(I){O._parser.setEscHandler({intermediates:"(",final:I},function(){return E.selectCharset("("+I)}),O._parser.setEscHandler({intermediates:")",final:I},function(){return E.selectCharset(")"+I)}),O._parser.setEscHandler({intermediates:"*",final:I},function(){return E.selectCharset("*"+I)}),O._parser.setEscHandler({intermediates:"+",final:I},function(){return E.selectCharset("+"+I)}),O._parser.setEscHandler({intermediates:"-",final:I},function(){return E.selectCharset("-"+I)}),O._parser.setEscHandler({intermediates:".",final:I},function(){return E.selectCharset("."+I)}),O._parser.setEscHandler({intermediates:"/",final:I},function(){return E.selectCharset("/"+I)})},O=this;for(var M in v.CHARSETS)R(M);return E._parser.setEscHandler({intermediates:"#",final:"8"},function(){return E.screenAlignmentPattern()}),E._parser.setErrorHandler(function(I){return E._logService.error("Parsing error: ",I),I}),E._parser.setDcsHandler({intermediates:"$",final:"q"},new g(E._bufferService,E._coreService,E._logService,E._optionsService)),E}return y(b,C),Object.defineProperty(b.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){C.prototype.dispose.call(this)},b.prototype.parse=function(S){var x=this._bufferService.buffer,z=x.x,P=x.y;if(this._logService.debug("parsing data",S),this._parseBuffer.length<S.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(S.length,131072))),this._dirtyRowService.clearRange(),S.length>131072)for(var K=0;K<S.length;K+=131072){var N=K+131072<S.length?K+131072:S.length,k=typeof S=="string"?this._stringDecoder.decode(S.substring(K,N),this._parseBuffer):this._utf8Decoder.decode(S.subarray(K,N),this._parseBuffer);this._parser.parse(this._parseBuffer,k)}else k=typeof S=="string"?this._stringDecoder.decode(S,this._parseBuffer):this._utf8Decoder.decode(S,this._parseBuffer),this._parser.parse(this._parseBuffer,k);(x=this._bufferService.buffer).x===z&&x.y===P||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},b.prototype.print=function(S,x,z){var P,K,N=this._bufferService.buffer,k=this._charsetService.charset,D=this._optionsService.options.screenReaderMode,L=this._bufferService.cols,E=this._coreService.decPrivateModes.wraparound,R=this._coreService.modes.insertMode,O=this._curAttrData,M=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&z-x>0&&M.getWidth(N.x-1)===2&&M.setCellFromCodePoint(N.x-1,0,1,O.fg,O.bg,O.extended);for(var I=x;I<z;++I){if(P=S[I],K=this._unicodeService.wcwidth(P),P<127&&k){var J=k[String.fromCharCode(P)];J&&(P=J.charCodeAt(0))}if(D&&this._onA11yChar.fire(l.stringFromCodePoint(P)),K||!N.x){if(N.x+K-1>=L){if(E){for(;N.x<L;)M.setCellFromCodePoint(N.x++,0,1,O.fg,O.bg,O.extended);N.x=0,N.y++,N.y===N.scrollBottom+1?(N.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(N.y>=this._bufferService.rows&&(N.y=this._bufferService.rows-1),N.lines.get(N.ybase+N.y).isWrapped=!0),M=N.lines.get(N.ybase+N.y)}else if(N.x=L-1,K===2)continue}if(R&&(M.insertCells(N.x,K,N.getNullCell(O),O),M.getWidth(L-1)===2&&M.setCellFromCodePoint(L-1,e.NULL_CELL_CODE,e.NULL_CELL_WIDTH,O.fg,O.bg,O.extended)),M.setCellFromCodePoint(N.x++,P,K,O.fg,O.bg,O.extended),K>0)for(;--K;)M.setCellFromCodePoint(N.x++,0,0,O.fg,O.bg,O.extended)}else M.getWidth(N.x-1)?M.addCodepointToCell(N.x-1,P):M.addCodepointToCell(N.x-2,P)}z-x>0&&(M.loadCell(N.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),N.x<L&&z-x>0&&M.getWidth(N.x)===0&&!M.hasContent(N.x)&&M.setCellFromCodePoint(N.x,0,1,O.fg,O.bg,O.extended),this._dirtyRowService.markDirty(N.y)},b.prototype.addCsiHandler=function(S,x){var z=this;return S.final!=="t"||S.prefix||S.intermediates?this._parser.addCsiHandler(S,x):this._parser.addCsiHandler(S,function(P){return!h(P.params[0],z._optionsService.options.windowOptions)||x(P)})},b.prototype.addDcsHandler=function(S,x){return this._parser.addDcsHandler(S,new w.DcsHandler(x))},b.prototype.addEscHandler=function(S,x){return this._parser.addEscHandler(S,x)},b.prototype.addOscHandler=function(S,x){return this._parser.addOscHandler(S,new m.OscHandler(x))},b.prototype.bell=function(){this._onRequestBell.fire()},b.prototype.lineFeed=function(){var S=this._bufferService.buffer;this._dirtyRowService.markDirty(S.y),this._optionsService.options.convertEol&&(S.x=0),S.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),S.x>=this._bufferService.cols&&S.x--,this._dirtyRowService.markDirty(S.y),this._onLineFeed.fire()},b.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},b.prototype.backspace=function(){var S,x=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(x.x>0&&x.x--);if(this._restrictCursor(this._bufferService.cols),x.x>0)x.x--;else if(x.x===0&&x.y>x.scrollTop&&x.y<=x.scrollBottom&&(!((S=x.lines.get(x.ybase+x.y))===null||S===void 0)&&S.isWrapped)){x.lines.get(x.ybase+x.y).isWrapped=!1,x.y--,x.x=this._bufferService.cols-1;var z=x.lines.get(x.ybase+x.y);z.hasWidth(x.x)&&!z.hasContent(x.x)&&x.x--}this._restrictCursor()},b.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var S=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-S)}},b.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},b.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},b.prototype._restrictCursor=function(S){S===void 0&&(S=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(S,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},b.prototype._setCursor=function(S,x){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=S,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+x):(this._bufferService.buffer.x=S,this._bufferService.buffer.y=x),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},b.prototype._moveCursor=function(S,x){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+S,this._bufferService.buffer.y+x)},b.prototype.cursorUp=function(S){var x=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;x>=0?this._moveCursor(0,-Math.min(x,S.params[0]||1)):this._moveCursor(0,-(S.params[0]||1))},b.prototype.cursorDown=function(S){var x=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;x>=0?this._moveCursor(0,Math.min(x,S.params[0]||1)):this._moveCursor(0,S.params[0]||1)},b.prototype.cursorForward=function(S){this._moveCursor(S.params[0]||1,0)},b.prototype.cursorBackward=function(S){this._moveCursor(-(S.params[0]||1),0)},b.prototype.cursorNextLine=function(S){this.cursorDown(S),this._bufferService.buffer.x=0},b.prototype.cursorPrecedingLine=function(S){this.cursorUp(S),this._bufferService.buffer.x=0},b.prototype.cursorCharAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},b.prototype.cursorPosition=function(S){this._setCursor(S.length>=2?(S.params[1]||1)-1:0,(S.params[0]||1)-1)},b.prototype.charPosAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},b.prototype.hPositionRelative=function(S){this._moveCursor(S.params[0]||1,0)},b.prototype.linePosAbsolute=function(S){this._setCursor(this._bufferService.buffer.x,(S.params[0]||1)-1)},b.prototype.vPositionRelative=function(S){this._moveCursor(0,S.params[0]||1)},b.prototype.hVPosition=function(S){this.cursorPosition(S)},b.prototype.tabClear=function(S){var x=S.params[0];x===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:x===3&&(this._bufferService.buffer.tabs={})},b.prototype.cursorForwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var x=S.params[0]||1;x--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},b.prototype.cursorBackwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var x=S.params[0]||1,z=this._bufferService.buffer;x--;)z.x=z.prevStop()},b.prototype._eraseInBufferLine=function(S,x,z,P){P===void 0&&(P=!1);var K=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);K.replaceCells(x,z,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),P&&(K.isWrapped=!1)},b.prototype._resetBufferLine=function(S){var x=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);x.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),x.isWrapped=!1},b.prototype.eraseInDisplay=function(S){var x;switch(this._restrictCursor(),S.params[0]){case 0:for(x=this._bufferService.buffer.y,this._dirtyRowService.markDirty(x),this._eraseInBufferLine(x++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);x<this._bufferService.rows;x++)this._resetBufferLine(x);this._dirtyRowService.markDirty(x);break;case 1:for(x=this._bufferService.buffer.y,this._dirtyRowService.markDirty(x),this._eraseInBufferLine(x,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(x+1).isWrapped=!1);x--;)this._resetBufferLine(x);this._dirtyRowService.markDirty(0);break;case 2:for(x=this._bufferService.rows,this._dirtyRowService.markDirty(x-1);x--;)this._resetBufferLine(x);this._dirtyRowService.markDirty(0);break;case 3:var z=this._bufferService.buffer.lines.length-this._bufferService.rows;z>0&&(this._bufferService.buffer.lines.trimStart(z),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-z,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-z,0),this._onScroll.fire(0))}},b.prototype.eraseInLine=function(S){switch(this._restrictCursor(),S.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},b.prototype.insertLines=function(S){this._restrictCursor();var x=S.params[0]||1,z=this._bufferService.buffer;if(!(z.y>z.scrollBottom||z.y<z.scrollTop)){for(var P=z.ybase+z.y,K=this._bufferService.rows-1-z.scrollBottom,N=this._bufferService.rows-1+z.ybase-K+1;x--;)z.lines.splice(N-1,1),z.lines.splice(P,0,z.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(z.y,z.scrollBottom),z.x=0}},b.prototype.deleteLines=function(S){this._restrictCursor();var x=S.params[0]||1,z=this._bufferService.buffer;if(!(z.y>z.scrollBottom||z.y<z.scrollTop)){var P,K=z.ybase+z.y;for(P=this._bufferService.rows-1-z.scrollBottom,P=this._bufferService.rows-1+z.ybase-P;x--;)z.lines.splice(K,1),z.lines.splice(P,0,z.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(z.y,z.scrollBottom),z.x=0}},b.prototype.insertChars=function(S){this._restrictCursor();var x=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);x&&(x.insertCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},b.prototype.deleteChars=function(S){this._restrictCursor();var x=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);x&&(x.deleteCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},b.prototype.scrollUp=function(S){for(var x=S.params[0]||1,z=this._bufferService.buffer;x--;)z.lines.splice(z.ybase+z.scrollTop,1),z.lines.splice(z.ybase+z.scrollBottom,0,z.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(z.scrollTop,z.scrollBottom)},b.prototype.scrollDown=function(S){for(var x=S.params[0]||1,z=this._bufferService.buffer;x--;)z.lines.splice(z.ybase+z.scrollBottom,1),z.lines.splice(z.ybase+z.scrollTop,0,z.getBlankLine(r.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(z.scrollTop,z.scrollBottom)},b.prototype.scrollLeft=function(S){var x=this._bufferService.buffer;if(!(x.y>x.scrollBottom||x.y<x.scrollTop)){for(var z=S.params[0]||1,P=x.scrollTop;P<=x.scrollBottom;++P){var K=x.lines.get(x.ybase+P);K.deleteCells(0,z,x.getNullCell(this._eraseAttrData()),this._eraseAttrData()),K.isWrapped=!1}this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom)}},b.prototype.scrollRight=function(S){var x=this._bufferService.buffer;if(!(x.y>x.scrollBottom||x.y<x.scrollTop)){for(var z=S.params[0]||1,P=x.scrollTop;P<=x.scrollBottom;++P){var K=x.lines.get(x.ybase+P);K.insertCells(0,z,x.getNullCell(this._eraseAttrData()),this._eraseAttrData()),K.isWrapped=!1}this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom)}},b.prototype.insertColumns=function(S){var x=this._bufferService.buffer;if(!(x.y>x.scrollBottom||x.y<x.scrollTop)){for(var z=S.params[0]||1,P=x.scrollTop;P<=x.scrollBottom;++P){var K=this._bufferService.buffer.lines.get(x.ybase+P);K.insertCells(x.x,z,x.getNullCell(this._eraseAttrData()),this._eraseAttrData()),K.isWrapped=!1}this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom)}},b.prototype.deleteColumns=function(S){var x=this._bufferService.buffer;if(!(x.y>x.scrollBottom||x.y<x.scrollTop)){for(var z=S.params[0]||1,P=x.scrollTop;P<=x.scrollBottom;++P){var K=x.lines.get(x.ybase+P);K.deleteCells(x.x,z,x.getNullCell(this._eraseAttrData()),this._eraseAttrData()),K.isWrapped=!1}this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom)}},b.prototype.eraseChars=function(S){this._restrictCursor();var x=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);x&&(x.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(S.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},b.prototype.repeatPrecedingCharacter=function(S){if(this._parser.precedingCodepoint){for(var x=S.params[0]||1,z=new Uint32Array(x),P=0;P<x;++P)z[P]=this._parser.precedingCodepoint;this.print(z,0,z.length)}},b.prototype.sendDeviceAttributesPrimary=function(S){S.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(u.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(u.C0.ESC+"[?6c"))},b.prototype.sendDeviceAttributesSecondary=function(S){S.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(u.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(u.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(S.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(u.C0.ESC+"[>83;40003;0c"))},b.prototype._is=function(S){return(this._optionsService.options.termName+"").indexOf(S)===0},b.prototype.setMode=function(S){for(var x=0;x<S.length;x++)switch(S.params[x]){case 4:this._coreService.modes.insertMode=!0}},b.prototype.setModePrivate=function(S){for(var x=0;x<S.length;x++)switch(S.params[x]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,v.DEFAULT_CHARSET),this._charsetService.setgCharset(1,v.DEFAULT_CHARSET),this._charsetService.setgCharset(2,v.DEFAULT_CHARSET),this._charsetService.setgCharset(3,v.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},b.prototype.resetMode=function(S){for(var x=0;x<S.length;x++)switch(S.params[x]){case 4:this._coreService.modes.insertMode=!1}},b.prototype.resetModePrivate=function(S){for(var x=0;x<S.length;x++)switch(S.params[x]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),S.params[x]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},b.prototype._updateAttrColor=function(S,x,z,P,K){return x===2?(S|=50331648,S&=-16777216,S|=c.AttributeData.fromColorRGB([z,P,K])):x===5&&(S&=-50331904,S|=33554432|255&z),S},b.prototype._extractColor=function(S,x,z){var P=[0,0,-1,0,0,0],K=0,N=0;do{if(P[N+K]=S.params[x+N],S.hasSubParams(x+N)){var k=S.getSubParams(x+N),D=0;do P[1]===5&&(K=1),P[N+D+1+K]=k[D];while(++D<k.length&&D+N+1+K<P.length);break}if(P[1]===5&&N+K>=2||P[1]===2&&N+K>=5)break;P[1]&&(K=1)}while(++N+x<S.length&&N+K<P.length);for(D=2;D<P.length;++D)P[D]===-1&&(P[D]=0);switch(P[0]){case 38:z.fg=this._updateAttrColor(z.fg,P[1],P[3],P[4],P[5]);break;case 48:z.bg=this._updateAttrColor(z.bg,P[1],P[3],P[4],P[5]);break;case 58:z.extended=z.extended.clone(),z.extended.underlineColor=this._updateAttrColor(z.extended.underlineColor,P[1],P[3],P[4],P[5])}return N},b.prototype._processUnderline=function(S,x){x.extended=x.extended.clone(),(!~S||S>5)&&(S=1),x.extended.underlineStyle=S,x.fg|=268435456,S===0&&(x.fg&=-268435457),x.updateExtended()},b.prototype.charAttributes=function(S){if(S.length===1&&S.params[0]===0)return this._curAttrData.fg=r.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=r.DEFAULT_ATTR_DATA.bg);for(var x,z=S.length,P=this._curAttrData,K=0;K<z;K++)(x=S.params[K])>=30&&x<=37?(P.fg&=-50331904,P.fg|=16777216|x-30):x>=40&&x<=47?(P.bg&=-50331904,P.bg|=16777216|x-40):x>=90&&x<=97?(P.fg&=-50331904,P.fg|=16777224|x-90):x>=100&&x<=107?(P.bg&=-50331904,P.bg|=16777224|x-100):x===0?(P.fg=r.DEFAULT_ATTR_DATA.fg,P.bg=r.DEFAULT_ATTR_DATA.bg):x===1?P.fg|=134217728:x===3?P.bg|=67108864:x===4?(P.fg|=268435456,this._processUnderline(S.hasSubParams(K)?S.getSubParams(K)[0]:1,P)):x===5?P.fg|=536870912:x===7?P.fg|=67108864:x===8?P.fg|=1073741824:x===2?P.bg|=134217728:x===21?this._processUnderline(2,P):x===22?(P.fg&=-134217729,P.bg&=-134217729):x===23?P.bg&=-67108865:x===24?P.fg&=-268435457:x===25?P.fg&=-536870913:x===27?P.fg&=-67108865:x===28?P.fg&=-1073741825:x===39?(P.fg&=-67108864,P.fg|=16777215&r.DEFAULT_ATTR_DATA.fg):x===49?(P.bg&=-67108864,P.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):x===38||x===48||x===58?K+=this._extractColor(S,K,P):x===59?(P.extended=P.extended.clone(),P.extended.underlineColor=-1,P.updateExtended()):x===100?(P.fg&=-67108864,P.fg|=16777215&r.DEFAULT_ATTR_DATA.fg,P.bg&=-67108864,P.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",x)},b.prototype.deviceStatus=function(S){switch(S.params[0]){case 5:this._coreService.triggerDataEvent(u.C0.ESC+"[0n");break;case 6:var x=this._bufferService.buffer.y+1,z=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(u.C0.ESC+"["+x+";"+z+"R")}},b.prototype.deviceStatusPrivate=function(S){switch(S.params[0]){case 6:var x=this._bufferService.buffer.y+1,z=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(u.C0.ESC+"[?"+x+";"+z+"R")}},b.prototype.softReset=function(S){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},b.prototype.setCursorStyle=function(S){var x=S.params[0]||1;switch(x){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var z=x%2==1;this._optionsService.options.cursorBlink=z},b.prototype.setScrollRegion=function(S){var x,z=S.params[0]||1;(S.length<2||(x=S.params[1])>this._bufferService.rows||x===0)&&(x=this._bufferService.rows),x>z&&(this._bufferService.buffer.scrollTop=z-1,this._bufferService.buffer.scrollBottom=x-1,this._setCursor(0,0))},b.prototype.windowOptions=function(S){if(h(S.params[0],this._optionsService.options.windowOptions)){var x=S.length>1?S.params[1]:0;switch(S.params[0]){case 14:x!==2&&this._onRequestWindowsOptionsReport.fire(p.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(p.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(u.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:x!==0&&x!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),x!==0&&x!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:x!==0&&x!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),x!==0&&x!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},b.prototype.saveCursor=function(S){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},b.prototype.restoreCursor=function(S){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},b.prototype.setTitle=function(S){this._windowTitle=S,this._onTitleChange.fire(S)},b.prototype.setIconName=function(S){this._iconName=S},b.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},b.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},b.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},b.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,v.DEFAULT_CHARSET)},b.prototype.selectCharset=function(S){S.length===2?S[0]!=="/"&&this._charsetService.setgCharset(A[S[0]],v.CHARSETS[S[1]]||v.DEFAULT_CHARSET):this.selectDefaultCharset()},b.prototype.index=function(){this._restrictCursor();var S=this._bufferService.buffer;this._bufferService.buffer.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),this._restrictCursor()},b.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},b.prototype.reverseIndex=function(){this._restrictCursor();var S=this._bufferService.buffer;if(S.y===S.scrollTop){var x=S.scrollBottom-S.scrollTop;S.lines.shiftElements(S.ybase+S.y,x,1),S.lines.set(S.ybase+S.y,S.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}else S.y--,this._restrictCursor()},b.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},b.prototype.reset=function(){this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone()},b.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},b.prototype.setgLevel=function(S){this._charsetService.setgLevel(S)},b.prototype.screenAlignmentPattern=function(){var S=new i.CellData;S.content=1<<22|69,S.fg=this._curAttrData.fg,S.bg=this._curAttrData.bg;var x=this._bufferService.buffer;this._setCursor(0,0);for(var z=0;z<this._bufferService.rows;++z){var P=x.ybase+x.y+z,K=x.lines.get(P);K&&(K.fill(S),K.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},b}(o.Disposable);t.InputHandler=_},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},t.CHARSETS.A={"#":"\xA3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},t.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},t.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},t.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},t.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},t.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},t.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var f=function(){function y(p,u){if(p===void 0&&(p=32),u===void 0&&(u=32),this.maxLength=p,this.maxSubParamsLength=u,u>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(p),this.length=0,this._subParams=new Int32Array(u),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(p),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return y.fromArray=function(p){var u=new y;if(!p.length)return u;for(var v=p[0]instanceof Array?1:0;v<p.length;++v){var d=p[v];if(d instanceof Array)for(var o=0;o<d.length;++o)u.addSubParam(d[o]);else u.addParam(d)}return u},y.prototype.clone=function(){var p=new y(this.maxLength,this.maxSubParamsLength);return p.params.set(this.params),p.length=this.length,p._subParams.set(this._subParams),p._subParamsLength=this._subParamsLength,p._subParamsIdx.set(this._subParamsIdx),p._rejectDigits=this._rejectDigits,p._rejectSubDigits=this._rejectSubDigits,p._digitIsSub=this._digitIsSub,p},y.prototype.toArray=function(){for(var p=[],u=0;u<this.length;++u){p.push(this.params[u]);var v=this._subParamsIdx[u]>>8,d=255&this._subParamsIdx[u];d-v>0&&p.push(Array.prototype.slice.call(this._subParams,v,d))}return p},y.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},y.prototype.addParam=function(p){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=p>2147483647?2147483647:p}},y.prototype.addSubParam=function(p){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=p>2147483647?2147483647:p,this._subParamsIdx[this.length-1]++}},y.prototype.hasSubParams=function(p){return(255&this._subParamsIdx[p])-(this._subParamsIdx[p]>>8)>0},y.prototype.getSubParams=function(p){var u=this._subParamsIdx[p]>>8,v=255&this._subParamsIdx[p];return v-u>0?this._subParams.subarray(u,v):null},y.prototype.getSubParamsAll=function(){for(var p={},u=0;u<this.length;++u){var v=this._subParamsIdx[u]>>8,d=255&this._subParamsIdx[u];d-v>0&&(p[u]=this._subParams.slice(v,d))}return p},y.prototype.addDigit=function(p){var u;if(!(this._rejectDigits||!(u=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var v=this._digitIsSub?this._subParams:this.params,d=v[u-1];v[u-1]=~d?Math.min(10*d+p,2147483647):p}},y}();t.Params=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var f=n(23),y=n(8),p=function(){function v(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return v.prototype.addHandler=function(d,o){this._handlers[d]===void 0&&(this._handlers[d]=[]);var s=this._handlers[d];return s.push(o),{dispose:function(){var l=s.indexOf(o);l!==-1&&s.splice(l,1)}}},v.prototype.setHandler=function(d,o){this._handlers[d]=[o]},v.prototype.clearHandler=function(d){this._handlers[d]&&delete this._handlers[d]},v.prototype.setHandlerFallback=function(d){this._handlerFb=d},v.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},v.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},v.prototype._start=function(){var d=this._handlers[this._id];if(d)for(var o=d.length-1;o>=0;o--)d[o].start();else this._handlerFb(this._id,"START")},v.prototype._put=function(d,o,s){var l=this._handlers[this._id];if(l)for(var r=l.length-1;r>=0;r--)l[r].put(d,o,s);else this._handlerFb(this._id,"PUT",y.utf32ToString(d,o,s))},v.prototype._end=function(d){var o=this._handlers[this._id];if(o){for(var s=o.length-1;s>=0&&o[s].end(d)===!1;s--);for(s--;s>=0;s--)o[s].end(!1)}else this._handlerFb(this._id,"END",d)},v.prototype.start=function(){this.reset(),this._id=-1,this._state=1},v.prototype.put=function(d,o,s){if(this._state!==3){if(this._state===1)for(;o<s;){var l=d[o++];if(l===59){this._state=2,this._start();break}if(l<48||57<l)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+l-48}this._state===2&&s-o>0&&this._put(d,o,s)}},v.prototype.end=function(d){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(d)),this._id=-1,this._state=0)},v}();t.OscParser=p;var u=function(){function v(d){this._handler=d,this._data="",this._hitLimit=!1}return v.prototype.start=function(){this._data="",this._hitLimit=!1},v.prototype.put=function(d,o,s){this._hitLimit||(this._data+=y.utf32ToString(d,o,s),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},v.prototype.end=function(d){var o;return this._hitLimit?o=!1:d&&(o=this._handler(this._data)),this._data="",this._hitLimit=!1,o},v}();t.OscHandler=u},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var f=n(8),y=n(21),p=n(23),u=[],v=function(){function o(){this._handlers=Object.create(null),this._active=u,this._ident=0,this._handlerFb=function(){}}return o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.addHandler=function(s,l){this._handlers[s]===void 0&&(this._handlers[s]=[]);var r=this._handlers[s];return r.push(l),{dispose:function(){var a=r.indexOf(l);a!==-1&&r.splice(a,1)}}},o.prototype.setHandler=function(s,l){this._handlers[s]=[l]},o.prototype.clearHandler=function(s){this._handlers[s]&&delete this._handlers[s]},o.prototype.setHandlerFallback=function(s){this._handlerFb=s},o.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=u,this._ident=0},o.prototype.hook=function(s,l){if(this.reset(),this._ident=s,this._active=this._handlers[s]||u,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(l);else this._handlerFb(this._ident,"HOOK",l)},o.prototype.put=function(s,l,r){if(this._active.length)for(var a=this._active.length-1;a>=0;a--)this._active[a].put(s,l,r);else this._handlerFb(this._ident,"PUT",f.utf32ToString(s,l,r))},o.prototype.unhook=function(s){if(this._active.length){for(var l=this._active.length-1;l>=0&&this._active[l].unhook(s)===!1;l--);for(l--;l>=0;l--)this._active[l].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",s);this._active=u,this._ident=0},o}();t.DcsParser=v;var d=function(){function o(s){this._handler=s,this._data="",this._hitLimit=!1}return o.prototype.hook=function(s){this._params=s.clone(),this._data="",this._hitLimit=!1},o.prototype.put=function(s,l,r){this._hitLimit||(this._data+=f.utf32ToString(s,l,r),this._data.length>p.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.unhook=function(s){var l;return this._hitLimit?l=!1:s&&(l=this._handler(this._data,this._params||new y.Params)),this._params=void 0,this._data="",this._hitLimit=!1,l},o}();t.DcsHandler=d},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var f=n(26),y=n(43),p=[];t.acquireCharAtlas=function(u,v,d,o,s){for(var l=f.generateConfig(o,s,u,d),r=0;r<p.length;r++){var a=(e=p[r]).ownedBy.indexOf(v);if(a>=0){if(f.configEquals(e.config,l))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),p.splice(r,1)):e.ownedBy.splice(a,1);break}}for(r=0;r<p.length;r++){var e=p[r];if(f.configEquals(e.config,l))return e.ownedBy.push(v),e.atlas}var i={atlas:new y.DynamicCharAtlas(document,l),config:l,ownedBy:[v]};return p.push(i),i.atlas},t.removeTerminalFromCache=function(u){for(var v=0;v<p.length;v++){var d=p[v].ownedBy.indexOf(u);if(d!==-1){p[v].ownedBy.length===1?(p[v].atlas.dispose(),p.splice(v,1)):p[v].ownedBy.splice(d,1);break}}}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var f=n(3);t.generateConfig=function(y,p,u,v){var d={foreground:v.foreground,background:v.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:v.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:y,scaledCharHeight:p,fontFamily:u.fontFamily,fontSize:u.fontSize,fontWeight:u.fontWeight,fontWeightBold:u.fontWeightBold,allowTransparency:u.allowTransparency,colors:d}},t.configEquals=function(y,p){for(var u=0;u<y.colors.ansi.length;u++)if(y.colors.ansi[u].rgba!==p.colors.ansi[u].rgba)return!1;return y.devicePixelRatio===p.devicePixelRatio&&y.fontFamily===p.fontFamily&&y.fontSize===p.fontSize&&y.fontWeight===p.fontWeight&&y.fontWeightBold===p.fontWeightBold&&y.allowTransparency===p.allowTransparency&&y.scaledCharWidth===p.scaledCharWidth&&y.scaledCharHeight===p.scaledCharHeight&&y.colors.foreground===p.colors.foreground&&y.colors.background===p.colors.background},t.is256Color=function(y){return y<f.DEFAULT_COLOR}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var f=n(10),y=n(45),p=f.css.toColor("#ffffff"),u=f.css.toColor("#000000"),v=f.css.toColor("#ffffff"),d=f.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=function(){for(var l=[f.css.toColor("#2e3436"),f.css.toColor("#cc0000"),f.css.toColor("#4e9a06"),f.css.toColor("#c4a000"),f.css.toColor("#3465a4"),f.css.toColor("#75507b"),f.css.toColor("#06989a"),f.css.toColor("#d3d7cf"),f.css.toColor("#555753"),f.css.toColor("#ef2929"),f.css.toColor("#8ae234"),f.css.toColor("#fce94f"),f.css.toColor("#729fcf"),f.css.toColor("#ad7fa8"),f.css.toColor("#34e2e2"),f.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],a=0;a<216;a++){var e=r[a/36%6|0],i=r[a/6%6|0],c=r[a%6];l.push({css:f.channels.toCss(e,i,c),rgba:f.channels.toRgba(e,i,c)})}for(a=0;a<24;a++){var m=8+10*a;l.push({css:f.channels.toCss(m,m,m),rgba:f.channels.toRgba(m,m,m)})}return l}();var s=function(){function l(r,a){this.allowTransparency=a;var e=r.createElement("canvas");e.width=1,e.height=1;var i=e.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new y.ColorContrastCache,this.colors={foreground:p,background:u,cursor:v,cursorAccent:d,selectionTransparent:o,selectionOpaque:f.color.blend(u,o),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return l.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},l.prototype.setTheme=function(r){r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,p),this.colors.background=this._parseColor(r.background,u),this.colors.cursor=this._parseColor(r.cursor,v,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,d,!0),this.colors.selectionTransparent=this._parseColor(r.selection,o,!0),this.colors.selectionOpaque=f.color.blend(this.colors.background,this.colors.selectionTransparent),f.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=f.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},l.prototype._parseColor=function(r,a,e){if(e===void 0&&(e=this.allowTransparency),r===void 0)return a;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=r,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+r+" is invalid using fallback "+a.css),a;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;if(i[3]!==255){if(!e)return console.warn("Color: "+r+" is using transparency, but allowTransparency is false. Using fallback "+a.css+"."),a;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(_){return Number(_)}),m=c[0],w=c[1],A=c[2],h=c[3],g=Math.round(255*h);return{rgba:f.channels.toRgba(m,w,A,g),css:r}}return{css:this._ctx.fillStyle,rgba:f.channels.toRgba(i[0],i[1],i[2],i[3])}},l}();t.ColorManager=s},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=void 0,t.throwIfFalsy=function(f){if(!f)throw new Error("value must not be falsy");return f}},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(s,l){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var e in a)a.hasOwnProperty(e)&&(r[e]=a[e])})(s,l)},function(s,l){function r(){this.constructor=s}f(s,l),s.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerRegistry=t.JoinedCellData=void 0;var p=n(6),u=n(3),v=n(4),d=function(s){function l(r,a,e){var i=s.call(this)||this;return i.content=0,i.combinedData="",i.fg=r.fg,i.bg=r.bg,i.combinedData=a,i._width=e,i}return y(l,s),l.prototype.isCombined=function(){return 2097152},l.prototype.getWidth=function(){return this._width},l.prototype.getChars=function(){return this.combinedData},l.prototype.getCode=function(){return 2097151},l.prototype.setFromCharData=function(r){throw new Error("not implemented")},l.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},l}(p.AttributeData);t.JoinedCellData=d;var o=function(){function s(l){this._bufferService=l,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return s.prototype.registerCharacterJoiner=function(l){var r={id:this._nextCharacterJoinerId++,handler:l};return this._characterJoiners.push(r),r.id},s.prototype.deregisterCharacterJoiner=function(l){for(var r=0;r<this._characterJoiners.length;r++)if(this._characterJoiners[r].id===l)return this._characterJoiners.splice(r,1),!0;return!1},s.prototype.getJoinedCharacters=function(l){if(this._characterJoiners.length===0)return[];var r=this._bufferService.buffer.lines.get(l);if(!r||r.length===0)return[];for(var a=[],e=r.translateToString(!0),i=0,c=0,m=0,w=r.getFg(0),A=r.getBg(0),h=0;h<r.getTrimmedLength();h++)if(r.loadCell(h,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==w||this._workCell.bg!==A){if(h-i>1)for(var g=this._getJoinedRanges(e,m,c,r,i),_=0;_<g.length;_++)a.push(g[_]);i=h,m=c,w=this._workCell.fg,A=this._workCell.bg}c+=this._workCell.getChars().length||u.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(g=this._getJoinedRanges(e,m,c,r,i),_=0;_<g.length;_++)a.push(g[_]);return a},s.prototype._getJoinedRanges=function(l,r,a,e,i){for(var c=l.substring(r,a),m=this._characterJoiners[0].handler(c),w=1;w<this._characterJoiners.length;w++)for(var A=this._characterJoiners[w].handler(c),h=0;h<A.length;h++)s._mergeRanges(m,A[h]);return this._stringRangesToCellRanges(m,e,i),m},s.prototype._stringRangesToCellRanges=function(l,r,a){var e=0,i=!1,c=0,m=l[e];if(m){for(var w=a;w<this._bufferService.cols;w++){var A=r.getWidth(w),h=r.getString(w).length||u.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!i&&m[0]<=c&&(m[0]=w,i=!0),m[1]<=c){if(m[1]=w,!(m=l[++e]))break;m[0]<=c?(m[0]=w,i=!0):i=!1}c+=h}}m&&(m[1]=this._bufferService.cols)}},s._mergeRanges=function(l,r){for(var a=!1,e=0;e<l.length;e++){var i=l[e];if(a){if(r[1]<=i[0])return l[e-1][1]=r[1],l;if(r[1]<=i[1])return l[e-1][1]=Math.max(r[1],i[1]),l.splice(e,1),l;l.splice(e,1),e--}else{if(r[1]<=i[0])return l.splice(e,0,r),l;if(r[1]<=i[1])return i[0]=Math.min(r[0],i[0]),l;r[0]<i[1]&&(i[0]=Math.min(r[0],i[0]),a=!0)}}return a?l[l.length-1][1]=r[1]:l.push(r),l},s}();t.CharacterJoinerRegistry=o},function(Q,t,n){"use strict";function f(y,p){var u=p.getBoundingClientRect();return[y.clientX-u.left,y.clientY-u.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=f,t.getCoords=function(y,p,u,v,d,o,s,l){if(d){var r=f(y,p);if(r)return r[0]=Math.ceil((r[0]+(l?o/2:0))/o),r[1]=Math.ceil(r[1]/s),r[0]=Math.min(Math.max(r[0],1),u+(l?1:0)),r[1]=Math.min(Math.max(r[1],1),v),r}},t.getRawByteCoords=function(y){if(y)return{x:y[0]+32,y:y[1]+32}}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var f=function(){function y(p){this._renderCallback=p}return y.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},y.prototype.refresh=function(p,u,v){var d=this;this._rowCount=v,p=p!==void 0?p:0,u=u!==void 0?u:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,p):p,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,u):u,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()}))},y.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var p=Math.max(this._rowStart,0),u=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(p,u)}},y}();t.RenderDebouncer=f},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(u,v){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var s in o)o.hasOwnProperty(s)&&(d[s]=o[s])})(u,v)},function(u,v){function d(){this.constructor=u}f(u,v),u.prototype=v===null?Object.create(v):(d.prototype=v.prototype,new d)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var p=function(u){function v(){var d=u!==null&&u.apply(this,arguments)||this;return d._currentDevicePixelRatio=window.devicePixelRatio,d}return y(v,u),v.prototype.setListener=function(d){var o=this;this._listener&&this.clearListener(),this._listener=d,this._outerListener=function(){o._listener&&(o._listener(window.devicePixelRatio,o._currentDevicePixelRatio),o._updateDpr())},this._updateDpr()},v.prototype.dispose=function(){u.prototype.dispose.call(this),this.clearListener()},v.prototype._updateDpr=function(){var d;this._outerListener&&((d=this._resolutionMediaMatchList)===null||d===void 0||d.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},v.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},v}(n(2).Disposable);t.ScreenDprMonitor=p},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function f(y,p){if(p===void 0&&(p=5),typeof y!="object")return y;var u=Array.isArray(y)?[]:{};for(var v in y)u[v]=p<=1?y[v]:y[v]?f(y[v],p-1):y[v];return u}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var f=n(4),y=n(35),p=n(18),u=n(0),v=n(83),d=function(){function e(i){this._core=new y.Terminal(i),this._addonManager=new v.AddonManager}return e.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new r(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new a(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),new s(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(i,c){this._verifyIntegers(i,c),this._core.resize(i,c)},e.prototype.open=function(i){this._core.open(i)},e.prototype.attachCustomKeyEventHandler=function(i){this._core.attachCustomKeyEventHandler(i)},e.prototype.registerLinkMatcher=function(i,c,m){return this._checkProposedApi(),this._core.registerLinkMatcher(i,c,m)},e.prototype.deregisterLinkMatcher=function(i){this._checkProposedApi(),this._core.deregisterLinkMatcher(i)},e.prototype.registerLinkProvider=function(i){return this._checkProposedApi(),this._core.registerLinkProvider(i)},e.prototype.registerCharacterJoiner=function(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)},e.prototype.deregisterCharacterJoiner=function(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)},e.prototype.registerMarker=function(i){return this._checkProposedApi(),this._verifyIntegers(i),this._core.addMarker(i)},e.prototype.addMarker=function(i){return this.registerMarker(i)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(i,c,m){this._verifyIntegers(i,c,m),this._core.select(i,c,m)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(i,c){this._verifyIntegers(i,c),this._core.selectLines(i,c)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(i){this._verifyIntegers(i),this._core.scrollLines(i)},e.prototype.scrollPages=function(i){this._verifyIntegers(i),this._core.scrollPages(i)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(i){this._verifyIntegers(i),this._core.scrollToLine(i)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(i,c){this._core.write(i,c)},e.prototype.writeUtf8=function(i,c){this._core.write(i,c)},e.prototype.writeln=function(i,c){this._core.write(i),this._core.write(`\r
|
|
|
`,c)},e.prototype.paste=function(i){this._core.paste(i)},e.prototype.getOption=function(i){return this._core.optionsService.getOption(i)},e.prototype.setOption=function(i,c){this._core.optionsService.setOption(i,c)},e.prototype.refresh=function(i,c){this._verifyIntegers(i,c),this._core.refresh(i,c)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(i){return this._addonManager.loadAddon(this,i)},Object.defineProperty(e,"strings",{get:function(){return p},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];for(var m=0,w=i;m<w.length;m++){var A=w[m];if(A===1/0||isNaN(A)||A%1!=0)throw new Error("This API only accepts integers")}},e}();t.Terminal=d;var o=function(){function e(i,c){this._buffer=i,this.type=c}return e.prototype.init=function(i){return this._buffer=i,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(i){var c=this._buffer.lines.get(i);if(c)return new l(c)},e.prototype.getNullCell=function(){return new f.CellData},e}(),s=function(){function e(i){var c=this;this._buffers=i,this._onBufferChange=new u.EventEmitter,this._normal=new o(this._buffers.normal,"normal"),this._alternate=new o(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),e}(),l=function(){function e(i){this._line=i}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(i,c){if(!(i<0||i>=this._line.length))return c?(this._line.loadCell(i,c),c):this._line.loadCell(i,new f.CellData)},e.prototype.translateToString=function(i,c,m){return this._line.translateToString(i,c,m)},e}(),r=function(){function e(i){this._core=i}return e.prototype.registerCsiHandler=function(i,c){return this._core.addCsiHandler(i,function(m){return c(m.toArray())})},e.prototype.addCsiHandler=function(i,c){return this.registerCsiHandler(i,c)},e.prototype.registerDcsHandler=function(i,c){return this._core.addDcsHandler(i,function(m,w){return c(m,w.toArray())})},e.prototype.addDcsHandler=function(i,c){return this.registerDcsHandler(i,c)},e.prototype.registerEscHandler=function(i,c){return this._core.addEscHandler(i,c)},e.prototype.addEscHandler=function(i,c){return this.registerEscHandler(i,c)},e.prototype.registerOscHandler=function(i,c){return this._core.addOscHandler(i,c)},e.prototype.addOscHandler=function(i,c){return this.registerOscHandler(i,c)},e}(),a=function(){function e(i){this._core=i}return e.prototype.register=function(i){this._core.unicodeService.register(i)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(i){this._core.unicodeService.activeVersion=i},enumerable:!1,configurable:!0}),e}()},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(L,E){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,O){R.__proto__=O}||function(R,O){for(var M in O)O.hasOwnProperty(M)&&(R[M]=O[M])})(L,E)},function(L,E){function R(){this.constructor=L}f(L,E),L.prototype=E===null?Object.create(E):(R.prototype=E.prototype,new R)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var p=n(36),u=n(37),v=n(38),d=n(12),o=n(19),s=n(40),l=n(50),r=n(51),a=n(11),e=n(7),i=n(18),c=n(54),m=n(55),w=n(56),A=n(57),h=n(59),g=n(0),_=n(16),C=n(27),b=n(60),S=n(5),x=n(61),z=n(62),P=n(63),K=n(64),N=n(65),k=typeof window!="undefined"?window.document:null,D=function(L){function E(R){R===void 0&&(R={});var O=L.call(this,R)||this;return O.browser=a,O._keyDownHandled=!1,O._onCursorMove=new g.EventEmitter,O._onKey=new g.EventEmitter,O._onRender=new g.EventEmitter,O._onSelectionChange=new g.EventEmitter,O._onTitleChange=new g.EventEmitter,O._onFocus=new g.EventEmitter,O._onBlur=new g.EventEmitter,O._onA11yCharEmitter=new g.EventEmitter,O._onA11yTabEmitter=new g.EventEmitter,O._setup(),O.linkifier=O._instantiationService.createInstance(l.Linkifier),O.linkifier2=O.register(O._instantiationService.createInstance(P.Linkifier2)),O.register(O._inputHandler.onRequestBell(function(){return O.bell()})),O.register(O._inputHandler.onRequestRefreshRows(function(M,I){return O.refresh(M,I)})),O.register(O._inputHandler.onRequestReset(function(){return O.reset()})),O.register(O._inputHandler.onRequestScroll(function(M,I){return O.scroll(M,I||void 0)})),O.register(O._inputHandler.onRequestWindowsOptionsReport(function(M){return O._reportWindowsOptions(M)})),O.register(g.forwardEvent(O._inputHandler.onCursorMove,O._onCursorMove)),O.register(g.forwardEvent(O._inputHandler.onTitleChange,O._onTitleChange)),O.register(g.forwardEvent(O._inputHandler.onA11yChar,O._onA11yCharEmitter)),O.register(g.forwardEvent(O._inputHandler.onA11yTab,O._onA11yTabEmitter)),O.register(O._bufferService.onResize(function(M){return O._afterResize(M.cols,M.rows)})),O}return y(E,L),Object.defineProperty(E.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var R,O,M;this._isDisposed||(L.prototype.dispose.call(this),(R=this._renderService)===null||R===void 0||R.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(M=(O=this.element)===null||O===void 0?void 0:O.parentNode)===null||M===void 0||M.removeChild(this.element))},E.prototype._setup=function(){L.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(E.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),E.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},E.prototype._updateOptions=function(R){var O,M,I,J;switch(L.prototype._updateOptions.call(this,R),R){case"fontFamily":case"fontSize":(O=this._renderService)===null||O===void 0||O.clear(),(M=this._charSizeService)===null||M===void 0||M.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(I=this.viewport)===null||I===void 0||I.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)):((J=this._accessibilityManager)===null||J===void 0||J.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},E.prototype._onTextAreaFocus=function(R){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(d.C0.ESC+"[I"),this.updateCursorStyle(R),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},E.prototype.blur=function(){var R;return(R=this.textarea)===null||R===void 0?void 0:R.blur()},E.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(d.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},E.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var R=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),O=this._bufferService.buffer.y*R,M=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=M+"px",this.textarea.style.top=O+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=R+"px",this.textarea.style.lineHeight=R+"px",this.textarea.style.zIndex="-5"}},E.prototype._initGlobal=function(){var R=this;this._bindKeys(),this.register(e.addDisposableDomListener(this.element,"copy",function(M){R.hasSelection()&&v.copyHandler(M,R._selectionService)}));var O=function(M){return v.handlePasteEvent(M,R.textarea,R._coreService)};this.register(e.addDisposableDomListener(this.textarea,"paste",O)),this.register(e.addDisposableDomListener(this.element,"paste",O)),a.isFirefox?this.register(e.addDisposableDomListener(this.element,"mousedown",function(M){M.button===2&&v.rightClickHandler(M,R.textarea,R.screenElement,R._selectionService,R.options.rightClickSelectsWord)})):this.register(e.addDisposableDomListener(this.element,"contextmenu",function(M){v.rightClickHandler(M,R.textarea,R.screenElement,R._selectionService,R.options.rightClickSelectsWord)})),a.isLinux&&this.register(e.addDisposableDomListener(this.element,"auxclick",function(M){M.button===1&&v.moveTextAreaUnderMouseCursor(M,R.textarea,R.screenElement)}))},E.prototype._bindKeys=function(){var R=this;this.register(e.addDisposableDomListener(this.textarea,"keyup",function(O){return R._keyUp(O)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keydown",function(O){return R._keyDown(O)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keypress",function(O){return R._keyPress(O)},!0)),this.register(e.addDisposableDomListener(this.textarea,"compositionstart",function(){return R._compositionHelper.compositionstart()})),this.register(e.addDisposableDomListener(this.textarea,"compositionupdate",function(O){return R._compositionHelper.compositionupdate(O)})),this.register(e.addDisposableDomListener(this.textarea,"compositionend",function(){return R._compositionHelper.compositionend()})),this.register(this.onRender(function(){return R._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(O){return R._queueLinkification(O.start,O.end)}))},E.prototype.open=function(R){var O=this;if(!R)throw new Error("Terminal requires a parent element.");k.body.contains(R)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=R.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),R.appendChild(this.element);var M=k.createDocumentFragment();this._viewportElement=k.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),M.appendChild(this._viewportElement),this._viewportScrollArea=k.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=k.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=k.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),M.appendChild(this.screenElement),this.textarea=k.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",i.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(e.addDisposableDomListener(this.textarea,"focus",function(re){return O._onTextAreaFocus(re)})),this.register(e.addDisposableDomListener(this.textarea,"blur",function(){return O._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var I=this._instantiationService.createInstance(K.CoreBrowserService,this.textarea);this._instantiationService.setService(S.ICoreBrowserService,I),this._charSizeService=this._instantiationService.createInstance(x.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._compositionView=k.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(p.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(M),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(k,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(re){return O._colorManager.onOptionsChange(re)})),this._colorManager.setTheme(this._theme);var J=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(b.RenderService,J,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(re){return O._onRender.fire(re)})),this.onResize(function(re){return O._renderService.resize(re.cols,re.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(S.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(z.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(u.Viewport,function(re,le){return O.scrollLines(re,le)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return O.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){O._renderService.onCursorMove(),O._syncTextArea()})),this.register(this.onResize(function(){return O._renderService.onResize(O.cols,O.rows)})),this.register(this.onBlur(function(){return O._renderService.onBlur()})),this.register(this.onFocus(function(){return O._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return O.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(re){return O.scrollLines(re.amount,re.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return O._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(re){return O._renderService.onSelectionChanged(re.start,re.end,re.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(re){O.textarea.value=re,O.textarea.focus(),O.textarea.select()})),this.register(this.onScroll(function(){O.viewport.syncScrollArea(),O._selectionService.refresh()})),this.register(e.addDisposableDomListener(this._viewportElement,"scroll",function(){return O._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(m.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return O._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(e.addDisposableDomListener(this.element,"mousedown",function(re){return O._selectionService.onMouseDown(re)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},E.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(s.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},E.prototype._setTheme=function(R){var O,M,I;this._theme=R,(O=this._colorManager)===null||O===void 0||O.setTheme(R),(M=this._renderService)===null||M===void 0||M.setColors(this._colorManager.colors),(I=this.viewport)===null||I===void 0||I.onThemeChange(this._colorManager.colors)},E.prototype.bindMouse=function(){var R=this,O=this,M=this.element;function I(H){var Z,te,_e=O._mouseService.getRawByteCoords(H,O.screenElement,O.cols,O.rows);if(!_e)return!1;switch(H.overrideType||H.type){case"mousemove":te=32,H.buttons===void 0?(Z=3,H.button!==void 0&&(Z=H.button<3?H.button:3)):Z=1&H.buttons?0:4&H.buttons?1:2&H.buttons?2:3;break;case"mouseup":te=0,Z=H.button<3?H.button:3;break;case"mousedown":te=1,Z=H.button<3?H.button:3;break;case"wheel":H.deltaY!==0&&(te=H.deltaY<0?0:1),Z=4;break;default:return!1}return!(te===void 0||Z===void 0||Z>4)&&O._coreMouseService.triggerMouseEvent({col:_e.x-33,row:_e.y-33,button:Z,action:te,ctrl:H.ctrlKey,alt:H.altKey,shift:H.shiftKey})}var J={mouseup:null,wheel:null,mousedrag:null,mousemove:null},re=function(H){return I(H),H.buttons||(R._document.removeEventListener("mouseup",J.mouseup),J.mousedrag&&R._document.removeEventListener("mousemove",J.mousedrag)),R.cancel(H)},le=function(H){return I(H),H.preventDefault(),R.cancel(H)},ye=function(H){H.buttons&&I(H)},W=function(H){H.buttons||I(H)};this.register(this._coreMouseService.onProtocolChange(function(H){H?(R.optionsService.options.logLevel==="debug"&&R._logService.debug("Binding to mouse events:",R._coreMouseService.explainEvents(H)),R.element.classList.add("enable-mouse-events"),R._selectionService.disable()):(R._logService.debug("Unbinding from mouse events."),R.element.classList.remove("enable-mouse-events"),R._selectionService.enable()),8&H?J.mousemove||(M.addEventListener("mousemove",W),J.mousemove=W):(M.removeEventListener("mousemove",J.mousemove),J.mousemove=null),16&H?J.wheel||(M.addEventListener("wheel",le,{passive:!1}),J.wheel=le):(M.removeEventListener("wheel",J.wheel),J.wheel=null),2&H?J.mouseup||(J.mouseup=re):(R._document.removeEventListener("mouseup",J.mouseup),J.mouseup=null),4&H?J.mousedrag||(J.mousedrag=ye):(R._document.removeEventListener("mousemove",J.mousedrag),J.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(e.addDisposableDomListener(M,"mousedown",function(H){if(H.preventDefault(),R.focus(),R._coreMouseService.areMouseEventsActive&&!R._selectionService.shouldForceSelection(H))return I(H),J.mouseup&&R._document.addEventListener("mouseup",J.mouseup),J.mousedrag&&R._document.addEventListener("mousemove",J.mousedrag),R.cancel(H)})),this.register(e.addDisposableDomListener(M,"wheel",function(H){if(!J.wheel){if(!R.buffer.hasScrollback){var Z=R.viewport.getLinesScrolled(H);if(Z===0)return;for(var te=d.C0.ESC+(R._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(H.deltaY<0?"A":"B"),_e="",se=0;se<Math.abs(Z);se++)_e+=te;R._coreService.triggerDataEvent(_e,!0)}}},{passive:!0})),this.register(e.addDisposableDomListener(M,"wheel",function(H){if(!J.wheel)return R.viewport.onWheel(H)?void 0:R.cancel(H)},{passive:!1})),this.register(e.addDisposableDomListener(M,"touchstart",function(H){if(!R._coreMouseService.areMouseEventsActive)return R.viewport.onTouchStart(H),R.cancel(H)},{passive:!0})),this.register(e.addDisposableDomListener(M,"touchmove",function(H){if(!R._coreMouseService.areMouseEventsActive)return R.viewport.onTouchMove(H)?void 0:R.cancel(H)},{passive:!1}))},E.prototype.refresh=function(R,O){var M;(M=this._renderService)===null||M===void 0||M.refreshRows(R,O)},E.prototype._queueLinkification=function(R,O){var M;(M=this.linkifier)===null||M===void 0||M.linkifyRows(R,O)},E.prototype.updateCursorStyle=function(R){this._selectionService&&this._selectionService.shouldColumnSelect(R)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},E.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},E.prototype.scrollLines=function(R,O){L.prototype.scrollLines.call(this,R,O),this.refresh(0,this.rows-1)},E.prototype.paste=function(R){v.paste(R,this.textarea,this._coreService)},E.prototype.attachCustomKeyEventHandler=function(R){this._customKeyEventHandler=R},E.prototype.registerLinkMatcher=function(R,O,M){var I=this.linkifier.registerLinkMatcher(R,O,M);return this.refresh(0,this.rows-1),I},E.prototype.deregisterLinkMatcher=function(R){this.linkifier.deregisterLinkMatcher(R)&&this.refresh(0,this.rows-1)},E.prototype.registerLinkProvider=function(R){return this.linkifier2.registerLinkProvider(R)},E.prototype.registerCharacterJoiner=function(R){var O=this._renderService.registerCharacterJoiner(R);return this.refresh(0,this.rows-1),O},E.prototype.deregisterCharacterJoiner=function(R){this._renderService.deregisterCharacterJoiner(R)&&this.refresh(0,this.rows-1)},Object.defineProperty(E.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),E.prototype.addMarker=function(R){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+R)},E.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},E.prototype.select=function(R,O,M){this._selectionService.setSelection(R,O,M)},E.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},E.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},E.prototype.clearSelection=function(){var R;(R=this._selectionService)===null||R===void 0||R.clearSelection()},E.prototype.selectAll=function(){var R;(R=this._selectionService)===null||R===void 0||R.selectAll()},E.prototype.selectLines=function(R,O){var M;(M=this._selectionService)===null||M===void 0||M.selectLines(R,O)},E.prototype._keyDown=function(R){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1)return!1;if(!this._compositionHelper.keydown(R))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var O=h.evaluateKeyboardEvent(R,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(R),O.type===3||O.type===2){var M=this.rows-1;return this.scrollLines(O.type===2?-M:M),this.cancel(R,!0)}return O.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,R)||(O.cancel&&this.cancel(R,!0),!O.key||(O.key!==d.C0.ETX&&O.key!==d.C0.CR||(this.textarea.value=""),this._onKey.fire({key:O.key,domEvent:R}),this._showCursor(),this._coreService.triggerDataEvent(O.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(R,!0)))},E.prototype._isThirdLevelShift=function(R,O){var M=R.isMac&&!this.options.macOptionIsMeta&&O.altKey&&!O.ctrlKey&&!O.metaKey||R.isWindows&&O.altKey&&O.ctrlKey&&!O.metaKey;return O.type==="keypress"?M:M&&(!O.keyCode||O.keyCode>47)},E.prototype._keyUp=function(R){this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1||(function(O){return O.keyCode===16||O.keyCode===17||O.keyCode===18}(R)||this.focus(),this.updateCursorStyle(R))},E.prototype._keyPress=function(R){var O;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1)return!1;if(this.cancel(R),R.charCode)O=R.charCode;else if(R.which===null||R.which===void 0)O=R.keyCode;else{if(R.which===0||R.charCode===0)return!1;O=R.which}return!(!O||(R.altKey||R.ctrlKey||R.metaKey)&&!this._isThirdLevelShift(this.browser,R))&&(O=String.fromCharCode(O),this._onKey.fire({key:O,domEvent:R}),this._showCursor(),this._coreService.triggerDataEvent(O,!0),!0)},E.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},E.prototype.resize=function(R,O){R!==this.cols||O!==this.rows?L.prototype.resize.call(this,R,O):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},E.prototype._afterResize=function(R,O){var M,I;(M=this._charSizeService)===null||M===void 0||M.measure(),(I=this.viewport)===null||I===void 0||I.syncScrollArea(!0)},E.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var R=1;R<this.rows;R++)this.buffer.lines.push(this.buffer.getBlankLine(_.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},E.prototype.reset=function(){var R,O;this.options.rows=this.rows,this.options.cols=this.cols;var M=this._customKeyEventHandler;this._setup(),L.prototype.reset.call(this),(R=this._selectionService)===null||R===void 0||R.reset(),this._customKeyEventHandler=M,this.refresh(0,this.rows-1),(O=this.viewport)===null||O===void 0||O.syncScrollArea()},E.prototype._reportWindowsOptions=function(R){if(this._renderService)switch(R){case o.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var O=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),M=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(d.C0.ESC+"[4;"+M+";"+O+"t");break;case o.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var I=this._renderService.dimensions.scaledCellWidth.toFixed(0),J=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(d.C0.ESC+"[6;"+J+";"+I+"t")}},E.prototype.cancel=function(R,O){if(this.options.cancelEvents||O)return R.preventDefault(),R.stopPropagation(),!1},E.prototype._visualBell=function(){return!1},E.prototype._soundBell=function(){return this.options.bellStyle==="sound"},E}(N.CoreTerminal);t.Terminal=D},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(d,o,s,l){var r,a=arguments.length,e=a<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,s):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(d,o,s,l);else for(var i=d.length-1;i>=0;i--)(r=d[i])&&(e=(a<3?r(e):a>3?r(o,s,e):r(o,s))||e);return a>3&&e&&Object.defineProperty(o,s,e),e},y=this&&this.__param||function(d,o){return function(s,l){o(s,l,d)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var p=n(5),u=n(1),v=function(){function d(o,s,l,r,a,e){this._textarea=o,this._compositionView=s,this._bufferService=l,this._optionsService=r,this._charSizeService=a,this._coreService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(d.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),d.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},d.prototype.compositionupdate=function(o){var s=this;this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(function(){s._compositionPosition.end=s._textarea.value.length},0)},d.prototype.compositionend=function(){this._finalizeComposition(!0)},d.prototype.keydown=function(o){if(this._isComposing||this._isSendingComposition){if(o.keyCode===229||o.keyCode===16||o.keyCode===17||o.keyCode===18)return!1;this._finalizeComposition(!1)}return o.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},d.prototype._finalizeComposition=function(o){var s=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){var l={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(s._isSendingComposition){s._isSendingComposition=!1;var a=void 0;a=s._isComposing?s._textarea.value.substring(l.start,l.end):s._textarea.value.substring(l.start),s._coreService.triggerDataEvent(a,!0)}},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},d.prototype._handleAnyTextareaChanges=function(){var o=this,s=this._textarea.value;setTimeout(function(){if(!o._isComposing){var l=o._textarea.value.replace(s,"");l.length>0&&o._coreService.triggerDataEvent(l,!0)}},0)},d.prototype.updateCompositionElements=function(o){var s=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var l=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*l,a=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=a+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=l+"px",this._compositionView.style.lineHeight=l+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._compositionView.getBoundingClientRect();this._textarea.style.left=a+"px",this._textarea.style.top=r+"px",this._textarea.style.width=e.width+"px",this._textarea.style.height=e.height+"px",this._textarea.style.lineHeight=e.height+"px"}o||setTimeout(function(){return s.updateCompositionElements(!0)},0)}},d=f([y(2,u.IBufferService),y(3,u.IOptionsService),y(4,p.ICharSizeService),y(5,u.ICoreService)],d)}();t.CompositionHelper=v},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}),p=this&&this.__decorate||function(r,a,e,i){var c,m=arguments.length,w=m<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,a,e,i);else for(var A=r.length-1;A>=0;A--)(c=r[A])&&(w=(m<3?c(w):m>3?c(a,e,w):c(a,e))||w);return m>3&&w&&Object.defineProperty(a,e,w),w},u=this&&this.__param||function(r,a){return function(e,i){a(e,i,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var v=n(2),d=n(7),o=n(5),s=n(1),l=function(r){function a(e,i,c,m,w,A,h){var g=r.call(this)||this;return g._scrollLines=e,g._viewportElement=i,g._scrollArea=c,g._bufferService=m,g._optionsService=w,g._charSizeService=A,g._renderService=h,g.scrollBarWidth=0,g._currentRowHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register(d.addDisposableDomListener(g._viewportElement,"scroll",g._onScroll.bind(g))),setTimeout(function(){return g.syncScrollArea()},0),g}return y(a,r),a.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},a.prototype._refresh=function(e){var i=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return i._innerRefresh()}))},a.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null},a.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===i&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},a.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var i=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(i,!0)}},a.prototype._bubbleScroll=function(e,i){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(i<0&&this._viewportElement.scrollTop!==0||i>0&&c<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},a.prototype.onWheel=function(e){var i=this._getPixelsScrolled(e);return i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(e,i))},a.prototype._getPixelsScrolled=function(e){if(e.deltaY===0)return 0;var i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?i*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._currentRowHeight*this._bufferService.rows),i},a.prototype.getLinesScrolled=function(e){if(e.deltaY===0)return 0;var i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=this._currentRowHeight+0,this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i},a.prototype._applyScrollModifier=function(e,i){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&i.altKey||c==="ctrl"&&i.ctrlKey||c==="shift"&&i.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},a.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},a.prototype.onTouchMove=function(e){var i=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(e,i))},a=p([u(3,s.IBufferService),u(4,s.IOptionsService),u(5,o.ICharSizeService),u(6,o.IRenderService)],a)}(v.Disposable);t.Viewport=l},function(Q,t,n){"use strict";function f(v){return v.replace(/\r?\n/g,"\r")}function y(v,d){return d?"\x1B[200~"+v+"\x1B[201~":v}function p(v,d,o){v=y(v=f(v),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(v,!0),d.value=""}function u(v,d,o){var s=o.getBoundingClientRect(),l=v.clientX-s.left-10,r=v.clientY-s.top-10;d.style.width="20px",d.style.height="20px",d.style.left=l+"px",d.style.top=r+"px",d.style.zIndex="1000",d.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=f,t.bracketTextForPaste=y,t.copyHandler=function(v,d){v.clipboardData&&v.clipboardData.setData("text/plain",d.selectionText),v.preventDefault()},t.handlePasteEvent=function(v,d,o){v.stopPropagation(),v.clipboardData&&p(v.clipboardData.getData("text/plain"),d,o)},t.paste=p,t.moveTextAreaUnderMouseCursor=u,t.rightClickHandler=function(v,d,o,s,l){u(v,d,o),l&&!s.isClickInSelection(v)&&s.selectWordAtCursor(v),d.value=s.selectionText,d.select()}},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var p=n(2),u=n(15),v=n(21),d=n(22),o=n(24),s=function(){function r(a){this.table=new Uint8Array(a)}return r.prototype.setDefault=function(a,e){u.fill(this.table,a<<4|e)},r.prototype.add=function(a,e,i,c){this.table[e<<8|a]=i<<4|c},r.prototype.addMany=function(a,e,i,c){for(var m=0;m<a.length;m++)this.table[e<<8|a[m]]=i<<4|c},r}();t.TransitionTable=s,t.VT500_TRANSITION_TABLE=function(){var r=new s(4095),a=Array.apply(null,Array(256)).map(function(A,h){return h}),e=function(A,h){return a.slice(A,h)},i=e(32,127),c=e(0,24);c.push(25),c.push.apply(c,e(28,32));var m,w=e(0,14);for(m in r.setDefault(1,0),r.addMany(i,0,2,0),w)r.addMany([24,26,153,154],m,3,0),r.addMany(e(128,144),m,3,0),r.addMany(e(144,152),m,3,0),r.add(156,m,0,0),r.add(27,m,11,1),r.add(157,m,4,8),r.addMany([152,158,159],m,0,7),r.add(155,m,11,3),r.add(144,m,11,9);return r.addMany(c,0,3,0),r.addMany(c,1,3,1),r.add(127,1,0,1),r.addMany(c,8,0,8),r.addMany(c,3,3,3),r.add(127,3,0,3),r.addMany(c,4,3,4),r.add(127,4,0,4),r.addMany(c,6,3,6),r.addMany(c,5,3,5),r.add(127,5,0,5),r.addMany(c,2,3,2),r.add(127,2,0,2),r.add(93,1,4,8),r.addMany(i,8,5,8),r.add(127,8,5,8),r.addMany([156,27,24,26,7],8,6,0),r.addMany(e(28,32),8,0,8),r.addMany([88,94,95],1,0,7),r.addMany(i,7,0,7),r.addMany(c,7,0,7),r.add(156,7,0,0),r.add(127,7,0,7),r.add(91,1,11,3),r.addMany(e(64,127),3,7,0),r.addMany(e(48,60),3,8,4),r.addMany([60,61,62,63],3,9,4),r.addMany(e(48,60),4,8,4),r.addMany(e(64,127),4,7,0),r.addMany([60,61,62,63],4,0,6),r.addMany(e(32,64),6,0,6),r.add(127,6,0,6),r.addMany(e(64,127),6,0,0),r.addMany(e(32,48),3,9,5),r.addMany(e(32,48),5,9,5),r.addMany(e(48,64),5,0,6),r.addMany(e(64,127),5,7,0),r.addMany(e(32,48),4,9,5),r.addMany(e(32,48),1,9,2),r.addMany(e(32,48),2,9,2),r.addMany(e(48,127),2,10,0),r.addMany(e(48,80),1,10,0),r.addMany(e(81,88),1,10,0),r.addMany([89,90,92],1,10,0),r.addMany(e(96,127),1,10,0),r.add(80,1,11,9),r.addMany(c,9,0,9),r.add(127,9,0,9),r.addMany(e(28,32),9,0,9),r.addMany(e(32,48),9,9,12),r.addMany(e(48,60),9,8,10),r.addMany([60,61,62,63],9,9,10),r.addMany(c,11,0,11),r.addMany(e(32,128),11,0,11),r.addMany(e(28,32),11,0,11),r.addMany(c,10,0,10),r.add(127,10,0,10),r.addMany(e(28,32),10,0,10),r.addMany(e(48,60),10,8,10),r.addMany([60,61,62,63],10,0,11),r.addMany(e(32,48),10,9,12),r.addMany(c,12,0,12),r.add(127,12,0,12),r.addMany(e(28,32),12,0,12),r.addMany(e(32,48),12,9,12),r.addMany(e(48,64),12,0,11),r.addMany(e(64,127),12,12,13),r.addMany(e(64,127),10,12,13),r.addMany(e(64,127),9,12,13),r.addMany(c,13,13,13),r.addMany(i,13,13,13),r.add(127,13,0,13),r.addMany([27,156,24,26],13,14,0),r.add(160,0,2,0),r.add(160,8,5,8),r.add(160,6,0,6),r.add(160,11,0,11),r.add(160,13,13,13),r}();var l=function(r){function a(e){e===void 0&&(e=t.VT500_TRANSITION_TABLE);var i=r.call(this)||this;return i._transitions=e,i.initialState=0,i.currentState=i.initialState,i._params=new v.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(c,m,w){},i._executeHandlerFb=function(c){},i._csiHandlerFb=function(c,m){},i._escHandlerFb=function(c){},i._errorHandlerFb=function(c){return c},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new d.OscParser,i._dcsParser=new o.DcsParser,i._errorHandler=i._errorHandlerFb,i.setEscHandler({final:"\\"},function(){}),i}return y(a,r),a.prototype._identifier=function(e,i){i===void 0&&(i=[64,126]);var c=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=e.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var m=0;m<e.intermediates.length;++m){var w=e.intermediates.charCodeAt(m);if(32>w||w>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=w}}if(e.final.length!==1)throw new Error("final must be a single byte");var A=e.final.charCodeAt(0);if(i[0]>A||A>i[1])throw new Error("final must be in range "+i[0]+" .. "+i[1]);return c<<=8,c|=A},a.prototype.identToString=function(e){for(var i=[];e;)i.push(String.fromCharCode(255&e)),e>>=8;return i.reverse().join("")},a.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},a.prototype.setPrintHandler=function(e){this._printHandler=e},a.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},a.prototype.addEscHandler=function(e,i){var c=this._identifier(e,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var m=this._escHandlers[c];return m.push(i),{dispose:function(){var w=m.indexOf(i);w!==-1&&m.splice(w,1)}}},a.prototype.setEscHandler=function(e,i){this._escHandlers[this._identifier(e,[48,126])]=[i]},a.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},a.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},a.prototype.setExecuteHandler=function(e,i){this._executeHandlers[e.charCodeAt(0)]=i},a.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},a.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},a.prototype.addCsiHandler=function(e,i){var c=this._identifier(e);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var m=this._csiHandlers[c];return m.push(i),{dispose:function(){var w=m.indexOf(i);w!==-1&&m.splice(w,1)}}},a.prototype.setCsiHandler=function(e,i){this._csiHandlers[this._identifier(e)]=[i]},a.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},a.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},a.prototype.addDcsHandler=function(e,i){return this._dcsParser.addHandler(this._identifier(e),i)},a.prototype.setDcsHandler=function(e,i){this._dcsParser.setHandler(this._identifier(e),i)},a.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},a.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},a.prototype.addOscHandler=function(e,i){return this._oscParser.addHandler(e,i)},a.prototype.setOscHandler=function(e,i){this._oscParser.setHandler(e,i)},a.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},a.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},a.prototype.setErrorHandler=function(e){this._errorHandler=e},a.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},a.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},a.prototype.parse=function(e,i){for(var c=0,m=0,w=this.currentState,A=this._oscParser,h=this._dcsParser,g=this._collect,_=this._params,C=this._transitions.table,b=0;b<i;++b){switch((m=C[w<<8|((c=e[b])<160?c:160)])>>4){case 2:for(var S=b+1;;++S){if(S>=i||(c=e[S])<32||c>126&&c<160){this._printHandler(e,b,S),b=S-1;break}if(++S>=i||(c=e[S])<32||c>126&&c<160){this._printHandler(e,b,S),b=S-1;break}if(++S>=i||(c=e[S])<32||c>126&&c<160){this._printHandler(e,b,S),b=S-1;break}if(++S>=i||(c=e[S])<32||c>126&&c<160){this._printHandler(e,b,S),b=S-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:b,code:c,currentState:w,collect:g,params:_,abort:!1}).abort)return;break;case 7:for(var x=this._csiHandlers[g<<8|c],z=x?x.length-1:-1;z>=0&&x[z](_)===!1;z--);z<0&&this._csiHandlerFb(g<<8|c,_),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:_.addParam(0);break;case 58:_.addSubParam(-1);break;default:_.addDigit(c-48)}while(++b<i&&(c=e[b])>47&&c<60);b--;break;case 9:g<<=8,g|=c;break;case 10:for(var P=this._escHandlers[g<<8|c],K=P?P.length-1:-1;K>=0&&P[K]()===!1;K--);K<0&&this._escHandlerFb(g<<8|c),this.precedingCodepoint=0;break;case 11:_.reset(),_.addParam(0),g=0;break;case 12:h.hook(g<<8|c,_);break;case 13:for(var N=b+1;;++N)if(N>=i||(c=e[N])===24||c===26||c===27||c>127&&c<160){h.put(e,b,N),b=N-1;break}break;case 14:h.unhook(c!==24&&c!==26),c===27&&(m|=1),_.reset(),_.addParam(0),g=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var k=b+1;;k++)if(k>=i||(c=e[k])<32||c>127&&c<=159){A.put(e,b,k),b=k-1;break}break;case 6:A.end(c!==24&&c!==26),c===27&&(m|=1),_.reset(),_.addParam(0),g=0,this.precedingCodepoint=0}w=15&m}this._collect=g,this.currentState=w},a}(p.Disposable);t.EscapeSequenceParser=l},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(A,h){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,_){g.__proto__=_}||function(g,_){for(var C in _)_.hasOwnProperty(C)&&(g[C]=_[C])})(A,h)},function(A,h){function g(){this.constructor=A}f(A,h),A.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}),p=this&&this.__decorate||function(A,h,g,_){var C,b=arguments.length,S=b<3?h:_===null?_=Object.getOwnPropertyDescriptor(h,g):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(A,h,g,_);else for(var x=A.length-1;x>=0;x--)(C=A[x])&&(S=(b<3?C(S):b>3?C(h,g,S):C(h,g))||S);return b>3&&S&&Object.defineProperty(h,g,S),S},u=this&&this.__param||function(A,h){return function(g,_){h(g,_,A)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var v=n(41),d=n(47),o=n(48),s=n(49),l=n(29),r=n(2),a=n(5),e=n(1),i=n(25),c=n(0),m=1,w=function(A){function h(g,_,C,b,S,x,z,P,K){var N=A.call(this)||this;N._colors=g,N._screenElement=_,N._bufferService=S,N._charSizeService=x,N._optionsService=z,N._id=m++,N._onRequestRedraw=new c.EventEmitter;var k=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new l.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new v.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,k,N._id,N._bufferService,z),new d.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,z),new s.LinkRenderLayer(N._screenElement,2,N._colors,N._id,C,b,N._bufferService,z),new o.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,z,P,K)],N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._devicePixelRatio=window.devicePixelRatio,N._updateDimensions(),N.onOptionsChanged(),N}return y(h,A),Object.defineProperty(h.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),h.prototype.dispose=function(){for(var g=0,_=this._renderLayers;g<_.length;g++)_[g].dispose();A.prototype.dispose.call(this),i.removeTerminalFromCache(this._id)},h.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},h.prototype.setColors=function(g){this._colors=g;for(var _=0,C=this._renderLayers;_<C.length;_++){var b=C[_];b.setColors(this._colors),b.reset()}},h.prototype.onResize=function(g,_){this._updateDimensions();for(var C=0,b=this._renderLayers;C<b.length;C++)b[C].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},h.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},h.prototype.onBlur=function(){this._runOperation(function(g){return g.onBlur()})},h.prototype.onFocus=function(){this._runOperation(function(g){return g.onFocus()})},h.prototype.onSelectionChanged=function(g,_,C){C===void 0&&(C=!1),this._runOperation(function(b){return b.onSelectionChanged(g,_,C)})},h.prototype.onCursorMove=function(){this._runOperation(function(g){return g.onCursorMove()})},h.prototype.onOptionsChanged=function(){this._runOperation(function(g){return g.onOptionsChanged()})},h.prototype.clear=function(){this._runOperation(function(g){return g.reset()})},h.prototype._runOperation=function(g){for(var _=0,C=this._renderLayers;_<C.length;_++)g(C[_])},h.prototype.renderRows=function(g,_){for(var C=0,b=this._renderLayers;C<b.length;C++)b[C].onGridChanged(g,_)},h.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},h.prototype.registerCharacterJoiner=function(g){return this._characterJoinerRegistry.registerCharacterJoiner(g)},h.prototype.deregisterCharacterJoiner=function(g){return this._characterJoinerRegistry.deregisterCharacterJoiner(g)},h=p([u(4,e.IBufferService),u(5,a.ICharSizeService),u(6,e.IOptionsService),u(7,e.ICoreService),u(8,a.ICoreBrowserService)],h)}(r.Disposable);t.Renderer=w},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var p=n(42),u=n(13),v=n(6),d=n(3),o=n(29),s=n(4),l=function(r){function a(e,i,c,m,w,A,h,g){var _=r.call(this,e,"text",i,w,c,A,h,g)||this;return _._characterWidth=0,_._characterFont="",_._characterOverlapCache={},_._workCell=new s.CellData,_._state=new p.GridCache,_._characterJoinerRegistry=m,_}return y(a,r),a.prototype.resize=function(e){r.prototype.resize.call(this,e);var i=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===i||(this._characterWidth=e.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},a.prototype.reset=function(){this._state.clear(),this._clearAll()},a.prototype._forEachCell=function(e,i,c,m){for(var w=e;w<=i;w++)for(var A=w+this._bufferService.buffer.ydisp,h=this._bufferService.buffer.lines.get(A),g=c?c.getJoinedCharacters(A):[],_=0;_<this._bufferService.cols;_++){h.loadCell(_,this._workCell);var C=this._workCell,b=!1,S=_;if(C.getWidth()!==0){if(g.length>0&&_===g[0][0]){b=!0;var x=g.shift();C=new o.JoinedCellData(this._workCell,h.translateToString(!0,x[0],x[1]),x[1]-x[0]),S=x[1]-1}!b&&this._isOverlapping(C)&&S<h.length-1&&h.getCodePoint(S+1)===d.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),m(C,_,w),_=S}}},a.prototype._drawBackground=function(e,i){var c=this,m=this._ctx,w=this._bufferService.cols,A=0,h=0,g=null;m.save(),this._forEachCell(e,i,null,function(_,C,b){var S=null;_.isInverse()?S=_.isFgDefault()?c._colors.foreground.css:_.isFgRGB()?"rgb("+v.AttributeData.toColorRGB(_.getFgColor()).join(",")+")":c._colors.ansi[_.getFgColor()].css:_.isBgRGB()?S="rgb("+v.AttributeData.toColorRGB(_.getBgColor()).join(",")+")":_.isBgPalette()&&(S=c._colors.ansi[_.getBgColor()].css),g===null&&(A=C,h=b),b!==h?(m.fillStyle=g||"",c._fillCells(A,h,w-A,1),A=C,h=b):g!==S&&(m.fillStyle=g||"",c._fillCells(A,h,C-A,1),A=C,h=b),g=S}),g!==null&&(m.fillStyle=g,this._fillCells(A,h,w-A,1)),m.restore()},a.prototype._drawForeground=function(e,i){var c=this;this._forEachCell(e,i,this._characterJoinerRegistry,function(m,w,A){if(!m.isInvisible()&&(c._drawChars(m,w,A),m.isUnderline())){if(c._ctx.save(),m.isInverse())if(m.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(m.isBgRGB())c._ctx.fillStyle="rgb("+v.AttributeData.toColorRGB(m.getBgColor()).join(",")+")";else{var h=m.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&m.isBold()&&h<8&&(h+=8),c._ctx.fillStyle=c._colors.ansi[h].css}else if(m.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(m.isFgRGB())c._ctx.fillStyle="rgb("+v.AttributeData.toColorRGB(m.getFgColor()).join(",")+")";else{var g=m.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&m.isBold()&&g<8&&(g+=8),c._ctx.fillStyle=c._colors.ansi[g].css}c._fillBottomLineAtCells(w,A,m.getWidth()),c._ctx.restore()}})},a.prototype.onGridChanged=function(e,i){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,i-e+1),this._drawBackground(e,i),this._drawForeground(e,i))},a.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},a.prototype._isOverlapping=function(e){if(e.getWidth()!==1||e.getCode()<256)return!1;var i=e.getChars();if(this._characterOverlapCache.hasOwnProperty(i))return this._characterOverlapCache[i];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(i).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[i]=c,c},a}(u.BaseRenderLayer);t.TextRenderLayer=l},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var f=function(){function y(){this.cache=[]}return y.prototype.resize=function(p,u){for(var v=0;v<p;v++){this.cache.length<=v&&this.cache.push([]);for(var d=this.cache[v].length;d<u;d++)this.cache[v].push(void 0);this.cache[v].length=u}this.cache.length=p},y.prototype.clear=function(){for(var p=0;p<this.cache.length;p++)for(var u=0;u<this.cache[p].length;u++)this.cache[p][u]=void 0},y}();t.GridCache=f},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(c,m){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,A){w.__proto__=A}||function(w,A){for(var h in A)A.hasOwnProperty(h)&&(w[h]=A[h])})(c,m)},function(c,m){function w(){this.constructor=c}f(c,m),c.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var p=n(9),u=n(44),v=n(27),d=n(46),o=n(11),s=n(28),l=n(10),r={css:"rgba(0, 0, 0, 0)",rgba:0};function a(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}t.getGlyphCacheKey=a;var e=function(c){function m(w,A){var h=c.call(this)||this;h._config=A,h._drawToCacheCount=0,h._glyphsWaitingOnBitmap=[],h._bitmapCommitTimeout=null,h._bitmap=null,h._cacheCanvas=w.createElement("canvas"),h._cacheCanvas.width=1024,h._cacheCanvas.height=1024,h._cacheCtx=s.throwIfFalsy(h._cacheCanvas.getContext("2d",{alpha:!0}));var g=w.createElement("canvas");g.width=h._config.scaledCharWidth,g.height=h._config.scaledCharHeight,h._tmpCtx=s.throwIfFalsy(g.getContext("2d",{alpha:h._config.allowTransparency})),h._width=Math.floor(1024/h._config.scaledCharWidth),h._height=Math.floor(1024/h._config.scaledCharHeight);var _=h._width*h._height;return h._cacheMap=new d.LRUMap(_),h._cacheMap.prealloc(_),h}return y(m,c),m.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},m.prototype.beginFrame=function(){this._drawToCacheCount=0},m.prototype.draw=function(w,A,h,g){if(A.code===32)return!0;if(!this._canCache(A))return!1;var _=a(A),C=this._cacheMap.get(_);if(C!=null)return this._drawFromCache(w,C,h,g),!0;if(this._drawToCacheCount<100){var b=void 0;b=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var S=this._drawToCache(A,b);return this._cacheMap.set(_,S),this._drawFromCache(w,S,h,g),!0}return!1},m.prototype._canCache=function(w){return w.code<256},m.prototype._toCoordinateX=function(w){return w%this._width*this._config.scaledCharWidth},m.prototype._toCoordinateY=function(w){return Math.floor(w/this._width)*this._config.scaledCharHeight},m.prototype._drawFromCache=function(w,A,h,g){if(!A.isEmpty){var _=this._toCoordinateX(A.index),C=this._toCoordinateY(A.index);w.drawImage(A.inBitmap?this._bitmap:this._cacheCanvas,_,C,this._config.scaledCharWidth,this._config.scaledCharHeight,h,g,this._config.scaledCharWidth,this._config.scaledCharHeight)}},m.prototype._getColorFromAnsiIndex=function(w){return w<this._config.colors.ansi.length?this._config.colors.ansi[w]:v.DEFAULT_ANSI_COLORS[w]},m.prototype._getBackgroundColor=function(w){return this._config.allowTransparency?r:w.bg===p.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:w.bg<256?this._getColorFromAnsiIndex(w.bg):this._config.colors.background},m.prototype._getForegroundColor=function(w){return w.fg===p.INVERTED_DEFAULT_COLOR?l.color.opaque(this._config.colors.background):w.fg<256?this._getColorFromAnsiIndex(w.fg):this._config.colors.foreground},m.prototype._drawToCache=function(w,A){this._drawToCacheCount++,this._tmpCtx.save();var h=this._getBackgroundColor(w);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=h.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var g=w.bold?this._config.fontWeightBold:this._config.fontWeight,_=w.italic?"italic":"";this._tmpCtx.font=_+" "+g+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(w).css,w.dim&&(this._tmpCtx.globalAlpha=p.DIM_OPACITY),this._tmpCtx.fillText(w.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),b=!1;this._config.allowTransparency||(b=function(P,K){for(var N=!0,k=K.rgba>>>24,D=K.rgba>>>16&255,L=K.rgba>>>8&255,E=0;E<P.data.length;E+=4)P.data[E]===k&&P.data[E+1]===D&&P.data[E+2]===L?P.data[E+3]=0:N=!1;return N}(C,h));var S=this._toCoordinateX(A),x=this._toCoordinateY(A);this._cacheCtx.putImageData(C,S,x);var z={index:A,isEmpty:b,inBitmap:!1};return this._addGlyphToBitmap(z),z},m.prototype._addGlyphToBitmap=function(w){var A=this;!("createImageBitmap"in window)||o.isFirefox||o.isSafari||(this._glyphsWaitingOnBitmap.push(w),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return A._generateBitmap()},100)))},m.prototype._generateBitmap=function(){var w=this,A=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(h){w._bitmap=h;for(var g=0;g<A.length;g++)A[g].inBitmap=!0}),this._bitmapCommitTimeout=null},m}(u.BaseCharAtlas);t.DynamicCharAtlas=e;var i=function(c){function m(w,A){return c.call(this)||this}return y(m,c),m.prototype.draw=function(w,A,h,g){return!1},m}(u.BaseCharAtlas);t.NoneCharAtlas=i},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var f=function(){function y(){this._didWarmUp=!1}return y.prototype.dispose=function(){},y.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},y.prototype._doWarmUp=function(){},y.prototype.beginFrame=function(){},y}();t.BaseCharAtlas=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var f=function(){function y(){this._color={},this._rgba={}}return y.prototype.clear=function(){this._color={},this._rgba={}},y.prototype.setCss=function(p,u,v){this._rgba[p]||(this._rgba[p]={}),this._rgba[p][u]=v},y.prototype.getCss=function(p,u){return this._rgba[p]?this._rgba[p][u]:void 0},y.prototype.setColor=function(p,u,v){this._color[p]||(this._color[p]={}),this._color[p][u]=v},y.prototype.getColor=function(p,u){return this._color[p]?this._color[p][u]:void 0},y}();t.ColorContrastCache=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var f=function(){function y(p){this.capacity=p,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return y.prototype._unlinkNode=function(p){var u=p.prev,v=p.next;p===this._head&&(this._head=v),p===this._tail&&(this._tail=u),u!==null&&(u.next=v),v!==null&&(v.prev=u)},y.prototype._appendNode=function(p){var u=this._tail;u!==null&&(u.next=p),p.prev=u,p.next=null,this._tail=p,this._head===null&&(this._head=p)},y.prototype.prealloc=function(p){for(var u=this._nodePool,v=0;v<p;v++)u.push({prev:null,next:null,key:null,value:null})},y.prototype.get=function(p){var u=this._map[p];return u!==void 0?(this._unlinkNode(u),this._appendNode(u),u.value):null},y.prototype.peekValue=function(p){var u=this._map[p];return u!==void 0?u.value:null},y.prototype.peek=function(){var p=this._head;return p===null?null:p.value},y.prototype.set=function(p,u){var v=this._map[p];if(v!==void 0)v=this._map[p],this._unlinkNode(v),v.value=u;else if(this.size>=this.capacity)v=this._head,this._unlinkNode(v),delete this._map[v.key],v.key=p,v.value=u,this._map[p]=v;else{var d=this._nodePool;d.length>0?((v=d.pop()).key=p,v.value=u):v={prev:null,next:null,key:p,value:u},this._map[p]=v,this.size++}this._appendNode(v)},y}();t.LRUMap=f},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(u,v){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var s in o)o.hasOwnProperty(s)&&(d[s]=o[s])})(u,v)},function(u,v){function d(){this.constructor=u}f(u,v),u.prototype=v===null?Object.create(v):(d.prototype=v.prototype,new d)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var p=function(u){function v(d,o,s,l,r,a){var e=u.call(this,d,"selection",o,!0,s,l,r,a)||this;return e._clearState(),e}return y(v,u),v.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},v.prototype.resize=function(d){u.prototype.resize.call(this,d),this._clearState()},v.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},v.prototype.onSelectionChanged=function(d,o,s){if(this._didStateChange(d,o,s,this._bufferService.buffer.ydisp))if(this._clearAll(),d&&o){var l=d[1]-this._bufferService.buffer.ydisp,r=o[1]-this._bufferService.buffer.ydisp,a=Math.max(l,0),e=Math.min(r,this._bufferService.rows-1);if(!(a>=this._bufferService.rows||e<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,s){var i=d[0],c=o[0]-i,m=e-a+1;this._fillCells(i,a,c,m)}else{i=l===a?d[0]:0;var w=a===e?o[0]:this._bufferService.cols;this._fillCells(i,a,w-i,1);var A=Math.max(e-a-1,0);if(this._fillCells(0,a+1,this._bufferService.cols,A),a!==e){var h=r===e?o[0]:this._bufferService.cols;this._fillCells(0,e,h,1)}}this._state.start=[d[0],d[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=s,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},v.prototype._didStateChange=function(d,o,s,l){return!this._areCoordinatesEqual(d,this._state.start)||!this._areCoordinatesEqual(o,this._state.end)||s!==this._state.columnSelectMode||l!==this._state.ydisp},v.prototype._areCoordinatesEqual=function(d,o){return!(!d||!o)&&d[0]===o[0]&&d[1]===o[1]},v}(n(13).BaseRenderLayer);t.SelectionRenderLayer=p},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(o,s){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a])})(o,s)},function(o,s){function l(){this.constructor=o}f(o,s),o.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var p=n(13),u=n(4),v=function(o){function s(l,r,a,e,i,c,m,w,A){var h=o.call(this,l,"cursor",r,!0,a,e,c,m)||this;return h._onRequestRedraw=i,h._coreService=w,h._coreBrowserService=A,h._cell=new u.CellData,h._state={x:0,y:0,isFocused:!1,style:"",width:0},h._cursorRenderers={bar:h._renderBarCursor.bind(h),block:h._renderBlockCursor.bind(h),underline:h._renderUnderlineCursor.bind(h)},h}return y(s,o),s.prototype.resize=function(l){o.prototype.resize.call(this,l),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},s.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},s.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onOptionsChanged=function(){var l,r=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new d(this._coreBrowserService.isFocused,function(){r._render(!0)})):((l=this._cursorBlinkStateManager)===null||l===void 0||l.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype.onGridChanged=function(l,r){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype._render=function(l){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,a=r-this._bufferService.buffer.ydisp;if(a<0||a>=this._bufferService.rows)this._clearCursor();else{var e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(r).loadCell(e,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&i!=="block"?this._cursorRenderers[i](e,a,this._cell):this._renderBlurCursor(e,a,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=a,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e&&this._state.y===a&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](e,a,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=a,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},s.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},s.prototype._renderBarCursor=function(l,r,a){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(l,r,this._optionsService.options.cursorWidth),this._ctx.restore()},s.prototype._renderBlockCursor=function(l,r,a){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(l,r,a.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(a,l,r),this._ctx.restore()},s.prototype._renderUnderlineCursor=function(l,r,a){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(l,r),this._ctx.restore()},s.prototype._renderBlurCursor=function(l,r,a){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(l,r,a.getWidth(),1),this._ctx.restore()},s}(p.BaseRenderLayer);t.CursorRenderLayer=v;var d=function(){function o(s,l){this._renderCallback=l,this.isCursorVisible=!0,s&&this._restartInterval()}return Object.defineProperty(o.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.restartBlinkAnimation=function(){var s=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0})))},o.prototype._restartInterval=function(s){var l=this;s===void 0&&(s=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(l._animationTimeRestarted){var r=600-(Date.now()-l._animationTimeRestarted);if(l._animationTimeRestarted=void 0,r>0)return void l._restartInterval(r)}l.isCursorVisible=!1,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0}),l._blinkInterval=window.setInterval(function(){if(l._animationTimeRestarted){var a=600-(Date.now()-l._animationTimeRestarted);return l._animationTimeRestarted=void 0,void l._restartInterval(a)}l.isCursorVisible=!l.isCursorVisible,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0})},600)},s)},o.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},o}()},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(o,s){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a])})(o,s)},function(o,s){function l(){this.constructor=o}f(o,s),o.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var p=n(13),u=n(9),v=n(26),d=function(o){function s(l,r,a,e,i,c,m,w){var A=o.call(this,l,"link",r,!0,a,e,m,w)||this;return i.onShowLinkUnderline(function(h){return A._onShowLinkUnderline(h)}),i.onHideLinkUnderline(function(h){return A._onHideLinkUnderline(h)}),c.onShowLinkUnderline(function(h){return A._onShowLinkUnderline(h)}),c.onHideLinkUnderline(function(h){return A._onHideLinkUnderline(h)}),A}return y(s,o),s.prototype.resize=function(l){o.prototype.resize.call(this,l),this._state=void 0},s.prototype.reset=function(){this._clearCurrentLink()},s.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var l=this._state.y2-this._state.y1-1;l>0&&this._clearCells(0,this._state.y1+1,this._state.cols,l),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},s.prototype._onShowLinkUnderline=function(l){if(l.fg===u.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:l.fg&&v.is256Color(l.fg)?this._ctx.fillStyle=this._colors.ansi[l.fg].css:this._ctx.fillStyle=this._colors.foreground.css,l.y1===l.y2)this._fillBottomLineAtCells(l.x1,l.y1,l.x2-l.x1);else{this._fillBottomLineAtCells(l.x1,l.y1,l.cols-l.x1);for(var r=l.y1+1;r<l.y2;r++)this._fillBottomLineAtCells(0,r,l.cols);this._fillBottomLineAtCells(0,l.y2,l.x2)}this._state=l},s.prototype._onHideLinkUnderline=function(l){this._clearCurrentLink()},s}(p.BaseRenderLayer);t.LinkRenderLayer=d},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(o,s,l,r){var a,e=arguments.length,i=e<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,l):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,s,l,r);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(e<3?a(i):e>3?a(s,l,i):a(s,l))||i);return e>3&&i&&Object.defineProperty(s,l,i),i},y=this&&this.__param||function(o,s){return function(l,r){s(l,r,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var p=n(0),u=n(1),v=function(){function o(s,l,r){this._bufferService=s,this._logService=l,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new p.EventEmitter,this._onHideLinkUnderline=new p.EventEmitter,this._onLinkTooltip=new p.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(o.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),o.prototype.attachToDom=function(s,l){this._element=s,this._mouseZoneManager=l},o.prototype.linkifyRows=function(s,l){var r=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=s,this._rowsToLinkify.end=l):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,s),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,l)),this._mouseZoneManager.clearAll(s,l),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return r._linkifyRows()},o._timeBeforeLatency))},o.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var s=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var l=s.ydisp+this._rowsToLinkify.start;if(!(l>=s.lines.length)){for(var r=s.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,a=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,l,r,a,a);e.hasNext();)for(var i=e.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(i.range.first,i.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},o.prototype.registerLinkMatcher=function(s,l,r){if(r===void 0&&(r={}),!l)throw new Error("handler must be defined");var a={id:this._nextLinkMatcherId++,regex:s,handler:l,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(a),a.id},o.prototype._addLinkMatcherToList=function(s){if(this._linkMatchers.length!==0){for(var l=this._linkMatchers.length-1;l>=0;l--)if(s.priority<=this._linkMatchers[l].priority)return void this._linkMatchers.splice(l+1,0,s);this._linkMatchers.splice(0,0,s)}else this._linkMatchers.push(s)},o.prototype.deregisterLinkMatcher=function(s){for(var l=0;l<this._linkMatchers.length;l++)if(this._linkMatchers[l].id===s)return this._linkMatchers.splice(l,1),!0;return!1},o.prototype._doLinkifyRow=function(s,l,r){for(var a,e=this,i=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),c=-1,m=function(){var A=a[typeof r.matchIndex!="number"?0:r.matchIndex];if(!A)return w._logService.debug("match found without corresponding matchIndex",a,r),"break";if(c=l.indexOf(A,c+1),i.lastIndex=c+A.length,c<0)return"break";var h=w._bufferService.buffer.stringIndexToBufferIndex(s,c);if(h[0]<0)return"break";var g=w._bufferService.buffer.lines.get(h[0]);if(!g)return"break";var _=g.getFg(h[1]),C=_?_>>9&511:void 0;r.validationCallback?r.validationCallback(A,function(b){e._rowsTimeoutId||b&&e._addLink(h[1],h[0]-e._bufferService.buffer.ydisp,A,r,C)}):w._addLink(h[1],h[0]-w._bufferService.buffer.ydisp,A,r,C)},w=this;(a=i.exec(l))!==null&&m()!=="break";);},o.prototype._addLink=function(s,l,r,a,e){var i=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(r),m=s%this._bufferService.cols,w=l+Math.floor(s/this._bufferService.cols),A=(m+c)%this._bufferService.cols,h=w+Math.floor((m+c)/this._bufferService.cols);A===0&&(A=this._bufferService.cols,h--),this._mouseZoneManager.add(new d(m+1,w+1,A+1,h+1,function(g){if(a.handler)return a.handler(g,r);var _=window.open();_?(_.opener=null,_.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){i._onShowLinkUnderline.fire(i._createLinkHoverEvent(m,w,A,h,e)),i._element.classList.add("xterm-cursor-pointer")},function(g){i._onLinkTooltip.fire(i._createLinkHoverEvent(m,w,A,h,e)),a.hoverTooltipCallback&&a.hoverTooltipCallback(g,r,{start:{x:m,y:w},end:{x:A,y:h}})},function(){i._onHideLinkUnderline.fire(i._createLinkHoverEvent(m,w,A,h,e)),i._element.classList.remove("xterm-cursor-pointer"),a.hoverLeaveCallback&&a.hoverLeaveCallback()},function(g){return!a.willLinkActivate||a.willLinkActivate(g,r)}))}},o.prototype._createLinkHoverEvent=function(s,l,r,a,e){return{x1:s,y1:l,x2:r,y2:a,cols:this._bufferService.cols,fg:e}},o._timeBeforeLatency=200,o=f([y(0,u.IBufferService),y(1,u.ILogService),y(2,u.IUnicodeService)],o)}();t.Linkifier=v;var d=function(o,s,l,r,a,e,i,c,m){this.x1=o,this.y1=s,this.x2=l,this.y2=r,this.clickCallback=a,this.hoverCallback=e,this.tooltipCallback=i,this.leaveCallback=c,this.willLinkActivate=m};t.MouseZone=d},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(A,h){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,_){g.__proto__=_}||function(g,_){for(var C in _)_.hasOwnProperty(C)&&(g[C]=_[C])})(A,h)},function(A,h){function g(){this.constructor=A}f(A,h),A.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}),p=this&&this.__decorate||function(A,h,g,_){var C,b=arguments.length,S=b<3?h:_===null?_=Object.getOwnPropertyDescriptor(h,g):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(A,h,g,_);else for(var x=A.length-1;x>=0;x--)(C=A[x])&&(S=(b<3?C(S):b>3?C(h,g,S):C(h,g))||S);return b>3&&S&&Object.defineProperty(h,g,S),S},u=this&&this.__param||function(A,h){return function(g,_){h(g,_,A)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var v=n(11),d=n(52),o=n(4),s=n(0),l=n(5),r=n(1),a=n(30),e=n(53),i=n(2),c="\xA0",m=new RegExp(c,"g"),w=function(A){function h(g,_,C,b,S,x,z){var P=A.call(this)||this;return P._element=g,P._screenElement=_,P._bufferService=C,P._coreService=b,P._mouseService=S,P._optionsService=x,P._renderService=z,P._dragScrollAmount=0,P._enabled=!0,P._workCell=new o.CellData,P._mouseDownTimeStamp=0,P._onLinuxMouseSelection=P.register(new s.EventEmitter),P._onRedrawRequest=P.register(new s.EventEmitter),P._onSelectionChange=P.register(new s.EventEmitter),P._onRequestScrollLines=P.register(new s.EventEmitter),P._mouseMoveListener=function(K){return P._onMouseMove(K)},P._mouseUpListener=function(K){return P._onMouseUp(K)},P._coreService.onUserInput(function(){P.hasSelection&&P.clearSelection()}),P._trimListener=P._bufferService.buffer.lines.onTrim(function(K){return P._onTrim(K)}),P.register(P._bufferService.buffers.onBufferActivate(function(K){return P._onBufferActivate(K)})),P.enable(),P._model=new d.SelectionModel(P._bufferService),P._activeSelectionMode=0,P}return y(h,A),Object.defineProperty(h.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),h.prototype.dispose=function(){this._removeMouseDownListeners()},h.prototype.reset=function(){this.clearSelection()},h.prototype.disable=function(){this.clearSelection(),this._enabled=!1},h.prototype.enable=function(){this._enabled=!0},Object.defineProperty(h.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!(!g||!_)&&(g[0]!==_[0]||g[1]!==_[1])},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;if(!g||!_)return"";var C=this._bufferService.buffer,b=[];if(this._activeSelectionMode===3){if(g[0]===_[0])return"";for(var S=g[1];S<=_[1];S++){var x=C.translateBufferLineToString(S,!0,g[0],_[0]);b.push(x)}}else{var z=g[1]===_[1]?_[0]:void 0;for(b.push(C.translateBufferLineToString(g[1],!0,g[0],z)),S=g[1]+1;S<=_[1]-1;S++){var P=C.lines.get(S);x=C.translateBufferLineToString(S,!0),P&&P.isWrapped?b[b.length-1]+=x:b.push(x)}g[1]!==_[1]&&(P=C.lines.get(_[1]),x=C.translateBufferLineToString(_[1],!0,0,_[0]),P&&P.isWrapped?b[b.length-1]+=x:b.push(x))}return b.map(function(K){return K.replace(m," ")}).join(v.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),h.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},h.prototype.refresh=function(g){var _=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return _._refresh()})),v.isLinux&&g&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},h.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},h.prototype.isClickInSelection=function(g){var _=this._getMouseBufferCoords(g),C=this._model.finalSelectionStart,b=this._model.finalSelectionEnd;return!!(C&&b&&_)&&this._areCoordsInSelection(_,C,b)},h.prototype._areCoordsInSelection=function(g,_,C){return g[1]>_[1]&&g[1]<C[1]||_[1]===C[1]&&g[1]===_[1]&&g[0]>=_[0]&&g[0]<C[0]||_[1]<C[1]&&g[1]===C[1]&&g[0]<C[0]||_[1]<C[1]&&g[1]===_[1]&&g[0]>=_[0]},h.prototype.selectWordAtCursor=function(g){var _=this._getMouseBufferCoords(g);_&&(this._selectWordAt(_,!1),this._model.selectionEnd=void 0,this.refresh(!0))},h.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},h.prototype.selectLines=function(g,_){this._model.clearSelection(),g=Math.max(g,0),_=Math.min(_,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,_],this.refresh(),this._onSelectionChange.fire()},h.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},h.prototype._getMouseBufferCoords=function(g){var _=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(_)return _[0]--,_[1]--,_[1]+=this._bufferService.buffer.ydisp,_},h.prototype._getMouseEventScrollAmount=function(g){var _=a.getCoordsRelativeToElement(g,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return _>=0&&_<=C?0:(_>C&&(_-=C),_=Math.min(Math.max(_,-50),50),(_/=50)/Math.abs(_)+Math.round(14*_))},h.prototype.shouldForceSelection=function(g){return v.isMac?g.altKey&&this._optionsService.options.macOptionClickForcesSelection:g.shiftKey},h.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},h.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},h.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},h.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},h.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var _=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);_&&_.length!==this._model.selectionStart[0]&&_.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},h.prototype._onDoubleClick=function(g){var _=this._getMouseBufferCoords(g);_&&(this._activeSelectionMode=1,this._selectWordAt(_,!0))},h.prototype._onTripleClick=function(g){var _=this._getMouseBufferCoords(g);_&&(this._activeSelectionMode=2,this._selectLineAt(_[1]))},h.prototype.shouldColumnSelect=function(g){return g.altKey&&!(v.isMac&&this._optionsService.options.macOptionClickForcesSelection)},h.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var _=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(g),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var b=C.lines.get(this._model.selectionEnd[1]);b&&b.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}_&&_[0]===this._model.selectionEnd[0]&&_[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},h.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var g=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},h.prototype._onMouseUp=function(g){var _=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&_<500&&g.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var b=e.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(b,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},h.prototype._onBufferActivate=function(g){var _=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(C){return _._onTrim(C)})},h.prototype._convertViewportColToCharacterIndex=function(g,_){for(var C=_[0],b=0;_[0]>=b;b++){var S=g.loadCell(b,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:S>1&&_[0]!==b&&(C+=S-1)}return C},h.prototype.setSelection=function(g,_,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,_],this._model.selectionStartLength=C,this.refresh()},h.prototype._getWordAt=function(g,_,C,b){if(C===void 0&&(C=!0),b===void 0&&(b=!0),!(g[0]>=this._bufferService.cols)){var S=this._bufferService.buffer,x=S.lines.get(g[1]);if(x){var z=S.translateBufferLineToString(g[1],!1),P=this._convertViewportColToCharacterIndex(x,g),K=P,N=g[0]-P,k=0,D=0,L=0,E=0;if(z.charAt(P)===" "){for(;P>0&&z.charAt(P-1)===" ";)P--;for(;K<z.length&&z.charAt(K+1)===" ";)K++}else{var R=g[0],O=g[0];x.getWidth(R)===0&&(k++,R--),x.getWidth(O)===2&&(D++,O++);var M=x.getString(O).length;for(M>1&&(E+=M-1,K+=M-1);R>0&&P>0&&!this._isCharWordSeparator(x.loadCell(R-1,this._workCell));){x.loadCell(R-1,this._workCell);var I=this._workCell.getChars().length;this._workCell.getWidth()===0?(k++,R--):I>1&&(L+=I-1,P-=I-1),P--,R--}for(;O<x.length&&K+1<z.length&&!this._isCharWordSeparator(x.loadCell(O+1,this._workCell));){x.loadCell(O+1,this._workCell);var J=this._workCell.getChars().length;this._workCell.getWidth()===2?(D++,O++):J>1&&(E+=J-1,K+=J-1),K++,O++}}K++;var re=P+N-k+L,le=Math.min(this._bufferService.cols,K-P+k+D-L-E);if(_||z.slice(P,K).trim()!==""){if(C&&re===0&&x.getCodePoint(0)!==32){var ye=S.lines.get(g[1]-1);if(ye&&x.isWrapped&&ye.getCodePoint(this._bufferService.cols-1)!==32){var W=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(W){var H=this._bufferService.cols-W.start;re-=H,le+=H}}}if(b&&re+le===this._bufferService.cols&&x.getCodePoint(this._bufferService.cols-1)!==32){var Z=S.lines.get(g[1]+1);if(Z&&Z.isWrapped&&Z.getCodePoint(0)!==32){var te=this._getWordAt([0,g[1]+1],!1,!1,!0);te&&(le+=te.length)}}return{start:re,length:le}}}}},h.prototype._selectWordAt=function(g,_){var C=this._getWordAt(g,_);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[C.start,g[1]],this._model.selectionStartLength=C.length}},h.prototype._selectToWordAt=function(g){var _=this._getWordAt(g,!0);if(_){for(var C=g[1];_.start<0;)_.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;_.start+_.length>this._bufferService.cols;)_.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?_.start:_.start+_.length,C]}},h.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(g.getChars())>=0},h.prototype._selectLineAt=function(g){var _=this._bufferService.buffer.getWrappedRangeForLine(g);this._model.selectionStart=[0,_.first],this._model.selectionEnd=[this._bufferService.cols,_.last],this._model.selectionStartLength=0},h=p([u(2,r.IBufferService),u(3,r.ICoreService),u(4,l.IMouseService),u(5,r.IOptionsService),u(6,l.IRenderService)],h)}(i.Disposable);t.SelectionService=w},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var f=function(){function y(p){this._bufferService=p,this.isSelectAllActive=!1,this.selectionStartLength=0}return y.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(y.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var p=this.selectionStart[0]+this.selectionStartLength;return p>this._bufferService.cols?[p%this._bufferService.cols,this.selectionStart[1]+Math.floor(p/this._bufferService.cols)]:[p,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),y.prototype.areSelectionValuesReversed=function(){var p=this.selectionStart,u=this.selectionEnd;return!(!p||!u)&&(p[1]>u[1]||p[1]===u[1]&&p[0]>u[0])},y.prototype.onTrim=function(p){return this.selectionStart&&(this.selectionStart[1]-=p),this.selectionEnd&&(this.selectionEnd[1]-=p),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},y}();t.SelectionModel=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var f=n(12);function y(s,l,r,a){var e=s-p(r,s),i=l-p(r,l);return o(Math.abs(e-i)-function(c,m,w){for(var A=0,h=c-p(w,c),g=m-p(w,m),_=0;_<Math.abs(h-g);_++){var C=u(c,m)==="A"?-1:1,b=w.buffer.lines.get(h+C*_);b&&b.isWrapped&&A++}return A}(s,l,r),d(u(s,l),a))}function p(s,l){for(var r=0,a=s.buffer.lines.get(l),e=a&&a.isWrapped;e&&l>=0&&l<s.rows;)r++,e=(a=s.buffer.lines.get(--l))&&a.isWrapped;return r}function u(s,l){return s>l?"A":"B"}function v(s,l,r,a,e,i){for(var c=s,m=l,w="";c!==r||m!==a;)c+=e?1:-1,e&&c>i.cols-1?(w+=i.buffer.translateBufferLineToString(m,!1,s,c),c=0,s=0,m++):!e&&c<0&&(w+=i.buffer.translateBufferLineToString(m,!1,0,s+1),s=c=i.cols-1,m--);return w+i.buffer.translateBufferLineToString(m,!1,s,c)}function d(s,l){var r=l?"O":"[";return f.C0.ESC+r+s}function o(s,l){s=Math.floor(s);for(var r="",a=0;a<s;a++)r+=l;return r}t.moveToCellSequence=function(s,l,r,a){var e,i=r.buffer.x,c=r.buffer.y;if(!r.buffer.hasScrollback)return function(w,A,h,g,_,C){return y(A,g,_,C).length===0?"":o(v(w,A,w,A-p(_,A),!1,_).length,d("D",C))}(i,c,0,l,r,a)+y(c,l,r,a)+function(w,A,h,g,_,C){var b;b=y(A,g,_,C).length>0?g-p(_,g):A;var S=g,x=function(z,P,K,N,k,D){var L;return L=y(K,N,k,D).length>0?N-p(k,N):P,z<K&&L<=N||z>=K&&L<N?"C":"D"}(w,A,h,g,_,C);return o(v(w,b,h,S,x==="C",_).length,d(x,C))}(i,c,s,l,r,a);if(c===l)return e=i>s?"D":"C",o(Math.abs(i-s),d(e,a));e=c>l?"D":"C";var m=Math.abs(c-l);return o(function(w,A){return A.cols-w}(c>l?s:i,r)+(m-1)*r.cols+1+((c>l?i:s)-1),d(e,a))}},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(v,d,o,s){var l,r=arguments.length,a=r<3?d:s===null?s=Object.getOwnPropertyDescriptor(d,o):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(v,d,o,s);else for(var e=v.length-1;e>=0;e--)(l=v[e])&&(a=(r<3?l(a):r>3?l(d,o,a):l(d,o))||a);return r>3&&a&&Object.defineProperty(d,o,a),a},y=this&&this.__param||function(v,d){return function(o,s){d(o,s,v)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var p=n(1),u=function(){function v(d){this._optionsService=d}return Object.defineProperty(v,"audioContext",{get:function(){if(!v._audioContext){var d=window.AudioContext||window.webkitAudioContext;if(!d)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;v._audioContext=new d}return v._audioContext},enumerable:!1,configurable:!0}),v.prototype.playBellSound=function(){var d=v.audioContext;if(d){var o=d.createBufferSource();d.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(s){o.buffer=s,o.connect(d.destination),o.start(0)})}},v.prototype._base64ToArrayBuffer=function(d){for(var o=window.atob(d),s=o.length,l=new Uint8Array(s),r=0;r<s;r++)l[r]=o.charCodeAt(r);return l.buffer},v.prototype._removeMimeType=function(d){return d.split(",")[1]},v=f([y(0,p.IOptionsService)],v)}();t.SoundService=u},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}),p=this&&this.__decorate||function(r,a,e,i){var c,m=arguments.length,w=m<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,a,e,i);else for(var A=r.length-1;A>=0;A--)(c=r[A])&&(w=(m<3?c(w):m>3?c(a,e,w):c(a,e))||w);return m>3&&w&&Object.defineProperty(a,e,w),w},u=this&&this.__param||function(r,a){return function(e,i){a(e,i,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var v=n(2),d=n(7),o=n(5),s=n(1),l=function(r){function a(e,i,c,m,w,A){var h=r.call(this)||this;return h._element=e,h._screenElement=i,h._bufferService=c,h._mouseService=m,h._selectionService=w,h._optionsService=A,h._zones=[],h._areZonesActive=!1,h._lastHoverCoords=[void 0,void 0],h._initialSelectionLength=0,h.register(d.addDisposableDomListener(h._element,"mousedown",function(g){return h._onMouseDown(g)})),h._mouseMoveListener=function(g){return h._onMouseMove(g)},h._mouseLeaveListener=function(g){return h._onMouseLeave(g)},h._clickListener=function(g){return h._onClick(g)},h}return y(a,r),a.prototype.dispose=function(){r.prototype.dispose.call(this),this._deactivate()},a.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},a.prototype.clearAll=function(e,i){if(this._zones.length!==0){e&&i||(e=0,i=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var m=this._zones[c];(m.y1>e&&m.y1<=i+1||m.y2>e&&m.y2<=i+1||m.y1<e&&m.y2>i+1)&&(this._currentZone&&this._currentZone===m&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,1))}this._zones.length===0&&this._deactivate()}},a.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},a.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},a.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},a.prototype._onHover=function(e){var i=this,c=this._findZoneEventAt(e);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return i._onTooltip(e)},this._optionsService.options.linkTooltipHoverDuration)))},a.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var i=this._findZoneEventAt(e);i&&i.tooltipCallback&&i.tooltipCallback(e)},a.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var i=this._findZoneEventAt(e);i!=null&&i.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},a.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},a.prototype._onClick=function(e){var i=this._findZoneEventAt(e),c=this._getSelectionLength();i&&c===this._initialSelectionLength&&(i.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},a.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},a.prototype._findZoneEventAt=function(e){var i=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(i)for(var c=i[0],m=i[1],w=0;w<this._zones.length;w++){var A=this._zones[w];if(A.y1===A.y2){if(m===A.y1&&c>=A.x1&&c<A.x2)return A}else if(m===A.y1&&c>=A.x1||m===A.y2&&c<A.x2||m>A.y1&&m<A.y2)return A}},a=p([u(2,s.IBufferService),u(3,o.IMouseService),u(4,o.ISelectionService),u(5,s.IOptionsService)],a)}(v.Disposable);t.MouseZoneManager=l},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(a,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var m in c)c.hasOwnProperty(m)&&(i[m]=c[m])})(a,e)},function(a,e){function i(){this.constructor=a}f(a,e),a.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var p=n(18),u=n(11),v=n(31),d=n(7),o=n(2),s=n(32),l=n(17),r=function(a){function e(i,c){var m=a.call(this)||this;m._terminal=i,m._renderService=c,m._liveRegionLineCount=0,m._charsToConsume=[],m._charsToAnnounce="",m._accessibilityTreeRoot=document.createElement("div"),m._accessibilityTreeRoot.classList.add("xterm-accessibility"),m._rowContainer=document.createElement("div"),m._rowContainer.classList.add("xterm-accessibility-tree"),m._rowContainer.setAttribute("role","list"),m._rowElements=[];for(var w=0;w<m._terminal.rows;w++)m._rowElements[w]=m._createAccessibilityTreeNode(),m._rowContainer.appendChild(m._rowElements[w]);if(m._topBoundaryFocusListener=function(A){return m._onBoundaryFocus(A,0)},m._bottomBoundaryFocusListener=function(A){return m._onBoundaryFocus(A,1)},m._rowElements[0].addEventListener("focus",m._topBoundaryFocusListener),m._rowElements[m._rowElements.length-1].addEventListener("focus",m._bottomBoundaryFocusListener),m._refreshRowsDimensions(),m._accessibilityTreeRoot.appendChild(m._rowContainer),m._renderRowsDebouncer=new v.RenderDebouncer(m._renderRows.bind(m)),m._refreshRows(),m._liveRegion=document.createElement("div"),m._liveRegion.classList.add("live-region"),m._liveRegion.setAttribute("aria-live","assertive"),m._accessibilityTreeRoot.appendChild(m._liveRegion),!m._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return m._terminal.element.insertAdjacentElement("afterbegin",m._accessibilityTreeRoot),m.register(m._renderRowsDebouncer),m.register(m._terminal.onResize(function(A){return m._onResize(A.rows)})),m.register(m._terminal.onRender(function(A){return m._refreshRows(A.start,A.end)})),m.register(m._terminal.onScroll(function(){return m._refreshRows()})),m.register(m._terminal.onA11yChar(function(A){return m._onChar(A)})),m.register(m._terminal.onLineFeed(function(){return m._onChar(`
|
|
|
`)})),m.register(m._terminal.onA11yTab(function(A){return m._onTab(A)})),m.register(m._terminal.onKey(function(A){return m._onKey(A.key)})),m.register(m._terminal.onBlur(function(){return m._clearLiveRegion()})),m.register(m._renderService.onDimensionsChange(function(){return m._refreshRowsDimensions()})),m._screenDprMonitor=new s.ScreenDprMonitor,m.register(m._screenDprMonitor),m._screenDprMonitor.setListener(function(){return m._refreshRowsDimensions()}),m.register(d.addDisposableDomListener(window,"resize",function(){return m._refreshRowsDimensions()})),m}return y(e,a),e.prototype.dispose=function(){a.prototype.dispose.call(this),l.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(i,c){var m=i.target,w=this._rowElements[c===0?1:this._rowElements.length-2];if(m.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&i.relatedTarget===w){var A,h;if(c===0?(A=m,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(A=this._rowElements.shift(),h=m,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else g=this._createAccessibilityTreeNode(),this._rowElements.push(g),this._rowContainer.appendChild(g);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}},e.prototype._onResize=function(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i},e.prototype._onTab=function(i){for(var c=0;c<i;c++)this._onChar(" ")},e.prototype._onChar=function(i){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=p.tooMuchOutput)),u.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,u.isMac&&l.removeElementFromParent(this._liveRegion)},e.prototype._onKey=function(i){this._clearLiveRegion(),this._charsToConsume.push(i)},e.prototype._refreshRows=function(i,c){this._renderRowsDebouncer.refresh(i,c,this._terminal.rows)},e.prototype._renderRows=function(i,c){for(var m=this._terminal.buffer,w=m.lines.length.toString(),A=i;A<=c;A++){var h=m.translateBufferLineToString(m.ydisp+A,!0),g=(m.ydisp+A+1).toString(),_=this._rowElements[A];_&&(h.length===0?_.innerHTML=" ":_.textContent=h,_.setAttribute("aria-posinset",g),_.setAttribute("aria-setsize",w))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}},e.prototype._refreshRowDimensions=function(i){i.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(o.Disposable);t.AccessibilityManager=r},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(m,w){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,h){A.__proto__=h}||function(A,h){for(var g in h)h.hasOwnProperty(g)&&(A[g]=h[g])})(m,w)},function(m,w){function A(){this.constructor=m}f(m,w),m.prototype=w===null?Object.create(w):(A.prototype=w.prototype,new A)}),p=this&&this.__decorate||function(m,w,A,h){var g,_=arguments.length,C=_<3?w:h===null?h=Object.getOwnPropertyDescriptor(w,A):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(m,w,A,h);else for(var b=m.length-1;b>=0;b--)(g=m[b])&&(C=(_<3?g(C):_>3?g(w,A,C):g(w,A))||C);return _>3&&C&&Object.defineProperty(w,A,C),C},u=this&&this.__param||function(m,w){return function(A,h){w(A,h,m)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var v=n(58),d=n(9),o=n(2),s=n(5),l=n(1),r=n(0),a=n(10),e=n(17),i=1,c=function(m){function w(A,h,g,_,C,b,S,x,z){var P=m.call(this)||this;return P._colors=A,P._element=h,P._screenElement=g,P._viewportElement=_,P._linkifier=C,P._linkifier2=b,P._charSizeService=S,P._optionsService=x,P._bufferService=z,P._terminalClass=i++,P._rowElements=[],P._rowContainer=document.createElement("div"),P._rowContainer.classList.add("xterm-rows"),P._rowContainer.style.lineHeight="normal",P._rowContainer.setAttribute("aria-hidden","true"),P._refreshRowElements(P._bufferService.cols,P._bufferService.rows),P._selectionContainer=document.createElement("div"),P._selectionContainer.classList.add("xterm-selection"),P._selectionContainer.setAttribute("aria-hidden","true"),P.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},P._updateDimensions(),P._injectCss(),P._rowFactory=new v.DomRendererRowFactory(document,P._optionsService,P._colors),P._element.classList.add("xterm-dom-renderer-owner-"+P._terminalClass),P._screenElement.appendChild(P._rowContainer),P._screenElement.appendChild(P._selectionContainer),P._linkifier.onShowLinkUnderline(function(K){return P._onLinkHover(K)}),P._linkifier.onHideLinkUnderline(function(K){return P._onLinkLeave(K)}),P._linkifier2.onShowLinkUnderline(function(K){return P._onLinkHover(K)}),P._linkifier2.onHideLinkUnderline(function(K){return P._onLinkLeave(K)}),P}return y(w,m),Object.defineProperty(w.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),w.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),e.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),m.prototype.dispose.call(this)},w.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var A=0,h=this._rowElements;A<h.length;A++){var g=h[A];g.style.width=this.dimensions.canvasWidth+"px",g.style.height=this.dimensions.actualCellHeight+"px",g.style.lineHeight=this.dimensions.actualCellHeight+"px",g.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var _=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=_,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},w.prototype.setColors=function(A){this._colors=A,this._injectCss()},w.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var h=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";h+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",h+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",h+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",h+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",h+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(g,_){h+=A._terminalSelector+" .xterm-fg-"+_+" { color: "+g.css+"; }"+A._terminalSelector+" .xterm-bg-"+_+" { background-color: "+g.css+"; }"}),h+=this._terminalSelector+" .xterm-fg-"+d.INVERTED_DEFAULT_COLOR+" { color: "+a.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+d.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=h},w.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},w.prototype._refreshRowElements=function(A,h){for(var g=this._rowElements.length;g<=h;g++){var _=document.createElement("div");this._rowContainer.appendChild(_),this._rowElements.push(_)}for(;this._rowElements.length>h;)this._rowContainer.removeChild(this._rowElements.pop())},w.prototype.onResize=function(A,h){this._refreshRowElements(A,h),this._updateDimensions()},w.prototype.onCharSizeChanged=function(){this._updateDimensions()},w.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},w.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},w.prototype.onSelectionChanged=function(A,h,g){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&h){var _=A[1]-this._bufferService.buffer.ydisp,C=h[1]-this._bufferService.buffer.ydisp,b=Math.max(_,0),S=Math.min(C,this._bufferService.rows-1);if(!(b>=this._bufferService.rows||S<0)){var x=document.createDocumentFragment();if(g)x.appendChild(this._createSelectionElement(b,A[0],h[0],S-b+1));else{var z=_===b?A[0]:0,P=b===S?h[0]:this._bufferService.cols;x.appendChild(this._createSelectionElement(b,z,P));var K=S-b-1;if(x.appendChild(this._createSelectionElement(b+1,0,this._bufferService.cols,K)),b!==S){var N=C===S?h[0]:this._bufferService.cols;x.appendChild(this._createSelectionElement(S,0,N))}}this._selectionContainer.appendChild(x)}}},w.prototype._createSelectionElement=function(A,h,g,_){_===void 0&&(_=1);var C=document.createElement("div");return C.style.height=_*this.dimensions.actualCellHeight+"px",C.style.top=A*this.dimensions.actualCellHeight+"px",C.style.left=h*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(g-h)+"px",C},w.prototype.onCursorMove=function(){},w.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},w.prototype.clear=function(){for(var A=0,h=this._rowElements;A<h.length;A++)h[A].innerHTML=""},w.prototype.renderRows=function(A,h){for(var g=this._bufferService.buffer.ybase+this._bufferService.buffer.y,_=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,b=A;b<=h;b++){var S=this._rowElements[b];S.innerHTML="";var x=b+this._bufferService.buffer.ydisp,z=this._bufferService.buffer.lines.get(x),P=this._optionsService.options.cursorStyle;S.appendChild(this._rowFactory.createRow(z,x===g,P,_,C,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(w.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),w.prototype.registerCharacterJoiner=function(A){return-1},w.prototype.deregisterCharacterJoiner=function(A){return!1},w.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},w.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},w.prototype._setCellUnderline=function(A,h,g,_,C,b){for(;A!==h||g!==_;){var S=this._rowElements[g];if(!S)return;var x=S.children[A];x&&(x.style.textDecoration=b?"underline":"none"),++A>=C&&(A=0,g++)}},w=p([u(6,s.ICharSizeService),u(7,l.IOptionsService),u(8,l.IBufferService)],w)}(o.Disposable);t.DomRenderer=c},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var f=n(9),y=n(3),p=n(4),u=n(10);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var v=function(){function o(s,l,r){this._document=s,this._optionsService=l,this._colors=r,this._workCell=new p.CellData}return o.prototype.setColors=function(s){this._colors=s},o.prototype.createRow=function(s,l,r,a,e,i,c){for(var m=this._document.createDocumentFragment(),w=0,A=Math.min(s.length,c)-1;A>=0;A--)if(s.loadCell(A,this._workCell).getCode()!==y.NULL_CELL_CODE||l&&A===a){w=A+1;break}for(A=0;A<w;A++){s.loadCell(A,this._workCell);var h=this._workCell.getWidth();if(h!==0){var g=this._document.createElement("span");if(h>1&&(g.style.width=i*h+"px"),l&&A===a)switch(g.classList.add(t.CURSOR_CLASS),e&&g.classList.add(t.CURSOR_BLINK_CLASS),r){case"bar":g.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":g.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:g.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&g.classList.add(t.BOLD_CLASS),this._workCell.isItalic()&&g.classList.add(t.ITALIC_CLASS),this._workCell.isDim()&&g.classList.add(t.DIM_CLASS),this._workCell.isUnderline()&&g.classList.add(t.UNDERLINE_CLASS),this._workCell.isInvisible()?g.textContent=y.WHITESPACE_CELL_CHAR:g.textContent=this._workCell.getChars()||y.WHITESPACE_CELL_CHAR;var _=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),b=this._workCell.getBgColor(),S=this._workCell.getBgColorMode(),x=!!this._workCell.isInverse();if(x){var z=_;_=b,b=z;var P=C;C=S,S=P}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&_<8&&this._optionsService.options.drawBoldTextInBrightColors&&(_+=8),this._applyMinimumContrast(g,this._colors.background,this._colors.ansi[_])||g.classList.add("xterm-fg-"+_);break;case 50331648:var K=u.rgba.toColor(_>>16&255,_>>8&255,255&_);this._applyMinimumContrast(g,this._colors.background,K)||this._addStyle(g,"color:#"+d(_.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(g,this._colors.background,this._colors.foreground)||x&&g.classList.add("xterm-fg-"+f.INVERTED_DEFAULT_COLOR)}switch(S){case 16777216:case 33554432:g.classList.add("xterm-bg-"+b);break;case 50331648:this._addStyle(g,"background-color:#"+d(b.toString(16),"0",6));break;case 0:default:x&&g.classList.add("xterm-bg-"+f.INVERTED_DEFAULT_COLOR)}m.appendChild(g)}}return m},o.prototype._applyMinimumContrast=function(s,l,r){if(this._optionsService.options.minimumContrastRatio===1)return!1;var a=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return a===void 0&&(a=u.color.ensureContrastRatio(l,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,a!=null?a:null)),!!a&&(this._addStyle(s,"color:"+a.css),!0)},o.prototype._addStyle=function(s,l){s.setAttribute("style",""+(s.getAttribute("style")||"")+l+";")},o}();function d(o,s,l){for(;o.length<l;)o=s+o;return o}t.DomRendererRowFactory=v},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var f=n(12),y={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(p,u,v,d){var o={type:0,cancel:!1,key:void 0},s=(p.shiftKey?1:0)|(p.altKey?2:0)|(p.ctrlKey?4:0)|(p.metaKey?8:0);switch(p.keyCode){case 0:p.key==="UIKeyInputUpArrow"?o.key=u?f.C0.ESC+"OA":f.C0.ESC+"[A":p.key==="UIKeyInputLeftArrow"?o.key=u?f.C0.ESC+"OD":f.C0.ESC+"[D":p.key==="UIKeyInputRightArrow"?o.key=u?f.C0.ESC+"OC":f.C0.ESC+"[C":p.key==="UIKeyInputDownArrow"&&(o.key=u?f.C0.ESC+"OB":f.C0.ESC+"[B");break;case 8:if(p.shiftKey){o.key=f.C0.BS;break}if(p.altKey){o.key=f.C0.ESC+f.C0.DEL;break}o.key=f.C0.DEL;break;case 9:if(p.shiftKey){o.key=f.C0.ESC+"[Z";break}o.key=f.C0.HT,o.cancel=!0;break;case 13:o.key=p.altKey?f.C0.ESC+f.C0.CR:f.C0.CR,o.cancel=!0;break;case 27:o.key=f.C0.ESC,p.altKey&&(o.key=f.C0.ESC+f.C0.ESC),o.cancel=!0;break;case 37:if(p.metaKey)break;s?(o.key=f.C0.ESC+"[1;"+(s+1)+"D",o.key===f.C0.ESC+"[1;3D"&&(o.key=f.C0.ESC+(v?"b":"[1;5D"))):o.key=u?f.C0.ESC+"OD":f.C0.ESC+"[D";break;case 39:if(p.metaKey)break;s?(o.key=f.C0.ESC+"[1;"+(s+1)+"C",o.key===f.C0.ESC+"[1;3C"&&(o.key=f.C0.ESC+(v?"f":"[1;5C"))):o.key=u?f.C0.ESC+"OC":f.C0.ESC+"[C";break;case 38:if(p.metaKey)break;s?(o.key=f.C0.ESC+"[1;"+(s+1)+"A",v||o.key!==f.C0.ESC+"[1;3A"||(o.key=f.C0.ESC+"[1;5A")):o.key=u?f.C0.ESC+"OA":f.C0.ESC+"[A";break;case 40:if(p.metaKey)break;s?(o.key=f.C0.ESC+"[1;"+(s+1)+"B",v||o.key!==f.C0.ESC+"[1;3B"||(o.key=f.C0.ESC+"[1;5B")):o.key=u?f.C0.ESC+"OB":f.C0.ESC+"[B";break;case 45:p.shiftKey||p.ctrlKey||(o.key=f.C0.ESC+"[2~");break;case 46:o.key=s?f.C0.ESC+"[3;"+(s+1)+"~":f.C0.ESC+"[3~";break;case 36:o.key=s?f.C0.ESC+"[1;"+(s+1)+"H":u?f.C0.ESC+"OH":f.C0.ESC+"[H";break;case 35:o.key=s?f.C0.ESC+"[1;"+(s+1)+"F":u?f.C0.ESC+"OF":f.C0.ESC+"[F";break;case 33:p.shiftKey?o.type=2:o.key=f.C0.ESC+"[5~";break;case 34:p.shiftKey?o.type=3:o.key=f.C0.ESC+"[6~";break;case 112:o.key=s?f.C0.ESC+"[1;"+(s+1)+"P":f.C0.ESC+"OP";break;case 113:o.key=s?f.C0.ESC+"[1;"+(s+1)+"Q":f.C0.ESC+"OQ";break;case 114:o.key=s?f.C0.ESC+"[1;"+(s+1)+"R":f.C0.ESC+"OR";break;case 115:o.key=s?f.C0.ESC+"[1;"+(s+1)+"S":f.C0.ESC+"OS";break;case 116:o.key=s?f.C0.ESC+"[15;"+(s+1)+"~":f.C0.ESC+"[15~";break;case 117:o.key=s?f.C0.ESC+"[17;"+(s+1)+"~":f.C0.ESC+"[17~";break;case 118:o.key=s?f.C0.ESC+"[18;"+(s+1)+"~":f.C0.ESC+"[18~";break;case 119:o.key=s?f.C0.ESC+"[19;"+(s+1)+"~":f.C0.ESC+"[19~";break;case 120:o.key=s?f.C0.ESC+"[20;"+(s+1)+"~":f.C0.ESC+"[20~";break;case 121:o.key=s?f.C0.ESC+"[21;"+(s+1)+"~":f.C0.ESC+"[21~";break;case 122:o.key=s?f.C0.ESC+"[23;"+(s+1)+"~":f.C0.ESC+"[23~";break;case 123:o.key=s?f.C0.ESC+"[24;"+(s+1)+"~":f.C0.ESC+"[24~";break;default:if(!p.ctrlKey||p.shiftKey||p.altKey||p.metaKey)if(v&&!d||!p.altKey||p.metaKey)v&&!p.altKey&&!p.ctrlKey&&p.metaKey?p.keyCode===65&&(o.type=1):p.key&&!p.ctrlKey&&!p.altKey&&!p.metaKey&&p.keyCode>=48&&p.key.length===1?o.key=p.key:p.key&&p.ctrlKey&&p.key==="_"&&(o.key=f.C0.US);else{var l=y[p.keyCode],r=l&&l[p.shiftKey?1:0];if(r)o.key=f.C0.ESC+r;else if(p.keyCode>=65&&p.keyCode<=90){var a=p.ctrlKey?p.keyCode-64:p.keyCode+32;o.key=f.C0.ESC+String.fromCharCode(a)}}else p.keyCode>=65&&p.keyCode<=90?o.key=String.fromCharCode(p.keyCode-64):p.keyCode===32?o.key=f.C0.NUL:p.keyCode>=51&&p.keyCode<=55?o.key=String.fromCharCode(p.keyCode-51+27):p.keyCode===56?o.key=f.C0.DEL:p.keyCode===219?o.key=f.C0.ESC:p.keyCode===220?o.key=f.C0.FS:p.keyCode===221&&(o.key=f.C0.GS)}return o}},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(i,c){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var A in w)w.hasOwnProperty(A)&&(m[A]=w[A])})(i,c)},function(i,c){function m(){this.constructor=i}f(i,c),i.prototype=c===null?Object.create(c):(m.prototype=c.prototype,new m)}),p=this&&this.__decorate||function(i,c,m,w){var A,h=arguments.length,g=h<3?c:w===null?w=Object.getOwnPropertyDescriptor(c,m):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,c,m,w);else for(var _=i.length-1;_>=0;_--)(A=i[_])&&(g=(h<3?A(g):h>3?A(c,m,g):A(c,m))||g);return h>3&&g&&Object.defineProperty(c,m,g),g},u=this&&this.__param||function(i,c){return function(m,w){c(m,w,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var v=n(31),d=n(0),o=n(2),s=n(32),l=n(7),r=n(1),a=n(5),e=function(i){function c(m,w,A,h,g,_){var C=i.call(this)||this;if(C._renderer=m,C._rowCount=w,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new d.EventEmitter,C._onRender=new d.EventEmitter,C._onRefreshRequest=new d.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new v.RenderDebouncer(function(S,x){return C._renderRows(S,x)}),C.register(C._renderDebouncer),C._screenDprMonitor=new s.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(_.onResize(function(S){return C._fullRefresh()})),C.register(h.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(g.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(S){return C.refreshRows(S.start,S.end,!0)}),C.register(l.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var b=new IntersectionObserver(function(S){return C._onIntersectionChange(S[S.length-1])},{threshold:0});b.observe(A),C.register({dispose:function(){return b.disconnect()}})}return C}return y(c,i),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(m){this._isPaused=m.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(m,w,A){A===void 0&&(A=!1),this._isPaused?this._needsFullRefresh=!0:(A||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(m,w,this._rowCount))},c.prototype._renderRows=function(m,w){this._renderer.renderRows(m,w),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:m,end:w}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(m,w){this._rowCount=w,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){i.prototype.dispose.call(this)},c.prototype.setRenderer=function(m){var w=this;this._renderer.dispose(),this._renderer=m,this._renderer.onRequestRedraw(function(A){return w.refreshRows(A.start,A.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(m){this._renderer.setColors(m),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(m,w){this._renderer.onResize(m,w),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(m,w,A){this._selectionState.start=m,this._selectionState.end=w,this._selectionState.columnSelectMode=A,this._renderer.onSelectionChanged(m,w,A)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(m){return this._renderer.registerCharacterJoiner(m)},c.prototype.deregisterCharacterJoiner=function(m){return this._renderer.deregisterCharacterJoiner(m)},c=p([u(3,r.IOptionsService),u(4,a.ICharSizeService),u(5,r.IBufferService)],c)}(o.Disposable);t.RenderService=e},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(o,s,l,r){var a,e=arguments.length,i=e<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,l):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,s,l,r);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(e<3?a(i):e>3?a(s,l,i):a(s,l))||i);return e>3&&i&&Object.defineProperty(s,l,i),i},y=this&&this.__param||function(o,s){return function(l,r){s(l,r,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var p=n(1),u=n(0),v=function(){function o(s,l,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new u.EventEmitter,this._measureStrategy=new d(s,l,this._optionsService)}return Object.defineProperty(o.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),o.prototype.measure=function(){var s=this._measureStrategy.measure();s.width===this.width&&s.height===this.height||(this.width=s.width,this.height=s.height,this._onCharSizeChange.fire())},o=f([y(2,p.IOptionsService)],o)}();t.CharSizeService=v;var d=function(){function o(s,l,r){this._document=s,this._parentElement=l,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return o.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var s=this._measureElement.getBoundingClientRect();return s.width!==0&&s.height!==0&&(this._result.width=s.width,this._result.height=Math.ceil(s.height)),this._result},o}()},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(d,o,s,l){var r,a=arguments.length,e=a<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,s):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(d,o,s,l);else for(var i=d.length-1;i>=0;i--)(r=d[i])&&(e=(a<3?r(e):a>3?r(o,s,e):r(o,s))||e);return a>3&&e&&Object.defineProperty(o,s,e),e},y=this&&this.__param||function(d,o){return function(s,l){o(s,l,d)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var p=n(5),u=n(30),v=function(){function d(o,s){this._renderService=o,this._charSizeService=s}return d.prototype.getCoords=function(o,s,l,r,a){return u.getCoords(o,s,l,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,a)},d.prototype.getRawByteCoords=function(o,s,l,r){var a=this.getCoords(o,s,l,r);return u.getRawByteCoords(a)},d=f([y(0,p.IRenderService),y(1,p.ICharSizeService)],d)}();t.MouseService=v},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}),p=this&&this.__decorate||function(r,a,e,i){var c,m=arguments.length,w=m<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,a,e,i);else for(var A=r.length-1;A>=0;A--)(c=r[A])&&(w=(m<3?c(w):m>3?c(a,e,w):c(a,e))||w);return m>3&&w&&Object.defineProperty(a,e,w),w},u=this&&this.__param||function(r,a){return function(e,i){a(e,i,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var v=n(1),d=n(0),o=n(2),s=n(7),l=function(r){function a(e){var i=r.call(this)||this;return i._bufferService=e,i._linkProviders=[],i._linkCacheDisposables=[],i._isMouseOut=!0,i._activeLine=-1,i._onShowLinkUnderline=i.register(new d.EventEmitter),i._onHideLinkUnderline=i.register(new d.EventEmitter),i.register(o.getDisposeArrayDisposable(i._linkCacheDisposables)),i}return y(a,r),Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),a.prototype.registerLinkProvider=function(e){var i=this;return this._linkProviders.push(e),{dispose:function(){var c=i._linkProviders.indexOf(e);c!==-1&&i._linkProviders.splice(c,1)}}},a.prototype.attachToDom=function(e,i,c){var m=this;this._element=e,this._mouseService=i,this._renderService=c,this.register(s.addDisposableDomListener(this._element,"mouseleave",function(){m._isMouseOut=!0,m._clearCurrentLink()})),this.register(s.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(s.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},a.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var i=this._positionFromMouseEvent(e,this._element,this._mouseService);if(i){this._isMouseOut=!1;for(var c=e.composedPath(),m=0;m<c.length;m++){var w=c[m];if(w.classList.contains("xterm"))break;if(w.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._onHover(i),this._lastBufferCell=i)}}},a.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},a.prototype._askForLink=function(e,i){var c=this;this._activeProviderReplies&&i||(this._activeProviderReplies=new Map,this._activeLine=e.y);var m=!1;this._linkProviders.forEach(function(w,A){var h;i?!((h=c._activeProviderReplies)===null||h===void 0)&&h.get(A)&&(m=c._checkLinkProviderResult(A,e,m)):w.provideLinks(e.y,function(g){var _,C;if(!c._isMouseOut){var b=g==null?void 0:g.map(function(S){return{link:S}});(_=c._activeProviderReplies)===null||_===void 0||_.set(A,b),m=c._checkLinkProviderResult(A,e,m),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.size)===c._linkProviders.length&&c._removeIntersectingLinks(e.y,c._activeProviderReplies)}})})},a.prototype._removeIntersectingLinks=function(e,i){for(var c=new Set,m=0;m<i.size;m++){var w=i.get(m);if(w)for(var A=0;A<w.length;A++)for(var h=w[A],g=h.link.range.start.y<e?0:h.link.range.start.x,_=h.link.range.end.y>e?this._bufferService.cols:h.link.range.end.x,C=g;C<=_;C++){if(c.has(C)){w.splice(A--,1);break}c.add(C)}}},a.prototype._checkLinkProviderResult=function(e,i,c){var m,w=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(e),h=!1,g=0;g<e;g++)this._activeProviderReplies.has(g)&&!this._activeProviderReplies.get(g)||(h=!0);if(!h&&A){var _=A.find(function(b){return w._linkAtPosition(b.link,i)});_&&(c=!0,this._handleNewLink(_))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(g=0;g<this._activeProviderReplies.size;g++){var C=(m=this._activeProviderReplies.get(g))===null||m===void 0?void 0:m.find(function(b){return w._linkAtPosition(b.link,i)});if(C){c=!0,this._handleNewLink(C);break}}return c},a.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var i=this._positionFromMouseEvent(e,this._element,this._mouseService);i&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},a.prototype._clearCurrentLink=function(e,i){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!i||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,o.disposeArray(this._linkCacheDisposables))},a.prototype._handleNewLink=function(e){var i=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(e.link,c)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var m,w;return(w=(m=i._currentLink)===null||m===void 0?void 0:m.state)===null||w===void 0?void 0:w.decorations.pointerCursor},set:function(m){var w,A;!((w=i._currentLink)===null||w===void 0)&&w.state&&i._currentLink.state.decorations.pointerCursor!==m&&(i._currentLink.state.decorations.pointerCursor=m,i._currentLink.state.isHovered&&((A=i._element)===null||A===void 0||A.classList.toggle("xterm-cursor-pointer",m)))}},underline:{get:function(){var m,w;return(w=(m=i._currentLink)===null||m===void 0?void 0:m.state)===null||w===void 0?void 0:w.decorations.underline},set:function(m){var w,A,h;!((w=i._currentLink)===null||w===void 0)&&w.state&&((h=(A=i._currentLink)===null||A===void 0?void 0:A.state)===null||h===void 0?void 0:h.decorations.underline)!==m&&(i._currentLink.state.decorations.underline=m,i._currentLink.state.isHovered&&i._fireUnderlineEvent(e.link,m))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(m){var w=m.start===0?0:m.start+1+i._bufferService.buffer.ydisp;i._clearCurrentLink(w,m.end+1+i._bufferService.buffer.ydisp)})))}},a.prototype._linkHover=function(e,i,c){var m;!((m=this._currentLink)===null||m===void 0)&&m.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(c,i.text)},a.prototype._fireUnderlineEvent=function(e,i){var c=e.range,m=this._bufferService.buffer.ydisp,w=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-m-1,c.end.x,c.end.y-m-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(w)},a.prototype._linkLeave=function(e,i,c){var m;!((m=this._currentLink)===null||m===void 0)&&m.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(c,i.text)},a.prototype._linkAtPosition=function(e,i){var c=e.range.start.y===e.range.end.y,m=e.range.start.y<i.y,w=e.range.end.y>i.y;return(c&&e.range.start.x<=i.x&&e.range.end.x>=i.x||m&&e.range.end.x>=i.x||w&&e.range.start.x<=i.x||m&&w)&&e.range.start.y<=i.y&&e.range.end.y>=i.y},a.prototype._positionFromMouseEvent=function(e,i,c){var m=c.getCoords(e,i,this._bufferService.cols,this._bufferService.rows);if(m)return{x:m[0],y:m[1]+this._bufferService.buffer.ydisp}},a.prototype._createLinkUnderlineEvent=function(e,i,c,m,w){return{x1:e,y1:i,x2:c,y2:m,cols:this._bufferService.cols,fg:w}},a=p([u(0,v.IBufferService)],a)}(o.Disposable);t.Linkifier2=l},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var f=function(){function y(p){this._textarea=p}return Object.defineProperty(y.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),y}();t.CoreBrowserService=f},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(g,_){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var S in b)b.hasOwnProperty(S)&&(C[S]=b[S])})(g,_)},function(g,_){function C(){this.constructor=g}f(g,_),g.prototype=_===null?Object.create(_):(C.prototype=_.prototype,new C)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var p=n(2),u=n(1),v=n(66),d=n(67),o=n(68),s=n(74),l=n(75),r=n(0),a=n(76),e=n(77),i=n(78),c=n(80),m=n(81),w=n(19),A=n(82),h=function(g){function _(C){var b=g.call(this)||this;return b._onBinary=new r.EventEmitter,b._onData=new r.EventEmitter,b._onLineFeed=new r.EventEmitter,b._onResize=new r.EventEmitter,b._onScroll=new r.EventEmitter,b._instantiationService=new v.InstantiationService,b.optionsService=new s.OptionsService(C),b._instantiationService.setService(u.IOptionsService,b.optionsService),b._bufferService=b.register(b._instantiationService.createInstance(o.BufferService)),b._instantiationService.setService(u.IBufferService,b._bufferService),b._logService=b._instantiationService.createInstance(d.LogService),b._instantiationService.setService(u.ILogService,b._logService),b._coreService=b.register(b._instantiationService.createInstance(l.CoreService,function(){return b.scrollToBottom()})),b._instantiationService.setService(u.ICoreService,b._coreService),b._coreMouseService=b._instantiationService.createInstance(a.CoreMouseService),b._instantiationService.setService(u.ICoreMouseService,b._coreMouseService),b._dirtyRowService=b._instantiationService.createInstance(e.DirtyRowService),b._instantiationService.setService(u.IDirtyRowService,b._dirtyRowService),b.unicodeService=b._instantiationService.createInstance(i.UnicodeService),b._instantiationService.setService(u.IUnicodeService,b.unicodeService),b._charsetService=b._instantiationService.createInstance(c.CharsetService),b._instantiationService.setService(u.ICharsetService,b._charsetService),b._inputHandler=new w.InputHandler(b._bufferService,b._charsetService,b._coreService,b._dirtyRowService,b._logService,b.optionsService,b._coreMouseService,b.unicodeService),b.register(r.forwardEvent(b._inputHandler.onLineFeed,b._onLineFeed)),b.register(b._inputHandler),b.register(r.forwardEvent(b._bufferService.onResize,b._onResize)),b.register(r.forwardEvent(b._coreService.onData,b._onData)),b.register(r.forwardEvent(b._coreService.onBinary,b._onBinary)),b.register(b.optionsService.onOptionChange(function(S){return b._updateOptions(S)})),b._writeBuffer=new A.WriteBuffer(function(S){return b._inputHandler.parse(S)}),b}return y(_,g),Object.defineProperty(_.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){var C;this._isDisposed||(g.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},_.prototype.write=function(C,b){this._writeBuffer.write(C,b)},_.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},_.prototype.resize=function(C,b){isNaN(C)||isNaN(b)||(C=Math.max(C,o.MINIMUM_COLS),b=Math.max(b,o.MINIMUM_ROWS),this._bufferService.resize(C,b))},_.prototype.scroll=function(C,b){b===void 0&&(b=!1);var S,x=this._bufferService.buffer;(S=this._cachedBlankLine)&&S.length===this.cols&&S.getFg(0)===C.fg&&S.getBg(0)===C.bg||(S=x.getBlankLine(C,b),this._cachedBlankLine=S),S.isWrapped=b;var z=x.ybase+x.scrollTop,P=x.ybase+x.scrollBottom;if(x.scrollTop===0){var K=x.lines.isFull;P===x.lines.length-1?K?x.lines.recycle().copyFrom(S):x.lines.push(S.clone()):x.lines.splice(P+1,0,S.clone()),K?this._bufferService.isUserScrolling&&(x.ydisp=Math.max(x.ydisp-1,0)):(x.ybase++,this._bufferService.isUserScrolling||x.ydisp++)}else{var N=P-z+1;x.lines.shiftElements(z+1,N-1,-1),x.lines.set(P,S.clone())}this._bufferService.isUserScrolling||(x.ydisp=x.ybase),this._dirtyRowService.markRangeDirty(x.scrollTop,x.scrollBottom),this._onScroll.fire(x.ydisp)},_.prototype.scrollLines=function(C,b){var S=this._bufferService.buffer;if(C<0){if(S.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+S.ydisp>=S.ybase&&(this._bufferService.isUserScrolling=!1);var x=S.ydisp;S.ydisp=Math.max(Math.min(S.ydisp+C,S.ybase),0),x!==S.ydisp&&(b||this._onScroll.fire(S.ydisp))},_.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},_.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},_.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},_.prototype.scrollToLine=function(C){var b=C-this._bufferService.buffer.ydisp;b!==0&&this.scrollLines(b)},_.prototype.addEscHandler=function(C,b){return this._inputHandler.addEscHandler(C,b)},_.prototype.addDcsHandler=function(C,b){return this._inputHandler.addDcsHandler(C,b)},_.prototype.addCsiHandler=function(C,b){return this._inputHandler.addCsiHandler(C,b)},_.prototype.addOscHandler=function(C,b){return this._inputHandler.addOscHandler(C,b)},_.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},_.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},_.prototype._updateOptions=function(C){var b;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((b=this._windowsMode)===null||b===void 0||b.dispose(),this._windowsMode=void 0)}},_.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var b=[];b.push(this.onLineFeed(m.updateWindowsModeWrappedState.bind(null,this._bufferService))),b.push(this.addCsiHandler({final:"H"},function(){return m.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var S=0,x=b;S<x.length;S++)x[S].dispose()}}}},_}(p.Disposable);t.CoreTerminal=h},function(Q,t,n){"use strict";var f=this&&this.__spreadArrays||function(){for(var d=0,o=0,s=arguments.length;o<s;o++)d+=arguments[o].length;var l=Array(d),r=0;for(o=0;o<s;o++)for(var a=arguments[o],e=0,i=a.length;e<i;e++,r++)l[r]=a[e];return l};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var y=n(1),p=n(14),u=function(){function d(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];this._entries=new Map;for(var l=0,r=o;l<r.length;l++){var a=r[l],e=a[0],i=a[1];this.set(e,i)}}return d.prototype.set=function(o,s){var l=this._entries.get(o);return this._entries.set(o,s),l},d.prototype.forEach=function(o){this._entries.forEach(function(s,l){return o(l,s)})},d.prototype.has=function(o){return this._entries.has(o)},d.prototype.get=function(o){return this._entries.get(o)},d}();t.ServiceCollection=u;var v=function(){function d(){this._services=new u,this._services.set(y.IInstantiationService,this)}return d.prototype.setService=function(o,s){this._services.set(o,s)},d.prototype.getService=function(o){return this._services.get(o)},d.prototype.createInstance=function(o){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];for(var r=p.getServiceDependencies(o).sort(function(A,h){return A.index-h.index}),a=[],e=0,i=r;e<i.length;e++){var c=i[e],m=this._services.get(c.id);if(!m)throw new Error("[createInstance] "+o.name+" depends on UNKNOWN service "+c.id+".");a.push(m)}var w=r.length>0?r[0].index:s.length;if(s.length!==w)throw new Error("[createInstance] First service dependency of "+o.name+" at position "+(w+1)+" conflicts with "+s.length+" static arguments");return new(o.bind.apply(o,f([void 0],f(s,a))))},d}();t.InstantiationService=v},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(s,l,r,a){var e,i=arguments.length,c=i<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,l,r,a);else for(var m=s.length-1;m>=0;m--)(e=s[m])&&(c=(i<3?e(c):i>3?e(l,r,c):e(l,r))||c);return i>3&&c&&Object.defineProperty(l,r,c),c},y=this&&this.__param||function(s,l){return function(r,a){l(r,a,s)}},p=this&&this.__spreadArrays||function(){for(var s=0,l=0,r=arguments.length;l<r;l++)s+=arguments[l].length;var a=Array(s),e=0;for(l=0;l<r;l++)for(var i=arguments[l],c=0,m=i.length;c<m;c++,e++)a[e]=i[c];return a};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=t.LogLevel=void 0;var u,v=n(1);(function(s){s[s.DEBUG=0]="DEBUG",s[s.INFO=1]="INFO",s[s.WARN=2]="WARN",s[s.ERROR=3]="ERROR",s[s.OFF=4]="OFF"})(u=t.LogLevel||(t.LogLevel={}));var d={debug:u.DEBUG,info:u.INFO,warn:u.WARN,error:u.ERROR,off:u.OFF},o=function(){function s(l){var r=this;this._optionsService=l,this._updateLogLevel(),this._optionsService.onOptionChange(function(a){a==="logLevel"&&r._updateLogLevel()})}return s.prototype._updateLogLevel=function(){this._logLevel=d[this._optionsService.options.logLevel]},s.prototype._evalLazyOptionalParams=function(l){for(var r=0;r<l.length;r++)typeof l[r]=="function"&&(l[r]=l[r]())},s.prototype._log=function(l,r,a){this._evalLazyOptionalParams(a),l.call.apply(l,p([console,"xterm.js: "+r],a))},s.prototype.debug=function(l){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];this._logLevel<=u.DEBUG&&this._log(console.log,l,r)},s.prototype.info=function(l){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];this._logLevel<=u.INFO&&this._log(console.info,l,r)},s.prototype.warn=function(l){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];this._logLevel<=u.WARN&&this._log(console.warn,l,r)},s.prototype.error=function(l){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];this._logLevel<=u.ERROR&&this._log(console.error,l,r)},s=f([y(0,v.IOptionsService)],s)}();t.LogService=o},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(r,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c])})(r,a)},function(r,a){function e(){this.constructor=r}f(r,a),r.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}),p=this&&this.__decorate||function(r,a,e,i){var c,m=arguments.length,w=m<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,a,e,i);else for(var A=r.length-1;A>=0;A--)(c=r[A])&&(w=(m<3?c(w):m>3?c(a,e,w):c(a,e))||w);return m>3&&w&&Object.defineProperty(a,e,w),w},u=this&&this.__param||function(r,a){return function(e,i){a(e,i,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var v=n(1),d=n(69),o=n(0),s=n(2);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var l=function(r){function a(e){var i=r.call(this)||this;return i._optionsService=e,i.isUserScrolling=!1,i._onResize=new o.EventEmitter,i.cols=Math.max(e.options.cols,t.MINIMUM_COLS),i.rows=Math.max(e.options.rows,t.MINIMUM_ROWS),i.buffers=new d.BufferSet(e,i),i}return y(a,r),Object.defineProperty(a.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){r.prototype.dispose.call(this),this.buffers.dispose()},a.prototype.resize=function(e,i){this.cols=e,this.rows=i,this.buffers.resize(e,i),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:i})},a.prototype.reset=function(){this.buffers.dispose(),this.buffers=new d.BufferSet(this._optionsService,this),this.isUserScrolling=!1},a=p([u(0,v.IOptionsService)],a)}(s.Disposable);t.BufferService=l},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(d,o){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var r in l)l.hasOwnProperty(r)&&(s[r]=l[r])})(d,o)},function(d,o){function s(){this.constructor=d}f(d,o),d.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var p=n(70),u=n(0),v=function(d){function o(s,l){var r=d.call(this)||this;return r._onBufferActivate=r.register(new u.EventEmitter),r._normal=new p.Buffer(!0,s,l),r._normal.fillViewportRows(),r._alt=new p.Buffer(!1,s,l),r._activeBuffer=r._normal,r.setupTabStops(),r}return y(o,d),Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(s){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(s),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(s,l){this._normal.resize(s,l),this._alt.resize(s,l)},o.prototype.setupTabStops=function(s){this._normal.setupTabStops(s),this._alt.setupTabStops(s)},o}(n(2).Disposable);t.BufferSet=v},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var f=n(71),y=n(16),p=n(4),u=n(3),v=n(72),d=n(73),o=n(20),s=n(6);t.MAX_BUFFER_SIZE=4294967295;var l=function(){function a(e,i,c){this._hasScrollback=e,this._optionsService=i,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=y.DEFAULT_ATTR_DATA.clone(),this.savedCharset=o.DEFAULT_CHARSET,this.markers=[],this._nullCell=p.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]),this._whitespaceCell=p.CellData.fromCharData([0,u.WHITESPACE_CELL_CHAR,u.WHITESPACE_CELL_WIDTH,u.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new f.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return a.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new s.ExtendedAttrs),this._nullCell},a.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new s.ExtendedAttrs),this._whitespaceCell},a.prototype.getBlankLine=function(e,i){return new y.BufferLine(this._bufferService.cols,this.getNullCell(e),i)},Object.defineProperty(a.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),a.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var i=e+this._optionsService.options.scrollback;return i>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i},a.prototype.fillViewportRows=function(e){if(this.lines.length===0){e===void 0&&(e=y.DEFAULT_ATTR_DATA);for(var i=this._rows;i--;)this.lines.push(this.getBlankLine(e))}},a.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new f.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},a.prototype.resize=function(e,i){var c=this.getNullCell(y.DEFAULT_ATTR_DATA),m=this._getCorrectBufferLength(i);if(m>this.lines.maxLength&&(this.lines.maxLength=m),this.lines.length>0){if(this._cols<e)for(var w=0;w<this.lines.length;w++)this.lines.get(w).resize(e,c);var A=0;if(this._rows<i)for(var h=this._rows;h<i;h++)this.lines.length<i+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new y.BufferLine(e,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new y.BufferLine(e,c)));else for(h=this._rows;h>i;h--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(m<this.lines.maxLength){var g=this.lines.length-m;g>0&&(this.lines.trimStart(g),this.ybase=Math.max(this.ybase-g,0),this.ydisp=Math.max(this.ydisp-g,0),this.savedY=Math.max(this.savedY-g,0)),this.lines.maxLength=m}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,i-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(e,i),this._cols>e))for(w=0;w<this.lines.length;w++)this.lines.get(w).resize(e,c);this._cols=e,this._rows=i},Object.defineProperty(a.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),a.prototype._reflow=function(e,i){this._cols!==e&&(e>this._cols?this._reflowLarger(e,i):this._reflowSmaller(e,i))},a.prototype._reflowLarger=function(e,i){var c=v.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(y.DEFAULT_ATTR_DATA));if(c.length>0){var m=v.reflowLargerCreateNewLayout(this.lines,c);v.reflowLargerApplyNewLayout(this.lines,m.layout),this._reflowLargerAdjustViewport(e,i,m.countRemoved)}},a.prototype._reflowLargerAdjustViewport=function(e,i,c){for(var m=this.getNullCell(y.DEFAULT_ATTR_DATA),w=c;w-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<i&&this.lines.push(new y.BufferLine(e,m))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},a.prototype._reflowSmaller=function(e,i){for(var c=this.getNullCell(y.DEFAULT_ATTR_DATA),m=[],w=0,A=this.lines.length-1;A>=0;A--){var h=this.lines.get(A);if(!(!h||!h.isWrapped&&h.getTrimmedLength()<=e)){for(var g=[h];h.isWrapped&&A>0;)h=this.lines.get(--A),g.unshift(h);var _=this.ybase+this.y;if(!(_>=A&&_<A+g.length)){var C=g[g.length-1].getTrimmedLength(),b=v.reflowSmallerGetNewLineLengths(g,this._cols,e),S=b.length-g.length,x=void 0;x=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+S):Math.max(0,this.lines.length-this.lines.maxLength+S);for(var z=[],P=0;P<S;P++){var K=this.getBlankLine(y.DEFAULT_ATTR_DATA,!0);z.push(K)}z.length>0&&(m.push({start:A+g.length+w,newLines:z}),w+=z.length),g.push.apply(g,z);var N=b.length-1,k=b[N];k===0&&(k=b[--N]);for(var D=g.length-S-1,L=C;D>=0;){var E=Math.min(L,k);if(g[N].copyCellsFrom(g[D],L-E,k-E,E,!0),(k-=E)===0&&(k=b[--N]),(L-=E)===0){D--;var R=Math.max(D,0);L=v.getWrappedLineTrimmedLength(g,R,this._cols)}}for(P=0;P<g.length;P++)b[P]<e&&g[P].setCell(b[P],c);for(var O=S-x;O-- >0;)this.ybase===0?this.y<i-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+w)-i&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+S,this.ybase+i-1)}}}if(m.length>0){var M=[],I=[];for(P=0;P<this.lines.length;P++)I.push(this.lines.get(P));var J=this.lines.length,re=J-1,le=0,ye=m[le];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+w);var W=0;for(P=Math.min(this.lines.maxLength-1,J+w-1);P>=0;P--)if(ye&&ye.start>re+W){for(var H=ye.newLines.length-1;H>=0;H--)this.lines.set(P--,ye.newLines[H]);P++,M.push({index:re+1,amount:ye.newLines.length}),W+=ye.newLines.length,ye=m[++le]}else this.lines.set(P,I[re--]);var Z=0;for(P=M.length-1;P>=0;P--)M[P].index+=Z,this.lines.onInsertEmitter.fire(M[P]),Z+=M[P].amount;var te=Math.max(0,J+w-this.lines.maxLength);te>0&&this.lines.onTrimEmitter.fire(te)}},a.prototype.stringIndexToBufferIndex=function(e,i,c){for(c===void 0&&(c=!1);i;){var m=this.lines.get(e);if(!m)return[-1,-1];for(var w=c?m.getTrimmedLength():m.length,A=0;A<w;++A)if(m.get(A)[u.CHAR_DATA_WIDTH_INDEX]&&(i-=m.get(A)[u.CHAR_DATA_CHAR_INDEX].length||1),i<0)return[e,A];e++}return[e,0]},a.prototype.translateBufferLineToString=function(e,i,c,m){c===void 0&&(c=0);var w=this.lines.get(e);return w?w.translateToString(i,c,m):""},a.prototype.getWrappedRangeForLine=function(e){for(var i=e,c=e;i>0&&this.lines.get(i).isWrapped;)i--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:i,last:c}},a.prototype.setupTabStops=function(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},a.prototype.prevStop=function(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},a.prototype.nextStop=function(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},a.prototype.addMarker=function(e){var i=this,c=new d.Marker(e);return this.markers.push(c),c.register(this.lines.onTrim(function(m){c.line-=m,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(m){c.line>=m.index&&(c.line+=m.amount)})),c.register(this.lines.onDelete(function(m){c.line>=m.index&&c.line<m.index+m.amount&&c.dispose(),c.line>m.index&&(c.line-=m.amount)})),c.register(c.onDispose(function(){return i._removeMarker(c)})),c},a.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},a.prototype.iterator=function(e,i,c,m,w){return new r(this,e,i,c,m,w)},a}();t.Buffer=l;var r=function(){function a(e,i,c,m,w,A){c===void 0&&(c=0),m===void 0&&(m=e.lines.length),w===void 0&&(w=0),A===void 0&&(A=0),this._buffer=e,this._trimRight=i,this._startIndex=c,this._endIndex=m,this._startOverscan=w,this._endOverscan=A,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return a.prototype.hasNext=function(){return this._current<this._endIndex},a.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var i="",c=e.first;c<=e.last;++c)i+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=e.last+1,{range:e,content:i}},a}();t.BufferStringIterator=r},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var f=n(0),y=function(){function p(u){this._maxLength=u,this.onDeleteEmitter=new f.EventEmitter,this.onInsertEmitter=new f.EventEmitter,this.onTrimEmitter=new f.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(p.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"maxLength",{get:function(){return this._maxLength},set:function(u){if(this._maxLength!==u){for(var v=new Array(u),d=0;d<Math.min(u,this.length);d++)v[d]=this._array[this._getCyclicIndex(d)];this._array=v,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var v=this._length;v<u;v++)this._array[v]=void 0;this._length=u},enumerable:!1,configurable:!0}),p.prototype.get=function(u){return this._array[this._getCyclicIndex(u)]},p.prototype.set=function(u,v){this._array[this._getCyclicIndex(u)]=v},p.prototype.push=function(u){this._array[this._getCyclicIndex(this._length)]=u,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},p.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(p.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),p.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},p.prototype.splice=function(u,v){for(var d=[],o=2;o<arguments.length;o++)d[o-2]=arguments[o];if(v){for(var s=u;s<this._length-v;s++)this._array[this._getCyclicIndex(s)]=this._array[this._getCyclicIndex(s+v)];this._length-=v}for(s=this._length-1;s>=u;s--)this._array[this._getCyclicIndex(s+d.length)]=this._array[this._getCyclicIndex(s)];for(s=0;s<d.length;s++)this._array[this._getCyclicIndex(u+s)]=d[s];if(this._length+d.length>this._maxLength){var l=this._length+d.length-this._maxLength;this._startIndex+=l,this._length=this._maxLength,this.onTrimEmitter.fire(l)}else this._length+=d.length},p.prototype.trimStart=function(u){u>this._length&&(u=this._length),this._startIndex+=u,this._length-=u,this.onTrimEmitter.fire(u)},p.prototype.shiftElements=function(u,v,d){if(!(v<=0)){if(u<0||u>=this._length)throw new Error("start argument out of range");if(u+d<0)throw new Error("Cannot shift elements in list beyond index 0");if(d>0){for(var o=v-1;o>=0;o--)this.set(u+o+d,this.get(u+o));var s=u+v+d-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(o=0;o<v;o++)this.set(u+o+d,this.get(u+o))}},p.prototype._getCyclicIndex=function(u){return(this._startIndex+u)%this._maxLength},p}();t.CircularList=y},function(Q,t,n){"use strict";function f(y,p,u){if(p===y.length-1)return y[p].getTrimmedLength();var v=!y[p].hasContent(u-1)&&y[p].getWidth(u-1)===1,d=y[p+1].getWidth(0)===2;return v&&d?u-1:u}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(y,p,u,v,d){for(var o=[],s=0;s<y.length-1;s++){var l=s,r=y.get(++l);if(r.isWrapped){for(var a=[y.get(s)];l<y.length&&r.isWrapped;)a.push(r),r=y.get(++l);if(v>=s&&v<l)s+=a.length-1;else{for(var e=0,i=f(a,e,p),c=1,m=0;c<a.length;){var w=f(a,c,p),A=w-m,h=u-i,g=Math.min(A,h);a[e].copyCellsFrom(a[c],m,i,g,!1),(i+=g)===u&&(e++,i=0),(m+=g)===w&&(c++,m=0),i===0&&e!==0&&a[e-1].getWidth(u-1)===2&&(a[e].copyCellsFrom(a[e-1],u-1,i++,1,!1),a[e-1].setCell(u-1,d))}a[e].replaceCells(i,u,d);for(var _=0,C=a.length-1;C>0&&(C>e||a[C].getTrimmedLength()===0);C--)_++;_>0&&(o.push(s+a.length-_),o.push(_)),s+=a.length-1}}}return o},t.reflowLargerCreateNewLayout=function(y,p){for(var u=[],v=0,d=p[v],o=0,s=0;s<y.length;s++)if(d===s){var l=p[++v];y.onDeleteEmitter.fire({index:s-o,amount:l}),s+=l-1,o+=l,d=p[++v]}else u.push(s);return{layout:u,countRemoved:o}},t.reflowLargerApplyNewLayout=function(y,p){for(var u=[],v=0;v<p.length;v++)u.push(y.get(p[v]));for(v=0;v<u.length;v++)y.set(v,u[v]);y.length=p.length},t.reflowSmallerGetNewLineLengths=function(y,p,u){for(var v=[],d=y.map(function(i,c){return f(y,c,p)}).reduce(function(i,c){return i+c}),o=0,s=0,l=0;l<d;){if(d-l<u){v.push(d-l);break}o+=u;var r=f(y,s,p);o>r&&(o-=r,s++);var a=y[s].getWidth(o-1)===2;a&&o--;var e=a?u-1:u;v.push(e),l+=e}return v},t.getWrappedLineTrimmedLength=f},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(v,d){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)s.hasOwnProperty(l)&&(o[l]=s[l])})(v,d)},function(v,d){function o(){this.constructor=v}f(v,d),v.prototype=d===null?Object.create(d):(o.prototype=d.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var p=n(0),u=function(v){function d(o){var s=v.call(this)||this;return s.line=o,s._id=d._nextId++,s.isDisposed=!1,s._onDispose=new p.EventEmitter,s}return y(d,v),Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),d.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},d._nextId=1,d}(n(2).Disposable);t.Marker=u},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var f=n(0),y=n(11),p=n(33);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:y.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var u=["cols","rows"],v=function(){function d(o){this._onOptionChange=new f.EventEmitter,this.options=p.clone(t.DEFAULT_OPTIONS);for(var s=0,l=Object.keys(o);s<l.length;s++){var r=l[s];if(r in this.options){var a=o[r];this.options[r]=a}}}return Object.defineProperty(d.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),d.prototype.setOption=function(o,s){if(!(o in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+o+'"');if(u.indexOf(o)!==-1)throw new Error('Option "'+o+'" can only be set in the constructor');this.options[o]!==s&&(s=this._sanitizeAndValidateOption(o,s),this.options[o]!==s&&(this.options[o]=s,this._onOptionChange.fire(o)))},d.prototype._sanitizeAndValidateOption=function(o,s){switch(o){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":s||(s=t.DEFAULT_OPTIONS[o]);break;case"cursorWidth":s=Math.floor(s);case"lineHeight":case"tabStopWidth":if(s<1)throw new Error(o+" cannot be less than 1, value: "+s);break;case"minimumContrastRatio":s=Math.max(1,Math.min(21,Math.round(10*s)/10));break;case"scrollback":if((s=Math.min(s,4294967295))<0)throw new Error(o+" cannot be less than 0, value: "+s);break;case"fastScrollSensitivity":case"scrollSensitivity":if(s<=0)throw new Error(o+" cannot be less than or equal to 0, value: "+s)}return s},d.prototype.getOption=function(o){if(!(o in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+o+'"');return this.options[o]},d}();t.OptionsService=v},function(Q,t,n){"use strict";var f,y=this&&this.__extends||(f=function(e,i){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,m){c.__proto__=m}||function(c,m){for(var w in m)m.hasOwnProperty(w)&&(c[w]=m[w])})(e,i)},function(e,i){function c(){this.constructor=e}f(e,i),e.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}),p=this&&this.__decorate||function(e,i,c,m){var w,A=arguments.length,h=A<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,c):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,i,c,m);else for(var g=e.length-1;g>=0;g--)(w=e[g])&&(h=(A<3?w(h):A>3?w(i,c,h):w(i,c))||h);return A>3&&h&&Object.defineProperty(i,c,h),h},u=this&&this.__param||function(e,i){return function(c,m){i(c,m,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var v=n(1),d=n(0),o=n(33),s=n(2),l=Object.freeze({insertMode:!1}),r=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),a=function(e){function i(c,m,w,A){var h=e.call(this)||this;return h._bufferService=m,h._logService=w,h._optionsService=A,h.isCursorInitialized=!1,h.isCursorHidden=!1,h._onData=h.register(new d.EventEmitter),h._onUserInput=h.register(new d.EventEmitter),h._onBinary=h.register(new d.EventEmitter),h._scrollToBottom=c,h.register({dispose:function(){return h._scrollToBottom=void 0}}),h.modes=o.clone(l),h.decPrivateModes=o.clone(r),h}return y(i,e),Object.defineProperty(i.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),i.prototype.reset=function(){this.modes=o.clone(l),this.decPrivateModes=o.clone(r)},i.prototype.triggerDataEvent=function(c,m){if(m===void 0&&(m=!1),!this._optionsService.options.disableStdin){var w=this._bufferService.buffer;w.ybase!==w.ydisp&&this._scrollToBottom(),m&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(A){return A.charCodeAt(0)})}),this._onData.fire(c)}},i.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(m){return m.charCodeAt(0)})}),this._onBinary.fire(c))},i=p([u(1,v.IBufferService),u(2,v.ILogService),u(3,v.IOptionsService)],i)}(s.Disposable);t.CoreService=a},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(r,a,e,i){var c,m=arguments.length,w=m<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,a,e,i);else for(var A=r.length-1;A>=0;A--)(c=r[A])&&(w=(m<3?c(w):m>3?c(a,e,w):c(a,e))||w);return m>3&&w&&Object.defineProperty(a,e,w),w},y=this&&this.__param||function(r,a){return function(e,i){a(e,i,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var p=n(1),u=n(0),v={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(r){return r.button!==4&&r.action===1&&(r.ctrl=!1,r.alt=!1,r.shift=!1,!0)}},VT200:{events:19,restrict:function(r){return r.action!==32}},DRAG:{events:23,restrict:function(r){return r.action!==32||r.button!==3}},ANY:{events:31,restrict:function(r){return!0}}};function d(r,a){var e=(r.ctrl?16:0)|(r.shift?4:0)|(r.alt?8:0);return r.button===4?(e|=64,e|=r.action):(e|=3&r.button,4&r.button&&(e|=64),8&r.button&&(e|=128),r.action===32?e|=32:r.action!==0||a||(e|=3)),e}var o=String.fromCharCode,s={DEFAULT:function(r){var a=[d(r,!1)+32,r.col+32,r.row+32];return a[0]>255||a[1]>255||a[2]>255?"":"\x1B[M"+o(a[0])+o(a[1])+o(a[2])},SGR:function(r){var a=r.action===0&&r.button!==4?"m":"M";return"\x1B[<"+d(r,!0)+";"+r.col+";"+r.row+a}},l=function(){function r(a,e){this._bufferService=a,this._coreService=e,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new u.EventEmitter,this._lastEvent=null;for(var i=0,c=Object.keys(v);i<c.length;i++){var m=c[i];this.addProtocol(m,v[m])}for(var w=0,A=Object.keys(s);w<A.length;w++){var h=A[w];this.addEncoding(h,s[h])}this.reset()}return r.prototype.addProtocol=function(a,e){this._protocols[a]=e},r.prototype.addEncoding=function(a,e){this._encodings[a]=e},Object.defineProperty(r.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(a){if(!this._protocols[a])throw new Error('unknown protocol "'+a+'"');this._activeProtocol=a,this._onProtocolChange.fire(this._protocols[a].events)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(a){if(!this._encodings[a])throw new Error('unknown encoding "'+a+'"');this._activeEncoding=a},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(r.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),r.prototype.triggerMouseEvent=function(a){if(a.col<0||a.col>=this._bufferService.cols||a.row<0||a.row>=this._bufferService.rows||a.button===4&&a.action===32||a.button===3&&a.action!==32||a.button!==4&&(a.action===2||a.action===3)||(a.col++,a.row++,a.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,a))||!this._protocols[this._activeProtocol].restrict(a))return!1;var e=this._encodings[this._activeEncoding](a);return e&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(e):this._coreService.triggerDataEvent(e,!0)),this._lastEvent=a,!0},r.prototype.explainEvents=function(a){return{down:!!(1&a),up:!!(2&a),drag:!!(4&a),move:!!(8&a),wheel:!!(16&a)}},r.prototype._compareEvents=function(a,e){return a.col===e.col&&a.row===e.row&&a.button===e.button&&a.action===e.action&&a.ctrl===e.ctrl&&a.alt===e.alt&&a.shift===e.shift},r=f([y(0,p.IBufferService),y(1,p.ICoreService)],r)}();t.CoreMouseService=l},function(Q,t,n){"use strict";var f=this&&this.__decorate||function(v,d,o,s){var l,r=arguments.length,a=r<3?d:s===null?s=Object.getOwnPropertyDescriptor(d,o):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(v,d,o,s);else for(var e=v.length-1;e>=0;e--)(l=v[e])&&(a=(r<3?l(a):r>3?l(d,o,a):l(d,o))||a);return r>3&&a&&Object.defineProperty(d,o,a),a},y=this&&this.__param||function(v,d){return function(o,s){d(o,s,v)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var p=n(1),u=function(){function v(d){this._bufferService=d,this.clearRange()}return Object.defineProperty(v.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),v.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},v.prototype.markDirty=function(d){d<this._start?this._start=d:d>this._end&&(this._end=d)},v.prototype.markRangeDirty=function(d,o){if(d>o){var s=d;d=o,o=s}d<this._start&&(this._start=d),o>this._end&&(this._end=o)},v.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},v=f([y(0,p.IBufferService)],v)}();t.DirtyRowService=u},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var f=n(0),y=n(79),p=function(){function u(){this._providers=Object.create(null),this._active="",this._onChange=new f.EventEmitter;var v=new y.UnicodeV6;this.register(v),this._active=v.version,this._activeProvider=v}return Object.defineProperty(u.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"activeVersion",{get:function(){return this._active},set:function(v){if(!this._providers[v])throw new Error('unknown Unicode version "'+v+'"');this._active=v,this._activeProvider=this._providers[v],this._onChange.fire(v)},enumerable:!1,configurable:!0}),u.prototype.register=function(v){this._providers[v.version]=v},u.prototype.wcwidth=function(v){return this._activeProvider.wcwidth(v)},u.prototype.getStringCellWidth=function(v){for(var d=0,o=v.length,s=0;s<o;++s){var l=v.charCodeAt(s);if(55296<=l&&l<=56319){if(++s>=o)return d+this.wcwidth(l);var r=v.charCodeAt(s);56320<=r&&r<=57343?l=1024*(l-55296)+r-56320+65536:d+=this.wcwidth(r)}d+=this.wcwidth(l)}return d},u}();t.UnicodeService=p},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var f,y=n(15),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],u=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],v=function(){function d(){if(this.version="6",!f){f=new Uint8Array(65536),y.fill(f,1),f[0]=0,y.fill(f,0,1,32),y.fill(f,0,127,160),y.fill(f,2,4352,4448),f[9001]=2,f[9002]=2,y.fill(f,2,11904,42192),f[12351]=1,y.fill(f,2,44032,55204),y.fill(f,2,63744,64256),y.fill(f,2,65040,65050),y.fill(f,2,65072,65136),y.fill(f,2,65280,65377),y.fill(f,2,65504,65511);for(var o=0;o<p.length;++o)y.fill(f,0,p[o][0],p[o][1]+1)}}return d.prototype.wcwidth=function(o){return o<32?0:o<127?1:o<65536?f[o]:function(s,l){var r,a=0,e=l.length-1;if(s<l[0][0]||s>l[e][1])return!1;for(;e>=a;)if(s>l[r=a+e>>1][1])a=r+1;else{if(!(s<l[r][0]))return!0;e=r-1}return!1}(o,u)?0:o>=131072&&o<=196605||o>=196608&&o<=262141?2:1},d}();t.UnicodeV6=v},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var f=function(){function y(){this.glevel=0,this._charsets=[]}return y.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},y.prototype.setgLevel=function(p){this.glevel=p,this.charset=this._charsets[p]},y.prototype.setgCharset=function(p,u){this._charsets[p]=u,this.glevel===p&&(this.charset=u)},y}();t.CharsetService=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var f=n(3);t.updateWindowsModeWrappedState=function(y){var p=y.buffer.lines.get(y.buffer.ybase+y.buffer.y-1),u=p==null?void 0:p.get(y.cols-1),v=y.buffer.lines.get(y.buffer.ybase+y.buffer.y);v&&u&&(v.isWrapped=u[f.CHAR_DATA_CODE_INDEX]!==f.NULL_CELL_CODE&&u[f.CHAR_DATA_CODE_INDEX]!==f.WHITESPACE_CELL_CODE)}},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var f=function(){function y(p){this._action=p,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return y.prototype.writeSync=function(p){if(this._writeBuffer.length){for(var u=this._bufferOffset;u<this._writeBuffer.length;++u){var v=this._writeBuffer[u],d=this._callbacks[u];this._action(v),d&&d()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(p)},y.prototype.write=function(p,u){var v=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return v._innerWrite()})),this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(u)},y.prototype._innerWrite=function(){for(var p=this,u=Date.now();this._writeBuffer.length>this._bufferOffset;){var v=this._writeBuffer[this._bufferOffset],d=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(v),this._pendingData-=v.length,d&&d(),Date.now()-u>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return p._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},y}();t.WriteBuffer=f},function(Q,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var f=function(){function y(){this._addons=[]}return y.prototype.dispose=function(){for(var p=this._addons.length-1;p>=0;p--)this._addons[p].instance.dispose()},y.prototype.loadAddon=function(p,u){var v=this,d={instance:u,dispose:u.dispose,isDisposed:!1};this._addons.push(d),u.dispose=function(){return v._wrappedAddonDispose(d)},u.activate(p)},y.prototype._wrappedAddonDispose=function(p){if(!p.isDisposed){for(var u=-1,v=0;v<this._addons.length;v++)if(this._addons[v]===p){u=v;break}if(u===-1)throw new Error("Could not dispose an addon that has not been loaded");p.isDisposed=!0,p.dispose.apply(p.instance),this._addons.splice(u,1)}},y}();t.AddonManager=f}])})},4977:function(it){"use strict";it.exports="data:image/png;base64,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"}}]);
|